public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug middle-end/51279] New: xplor-nih-2.27/nmrPot/solnScatPot.cc ICEs on -O1 -funroll-loops
@ 2011-11-23  2:41 howarth at nitro dot med.uc.edu
  2011-11-23  5:08 ` [Bug middle-end/51279] " howarth at nitro dot med.uc.edu
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: howarth at nitro dot med.uc.edu @ 2011-11-23  2:41 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51279

             Bug #: 51279
           Summary: xplor-nih-2.27/nmrPot/solnScatPot.cc ICEs on -O1
                    -funroll-loops
    Classification: Unclassified
           Product: gcc
           Version: 4.7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: middle-end
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: howarth@nitro.med.uc.edu


Created attachment 25893
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=25893
preprocessed source file for nmrPot/solnScatPot.cc

nmrPot/solnScatPot.cc from xplor-nih 2.27 ICEs the gcc trunk when compiled with
-O1 -funroll-loops. The failure appears on x86_64-apple-darwin11 as...

g++-fsf-4.7 -c solnScatPot.ii -O1 -funroll-loops -fpermissive -g
-DX_MMAP_FLAGS=0 -DFORTRAN_INIT -fno-common -DDARWIN -D_REENTRANT -DNDEBUG
-DCPLUSPLUS -DUSE_CDS_NAMESPACE
In file included from solnScatPot.cc:1791:0:
/Users/howarth/xplor-nih-2.27/CDSlib/cdsVector.cc: In instantiation of
‘CDSVector<T, OFFSET, ALLOC>& CDSVector<T, offset, ALLOC>::operator=(const
CDS::Vector<VECTOR>&) [with VEC = CDSVector<double>; T = double; int offset_ =
0; ALLOC = EnsembleSimulation::SharedAlloc]’:
solnScatPot.cc:1126:64:   required from here
/Users/howarth/xplor-nih-2.27/CDSlib/cdsVector.cc:169:2: warning: ‘resize’ was
not declared in this scope, and no declarations were found by
argument-dependent lookup at the point of instantiation [-fpermissive]
/Users/howarth/xplor-nih-2.27/CDSlib/cdsVector.cc:169:2: note: declarations in
dependent base ‘CDSVectorBase<double, EnsembleSimulation::SharedAlloc>’ are not
found by unqualified lookup
/Users/howarth/xplor-nih-2.27/CDSlib/cdsVector.cc:169:2: note: use
‘this->resize’ instead
/Users/howarth/xplor-nih-2.27/CDSlib/cdsVector.cc: In instantiation of
‘CDSVector<T, OFFSET, ALLOC>& CDSVector<T, offset, ALLOC>::operator=(const
CDS::Vector<VECTOR>&) [with VEC = CDSVector<double, 0,
EnsembleSimulation::SharedAlloc>; T = double; int offset_ = 0; ALLOC =
CDS::DefaultAlloc]’:
solnScatPot.cc:1505:56:   required from here
/Users/howarth/xplor-nih-2.27/CDSlib/cdsVector.cc:169:2: warning: ‘resize’ was
not declared in this scope, and no declarations were found by
argument-dependent lookup at the point of instantiation [-fpermissive]
/Users/howarth/xplor-nih-2.27/CDSlib/cdsVector.cc:169:2: note: declarations in
dependent base ‘CDSVectorBase<double, CDS::DefaultAlloc>’ are not found by
unqualified lookup
/Users/howarth/xplor-nih-2.27/CDSlib/cdsVector.cc:169:2: note: use
‘this->resize’ instead
solnScatPot.cc: In member function ‘void SolnScatPot::calcDeriv_uniform(const
CDSVector<Vec3>&, const CDSMatrix<double>&, CDSVector<Vec3>&)’:
solnScatPot.cc:889:1: internal compiler error: in apply_opt_in_copies, at
loop-unroll.c:2283
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.

The issue doesn't occur with -O0  -funroll-loops


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

* [Bug middle-end/51279] xplor-nih-2.27/nmrPot/solnScatPot.cc ICEs on -O1 -funroll-loops
  2011-11-23  2:41 [Bug middle-end/51279] New: xplor-nih-2.27/nmrPot/solnScatPot.cc ICEs on -O1 -funroll-loops howarth at nitro dot med.uc.edu
@ 2011-11-23  5:08 ` howarth at nitro dot med.uc.edu
  2011-11-23  5:22 ` howarth at nitro dot med.uc.edu
                   ` (5 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: howarth at nitro dot med.uc.edu @ 2011-11-23  5:08 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51279

--- Comment #1 from Jack Howarth <howarth at nitro dot med.uc.edu> 2011-11-23 02:25:52 UTC ---
Using built-in specs.
COLLECT_GCC=gcc-fsf-4.7
COLLECT_LTO_WRAPPER=/sw/lib/gcc4.7/libexec/gcc/x86_64-apple-darwin11.2.0/4.7.0/lto-wrapper
Target: x86_64-apple-darwin11.2.0
Configured with: ../gcc-4.7-20111122/configure --prefix=/sw
--prefix=/sw/lib/gcc4.7 --mandir=/sw/share/man --infodir=/sw/lib/gcc4.7/info
--enable-languages=c,c++,fortran,lto,objc,obj-c++,java --with-gmp=/sw
--with-libiconv-prefix=/sw --with-ppl=/sw --with-cloog=/sw --with-mpc=/sw
--with-system-zlib --x-includes=/usr/X11R6/include --x-libraries=/usr/X11R6/lib
--program-suffix=-fsf-4.7 --enable-checking=yes --enable-cloog-backend=isl
Thread model: posix
gcc version 4.7.0 20111123 (experimental) (GCC)


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

* [Bug middle-end/51279] xplor-nih-2.27/nmrPot/solnScatPot.cc ICEs on -O1 -funroll-loops
  2011-11-23  2:41 [Bug middle-end/51279] New: xplor-nih-2.27/nmrPot/solnScatPot.cc ICEs on -O1 -funroll-loops howarth at nitro dot med.uc.edu
  2011-11-23  5:08 ` [Bug middle-end/51279] " howarth at nitro dot med.uc.edu
@ 2011-11-23  5:22 ` howarth at nitro dot med.uc.edu
  2011-11-23 20:12 ` howarth at nitro dot med.uc.edu
                   ` (4 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: howarth at nitro dot med.uc.edu @ 2011-11-23  5:22 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51279

--- Comment #2 from Jack Howarth <howarth at nitro dot med.uc.edu> 2011-11-23 02:40:51 UTC ---
Created attachment 25894
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=25894
gdb log stepping from last instance of loop-unroll.c:2283 until crash


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

* [Bug middle-end/51279] xplor-nih-2.27/nmrPot/solnScatPot.cc ICEs on -O1 -funroll-loops
  2011-11-23  2:41 [Bug middle-end/51279] New: xplor-nih-2.27/nmrPot/solnScatPot.cc ICEs on -O1 -funroll-loops howarth at nitro dot med.uc.edu
  2011-11-23  5:08 ` [Bug middle-end/51279] " howarth at nitro dot med.uc.edu
  2011-11-23  5:22 ` howarth at nitro dot med.uc.edu
@ 2011-11-23 20:12 ` howarth at nitro dot med.uc.edu
  2011-11-24  3:45 ` howarth at nitro dot med.uc.edu
                   ` (3 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: howarth at nitro dot med.uc.edu @ 2011-11-23 20:12 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51279

--- Comment #3 from Jack Howarth <howarth at nitro dot med.uc.edu> 2011-11-23 19:38:32 UTC ---
Regression hunt started. ICE is not present at r180996.


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

* [Bug middle-end/51279] xplor-nih-2.27/nmrPot/solnScatPot.cc ICEs on -O1 -funroll-loops
  2011-11-23  2:41 [Bug middle-end/51279] New: xplor-nih-2.27/nmrPot/solnScatPot.cc ICEs on -O1 -funroll-loops howarth at nitro dot med.uc.edu
                   ` (2 preceding siblings ...)
  2011-11-23 20:12 ` howarth at nitro dot med.uc.edu
@ 2011-11-24  3:45 ` howarth at nitro dot med.uc.edu
  2011-11-24 20:45 ` howarth at nitro dot med.uc.edu
                   ` (2 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: howarth at nitro dot med.uc.edu @ 2011-11-24  3:45 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51279

--- Comment #4 from Jack Howarth <howarth at nitro dot med.uc.edu> 2011-11-24 01:36:48 UTC ---
Caused by...


r181014 | jakub | 2011-11-05 15:58:37 -0400 (Sat, 05 Nov 2011) | 23 lines

        PR tree-optimization/50693
        * tree-cfg.c (gimple_can_merge_blocks_p): Allow merging with
        non-forced user labels.
        (gimple_merge_blocks): Turn non-forced user labels into
        debug bind stmt with the label as first operand and reset value.
        (gimple_duplicate_bb): Don't duplicate label debug stmts.
        * dwarf2out.c (gen_label_die): Handle NOTE_INSN_DELETED_DEBUG_LABEL.
        * final.c (final_scan_insn): Likewise.
        (rest_of_clean_state): Don't dump NOTE_INSN_DELETED_DEBUG_LABEL.
        * var-tracking.c (debug_label_num): New variable.
        (delete_debug_insns): Don't delete DEBUG_INSNs for LABEL_DECLs,
        instead turn them into NOTE_INSN_DELETED_DEBUG_LABEL notes.
        * cfglayout.c (skip_insns_after_block, duplicate_insn_chain): Handle
        NOTE_INSN_DELETED_DEBUG_LABEL.
        (duplicate_insn_chain): Don't duplicate LABEL_DECL DEBUG_INSNs.
        * insn-notes.def (DELETED_DEBUG_LABEL): New note kind.
        * print-rtl.c (print_rtx): Handle NOTE_INSN_DELETED_DEBUG_LABEL.
        * gengtype.c (adjust_field_rtx_def): Likewise.
        * config/i386/i386.c (ix86_output_function_epilogue): For MachO
        clear CODE_LABEL_NUMBER of NOTE_INSN_DELETED_DEBUG_LABEL
        if their are at the end of function and nop hasn't been emitted.
        * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Likewise.


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

* [Bug middle-end/51279] xplor-nih-2.27/nmrPot/solnScatPot.cc ICEs on -O1 -funroll-loops
  2011-11-23  2:41 [Bug middle-end/51279] New: xplor-nih-2.27/nmrPot/solnScatPot.cc ICEs on -O1 -funroll-loops howarth at nitro dot med.uc.edu
                   ` (3 preceding siblings ...)
  2011-11-24  3:45 ` howarth at nitro dot med.uc.edu
@ 2011-11-24 20:45 ` howarth at nitro dot med.uc.edu
  2011-11-29  4:57 ` howarth at nitro dot med.uc.edu
  2011-12-14 23:41 ` pinskia at gcc dot gnu.org
  6 siblings, 0 replies; 8+ messages in thread
From: howarth at nitro dot med.uc.edu @ 2011-11-24 20:45 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51279

--- Comment #5 from Jack Howarth <howarth at nitro dot med.uc.edu> 2011-11-24 19:32:52 UTC ---
This ICE also can be reproduced at r181697 on x86_64-unknown-linux-gnu (x86_64
Fedora 15).


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

* [Bug middle-end/51279] xplor-nih-2.27/nmrPot/solnScatPot.cc ICEs on -O1 -funroll-loops
  2011-11-23  2:41 [Bug middle-end/51279] New: xplor-nih-2.27/nmrPot/solnScatPot.cc ICEs on -O1 -funroll-loops howarth at nitro dot med.uc.edu
                   ` (4 preceding siblings ...)
  2011-11-24 20:45 ` howarth at nitro dot med.uc.edu
@ 2011-11-29  4:57 ` howarth at nitro dot med.uc.edu
  2011-12-14 23:41 ` pinskia at gcc dot gnu.org
  6 siblings, 0 replies; 8+ messages in thread
From: howarth at nitro dot med.uc.edu @ 2011-11-29  4:57 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51279

--- Comment #6 from Jack Howarth <howarth at nitro dot med.uc.edu> 2011-11-29 00:25:09 UTC ---
Fixed with the proposed patch from
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51014#c4.


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

* [Bug middle-end/51279] xplor-nih-2.27/nmrPot/solnScatPot.cc ICEs on -O1 -funroll-loops
  2011-11-23  2:41 [Bug middle-end/51279] New: xplor-nih-2.27/nmrPot/solnScatPot.cc ICEs on -O1 -funroll-loops howarth at nitro dot med.uc.edu
                   ` (5 preceding siblings ...)
  2011-11-29  4:57 ` howarth at nitro dot med.uc.edu
@ 2011-12-14 23:41 ` pinskia at gcc dot gnu.org
  6 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu.org @ 2011-12-14 23:41 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51279

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

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

--- Comment #7 from Andrew Pinski <pinskia at gcc dot gnu.org> 2011-12-14 23:39:47 UTC ---
So closing as fixed.


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

end of thread, other threads:[~2011-12-14 23:40 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-11-23  2:41 [Bug middle-end/51279] New: xplor-nih-2.27/nmrPot/solnScatPot.cc ICEs on -O1 -funroll-loops howarth at nitro dot med.uc.edu
2011-11-23  5:08 ` [Bug middle-end/51279] " howarth at nitro dot med.uc.edu
2011-11-23  5:22 ` howarth at nitro dot med.uc.edu
2011-11-23 20:12 ` howarth at nitro dot med.uc.edu
2011-11-24  3:45 ` howarth at nitro dot med.uc.edu
2011-11-24 20:45 ` howarth at nitro dot med.uc.edu
2011-11-29  4:57 ` howarth at nitro dot med.uc.edu
2011-12-14 23:41 ` pinskia 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).