More OpenACC 2.5 Profiling Interface (was: OpenACC 2.5 Profiling Interface (incomplete))

2017-05-14 Thread Thomas Schwinge
Hi! On Tue, 28 Feb 2017 18:43:36 +0100, I wrote: > The 2.5 versions of the OpenACC standard added a new chapter "Profiling > Interface". In r245784, I committed incomplete support to > gomp-4_0-branch. I plan to continue working on this, but wanted to > synchronize at this point. > > commit b22

Re: [PATCH 2/N] Add dump_flags_type for handling of suboptions.

2017-05-14 Thread Martin Sebor
On 05/12/2017 11:42 AM, Martin Sebor wrote: On 05/05/2017 04:44 AM, Martin Liška wrote: Hi. This one is more interesting as it implements hierarchical option parsing and as a first step I implemented that for optgroup suboptions. I haven't gone through the rest of the patches so I could be mi

Re: [PATCH] [i386] Recompute the frame layout less often

2017-05-14 Thread Daniel Santos
On 05/14/2017 11:31 AM, Bernd Edlinger wrote: Hi Daniel, there is one thing I don't understand in your patch: That is, it introduces a static value: /* Registers who's save & restore will be managed by stubs called from pro/epilogue. */ static HARD_REG_SET GTY(()) stub_managed_regs; This

[patch] build xz (instead of bz2) compressed tarballs and diffs

2017-05-14 Thread Matthias Klose
As discussed on IRC with Jakub and Richard here are is a small patch which builds xz compressed tarballs and diff files. Tested with maintainer-scripts/gcc_release \ -s snap:trunk -p diffs sources tarfiles maintainer-scripts/gcc_release \ -s snap:trunk -p diffs sources tarfi

Re: committed: Fix NetBSD problem PR80600

2017-05-14 Thread Krister Walfridsson
On Mon, 15 May 2017, Krister Walfridsson wrote: I have committed the attached patch to make NetBSD handle -lgcc correctly for shared libraries. gcc/ChangeLog: PR target/80600 * config/netbsd.h (NETBSD_LIBGCC_SPEC): Always add -lgcc. libgcc/ChangeLog: PR target/80600

committed: Fix NetBSD problem PR80600

2017-05-14 Thread Krister Walfridsson
I have committed the attached patch to make NetBSD handle -lgcc correctly for shared libraries. gcc/ChangeLog: PR target/80600 * config/netbsd.h (NETBSD_LIBGCC_SPEC): Always add -lgcc. libgcc/ChangeLog: PR target/80600 * config.host (*-*-netbsd*): Add t-slibgcc-

Re: dejagnu version update?

