[OpenACC] C, C++: bind and nohost clauses

2015-11-14 Thread Thomas Schwinge
Hi! Initial support for the OpenACC bind and nohost clauses (routine directive) for C, C++. Fortran to follow. Middle end handling and more complete testsuite coverage also to follow once we got a few details clarified. OK for trunk? commit 96ca3e7fd643a67282a05750799bb78d4c634a71 Author:

Re: [Patch, vrp] Allow VRP type conversion folding only for widenings upto word mode

2015-11-14 Thread Senthil Kumar Selvaraj
On Sat, Nov 14, 2015 at 09:13:41AM +0100, Marc Glisse wrote: > On Sat, 14 Nov 2015, Senthil Kumar Selvaraj wrote: > > >This patch came out of a discussion held in the gcc mailing list > >(https://gcc.gnu.org/ml/gcc/2015-11/msg00067.html). > > > >The patch restricts folding of conditional exprs

[Ada] PR ada/68345

2015-11-14 Thread Arnaud Charlet
This is a mechanical change made blindly since I do not have access to a dragonfly system. Should fix PR ada/68345. Committed on trunk. 2015-11-13 Arnaud Charlet PR ada/68345 * s-osinte-dragonfly.ads (Get_Page_Size): C function returns an int. --

Re: [Patch, vrp] Allow VRP type conversion folding only for widenings upto word mode

2015-11-14 Thread Marc Glisse
On Sat, 14 Nov 2015, Senthil Kumar Selvaraj wrote: This patch came out of a discussion held in the gcc mailing list (https://gcc.gnu.org/ml/gcc/2015-11/msg00067.html). The patch restricts folding of conditional exprs with lhs previously set by a type conversion to occur only if the source of

Re: [PATCH] Enable libstdc++ numeric conversions on Cygwin

2015-11-14 Thread Christophe Lyon
On 13 November 2015 at 15:52, Jonathan Wakely wrote: > On 12/11/15 13:39 +, Jonathan Wakely wrote: >> >> On 12/11/15 11:40 +, Jonathan Wakely wrote: >>> >>> On 18/09/15 12:01 -0400, Jennifer Yao wrote: Forgot to include the patch. On Fri, Sep 18,

Re: [PATCH] Remove first_pass_instance from pass_vrp

2015-11-14 Thread Tom de Vries
On 13/11/15 14:57, Tom de Vries wrote: I've implemented the set_arg scenario, though I've renamed it to set_pass_param. I've also added a parameter number argument to set_pass_param. Furthermore, I've included the gdbhooks.py update. OK for trunk if bootstrap and reg-test passes? Bootstrap

Re: [PATCH] g++.dg/init/vbase1.C and g++.dg/cpp/ucn-1.C

2015-11-14 Thread Andreas Schwab
David Edelsohn writes: > + int c\u0024c;// { dg-error "not valid in an identifier" { > target { powerpc-ibm-aix* } } } FAIL: g++.dg/cpp/ucn-1.C -std=gnu++11 target { powerpc-ibm-aix* } (test for errors, line 12) Andreas. -- Andreas Schwab,

Re: [Patch, vrp] Allow VRP type conversion folding only for widenings upto word mode

2015-11-14 Thread Richard Biener
On November 14, 2015 9:49:28 AM GMT+01:00, Senthil Kumar Selvaraj wrote: >On Sat, Nov 14, 2015 at 09:13:41AM +0100, Marc Glisse wrote: >> On Sat, 14 Nov 2015, Senthil Kumar Selvaraj wrote: >> >> >This patch came out of a discussion held in the gcc mailing list

Re: [PATCH] Fix PR ipa/68311

2015-11-14 Thread Christophe Lyon
On 13 November 2015 at 13:17, Richard Biener wrote: > On Fri, Nov 13, 2015 at 1:04 PM, Martin Liška wrote: >> Hello. >> >> Following patch fixes PR68311, can regbootstrap on x86_64-linux-gnu. >> >> Ready for trunk? > > Please use > > auto_vec

New Swedish PO file for 'gcc' (version 5.2.0)

2015-11-14 Thread Translation Project Robot
Hello, gentle maintainer. This is a message from the Translation Project robot. A revised PO file for textual domain 'gcc' has been submitted by the Swedish team of translators. The file is available at: http://translationproject.org/latest/gcc/sv.po (This file, 'gcc-5.2.0.sv.po', has

[PATCH] simplify-rtx: Simplify sign_extend of lshiftrt to zero_extend (PR68330)

2015-11-14 Thread Segher Boessenkool
Since r230164, in PR68330 combine ends up with a sign_extend of an lshiftrt by some constant, and it does not know to morph that into a zero_extract (the extend will always extend with zeroes). I think it is best to let simplify-rtx always replace such a sign_extend by a zero_extend, after which

Re: libcpp/C FE source range patch committed (r230331).

2015-11-14 Thread David Malcolm
On Sat, 2015-11-14 at 09:50 -0500, David Edelsohn wrote: > This patch causes numerous new testsuite failure on AIX caused by the > compiler crashing during compilation, e.g. > > gcc.c-torture/execute/20020206-1.c > > in GCC libcpp > > 991 linemap_assert (line >=

Re: [PATCH v4] SH FDPIC backend support

2015-11-14 Thread Oleg Endo
On Wed, 2015-11-11 at 09:56 -0500, Rich Felker wrote: > Sorry, I don't really understand RTL well enough to make a code > snippet. What I want to express is that an insn "uses" (in the (use > ...) sense) a register (r12) conditionally depending on a runtime > option (TARGET_FDPIC). As far as I

[PATCH/RFC] C++ FE: expression ranges (v2)

2015-11-14 Thread David Malcolm
(v2 of the patch, fixing some issues, and rebasing to be on top of r230393 i.e. after the merge of delayed-folding). This patch is analogous to: "[PATCH 06/10] Track expression ranges in C frontend" https://gcc.gnu.org/ml/gcc-patches/2015-10/msg02535.html in that it adds range information to

Re: [PATCH] g++.dg/init/vbase1.C and g++.dg/cpp/ucn-1.C

2015-11-14 Thread David Edelsohn
On Sat, Nov 14, 2015 at 8:30 AM, Jakub Jelinek wrote: > On Sat, Nov 14, 2015 at 08:09:44AM -0500, David Edelsohn wrote: >> On Sat, Nov 14, 2015 at 5:16 AM, Andreas Schwab >> wrote: >> > David Edelsohn writes: >> > >> >> + int

Re: [PATCH] g++.dg/init/vbase1.C and g++.dg/cpp/ucn-1.C

2015-11-14 Thread David Edelsohn
On Sat, Nov 14, 2015 at 8:41 AM, Andreas Schwab wrote: > David Edelsohn writes: > >> On Sat, Nov 14, 2015 at 5:16 AM, Andreas Schwab >> wrote: >>> David Edelsohn writes: >>> + int c\u0024c;// {

[PATCH] testsuite/experimental/random/randint.cc

2015-11-14 Thread David Edelsohn
Testcases that use TLS need additional options on some targets (normall -pthread). This fixes the testcase on AIX and Solaris. Committed as obvious. * testsuite/experimental/random/randint.cc: Add dg-add-options tls. Index: testsuite/experimental/random/randint.cc

Re: [PATCH] g++.dg/init/vbase1.C and g++.dg/cpp/ucn-1.C

2015-11-14 Thread Andreas Schwab
David Edelsohn writes: > On Sat, Nov 14, 2015 at 5:16 AM, Andreas Schwab wrote: >> David Edelsohn writes: >> >>> + int c\u0024c;// { dg-error "not valid in an identifier" { >>> target { powerpc-ibm-aix* } } } >> >> FAIL:

Re: [PATCH] PR fortran/68283 -- remove a rogue gfc_internal_error()

2015-11-14 Thread Dominique d'Humières
Hi Steve, Although I have not strong objection to your proposed patch, I’ld prefer the following one --- ../_clean/gcc/fortran/primary.c 2015-10-18 13:07:28.0 +0200 +++ gcc/fortran/primary.c 2015-11-13 23:32:08.0 +0100 @@ -2194,7 +2194,7 @@ check_substring:

Re: [PATCH] g++.dg/init/vbase1.C and g++.dg/cpp/ucn-1.C

2015-11-14 Thread Jakub Jelinek
On Sat, Nov 14, 2015 at 08:09:44AM -0500, David Edelsohn wrote: > On Sat, Nov 14, 2015 at 5:16 AM, Andreas Schwab wrote: > > David Edelsohn writes: > > > >> + int c\u0024c;// { dg-error "not valid in an identifier" { > >> target {

Re: [PATCH] PR fortran/68283 -- remove a rogue gfc_internal_error()

2015-11-14 Thread Thomas Koenig
Hi Dominique, (1) Why is this block reached when compiling with -ffrontend-optimize, but not with -fno-frontend-optimize (Thomas)? The problem here is that gfc_variable_attr is called (indirectly) during optimize_assignment. In this case, this causes the ICE because of the existing error

Re: [PATCH] Enable libstdc++ numeric conversions on Cygwin

2015-11-14 Thread Jonathan Wakely
On 14/11/15 09:37 +0100, Christophe Lyon wrote: Hi, this commit makes the GCC build to fail for targets using newlib (I tested arm-none-eabi and aarch64-none-elf) I'm seeing errors such as: In file included from

Re: [PATCH] g++.dg/init/vbase1.C and g++.dg/cpp/ucn-1.C

2015-11-14 Thread David Edelsohn
On Sat, Nov 14, 2015 at 5:16 AM, Andreas Schwab wrote: > David Edelsohn writes: > >> + int c\u0024c;// { dg-error "not valid in an identifier" { >> target { powerpc-ibm-aix* } } } > > FAIL: g++.dg/cpp/ucn-1.C -std=gnu++11 target {

Re: [patch] GSoC: Implement std::experimental::shared_ptr

2015-11-14 Thread David Edelsohn
The copy_ctor_neg testcase fails on AIX. /nasfarm/edelsohn/src/src/libstdc++-v3/testsuite/experimental/memory/shared_ptr/cons/copy_ctor_neg.cc: In function 'void test02()': /nasfarm/edelsohn/src/src/libstdc++-v3/testsuite/experimental/memory/shared_ptr/cons/copy_ctor_neg.cc:50:44: error: no

Re: [patch] update locale support fro FreeBSD

2015-11-14 Thread Jonathan Wakely
On 13/11/15 15:28 +, Jonathan Wakely wrote: On 12/11/15 23:32 +0100, Andreas Tobler wrote: All, with the work from Jennifer Yao and John Marino we can now update the locale support on FreeBSD to the level of DragonFly. Results of this work can be found on the results list. Here my

Re: [patch] GSoC: Implement std::experimental::shared_ptr

2015-11-14 Thread Jonathan Wakely
On 14/11/15 08:19 -0500, David Edelsohn wrote: I can provide the pre-processed source file if needed. I should be able to fix it just from the errors - thanks.

Re: [PATCH] Enable libstdc++ numeric conversions on Cygwin

2015-11-14 Thread Jonathan Wakely
On 14/11/15 09:37 +0100, Christophe Lyon wrote: Hi, this commit makes the GCC build to fail for targets using newlib Doh, this was supposed to *help* newlib! I'll deal with it asap.

Re: libcpp/C FE source range patch committed (r230331).

2015-11-14 Thread David Edelsohn
This patch causes numerous new testsuite failure on AIX caused by the compiler crashing during compilation, e.g. gcc.c-torture/execute/20020206-1.c in GCC libcpp 991 linemap_assert (line >= LINEMAPS_MACRO_LOWEST_LOCATION (set)); (gdb) where #0 _Z11fancy_abortPKciS0_ (

Re: Ping: [Patch, fortran] Bug 68241 - [meta-bug] Deferred-length character - PRs50221, 68216, 63932, 66408, 67674 and 49954

2015-11-14 Thread Paul Richard Thomas
Hi Steve, Following an email from Dominique to me, I think not. In the course of fixing PR49954, I put right the setting of the descriptor dtype. Since this gets passed to the IO runtime, I think that this is the reason for the difference in behaviour. I think that another week of effort should

Re: [PATCH] PR fortran/68283 -- remove a rogue gfc_internal_error()

2015-11-14 Thread Steve Kargl
On Sat, Nov 14, 2015 at 02:51:08PM +0100, Dominique d'Humi??res wrote: > Hi Steve, > > Although I have not strong objection to your proposed patch, > I???ld prefer the following one The patch is fine. Need a ChangeLog entry. (patch elided) > > Now both patches are just papering over the

Re: Ping: [Patch, fortran] Bug 68241 - [meta-bug] Deferred-length character - PRs50221, 68216, 63932, 66408, 67674 and 49954

2015-11-14 Thread Steve Kargl
On Sat, Nov 14, 2015 at 06:39:28PM +0100, Paul Richard Thomas wrote: > > I am completely unable to reproduce the problems that Dominique is > reporting for deferred_character_4.f90. This might be because the > patch has moved on to fix PR49554 :-) > > Concatenation expressions assigned to

C++ PATCH for bootstrap/68346 (bogus -Wtautological-compare)

2015-11-14 Thread Jason Merrill
With delayed folding we added folding for arguments to various warning functions, but that seems to be wrong for warn_tautological_cmp. In general, it's a tricky call; probably better long run will be for the warning functions to do their own folding if that's what they want. Tested

Re: [PATCH] 21_strings/basic_string/capacity/wchar_t/18654.cc

2015-11-14 Thread Jonathan Wakely
On 14 November 2015 at 00:56, Jonathan Wakely wrote: > On 13 November 2015 at 23:53, David Edelsohn wrote: >> On Fri, Nov 13, 2015 at 1:40 PM, David Edelsohn wrote: >>> http://www.cplusplus.com/reference/string/basic_string/reserve/

Ping: [Patch, fortran] Bug 68241 - [meta-bug] Deferred-length character - PRs50221, 68216, 63932, 66408, 67674 and 49954

2015-11-14 Thread Paul Richard Thomas
Dear All, I am completely unable to reproduce the problems that Dominique is reporting for deferred_character_4.f90. This might be because the patch has moved on to fix PR49554 :-) Concatenation expressions assigned to deferred length character arrays need careful handling to ensure that the

Re: [Patch, vrp] Allow VRP type conversion folding only for widenings upto word mode

2015-11-14 Thread Senthil Kumar Selvaraj
On Sat, Nov 14, 2015 at 09:57:40AM +0100, Richard Biener wrote: > On November 14, 2015 9:49:28 AM GMT+01:00, Senthil Kumar Selvaraj > wrote: > >On Sat, Nov 14, 2015 at 09:13:41AM +0100, Marc Glisse wrote: > >> On Sat, 14 Nov 2015, Senthil Kumar Selvaraj wrote: >

Re: Ping: [Patch, fortran] Bug 68241 - [meta-bug] Deferred-length character - PRs50221, 68216, 63932, 66408, 67674 and 49954

2015-11-14 Thread Dominique d'Humières
Dear Paul, Update with your latest patch. Using the following patch --- /opt/gcc/work/gcc/testsuite/gfortran.dg/deferred_character_4.f90 2015-11-14 19:28:59.0 +0100 +++ deferred_character_4_db.f90 2015-11-14 19:43:55.0 +0100 @@ -21,6 +21,16 @@ program chk_alloc_string

[PATCH] OpenMP 4.5 is now publicly available

2015-11-14 Thread Jakub Jelinek
Hi! Seems the OpenMP 4.5 standard is now publicly available already: http://www.openmp.org/mp-documents/openmp-4.5.pdf and therefore I've updated references to the sections in libgomp.texi. 2015-11-14 Jakub Jelinek * libgomp.texi: Update references from OpenMP 4.0

Re: [PATCH], Add power9 support to GCC, patch #5 (ISA 3.0 fusion)

2015-11-14 Thread Segher Boessenkool
On Sun, Nov 08, 2015 at 07:42:04PM -0500, Michael Meissner wrote: > This patch adds support for new fusion forms in ISA 3.0 (power9). In > particular, ISA 3.0 can fuse GPR loads of R0, FPR loads, GPR stores, FPR > stores, and some constant generation that ISA 2.07 (power8) could not > generate.

[wwwdocs] Remove broken Intel AVX-512 reference from svn.html

2015-11-14 Thread Gerald Pfeifer
Once again, corporate webmaster (not) at work. Committed. (Kirill, if you want to add a new link, absolutely go ahead.) Gerald Index: svn.html === RCS file: /cvs/gcc/wwwdocs/htdocs/svn.html,v retrieving revision 1.202 diff -u

[PATCH][WIP] libstdc++: Make certain exceptions transaction_safe.

2015-11-14 Thread Torvald Riegel
The attached patch makes some exceptions transaction-safe, as require by the Transactional Memory TS. It has some rough edges, but I'm hoping I can sort them out quickly using your feedback. It only supports logic_error and exception/bad_exception, but the other exceptions that the TM TS

Re: Ping: [Patch, fortran] Bug 68241 - [meta-bug] Deferred-length character - PRs50221, 68216, 63932, 66408, 67674 and 49954

2015-11-14 Thread Steve Kargl
On Sat, Nov 14, 2015 at 07:25:29PM +0100, Paul Richard Thomas wrote: > > Following an email from Dominique to me, I think not. In the course of > fixing PR49954, I put right the setting of the descriptor dtype. Since > this gets passed to the IO runtime, I think that this is the reason > for the

[wwwdocs] projects/prefetch.html: change reference to mips.com

2015-11-14 Thread Gerald Pfeifer
...to a textual one (only), since mips.com itself redirects to imgtec.com, which is not what was intended here. Committed. Gerald Index: projects/prefetch.html === RCS file: /cvs/gcc/wwwdocs/htdocs/projects/prefetch.html,v

[PATCH 2/2] [graphite] Enable condegen in case of cond phis.

2015-11-14 Thread hiraditya
From: hiraditya The codegen of conditional PHIs inside the scop where one predecessor dominates the other was difficult so it wasn't enabled in the previous patch. After a couple of bug-fixes this has been enabled in this patch. Not all the cases could be handled in this

[wwwdocs] Update link to AVX-512... docs

2015-11-14 Thread Gerald Pfeifer
Apparently Intel released a new version of this document (and the original address redirects, but it's of course better to directly refer to the new one). Committed. Gerald Index: gcc-5/changes.html === RCS file:

Re: [patch] update locale support fro FreeBSD

2015-11-14 Thread Andreas Tobler
On 14.11.15 14:43, Jonathan Wakely wrote: On 13/11/15 15:28 +, Jonathan Wakely wrote: On 12/11/15 23:32 +0100, Andreas Tobler wrote: All, with the work from Jennifer Yao and John Marino we can now update the locale support on FreeBSD to the level of DragonFly. Results of this work can be

[wwwdocs] isocpp.org now uses https

2015-11-14 Thread Gerald Pfeifer
Applied. Gerald Index: gcc-5/changes.html === RCS file: /cvs/gcc/wwwdocs/htdocs/gcc-5/changes.html,v retrieving revision 1.130 diff -u -r1.130 changes.html --- gcc-5/changes.html 10 Nov 2015 10:53:58 - 1.130 +++

[wwwdocs] gcc-4.8/changes.html: adjust AddressSanitizer link

2015-11-14 Thread Gerald Pfeifer
AddressSanitizer has moved from code.google.com to github.com. Committed. Gerald Index: gcc-4.8/changes.html === RCS file: /cvs/gcc/wwwdocs/htdocs/gcc-4.8/changes.html,v retrieving revision 1.134 diff -u -r1.134 changes.html ---

[wwwdocs] Remove dead reference from gcc-4.3/porting_to.html

2015-11-14 Thread Gerald Pfeifer
I tried to find a new URL, but failed. Committed. Gerald Index: gcc-4.3/porting_to.html === RCS file: /cvs/gcc/wwwdocs/htdocs/gcc-4.3/porting_to.html,v retrieving revision 1.12 diff -u -r1.12 porting_to.html ---

Re: [PATCH] Enable libstdc++ numeric conversions on Cygwin

2015-11-14 Thread Jennifer Yao
> Hi, this commit makes the GCC build to fail for targets using newlib > (I tested arm-none-eabi and aarch64-none-elf) > > I'm seeing errors such as: > In file included from >

[PATCH 1/2] [graphite] Move codegen related functions to graphite-isl-ast-to-gimple.c

2015-11-14 Thread A . K .
No functional changes intended. This patch passes regtest and bootstrap on linux-x86-64 with BOOT_CFLAGS='-O2 -fgraphite-identity -floop-nest-optimize' >From 85a4403b1e99dc7ff7ea58c1d926521bdf321d8f Mon Sep 17 00:00:00 2001 From: hiraditya Date: Sat, 14 Nov 2015 10:26:09

[wwwdocs] Adjust link to exactcode.de in benchmarks/index.html

2015-11-14 Thread Gerald Pfeifer
Committed. Gerald Index: benchmarks/index.html === RCS file: /cvs/gcc/wwwdocs/htdocs/benchmarks/index.html,v retrieving revision 1.32 diff -u -r1.32 index.html --- benchmarks/index.html 29 Jun 2014 12:29:32 - 1.32 +++

[wwwdocs] Update reference to Go 1

2015-11-14 Thread Gerald Pfeifer
weekly.golang.org/doc/go1 now redirects to golang.org/doc/go1 and this uses https. Committed. Gerald Index: gcc-4.7/changes.html === RCS file: /cvs/gcc/wwwdocs/htdocs/gcc-4.7/changes.html,v retrieving revision 1.141 diff -u -r1.141

[wwwdocs] Switch golang.org to https

2015-11-14 Thread Gerald Pfeifer
Committed. Gerald Index: news.html === RCS file: /cvs/gcc/wwwdocs/htdocs/news.html,v retrieving revision 1.148 diff -u -r1.148 news.html --- news.html 12 Sep 2015 22:19:00 - 1.148 +++ news.html 14 Nov 2015 23:39:04

Re: [PATCH] Fix SH/FDPIC bad codegen with ssp enabled

2015-11-14 Thread Rich Felker
On Sat, Nov 14, 2015 at 09:24:32AM +0900, Kaz Kojima wrote: > Rich Felker wrote: > > The "chk_guard_add" pattern used for loading the GOT slot address for > > __stack_chk_guard hard-codes use of r12 as a fixed GOT register and > > thus is not suitable for FDPIC, where the saved