[PATCH] Fix PR c++/30582: Trouble with __builtin_offsetof and volatile

Volker Reichelt v.reichelt@netcologne.de
Fri Mar 9 08:27:00 GMT 2007

On  8 Mar, Eric Botcazou wrote:
>> 4.1 branch is quite different.
>> ../../gcc/c-common.c: In function 'fold_offsetof_1':
>> ../../gcc/c-common.c:6006: error: 'stop_ref' undeclared (first use in this
>> function) ../../gcc/c-common.c:6006: error: (Each undeclared identifier is
>> reported only once ../../gcc/c-common.c:6006: error: for each function it
>> appears in.) ../../gcc/c-common.c:6006: error: too many arguments to
>> function 'fold_offsetof_1' make[2]: *** [c-common.o] Error 1

Ouch! Sorry for the breakage!

> This probably means that the patch was not tested on this branch at all...

The patch was tested, but apparently I applied the 4.2 branch version to
the 4.1 branch before committing. Since there were no conflicts this
went unnoticed ... at least by me. Well, one shouldn't commit patches in
a hurry.

>> 2007-03-08  Andreas Schwab  <schwab@suse.de>
>> 	* c-common.c (fold_offsetof_1): Remove extra argument in recursive
>> 	call.
> Please install if not already done.

Thanks for fixing,

More information about the Gcc-patches mailing list