disable -ffunction-sections warning

Catherine Moore clm@cygnus.com
Mon Mar 1 12:33:00 GMT 1999


I committed the following patch to egcs today.  It was approved
by Jim Wilson.

--catherine

Fri Feb 26 14:52:21 1999  Catherine Moore  <clm@cygnus.com>

	* toplev.c (compile_file):  Disable -ffunction-sections and
        debugging warning if the object format is elf.

Index: toplev.c
===================================================================
RCS file: /cvs/cvsfiles/devo/gcc/toplev.c,v
retrieving revision 1.348
diff -p -r1.348 toplev.c
*** toplev.c	1999/02/25 23:34:09	1.348
- --- toplev.c	1999/02/26 20:43:10
*************** compile_file (name)
*** 2964,2971 ****
- --- 2964,2973 ----
        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.

------- End of Forwarded Message



More information about the Gcc-patches mailing list