[PATCH] gcc/reload.c: Initialize several arrays before use them in find_reloads()

2015-02-22 Thread Chen Gang S
It is for Bug65117, after this fix, ".i" file can be passed compiling. - 'this_alternative_win' is not initialized before use it: for the first looping 0, it initializes 'this_alternative_win[0]', but 'did_match' may use 'this_alternative_win[2]'. - 'this_alternative' may be not initi

Re: [PATCH] Fix ICF sem_function::merge (PR target/63892)

2015-02-22 Thread Jakub Jelinek
On Sat, Feb 21, 2015 at 01:24:55PM +, Iain Sandoe wrote: > P.S. The patch does solve a problem with ADT/SmallVectorTests.cpp in llvm > suite (with generation of a varargs thunk). > However, it does not appear to restore sibcall-3 for m32 darwin (see. pr63892 > for updated analysis). > > gcc

Re: [PATCH][testsuite] Abort on failure in gcc.dg/pr30957-1.c

2015-02-22 Thread Tom de Vries
On 20-02-15 20:18, Mike Stump wrote: On Feb 20, 2015, at 4:36 AM, Tom de Vries wrote: On 20-02-15 10:42, Jakub Jelinek wrote: On Fri, Feb 20, 2015 at 10:25:54AM +0100, Tom de Vries wrote: this patch reverses the abort logic in pr30957-1.c, such that it aborts on failure rather than on success

Re: [PATCH][2/5] Add gimple_find_sub_bbs

2015-02-22 Thread Tom de Vries
On 19-02-15 13:41, Richard Biener wrote: On Thu, 19 Feb 2015, Tom de Vries wrote: On 19-02-15 11:29, Tom de Vries wrote: Hi, I'm posting this patch series for stage1: - 0001-Disable-lang_hooks.gimplify_expr-in-free_lang_data.patch - 0002-Add-gimple_find_sub_bbs.patch - 0003-Factor-optimize_va

Re: [PATCH][4/5] Handle internal_fn in operand_equal_p

2015-02-22 Thread Tom de Vries
On 20-02-15 12:54, Richard Biener wrote: On Thu, 19 Feb 2015, Tom de Vries wrote: On 19-02-15 14:07, Richard Biener wrote: On Thu, 19 Feb 2015, Jakub Jelinek wrote: On Thu, Feb 19, 2015 at 01:44:46PM +0100, Richard Biener wrote: I'd call it a bug though, and we do have internal fns in gener

Re: [PATCH][5/5] Postpone expanding va_arg until pass_stdarg

2015-02-22 Thread Tom de Vries
On 19-02-15 14:03, Richard Biener wrote: On Thu, 19 Feb 2015, Tom de Vries wrote: On 19-02-15 11:29, Tom de Vries wrote: Hi, I'm posting this patch series for stage1: - 0001-Disable-lang_hooks.gimplify_expr-in-free_lang_data.patch - 0002-Add-gimple_find_sub_bbs.patch - 0003-Factor-optimize_va

Re: [patch] Document implementation-defined behaviour in C++11 library

2015-02-22 Thread Jonathan Wakely
On 20/02/15 19:02 +, Jonathan Wakely wrote: This documents most of the implementation-defined behaviour in the C++11 standard, although some pieces (such as time facets and random number distributions) need completing. Remove some duplicated info in that last patch. Committed to trunk. com

[committed][ada] Fix warning in 'Loop Statements' in gnat-style.texi

2015-02-22 Thread Tom de Vries
Hi, Committed this warning fix as obvious. Thanks, - Tom 2015-02-22 Tom de Vries * gnat-style.texi (@subsection Loop Statements): Replace @noindent by @item, and fix warning '@itemize has text but no @item'. --- gcc/ada/gnat-style.texi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)

[PATCH] Fix warnings from including fdl.texi into gnat-style.texi

2015-02-22 Thread Tom de Vries
Hi, While generating gnat-style.info, we see these warnings: ... src/gcc/doc/include/fdl.texi:33: warning: node `Index' is next for `GNU Free Documentation License' in menu but not in sectioning src/gcc/doc/include/fdl.texi:33: warning: node `Top' is up for `GNU Free Documentation License' in m

Re: [Ada] convert GNAT doc to sphinx

2015-02-22 Thread Tom de Vries
On 20-02-15 10:17, Arnaud Charlet wrote: Tested on x86_64-pc-linux-gnu, committed on trunk. 2015-02-20 Arnaud Charlet * gnat_rm.texi, gnat_ugn.texi: Now automatically generated from sphinx in the doc directory. * doc: New directory containing sphinx versions of gn

Re: [PATCH] Fix warnings from including fdl.texi into gnat-style.texi

2015-02-22 Thread Arnaud Charlet
> While generating gnat-style.info, we see these warnings: > ... > src/gcc/doc/include/fdl.texi:33: warning: node `Index' is next for > `GNU Free Documentation License' in menu but not in sectioning > src/gcc/doc/include/fdl.texi:33: warning: node `Top' is up for `GNU > Free Documentation License'

Re: [Ada] convert GNAT doc to sphinx

