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] Put some global vars into crtl


On Sat, Jun 23, 2012 at 10:38 PM, Steven Bosscher <stevenb.gcc@gmail.com> wrote:
> Hello,
>
> There are three global variables defined in function.c and exported
> via output.h: current_function_is_leaf,
> current_function_sp_is_unchanging, and
> current_function_uses_only_leaf_regs. All 3 can be added to crtl. The
> patch is large but mechanical. ?The most interesting part of the
> ChangeLog is:
>
> ? ? ? ?* output.h: (current_function_is_leaf,
> ? ? ? ?current_function_sp_is_unchanging,
> ? ? ? ?current_function_uses_only_leaf_regs): Remove.
> ? ? ? ?* function.c (current_function_is_leaf,
> ? ? ? ?current_function_sp_is_unchanging,
> ? ? ? ?current_function_uses_only_leaf_regs): Remove.
> ? ? ? ?(rest_of_handle_check_leaf_regs): Set crtl->uses_only_leaf_regs
> ? ? ? ?instead of current_function_uses_only_leaf_regs.
> ? ? ? ?* function.h (struct rtl_data): New fields sp_is_unchanging,
> ? ? ? ?is_leaf, uses_only_leaf_regs.
>
> The rest is just replacing those variables with crtl->thing references.
>
> This brings output.h closer to where I want it to be: Only export
> things defined in varasm.c and final.c. Just two more functions to
> go...
>
> Bootstapped&tested on powerpc64-unknown-linux-gnu. OK for trunk?

Ok.

Thanks,
Richard.

> Ciao!
> Steven


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