[Ada] Spurious range check with Initialize_Scalars

2018-05-25 Thread Pierre-Marie de Rodat
This patch modifies the expansion of default-initialized array objects when pragma Initialize_Scalars or Normalize_Scalars is in effect to suppress the generation of checks on the constructed in-place aggregate. The aggregate intentionally contains invalid values which may not necessarily fit the c

[Ada] Spurious error on fixed-point operation whose operands are expressions

2018-05-25 Thread Pierre-Marie de Rodat
This patch fixes a spurious error in a fixed-point operand of a multiplying operator M when the operand is an adding operation and the context imposes a different fixed-point type to the result of M. Tested on x86_64-pc-linux-gnu, committed on trunk 2018-05-25 Ed Schonberg gcc/ada/ *

[Ada] Improve performance of conversion from String to Long_Float

2018-05-25 Thread Pierre-Marie de Rodat
Once it is sure that the result will be infinity, stop computation and return the result. This ensure that the function call duration is bounded. Before that change on some cases the computation was taking more than a few seconds. Tested on x86_64-pc-linux-gnu, committed on trunk 2018-05-25 Nico

[Ada] Remove 2GB secondary stack limit for 64-bit processors

2018-05-25 Thread Pierre-Marie de Rodat
This patch removes the restriction introduced recently that limited the size of the secondary stack to 2GB. The size of the secondary stack is now limited to half of the size of the memory address space for the target. Tested on x86_64-pc-linux-gnu, committed on trunk 2018-05-25 Patrick Bernardi

Re: [PATCH] testsuite: Introduce be/le selectors

2018-05-25 Thread Richard Earnshaw (lists)
On 24/05/18 18:28, Segher Boessenkool wrote: > On Wed, May 23, 2018 at 10:07:18AM +0100, Richard Earnshaw (lists) wrote: >> On 22/05/18 22:21, Jeff Law wrote: >>> On 05/21/2018 03:46 PM, Segher Boessenkool wrote: This patch creates "be" and "le" selectors, which can be used by all archite

[PATCH] Fix PR85912

2018-05-25 Thread Richard Biener
I will commit the following as obvious to trunk and branch. Richard. 2018-05-25 Richard Biener PR c++/85912 * tree-dump.c (dequeue_and_dump): Remove access to removed operand 2 of a SWITCH_EXPR. diff --git a/gcc/tree-dump.c b/gcc/tree-dump.c index bc3e3a9f433..fe3cc1

[PATCH] Fix a test-case (PR testsuite/85911).

2018-05-25 Thread Martin Liška
Hi. As mentioned in the PR, it's not clear which BB removal are we seeking for. Thus I would remove that scan. The test-case works on x86_64-linux-gnu. Ready for trunk? Thanks, Martin gcc/testsuite/ChangeLog: 2018-05-25 Martin Liska PR testsuite/85911 * gcc.dg/tree-prof/upd

Re: [PATCH][RFC] Radically simplify emission of balanced tree for switch statements.

2018-05-25 Thread Martin Liška
On 05/21/2018 04:42 PM, Sudakshina Das wrote: > On 21/05/18 15:00, Rainer Orth wrote: >> Hi Martin, >> > Thanks for opened eyes, following patch will fix that. > It's quite obvious, I'll install it right after tests will finish. unfortunately, it didn't fix either issue:

[PATCH] Refactor vectorizer data-ref analysis

2018-05-25 Thread Richard Biener
I'm trying to somehow share data-ref and dependence analysis results across multi vector size attempts. This patch is some refactoring. Bootstrapped on x86_64-unknown-linux-gnu, testing in progress. Richard. >From e0156eb336c050ef79b6744dd3ed28a5cfa2215f Mon Sep 17 00:00:00 2001 From: Richard

Re: [PATCH][RFC] Radically simplify emission of balanced tree for switch statements.

2018-05-25 Thread Sudakshina Das
Hi Martin On 25/05/18 10:45, Martin Liška wrote: On 05/21/2018 04:42 PM, Sudakshina Das wrote: On 21/05/18 15:00, Rainer Orth wrote: Hi Martin, Thanks for opened eyes, following patch will fix that. It's quite obvious, I'll install it right after tests will finish. unfortunately, it didn't

