public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/32102]  New: -Wall stomps on -Wstrict-overflow
@ 2007-05-27  2:46 mec at google dot com
  2007-05-27  3:45 ` [Bug c/32102] " pinskia at gcc dot gnu dot org
                   ` (16 more replies)
  0 siblings, 17 replies; 18+ messages in thread
From: mec at google dot com @ 2007-05-27  2:46 UTC (permalink / raw)
  To: gcc-bugs

This is with the 4.3-20070525 snapshot.

Test program:

void Alpha();

void Beta() {
  int i;
  for (i = 1; i > 0; ++i)
    Alpha();
}

This invocation produces no warnings:

/home/mec/gcc-4.3-20070525/install/bin/gcc -O2 -S -Wstrict-overflow=2 -Wall
z1.c

This invocation produces warnings:

/home/mec/gcc-4.3-20070525/install/bin/gcc -O2 -S -Wall -Wstrict-overflow=2
z1.c
z1.c: In function 'Beta':
z1.c:5: warning: assuming signed overflow does not occur when simplifying
conditional to constant

It looks like -Wall sets the strict overflow warning level to 1, quietly
stomping on the earlier setting.


-- 
           Summary: -Wall stomps on -Wstrict-overflow
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: mec at google dot com
 GCC build triplet: i686-pc-linux-gnu
  GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32102


^ permalink raw reply	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2008-01-27 18:39 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-05-27  2:46 [Bug c/32102] New: -Wall stomps on -Wstrict-overflow mec at google dot com
2007-05-27  3:45 ` [Bug c/32102] " pinskia at gcc dot gnu dot org
2007-05-29 13:48 ` ian at airs dot com
2008-01-18 18:48 ` manu at gcc dot gnu dot org
2008-01-18 19:11 ` ismail at pardus dot org dot tr
2008-01-18 19:30 ` manu at gcc dot gnu dot org
2008-01-18 19:42 ` ismail at pardus dot org dot tr
2008-01-19  8:09 ` manu at gcc dot gnu dot org
2008-01-20 14:40 ` manu at gcc dot gnu dot org
2008-01-21  1:52 ` manu at gcc dot gnu dot org
2008-01-21 20:50 ` ian at airs dot com
2008-01-21 21:01 ` manu at gcc dot gnu dot org
2008-01-22 14:20 ` manu at gcc dot gnu dot org
2008-01-22 14:46 ` manu at gcc dot gnu dot org
2008-01-22 14:47 ` manu at gcc dot gnu dot org
2008-01-23  6:43 ` ian at airs dot com
2008-01-27 18:52 ` manu at gcc dot gnu dot org
2008-01-27 18:55 ` manu at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).