toplev.c (compile_file): Disable -ffunction-sections and debugging warning if the...
authorCatherine Moore <clm@cygnus.com>
Mon, 1 Mar 1999 12:29:35 +0000 (12:29 +0000)
committerCatherine Moore <clm@gcc.gnu.org>
Mon, 1 Mar 1999 12:29:35 +0000 (07:29 -0500)
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

gcc/ChangeLog
gcc/toplev.c

index bdcf394ac73a49c9042bd2ddd6c93007bcc008d1..71bbb255666044940fd0664d48071153f2fb41b5 100644 (file)
@@ -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
index 252bd90e668b372ec3ac2bc53892cacecdd49ca7..66598483de68d95ce69b3333aa764bcfa63ae6df 100644 (file)
@@ -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.