public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug other/42611]  New: ICE in tree_low_cst, at tree.c:5014
@ 2010-01-04 15:03 debian-gcc at lists dot debian dot org
  2010-01-04 15:04 ` [Bug other/42611] " debian-gcc at lists dot debian dot org
                   ` (9 more replies)
  0 siblings, 10 replies; 11+ messages in thread
From: debian-gcc at lists dot debian dot org @ 2010-01-04 15:03 UTC (permalink / raw)
  To: gcc-bugs

seen on current branches and the trunk, at least on x86 and x86_64:

  Matthias

$ cat x.C 
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/mman.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <memory.h>
#include <string.h>
#include <limits.h>
#include <errno.h>
#include <assert.h>

#define DEBUG_MODE 1

#define _DEBUG(str,param) { if( DEBUG_MODE == 1 ) { fprintf( stderr, "%s",
"[DEBUG] " ); fprintf( stderr, str, param ); } }
#ifndef TRUE
#define TRUE 1
#endif
#ifndef FALSE
#define FALSE 0
#endif

typedef char bool_t;

typedef struct struct_secmem_conf {
 int pagesize;
 bool_t crypt;
 int crypt_key;
 bool_t to_file;
 char dumpfile[ SSIZE_MAX ];
} secmem_conf;

void init_secmem( secmem_conf* d ) {
 if( d->pagesize == 0 )
  d->pagesize = sysconf( _SC_PAGESIZE );

 _DEBUG( "Configuration: pagesize set to: %d\n", d->pagesize );
}

int main( int argc, char* argv[] ) {
 secmem_conf x;
 return 0;
}
$ gcc-4.4 -Wall x.C 
x.C: In function 'int main(int, char**)':
x.C:42: warning: unused variable 'x'
x.C:41: internal compiler error: in tree_low_cst, at tree.c:5014
Please submit a full bug report,

$ /usr/lib/gcc-snapshot/bin/gcc -Wall x.C 
x.C: In function 'int main(int, char**)':
x.C:42:14: warning: unused variable 'x'
x.C:41:5: internal compiler error: in tree_low_cst, at tree.c:6178


-- 
           Summary: ICE in tree_low_cst, at tree.c:5014
           Product: gcc
           Version: 4.5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: other
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: debian-gcc at lists dot debian dot org


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


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

* [Bug other/42611] ICE in tree_low_cst, at tree.c:5014
  2010-01-04 15:03 [Bug other/42611] New: ICE in tree_low_cst, at tree.c:5014 debian-gcc at lists dot debian dot org
@ 2010-01-04 15:04 ` debian-gcc at lists dot debian dot org
  2010-01-04 15:20 ` jakub at gcc dot gnu dot org
                   ` (8 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: debian-gcc at lists dot debian dot org @ 2010-01-04 15:04 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from debian-gcc at lists dot debian dot org  2010-01-04 15:03 -------
Created an attachment (id=19461)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=19461&action=view)
preprocessed source


-- 


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


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

* [Bug other/42611] ICE in tree_low_cst, at tree.c:5014
  2010-01-04 15:03 [Bug other/42611] New: ICE in tree_low_cst, at tree.c:5014 debian-gcc at lists dot debian dot org
  2010-01-04 15:04 ` [Bug other/42611] " debian-gcc at lists dot debian dot org
