This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
PATCH: Reverse SUPPORTS_INIT_PRIORITY Change to iris6.h
- To: gcc-patches at gcc dot gnu dot org
- Subject: PATCH: Reverse SUPPORTS_INIT_PRIORITY Change to iris6.h
- From: Jeffrey Oldham <oldham at codesourcery dot com>
- Date: Thu, 1 Feb 2001 10:30:15 -0800
- Cc: Jeffrey Oldham <oldham at codesourcery dot com>
- Organization: CodeSourcery LLC
SUPPORTS_INIT_PRIORITY is nonzero if the linker supports the C++
extension 'init_priority'. Three days ago, I revised the definition
to use 'flag_gnu_linker'. On 'my' Irix6.5 computer, init_priority is
not supported but flag_gnu_linker is nonzero. I was not aware that
this flag indicates the linker will run constructors placed in the
.init section, not whether the gnu linker is used. This patch
reverses the change.
2001-02-01 Jeffrey Oldham <oldham@codesourcery.com>
* config/mips/iris6.h (SUPPORTS_INIT_PRIORITY): Reverse change of
2001-Jan-29.
Untested since it reverts the system to a previous state.
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.27
diff -c -p -r1.27 iris6.h
*** iris6.h 2001/01/29 19:36:52 1.27
--- iris6.h 2001/02/01 17:19:37
*************** 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 (!flag_gnu_linker)
#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 0
#define POPSECTION_ASM_OP "\t.popsection"