public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: optimization/10157: internal compiler error: in extract_insn, at recog.c:2188
@ 2003-03-20  2:56 Peter van Hoof
  0 siblings, 0 replies; 3+ messages in thread
From: Peter van Hoof @ 2003-03-20  2:56 UTC (permalink / raw)
  To: nobody; +Cc: gcc-prs

The following reply was made to PR optimization/10157; it has been noted by GNATS.

From: Peter van Hoof <p.van-hoof@qub.ac.uk>
To: p.van-hoof@qub.ac.uk, gcc-gnats@gcc.gnu.org, gcc-bugs@gcc.gnu.org, 
    nobody@gcc.gnu.org
Cc:  
Subject: Re: optimization/10157: internal compiler error: in extract_insn, at
         recog.c:2188
Date: Thu, 20 Mar 2003 02:53:09 +0000

 http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=10157
 
 This somewhat shorter version triggers the bug with -O2 instead of -O3:
 
 void g() {
 	while( 1 ) {
 		int i,n;
 		double p,r;
 		for( i=0; i < n; i++ )
 			if( p > 1. )
 				for( i=0; i < n; i++ )
 					r += 2.;
 	}
 }
 
 scooby>	gcc -c -O2 -ffast-math h3.c
 h3.c: In function `g':
 h3.c:10: error: unrecognizable insn:
 (insn:HI 130 129 8 0 0 (set (reg:CCFPE 127)
          (compare:CCFPE (reg/v:DF 109 [ p ])
              (reg:DF 111))) -1 (insn_list 129 (nil))
      (expr_list:REG_DEAD (reg/v:DF 109 [ p ])
          (expr_list:REG_DEAD (reg:DF 111)
              (expr_list:REG_EQUAL (compare:CCFPE (reg/v:DF 109 [ p ])
                      (const_double:DF 1.0e+0 [0x0.8p+1]))
                  (nil)))))
 h3.c:10: internal compiler error: in extract_insn, at recog.c:2188
 
 This bug is possibly related to bug 9352, although that one used g++ on a 
 different platform.
 


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

* Re: optimization/10157: internal compiler error: in extract_insn, at recog.c:2188
@ 2003-03-20  0:46 Peter van Hoof
  0 siblings, 0 replies; 3+ messages in thread
From: Peter van Hoof @ 2003-03-20  0:46 UTC (permalink / raw)
  To: nobody; +Cc: gcc-prs

The following reply was made to PR optimization/10157; it has been noted by GNATS.

From: Peter van Hoof <p.van-hoof@qub.ac.uk>
To: p.van-hoof@qub.ac.uk, gcc-gnats@gcc.gnu.org, gcc-bugs@gcc.gnu.org, 
    nobody@gcc.gnu.org
Cc:  
Subject: Re: optimization/10157: internal compiler error: in extract_insn, at
         recog.c:2188
Date: Thu, 20 Mar 2003 00:42:58 +0000

 http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=10157
 
 PS - This case runs OK with gcc 3.2.2 and 3.3, so is a regression.
 


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

* optimization/10157: internal compiler error: in extract_insn, at recog.c:2188
@ 2003-03-20  0:36 p.van-hoof
  0 siblings, 0 replies; 3+ messages in thread
From: p.van-hoof @ 2003-03-20  0:36 UTC (permalink / raw)
  To: gcc-gnats; +Cc: p.van-hoof


>Number:         10157
>Category:       optimization
>Synopsis:       internal compiler error: in extract_insn, at recog.c:2188
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          ice-on-legal-code
>Submitter-Id:   net
>Arrival-Date:   Thu Mar 20 00:36:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     Peter van Hoof
>Release:        3.4 20030315 (experimental)
>Organization:
Queen's University of Belfast
>Environment:
System: SunOS scooby 5.9 Generic_112233-04 sun4u sparc SUNW,Sun-Blade-100
Architecture: sun4

	
host: sparc-sun-solaris2.9
build: sparc-sun-solaris2.9
target: sparc-sun-solaris2.9
configured with: /scratch/temp/cvs/gcc/configure --prefix=/opt/local/gcc340 --enable-languages=c,c++,f77
>Description:
Compiler generates ICE when optimizing the attached code.
>How-To-Repeat:
scooby>	gcc -v -c -O3 -ffast-math h2.c
Reading specs from /opt/local/gcc340/lib/gcc-lib/sparc-sun-solaris2.9/3.4/specs
Configured with: /scratch/temp/cvs/gcc/configure --prefix=/opt/local/gcc340 --enable-languages=c,c++,f77
Thread model: posix
gcc version 3.4 20030315 (experimental)
 /opt/local/gcc340/lib/gcc-lib/sparc-sun-solaris2.9/3.4/cc1 -quiet -v -Dsparc -D__sparc__ -D__sparc -D__GCC_NEW_VARARGS__ -Acpu=sparc -Amachine=sparc h2.c -quiet -dumpbase h2.c -auxbase h2 -O3 -version -ffast-math -o /var/tmp//ccUWwD2c.s
ignoring nonexistent directory "/opt/local/gcc340/sparc-sun-solaris2.9/include"
#include "..." search starts here:
#include <...> search starts here:
 /usr/local/include
 /opt/local/gcc340/include
 /opt/local/gcc340/lib/gcc-lib/sparc-sun-solaris2.9/3.4/include
 /usr/include
End of search list.
GNU C version 3.4 20030315 (experimental) (sparc-sun-solaris2.9)
	compiled by GNU C version 3.4 20030315 (experimental).
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
h2.c: In function `g':
h2.c:15: error: unrecognizable insn:
(insn:HI 134 133 8 0 0 (set (reg:CCFPE 127)
        (compare:CCFPE (reg/v:DF 109 [ p ])
            (reg:DF 111))) -1 (insn_list 133 (nil))
    (expr_list:REG_DEAD (reg/v:DF 109 [ p ])
        (expr_list:REG_DEAD (reg:DF 111)
            (expr_list:REG_EQUAL (compare:CCFPE (reg/v:DF 109 [ p ])
                    (const_double:DF 1.0e+0 [0x0.8p+1]))
                (nil)))))
h2.c:15: internal compiler error: in extract_insn, at recog.c:2188
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.

scooby>	cat h2.c
void h() {
	int i,n;
	double p,r;
	for( i=0; i < n; i++ )
		if( p > 1. )
			for( i=0; i < n; i++ )
				r += 2.;
	return;
}

void g() {
	while( 1 )
		h();
	return;
}
>Fix:
Workaround: use lower level of optimization or omit -ffast-math
>Release-Note:
>Audit-Trail:
>Unformatted:


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

end of thread, other threads:[~2003-03-20  2:56 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-03-20  2:56 optimization/10157: internal compiler error: in extract_insn, at recog.c:2188 Peter van Hoof
  -- strict thread matches above, loose matches on Subject: below --
2003-03-20  0:46 Peter van Hoof
2003-03-20  0:36 p.van-hoof

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