[Bug middle-end/61577] [4.9.0] can't compile on hp-ux v3 ia64
dave.anglin at bell dot net
gcc-bugzilla@gcc.gnu.org
Sun Jul 21 19:40:00 GMT 2019
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61577
--- Comment #72 from dave.anglin at bell dot net ---
On 2019-07-21 2:56 p.m., cameron.heide at betasystems dot com wrote:
> I did a bit of bisecting and the EOF conftest crash started occurring at
> revision r214747
> (https://gcc.gnu.org/viewcvs/gcc?view=revision&revision=214747).
Excellent! Does this help?
Index: expr.c
===================================================================
--- expr.c (revision 273643)
+++ expr.c (working copy)
@@ -344,6 +344,11 @@
if (GET_MODE_PRECISION (from_mode) > GET_MODE_PRECISION (to_mode))
ctab = trunc_optab;
+ else if (unsignedp < 0 && targetm.have_ptr_extend ())
+ {
+ emit_unop_insn (targetm.code_for_ptr_extend, to, from, UNKNOWN);
+ return;
+ }
else if (unsignedp)
ctab = zext_optab;
else
More information about the Gcc-bugs
mailing list