aboutsummaryrefslogtreecommitdiff
path: root/gcc/config
diff options
context:
space:
mode:
authorKaveh R. Ghazi <ghazi@caip.rutgers.edu>2001-10-20 00:24:14 +0000
committerKaveh Ghazi <ghazi@gcc.gnu.org>2001-10-20 00:24:14 +0000
commitadf97f5809ecc5a286023e50fcf6302ad0f3f40a (patch)
tree53bf6c18456e2082ad3d7a7c5b471dcffda09399 /gcc/config
parent69bcf12417e8b2139aa1d54361ed01336f739489 (diff)
downloadgcc-adf97f5809ecc5a286023e50fcf6302ad0f3f40a.zip
gcc-adf97f5809ecc5a286023e50fcf6302ad0f3f40a.tar.gz
gcc-adf97f5809ecc5a286023e50fcf6302ad0f3f40a.tar.bz2
pe.c (arm_pe_unique_section): Const-ify.
* 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
Diffstat (limited to 'gcc/config')
-rw-r--r--gcc/config/arm/pe.c2
-rw-r--r--gcc/config/arm/pe.h4
2 files changed, 4 insertions, 2 deletions
diff --git a/gcc/config/arm/pe.c b/gcc/config/arm/pe.c
index 9e7e95a..8360f85 100644
--- a/gcc/config/arm/pe.c
+++ b/gcc/config/arm/pe.c
@@ -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. */
diff --git a/gcc/config/arm/pe.h b/gcc/config/arm/pe.h
index 6d4f61d..3a9ad7c 100644
--- a/gcc/config/arm/pe.h
+++ b/gcc/config/arm/pe.h
@@ -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
/* 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; \