[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug default/26161] compiler crash generating break statement
From: |
jose.marchesi at oracle dot com |
Subject: |
[Bug default/26161] compiler crash generating break statement |
Date: |
Thu, 25 Jun 2020 13:40:46 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=26161
--- Comment #1 from Jose E. Marchesi <jose.marchesi at oracle dot com> ---
This is most probably a regression introduced by commit
commit 1944daecca82e70241b24325a1629c50dec9ebd7
Author: Jose E. Marchesi <jose.marchesi@oracle.com>
Date: Fri May 1 10:38:46 2020 +0200
gen: optimize while(0) and while(1)
2020-05-01 Jose E. Marchesi <jemarch@gnu.org>
* lib/pkl-gen.c (pkl_gen_pr_loop_stmt): Optimize while(0) and
while(1).
The while(1) case is optimized to compile into a single label and BA
instruction. This breaks the assembling of the break statement, as it assumes
that the state of the macro-assembler is some asm_loop.
A solution would be to introduce a new
pkl_asm_simple_loop/pkl_asm_end_simple_loop that would just
pkl_asm_pushlevel/pkl_asm_poplevel. That should fix the issue.
--
You are receiving this mail because:
You are on the CC list for the bug.