Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added workaround for incorrect null dereference warnings in GCC 11.1.0 #15

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions vp_models.mk
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,13 @@ VP_COMP_DBG_LDFLAGS=-lpulpvp-debug
VP_COMP_CFLAGS += -Werror -Wfatal-errors
VP_COMP_LDFLAGS += -Werror -Wfatal-errors

# This workaround disables the -Werror for detected null pointer dereferences.
# This is only necessary in the case of a buggy detection where
# invalid warnings are issued that result in a fatal build error.
VP_COMP_CFLAGS += -Wno-error=nonnull
VP_COMP_CPPFLAGS += -Wno-error=nonnull
VP_COMP_LDFLAGS += -Wno-error=nonnull

ifdef VP_USE_SYSTEMC
VP_COMP_CFLAGS += -D__VP_USE_SYSTEMC -I$(SYSTEMC_HOME)/include
ifdef VP_USE_SYSTEMC_DRAMSYS
Expand Down