Re: [PATCH] Remove unused libgfortran functions

2016-12-20 Thread Janne Blomqvist
On Tue, Dec 20, 2016 at 11:31 AM, FX wrote: >> I don't understand. Why would it imply a 1:1 mapping of release series >> with major ABI versions? > > OK, I thought you meant to map libgfortran version numbers (libgfortran.so.7 > with GCC 7). If it’s the gfortran.map node

Re: [C PATCH] Fix handling side-effects of parameters (PR c/77767)

2016-12-20 Thread Joseph Myers
On Tue, 20 Dec 2016, Jakub Jelinek wrote: > Hi! > > We only record side-effects from the last parameter, the following patch > fixes that by accumulating them from all the parameters. I've checked all > the callers of grokdeclarator and grokdeclarator is always called with expr > either

Re: [PATCH v4] Run tests only if the machine supports the instruction set.

2016-12-20 Thread Jakub Jelinek
On Tue, Dec 20, 2016 at 10:26:13PM +0100, Dominik Vogt wrote: > On Tue, Dec 20, 2016 at 11:57:52AM -0800, Mike Stump wrote: > > On Dec 20, 2016, at 6:10 AM, Dominik Vogt wrote: > > > Right, it gets called even more often than one would think, and > > > even with empty

[i386] New lea patterns for PR71321

2016-12-20 Thread Bernd Schmidt
The problem here is that we don't have complete coverage of lea patterns for HImode/QImode: the combiner can't recognize a (plus (ashift reg 2) reg) pattern it builds. My first idea was to canonicalize ASHIFT by constant inside PLUS to MULT. The docs say that this is done only inside a MEM

Re: [PATCH v4] Run tests only if the machine supports the instruction set.

2016-12-20 Thread Dominik Vogt
On Tue, Dec 20, 2016 at 11:57:52AM -0800, Mike Stump wrote: > On Dec 20, 2016, at 6:10 AM, Dominik Vogt wrote: > > Right, it gets called even more often than one would think, and > > even with empty torture_current_options. The attached new patch > > (v3) removes -Ox

[C PATCH] Fix handling side-effects of parameters (PR c/77767)

2016-12-20 Thread Jakub Jelinek
Hi! We only record side-effects from the last parameter, the following patch fixes that by accumulating them from all the parameters. I've checked all the callers of grokdeclarator and grokdeclarator is always called with expr either pointing to NULL_TREE, or being NULL, or where we want the

[v3 PATCH] Implement 2801, Default-constructibility of unique_ptr.

2016-12-20 Thread Ville Voutilainen
Tested on Linux-x64. The issue doesn't have a proposed resolution yet, so we can certainly wait with this, but I have an inkling that this implementation is what the proposed resolution must say. :) 2016-12-20 Ville Voutilainen Implement 2801,

Re: [PATCH] Optimize X << Y with low bits of Y known to be 0 (PR tree-optimization/71563)

2016-12-20 Thread Jakub Jelinek
On Tue, Dec 20, 2016 at 09:30:17PM +0100, Marc Glisse wrote: > would it make sense to extend it to rotates later? I wasn't 100% sure if rotates also require 0..prec-1 rotate counts, or if they accept arbitrary ones. > Note that you can write (shift @0 SSA_NAME@1) in the pattern instead of a >

Re: [PATCH] Optimize X << Y with low bits of Y known to be 0 (PR tree-optimization/71563)

2016-12-20 Thread Marc Glisse
On Tue, 20 Dec 2016, Jakub Jelinek wrote: If the shift count has enough known zero low bits (non-zero bits only above the ceil_log2 (precision)), then the only valid shift count that is not out of bounds is 0, so we can as well fold it into the first argument of the shift. This resolves a

Re: [PR c++/78572] handle array self references in intializers

2016-12-20 Thread Nathan Sidwell
On 12/20/2016 01:52 PM, Aldy Hernandez wrote: int array[10] = { array[3]=5, 0x111, 0x222, 0x333 }; (gdb) x/4x 0x601040 : 0x0005 0x0111 0x0222 0x0005 That is, the array[3]=5 overwrites the last 0x333. I would expect that... That may be wrong. Using the 4431

