public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/17885] New: gimplify.c fatal error while expanding a macro
@ 2004-10-07 19:35 10 dot 50 at free dot fr
  2004-10-07 19:37 ` [Bug c/17885] " 10 dot 50 at free dot fr
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: 10 dot 50 at free dot fr @ 2004-10-07 19:35 UTC (permalink / raw)
  To: gcc-bugs

This snapshot crashes while compiling the kernel of NetBSD in the file kern_lock.c.

Here is the output of the compiler:

----
Reading specs from /usr/pkg/gcc40/lib/gcc/i386-unknown-netbsdelf2.99.9/4.0.0/specs
Configured with: ./configure --x-includes=/usr/pkg/xorg/include
--x-libraries=/usr/pkg/xorg/lib --enable-languages=c c++ objc
--prefix=/usr/pkg/gcc40
Thread model: posix
gcc version 4.0.0 20041003 (experimental)
 /usr/pkg/gcc40/libexec/gcc/i386-unknown-netbsdelf2.99.9/4.0.0/cc1 -E -quiet
-nostdinc -v -I. -I../../../../arch -I../../../.. -I../../../../dist/ipf -Di386
-DLKM -DUMASS_DEBUG -DUGEN_DEBUG -DMAXUSERS=32 -D_KERNEL -D_KERNEL_OPT
../../../../kern/kern_lock.c -march=pentium4 -msse2 -mfpmath=sse -Wall -Wno-main
-Wno-format-zero-length -Wpointer-arith -Wmissing-prototypes -Wstrict-prototypes
-Wno-sign-compare -ffreestanding -fno-zero-initialized-in-bss -O2
-fpch-preprocess -o kern_lock.i
#include "..." search starts here:
#include <...> search starts here:
 .
 ../../../../arch
 ../../../..
 ../../../../dist/ipf
End of search list.
 /usr/pkg/gcc40/libexec/gcc/i386-unknown-netbsdelf2.99.9/4.0.0/cc1
-fpreprocessed kern_lock.i -quiet -dumpbase kern_lock.c -march=pentium4 -msse2
-mfpmath=sse -auxbase kern_lock -O2 -Wall -Wno-main -Wno-format-zero-length
-Wpointer-arith -Wmissing-prototypes -Wstrict-prototypes -Wno-sign-compare
-version -ffreestanding -fno-zero-initialized-in-bss -o kern_lock.s
GNU C version 4.0.0 20041003 (experimental) (i386-unknown-netbsdelf2.99.9)
        compiled by GNU C version 4.0.0 20041003 (experimental).
GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
../../../../kern/kern_lock.c: In function 'acquire':
../../../../kern/kern_lock.c:233: internal compiler error: in gimplify_expr, at
gimplify.c:3975

The .i files follows.

Have fun folks ;)
Vincent

-- 
           Summary: gimplify.c fatal error while expanding a macro
           Product: gcc
           Version: 4.0.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: 10 dot 50 at free dot fr
                CC: gcc-bugs at gcc dot gnu dot org
  GCC host triplet: i386-unknown-netbsdelf2.99.9
GCC target triplet: i386-unknown-netbsdelf2.99.9


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


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

* [Bug c/17885] gimplify.c fatal error while expanding a macro
  2004-10-07 19:35 [Bug c/17885] New: gimplify.c fatal error while expanding a macro 10 dot 50 at free dot fr
@ 2004-10-07 19:37 ` 10 dot 50 at free dot fr
  2004-10-07 19:51 ` [Bug middle-end/17885] [4.0 Regression] " pinskia at gcc dot gnu dot org
                   ` (7 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: 10 dot 50 at free dot fr @ 2004-10-07 19:37 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From 10 dot 50 at free dot fr  2004-10-07 19:37 -------
Created an attachment (id=7304)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=7304&action=view)
.i file (bzip'ed)


-- 


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


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

* [Bug middle-end/17885] [4.0 Regression] gimplify.c fatal error while expanding a macro
  2004-10-07 19:35 [Bug c/17885] New: gimplify.c fatal error while expanding a macro 10 dot 50 at free dot fr
  2004-10-07 19:37 ` [Bug c/17885] " 10 dot 50 at free dot fr
@ 2004-10-07 19:51 ` pinskia at gcc dot gnu dot org
  2004-10-07 19:52 ` pinskia at gcc dot gnu dot org
                   ` (6 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-10-07 19:51 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-10-07 19:51 -------
struct lock {
 int lk_interlock;
};
void
acquire(volatile struct lock *lkp)
{
  &lkp->lk_interlock;
}

Confirmed.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
          Component|c                           |middle-end
     Ever Confirmed|                            |1
           Keywords|                            |ice-on-valid-code
   Last reconfirmed|0000-00-00 00:00:00         |2004-10-07 19:51:36
               date|                            |
            Summary|gimplify.c fatal error while|[4.0 Regression] gimplify.c
                   |expanding a macro           |fatal error while expanding
                   |                            |a macro
   Target Milestone|---                         |4.0.0


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


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

* [Bug middle-end/17885] [4.0 Regression] gimplify.c fatal error while expanding a macro
  2004-10-07 19:35 [Bug c/17885] New: gimplify.c fatal error while expanding a macro 10 dot 50 at free dot fr
  2004-10-07 19:37 ` [Bug c/17885] " 10 dot 50 at free dot fr
  2004-10-07 19:51 ` [Bug middle-end/17885] [4.0 Regression] " pinskia at gcc dot gnu dot org
@ 2004-10-07 19:52 ` pinskia at gcc dot gnu dot org
  2004-10-16 16:07 ` [Bug middle-end/17885] [4.0 Regression] gimplifing of volatile &a-> reichelt at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-10-07 19:52 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-10-07 19:52 -------
: Search converges between 2004-08-22-trunk (#521) and 2004-08-23-trunk (#522).


-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |pinskia at gcc dot gnu dot
                   |                            |org
   GCC host triplet|i386-unknown-netbsdelf2.99.9|
 GCC target triplet|i386-unknown-netbsdelf2.99.9|


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


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

* [Bug middle-end/17885] [4.0 Regression] gimplifing of volatile &a->
  2004-10-07 19:35 [Bug c/17885] New: gimplify.c fatal error while expanding a macro 10 dot 50 at free dot fr
                   ` (2 preceding siblings ...)
  2004-10-07 19:52 ` pinskia at gcc dot gnu dot org
@ 2004-10-16 16:07 ` reichelt at gcc dot gnu dot org
  2004-10-16 16:10 ` pinskia at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2004-10-16 16:07 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From reichelt at gcc dot gnu dot org  2004-10-16 16:07 -------
Andrew, your patch
http://gcc.gnu.org/ml/gcc-cvs/2004-08/msg01149.html
seems to be responsible for the regression.


-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |reichelt at gcc dot gnu dot
                   |                            |org
           Keywords|                            |monitored


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


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

* [Bug middle-end/17885] [4.0 Regression] gimplifing of volatile &a->
  2004-10-07 19:35 [Bug c/17885] New: gimplify.c fatal error while expanding a macro 10 dot 50 at free dot fr
                   ` (3 preceding siblings ...)
  2004-10-16 16:07 ` [Bug middle-end/17885] [4.0 Regression] gimplifing of volatile &a-> reichelt at gcc dot gnu dot org
@ 2004-10-16 16:10 ` pinskia at gcc dot gnu dot org
  2004-10-18 14:25 ` pinskia at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-10-16 16:10 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-10-16 16:10 -------
Yes it is responable in finding the latent bug in the gimplifier, if I have time I will try to see how to fix it.

-- 


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


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

* [Bug middle-end/17885] [4.0 Regression] gimplifing of volatile &a->
  2004-10-07 19:35 [Bug c/17885] New: gimplify.c fatal error while expanding a macro 10 dot 50 at free dot fr
                   ` (4 preceding siblings ...)
  2004-10-16 16:10 ` pinskia at gcc dot gnu dot org
@ 2004-10-18 14:25 ` pinskia at gcc dot gnu dot org
  2004-10-18 22:17 ` pinskia at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-10-18 14:25 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-10-18 14:25 -------
Patch here: <http://gcc.gnu.org/ml/gcc-patches/2004-10/msg01476.html>.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |pinskia at gcc dot gnu dot
                   |dot org                     |org
             Status|NEW                         |ASSIGNED
           Keywords|                            |patch


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


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

* [Bug middle-end/17885] [4.0 Regression] gimplifing of volatile &a->
  2004-10-07 19:35 [Bug c/17885] New: gimplify.c fatal error while expanding a macro 10 dot 50 at free dot fr
                   ` (5 preceding siblings ...)
  2004-10-18 14:25 ` pinskia at gcc dot gnu dot org
@ 2004-10-18 22:17 ` pinskia at gcc dot gnu dot org
  2004-10-19 17:24 ` cvs-commit at gcc dot gnu dot org
  2004-10-20  9:33 ` reichelt at gcc dot gnu dot org
  8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-10-18 22:17 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-10-18 22:17 -------
My patch is wrong, RTH is working on this now.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|pinskia at gcc dot gnu dot  |unassigned at gcc dot gnu
                   |org                         |dot org
             Status|ASSIGNED                    |NEW
           Keywords|patch                       |


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


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

* [Bug middle-end/17885] [4.0 Regression] gimplifing of volatile &a->
  2004-10-07 19:35 [Bug c/17885] New: gimplify.c fatal error while expanding a macro 10 dot 50 at free dot fr
                   ` (6 preceding siblings ...)
  2004-10-18 22:17 ` pinskia at gcc dot gnu dot org
@ 2004-10-19 17:24 ` cvs-commit at gcc dot gnu dot org
  2004-10-20  9:33 ` reichelt at gcc dot gnu dot org
  8 siblings, 0 replies; 10+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-10-19 17:24 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2004-10-19 17:24 -------
Subject: Bug 17885

CVSROOT:	/cvs/gcc
Module name:	gcc
Changes by:	rth@gcc.gnu.org	2004-10-19 17:24:48

Modified files:
	gcc            : ChangeLog tree.c 

Log message:
	PR middle-end/17885
	* tree.c (recompute_tree_invarant_for_addr_expr): Always poll address
	of INDIRECT_REF.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&r1=2.5948&r2=2.5949
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/tree.c.diff?cvsroot=gcc&r1=1.437&r2=1.438



-- 


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


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

* [Bug middle-end/17885] [4.0 Regression] gimplifing of volatile &a->
  2004-10-07 19:35 [Bug c/17885] New: gimplify.c fatal error while expanding a macro 10 dot 50 at free dot fr
                   ` (7 preceding siblings ...)
  2004-10-19 17:24 ` cvs-commit at gcc dot gnu dot org
@ 2004-10-20  9:33 ` reichelt at gcc dot gnu dot org
  8 siblings, 0 replies; 10+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2004-10-20  9:33 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From reichelt at gcc dot gnu dot org  2004-10-20 09:33 -------
Do we want to add a testcase to testsuite for this?


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


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


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

end of thread, other threads:[~2004-10-20  9:33 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-10-07 19:35 [Bug c/17885] New: gimplify.c fatal error while expanding a macro 10 dot 50 at free dot fr
2004-10-07 19:37 ` [Bug c/17885] " 10 dot 50 at free dot fr
2004-10-07 19:51 ` [Bug middle-end/17885] [4.0 Regression] " pinskia at gcc dot gnu dot org
2004-10-07 19:52 ` pinskia at gcc dot gnu dot org
2004-10-16 16:07 ` [Bug middle-end/17885] [4.0 Regression] gimplifing of volatile &a-> reichelt at gcc dot gnu dot org
2004-10-16 16:10 ` pinskia at gcc dot gnu dot org
2004-10-18 14:25 ` pinskia at gcc dot gnu dot org
2004-10-18 22:17 ` pinskia at gcc dot gnu dot org
2004-10-19 17:24 ` cvs-commit at gcc dot gnu dot org
2004-10-20  9:33 ` 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).