[Bug target/81616] Update -mtune=generic for the current Intel and AMD processors

2017-12-02 Thread hubicka at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81616 --- Comment #36 from Jan Hubicka --- Author: hubicka Date: Sat Dec 2 09:22:41 2017 New Revision: 255357 URL: https://gcc.gnu.org/viewcvs?rev=255357&root=gcc&view=rev Log: PR target/81616 * x86-tune.def: Remove obsolette FIXMEs.

[Bug target/81616] Update -mtune=generic for the current Intel and AMD processors

2017-12-04 Thread hubicka at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81616 --- Comment #37 from Jan Hubicka --- Author: hubicka Date: Mon Dec 4 23:59:11 2017 New Revision: 255395 URL: https://gcc.gnu.org/viewcvs?rev=255395&root=gcc&view=rev Log: PR target/81616 * athlon.md: Disable for generic.

[Bug ipa/77472] build of intel_drv.so (xf86-video-intel) takes over 13GB+ memory during lto1

2016-09-04 Thread hubicka at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77472 Jan Hubicka changed: What|Removed |Added CC||hubicka at gcc dot gnu.org --- Comment #3

[Bug lto/60016] gcc-nm does not report static symbols

2016-09-11 Thread hubicka at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60016 Jan Hubicka changed: What|Removed |Added CC||hubicka at gcc dot gnu.org --- Comment #1

[Bug ipa/61159] __builtin_constant_p gives incorrect results with aliases

2016-09-11 Thread hubicka at gcc dot gnu.org
||2016-09-11 Assignee|unassigned at gcc dot gnu.org |hubicka at gcc dot gnu.org Ever confirmed|0 |1 --- Comment #2 from Jan Hubicka --- I think this has been fixed with last alias reorg, but double-checking and having a testcase would

[Bug lto/54839] INTEGER_CST is missed by uniquify_nodes and soaks tons of memory

2016-09-11 Thread hubicka at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=54839 Jan Hubicka changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug lto/58203] memset/memcpy are discarded with -flto

2016-09-11 Thread hubicka at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58203 Jan Hubicka changed: What|Removed |Added CC||hubicka at gcc dot gnu.org --- Comment #2

[Bug ipa/70582] [6/7 regression] gcc.dg/attr-weakref-1.c FAILs

2016-09-11 Thread hubicka at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70582 --- Comment #6 from Jan Hubicka --- Does this still reproduce? I have implemented the optimization that removes weakrefs with definition provided in other unit so this may be solved/hidden by it.

[Bug ipa/63416] Three calls to empty functions via pointers get folded, but not inlined

2016-09-11 Thread hubicka at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63416 Jan Hubicka changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug rtl-optimization/64316] [5 Regression] ICE in simplify_const_unary_operation after r218503

2016-09-11 Thread hubicka at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64316 --- Comment #5 from Jan Hubicka --- Author: hubicka Date: Sun Sep 11 12:08:28 2016 New Revision: 240081 URL: https://gcc.gnu.org/viewcvs?rev=240081&root=gcc&view=rev Log: PR ipa/64316 * gcc.dg/ipa/pr63416.c: New testcase. Added:

[Bug ipa/61159] __builtin_constant_p gives incorrect results with aliases

2016-09-11 Thread hubicka at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61159 --- Comment #3 from Jan Hubicka --- Fixed.

[Bug ipa/61159] __builtin_constant_p gives incorrect results with aliases

2016-09-11 Thread hubicka at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61159 --- Comment #4 from Jan Hubicka --- Author: hubicka Date: Sun Sep 11 12:15:02 2016 New Revision: 240082 URL: https://gcc.gnu.org/viewcvs?rev=240082&root=gcc&view=rev Log: PR ipa/61159 * compile/pr61159.c: New testcase Added:

[Bug lto/57726] LTO verify_flow_info: error: control flow in the middle of basic block

2016-09-11 Thread hubicka at gcc dot gnu.org
||2016-09-11 CC||hubicka at gcc dot gnu.org Ever confirmed|0 |1 --- Comment #2 from Jan Hubicka --- Seems the testcase is not complete. Does it still reproduce?

[Bug lto/50147] LTO: Segmentation fault in infinite_empty_loop_p

2016-09-11 Thread hubicka at gcc dot gnu.org
||2016-09-11 CC||hubicka at gcc dot gnu.org Ever confirmed|0 |1 --- Comment #4 from Jan Hubicka --- Works for me with current mainline and it is not obvious to me what went wrong in 4.6 Does it still

