This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: wrong excess elements warning
- To: Richard Henderson <rth at cygnus dot com>
- Subject: Re: wrong excess elements warning
- From: Ulrich Drepper <drepper at redhat dot com>
- Date: 01 Nov 2000 14:42:52 -0800
- Cc: gcc-bugs at gcc dot gnu dot org
- References: <m38zr37dq9.fsf@otr.mynet.cygnus.com><20001101143021.E308@cygnus.com>
- Reply-To: drepper at cygnus dot com (Ulrich Drepper)
Richard Henderson <rth@cygnus.com> writes:
> This was never documented to work in gcc (and in fact didn't work in
> some cases). Since C99 disallows this construct, I think we should
> disallow it as well.
I find this not acceptable. How else would you have data structures
like this initialized? Using a pointer instead of a zero-sized array
means another indirection and at least one more relocation. And
copying from somewhere else at startup time is completely out of
question. I'll have to resort to using asm()s to do this if gcc
suddenly does not allow this anymore.
There are many things the C committee people in their infinite wisdom
do not allow and do demand and this definitely does not mean this is
correct or useful.
--
---------------. ,-. 1325 Chesapeake Terrace
Ulrich Drepper \ ,-------------------' \ Sunnyvale, CA 94089 USA
Red Hat `--' drepper at redhat.com `------------------------