This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]