public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug gcov-profile/65761] New: internal compiler error: in patch_jump_insn, at cfgrtl.c:1296
@ 2015-04-14  8:15 mh+gcc at glandium dot org
  2015-04-14  8:25 ` [Bug gcov-profile/65761] " rguenth at gcc dot gnu.org
                   ` (11 more replies)
  0 siblings, 12 replies; 13+ messages in thread
From: mh+gcc at glandium dot org @ 2015-04-14  8:15 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65761

            Bug ID: 65761
           Summary: internal compiler error: in patch_jump_insn, at
                    cfgrtl.c:1296
           Product: gcc
           Version: 5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: gcov-profile
          Assignee: unassigned at gcc dot gnu.org
          Reporter: mh+gcc at glandium dot org

This happened while building Firefox with PGO with GCC 5.1.0-RC-20150412,
compiled with "--enable-languages=c,c++  --disable-nls
--disable-gnu-unique-object --enable-__cxa_atexit --with-arch-32=pentiumpro".

As it happened on Mozilla automation, though, I don't have more than the build
logs, unfortunately. This happened building a x86 (32-bits) Firefox on a x86-64
host with a x86-64 toolchain.

00:57:02     INFO -  In file included from
/builds/slave/try-lx-00000000000000000000000/build/src/obj-firefox/js/src/Unified_cpp_js_src5.cpp:92:0:
00:57:02     INFO - 
/builds/slave/try-lx-00000000000000000000000/build/src/js/src/jit/RangeAnalysis.cpp:
In member function 'bool js::jit::RangeAnalysis::addBetaNodes()':
00:57:02     INFO - 
/builds/slave/try-lx-00000000000000000000000/build/src/js/src/jit/RangeAnalysis.cpp:294:1:
internal compiler error: in patch_jump_insn, at cfgrtl.c:1296
00:57:02     INFO -   }
00:57:02     INFO -   ^
00:57:02     INFO -  0x7c6943 patch_jump_insn
00:57:02     INFO -      ../../gcc-5.1.0-RC-20150412/gcc/cfgrtl.c:1296
00:57:02     INFO -  0x7c6d6b redirect_branch_edge
00:57:02     INFO -      ../../gcc-5.1.0-RC-20150412/gcc/cfgrtl.c:1329
00:57:02     INFO -  0x7c72f2 rtl_redirect_edge_and_branch
00:57:02     INFO -      ../../gcc-5.1.0-RC-20150412/gcc/cfgrtl.c:1462
00:57:02     INFO -  0x7b94c9 redirect_edge_and_branch(edge_def*,
basic_block_def*)
00:57:02     INFO -      ../../gcc-5.1.0-RC-20150412/gcc/cfghooks.c:376
00:57:02     INFO -  0x7c6b8a rtl_split_edge
00:57:02     INFO -      ../../gcc-5.1.0-RC-20150412/gcc/cfgrtl.c:1960
00:57:02     INFO -  0x7b9acb split_edge(edge_def*)
00:57:02     INFO -      ../../gcc-5.1.0-RC-20150412/gcc/cfghooks.c:635
00:57:02     INFO -  0x7c8304 commit_one_edge_insertion(edge_def*)
00:57:02     INFO -      ../../gcc-5.1.0-RC-20150412/gcc/cfgrtl.c:2075
00:57:02     INFO -  0x7c8569 commit_edge_insertions()
00:57:02     INFO -      ../../gcc-5.1.0-RC-20150412/gcc/cfgrtl.c:2142
00:57:02     INFO -  0xa51380 convert_regs
00:57:02     INFO -      ../../gcc-5.1.0-RC-20150412/gcc/reg-stack.c:3175
00:57:02     INFO -  0xa51380 reg_to_stack
00:57:02     INFO -      ../../gcc-5.1.0-RC-20150412/gcc/reg-stack.c:3283
00:57:02     INFO -  0xa51380 rest_of_handle_stack_regs
00:57:02     INFO -      ../../gcc-5.1.0-RC-20150412/gcc/reg-stack.c:3338
00:57:02     INFO -  0xa51380 execute
00:57:02     INFO -      ../../gcc-5.1.0-RC-20150412/gcc/reg-stack.c:3369

Please tell me if you need the input files or if the backtrace is enough.


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

* [Bug gcov-profile/65761] internal compiler error: in patch_jump_insn, at cfgrtl.c:1296
  2015-04-14  8:15 [Bug gcov-profile/65761] New: internal compiler error: in patch_jump_insn, at cfgrtl.c:1296 mh+gcc at glandium dot org
