PATCH: HP-UX 11.2[23] doesn't support init_priority

Mark Mitchell mark@codesourcery.com
Fri Aug 22 21:13:00 GMT 2003


We don't support __attribute__((init_priority)) on HP-UX.  However,
the compiler wasn't being told that.  This change eliminates a bunch
of spurious failures in the C++ testsuite.

I've applied this patch to the branch and the mainline, after testing
on ia64-hp-hpux11.23.

Technically, this isn't a regression, but the patch is incredibly
safe.

--
Mark Mitchell
CodeSourcery, LLC
mark@codesourcery.com


2003-08-22  Mark Mitchell  <mark@codesourcery.com>

	* config/ia64/hpux.h (SUPPORTS_INIT_PRIORITY): Define to 0.

Index: hpux.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/ia64/hpux.h,v
retrieving revision 1.20.2.3
diff -c -5 -p -r1.20.2.3 hpux.h
*** hpux.h	27 Feb 2003 16:24:18 -0000	1.20.2.3
--- hpux.h	22 Aug 2003 21:06:07 -0000
*************** do {								\
*** 142,151 ****
--- 142,155 ----
  #define CTORS_SECTION_ASM_OP  "\t.section\t.init_array,\t\"aw\",\"init_array\""
  
  #undef DTORS_SECTION_ASM_OP
  #define DTORS_SECTION_ASM_OP  "\t.section\t.fini_array,\t\"aw\",\"fini_array\""
  
+ /* The init_array/fini_array technique does not permit the use of
+    initialization priorities.  */
+ #define SUPPORTS_INIT_PRIORITY 0
+ 
  #undef READONLY_DATA_SECTION_ASM_OP
  #define READONLY_DATA_SECTION_ASM_OP "\t.section\t.rodata,\t\"a\",\t\"progbits\""
  
  #undef DATA_SECTION_ASM_OP
  #define DATA_SECTION_ASM_OP "\t.section\t.data,\t\"aw\",\t\"progbits\""



More information about the Gcc-patches mailing list