OSDN Git Service

* toplev.c (process_options): Don't give -ffunction-sections may
authormrs <mrs@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 8 Jul 2006 00:16:38 +0000 (00:16 +0000)
committermrs <mrs@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 8 Jul 2006 00:16:38 +0000 (00:16 +0000)
affect debugging warning for Mach-O.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@115276 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/toplev.c

index b846bdc..dbf0ace 100644 (file)
@@ -1,3 +1,8 @@
+2006-07-07  Mike Stump  <mrs@apple.com>
+
+       * toplev.c (process_options): Don't give -ffunction-sections may
+       affect debugging warning for Mach-O.
+
 2006-07-07  James E Wilson  <wilson@specifix.com>
 
        * config/mips/mips.md (cpu): Add sb1a.
index a9705a7..f6ff302 100644 (file)
@@ -1783,9 +1783,11 @@ process_options (void)
     }
 
 #ifndef OBJECT_FORMAT_ELF
+#ifndef OBJECT_FORMAT_MACHO
   if (flag_function_sections && write_symbols != NO_DEBUG)
     warning (0, "-ffunction-sections may affect debugging on some targets");
 #endif
+#endif
 
   /* The presence of IEEE signaling NaNs, implies all math can trap.  */
   if (flag_signaling_nans)