public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/52727] New: [4.7] internal compiler error at dwarf2cfi.c2:685
@ 2012-03-26 16:51 florian at openwrt dot org
  2012-03-26 16:52 ` [Bug c++/52727] " florian at openwrt dot org
                   ` (24 more replies)
  0 siblings, 25 replies; 26+ messages in thread
From: florian at openwrt dot org @ 2012-03-26 16:51 UTC (permalink / raw)
  To: gcc-bugs

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

             Bug #: 52727
           Summary: [4.7] internal compiler error at dwarf2cfi.c2:685
    Classification: Unclassified
           Product: gcc
           Version: 4.7.0
            Status: UNCONFIRMED
          Severity: major
          Priority: P3
         Component: c++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: florian@openwrt.org


Created attachment 27002
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=27002
Preprocessed file

gcc-4.7.0 fails compiling qt 4.7 with : internal compiler error: in
connect_traces, at dwarf2cfi.c:2685

System type:
Target: Linux 2.6.39, GCC 4.7.0, eglibc 2.15

GCC version:
Using built-in specs.
COLLECT_GCC=/opt/toolchains/atom32-eglibc-std-2.15-gcc-4.7.0-binutils-2.22/bin/i686-linux-cc
COLLECT_LTO_WRAPPER=/opt/toolchains/atom32-eglibc-std-2.15-gcc-4.7.0-binutils-2.22/libexec/gcc/i686-fbx-linux-gnu/4.7.0/lto-wrapper
Target: i686-fbx-linux-gnu
Configured with:
/home/florian/work/gen-toolchain/trunk/targets/src/gcc-4.7.0/configure
--build=x86_64-build_unknown-linux-gnu --host=x86_64-build_unknown-linux-gnu
--target=i686-fbx-linux-gnu
--prefix=/opt/toolchains/atom32-eglibc-std-2.15-gcc-4.7.0-binutils-2.22
--with-sysroot=/opt/toolchains/atom32-eglibc-std-2.15-gcc-4.7.0-binutils-2.22/i686-fbx-linux-gnu/sysroot
--enable-languages=c,c++ --with-arch=atom --with-pkgversion='crosstool-NG
1.14.1' --enable-__cxa_atexit --disable-libmudflap --disable-libgomp
--disable-libssp
--with-gmp=/home/florian/work/gen-toolchain/trunk/targets/i686-fbx-linux-gnu/build/static
--with-mpfr=/home/florian/work/gen-toolchain/trunk/targets/i686-fbx-linux-gnu/build/static
--with-mpc=/home/florian/work/gen-toolchain/trunk/targets/i686-fbx-linux-gnu/build/static
--with-ppl=/home/florian/work/gen-toolchain/trunk/targets/i686-fbx-linux-gnu/build/static
--with-cloog=/home/florian/work/gen-toolchain/trunk/targets/i686-fbx-linux-gnu/build/static
--with-libelf=/home/florian/work/gen-toolchain/trunk/targets/i686-fbx-linux-gnu/build/static
--with-host-libstdcxx='-static-libgcc -Wl,-Bstatic,-lstdc++ -lm
-L/home/florian/work/gen-toolchain/trunk/targets/i686-fbx-linux-gnu/build/static/lib
-lpwl' --enable-threads=posix --enable-target-optspace
--without-long-double-128 --disable-nls --disable-multilib
--with-local-prefix=/opt/toolchains/atom32-eglibc-std-2.15-gcc-4.7.0-binutils-2.22/i686-fbx-linux-gnu/sysroot
--enable-c99 --enable-long-long
Thread model: posix
gcc version 4.7.0 (crosstool-NG 1.14.1) 

no patches have been applied to the gcc sources.

Command-line triggering the bug:

