public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug optimization/11883] New: gcc 3.3.1 ICE with any -O on mercury-generated *.c file
@ 2003-08-11 15:35 gcc-bugzilla at gcc dot gnu dot org
  2003-08-11 15:39 ` [Bug optimization/11883] " pinskia at gcc dot gnu dot org
                   ` (9 more replies)
  0 siblings, 10 replies; 11+ messages in thread
From: gcc-bugzilla at gcc dot gnu dot org @ 2003-08-11 15:35 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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

           Summary: gcc 3.3.1 ICE with any -O on mercury-generated *.c file
           Product: gcc
           Version: 3.3.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: optimization
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: qboosh at pld-linux dot org
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: i686-pld-linux-gnu
  GCC host triplet: i686-pld-linux-gnu
GCC target triplet: i686-pld-linux-gnu

Some files *.c generated by mercury compiler (http://www.cs.mu.oz.au/mercury/)
cause ICE on gcc 3.3 and 3.3.1 if any optimization is used (-O, -O2, -O3), at
least on x86.
(mercury preprocesses his *.m files, creating *.c files, which are compiled
 using gcc; that's why this file looks so ugly).

Compiler output:
tree234.c: In function `tree234_module66':
tree234.c:23795: internal compiler error: in flow_loops_find, at cfgloop.c:830
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.

Environment:
System: Linux builder 2.4.20 #1 Sat May 24 09:07:12 UTC 2003 i686 unknown unknown PLD Linux
Architecture: i686
	(Athlon CPU, Linux 2.4.20, glibc 2.3.2)
host: i686-pld-linux-gnu
build: i686-pld-linux-gnu
target: i686-pld-linux-gnu
configured with: ../configure --prefix=/usr --infodir=/usr/share/info --mandir=/usr/share/man --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-languages=c,c++,f77,ksi --enable-c99 --enable-long-long --enable-multilib --enable-nls --with-gnu-as --with-gnu-ld --with-system-zlib --with-slibdir=/lib --without-x i686-pld-linux

How-To-Repeat:
Try to compile attached file (which is preprocessed file that comes from
mercury source distribution - mercury-compiler-0.11.0/library/tree234.c)
with any optimizations enabled (-O, -O2, -O3), e.g.:

$ gcc -c tree234.i -O
tree234.c: In function `tree234_module66':
tree234.c:23795: internal compiler error: in flow_loops_find, at cfgloop.c:830
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
$


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

* [Bug optimization/11883] gcc 3.3.1 ICE with any -O on mercury-generated *.c file
  2003-08-11 15:35 [Bug optimization/11883] New: gcc 3.3.1 ICE with any -O on mercury-generated *.c file gcc-bugzilla at gcc dot gnu dot org
@ 2003-08-11 15:39 ` pinskia at gcc dot gnu dot org
  2003-08-11 17:00 ` qboosh at pld-linux dot org
                   ` (8 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-08-11 15:39 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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


pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |WAITING


------- Additional Comments From pinskia at gcc dot gnu dot org  2003-08-11 15:39 -------
Most likely related to bug 11496.
We need the preprocessed source file.


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

* [Bug optimization/11883] gcc 3.3.1 ICE with any -O on mercury-generated *.c file
  2003-08-11 15:35 [Bug optimization/11883] New: gcc 3.3.1 ICE with any -O on mercury-generated *.c file gcc-bugzilla at gcc dot gnu dot org
  2003-08-11 15:39 ` [Bug optimization/11883] " pinskia at gcc dot gnu dot org
@ 2003-08-11 17:00 ` qboosh at pld-linux dot org
  2003-08-11 17:23 ` pinskia at gcc dot gnu dot org
                   ` (7 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: qboosh at pld-linux dot org @ 2003-08-11 17:00 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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



------- Additional Comments From qboosh at pld-linux dot org  2003-08-11 17:00 -------
"fix" section has been cut too, so here it is:
Workaround is not to use optimizations (use -O0 or no -O options):

$ gcc tree234.i -c -O0
$


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

* [Bug optimization/11883] gcc 3.3.1 ICE with any -O on mercury-generated *.c file
  2003-08-11 15:35 [Bug optimization/11883] New: gcc 3.3.1 ICE with any -O on mercury-generated *.c file gcc-bugzilla at gcc dot gnu dot org
  2003-08-11 15:39 ` [Bug optimization/11883] " pinskia at gcc dot gnu dot org
  2003-08-11 17:00 ` qboosh at pld-linux dot org
@ 2003-08-11 17:23 ` pinskia at gcc dot gnu dot org
  2003-08-11 17:24 ` [Bug optimization/11883] [3.3 Regression] " pinskia at gcc dot gnu dot org
                   ` (6 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-08-11 17:23 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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


pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|WAITING                     |RESOLVED
         Resolution|                            |INVALID


------- Additional Comments From pinskia at gcc dot gnu dot org  2003-08-11 17:23 -------
Marking as invalid and marking this as ...


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

* [Bug optimization/11883] [3.3 Regression] gcc 3.3.1 ICE with any -O on mercury-generated *.c file
  2003-08-11 15:35 [Bug optimization/11883] New: gcc 3.3.1 ICE with any -O on mercury-generated *.c file gcc-bugzilla at gcc dot gnu dot org
                   ` (2 preceding siblings ...)
  2003-08-11 17:23 ` pinskia at gcc dot gnu dot org
@ 2003-08-11 17:24 ` pinskia at gcc dot gnu dot org
  2003-08-25  0:48 ` dhazeghi at yahoo dot com
                   ` (5 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-08-11 17:24 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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


pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|normal                      |critical
             Status|RESOLVED                    |UNCONFIRMED
           Priority|P3                          |P1
         Resolution|INVALID                     |
            Summary|gcc 3.3.1 ICE with any -O on|[3.3 Regression] gcc 3.3.1
                   |mercury-generated *.c file  |ICE with any -O on mercury-
                   |                            |generated *.c file
   Target Milestone|---                         |3.3.2


------- Additional Comments From pinskia at gcc dot gnu dot org  2003-08-11 17:24 -------
unconfirmed since I have not reduced this yet.

This only effects 3.3.x, not 3.4.

I am sure that the patch which broke PR 11496 broke this one too.


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

* [Bug optimization/11883] [3.3 Regression] gcc 3.3.1 ICE with any -O on mercury-generated *.c file
  2003-08-11 15:35 [Bug optimization/11883] New: gcc 3.3.1 ICE with any -O on mercury-generated *.c file gcc-bugzilla at gcc dot gnu dot org
                   ` (3 preceding siblings ...)
  2003-08-11 17:24 ` [Bug optimization/11883] [3.3 Regression] " pinskia at gcc dot gnu dot org
@ 2003-08-25  0:48 ` dhazeghi at yahoo dot com
  2003-09-16 22:15 ` rakdver at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: dhazeghi at yahoo dot com @ 2003-08-25  0:48 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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


dhazeghi at yahoo dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  GCC build triplet|i686-pld-linux-gnu          |
   GCC host triplet|i686-pld-linux-gnu          |


------- Additional Comments From dhazeghi at yahoo dot com  2003-08-25 00:48 -------
See this still on gcc 3.3 branch (20030824). Would it be at all possible to make a smaller testcase? 
This one is, erhm, large and ugly.


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

* [Bug optimization/11883] [3.3 Regression] gcc 3.3.1 ICE with any -O on mercury-generated *.c file
  2003-08-11 15:35 [Bug optimization/11883] New: gcc 3.3.1 ICE with any -O on mercury-generated *.c file gcc-bugzilla at gcc dot gnu dot org
                   ` (4 preceding siblings ...)
  2003-08-25  0:48 ` dhazeghi at yahoo dot com
@ 2003-09-16 22:15 ` rakdver at gcc dot gnu dot org
  2003-09-16 23:00 ` rakdver at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: rakdver at gcc dot gnu dot org @ 2003-09-16 22:15 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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


rakdver at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |ASSIGNED
     Ever Confirmed|                            |1
   Last reconfirmed|0000-00-00 00:00:00         |2003-09-16 20:55:40
               date|                            |


------- Additional Comments From rakdver at gcc dot gnu dot org  2003-09-16 20:55 -------
Still occurs; since it seems to be loop related, I will take care of it.


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

* [Bug optimization/11883] [3.3 Regression] gcc 3.3.1 ICE with any -O on mercury-generated *.c file
  2003-08-11 15:35 [Bug optimization/11883] New: gcc 3.3.1 ICE with any -O on mercury-generated *.c file gcc-bugzilla at gcc dot gnu dot org
                   ` (5 preceding siblings ...)
  2003-09-16 22:15 ` rakdver at gcc dot gnu dot org
@ 2003-09-16 23:00 ` rakdver at gcc dot gnu dot org
  2003-10-03 21:27 ` rakdver at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: rakdver at gcc dot gnu dot org @ 2003-09-16 23:00 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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



------- Additional Comments From rakdver at gcc dot gnu dot org  2003-09-16 21:29 -------
In mainline fixed by

http://gcc.gnu.org/ml/gcc-patches/2003-01/msg01106.html

The patch should also be safe for inclusion in 3.3 branch.


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

* [Bug optimization/11883] [3.3 Regression] gcc 3.3.1 ICE with any -O on mercury-generated *.c file
  2003-08-11 15:35 [Bug optimization/11883] New: gcc 3.3.1 ICE with any -O on mercury-generated *.c file gcc-bugzilla at gcc dot gnu dot org
                   ` (6 preceding siblings ...)
  2003-09-16 23:00 ` rakdver at gcc dot gnu dot org
@ 2003-10-03 21:27 ` rakdver at gcc dot gnu dot org
  2003-11-01  5:54 ` ebotcazou at gcc dot gnu dot org
  2004-08-06 22:15 ` [Bug rtl-optimization/11883] " reichelt at gcc dot gnu dot org
  9 siblings, 0 replies; 11+ messages in thread
From: rakdver at gcc dot gnu dot org @ 2003-10-03 21:27 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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


rakdver at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED


------- Additional Comments From rakdver at gcc dot gnu dot org  2003-10-03 21:26 -------
Patch commited to 3.3 branch.


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

* [Bug optimization/11883] [3.3 Regression] gcc 3.3.1 ICE with any -O on mercury-generated *.c file
  2003-08-11 15:35 [Bug optimization/11883] New: gcc 3.3.1 ICE with any -O on mercury-generated *.c file gcc-bugzilla at gcc dot gnu dot org
                   ` (7 preceding siblings ...)
  2003-10-03 21:27 ` rakdver at gcc dot gnu dot org
@ 2003-11-01  5:54 ` ebotcazou at gcc dot gnu dot org
  2004-08-06 22:15 ` [Bug rtl-optimization/11883] " reichelt at gcc dot gnu dot org
  9 siblings, 0 replies; 11+ messages in thread
From: ebotcazou at gcc dot gnu dot org @ 2003-11-01  5:54 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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


ebotcazou at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |peter at emailross dot com


------- Additional Comments From ebotcazou at gcc dot gnu dot org  2003-11-01 05:54 -------
*** Bug 12861 has been marked as a duplicate of this bug. ***


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

* [Bug rtl-optimization/11883] [3.3 Regression] gcc 3.3.1 ICE with any -O on mercury-generated *.c file
  2003-08-11 15:35 [Bug optimization/11883] New: gcc 3.3.1 ICE with any -O on mercury-generated *.c file gcc-bugzilla at gcc dot gnu dot org
                   ` (8 preceding siblings ...)
  2003-11-01  5:54 ` ebotcazou at gcc dot gnu dot org
@ 2004-08-06 22:15 ` reichelt at gcc dot gnu dot org
  9 siblings, 0 replies; 11+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2004-08-06 22:15 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From reichelt at gcc dot gnu dot org  2004-08-06 22:15 -------
*** Bug 16906 has been marked as a duplicate of this bug. ***

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |david dot b dot kohrn at
                   |                            |boeing dot com


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


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

end of thread, other threads:[~2004-08-06 22:15 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-08-11 15:35 [Bug optimization/11883] New: gcc 3.3.1 ICE with any -O on mercury-generated *.c file gcc-bugzilla at gcc dot gnu dot org
2003-08-11 15:39 ` [Bug optimization/11883] " pinskia at gcc dot gnu dot org
2003-08-11 17:00 ` qboosh at pld-linux dot org
2003-08-11 17:23 ` pinskia at gcc dot gnu dot org
2003-08-11 17:24 ` [Bug optimization/11883] [3.3 Regression] " pinskia at gcc dot gnu dot org
2003-08-25  0:48 ` dhazeghi at yahoo dot com
2003-09-16 22:15 ` rakdver at gcc dot gnu dot org
2003-09-16 23:00 ` rakdver at gcc dot gnu dot org
2003-10-03 21:27 ` rakdver at gcc dot gnu dot org
2003-11-01  5:54 ` ebotcazou at gcc dot gnu dot org
2004-08-06 22:15 ` [Bug rtl-optimization/11883] " reichelt 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).