Set default to -fomit-frame-pointer
authorWilco Dijkstra <wdijkstr@arm.com>
Thu, 16 Nov 2017 11:44:30 +0000 (11:44 +0000)
committerWilco Dijkstra <wilco@gcc.gnu.org>
Thu, 16 Nov 2017 11:44:30 +0000 (11:44 +0000)
commitefeee67f4c9fd021d2594e0271c84b7e90e63d3d
tree432424fb9e6c33f3153f0e3ae0eda180a2acf6af
parent9e780144ce070e286c4a0d467ed170408e1b3b47
Set default to -fomit-frame-pointer

Almost all targets add an explict -fomit-frame-pointer in the target specific
options.  Rather than doing this in a target-specific way, do this in the
generic options so it works identically across all targets.  In many cases the
target no longer needs to define TARGET_OPTION_OPTIMIZATION_TABLE, reducing
the amount of target code.

    gcc/
* opts.c (default_options_table): Add OPT_fomit_frame_pointer entry.
* common/config/alpha/alpha-common.c (TARGET_OPTION_OPTIMIZATION_TABLE):
  Remove OPT_fomit_frame_pointer entry.
* common/config/arc/arc-common.c: Likewise.
* common/config/arm/arm-common.c: Likewise.
* common/config/avr/avr-common.c: Likewise.
* common/config/c6x/c6x-common.c: Likewise.
* common/config/cr16/cr16-common.c: Likewise.
* common/config/cris/cris-common.c: Likewise.
* common/config/epiphany/epiphany-common.c: Likewise.
* common/config/fr30/fr30-common.c: Likewise.
* common/config/frv/frv-common.c: Likewise.
* common/config/ia64/ia64-common.c: Likewise.
* common/config/iq2000/iq2000-common.c: Likewise.
* common/config/lm32/lm32-common.c: Likewise.
* common/config/m32r/m32r-common.c: Likewise.
* common/config/mcore/mcore-common.c: Likewise.
* common/config/microblaze/microblaze-common.c: Likewise.
* common/config/mips/mips-common.c: Likewise.
* common/config/mmix/mmix-common.c: Likewise.
* common/config/mn10300/mn10300-common.c: Likewise.
* common/config/nios2/nios2-common.c: Likewise.
* common/config/pa/pa-common.c: Likewise.
* common/config/pdp11/pdp11-common.c: Likewise.
* common/config/powerpcspe/powerpcspe-common.c: Likewise.
* common/config/riscv/riscv-common.c: Likewise.
* common/config/rs6000/rs6000-common.c: Likewise.
* common/config/rx/rx-common.c: Likewise.
* common/config/s390/s390-common.c: Likewise.
* common/config/sh/sh-common.c: Likewise.
* common/config/sparc/sparc-common.c: Likewise.
* common/config/tilegx/tilegx-common.c: Likewise.
* common/config/tilepro/tilepro-common.c: Likewise.
* common/config/v850/v850-common.c: Likewise.
* common/config/visium/visium-common.c: Likewise.
* common/config/xstormy16/xstormy16-common.c: Likewise.
* common/config/xtensa/xtensa-common.c: Likewise.

    doc/
* invoke.texi (-fomit-frame-pointer): Update documentation.

From-SVN: r254815
38 files changed:
gcc/ChangeLog
gcc/common/config/alpha/alpha-common.c
gcc/common/config/arc/arc-common.c
gcc/common/config/arm/arm-common.c
gcc/common/config/avr/avr-common.c
gcc/common/config/c6x/c6x-common.c
gcc/common/config/cr16/cr16-common.c
gcc/common/config/cris/cris-common.c
gcc/common/config/epiphany/epiphany-common.c
gcc/common/config/fr30/fr30-common.c
gcc/common/config/frv/frv-common.c
gcc/common/config/ia64/ia64-common.c
gcc/common/config/iq2000/iq2000-common.c
gcc/common/config/lm32/lm32-common.c
gcc/common/config/m32r/m32r-common.c
gcc/common/config/mcore/mcore-common.c
gcc/common/config/microblaze/microblaze-common.c
gcc/common/config/mips/mips-common.c
gcc/common/config/mmix/mmix-common.c
gcc/common/config/mn10300/mn10300-common.c
gcc/common/config/nios2/nios2-common.c
gcc/common/config/pa/pa-common.c
gcc/common/config/pdp11/pdp11-common.c
gcc/common/config/powerpcspe/powerpcspe-common.c
gcc/common/config/riscv/riscv-common.c
gcc/common/config/rs6000/rs6000-common.c
gcc/common/config/rx/rx-common.c
gcc/common/config/s390/s390-common.c
gcc/common/config/sh/sh-common.c
gcc/common/config/sparc/sparc-common.c
gcc/common/config/tilegx/tilegx-common.c
gcc/common/config/tilepro/tilepro-common.c
gcc/common/config/v850/v850-common.c
gcc/common/config/visium/visium-common.c
gcc/common/config/xstormy16/xstormy16-common.c
gcc/common/config/xtensa/xtensa-common.c
gcc/doc/invoke.texi
gcc/opts.c