User account creation filtered due to spam.

Bug 65564 - [5/6/7/8 Regression] builtin-bnd-narrow-ptr-bounds-2-nov.c:15:1: internal compiler error: in simplify_subreg, at simplify-rtx.c:5745
Summary: [5/6/7/8 Regression] builtin-bnd-narrow-ptr-bounds-2-nov.c:15:1: internal com...
Status: NEW
Alias: None
Product: gcc
Classification: Unclassified
Component: target (show other bugs)
Version: 5.0
: P4 normal
Target Milestone: 5.5
Assignee: Not yet assigned to anyone
URL:
Keywords: ice-on-valid-code
Depends on:
Blocks: CHKP
  Show dependency treegraph
 
Reported: 2015-03-25 18:17 UTC by Rainer Emrich
Modified: 2017-03-01 17:50 UTC (History)
2 users (show)

See Also:
Host:
Target: x86_64-w64-mingw32 x86_64-pc-cygwin
Build:
Known to work:
Known to fail:
Last reconfirmed: 2015-03-25 00:00:00


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Rainer Emrich 2015-03-25 18:17:02 UTC
Running the gcc testsuite I get the following ICE:

Executing on host: /opt/devel/SCRATCH/tmp.5jnZ8G4weh/gcc-5.0.0/gcc-5.0.0/gcc/xgcc -B/opt/devel/SCRATCH/tmp.5jnZ8G4weh/gcc-5.0.0/gcc-5.0.0/gcc/ /opt/devel/gnu/src/gcc-mingw-w64/gcc-5.0.0/gcc/testsuite/gcc.target/i386/mpx/builtin-bnd-narrow-ptr-bounds-2-nov.c   -fno-diagnostics-show-caret -fdiagnostics-color=never    -O3 -g  -fcheck-pointer-bounds -mmpx  -lm    -o ./builtin-bnd-narrow-ptr-bounds-2-nov.exe    (timeout = 300)
spawn /opt/devel/SCRATCH/tmp.5jnZ8G4weh/gcc-5.0.0/gcc-5.0.0/gcc/xgcc -B/opt/devel/SCRATCH/tmp.5jnZ8G4weh/gcc-5.0.0/gcc-5.0.0/gcc/ /opt/devel/gnu/src/gcc-mingw-w64/gcc-5.0.0/gcc/testsuite/gcc.target/i386/mpx/builtin-bnd-narrow-ptr-bounds-2-nov.c -fno-diagnostics-show-caret -fdiagnostics-color=never -O3 -g -fcheck-pointer-bounds -mmpx -lm -o ./builtin-bnd-narrow-ptr-bounds-2-nov.exe
D:/opt/devel/gnu/src/gcc-mingw-w64/gcc-5.0.0/gcc/testsuite/gcc.target/i386/mpx/builtin-bnd-narrow-ptr-bounds-2-nov.c: In function 'mpx_test.chkp':
D:/opt/devel/gnu/src/gcc-mingw-w64/gcc-5.0.0/gcc/testsuite/gcc.target/i386/mpx/builtin-bnd-narrow-ptr-bounds-2-nov.c:15:1: internal compiler error: in simplify_subreg, at simplify-rtx.c:5745
libbacktrace could not find executable to open
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
compiler exited with status 1
output is:
D:/opt/devel/gnu/src/gcc-mingw-w64/gcc-5.0.0/gcc/testsuite/gcc.target/i386/mpx/builtin-bnd-narrow-ptr-bounds-2-nov.c: In function 'mpx_test.chkp':
D:/opt/devel/gnu/src/gcc-mingw-w64/gcc-5.0.0/gcc/testsuite/gcc.target/i386/mpx/builtin-bnd-narrow-ptr-bounds-2-nov.c:15:1: internal compiler error: in simplify_subreg, at simplify-rtx.c:5745
libbacktrace could not find executable to open
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.

