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] Fix asm goto miscompilation of Linux kernel (PR middle-end/58670)


On 10/10/2013 03:22 AM, Jakub Jelinek wrote:
> Bootstrapped/regtested on x86_64-linux and i686-linux, ok for trunk and 4.8?
> 
> 2013-10-10  Jakub Jelinek  <jakub@redhat.com>
> 
> 	PR middle-end/58670
> 	* stmt.c (expand_asm_operands): Add FALLTHRU_BB argument,
> 	if any labels are in FALLTHRU_BB, use a special label emitted
> 	immediately after the asm goto insn rather than label_rtx
> 	of the LABEL_DECL.
> 	(expand_asm_stmt): Adjust caller.
> 	* cfgrtl.c (commit_one_edge_insertion): Force splitting of
> 	edge if the last insn in predecessor is a jump with single successor,
> 	but it isn't simplejump_p.
> 
> 	* gcc.dg/torture/pr58670.c: New test.

Ok everywhere.


r~


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