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, Darwin] Fix PR57438 by avoiding empty function bodies and trailing labels.


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.


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