2015-02-22 Thread Arnaud Charlet
> >2015-02-20 Arnaud Charlet > > > > * gnat_rm.texi, gnat_ugn.texi: Now automatically generated > > from > > sphinx in the doc directory. > > * doc: New directory containing sphinx versions of gnat_rm and > > gnat_ugn > > Hi, > > I'm observing: > ... > s

Re: hashtable optimization

2015-02-22 Thread François Dumont
On 20/02/2015 14:22, Jonathan Wakely wrote: On 18/02/15 10:35 +0100, François Dumont wrote: Hello I am still studying hashtable performances and especially how to reduce overhead compared to tr1 implementation. Most of the overhead is coming from the additional modulo operations required w

Re: [PATCH] PR63175 - [4.9/5 regression] FAIL: gcc.dg/vect/costmodel/ppc/costmodel-bb-slp-9a.c scan-tree-dump-times slp2" basic block vectorized using SLP" 1

2015-02-22 Thread David Edelsohn
Does this patch really fix the problem? The PR notes that the testcase fails and code quality has regressed. Has the code generation been corrected but the testcase looks for the wrong string? Presumably the message that basic block was vectorized means that the code generation is correct, but t

Re: [PATCH] Fix PR 65109 - [5 Regression] r220674 causes FAIL: gcc.target/powerpc/ppc64-abi-1.c execution test

2015-02-22 Thread David Edelsohn
The patch below tweaks the ppc64-abi-1.c test to make it less prone to volatile registers getting clobbered before the test has had a chance to save them for later comparison to their expected values. This resolves the test failure discussed in PR 65109. PR target/65109 * gcc.target/powerpc/ppc64

Re: [Ada] convert GNAT doc to sphinx

2015-02-22 Thread Tom de Vries
On 22-02-15 19:04, Arnaud Charlet wrote: 2015-02-20 Arnaud Charlet * gnat_rm.texi, gnat_ugn.texi: Now automatically generated from sphinx in the doc directory. * doc: New directory containing sphinx versions of gnat_rm and gnat_ugn Hi, I'm obser

Re: [PATCH] Fix PR64980 and PR61960

2015-02-22 Thread Mikael Morin
Le 20/02/2015 22:50, Mikael Morin a écrit : > Le 16/02/2015 21:18, Bernd Edlinger a écrit : >> >> again, with attachments, >> sorry. >> >> >>> >>> Hi, >>> >>> >>> this patch fixes PR64980 and PR61960 at the same time. >>> >>> The unreduced test case for PR64230 is also included, because a previous

Re: [Ada] convert GNAT doc to sphinx

2015-02-22 Thread Arnaud Charlet
> Your patch removes these arguments to dircategory: > ... > $ git show bf5dffd3a47fe12ace71fe48e87cfb1b9ada1344 | grep dircategory > +@dircategory > -@dircategory GNU Ada tools > -@dircategory GNU Ada tools > +@dircategory > ... Well OK but these are automatically generated now, and this doesn't

Re: [Ada] convert GNAT doc to sphinx

2015-02-22 Thread Tom de Vries
On 22-02-15 20:15, Arnaud Charlet wrote: Well OK but these are automatically generated now, and this doesn't really answer my question about the documentation of @dircategory. I didn't see a question here: ... As for the @dircategory I do not know, I couldn't find a proper documentation for thi

Re: [Ada] convert GNAT doc to sphinx

2015-02-22 Thread Arnaud Charlet
> I didn't see a question here: > ... > As for the @dircategory I do not know, I couldn't find a proper documentation > for this node other than: > http://www.gnu.org/software/texinfo/manual/texinfo/html_node/Installing-Dir-Entries.html#index-dircategory > which is incomplete. > ... > > Could you

[PATCH] libgcc: Don't use "unused" in gthr-single.h

2015-02-22 Thread Segher Boessenkool
Header files shouldn't use identifiers in the application namespace. gth-single.h does however; this makes the libstdc++ testsuite all_attributes.cc fail for targets without software threads. Is this okay for mainline? And 4.9, 4.8? Segher 2015-02-22 Segher Boessenkool libgcc/ * g

Re: [PATCH] libgcc: Don't use "unused" in gthr-single.h

2015-02-22 Thread Jack Howarth
This change has already been proposed as part of a more extensive fix in https://gcc.gnu.org/ml/gcc-patches/2015-02/msg00775.html. On Sun, Feb 22, 2015 at 9:28 PM, Segher Boessenkool wrote: > Header files shouldn't use identifiers in the application namespace. > gth-single.h does however; this ma

Re: [PATCH] libgcc: Don't use "unused" in gthr-single.h

2015-02-22 Thread Segher Boessenkool
On Sun, Feb 22, 2015 at 10:17:50PM -0500, Jack Howarth wrote: > This change has already been proposed as part of a more extensive fix > in https://gcc.gnu.org/ml/gcc-patches/2015-02/msg00775.html. Ah, excellent. Somehow I saw the darwin thing but missed this one. Let's call this a ping of that pa

[PATCH, PR65126, testsuite] Add additional_sources_used

2015-02-22 Thread Tom de Vries
Hi, This patch fixes PR65126, which is about the fact that the cleanup procs are not cleaning up files generated from additional_sources. This happens because dg-additional-files-options empties additional_sources before the cleanup procs can use it. Examples of leftover files because of thi