@ 2015-04-14  8:25 ` rguenth at gcc dot gnu.org
  2015-04-14  9:22 ` jakub at gcc dot gnu.org
                   ` (10 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: rguenth at gcc dot gnu.org @ 2015-04-14  8:25 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65761

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |WAITING
   Last reconfirmed|                            |2015-04-14
     Ever confirmed|0                           |1

--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
Please attach preprocessed source.


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

* [Bug gcov-profile/65761] internal compiler error: in patch_jump_insn, at cfgrtl.c:1296
  2015-04-14  8:15 [Bug gcov-profile/65761] New: internal compiler error: in patch_jump_insn, at cfgrtl.c:1296 mh+gcc at glandium dot org
  2015-04-14  8:25 ` [Bug gcov-profile/65761] " rguenth at gcc dot gnu.org
@ 2015-04-14  9:22 ` jakub at gcc dot gnu.org
  2015-04-14  9:25 ` mh+gcc at glandium dot org
                   ` (9 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: jakub at gcc dot gnu.org @ 2015-04-14  9:22 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65761

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

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

--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Well, for PGO not just the preprocessed source, but also the *.gcda file.


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

* [Bug gcov-profile/65761] internal compiler error: in patch_jump_insn, at cfgrtl.c:1296
  2015-04-14  8:15 [Bug gcov-profile/65761] New: internal compiler error: in patch_jump_insn, at cfgrtl.c:1296 mh+gcc at glandium dot org
  2015-04-14  8:25 ` [Bug gcov-profile/65761] " rguenth at gcc dot gnu.org
  2015-04-14  9:22 ` jakub at gcc dot gnu.org
@ 2015-04-14  9:25 ` mh+gcc at glandium dot org
  2015-04-14  9:39 ` mh+gcc at glandium dot org
                   ` (8 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: mh+gcc at glandium dot org @ 2015-04-14  9:25 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65761

--- Comment #3 from Mike Hommey <mh+gcc at glandium dot org> ---
Created attachment 35309
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=35309&action=edit
Unified_cpp_js_src5.i

The full compile command line is:
g++ -m32 -march=pentiumpro -o Unified_cpp_js_src5.o -c 
-I../../dist/system_wrappers -include
/builds/slave/try-lx-00000000000000000000000/build/src/config/gcc_hidden.h
-DFFI_BUILDING -DENABLE_BINARYDATA -DENABLE_SHARED_ARRAY_BUFFER -DEXPORT_JS_API
-DJS_HAS_CTYPES -DDLL_PREFIX='"lib"' -DDLL_SUFFIX='".so"' -DMOZ_GLUE_IN_PROGRAM
-DAB_CD= -DNO_NSPR_10_SUPPORT
-I/builds/slave/try-lx-00000000000000000000000/build/src/js/src -I.
-Ictypes/libffi/include
-I/builds/slave/try-lx-00000000000000000000000/build/src/intl/icu/source/common
-I/builds/slave/try-lx-00000000000000000000000/build/src/intl/icu/source/i18n
-I../../dist/include  
-I/builds/slave/try-lx-00000000000000000000000/build/src/obj-firefox/dist/include/nspr
       -fPIC   -DMOZILLA_CLIENT -include ../../js/src/js-confdefs.h -MD -MP -MF
.deps/Unified_cpp_js_src5.o.pp  -Wall -Wsign-compare -Wtype-limits
-Werror=char-subscripts -Werror=comment -Werror=endif-labels
-Werror=ignored-qualifiers -Werror=int-to-pointer-cast -Werror=missing-braces
-Werror=overloaded-virtual -Werror=parentheses -Werror=pointer-arith
-Werror=reorder -Werror=return-type -Werror=sequence-point -Werror=switch
-Werror=trigraphs -Werror=unknown-pragmas -Werror=unused-label
-Werror=unused-value -Werror=write-strings -Werror=conversion-null
-Wno-invalid-offsetof -Wcast-align -Wno-error=uninitialized
-Wno-error=maybe-uninitialized -Wno-error=deprecated-declarations
-Wno-error=array-bounds -Wno-error=coverage-mismatch
-Wno-error=free-nonheap-object -fno-rtti -ffunction-sections -fdata-sections
-fno-exceptions -fno-math-errno -std=gnu++0x -pthread -pipe  -DNDEBUG -DTRIMMED
-g -fprofile-use -fprofile-correction -Wcoverage-mismatch -O3
-fno-omit-frame-pointer  -Werror    
/builds/slave/try-lx-00000000000000000000000/build/src/obj-firefox/js/src/Unified_cpp_js_src5.cpp

... and it doesn't happen without the profile data. I'm trying to get that.


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

* [Bug gcov-profile/65761] internal compiler error: in patch_jump_insn, at cfgrtl.c:1296
  2015-04-14  8:15 [Bug gcov-profile/65761] New: internal compiler error: in patch_jump_insn, at cfgrtl.c:1296 mh+gcc at glandium dot org
                   ` (2 preceding siblings ...)
  2015-04-14  9:25 ` mh+gcc at glandium dot org
@ 2015-04-14  9:39 ` mh+gcc at glandium dot org
  2015-04-14  9:53 ` mh+gcc at glandium dot org
                   ` (7 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: mh+gcc at glandium dot org @ 2015-04-14  9:39 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65761

--- Comment #4 from Mike Hommey <mh+gcc at glandium dot org> ---
Created attachment 35310
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=35310&action=edit
Unified_cpp_js_src5.gcda


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

* [Bug gcov-profile/65761] internal compiler error: in patch_jump_insn, at cfgrtl.c:1296
  2015-04-14  8:15 [Bug gcov-profile/65761] New: internal compiler error: in patch_jump_insn, at cfgrtl.c:1296 mh+gcc at glandium dot org
                   ` (3 preceding siblings ...)
  2015-04-14  9:39 ` mh+gcc at glandium dot org
@ 2015-04-14  9:53 ` mh+gcc at glandium dot org
  2015-04-14  9:55 ` mh+gcc at glandium dot org
                   ` (6 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: mh+gcc at glandium dot org @ 2015-04-14  9:53 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65761

--- Comment #5 from Mike Hommey <mh+gcc at glandium dot org> ---
I can reproduce with:

g++ -m32 -march=pentiumpro -o Unified_cpp_js_src5.o -c -fPIC
-Wno-invalid-offsetof -fno-exceptions -std=gnu++0x -fprofile-use
-fprofile-correction -O3 -fno-omit-frame-pointer Unified_cpp_js_src5.i

It doesn't happen when removing -fno-omit-frame-pointer.


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

* [Bug gcov-profile/65761] internal compiler error: in patch_jump_insn, at cfgrtl.c:1296
  2015-04-14  8:15 [Bug gcov-profile/65761] New: internal compiler error: in patch_jump_insn, at cfgrtl.c:1296 mh+gcc at glandium dot org
                   ` (4 preceding siblings ...)
  2015-04-14  9:53 ` mh+gcc at glandium dot org
@ 2015-04-14  9:55 ` mh+gcc at glandium dot org
  2015-04-14 10:12 ` jakub at gcc dot gnu.org
                   ` (5 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: mh+gcc at glandium dot org @ 2015-04-14  9:55 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65761

--- Comment #6 from Mike Hommey <mh+gcc at glandium dot org> ---
It also doesn't happen at -O2.


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

* [Bug gcov-profile/65761] internal compiler error: in patch_jump_insn, at cfgrtl.c:1296
  2015-04-14  8:15 [Bug gcov-profile/65761] New: internal compiler error: in patch_jump_insn, at cfgrtl.c:1296 mh+gcc at glandium dot org
                   ` (5 preceding siblings ...)
  2015-04-14  9:55 ` mh+gcc at glandium dot org
@ 2015-04-14 10:12 ` jakub at gcc dot gnu.org
  2015-04-14 10:59 ` [Bug rtl-optimization/65761] [5 Regression] " jakub at gcc dot gnu.org
                   ` (4 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: jakub at gcc dot gnu.org @ 2015-04-14 10:12 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65761

--- Comment #7 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Reproduced.


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

* [Bug rtl-optimization/65761] [5 Regression] internal compiler error: in patch_jump_insn, at cfgrtl.c:1296
  2015-04-14  8:15 [Bug gcov-profile/65761] New: internal compiler error: in patch_jump_insn, at cfgrtl.c:1296 mh+gcc at glandium dot org
                   ` (6 preceding siblings ...)
  2015-04-14 10:12 ` jakub at gcc dot gnu.org
@ 2015-04-14 10:59 ` jakub at gcc dot gnu.org
  2015-04-14 11:01 ` jakub at gcc dot gnu.org
                   ` (3 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: jakub at gcc dot gnu.org @ 2015-04-14 10:59 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65761

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|WAITING                     |ASSIGNED
                 CC|jakub at gcc dot gnu.org           |
          Component|gcov-profile                |rtl-optimization
           Assignee|unassigned at gcc dot gnu.org      |jakub at gcc dot gnu.org
   Target Milestone|---                         |5.0
            Summary|internal compiler error: in |[5 Regression] internal
                   |patch_jump_insn, at         |compiler error: in
                   |cfgrtl.c:1296               |patch_jump_insn, at
                   |                            |cfgrtl.c:1296

--- Comment #8 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Latent before r221868.  The bug is in incorrectly inserting a new basic block
between a tablejump and the associated jump table.


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

* [Bug rtl-optimization/65761] [5 Regression] internal compiler error: in patch_jump_insn, at cfgrtl.c:1296
  2015-04-14  8:15 [Bug gcov-profile/65761] New: internal compiler error: in patch_jump_insn, at cfgrtl.c:1296 mh+gcc at glandium dot org
                   ` (7 preceding siblings ...)
  2015-04-14 10:59 ` [Bug rtl-optimization/65761] [5 Regression] " jakub at gcc dot gnu.org
@ 2015-04-14 11:01 ` jakub at gcc dot gnu.org
  2015-04-14 13:25 ` jakub at gcc dot gnu.org
                   ` (2 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: jakub at gcc dot gnu.org @ 2015-04-14 11:01 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65761

--- Comment #9 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Created attachment 35311
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=35311&action=edit
gcc5-pr65761.patch

Untested fix.


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

* [Bug rtl-optimization/65761] [5 Regression] internal compiler error: in patch_jump_insn, at cfgrtl.c:1296
  2015-04-14  8:15 [Bug gcov-profile/65761] New: internal compiler error: in patch_jump_insn, at cfgrtl.c:1296 mh+gcc at glandium dot org
                   ` (8 preceding siblings ...)
  2015-04-14 11:01 ` jakub at gcc dot gnu.org
@ 2015-04-14 13:25 ` jakub at gcc dot gnu.org
  2015-04-14 13:26 ` jakub at gcc dot gnu.org
  2015-04-14 13:27 ` jakub at gcc dot gnu.org
  11 siblings, 0 replies; 13+ messages in thread
From: jakub at gcc dot gnu.org @ 2015-04-14 13:25 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65761

--- Comment #10 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Tue Apr 14 13:24:53 2015
New Revision: 222090

URL: https://gcc.gnu.org/viewcvs?rev=222090&root=gcc&view=rev
Log:
    PR rtl-optimization/65761
    * cfgrtl.c (rtl_split_edge): For EDGE_CROSSING split, use
    get_last_bb_insn (after) instead of NEXT_INSN (BB_END (after)).

Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/cfgrtl.c


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

* [Bug rtl-optimization/65761] [5 Regression] internal compiler error: in patch_jump_insn, at cfgrtl.c:1296
  2015-04-14  8:15 [Bug gcov-profile/65761] New: internal compiler error: in patch_jump_insn, at cfgrtl.c:1296 mh+gcc at glandium dot org
                   ` (9 preceding siblings ...)
  2015-04-14 13:25 ` jakub at gcc dot gnu.org
@ 2015-04-14 13:26 ` jakub at gcc dot gnu.org
  2015-04-14 13:27 ` jakub at gcc dot gnu.org
  11 siblings, 0 replies; 13+ messages in thread
From: jakub at gcc dot gnu.org @ 2015-04-14 13:26 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65761

--- Comment #11 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Tue Apr 14 13:25:34 2015
New Revision: 222091

URL: https://gcc.gnu.org/viewcvs?rev=222091&root=gcc&view=rev
Log:
    PR rtl-optimization/65761
    * cfgrtl.c (rtl_split_edge): For EDGE_CROSSING split, use
    get_last_bb_insn (after) instead of NEXT_INSN (BB_END (after)).

Modified:
    branches/gcc-5-branch/gcc/ChangeLog
    branches/gcc-5-branch/gcc/cfgrtl.c


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

* [Bug rtl-optimization/65761] [5 Regression] internal compiler error: in patch_jump_insn, at cfgrtl.c:1296
  2015-04-14  8:15 [Bug gcov-profile/65761] New: internal compiler error: in patch_jump_insn, at cfgrtl.c:1296 mh+gcc at glandium dot org
                   ` (10 preceding siblings ...)
  2015-04-14 13:26 ` jakub at gcc dot gnu.org
@ 2015-04-14 13:27 ` jakub at gcc dot gnu.org
  11 siblings, 0 replies; 13+ messages in thread
From: jakub at gcc dot gnu.org @ 2015-04-14 13:27 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65761

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

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

--- Comment #12 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Fixed for 5.1+.


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

end of thread, other threads:[~2015-04-14 13:27 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-04-14  8:15 [Bug gcov-profile/65761] New: internal compiler error: in patch_jump_insn, at cfgrtl.c:1296 mh+gcc at glandium dot org
2015-04-14  8:25 ` [Bug gcov-profile/65761] " rguenth at gcc dot gnu.org
2015-04-14  9:22 ` jakub at gcc dot gnu.org
2015-04-14  9:25 ` mh+gcc at glandium dot org
2015-04-14  9:39 ` mh+gcc at glandium dot org
2015-04-14  9:53 ` mh+gcc at glandium dot org
2015-04-14  9:55 ` mh+gcc at glandium dot org
2015-04-14 10:12 ` jakub at gcc dot gnu.org
2015-04-14 10:59 ` [Bug rtl-optimization/65761] [5 Regression] " jakub at gcc dot gnu.org
2015-04-14 11:01 ` jakub at gcc dot gnu.org
2015-04-14 13:25 ` jakub at gcc dot gnu.org
2015-04-14 13:26 ` jakub at gcc dot gnu.org
2015-04-14 13:27 ` 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).