/opt/toolchains/atom32-eglibc-std-2.15-gcc-4.7.0-binutils-2.22/bin/i686-linux-g++
-c -include .pch/release-shared-emb-x86/QtGui -pipe -g -m32 -Os
-ffunction-sections -fdata-sections -std=c++0x
-I/home/florian/work/fbx/buildroot/build/usr/include/freetype2
-fvisibility=hidden -fvisibility-inlines-hidden -Wall -W -Wno-unused-parameter
-Wno-inline -D_REENTRANT -fPIC -DQT_SHARED -DQT_BUILD_GUI_LIB
-DQT_NO_USING_NAMESPACE -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS
-DQT_MOC_COMPAT -DQT_USE_FAST_OPERATOR_PLUS -DQT_USE_FAST_CONCATENATION
-DQT_NO_FONTCONFIG -DQT_NO_OPENTYPE -DQT_NO_STYLE_MAC
-DQT_NO_STYLE_WINDOWSVISTA -DQT_NO_STYLE_WINDOWSXP -DQT_NO_STYLE_GTK
-DQT_NO_STYLE_WINDOWSCE -DQT_NO_STYLE_WINDOWSMOBILE -DQT_NO_STYLE_S60
-DQ_INTERNAL_QAPP_SRC -DQT_NO_DEBUG -DQT_CORE_LIB -DQT_HAVE_MMX -DQT_HAVE_3DNOW
-DQT_HAVE_SSE -DQT_HAVE_MMXEXT -DQT_HAVE_SSE2 -DQT_HAVE_SSE3 -DQT_HAVE_SSSE3
-DQT_HAVE_SSE4_1 -DQT_HAVE_SSE4_2 -DQT_HAVE_AVX -D_LARGEFILE64_SOURCE
-D_LARGEFILE_SOURCE
-I/home/florian/work/fbx/buildroot/packages/qt/gitsrc/mkspecs/qws/linux-fbx-g++
-I/home/florian/work/fbx/buildroot/packages/qt/gitsrc/src/gui
-I../../include/QtCore -I../../include -I../../include/QtGui
-I.rcc/release-shared-emb-x86
-I/home/florian/work/fbx/buildroot/packages/qt/gitsrc/src/gui/image
-I/home/florian/work/fbx/buildroot/packages/qt/gitsrc/src/3rdparty/harfbuzz/src
-I/home/florian/work/fbx/buildroot/packages/qt/gitsrc/src/gui/dialogs
-I.moc/release-shared-emb-x86 -I.uic/release-shared-emb-x86
-I/home/florian/work/fbx/buildroot/build/usr/include -I. -o
.obj/release-shared-emb-x86/qstylehelper.o
/home/florian/work/fbx/buildroot/packages/qt/gitsrc/src/gui/styles/qstylehelper.cpp 
/home/florian/work/fbx/buildroot/packages/qt/gitsrc/src/gui/styles/qstylehelper.cpp:
In function 'QPolygonF QStyleHelper::calcLines(const QStyleOptionSlider*)':
/home/florian/work/fbx/buildroot/packages/qt/gitsrc/src/gui/styles/qstylehelper.cpp:206:1:
internal compiler error: in connect_traces, at dwarf2cfi.c:2685


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

* [Bug c++/52727] [4.7] internal compiler error at dwarf2cfi.c2:685
  2012-03-26 16:51 [Bug c++/52727] New: [4.7] internal compiler error at dwarf2cfi.c2:685 florian at openwrt dot org
@ 2012-03-26 16:52 ` florian at openwrt dot org
  2012-03-26 17:03 ` florian at openwrt dot org
                   ` (23 subsequent siblings)
  24 siblings, 0 replies; 26+ messages in thread
From: florian at openwrt dot org @ 2012-03-26 16:52 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #1 from Florian Fainelli <florian at openwrt dot org> 2012-03-26 16:51:13 UTC ---
Created attachment 27003
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=27003
Assembly file


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

* [Bug c++/52727] [4.7] internal compiler error at dwarf2cfi.c2:685
  2012-03-26 16:51 [Bug c++/52727] New: [4.7] internal compiler error at dwarf2cfi.c2:685 florian at openwrt dot org
  2012-03-26 16:52 ` [Bug c++/52727] " florian at openwrt dot org
@ 2012-03-26 17:03 ` florian at openwrt dot org
  2012-03-26 17:33 ` jakub at gcc dot gnu.org
                   ` (22 subsequent siblings)
  24 siblings, 0 replies; 26+ messages in thread
From: florian at openwrt dot org @ 2012-03-26 17:03 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #2 from Florian Fainelli <florian at openwrt dot org> 2012-03-26 16:51:54 UTC ---
I will try to create a reduced test-case for this build failure. Thanks!


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

* [Bug c++/52727] [4.7] internal compiler error at dwarf2cfi.c2:685
  2012-03-26 16:51 [Bug c++/52727] New: [4.7] internal compiler error at dwarf2cfi.c2:685 florian at openwrt dot org
  2012-03-26 16:52 ` [Bug c++/52727] " florian at openwrt dot org
  2012-03-26 17:03 ` florian at openwrt dot org
@ 2012-03-26 17:33 ` jakub at gcc dot gnu.org
  2012-03-27  8:12 ` florian at openwrt dot org
                   ` (21 subsequent siblings)
  24 siblings, 0 replies; 26+ messages in thread
From: jakub at gcc dot gnu.org @ 2012-03-26 17:33 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jakub at gcc dot gnu.org

--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> 2012-03-26 17:14:53 UTC ---
The preprocessed source is useless, because you are using PCH.
See http://gcc.gnu.org/bugs/#pch


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

* [Bug c++/52727] [4.7] internal compiler error at dwarf2cfi.c2:685
  2012-03-26 16:51 [Bug c++/52727] New: [4.7] internal compiler error at dwarf2cfi.c2:685 florian at openwrt dot org
                   ` (2 preceding siblings ...)
  2012-03-26 17:33 ` jakub at gcc dot gnu.org
