This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
PATCH: Revise iris6.h to use !flag_gnu_linker
- To: gcc-patches at gcc dot gnu dot org
- Subject: PATCH: Revise iris6.h to use !flag_gnu_linker
- From: Jeffrey Oldham <oldham at codesourcery dot com>
- Date: Mon, 29 Jan 2001 11:37:47 -0800
- Cc: Jeffrey Oldham <oldham at codesourcery dot com>
- Organization: CodeSourcery LLC
I patched gcc/config/mips/iris6.h to indicate that the default Irix6.5
linker does not support the C++ `init_priority' attribute. Jason
Merrill suggested I use "!flag_gnu_linker" for the associated macro.
2001-01-29 Jeffrey Oldham <oldham@codesourcery.com>
* config/mips/iris6.h (SUPPORTS_INIT_PRIORITY): Revise definition
to use flag_gnu_linker.
Tested on mips-sgi-irix6.5.
Approved by Mark Mitchell (mark@codesourcery.com)
Thanks,
Jeffrey D. Oldham
oldham@codesourcery.com
Index: iris6.h
===================================================================
RCS file: /cvs/gcc/egcs/gcc/config/mips/iris6.h,v
retrieving revision 1.26
diff -c -p -r1.26 iris6.h
*** iris6.h 2001/01/15 03:33:56 1.26
--- iris6.h 2001/01/18 00:48:09
*************** Boston, MA 02111-1307, USA. */
*** 207,213 ****
/* Irix assembler does not support the init_priority C++ attribute. */
#undef SUPPORTS_INIT_PRIORITY
! #define SUPPORTS_INIT_PRIORITY 0
#define POPSECTION_ASM_OP "\t.popsection"
--- 207,213 ----
/* Irix assembler does not support the init_priority C++ attribute. */
#undef SUPPORTS_INIT_PRIORITY
! #define SUPPORTS_INIT_PRIORITY (!flag_gnu_linker)
#define POPSECTION_ASM_OP "\t.popsection"