public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/21105] New: Compiling of large array fails
@ 2005-04-19 13:03 e9925248 at stud4 dot tuwien dot ac dot at
2005-04-19 13:08 ` [Bug middle-end/21105] [4.0/4.1 Regression] " pinskia at gcc dot gnu dot org
` (8 more replies)
0 siblings, 9 replies; 10+ messages in thread
From: e9925248 at stud4 dot tuwien dot ac dot at @ 2005-04-19 13:03 UTC (permalink / raw)
To: gcc-bugs
Compiling
void
foo ()
{
float c[204800000][4];
}
fails with
t3.c: In function 'foo':
t3.c:16: internal compiler error: in tree_low_cst, at tree.c:3846
All current CVS versions (4.X fail).
At least some 3.x versions are not affected
GCC 2.96 shows an other error.
Affected Versions, which I tested:
4.1.0 20050416
4.1.0 20050302
2.96 20000731 (Red Hat Linux 7.2 2.96-112.7.2)
Non Affected Version:
3.3.3 20040412 (Red Hat Linux 3.3.3-7)
--
Summary: Compiling of large array fails
Product: gcc
Version: 4.1.0
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: e9925248 at stud4 dot tuwien dot ac dot at
CC: gcc-bugs at gcc dot gnu dot org
GCC build triplet: i686-pc-linux-gnu
GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21105
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug middle-end/21105] [4.0/4.1 Regression] Compiling of large array fails
2005-04-19 13:03 [Bug c/21105] New: Compiling of large array fails e9925248 at stud4 dot tuwien dot ac dot at
@ 2005-04-19 13:08 ` pinskia at gcc dot gnu dot org
2005-05-02 21:55 ` pinskia at gcc dot gnu dot org
` (7 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-04-19 13:08 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-04-19 13:08 -------
Confirmed, this is most likely caused by the tree-ssa merge.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Component|c |middle-end
Ever Confirmed| |1
Keywords| |ice-on-invalid-code
Known to fail| |4.0.0 4.1.0 3.0.4
Known to work| |3.4.0 3.3.3
Last reconfirmed|0000-00-00 00:00:00 |2005-04-19 13:08:31
date| |
Summary|Compiling of large array |[4.0/4.1 Regression]
|fails |Compiling of large array
| |fails
Target Milestone|--- |4.0.1
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21105
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug middle-end/21105] [4.0/4.1 Regression] Compiling of large array fails
2005-04-19 13:03 [Bug c/21105] New: Compiling of large array fails e9925248 at stud4 dot tuwien dot ac dot at
2005-04-19 13:08 ` [Bug middle-end/21105] [4.0/4.1 Regression] " pinskia at gcc dot gnu dot org
@ 2005-05-02 21:55 ` pinskia at gcc dot gnu dot org
2005-07-08 1:45 ` mmitchel 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 @ 2005-05-02 21:55 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-05-02 21:55 -------
Patch here: <http://gcc.gnu.org/ml/gcc-patches/2005-05/msg00121.html>.
--
What |Removed |Added
----------------------------------------------------------------------------
URL| |http://gcc.gnu.org/ml/gcc-
| |patches/2005-
| |05/msg00121.html
Keywords| |patch
Last reconfirmed|2005-04-19 13:08:31 |2005-05-02 21:55:12
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21105
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug middle-end/21105] [4.0/4.1 Regression] Compiling of large array fails
2005-04-19 13:03 [Bug c/21105] New: Compiling of large array fails e9925248 at stud4 dot tuwien dot ac dot at
2005-04-19 13:08 ` [Bug middle-end/21105] [4.0/4.1 Regression] " pinskia at gcc dot gnu dot org
2005-05-02 21:55 ` pinskia at gcc dot gnu dot org
@ 2005-07-08 1:45 ` mmitchel at gcc dot gnu dot org
2005-07-25 15:51 ` pinskia at gcc dot gnu dot org
` (5 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2005-07-08 1:45 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|4.0.1 |4.0.2
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21105
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug middle-end/21105] [4.0/4.1 Regression] Compiling of large array fails
2005-04-19 13:03 [Bug c/21105] New: Compiling of large array fails e9925248 at stud4 dot tuwien dot ac dot at
` (2 preceding siblings ...)
2005-07-08 1:45 ` mmitchel at gcc dot gnu dot org
@ 2005-07-25 15:51 ` pinskia at gcc dot gnu dot org
2005-08-16 0:59 ` wilson at specifix dot com
` (4 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-07-25 15:51 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-07-25 15:50 -------
Hmm, Jim posted a patch here: <http://gcc.gnu.org/ml/gcc-patches/2005-05/msg00377.html> but
never applied it.
--
What |Removed |Added
----------------------------------------------------------------------------
URL|http://gcc.gnu.org/ml/gcc- |http://gcc.gnu.org/ml/gcc-
|patches/2005- |patches/2005-
|05/msg00121.html |05/msg00377.html
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21105
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug middle-end/21105] [4.0/4.1 Regression] Compiling of large array fails
2005-04-19 13:03 [Bug c/21105] New: Compiling of large array fails e9925248 at stud4 dot tuwien dot ac dot at
` (3 preceding siblings ...)
2005-07-25 15:51 ` pinskia at gcc dot gnu dot org
@ 2005-08-16 0:59 ` wilson at specifix dot com
2005-08-16 18:24 ` cvs-commit at gcc dot gnu dot org
` (3 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: wilson at specifix dot com @ 2005-08-16 0:59 UTC (permalink / raw)
To: gcc-bugs
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1729 bytes --]
------- Additional Comments From wilson at specifix dot com 2005-08-16 00:47 -------
Subject: Re: [4.0/4.1 Regression] Compiling of large
array fails
pinskia at gcc dot gnu dot org wrote:
> ------- Additional Comments From pinskia at gcc dot gnu dot org 2005-07-25 15:50 -------
> Hmm, Jim posted a patch here: <http://gcc.gnu.org/ml/gcc-patches/2005-05/msg00377.html> but
> never applied it.
I never finished my patch. I was hoping someone else would help finish
it. Since it is my patch, I'll follow up on this.
The first thing I did here is grep the entire tree for
TREE_OVERFLOW (TYPE_SIZE (...))
since all such occurances are broken. I found 3. One in the C front
end (this bug), one in the C++ front end, and one in the Ada front end.
I can't create a testcase for the Ada bug, nor can I at the moment build
the Ada front end, so there is not much I can do there other than maybe
create a new bug report for it and insert the obvious patch.
The C++ code is identical to the C code, so the same testcase and patch
work here. Unfortunately, there is a problem. I get
tmp.cc:13: error: size of array array is too large
tmp.cc:17: error: array was not declared in this scope
The first error is correct, the second one isn't. Or at least I assume
it isn't. I'm not qualified to comment on that, nor am I qualified to
fix it. So, um, I guess I am creating yet another new bug report for that.
For the C front end, I have a patch that I believe is correct, and I
have a small testcase that I think is reasonably portable. I need to
drop my testcase into the testsuite with dg annotations, and test it all
with a bootstrap and make check.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21105
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug middle-end/21105] [4.0/4.1 Regression] Compiling of large array fails
2005-04-19 13:03 [Bug c/21105] New: Compiling of large array fails e9925248 at stud4 dot tuwien dot ac dot at
` (4 preceding siblings ...)
2005-08-16 0:59 ` wilson at specifix dot com
@ 2005-08-16 18:24 ` cvs-commit at gcc dot gnu dot org
2005-08-16 20:36 ` cvs-commit at gcc dot gnu dot org
` (2 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2005-08-16 18:24 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2005-08-16 18:24 -------
Subject: Bug 21105
CVSROOT: /cvs/gcc
Module name: gcc
Changes by: wilson@gcc.gnu.org 2005-08-16 18:23:59
Modified files:
gcc : ChangeLog c-decl.c
gcc/testsuite : ChangeLog
Added files:
gcc/testsuite/gcc.dg: large-size-array.c
Log message:
Emit an error for too large arrays instead of an ICE.
PR tree-optimization/21105
* c-decl.c (grokdeclarator): Use TYPE_SIZE_UNIT not TYPE_SIZE in
TREE_OVERFLOW check.
* gcc.dg/large-size-array.c: New.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&r1=2.9745&r2=2.9746
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/c-decl.c.diff?cvsroot=gcc&r1=1.680&r2=1.681
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&r1=1.5928&r2=1.5929
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gcc.dg/large-size-array.c.diff?cvsroot=gcc&r1=NONE&r2=1.1
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21105
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug middle-end/21105] [4.0/4.1 Regression] Compiling of large array fails
2005-04-19 13:03 [Bug c/21105] New: Compiling of large array fails e9925248 at stud4 dot tuwien dot ac dot at
` (5 preceding siblings ...)
2005-08-16 18:24 ` cvs-commit at gcc dot gnu dot org
@ 2005-08-16 20:36 ` cvs-commit at gcc dot gnu dot org
2005-08-16 20:44 ` wilson at gcc dot gnu dot org
2005-08-22 23:56 ` cvs-commit at gcc dot gnu dot org
8 siblings, 0 replies; 10+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2005-08-16 20:36 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2005-08-16 20:34 -------
Subject: Bug 21105
CVSROOT: /cvs/gcc
Module name: gcc
Branch: gcc-4_0-branch
Changes by: wilson@gcc.gnu.org 2005-08-16 20:34:21
Modified files:
gcc : ChangeLog c-decl.c
Log message:
Fix ICE that occurs with too large array.
PR tree-optimization/21105
* c-decl.c (grokdeclarator): Use TYPE_SIZE_UNIT not TYPE_SIZE in
TREE_OVERFLOW check.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=2.7592.2.371&r2=2.7592.2.372
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/c-decl.c.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=1.630.6.15&r2=1.630.6.16
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21105
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug middle-end/21105] [4.0/4.1 Regression] Compiling of large array fails
2005-04-19 13:03 [Bug c/21105] New: Compiling of large array fails e9925248 at stud4 dot tuwien dot ac dot at
` (6 preceding siblings ...)
2005-08-16 20:36 ` cvs-commit at gcc dot gnu dot org
@ 2005-08-16 20:44 ` wilson at gcc dot gnu dot org
2005-08-22 23:56 ` cvs-commit at gcc dot gnu dot org
8 siblings, 0 replies; 10+ messages in thread
From: wilson at gcc dot gnu dot org @ 2005-08-16 20:44 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From wilson at gcc dot gnu dot org 2005-08-16 20:36 -------
The C front end bug is fixed on mainline and the gcc-4.0.x branch. The C++ and
Ada front end bugs have their own PRs now.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Known to fail|4.0.0 4.1.0 3.0.4 |4.0.0 3.0.4
Known to work|3.4.0 3.3.3 |3.4.0 3.3.3 4.0.2 4.1.0
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21105
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug middle-end/21105] [4.0/4.1 Regression] Compiling of large array fails
2005-04-19 13:03 [Bug c/21105] New: Compiling of large array fails e9925248 at stud4 dot tuwien dot ac dot at
` (7 preceding siblings ...)
2005-08-16 20:44 ` wilson at gcc dot gnu dot org
@ 2005-08-22 23:56 ` cvs-commit at gcc dot gnu dot org
8 siblings, 0 replies; 10+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2005-08-22 23:56 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2005-08-22 23:52 -------
Subject: Bug 21105
CVSROOT: /cvs/gcc
Module name: gcc
Changes by: wilson@gcc.gnu.org 2005-08-22 23:52:24
Modified files:
gcc/cp : ChangeLog decl.c
Log message:
Partial fix for too large arrays.
PR tree-optimization/21105
* decl.c (grokdeclarator): Use TYPE_SIZE_UNIT not TYPE_SIZE for
array size check.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/ChangeLog.diff?cvsroot=gcc&r1=1.4854&r2=1.4855
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/decl.c.diff?cvsroot=gcc&r1=1.1419&r2=1.1420
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21105
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2005-08-22 23:52 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-04-19 13:03 [Bug c/21105] New: Compiling of large array fails e9925248 at stud4 dot tuwien dot ac dot at
2005-04-19 13:08 ` [Bug middle-end/21105] [4.0/4.1 Regression] " pinskia at gcc dot gnu dot org
2005-05-02 21:55 ` pinskia at gcc dot gnu dot org
2005-07-08 1:45 ` mmitchel at gcc dot gnu dot org
2005-07-25 15:51 ` pinskia at gcc dot gnu dot org
2005-08-16 0:59 ` wilson at specifix dot com
2005-08-16 18:24 ` cvs-commit at gcc dot gnu dot org
2005-08-16 20:36 ` cvs-commit at gcc dot gnu dot org
2005-08-16 20:44 ` wilson at gcc dot gnu dot org
2005-08-22 23:56 ` cvs-commit 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).