[Bug lto/71089] [7 Regression] Failed to build 483.xalancbmk in SPEC CPU 2006

2016-09-11 Thread hubicka at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71089 Jan Hubicka changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug ipa/60315] [4.8/4.9 Regression] template constructor switch optimization

2014-03-24 Thread hubicka at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60315 Jan Hubicka changed: What|Removed |Added Status|NEW |ASSIGNED --- Comment #9 from Jan Hubicka -

[Bug ipa/60315] [4.8/4.9 Regression] template constructor switch optimization

2014-03-24 Thread hubicka at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60315 --- Comment #10 from Jan Hubicka --- Actually the problem here seems to be that we soon work out that most of edges are never executed, yet we still inlining them. The metrics are not growing then so we take time to hit the limits. I guess with a

[Bug ipa/60315] [4.8/4.9 Regression] template constructor switch optimization

2014-03-24 Thread hubicka at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60315 --- Comment #11 from Jan Hubicka --- Created attachment 32439 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=32439&action=edit Patch I am testing this patch implements the trick of redirecting call edges to UNREACHABLE. It solves the compil

[Bug ipa/60600] [4.9 Regression] ICE in ipa_get_indirect_edge_target_1

2014-03-24 Thread hubicka at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60600 --- Comment #6 from Jan Hubicka --- The patch looks fine to me with an testcase added checking for the warning. I sort of hoped that the type based devirt code in ipa-cp won't get into completely contradicting answers, but that was at a time when

[Bug lto/60567] [4.9 Regression] lto1 ICE in add_symbol_to_partition, at lto/lto-partition.c:233 with -fno-use-linker-plugin

2014-03-24 Thread hubicka at gcc dot gnu.org
gcc dot gnu.org |hubicka at gcc dot gnu.org --- Comment #10 from Jan Hubicka --- I will take a look.

[Bug ipa/60315] [4.8/4.9 Regression] template constructor switch optimization

2014-03-24 Thread hubicka at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60315 --- Comment #12 from Jan Hubicka --- Created attachment 32442 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=32442&action=edit Better patch I am attaching more complete patch. There is quite bad wrong code bug in pure-const that updates dec

[Bug ipa/60659] [4.9 Regression] ICE in get_polymorphic_call_info, at ipa-devirt.c:1292

2014-03-25 Thread hubicka at gcc dot gnu.org
gcc dot gnu.org |hubicka at gcc dot gnu.org --- Comment #2 from Jan Hubicka --- Mine. And I was about to declare ipa-devirt to be officially 100% bug free :)

[Bug ipa/60315] [4.8/4.9 Regression] template constructor switch optimization

2014-03-25 Thread hubicka at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60315 --- Comment #13 from Jan Hubicka --- Author: hubicka Date: Wed Mar 26 02:11:57 2014 New Revision: 208831 URL: http://gcc.gnu.org/viewcvs?rev=208831&root=gcc&view=rev Log: PR ipa/60315 * cif-code.def (UNREACHABLE) New code. * ipa-inli

[Bug ipa/60315] [4.8/4.9 Regression] template constructor switch optimization

2014-03-25 Thread hubicka at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60315 --- Comment #14 from Jan Hubicka --- The compile time hog issue is fixed now. We still fix the predicates for switch statement (to get pass NOP_EXPR) since it seems very common pattern. Richard: I suppose we can't fold away the NOP_EXPR easily e

[Bug ipa/60243] IPA is slow on large cgraph tree

2014-03-25 Thread hubicka at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60243 --- Comment #13 from Jan Hubicka --- BTW, compiled with C++ FE we seem to have important bottleneck in linemap_macro_map_lookup

[Bug ipa/60243] IPA is slow on large cgraph tree

2014-03-28 Thread hubicka at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60243 --- Comment #14 from Jan Hubicka --- Author: hubicka Date: Fri Mar 28 19:50:28 2014 New Revision: 208916 URL: http://gcc.gnu.org/viewcvs?rev=208916&root=gcc&view=rev Log: PR ipa/60243 * ipa-inline.c (want_inline_small_function_p): Short c

[Bug ipa/60659] [4.9 Regression] ICE in get_polymorphic_call_info, at ipa-devirt.c:1292

2014-03-28 Thread hubicka at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60659 --- Comment #4 from Jan Hubicka --- OK, this is ICE on type inconsistent program (it looks up virtual function in non-virtual type). I forgot gcc_unreacable on that code path from earlier sanity checking. I will arrange such inconsistent calls to

[Bug ipa/60659] [4.9 Regression] ICE in get_polymorphic_call_info, at ipa-devirt.c:1292

