This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: fix previous rs6000 patch


On Mon, Nov 05, 2001 at 04:20:55PM -0800, Geoffrey Keating wrote:
> Richard, I think the Alpha port does a similar thing with TREE_READONLY
> in elf.h, you might want to make the corresponding change and see if
> anything improves.

Fixed.  Though you have to increase the size of the structure
to get it out of .sdata so that you can see the result.  ;-)


r~

        * config/alpha/elf.h (DO_SELECT_SECTION): TREE_READONLY is not
        defined for a CONSTRUCTOR; don't check it.

Index: elf.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/alpha/elf.h,v
retrieving revision 1.45
diff -c -p -d -r1.45 elf.h
*** elf.h	2001/09/13 08:42:20	1.45
--- elf.h	2001/11/07 07:44:46
*************** void FN ()					\
*** 342,348 ****
         else if (TREE_CODE (DECL) == CONSTRUCTOR)		\
  	 {							\
  	   if ((flag_pic && RELOC)				\
- 	       || ! TREE_READONLY (DECL)			\
  	       || TREE_SIDE_EFFECTS (DECL)			\
  	       || ! TREE_CONSTANT (DECL))			\
  	     SECNUM = 2;					\
--- 342,347 ----


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]