This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: fix previous rs6000 patch
- To: Geoffrey Keating <geoffk at cygnus dot com>
- Subject: Re: fix previous rs6000 patch
- From: Richard Henderson <rth at redhat dot com>
- Date: Tue, 6 Nov 2001 23:47:51 -0800
- Cc: gcc-patches at gcc dot gnu dot org
- References: <200111060020.fA60Kt012396@thief.cygnus.com>
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 ----