public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/26774] New: Out of memory compiling 9-line Delta-reduced Linux kernel driver msp3400.c
@ 2006-03-21 4:19 flash at pobox dot com
2006-03-21 4:22 ` [Bug c/26774] " flash at pobox dot com
` (9 more replies)
0 siblings, 10 replies; 11+ messages in thread
From: flash at pobox dot com @ 2006-03-21 4:19 UTC (permalink / raw)
To: gcc-bugs
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 3633 bytes --]
The attached 9-line file causes a checking=all build of GCC 4.1.0 to exhaust
memory, on both Ubuntu Linux 5.04/2.6.10-6-386 and Mac OSX 10.4.5. It's a
Delta-reduced version of a preprocessed version of the Linux Kernel file
drivers/media/video/msp3400.c, which exhibited the same behavior. The original
compilation was being done by a test script outside the kernel tree, so the
compilation encountered errors; the preprocessed file is invalid C, as is the
Delta-reduced version.
My checking=all builds of GCC 4.0.1 (patched) and 4.02 each give a
segmentation fault. GCC 3.3.5 (Debian 1:3.3.5-8ubuntu2) gives up cleanly:
"confused by earlier errors, bailing out".
On the non-reduced preprocessed file, with my patched checking build of
4.0.1, I instead get the following, which seems like PR22028, which is
presumably fixed:
internal compiler error: tree check: expected class type, have
exceptional (error_mark) in
gimplify_type_sizes, at gimplify.c:4368
Here's the session; I'll attached the preprocessed file and the
Delta-reduction. I used ulimit on Ubuntu to save time; fully exhausting memory
on OSX (where ulimit doesn't seem to work) with the unreduced file took half an
hour, but memory use gets above 50MB fairly quickly.
3> ulimit -m 50000 -v 50000
flash@traska scripts 20:11:53
4> /opt/gcc410-chk-all/bin/gcc -v
../cpp/bugfiles/GCC_bugfiles/error/122285_msp3400_min.i
Using built-in specs.
Target: i686-pc-linux-gnu
Configured with: /opt/Gcc-4.1.0-dist/configure --enable-checking=all
--prefix=/opt/gcc410-chk-all --enable-languages=c,c++ --with-comment=PalmSource
checking=all build by Flash Sheridan 3/17/06
Thread model: posix
gcc version 4.1.0
/home/opt/gcc410-chk-all/bin/../libexec/gcc/i686-pc-linux-gnu/4.1.0/cc1
-fpreprocessed ../cpp/bugfiles/GCC_bugfiles/error/122285_msp3400_min.i -quiet
-dumpbase 122285_msp3400_min.i -mtune=pentiumpro -auxbase 122285_msp3400_min
-version -o /tmp/ccV7UEre.s
GNU C version 4.1.0 (i686-pc-linux-gnu)
compiled by GNU C version 3.3.5 (Debian 1:3.3.5-8ubuntu2).
GGC heuristics: --param ggc-min-expand=0 --param ggc-min-heapsize=0
Compiler executable checksum: a68040354320563d9f0f04c1edf3c815
../cpp/bugfiles/GCC_bugfiles/error/122285_msp3400_min.i:3: warning: struct
i2c_client declared inside parameter list
../cpp/bugfiles/GCC_bugfiles/error/122285_msp3400_min.i:3: warning: its scope
is only this definition or declaration, which is probably not what you want
../cpp/bugfiles/GCC_bugfiles/error/122285_msp3400_min.i:4: error: field
driver has incomplete type
../cpp/bugfiles/GCC_bugfiles/error/122285_msp3400_min.i:6: error: two or more
data types in declaration specifiers
../cpp/bugfiles/GCC_bugfiles/error/122285_msp3400_min.i:6: warning: struct
i2c_client declared inside parameter list
../cpp/bugfiles/GCC_bugfiles/error/122285_msp3400_min.i:8: warning:
initialization from incompatible pointer type
virtual memory exhausted: Cannot allocate memory
flash@traska scripts 20:14:31
---
PalmSource bug #122285
http://pobox.com/~flash
Quality Lead for Compilers and Debuggers
PalmSource, Inc. Tools Quality Management
--
Summary: Out of memory compiling 9-line Delta-reduced Linux
kernel driver msp3400.c
Product: gcc
Version: 4.1.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: flash at pobox dot com
GCC host triplet: i686-pc-linux-gnu, powerpc-apple-darwin8.5.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26774
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug c/26774] Out of memory compiling 9-line Delta-reduced Linux kernel driver msp3400.c
2006-03-21 4:19 [Bug c/26774] New: Out of memory compiling 9-line Delta-reduced Linux kernel driver msp3400.c flash at pobox dot com
@ 2006-03-21 4:22 ` flash at pobox dot com
2006-03-21 4:23 ` flash at pobox dot com
` (8 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: flash at pobox dot com @ 2006-03-21 4:22 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from flash at pobox dot com 2006-03-21 04:22 -------
Created an attachment (id=11075)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=11075&action=view)
Delta-reduced version
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26774
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug c/26774] Out of memory compiling 9-line Delta-reduced Linux kernel driver msp3400.c
2006-03-21 4:19 [Bug c/26774] New: Out of memory compiling 9-line Delta-reduced Linux kernel driver msp3400.c flash at pobox dot com
2006-03-21 4:22 ` [Bug c/26774] " flash at pobox dot com
@ 2006-03-21 4:23 ` flash at pobox dot com
2006-03-21 9:37 ` rguenth at gcc dot gnu dot org
` (7 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: flash at pobox dot com @ 2006-03-21 4:23 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from flash at pobox dot com 2006-03-21 04:23 -------
Created an attachment (id=11076)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=11076&action=view)
Unreduced preprocessed file
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26774
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug c/26774] Out of memory compiling 9-line Delta-reduced Linux kernel driver msp3400.c
2006-03-21 4:19 [Bug c/26774] New: Out of memory compiling 9-line Delta-reduced Linux kernel driver msp3400.c flash at pobox dot com
2006-03-21 4:22 ` [Bug c/26774] " flash at pobox dot com
2006-03-21 4:23 ` flash at pobox dot com
@ 2006-03-21 9:37 ` rguenth at gcc dot gnu dot org
2006-03-21 9:38 ` [Bug c/26774] [4.0/4.1/4.2 Regression] " rguenth at gcc dot gnu dot org
` (6 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2006-03-21 9:37 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from rguenth at gcc dot gnu dot org 2006-03-21 09:37 -------
Confirmed. Though the unreduced testcase does not build for me. The testcase
in question is
struct i2c_driver {
struct module *owner;
int (*command)(struct i2c_client *client,unsigned int cmd, void *arg);
struct device_driver driver;
}
static int msp_command(struct i2c_client *client, unsigned int cmd, void *arg);
static struct i2c_driver driver = {
.command = msp_command,
},
--
rguenth at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
Keywords| |error-recovery, ice-on-
| |invalid-code
Last reconfirmed|0000-00-00 00:00:00 |2006-03-21 09:37:33
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26774
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug c/26774] [4.0/4.1/4.2 Regression] Out of memory compiling 9-line Delta-reduced Linux kernel driver msp3400.c
2006-03-21 4:19 [Bug c/26774] New: Out of memory compiling 9-line Delta-reduced Linux kernel driver msp3400.c flash at pobox dot com
` (2 preceding siblings ...)
2006-03-21 9:37 ` rguenth at gcc dot gnu dot org
@ 2006-03-21 9:38 ` rguenth at gcc dot gnu dot org
2006-04-04 15:00 ` carlos at codesourcery dot com
` (5 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2006-03-21 9:38 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from rguenth at gcc dot gnu dot org 2006-03-21 09:38 -------
3.4 is confused by earlier errors and bails out.
--
rguenth at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Known to fail| |4.0.3 4.1.0
Known to work| |3.4.6
Summary|Out of memory compiling 9- |[4.0/4.1/4.2 Regression] Out
|line Delta-reduced Linux |of memory compiling 9-line
|kernel driver msp3400.c |Delta-reduced Linux kernel
| |driver msp3400.c
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26774
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug c/26774] [4.0/4.1/4.2 Regression] Out of memory compiling 9-line Delta-reduced Linux kernel driver msp3400.c
2006-03-21 4:19 [Bug c/26774] New: Out of memory compiling 9-line Delta-reduced Linux kernel driver msp3400.c flash at pobox dot com
` (3 preceding siblings ...)
2006-03-21 9:38 ` [Bug c/26774] [4.0/4.1/4.2 Regression] " rguenth at gcc dot gnu dot org
@ 2006-04-04 15:00 ` carlos at codesourcery dot com
2006-04-04 15:01 ` carlos at codesourcery dot com
` (4 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: carlos at codesourcery dot com @ 2006-04-04 15:00 UTC (permalink / raw)
To: gcc-bugs
------- Comment #5 from carlos at codesourcery dot com 2006-04-04 15:00 -------
Created an attachment (id=11201)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=11201&action=view)
Fix parser error handling
The patch fixes this issue. No regressions on i686-pc-linux-gnu.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26774
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug c/26774] [4.0/4.1/4.2 Regression] Out of memory compiling 9-line Delta-reduced Linux kernel driver msp3400.c
2006-03-21 4:19 [Bug c/26774] New: Out of memory compiling 9-line Delta-reduced Linux kernel driver msp3400.c flash at pobox dot com
` (4 preceding siblings ...)
2006-04-04 15:00 ` carlos at codesourcery dot com
@ 2006-04-04 15:01 ` carlos at codesourcery dot com
2006-04-20 0:21 ` carlos at gcc dot gnu dot org
` (3 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: carlos at codesourcery dot com @ 2006-04-04 15:01 UTC (permalink / raw)
To: gcc-bugs
------- Comment #6 from carlos at codesourcery dot com 2006-04-04 15:01 -------
I'll submit the patch to gcc-patches and check it in when approved.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26774
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug c/26774] [4.0/4.1/4.2 Regression] Out of memory compiling 9-line Delta-reduced Linux kernel driver msp3400.c
2006-03-21 4:19 [Bug c/26774] New: Out of memory compiling 9-line Delta-reduced Linux kernel driver msp3400.c flash at pobox dot com
` (5 preceding siblings ...)
2006-04-04 15:01 ` carlos at codesourcery dot com
@ 2006-04-20 0:21 ` carlos at gcc dot gnu dot org
2006-04-21 23:43 ` carlos at gcc dot gnu dot org
` (2 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: carlos at gcc dot gnu dot org @ 2006-04-20 0:21 UTC (permalink / raw)
To: gcc-bugs
------- Comment #7 from carlos at gcc dot gnu dot org 2006-04-20 00:21 -------
Subject: Bug 26774
Author: carlos
Date: Thu Apr 20 00:21:51 2006
New Revision: 113107
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=113107
Log:
gcc/
2006-04-19 Carlos O'Donell <carlos@codesourcery.com>
Nathan Sidwell <nathan@codesourcery.com>
PR c/26774
* stor-layout.c (update_alignment_for_field): Do not align
ERROR_MARK nodes.
(place_union_field): Place union field at the start of the union.
(place_field): Move ERROR_MARK check later, and use the current
allocation position to maintain monotonicity.
gcc/testsuite/
2006-04-19 Carlos O'Donell <carlos@codesourcery.com>
PR c/26774
* gcc.dg/struct-parse-1.c: New test case.
Added:
trunk/gcc/testsuite/gcc.dg/struct-parse-1.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/stor-layout.c
trunk/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26774
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug c/26774] [4.0/4.1/4.2 Regression] Out of memory compiling 9-line Delta-reduced Linux kernel driver msp3400.c
2006-03-21 4:19 [Bug c/26774] New: Out of memory compiling 9-line Delta-reduced Linux kernel driver msp3400.c flash at pobox dot com
` (6 preceding siblings ...)
2006-04-20 0:21 ` carlos at gcc dot gnu dot org
@ 2006-04-21 23:43 ` carlos at gcc dot gnu dot org
2006-04-21 23:45 ` [Bug c/26774] [4.0 " pinskia at gcc dot gnu dot org
2007-02-03 16:26 ` gdr at gcc dot gnu dot org
9 siblings, 0 replies; 11+ messages in thread
From: carlos at gcc dot gnu dot org @ 2006-04-21 23:43 UTC (permalink / raw)
To: gcc-bugs
------- Comment #8 from carlos at gcc dot gnu dot org 2006-04-21 23:43 -------
Subject: Bug 26774
Author: carlos
Date: Fri Apr 21 23:42:43 2006
New Revision: 113155
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=113155
Log:
gcc/
2006-04-21 Carlos O'Donell <carlos@codesourcery.com>
Backport from mainline:
2006-04-19 Carlos O'Donell <carlos@codesourcery.com>
Nathan Sidwell <nathan@codesourcery.com>
PR c/26774
* stor-layout.c (update_alignment_for_field): Do not align
ERROR_MARK nodes.
(place_union_field): Place union field at the start of the union.
(place_field): Move ERROR_MARK check later, and use the current
allocation position to maintain monotonicity.
gcc/testsuite/
2006-04-21 Carlos O'Donell <carlos@codesourcery.com>
Backport from mainline:
2006-04-19 Carlos O'Donell <carlos@codesourcery.com>
PR c/26774
* gcc.dg/struct-parse-1.c: New test case.
Added:
branches/gcc-4_1-branch/gcc/testsuite/gcc.dg/struct-parse-1.c
Modified:
branches/gcc-4_1-branch/gcc/ChangeLog
branches/gcc-4_1-branch/gcc/stor-layout.c
branches/gcc-4_1-branch/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26774
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug c/26774] [4.0 Regression] Out of memory compiling 9-line Delta-reduced Linux kernel driver msp3400.c
2006-03-21 4:19 [Bug c/26774] New: Out of memory compiling 9-line Delta-reduced Linux kernel driver msp3400.c flash at pobox dot com
` (7 preceding siblings ...)
2006-04-21 23:43 ` carlos at gcc dot gnu dot org
@ 2006-04-21 23:45 ` pinskia at gcc dot gnu dot org
2007-02-03 16:26 ` gdr at gcc dot gnu dot org
9 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-04-21 23:45 UTC (permalink / raw)
To: gcc-bugs
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Known to work|3.4.6 |3.4.6 4.1.1 4.2.0
Summary|[4.0/4.1/4.2 Regression] Out|[4.0 Regression] Out of
|of memory compiling 9-line |memory compiling 9-line
|Delta-reduced Linux kernel |Delta-reduced Linux kernel
|driver msp3400.c |driver msp3400.c
Target Milestone|--- |4.0.4
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26774
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug c/26774] [4.0 Regression] Out of memory compiling 9-line Delta-reduced Linux kernel driver msp3400.c
2006-03-21 4:19 [Bug c/26774] New: Out of memory compiling 9-line Delta-reduced Linux kernel driver msp3400.c flash at pobox dot com
` (8 preceding siblings ...)
2006-04-21 23:45 ` [Bug c/26774] [4.0 " pinskia at gcc dot gnu dot org
@ 2007-02-03 16:26 ` gdr at gcc dot gnu dot org
9 siblings, 0 replies; 11+ messages in thread
From: gdr at gcc dot gnu dot org @ 2007-02-03 16:26 UTC (permalink / raw)
To: gcc-bugs
------- Comment #9 from gdr at gcc dot gnu dot org 2007-02-03 16:25 -------
Fixed in GCC-4.1.1
--
gdr at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
Target Milestone|4.0.4 |4.1.1
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26774
^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2007-02-03 16:26 UTC | newest]
Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-03-21 4:19 [Bug c/26774] New: Out of memory compiling 9-line Delta-reduced Linux kernel driver msp3400.c flash at pobox dot com
2006-03-21 4:22 ` [Bug c/26774] " flash at pobox dot com
2006-03-21 4:23 ` flash at pobox dot com
2006-03-21 9:37 ` rguenth at gcc dot gnu dot org
2006-03-21 9:38 ` [Bug c/26774] [4.0/4.1/4.2 Regression] " rguenth at gcc dot gnu dot org
2006-04-04 15:00 ` carlos at codesourcery dot com
2006-04-04 15:01 ` carlos at codesourcery dot com
2006-04-20 0:21 ` carlos at gcc dot gnu dot org
2006-04-21 23:43 ` carlos at gcc dot gnu dot org
2006-04-21 23:45 ` [Bug c/26774] [4.0 " pinskia at gcc dot gnu dot org
2007-02-03 16:26 ` gdr 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).