2014-03-30 Thread hubicka at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60659 --- Comment #5 from Jan Hubicka --- Created attachment 32494 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=32494&action=edit Patch I am testing This is patch that makes us to redirect those type inconsistent calls to builtin_unreachable. I

[Bug lto/60449] Merging function DECLs discards leaf attribute which causes cfg verifier to fail

2014-04-02 Thread hubicka at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60449 --- Comment #11 from Jan Hubicka --- > OTOH, why do we have to merge the decls/cgraph nodes at all? Can't we simply > make them aliases if tree merging decides the decls are not equal? If we do so, we would never merge external declaration from

[Bug ipa/60659] [4.9 Regression] ICE in get_polymorphic_call_info, at ipa-devirt.c:1292

2014-04-02 Thread hubicka at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60659 --- Comment #6 from Jan Hubicka --- Author: hubicka Date: Thu Apr 3 03:55:59 2014 New Revision: 209048 URL: http://gcc.gnu.org/viewcvs?rev=209048&root=gcc&view=rev Log: PR ipa/60659 * ipa-devirt.c (get_polymorphic_call_info): Do not ICE

[Bug lto/59626] [4.8/4.9 Regression] /usr/include/bits/unistd.h:173:1: error: inlining failed in call to always_inline 'readlinkat': recursive inlining

2014-04-04 Thread hubicka at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59626 --- Comment #21 from Jan Hubicka --- Author: hubicka Date: Fri Apr 4 18:02:31 2014 New Revision: 209123 URL: http://gcc.gnu.org/viewcvs?rev=209123&root=gcc&view=rev Log: PR ipa/59626 * lto-cgraph.c (input_overwrite_node): Check that par

[Bug ipa/60665] gcc/ipa-devirt.c:1510:7: warning: variable 'can_refer' is used uninitialized whenever '?:' condition is false

2014-04-05 Thread hubicka at gcc dot gnu.org
||2014-04-05 CC||hubicka at gcc dot gnu.org Ever confirmed|0 |1 --- Comment #1 from Jan Hubicka --- Not really a bug, since can_refer is unused in that case, but I will add initialization to that code path, it

[Bug lto/60567] [4.9 Regression] lto1 ICE in add_symbol_to_partition, at lto/lto-partition.c:233 with -fno-use-linker-plugin

2014-04-09 Thread hubicka at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60567 --- Comment #14 from Jan Hubicka --- OK, the problem is that one comdat group has two functions: _ZNK19MutableIntegerValue18isValidNativeValueEi/0 (isValidNativeValue) @0x76adfe18 Type: function definition analyzed Visibility: forced_by_ab

[Bug lto/60567] [4.9 Regression] lto1 ICE in add_symbol_to_partition, at lto/lto-partition.c:233 with -fno-use-linker-plugin

2014-04-09 Thread hubicka at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60567 Jan Hubicka changed: What|Removed |Added CC||jason at redhat dot com --- Comment #15 fro

[Bug lto/60820] [4.9/4.10 Regression] ice in ctor_for_folding, at varpool.c:291

2014-04-11 Thread hubicka at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60820 Jan Hubicka changed: What|Removed |Added CC||hubicka at gcc dot gnu.org

[Bug lto/60820] [4.9/4.10 Regression] ice in ctor_for_folding, at varpool.c:291

2014-04-11 Thread hubicka at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60820 --- Comment #4 from Jan Hubicka --- I am testing the following Index: /aux/hubicka/trunk-test/gcc/varpool.c === --- /aux/hubicka/trunk-test/gcc/varpool.c (revision 209170) +++ /

[Bug lto/60820] [4.9/4.10 Regression] ice in ctor_for_folding, at varpool.c:291

2014-04-14 Thread hubicka at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60820 --- Comment #5 from Jan Hubicka --- Author: hubicka Date: Mon Apr 14 17:53:34 2014 New Revision: 209389 URL: http://gcc.gnu.org/viewcvs?rev=209389&root=gcc&view=rev Log: PR lto/60820 * varpool.c (varpool_remove_node): Do not alter decls

[Bug ipa/60854] [4.9/4.10 Regression] inline constructor of extern template

2014-04-16 Thread hubicka at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60854 Jan Hubicka changed: What|Removed |Added Status|NEW |ASSIGNED --- Comment #2 from Jan Hubicka -

[Bug ipa/60854] [4.9/4.10 Regression] inline constructor of extern template

