From 8487eac9d14c7bf465a1874b15143d3e7f0fd1e1 Mon Sep 17 00:00:00 2001 From: Alexandre Oliva Date: Wed, 12 Apr 2000 01:22:51 +0000 Subject: [PATCH] elfos.h (SELECT_SECTION): Decide whether to use a data or const section to output a CONSTRUCTOR based on... * config/elfos.h (SELECT_SECTION): Decide whether to use a data or const section to output a CONSTRUCTOR based on the same conditions used for VAR_DECLs. From-SVN: r33087 --- gcc/ChangeLog | 6 ++++++ gcc/config/elfos.h | 5 +++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 26253bf87b00..76e79af451a6 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2000-04-11 Alexandre Oliva + + * config/elfos.h (SELECT_SECTION): Decide whether to use a data or + const section to output a CONSTRUCTOR based on the same conditions + used for VAR_DECLs. + Mon Apr 3 02:31:32 2000 Jeffrey A Law (law@cygnus.com) 2000-01-20 Michael Hayes diff --git a/gcc/config/elfos.h b/gcc/config/elfos.h index 6c107311fd75..d48261591981 100644 --- a/gcc/config/elfos.h +++ b/gcc/config/elfos.h @@ -1,6 +1,6 @@ /* elfos.h -- operating system specific defines to be used when targeting GCC for some generic ELF system - Copyright (C) 1991, 1994, 1995, 1999 Free Software Foundation, Inc. + Copyright (C) 1991, 1994, 1995, 1999, 2000 Free Software Foundation, Inc. Based on svr4.h contributed by Ron Guilmette (rfg@netcom.com). This file is part of GNU CC. @@ -426,7 +426,8 @@ do { \ else \ data_section (); \ } \ - else if (TREE_CODE (DECL) == VAR_DECL) \ + else if (TREE_CODE (DECL) == VAR_DECL \ + || TREE_CODE (DECL) == CONSTRUCTOR) \ { \ if ((flag_pic && RELOC) \ || !TREE_READONLY (DECL) || TREE_SIDE_EFFECTS (DECL) \ -- 2.47.2