public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: optimization/9421: gcc 3.4: infinite loop in gcse
@ 2003-01-23 17:58 ebotcazou
  0 siblings, 0 replies; 2+ messages in thread
From: ebotcazou @ 2003-01-23 17:58 UTC (permalink / raw)
  To: gcc-bugs, gcc-prs, nobody, snyder

Synopsis: gcc 3.4: infinite loop in gcse

State-Changed-From-To: open->closed
State-Changed-By: ebotcazou
State-Changed-When: Thu Jan 23 17:58:29 2003
State-Changed-Why:
    Duplicate of PR optimization/8492

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=9421


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

* optimization/9421: gcc 3.4: infinite loop in gcse
@ 2003-01-23 17:46 snyder
  0 siblings, 0 replies; 2+ messages in thread
From: snyder @ 2003-01-23 17:46 UTC (permalink / raw)
  To: gcc-gnats


>Number:         9421
>Category:       optimization
>Synopsis:       gcc 3.4: infinite loop in gcse
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Jan 23 17:46:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     scott snyder
>Release:        3.4 20030123 (experimental)
>Organization:
<organization of PR author (multiple lines)>
>Environment:
System: Linux karma 2.4.19-emp_2419p5a829i #1 Tue Sep 3 17:42:17 EST 2002 i686 unknown
Architecture: i686

	<machine, os, target, libraries (multiple lines)>
host: i686-pc-linux-gnu
build: i686-pc-linux-gnu
target: i686-pc-linux-gnu
configured with: ../gcc/configure --prefix=/usr/local/gcc --enable-threads=posix --enable-long-long : (reconfigured) 
>Description:

When the following source is compiled with -O2 or above, the compiler
never terminates.

$ ./cc1 -O2 x.c
...

Here's where it seems to be getting stuck (halting it from within
the debugger):

Program received signal SIGINT, Interrupt.
0x081c5fa3 in find_avail_set (regno=59, insn=0x4001570c)
    at ../../gcc/gcc/gcse.c:3989
3989	      struct expr *set = lookup_set (regno, NULL_RTX, &set_hash_table);
(gdb) where
#0  0x081c5fa3 in find_avail_set (regno=59, insn=0x4001570c)
    at ../../gcc/gcc/gcse.c:3989
#1  0x081c6546 in cprop_insn (insn=0x4001570c, alter_jumps=1)
    at ../../gcc/gcc/gcse.c:4196
#2  0x081c6d5e in cprop (alter_jumps=1) at ../../gcc/gcc/gcse.c:4452
#3  0x081c6e62 in one_cprop_pass (pass=1, cprop_jumps=1, bypass_jumps=1)
    at ../../gcc/gcc/gcse.c:4494
#4  0x081cbd81 in bypass_jumps (file=0x0) at ../../gcc/gcc/gcse.c:7441
#5  0x0835cbcd in rest_of_compilation (decl=0x4004bb60)
    at ../../gcc/gcc/toplev.c:2985
...


>How-To-Repeat:

------------------
extern int tolower (int __c);

void foo(int type)
{
  type = 
  (__extension__							      
   ({ int __res;							      
   if (__builtin_constant_p (type))
     __res = type;
   else								      
     __res = tolower (type);					      
   __res;
   }));
}

------------------

>Fix:
	<how to correct or work around the problem, if known (multiple lines)>
>Release-Note:
>Audit-Trail:
>Unformatted:


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

end of thread, other threads:[~2003-01-23 17:58 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-01-23 17:58 optimization/9421: gcc 3.4: infinite loop in gcse ebotcazou
  -- strict thread matches above, loose matches on Subject: below --
2003-01-23 17:46 snyder

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).