VirtualBox

Changeset 2680 in vbox for trunk/Config.kmk


Ignore:
Timestamp:
May 16, 2007 9:09:31 PM (18 years ago)
Author:
vboxsync
Message:

use -mtune=generic as optimization flag if possible (introduced with gcc-4.2)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Config.kmk

    r2677 r2680  
    627627 # -funwind-tables provides support for backtraces in gdb then.
    628628 VBOX_GCC_FP  ?= -fno-omit-frame-pointer
    629  VBOX_GCC_OPT ?= -O2
     629 VBOX_GCC_OPT ?= -O2 $(VBOX_GCC_mtune-generic)
    630630 VBOX_VCC_FP  ?= -Oy-
    631631 ifdef VBOX_USE_VCC80
     
    635635 endif
    636636 VBOX_GCC_GC_FP  ?= -fno-omit-frame-pointer
    637  VBOX_GCC_GC_OPT ?= -O2
     637 VBOX_GCC_GC_OPT ?= -O2 $(VBOX_GCC_mtune-generic)
    638638 VBOX_VCC_GC_FP  ?= -Oy-
    639639 ifdef VBOX_USE_VCC80
     
    853853        $(APPEND) "$@" "VBOX_GCC_Wno-extra             ?= $(call VBOX_GCC_CHECK_CXX,-Wno-extra)"
    854854        $(APPEND) "$@" "VBOX_GCC_fno-stack-protector   ?= $(call VBOX_GCC_CHECK_CC,-fno-stack-protector,)"
     855        @# Produce code optimized for the most common IA32/AMD64/EM64T processors. Introduced with gcc version 4.2.
     856        $(APPEND) "$@" "VBOX_GCC_mtune-generic         ?= $(call VBOX_GCC_CHECK_CC,-mtune=generic,)"
    855857ifneq ($(BUILD_TARGET),l4)
    856858        @# Set default attribute for ELF and MACH-O symbols to ``hidden'' to reduce the number
    857859        @# of relocation entries and PLT indirections in shared libraries. Don't allow for gcc version < 4.
    858860        $(APPEND) "$@" "ifneq ($$(int-ge $$(VBOX_GCC_VERSION_CC),40000),)"
    859         $(APPEND) "$@" " VBOX_GCC_fvisibility-hidden    ?= $(call VBOX_GCC_CHECK_CC,-fvisibility=hidden -DVBOX_HAVE_VISIBILITY_HIDDEN,)"
     861        $(APPEND) "$@" " VBOX_GCC_fvisibility-hidden   ?= $(call VBOX_GCC_CHECK_CC,-fvisibility=hidden -DVBOX_HAVE_VISIBILITY_HIDDEN,)"
    860862        $(APPEND) "$@" "endif"
    861863endif
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette