[PATCH, middle-end]: Fix PR67619, ICE at -O1 and above in int_mode_for_mode, at stor-layout.c

Uros Bizjak ubizjak@gmail.com
Sun Sep 20 18:18:00 GMT 2015


On Sat, Sep 19, 2015 at 2:32 PM, Andreas Schwab <schwab@linux-m68k.org> wrote:
> Uros Bizjak <ubizjak@gmail.com> writes:
>
>>     PR middle-end/67619
>>     * gcc.dg/torture/pr67619.c: New test.
>
> On ia64:
>
> FAIL: gcc.dg/torture/pr67619.c   -O0  (test for excess errors)
> Excess errors:
> /usr/local/gcc/gcc-20150919/gcc/testsuite/gcc.dg/torture/pr67619.c:12:1: error: __builtin_eh_return not supported on this target

Fixed by attached testsuite patch.

Uros.
-------------- next part --------------
Index: gcc.dg/torture/pr67619.c
===================================================================
--- gcc.dg/torture/pr67619.c	(revision 227909)
+++ gcc.dg/torture/pr67619.c	(working copy)
@@ -1,4 +1,5 @@
 /* { dg-do compile } */
+/* { dg-require-effective-target builtin_eh_return } */
 
 void
 foo ()
Index: lib/target-supports.exp
===================================================================
--- lib/target-supports.exp	(revision 227908)
+++ lib/target-supports.exp	(working copy)
@@ -6449,3 +6449,13 @@
 	int (*fn) () = foo;
     }]
 }
+
+# Return 1 if target supports __builtin_eh_return
+proc check_effective_target_builtin_eh_return { } {
+    return [check_no_compiler_messages builtin_eh_return object {
+	void test (long l, void *p)
+	{
+	    __builtin_eh_return (l, p);
+	}
+    } "" ]
+}


More information about the Gcc-patches mailing list