[PATCH] Re: [v3] updated atomic configury

Andrew MacLeod amacleod@redhat.com
Mon Nov 28 20:29:00 GMT 2011


On 11/28/2011 11:42 AM, Joseph S. Myers wrote:
> On Mon, 28 Nov 2011, Andrew MacLeod wrote:
>
> That would be why cppbuiltin.c, defining __SIZEOF_POINTER__, needs to use
> the POINTER_SIZE macro instead of directly using ptr_type_node.  You may
> need to do something similar.
>
>    /* ptr_type_node can't be used here since ptr_mode is only set when
>       toplev calls backend_init which is not done with -E switch.  */
>    cpp_define_formatted (pfile, "__SIZEOF_POINTER__=%d",
>                          POINTER_SIZE / BITS_PER_UNIT);
>
How bizarre...  thanks you saved me some hair pulling I'm sure :-)  That 
does work, here's a patch which does that..
bootstraps on x86_64-unknown-linux-gnu and has no new regressions.  OK 
for mainline?

Andrew
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: atom_head2.diff
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20111128/c3ad2767/attachment.ksh>


More information about the Gcc-patches mailing list