[patch] Remove fold-const.h as a dependency for gimple.h

Jeff Law law@redhat.com
Fri Jun 26 23:49:00 GMT 2015


On 06/26/2015 11:59 AM, Andrew MacLeod wrote:
> On 06/26/2015 05:40 AM, Richard Biener wrote:
>> On Thu, Jun 25, 2015 at 10:57 PM, Jeff Law <law@redhat.com> wrote:
>>> On 06/25/2015 02:31 PM, Andrew MacLeod wrote:
>>>> I proposed including fold-const.h into gimple.h, but didn't notice that
>>>> its actually only needed by one inline function. Moving that
>>>> function to
>>>> gimple.c means its no longer required.
>>>>
>>> OK.
>> Well, it's also just lazy in using build_fold_addr_expr_loc because it
>> doesn't want to spell out the all-tree.h
>>
>>     build1_loc (gimple_location (gs), ADDR_EXPR, build_pointer_type
>> (decl), decl);
>>
>> there is nothing to be simplified (setting a location here is also a
>> waste).
>>
>> Richard.
>>
>>
> Easy enough... how about this for trunk?
>
> bootstraps on x86_64-unknown-linux-gnu with no new regressions.
> Andrew
OK.
jeff



More information about the Gcc-patches mailing list