Re: Do not build callgraph for external functions when inlining

2014-12-16 Thread Andreas Schwab
Jan Hubicka writes: > this should be fixed by patch to handle extern aliases correctly I commited > later that day. > Does the problem still reproduce for you? It works again. Andreas. -- Andreas Schwab, SUSE Labs, sch...@suse.de GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3

Re: Do not build callgraph for external functions when inlining

2014-12-15 Thread Jan Hubicka
> Jan Hubicka writes: > > > * cgraphunit.c (analyze_functions): Do not analyze extern inline > > funtions when not optimizing; skip comdat locals. > > FAIL: g++.dg/torture/pr60854.C -O0 (test for excess errors) > Excess errors: > /usr/local/gcc/gcc-20141215/gcc/testsuite/g++.dg/tortur

Re: Do not build callgraph for external functions when inlining

2014-12-15 Thread Andreas Schwab
Jan Hubicka writes: > * cgraphunit.c (analyze_functions): Do not analyze extern inline > funtions when not optimizing; skip comdat locals. FAIL: g++.dg/torture/pr60854.C -O0 (test for excess errors) Excess errors: /usr/local/gcc/gcc-20141215/gcc/testsuite/g++.dg/torture/pr60854.C:

Do not build callgraph for external functions when inlining

2014-12-14 Thread Jan Hubicka
Hi, this patch implements analogous change I did to ipa.c reachability to remove extern functions early when not optimizing. These are common in C++ code and it is not effective to process them until after inliner. Bootstrapped/regtested x86_64-linux, will commit it shortly. Honza * cgr