public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/56652] New: Wrong code in O2 - if in inline function
@ 2013-03-18 12:03 dominik.siatkowski at aldec dot com.pl
  2013-03-18 12:05 ` [Bug c++/56652] " dominik.siatkowski at aldec dot com.pl
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: dominik.siatkowski at aldec dot com.pl @ 2013-03-18 12:03 UTC (permalink / raw)
  To: gcc-bugs


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

             Bug #: 56652
           Summary: Wrong code in O2 - if in inline function
    Classification: Unclassified
           Product: gcc
           Version: 4.7.2
            Status: UNCONFIRMED
          Severity: major
          Priority: P3
         Component: c++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: dominik.siatkowski@aldec.com.pl


Bug detected with gcc-4.7.2 on i386-linux-gnu

Attached example segfalts compiled with -O2 (or even with '-O1
-finline-small-functions -fstrict-overflow -ftree-vrp')
Works with -O1. Works also if compiled in one compilation unit.

Stepping thru code shows it enters
    if (count >= 0 && count < size)
in shift_right, where count is INT_MIN and size is 2.


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

end of thread, other threads:[~2013-03-20  0:49 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-03-18 12:03 [Bug c++/56652] New: Wrong code in O2 - if in inline function dominik.siatkowski at aldec dot com.pl
2013-03-18 12:05 ` [Bug c++/56652] " dominik.siatkowski at aldec dot com.pl
2013-03-18 12:15 ` markus at trippelsdorf dot de
2013-03-18 12:16 ` dominik.siatkowski at aldec dot com.pl
2013-03-18 12:24 ` dominik.siatkowski at aldec dot com.pl
2013-03-18 12:34 ` markus at trippelsdorf dot de
2013-03-20  0:49 ` redi at gcc dot gnu.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).