2014-04-16 Thread hubicka at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60854 --- Comment #3 from Jan Hubicka --- OK, the problem is that we see the reference to alias and decide to keep the alias for future inlining. But when processing the refernce from alias to function itself, we throw it away. We need to keep the body,

[Bug ipa/60854] [4.9/4.10 Regression] inline constructor of extern template

2014-04-16 Thread hubicka at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60854 --- Comment #4 from Jan Hubicka --- Author: hubicka Date: Thu Apr 17 02:22:57 2014 New Revision: 209459 URL: http://gcc.gnu.org/viewcvs?rev=209459&root=gcc&view=rev Log: PR ipa/60854 * ipa.c (symtab_remove_unreachable_nodes): Mark target

[Bug lto/60820] [4.9/4.10 Regression] ice in ctor_for_folding, at varpool.c:291

2014-04-16 Thread hubicka at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60820 --- Comment #8 from Jan Hubicka --- Author: hubicka Date: Thu Apr 17 02:32:26 2014 New Revision: 209460 URL: http://gcc.gnu.org/viewcvs?rev=209460&root=gcc&view=rev Log: PR lto/60820 * gcc.dg/lto/pr60820_0.c: New testcase. * gcc.dg/l

[Bug ipa/60871] [4.9/4.10 Regression] internal compiler error: in possible_polymorphic_call_targets, at ipa-devirt.c:1510

2014-04-17 Thread hubicka at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60871 Jan Hubicka changed: What|Removed |Added Status|NEW |ASSIGNED --- Comment #4 from Jan Hubicka -

[Bug tree-optimization/60899] undef reference generated with -fdevirtualize-speculatively

2014-04-19 Thread hubicka at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60899 Jan Hubicka changed: What|Removed |Added CC||hubicka at gcc dot gnu.org

[Bug tree-optimization/60899] undef reference generated with -fdevirtualize-speculatively

2014-04-20 Thread hubicka at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60899 --- Comment #5 from Jan Hubicka --- I am running benchmarks I do not want to disturb, but the following should fix the problem. $ svn diff ../../gcc/gimple-fold.c Index: ../../gcc/gimple-fold.c =

[Bug lto/50394] [meta-bug] Issues with building libreoffice with LTO

2014-04-20 Thread hubicka at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50394 Jan Hubicka changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Bug ipa/60965] [4.10 Regression] IPA: Devirtualization versus placement new

2014-04-25 Thread hubicka at gcc dot gnu.org
gcc dot gnu.org |hubicka at gcc dot gnu.org --- Comment #4 from Jan Hubicka --- Mine, probably 4.9 regression, too.

[Bug ipa/60871] [4.9/4.10 Regression] internal compiler error: in possible_polymorphic_call_targets, at ipa-devirt.c:1510

2014-05-01 Thread hubicka at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60871 --- Comment #5 from Jan Hubicka --- This is yet another case where get_binfo_at_offset incorrectly returns NULL (wich is in there for long time, but before we started sanity check it just led to missed optimizations). In class D there is base C7

[Bug ipa/60871] [4.9/4.10 Regression] internal compiler error: in possible_polymorphic_call_targets, at ipa-devirt.c:1510

2014-05-01 Thread hubicka at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60871 Jan Hubicka changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |hubicka at gcc dot gnu.org

[Bug ipa/60965] [4.10 Regression] IPA: Devirtualization versus placement new

2014-05-01 Thread hubicka at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60965 --- Comment #6 from Jan Hubicka --- I am testing the attached patch. Index: ipa-devirt.c === --- ipa-devirt.c(revision 209913) +++ ipa-devirt.c(working copy) @@ -1137,

[Bug ipa/60965] [4.10 Regression] IPA: Devirtualization versus placement new

2014-05-05 Thread hubicka at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60965 --- Comment #15 from Jan Hubicka --- Author: hubicka Date: Mon May 5 19:40:34 2014 New Revision: 210079 URL: http://gcc.gnu.org/viewcvs?rev=210079&root=gcc&view=rev Log: PR ipa/60965 * g++.dg/ipa/devirt-31.C: New testcase. * g++.dg/i

[Bug ipa/60965] [4.10 Regression] IPA: Devirtualization versus placement new

2014-05-05 Thread hubicka at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60965 --- Comment #16 from Jan Hubicka --- Author: hubicka Date: Mon May 5 23:27:40 2014 New Revision: 210086 URL: http://gcc.gnu.org/viewcvs?rev=210086&root=gcc&view=rev Log: PR ipa/60965 * ipa-devirt.c (get_class_context): Allow POD to chan