2017-05-14 Thread NightStrike
On Sat, May 13, 2017 at 4:39 PM, Jeff Law wrote: > On 05/13/2017 04:38 AM, Jakub Jelinek wrote: >> >> On Sat, May 13, 2017 at 12:24:12PM +0200, Bernhard Reutner-Fischer wrote: >>> >>> I guess neither redhat >>> (https://access.redhat.com/downloads/content/dejagnu/ redirects to a >>> login page but

[wwwdocs] projects/prefetch.html - remove Itanium manual

2017-05-14 Thread Gerald Pfeifer
The usual theme, but at least a redirect to a most generic page, so let's just remove this. Applied. Gerald Index: htdocs/projects/prefetch.html === RCS file: /cvs/gcc/wwwdocs/htdocs/projects/prefetch.html,v retrieving revision 1.28

Re: Avoid _Rb_tree_rotate_[left,right] symbols export

2017-05-14 Thread François Dumont
On 12/05/2017 13:03, Jonathan Wakely wrote: On 11/05/17 22:06 +0200, François Dumont wrote: Hi When versioned namespace is active we can avoid export of _Rb_tree_rotate_[left,right] symbols. I also took the opportunity to put static functions in the anonymous namespace rather than using s

Re: [PATCH] [i386] Recompute the frame layout less often

2017-05-14 Thread Daniel Santos
On 05/14/2017 11:31 AM, Bernd Edlinger wrote: Hi Daniel, there is one thing I don't understand in your patch: That is, it introduces a static value: /* Registers who's save & restore will be managed by stubs called from pro/epilogue. */ static HARD_REG_SET GTY(()) stub_managed_regs; This

[PATCH, i386]: Make CCNOmode compatible with CCGOCmode and with CCZmode

2017-05-14 Thread Uros Bizjak
Hello! Attached patch makes CCNOmode compatible with CCGOCmode and with CCZmode, allowing post-reload compare elimiation to eliminate: testl %r15d, %r15d movq%rax, -552(%rbp) cmovns %r15, %r13 movq%rsi, -568(%rbp) - testl %r15d, %r15d jle

Re: [PATCH] [i386] Recompute the frame layout less often

2017-05-14 Thread Bernd Edlinger
Hi Daniel, there is one thing I don't understand in your patch: That is, it introduces a static value: /* Registers who's save & restore will be managed by stubs called from pro/epilogue. */ static HARD_REG_SET GTY(()) stub_managed_regs; This seems to be set as a side effect of ix86_compute

Re: [PATCH] plugin.c (try_init_one_plugin): Fix ressource leaks (CID 726637)

2017-05-14 Thread Sylvestre Ledru
Le 14/05/2017 à 12:40, Trevor Saunders a écrit : > On Sun, May 14, 2017 at 11:59:40AM +0200, Sylvestre Ledru wrote: >> Add missing dlclose() >> >> S >> >> >> From d0926b84047f281a29dc51bbd0a4bdda01a5c63f Mon Sep 17 00:00:00 2001 >> From: Sylvestre Ledru >> Date: Sun, 14 May 2017 11:28:38 +0200 >

Re: {PATCH] New C++ warning -Wcatch-value

2017-05-14 Thread Volker Reichelt
On 7 May, Martin Sebor wrote: > On 05/07/2017 02:03 PM, Volker Reichelt wrote: >> On 2 May, Martin Sebor wrote: >>> On 05/01/2017 02:38 AM, Volker Reichelt wrote: Hi, catching exceptions by value is a bad thing, as it may cause slicing, i.e. a) a superfluous copy b) which

Re: [PATCH] plugin.c (try_init_one_plugin): Fix ressource leaks (CID 726637)

2017-05-14 Thread Trevor Saunders
On Sun, May 14, 2017 at 11:59:40AM +0200, Sylvestre Ledru wrote: > Add missing dlclose() > > S > > > From d0926b84047f281a29dc51bbd0a4bdda01a5c63f Mon Sep 17 00:00:00 2001 > From: Sylvestre Ledru > Date: Sun, 14 May 2017 11:28:38 +0200 > Subject: [PATCH 4/5] 2017-05-14 Sylvestre Ledru > >

Re: OpenACC 2.5 kernels construct: num_gangs, num_workers, vector_length clauses

