[Bug middle-end/21105] [4.0/4.1 Regression] Compiling of large array fails

2005-08-22 Thread cvs-commit at gcc dot gnu dot org

--- 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: [EMAIL PROTECTED]   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


[Bug middle-end/21105] [4.0/4.1 Regression] Compiling of large array fails

2005-08-16 Thread wilson at gcc dot gnu dot org

--- 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


[Bug middle-end/21105] [4.0/4.1 Regression] Compiling of large array fails

2005-08-16 Thread cvs-commit at gcc dot gnu dot org

--- 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: [EMAIL PROTECTED]   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


[Bug middle-end/21105] [4.0/4.1 Regression] Compiling of large array fails

2005-08-16 Thread cvs-commit at gcc dot gnu dot org

--- 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: [EMAIL PROTECTED]   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


[Bug middle-end/21105] [4.0/4.1 Regression] Compiling of large array fails

2005-08-15 Thread wilson at specifix dot com

--- 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: 
>   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


[Bug middle-end/21105] [4.0/4.1 Regression] Compiling of large array fails

2005-07-25 Thread pinskia at gcc dot gnu dot org

--- Additional Comments From pinskia at gcc dot gnu dot org  2005-07-25 
15:50 ---
Hmm, Jim posted a patch here: 
  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


[Bug middle-end/21105] [4.0/4.1 Regression] Compiling of large array fails

2005-07-07 Thread mmitchel at gcc dot gnu dot org


-- 
   What|Removed |Added

   Target Milestone|4.0.1   |4.0.2


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


[Bug middle-end/21105] [4.0/4.1 Regression] Compiling of large array fails

2005-05-02 Thread pinskia at gcc dot gnu dot org

--- Additional Comments From pinskia at gcc dot gnu dot org  2005-05-02 
21:55 ---
Patch here: .

-- 
   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


[Bug middle-end/21105] [4.0/4.1 Regression] Compiling of large array fails

2005-04-19 Thread pinskia at gcc dot gnu dot org

--- 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|-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