Commit adf97f58 by Kaveh R. Ghazi Committed by Kaveh Ghazi

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
parent 69bcf124
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> 2001-10-19 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
* config.gcc (i[34567]86-*-gnu*, arc-*-elf*, d30v-*, * config.gcc (i[34567]86-*-gnu*, arc-*-elf*, d30v-*,
......
...@@ -257,7 +257,7 @@ arm_pe_unique_section (decl, reloc) ...@@ -257,7 +257,7 @@ arm_pe_unique_section (decl, reloc)
int len; int len;
const char * name; const char * name;
char * string; char * string;
char * prefix; const char * prefix;
name = IDENTIFIER_POINTER (DECL_ASSEMBLER_NAME (decl)); name = IDENTIFIER_POINTER (DECL_ASSEMBLER_NAME (decl));
/* Strip off any encoding in fnname. */ /* Strip off any encoding in fnname. */
......
...@@ -123,6 +123,7 @@ Boston, MA 02111-1307, USA. */ ...@@ -123,6 +123,7 @@ Boston, MA 02111-1307, USA. */
#define SUPPORTS_ONE_ONLY 1 #define SUPPORTS_ONE_ONLY 1
/* Switch into a generic section. */ /* Switch into a generic section. */
#undef TARGET_ASM_NAMED_SECTION
#define TARGET_ASM_NAMED_SECTION default_pe_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. /* This outputs a lot of .req's to define alias for various registers.
...@@ -234,7 +235,8 @@ drectve_section () \ ...@@ -234,7 +235,8 @@ drectve_section () \
ASM_DECLARE_OBJECT_NAME and then switch back to the original section ASM_DECLARE_OBJECT_NAME and then switch back to the original section
afterwards. */ afterwards. */
#define SWITCH_TO_SECTION_FUNCTION \ #define SWITCH_TO_SECTION_FUNCTION \
void \ static void switch_to_section PARAMS ((enum in_section, tree)); \
static void \
switch_to_section (section, decl) \ switch_to_section (section, decl) \
enum in_section section; \ enum in_section section; \
tree decl; \ tree decl; \
......
...@@ -194,6 +194,10 @@ extern void fini_section PARAMS ((void)); ...@@ -194,6 +194,10 @@ extern void fini_section PARAMS ((void));
extern void tdesc_section PARAMS ((void)); extern void tdesc_section PARAMS ((void));
#endif #endif
#ifdef DRECTVE_SECTION_ASM_OP
extern void drectve_section PARAMS ((void));
#endif
#ifdef TREE_CODE #ifdef TREE_CODE
/* Tell assembler to change to section NAME for DECL. /* Tell assembler to change to section NAME for DECL.
If DECL is NULL, just switch to section NAME. If DECL is NULL, just switch to section NAME.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment