VirtualBox

Changeset 88199 in vbox for trunk/src/VBox/Main


Ignore:
Timestamp:
Mar 18, 2021 8:09:11 PM (4 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
143362
Message:

Main/Makefile.kmk: Downgrade gcc 7+ optimizations a little because they otherwise create symbols which are longer than dtrace can deal with on Solaris 11.4. The limit is reportedly 148 bytes. Not showing up on older Solaris because we use gcc without these aggressive optimizations which create those extra functions due to code reordering to streamline the likely taken path. No idea why this does not happen on Linux with new gcc and our own dtracei, because the mangling should be the same.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/Makefile.kmk

    r88028 r88199  
    313313 VBoxAPIWrap_INCS           += \
    314314        include
     315 if ("$(KBUILD_TARGET)" == "solaris" && $(VBOX_GCC_VERSION_CXX) >= 70000)
     316  # Avoid too long symbol names with Solaris 11.4 "dtrace: failed to link script .../VBoxAPI.d: failed to allocate space for probe"
     317  VBoxAPIWrap_CXXFLAGS.solaris += -freorder-blocks-algorithm=simple -fno-reorder-blocks-and-partition -fno-reorder-functions
     318 endif
    315319 VBoxAPIWrap_CLEAN           = \
    316320        $(wildcard $(VBoxAPIWrap_0_OUTDIR)/*.cpp) \
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