[Bug ipa/60973] Invalid propagation of a tail call in devirt pass

2014-05-06 Thread hubicka at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60973 --- Comment #2 from Jan Hubicka --- I wonder if the tailcall flag can't be reliably set by tree-tailcall, but i suppose we want tailcall in thunks even at -O0. The patch seems fine to me. Note that this is not ipa-devirt issue, just semi-latent bu

[Bug bootstrap/60984] [4.9 Regression] AIX: gcc-4.9.0 bootstrap fails in stage-2

2014-05-09 Thread hubicka at gcc dot gnu.org
gcc dot gnu.org |hubicka at gcc dot gnu.org --- Comment #19 from Jan Hubicka --- What seems to go wrong is that we try to analyze builtin_unreachable size/time that should not happen. It would help to know the dump_cgraph_node of the node of builtin_unreachable (or have full cgraph dump). I

[Bug ipa/60854] [4.9 Regression] inline constructor of extern template

2014-05-17 Thread hubicka at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60854 --- Comment #6 from Jan Hubicka --- Author: hubicka Date: Sat May 17 22:18:25 2014 New Revision: 210563 URL: http://gcc.gnu.org/viewcvs?rev=210563&root=gcc&view=rev Log: PR ipa/60854 * ipa.c (symtab_remove_unreachable_nodes): Mark targe

[Bug middle-end/58094] [4.9 Regression] IPA devirt testsuite errors

2014-05-18 Thread hubicka at gcc dot gnu.org
gcc dot gnu.org |hubicka at gcc dot gnu.org --- Comment #11 from Jan Hubicka --- Mine, that testcase is fragile, perhaps we can just disable the template (it was originally testing a scenario that no longer happens anyway)

[Bug go/61232] [4.10 Regression] link errors building libgo

2014-05-19 Thread hubicka at gcc dot gnu.org
||2014-05-19 CC||hubicka at gcc dot gnu.org Assignee|ian at airs dot com|hubicka at gcc dot gnu.org Ever confirmed|0 |1 --- Comment #4 from Jan Hubicka --- I am going to reproduce

[Bug go/61232] [4.10 Regression] link errors building libgo

2014-05-19 Thread hubicka at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61232 --- Comment #6 from Jan Hubicka --- Well, is there a reason why I can not place static symbol into the comdat section, just as we do for labels within functions or thunks? Those also do not have unique name. It seems to me that there is a problem

[Bug go/61232] [4.10 Regression] link errors building libgo

2014-05-19 Thread hubicka at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61232 --- Comment #7 from Jan Hubicka --- Created attachment 32821 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=32821&action=edit patch I am testing This patch seems to do what I want - it makes the comdat local variables to be in the comdat g

[Bug lto/60820] [4.9/4.10 Regression] ice in ctor_for_folding, at varpool.c:291

2014-05-20 Thread hubicka at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60820 --- Comment #10 from Jan Hubicka --- Author: hubicka Date: Wed May 21 02:32:00 2014 New Revision: 210671 URL: http://gcc.gnu.org/viewcvs?rev=210671&root=gcc&view=rev Log: PR lto/60820 * varpool.c (varpool_remove_node): Do not alter decls

[Bug bootstrap/60984] [4.9 Regression] AIX: gcc-4.9.0 bootstrap fails in stage-2

2014-05-20 Thread hubicka at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60984 --- Comment #28 from Jan Hubicka --- Author: hubicka Date: Wed May 21 05:40:09 2014 New Revision: 210673 URL: http://gcc.gnu.org/viewcvs?rev=210673&root=gcc&view=rev Log: PR bootstrap/60984 * ipa-inline-transform.c (inline_call): Use ad

[Bug bootstrap/60984] [4.9 Regression] AIX: gcc-4.9.0 bootstrap fails in stage-2

2014-05-20 Thread hubicka at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60984 --- Comment #29 from Jan Hubicka --- Author: hubicka Date: Wed May 21 05:41:46 2014 New Revision: 210674 URL: http://gcc.gnu.org/viewcvs?rev=210674&root=gcc&view=rev Log: PR bootstrap/60984 * ipa-inline-transform.c (inline_call): Use ad

[Bug bootstrap/60984] [4.9 Regression] AIX: gcc-4.9.0 bootstrap fails in stage-2

2014-05-20 Thread hubicka at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60984 Jan Hubicka changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug go/61232] [4.10 Regression] link errors building libgo

2014-05-20 Thread hubicka at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61232 Jan Hubicka changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug middle-end/58094] [4.9 Regression] IPA devirt testsuite errors

