This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Fix a -fcheck-pointer-bounds -mmpx ICE (PR target/65523)
- From: "H.J. Lu" <hjl dot tools at gmail dot com>
- To: Richard Biener <rguenther at suse dot de>
- Cc: Jakub Jelinek <jakub at redhat dot com>, Ilya Enkovich <enkovich dot gnu at gmail dot com>, GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Thu, 23 Apr 2015 11:12:52 -0700
- Subject: Re: [PATCH] Fix a -fcheck-pointer-bounds -mmpx ICE (PR target/65523)
- Authentication-results: sourceware.org; auth=none
- References: <20150323195454 dot GA1746 at tucnak dot redhat dot com> <2ADA2E1B-9037-4444-8D8F-B9BAB3AE63A5 at suse dot de>
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 ();