toplev.c (process_options): Don't give -ffunction-sections may affect debugging warni...
authorMike Stump <mrs@apple.com>
Sat, 8 Jul 2006 00:16:38 +0000 (00:16 +0000)
committerMike Stump <mrs@gcc.gnu.org>
Sat, 8 Jul 2006 00:16:38 +0000 (00:16 +0000)
* toplev.c (process_options): Don't give -ffunction-sections may
affect debugging warning for Mach-O.

From-SVN: r115276

gcc/ChangeLog
gcc/toplev.c

index b846bdc7fac7f8380e83630414a546b048a35050..dbf0ace4eb808c1b2312c0fe87f0dca507c32aff 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 a9705a70b5bc386671926381f9c918e52592c9d5..f6ff302d1f4b476c16029a90a517927130788704 100644 (file)
@@ -1783,8 +1783,10 @@ 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.  */