@ 2012-03-27  8:12 ` florian at openwrt dot org
  2012-03-27  8:25 ` florian at openwrt dot org
                   ` (20 subsequent siblings)
  24 siblings, 0 replies; 26+ messages in thread
From: florian at openwrt dot org @ 2012-03-27  8:12 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #4 from Florian Fainelli <florian at openwrt dot org> 2012-03-27 08:09:58 UTC ---
(In reply to comment #3)
> The preprocessed source is useless, because you are using PCH.
> See http://gcc.gnu.org/bugs/#pch

I re-ran the same command without the PCH file, and the issue is still present,
attaching the new pre-processed file.


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

* [Bug c++/52727] [4.7] internal compiler error at dwarf2cfi.c2:685
  2012-03-26 16:51 [Bug c++/52727] New: [4.7] internal compiler error at dwarf2cfi.c2:685 florian at openwrt dot org
                   ` (3 preceding siblings ...)
  2012-03-27  8:12 ` florian at openwrt dot org
@ 2012-03-27  8:25 ` florian at openwrt dot org
  2012-03-27  9:22 ` jakub at gcc dot gnu.org
                   ` (19 subsequent siblings)
  24 siblings, 0 replies; 26+ messages in thread
From: florian at openwrt dot org @ 2012-03-27  8:25 UTC (permalink / raw)
  To: gcc-bugs

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

Florian Fainelli <florian at openwrt dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #27002|0                           |1
        is obsolete|                            |

--- Comment #5 from Florian Fainelli <florian at openwrt dot org> 2012-03-27 08:11:43 UTC ---
Created attachment 27012
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=27012
Preprocessed file without PCH


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

* [Bug c++/52727] [4.7] internal compiler error at dwarf2cfi.c2:685
  2012-03-26 16:51 [Bug c++/52727] New: [4.7] internal compiler error at dwarf2cfi.c2:685 florian at openwrt dot org
                   ` (4 preceding siblings ...)
  2012-03-27  8:25 ` florian at openwrt dot org
@ 2012-03-27  9:22 ` jakub at gcc dot gnu.org
  2012-03-27 12:44 ` florian at openwrt dot org
                   ` (18 subsequent siblings)
  24 siblings, 0 replies; 26+ messages in thread
From: jakub at gcc dot gnu.org @ 2012-03-27  9:22 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #6 from Jakub Jelinek <jakub at gcc dot gnu.org> 2012-03-27 08:56:23 UTC ---
Reducing.


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

* [Bug c++/52727] [4.7] internal compiler error at dwarf2cfi.c2:685
  2012-03-26 16:51 [Bug c++/52727] New: [4.7] internal compiler error at dwarf2cfi.c2:685 florian at openwrt dot org
                   ` (5 preceding siblings ...)
  2012-03-27  9:22 ` jakub at gcc dot gnu.org
@ 2012-03-27 12:44 ` florian at openwrt dot org
  2012-03-27 13:16 ` jakub at gcc dot gnu.org
                   ` (17 subsequent siblings)
  24 siblings, 0 replies; 26+ messages in thread