2014-05-20 Thread hubicka at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58094 --- Comment #12 from Jan Hubicka --- Author: hubicka Date: Wed May 21 05:52:07 2014 New Revision: 210675 URL: http://gcc.gnu.org/viewcvs?rev=210675&root=gcc&view=rev Log: PR middle-end/58094 * g++.dg/ipa/devirt-11.C: Be lax about number

[Bug middle-end/58094] [4.9 Regression] IPA devirt testsuite errors

2014-05-20 Thread hubicka at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58094 Jan Hubicka changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug tree-optimization/60899] undef reference generated with -fdevirtualize-speculatively

2014-05-20 Thread hubicka at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60899 --- Comment #10 from Jan Hubicka --- Author: hubicka Date: Wed May 21 06:16:03 2014 New Revision: 210676 URL: http://gcc.gnu.org/viewcvs?rev=210676&root=gcc&view=rev Log: PR tree-optimization/60899 * gimple-fold.c (can_refer_decl_in_cur

[Bug lto/61012] [4.9/4.10 Regression] lto1: errors during merging of translation units (error: variable ‘link’ redeclared as function)

2014-05-21 Thread hubicka at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61012 --- Comment #3 from Jan Hubicka --- It is LTO-symtab bug. In this case we have chain with static var and external decl and we find no prevailing symbol (correctly), but then instead of choosing the external decl for further merging we go with st

[Bug lto/60820] [4.9/4.10 Regression] ice in ctor_for_folding, at varpool.c:291

2014-05-21 Thread hubicka at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60820 Jan Hubicka changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Bug lto/61012] [4.9/4.10 Regression] lto1: errors during merging of translation units (error: variable ‘link’ redeclared as function)

2014-05-21 Thread hubicka at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61012 --- Comment #4 from Jan Hubicka --- Author: hubicka Date: Thu May 22 05:35:32 2014 New Revision: 210739 URL: http://gcc.gnu.org/viewcvs?rev=210739&root=gcc&view=rev Log: PR lto/61012 * lto-symtab.c (lto_symtab_merge_decls_1): Modified:

[Bug lto/61012] [4.9/4.10 Regression] lto1: errors during merging of translation units (error: variable ‘link’ redeclared as function)

2014-05-21 Thread hubicka at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61012 --- Comment #5 from Jan Hubicka --- Author: hubicka Date: Thu May 22 05:38:04 2014 New Revision: 210740 URL: http://gcc.gnu.org/viewcvs?rev=210740&root=gcc&view=rev Log: PR lto/61012 * lto-symtab.c (lto_symtab_merge_decls_1): Do not ICE

[Bug lto/61012] [4.9/4.10 Regression] lto1: errors during merging of translation units (error: variable ‘link’ redeclared as function)

2014-05-21 Thread hubicka at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61012 Jan Hubicka changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Bug lto/45375] [meta-bug] Issues with building Mozilla with LTO

2014-05-24 Thread hubicka at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=45375 --- Comment #211 from Jan Hubicka --- Elfhack is rather sensitive to LTO, but it works for me, so this seems like binutils issue or some elfhack change that happened recently. I wrote instructions for building firefox with LTO here http://hubicka

[Bug ipa/61283] [4.10 regression] SEGV in pass_ipa_comdats::execute

2014-06-09 Thread hubicka at gcc dot gnu.org
||2014-06-09 Assignee|unassigned at gcc dot gnu.org |hubicka at gcc dot gnu.org Ever confirmed|0 |1 --- Comment #2 from Jan Hubicka --- Mine, seems like the symbol is not removed for reason not seen by the dataflow.

[Bug regression/61510] [4.10 Regression]: 20_util/scoped_allocator/requirements/explicit_instantiation.cc and tr1/6_containers/tuple/requirements/explicit_instantiation.cc

2014-06-14 Thread hubicka at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61510 --- Comment #1 from Jan Hubicka --- What happens at the line 1054 of cgraphunit.c. = cgraph_get_node (DECL_ABSTRACT_ORIGIN (decl)); origin_node->used_as_abstract_origin = true; Do you really get into case where

[Bug tree-optimization/61511] [4.10 Regression] ICE: in vect_can_force_dr_alignment_p, at tree-vect-data-refs.c:5320 with -fno-toplevel-reorder -ftree-slp-vectorize

2014-06-16 Thread hubicka at gcc dot gnu.org
gcc dot gnu.org |hubicka at gcc dot gnu.org --- Comment #2 from Jan Hubicka --- Mine.

