public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/56501] New: gcc 4.6 ICE on noreturn function at -Os and above
@ 2013-03-01 18:50 dhazeghi at yahoo dot com
  2013-03-03 11:06 ` [Bug tree-optimization/56501] " mikpe at it dot uu.se
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: dhazeghi at yahoo dot com @ 2013-03-01 18:50 UTC (permalink / raw)
  To: gcc-bugs


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

             Bug #: 56501
           Summary: gcc 4.6 ICE on noreturn function at -Os and above
    Classification: Unclassified
           Product: gcc
           Version: 4.6.3
            Status: UNCONFIRMED
          Severity: minor
          Priority: P3
         Component: tree-optimization
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: dhazeghi@yahoo.com


The following testcase (derived from gzip) triggers an internal compiler error
with gcc 4.6, 4.5 and 4.4 when compiled at -Os or higher on x86_64-linux.  The
problem does not occur with 4.7 or newer, or with 4.3 or older.

$ gcc-4.6 --version
gcc-4.6 (GCC) 4.6.3
$ gcc-4.6 -O1 -w small.c
$ gcc-4.6 -Os -w small.c
small.c: In function ‘main’:
small.c:24:1: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
$ cat small.c

int a;
void try_help () __attribute__ ((__noreturn__));
void try_help ()
{
}

int main ()
{
    switch (a)
    {
    case '1':
    case '2':
    case '3':
    case '4':
    case '5':
    case '6':
    case '7':
    case '8':
    case '9':
        break;
    default:
        try_help ();
    }
}


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

end of thread, other threads:[~2013-04-12 16:29 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-03-01 18:50 [Bug tree-optimization/56501] New: gcc 4.6 ICE on noreturn function at -Os and above dhazeghi at yahoo dot com
2013-03-03 11:06 ` [Bug tree-optimization/56501] " mikpe at it dot uu.se
2013-03-04 10:45 ` [Bug tree-optimization/56501] [4.6/4.7 Regression] " rguenth at gcc dot gnu.org
2013-04-03 10:10 ` rguenth at gcc dot gnu.org
2013-04-03 10:29 ` rguenth at gcc dot gnu.org
2013-04-03 12:03 ` [Bug tree-optimization/56501] [4.6 " rguenth at gcc dot gnu.org
2013-04-12 16:29 ` jakub 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).