@ 2010-01-04 15:20 ` jakub at gcc dot gnu dot org
  2010-01-04 18:10 ` hjl dot tools at gmail dot com
                   ` (7 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: jakub at gcc dot gnu dot org @ 2010-01-04 15:20 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from jakub at gcc dot gnu dot org  2010-01-04 15:20 -------
Shorter testcase:
struct S { int a; char b[2147483647]; };

void
foo (void)
{
  struct S s;
}
with -m32.


-- 

jakub at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2010-01-04 15:20:31
               date|                            |


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


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

* [Bug other/42611] ICE in tree_low_cst, at tree.c:5014
  2010-01-04 15:03 [Bug other/42611] New: ICE in tree_low_cst, at tree.c:5014 debian-gcc at lists dot debian dot org
  2010-01-04 15:04 ` [Bug other/42611] " debian-gcc at lists dot debian dot org
  2010-01-04 15:20 ` jakub at gcc dot gnu dot org
@ 2010-01-04 18:10 ` hjl dot tools at gmail dot com
  2010-01-04 18:12 ` pinskia at gcc dot gnu dot org
                   ` (6 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: hjl dot tools at gmail dot com @ 2010-01-04 18:10 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from hjl dot tools at gmail dot com  2010-01-04 18:10 -------
It is caused by revision 144914:

http://gcc.gnu.org/ml/gcc-cvs/2009-03/msg00421.html


-- 

hjl dot tools at gmail dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jakub at redhat dot com


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


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

* [Bug other/42611] ICE in tree_low_cst, at tree.c:5014
  2010-01-04 15:03 [Bug other/42611] New: ICE in tree_low_cst, at tree.c:5014 debian-gcc at lists dot debian dot org
                   ` (2 preceding siblings ...)
  2010-01-04 18:10 ` hjl dot tools at gmail dot com
@ 2010-01-04 18:12 ` pinskia at gcc dot gnu dot org
  2010-01-04 18:17 ` jakub at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2010-01-04 18:12 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from pinskia at gcc dot gnu dot org  2010-01-04 18:12 -------
I think this is related to (or a dup of bug 42146).


-- 


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


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

* [Bug other/42611] ICE in tree_low_cst, at tree.c:5014
  2010-01-04 15:03 [Bug other/42611] New: ICE in tree_low_cst, at tree.c:5014 debian-gcc at lists dot debian dot org
                   ` (3 preceding siblings ...)
  2010-01-04 18:12 ` pinskia at gcc dot gnu dot org
@ 2010-01-04 18:17 ` jakub at gcc dot gnu dot org
  2010-01-04 18:26 ` hjl dot tools at gmail dot com
                   ` (4 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: jakub at gcc dot gnu dot org @ 2010-01-04 18:17 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from jakub at gcc dot gnu dot org  2010-01-04 18:17 -------
It is not caused by that commit, just add asm volatile ("" : : "r" (&s)) to the
testcase and you'll reproduce it even before that.


-- 


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


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

* [Bug other/42611] ICE in tree_low_cst, at tree.c:5014
  2010-01-04 15:03 [Bug other/42611] New: ICE in tree_low_cst, at tree.c:5014 debian-gcc at lists dot debian dot org
                   ` (4 preceding siblings ...)
  2010-01-04 18:17 ` jakub at gcc dot gnu dot org
@ 2010-01-04 18:26 ` hjl dot tools at gmail dot com
  2010-01-04 19:20 ` jakub at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: hjl dot tools at gmail dot com @ 2010-01-04 18:26 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from hjl dot tools at gmail dot com  2010-01-04 18:26 -------
Gcc 3.4 gave:

r42611.c: In function `foo':
pr42611.c:6: error: size of variable 's' is too large


-- 

hjl dot tools at gmail dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
      Known to fail|                            |4.1.2 4.2.4 4.3.4 4.4.3
                   |                            |4.5.0
      Known to work|                            |3.4.6


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


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

* [Bug other/42611] ICE in tree_low_cst, at tree.c:5014
  2010-01-04 15:03 [Bug other/42611] New: ICE in tree_low_cst, at tree.c:5014 debian-gcc at lists dot debian dot org
                   ` (5 preceding siblings ...)
  2010-01-04 18:26 ` hjl dot tools at gmail dot com
@ 2010-01-04 19:20 ` jakub at gcc dot gnu dot org
  2010-01-05  8:43 ` jakub at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: jakub at gcc dot gnu dot org @ 2010-01-04 19:20 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #7 from jakub at gcc dot gnu dot org  2010-01-04 19:19 -------
Created an attachment (id=19465)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=19465&action=view)
gcc45-pr42611.patch

Untested fix.


-- 

jakub at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |jakub at gcc dot gnu dot org
                   |dot org                     |
             Status|NEW                         |ASSIGNED


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


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

