public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/65523] New: ICE: in gimple_op, at gimple.h:2270 with -fcheck-pointer-bounds -mmpx
@ 2015-03-23 11:56 zsojka at seznam dot cz
  2015-03-23 12:47 ` [Bug target/65523] " ktietz at gcc dot gnu.org
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: zsojka at seznam dot cz @ 2015-03-23 11:56 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65523

            Bug ID: 65523
           Summary: ICE: in gimple_op, at gimple.h:2270 with
                    -fcheck-pointer-bounds -mmpx
           Product: gcc
           Version: 5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: zsojka at seznam dot cz

Created attachment 35107
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=35107&action=edit
reduced testcase (gcc.dg/torture/pr55890-3.c)

Compiler output:
$ gcc -fcheck-pointer-bounds -mmpx testcase.c
testcase.c: In function 'bar.chkp':
testcase.c:7:1: internal compiler error: in gimple_op, at gimple.h:2270
 }
 ^
0x59ec53 gimple_op
        /mnt/svn/gcc-trunk/gcc/gimple.h:2270
0xcfb51f gimple_op
        /mnt/svn/gcc-trunk/gcc/gimple.h:2257
0xcfb51f gimple_call_arg
        /mnt/svn/gcc-trunk/gcc/gimple.h:2855
0xd012cf chkp_build_returned_bound
        /mnt/svn/gcc-trunk/gcc/tree-chkp.c:2195
0xd012cf chkp_get_bounds_by_definition
        /mnt/svn/gcc-trunk/gcc/tree-chkp.c:2728
0xd012cf chkp_find_bounds_1
        /mnt/svn/gcc-trunk/gcc/tree-chkp.c:3475
0xd04862 chkp_find_bounds
        /mnt/svn/gcc-trunk/gcc/tree-chkp.c:3555
0xd04862 chkp_add_bounds_to_ret_stmt
        /mnt/svn/gcc-trunk/gcc/tree-chkp.c:1232
0xd04862 chkp_instrument_function
        /mnt/svn/gcc-trunk/gcc/tree-chkp.c:4133
0xd04862 chkp_execute
        /mnt/svn/gcc-trunk/gcc/tree-chkp.c:4323
0xd04862 execute
        /mnt/svn/gcc-trunk/gcc/tree-chkp.c:4380
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <http://gcc.gnu.org/bugs.html> for instructions.

$ gcc -v                                     
Using built-in specs.
COLLECT_GCC=/mnt/svn/gcc-trunk/binary-latest/bin/gcc
COLLECT_LTO_WRAPPER=/mnt/svn/gcc-trunk/binary-221530-lto-fortran-checking-yes-rtl-df/libexec/gcc/x86_64-unknown-linux-gnu/5.0.0/lto-wrapper
Target: x86_64-unknown-linux-gnu
Configured with: /mnt/svn/gcc-trunk//configure --enable-checking=yes,rtl,df
--enable-languages=c,c++,lto,fortran
--prefix=/mnt/svn/gcc-trunk/binary-221530-lto-fortran-checking-yes-rtl-df/
--without-cloog --without-ppl
Thread model: posix
gcc version 5.0.0 20150320 (experimental) (GCC) 

Tested revisions:
r221539 - ICE


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug target/65523] ICE: in gimple_op, at gimple.h:2270 with -fcheck-pointer-bounds -mmpx
  2015-03-23 11:56 [Bug target/65523] New: ICE: in gimple_op, at gimple.h:2270 with -fcheck-pointer-bounds -mmpx zsojka at seznam dot cz
@ 2015-03-23 12:47 ` ktietz at gcc dot gnu.org
  2015-03-23 14:18 ` jakub at gcc dot gnu.org
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: ktietz at gcc dot gnu.org @ 2015-03-23 12:47 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65523

Kai Tietz <ktietz at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2015-03-23
                 CC|                            |ktietz at gcc dot gnu.org
     Ever confirmed|0                           |1

--- Comment #1 from Kai Tietz <ktietz at gcc dot gnu.org> ---
Confirmed


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug target/65523] ICE: in gimple_op, at gimple.h:2270 with -fcheck-pointer-bounds -mmpx
  2015-03-23 11:56 [Bug target/65523] New: ICE: in gimple_op, at gimple.h:2270 with -fcheck-pointer-bounds -mmpx zsojka at seznam dot cz
  2015-03-23 12:47 ` [Bug target/65523] " ktietz at gcc dot gnu.org
@ 2015-03-23 14:18 ` jakub at gcc dot gnu.org
  2015-03-23 21:32 ` jakub at gcc dot gnu.org
  2015-03-23 22:12 ` jakub at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: jakub at gcc dot gnu.org @ 2015-03-23 14:18 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65523

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED
           Assignee|unassigned at gcc dot gnu.org      |jakub at gcc dot gnu.org

--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Created attachment 35110
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=35110&action=edit
gcc5-pr65523.patch

Untested fix.


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug target/65523] ICE: in gimple_op, at gimple.h:2270 with -fcheck-pointer-bounds -mmpx
  2015-03-23 11:56 [Bug target/65523] New: ICE: in gimple_op, at gimple.h:2270 with -fcheck-pointer-bounds -mmpx zsojka at seznam dot cz
  2015-03-23 12:47 ` [Bug target/65523] " ktietz at gcc dot gnu.org
  2015-03-23 14:18 ` jakub at gcc dot gnu.org
@ 2015-03-23 21:32 ` jakub at gcc dot gnu.org
  2015-03-23 22:12 ` jakub at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: jakub at gcc dot gnu.org @ 2015-03-23 21:32 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65523

--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Mon Mar 23 20:03:50 2015
New Revision: 221606

URL: https://gcc.gnu.org/viewcvs?rev=221606&root=gcc&view=rev
Log:
    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.

Added:
    trunk/gcc/testsuite/gcc.target/i386/pr65523.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/tree-chkp.c


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug target/65523] ICE: in gimple_op, at gimple.h:2270 with -fcheck-pointer-bounds -mmpx
  2015-03-23 11:56 [Bug target/65523] New: ICE: in gimple_op, at gimple.h:2270 with -fcheck-pointer-bounds -mmpx zsojka at seznam dot cz
                   ` (2 preceding siblings ...)
  2015-03-23 21:32 ` jakub at gcc dot gnu.org
@ 2015-03-23 22:12 ` jakub at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: jakub at gcc dot gnu.org @ 2015-03-23 22:12 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65523

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|---                         |FIXED

--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Fixed.


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2015-03-23 20:05 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-03-23 11:56 [Bug target/65523] New: ICE: in gimple_op, at gimple.h:2270 with -fcheck-pointer-bounds -mmpx zsojka at seznam dot cz
2015-03-23 12:47 ` [Bug target/65523] " ktietz at gcc dot gnu.org
2015-03-23 14:18 ` jakub at gcc dot gnu.org
2015-03-23 21:32 ` jakub at gcc dot gnu.org
2015-03-23 22:12 ` jakub at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).