[Bug lto/64693] [5 Regression] PCH failed with --with-build-config=bootstrap-lto

2015-02-26 Thread marxin at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64693

Martin Liška marxin at gcc dot gnu.org changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution|--- |FIXED

--- Comment #9 from Martin Liška marxin at gcc dot gnu.org ---
Fixed in 5.0.

[Bug lto/64693] [5 Regression] PCH failed with --with-build-config=bootstrap-lto

2015-02-26 Thread marxin at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64693

--- Comment #8 from Martin Liška marxin at gcc dot gnu.org ---
Author: marxin
Date: Thu Feb 26 20:21:38 2015
New Revision: 221031

URL: https://gcc.gnu.org/viewcvs?rev=221031root=gccview=rev
Log:
Fix PR ipa/64693

PR ipa/64693
* ipa-icf.c (symbol_compare_collection::symbol_compare_collection): New.
(sem_item_optimizer::subdivide_classes_by_sensitive_refs): New function.
(sem_item_optimizer::process_cong_reduction): Include division by
sensitive references.
* ipa-icf.h (struct symbol_compare_hashmap_traits): New class.
* ipa-ref.c (ipa_ref::address_matters_p): New function.
* ipa-ref.h (ipa_ref::address_matters_p): Likewise.
* g++.dg/ipa/pr64146.C: Update expected results.
* gcc.dg/ipa/ipa-icf-26.c: Update test.
* gcc.dg/ipa/ipa-icf-33.c: Remove redundant line.
* gcc.dg/ipa/ipa-icf-34.c: New test.

Modified:
trunk/gcc/ChangeLog
trunk/gcc/ipa-icf.c
trunk/gcc/ipa-icf.h
trunk/gcc/ipa-ref.c
trunk/gcc/ipa-ref.h
trunk/gcc/testsuite/ChangeLog
trunk/gcc/testsuite/g++.dg/ipa/pr64146.C
trunk/gcc/testsuite/gcc.dg/ipa/ipa-icf-26.c
trunk/gcc/testsuite/gcc.dg/ipa/ipa-icf-33.c

[Bug lto/64693] [5 Regression] PCH failed with --with-build-config=bootstrap-lto

2015-02-09 Thread marxin at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64693

--- Comment #7 from Martin Liška marxin at gcc dot gnu.org ---
(In reply to H.J. Lu from comment #6)
 A patch is posted at
 
 https://gcc.gnu.org/ml/gcc-patches/2015-01/msg02108.html

Hello.

I've just finished more sensitive patch for the issue and I've just restarted
profiled bootstrap.

Tomorrow, I'm going to send new version of the patch.

Thanks,
Martin

[Bug lto/64693] [5 Regression] PCH failed with --with-build-config=bootstrap-lto

2015-02-07 Thread hjl.tools at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64693

--- Comment #6 from H.J. Lu hjl.tools at gmail dot com ---
A patch is posted at

https://gcc.gnu.org/ml/gcc-patches/2015-01/msg02108.html


[Bug lto/64693] [5 Regression] PCH failed with --with-build-config=bootstrap-lto

2015-02-07 Thread hjl.tools at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64693

H.J. Lu hjl.tools at gmail dot com changed:

   What|Removed |Added

 CC||trippels at gcc dot gnu.org

--- Comment #5 from H.J. Lu hjl.tools at gmail dot com ---
*** Bug 64908 has been marked as a duplicate of this bug. ***


[Bug lto/64693] [5 Regression] PCH failed with --with-build-config=bootstrap-lto

2015-01-22 Thread marxin at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64693

--- Comment #4 from Martin Liška marxin at gcc dot gnu.org ---
Created attachment 34534
  -- https://gcc.gnu.org/bugzilla/attachment.cgi?id=34534action=edit
Test case

I've been working on a patch for the testcase.

[Bug lto/64693] [5 Regression] PCH failed with --with-build-config=bootstrap-lto

2015-01-21 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64693

Richard Biener rguenth at gcc dot gnu.org changed:

   What|Removed |Added

   Priority|P3  |P1

--- Comment #3 from Richard Biener rguenth at gcc dot gnu.org ---
I remember seeing those failures with a regular LTO bootstrap as well,
profiling not required.


[Bug lto/64693] [5 Regression] PCH failed with --with-build-config=bootstrap-lto

2015-01-20 Thread hjl.tools at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64693

H.J. Lu hjl.tools at gmail dot com changed:

   What|Removed |Added

 Status|UNCONFIRMED |NEW
   Last reconfirmed||2015-01-20
  Component|bootstrap   |lto
   Target Milestone|--- |5.0
Summary|[5 Regression] PCH failed   |[5 Regression] PCH failed
   |with LTO +  |with
   |profiledbootstrap   |--with-build-config=bootstr
   ||ap-lto
 Ever confirmed|0   |1

--- Comment #1 from H.J. Lu hjl.tools at gmail dot com ---
--with-build-config=bootstrap-lto is sufficient to trigger this.


[Bug lto/64693] [5 Regression] PCH failed with --with-build-config=bootstrap-lto

2015-01-20 Thread hjl.tools at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64693

H.J. Lu hjl.tools at gmail dot com changed:

   What|Removed |Added

 CC||marxin at gcc dot gnu.org

--- Comment #2 from H.J. Lu hjl.tools at gmail dot com ---
It is caused by r216305.  PCH tests failed with

./common-1.h:3:1: internal compiler error: Segmentation fault^M
0xc35c84 crash_signal(int) [clone .lto_priv.1181]^M
/export/project/git/gcc-regression/gcc/gcc/toplev.c:340^M
0xfda549 lookup_page_table_entry^M
/export/project/git/gcc-regression/gcc/gcc/ggc-page.c:638^M
0xfda549 ggc_get_size(void const*)^M
/export/project/git/gcc-regression/gcc/gcc/ggc-page.c:1572^M
0xfda549 gt_pch_note_object(void*, void*, void (*)(void*, void*, void
(*)(void*, void*), void*))^M
/export/project/git/gcc-regression/gcc/gcc/ggc-common.c:352^M
0x7d07d8 gt_pch_nx_dw_line_info_table_struct(void*)^M
./gt-dwarf2out.h:967^M
0xfd8687 gt_pch_save(_IO_FILE*)^M
/export/project/git/gcc-regression/gcc/gcc/ggc-common.c:502^M
0x7c6e97 c_common_write_pch()^M
/export/project/git/gcc-regression/gcc/gcc/c-family/c-pch.c:187^M
0xd69f67 c_common_parse_file()^M
/export/project/git/gcc-regression/gcc/gcc/c-family/c-opts.c:1047^M
Please submit a full bug report,^M
with preprocessed source if appropriate.^M
Please include the complete backtrace with any bug report.^M
See http://gcc.gnu.org/bugs.html for instructions.^M

FAIL: ./common-1.h  -O0 -g (internal compiler error)