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

Reply via email to