Re: [RFC] Update coding conventions to restrict use of non-const references

2018-07-16 Thread Martin Sebor
On 07/16/2018 02:19 AM, Richard Sandiford wrote: Aldy Hernandez writes: On Thu, Jul 12, 2018 at 1:41 PM Jonathan Wakely wrote: On Thu, 12 Jul 2018 at 11:41, Richard Sandiford wrote: +Only use non-constant references in the following situations: + + + +when they are necessary to conform to

Re: ICE building a libsupc++ file, pdp11 target

2018-07-16 Thread Paul Koning
> On Jul 13, 2018, at 3:12 PM, U.Mutlu wrote: > > Paul Koning wrote on 07/13/2018 08:56 PM: >> >> >>> On Jul 13, 2018, at 2:52 PM, U.Mutlu wrote: >>> >>> Paul Koning wrote on 07/13/2018 08:27 PM: I'm trying to see if I can build the pdp11 target for languages other than just C,

How to easily identify that a FUNCTION_DECL is a lambda

2018-07-16 Thread Martin Liška
Hi. For purpose of --coverage I would like to distinguish lambda functions among DECL_ARTIFICIAL functions. Currently, cp-tree.h provides macro: /* Test if FUNCTION_DECL is a lambda function. */ #define LAMBDA_FUNCTION_P(FNDECL) \ (DECL_DECLARES_FUNCTION_P

Re: [RFC] Update coding conventions to restrict use of non-const references

2018-07-16 Thread Richard Sandiford
Aldy Hernandez writes: > On Thu, Jul 12, 2018 at 1:41 PM Jonathan Wakely wrote: >> >> On Thu, 12 Jul 2018 at 11:41, Richard Sandiford wrote: >> > +Only use non-constant references in the following situations: >> > + >> > + >> > + >> > +when they are necessary to conform to a standard interface,

Re: [RFC] Update coding conventions to restrict use of non-const references

2018-07-16 Thread Aldy Hernandez
On Thu, Jul 12, 2018 at 1:41 PM Jonathan Wakely wrote: > > On Thu, 12 Jul 2018 at 11:41, Richard Sandiford wrote: > > +Only use non-constant references in the following situations: > > + > > + > > + > > +when they are necessary to conform to a standard interface, such as > > +the first argument

Re: [RFC] Update coding conventions to restrict use of non-const references

2018-07-16 Thread Aldy Hernandez
On Thu, Jul 12, 2018 at 8:02 PM Pedro Alves wrote: > > On 07/12/2018 05:17 PM, Richard Sandiford wrote: > > Pedro Alves writes: > > >> (an > >>> alternative to pointers is to return a struct with the wide int result > >>> and the overflow flag), > >> > >> +1. I've been pushing GDB in that

Re: Understanding tree_swap_operands_p wrt SSA name versions

2018-07-16 Thread Richard Biener
On Mon, Jul 16, 2018 at 12:19 AM Michael Ploujnikov wrote: > > On 2018-07-04 04:52 AM, Richard Biener wrote: > > On Tue, Jul 3, 2018 at 9:09 PM Jeff Law wrote: > >> > >> On 07/03/2018 11:55 AM, Michael Ploujnikov wrote: > >>> On 2018-07-03 12:46 PM, Richard Biener wrote: > On July 3, 2018

Re: [RFC] Update coding conventions to restrict use of non-const references

2018-07-16 Thread Richard Biener
On Mon, Jul 16, 2018 at 11:48 AM Aldy Hernandez wrote: > > > > On 07/16/2018 04:19 AM, Richard Sandiford wrote: > > Aldy Hernandez writes: > >> On Thu, Jul 12, 2018 at 1:41 PM Jonathan Wakely > >> wrote: > >>> > >>> On Thu, 12 Jul 2018 at 11:41, Richard Sandiford wrote: > +Only use

Re: [RFC] Update coding conventions to restrict use of non-const references

2018-07-16 Thread Aldy Hernandez
On 07/16/2018 04:19 AM, Richard Sandiford wrote: Aldy Hernandez writes: On Thu, Jul 12, 2018 at 1:41 PM Jonathan Wakely wrote: On Thu, 12 Jul 2018 at 11:41, Richard Sandiford wrote: +Only use non-constant references in the following situations: + + + +when they are necessary to conform

Re: Understanding tree_swap_operands_p wrt SSA name versions

2018-07-16 Thread Michael Ploujnikov
On 2018-07-16 04:30 AM, Richard Biener wrote: > On Mon, Jul 16, 2018 at 12:19 AM Michael Ploujnikov > wrote: >> >> On 2018-07-04 04:52 AM, Richard Biener wrote: >>> On Tue, Jul 3, 2018 at 9:09 PM Jeff Law wrote: On 07/03/2018 11:55 AM, Michael Ploujnikov wrote: > On 2018-07-03

