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] |
The attached patch fixes an invalid rtl sharing in see. A test is attached, to reproduce run on a x86_64 ./cc1plus -fsee -O2 test.ii I would like to add test.ii to the testsuite. Where should it go? OK if bootstraps and regression tests are OK? * see.c (see_pre_insert_extensions): Use copy_rtx to avoid invalid rtx sharing. Cheers, -- Rafael Avila de Espindola Google Ireland Ltd. Gordon House Barrow Street Dublin 4 Ireland Registered in Dublin, Ireland Registration Number: 368047
diff --git a/gcc/see.c b/gcc/see.c index 6e5260b..8002cde 100644 --- a/gcc/see.c +++ b/gcc/see.c @@ -1687,7 +1687,7 @@ see_pre_insert_extensions (struct see_pre_extension_expr **index_map) start_sequence (); emit_insn (PATTERN (expr->se_insn)); - se_insn = get_insns (); + se_insn = copy_rtx (get_insns ()); end_sequence (); if (eg->flags & EDGE_ABNORMAL)
Attachment:
test.ii
Description: Binary data
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |