Bug 36611 - false negatives with -Wstrict-aliasing=3
false negatives with -Wstrict-aliasing=3
Product: gcc
Classification: Unclassified
Component: middle-end
: P3 enhancement
: ---
Assigned To: Not yet assigned to anyone
Depends on:
  Show dependency treegraph
Reported: 2008-06-24 02:47 UTC by Hans-Peter Nilsson
Modified: 2008-06-24 02:47 UTC (History)
2 users (show)

See Also:
Target: cris-axis-elf
Known to work:
Known to fail:
Last reconfirmed:


Note You need to log in before you can comment on or make changes to this bug.
Description Hans-Peter Nilsson 2008-06-24 02:47:09 UTC
See PR36593. In one of the comments, I mention that the testcase in that PR (which was originally marked as a miscompilation) had warnings for -Wstrict-aliasing=1 and 2, but not 3.  According to the documentation for -Wstrict-aliasing, level 3 ought to have *less* false negatives than 1 and 2, even more important when "bad code" was actually generated.  Hence this enhanceement PR.
It could even be stretched to be seen as a regression: the warnings no longer match the generated code.