VirtualBox

Changeset 95283 in vbox


Ignore:
Timestamp:
Jun 14, 2022 8:00:07 PM (2 years ago)
Author:
vboxsync
Message:

/Config.kmk,webservices: Apply -fno-printf-return-value to try prevent potential internal compiler errors in some GCC versions (9.x). The -fprintf-return-value optimization pass isn't helpful for us anyway, because the code isn't doing any sprintf or similar calls I can see, and when printf'ing anything it (void) the return.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Config.kmk

    r95274 r95283  
    32463246        $(QUIET)$(APPEND) '$@' 'VBOX_GCC_no-pie                ?= $(call VBOX_GCC_CHECK_CC,-no-pie,)'
    32473247        $(QUIET)$(APPEND) '$@' 'VBOX_GCC_fdiagnostics-show-option ?= $(call VBOX_GCC_CHECK_CC,-fdiagnostics-show-option,)'
     3248        $(QUIET)$(APPEND) '$@' 'VBOX_GCC_fno-printf-return-value ?= $(call VBOX_GCC_CHECK_CC,-fno-printf-return-value,)'
    32483249        $(QUIET)$(APPEND) '$@' 'VBOX_GCC_Wa_cma_nocompress_debug_sections ?= $(call VBOX_GCC_CHECK_CC,-Wa$(COMMA)--nocompress-debug-sections,)'
    32493250# Produce code optimized for the most common IA32/AMD64/EM64T processors. Introduced with gcc version 4.2.
  • trunk/src/VBox/Main/webservice/Makefile.kmk

    r93115 r95283  
    251251   vboxsoap_CXXFLAGS += -Wno-shadow -Wno-parentheses $(VBOX_GCC_Wno-literal-suffix) \
    252252        $(VBOX_GCC_Wno-stringop-overflow) $(VBOX_GCC_Wno-stringop-truncation) \
    253         $(VBOX_GCC_Wno-vla) -Wno-format -Wno-deprecated-declarations
     253        $(VBOX_GCC_Wno-vla) -Wno-format -Wno-deprecated-declarations $(VBOX_GCC_fno-printf-return-value)
    254254   ifn1of ($(KBUILD_TYPE), debug) # Save time+memory by using -O0 instead of -O2.
    255255    vboxsoap_CXXFLAGS += -O0 ## @todo this could be interesting for g++ (not clang++): -fcprop-registers
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