ipa-visibility TLC 2/n

2014-05-24 Thread Jan Hubicka
Hi, this patch adds code to rerite references in vtable initializers to local aliases when doing so is a win. Bootstrapped/regtested x86_64-linux, comitted. Honza * ipa-visibility.c (can_replace_by_local_alias_in_vtable): New function. (update_vtable_references): New function.

Re: [patch, fortran] PR55117 Programs fails to read namelist (contains derived types objects)

2014-05-24 Thread Jerry DeLisle
I attached the wrong test case. use the one attached. On 05/24/2014 07:14 PM, Jerry DeLisle wrote: > Hi folks, > > This patch combines Tobias front-end patch with my libgfortran patch to > resolve > this PR. > > To denote extended derived types (classes) we use a '+' rather than '%' in > certa

Re: patch to add test for PR61215

2014-05-24 Thread Vladimir Makarov
On 2014-05-23, 11:45 AM, Jakub Jelinek wrote: On Fri, May 23, 2014 at 11:36:33AM -0400, Vladimir Makarov wrote: The following patch adds missed test for the PR. Committed to the trunk as rev. 210838. 2014-05-23 Vladimir Makarov PR rtl-optimization/61215 * gcc.target/i386/

[patch, fortran] PR55117 Programs fails to read namelist (contains derived types objects)

2014-05-24 Thread Jerry DeLisle
Hi folks, This patch combines Tobias front-end patch with my libgfortran patch to resolve this PR. To denote extended derived types (classes) we use a '+' rather than '%' in certain parts of the namelist name internally to identify that an extended type is being dealt with. The runtime is modifi

ipa-visibility TLC 1/n: move to separate file

