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

Eric Botcazou ebotcazou@libertysurf.fr
Thu Mar 8 13:13:00 GMT 2007


> 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

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

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

-- 
Eric Botcazou



More information about the Gcc-patches mailing list