From: florian at openwrt dot org @ 2012-03-27 12:44 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #7 from Florian Fainelli <florian at openwrt dot org> 2012-03-27 11:41:43 UTC ---
(In reply to comment #6)
> Reducing.

FYI, I managed to compile a C++ file containing only the function at line 206
without being able to reproduce the ICE.

Building with -O2 instead of -Os makes the issue disappear.

Finally, I could workaround the ICE by creating a dedicated function for the
computation of the "notches" variable, in case that helps.


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

* [Bug c++/52727] [4.7] internal compiler error at dwarf2cfi.c2:685
  2012-03-26 16:51 [Bug c++/52727] New: [4.7] internal compiler error at dwarf2cfi.c2:685 florian at openwrt dot org
                   ` (6 preceding siblings ...)
  2012-03-27 12:44 ` florian at openwrt dot org
@ 2012-03-27 13:16 ` jakub at gcc dot gnu.org
  2012-03-27 13:19 ` [Bug debug/52727] [4.7/4.8 Regression] " jakub at gcc dot gnu.org
                   ` (16 subsequent siblings)
  24 siblings, 0 replies; 26+ messages in thread
From: jakub at gcc dot gnu.org @ 2012-03-27 13:16 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #8 from Jakub Jelinek <jakub at gcc dot gnu.org> 2012-03-27 13:15:06 UTC ---
// { dg-options "-g -Os -m32" }
int grow (int);
void fn (int);
struct A { int a1, a2; };
template <typename T>
struct B
{
  A *b;
  ~B () { b3 (b); }
  void b1 (int);
  void b2 (int);
  void b3 (A *);
};
struct C { int c1, c2, c3; bool c4; };
int
bar (int x)
{
  int y = x / 6;
  if (y > x / 2)
    return y;
  return 0;
}
void baz (double, double);
void
foo (const C *x, int y, int z)
{
  B<int> p;
  double r = y / 2;
  int w = bar (int (r));
  double s = y / 2 + 0.5;
  double t = z / 2 + 0.5;
  int u = x->c3;
  int v = (x->c2 + u - 1 - x->c1) / u;
  p.b2 ((2 * v > p.b->a1 || (2 * v < p.b->a2 && 2 * v < (p.b->a1 >> 1))) ? grow
(0) : p.b->a1);
  for (int i = 0; i <= v; ++i)
    {
      double l = x->c4 ? 4.5 - i * 6.2 / v : (3.1 - i * 31 / v) / 6;
      baz (s + (r - w) * l, t - (r - w) * l);
    }
}

Started with http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=177218


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

* [Bug debug/52727] [4.7/4.8 Regression] internal compiler error at dwarf2cfi.c2:685
  2012-03-26 16:51 [Bug c++/52727] New: [4.7] internal compiler error at dwarf2cfi.c2:685 florian at openwrt dot org
                   ` (7 preceding siblings ...)
  2012-03-27 13:16 ` jakub at gcc dot gnu.org
@ 2012-03-27 13:19 ` jakub at gcc dot gnu.org
  2012-03-27 16:53 ` jakub at gcc dot gnu.org
                   ` (15 subsequent siblings)
  24 siblings, 0 replies; 26+ messages in thread
From: jakub at gcc dot gnu.org @ 2012-03-27 13:19 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2012-03-27
          Component|c++                         |debug
   Target Milestone|---                         |4.7.1
            Summary|[4.7] internal compiler     |[4.7/4.8 Regression]
                   |error at dwarf2cfi.c2:685   |internal compiler error at
                   |                            |dwarf2cfi.c2:685
     Ever Confirmed|0                           |1


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

* [Bug debug/52727] [4.7/4.8 Regression] internal compiler error at dwarf2cfi.c2:685
  2012-03-26 16:51 [Bug c++/52727] New: [4.7] internal compiler error at dwarf2cfi.c2:685 florian at openwrt dot org
                   ` (8 preceding siblings ...)
  2012-03-27 13:19 ` [Bug debug/52727] [4.7/4.8 Regression] " jakub at gcc dot gnu.org
@ 2012-03-27 16:53 ` jakub at gcc dot gnu.org
  2012-03-27 18:01 ` rth at gcc dot gnu.org
                   ` (14 subsequent siblings)
  24 siblings, 0 replies; 26+ messages in thread
From: jakub at gcc dot gnu.org @ 2012-03-27 16:53 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |rth at gcc dot gnu.org

--- Comment #9 from Jakub Jelinek <jakub at gcc dot gnu.org> 2012-03-27 16:49:37 UTC ---
Looks like a problem during CSA.  Before *.csa we have (insn 18 is a stack
adjustment after a call):
(insn 18 17 19 2 (parallel [
            (set (reg/f:SI 7 sp)
                (plus:SI (reg/f:SI 7 sp)
                    (const_int 4 [0x4])))
            (clobber (reg:CC 17 flags))
        ]) pr52727.ii:29 251 {*addsi_1}
     (expr_list:REG_UNUSED (reg:CC 17 flags)
        (expr_list:REG_ARGS_SIZE (const_int 0 [0])
            (nil))))
...
(insn 205 27 206 2 (set (mem:SI (pre_dec:SI (reg/f:SI 7 sp)) [0 S4 A8])
        (reg:SI 0 ax [115])) pr52727.ii:31 43 {*pushsi2}
     (expr_list:REG_DEAD (reg:SI 0 ax [115])
        (nil)))

(insn 206 205 207 2 (set (reg:DF 8 st [112])
        (plus:DF (float:DF (mem:SI (reg/f:SI 7 sp) [0 S4 A8]))
            (reg:DF 8 st [112]))) pr52727.ii:31 765 {*fop_df_2_i387}
     (nil))

(insn 207 206 171 2 (set (reg/f:SI 7 sp)
        (plus:SI (reg/f:SI 7 sp)
            (const_int 4 [0x4]))) pr52727.ii:31 245 {*leasi_2}
     (nil))

but then CSA decides to remove insn 18 and adjust insn 205, so that it no
longer pushes the value, but stores it to *sp.  Unfortunately it means
REG_ARGS_SIZE is dropped, there is no REG_ARGS_SIZE note on insn 207.  Insns
205/206/207 were introduced during split2.  Not sure what to do though, adding
REG_ARGS_SIZE notes in the ix86_free_from_memory and ix86_force_to_memory would
mean we'd have to find out what the current REG_ARGS_SIZE depth at that point
is.  And to solve this in csa pass, we'd need to find out that if we are
removing stack deallocation with REG_ARGS_SIZE note against later stack
allocation without REG_ARGS_SIZE, there must be some following stack
deallocation on which we would force REG_ARGS_SIZE note.  Richard?


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

* [Bug debug/52727] [4.7/4.8 Regression] internal compiler error at dwarf2cfi.c2:685
  2012-03-26 16:51 [Bug c++/52727] New: [4.7] internal compiler error at dwarf2cfi.c2:685 florian at openwrt dot org
                   ` (9 preceding siblings ...)
  2012-03-27 16:53 ` jakub at gcc dot gnu.org
@ 2012-03-27 18:01 ` rth at gcc dot gnu.org
  2012-03-27 23:22 ` rth at gcc dot gnu.org
                   ` (13 subsequent siblings)
  24 siblings, 0 replies; 26+ messages in thread
From: rth at gcc dot gnu.org @ 2012-03-27 18:01 UTC (permalink / raw)
  To: gcc-bugs

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

Richard Henderson <rth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED
         AssignedTo|unassigned at gcc dot       |rth at gcc dot gnu.org
                   |gnu.org                     |

--- Comment #10 from Richard Henderson <rth at gcc dot gnu.org> 2012-03-27 17:24:29 UTC ---
I agree making the backend handle REG_ARGS_SIZE for temporaries is a lose.
I agree that changing CSA to re-position the note somewhere is almost
certainly the right thing to do.


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

* [Bug debug/52727] [4.7/4.8 Regression] internal compiler error at dwarf2cfi.c2:685
  2012-03-26 16:51 [Bug c++/52727] New: [4.7] internal compiler error at dwarf2cfi.c2:685 florian at openwrt dot org
                   ` (10 preceding siblings ...)
  2012-03-27 18:01 ` rth at gcc dot gnu.org
@ 2012-03-27 23:22 ` rth at gcc dot gnu.org
  2012-03-29 16:44 ` rth at gcc dot gnu.org
                   ` (12 subsequent siblings)
  24 siblings, 0 replies; 26+ messages in thread
From: rth at gcc dot gnu.org @ 2012-03-27 23:22 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #11 from Richard Henderson <rth at gcc dot gnu.org> 2012-03-27 23:20:39 UTC ---
Created attachment 27019
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=27019
proposed patch

Fixes the testcase in the PR.  Just starting proper testing now,
what with those new asserts...


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

* [Bug debug/52727] [4.7/4.8 Regression] internal compiler error at dwarf2cfi.c2:685
  2012-03-26 16:51 [Bug c++/52727] New: [4.7] internal compiler error at dwarf2cfi.c2:685 florian at openwrt dot org
                   ` (11 preceding siblings ...)
  2012-03-27 23:22 ` rth at gcc dot gnu.org
@ 2012-03-29 16:44 ` rth at gcc dot gnu.org
  2012-03-30 18:23 ` rth at gcc dot gnu.org
                   ` (11 subsequent siblings)
  24 siblings, 0 replies; 26+ messages in thread
From: rth at gcc dot gnu.org @ 2012-03-29 16:44 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #12 from Richard Henderson <rth at gcc dot gnu.org> 2012-03-29 16:41:57 UTC ---
... and indeed, testing on i686 with BOOT_CFLAGS='-Os -g' causes
at least one of these asserts to fire.  More work needed...


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

* [Bug debug/52727] [4.7/4.8 Regression] internal compiler error at dwarf2cfi.c2:685
  2012-03-26 16:51 [Bug c++/52727] New: [4.7] internal compiler error at dwarf2cfi.c2:685 florian at openwrt dot org
                   ` (12 preceding siblings ...)
  2012-03-29 16:44 ` rth at gcc dot gnu.org
@ 2012-03-30 18:23 ` rth at gcc dot gnu.org
  2012-03-30 19:14 ` rth at gcc dot gnu.org
                   ` (10 subsequent siblings)
  24 siblings, 0 replies; 26+ messages in thread
From: rth at gcc dot gnu.org @ 2012-03-30 18:23 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #13 from Richard Henderson <rth at gcc dot gnu.org> 2012-03-30 18:00:45 UTC ---
Author: rth
Date: Fri Mar 30 18:00:37 2012
New Revision: 186018

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=186018
Log:
PR debug/52727
        * combine-stack-adj.c (prev_active_insn_bb): New.
        (next_active_insn_bb): New.
        (force_move_args_size_note): New.
        (combine_stack_adjustments_for_block): Use it.

Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/combine-stack-adj.c


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

* [Bug debug/52727] [4.7/4.8 Regression] internal compiler error at dwarf2cfi.c2:685
  2012-03-26 16:51 [Bug c++/52727] New: [4.7] internal compiler error at dwarf2cfi.c2:685 florian at openwrt dot org
                   ` (13 preceding siblings ...)
  2012-03-30 18:23 ` rth at gcc dot gnu.org
@ 2012-03-30 19:14 ` rth at gcc dot gnu.org
  2012-04-10 13:39 ` florian at openwrt dot org
                   ` (9 subsequent siblings)
  24 siblings, 0 replies; 26+ messages in thread
From: rth at gcc dot gnu.org @ 2012-03-30 19:14 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #14 from Richard Henderson <rth at gcc dot gnu.org> 2012-03-30 18:23:10 UTC ---
Author: rth
Date: Fri Mar 30 18:23:06 2012
New Revision: 186019

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=186019
Log:
PR debug/52727
    * g++.dg/opt/pr52727.C: New testcase.

Added:
    trunk/gcc/testsuite/g++.dg/opt/pr52727.C
Modified:
    trunk/gcc/testsuite/ChangeLog


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

* [Bug debug/52727] [4.7/4.8 Regression] internal compiler error at dwarf2cfi.c2:685
  2012-03-26 16:51 [Bug c++/52727] New: [4.7] internal compiler error at dwarf2cfi.c2:685 florian at openwrt dot org
                   ` (14 preceding siblings ...)
  2012-03-30 19:14 ` rth at gcc dot gnu.org
@ 2012-04-10 13:39 ` florian at openwrt dot org
  2012-04-13 13:14 ` [Bug debug/52727] [4.7 " rguenth at gcc dot gnu.org
                   ` (8 subsequent siblings)
  24 siblings, 0 replies; 26+ messages in thread
From: florian at openwrt dot org @ 2012-04-10 13:39 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #15 from Florian Fainelli <florian at openwrt dot org> 2012-04-10 13:39:26 UTC ---
(In reply to comment #13)
> Author: rth
> Date: Fri Mar 30 18:00:37 2012
> New Revision: 186018
> 
> URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=186018
> Log:
> PR debug/52727
>         * combine-stack-adj.c (prev_active_insn_bb): New.
>         (next_active_insn_bb): New.
>         (force_move_args_size_note): New.
>         (combine_stack_adjustments_for_block): Use it.
> 
> Modified:
>     trunk/gcc/ChangeLog
>     trunk/gcc/combine-stack-adj.c

Works for me, thanks Richard!


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

* [Bug debug/52727] [4.7 Regression] internal compiler error at dwarf2cfi.c2:685
  2012-03-26 16:51 [Bug c++/52727] New: [4.7] internal compiler error at dwarf2cfi.c2:685 florian at openwrt dot org
                   ` (15 preceding siblings ...)
  2012-04-10 13:39 ` florian at openwrt dot org
@ 2012-04-13 13:14 ` rguenth at gcc dot gnu.org
  2012-05-16 17:57 ` rth at gcc dot gnu.org
                   ` (7 subsequent siblings)
  24 siblings, 0 replies; 26+ messages in thread
From: rguenth at gcc dot gnu.org @ 2012-04-13 13:14 UTC (permalink / raw)
  To: gcc-bugs

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

Richard Guenther <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P2
      Known to work|                            |4.8.0
            Summary|[4.7/4.8 Regression]        |[4.7 Regression] internal
                   |internal compiler error at  |compiler error at
                   |dwarf2cfi.c2:685            |dwarf2cfi.c2:685

--- Comment #16 from Richard Guenther <rguenth at gcc dot gnu.org> 2012-04-13 13:13:06 UTC ---
Fixed on trunk sofar.


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

* [Bug debug/52727] [4.7 Regression] internal compiler error at dwarf2cfi.c2:685
  2012-03-26 16:51 [Bug c++/52727] New: [4.7] internal compiler error at dwarf2cfi.c2:685 florian at openwrt dot org
                   ` (16 preceding siblings ...)
  2012-04-13 13:14 ` [Bug debug/52727] [4.7 " rguenth at gcc dot gnu.org
@ 2012-05-16 17:57 ` rth at gcc dot gnu.org
  2012-05-16 18:02 ` rth at gcc dot gnu.org
                   ` (6 subsequent siblings)
  24 siblings, 0 replies; 26+ messages in thread
From: rth at gcc dot gnu.org @ 2012-05-16 17:57 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #17 from Richard Henderson <rth at gcc dot gnu.org> 2012-05-16 17:49:48 UTC ---
Author: rth
Date: Wed May 16 17:49:38 2012
New Revision: 187603

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=187603
Log:
PR debug/52727
    * combine-stack-adj.c (prev_active_insn_bb): New.
    (next_active_insn_bb): New.
    (force_move_args_size_note): New.
    (combine_stack_adjustments_for_block): Use it.

Added:
    branches/gcc-4_7-branch/gcc/testsuite/g++.dg/opt/pr52727.C
Modified:
    branches/gcc-4_7-branch/gcc/ChangeLog
    branches/gcc-4_7-branch/gcc/combine-stack-adj.c
    branches/gcc-4_7-branch/gcc/testsuite/ChangeLog


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

* [Bug debug/52727] [4.7 Regression] internal compiler error at dwarf2cfi.c2:685
  2012-03-26 16:51 [Bug c++/52727] New: [4.7] internal compiler error at dwarf2cfi.c2:685 florian at openwrt dot org
                   ` (17 preceding siblings ...)
  2012-05-16 17:57 ` rth at gcc dot gnu.org
@ 2012-05-16 18:02 ` rth at gcc dot gnu.org
  2014-01-30 21:11 ` ppluzhnikov at google dot com
                   ` (5 subsequent siblings)
  24 siblings, 0 replies; 26+ messages in thread
From: rth at gcc dot gnu.org @ 2012-05-16 18:02 UTC (permalink / raw)
  To: gcc-bugs

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

Richard Henderson <rth at gcc dot gnu.org> changed:

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

--- Comment #18 from Richard Henderson <rth at gcc dot gnu.org> 2012-05-16 17:56:12 UTC ---
Fixed.


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

* [Bug debug/52727] [4.7 Regression] internal compiler error at dwarf2cfi.c2:685
  2012-03-26 16:51 [Bug c++/52727] New: [4.7] internal compiler error at dwarf2cfi.c2:685 florian at openwrt dot org
                   ` (18 preceding siblings ...)
  2012-05-16 18:02 ` rth at gcc dot gnu.org
@ 2014-01-30 21:11 ` ppluzhnikov at google dot com
  2014-01-31  0:05 ` [Bug debug/52727] [4.9 " jakub at gcc dot gnu.org
                   ` (4 subsequent siblings)
  24 siblings, 0 replies; 26+ messages in thread
From: ppluzhnikov at google dot com @ 2014-01-30 21:11 UTC (permalink / raw)
  To: gcc-bugs

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

Paul Pluzhnikov <ppluzhnikov at google dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ppluzhnikov at google dot com

--- Comment #19 from Paul Pluzhnikov <ppluzhnikov at google dot com> ---
(In reply to Richard Henderson from comment #18)
> Fixed.

This is crashing again with yesterday's trunk:
g++ (GCC) 4.9.0 20140129 (experimental)

g++ -g -Os -S -m32 -o /tmp/pr52727.s pr52727.C
pr52727.C: In function 'void foo(const C*, int, int)':
pr52727.C:43:1: internal compiler error: in connect_traces, at dwarf2cfi.c:2706
 }
 ^
0x87b3c4 connect_traces
        ../../gcc/dwarf2cfi.c:2706
0x87b3c4 execute_dwarf2_frame
        ../../gcc/dwarf2cfi.c:2926
0x87b3c4 execute
        ../../gcc/dwarf2cfi.c:3421
Please submit a full bug report,


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

* [Bug debug/52727] [4.9 Regression] internal compiler error at dwarf2cfi.c2:685
  2012-03-26 16:51 [Bug c++/52727] New: [4.7] internal compiler error at dwarf2cfi.c2:685 florian at openwrt dot org
                   ` (19 preceding siblings ...)
  2014-01-30 21:11 ` ppluzhnikov at google dot com
@ 2014-01-31  0:05 ` jakub at gcc dot gnu.org
  2014-01-31  6:42 ` jakub at gcc dot gnu.org
                   ` (3 subsequent siblings)
  24 siblings, 0 replies; 26+ messages in thread
From: jakub at gcc dot gnu.org @ 2014-01-31  0:05 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
                 CC|                            |hubicka at gcc dot gnu.org
         Resolution|FIXED                       |---
            Summary|[4.7 Regression] internal   |[4.9 Regression] internal
                   |compiler error at           |compiler error at
                   |dwarf2cfi.c2:685            |dwarf2cfi.c2:685

--- Comment #20 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
This broke again with r206943.


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

* [Bug debug/52727] [4.9 Regression] internal compiler error at dwarf2cfi.c2:685
  2012-03-26 16:51 [Bug c++/52727] New: [4.7] internal compiler error at dwarf2cfi.c2:685 florian at openwrt dot org
                   ` (20 preceding siblings ...)
  2014-01-31  0:05 ` [Bug debug/52727] [4.9 " jakub at gcc dot gnu.org
@ 2014-01-31  6:42 ` jakub at gcc dot gnu.org
  2014-02-05 18:42 ` rth at gcc dot gnu.org
                   ` (2 subsequent siblings)
  24 siblings, 0 replies; 26+ messages in thread
From: jakub at gcc dot gnu.org @ 2014-01-31  6:42 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|4.7.1                       |4.9.0


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

* [Bug debug/52727] [4.9 Regression] internal compiler error at dwarf2cfi.c2:685
  2012-03-26 16:51 [Bug c++/52727] New: [4.7] internal compiler error at dwarf2cfi.c2:685 florian at openwrt dot org
                   ` (21 preceding siblings ...)
  2014-01-31  6:42 ` jakub at gcc dot gnu.org
@ 2014-02-05 18:42 ` rth at gcc dot gnu.org
  2014-02-05 18:45 ` rth at gcc dot gnu.org
  2014-02-05 18:48 ` jakub at gcc dot gnu.org
  24 siblings, 0 replies; 26+ messages in thread
From: rth at gcc dot gnu.org @ 2014-02-05 18:42 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #22 from Richard Henderson <rth at gcc dot gnu.org> ---
Author: rth
Date: Wed Feb  5 18:42:19 2014
New Revision: 207518

URL: http://gcc.gnu.org/viewcvs?rev=207518&root=gcc&view=rev
Log:
PR debug/52727

        * combine-stack-adj.c: Revert r206943.
        * sched-int.h (struct deps_desc): Add last_args_size.
        * sched-deps.c (init_deps): Initialize it.
        (sched_analyze_insn): Add OUTPUT dependencies between insns that
        contain REG_ARGS_SIZE notes.

Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/combine-stack-adj.c
    trunk/gcc/sched-deps.c
    trunk/gcc/sched-int.h


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

* [Bug debug/52727] [4.9 Regression] internal compiler error at dwarf2cfi.c2:685
  2012-03-26 16:51 [Bug c++/52727] New: [4.7] internal compiler error at dwarf2cfi.c2:685 florian at openwrt dot org
                   ` (22 preceding siblings ...)
  2014-02-05 18:42 ` rth at gcc dot gnu.org
@ 2014-02-05 18:45 ` rth at gcc dot gnu.org
  2014-02-05 18:48 ` jakub at gcc dot gnu.org
  24 siblings, 0 replies; 26+ messages in thread
From: rth at gcc dot gnu.org @ 2014-02-05 18:45 UTC (permalink / raw)
  To: gcc-bugs

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

Richard Henderson <rth at gcc dot gnu.org> changed:

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

--- Comment #23 from Richard Henderson <rth at gcc dot gnu.org> ---
Re-fixed.  That is, the broken commit reverted and another fix
for that other problem (with apparently no PR) applied.


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

* [Bug debug/52727] [4.9 Regression] internal compiler error at dwarf2cfi.c2:685
  2012-03-26 16:51 [Bug c++/52727] New: [4.7] internal compiler error at dwarf2cfi.c2:685 florian at openwrt dot org
                   ` (23 preceding siblings ...)
  2014-02-05 18:45 ` rth at gcc dot gnu.org
@ 2014-02-05 18:48 ` jakub at gcc dot gnu.org
  24 siblings, 0 replies; 26+ messages in thread
From: jakub at gcc dot gnu.org @ 2014-02-05 18:48 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #24 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
(In reply to Richard Henderson from comment #23)
> Re-fixed.  That is, the broken commit reverted and another fix
> for that other problem (with apparently no PR) applied.

For the record, the other problem was PR59575 #c1-#c5 (unrelated comments for
an otherwise ARM specific bug).


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

end of thread, other threads:[~2014-02-05 18:48 UTC | newest]

Thread overview: 26+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-03-26 16:51 [Bug c++/52727] New: [4.7] internal compiler error at dwarf2cfi.c2:685 florian at openwrt dot org
2012-03-26 16:52 ` [Bug c++/52727] " florian at openwrt dot org
2012-03-26 17:03 ` florian at openwrt dot org
2012-03-26 17:33 ` jakub at gcc dot gnu.org
2012-03-27  8:12 ` florian at openwrt dot org
2012-03-27  8:25 ` florian at openwrt dot org
2012-03-27  9:22 ` jakub at gcc dot gnu.org
2012-03-27 12:44 ` florian at openwrt dot org
2012-03-27 13:16 ` jakub at gcc dot gnu.org
2012-03-27 13:19 ` [Bug debug/52727] [4.7/4.8 Regression] " jakub at gcc dot gnu.org
2012-03-27 16:53 ` jakub at gcc dot gnu.org
2012-03-27 18:01 ` rth at gcc dot gnu.org
2012-03-27 23:22 ` rth at gcc dot gnu.org
2012-03-29 16:44 ` rth at gcc dot gnu.org
2012-03-30 18:23 ` rth at gcc dot gnu.org
2012-03-30 19:14 ` rth at gcc dot gnu.org
2012-04-10 13:39 ` florian at openwrt dot org
2012-04-13 13:14 ` [Bug debug/52727] [4.7 " rguenth at gcc dot gnu.org
2012-05-16 17:57 ` rth at gcc dot gnu.org
2012-05-16 18:02 ` rth at gcc dot gnu.org
2014-01-30 21:11 ` ppluzhnikov at google dot com
2014-01-31  0:05 ` [Bug debug/52727] [4.9 " jakub at gcc dot gnu.org
2014-01-31  6:42 ` jakub at gcc dot gnu.org
2014-02-05 18:42 ` rth at gcc dot gnu.org
2014-02-05 18:45 ` rth at gcc dot gnu.org
2014-02-05 18:48 ` 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).