[Bug regression/61548] FAIL: gcc.dg/tls/alias-1.c (internal compiler error)

2014-06-23 Thread hubicka at gcc dot gnu.org
gcc dot gnu.org |hubicka at gcc dot gnu.org --- Comment #4 from Jan Hubicka --- Mine.

[Bug lto/65380] [5 Regression] LTO: ICE in add_symbol_to_partition_1, at lto/lto-partition.c:158

2015-03-10 Thread hubicka at gcc dot gnu.org
||2015-03-10 Assignee|unassigned at gcc dot gnu.org |hubicka at gcc dot gnu.org Ever confirmed|0 |1 --- Comment #2 from Jan Hubicka --- Will take a look. Is it an open source program? I may include it into my testing :)

[Bug testsuite/65394] [5 Regression] r221327 causes gcc.dg/ipa/pr63569.c to fail

2015-03-12 Thread hubicka at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65394 --- Comment #3 from Jan Hubicka --- Yep, a testsuite issue - we now get a mismatch earlier because the non-volatile case turns out to be pure.

[Bug tree-optimization/65355] [4.8/4.9 Regression] vectorizer increase alignment of symbols already placed in anchors

2015-03-12 Thread hubicka at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65355 Jan Hubicka changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |hubicka at gcc dot gnu.org

[Bug c++/65350] [C++14] operator new[] should not be called if # of initializer elements exceeds # of elements

2015-03-12 Thread hubicka at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65350 Jan Hubicka changed: What|Removed |Added CC||hubicka at gcc dot gnu.org

[Bug tree-optimization/65337] [5 Regression] bootstrap-lto gnat1 linktime ICE: gcc/ada/exp_aggr.adb:6570:0: internal compiler error: in forward_edge_to_pdom, at tree-ssa-dce.c:1086

2015-03-15 Thread hubicka at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65337 --- Comment #3 from Jan Hubicka --- Indeed, the cd-dce is one the worst documented of the tradition SSA optimizations. I commented on this to Jakum on IRC. The mechanizm that should prevent conditional from being removed is the control dependenc

[Bug lto/65380] [5 Regression] LTO: ICE in add_symbol_to_partition_1, at lto/lto-partition.c:158

2015-03-15 Thread hubicka at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65380 --- Comment #4 from Jan Hubicka --- Hmm, this one compiles just fine for me with today mainline. Does the problem still reproduce for you? Can you possibly dump out node->debug() and c?

[Bug ipa/65439] [5.0 Regression] FAIL: g++.dg/ipa/ipa-icf-4.C -std=gnu++98 scan-ipa-dump icf "Equal symbols: 6"

2015-03-17 Thread hubicka at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65439 --- Comment #3 from Jan Hubicka --- Can you attach the dump file? It is probalby due to lack of aliases, but I am bit surprises the number of equal symbols grows up.

[Bug lto/65380] [5 Regression][ICF] LTO: ICE in add_symbol_to_partition_1, at lto/lto-partition.c:158

2015-03-17 Thread hubicka at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65380 --- Comment #8 from Jan Hubicka --- I am with terrible internet connection and it still does not reproduce for me (I suppose difference between GNU LD and gold). It is however clear what happens, we try to add symbol's alias that is external and

[Bug lto/65380] [5 Regression][ICF] LTO: ICE in add_symbol_to_partition_1, at lto/lto-partition.c:158

2015-03-17 Thread hubicka at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65380 --- Comment #9 from Jan Hubicka --- please also attachg WPA dump of -fdump-ipa-cgraph. I would be interested what visibility _ZTCN7Utility2IO12GUnzipStreamE0_So/7 has.

[Bug ipa/65439] [5.0 Regression] FAIL: g++.dg/ipa/ipa-icf-4.C -std=gnu++98 scan-ipa-dump icf "Equal symbols: 6"

2015-03-17 Thread hubicka at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65439 --- Comment #5 from Jan Hubicka --- I see, the difference is _ZN12_GLOBAL__N_11AC1Ev that is same body alias on targets supporting it, but not on Darwin where C++ FE produces a duplicate. I suppose we want just relax the testcase template to acce

[Bug lto/65380] [5 Regression][ICF] LTO: ICE in add_symbol_to_partition_1, at lto/lto-partition.c:158

2015-03-17 Thread hubicka at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65380 --- Comment #10 from Jan Hubicka --- Actually perhaps we manage to produce external alias of non-external symbol that also should not happen. Index: ipa-icf.c === --- ipa-icf.c (re