2014-05-24 Thread Jan Hubicka
Hi, ipa-visibility will be soon 10 years old and deserves some cleanups, since it keeps getting new special cases and features. This patch does nothing except for moving it to separate file and adding a toplevel comment. Bootstrapped/regtsted x86_64-linux, comitted. Honza * ipa.c (cgrap

Re: -fuse-caller-save - Collect register usage information

2014-05-24 Thread Jan Hubicka
> +/* Get the declaration of the function called by INSN. */ > + > +static tree > +get_call_fndecl (rtx insn) > +{ > + rtx note, datum; > + > + note = find_reg_note (insn, REG_CALL_DECL, NULL_RTX); > + if (note == NULL_RTX) > +return NULL_TREE; > + > + datum = XEXP (note, 0); > + if (datu

Re: -fuse-caller-save - Collect register usage information

2014-05-24 Thread Jan Hubicka
> 2013-04-29 Radovan Obradovic > Tom de Vries > > * cgraph.h (struct cgraph_node): Add function_used_regs, > function_used_regs_initialized and function_used_regs_valid fields. > * final.c: Move include of hard-reg-set.h to before rtl.h to declare > find_al

Re: profile mode maintenance patch

2014-05-24 Thread Jonathan Wakely
On 24 May 2014 22:10, François Dumont wrote: > Done but I forgot to fix the spelling. I will fix it in the future patch. No problem, it's clear what the comment means.

[Patch, Fortran] Support distance/failed argument with coarray's THIS_IMAGE/NUM_IMAGES

2014-05-24 Thread Tobias Burnus
The library and the compiler (trans*c) already supported the distance argument to this_image/num_images – and the failed argument to num_images. This patch makes them available to the user. The distance/failed arguments are new with the upcoming Technical Specification (TS) 18508; the former i

Re: profile mode maintenance patch

2014-05-24 Thread François Dumont
On 24/05/2014 13:33, Jonathan Wakely wrote: On 12/05/14 22:14 +0200, François Dumont wrote: Hi Here is a maintenance patch for profile mode. It does: - Use inheritance to limit duplication of code in constructors to register for the different profiling mode diagnostics data structure. - Re

Re: [PATCH] Fix PR54733 Optimize endian independent load/store

2014-05-24 Thread Andreas Schwab
* gcc.c-torture/execute/bswap-2.c (main): Handle more bitfield layouts. diff --git a/gcc/testsuite/gcc.c-torture/execute/bswap-2.c b/gcc/testsuite/gcc.c-torture/execute/bswap-2.c index e91b487..38f18fd 100644 --- a/gcc/testsuite/gcc.c-torture/execute/bswap-2.c +++ b/gcc/testsuite/

Re: [PATCH] Fix PR middle-end/61141

2014-05-24 Thread John David Anglin
On 20-May-14, at 5:23 PM, Jeff Law wrote: I believe that the backend must handle the deleted insns in the delay slot as there are are no compilation errors or regressions. However, like you, I'm not 100% certain this done correctly. I'm pretty sure we're getting this wrong in the backend. In f

Re: RFA: speeding up dg-extract-results.sh

2014-05-24 Thread Trevor Saunders
On Sat, May 24, 2014 at 10:14:54AM -0700, Mike Stump wrote: > On May 24, 2014, at 4:17 AM, Bernd Schmidt wrote: > > On 02/13/2014 10:18 AM, Richard Sandiford wrote: > >> contrib/ > >>* dg-extract-results.py: New file. > >>* dg-extract-results.sh: Use it if the environment seems suitable. >

Re: RFA: speeding up dg-extract-results.sh

2014-05-24 Thread Mike Stump
On May 24, 2014, at 4:17 AM, Bernd Schmidt wrote: > On 02/13/2014 10:18 AM, Richard Sandiford wrote: >> contrib/ >> * dg-extract-results.py: New file. >> * dg-extract-results.sh: Use it if the environment seems suitable. > > I'm now seeing the following: > > Traceback (most recent call

Re: [patch ping] libstdc++ testsuite cxxflags

2014-05-24 Thread Jonathan Wakely
On 24 May 2014 17:07, David Edelsohn wrote: > This patch broke the ability to run the libstdc++ testsuite on AIX. > > I now see the following errors: > > bad switch "-O": must be -all, -about, -indices, -inline, -expanded, -line, > -lin > estop, -lineanchor, -nocase, -start, or -- > while exec

Re: [ping] Re: [PATCH] dump_case_nodes: Treat unsigned as unsigned, don't ICE

2014-05-24 Thread Steven Bosscher
On Sat, May 24, 2014 at 4:25 PM, Segher Boessenkool wrote: > Ping? OK. Ciao! Steven > On Tue, May 20, 2014 at 10:58:27AM -0700, Segher Boessenkool wrote: >> The current code converts every tree to signed hwi; this ICEs with >> values not representable as shwi, like 999ULL in

Re: [RS6000] Fix PR61098, Poor code setting count register

2014-05-24 Thread David Edelsohn
On Fri, May 23, 2014 at 11:23 AM, Alan Modra wrote: > OK, let's start again from scratch. This patch fixes PR61098, a > problem caused by trying to do arithmetic on the count register. The > fix is to provide a new pseudo in rs6000_emit_set_long_const so > arithmetic will be done in a gpr. > > A

Re: [patch ping] libstdc++ testsuite cxxflags

2014-05-24 Thread David Edelsohn
This patch broke the ability to run the libstdc++ testsuite on AIX. I now see the following errors: bad switch "-O": must be -all, -about, -indices, -inline, -expanded, -line, -lin estop, -lineanchor, -nocase, -start, or -- while executing "regexp "\-O" $cxxflags" (procedure "libstdc++_in

Re: [patch, libgfortran] [4.9/4.10 Regression] Erroneous "end of file" with internal read

2014-05-24 Thread Dominique Dhumieres
Dear Jerry, I have regstrapped r210889 with your patch without regression. I have also run the NIST suite without failure. Thanks for the patch, Dominique

[PATCH, commited] [4.7 Regression] Needless realloc with array constructor.

2014-05-24 Thread Dominique Dhumieres
Committed as r210893 and 210894 (approved by Paul Thomas on IRC). Dominique 2014-05-24 Dominique d'Humieres Backport r195492 and r195815 2013-01-27 Paul Thomas PR fortran/55789 PR fortran/56047 * gfortran.h : Add associate_var to symbol_attr.

[ping] Re: [PATCH] dump_case_nodes: Treat unsigned as unsigned, don't ICE

2014-05-24 Thread Segher Boessenkool
Ping? On Tue, May 20, 2014 at 10:58:27AM -0700, Segher Boessenkool wrote: > The current code converts every tree to signed hwi; this ICEs with > values not representable as shwi, like 999ULL in > pr34154.c (and if it didn't ICE, it would print the wrong value). > > This fixes it.

Re: PING [Patch] Minor fixes for regtesting gfortran with -flto

2014-05-24 Thread Jerry DeLisle
On 05/24/2014 05:14 AM, Dominique Dhumieres wrote: > Ping! > > https://gcc.gnu.org/ml/gcc-patches/2014-05/msg00219.html > > Dominique > > Yes, OK, thanks for fixes. Jerry

Re: Use resolution info to get rid of weak symbols

2014-05-24 Thread Bernhard Reutner-Fischer
On 18 May 2014 21:38:47 Jan Hubicka wrote: Hi, this patch makes GCC to use resolution info to turn COMDAT and WEAK symbols into regular symbols based on feedback given by linker plugin. If resolution says that given symbol is prevailing, it is possible to turn them into normal symbols, while wh

PING [Patch] Minor fixes for regtesting gfortran with -flto

2014-05-24 Thread Dominique Dhumieres
Ping! https://gcc.gnu.org/ml/gcc-patches/2014-05/msg00219.html Dominique

Re: profile mode maintenance patch

2014-05-24 Thread Jonathan Wakely
On 12/05/14 22:14 +0200, François Dumont wrote: Hi Here is a maintenance patch for profile mode. It does: - Use inheritance to limit duplication of code in constructors to register for the different profiling mode diagnostics data structure. - Remove many code keeping only instrumented meth

Re: RFA: speeding up dg-extract-results.sh

2014-05-24 Thread Bernd Schmidt
On 02/13/2014 10:18 AM, Richard Sandiford wrote: contrib/ * dg-extract-results.py: New file. * dg-extract-results.sh: Use it if the environment seems suitable. I'm now seeing the following: Traceback (most recent call last): File "../../git/gcc/../contrib/dg-extract-results.p

Re: [PATCH, fortran-dev] Fix regexps

2014-05-24 Thread Dominique Dhumieres
> Please do commit the patch ... Done as r210890 and r210891. > How many regressions are we down to now? 4(5) mvbits_7(8).f90, old ones caused by some changes by Tobias a long time ago. pr48636.f90 vect/vect-gems.f90 vect/fast-math-vect-8.f90 missed optimization due to your last changes. Domi

Re: [C PATCH] Warn if switch has boolean value (PR c/60439)

2014-05-24 Thread Marek Polacek
On Thu, May 01, 2014 at 11:09:04PM -0600, Jeff Law wrote: > Looks reasonable, though I do wonder if we should be warning for this in the > C++ front-end as well? Yep, I think so. Luckily the code for the C++ FE is pretty much the same and, in fact, simpler. Two issues came up: 1) I think there sh

Re: [PATCH 7/7] Plug ipa-prop escape analysis into gimple_call_arg_flags

2014-05-24 Thread Jan Hubicka
> I'm fine with enlarging tree_function_decl for now - ideally we'd push > stuff from it elsewhere (like target and optimization option tree nodes, > or most of the visibility and symbol related stuff). Not sure why > tree_type_decl inherits from tree_decl_non_common (and thus > tree_decl_with_vis