Re: RISC-V and Ada: undefined references to `__gnat_raise_nodefer_with_msg'

2018-07-03 Thread Sebastian Huber
On 03/07/18 09:10, Eric Botcazou wrote: It seems the a-except.adb was replaced by a-except-2005.adb in this commit: Right, it's by design, the old support for SJLJ exceptions has been ditched for full runtimes. You probably just need to swap the values of Frontend_Exceptions :

[Bug bootstrap/28472] -B$(build_tooldir)/bin/

2018-07-03 Thread egallager at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=28472 Eric Gallager changed: What|Removed |Added Status|UNCONFIRMED |WAITING Last reconfirmed|

[Bug bootstrap/5301] Cross-compiler docs problems

2018-07-03 Thread egallager at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=5301 Eric Gallager changed: What|Removed |Added CC||egallager at gcc dot gnu.org --- Comment

[Bug bootstrap/12596] configure setting --with-libiconv-prefix doesn't get passed to gcc-subdir

2018-07-03 Thread egallager at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=12596 Eric Gallager changed: What|Removed |Added CC||egallager at gcc dot gnu.org

[Bug c++/77456] Suboptimal code when returning a string generated with a constexpr fn at compile time

2018-07-03 Thread egallager at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77456 Eric Gallager changed: What|Removed |Added CC||egallager at gcc dot gnu.org

[Bug fortran/48776] ICE(segfault) after -std=f95 diagnostic error involving PROCEDURE

2018-07-03 Thread egallager at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=48776 Eric Gallager changed: What|Removed |Added CC||dominiq at lps dot ens.fr,

[Bug c++/60335] confused by earlier errors, bailing out

2018-07-03 Thread egallager at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60335 Eric Gallager changed: What|Removed |Added Keywords||needs-bisection

[Bug target/69038] compilation error: unable to find a register to spill in class 'FP_REGS'

2018-07-03 Thread egallager at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69038 Eric Gallager changed: What|Removed |Added CC||egallager at gcc dot gnu.org ---

[Bug middle-end/85620] Missing ENDBR after swapcontext

2018-07-03 Thread hjl at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85620 --- Comment #8 from hjl at gcc dot gnu.org --- Author: hjl Date: Wed Jul 4 03:01:33 2018 New Revision: 262370 URL: https://gcc.gnu.org/viewcvs?rev=262370=gcc=rev Log: i386: Add indirect_return function attribute On x86, swapcontext may return

Re: [PATCH][PR sanitizer/84250] Avoid global symbols collision when using both ASan and UBSan

2018-07-03 Thread Jeff Law
On 05/23/2018 11:15 AM, Maxim Ostapenko wrote: > Hi, > > > as described in PR, when using both ASan and UBSan > (-fsanitize=address,undefined ), we have symbols collision for global > functions, like __sanitizer_set_report_path. This leads to fuzzy results > when printing reports into files

Re: Invert sense of NO_IMPLICIT_EXTERN_C

2018-07-03 Thread Jeff Law
On 07/03/2018 07:50 AM, Nathan Sidwell wrote: > could a global reviewer comment?  This touches a lot of target-specific > config files.  David has kindly checked AIX is ok, the known target > needing the functionality. > > https://gcc.gnu.org/ml/gcc-patches/2018-06/msg01568.html So it's almost

Re: [PATCH] i386; Add indirect_return function attribute

2018-07-03 Thread Jeff Law
On 07/03/2018 10:53 AM, H.J. Lu wrote: > On Tue, Jul 3, 2018 at 9:12 AM, Uros Bizjak wrote: >> On Tue, Jul 3, 2018 at 5:32 PM, H.J. Lu wrote: >>> On Fri, Jun 8, 2018 at 3:27 AM, H.J. Lu wrote: On x86, swapcontext may return via indirect branch when shadow stack is enabled. To support

Re: [RFC PATCH] diagnose built-in declarations without prototype (PR 83656)

2018-07-03 Thread Jeff Law
On 06/29/2018 09:54 AM, Martin Sebor wrote: > > All the warnings I have seen are because of declarations like > the one in the test below that checks for the presence of symbol > sin in the library: > >   char sin (); >   int main () { return sin (); } > > GCC has warned for this code by

Re: [PATCH] Remove legacy testcase for -fprofile-generate=./

2018-07-03 Thread Jeff Law
On 07/03/2018 11:24 AM, Martin Liška wrote: > Hi. > > As new option mangles absolute path of a compiled file, it's hard > to come up with a scan-file pattern. Note similar test is done in > gcc.dg/profile-dir-*.c that I adjusted few days ago. > > Ready for trunk? > Thanks, > Martin > >

Re: [PATCH] Fix DOS-based system build and fix documentation.

2018-07-03 Thread Jeff Law
On 07/03/2018 11:23 AM, Martin Liška wrote: > Hi. > > I'm sending fix for DOS-based system, it's a compilation error that > I introduced some time ago. Plus I add Jonathan's correction of a > documentation > entry. > > Ready for trunk? > Thanks, > Martin > > gcc/ChangeLog: > > 2018-07-03 

Re: [PATCH] relax lower bound for infinite arguments in gimple-ssa-sprinf.c (PR 86274)

2018-07-03 Thread Martin Sebor
Committed to trunk in r86274. Jakub/Richard, can you please also review and approve the corresponding fix for the release branches? Martin On 07/03/2018 06:32 PM, Jeff Law wrote: On 07/03/2018 04:50 PM, Martin Sebor wrote: In computing the size of expected output for non-constant floating

[committed] Remove duplicate logical3_sn pattern

2018-07-03 Thread Jeff Law
After consolidating HI and SI mode patterns for logical bit operators, the remaining patterns "logical3_sn" "logical3" are in effect identical. This patch deletes logical3_sn. This (not surprisingly) makes no difference in the generated code :-) Installed on the trunk Jeff *

[Bug tree-optimization/86274] [7/8 Regression] SEGFAULT when logging std::to_string(NAN)

2018-07-03 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86274 Martin Sebor changed: What|Removed |Added Summary|[7/8/9 Regression] SEGFAULT |[7/8 Regression] SEGFAULT

[Bug tree-optimization/86274] [7/8/9 Regression] SEGFAULT when logging std::to_string(NAN)

2018-07-03 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86274 --- Comment #15 from Martin Sebor --- Author: msebor Date: Wed Jul 4 02:19:35 2018 New Revision: 262368 URL: https://gcc.gnu.org/viewcvs?rev=262368=gcc=rev Log: PR tree-optimization/86274 - SEGFAULT when logging std::to_string(NAN)

PING [PATCH] specify large command line option arguments (PR 82063)

2018-07-03 Thread Martin Sebor
Ping: https://gcc.gnu.org/ml/gcc-patches/2018-06/msg01509.html On 06/24/2018 03:05 PM, Martin Sebor wrote: Storing integer command line option arguments in type int limits options such as -Wlarger-than= or -Walloca-larger-than to at most INT_MAX (see bug 71905). Larger values wrap around zero.

[Bug c++/86398] New: is_trivially_constructible always returns true even when is_constructible returns false

2018-07-03 Thread arthur.j.odwyer at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86398 Bug ID: 86398 Summary: is_trivially_constructible always returns true even when is_constructible returns false Product: gcc Version: 9.0 Status: UNCONFIRMED

[committed] Consolidate xor/ior patterns and splitters for H8

2018-07-03 Thread Jeff Law
This patch consolidates the ior/xor expanders, patterns and splitters using a code iterator. This does make us a bit more lenient on what we accept for xor operands than we were before. However, AFAICT xor should accept the same operands as ior on all the supported H8 variants. The additional

Re: [PATCH] relax lower bound for infinite arguments in gimple-ssa-sprinf.c (PR 86274)

2018-07-03 Thread Jeff Law
On 07/03/2018 04:50 PM, Martin Sebor wrote: > In computing the size of expected output for non-constant floating > arguments the sprintf pass doesn't consider the possibility that > the argument value may be not finite (i.e., it can be infinity or > NaN).  Infinities and NaNs are formatted as 

[committed] Consolidate movsd and movmd patterns/splitters for H8

2018-07-03 Thread Jeff Law
So the H8 port has movmd and movsd instructions which are used to implement block moves and stpcpy. Those expanders and patters are necessarily fairly ugly, but not enough to warrant trying to simplify. What is worth simplifying is the fact that we have two copies of each pattern and splitter

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

2018-07-03 Thread Jeff Law
On 07/03/2018 01:11 PM, Martin Liška wrote: > On 07/03/2018 10:53 AM, Martin Liška wrote: >> Thank you Jeff. >> >> I found some issues when doing build of all targets >> (contrib/config-list.mk). >> I'll update patch and test that affected cross-compilers still produce >> same output. > > Hello.

Re: Question on -fopt-info-inline

2018-07-03 Thread Jeff Law
On 07/03/2018 12:28 PM, Qing Zhao wrote: > >>> In order to collect complete information on all the inlining transformation that GCC applies on a given program, I searched online, and found that the option -fopt-info-inline might be the right option to use:

Re: [patch] jump threading multiple paths that start from the same BB

2018-07-03 Thread Jeff Law
On 07/03/2018 03:31 AM, Aldy Hernandez wrote: > On 07/02/2018 07:08 AM, Christophe Lyon wrote: > On 11/07/2017 10:33 AM, Aldy Hernandez wrote: > While poking around in the backwards threader I noticed that we bail if > > we have already seen a starting BB. > > /* 

Re: [PATCH] have pretty printer include NaN representation

2018-07-03 Thread Jeff Law
On 07/03/2018 04:59 PM, Martin Sebor wrote: > The pretty-printer formats NaNs simply as Nan, even though > there is much more to a NaN than than that.  At the very > least, one might like to know if the NaN is signaling or > quiet, negative or positive.  If it's not in a canonical > form, one 

[Bug c++/86397] New: g++ ICE at on valid code in nothrow_spec_p, at cp/except.c:1158

2018-07-03 Thread helloqirun at gmail dot com
=/home/absozero/trunk/root-gcc/libexec/gcc/x86_64-pc-linux-gnu/9.0.0/lto-wrapper Target: x86_64-pc-linux-gnu Configured with: ../gcc/configure --prefix=/home/absozero/trunk/root-gcc --enable-languages=c,c++ --disable-werror --enable-multilib Thread model: posix gcc version 9.0.0 20180703

[PATCH] have pretty printer include NaN representation

2018-07-03 Thread Martin Sebor
The pretty-printer formats NaNs simply as Nan, even though there is much more to a NaN than than that. At the very least, one might like to know if the NaN is signaling or quiet, negative or positive. If it's not in a canonical form, one might also be interested in the significand and exponent

[Bug tree-optimization/86274] [7/8/9 Regression] SEGFAULT when logging std::to_string(NAN)

2018-07-03 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86274 Martin Sebor changed: What|Removed |Added Keywords||patch --- Comment #14 from Martin Sebor

[PATCH] relax lower bound for infinite arguments in gimple-ssa-sprinf.c (PR 86274)

2018-07-03 Thread Martin Sebor
In computing the size of expected output for non-constant floating arguments the sprintf pass doesn't consider the possibility that the argument value may be not finite (i.e., it can be infinity or NaN). Infinities and NaNs are formatted as "inf" or "infinity" and "nan". As a result, any

Re: [PATCH] P0556R3 Integral power-of-2 operations, P0553R2 Bit operations

2018-07-03 Thread Jonathan Wakely
On 03/07/18 23:40 +0200, Jakub Jelinek wrote: On Tue, Jul 03, 2018 at 10:02:47PM +0100, Jonathan Wakely wrote: +#ifndef _GLIBCXX_BIT +#define _GLIBCXX_BIT 1 + +#pragma GCC system_header + +#if __cplusplus >= 201402L + +#include +#include + +namespace std _GLIBCXX_VISIBILITY(default) +{

Re: [PATCH] P0556R3 Integral power-of-2 operations, P0553R2 Bit operations

2018-07-03 Thread Jakub Jelinek
On Tue, Jul 03, 2018 at 10:02:47PM +0100, Jonathan Wakely wrote: > +#ifndef _GLIBCXX_BIT > +#define _GLIBCXX_BIT 1 > + > +#pragma GCC system_header > + > +#if __cplusplus >= 201402L > + > +#include > +#include > + > +namespace std _GLIBCXX_VISIBILITY(default) > +{ >

Re: [PATCH,rs6000] Fix implementation of vec_unpackh, vec_unpackl builtins

2018-07-03 Thread Carl Love
Segher: On Mon, 2018-07-02 at 11:53 -0500, Segher Boessenkool wrote: > Hi! > > On Fri, Jun 29, 2018 at 07:38:39AM -0700, Carl Love wrote: > > +;; Unpack high elements of float vector to vector of doubles > > +(define_expand "altivec_unpackh_v4sf" > > +  [(set (match_operand:V2DF 0

[PATCH] Remove redundant #if conditional

2018-07-03 Thread Jonathan Wakely
The whole file is guarded by the same check already. * include/bits/alloc_traits.h: Remove redundant preprocessor condition. Tested powerpc64le-linux, committed to trunk. commit 76fd352d2bccd2a7399f6693cb5c7a8e9c65274b Author: Jonathan Wakely Date: Tue Jul 3 00:26:07 2018

[PATCH] P0556R3 Integral power-of-2 operations, P0553R2 Bit operations

2018-07-03 Thread Jonathan Wakely
P0553R2 is not in the C++2a working draft yet, but is likely to be approved soon. Neither proposal supports std::byte but this adds overloads of each function for std::byte, assuming that will also get added. * include/Makefile.am: Add new header. * include/Makefile.in:

Re: C++ PATCH for c++/57891, narrowing conversions in non-type template arguments

2018-07-03 Thread Jason Merrill
On Tue, Jul 3, 2018 at 4:35 PM, Marek Polacek wrote: > On Tue, Jul 03, 2018 at 03:41:43PM -0400, Jason Merrill wrote: >> On Tue, Jul 3, 2018 at 2:58 PM, Marek Polacek wrote: >> > On Tue, Jul 03, 2018 at 12:40:51PM -0400, Jason Merrill wrote: >> >> On Fri, Jun 29, 2018 at 3:58 PM, Marek Polacek

Re: [14/n] PR85694: Rework overwidening detection

2018-07-03 Thread Rainer Orth
Hi Christophe, > It seems the new bb-slp-over-widen tests lack a -fdump option: > gcc.dg/vect/bb-slp-over-widen-2.c -flto -ffat-lto-objects : dump file > does not exist > UNRESOLVED: gcc.dg/vect/bb-slp-over-widen-2.c -flto -ffat-lto-objects > scan-tree-dump-times vect "basic block vectorized" 2

Re: C++ PATCH for c++/57891, narrowing conversions in non-type template arguments

2018-07-03 Thread Marek Polacek
On Tue, Jul 03, 2018 at 03:41:43PM -0400, Jason Merrill wrote: > On Tue, Jul 3, 2018 at 2:58 PM, Marek Polacek wrote: > > On Tue, Jul 03, 2018 at 12:40:51PM -0400, Jason Merrill wrote: > >> On Fri, Jun 29, 2018 at 3:58 PM, Marek Polacek wrote: > >> > On Wed, Jun 27, 2018 at 07:35:15PM -0400,

Re: [C++ Patch] More location fixes to grokdeclarator

2018-07-03 Thread Jason Merrill
OK. On Tue, Jul 3, 2018 at 2:37 PM, Paolo Carlini wrote: > Hi, > > On 03/07/2018 18:36, Jason Merrill wrote: >> >> >>> if ((type_quals & TYPE_QUAL_VOLATILE) >>> - && (loc == UNKNOWN_LOCATION || locations[ds_volatile] < loc)) >>> + && (loc == UNKNOWN_LOCATION >>> + ||

Re: C++ PATCH for c++/57891, narrowing conversions in non-type template arguments

2018-07-03 Thread Jason Merrill
On Tue, Jul 3, 2018 at 3:41 PM, Jason Merrill wrote: > On Tue, Jul 3, 2018 at 2:58 PM, Marek Polacek wrote: >> On Tue, Jul 03, 2018 at 12:40:51PM -0400, Jason Merrill wrote: >>> On Fri, Jun 29, 2018 at 3:58 PM, Marek Polacek wrote: >>> > On Wed, Jun 27, 2018 at 07:35:15PM -0400, Jason Merrill

Re: PR libstdc++/86272 Fix undefined __glibcxx_check_insert_range2

2018-07-03 Thread Jonathan Wakely
On 03/07/18 22:11 +0200, François Dumont wrote: Hi     I plan to commit attached patch to fix the __gnu_debug::string undefined macro.     Is it ok the way I used some tests to now validate __gnu_debug::string on check-debug ? Yes, good idea. We don't want to do that for *every*

PR libstdc++/86272 Fix undefined __glibcxx_check_insert_range2

2018-07-03 Thread François Dumont
Hi     I plan to commit attached patch to fix the __gnu_debug::string undefined macro.     Is it ok the way I used some tests to now validate __gnu_debug::string on check-debug ? François diff --git a/libstdc++-v3/include/debug/string b/libstdc++-v3/include/debug/string index

[Bug middle-end/86380] incorrect comparison in function chose_multiplier

2018-07-03 Thread colinwb at yahoo dot co.uk
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86380 --- Comment #4 from Colin Bartlett --- >(In reply to Eric Botcazou from comment #3) > > I suspected that when compiled programs didn't show the error, but: > > > > 1. Is that documented anywhere? It might be useful if that was documented > >

Re: [14/n] PR85694: Rework overwidening detection

2018-07-03 Thread Christophe Lyon
On Tue, 3 Jul 2018 at 12:02, Richard Sandiford wrote: > > Richard Biener writes: > > On Fri, Jun 29, 2018 at 1:36 PM Richard Sandiford > > wrote: > >> > >> Richard Sandiford writes: > >> > This patch is the main part of PR85694. The aim is to recognise at > >> > least: > >> > > >> > signed

[Bug tree-optimization/86396] New: fold calls to strtod() into constants where possible

2018-07-03 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86396 Bug ID: 86396 Summary: fold calls to strtod() into constants where possible Product: gcc Version: 8.0 Status: UNCONFIRMED Severity: normal Priority: P3

[Bug tree-optimization/86396] fold calls to strtod() into constants where possible

2018-07-03 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86396 Martin Sebor changed: What|Removed |Added Keywords||missed-optimization

Re: C++ PATCH for c++/57891, narrowing conversions in non-type template arguments

2018-07-03 Thread Jason Merrill
On Tue, Jul 3, 2018 at 2:58 PM, Marek Polacek wrote: > On Tue, Jul 03, 2018 at 12:40:51PM -0400, Jason Merrill wrote: >> On Fri, Jun 29, 2018 at 3:58 PM, Marek Polacek wrote: >> > On Wed, Jun 27, 2018 at 07:35:15PM -0400, Jason Merrill wrote: >> >> On Wed, Jun 27, 2018 at 12:53 PM, Marek Polacek

[committed] Consolidating various H8 patterns

2018-07-03 Thread Jeff Law
Another round. This merges the movmd/movsd related patterns. Their primary difference was normal vs advanced mode, so we can just use the P mode iterator and significantly reduce duplication here. This also merges two of the btst patterns and fixes the pattern's condition. This also allows

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

2018-07-03 Thread Martin Liška
On 06/13/2018 04:02 AM, Jeff Law wrote: On 05/21/2018 07:55 AM, marxin wrote: 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. *

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

2018-07-03 Thread Martin Liška
On 07/03/2018 10:53 AM, Martin Liška wrote: Thank you Jeff. I found some issues when doing build of all targets (contrib/config-list.mk). I'll update patch and test that affected cross-compilers still produce same output. Hello. I'm done with testing, I bootstrapped and regtested the patch

[Bug middle-end/86380] incorrect comparison in function chose_multiplier

2018-07-03 Thread ebotcazou at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86380 --- Comment #3 from Eric Botcazou --- > I suspected that when compiled programs didn't show the error, but: > > 1. Is that documented anywhere? It might be useful if that was documented > also in choose_multiplier? > > 2. Is that anyway any

Re: Understanding tree_swap_operands_p wrt SSA name versions

2018-07-03 Thread Jeff Law
On 07/03/2018 11:55 AM, Michael Ploujnikov wrote: > On 2018-07-03 12:46 PM, Richard Biener wrote: >> On July 3, 2018 4:56:57 PM GMT+02:00, Michael Ploujnikov >> wrote: >>> On 2018-06-20 04:23 AM, Richard Biener wrote: On Wed, Jun 20, 2018 at 7:31 AM Jeff Law wrote: > > On

Re: C++ PATCH for c++/57891, narrowing conversions in non-type template arguments

2018-07-03 Thread Marek Polacek
On Tue, Jul 03, 2018 at 12:40:51PM -0400, Jason Merrill wrote: > On Fri, Jun 29, 2018 at 3:58 PM, Marek Polacek wrote: > > On Wed, Jun 27, 2018 at 07:35:15PM -0400, Jason Merrill wrote: > >> On Wed, Jun 27, 2018 at 12:53 PM, Marek Polacek wrote: > >> > This PR complains about us accepting

[Bug ipa/86395] add support of -fopt-info-inline in early inliner

2018-07-03 Thread pinskia at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86395 Andrew Pinski changed: What|Removed |Added Keywords||diagnostic Severity|normal

Re: [C++ Patch] More location fixes to grokdeclarator

2018-07-03 Thread Paolo Carlini
Hi, On 03/07/2018 18:36, Jason Merrill wrote: if ((type_quals & TYPE_QUAL_VOLATILE) - && (loc == UNKNOWN_LOCATION || locations[ds_volatile] < loc)) + && (loc == UNKNOWN_LOCATION + || linemap_location_before_p (line_table, +

Re: Question on -fopt-info-inline

2018-07-03 Thread Qing Zhao
>> >>> >>> In order to collect complete information on all the inlining >>> transformation that GCC applies on a given program, >>> I searched online, and found that the option -fopt-info-inline might be >>> the right option to use: >>> >>>

[Bug target/86387] [RISCV][ABI] GCC fails to sign/zero-ext integers as necessary for passing/returning int+fp structs on hard-float ABIs

2018-07-03 Thread wilson at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86387 Jim Wilson changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed|

[Bug ipa/86395] New: add support of -fopt-info-inline in early inliner

2018-07-03 Thread qinzhao at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86395 Bug ID: 86395 Summary: add support of -fopt-info-inline in early inliner Product: gcc Version: 9.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component:

[Bug target/86386] [8/9 Regression] unaligned load from stack with -Os -fno-tree-dce -mstringop-strategy=vector_loop -mavx512bw

2018-07-03 Thread hjl.tools at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86386 H.J. Lu changed: What|Removed |Added CC||hjl.tools at gmail dot com --- Comment #2

[Bug middle-end/86380] incorrect comparison in function chose_multiplier

2018-07-03 Thread colinwb at yahoo dot co.uk
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86380 --- Comment #2 from Colin Bartlett --- I suspected that when compiled programs didn't show the error, but: 1. Is that documented anywhere? It might be useful if that was documented also in choose_multiplier? 2. Is that anyway any reason not to

[Bug target/86394] New: Broken -falign-functions=512 on m68k

2018-07-03 Thread marxin at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86394 Bug ID: 86394 Summary: Broken -falign-functions=512 on m68k Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: target

Re: Understanding tree_swap_operands_p wrt SSA name versions

2018-07-03 Thread Michael Ploujnikov
On 2018-07-03 12:46 PM, Richard Biener wrote: > On July 3, 2018 4:56:57 PM GMT+02:00, Michael Ploujnikov > wrote: >> On 2018-06-20 04:23 AM, Richard Biener wrote: >>> On Wed, Jun 20, 2018 at 7:31 AM Jeff Law wrote: On 06/19/2018 12:30 PM, Michael Ploujnikov wrote: > Hi everyone,

Re: extract_range_from_binary* cleanups for VRP

2018-07-03 Thread Aldy Hernandez
On 07/03/2018 08:16 AM, Martin Liška wrote: Hi. It caused UBSAN errors: $ cat ubsan.i int a; void d() { int c, b = 8 - a; } $ /home/marxin/Programming/gcc2/objdir/./gcc/xgcc -B/home/marxin/Programming/gcc2/objdir/./gcc/ ubsan.i -c -O2 ../../gcc/tree-vrp.c:1715:26: runtime error: load of

Re: [patch, fortran] Asynchronous I/O, take 3

2018-07-03 Thread Thomas König
Hi Rainer, However, may (all?) gfortran tests now SEGV. One example is Program received signal SIGSEGV: Segmentation fault - invalid memory reference. Backtrace for this error: Segmentation Fault Thread 2 received signal SIGSEGV, Segmentation fault. [Switching to Thread 1 (LWP 1)]

[Bug tree-optimization/53947] [meta-bug] vectorizer missed-optimizations

2018-07-03 Thread ubizjak at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=53947 Bug 53947 depends on bug 85694, which changed state. Bug 85694 Summary: Generation of vectorized AVG (Average) instruction https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85694 What|Removed |Added

[Bug tree-optimization/85694] Generation of vectorized AVG (Average) instruction

2018-07-03 Thread ubizjak at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85694 Uroš Bizjak changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[PATCH 18/n, 386]: Fix PR85694, Generation of vectorized AVG (Average) instruction

2018-07-03 Thread Uros Bizjak
Hello! Attached patch implements unsigned HImode and QImode vector average instructions. This is all x86 has to offer... 2018-07-03 Uros Bizjak PR target/85694 * config/i386/sse.md (uavg3_ceil): New expander. (_uavg3): Simplify expander. testsuite/ChangeLog: 2018-07-03 Uros

[Bug tree-optimization/85694] Generation of vectorized AVG (Average) instruction

2018-07-03 Thread uros at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85694 --- Comment #10 from uros at gcc dot gnu.org --- Author: uros Date: Tue Jul 3 17:33:28 2018 New Revision: 262354 URL: https://gcc.gnu.org/viewcvs?rev=262354=gcc=rev Log: PR target/85694 * config/i386/sse.md (uavg3_ceil): New

Re: [PATCH] Fix bootstrap on ia64 with old GCC version.

2018-07-03 Thread Jakub Jelinek
On Tue, Jul 03, 2018 at 07:22:19PM +0200, Martin Liška wrote: > In order to make GCC 4.1 happy and build current tip, we need to define > static constants out of a class definition. > > Ready for trunk? > Thanks, > Martin > > gcc/ChangeLog: > > 2018-07-03 Martin Liska > > *

Re: Question on -fopt-info-inline

2018-07-03 Thread Qing Zhao
> On Jul 3, 2018, at 11:48 AM, Richard Biener > wrote: > > On July 3, 2018 6:01:19 PM GMT+02:00, Qing Zhao > wrote: >> Hi, >> >> In order to collect complete information on all the inlining >> transformation that GCC applies on a given program, >> I searched

[PATCH] Remove legacy testcase for -fprofile-generate=./

2018-07-03 Thread Martin Liška
Hi. As new option mangles absolute path of a compiled file, it's hard to come up with a scan-file pattern. Note similar test is done in gcc.dg/profile-dir-*.c that I adjusted few days ago. Ready for trunk? Thanks, Martin gcc/testsuite/ChangeLog: 2018-07-03 Martin Liska *

[PATCH] Fix DOS-based system build and fix documentation.

2018-07-03 Thread Martin Liška
Hi. I'm sending fix for DOS-based system, it's a compilation error that I introduced some time ago. Plus I add Jonathan's correction of a documentation entry. Ready for trunk? Thanks, Martin gcc/ChangeLog: 2018-07-03 Martin Liska Jonathan Wakely * coverage.c: Use

[PATCH] Fix bootstrap on ia64 with old GCC version.

2018-07-03 Thread Martin Liška
Hi. In order to make GCC 4.1 happy and build current tip, we need to define static constants out of a class definition. Ready for trunk? Thanks, Martin gcc/ChangeLog: 2018-07-03 Martin Liska * tree-switch-conversion.h (struct jump_table_cluster): Define constant values

Re: [PATCH][GCC][AArch64] Simplify movmem code by always doing overlapping copies when larger than 8 bytes.

2018-07-03 Thread James Greenhalgh
On Tue, Jun 19, 2018 at 09:09:27AM -0500, Tamar Christina wrote: > Hi All, OK. Thanks, James > Thanks, > Tamar > > gcc/ > 2018-06-19 Tamar Christina > > * config/aarch64/aarch64.c (aarch64_expand_movmem): Fix mode size. > > gcc/testsuite/ > 2018-06-19 Tamar Christina > >

Re: [PATCH] i386; Add indirect_return function attribute

2018-07-03 Thread H.J. Lu
On Tue, Jul 3, 2018 at 9:12 AM, Uros Bizjak wrote: > On Tue, Jul 3, 2018 at 5:32 PM, H.J. Lu wrote: >> On Fri, Jun 8, 2018 at 3:27 AM, H.J. Lu wrote: >>> On x86, swapcontext may return via indirect branch when shadow stack >>> is enabled. To support code instrumentation of control-flow

[Bug target/86393] GCC-8 appears to not detect AVX512 on iMac Pro 2018

2018-07-03 Thread mrslevinsky at hotmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86393 --- Comment #4 from Mikael Slevinsky --- I'm not sure if this answers your question, but compiling the same program (modifying 8 to 128 to tease the compiler into using zmm registers) with clang-6 works fine.

Re: Question on -fopt-info-inline

2018-07-03 Thread Richard Biener
On July 3, 2018 6:01:19 PM GMT+02:00, Qing Zhao wrote: >Hi, > >In order to collect complete information on all the inlining >transformation that GCC applies on a given program, >I searched online, and found that the option -fopt-info-inline might be >the right option to use: >

Re: Understanding tree_swap_operands_p wrt SSA name versions

2018-07-03 Thread Richard Biener
On July 3, 2018 4:56:57 PM GMT+02:00, Michael Ploujnikov wrote: >On 2018-06-20 04:23 AM, Richard Biener wrote: >> On Wed, Jun 20, 2018 at 7:31 AM Jeff Law wrote: >>> >>> On 06/19/2018 12:30 PM, Michael Ploujnikov wrote: Hi everyone, (I hope this is the right place to ask, if not

Re: DSE and maskstore trouble

2018-07-03 Thread Richard Biener
On July 3, 2018 5:19:24 PM GMT+02:00, Andrew Stubbs wrote: >On 03/07/18 14:52, Richard Biener wrote: >> If you look at RTL dumps (with -fstrict-aliasing, thus -O2+) you >should >> see MEM_ALIAS_SETs differing for the earlier stores and the masked >> store uses. >> >> Now I'm of course assuming

[Bug target/86393] GCC-8 appears to not detect AVX512 on iMac Pro 2018

2018-07-03 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86393 Jakub Jelinek changed: What|Removed |Added CC||jakub at gcc dot gnu.org --- Comment #3

Re: C++ PATCH for c++/57891, narrowing conversions in non-type template arguments

2018-07-03 Thread Jason Merrill
On Fri, Jun 29, 2018 at 3:58 PM, Marek Polacek wrote: > On Wed, Jun 27, 2018 at 07:35:15PM -0400, Jason Merrill wrote: >> On Wed, Jun 27, 2018 at 12:53 PM, Marek Polacek wrote: >> > This PR complains about us accepting invalid code like >> > >> > template struct A {}; >> > A<-1> a; >> > >> >

[Bug c++/86201] ICE: Error reporting routines re-entered

2018-07-03 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86201 Marek Polacek changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug c++/86201] ICE: Error reporting routines re-entered

2018-07-03 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86201 --- Comment #4 from Marek Polacek --- Author: mpolacek Date: Tue Jul 3 16:38:16 2018 New Revision: 262353 URL: https://gcc.gnu.org/viewcvs?rev=262353=gcc=rev Log: PR c++/86201 * typeck.c (cp_build_binary_op): Check

Re: [C++ Patch] More location fixes to grokdeclarator

2018-07-03 Thread Jason Merrill
On Thu, Jun 28, 2018 at 5:39 AM, Paolo Carlini wrote: > Hi, > > On 28/06/2018 03:22, David Malcolm wrote: >> >> [snip] >>> >>> If I'm following you right, the idea is that gcc should complain >>> because two different things in the user's source code contradict >>> each >>> other. >>> >>> In such

Re: C++ PATCH for c++/86201, diagnostic routines re-entered crash

2018-07-03 Thread Jason Merrill
OK. On Tue, Jul 3, 2018 at 12:08 PM, Marek Polacek wrote: > This is an ICE of kind "Error reporting routines re-entered". From the PR: > > The problem here is that we report the missing return value: > 9224 permerror (input_location, "return-statement with no value, in " > 9225

[Bug c++/86378] [7/8/9 regression] typedef breaks functional cast in noexcept-qualifier

2018-07-03 Thread jason at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86378 Jason Merrill changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug c++/86378] [7/8/9 regression] typedef breaks functional cast in noexcept-qualifier

2018-07-03 Thread jason at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86378 --- Comment #4 from Jason Merrill --- Author: jason Date: Tue Jul 3 16:27:04 2018 New Revision: 262352 URL: https://gcc.gnu.org/viewcvs?rev=262352=gcc=rev Log: PR c++/86378 - functional cast in noexcept-specifier. * tree.c

[Bug c++/86378] [7/8/9 regression] typedef breaks functional cast in noexcept-qualifier

2018-07-03 Thread jason at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86378 --- Comment #3 from Jason Merrill --- Author: jason Date: Tue Jul 3 16:25:55 2018 New Revision: 262351 URL: https://gcc.gnu.org/viewcvs?rev=262351=gcc=rev Log: PR c++/86378 - functional cast in noexcept-specifier. * tree.c

C++ PATCH for c++/86378, functional cast in template noexcept-specifier

2018-07-03 Thread Jason Merrill
This was a simple typo in strip_typedefs_expr, where we were iterating but then building a new list consisting entirely of the first element. Tested x86_64-pc-linux-gnu, applying to trunk, 8, 7. commit 1cab1ce37320aac67d8fbf88d10930f5c769cfb1 Author: Jason Merrill Date: Mon Jul 2 15:09:58 2018

[Bug c++/85155] Suboptimal error messages when using noexcept(false) on defaulted dtor

2018-07-03 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85155 --- Comment #2 from Jonathan Wakely --- GCC's behaviour is correct by the resolution of https://wg21.link/cwg1778 but apparently that rule causes problems. Maybe Clang doesn't support it yet.

Re: Add support for dumping multiple dump files under one name

2018-07-03 Thread Andre Vieira (lists)
On 03/07/18 15:15, David Malcolm wrote: > On Tue, 2018-07-03 at 11:00 +0100, Andre Vieira (lists) wrote: >> On 29/06/18 11:13, David Malcolm wrote: >>> On Fri, 2018-06-29 at 10:15 +0200, Richard Biener wrote: On Fri, 22 Jun 2018, Jan Hubicka wrote: > Hi, > this patch adds

Re: [PATCH] i386; Add indirect_return function attribute

2018-07-03 Thread Uros Bizjak
On Tue, Jul 3, 2018 at 5:32 PM, H.J. Lu wrote: > On Fri, Jun 8, 2018 at 3:27 AM, H.J. Lu wrote: >> On x86, swapcontext may return via indirect branch when shadow stack >> is enabled. To support code instrumentation of control-flow transfers >> with -fcf-protection, add indirect_return function

[Bug c++/86201] ICE: Error reporting routines re-entered

2018-07-03 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86201 Marek Polacek changed: What|Removed |Added Keywords||patch --- Comment #3 from Marek Polacek

C++ PATCH for c++/86201, diagnostic routines re-entered crash

2018-07-03 Thread Marek Polacek
This is an ICE of kind "Error reporting routines re-entered". From the PR: The problem here is that we report the missing return value: 9224 permerror (input_location, "return-statement with no value, in " 9225"function returning %qT", valtype); but permerror will

[Bug target/86393] GCC-8 appears to not detect AVX512 on iMac Pro 2018

2018-07-03 Thread mrslevinsky at hotmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86393 --- Comment #2 from Mikael Slevinsky --- I'm not so sure. Consider the following minimal test file: #include #include int main(void) { double * X, * Y, * Z; X = (double *) calloc(8, sizeof(double)); Y = (double *)

[Bug tree-optimization/85694] Generation of vectorized AVG (Average) instruction

2018-07-03 Thread ubizjak at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85694 --- Comment #9 from Uroš Bizjak --- Created attachment 44348 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=44348=edit x86 target patch I'm testing the attached patch for x86 targets.

[Bug target/86388] Enhancement: sort "valid arguments to '-march=' switch" suggestions alphabetically

2018-07-03 Thread egallager at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86388 --- Comment #3 from Eric Gallager --- (In reply to Alexander Monakov from comment #1) > I'd prefer existing ordering relative to alphabetical: the list produced by > GCC is mostly ordered first by manufacturer, then by > generation/capabilities.

[Bug tree-optimization/85694] Generation of vectorized AVG (Average) instruction

2018-07-03 Thread rsandifo at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85694 rsandifo at gcc dot gnu.org changed: What|Removed |Added Status|ASSIGNED|NEW

  1   2   3   >