* [Bug other/42611] ICE in tree_low_cst, at tree.c:5014
  2010-01-04 15:03 [Bug other/42611] New: ICE in tree_low_cst, at tree.c:5014 debian-gcc at lists dot debian dot org
                   ` (6 preceding siblings ...)
  2010-01-04 19:20 ` jakub at gcc dot gnu dot org
@ 2010-01-05  8:43 ` jakub at gcc dot gnu dot org
  2010-01-05  8:56 ` jakub at gcc dot gnu dot org
  2010-01-05  8:57 ` jakub at gcc dot gnu dot org
  9 siblings, 0 replies; 11+ messages in thread
From: jakub at gcc dot gnu dot org @ 2010-01-05  8:43 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #8 from jakub at gcc dot gnu dot org  2010-01-05 08:43 -------
Subject: Bug 42611

Author: jakub
Date: Tue Jan  5 08:42:53 2010
New Revision: 155641

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=155641
Log:
        PR other/42611
        * cfgexpand.c (expand_one_var): Diagnose too large variables.

        * gcc.dg/pr42611.c: New test.

Added:
    trunk/gcc/testsuite/gcc.dg/pr42611.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/cfgexpand.c
    trunk/gcc/testsuite/ChangeLog


-- 


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


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

* [Bug other/42611] ICE in tree_low_cst, at tree.c:5014
  2010-01-04 15:03 [Bug other/42611] New: ICE in tree_low_cst, at tree.c:5014 debian-gcc at lists dot debian dot org
                   ` (7 preceding siblings ...)
  2010-01-05  8:43 ` jakub at gcc dot gnu dot org
@ 2010-01-05  8:56 ` jakub at gcc dot gnu dot org
  2010-01-05  8:57 ` jakub at gcc dot gnu dot org
  9 siblings, 0 replies; 11+ messages in thread
From: jakub at gcc dot gnu dot org @ 2010-01-05  8:56 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #9 from jakub at gcc dot gnu dot org  2010-01-05 08:56 -------
Subject: Bug 42611

Author: jakub
Date: Tue Jan  5 08:56:30 2010
New Revision: 155642

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=155642
Log:
        PR other/42611
        * cfgexpand.c (expand_one_var): Diagnose too large variables.

        * gcc.dg/pr42611.c: New test.

Added:
    branches/gcc-4_4-branch/gcc/testsuite/gcc.dg/pr42611.c
Modified:
    branches/gcc-4_4-branch/gcc/ChangeLog
    branches/gcc-4_4-branch/gcc/cfgexpand.c
    branches/gcc-4_4-branch/gcc/testsuite/ChangeLog


-- 


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


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

* [Bug other/42611] ICE in tree_low_cst, at tree.c:5014
  2010-01-04 15:03 [Bug other/42611] New: ICE in tree_low_cst, at tree.c:5014 debian-gcc at lists dot debian dot org
                   ` (8 preceding siblings ...)
  2010-01-05  8:56 ` jakub at gcc dot gnu dot org
@ 2010-01-05  8:57 ` jakub at gcc dot gnu dot org
  9 siblings, 0 replies; 11+ messages in thread
From: jakub at gcc dot gnu dot org @ 2010-01-05  8:57 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #10 from jakub at gcc dot gnu dot org  2010-01-05 08:57 -------
Fixed.


-- 

jakub at gcc dot gnu dot org changed:

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


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


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

end of thread, other threads:[~2010-01-05  8:57 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-01-04 15:03 [Bug other/42611] New: ICE in tree_low_cst, at tree.c:5014 debian-gcc at lists dot debian dot org
2010-01-04 15:04 ` [Bug other/42611] " debian-gcc at lists dot debian dot org
2010-01-04 15:20 ` jakub at gcc dot gnu dot org
2010-01-04 18:10 ` hjl dot tools at gmail dot com
2010-01-04 18:12 ` pinskia at gcc dot gnu dot org
2010-01-04 18:17 ` jakub at gcc dot gnu dot org
2010-01-04 18:26 ` hjl dot tools at gmail dot com
2010-01-04 19:20 ` jakub at gcc dot gnu dot org
2010-01-05  8:43 ` jakub at gcc dot gnu dot org
2010-01-05  8:56 ` jakub at gcc dot gnu dot org
2010-01-05  8:57 ` jakub 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).