This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug driver/78772] New: -fstrict-aliasing should turn on Wstrict-aliasing automaticly


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78772

            Bug ID: 78772
           Summary: -fstrict-aliasing should turn on Wstrict-aliasing
                    automaticly
           Product: gcc
           Version: 6.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: driver
          Assignee: unassigned at gcc dot gnu.org
          Reporter: ma.jiang at zte dot com.cn
  Target Milestone: ---

Hi all,
  "-fstrict-aliasing" which is turned on at O2 level, May create wrong codes.
But, GCC does not give a warning for it by default. IMO, we should  turn on
Wstrict-aliasing  when strict-aliasing is enabled.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]