Re: [PATCH] match.pd: optimize unsigned mul overflow check

2016-05-30 Thread Alexander Monakov
On Sun, 29 May 2016, Marc Glisse wrote: > On Sat, 28 May 2016, Alexander Monakov wrote: > > > For unsigned A, B, 'A > -1 / B' is a nice predicate for checking whether > > 'A*B' > > overflows (or 'B && A > -1 / B' if B may be zero). Let's optimize it to an > > invocation of __builtin_mul_overflow

Re: [PATCH, PR69067] Remove assert in get_def_bb_for_const

2016-05-30 Thread Richard Biener
On Sun, 29 May 2016, Tom de Vries wrote: > Hi, > > this patch fixes graphite PR69067, a 6/7 regression. > > > I. > > Consider the following test-case, compiled with -O1 -floop-nest-optimize > -flto: > ... > int a1, c1, cr, kt; > int aa[2]; > > int > ce (void) > { > while (a1 < 1) { > in

Re: RFC [1/2] divmod transform

2016-05-30 Thread Richard Biener
On Mon, 30 May 2016, Prathamesh Kulkarni wrote: > The attached patch ICE's during bootstrap for x86_64, and is reproducible with > following case with -m32 -O2: > > typedef long long type; > > type f(type x, type y) > { > type q = x / y; > type r = x % y; > return q + r; > } > > The ICE h

Re: [ARM] implement division using vrecpe/vrecps with -funsafe-math-optimizations

2016-05-30 Thread Prathamesh Kulkarni
On 23 May 2016 at 14:59, Prathamesh Kulkarni wrote: > On 5 February 2016 at 18:40, Prathamesh Kulkarni > wrote: >> On 4 February 2016 at 16:31, Ramana Radhakrishnan >> wrote: >>> On Sun, Jan 17, 2016 at 9:06 AM, Prathamesh Kulkarni >>> wrote: On 31 July 2015 at 15:04, Ramana Radhakrishnan

[gotools, libcc1] Update copyright dates

2016-05-30 Thread Rainer Orth
I noticed that libcc1 copyright dates hadn't been updated since it had initially been added. Looking around, the same applies to gotools. This patch updates update-copyright.py to take care of that. At the same time, I checked that script, added appropriate entries for the other missing director

Re: [visium] Split DImode arithmetical operations

2016-05-30 Thread Eric Botcazou
> This makes it so that DImode arithmetical operations are split into a pair > of SImode operations in order to enable better scheduling. > > Tested on visium-elf, applied on the mainline and 6 branch. A minor follow-up, applied on the mainline and 6 branch. 2016-05-30 Eric Botcazou

Re: Moving backwards/FSM threader into its own pass

2016-05-30 Thread Richard Biener
On Fri, May 27, 2016 at 6:30 PM, Jeff Law wrote: > > It's been my plan since finally wrapping my head around Bodik's thesis to > revamp how we handle jump threading to use some of the principles from his > thesis. In particular, the back substitution and simplification model feels > like the righ

Re: Enable loop peeling at -O3

2016-05-30 Thread Richard Biener
On Sat, 28 May 2016, Jan Hubicka wrote: > Hello, > thanks for feedback. I updated the patch and also noticed that > -fpeel-all-loops gives up when > upper bound is known but it is large and when the max-peel-insns is too small > to permit > peeling max-peel-times. This patch also updates pr617

Re: Thoughts on memcmp expansion (PR43052)

2016-05-30 Thread Florian Weimer
On 01/15/2016 05:58 PM, Bernd Schmidt wrote: One question Richard posed in the comments: why aren't we optimizing small constant size memcmps other than size 1 to *s == *q? The reason is the return value of memcmp, which implies byte-sized operation (incidentally, the use of SImode in the cmpmem

[PATCH, PR69068] Handle 3-arg phi in copy_bb_and_scalar_dependences

2016-05-30 Thread Tom de Vries
Hi, this patch fixes graphite PR69068, a 6/7 regression. I. Consider this test-case: ... int qo; int zh[2]; void td (void) { int ly, en; for (ly = 0; ly < 2; ++ly) for (en = 0; en < 2; ++en) zh[en] = ((qo == 0) || (((qo * 2) != 0))) ? 1 : -1; } ... When compiling with -O1 -fgra

Re: [PATCH, PR69068] Handle 3-arg phi in copy_bb_and_scalar_dependences

2016-05-30 Thread Richard Biener
On Mon, 30 May 2016, Tom de Vries wrote: > Hi, > > this patch fixes graphite PR69068, a 6/7 regression. > > > I. > > Consider this test-case: > ... > int qo; > int zh[2]; > > void > td (void) > { > int ly, en; > for (ly = 0; ly < 2; ++ly) > for (en = 0; en < 2; ++en) > zh[en] =

Re: [SPARC] Support for --with-{cpu,tune}-{32,64} in sparc*-* targets

2016-05-30 Thread Jose E. Marchesi
> Tested in sparc64-linux-gnu, sparcv9-linux-gnu and sparc-sun-solaris2.11. > > 2016-05-25 Jose E. Marchesi > > * config.gcc (sparc*-*-*): Support cpu_32, cpu_64, tune_32 and > tune_64. > * doc/install.texi (--with-cpu-32, --with-cpu-64): Document > sup

Re: C PATCH to add -Wswitch-unreachable (PR c/49859)

2016-05-30 Thread Florian Weimer
On 05/23/2016 12:16 PM, Marek Polacek wrote: Can we document what a programmer needs to do to suppress the warning? My worry is that the warning will be too unpredictable to be useful. Why would you suppress the warning? Just delete the code that cannot be executed anyway. And what is unpred

Re: [PATCH, PR69068] Handle 3-arg phi in copy_bb_and_scalar_dependences

2016-05-30 Thread Tom de Vries
On 30/05/16 11:46, Richard Biener wrote: This patch fixes the assert conservatively by aborting graphite code >generation when encountering a phi with more than two arguments in >copy_bb_and_scalar_dependences. > >Bootstrapped and reg-tested on x86_64. > >OK for trunk, 6 branch? Did you check

Re: [PATCH2][PR71252] Fix insertion point of stmt_to_insert

2016-05-30 Thread Richard Biener
On Mon, May 30, 2016 at 2:35 AM, kugan wrote: > > > On 28/05/16 01:28, Kugan Vivekanandarajah wrote: >> >> Hi Richard, >> >> This fix insertion point of stmt_to_insert based on your comments. In >> insert_stmt_before_use , I now use find_insert_point such that we >> insert the stmt_to_insert after

Re: [PATCH] match.pd: optimize unsigned mul overflow check

2016-05-30 Thread Richard Biener
On Mon, May 30, 2016 at 9:14 AM, Alexander Monakov wrote: > On Sun, 29 May 2016, Marc Glisse wrote: >> On Sat, 28 May 2016, Alexander Monakov wrote: >> >> > For unsigned A, B, 'A > -1 / B' is a nice predicate for checking whether >> > 'A*B' >> > overflows (or 'B && A > -1 / B' if B may be zero).

Re: [PATCH, PR69068] Handle 3-arg phi in copy_bb_and_scalar_dependences

2016-05-30 Thread Richard Biener
On Mon, 30 May 2016, Tom de Vries wrote: > On 30/05/16 11:46, Richard Biener wrote: > > > This patch fixes the assert conservatively by aborting graphite code > > > >generation when encountering a phi with more than two arguments in > > > >copy_bb_and_scalar_dependences. > > > > > > > >Bootstrappe

[PATCH][RFC] Remove ifcvt_repair_bool_pattern, re-do bool patterns

2016-05-30 Thread Richard Biener
The following patch removes the restriction on seeing a tree of stmts in vectorizer bool pattern detection (aka single-use). With this it is no longer necessary to unshare DEFs in ifcvt_repair_bool_pattern and that compile-time hog can go (it's now enabled unconditionally for GCC 7). Instead the

Re: Enable loop peeling at -O3

2016-05-30 Thread Jan Hubicka
> On Sat, 28 May 2016, Jan Hubicka wrote: > > > Hello, > > thanks for feedback. I updated the patch and also noticed that > > -fpeel-all-loops gives up when > > upper bound is known but it is large and when the max-peel-insns is too > > small to permit > > peeling max-peel-times. This patch als

Re: [PATCH] match.pd: optimize unsigned mul overflow check

2016-05-30 Thread Jakub Jelinek
On Mon, May 30, 2016 at 12:55:22PM +0200, Richard Biener wrote: > CCing Jakub who wrote the tree-ssa-math-opts.c code last year. I remember we > discussed using match.pd but ended up with not doing it there but I > don't remember > the exact reason. richi: does match.pd support turning non-call

Re: Enable loop peeling at -O3

2016-05-30 Thread Richard Biener
On Mon, 30 May 2016, Jan Hubicka wrote: > > On Sat, 28 May 2016, Jan Hubicka wrote: > > > > > Hello, > > > thanks for feedback. I updated the patch and also noticed that > > > -fpeel-all-loops gives up when > > > upper bound is known but it is large and when the max-peel-insns is too > > > smal

Re: [PATCH] match.pd: optimize unsigned mul overflow check

2016-05-30 Thread Richard Biener
On Mon, May 30, 2016 at 1:15 PM, Jakub Jelinek wrote: > On Mon, May 30, 2016 at 12:55:22PM +0200, Richard Biener wrote: >> CCing Jakub who wrote the tree-ssa-math-opts.c code last year. I remember we >> discussed using match.pd but ended up with not doing it there but I >> don't remember >> the e

[build] Handle gas/gld --compress-debug-sections=type

2016-05-30 Thread Rainer Orth
I noticed that, while gcc.c is already prepared for it, gcc/configure doesn't yet detect the full ELF gABI compression support introduced in GNU binutils 2.26. The following patch adds the missing pieces. While mostly straightforward, there are two noteworthy issues: * I'm removing the `extra sw

Re: Enable loop peeling at -O3

2016-05-30 Thread Jan Hubicka
> > Sounds good. > > The patch is ok if you omit the new flag for now. Ok, I will omit that flag for now. Thanks! Honza > > Thanks, > Richard.

[PATCH 0/2] [ARC] Refurbish backend options

2016-05-30 Thread Claudiu Zissulescu
This series of patches redefines the way how we handle the options within the ARC backend. Firstly, a number of options got deprecated as they were directed to control the assembler behavior, assembler which got overhaul and ignores the options in question. Secondly, we remove the capitalized cpu n

[PATCH 2/2] [ARC] Update target specific tests.

2016-05-30 Thread Claudiu Zissulescu
Update the ARC specific tests. OK to apply? Claudiu gcc/ 2016-05-26 Claudiu Zissulescu * testsuite/gcc.target/arc/abitest.S: New file. * testsuite/gcc.target/arc/va_args-1.c: Likewise. * testsuite/gcc.target/arc/va_args-2.c: Likewise. * testsuite/gcc.target/arc

[PATCH 1/2] [ARC] New option handling, refurbish multilib support.

2016-05-30 Thread Claudiu Zissulescu
Overhaul of ARC options, and multilib support for various cpus. OK to apply? Claudiu gcc/ 2016-05-09 Claudiu Zissulescu * config/arc/arc-arch.h: New file. * config/arc/arc-arches.def: Likewise. * config/arc/arc-cpus.def: Likewise. * config/arc/arc-options.def:

Fix profile updating in loop peeling

2016-05-30 Thread Jan Hubicka
Hi, this patch fixes profile updates in loop peeling pass. First it correctly set wont_exit which can only be set when we know the number of iterations tested by EXIT and this number is higher than maximal number of iterations (an unlikely case which is usually removed by VRP pass or earlier cunro

Re: [PATCH][RFC] Remove ifcvt_repair_bool_pattern, re-do bool patterns

2016-05-30 Thread Ilya Enkovich
2016-05-30 14:04 GMT+03:00 Richard Biener : > > The following patch removes the restriction on seeing a tree of stmts > in vectorizer bool pattern detection (aka single-use). With this > it is no longer necessary to unshare DEFs in ifcvt_repair_bool_pattern > and that compile-time hog can go (it's

Re: [SPARC] Support for --with-{cpu,tune}-{32,64} in sparc*-* targets

2016-05-30 Thread Paolo Carlini
Hi Jose, On 30/05/2016 12:03, jose.march...@oracle.com wrote: > Tested in sparc64-linux-gnu, sparcv9-linux-gnu and sparc-sun-solaris2.11. > > 2016-05-25 Jose E. Marchesi > > * config.gcc (sparc*-*-*): Support cpu_32, cpu_64, tune_32 and > tune_64.

Re: [PATCH][2/3] Vectorize inductions that are live after the loop

2016-05-30 Thread Richard Biener
On Fri, May 27, 2016 at 5:12 PM, Alan Hayward wrote: > > On 27/05/2016 12:41, "Richard Biener" wrote: > >>On Fri, May 27, 2016 at 11:09 AM, Alan Hayward >>wrote: >>> This patch is a reworking of the previous vectorize inductions that are >>> live >>> after the loop patch. >>> It now supports SLP

Re: [PATCH] gcc/config/tilegx/tilegx.c (tilegx_function_profiler): Save r10 to stack before call mcount

2016-05-30 Thread Chen Gang
On 5/30/16 03:18, Mike Stump wrote: > On May 29, 2016, at 3:39 AM, cheng...@emindsoft.com.cn wrote: >> >> r10 may also be as parameter for the nested function, so need save it >> before call mcount. > > mcount can have a special abi where it preserves more registers than one > would otherwise exp

RE: [PATCH] x86 interrupt attribute patch [2/2]

2016-05-30 Thread Koval, Julia
Hi, Here is the fixed version of the patch. Ok for trunk? -Original Message- From: Sandra Loosemore [mailto:san...@codesourcery.com] Sent: Tuesday, May 10, 2016 11:02 PM To: Koval, Julia ; gcc-patches@gcc.gnu.org Cc: Lu, Hongjiu ; vaalfr...@gmail.com; ubiz...@gmail.com; l...@redhat.com;

[PATCH, i386, AVX-512] Fix PR target/71346.

2016-05-30 Thread Kirill Yukhin
Hello, Patch limits constraint for scalar operand in split to AVX-512VL. Boostrap/regtest in progress for x86_64/ia32. I'll check it in if pass. PR target/71346. gcc/ * config/i386/sse.md (define_insn_and_split "*vec_extractv4sf_0"): Use `Yv' for scalar operand. testsuite/

Re: [PATCH, PR69068] Handle 3-arg phi in copy_bb_and_scalar_dependences

2016-05-30 Thread Tom de Vries
On 30/05/16 12:56, Richard Biener wrote: On Mon, 30 May 2016, Tom de Vries wrote: >On 30/05/16 11:46, Richard Biener wrote: > > >This patch fixes the assert conservatively by aborting graphite code > > > >generation when encountering a phi with more than two arguments in > > > >copy_bb_and_sc

Re: [PATCH, PR69068] Handle 3-arg phi in copy_bb_and_scalar_dependences

2016-05-30 Thread Richard Biener
On Mon, 30 May 2016, Tom de Vries wrote: > On 30/05/16 12:56, Richard Biener wrote: > > On Mon, 30 May 2016, Tom de Vries wrote: > > > > > >On 30/05/16 11:46, Richard Biener wrote: > > > > > > > >This patch fixes the assert conservatively by aborting graphite > > > > > code > > > > > > > > > >gen

Re: [PATCH, i386, AVX-512] Fix PR target/71346.

2016-05-30 Thread Jakub Jelinek
On Mon, May 30, 2016 at 04:46:50PM +0300, Kirill Yukhin wrote: > Hello, > Patch limits constraint for scalar operand in split to AVX-512VL. > > Boostrap/regtest in progress for x86_64/ia32. > > I'll check it in if pass. > > PR target/71346. > gcc/ > * config/i386/sse.md (define_insn_and_sp

Re: [PATCH] gcc/config/tilegx/tilegx.c (tilegx_function_profiler): Save r10 to stack before call mcount

2016-05-30 Thread Chen Gang
On 5/30/16 21:32, Chen Gang wrote: > On 5/30/16 03:18, Mike Stump wrote: >> On May 29, 2016, at 3:39 AM, cheng...@emindsoft.com.cn wrote: >>> >>> r10 may also be as parameter for the nested function, so need save it >>> before call mcount. >> >> mcount can have a special abi where it preserves more

Re: [C++ Patch] PR 71109 ("Misleading diagnostic message with 'virtual' used in out-of-line definitions of class template member functions")

2016-05-30 Thread Jason Merrill
OK. On Sun, May 29, 2016 at 6:49 PM, Paolo Carlini wrote: > Hi, > > submitter noticed that for wrong uses of 'virtual' outside of template > classes (B in the testcase) vs plain classes (A) we wrongly emit the > "templates may not be %" error message. Simply checking > current_class_type seems en

[PATCH, OpenACC] Make reduction arguments addressable

2016-05-30 Thread Chung-Lin Tang
Hi, a previous patch of Cesar's has made the middle-end omp-lowering automatically create and insert a tofrom (i.e. present_or_copy) map for parallel reductions. This allowed the user to not need explicit clauses to copy out the reduction result, but because reduction arguments are not marked addr

[PATCH, testsuite]: Fix clear_non_sret_int_hardware_registers define in gcc.target/i386/iamcu/args.h

2016-05-30 Thread Uros Bizjak
Hello! 2016-05-30 Uros Bizjak * gcc.target/i386/iamcu/args.h (clear_non_sret_int_hardware_registers): Use correct register when clearing %edx. Regression tested on x86_64-linux-gnu {,-m32}. Committed to mainline and gcc-6 branch. Uros. Index: gcc.target/i386/iamcu/args.h ===

Re: [PATCH] match.pd: optimize unsigned mul overflow check

2016-05-30 Thread Alexander Monakov
On Sun, 29 May 2016, Marc Glisse wrote: > On Sat, 28 May 2016, Alexander Monakov wrote: > > For unsigned A, B, 'A > -1 / B' is a nice predicate for checking whether > > 'A*B' > > overflows (or 'B && A > -1 / B' if B may be zero). Let's optimize it to an > > invocation of __builtin_mul_overflow to

Re: Enable loop peeling at -O3

2016-05-30 Thread Jan Hubicka
Hi, this is version of patch I intend to commit after re-testing at x86_64-linux with loop peeling enabled at -O3. It drops -fpeel-all-loops, add logic to not peel loops multiple times and fix profile updating. Bootstrapped/regtested x86_64-linux Honza * doc/invoke.texi (-fpeel-loops,-O

[C++ Patch] PR 71238 ("Undeclared function message imprecisely points to error column")

2016-05-30 Thread Paolo Carlini
Hi, this diagnostic bug report is about an incorrect column (normally the final closed parenthesis) for error messages emitted by unqualified_fn_lookup_error. The substance of the fix is obvious - pass an appropriate column information to the function - and it handles correctly all the instan

Re: [PATCH 2/3] Add profiling support for IVOPTS

2016-05-30 Thread Martin Liška
On 05/24/2016 12:11 PM, Bin.Cheng wrote: > Hi, > Could you please factor out this as a function and remove the goto > statements? Okay with this change if no fallout in benchmarks you > run. > > Thanks, > bin Hi. Thanks for the review, I've just verified that it does not introduce any regressio

Re: [PATCH, rs6000] Add builtin-support for new Power9 vslv and vsrv (vector shift left and right variable) instructions

2016-05-30 Thread Segher Boessenkool
On Fri, May 27, 2016 at 02:01:33PM -0600, Kelvin Nilsen wrote: > > This patch adds built-in function support for the Power9 vslv and vsrv > instructions. > +Tne @code{vec_slv} and @code{vec_srv} functions operate in parallel on Typo ("Tne"). > +all of the bytes of their @code{src} and @code{sh

Re: [C++ Patch] PR 71238 ("Undeclared function message imprecisely points to error column")

2016-05-30 Thread Jason Merrill
On 05/30/2016 11:42 AM, Paolo Carlini wrote: +unqualified_name_lookup_error (tree name, location_t loc) { + if (loc == UNKNOWN_LOCATION) +loc = location_of (name); When does this do anything useful? If name is a DECL, this will give the wrong answer. If name is an IDENTIFIER_NODE, this

Re: [C++ Patch] PR 71238 ("Undeclared function message imprecisely points to error column")

2016-05-30 Thread Paolo Carlini
Hi, On 30/05/2016 18:07, Jason Merrill wrote: On 05/30/2016 11:42 AM, Paolo Carlini wrote: +unqualified_name_lookup_error (tree name, location_t loc) { + if (loc == UNKNOWN_LOCATION) +loc = location_of (name); When does this do anything useful? If name is a DECL, this will give the wr

[gomp4.5] Doacross fixes for Fortran non-simple loops

2016-05-30 Thread Jakub Jelinek
Hi! This fixes the handling of doacross on non-simple Fortran loops (ones where step isn't compile time known 1 or -1), except that lastprivate is still broken if the collapsed loop iterates non-zero times, but one of the ordered loops inside of it has zero iterations. Will need to figure out som

Re: [PATCH, OpenACC] Make reduction arguments addressable

2016-05-30 Thread Jakub Jelinek
On Mon, May 30, 2016 at 10:38:59PM +0800, Chung-Lin Tang wrote: > Hi, a previous patch of Cesar's has made the middle-end omp-lowering > automatically create and insert a tofrom (i.e. present_or_copy) map for > parallel reductions. This allowed the user to not need explicit > clauses to copy out t

Re: [C++ Patch] PR 71238 ("Undeclared function message imprecisely points to error column")

2016-05-30 Thread Jason Merrill
On 05/30/2016 12:45 PM, Paolo Carlini wrote: Hi, On 30/05/2016 18:07, Jason Merrill wrote: On 05/30/2016 11:42 AM, Paolo Carlini wrote: +unqualified_name_lookup_error (tree name, location_t loc) { + if (loc == UNKNOWN_LOCATION) +loc = location_of (name); When does this do anything usef

Re: [PATCH] c++/71306 - bogus -Wplacement-new with an array element

2016-05-30 Thread Jason Merrill
OK. Jason

[PATCH, i386]: Use "lock orl $0, -4(%esp)" in mfence_nosse

2016-05-30 Thread Uros Bizjak
On Sun, May 29, 2016 at 11:10 PM, Uros Bizjak wrote: > Attached RFC patch implements this proposal. > > 2016-05-29 Uros Bizjak > > * config/i386/sync.md (mfence_nosse): Use "lock orl $0, -4(%esp)". > > Patch was bootstrapped and regression tested on x86_64-linux-gnu {,-m32}. > > Any other

Re: [PATCH] x86 interrupt attribute patch [2/2]

2016-05-30 Thread Sandra Loosemore
On 05/30/2016 07:31 AM, Koval, Julia wrote: Hi, Here is the fixed version of the patch. Ok for trunk? diff --git a/gcc/doc/extend.texi b/gcc/doc/extend.texi index 2d4f028..f4bd7dd 100644 --- a/gcc/doc/extend.texi +++ b/gcc/doc/extend.texi @@ -5266,6 +5266,96 @@ On x86-32 targets, the @code{stdca

Re: Enable loop peeling at -O3

2016-05-30 Thread Sandra Loosemore
On 05/30/2016 09:26 AM, Jan Hubicka wrote: Hi, this is version of patch I intend to commit after re-testing at x86_64-linux with loop peeling enabled at -O3. It drops -fpeel-all-loops, add logic to not peel loops multiple times and fix profile updating. Bootstrapped/regtested x86_64-linux Honz

[PATCH] Fix PR tree-optimization/71077

2016-05-30 Thread Patrick Palka
In this PR the function simplify_control_stmt_condition_1(), which is responsible for recursing into the operands of a GIMPLE_COND during jump threading to check for dominating ASSERT_EXPRs, was erroneously returning a VECTOR_CST when it should instead be returning an INTEGER_CST. The problem is t

[PATCH] Fix PR tree-optimization/71314

2016-05-30 Thread Patrick Palka
The test case ssa-thread-14.c expects that non-short-circuit logical ops are used so it fails on targets that don't use such ops by default. To fix, I copied the dg directives from tree-ssa/reassoc-35.c which look reasonable. Does this look OK to commit? gcc/testsuite/ChangeLog: PR tree

Re: [PATCH] Update documentation for ARM architecture

2016-05-30 Thread Sandra Loosemore
On 05/28/2016 07:52 AM, stefan.bru...@rwth-aachen.de wrote: From: Stefan Brüns * use lexicographical ordering, as "gcc -march=foo" does * add armv6k, armv6z, arm6zk * remove ep9312, it is only valid for -mcpu * add armv6s-m and document it, as it is no official ARM name. Support fo

[PATCH] Fix PR c++/27100

2016-05-30 Thread Patrick Palka
Here's a more straightforward version of the patch that abuses the fact that the fields DECL_PENDING_INLINE_INFO and DECL_SAVED_FUNCTION_DATA are a union. Bootstrapped + regtested on x86_64-pc-linux-gnu. Does this look OK to commit? gcc/cp/ChangeLog: PR c++/27100 * decl.c (dupli

Re: [patch] config.gcc FreeBSD ARM

2016-05-30 Thread Andreas Tobler
On 27.05.16 22:34, Andreas Tobler wrote: Hi all, The FreeBSD ARM people eliminated the extra armv6hf target and moved the hardfloat 'functionality' into the armv6-*-freebsd11+ target. This applies / will apply (FreeBSD11 is not released yet. Planned date in September 16) to FreeBSD11. On FreeBSD

Re: [v3 PATCH] Protect allocator-overloads of tuple-from-tuple constructors from cases that would create dangling references.

2016-05-30 Thread Paolo Carlini
Hi Ville, On 29/05/2016 16:42, Ville Voutilainen wrote: On 28 May 2016 at 21:25, Ville Voutilainen wrote: The fix to avoid binding dangling references to temporaries for tuple's constructors that take tuples of different type didn't include the fix for allocator overloads. That was just lazy,

[committed] Fix some OpenMP 4.5 issues (PR c++/71349)

2016-05-30 Thread Jakub Jelinek
Hi! As the changes to the testcase show, there were 3 issues: 1) nowait clause has not been allowed on target {teams distribute ,}parallel for{, simd} - while parallel for{, simd} disallows nowait, it is allowed on target, so on these constructs nowait should go to target, and not to the workshar

Re: [PATCH] gcc/config/tilegx/tilegx.c (tilegx_function_profiler): Save r10 to stack before call mcount

2016-05-30 Thread Chen Gang
On 5/30/16 22:25, Chen Gang wrote: > On 5/30/16 21:32, Chen Gang wrote: >> On 5/30/16 03:18, Mike Stump wrote: >>> On May 29, 2016, at 3:39 AM, cheng...@emindsoft.com.cn wrote: r10 may also be as parameter for the nested function, so need save it before call mcount. >>> >>> mcount ca

Re: [PATCH] c++/71306 - bogus -Wplacement-new with an array element

2016-05-30 Thread Martin Sebor
On 05/30/2016 12:42 PM, Jason Merrill wrote: OK. Sorry, I should have asked to begin with: Is it okay to backport this fix to the 6.x branch too? Martin

[PATCH] Remove old diagnostic macros.

2016-05-30 Thread Marcin Baczyński
Hi, this is my first GCC patch, so please bear with me if something is wrong with it in an obvious way. I've found two unused macros in gcc/diagnostic.h. Is the patch okay as is? Bootstrapped on x86_64-pc-linux-gnu. 2016-05-31 Marcin Baczyński * gcc/diagnostic.h (diagnostic_line_cutoff, diag