som.h (NM_FLAGS): Remove.
authorJeffrey A Law <law@cygnus.com>
Mon, 14 May 2001 14:54:53 +0000 (14:54 +0000)
committerJeff Law <law@gcc.gnu.org>
Mon, 14 May 2001 14:54:53 +0000 (08:54 -0600)
        * config/pa/som.h (NM_FLAGS): Remove.
        (ASM_OUTPUT_FUNCTION_PREFIX): No longer truncate subspace names.
        (ASM_OUTPUT_SECTION_NAME): Remove.
        (MAKE_DECL_ONE_ONLY, ASM_WEAKEN_LABEL): Likewise.

From-SVN: r42068

gcc/ChangeLog
gcc/config/pa/som.h

index 2ab8703..2f1b34c 100644 (file)
@@ -1,3 +1,10 @@
+Mon May 14 08:56:47 2001  Jeffrey A Law  (law@cygnus.com)
+
+       * config/pa/som.h (NM_FLAGS): Remove.
+       (ASM_OUTPUT_FUNCTION_PREFIX): No longer truncate subspace names.
+       (ASM_OUTPUT_SECTION_NAME): Remove.
+       (MAKE_DECL_ONE_ONLY, ASM_WEAKEN_LABEL): Likewise.
+
 2001-05-14  Mark Mitchell  <mark@codesourcery.com>
 
        * regrename.c (regrename_optimize): Do not rename registers to
index 787321e..2b42150 100644 (file)
@@ -51,12 +51,6 @@ Boston, MA 02111-1307, USA.  */
   fprintf (FILE,                                                       \
           "\t.stabs \"\",%d,0,0,L$text_end0000\nL$text_end0000:\n", N_SO)
 
-/* The HP supplied NM will print out the subspace names for each symbol it
-   finds, which can cause collect2 to find false matches when searching
-   for ctors/dtors.  The "-p" option changes the output to not include
-   subspace names.  The "-n" sorting option is unnecessary.  */
-#define NM_FLAGS "-p"
-
 /* HPUX has a program 'chatr' to list the dependencies of dynamically
    linked executables and shared libraries.  */
 #define LDD_SUFFIX "chatr"
@@ -133,7 +127,7 @@ do {                                                                \
       fputs ("\t.NSUBSPA $CODE$,QUAD=0,ALIGN=8,ACCESS=44,CODE_ONLY\n", FILE); \
     else if (TARGET_GAS)                                               \
       fprintf (FILE,                                                   \
-              "\t.SUBSPA .%.30s\n", name);                             \
+              "\t.SUBSPA .%s\n", name);                                \
   }
     
 #define ASM_DECLARE_FUNCTION_NAME(FILE, NAME, DECL) \
@@ -267,35 +261,6 @@ do {  \
 #define EXTRA_SECTIONS in_readonly_data, in_ctors, in_dtors
 #endif
 
-/* Switch into a generic section.
-   This is currently only used to support section attributes.
-
-   We make the section read-only and executable for a function decl,
-   read-only for a const data decl, and writable for a non-const data decl.  */
-#define ASM_OUTPUT_SECTION_NAME(FILE, DECL, NAME, RELOC) \
-  if (DECL && TREE_CODE (DECL) == FUNCTION_DECL)               \
-    {                                                          \
-      fputs ("\t.SPACE $TEXT$\n", FILE);                       \
-      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 (!RELOC && DECL && DECL_READONLY_SECTION (DECL, RELOC))\
-    {                                                          \
-      fputs ("\t.SPACE $TEXT$\n", FILE);                       \
-      fprintf (FILE,                                           \
-              "\t.NSUBSPA $LIT$,QUAD=0,ALIGN=8,ACCESS=44,SORT=16\n");\
-    }                                                          \
-  else                                                         \
-    {                                                          \
-      fputs ("\t.SPACE $PRIVATE$\n", FILE);                    \
-      fprintf (FILE,                                           \
-              "\t.NSUBSPA $DATA$,QUAD=1,ALIGN=8,ACCESS=31,SORT=16\n");\
-    }
-
 /* FIXME: HPUX ld generates incorrect GOT entries for "T" fixups
    which reference data within the $TEXT$ space (for example constant
    strings in the $LIT$ subspace).
@@ -385,31 +350,6 @@ do {                                               \
 /* The .align directive in the HP assembler allows up to a 32 alignment.  */
 #define MAX_OFILE_ALIGNMENT 32768
 
-/* This has been disabled for now.  As best as I call tell we are not
-   following the proper conventions for secondary definitions as we
-   do not emit a duplicate symbol with '_' prefix for each secondary
-   definition.  This appears to be the cause of HP's tools core
-   dumping and the dynamic linker reporting undefined symbols.  */
-#if 0
-#ifdef HAVE_GAS_WEAK
-#define MAKE_DECL_ONE_ONLY(DECL) (DECL_WEAK (DECL) = 1)
-
-/* This is how we tell the assembler that a symbol is weak.  */
-
-#define ASM_WEAKEN_LABEL(FILE,NAME) \
-  do { fputs ("\t.weak\t", FILE); \
-       assemble_name (FILE, NAME); \
-       fputc ('\n', FILE); \
-       if (! FUNCTION_NAME_P (NAME)) \
-         { \
-           fputs ("\t.EXPORT ", FILE); \
-           assemble_name (FILE, NAME); \
-           fputs (",DATA\n", FILE); \
-         } \
-  } while (0)
-#endif
-#endif
-
 /* SOM does not support the init_priority C++ attribute.  */
 #undef SUPPORTS_INIT_PRIORITY
 #define SUPPORTS_INIT_PRIORITY 0