public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/65527] New: ICE: in expand_builtin_with_bounds, at builtins.c:7120 with -fcheck-pointer-bounds -mmpx
@ 2015-03-23 19:58 zsojka at seznam dot cz
2015-03-24 8:53 ` [Bug target/65527] " ienkovich at gcc dot gnu.org
` (4 more replies)
0 siblings, 5 replies; 6+ messages in thread
From: zsojka at seznam dot cz @ 2015-03-23 19:58 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65527
Bug ID: 65527
Summary: ICE: in expand_builtin_with_bounds, at builtins.c:7120
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 35117
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=35117&action=edit
reduced testcase
Compiler output:
$ gcc -Os -fcheck-pointer-bounds -mmpx testcase.c
testcase.c: In function 'foo.chkp':
testcase.c:7:3: internal compiler error: in expand_builtin_with_bounds, at
builtins.c:7120
f (&i);
^
0x7cf7e0 expand_builtin_with_bounds(tree_node*, rtx_def*, rtx_def*,
machine_mode, int)
/mnt/svn/gcc-trunk/gcc/builtins.c:7119
0x904b27 expand_expr_real_1(tree_node*, rtx_def*, machine_mode,
expand_modifier, rtx_def**, bool)
/mnt/svn/gcc-trunk/gcc/expr.c:10487
0x7ff238 expand_expr
/mnt/svn/gcc-trunk/gcc/expr.h:254
0x7ff238 expand_call_stmt
/mnt/svn/gcc-trunk/gcc/cfgexpand.c:2399
0x7ff238 expand_gimple_stmt_1
/mnt/svn/gcc-trunk/gcc/cfgexpand.c:3343
0x7ff238 expand_gimple_stmt
/mnt/svn/gcc-trunk/gcc/cfgexpand.c:3497
0x803cb4 expand_gimple_basic_block
/mnt/svn/gcc-trunk/gcc/cfgexpand.c:5509
0x8067a6 execute
/mnt/svn/gcc-trunk/gcc/cfgexpand.c:6127
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:
r221530 - ICE
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug target/65527] ICE: in expand_builtin_with_bounds, at builtins.c:7120 with -fcheck-pointer-bounds -mmpx
2015-03-23 19:58 [Bug target/65527] New: ICE: in expand_builtin_with_bounds, at builtins.c:7120 with -fcheck-pointer-bounds -mmpx zsojka at seznam dot cz
@ 2015-03-24 8:53 ` ienkovich at gcc dot gnu.org
2015-04-15 8:31 ` ienkovich at gcc dot gnu.org
` (3 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: ienkovich at gcc dot gnu.org @ 2015-03-24 8:53 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65527
ienkovich at gcc dot gnu.org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |ienkovich at gcc dot gnu.org
--- Comment #1 from ienkovich at gcc dot gnu.org ---
Patch posted: https://gcc.gnu.org/ml/gcc-patches/2015-03/msg00991.html
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug target/65527] ICE: in expand_builtin_with_bounds, at builtins.c:7120 with -fcheck-pointer-bounds -mmpx
2015-03-23 19:58 [Bug target/65527] New: ICE: in expand_builtin_with_bounds, at builtins.c:7120 with -fcheck-pointer-bounds -mmpx zsojka at seznam dot cz
2015-03-24 8:53 ` [Bug target/65527] " ienkovich at gcc dot gnu.org
@ 2015-04-15 8:31 ` ienkovich at gcc dot gnu.org
2015-06-01 11:24 ` ienkovich at gcc dot gnu.org
` (2 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: ienkovich at gcc dot gnu.org @ 2015-04-15 8:31 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65527
Ilya Enkovich <ienkovich at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |ASSIGNED
Last reconfirmed| |2015-04-15
Assignee|unassigned at gcc dot gnu.org |ienkovich at gcc dot gnu.org
Ever confirmed|0 |1
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug target/65527] ICE: in expand_builtin_with_bounds, at builtins.c:7120 with -fcheck-pointer-bounds -mmpx
2015-03-23 19:58 [Bug target/65527] New: ICE: in expand_builtin_with_bounds, at builtins.c:7120 with -fcheck-pointer-bounds -mmpx zsojka at seznam dot cz
2015-03-24 8:53 ` [Bug target/65527] " ienkovich at gcc dot gnu.org
2015-04-15 8:31 ` ienkovich at gcc dot gnu.org
@ 2015-06-01 11:24 ` ienkovich at gcc dot gnu.org
2015-06-17 7:43 ` ienkovich at gcc dot gnu.org
2015-06-17 13:33 ` ienkovich at gcc dot gnu.org
4 siblings, 0 replies; 6+ messages in thread
From: ienkovich at gcc dot gnu.org @ 2015-06-01 11:24 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65527
--- Comment #2 from Ilya Enkovich <ienkovich at gcc dot gnu.org> ---
Author: ienkovich
Date: Mon Jun 1 11:24:07 2015
New Revision: 223929
URL: https://gcc.gnu.org/viewcvs?rev=223929&root=gcc&view=rev
Log:
gcc/
PR target/65527
* cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Add
redirection for instrumented calls.
* lto-wrapper.c (merge_and_complain): Merge -fcheck-pointer-bounds.
(append_compiler_options): Append -fcheck-pointer-bounds.
* tree-chkp.h (chkp_copy_call_skip_bounds): New.
(chkp_redirect_edge): New.
* tree-chkp.c (chkp_copy_call_skip_bounds): New.
(chkp_redirect_edge): New.
gcc/testsuite/
PR target/65527
* gcc.target/i386/mpx/chkp-fix-calls-1.c: New.
* gcc.target/i386/mpx/chkp-fix-calls-2.c: New.
* gcc.target/i386/mpx/chkp-fix-calls-3.c: New.
* gcc.target/i386/mpx/chkp-fix-calls-4.c: New.
Added:
trunk/gcc/testsuite/gcc.target/i386/mpx/chkp-fix-calls-1.c
trunk/gcc/testsuite/gcc.target/i386/mpx/chkp-fix-calls-2.c
trunk/gcc/testsuite/gcc.target/i386/mpx/chkp-fix-calls-3.c
trunk/gcc/testsuite/gcc.target/i386/mpx/chkp-fix-calls-4.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/cgraph.c
trunk/gcc/lto-wrapper.c
trunk/gcc/testsuite/ChangeLog
trunk/gcc/tree-chkp.c
trunk/gcc/tree-chkp.h
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug target/65527] ICE: in expand_builtin_with_bounds, at builtins.c:7120 with -fcheck-pointer-bounds -mmpx
2015-03-23 19:58 [Bug target/65527] New: ICE: in expand_builtin_with_bounds, at builtins.c:7120 with -fcheck-pointer-bounds -mmpx zsojka at seznam dot cz
` (2 preceding siblings ...)
2015-06-01 11:24 ` ienkovich at gcc dot gnu.org
@ 2015-06-17 7:43 ` ienkovich at gcc dot gnu.org
2015-06-17 13:33 ` ienkovich at gcc dot gnu.org
4 siblings, 0 replies; 6+ messages in thread
From: ienkovich at gcc dot gnu.org @ 2015-06-17 7:43 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65527
--- Comment #3 from Ilya Enkovich <ienkovich at gcc dot gnu.org> ---
Author: ienkovich
Date: Wed Jun 17 07:42:39 2015
New Revision: 224547
URL: https://gcc.gnu.org/viewcvs?rev=224547&root=gcc&view=rev
Log:
gcc/
Backport from mainline r223929.
2015-06-01 Ilya Enkovich <ilya.enkovich@intel.com>
PR target/65527
* cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Add
redirection for instrumented calls.
* lto-wrapper.c (merge_and_complain): Merge -fcheck-pointer-bounds.
(append_compiler_options): Append -fcheck-pointer-bounds.
* tree-chkp.h (chkp_copy_call_skip_bounds): New.
(chkp_redirect_edge): New.
* tree-chkp.c (chkp_copy_call_skip_bounds): New.
(chkp_redirect_edge): New.
gcc/testsuite/
Backport from mainline r223929.
2015-06-01 Ilya Enkovich <ilya.enkovich@intel.com>
PR target/65527
* gcc.target/i386/mpx/chkp-fix-calls-1.c: New.
* gcc.target/i386/mpx/chkp-fix-calls-2.c: New.
* gcc.target/i386/mpx/chkp-fix-calls-3.c: New.
* gcc.target/i386/mpx/chkp-fix-calls-4.c: New.
Added:
branches/gcc-5-branch/gcc/testsuite/gcc.target/i386/mpx/chkp-fix-calls-1.c
branches/gcc-5-branch/gcc/testsuite/gcc.target/i386/mpx/chkp-fix-calls-2.c
branches/gcc-5-branch/gcc/testsuite/gcc.target/i386/mpx/chkp-fix-calls-3.c
branches/gcc-5-branch/gcc/testsuite/gcc.target/i386/mpx/chkp-fix-calls-4.c
Modified:
branches/gcc-5-branch/gcc/ChangeLog
branches/gcc-5-branch/gcc/cgraph.c
branches/gcc-5-branch/gcc/lto-wrapper.c
branches/gcc-5-branch/gcc/testsuite/ChangeLog
branches/gcc-5-branch/gcc/tree-chkp.c
branches/gcc-5-branch/gcc/tree-chkp.h
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug target/65527] ICE: in expand_builtin_with_bounds, at builtins.c:7120 with -fcheck-pointer-bounds -mmpx
2015-03-23 19:58 [Bug target/65527] New: ICE: in expand_builtin_with_bounds, at builtins.c:7120 with -fcheck-pointer-bounds -mmpx zsojka at seznam dot cz
` (3 preceding siblings ...)
2015-06-17 7:43 ` ienkovich at gcc dot gnu.org
@ 2015-06-17 13:33 ` ienkovich at gcc dot gnu.org
4 siblings, 0 replies; 6+ messages in thread
From: ienkovich at gcc dot gnu.org @ 2015-06-17 13:33 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65527
Ilya Enkovich <ienkovich at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution|--- |FIXED
--- Comment #4 from Ilya Enkovich <ienkovich at gcc dot gnu.org> ---
Fixed
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2015-06-17 13:33 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-03-23 19:58 [Bug target/65527] New: ICE: in expand_builtin_with_bounds, at builtins.c:7120 with -fcheck-pointer-bounds -mmpx zsojka at seznam dot cz
2015-03-24 8:53 ` [Bug target/65527] " ienkovich at gcc dot gnu.org
2015-04-15 8:31 ` ienkovich at gcc dot gnu.org
2015-06-01 11:24 ` ienkovich at gcc dot gnu.org
2015-06-17 7:43 ` ienkovich at gcc dot gnu.org
2015-06-17 13:33 ` 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).