This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: wrong excess elements warning


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]