Re: Use conditional internal functions in if-conversion

2018-05-25 Thread Richard Sandiford
Richard Biener writes: > On Wed, May 16, 2018 at 12:17 PM Richard Sandiford < > richard.sandif...@linaro.org> wrote: >> This patch uses IFN_COND_* to vectorise conditionally-executed, >> potentially-trapping arithmetic, such as most floating-point >> ops with -ftrapping-math. E.g.: > >> if (

Re: [PATCH GCC][1/6]Compute type mode and register class mapping

2018-05-25 Thread Richard Biener
On Fri, May 25, 2018 at 10:45 AM Bin.Cheng wrote: > On Thu, May 24, 2018 at 11:55 PM, Jeff Law wrote: > > On 05/18/2018 02:40 AM, Bin.Cheng wrote: > >> On Fri, May 4, 2018 at 5:21 PM, Bin Cheng wrote: > >>> Hi, > >>> This is the updated version patch set computing register pressure on TREE SSA

Re: [PATCH] Fix a test-case (PR testsuite/85911).

2018-05-25 Thread Richard Biener
On Fri, May 25, 2018 at 11:37 AM Martin Liška wrote: > Hi. > As mentioned in the PR, it's not clear which BB removal are we seeking > for. Thus I would remove that scan. > The test-case works on x86_64-linux-gnu. > Ready for trunk? OK > Thanks, > Martin > gcc/testsuite/ChangeLog: > 2018-05

Re: Implement SLP of internal functions

2018-05-25 Thread Richard Sandiford
Richard Biener writes: >> Index: gcc/tree-vect-slp.c >> === >> --- gcc/tree-vect-slp.c 2018-05-16 11:02:46.262494712 +0100 >> +++ gcc/tree-vect-slp.c 2018-05-16 11:12:11.873116180 +0100 >> @@ -564,6 +564,41 @@ vect_get_and_check_slp_d

[PATCH] wwwdocs: Update Intel CET for GCC 8 changes

2018-05-25 Thread H.J. Lu
Only -fcf-protection is needed to enable Intel CET. OK to check in? H.J. --- Index: changes.html === RCS file: /cvs/gcc/wwwdocs/htdocs/gcc-8/changes.html,v retrieving revision 1.82 diff -u -p -r1.82 changes.html --- changes.html

[PATCH 1/3] Add vec::reverse.

2018-05-25 Thread marxin
gcc/ChangeLog: 2018-05-25 Martin Liska David Malcolm * vec.c (test_reverse): New. (vec_c_tests): Add new test. * vec.h (vl_ptr>::reverse): New function. --- gcc/vec.c | 38 ++ gcc/vec.h | 14 ++ 2 files cha

[PATCH 0/3] Extend -falign-FOO=N to N[,M[,N2[,M2]]] version 9

2018-05-25 Thread marxin
Hello. This is new version of Denis's patch series: https://gcc.gnu.org/ml/gcc-patches/2017-04/msg00792.html There are quite some changes from last iteration that I would like to mention: - -malign-* flags are not removed, it was not welcomed and can be eventually done independently - in the mea

[PATCH 2/3] Temporary remove "at least 8 byte alignment" code from x86

2018-05-25 Thread marxin
gcc/ChangeLog: 2017-04-18 Denys Vlasenko * config/i386/i386-common.c (ix86_handle_option): Remove support for obsolete -malign-loops, -malign-jumps and -malign-functions options. * config/i386/i386.opt: Likewise. --- gcc/config/i386/dragonfly.h | 10 ++ gcc/config/i3

[PATCH 3/3] Extend -falign-FOO=N to N[:M[:N2[:M2]]]

2018-05-25 Thread marxin
gcc/ChangeLog: 2018-05-25 Denys Vlasenko Martin Liska PR middle-end/66240 PR target/45996 PR c/84100 * common.opt: Rename align options with 'str_' prefix. * common/config/i386/i386-common.c (set_malign_value): New function.

<    1   2