Re: [PATCH v3] Run tests only if the machine supports the instruction set.

2016-12-20 Thread Mike Stump
On Dec 20, 2016, at 6:10 AM, Dominik Vogt wrote: > Right, it gets called even more often than one would think, and > even with empty torture_current_options. The attached new patch > (v3) removes -Ox options and superflous whitespace and caches that > between calls if

[PATCH] Optimize X << Y with low bits of Y known to be 0 (PR tree-optimization/71563)

2016-12-20 Thread Jakub Jelinek
Hi! If the shift count has enough known zero low bits (non-zero bits only above the ceil_log2 (precision)), then the only valid shift count that is not out of bounds is 0, so we can as well fold it into the first argument of the shift. This resolves a regression introduced by partly optimizing

[C++ PATCH] Error on shadowing a parameter by anon union member in the same scope (PR c++/72707)

2016-12-20 Thread Jakub Jelinek
Hi! DECL_ANON_UNION_VAR_P vars are DECL_ARTIFICIAL, but we still to diagnose them if they shadow something. The DECL_ARTIFICIAL (x) check has been missing in older gcc releases, so we diagnosed that properly. Bootstrapped/regtested on x86_64-linux and i686-linux, ok for trunk? 2016-12-20

[PATCH] Don't bootstrap libmpx unless needed

2016-12-20 Thread Jakub Jelinek
Hi! Similarly how we deal with bootstrapping libsanitizer only when doing bootstrap-{a,u}san bootstrap, this avoids bootstrapping libmpx if we don't need it for bootstrapping. Bootstrapped/regtested on x86_64-linux and i686-linux, ok for trunk? 2016-12-20 Jakub Jelinek

[PATCH] Replace DW_FORM_ref_sup with DW_FORM_ref_sup{4,8}

