VirtualBox

Changeset 16839 in vbox


Ignore:
Timestamp:
Feb 17, 2009 1:24:19 PM (16 years ago)
Author:
vboxsync
Message:

properly detect gcc<=3.3 for recompiler_new (intern issue #3649)

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Config.kmk

    r16829 r16839  
    15861586        $(APPEND) '$@' 'VBOX_GCC_mtune-generic         ?= $(call VBOX_GCC_CHECK_CC,-mtune=generic,)'
    15871587        $(APPEND) '$@' 'VBOX_LD_as_needed              ?= $(call VBOX_GCC_CHECK_LD,--as-needed,)'
     1588# gcc version < 3.4 has a bug in handling __attribute__((regparm(3))).
     1589# See http://osdir.com/ml/gcc.prs/2002-08/msg00223.html and probably http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20004
     1590        $(APPEND) '$@' 'ifneq ($$(int-lt $$(VBOX_GCC_VERSION_CC),30400),)'
     1591        $(APPEND) '$@' ' VBOX_GCC_BUGGY_REGPARM        ?= 1'
     1592        $(APPEND) '$@' 'endif'
    15881593ifneq ($(KBUILD_TARGET),l4)
    15891594# Set default attribute for ELF and MACH-O symbols to ``hidden'' to reduce the number
  • trunk/src/recompiler_new/Makefile.kmk

    r16059 r16839  
    100100$(REM_MOD)_CFLAGS.profile  = $($(REM_MOD)_CFLAGS.release)
    101101$(REM_MOD)_DEFS           += IN_RING3 $(ARCH_BITS_DEFS)
    102 # Temporary hack, to allow running with oldish GCC
     102# workaround the regparm bug in gcc <= 3.3
    103103$(REM_MOD)_DEFS.win.x86   += GCC_WITH_BUGGY_REGPARM
    104104else  # !win
    105105$(REM_MOD)_TEMPLATE        = VBOXR3NP
    106 $(REM_MOD)_DEFS            =
     106# workaround the regparm bug in gcc <= 3.3
     107$(REM_MOD)_DEFS            = $(if $(VBOX_GCC_BUGGY_REGPARM),GCC_WITH_BUGGY_REGPARM,)
    107108endif # !win
    108109$(REM_MOD)_DEFS           += IN_REM_R3 REM_INCLUDE_CPU_H
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