This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

disable -ffunction-sections warning


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



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]