Skip to content

Commit

Permalink
Globally disable -fno-strict-aliasing, for reasons given in the comment.
Browse files Browse the repository at this point in the history
llvm-svn: 105644
  • Loading branch information
ddunbar committed Jun 8, 2010
1 parent 6f2e095 commit 40fee63
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions clang/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,16 @@ ifdef CLANG_VENDOR
CPP.Flags += -DCLANG_VENDOR='"$(CLANG_VENDOR) "'
endif

# Disable -fstrict-aliasing. Darwin disables it by default (and LLVM doesn't
# work with it enabled with GCC), Clang/llvm-gc don't support it yet, and newer
# GCC's have false positive warnings with it on Linux (which prove a pain to
# fix). For example:
# http://gcc.gnu.org/PR41874
# http://gcc.gnu.org/PR41838
#
# We can revisit this when LLVM/Clang support it.
CXX.Flags += -fno-strict-aliasing

###
# Clang Top Level specific stuff.

Expand Down

0 comments on commit 40fee63

Please sign in to comment.