diff options
author | Steven Bosscher <s.bosscher@student.tudelft.nl> | 2003-01-26 14:40:22 +0000 |
---|---|---|
committer | Andreas Jaeger <aj@suse.de> | 2003-01-26 14:40:22 +0000 |
commit | 344496bf628a70eef32a79b19225c1fc49711531 (patch) | |
tree | 1ad40e789d391d8f3140aebb5c259c027424f6a7 /gcc/config/elfos.h | |
parent | 9970581adc8627b8f83864c9fcacacba7fab35a1 (diff) |
2003-01-26 Steven Bosscher <s.bosscher@student.tudelft.nl>
* config/avr/avr.h, config/cris/aout.h, config/elfos.h,
config/i386/freebsd-aout.h, config/mips/iris6.h: Undefine
ASM_FINISH_DECLARE_OBJECT before defining it.
* toplev.c (rest_of_decl_compilation): Don't define
ASM_FINISH_DECLARE_OBJECT. Only use it if it is defined.
(rest_of_type_compilation): Don't ATTRIBUTE_UNUSED function
parameters for DWARF2 targets because they _are_ used.
git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@61851 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/elfos.h')
-rw-r--r-- | gcc/config/elfos.h | 33 |
1 files changed, 17 insertions, 16 deletions
diff --git a/gcc/config/elfos.h b/gcc/config/elfos.h index 3254a0ce621..5925d256012 100644 --- a/gcc/config/elfos.h +++ b/gcc/config/elfos.h @@ -1,6 +1,6 @@ /* elfos.h -- operating system specific defines to be used when targeting GCC for some generic ELF system - Copyright (C) 1991, 1994, 1995, 1999, 2000, 2001, 2002 + Copyright (C) 1991, 1994, 1995, 1999, 2000, 2001, 2002, 2003 Free Software Foundation, Inc. Based on svr4.h contributed by Ron Guilmette (rfg@netcom.com). @@ -220,7 +220,7 @@ Boston, MA 02111-1307, USA. */ #endif #define MAKE_DECL_ONE_ONLY(DECL) (DECL_WEAK (DECL) = 1) - + /* Switch into a generic section. */ #define TARGET_ASM_NAMED_SECTION default_elf_asm_named_section @@ -240,11 +240,11 @@ Boston, MA 02111-1307, USA. */ /* This is how we tell the assembler that a symbol is weak. */ -#define ASM_WEAKEN_LABEL(FILE, NAME) \ +#define ASM_WEAKEN_LABEL(FILE, NAME) \ do \ { \ fputs ("\t.weak\t", (FILE)); \ - assemble_name ((FILE), (NAME)); \ + assemble_name ((FILE), (NAME)); \ fputc ('\n', (FILE)); \ } \ while (0) @@ -313,12 +313,13 @@ Boston, MA 02111-1307, USA. */ size_directive_output was set by ASM_DECLARE_OBJECT_NAME when it was run for the same decl. */ +#undef ASM_FINISH_DECLARE_OBJECT #define ASM_FINISH_DECLARE_OBJECT(FILE, DECL, TOP_LEVEL, AT_END)\ do \ { \ const char *name = XSTR (XEXP (DECL_RTL (DECL), 0), 0); \ HOST_WIDE_INT size; \ - \ + \ if (!flag_inhibit_size_directive \ && DECL_SIZE (DECL) \ && ! AT_END && TOP_LEVEL \ @@ -396,13 +397,13 @@ Boston, MA 02111-1307, USA. */ register const unsigned char *_limited_str = \ (const unsigned char *) (STR); \ register unsigned ch; \ - \ + \ fprintf ((FILE), "%s\"", STRING_ASM_OP); \ - \ + \ for (; (ch = *_limited_str); _limited_str++) \ { \ register int escape; \ - \ + \ switch (escape = ESCAPES[ch]) \ { \ case 0: \ @@ -417,7 +418,7 @@ Boston, MA 02111-1307, USA. */ break; \ } \ } \ - \ + \ fprintf ((FILE), "\"\n"); \ } \ while (0) @@ -441,16 +442,16 @@ Boston, MA 02111-1307, USA. */ for (; _ascii_bytes < limit; _ascii_bytes++) \ { \ register const unsigned char *p; \ - \ + \ if (bytes_in_chunk >= 60) \ { \ fprintf ((FILE), "\"\n"); \ bytes_in_chunk = 0; \ } \ - \ + \ for (p = _ascii_bytes; p < limit && *p != '\0'; p++) \ continue; \ - \ + \ if (p < limit && (p - _ascii_bytes) <= (long)STRING_LIMIT) \ { \ if (bytes_in_chunk > 0) \ @@ -458,7 +459,7 @@ Boston, MA 02111-1307, USA. */ fprintf ((FILE), "\"\n"); \ bytes_in_chunk = 0; \ } \ - \ + \ ASM_OUTPUT_LIMITED_STRING ((FILE), _ascii_bytes); \ _ascii_bytes = p; \ } \ @@ -466,10 +467,10 @@ Boston, MA 02111-1307, USA. */ { \ register int escape; \ register unsigned ch; \ - \ + \ if (bytes_in_chunk == 0) \ fprintf ((FILE), "%s\"", ASCII_DATA_ASM_OP); \ - \ + \ switch (escape = ESCAPES[ch = *_ascii_bytes]) \ { \ case 0: \ @@ -488,7 +489,7 @@ Boston, MA 02111-1307, USA. */ } \ } \ } \ - \ + \ if (bytes_in_chunk > 0) \ fprintf ((FILE), "\"\n"); \ } \ |