This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Patch [3.4/3.3] G++ fix char bitfield use for ISO C
> From: Richard Henderson <rth at redhat dot com>
>
> On Fri, Apr 04, 2003 at 12:16:59AM -0500, Kaveh R. Ghazi wrote:
> > <shrug> I'll check tomorrow. Why do you ask?
>
> It would eliminate the need to uglify the start of the struct
> with an __extension__ there.
> r~
Tried it and it doesn't work. There were two problems, one was that
gengtype got confused by the __extension__ keyword. I can surmount
that by teaching gengtype to ignore __extension__ as Geoff instructed
here: http://gcc.gnu.org/ml/gcc/2003-04/msg00106.html
But when I do that and recompile I still get -pedantic warnings about
the char bitfields. I guess GCC needs to see __extension__ at the
struct level rather than the member level to elide the warnings.
--Kaveh
--
Kaveh R. Ghazi ghazi at caip dot rutgers dot edu