2016-12-20 Thread Jakub Jelinek
Hi! Recently DW_FORM_ref_sup (which is meant e.g. for dwz, gcc doesn't emit it) has been renamed to DW_FORM_ref_sup4 (and changed so that it is always 4 byte) and DW_FORM_ref_sup8 (always 8 byte) has been added. Bootstrapped/regtested on x86_64-linux and i686-linux, ok for trunk? 2016-12-20

Re: [PR c++/78572] handle array self references in intializers

2016-12-20 Thread Aldy Hernandez
On 12/20/2016 11:48 AM, Nathan Sidwell wrote: On 12/20/2016 11:25 AM, Aldy Hernandez wrote: The problem in this PR is that we're trying to initialize an array with members of itself: Jakub has even gone further to show that for the following: ... = { array[3]=5, array[7]=3, array[7]=8,

Re: [PATCH, ARM] Further improve stack usage in sha512, part 2 (PR 77308)

2016-12-20 Thread Bernd Edlinger
On 12/20/16 16:09, Wilco Dijkstra wrote: > Bernd Edlinger wrote: >> this splits the *arm_negdi2, *arm_cmpdi_insn and *arm_cmpdi_unsigned >> also at split1 except for TARGET_NEON and TARGET_IWMMXT. >> >> In the new test case the stack is reduced to about 270 bytes, except >> for neon and iwmmxt,

Re: [PATCH, testsuite] Add -fno-sched-pressure to a couple sms-*.c tests for powerpc

2016-12-20 Thread Segher Boessenkool
On Tue, Dec 20, 2016 at 11:26:02AM -0600, Pat Haugen wrote: > gcc.dg/sms-3.c and gcc.dg/sms-6.c fail on powerpc when -fsched-pressure is > used. The -fsched-pressure option changes the value returned by > rs6000_issue_rate which in turn affects the computed initiation interval in > the SMS code

Re: [PR tree-optimization/71691] Fix unswitching in presence of maybe-undef SSA_NAMEs (take 2)

2016-12-20 Thread Richard Biener
On December 20, 2016 4:50:25 PM GMT+01:00, Jeff Law wrote: >On 12/20/2016 07:16 AM, Richard Biener wrote: >> >> it should be already set as we use visited_ssa as "was it ever on the >worklist", >> so maybe renaming it would be a good thing as well. >> >> + if

Re: [PATCH][tree-ssa-address] Use simplify_gen_binary in gen_addr_rtx

2016-12-20 Thread Richard Biener
On December 20, 2016 5:01:19 PM GMT+01:00, Kyrill Tkachov wrote: >Hi all, > >The testcase in this patch generates bogus assembly for arm with -O1 >-mfloat-abi=soft: >strdr4, [#0, r3] > >This is due to non-canonical RTL being generated during expansion:

[PATCH,rs6000] Fix PR11488 for rs6000 target

2016-12-20 Thread Pat Haugen
This patch attempts to fix problems with the first scheduling pass creating too much register pressure. It does this by enabling the target hook to compute the pressure classes for rs6000 target since the first thing I observed while investigating the testcase in the subject PR is that IRA was

[PATCH, testsuite] Add -fno-sched-pressure to a couple sms-*.c tests for powerpc

2016-12-20 Thread Pat Haugen
gcc.dg/sms-3.c and gcc.dg/sms-6.c fail on powerpc when -fsched-pressure is used. The -fsched-pressure option changes the value returned by rs6000_issue_rate which in turn affects the computed initiation interval in the SMS code and leads to failure to modulo schedule the single loop in sms-3.c

Re: [PATCH][gimplefe] Improve error recovery

2016-12-20 Thread Joseph Myers
On Tue, 20 Dec 2016, Richard Biener wrote: > Just noticed a few issues when feeding the GIMPLE FE random -gimple > dumps. On errors not skipping to expected tokens leads to a load > of strange followup parsing errors and worse, to endless parsing > attempts in one case. > > Fixed with the

Re: [PR c++/78572] handle array self references in intializers

2016-12-20 Thread Nathan Sidwell
On 12/20/2016 11:25 AM, Aldy Hernandez wrote: The problem in this PR is that we're trying to initialize an array with members of itself: Jakub has even gone further to show that for the following: ... = { array[3]=5, array[7]=3, array[7]=8, array[7] = 9 }; things get even worse, because

[ARM][committed] Fix for PR78255-2.c testism for targets that do not optimize for tailcall

2016-12-20 Thread Andre Vieira (lists)
On 12/12/16 09:04, Christophe Lyon wrote: >> > > The new test (gcc.target/arm/pr78255-2.c scan-assembler b\\s+bar) > added at r243494 fails on old arm architectures, such as: > * arm-none-linux-gnueabi, forcing -march=armv5t in runtestflags > * arm-none-eabi with default cpu/fpu/mode > >

[PR c++/78572] handle array self references in intializers

2016-12-20 Thread Aldy Hernandez
The problem in this PR is that we're trying to initialize an array with members of itself: int array[10] = { array[3]=5, array[7]=3 }; The C++ front-end, in store_init_value() via cxx_constant_value() and friends will transform: {array[3] = 5, array[7] = 3} into:

Re: [PATCH] PR 78534 Change character length from int to size_t

2016-12-20 Thread Jakub Jelinek
On Tue, Dec 20, 2016 at 05:04:54PM +0100, Andre Vehreschild wrote: > Well, then how about: > > #define gfc_size_t_zero_node build_int_cst (size_type_node, 0) > > We can't get any faster and for new and old gfortran-hackers one identifier's > meaning is faster to grasp than two's. Such macros

Re: [PATCH, Fortran, alloc_poly, v2] Fix allocation of memory for polymorphic assignment

2016-12-20 Thread Andre Vehreschild
Hi Janus, > 1) After adding that code block in gfc_trans_assignment_1, it seems > like the comment above is outdated, right? Thanks for noting. > 2) Wouldn't it be better to move this block, which does the correct > allocation for CLASS variables, into >