FAIL: gcc.target/i386/mpx/builtin-bnd-narrow-ptr-bounds-2-nov.c   -O3 -g  (internal compiler error)
Comment 1 Kai Tietz 2015-03-25 19:08:37 UTC
Confirmed.

Backtrace:
#1  0x010771df in fancy_abort (
    file=file@entry=0x12d0e80 <inchash::add_rtx(rtx_def const*, inchash::hash&):
:__FUNCTION__+8> "../../gcc/gcc/simplify-rtx.c", line=line@entry=5745,
    function=function@entry=0x12d170a <simplify_subreg(machine_mode, rtx_def*, m
achine_mode, unsigned int)::__FUNCTION__> "simplify_subreg")
    at ../../gcc/gcc/diagnostic.c:1291
#2  0x008fa8dd in simplify_subreg (outermode=outermode@entry=BLKmode,
    op=op@entry=0xfff5b2c0, innermode=innermode@entry=DImode,
    byte=byte@entry=0) at ../../gcc/gcc/simplify-rtx.c:5745
#3  0x008fac8f in simplify_gen_subreg (outermode=BLKmode, op=0xfff5b2c0,
    innermode=DImode, byte=byte@entry=0) at ../../gcc/gcc/simplify-rtx.c:5967
#4  0x006ffb7f in ix86_delegitimize_address (x=<optimized out>)
    at ../../gcc/gcc/config/i386/i386.c:14914
#5  0x00ead454 in adjust_mems (loc=0xfff5b7f0, old_rtx=0x0, data=0xc1aa890)
    at ../../gcc/gcc/var-tracking.c:1057
#6  0x008fe4fc in simplify_replace_fn_rtx (x=0xfff5b7f0,
    old_rtx=old_rtx@entry=0x0,
    fn=fn@entry=0xead280 <adjust_mems(rtx, const_rtx, void*)>,
    data=data@entry=0xc1aa890) at ../../gcc/gcc/simplify-rtx.c:467
#7  0x008fe038 in simplify_replace_fn_rtx (x=0xfff5b800,

assert happens due on call of simplify_subreg the outermode is a BLKmode.

I think we should check within simplify_get_subreg for outermode == BLKmode and avoid calling of simplify_subreg for it.
Comment 2 Kai Tietz 2015-03-25 20:38:48 UTC
As more I look as more I guess it is related to recent pic-code changes in i386.c for Darwin.
I will check at what places we now assume that for PIC (especially for UNSPEC UNSPEC_PCREL) we assume that x64-code only uses path with GOT-table for PIC.
Comment 3 Thomas Koenig 2015-03-29 14:21:01 UTC
Author: tkoenig
Date: Sun Mar 29 14:20:29 2015
New Revision: 221761

URL: https://gcc.gnu.org/viewcvs?rev=221761&root=gcc&view=rev
Log:
2015-03-29  Thomas Koenig  <tkoenig@gcc.gnu.org>

	PR libgfortran/65564
	* gfortran.dg/open_errors_2.f90:  New test.


Added:
    trunk/gcc/testsuite/gfortran.dg/open_errors_2.f90
Modified:
    trunk/gcc/testsuite/ChangeLog
Comment 4 Thomas Koenig 2015-03-29 14:34:00 UTC
Of course, the commit had nothing to do with this PR.
Comment 5 Richard Biener 2015-03-31 13:11:57 UTC
No primary/secondary target in the list of affected targets.
Comment 6 Jakub Jelinek 2015-04-22 11:58:45 UTC
GCC 5.1 has been released.
Comment 7 Richard Biener 2015-07-16 09:13:13 UTC
GCC 5.2 is being released, adjusting target milestone to 5.3.
Comment 8 Richard Biener 2015-12-04 10:46:31 UTC
GCC 5.3 is being released, adjusting target milestone.
Comment 9 Richard Biener 2016-06-03 10:06:23 UTC
GCC 5.4 is being released, adjusting target milestone.