aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCatherine Moore <clm@cygnus.com>1999-03-01 12:29:35 +0000
committerCatherine Moore <clm@gcc.gnu.org>1999-03-01 07:29:35 -0500
commit1746404be27edcd34767c796d4fef006857d24f6 (patch)
treea3599d4a2a4bb097206de24a972c3c513d3b6f22
parenta653b93fbd262fcb9394aa4a291424ffefcfab57 (diff)
downloadgcc-1746404be27edcd34767c796d4fef006857d24f6.zip
gcc-1746404be27edcd34767c796d4fef006857d24f6.tar.gz
gcc-1746404be27edcd34767c796d4fef006857d24f6.tar.bz2
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 <clm@cygnus.com> * toplev.c (compile_file): Disable -ffunction-sections and debugging warning if the object format is elf. From-SVN: r25514
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/toplev.c2
2 files changed, 7 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index bdcf394..71bbb25 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+Mon Mar 1 14:23:36 1999 Catherine Moore <clm@cygnus.com>
+
+ * 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 <vmakarov@cygnus.com>
* config/h8300/h8300.c (print_operand): Use 16 bit addressing
diff --git a/gcc/toplev.c b/gcc/toplev.c
index 252bd90..6659848 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.