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]

PATCH: Reverse SUPPORTS_INIT_PRIORITY Change to iris6.h


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"
  

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