[ 4.8 Linaro regression] ICE on gcc-4.8 building kde4libs

Bug #1194501 reported by Scott Kitterman
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Linaro GCC
Fix Released
Undecided
Unassigned
gcc
Fix Released
Medium
compiz (Ubuntu)
Fix Released
Undecided
Unassigned
gcc-4.8 (Ubuntu)
Fix Released
Undecided
Unassigned
qt4-x11 (Ubuntu)
Fix Released
Undecided
Unassigned
Revision history for this message
Matthias Klose (doko) wrote :

this needs somebody to provide the preprocessed source. The compiler retries the build internally and succeeds, so somebody has to provide this who can reproduce this.

Revision history for this message
Matthias Klose (doko) wrote :
Revision history for this message
Matthias Klose (doko) wrote :

$ g++ -c -g -O2 SVGStyledLocatableElement.ii
In file included from ../../khtml/svg/SVGStyledLocatableElement.cpp:27:0:
../../khtml/svg/SVGStyledLocatableElement.h: In member function 'virtual WebCore::FloatRect WebCore::SVGStyledLocatableElement::_ZTv0_n24_NK7WebCore25SVGStyledLocatableElement7getBBoxEv() const':
../../khtml/svg/SVGStyledLocatableElement.h:45:27: error: unrecognizable insn:
(call_insn/j 10 9 11 2 (parallel [
            (set (parallel:BLK [
                        (expr_list:REG_DEP_TRUE (reg:SF 16 s0)
                            (const_int 0 [0]))
                        (expr_list:REG_DEP_TRUE (reg:SF 17 s1)
                            (const_int 4 [0x4]))
                        (expr_list:REG_DEP_TRUE (reg:SF 18 s2)
                            (const_int 8 [0x8]))
                        (expr_list:REG_DEP_TRUE (reg:SF 19 s3)
                            (const_int 12 [0xc]))
                    ])
                (call (mem:SI (symbol_ref:SI ("*.LTHUNK10") [flags 0x3] <function_decl 0xb22e1a00 *.LTHUNK10>) [0 *.LTHUNK10 S4 A32])
                    (const_int 0 [0])))
            (return)
            (use (const_int 0 [0]))
        ]) -1
     (nil)
    (expr_list:REG_CFA_WINDOW_SAVE (use (reg:SI 0 r0))
        (nil)))
../../khtml/svg/SVGStyledLocatableElement.h:45:27: internal compiler error: in extract_insn, at recog.c:2154
Please submit a full bug report,
with preprocessed source if appropriate.

Revision history for this message
Matthias Klose (doko) wrote :

seen with linaro 4.8, not with fsf 4.8

Revision history for this message
Zhenqiang Chen (zhenqiang-chen) wrote :

The unrecognizable insn is a "tail call". In 2013.05 release, it matches "sibcall_value_insn". But in 2013.06 release, it can not match it.

Recently there were some changes for "tail call". 2013.06 release might merge some of the changes.

Please try FSF trunk, if it also fails, please submit a bug against FSF trunk.

Changed in gcc-linaro:
status: New → Confirmed
Revision history for this message
In , Doko-v (doko-v) wrote :

Created attachment 30384
preprocessed source

seen with trunk 20130620 on arm-linux-gnueabihf

$ /usr/lib/gcc-snapshot/bin/g++ -c -O2 SVGStyledLocatableElement.ii
In file included from ../../khtml/svg/SVGStyledLocatableElement.cpp:27:0:
../../khtml/svg/SVGStyledLocatableElement.h: In member function 'virtual WebCore::FloatRect WebCore::SVGStyledLocatableElement::_ZTv0_n24_NK7WebCore25SVGStyledLocatableElement7getBBoxEv() const':
../../khtml/svg/SVGStyledLocatableElement.h:45:27: error: unrecognizable insn:
         virtual FloatRect getBBox() const;
                           ^
(call_insn/j 10 9 11 2 (parallel [
            (set (parallel:BLK [
                        (expr_list:REG_DEP_TRUE (reg:SF 16 s0)
                            (const_int 0 [0]))
                        (expr_list:REG_DEP_TRUE (reg:SF 17 s1)
                            (const_int 4 [0x4]))
                        (expr_list:REG_DEP_TRUE (reg:SF 18 s2)
                            (const_int 8 [0x8]))
                        (expr_list:REG_DEP_TRUE (reg:SF 19 s3)
                            (const_int 12 [0xc]))
                    ])
                (call (mem:SI (symbol_ref:SI ("*.LTHUNK10") [flags 0x3] <function_decl 0xb41d2b00 *.LTHUNK10>) [0 *.LTHUNK10 S4 A32])
                    (const_int 0 [0])))
            (return)
            (use (const_int 0 [0]))
        ]) -1
     (nil)
    (expr_list:REG_CFA_WINDOW_SAVE (use (reg:SI 0 r0))
        (nil)))
../../khtml/svg/SVGStyledLocatableElement.h:45:27: internal compiler error: in extract_insn, at recog.c:2158
Please submit a full bug report,
with preprocessed source if appropriate.

Changed in gcc:
importance: Unknown → Medium
status: Unknown → New
Matthias Klose (doko)
summary: - ICE on gcc-4.8 building kde4libs
+ [ 4.8 Linaro regression] ICE on gcc-4.8 building kde4libs
Revision history for this message
Kelly Anderson (kelly-h) wrote :
Download full text (3.2 KiB)

