Started by neroden, April 17, 2010, 08:31:46 AM
0 Members and 1 Guest are viewing this topic.
Quote(1) eliminates -ffunctions-sections. I'm pretty sure this doesn't do anything any more, and I can't find it in either the GCC or binutils manuals -- even really old ones.
-ffunction-sections-fdata-sections Place each function or data item into its own section in the output file if the target supports arbitrary sections. The name of the function or the name of the data item determines the section's name in the output file. Use these options on systems where the linker can perform optimizations to improve locality of reference in the instruction space. Most systems using the ELF object format and SPARC processors running Solaris 2 have linkers with such optimizations. AIX may have these optimizations in the future. Only use these options when there are significant benefits from doing so. When you specify these options, the assembler and linker will create larger object and executable files and will also be slower. You will not be able to use gprof on all systems if you specify this option and you may have problems with debugging if you specify both this option and -g.
Quote from: prissi on April 17, 2010, 10:23:57 PMExtract from current GCC manual:Code Select Expand-ffunction-sections
QuoteA last thing: Should asserting not be disabled anyhow, when DEBUG is not set? I remember at least one such bug report.
Quote from: prissi on April 18, 2010, 08:06:52 PMAccording to docu, "-fomit-frame-pointer" is also automatically turned on for and -O? level. So this can aparently go too.