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] C++ space optimization: omit EH info for thunks


On Friday, Aug 16, 2002, at 10:39 US/Pacific, Jason Merrill wrote:

On Fri, 16 Aug 2002 10:22:38 -0700, Stuart Hastings <stuart@apple.com> wrote:

     * gcc/gcc/function.h Add 'all_throwers_are_sibcalls' to cfun.
     * gcc/gcc/except.c (nothrow_function_p) Set it.
     * gcc/gcc/dwarf2out.c Add 'all_throwers_are_sibcalls' to FDE.
     (output_call_frame_info) Test it.
     (dwarf2out_begin_prologue) Propagate it from cfun to FDE.
If you're going to change nothrow_function_p to set a new flag in cfun, it
should set both flags directly rather than set one directly and return the
other. As a result, it should probably be renamed; perhaps to
"set_nothrow_function_flags".
Bootstraps on Linux x86 and passes the C++ testsuite with no new regressions.

2002-08-15 Stuart Hastings <stuart@apple.com>

* gcc/gcc/function.h Add 'all_throwers_are_sibcalls' flag to struct function (cfun).
* gcc/gcc/except.c (set_nothrow_function_flags) Replaces nothrow_function_p. Set new flag.
* gcc/gcc/except.h (set_nothrow_function_flags) Replaces nothrow_function_p.
* gcc/gcc/dwarf2out.c Add 'all_throwers_are_sibcalls' to dw_fde_struct.
(output_call_frame_info) Test it.
(dwarf2out_begin_prologue) Propagate it from cfun to dw_fde_struct.
* gcc/gcc/toplev.c (rest_of_compilation) Update calls to nothrow_function_p.

Attachment: patch.omit-thunk-eh-info.3
Description: Binary data







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