[Bug lto/65380] [5 Regression][ICF] LTO: ICE in add_symbol_to_partition_1, at lto/lto-partition.c:158

2015-03-18 Thread hubicka at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65380 --- Comment #14 from Jan Hubicka --- Ah, thanks! The patch fixed as in coment #10 is OK for mainline. We obviously should not try to do any merging of external symbols; it is pointless. We only want to calculate equivalences on these to merge no

[Bug lto/64860] [5 Regression] multiple definition of typeinfo in 5.0 (4.9.2 works)

2015-03-18 Thread hubicka at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64860 --- Comment #5 from Jan Hubicka --- Well, the problem is that -r is the only case where we get LDPR_PREVAILING_DEF or IRONLY and the resulting symbol may be removed from the unit later. We would need a new LDPR_PREVAILING_DEF_FOR_NOW or something

[Bug lto/64860] [5 Regression] multiple definition of typeinfo in 5.0 (4.9.2 works)

2015-03-18 Thread hubicka at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64860 --- Comment #6 from Jan Hubicka --- (just to explain bit more - the main difference between static and dynamic linking here is that dynamic linking never remove any definition and thus you can dissolve comdat groups)

[Bug ipa/62051] [4.9/5 Regression] Undefined reference to vtable with -O2 and -fdevirtualize-speculatively

2015-03-19 Thread hubicka at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62051 --- Comment #5 from Jan Hubicka --- yep, this seems to be the usual situation where visibilities does not mix that well with assumptions that program is linked with symbols defined in the headers. I suppose we could make C++ FE to track if a typ

[Bug c++/59739] missed optimization: attribute ((pure)) could be honored more often

2015-03-19 Thread hubicka at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59739 Jan Hubicka changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed|

[Bug lto/65475] [5 Regression] ICE in odr_vtable_hasher::equal (Segmentation fault)

2015-03-19 Thread hubicka at gcc dot gnu.org
||2015-03-19 CC||hubicka at gcc dot gnu.org Assignee|hubicka at ucw dot cz |hubicka at gcc dot gnu.org Ever confirmed|0 |1 --- Comment #2 from Jan Hubicka --- Mine. The type1 should not be

[Bug tree-optimization/65478] New: crafty performance regression

2015-03-19 Thread hubicka at gcc dot gnu.org
Assignee: unassigned at gcc dot gnu.org Reporter: hubicka at gcc dot gnu.org As reported to me privately by Igor, crafty SPEC2k benchmark is slower since r219863 which decreased inline-unit-growth. I looked into the reason and it is the fact that we do not inline NextMove

[Bug tree-optimization/65478] crafty performance regression

2015-03-19 Thread hubicka at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65478 Jan Hubicka changed: What|Removed |Added CC||mjambor at suse dot cz --- Comment #1 from

[Bug ipa/65478] [5 regression] crafty performance regression

2015-03-19 Thread hubicka at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65478 Jan Hubicka changed: What|Removed |Added Component|tree-optimization |ipa Summary|crafty performance

[Bug ipa/65483] New: bzip2 bsR/bsW should be auto-inlined

2015-03-19 Thread hubicka at gcc dot gnu.org
Assignee: unassigned at gcc dot gnu.org Reporter: hubicka at gcc dot gnu.org bzip2 contains: INLINE UInt32 bsR ( Int32 n ) { UInt32 v; bsNEEDR ( n ); v = (bsBuff >> (bsLive-n)) & ((1 << n)-1); bsLive -= n; return v; } and INLNE void bsW ( Int32 n, UInt32

[Bug ipa/65483] bzip2 bsR/bsW should be auto-inlined

2015-03-19 Thread hubicka at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65483 --- Comment #1 from Jan Hubicka --- Benchmarking build with -O3 -flto -Ofast -funroll-loops For mainline I get (running on input.graphic) real0m35.673s user0m35.556s sys 0m0.133s and setting early-inlining-insns=80 to get bsR/bsW

[Bug ipa/65483] bzip2 bsR/bsW should be auto-inlined

2015-03-19 Thread hubicka at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65483 Jan Hubicka changed: What|Removed |Added CC||rguenther at suse dot de --- Comment #2 fr

[Bug lto/65475] [5 Regression] ICE in odr_vtable_hasher::equal (Segmentation fault)

2015-03-19 Thread hubicka at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65475 --- Comment #3 from Jan Hubicka --- The following should help: Index: ipa-devirt.c === --- ipa-devirt.c(revision 221528) +++ ipa-devirt.c(working copy) @@ -1412,9 +14

<    11   12   13   14   15   16   17   18   19   20   >