Re: How to easily identify that a FUNCTION_DECL is a lambda

2018-07-16 Thread Nathan Sidwell
On 07/16/2018 03:23 AM, Martin Liška wrote: Hi. For purpose of --coverage I would like to distinguish lambda functions among DECL_ARTIFICIAL functions. Currently, cp-tree.h provides macro: /* Test if FUNCTION_DECL is a lambda function. */ #define LAMBDA_FUNCTION_P(FNDECL)

Re: [GSOC] LTO dump tool project

2018-07-16 Thread Hrishikesh Kulkarni
Hi, As suggested I have created command line option -optimized=[none, blocks, stats, vops] to dump the respective gimple bodies of all functions. for example: -optimized=blocks will dump Gimple body of function: main main () { ;; basic block 2, loop depth 0 ;;pred: ENTRY printf

Re: How to easily identify that a FUNCTION_DECL is a lambda

2018-07-16 Thread Richard Biener
On July 16, 2018 4:30:42 PM GMT+02:00, Nathan Sidwell wrote: >On 07/16/2018 03:23 AM, Martin Liška wrote: >> Hi. >> >> For purpose of --coverage I would like to distinguish lambda >functions >> among DECL_ARTIFICIAL functions. Currently, cp-tree.h provides macro: >> >> /* Test if FUNCTION_DECL

Re: How to easily identify that a FUNCTION_DECL is a lambda

2018-07-16 Thread Nathan Sidwell
On 07/16/2018 12:04 PM, Richard Biener wrote: Just use a spare bit in function_decl, then we can simply stream it. If there's one, then sure. (you've reminded me that there are a bunch of mutually disjoint flags in function_decl that could be collapsed to an enumeration. This may be

[Bug libstdc++/86537] std::less specialization for std::shared_ptr

2018-07-16 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86537 --- Comment #3 from Jonathan Wakely --- The changes from lwg 1262 were implemented by r171293 but we never got rid of the partial specialization of std::less.

Re: [GCC][PATCH][Aarch64] Exploiting BFXIL when OR-ing two AND-operations with appropriate bitmasks

2018-07-16 Thread Sam Tebbs
Hi Sudi, Thanks for noticing that, I have attached an improved patch file that fixes this issue. Below is an updated description and changelog: This patch adds an optimisation that exploits the AArch64 BFXIL instruction when or-ing the result of two bitwise and operations with

[Bug middle-end/86540] New: pr77445-2.c and ssa-dom-thread-7.c regressions since May 20, 2018

2018-07-16 Thread sje at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86540 Bug ID: 86540 Summary: pr77445-2.c and ssa-dom-thread-7.c regressions since May 20, 2018 Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal

[Bug c++/86533] [9.0 regression] Compile error on valid code: error: no matching function for call to 'std::allocator::allocator(const _Tp_alloc_type&)' { return _Map_alloc_type(_M_get

2018-07-16 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86533 Jonathan Wakely changed: What|Removed |Added Status|WAITING |RESOLVED Resolution|---

Re: [PATCH] Fix middle-end/86528

2018-07-16 Thread Richard Biener
On July 16, 2018 5:36:22 PM GMT+02:00, Bernd Edlinger wrote: >Hi, > >this fixes PR middle-end/86528. > > >Bootstrapped and reg-tested on x86_64-pc-linux-gnu. >Is it OK for trunk? OK. Richard. > >Thanks >Bernd.

[Bug middle-end/86528] [9 Regression] strlen of constant string malfunction -- had to back out fix for PR middle-end/77357

2018-07-16 Thread edlinger at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86528 --- Comment #6 from Bernd Edlinger --- Author: edlinger Date: Mon Jul 16 18:03:15 2018 New Revision: 262742 URL: https://gcc.gnu.org/viewcvs?rev=262742=gcc=rev Log: gcc: 2018-07-16 Bernd Edlinger PR middle-end/86528 *

[Bug libstdc++/86537] std::less specialization for std::shared_ptr

2018-07-16 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86537 Jonathan Wakely changed: What|Removed |Added Status|NEW |ASSIGNED

[Bug fortran/83183] Out of memory with option -finit-derived

2018-07-16 Thread foreese at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83183 Fritz Reese changed: What|Removed |Added Status|ASSIGNED|RESOLVED See Also|

[Bug fortran/86325] Error on valid code with pointer class components using -finit-derived

2018-07-16 Thread foreese at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86325 Fritz Reese changed: What|Removed |Added Status|ASSIGNED|RESOLVED See Also|

[Bug fortran/83184] Out of memory or ICE with option -fdec

2018-07-16 Thread foreese at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83184 --- Comment #5 from Fritz Reese --- Author: foreese Date: Mon Jul 16 19:10:39 2018 New Revision: 262747 URL: https://gcc.gnu.org/viewcvs?rev=262747=gcc=rev Log: 2018-07-16 Fritz Reese gcc/testsuite/ChangeLog: PR fortran/83184

Targeted Global B2B Companies emails list

2018-07-16 Thread carol . young
Hi, I just wanted to check if you would be interested in a list of Managed Service Providers (MSPs) and Managed Security Service Providers (MSSPs)? We also have the data intelligence of: • Managed Service Providers (MSP’s) – 25,000 unique companies • Managed Security Service

Re: [RFC] Induction variable candidates not sufficiently general

2018-07-16 Thread Kelvin Nilsen
ternal64/1 mr 9,6 # 9[c=4 l=4] *movdi_internal64/2 extsw 3,9# 141 [c=4 l=4] extendsidi2/1 .cfi_restore 31 .cfi_restore 30 .cfi_restore 29 .cfi_restore 28 blr # 149 [c=4 l=4] simple_return

[Bug fortran/83184] Out of memory or ICE with option -fdec

2018-07-16 Thread foreese at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83184 --- Comment #3 from Fritz Reese --- Author: foreese Date: Mon Jul 16 18:24:50 2018 New Revision: 262744 URL: https://gcc.gnu.org/viewcvs?rev=262744=gcc=rev Log: 2018-07-16 Fritz Reese Fix handling of invalid assumed-shape/size arrays in

[Bug fortran/86417] [9 Regression] FAIL: libgomp.fortran/alloc-comp-3.f90 -O0 (test for excess errors)

2018-07-16 Thread foreese at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86417 Fritz Reese changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Bug tree-optimization/86532] [9 Regression] Wrong code due to a wrong strlen folding starting with r262522

2018-07-16 Thread bernd.edlinger at hotmail dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86532 --- Comment #3 from Bernd Edlinger --- Hi Martin, how about: --- gcc/expr.c.jj 2018-07-09 22:33:48.0 +0200 +++ gcc/expr.c 2018-07-16 17:18:47.919177047 +0200 @@ -11359,6 +11359,9 @@ string_constant (tree arg, tree *ptr_off

[Bug middle-end/86539] New: OpenMP wrong-code with taskloop and references

2018-07-16 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86539 Bug ID: 86539 Summary: OpenMP wrong-code with taskloop and references Product: gcc Version: 9.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component:

[Bug libstdc++/86537] std::less specialization for std::shared_ptr

2018-07-16 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86537 --- Comment #4 from Jonathan Wakely --- Author: redi Date: Mon Jul 16 17:13:41 2018 New Revision: 262739 URL: https://gcc.gnu.org/viewcvs?rev=262739=gcc=rev Log: PR libstdc++/86537 remove less> partial specialization The standard doesn't

[PATCH] PR libstdc++/86537 remove less> partial specialization

2018-07-16 Thread Jonathan Wakely
The standard doesn't specify this partial specialization (it was required after the changes in N2637 but then should have been removed following LWG 1262). Its presence is observable because it causes different results when operator< has been overloaded for a shared_ptr specialization.

Re: [PATCH] Fix middle-end/86528

2018-07-16 Thread Martin Sebor
On 07/16/2018 09:36 AM, Bernd Edlinger wrote: Hi, this fixes PR middle-end/86528. Bootstrapped and reg-tested on x86_64-pc-linux-gnu. Is it OK for trunk? Thanks -- the string_constant change also fixes bug 86532. There is another problem in the subsequent handling of the CONSTRUCTOR -- it

[PATCH, cvs] Clarify that powerpc64le-linux-gnu is a primary platform

2018-07-16 Thread Bill Schmidt
Hi, I occasionally get questions about powerpc64le-linux-gnu being a primary platform for GCC, since the release criteria don't specifically call it out (see https://gcc.gnu.org/gcc-8/criteria.html). Currently powerpc64-linux-gnu (for big-endian) is listed instead, which is misleading. I

Re: [PATCH, cvs] Clarify that powerpc64le-linux-gnu is a primary platform

2018-07-16 Thread Jeff Law
On 07/16/2018 12:30 PM, Bill Schmidt wrote: > Hi, > > I occasionally get questions about powerpc64le-linux-gnu being a primary > platform > for GCC, since the release criteria don't specifically call it out (see > https://gcc.gnu.org/gcc-8/criteria.html). Currently powerpc64-linux-gnu (for >

Re: [PATCH 1/4] Clean up of new format of -falign-FOO.

2018-07-16 Thread Pat Haugen
testsuite/gcc.target/powerpc/loop_align.c fails with this patch. It just needs a simple tweak to the scan-assembler line since we're no longer generating the ",,31" portion on the .p2align. -Pat

Re: [Patch, Fortran] PR 85599: warn about short-circuiting of logical expressions for non-pure functions

2018-07-16 Thread Thomas Koenig
Am 16.07.2018 um 10:06 schrieb Janus Weil: However, one point: I think that the warning should be under a separate warning, which should then be enabled by -Wextra. -Waggressive-function-elimination, could be reused for this, or something else I don't actually see such a flag in the manual.

[Bug testsuite/86519] [9 Regression] New test case gcc.dg/strcmpopt_6.c fails with its introduction in r262636

2018-07-16 Thread qing.zhao at oracle dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86519 --- Comment #3 from Qing Zhao --- > --- Comment #2 from seurer at gcc dot gnu.org --- > What system are you testing on? I've seen the same failure on power 8 and > power 9 LE systems and power 7 and power 8 BE systems. I am using the GCC farm

Re: [PATCH][GCC][AArch64] Updated stack-clash implementation supporting 64k probes. [patch (1/6)]

2018-07-16 Thread Jeff Law
On 07/16/2018 07:54 AM, Tamar Christina wrote: > The 07/13/2018 17:46, Jeff Law wrote: >> On 07/12/2018 11:39 AM, Tamar Christina wrote: > + > + /* Round size to the nearest multiple of guard_size, and calculate the > + residual as the difference between the original size and the

[Bug libstdc++/86537] std::less specialization for std::shared_ptr

2018-07-16 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86537 Jonathan Wakely changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

Re: [2/2] Add AddressSanitizer annotations to std::string.

2018-07-16 Thread Mikhail Kashkarov
Rebased and update patch (typos, add missing annotations), add ASan teststo verify string annotation. On 06/28/2018 11:09 AM, Mikhail Kashkarov wrote: > ^ gentle ping. > > > On 06/08/2018 05:54 PM, Mikhail Kashkarov wrote: >> Hello, >> >> I've updated patches for std::string sanitization and

[Bug target/86541] New: Use SSE to emulate __attribute__((vector_size(8)))

2018-07-16 Thread rth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86541 Bug ID: 86541 Summary: Use SSE to emulate __attribute__((vector_size(8))) Product: gcc Version: unknown Status: UNCONFIRMED Severity: enhancement Priority: P3

[Bug c++/86533] [9.0 regression] Compile error on valid code: error: no matching function for call to 'std::allocator::allocator(const _Tp_alloc_type&)' { return _Map_alloc_type(_M_get

2018-07-16 Thread juergen.reuter at desy dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86533 --- Comment #3 from Jürgen Reuter --- (In reply to Jonathan Wakely from comment #2) > My best guess is that you've messed up your GCC installation, because > _GLIBCXX20_CONSTEXPR should be defined in like so: > > #ifndef _GLIBCXX20_CONSTEXPR >

Re: [C++ Patch] Check permerror return value

2018-07-16 Thread Nathan Sidwell
On 07/16/2018 07:46 AM, Paolo Carlini wrote: Hi, over the last weeks, while working on various diagnostic issues, I noticed a few defective permerror + inform pairs. Tested x86_64-linux. ok, thanks -- Nathan Sidwell

[Bug tree-optimization/86532] [9 Regression] Wrong code due to a wrong strlen folding starting with r262522

2018-07-16 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86532 Martin Sebor changed: What|Removed |Added See Also||https://gcc.gnu.org/bugzill

[PATCH] scripts/create_testsuite_files: Fix typo in comment.

2018-07-16 Thread Jonathan Wakely
Committed to trunk. commit 2a123b20c5bbb6b54d157281e2dbe546a28086f5 Author: Jonathan Wakely Date: Mon Jul 16 18:41:31 2018 +0100 * scripts/create_testsuite_files: Fix typo in comment. diff --git a/libstdc++-v3/scripts/create_testsuite_files

[Bug fortran/86417] [9 Regression] FAIL: libgomp.fortran/alloc-comp-3.f90 -O0 (test for excess errors)

2018-07-16 Thread foreese at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86417 --- Comment #16 from Fritz Reese --- Author: foreese Date: Mon Jul 16 18:59:44 2018 New Revision: 262746 URL: https://gcc.gnu.org/viewcvs?rev=262746=gcc=rev Log: 2018-07-16 Fritz Reese Backport r262442 and r262743.

[Bug fortran/86325] Error on valid code with pointer class components using -finit-derived

2018-07-16 Thread foreese at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86325 --- Comment #3 from Fritz Reese --- Author: foreese Date: Mon Jul 16 18:59:44 2018 New Revision: 262746 URL: https://gcc.gnu.org/viewcvs?rev=262746=gcc=rev Log: 2018-07-16 Fritz Reese Backport r262442 and r262743.

[Bug fortran/83183] Out of memory with option -finit-derived

2018-07-16 Thread foreese at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83183 --- Comment #4 from Fritz Reese --- Author: foreese Date: Mon Jul 16 18:59:44 2018 New Revision: 262746 URL: https://gcc.gnu.org/viewcvs?rev=262746=gcc=rev Log: 2018-07-16 Fritz Reese Backport r262442 and r262743.

[PATCH] Make function clone name numbering independent.

2018-07-16 Thread Michael Ploujnikov
Hi, This patch is a small part of the work I'm doing to make function codegen/assembly independent from one another as mentioned in: https://gcc.gnu.org/ml/gcc/2018-07/msg00210.html. It deals with clone_fn_id_num rather than object UIDs and I figured it's better to make my first submission

[PATCH] Fix inline memcpy ICE (PR tree-optimization/86526)

2018-07-16 Thread Jakub Jelinek
Hi! builtin_memcpy_read_str is a function meant to be called just as a callback and verifies that we don't cross a '\0' boundary in the string. For inline_string_cmp, we've checked that the length returned from c_getstr is fine, so we can cross as many embedded NULs as there are within the

Re: [PATCH 1/4] Clean up of new format of -falign-FOO.

2018-07-16 Thread Jeff Law
On 07/04/2018 04:23 AM, marxin wrote: > gcc/ChangeLog: > > 2018-07-11 Martin Liska > > * align.h: New file. > * config/alpha/alpha.c (alpha_align_insns_1): Use align_functions > directly. > * config/i386/i386.c (ix86_avoid_jump_mispredicts): Use new return type >

[Bug go/86535] FreeBSD/PowerPC64 - Building Go Frontend support for gcc 7.3.0 fails

2018-07-16 Thread clhamilto at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86535 --- Comment #2 from Curtis Hamilton --- Created attachment 44402 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=44402=edit Requested generated file I cannot find a definition for 'cmsghdr' in any header file. The only reference I see in

[Bug middle-end/86471] GCC/libstdc++ outputs inferior code for std::fill and std::fill_n vs std::memset on c-style arrays

2018-07-16 Thread mattreecebentley at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86471 --- Comment #13 from Matt Bentley --- (In reply to Jonathan Wakely from comment #12) > Also you're doing a reinterpret_cast from an arbitrary iterator type, which > is not necessarily a pointer, or even a random access iterator. > > Since you

[Bug middle-end/86471] GCC/libstdc++ outputs inferior code for std::fill and std::fill_n vs std::memset on c-style arrays

2018-07-16 Thread mattreecebentley at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86471 --- Comment #14 from Matt Bentley --- (In reply to Matt Bentley from comment #13) > (In reply to Jonathan Wakely from comment #12) > > Also you're doing a reinterpret_cast from an arbitrary iterator type, which > > is not necessarily a pointer,

Re: [PATCH] Fix inline memcpy ICE (PR tree-optimization/86526)

2018-07-16 Thread Jeff Law
On 07/16/2018 02:41 PM, Jakub Jelinek wrote: > Hi! > > builtin_memcpy_read_str is a function meant to be called just as a callback > and verifies that we don't cross a '\0' boundary in the string. For > inline_string_cmp, we've checked that the length returned from c_getstr > is fine, so we can

[Bug tree-optimization/86526] [9 Regression] ICE in builtin_memcpy_read_str, at builtins.c:3017

2018-07-16 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86526 --- Comment #5 from Jakub Jelinek --- Author: jakub Date: Mon Jul 16 21:25:22 2018 New Revision: 262750 URL: https://gcc.gnu.org/viewcvs?rev=262750=gcc=rev Log: PR tree-optimization/86526 * builtins.c (expand_builtin_memcmp):

Re: [PATCH, ARM] PR85434: Prevent spilling of stack protector guard's address on ARM

2018-07-16 Thread Jeff Law
On 07/05/2018 08:48 AM, Thomas Preudhomme wrote: > In case of high register pressure in PIC mode, address of the stack > protector's guard can be spilled on ARM targets as shown in PR85434, > thus allowing an attacker to control what the canary would be compared > against. ARM does lack

[Bug fortran/86417] [9 Regression] FAIL: libgomp.fortran/alloc-comp-3.f90 -O0 (test for excess errors)

2018-07-16 Thread foreese at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86417 --- Comment #17 from Fritz Reese --- Author: foreese Date: Mon Jul 16 22:25:54 2018 New Revision: 262751 URL: https://gcc.gnu.org/viewcvs?rev=262751=gcc=rev Log: 2018-07-16 Fritz Reese gcc/testsuite/ChangeLog: Backport from

[Bug fortran/86325] Error on valid code with pointer class components using -finit-derived

2018-07-16 Thread foreese at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86325 --- Comment #4 from Fritz Reese --- Author: foreese Date: Mon Jul 16 22:25:54 2018 New Revision: 262751 URL: https://gcc.gnu.org/viewcvs?rev=262751=gcc=rev Log: 2018-07-16 Fritz Reese gcc/testsuite/ChangeLog: Backport from

[Bug fortran/83183] Out of memory with option -finit-derived

2018-07-16 Thread foreese at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83183 --- Comment #5 from Fritz Reese --- Author: foreese Date: Mon Jul 16 22:25:54 2018 New Revision: 262751 URL: https://gcc.gnu.org/viewcvs?rev=262751=gcc=rev Log: 2018-07-16 Fritz Reese gcc/testsuite/ChangeLog: Backport from

[PATCH 5/6] rs6000: New testsuite selectors

2018-07-16 Thread Segher Boessenkool
This introduces four new selectors for use with Power testcases: longdouble64, ppc_float128, ppc_float128_insns, powerpc_vsx. 2018-07-16 Segher Boessenkool gcc/testsuite/ * lib/target-supports.exp (check_effective_target_longdouble64, check_effective_target_ppc_float128,

[PATCH 1/6] rs6000: Use more correct names for some trunc/extend libcalls

2018-07-16 Thread Segher Boessenkool
They had source and destination swapped in the name. 2018-07-16 Segher Boessenkool * config/rs6000/rs6000.c (init_float128_ibm): Use more correct names for the conversions between TDmode and IFmode. (init_float128_ieee): Use more correct names for the conversions

[PATCH 6/6] rs6000: New testcase fp-convert.c

2018-07-16 Thread Segher Boessenkool
This tests the generated code for all conversions between floating point point types, binary and decimal. 2018-07-16 Segher Boessenkool gcc/testsuite/ * gcc.target/powerpc/convert-fp-128.c: New testcase. * gcc.target/powerpc/convert-fp-64.c: New testcase. ---

[Bug middle-end/86471] GCC/libstdc++ outputs inferior code for std::fill and std::fill_n vs std::memset on c-style arrays

2018-07-16 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86471 --- Comment #15 from Jonathan Wakely --- (In reply to Matt Bentley from comment #14) > (In reply to Matt Bentley from comment #13) > > (In reply to Jonathan Wakely from comment #12) > > > Also you're doing a reinterpret_cast from an arbitrary

[PATCH 3/6] rs6000: Improve truncifsf2

2018-07-16 Thread Segher Boessenkool
The current implementation leaves an unnecessary register move. It is easier to just expand things in the expander already. This patch does that. 2018-07-16 Segher Boessenkool * config/rs6000/rs6000.md (truncsf2): Expand truncates of double-double modes to SFmode directly

[PATCH 4/6] rs6000: Fix testsuite bug in check_ppc_float128_hw_available

2018-07-16 Thread Segher Boessenkool
The test program for ppc_float128_hw_available would always return false, since there is a syntax error in that test program. 2018-07-16 Segher Boessenkool gcc/testsuite/ * lib/target-supports.exp (check_ppc_float128_hw_available): Fix syntax error. ---

[PATCH 2/6] rs6000: Use correct names for some trunc/extend libcalls

2018-07-16 Thread Segher Boessenkool
The libcalls for trunc and extend of a decimal float to a binary float, and vice versa, do not have "2" in the name, although all other such conversions do. 2018-07-16 Segher Boessenkool * config/rs6000/rs6000.c (init_float128_ibm): Use the correct names for conversions

[PATCH 0/6] rs6000: Test all rs6000 floating point conversions

2018-07-16 Thread Segher Boessenkool
This series adds new codegen tests for converting any of our seven floating point modes to any of those seven. It also fixes a bunch of bugs so that these testcases pass. Tested on powerpc64-linux {-m32,-m64} (a power7); on powerpc64le-linux, both on power8 and on power9; and on AIX. Also

[Bug tree-optimization/86520] AArch64: Two 8-bit accesses coalesced into a single 16-bit access

2018-07-16 Thread swarren at nvidia dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86520 --- Comment #6 from Stephen Warren --- > Note that library code also assumes that misaligned accesses are safe: > that is the default for AArch64. I assume you're talking about gcc's default, not any architectural default? The ARMv8 ARM states

[Bug fortran/83184] Out of memory or ICE with option -fdec

2018-07-16 Thread foreese at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83184 --- Comment #7 from Fritz Reese --- Author: foreese Date: Mon Jul 16 23:35:39 2018 New Revision: 262759 URL: https://gcc.gnu.org/viewcvs?rev=262759=gcc=rev Log: 2018-07-16 Fritz Reese gcc/testsuite/ChangeLog: PR fortran/83184

[Bug target/86414] AIX generates wrong for divide and multiply for KC mode

2018-07-16 Thread carll at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86414 --- Comment #1 from Carl Love --- Author: carll Date: Mon Jul 16 23:35:25 2018 New Revision: 262758 URL: https://gcc.gnu.org/viewcvs?rev=262758=gcc=rev Log: gcc/testsuite/ChangeLog: 2018-07-16 Carl Love Forgot the PR number on the commit

[Bug testsuite/86519] [9 Regression] New test case gcc.dg/strcmpopt_6.c fails with its introduction in r262636

2018-07-16 Thread seurer at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86519 --- Comment #4 from seurer at gcc dot gnu.org --- I also just tried it on gcc110 and indeed it does not fail there. However, it does fail on gcc112.

[Bug testsuite/86519] [9 Regression] New test case gcc.dg/strcmpopt_6.c fails with its introduction in r262636

2018-07-16 Thread qing.zhao at oracle dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86519 --- Comment #5 from Qing Zhao --- > --- Comment #4 from seurer at gcc dot gnu.org --- > I also just tried it on gcc110 and indeed it does not fail there. However, it > does fail on gcc112. thanks a lot. will try on gcc112.

Re: [PATCH] Add baseline symbols for riscv64-linux-gnu

2018-07-16 Thread Jim Wilson
On Mon, Jul 16, 2018 at 3:24 AM, Andreas Schwab wrote: > * config/abi/post/riscv64-linux-gnu/baseline_symbols.txt: New file. > I'm not familiar with the details of these baseline symbol files. When I try running "make new-abi-baseline" on my Fedora riscv64-linux system using top of

[Bug target/81283] Quirks around 32-bit PowerPC built-in Atomics

2018-07-16 Thread kallisti5 at unixzen dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81283 Alexander von Gluck changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug fortran/83184] Out of memory or ICE with option -fdec

2018-07-16 Thread foreese at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83184 --- Comment #6 from Fritz Reese --- Author: foreese Date: Mon Jul 16 20:55:32 2018 New Revision: 262748 URL: https://gcc.gnu.org/viewcvs?rev=262748=gcc=rev Log: 2018-07-16 Fritz Reese gcc/testsuite/ChangeLog: PR fortran/83184

[Bug ipa/86529] [9 Regression] ICE in malloc_candidate_p, at ipa-pure-const.c:962

2018-07-16 Thread marxin at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86529 Martin Liška changed: What|Removed |Added Status|UNCONFIRMED |ASSIGNED Last reconfirmed|

[Bug ipa/86529] New: [9 Regression] ICE in malloc_candidate_p, at ipa-pure-const.c:962

2018-07-16 Thread marxin at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86529 Bug ID: 86529 Summary: [9 Regression] ICE in malloc_candidate_p, at ipa-pure-const.c:962 Product: gcc Version: 9.0 Status: UNCONFIRMED Keywords:

[Bug ipa/86529] [9 Regression] ICE in malloc_candidate_p, at ipa-pure-const.c:962

2018-07-16 Thread marxin at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86529 Martin Liška changed: What|Removed |Added Status|UNCONFIRMED |ASSIGNED Last reconfirmed|

Re: [PATCH][debug] Fix pre_dec handling in vartrack

2018-07-16 Thread Jakub Jelinek
On Sun, Jul 15, 2018 at 11:21:56PM +0200, Tom de Vries wrote: > 2018-07-15 Tom de Vries > > * var-tracking.c (vt_initialize): Fix pre_dec handling. Print adjusted > insn slim if dump_flags request TDF_SLIM. > > * gcc.target/i386/vartrack-1.c: New test. > > --- > ---

[Bug tree-optimization/86530] Vectorization failure for a simple loop

2018-07-16 Thread jiangning.liu at amperecomputing dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86530 --- Comment #1 from Jiangning Liu --- Created attachment 44396 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=44396=edit vectorization failure Attached is -O3 result for aarch64, in which no vectorization code generated at all.

[Bug lto/86517] relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object with LTO

2018-07-16 Thread marxin at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86517 Martin Liška changed: What|Removed |Added Status|RESOLVED|REOPENED Last reconfirmed|

[Bug lto/86517] relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object with LTO

2018-07-16 Thread marxin at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86517 --- Comment #4 from Martin Liška --- Created attachment 44397 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=44397=edit Full reproducer As mentioned in my first commit, -shared was only used in order to reduce the test-case. I'm attaching

[Bug rtl-optimization/86525] [missed-optimization] extraneous instruction emitted in switch converted to look-uptable load

2018-07-16 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86525 Richard Biener changed: What|Removed |Added Keywords||missed-optimization

[Bug libstdc++/86524] [8/9 Regression] std::less with pointer arguments not usable in static_assert in constexpr function

2018-07-16 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86524 Richard Biener changed: What|Removed |Added Keywords||rejects-valid Component|c++

[Bug tree-optimization/86526] [9 Regression] ICE in builtin_memcpy_read_str, at builtins.c:3017

2018-07-16 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86526 Richard Biener changed: What|Removed |Added Target Milestone|--- |9.0 Summary|ICE in

[Bug c++/86208] [6/7/8/9 Regression] improper handling of an extern declared inline function

2018-07-16 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86208 --- Comment #5 from Jakub Jelinek --- Author: jakub Date: Mon Jul 16 07:43:43 2018 New Revision: 262678 URL: https://gcc.gnu.org/viewcvs?rev=262678=gcc=rev Log: PR c++/3698 PR c++/86208 * cp-gimplify.c (cp_genericize_r):

[Bug c++/3698] improper handling of an extern declared inline function

2018-07-16 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3698 --- Comment #2 from Jakub Jelinek --- Author: jakub Date: Mon Jul 16 07:43:43 2018 New Revision: 262678 URL: https://gcc.gnu.org/viewcvs?rev=262678=gcc=rev Log: PR c++/3698 PR c++/86208 * cp-gimplify.c (cp_genericize_r):

[Bug c++/3698] improper handling of an extern declared inline function

2018-07-16 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3698 --- Comment #3 from Jakub Jelinek --- Author: jakub Date: Mon Jul 16 07:44:48 2018 New Revision: 262679 URL: https://gcc.gnu.org/viewcvs?rev=262679=gcc=rev Log: PR c++/3698 PR c++/86208 * cp-gimplify.c (cp_genericize_r):

[Bug c++/86208] [6/7/8/9 Regression] improper handling of an extern declared inline function

2018-07-16 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86208 --- Comment #6 from Jakub Jelinek --- Author: jakub Date: Mon Jul 16 07:44:48 2018 New Revision: 262679 URL: https://gcc.gnu.org/viewcvs?rev=262679=gcc=rev Log: PR c++/3698 PR c++/86208 * cp-gimplify.c (cp_genericize_r):

Re: [PATCH] S/390: libstdc++: 64 and 32 bit baseline update

2018-07-16 Thread Andreas Krebbel
On 07/13/2018 04:58 PM, Andreas Schwab wrote: > On Jul 13 2018, Andreas Krebbel wrote: > >> @@ -5645,3 +5657,5 @@ OBJECT:8:_ZTTSi@@GLIBCXX_3.4 >> OBJECT:8:_ZTTSo@@GLIBCXX_3.4 >> OBJECT:8:_ZTTSt13basic_istreamIwSt11char_traitsIwEE@@GLIBCXX_3.4 >>

[Bug lto/86517] relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object with LTO

2018-07-16 Thread hubicka at ucw dot cz
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86517 --- Comment #6 from Jan Hubicka --- The problem is logic in lto-wrapper (which is mine) /* Merge PIC options: -fPIC + -fpic = -fpic

Re: [PATCH, middle-end]: Fix PR86511, traps are generated for non-trapping compares

2018-07-16 Thread Richard Biener
On Fri, Jul 13, 2018 at 5:40 PM Uros Bizjak wrote: > > As demonstrated in the PR, middle-end changes the trappines of the > compare by expanding non-trapping compare to a combination of > setcc/cmove branchless code, e.g. UNLT is split to UNORDERED setcc and > LT cmove. > > The above conversion

Re: [PATCH] Fix part of PR86389

2018-07-16 Thread Richard Biener
On Fri, 13 Jul 2018, Sandra Loosemore wrote: > On 07/03/2018 07:55 AM, Richard Biener wrote: > > > > Bootstrapped and tested on x86_64-unknown-linux-gnu, applied. > > > > Richard. > > > > From 52aad98947e5cfcb5624ff24f0c557d0029c34fe Mon Sep 17 00:00:00 2001 > > From: Richard Guenther > >

[Bug tree-optimization/86530] New: Vectorization failure for a simple loop

2018-07-16 Thread jiangning.liu at amperecomputing dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86530 Bug ID: 86530 Summary: Vectorization failure for a simple loop Product: gcc Version: 9.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component:

[patch] Fix PR tree-optimization/86514

2018-07-16 Thread Eric Botcazou
Hi, this is a regression present on the mainline and 8 branch in the form of wrong code generated for an Ada program manipulating bit-packed boolean array types. The problem is in the new range optimization code of the reassoc pass: from _64 = _63 | 4; _73 = _64 & 191; _76 = _64 >> 6;

Re: [Patch, Fortran] PR 85599: warn about short-circuiting of logical expressions for non-pure functions

2018-07-16 Thread Janus Weil
Hi Thomas, >> I tested it on a fairly large code base and found no further false >> positives. Also it still regtests cleanly. Ok for trunk? > > > while I still disagree with this on principle, I will not stand > in the way. IIUC you disagree in the sense that you would like gfortran to have

[Bug testsuite/86519] [9 Regression] New test case gcc.dg/strcmpopt_6.c fails with its introduction in r262636

2018-07-16 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86519 Richard Biener changed: What|Removed |Added Target Milestone|--- |9.0 Summary|New test case

[Bug bootstrap/86518] Strengthen bootstrap comparison by not enabling warnings at stage3

2018-07-16 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86518 Richard Biener changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed|

  1   2   3   >