public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/65495] New: ICE: chkp_make_addressed_object_bounds: Unexpected tree code const_decl with -fcheck-pointer-bounds -mmpx and fortran
@ 2015-03-20 16:38 zsojka at seznam dot cz
  2015-03-27 11:00 ` [Bug target/65495] " ienkovich at gcc dot gnu.org
  2015-03-27 11:01 ` ienkovich at gcc dot gnu.org
  0 siblings, 2 replies; 3+ messages in thread
From: zsojka at seznam dot cz @ 2015-03-20 16:38 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 65495
           Summary: ICE: chkp_make_addressed_object_bounds: Unexpected
                    tree code const_decl with -fcheck-pointer-bounds -mmpx
                    and fortran
           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 35074
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=35074&action=edit
reduced testcase

Compiler output:
$ gcc -fcheck-pointer-bounds -mmpx testcase.f90 
testcase.f90:2:0:

       END
 ^
internal compiler error: chkp_make_addressed_object_bounds: Unexpected tree
code const_decl
0xd6d7c6 chkp_make_addressed_object_bounds
        /mnt/svn/gcc-trunk/gcc/tree-chkp.c:3384
0xd6ac4e chkp_find_bounds_1
        /mnt/svn/gcc-trunk/gcc/tree-chkp.c:3517
0xd6fae6 chkp_find_bounds
        /mnt/svn/gcc-trunk/gcc/tree-chkp.c:3555
0xd6fae6 chkp_add_bounds_to_call_stmt
        /mnt/svn/gcc-trunk/gcc/tree-chkp.c:1814
0xd6fae6 chkp_instrument_function
        /mnt/svn/gcc-trunk/gcc/tree-chkp.c:4139
0xd6fae6 chkp_execute
        /mnt/svn/gcc-trunk/gcc/tree-chkp.c:4323
0xd6fae6 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.

It seems almost any fortran code triggers this ICE.

$ 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:
r221530 - ICE


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

* [Bug target/65495] ICE: chkp_make_addressed_object_bounds: Unexpected tree code const_decl with -fcheck-pointer-bounds -mmpx and fortran
  2015-03-20 16:38 [Bug target/65495] New: ICE: chkp_make_addressed_object_bounds: Unexpected tree code const_decl with -fcheck-pointer-bounds -mmpx and fortran zsojka at seznam dot cz
@ 2015-03-27 11:00 ` ienkovich at gcc dot gnu.org
  2015-03-27 11:01 ` ienkovich at gcc dot gnu.org
  1 sibling, 0 replies; 3+ messages in thread
From: ienkovich at gcc dot gnu.org @ 2015-03-27 11:00 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #1 from Ilya Enkovich <ienkovich at gcc dot gnu.org> ---
Author: ienkovich
Date: Fri Mar 27 10:29:04 2015
New Revision: 221725

URL: https://gcc.gnu.org/viewcvs?rev=221725&root=gcc&view=rev
Log:
    PR target/65495
    * c-family/c.opt (fcheck-pointer-bounds): List supported languages.
    (fchkp-check-incomplete-type): Add LTO.
    (fchkp-zero-input-bounds-for-main): Likewise.
    (fchkp-first-field-has-own-bounds): Likewise.
    (fchkp-narrow-bounds): Likewise.
    (fchkp-narrow-to-innermost-array): Likewise.
    (fchkp-use-static-bounds): Likewise.
    (fchkp-use-static-const-bounds): Likewise.
    (fchkp-treat-zero-dynamic-size-as-infinite): Likewise.


Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/c-family/c.opt


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

* [Bug target/65495] ICE: chkp_make_addressed_object_bounds: Unexpected tree code const_decl with -fcheck-pointer-bounds -mmpx and fortran
  2015-03-20 16:38 [Bug target/65495] New: ICE: chkp_make_addressed_object_bounds: Unexpected tree code const_decl with -fcheck-pointer-bounds -mmpx and fortran zsojka at seznam dot cz
  2015-03-27 11:00 ` [Bug target/65495] " ienkovich at gcc dot gnu.org
@ 2015-03-27 11:01 ` ienkovich at gcc dot gnu.org
  1 sibling, 0 replies; 3+ messages in thread
From: ienkovich at gcc dot gnu.org @ 2015-03-27 11:01 UTC (permalink / raw)
  To: gcc-bugs

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

Ilya Enkovich <ienkovich at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
                 CC|                            |ienkovich at gcc dot gnu.org
         Resolution|---                         |FIXED

--- Comment #2 from Ilya Enkovich <ienkovich at gcc dot gnu.org> ---
Fixed


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

end of thread, other threads:[~2015-03-27 10:30 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-03-20 16:38 [Bug target/65495] New: ICE: chkp_make_addressed_object_bounds: Unexpected tree code const_decl with -fcheck-pointer-bounds -mmpx and fortran zsojka at seznam dot cz
2015-03-27 11:00 ` [Bug target/65495] " ienkovich at gcc dot gnu.org
2015-03-27 11:01 ` ienkovich 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).