pe.c (arm_pe_unique_section): Const-ify.
authorKaveh R. Ghazi <ghazi@caip.rutgers.edu>
Sat, 20 Oct 2001 00:24:14 +0000 (00:24 +0000)
committerKaveh Ghazi <ghazi@gcc.gnu.org>
Sat, 20 Oct 2001 00:24:14 +0000 (00:24 +0000)
* pe.c (arm_pe_unique_section): Const-ify.
* pe.h (TARGET_ASM_NAMED_SECTION): Undef before defining.
(switch_to_section): Add static prototype.

* output.h (drectve_section): Prototype.

From-SVN: r46368

gcc/ChangeLog
gcc/config/arm/pe.c
gcc/config/arm/pe.h
gcc/output.h

index 26c6fd3bee60e4338e2d54e5ab81761c82d0fb64..45b9bb673a3f64c4681e51dde2ad5275c4e519a1 100644 (file)
@@ -1,3 +1,11 @@
+2001-10-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
+
+       * pe.c (arm_pe_unique_section): Const-ify.
+       * pe.h (TARGET_ASM_NAMED_SECTION): Undef before defining.
+       (switch_to_section): Add static prototype.
+
+       * output.h (drectve_section): Prototype.
+
 2001-10-19  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
 
        * config.gcc (i[34567]86-*-gnu*, arc-*-elf*, d30v-*,
index 9e7e95a5765a2ab18090b2479978ade362536b25..8360f85c44caa2da5d5789393e61cb150e9c4fb6 100644 (file)
@@ -257,7 +257,7 @@ arm_pe_unique_section (decl, reloc)
   int len;
   const char * name;
   char * string;
-  char * prefix;
+  const char * prefix;
 
   name = IDENTIFIER_POINTER (DECL_ASSEMBLER_NAME (decl));
   /* Strip off any encoding in fnname.  */
index 6d4f61d942fe5347d080a5e82affd83c30590815..3a9ad7cdff593f664b096de5a905a090aa120ecb 100644 (file)
@@ -123,6 +123,7 @@ Boston, MA 02111-1307, USA.  */
 #define SUPPORTS_ONE_ONLY 1
 
 /* Switch into a generic section.  */
+#undef TARGET_ASM_NAMED_SECTION
 #define TARGET_ASM_NAMED_SECTION  default_pe_asm_named_section
 \f
 /* This outputs a lot of .req's to define alias for various registers.
@@ -234,7 +235,8 @@ drectve_section ()                                                  \
    ASM_DECLARE_OBJECT_NAME and then switch back to the original section
    afterwards.  */
 #define SWITCH_TO_SECTION_FUNCTION                             \
-void                                                           \
+static void switch_to_section PARAMS ((enum in_section, tree)); \
+static void                                                    \
 switch_to_section (section, decl)                              \
      enum in_section section;                                  \
      tree decl;                                                        \
index 1e97c21253633f7649db37a31f95ef3d2df3ad8a..18afc85c6e232c265af4ed72962b4af7bd500194 100644 (file)
@@ -194,6 +194,10 @@ extern void fini_section PARAMS ((void));
 extern void tdesc_section PARAMS ((void));
 #endif
 
+#ifdef DRECTVE_SECTION_ASM_OP
+extern void drectve_section PARAMS ((void));
+#endif
+
 #ifdef TREE_CODE
 /* Tell assembler to change to section NAME for DECL.
    If DECL is NULL, just switch to section NAME.