This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [c++] Don't emit exception tables for UI_NONE
- From: Jakub Jelinek <jakub at redhat dot com>
- To: Tom de Vries <tdevries at suse dot de>
- Cc: Jason Merrill <jason at redhat dot com>, Nathan Sidwell <nathan at acm dot org>, gcc-patches at gcc dot gnu dot org
- Date: Fri, 3 Aug 2018 11:52:36 +0200
- Subject: Re: [c++] Don't emit exception tables for UI_NONE
- References: <20180802153052.ycw3rxjj3kwy5pqa@delia> <20180802153927.GE17988@tucnak> <336e2629-c34f-530f-2885-a8e629616c7d@suse.de> <20180803094531.4ea4ao6mriam5nv2@delia>
- Reply-to: Jakub Jelinek <jakub at redhat dot com>
On Fri, Aug 03, 2018 at 11:45:31AM +0200, Tom de Vries wrote:
> If a target does not support exceptions, it can indicate this by returning
> UI_NONE in TARGET_EXCEPT_UNWIND_INFO. Currently the compiler still emits
> exception tables for such a target.
>
> This patch makes sure that no exception tables are emitted if the target does
> not support exceptions. This allows us to remove a workaround in
> TARGET_ASM_BYTE_OP in the nvptx port.
>
> Build on x86_64 with nvptx accelerator, and tested libgomp.
>
> OK for trunk if currently running bootstrap and reg-test on x86_64 succeeds?
LGTM (for UI_NONE there is no personality function either, so nothing to
decode .gcc_except_table ...).
> 2018-08-03 Tom de Vries <tdevries@suse.de>
>
> * common/config/nvptx/nvptx-common.c (nvptx_except_unwind_info): Return
> UI_NONE.
> * config/nvptx/nvptx.c (TARGET_ASM_BYTE_OP): Remove define.
> * except.c (output_function_exception_table): Do early exit if
> targetm_common.except_unwind_info (&global_options) == UI_NONE.
Jakub