This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH, Darwin] Fix PR57438 by avoiding empty function bodies and trailing labels.
- From: Mike Stump <mikestump at comcast dot net>
- To: Iain Sandoe <Iain_Sandoe at mentor dot com>
- Cc: GCC Patches <gcc-patches at gcc dot gnu dot org>, Segher Boessenkool <segher at kernel dot crashing dot org>, Uros Bizjak <ubizjak at gmail dot com>
- Date: Mon, 7 Nov 2016 10:24:18 -0800
- Subject: Re: [PATCH, Darwin] Fix PR57438 by avoiding empty function bodies and trailing labels.
- Authentication-results: sourceware.org; auth=none
- References: <D6E4DCB5-AE00-490F-8B9B-B32CF96783C7@mentor.com>
On Nov 6, 2016, at 12:13 PM, Iain Sandoe <Iain_Sandoe@mentor.com> wrote:
>
> OK for trunk?
> OK for open branches?
For the darwin parts, Ok.
> 2016-11-06 Iain Sandoe <iain@codesourcery.com>
>
> PR target/57438
> * config/i386/i386.c (ix86_code_end): Note that we emitted code where the
> function might otherwise appear empty for picbase thunks.
> (ix86_output_function_epilogue): If we find a zero-sized function assume that
> reaching it is UB and trap. If we find a trailing label append a nop.
> * config/rs6000/rs6000.c (rs6000_output_function_epilogue): If we find
> a zero-sized function assume that reaching it is UB and trap. If we find a
> trailing label, append a nop.
>
> gcc/testsuite/
>
> 2016-11-06 Iain Sandoe <iain@codesourcery.com>
>
> PR target/57438
> * gcc.dg/pr57438-1.c: New.
> * gcc.dg/pr57438-2.c: New.