From 1746404be27edcd34767c796d4fef006857d24f6 Mon Sep 17 00:00:00 2001 From: Catherine Moore Date: Mon, 1 Mar 1999 12:29:35 +0000 Subject: [PATCH] toplev.c (compile_file): Disable -ffunction-sections and debugging warning if the object format is elf. Mon Mar 1 14:06:36 1999 Catherine Moore * toplev.c (compile_file): Disable -ffunction-sections and debugging warning if the object format is elf. From-SVN: r25514 --- gcc/ChangeLog | 5 +++++ gcc/toplev.c | 2 ++ 2 files changed, 7 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index bdcf394ac73..71bbb255666 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +Mon Mar 1 14:23:36 1999 Catherine Moore + + * toplev.c (compile_file): Disable -ffunction-sections and + debugging warning if the object format is elf. + Mon Mar 1 11:46:25 1999 Vladimir N. Makarov * config/h8300/h8300.c (print_operand): Use 16 bit addressing diff --git a/gcc/toplev.c b/gcc/toplev.c index 252bd90e668..66598483de6 100644 --- a/gcc/toplev.c +++ b/gcc/toplev.c @@ -2918,8 +2918,10 @@ compile_file (name) flag_function_sections = 0; } +#ifndef OBJECT_FORMAT_ELF if (flag_function_sections && write_symbols != NO_DEBUG) warning ("-ffunction-sections may affect debugging on some targets."); +#endif /* ??? Note: There used to be a conditional here to call assemble_zeros without fail if DBX_DEBUGGING_INFO is defined. -- 2.30.2