2017-05-14 Thread Thomas Schwinge
Hi! On Thu, 11 May 2017 14:26:51 +0200, I wrote: > Building on the other pending patches (I'll soon commit the approved > ones), we can then support the num_gangs, num_workers, vector_length > clauses for the OpenACC 2.5 kernels construct. OK for trunk? > OpenACC 2.5 kernels construct: num_g

Re: Runtime checking of OpenACC parallelism dimensions clauses

2017-05-14 Thread Thomas Schwinge
Hi! On Thu, 11 May 2017 14:24:05 +0200, I wrote: > OK for trunk? > Runtime checking of OpenACC parallelism dimensions clauses For now, committed to gomp-4_0-branch in r248030: commit 59e5204e0ec16c0f14ec68148f856fd307ef8d51 Author: tschwinge Date: Sun May 14 10:25:46 2017 + Runt

Re: [PATCH] [i386] Recompute the frame layout less often

2017-05-14 Thread Uros Bizjak
On Sun, May 14, 2017 at 11:16 AM, Daniel Santos wrote: > On 05/14/2017 02:42 AM, Bernd Edlinger wrote: >> >> Hi, >> >> >> this patch uses the new TARGET_COMPUTE_FRAME_LAYOUT hook in the i386 >> backend to avoid re-computing the frame layout when not really >> necessary. >> >> It simplifies the log

Re: [PING] [PATCH v4 0/12] [i386] Improve 64-bit Microsoft to System V ABI pro/epilogues

2017-05-14 Thread Uros Bizjak
On Sun, May 14, 2017 at 12:34 AM, Daniel Santos wrote: > On 05/13/2017 11:52 AM, Uros Bizjak wrote: >> >> On Sat, May 13, 2017 at 1:01 AM, Daniel Santos >> wrote: >>> >>> Ping? I have posted revisions of the following in patch set: >>> >>> 05/12 - https://gcc.gnu.org/ml/gcc-patches/2017-04/msg01

[PATCH] lto-wrapper.c (copy_file): Fix resource leaks

2017-05-14 Thread Sylvestre Ledru
Add missing fclose CID 1407987, 1407986 S >From d255827a64012fb81937d6baa8534eabecf9b735 Mon Sep 17 00:00:00 2001 From: Sylvestre Ledru Date: Sun, 14 May 2017 11:37:37 +0200 Subject: [PATCH 5/5] 2017-05-14 Sylvestre Ledru * lto-wrapper.c (copy_file): Fix resource leaks CID 140798

[PATCH] plugin.c (try_init_one_plugin): Fix ressource leaks (CID 726637)

2017-05-14 Thread Sylvestre Ledru
Add missing dlclose() S >From d0926b84047f281a29dc51bbd0a4bdda01a5c63f Mon Sep 17 00:00:00 2001 From: Sylvestre Ledru Date: Sun, 14 May 2017 11:28:38 +0200 Subject: [PATCH 4/5] 2017-05-14 Sylvestre Ledru * plugin.c (try_init_one_plugin): Fix ressource leaks (CID 726637) --- gcc/plugin.c |

[PATCH] objc-runtime-shared-support.c - Identical code for different branches

2017-05-14 Thread Sylvestre Ledru
Hello, Now that Coverity is up and running, I am trying to fix some errors. Let's start a trivial one (same code in different branches) S >From 50248decd02bfac52ad64b64c972750489e2ffa0 Mon Sep 17 00:00:00 2001 From: Sylvestre Ledru Date: Sun, 14 May 2017 10:55:24 +0200 Subject: [PATCH 1/5] 20

Re: [PATCH] [i386] Recompute the frame layout less often

2017-05-14 Thread Daniel Santos
On 05/14/2017 02:42 AM, Bernd Edlinger wrote: Hi, this patch uses the new TARGET_COMPUTE_FRAME_LAYOUT hook in the i386 backend to avoid re-computing the frame layout when not really necessary. It simplifies the logic in ix86_compute_frame_layout by removing the use_fast_prologue_epilogue_nregs

[PATCH] [i386] Recompute the frame layout less often

2017-05-14 Thread Bernd Edlinger
Hi, this patch uses the new TARGET_COMPUTE_FRAME_LAYOUT hook in the i386 backend to avoid re-computing the frame layout when not really necessary. It simplifies the logic in ix86_compute_frame_layout by removing the use_fast_prologue_epilogue_nregs, which is no longer necessary, because the fram

Re: [PATCH][X86] Add missing xgetbv xsetbv intrinsics

2017-05-14 Thread Uros Bizjak
On Fri, May 12, 2017 at 12:29 PM, Koval, Julia wrote: > Hi, > > This patch add these missing intrinsics: > _xsetbv > _xgetbv > > gcc/ > * config/i386/i386-builtin-types.def (VOID_FTYPE_INT_INT64): New type. > * config/i386/i386-builtin.def (__builtin_ia32_xgetbv, > __builti

[libstdc++] Assertion in optional

2017-05-14 Thread Marc Glisse
Hello, this patch adds 2 simple __glibcxx_assert in optional that match the precondition in the comment above. I am not sure if there was a reason the author wrote that comment instead of the assertion, but constexpr use still seems to work. I hesitated about having the assertion in operator