Same problem with 4.8-2013.06 on two different sub-archs. Reversion to 4.8-2013.05 works around the problem.

************************************
linaro gcc 4.6.2 2013.06 compiling Qt4 on armv7lhf

/home/kelly/Xilka/build/Qt4-4.8.5/Source/src/3rdparty/webkit/Source/WebCore/svg/SVGStyledLocatableElement.h: In member function ‘virtual WebCore::FloatRect WebCore::SVGStyledLocatableElement::_ZTv0_n24_NK7WebCore25SVGStyledLocatableElement7getBBoxENS_12SVGLocatable19StyleUpdateStrategyE(WebCore::SVGLocatable::StyleUpdateStrategy) const’:
/home/kelly/Xilka/build/Qt4-4.8.5/Source/src/3rdparty/webkit/Source/WebCore/svg/SVGStyledLocatableElement.h:38:23: error: unrecognizable insn:
     virtual FloatRect getBBox(StyleUpdateStrategy = AllowStyleUpdate) const;
                       ^
(call_insn/j 12 11 13 2 (parallel [
            (set (parallel:BLK [
                        (expr_list:REG_DEP_TRUE (reg:SF 16 s0)
                            (const_int 0 [0]))
                        (expr_list:REG_DEP_TRUE (reg:SF 17 s1)
                            (const_int 4 [0x4]))
                        (expr_list:REG_DEP_TRUE (reg:SF 18 s2)
                            (const_int 8 [0x8]))
                        (expr_list:REG_DEP_TRUE (reg:SF 19 s3)
                            (const_int 12 [0xc]))
                    ])
                (call (mem:SI (symbol_ref:SI ("*.LTHUNK11") [flags 0x3] <function_decl 0x7223fd80 *.LTHUNK11>) [0 *.LTHUNK11 S4 A32])
                    (const_int 0 [0])))
            (return)
            (use (const_int 0 [0]))
        ]) -1
     (nil)
    (expr_list:REG_CFA_WINDOW_SAVE (use (reg:SI 1 r1))
        (expr_list:REG_CFA_WINDOW_SAVE (use (reg:SI 0 r0))
            (nil))))
/home/kelly/Xilka/build/Qt4-4.8.5/Source/src/3rdparty/webkit/Source/WebCore/svg/SVGStyledLocatableElement.h:38:23: internal compiler error: in extract_insn, at recog.c:2150

/home/kelly/Xilka/build/Qt4-4.8.5/Source/src/3rdparty/webkit/Source/WebCore/svg/SVGStyledLocatableElement.h:38:23: internal compiler error: Segmentation fault

************************************
linaro gcc 4.6.2 2013.06 compiling GraphViz 2.30.1 on armv6zkhf

emit.c: In function 'splitBSpline.isra.13':
emit.c:2039:1: error: unrecognizable insn:
 }
 ^
(call_insn/j 58 57 59 4 (parallel [
            (set (parallel:BLK [
                        (expr_list:REG_DEP_TRUE (reg:DF 16 s0)
                            (const_int 0 [0]))
                        (expr_list:REG_DEP_TRUE (reg:DF 18 s2)
                            (const_int 8 [0x8]))
                    ])
                (call (mem:SI (symbol_ref:SI ("Bezier") [flags 0x41] <function_decl 0xb6ad2b80 Bezier>) [0 Bezier S4 A32])
                    (const_int 0 [0])))
            (return)
            (use (const_int 0 [0]))
        ]) emit.c:2004 -1
     (nil)
    (expr_list:REG_CFA_WINDOW_SAVE (use (reg:SI 3 r3))
        (expr_list:REG_CFA_WINDOW_SAVE (use (reg:SI 2 r2))
            (expr_list:DF (use (reg:DF 16 s0))
                (expr_list:REG_CFA_WINDOW_SAVE (use (reg:SI 1 r1))
                    (expr_list:REG_CFA_WINDOW_SAVE (use (reg:SI 0 r0))
                        (nil)))))))
emit.c:2039:1: internal compiler error: in extr...

Read more...

Revision history for this message
In , Ramana-gcc (ramana-gcc) wrote :

confirmed. mine.

Revision history for this message
Scott Kitterman (kitterman) wrote :
Changed in gcc:
status: New → In Progress
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in compiz (Ubuntu):
status: New → Confirmed
Changed in gcc-4.8 (Ubuntu):
status: New → Confirmed
Changed in qt4-x11 (Ubuntu):
status: New → Confirmed
Revision history for this message
Kelly Anderson (kelly-h) wrote :

It appears that 2013.07 fixes this problem. I have rebuilt qt4 and graphviz with the new release without errors.

Other affected users should test that version.

Revision history for this message
In , Ramana-gcc (ramana-gcc) wrote :
Changed in gcc:
status: In Progress → Fix Released
Revision history for this message
Matthias Klose (doko) wrote :

will be fixed with the next GCC-4.8 upload

Changed in gcc-4.8 (Ubuntu):
status: Confirmed → In Progress
Revision history for this message
Matthias Klose (doko) wrote :

fixed in saucy

Changed in qt4-x11 (Ubuntu):
status: Confirmed → Fix Released
Changed in gcc-4.8 (Ubuntu):
status: In Progress → Fix Released
Changed in compiz (Ubuntu):
status: Confirmed → Fix Released
Changed in gcc-linaro:
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.