This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [m68k] Remove dead code


On Friday 22 August 2003 11:09, Gunther Nikl wrote:
> On Fri, Aug 22, 2003 at 06:34:56AM +0200, Bernardo Innocenti wrote:
> > This patch removes some more dead code from the m68k back-end.
> >
> > 2003-08-22  Bernardo Innocenti  <bernie@develer.com>
> >
> > 	* gcc/config/m68k/m68k.c (m68k_coff_asm_named_section): Remove unused
> > 	function.
> > 	* gcc/config/m68k/m68k.c (-m68k_svr3_asm_out_constructor): Likewise.
> >
> > diff -u -3 -p -u -p -r1.99 m68k.c
> > --- gcc/config/m68k/m68k.c	22 Aug 2003 04:02:50 -0000	1.99
> > +++ gcc/config/m68k/m68k.c	22 Aug 2003 04:30:11 -0000
> > @@ -53,10 +53,6 @@ static rtx find_addr_reg (rtx);
> >  static const char *singlemove_string (rtx *);
> >  static void m68k_output_function_prologue (FILE *, HOST_WIDE_INT);
> >  static void m68k_output_function_epilogue (FILE *, HOST_WIDE_INT);
> > -static void m68k_coff_asm_named_section (const char *, unsigned int);
>
>   Why do you remove that one? Its used by m68k/coff.h. Is COFF dead?

Oops, I didn't notice. But it can't possibly work because the function
is static and unused in m68k.c, not even through the
TARGET_ASM_NAMED_SECTION macro.

Now that you told me, I noticed that TARGET_ASM_NAMED_SECTION is also
defined in several places only used as a boolean flag:

./gcc/config/pa/pa.c:# ifdef TARGET_ASM_NAMED_SECTION
./gcc/config/pa/pa.c:# ifdef TARGET_ASM_NAMED_SECTION
./gcc/config/sh/coff.h:#define TARGET_ASM_NAMED_SECTION default_coff_asm_named_section
./gcc/config/c4x/c4x.h:#define TARGET_ASM_NAMED_SECTION c4x_asm_named_section
./gcc/config/arm/pe.h:#undef  TARGET_ASM_NAMED_SECTION
./gcc/config/arm/pe.h:#define TARGET_ASM_NAMED_SECTION  default_pe_asm_named_section
./gcc/config/arm/elf.h:#undef  TARGET_ASM_NAMED_SECTION
./gcc/config/arm/elf.h:#define TARGET_ASM_NAMED_SECTION  arm_elf_asm_named_section
./gcc/config/arm/coff.h:#define TARGET_ASM_NAMED_SECTION  default_coff_asm_named_section
./gcc/config/avr/avr.h:#define TARGET_ASM_NAMED_SECTION default_elf_asm_named_section
./gcc/config/i386/djgpp.h:#define TARGET_ASM_NAMED_SECTION  default_coff_asm_named_section
./gcc/config/i386/i386-coff.h:#define TARGET_ASM_NAMED_SECTION  default_coff_asm_named_section
./gcc/config/i386/cygming.h:#define TARGET_ASM_NAMED_SECTION  i386_pe_asm_named_section
./gcc/config/i386/i386-interix.h:#define TARGET_ASM_NAMED_SECTION  default_pe_asm_named_section
./gcc/config/i386/i386elf.h:#define TARGET_ASM_NAMED_SECTION  default_elf_asm_named_section
./gcc/config/cris/cris.c:/* The TARGET_ASM_NAMED_SECTION worker.
./gcc/config/m68k/coff.h:#undef TARGET_ASM_NAMED_SECTION
./gcc/config/m68k/coff.h:#define TARGET_ASM_NAMED_SECTION  m68k_coff_asm_named_section
./gcc/config/mips/elf.h:#undef  TARGET_ASM_NAMED_SECTION
./gcc/config/mips/elf.h:#define TARGET_ASM_NAMED_SECTION  default_elf_asm_named_section
./gcc/config/mips/elf64.h:#undef TARGET_ASM_NAMED_SECTION
./gcc/config/mips/elf64.h:#define TARGET_ASM_NAMED_SECTION  default_elf_asm_named_section
./gcc/config/mips/openbsd.h:#undef TARGET_ASM_NAMED_SECTION
./gcc/config/mips/openbsd.h:#define TARGET_ASM_NAMED_SECTION  default_elf_asm_named_section
./gcc/config/mips/iris5gas.h:#undef TARGET_ASM_NAMED_SECTION
./gcc/config/mips/iris5gas.h:#define TARGET_ASM_NAMED_SECTION  default_elf_asm_named_section
./gcc/config/mips/iris6.h:#undef TARGET_ASM_NAMED_SECTION
./gcc/config/mips/iris6.h:#define TARGET_ASM_NAMED_SECTION  iris6_asm_named_section
./gcc/config/mmix/mmix.h:#define TARGET_ASM_NAMED_SECTION default_elf_asm_named_section
./gcc/config/alpha/unicosmk.h:#define TARGET_ASM_NAMED_SECTION unicosmk_asm_named_section
./gcc/config/alpha/elf.h:#define TARGET_ASM_NAMED_SECTION  default_elf_asm_named_section
./gcc/config/alpha/vms.h:#define TARGET_ASM_NAMED_SECTION vms_asm_named_section
./gcc/config/h8300/coff.h:#define TARGET_ASM_NAMED_SECTION h8300_asm_named_section
./gcc/config/mcore/mcore-pe.h:#undef TARGET_ASM_NAMED_SECTION
./gcc/config/mcore/mcore-pe.h:#define TARGET_ASM_NAMED_SECTION  default_pe_asm_named_section
./gcc/config/mcore/mcore.h:#undef TARGET_ASM_NAMED_SECTION
./gcc/config/mcore/mcore.h:#define TARGET_ASM_NAMED_SECTION  mcore_asm_named_section
./gcc/config/sparc/sysv4.h:#undef TARGET_ASM_NAMED_SECTION
./gcc/config/sparc/sysv4.h:#define TARGET_ASM_NAMED_SECTION  sparc_elf_asm_named_section
./gcc/config/elfos.h:#define TARGET_ASM_NAMED_SECTION  default_elf_asm_named_section
./gcc/config/rs6000/xcoff.h:#define TARGET_ASM_NAMED_SECTION  rs6000_xcoff_asm_named_section
./gcc/target-def.h:#  ifdef TARGET_ASM_NAMED_SECTION
./gcc/target-def.h:#  ifdef TARGET_ASM_NAMED_SECTION
./gcc/target-def.h:#ifdef TARGET_ASM_NAMED_SECTION
./gcc/target-def.h:#define TARGET_ASM_NAMED_SECTION default_no_named_section
./gcc/target-def.h:                     TARGET_ASM_NAMED_SECTION,               \
./gcc/defaults.h:#if defined (TARGET_ASM_NAMED_SECTION) && DWARF2_UNWIND_INFO \
./gcc/defaults.h:#if defined (TARGET_ASM_NAMED_SECTION) && SUPPORTS_WEAK


-- 
  // Bernardo Innocenti - Develer S.r.l., R&D dept.
\X/  http://www.develer.com/

Please don't send Word attachments - http://www.gnu.org/philosophy/no-word-attachments.html



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]