Re: [Patch] Turn -fexcess-precision=fast on when in -ffast-math

2016-12-20 Thread Sandra Loosemore
On 12/20/2016 05:14 AM, James Greenhalgh wrote: On Tue, Dec 20, 2016 at 11:48:26AM +0100, Richard Biener wrote: On Mon, Dec 19, 2016 at 6:58 PM, James Greenhalgh wrote: On Thu, Dec 8, 2016 at 10:44 PM, Uros Bizjak wrote: Hello! Attached patch

Re: [PATCH] PR 78534 Change character length from int to size_t

2016-12-20 Thread Andre Vehreschild
On Tue, 20 Dec 2016 16:40:13 +0100 Jakub Jelinek wrote: > On Tue, Dec 20, 2016 at 04:29:07PM +0100, Andre Vehreschild wrote: > > > The first one is GCC internal type for representing sizes, the latter is > > > the C size_t (usually they have the same precision, they always

[PATCH][tree-ssa-address] Use simplify_gen_binary in gen_addr_rtx

2016-12-20 Thread Kyrill Tkachov
Hi all, The testcase in this patch generates bogus assembly for arm with -O1 -mfloat-abi=soft: strdr4, [#0, r3] This is due to non-canonical RTL being generated during expansion: (set (mem:DI (plus:SI (const_int 0 [0]) (reg/f:SI 153)) [0 MEM[symbol: a, index: _26,

Re: [PR tree-optimization/71691] Fix unswitching in presence of maybe-undef SSA_NAMEs (take 2)

2016-12-20 Thread Jeff Law
On 12/20/2016 07:16 AM, Richard Biener wrote: it should be already set as we use visited_ssa as "was it ever on the worklist", so maybe renaming it would be a good thing as well. + if (TREE_CODE (name) == SSA_NAME) + { + /* If an SSA has already been

Re: [PATCH] PR 78534 Change character length from int to size_t

2016-12-20 Thread Jakub Jelinek
On Tue, Dec 20, 2016 at 04:29:07PM +0100, Andre Vehreschild wrote: > > The first one is GCC internal type for representing sizes, the latter is > > the C size_t (usually they have the same precision, they always have the > > same signedness (unsigned)). > > In the past sizetype actually has been a

Re: [PATCH] PR 78534 Change character length from int to size_t

2016-12-20 Thread Andre Vehreschild
On Tue, 20 Dec 2016 16:00:19 +0100 Jakub Jelinek wrote: > On Tue, Dec 20, 2016 at 04:55:29PM +0200, Janne Blomqvist wrote: > > On Tue, Dec 20, 2016 at 3:42 PM, Andre Vehreschild wrote: > > > Hi all, > > > > > >> I think you should use

Re: [PATCH, ARM] Further improve stack usage in sha512, part 2 (PR 77308)

2016-12-20 Thread Wilco Dijkstra
Bernd Edlinger wrote: > this splits the *arm_negdi2, *arm_cmpdi_insn and *arm_cmpdi_unsigned > also at split1 except for TARGET_NEON and TARGET_IWMMXT. > > In the new test case the stack is reduced to about 270 bytes, except > for neon and iwmmxt, where this does not change anything. This looks

Re: [PATCH] PR 78534 Change character length from int to size_t

2016-12-20 Thread Jakub Jelinek
On Tue, Dec 20, 2016 at 04:55:29PM +0200, Janne Blomqvist wrote: > On Tue, Dec 20, 2016 at 3:42 PM, Andre Vehreschild wrote: > > Hi all, > > > >> I think you should use build_zero_cst(size_type_node) instead of > >> size_zero_node as size_zero_node is of type sizetype which is not

Re: [PATCH] Use the middle-end boolean_type_node

2016-12-20 Thread Steve Kargl
Thought I gave an 'ok', but apparently never sent email. Sorry about that. Yes, ok to commit. -- steve On Tue, Dec 20, 2016 at 04:56:51PM +0200, Janne Blomqvist wrote: > PING! > > On Tue, Dec 13, 2016 at 10:59 PM, Janne Blomqvist > wrote: > > Use the

Re: [PATCH] Use the middle-end boolean_type_node

2016-12-20 Thread Janne Blomqvist
PING! On Tue, Dec 13, 2016 at 10:59 PM, Janne Blomqvist wrote: > Use the boolean_type_node setup by the middle-end instead of > redefining it. boolean_type_node is not used in GFortran for any > ABI-visible stuff, only internally as the type of boolean > expressions.

Re: [PATCH] PR 78534 Change character length from int to size_t

2016-12-20 Thread Janne Blomqvist
On Tue, Dec 20, 2016 at 3:42 PM, Andre Vehreschild wrote: > Hi all, > >> I think you should use build_zero_cst(size_type_node) instead of >> size_zero_node as size_zero_node is of type sizetype which is not the >> same as size_type_node. Otherwise looks good. > > In the software

Re: [PATCH] Fix IPA CP where it forgot to add a reference in cgraph

2016-12-20 Thread Martin Liška
On 12/20/2016 11:06 AM, Martin Jambor wrote: > ...this test should be for ADDR_EXPR here. Or you could switch the > IPA_REF_* constants the other way round which I bet is going to have > the same effect in practice, but personally, I'd test for ADDR_EXPR. Thanks for the note, fixed (and tested

Re: Pointer Bounds Checker and trailing arrays (PR68270)

2016-12-20 Thread Alexander Ivchenko
2016-11-26 0:28 GMT+03:00 Ilya Enkovich : > 2016-11-25 15:47 GMT+03:00 Alexander Ivchenko : >> Hi, >> >> The patch below addresses PR68270. could you please take a look? >> >> 2016-11-25 Alexander Ivchenko >> >>*

Re: [PATCH] [PR rtl-optimization/65618] Fix MIPS ADA bootstrap failure

2016-12-20 Thread James Cowgill
Hi, On 19/12/16 21:43, Jeff Law wrote: > On 12/19/2016 08:44 AM, James Cowgill wrote: >> 2016-12-16 James Cowgill >> >> PR rtl-optimization/65618 >> * emit-rtl.c (try_split): Update "after" when moving a >> NOTE_INSN_CALL_ARG_LOCATION. >> >> diff --git

Re: [PR tree-optimization/71691] Fix unswitching in presence of maybe-undef SSA_NAMEs (take 2)

2016-12-20 Thread Richard Biener
On Fri, Dec 16, 2016 at 3:41 PM, Aldy Hernandez wrote: > Hi folks. > > This is a follow-up on Jeff and Richi's interaction on the aforementioned PR > here: > > https://gcc.gnu.org/ml/gcc-patches/2016-08/msg01397.html > > I decided to explore the idea of analyzing

Re: [PATCH v3] Run tests only if the machine supports the instruction set.

2016-12-20 Thread Dominik Vogt
On Tue, Dec 20, 2016 at 11:32:58AM +0100, Jakub Jelinek wrote: > On Tue, Dec 20, 2016 at 11:22:47AM +0100, Dominik Vogt wrote: > > On Mon, Dec 19, 2016 at 06:00:21PM +0100, Jakub Jelinek wrote: > > > On Mon, Dec 19, 2016 at 05:50:40PM +0100, Dominik Vogt wrote: > > > > *

Re: [PATCH] PR 78534 Change character length from int to size_t

2016-12-20 Thread Andre Vehreschild
Hi all, > I think you should use build_zero_cst(size_type_node) instead of > size_zero_node as size_zero_node is of type sizetype which is not the > same as size_type_node. Otherwise looks good. In the software design classes I took this was called a design error: Not choosing sufficiently

Re: [PATCH v3] add -fprolog-pad=N,M option

2016-12-20 Thread Maxim Kuvyrkov
> On Dec 19, 2016, at 6:04 PM, Bernd Schmidt wrote: > > I'll consider myself agnostic as to whether this is a feature we want or need, Hi Bernd, thanks for reviewing this! Regarding the usefulness of this feature, it has been discussed here (2 years ago):

Re: [Patch] Turn -fexcess-precision=fast on when in -ffast-math

2016-12-20 Thread James Greenhalgh
On Tue, Dec 20, 2016 at 11:48:26AM +0100, Richard Biener wrote: > On Mon, Dec 19, 2016 at 6:58 PM, James Greenhalgh > wrote: > > > >> On Thu, Dec 8, 2016 at 10:44 PM, Uros Bizjak wrote: > >> > Hello! > >> > > >> > Attached patch fixes fall-out from

Re: [Ada] Fix PR ada/78845

2016-12-20 Thread Arnaud Charlet
> The function Ada.Numerics.Generic_Real_Arrays.Inverse is required > (ARM G.3.1(72)) to return a matrix with the bounds of the dimension indices > swapped, i.e. result'Range(1) == input'Range(2) and vice versa. The > present code gets result'Range(1) correct, but result'Range(2) always > starts

[PATCH] Speed-up use-after-scope (re-writing to SSA) (version 2)

2016-12-20 Thread Martin Liška
On 11/16/2016 05:28 PM, Jakub Jelinek wrote: > Otherwise LGTM, but please post the asan patch to llvm-commits > or through their web review interface. > > Jakub Ok, llvm folks are unwilling to accept the new API function, thus I've decided to come up with approach suggested by Jakub.

Re: [PATCH] Externalize definition of create_tmp_reg_or_ssa_name

2016-12-20 Thread Jakub Jelinek
On Tue, Dec 20, 2016 at 11:45:18AM +0100, Richard Biener wrote: > > I've bootstrapped and make check with this patch applied in conjunction with > > other patches. > > > > OK for trunk? > > Ok. > > Richard. > > > > > [gcc] > > > > 2016-12-19 Will Schmidt > > > >

Re: [PATCH] Fix assertions along default switch labels (PR tree-optimization/78819)

2016-12-20 Thread Richard Biener
On Fri, Dec 16, 2016 at 3:16 PM, Marek Polacek wrote: > On Fri, Dec 16, 2016 at 02:58:59PM +0100, Richard Biener wrote: >> On Fri, Dec 16, 2016 at 2:03 PM, Bernd Schmidt wrote: >> > On 12/16/2016 12:49 PM, Marek Polacek wrote: >> > >> >> But as this

Re: [Patch] Turn -fexcess-precision=fast on when in -ffast-math

2016-12-20 Thread Richard Biener
On Mon, Dec 19, 2016 at 6:58 PM, James Greenhalgh wrote: > >> On Thu, Dec 8, 2016 at 10:44 PM, Uros Bizjak wrote: >> > Hello! >> > >> > Attached patch fixes fall-out from excess-precision improvements >> > patch. As shown in the PR, the code

Re: [PATCH] Externalize definition of create_tmp_reg_or_ssa_name

2016-12-20 Thread Richard Biener
On Mon, Dec 19, 2016 at 6:27 PM, Will Schmidt wrote: > Hi, > > For some future rs6000 vector folding patches, I will be needing > access to the create_tmp_reg_or_ssa_name() function in rs6000.c. > Thus... > Externalize the definition of create_tmp_reg_or_ssa_name > for

Re: [PATCH] varasm: Propagate litpool decl alignment to generated RTX.

2016-12-20 Thread Richard Biener
On Fri, Dec 16, 2016 at 9:29 PM, Andreas Krebbel wrote: > When pushing a value into the literal pool the resulting decl might > get a higher alignment than the original expression depending on how a > target defines CONSTANT_ALIGNMENT. Generating an RTX for the

Re: [PATCH v2] Run tests only if the machine supports the instruction set.

2016-12-20 Thread Jakub Jelinek
On Tue, Dec 20, 2016 at 11:22:47AM +0100, Dominik Vogt wrote: > On Mon, Dec 19, 2016 at 06:00:21PM +0100, Jakub Jelinek wrote: > > On Mon, Dec 19, 2016 at 05:50:40PM +0100, Dominik Vogt wrote: > > > * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Define > > > __S390_ARCH_LEVEL__. > >

Re: [PATCH v2] Run tests only if the machine supports the instruction set.

2016-12-20 Thread Dominik Vogt
On Mon, Dec 19, 2016 at 06:00:21PM +0100, Jakub Jelinek wrote: > On Mon, Dec 19, 2016 at 05:50:40PM +0100, Dominik Vogt wrote: > > * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Define > > __S390_ARCH_LEVEL__. > > gcc/testsuite/ChangeLog-setmem > > > > *

Re: [PATCH] Fix IPA CP where it forgot to add a reference in cgraph

2016-12-20 Thread Martin Jambor
Hi, On Mon, Dec 19, 2016 at 11:09:52AM +0100, Martin Liska wrote: > Hello. > > Building mariadb with -flto exposes a bug which I also used to see > in Firefox. It's caused by IPA CP starting from r236418, where the > pass started to propagate const VAR_DECLs. Problem is that the pass > does not

Re: [PATCH][ARM] PR target/78694: Avoid invalid RTL sharing in minipool code

2016-12-20 Thread Ramana Radhakrishnan
On 09/12/16 14:03, Kyrill Tkachov wrote: Hi all, In this ICE GCC reports invalid RTL sharing in the pattern: (insn 955 954 956 (unspec_volatile [ (const:SI (unspec:SI [ (symbol_ref:SI ("a") [flags 0xe8] ) (const_int 4 [0x4])

Re: [PATCH] Remove unused libgfortran functions

2016-12-20 Thread FX
> I don't understand. Why would it imply a 1:1 mapping of release series > with major ABI versions? OK, I thought you meant to map libgfortran version numbers (libgfortran.so.7 with GCC 7). If it’s the gfortran.map node names, I’m happy with that indeed. Attached patch regtested on

Re: [PATCH][ARM] PR target/78694: Avoid invalid RTL sharing in minipool code

2016-12-20 Thread Sebastian Huber
Hello, it would be quite nice if someone could have a look at this since this breaks the GCC build with libgomp enabled for all Thumb-1 targets. On 16/12/16 16:20, Kyrill Tkachov wrote: Ping. https://gcc.gnu.org/ml/gcc-patches/2016-12/msg00849.html Thanks, Kyrill -- Sebastian Huber,

Re: [PATCH] PR 78534 Change character length from int to size_t

2016-12-20 Thread FX
Dear Bob, First, regarding the ABI vs. API question: there is no consistent API for how to pass between Fortran and C strings, unless one uses Fortran 2003’s ISO_C_BINDING. It’s an ABI detail, in the sense that every compiler will choose to do things their own way: most compilers who pass a

Re: [gimplefe] reject invalid pass name in startwith

2016-12-20 Thread Richard Biener
On Sun, 18 Dec 2016, Prathamesh Kulkarni wrote: > Hi Richard, > The attached patch attempts to reject invalid pass-name in startwith > and verified gimplefe tests pass with the patch (not sure if bootstrap > is required?) > Does it look OK ? No - get_pass_by_name works on dump file names while

[PATCH][gimplefe] Improve error recovery

2016-12-20 Thread Richard Biener
Just noticed a few issues when feeding the GIMPLE FE random -gimple dumps. On errors not skipping to expected tokens leads to a load of strange followup parsing errors and worse, to endless parsing attempts in one case. Fixed with the following. Bootstrap / regtest running together with the

Fix PR testsuite/71237

2016-12-20 Thread Eric Botcazou
This adds -fno-vect-cost-model to the 6 relevant testcases. Tested on x86_64-suse-linux, applied on the mainline. 2016-12-20 Eric Botcazou PR testsuite/71237 * gnat.dg/vect1.adb: Add -fno-vect-cost-model to dg-options. * gnat.dg/vect2.adb: