+Thu Apr 19 19:15:26 2001 Jeffrey A Law (law@cygnus.com)
+
+ * config/pa/pa-linux.h (CPLUSPLUS_CPP_SPEC): Undefine.
+ * config/pa/pa.h (CPLUSPLuS_CPP_SPEC): Define.
+
+ * config/pa/som.h (ASM_OUTPUT_FUNCTION_PREFIX): Truncate subspace
+ name at 32 total characters.
+ (ASM_OUTPUT_SECTION_NAME): Similarly. Also, only support placing
+ functions in named sections -- data items can still go into unique
+ sections, but they have normal names (ie $LIT$ and $DATA$).
+
+ * config/pa/som.h (SUPPORTS_INIT_PRIORITY): SOM does not support
+ INIT_PRIORITY.
+
2001-04-19 DJ Delorie <dj@redhat.com>
* config/alpha/vms.h: Change OBJECT_SUFFIX and EXECUTABLE_SUFFIX
%{!ansi: -D_HPUX_SOURCE -D_HIUX_SOURCE -D__STDC_EXT__} \
%{threads: -D_REENTRANT -D_DCE_THREADS}"
+#define CPLUSPLUS_CPP_SPEC "\
+-D_HPUX_SOURCE -D_HIUX_SOURCE -D__STDC_EXT__ \
+%{mpa-risc-1-0:%(cpp_pa10)} \
+%{mpa-risc-1-1:%(cpp_pa11)} \
+%{msnake:%(cpp_pa11)} \
+%{mpa-risc-2-0:%(cpp_pa20)} \
+%{!mpa-risc-1-0:%{!mpa-risc-1-1:%{!mpa-risc-2-0:%{!msnake:%(cpp_cpu_default)}}}} \
+%{m64bit:%(cpp_64bit)} \
+%{!m64bit:%(cpp_64bit_default)} \
+%{threads: -D_REENTRANT -D_DCE_THREADS}"
+
/* Defines for a K&R CC */
#define CC1_SPEC "%{pg:} %{p:}"
fputs ("\t.NSUBSPA $CODE$,QUAD=0,ALIGN=8,ACCESS=44,CODE_ONLY\n", FILE); \
else if (TARGET_GAS) \
fprintf (FILE, \
- "\t.SUBSPA .%s\n", name); \
+ "\t.SUBSPA .%.30s\n", name); \
}
#define ASM_DECLARE_FUNCTION_NAME(FILE, NAME, DECL) \
if (DECL && TREE_CODE (DECL) == FUNCTION_DECL) \
{ \
fputs ("\t.SPACE $TEXT$\n", FILE); \
- fprintf (FILE, \
- "\t.SUBSPA %s%s%s,QUAD=0,ALIGN=8,ACCESS=44,CODE_ONLY,SORT=24\n",\
- TARGET_GAS ? "" : "$", NAME, TARGET_GAS ? "" : "$"); \
+ if (TARGET_GAS) \
+ fprintf (FILE, \
+ "\t.NSUBSPA %.31s,QUAD=0,ALIGN=8,ACCESS=44,CODE_ONLY,SORT=24\n", NAME);\
+ else \
+ fprintf (FILE, \
+ "\t.NSUBSPA $%.29s$,QUAD=0,ALIGN=8,ACCESS=44,CODE_ONLY,SORT=24\n", NAME);\
} \
- else if (DECL && DECL_READONLY_SECTION (DECL, RELOC)) \
+ else if (!RELOC && DECL && DECL_READONLY_SECTION (DECL, RELOC))\
{ \
fputs ("\t.SPACE $TEXT$\n", FILE); \
fprintf (FILE, \
- "\t.SUBSPA %s%s%s,QUAD=0,ALIGN=8,ACCESS=44,SORT=16\n", \
- TARGET_GAS ? "" : "$", NAME, TARGET_GAS ? "" : "$"); \
+ "\t.NSUBSPA $LIT$,QUAD=0,ALIGN=8,ACCESS=44,SORT=16\n");\
} \
else \
{ \
fputs ("\t.SPACE $PRIVATE$\n", FILE); \
fprintf (FILE, \
- "\t.SUBSPA %s%s%s,QUAD=1,ALIGN=8,ACCESS=31,SORT=16\n", \
- TARGET_GAS ? "" : "$", NAME, TARGET_GAS ? "" : "$"); \
+ "\t.NSUBSPA $DATA$,QUAD=1,ALIGN=8,ACCESS=31,SORT=16\n");\
}
/* FIXME: HPUX ld generates incorrect GOT entries for "T" fixups
} while (0)
#endif
#endif
+
+/* SOM does not support the init_priority C++ attribute. */
+#undef SUPPORTS_INIT_PRIORITY
+#define SUPPORTS_INIT_PRIORITY 0
+