public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug ipa/63598] New: [5.0 Regression] ICE: in ipa_merge_profiles at ipa-utils.c:396
@ 2014-10-19 20:50 danglin at gcc dot gnu.org
  2014-10-20  2:02 ` [Bug ipa/63598] " danglin at gcc dot gnu.org
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: danglin at gcc dot gnu.org @ 2014-10-19 20:50 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 63598
           Summary: [5.0 Regression] ICE: in ipa_merge_profiles at
                    ipa-utils.c:396
           Product: gcc
           Version: 5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: ipa
          Assignee: unassigned at gcc dot gnu.org
          Reporter: danglin at gcc dot gnu.org
                CC: mliska at suse dot cz
              Host: hppa2.0w-hp-hpux11.11
            Target: hppa2.0w-hp-hpux11.11
             Build: hppa2.0w-hp-hpux11.11

Created attachment 33759
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=33759&action=edit
Preprocessed source

/opt/gnu/bin/bash ./libtool --tag=CC   --mode=compile
/test/gnu/gcc/objdir/./gcc
/xgcc -B/test/gnu/gcc/objdir/./gcc/
-B/opt/gnu/gcc/gcc-5.0/hppa2.0w-hp-hpux11.11
/bin/ -B/opt/gnu/gcc/gcc-5.0/hppa2.0w-hp-hpux11.11/lib/ -isystem
/opt/gnu/gcc/gc
c-5.0/hppa2.0w-hp-hpux11.11/include -isystem
/opt/gnu/gcc/gcc-5.0/hppa2.0w-hp-hp
ux11.11/sys-include    -DHAVE_CONFIG_H -I. -I../../../gcc/libgomp 
-I../../../gc
c/libgomp/config/posix -I../../../gcc/libgomp  -Wall -Werror
-frandom-seed=fixed
-seed -Wc,-pthread -g -O2 -MT env.lo -MD -MP -MF .deps/env.Tpo -c -o env.lo
../.
./../gcc/libgomp/env.c
libtool: compile:  /test/gnu/gcc/objdir/./gcc/xgcc
-B/test/gnu/gcc/objdir/./gcc/
 -B/opt/gnu/gcc/gcc-5.0/hppa2.0w-hp-hpux11.11/bin/
-B/opt/gnu/gcc/gcc-5.0/hppa2.
0w-hp-hpux11.11/lib/ -isystem
/opt/gnu/gcc/gcc-5.0/hppa2.0w-hp-hpux11.11/include
 -isystem /opt/gnu/gcc/gcc-5.0/hppa2.0w-hp-hpux11.11/sys-include
-DHAVE_CONFIG_H
 -I. -I../../../gcc/libgomp -I../../../gcc/libgomp/config/posix
-I../../../gcc/l
ibgomp -Wall -Werror -pthread -frandom-seed=fixed-seed -g -O2 -MT env.lo -MD
-MP
 -MF .deps/env.Tpo -c ../../../gcc/libgomp/env.c  -fPIC -DPIC -o .libs/env.o
../../../gcc/libgomp/env.c:1446:1: internal compiler error: Segmentation fault
 ialias (omp_is_initial_device)
 ^
libbacktrace could not find executable to open
Please submit a full bug report,
with preprocessed source if appropriate.

(gdb) r
Starting program: /test/gnu/gcc/objdir/gcc/cc1 -fpreprocessed env.i -quiet
-dumpbase env.c -auxbase-strip .libs/env.o -g -O2 -Wall -Werror -version
-frandom-seed=fixed-seed -fPIC -o env.s
warning: Private mapping of shared library text was not specified
by the executable; setting a breakpoint in a shared library which
is not privately mapped will not work.  See the HP-UX 11i v3 chatr
manpage for methods to privately map shared library text.
GNU C (GCC) version 5.0.0 20141019 (experimental) [trunk revision 216441]
(hppa2.0w-hp-hpux11.11)
    compiled by GNU C version 4.7.2, GMP version 5.0.5, MPFR version 3.1.2, MPC
version 1.0
GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
GNU C (GCC) version 5.0.0 20141019 (experimental) [trunk revision 216441]
(hppa2.0w-hp-hpux11.11)
    compiled by GNU C version 4.7.2, GMP version 5.0.5, MPFR version 3.1.2, MPC
version 1.0
GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
Compiler executable checksum: eaae743d522abd7927ead6970564ef2b

Program received signal SIGSEGV, Segmentation fault.
0x0087be3c in _Z18ipa_merge_profilesP11cgraph_nodeS0_ (dst=0x0, 
    src=0x7afbd460) at ../../gcc/gcc/ipa-utils.c:396
396          || !dst->definition)
(gdb) bt
#0  0x0087be3c in _Z18ipa_merge_profilesP11cgraph_nodeS0_ (dst=0x0, 
    src=0x7afbd460) at ../../gcc/gcc/ipa-utils.c:396
#1  0x008570d4 in _ZN7ipa_icf12sem_function5mergeEPNS_8sem_itemE (
    this=0x4035f440, alias_item=0x4035f5d0) at ../../gcc/gcc/ipa-icf.c:652
#2  0x0085e220 in _ZN7ipa_icf18sem_item_optimizer13merge_classesEj (
    this=0x4035f300, prev_class_count=33) at ../../gcc/gcc/ipa-icf.c:2241
#3  0x0085b41c in _ZN7ipa_icf18sem_item_optimizer7executeEv (this=0x4035f300)
    at ../../gcc/gcc/ipa-icf.c:1602
#4  0x0085e85c in ipa_icf::ipa_icf_driver() () at ../../gcc/gcc/ipa-icf.c:2319
#5  0x0085eb5c in _ZN7ipa_icf12pass_ipa_icf7executeEP8function (
    this=0x4033aef8) at ../../gcc/gcc/ipa-icf.c:2366
#6  0x00a4e3f4 in _Z16execute_one_passP8opt_pass (pass=0x4033aef8)
    at ../../gcc/gcc/passes.c:2155
#7  0x00a4f910 in _Z21execute_ipa_pass_listP8opt_pass (pass=0x4033aef8)
    at ../../gcc/gcc/passes.c:2545
#8  0x0038cfa4 in _ZL10ipa_passesv () at ../../gcc/gcc/cgraphunit.c:2057
#9  0x0038d3d8 in _ZN12symbol_table7compileEv (this=0x7ae2b000)
    at ../../gcc/gcc/cgraphunit.c:2137
#10 0x0038d894 in _ZN12symbol_table25finalize_compilation_unitEv (
    this=0x7ae2b000) at ../../gcc/gcc/cgraphunit.c:2290
#11 0x000982f4 in _Z27c_write_global_declarationsv ()
    at ../../gcc/gcc/c/c-decl.c:10640
#12 0x00bf73b4 in _ZL12compile_filev () at ../../gcc/gcc/toplev.c:569
---Type <return> to continue, or q <return> to quit---
#13 0x00bfb22c in _ZL10do_compilev () at ../../gcc/gcc/toplev.c:1977
#14 0x00bfb540 in toplev_main(int, char**) () at ../../gcc/gcc/toplev.c:2053
#15 0x011f79c4 in main (argc=17, argv=0x7eff0544) at ../../gcc/gcc/main.c:36

dst is NULL.


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

* [Bug ipa/63598] [5.0 Regression] ICE: in ipa_merge_profiles at ipa-utils.c:396
  2014-10-19 20:50 [Bug ipa/63598] New: [5.0 Regression] ICE: in ipa_merge_profiles at ipa-utils.c:396 danglin at gcc dot gnu.org
@ 2014-10-20  2:02 ` danglin at gcc dot gnu.org
  2014-10-20 12:51 ` rguenth at gcc dot gnu.org
                   ` (5 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: danglin at gcc dot gnu.org @ 2014-10-20  2:02 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #1 from John David Anglin <danglin at gcc dot gnu.org> ---
Introduced in r216305.


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

* [Bug ipa/63598] [5.0 Regression] ICE: in ipa_merge_profiles at ipa-utils.c:396
  2014-10-19 20:50 [Bug ipa/63598] New: [5.0 Regression] ICE: in ipa_merge_profiles at ipa-utils.c:396 danglin at gcc dot gnu.org
  2014-10-20  2:02 ` [Bug ipa/63598] " danglin at gcc dot gnu.org
@ 2014-10-20 12:51 ` rguenth at gcc dot gnu.org
  2014-10-22  1:24 ` danglin at gcc dot gnu.org
                   ` (4 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: rguenth at gcc dot gnu.org @ 2014-10-20 12:51 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |5.0


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

* [Bug ipa/63598] [5.0 Regression] ICE: in ipa_merge_profiles at ipa-utils.c:396
  2014-10-19 20:50 [Bug ipa/63598] New: [5.0 Regression] ICE: in ipa_merge_profiles at ipa-utils.c:396 danglin at gcc dot gnu.org
  2014-10-20  2:02 ` [Bug ipa/63598] " danglin at gcc dot gnu.org
  2014-10-20 12:51 ` rguenth at gcc dot gnu.org
@ 2014-10-22  1:24 ` danglin at gcc dot gnu.org
  2014-10-24 19:52 ` dave.anglin at bell dot net
                   ` (3 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: danglin at gcc dot gnu.org @ 2014-10-22  1:24 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #2 from John David Anglin <danglin at gcc dot gnu.org> ---
If I apply this change

Index: ipa-icf.c
===================================================================
--- ipa-icf.c    (revision 216524)
+++ ipa-icf.c    (working copy)
@@ -584,8 +584,12 @@
       || (DECL_COMDAT_GROUP (original->decl)
           && (DECL_COMDAT_GROUP (original->decl)
           == DECL_COMDAT_GROUP (alias->decl)))))
-    local_original
-      = dyn_cast <cgraph_node *> (original->noninterposable_alias ());
+    {
+      local_original
+    = dyn_cast <cgraph_node *> (original->noninterposable_alias ());
+      if (!local_original)
+    return false;
+    }

   if (redirect_callers)
     {

, the following error occurs in stage1:

/usr/ccs/bin/ld: Invalid symbol type for plabel
(.libs/libstdc++.lax/libsupc++co
nvenience.a/tinfo.o, std::type_info::__is_pointer_p() const).
collect2: error: ld returned 1 exit status


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

* [Bug ipa/63598] [5.0 Regression] ICE: in ipa_merge_profiles at ipa-utils.c:396
  2014-10-19 20:50 [Bug ipa/63598] New: [5.0 Regression] ICE: in ipa_merge_profiles at ipa-utils.c:396 danglin at gcc dot gnu.org
                   ` (2 preceding siblings ...)
  2014-10-22  1:24 ` danglin at gcc dot gnu.org
@ 2014-10-24 19:52 ` dave.anglin at bell dot net
  2014-11-20 12:39 ` rguenth at gcc dot gnu.org
                   ` (2 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: dave.anglin at bell dot net @ 2014-10-24 19:52 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #3 from dave.anglin at bell dot net ---
I had a successful build by setting 'flag_ipa_icf_functions = 0' in 
pa_option_override.

Dave


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

* [Bug ipa/63598] [5.0 Regression] ICE: in ipa_merge_profiles at ipa-utils.c:396
  2014-10-19 20:50 [Bug ipa/63598] New: [5.0 Regression] ICE: in ipa_merge_profiles at ipa-utils.c:396 danglin at gcc dot gnu.org
                   ` (3 preceding siblings ...)
  2014-10-24 19:52 ` dave.anglin at bell dot net
@ 2014-11-20 12:39 ` rguenth at gcc dot gnu.org
  2014-11-21 15:00 ` dave.anglin at bell dot net
  2014-11-22 21:01 ` danglin at gcc dot gnu.org
  6 siblings, 0 replies; 8+ messages in thread
From: rguenth at gcc dot gnu.org @ 2014-11-20 12:39 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P1


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

* [Bug ipa/63598] [5.0 Regression] ICE: in ipa_merge_profiles at ipa-utils.c:396
  2014-10-19 20:50 [Bug ipa/63598] New: [5.0 Regression] ICE: in ipa_merge_profiles at ipa-utils.c:396 danglin at gcc dot gnu.org
                   ` (4 preceding siblings ...)
  2014-11-20 12:39 ` rguenth at gcc dot gnu.org
@ 2014-11-21 15:00 ` dave.anglin at bell dot net
  2014-11-22 21:01 ` danglin at gcc dot gnu.org
  6 siblings, 0 replies; 8+ messages in thread
From: dave.anglin at bell dot net @ 2014-11-21 15:00 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #5 from dave.anglin at bell dot net ---
On 11/21/2014 7:52 AM, marxin at gcc dot gnu.org wrote:
> Can you please check if the issue still persists?
I will check.  All my recent builds are with flag_ipa_icf_functions = 0.
>
> I would appreciate further information related to PR, or do we have any GCC
>   fam
>
> machine I can debug it?
>
There is no farm machine for hppa-hpux.  We have a machine for 
hppa-linux.  However,
this bug seems hpux specific.

Dave


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

* [Bug ipa/63598] [5.0 Regression] ICE: in ipa_merge_profiles at ipa-utils.c:396
  2014-10-19 20:50 [Bug ipa/63598] New: [5.0 Regression] ICE: in ipa_merge_profiles at ipa-utils.c:396 danglin at gcc dot gnu.org
                   ` (5 preceding siblings ...)
  2014-11-21 15:00 ` dave.anglin at bell dot net
@ 2014-11-22 21:01 ` danglin at gcc dot gnu.org
  6 siblings, 0 replies; 8+ messages in thread
From: danglin at gcc dot gnu.org @ 2014-11-22 21:01 UTC (permalink / raw)
  To: gcc-bugs

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

John David Anglin <danglin at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P1                          |P3
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |FIXED

--- Comment #6 from John David Anglin <danglin at gcc dot gnu.org> ---
Fixed.


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

end of thread, other threads:[~2014-11-22 21:01 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-10-19 20:50 [Bug ipa/63598] New: [5.0 Regression] ICE: in ipa_merge_profiles at ipa-utils.c:396 danglin at gcc dot gnu.org
2014-10-20  2:02 ` [Bug ipa/63598] " danglin at gcc dot gnu.org
2014-10-20 12:51 ` rguenth at gcc dot gnu.org
2014-10-22  1:24 ` danglin at gcc dot gnu.org
2014-10-24 19:52 ` dave.anglin at bell dot net
2014-11-20 12:39 ` rguenth at gcc dot gnu.org
2014-11-21 15:00 ` dave.anglin at bell dot net
2014-11-22 21:01 ` danglin 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).