[PATCH] Fix a -fcheck-pointer-bounds -mmpx ICE (PR target/65523)

H.J. Lu hjl.tools@gmail.com
Thu Apr 23 18:12:00 GMT 2015


On Mon, Mar 23, 2015 at 1:01 PM, Richard Biener <rguenther@suse.de> wrote:
> On March 23, 2015 8:54:54 PM GMT+01:00, Jakub Jelinek <jakub@redhat.com> wrote:
>>Hi!
>>
>>On the following testcase we ICE, because we don't verify we have the
>>ERF_RETURNS_ARG argument, on non-verified builtins that is possible.
>>Other uses of ERF_RETURNS_ARG seem to verify it.
>>Also, there was an unneeded extra gimple_call_return_flags call,
>>the condition has already checked that ERF_RETURNS_ARG flag is set.
>>
>>Bootstrapped/regtested on x86_64-linux and i686-linux, ok for trunk?
>
> OK.
>
> Thanks,
> Richard.
>
>>2015-03-23  Jakub Jelinek  <jakub@redhat.com>
>>
>>       PR target/65523
>>       * tree-chkp.c (chkp_build_returned_bound): Ignore
>>       ERF_RETURNS_ARG calls if they have fewer than needed arguments.
>>
>>       * gcc.target/i386/pr65523.c: New test.
>>

MPX doesn't support x32.  I checked in this patch to skip it
for x32.

-- 
H.J.
---
Index: ChangeLog
===================================================================
--- ChangeLog (revision 222381)
+++ ChangeLog (working copy)
@@ -1,3 +1,7 @@
+2015-04-23  H.J. Lu  <hongjiu.lu@intel.com>
+
+ * gcc.target/i386/pr65523.c: Skip x32.
+
 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>

  * gcc.target/arm/neon/pr51534.c: Update vcg* scan-assembly patterns
Index: gcc.target/i386/pr65523.c
===================================================================
--- gcc.target/i386/pr65523.c (revision 222381)
+++ gcc.target/i386/pr65523.c (working copy)
@@ -1,5 +1,5 @@
 /* PR target/65523 */
-/* { dg-do compile } */
+/* { dg-do compile { target { ! x32 } } } */
 /* { dg-options "-fcheck-pointer-bounds -mmpx" } */

 void *memmove ();



More information about the Gcc-patches mailing list