Re: [PATCH] Don't unnecessarily create stack protector guard decls and MEMs (PR target/77957)

2016-10-13 Thread Richard Biener
On Thu, 13 Oct 2016, Jakub Jelinek wrote: > Hi! > > PR77957 is likely a rs6000 backend bug where a useless memory load causes > .LCTOC0 undefined reference in the end at -O0 and as such should be fixed, > but I think it is completely unnecessary to create those loads at all > if we know we are go

[PATCH] More early LTO dwarf2out bits

2016-10-13 Thread Richard Biener
This merges a few more bits guarding stuff with ! early_dwarf, mostly to avoid creating locations that involve addresses of decls early but also to avoid wasting work for BLOCK_NONLOCALIZED_VARs. Bootstrapped and tested on x86_64-unknown-linux-gnu, gdb testsuite tested on the same arch (from the

[PATCH] Do not merge BBs with a different EH landing pads (PR, tree-optimization/77943)

2016-10-13 Thread Martin Liška
Hi. Following patch adds code that is already present in IPA ICF. Patch can bootstrap on ppc64le-redhat-linux and survives regression tests. Ready to be installed? Martin >From 542c318af84ca561661b42baca3da7c340971dd8 Mon Sep 17 00:00:00 2001 From: marxin Date: Wed, 12 Oct 2016 16:38:31 +0200 Su

Re: [PATCH][check_GNU_style.sh] More aggressively ignore dg-xxx directives

2016-10-13 Thread Kyrill Tkachov
On 12/10/16 17:49, Martin Sebor wrote: On 10/12/2016 06:43 AM, Kyrill Tkachov wrote: On 12/10/16 11:18, Kyrill Tkachov wrote: On 12/10/16 10:57, Kyrill Tkachov wrote: On 11/10/16 20:19, Jakub Jelinek wrote: On Tue, Oct 11, 2016 at 01:11:04PM -0600, Martin Sebor wrote: Also, the pattern t

Re: [PATCH, GCC] Move MEMMODEL_* and enum memmodel from coretypes.h to memmodel.h

2016-10-13 Thread Richard Biener
On Wed, 12 Oct 2016, Joseph Myers wrote: > On Wed, 12 Oct 2016, Thomas Preudhomme wrote: > > > This patch is a follow up of [1] which aims to have all memory model related > > declarations in memmodel.h. To achieve that, this patch moves memory model > > related declaration from coretypes.h into

Re: [PATCH] Fix PR77826

2016-10-13 Thread Richard Biener
On Wed, 12 Oct 2016, Richard Biener wrote: > On Wed, 12 Oct 2016, Marc Glisse wrote: > > > On Wed, 12 Oct 2016, Richard Biener wrote: > > > > > So with doing the same on GENERIC I hit > > > > > > FAIL: g++.dg/cpp1y/constexpr-array4.C -std=c++14 (test for excess errors) > > > > > > with the pa

Re: [RFC] Possible folding opportunities for string built-ins

2016-10-13 Thread Richard Biener
On Wed, Oct 12, 2016 at 3:48 PM, Martin Liška wrote: > Hi. > > As you probably mentioned, simple folding improvement has grown to multiple > patches > and multiple iterations. Apart from that, I also noticed that we do not do > the best > for couple of cases and I would like to have a feedback i

RE: [PATCH] [ARC] New option handling, refurbish multilib support.

2016-10-13 Thread Claudiu Zissulescu
Hi Andrew, > Sorry it's taken s long to review this patch. > This is understandable, it is a quite large patch and changes a lot of items. > In general I like this, and think it's a step in the right direction. > I have a few pretty minor concerns, but hopefully nothing too > contentious. >

Re: [vrp] use get_ptr_nonnull in tree-vrp

2016-10-13 Thread Richard Biener
On Thu, Oct 13, 2016 at 6:38 AM, kugan wrote: > Hi Richard, > > > On 13/10/16 05:53, kugan wrote: >> >> Hi Richard, >> >> On 12/10/16 23:24, Richard Biener wrote: >>> >>> On Wed, Oct 12, 2016 at 8:56 AM, kugan >>> wrote: Hi, This patch uses get_ptr_nonnull in tree-vrp. >>

Re: [PATCH] Do not merge BBs with a different EH landing pads (PR, tree-optimization/77943)

2016-10-13 Thread Richard Biener
On Thu, Oct 13, 2016 at 9:40 AM, Martin Liška wrote: > Hi. > > Following patch adds code that is already present in IPA ICF. > Patch can bootstrap on ppc64le-redhat-linux and survives regression tests. > > Ready to be installed? Ok, though technically this is conservative and we could still merge

Re: PING! [Fortran, Patch, PR72832, v1] [6/7 Regression] [OOP] ALLOCATE with SOURCE fails to allocate requested dimensions

2016-10-13 Thread Andre Vehreschild
Hi Steve, thanks for the review. Committed as r241088 on trunk. Letting it mature for one week in trunk before backporting to gcc-6. Regards, Andre On Wed, 12 Oct 2016 10:18:29 -0700 Steve Kargl wrote: > On Wed, Oct 12, 2016 at 11:50:10AM +0200, Andre Vehreschild wrote: > > Ping! > >

Re: C++ PATCH for c++/77742 (-Waligned-new and placement new)

2016-10-13 Thread Andreas Schwab
FAIL: g++.dg/cpp1z/aligned-new7.C (test for excess errors) Excess errors: /daten/aranym/gcc/gcc-20161013/gcc/testsuite/g++.dg/cpp1z/aligned-new7.C:13:41: warning: requested alignment 8 is larger than 2 [-Wattributes] Andreas. -- Andreas Schwab, SUSE Labs, sch...@suse.de GPG Key fingerprint

[PATCH] Fix exception-specification of std::invoke

2016-10-13 Thread Jonathan Wakely
The arguments to the is_nothrow_callable traits were not adding && to the types, so they failed with anything that formed an invalid function type. * include/bits/invoke.h (__invoke): Fix exception-specification. * include/std/functional (invoke): Likewise. * testsuite/20_

Re: [PATCH] Do not merge BBs with a different EH landing pads (PR, tree-optimization/77943)

2016-10-13 Thread Martin Liška
On 10/13/2016 10:46 AM, Richard Biener wrote: > On Thu, Oct 13, 2016 at 9:40 AM, Martin Liška wrote: >> Hi. >> >> Following patch adds code that is already present in IPA ICF. >> Patch can bootstrap on ppc64le-redhat-linux and survives regression tests. >> >> Ready to be installed? > > Ok, though

Re: [PATCH] - improve sprintf buffer overflow detection (middle-end/49905)

2016-10-13 Thread Rainer Orth
Hi Martin, >> as it happens, I'd already started bootstraps with your patch before >> your mail arrived :-) > > Thanks for your help getting to the bottom of this! > >> >> We're left with >> >> FAIL: gcc.dg/tree-ssa/builtin-sprintf-warn-1.c (test for excess errors) >> FAIL: gcc.dg/tree-ssa/builtin

Re: [PATCH] Do not merge BBs with a different EH landing pads (PR, tree-optimization/77943)

2016-10-13 Thread Richard Biener
On Thu, Oct 13, 2016 at 11:15 AM, Martin Liška wrote: > On 10/13/2016 10:46 AM, Richard Biener wrote: >> On Thu, Oct 13, 2016 at 9:40 AM, Martin Liška wrote: >>> Hi. >>> >>> Following patch adds code that is already present in IPA ICF. >>> Patch can bootstrap on ppc64le-redhat-linux and survives

Re: [RFC] Speed-up -fprofile-update=atomic

2016-10-13 Thread Richard Biener
On Wed, Oct 12, 2016 at 3:52 PM, Martin Liška wrote: > On 10/04/2016 11:45 AM, Richard Biener wrote: >> On Thu, Sep 15, 2016 at 12:00 PM, Martin Liška wrote: >>> On 09/07/2016 02:09 PM, Richard Biener wrote: On Wed, Sep 7, 2016 at 1:37 PM, Martin Liška wrote: > On 08/18/2016 06:06 PM, R

Re: Set nonnull attribute to ptr_info_def based on VRP

2016-10-13 Thread Richard Biener
On Thu, Oct 13, 2016 at 6:49 AM, kugan wrote: > Hi Richard, > >> >> what does this try to do? Preserve info VRP computed across PTA? >> >> I think we didn't yet sort out the nonlocal/escaped vs. null handling >> properly >> (or how PTA should handle get_ptr_nonnull). The way you are using it >>

Re: [PATCH] Fix -Wimplicit-fallthrough ICE (PR c/77946)

2016-10-13 Thread Marek Polacek
On Thu, Oct 13, 2016 at 01:25:22AM +0200, Jakub Jelinek wrote: > Hi! > > Seems 2 functions in varasm.c just use TREE_PUBLIC on LABEL_DECLs together > with other kinds of decls, but as TREE_PUBLIC on LABEL_DECLs means now > something different, it breaks badly. > While I could change those 2 functi

Re: [PATCH] Fix -Wimplicit-fallthrough ICE (PR c/77946)

2016-10-13 Thread Bernd Schmidt
On 10/13/2016 01:25 AM, Jakub Jelinek wrote: Seems 2 functions in varasm.c just use TREE_PUBLIC on LABEL_DECLs together with other kinds of decls, but as TREE_PUBLIC on LABEL_DECLs means now something different, it breaks badly. Which functions are these? PR c/77946 * tree.h (

Re: Compile-time improvement for if conversion.

2016-10-13 Thread Richard Biener
On Wed, Oct 12, 2016 at 3:37 PM, Yuri Rumyantsev wrote: > Richard, > > Here is updated patch . I avoided creation of new entry/exit blocks > but instead add check to border cases - do not consider also blocks > which are out of region. > > Any comments will be appreciated. I mostly like it now.

Re: [patch] Fix GC issue triggered by arithmetic overflow checking

2016-10-13 Thread Eric Botcazou
> Yes. But that's not the only source for DECL_UID differences. Btw, > I see lots of FOR_EACH_HASH_TABLE_ELEMENT in var-tracking.c > but they don't look like their outcome is supposed to be dependent on > element ordering. This leads to NOTE_INSN_VAR_LOCATION notes emitted in a different order,

[PATCH] Fix exception-specifications for std::_Not_fn

2016-10-13 Thread Jonathan Wakely
The exception specifications for _Not_fn::operator() should consider whether operator! on the result can throw. * include/std/functional (_Not_fn): Make exception specifications depend on whether negating the result can throw. * testsuite/20_util/not_fn/1.cc: Move to ...

Re: [patch] Fix GC issue triggered by arithmetic overflow checking

2016-10-13 Thread Richard Biener
On Thu, Oct 13, 2016 at 12:15 PM, Eric Botcazou wrote: >> Yes. But that's not the only source for DECL_UID differences. Btw, >> I see lots of FOR_EACH_HASH_TABLE_ELEMENT in var-tracking.c >> but they don't look like their outcome is supposed to be dependent on >> element ordering. > > This leads

Re: [PATCH] Fix -Wimplicit-fallthrough ICE (PR c/77946)

2016-10-13 Thread Jakub Jelinek
On Thu, Oct 13, 2016 at 12:11:36PM +0200, Bernd Schmidt wrote: > On 10/13/2016 01:25 AM, Jakub Jelinek wrote: > >Seems 2 functions in varasm.c just use TREE_PUBLIC on LABEL_DECLs together > >with other kinds of decls, but as TREE_PUBLIC on LABEL_DECLs means now > >something different, it breaks bad

Re: [PATCH] (v2) Add a "compact" mode to print_rtx_function

2016-10-13 Thread Bernd Schmidt
On 10/12/2016 10:37 PM, David Malcolm wrote: It didn't pass, due to this change: (print_rtx_operand_code_i): When printing source locations, wrap xloc.file in quotes. [...snip...] [...] The following is a revised version of the patch which updates this test case. Also ok. This remi

Re: [PATCH] Tweaks to print_rtx_function

2016-10-13 Thread Bernd Schmidt
On 10/12/2016 11:04 PM, David Malcolm wrote: This patch implements: * the renumbering of non-virtual pseudos, using LAST_VIRTUAL_REGISTER + 1 as a base. * omitting the edge "(flags)" directive if there aren't any Bootstrap & regrtest in progress. OK for trunk if they pass? I tend to think

Re: [PATCH] Fix -Wimplicit-fallthrough ICE (PR c/77946)

2016-10-13 Thread Bernd Schmidt
On 10/13/2016 12:20 PM, Jakub Jelinek wrote: both relied on TREE_PUBLIC be actually false for LABEL_DECLs, because otherwise they have code later on that can't handle LABE_DECLs (plus callers also not expecting LABEL_DECLs might not bind locally or might not bind to the current def. Ok, thanks

Re: [patch] Fix GC issue triggered by arithmetic overflow checking

2016-10-13 Thread Jakub Jelinek
On Thu, Oct 13, 2016 at 12:19:53PM +0200, Richard Biener wrote: > > (note 6350 6349 6351 (var_location temp (nil)) NOTE_INSN_VAR_LOCATION) > > (note 6351 6350 6352 (var_location temp$low (mem/c:DI (plus:SI (reg/f:SI 30 > > %fp) > > (const_int -112 [0xff90])) [10 MEM[(struct cpp_

[PATCH] Replace __bind_simple with std::thread::__make_invoker

2016-10-13 Thread Jonathan Wakely
Some time ago I added __bind_simple, which is a simpler version of std::bind that doesn't support placeholders and nested bind expressions. It's only needed by a few concurrency components that do INVOKE(DECAY_COPY(f), DECAY_COPY(args)...) but those conponents have to include the whole of to get

Re: fix -fmax-errors & notes

2016-10-13 Thread Nathan Sidwell
On 10/11/16 16:07, David Malcolm wrote: This logic is running when the next diagnostic is about to be emitted. But what if the user has selected -Wfatal-errors and there's a single error and no further diagnostics? Could this change the observable behavior? (I'm trying to think of a case here,

Re: [PATCH v4] PR48344: Fix unrecognizable insn error with -fstack-limit-register=r2

2016-10-13 Thread Bernd Schmidt
On 09/30/2016 10:02 PM, Andreas Schwab wrote: On Feb 11 2016, Kelvin Nilsen wrote: * opts-global.c (handle_common_deferred_options): Introduce and initialize two global variables to remember command-line options specifying a stack-limiting register. * opts.h: Ad

Re: [patch] Fix GC issue triggered by arithmetic overflow checking

2016-10-13 Thread Eric Botcazou
> I guess it depends on whether temp$8 and temp$low overlap or not. I don't think so, the code is identical so that would be a more serious bug: struct cpp_num { cpp_num_part high; cpp_num_part low; bool unsignedp; bool overflow; }; I think it's just dwarf2out_var_location being sensitiv

Re: [PATCH GCC 2/9]Add interface reseting original copy tables in cfg.c

2016-10-13 Thread Bin.Cheng
On Wed, Sep 7, 2016 at 1:20 PM, Jeff Law wrote: > On 09/06/2016 12:50 PM, Bin Cheng wrote: >> >> Hi, >> This simple patch adds interface reseting original copy table in cfg.c. >> This will be used in rewriting vect_do_peeling_* functions in vectorizer so >> that we don't need to release/allocate t

Re: [PATCH GCC 9/9]Prove no-overflow in computation of LOOP_VINFO_NITERS and improve code generation

2016-10-13 Thread Bin.Cheng
On Mon, Sep 12, 2016 at 8:58 PM, Jeff Law wrote: > On 09/06/2016 12:54 PM, Bin Cheng wrote: >> >> Hi, >> LOOP_VINFO_NITERS is computed as LOOP_VINFO_NITERSM1 + 1, which could >> overflow in loop niters' type. Vectorizer needs to generate more code >> computing vectorized niters if overflow does h

Re: [ping * 2] remove optab functions for [us]divmod_optab in optabs.def

2016-10-13 Thread Bernd Schmidt
On 10/06/2016 07:43 AM, Prathamesh Kulkarni wrote: Pinging patch: https://gcc.gnu.org/ml/gcc-patches/2016-09/msg01038.html If I understand correctly this is a latent issue where nonexistant libfunc names are stored (but not currently used). If that's correct, then OK. Bernd

Re: [patch, avr, pr71676 and pr71678] Issues with casesi expand

2016-10-13 Thread Pitchumani Sivanupandi
On Monday 26 September 2016 08:19 PM, Georg-Johann Lay wrote: On 26.09.2016 15:19, Pitchumani Sivanupandi wrote: Attached patch for PR71676 and PR71678. PR71676 is for AVR target that generates wrong code when switch case index is more than 16 bits. Switch case index of larger than SImode ar

RE: [PATCH 1/2] [ARC] Update INSN_LENGTH_ALIGNMENT.

2016-10-13 Thread Claudiu Zissulescu
> This looks good to me. > Committed r241104. Thank you for ur review, Claudiu

RE: [PATCH 2/2] [ARC] Fix mul32x16 patterns.

2016-10-13 Thread Claudiu Zissulescu
> > gcc/ > > 2016-06-28 Claudiu Zissulescu > > > > * config/arc/arc.md (umul_600): Change. > > (umul64_600): Likewise. > > Looks fine, though maybe you could be a little more descriptive with > the ChangeLog entry. > Committed r241105 with the requested change. Thank you for ur revie

Re: [PATCH] Remove x86 pcommit instruction

2016-10-13 Thread Andrew Senkevich
2016-10-11 20:09 GMT+03:00 H.J. Lu : > On Tue, Oct 11, 2016 at 10:04 AM, Andrew Senkevich > wrote: >> 2016-10-06 1:07 GMT+03:00 H.J. Lu : >>> On Wed, Oct 5, 2016 at 1:42 PM, Andrew Senkevich >>> wrote: 2016-10-05 18:06 GMT+03:00 Uros Bizjak : > On Wed, Oct 5, 2016 at 3:47 PM, Andrew Senk

[Ada] Pragmas Compile_Time_Error and Compile_Time_Warning and 'Size

2016-10-13 Thread Arnaud Charlet
Extend the functionality of pragmas Compile_Time_Warning and Compile_Time_ Error to use statically known values of attributes 'Size and 'Alignment. For example: procedure do_test is generic type ParamType is private; package Gen is pragma Compile_Time_Error (ParamType'Size

Re: [PATCH] Replace __bind_simple with std::thread::__make_invoker

2016-10-13 Thread Thomas Schwinge
Hi! Build failure after trunk r241093: [...]/source-gcc/libstdc++-v3/src/c++11/compatibility-thread-c++0x.cc:121:12: error: ISO C++ forbids declaration of '_Bind_simple_helper' with no type [-fpermissive] template _Bind_simple_helper>::__type __bind_simple(void (thread::*&&)(), ref

Re: [PATCH] Replace __bind_simple with std::thread::__make_invoker

2016-10-13 Thread Jonathan Wakely
On 13/10/16 14:16 +0200, Thomas Schwinge wrote: Hi! Build failure after trunk r241093: [...]/source-gcc/libstdc++-v3/src/c++11/compatibility-thread-c++0x.cc:121:12: error: ISO C++ forbids declaration of '_Bind_simple_helper' with no type [-fpermissive] template _Bind_simple_helper>:

Re: [PATCH] Replace __bind_simple with std::thread::__make_invoker

2016-10-13 Thread Jonathan Wakely
On 13/10/16 13:20 +0100, Jonathan Wakely wrote: On 13/10/16 14:16 +0200, Thomas Schwinge wrote: Hi! Build failure after trunk r241093: [...]/source-gcc/libstdc++-v3/src/c++11/compatibility-thread-c++0x.cc:121:12: error: ISO C++ forbids declaration of '_Bind_simple_helper' with no type [-fp

[Fortran, Patch, PR{43366, 57117, 61337, 61376}, v1] Assign to polymorphic objects.

2016-10-13 Thread Andre Vehreschild
Hi all, attached patch fixes the PRs (as to my knowledge): PR43366 - [OOP][F08] Intrinsic assign to polymorphic variable PR57117 - [OOP] ICE for sourced allocation of a polymorphic entity using TRANSPOSE PR61337 - Wrong indexing and runtime crash with unlimited polymorphic array. PR6137

[PATCH, ARM] Remove redundant model field from FPU descriptions

2016-10-13 Thread Richard Earnshaw (lists)
This is the first of a number of patches to clean up the FPU support on ARM. In the days when GCC for ARM supported both the VFP and FPA floating-point units, the fpu_model field in the FP architectures description described which type of floating point numbers the machine supported. Now that VFP

[PATCH, ARM] Remove redundant TARGET_VFP

2016-10-13 Thread Richard Earnshaw (lists)
Now that it is clear that TARGET_VFP is a constant we can clean it up and remove it entirely. This revealed one problem. The test in arm_expand_vfp_builtin was essentially a NOP. It should, instead, have been testing TARGET_HARD_FLOAT. Tested on arm-none-eabi and installed on trunk. *

Re: [PATCH, GCC] Move MEMMODEL_* and enum memmodel from coretypes.h to memmodel.h

2016-10-13 Thread Thomas Preudhomme
On 12/10/16 21:00, Joseph Myers wrote: On Wed, 12 Oct 2016, Thomas Preudhomme wrote: This patch is a follow up of [1] which aims to have all memory model related declarations in memmodel.h. To achieve that, this patch moves memory model related declaration from coretypes.h into memmodel.h. Note

Re: [PATCH, GCC] Move MEMMODEL_* and enum memmodel from coretypes.h to memmodel.h

2016-10-13 Thread Richard Biener
On Thu, 13 Oct 2016, Thomas Preudhomme wrote: > On 12/10/16 21:00, Joseph Myers wrote: > > On Wed, 12 Oct 2016, Thomas Preudhomme wrote: > > > > > This patch is a follow up of [1] which aims to have all memory model > > > related > > > declarations in memmodel.h. To achieve that, this patch moves

Re: [PATCH, RFC] gcov: dump in a static dtor instead of in an atexit handler

2016-10-13 Thread Rainer Orth
Hi Martin, sorry for the long delay: I've been extremely busy the last two weeks. > On 09/30/2016 02:31 PM, Rainer Orth wrote: >> this would be i386-pc-solaris2.12. I'm not sure if the constructor >> priority detection works in a cross scenario. > > Hi. > > By the way, I tried to test the cross-

Re: [PATCH] Add "__RTL" to cc1 (v2)

2016-10-13 Thread Richard Biener
On Fri, Oct 7, 2016 at 5:58 PM, David Malcolm wrote: > On Wed, 2016-10-05 at 16:09 +, Joseph Myers wrote: >> On Wed, 5 Oct 2016, David Malcolm wrote: >> >> > @@ -1752,6 +1759,35 @@ c_parser_declaration_or_fndef (c_parser >> > *parser, bool fndef_ok, >> >c_parser_skip_to_end_of_block_or

Re: [PATCH] Add "__RTL" to cc1 (v2)

2016-10-13 Thread Bernd Schmidt
On 10/13/2016 03:49 PM, Richard Biener wrote: Does it really run a single pass only? Thus you can't do a { dg-do run } test with __RTL? I think that's really not the intended use-case. To my mind this is for unit-testing: ensuring that a given rtl pass performs the expected transformation on

Re: [PATCH, RFC] gcov: dump in a static dtor instead of in an atexit handler

2016-10-13 Thread Martin Liška
On 10/13/2016 03:46 PM, Rainer Orth wrote: > Hi Martin, > > sorry for the long delay: I've been extremely busy the last two weeks. Hello Never mind, still plenty of time before we'll release 7.1.0 :) > >> On 09/30/2016 02:31 PM, Rainer Orth wrote: >>> this would be i386-pc-solaris2.12. I'm no

Re: [PATCH, RFC] gcov: dump in a static dtor instead of in an atexit handler

2016-10-13 Thread Rainer Orth
Hi Martin, > Just running my previous example (priotity.c), I can see with -S: > > _GLOBAL__sub_D_00099_1_foo: > jmp __gcov_exit > .size _GLOBAL__sub_D_00099_1_foo, .-_GLOBAL__sub_D_00099_1_foo > .section.fini_array.00099,"aw" > .align 4 > .long _GLOBA

Re: [PATCH] Tweaks to print_rtx_function

2016-10-13 Thread David Malcolm
On Thu, 2016-10-13 at 12:24 +0200, Bernd Schmidt wrote: > On 10/12/2016 11:04 PM, David Malcolm wrote: > > > > This patch implements: > > * the renumbering of non-virtual pseudos, using > > LAST_VIRTUAL_REGISTER + 1 as a base. > > * omitting the edge "(flags)" directive if there aren't any > >

Re: C++ PATCH for c++/77742 (-Waligned-new and placement new)

2016-10-13 Thread Christophe Lyon
Hi Jason, On 13 October 2016 at 10:54, Andreas Schwab wrote: > FAIL: g++.dg/cpp1z/aligned-new7.C (test for excess errors) > Excess errors: > /daten/aranym/gcc/gcc-20161013/gcc/testsuite/g++.dg/cpp1z/aligned-new7.C:13:41: > warning: requested alignment 8 is larger than 2 [

Re: [PATCH] Tweaks to print_rtx_function

2016-10-13 Thread Bernd Schmidt
On 10/13/2016 04:08 PM, David Malcolm wrote: I thought it might be useful to brainstorm [1] some ideas on this, so here are various possible ways it could be printed for this use-case: * Offset by LAST_VIRTUAL_REGISTER + 1 (as in the patch), and printed just as a number, giving: (reg:SI 3)

[PATCH] Replace non-constexpr decrement in std::chrono::floor

2016-10-13 Thread Jonathan Wakely
Decrementing a duration is not constexpr (yet ... I made an NB comment about it). I'm not sure if these functions are correct for floating-point durations, because we could end up with a duration which is very very slightly lower of higher than the desired value, but then we subtract 1.0 from it.

Re: [PATCH, RFC] gcov: dump in a static dtor instead of in an atexit handler

2016-10-13 Thread Martin Liška
On 10/13/2016 04:04 PM, Rainer Orth wrote: > no, it's from r240990 unlike I'm completely mistaken. However, current > trunk bootstraps are running as we speak. > > Rainer Good! How does it look with the former solaris targets that does not support prioritized ctors? Thanks, Martin

Re: [PATCH] Replace non-constexpr decrement in std::chrono::floor

2016-10-13 Thread Jonathan Wakely
On 13/10/16 15:24 +0100, Jonathan Wakely wrote: Decrementing a duration is not constexpr (yet ... I made an NB comment about it). I'm not sure if these functions are correct for floating-point durations, because we could end up with a duration which is very very slightly lower of higher than the

Re: [PATCH, RFC] gcov: dump in a static dtor instead of in an atexit handler

2016-10-13 Thread Rainer Orth
Hi Martin, > Good! How does it look with the former solaris targets that does not support > prioritized ctors? still no failures there, neither with ld (which lacks constructor priority support) nor with gld (which has it). Only Solaris 12 shows the failures, both with ld and gld (both of which

Re: [PATCH, RFC] gcov: dump in a static dtor instead of in an atexit handler

2016-10-13 Thread Martin Liška
On 10/13/2016 04:31 PM, Rainer Orth wrote: > Hi Martin, > >> Good! How does it look with the former solaris targets that does not support >> prioritized ctors? > > still no failures there, neither with ld (which lacks constructor > priority support) nor with gld (which has it). Only Solaris 12 s

Re: [PATCH] Introduce -Wimplicit-fallthrough={0,1,2,3,4,5}

2016-10-13 Thread Allan Sandfeld Jensen
On Tuesday 11 October 2016, Jakub Jelinek wrote: > Hi! > > The following patch introduces difference warning levels for > -Wimplicit-fallthrough warning, so projects can choose if they want to > honor only attributes (-Wimplicit-fallthrough=5), or what kind of comments. > =4 is very picky and acce

Re: [patch, avr, pr71676 and pr71678] Issues with casesi expand

2016-10-13 Thread Georg-Johann Lay
On 13.10.2016 13:44, Pitchumani Sivanupandi wrote: On Monday 26 September 2016 08:19 PM, Georg-Johann Lay wrote: On 26.09.2016 15:19, Pitchumani Sivanupandi wrote: Attached patch for PR71676 and PR71678. PR71676 is for AVR target that generates wrong code when switch case index is more than 16

Re: [patch] aarch64-*-freebsd* support for gcc.

2016-10-13 Thread Jeff Law
On 10/12/2016 01:43 PM, Andreas Tobler wrote: libgcc: 2016-10-10 Andreas Tobler * config.host: Add support for aarch64-*-freebsd*. gcc: 2016-10-10 Andreas Tobler * config.gcc: Add aarch64-*-freebsd* support. * config.host: Likewise. * config/aarch64/aarch64-freebsd.h:

[PATCH] Create the *logue in the same order as before (PR77962)

2016-10-13 Thread Segher Boessenkool
PR77962 shows Go failing on 32-bit x86. This happens because the i386 port requires the split stack prologue to be created before the normal prologue, and my previous patch changed it to be the other way around. This patch changes it back. Things will be exactly as before for targets that do not

[PATCH, libfortran] PR 48587 Newunit allocator

2016-10-13 Thread Janne Blomqvist
Currently GFortran newer reuses unit numbers allocated with NEWUNIT=, instead having a simple counter that is decremented each time such a unit is opened. For a long running program which repeatedly opens files with NEWUNIT= and closes them, the counter can wrap around and cause an abort. This pa

[PATCH] Omit INSN_LOCATION from compact dumps

2016-10-13 Thread David Malcolm
On Thu, 2016-10-13 at 12:21 +0200, Bernd Schmidt wrote: > On 10/12/2016 10:37 PM, David Malcolm wrote: > > It didn't pass, due to this change: > > > > (print_rtx_operand_code_i): When printing source locations, > > wrap > > xloc.file in quotes. [...snip...] > [...] > > The following is a

gcc-patches@gcc.gnu.org

2016-10-13 Thread Jeff Law
On 10/12/2016 02:48 AM, Richard Biener wrote: On Tue, Oct 11, 2016 at 11:34 PM, Marc Glisse wrote: On Tue, 11 Oct 2016, Bin Cheng wrote: We missed folding (convert)(X op const) -> (convert)X op (convert)const for unsigned narrowing because of reason reported at https://gcc.gnu.org/ml/gcc/2016

[PATCH] Check \0-termination of string in c_getstr (simplified version)

2016-10-13 Thread Martin Liška
Hello. After receiving feedback from Richi and Wilco Dijkstra, I decided to fully not support not null-terminated strings. It brings more complications and the code has started to be overengineered. Thus c_getstr accepts only such strings and as a bonus it returns length of a string. Patch can

[PATCH] Fold __builtin_str{n}{case}cmp functions (simplified version 4)

2016-10-13 Thread Martin Liška
Simplified version that just supports only null-terminated strings. Patch can bootstrap on ppc64le-redhat-linux and survives regression tests. Ready to be installed? Martin >From 41c49024a02cff43774903206ad77b2ae161e81a Mon Sep 17 00:00:00 2001 From: marxin Date: Thu, 13 Oct 2016 10:25:25 +0200 S

[PATCH] Fold __builtin_memchr (simplified version 4)

2016-10-13 Thread Martin Liška
Simplified version that supports only valid null-terminated string constants. Apart from that, I added checking for constant folding of expressions that have side effects. Patch can bootstrap on ppc64le-redhat-linux and survives regression tests. Ready to be installed? Martin >From 5028bf5cf23cda

[PATCH] Test folding of str{n}{case}cmp and memchr (simplified version 4)

2016-10-13 Thread Martin Liška
Simplified version of tests, where I added tests for side effects. Patch can bootstrap on ppc64le-redhat-linux and survives regression tests. Ready to be installed? Martin >From 83da10e2bd4f4e36028ca33d7d3a0472e8b46d7a Mon Sep 17 00:00:00 2001 From: marxin Date: Tue, 16 Aug 2016 15:56:01 +0200 S

[PATCH] Introduce -fprofile-update=maybe-atomic

2016-10-13 Thread Martin Liška
Hello. As it's very hard to guess from GCC driver whether a target supports atomic updates for GCOV counter or not, I decided to come up with a new option value (maybe-atomic), that would be transformed in a corresponding value (single or atomic) in tree-profile.c. The GCC driver selects the op

[PATCH, GCC/ARM 1/2] Add multilib support for embedded bare-metal targets

2016-10-13 Thread Thomas Preudhomme
Hi ARM maintainers, This patchset aims at adding multilib support for R and M profile ARM architectures and allowing it to be built alongside multilib for A profile ARM architectures. This specific patch adds the t-rmprofile multilib Makefile fragment for the former objective. Multilib are bui

[PATCH] Fix PR77937

2016-10-13 Thread Bill Schmidt
The previous patch for https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77937 is necessary, but not sufficient in all cases. It allows -1 to be used with a pointer increment, which we really do not want given that this is generally not profitable. Disable this case for now. We can add logic later to

[PATCH, GCC/ARM 2/2] Allow combination of aprofile and rmprofile multilibs

2016-10-13 Thread Thomas Preudhomme
Hi ARM maintainers, This patchset aims at adding multilib support for R and M profile ARM architectures and allowing it to be built alongside multilib for A profile ARM architectures. This specific patch is concerned with the latter. The patch works by moving the bits shared by both aprofile a

[Fortran, patch, caf] Add unimplemented message for polymorphic objects with allocatable/pointer components

2016-10-13 Thread Andre Vehreschild
Hi all, attached patch adds an unimplemented message, when a polymorphic coarray object with allocatable/pointer components is declared for coarray mode library. This is just an ad-hoc solution until handling those constructs is implemented. There are already some prs that address ICEs caused by t

[PATCH] Use normal mode containers in searchers

2016-10-13 Thread Jonathan Wakely
We never want the searchers to use the debug mode or profile mode containers. * include/experiumental/functional (boyer_moore_searcher) (__boyer_moore_map_base, __boyer_moore_array_base): Qualify containers with _GLIBCXX_STD_C. * include/std/functional: Likewise.

Re: [PATCH] Omit INSN_LOCATION from compact dumps

2016-10-13 Thread Bernd Schmidt
On 10/13/2016 05:52 PM, David Malcolm wrote: Alternatively, it seems that we might want an additional flag for this. Probably - I imagine most testcases won't care (it's obviously easier to read without locations) but some will. The writing side is maybe less interesting than the reading sid

[PATCH] DWARF: make signedness explicit for enumerator const values

2016-10-13 Thread Pierre-Marie de Rodat
Hello, Currently, the DWARF description does not specify the signedness of the representation of enumeration types. This is a problem in some contexts where DWARF consumers need to determine if value X is greater than value Y. For instance in Ada: type Enum_Type is ( A, B, C, D); for En

Re: [PATCH] - improve sprintf buffer overflow detection (middle-end/49905)

2016-10-13 Thread Martin Sebor
No worries: I've refreshed your patch on top of Thomas Preud'homme's for PR testsuite/77710 and found that one more bit is needed to fix this completely. 32-bit Solaris shows three more warnings: /vol/gcc/src/hg/trunk/local/gcc/testsuite/gcc.dg/tree-ssa/builtin-sprintf-warn-1.c:1355:3: warning:

Go patch committed: don't get backend version of redefinition

2016-10-13 Thread Ian Lance Taylor
This patch to the Go frontend changes it to not try to get the backend version of a redefinition. A redefinition is an error anyhow, and getting the backend version can cause the compiler to crash as it walks over a list of statements for the second time. No test case added as I don't think it's

[PATCH] Change test to use VERIFY not assert

2016-10-13 Thread Jonathan Wakely
This used to pass because included , but it doesn't now. The test wasn't failing because the stdc++.h PCH included , but it fails without PCH. * testsuite/26_numerics/random/default_random_engine.cc: Use VERIFY instead of assert. Tested x86_64-linux, committed to trunk. commit

[PATCH] Qualify use of std::declval to avoid ADL

2016-10-13 Thread Jonathan Wakely
* include/experimental/propagate_const (element_type): Qualify declval. Tested x86_64-linux, committted to trunk. commit 1df5cda6740d67ac7074fbbf03178d25b45549bb Author: Jonathan Wakely Date: Thu Oct 13 17:39:18 2016 +0100 Qualify use of std::declval to avoid ADL

Re: [PATCH] Create the *logue in the same order as before (PR77962)

2016-10-13 Thread Segher Boessenkool
On Thu, Oct 13, 2016 at 03:15:37PM +, Segher Boessenkool wrote: > Bootstrapping+testing on powerpc64-linux {-m64,-m32}, all languages; > and on x86_64-linux all,go,obj-c++ (i.e. no ada). > > Is this okay for trunk if testing succeeds? And sorry for the breakage. No new failures for either.

[PATCH] Add missing header in testcase

2016-10-13 Thread Jonathan Wakely
Another one that fails without PCH. * testsuite/experimental/algorithm/sample.cc: Add missing header. Tested x86_64-linux, committed to trunk. commit b6ba4386fc81777bd4a06b2807b03b38f7f85d76 Author: Jonathan Wakely Date: Thu Oct 13 17:42:03 2016 +0100 Add missing header in test

[PATCH] Avoid #include in other headers

2016-10-13 Thread Jonathan Wakely
The header is pretty large, especially in C++17 mode because the searchers include and . This tweaks other headers to avoid including it unnecessarily. We could reduce things much further by splitting std::function and std::reference_wrapper into their own headers, which I'm working on. This ki

[PATCH][AArch64] Use new target pass registration framework for FMA steering pass

2016-10-13 Thread Kyrill Tkachov
Hi all, This patch moves the aarch64-specific FMA steering pass registration into the new framework that Jakub introduced. With this patch the RTL dump for the steering pass is now numbered properly so that it appears after the regrename pass, rather than getting a dump number that puts it aft

Re: [PATCH, libfortran] PR 48587 Newunit allocator

2016-10-13 Thread Jerry DeLisle
On 10/13/2016 08:16 AM, Janne Blomqvist wrote: Currently GFortran newer reuses unit numbers allocated with NEWUNIT=, instead having a simple counter that is decremented each time such a unit is opened. I am going to have to study this a bit. After I added the newunit stack, the units are reuse

Re: [ping * 2] remove optab functions for [us]divmod_optab in optabs.def

2016-10-13 Thread Prathamesh Kulkarni
On 13 October 2016 at 16:56, Bernd Schmidt wrote: > On 10/06/2016 07:43 AM, Prathamesh Kulkarni wrote: >> >> Pinging patch: https://gcc.gnu.org/ml/gcc-patches/2016-09/msg01038.html > > > If I understand correctly this is a latent issue where nonexistant libfunc > names are stored (but not currentl

Re: [ping * 2] remove optab functions for [us]divmod_optab in optabs.def

2016-10-13 Thread Bernd Schmidt
On 10/13/2016 07:18 PM, Prathamesh Kulkarni wrote: On 13 October 2016 at 16:56, Bernd Schmidt wrote: On 10/06/2016 07:43 AM, Prathamesh Kulkarni wrote: Pinging patch: https://gcc.gnu.org/ml/gcc-patches/2016-09/msg01038.html If I understand correctly this is a latent issue where nonexistant

[committed, arm, testsuite] fix dg-skip-if logic in Xscale-specific tests

2016-10-13 Thread Sandra Loosemore
I noticed that two Xscale-specific tests, gcc.target/arm/scd42-1.c and gcc.target/arm/scd42-2.c, were incorrectly being run in test configurations explicitly specifying some other incompatible -mcpu. The similar test gcc.target/arm/scd42-3.c was correctly being skipped in that case, so I copie

[PATCH] Remove a few -Wno-error from Makefile.in

2016-10-13 Thread Marek Polacek
I thought I had already done this, but apparently not. I added these because of -Wimplicit-fallthrough, but they're no longer needed, so remove it to not suppress any possible useful warnings. Bootstrapped/regtested on x86_64-linux, ppc64-linux and aarch64-linux, ok for trunk? 2016-10-13 Marek

Re: [PATCH] Create the *logue in the same order as before (PR77962)

2016-10-13 Thread Jeff Law
On 10/13/2016 09:15 AM, Segher Boessenkool wrote: PR77962 shows Go failing on 32-bit x86. This happens because the i386 port requires the split stack prologue to be created before the normal prologue, and my previous patch changed it to be the other way around. This patch changes it back. Thin

Re: [PATCH] Remove a few -Wno-error from Makefile.in

2016-10-13 Thread Jeff Law
On 10/13/2016 12:09 PM, Marek Polacek wrote: I thought I had already done this, but apparently not. I added these because of -Wimplicit-fallthrough, but they're no longer needed, so remove it to not suppress any possible useful warnings. Bootstrapped/regtested on x86_64-linux, ppc64-linux and a

Re: [PATCH] Remove a few -Wno-error from Makefile.in

2016-10-13 Thread Bernd Schmidt
On 10/13/2016 08:09 PM, Marek Polacek wrote: I thought I had already done this, but apparently not. I added these because of -Wimplicit-fallthrough, but they're no longer needed, so remove it to not suppress any possible useful warnings. Bootstrapped/regtested on x86_64-linux, ppc64-linux and

Re: RFC: Split into smaller pieces

2016-10-13 Thread Jonathan Wakely
On 13/10/16 18:34 +0100, Jonathan Wakely wrote: Code which doesn't need the whole of should include the relevant header instead. This means that we don't need to pull the whole of (and and ) into just because shared_ptr wants to use reference_wrapper in one place. This reduces from 48kloc

Re: [PATCH] PR68212, Correct frequencies/counts when unrolling

2016-10-13 Thread Jeff Law
On 09/20/2016 03:27 PM, Pat Haugen wrote: The following patch corrects frequency/count values computed when generating the switch blocks/peeled loop copies before the loop. The two main problem areas were for the peeled copies duplicate_loop_to_header_edge was not using the preheader frequency

Re: [PATCH] Don't peel extra copy of loop in unroller for loops with exit at end

2016-10-13 Thread Jeff Law
On 09/22/2016 01:10 PM, Pat Haugen wrote: I noticed the loop unroller peels an extra copy of the loop before it enters the switch block code to round the iteration count to a multiple of the unroll factor. This peeled copy is only needed for the case where the exit test is at the beginning of

  1   2   >