On 24/07/15 18:29, Uros Bizjak wrote:
This patch introduces ADJUST_INSN_LENGTH define to i386.h to increase
the length of the insn when bnd prefix is used.
2015-07-24 Uros Bizjak <ubiz...@gmail.com>
PR target/64003
* config/i386/i386.h (ADJUST_INSN_LENGTH): New define.
* config/i386/i386.md (maybe_prefix_bnd): New attribute.
(*jcc_1, *jcc_2, jump, simple_return_internal)
(simple_return_pop_internal): Set attribute maybe_prefix_bnd.
Set length_nobnd attribute instead of length attribute.
(indirect_jump, *tablejump_1): Set attribute maybe_prefix_bnd.
(length_nobnd): Remove attribute.
(length): Remove length_nobnd processing.
Bootstrapped and regression tested on x86_64-linux-gnu {,-m32}.
Committed to mainline SVN.
Hi,
Is it possible this causes a build breaker on x86_64 with
--enable-checking=rtl?
In file included from src/libgcc/unwind-dw2.c:35:0:
src/libgcc/unwind-pe.h: In function ‘read_encoded_value_with_base’:
src/libgcc/unwind-pe.h:271:1: internal compiler error: RTL check:
expected elt 5 type 'i' or 'n', have '0' (rtx jump_table_data) in
recog_memoized, at recog.h:167
}
^
0xed9cda rtl_check_failed_type2(rtx_def const*, int, int, int, char
const*, int, char const*)
src/gcc/rtl.c:777
0xa05c55 recog_memoized
src/gcc/recog.h:167
0xa087c8 shorten_branches(rtx_insn*)
src/gcc/final.c:1203
0xa136c8 rest_of_handle_shorten_branches
src/gcc/final.c:4541
0xa13716 execute
src/gcc/final.c:4570
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <http://gcc.gnu.org/bugs.html> for instructions.
make[4]: *** [unwind-dw2.o] Error 1
make[4]: *** Waiting for unfinished jobs....
Thanks,
- Tom