Re: GCC 7.4 Release Candidate available from gcc.gnu.org

2018-12-04 Thread Iain Sandoe
> On 29 Nov 2018, at 22:53, Bill Seurer wrote: > > On 11/29/18 04:24, Richard Biener wrote: >> A release candidate for GCC 7.4 is available from >> ftp://gcc.gnu.org/pub/gcc/snapshots/7.4.0-RC-20181129/ >> and shortly its mirrors. It has been generated from SVN revision 266611. >> I have so

Re: Bug 84762 - GCC for PowerPC32 violates the SysV ABI spec for small struct returns

2018-12-04 Thread Franz Sirl
Am 2018-12-04 um 08:14 schrieb Lokesh Janghel: Thank you Sirl, -msvr4-struct-return=standard and -msvr4-struct-return=gnu (which would be the default (-msvr4-struct-return=standard) by default, you mean using registers to return? Hi Lokesh, both return small structs in registers. The

Re: returning struct or union with just double on Win32/x86

2018-12-04 Thread Jonathan Wakely
On Tue, 4 Dec 2018 at 10:19, Jay K wrote: > Seems like a bug? Then it should be reported to Bugzilla, not this mailing list. See https://gcc.gnu.org/bugs/

returning struct or union with just double on Win32/x86

2018-12-04 Thread Jay K
typedef struct { double d; } Struct; Struct f1 () { Struct res = {3.0}; return res; } typedef union { double d; } Union; Union f2 () { Union res = {3.0}; return res; } x86 mingw 7.3.0 The first returns in ST0, the  second in edx:eax. Msvc returns first in edx:eax. Seems like a bug?

Re : North American Farm & Power Show - Attendees Info

2018-12-04 Thread Daniel Jones
Hi, I hope you are the right person to discuss about North American Farm & Power Show Attendees Email info? North American Farm & Power Show of 2,000+ attendees with complete details and verified e-addresses. List will be provided for unlimited usage. Interested? Email me back, I'd love to

Re: Bug in divmodhi4(), plus poor inperformant code

2018-12-04 Thread Paul Koning
Yes, that's a rather nasty cut & paste error I made. But if the 31 is changed to a 15, is the code correct? I would think so. For optimization I'd think that an assembly language version would make more sense, and a few targets do that. paul > On Dec 4, 2018, at 5:51 PM, Stefan

Re: Bug in divmodhi4(), plus poor inperformant code

2018-12-04 Thread Stefan Kanthak
"Paul Koning" wrote: > Yes, that's a rather nasty cut & paste error I made. I suspected that. Replacing !(den & (1L<<31)) with (signed short) den >= 0 avoids this type of error: there's no need for a constant here! JFTR: of course the 1L should be just a 1, without suffix. > But if

Bug in divmodhi4(), plus poor inperformant code

2018-12-04 Thread Stefan Kanthak
Hi @ll, libgcc's divmodhi4() function has an obvious bug; additionally it shows rather poor inperformant code: two of the three conditions tested in the first loop should clearly moved outside the loop! divmodsi4() shows this inperformant code too! regards Stefan Kanthak --- divmodhi4.c ---

New Template

2018-12-04 Thread F Magazine
Food Newsletter

[Bug tree-optimization/88315] SAD and DOT_PROD SLP reductions with initial value != 0 create wrong code

2018-12-04 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88315 --- Comment #2 from Richard Biener --- Author: rguenth Date: Tue Dec 4 08:23:40 2018 New Revision: 266771 URL: https://gcc.gnu.org/viewcvs?rev=266771=gcc=rev Log: 2018-12-04 Richard Biener PR tree-optimization/88315 *

[Bug rtl-optimization/88317] ICE: Segmentation fault (in split_reg -> bitmap_set_bit -> bitmap_list_link_element)

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

[Bug rtl-optimization/88317] ICE: Segmentation fault (in split_reg -> bitmap_set_bit -> bitmap_list_link_element)

2018-12-04 Thread asolokha at gmx dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88317 --- Comment #2 from Arseny Solokha --- (In reply to Richard Biener from comment #1) > Running via valgrind makes it succeed (eh). You'll likely have different results w/ different revisions of the compiler under test. One may want to tweak

[Bug sanitizer/88333] [9 Regression] ice in asan_emit_stack_protection, at asan.c:1574

2018-12-04 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88333 --- Comment #3 from Jakub Jelinek --- Untested fix: --- gcc/cfgexpand.c.jj 2018-11-30 19:59:59.676789914 +0100 +++ gcc/cfgexpand.c 2018-12-04 11:25:55.549672029 +0100 @@ -1124,6 +1124,11 @@ expand_stack_vars (bool (*pred) (size_t)

[Bug middle-end/88345] -Os overrides -finline-functions=N on the command line

2018-12-04 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88345 Jakub Jelinek changed: What|Removed |Added CC||jakub at gcc dot gnu.org --- Comment #2

[Bug fortran/88351] New: void post_dec_flags(int) and void set_init_local_zero(int) in gcc/fortran/options.c defined but not used

2018-12-04 Thread samtebbs at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88351 Bug ID: 88351 Summary: void post_dec_flags(int) and void set_init_local_zero(int) in gcc/fortran/options.c defined but not used Product: gcc Version: unknown

[Bug rtl-optimization/88349] [9 regression][MIPS] Redundant store instructions generated start with r266385

2018-12-04 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88349 Richard Biener changed: What|Removed |Added Keywords||ra Target|

[Bug c/88352] New: x86 mingw returning struct with just double in ST0 instead of edx:eax

2018-12-04 Thread jay.krell at cornell dot edu
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88352 Bug ID: 88352 Summary: x86 mingw returning struct with just double in ST0 instead of edx:eax Product: gcc Version: 7.3.0 Status: UNCONFIRMED Severity: normal

[Bug c++/88348] ICE in pp_cxx_unqualified_id when handling pointer to pointer to member

2018-12-04 Thread zhouzhouyi at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88348 --- Comment #1 from Zhouyi Zhou --- I submitted a patch in https://gcc.gnu.org/ml/gcc-patches/2018-12/msg00151.html Can someone review it for me?

[Bug c++/88103] [7/8/9 Regression] Wrong value category when conditional expression result is used as object expression

2018-12-04 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88103 --- Comment #5 from Jakub Jelinek --- Author: jakub Date: Tue Dec 4 08:44:12 2018 New Revision: 266772 URL: https://gcc.gnu.org/viewcvs?rev=266772=gcc=rev Log: PR c++/88103 * typeck.c (build_class_member_access_expr): If

[Bug target/88346] [9 Regression] Inconsistent list of CPUs supported by the rs6000 backend after r266502

2018-12-04 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88346 Richard Biener changed: What|Removed |Added Target Milestone|--- |9.0

[Bug middle-end/88345] -Os overrides -finline-functions=N on the command line

2018-12-04 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88345 --- Comment #3 from Richard Biener --- -falign-functions you mean? Targets do/should check whether str_align_functions is set before altering align_functions.

[Bug sanitizer/88333] [9 Regression] ice in asan_emit_stack_protection, at asan.c:1574

2018-12-04 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88333 Jakub Jelinek changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed|

[Bug sanitizer/88350] Linux kernel build ICE with allyesconfig for aarch64

2018-12-04 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88350 --- Comment #1 from Jakub Jelinek --- Dup of PR88333 ? It would be helpful to see full gcc command line.

[PATCH] Fix miscompiles with latest VRP change

2018-12-04 Thread Richard Biener
Jeff noticed that some dfp stuff was miscompiled. I appearantly didn't notice the new assert registering isn't guarded by EQ/NE_EXPR thus the following makes it fancy. Bootstrapped and tested on x86_64-unknown-linux-gnu, applied. Richard. 2018-12-04 Richard Biener PR

Re: [committed] C++ PATCH to add test for c++/83856

2018-12-04 Thread Christophe Lyon
On Mon, 3 Dec 2018 at 17:05, Marek Polacek wrote: > > On Mon, Dec 03, 2018 at 10:14:11AM +0100, Christophe Lyon wrote: > > This new test fails on arm and other targets according to > > gcc-testresults. On arm, I can see: > > /gcc/testsuite/g++.dg/cpp1y/lambda-generic-83856.C:6:27: fatal error: >

Re: [PATCH] Fix PR64242

2018-12-04 Thread Jakub Jelinek
On Tue, Dec 04, 2018 at 11:20:38AM +0100, Christophe Lyon wrote: > This commit didn't fix the failure I reported on some arm targets, and > it introduced > a regression on aarch64-none-elf with -mabi=ilp32: > FAIL: gcc.c-torture/execute/pr64242.c -O0 execution test > Il seems the test

[Bug rtl-optimization/88349] [9 regression][MIPS] Redundant store instructions generated start with r266385

2018-12-04 Thread paul.hua.gm at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88349 --- Comment #1 from Paul Hua --- paulhua@gcc122:~/test/debug_msa$ cat v16i8_cmpi.i typedef signed char v16i8 __attribute__ ((vector_size(16))); v16i8 test31_s_v16i8 (v16i8 i) { return i < 5; } good asm: test31_s_v16i8: .frame

Re: [PATCH] Fix PR64242

2018-12-04 Thread Christophe Lyon
On Mon, 3 Dec 2018 at 17:26, Jakub Jelinek wrote: > > Hi! > > Here is a fix for the testcase, so that it doesn't FAIL pretty much > everywhere. > > On Fri, Nov 30, 2018 at 04:07:31PM -0700, Jeff Law wrote: > > > PR middle-end/64242 > > > * gcc.c-torture/execute/pr64242.c: New test. > >

[Bug fortran/88351] void post_dec_flags(int) and void set_init_local_zero(int) in gcc/fortran/options.c defined but not used

2018-12-04 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88351 Jakub Jelinek changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED CC|

Re: [PATCH AutoFDO/2]Treat ZERO as common profile probability/count

2018-12-04 Thread Bin.Cheng
On Thu, Nov 29, 2018 at 12:20 AM Jan Hubicka wrote: > > > On Tue, Nov 20, 2018 at 6:55 PM bin.cheng > > wrote: > > > > > > Sender:Jan Hubicka > > > Sent at:2018 Nov 5 (Mon) 22:21 > > > To:Richard Biener > > > Cc:bin.cheng ; GCC Patches > > > > > > Subject:Re: [PATCH AutoFDO/2]Treat ZERO as

[Bug testsuite/88332] [9 regression] gcc.dg/Wattributes-10.c fails starting with r265728

2018-12-04 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88332 Richard Biener changed: What|Removed |Added Target Milestone|--- |9.0

Fix ICE in pp_cxx_unqualified_id (PR c++/88348)

2018-12-04 Thread Zhouyi Zhou
cxx_pretty_printer::type_id do not treat pointer to pointer to member correctly. this patch handle pointer to pointer to member according to C++ standard 11.3.3. I don't have write access to gcc. Bootstrapped/regtested on x86_64-linux Signed-off-by: Zhouyi Zhou 2018-12-04 Zhouyi Zhou

[PATCH] Fix P0634R3 - Down with typename! testsuite fallout

2018-12-04 Thread Jakub Jelinek
Hi! I've noticed these two tests now FAIL with -std=c++2a, they don't print any diagnostics. As I believe that was the point of the P0634R3 changes, this patch adjusts the testcases. Tested on x86_64-linux, ok for trunk? 2018-12-04 Jakub Jelinek *

[PATCH] Further rs6000 asm modifier tweaks (PR target/88188)

2018-12-04 Thread Jakub Jelinek
Hi! This patch adds further tweaks discussed in the last PR88188 mail. ccr_bit now returns -1 instead of failing assertions, so that the caller can decide what to do with it (fail assertion or output_operand_lossage with some reasonable diagnostics. For D and t it now requires CR_REGNO_P, so that

[Bug sanitizer/88350] New: Linux kernel build ICE with allyesconfig for aarch64

2018-12-04 Thread kugan at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88350 Bug ID: 88350 Summary: Linux kernel build ICE with allyesconfig for aarch64 Product: gcc Version: 9.0 Status: UNCONFIRMED Severity: normal Priority: P3

Re: [patch,openacc] C, C++ OpenACC wait diagnostic change

2018-12-04 Thread Thomas Schwinge
Hi Julian! On Mon, 3 Dec 2018 21:10:50 +, Julian Brown wrote: > On Fri, 30 Nov 2018 16:25:42 +0100 > Thomas Schwinge wrote: > > [...] > > I've made those changes in the attached, thank you. OK? Yes, thanks! Grüße Thomas > 2018-XX-YY James Norris > Cesar Philippidis >

[Bug sanitizer/88333] [9 Regression] ice in asan_emit_stack_protection, at asan.c:1574

2018-12-04 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88333 Richard Biener changed: What|Removed |Added CC||dodji at gcc dot gnu.org,

[PATCH, libgo]: Use build.Default.Compiler in go/cmd/vet/types.goq

2018-12-04 Thread Uros Bizjak
Without this patch go tool vet segfaults on alpha due to unknown architecture for gc compiler: go tool vet: exit status 2 panic: runtime error: invalid memory address or nil pointer dereference [signal SIGSEGV: segmentation violation code=1 addr=24 pc=4832064492] goroutine 1 [running]: panic

[Bug rtl-optimization/88349] New: [9 regression][MIPS] Redundant store instructions generated start with r266385

2018-12-04 Thread paul.hua.gm at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88349 Bug ID: 88349 Summary: [9 regression][MIPS] Redundant store instructions generated start with r266385 Product: gcc Version: 9.0 Status: UNCONFIRMED Severity:

[Bug sanitizer/88333] [9 Regression] ice in asan_emit_stack_protection, at asan.c:1574

2018-12-04 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88333 Jakub Jelinek changed: What|Removed |Added Status|NEW |ASSIGNED Assignee|unassigned

[Bug tree-optimization/88301] [8 Regression] Optimization regression with undefined unsigned overflow

2018-12-04 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88301 --- Comment #8 from Richard Biener --- Author: rguenth Date: Tue Dec 4 11:26:14 2018 New Revision: 266773 URL: https://gcc.gnu.org/viewcvs?rev=266773=gcc=rev Log: 2018-12-04 Richard Biener PR tree-optimization/88301 *

[PATCH] Fix predict-22.c testcase (PR tree-optimization/88285)

2018-12-04 Thread Jakub Jelinek
Hi! All uses of explicit -freorder-blocks-and-partition needs to be guarded with freorder effective targets, e.g. arm doesn't support -fprofile-use. That said, until PR88310 is fixed, this effectively means the test is UNSUPPORTED anywhere. Ok for trunk anyway? 2018-12-04 Jakub Jelinek

Re: [patch] various OpenACC reduction enhancements - ME and nvptx changes

2018-12-04 Thread Jakub Jelinek
On Fri, Jun 29, 2018 at 11:19:53AM -0700, Cesar Philippidis wrote: > The attached patch includes the nvptx and GCC ME reductions enhancements. > > Is this patch OK for trunk? It bootstrapped / regression tested cleanly > for x86_64 with nvptx offloading. This is all OpenACC specific code not

Re: [PATCH] Fix P0634R3 - Down with typename! testsuite fallout

2018-12-04 Thread Marek Polacek
On Tue, Dec 04, 2018 at 09:42:51AM +0100, Jakub Jelinek wrote: > Hi! > > I've noticed these two tests now FAIL with -std=c++2a, they don't print > any diagnostics. As I believe that was the point of the P0634R3 changes, > this patch adjusts the testcases. Tested on x86_64-linux, ok for trunk? >

Re: [patch] Add OpenACC Fortran support for deviceptr and variable in common blocks

2018-12-04 Thread Jakub Jelinek
On Fri, Jun 29, 2018 at 12:04:58PM -0700, Cesar Philippidis wrote: > 2018-06-29 Cesar Philippidis > James Norris > > gcc/fortran/ > * openmp.c (gfc_match_omp_map_clause): Re-write handling of the > deviceptr clause. Add new common_blocks argument. Propagate it

Re: [patch,openacc] Propagate independent clause for OpenACC kernels pass

2018-12-04 Thread Jakub Jelinek
On Mon, Dec 03, 2018 at 11:40:39PM +, Julian Brown wrote: > Jakub asked in the following email at the time of the patch submission > for the gomp4 branch what the difference was between the new > marked_independent flag and safelen == INT_MAX: > >

Re: Fix move_if_noexcept usages in _Hashtable

2018-12-04 Thread Jonathan Wakely
On 04/12/18 07:45 +0100, François Dumont wrote: Hi   This patch fix a minor problem with usage of std::move_if_noexcept. We use it to move node content if move construtor is noexcept but we eventually use the allocator_type::construct method which might be slightly different. I think it is

[Bug target/88343] [7/8/9 Regression] R31 is unconditionally saved/restored on powerpc-darwin even when it's not necessary.

2018-12-04 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88343 Jakub Jelinek changed: What|Removed |Added CC||jakub at gcc dot gnu.org,

*PING*^3 [C++ Patch] – PR C++/88114 - PATCH for destructor not generated for "virtual ~destructor() = default"

2018-12-04 Thread Tobias Burnus
On Wed, Nov 28, 2018 at 09:35:53PM +0100, Tobias Burnus wrote: > On the 25th November 2018, schrieb Tobias Burnus wrote: > > On 21 November 2018, Tobias Burnus wrote: > > > Hello all, > > > > > > if a class contains any 'virtual ... = 0', it's an abstract class > > > and for an > > > abstract

Re: [patch,openacc] Generate sequential loop for OpenACC loop directive inside kernels

2018-12-04 Thread Jakub Jelinek
On Thu, Sep 20, 2018 at 11:57:50AM -0700, Cesar Philippidis wrote: > 2018-XX-YY Cesar Philippidis > > * omp-low.c (install_var_field): New base_pointer_restrict > argument. > (scan_sharing_clauses): Update call to install_var_field. >

Re: [patch] Add OpenACC Fortran support for deviceptr and variable in common blocks

2018-12-04 Thread Chung-Lin Tang
On 2018/12/4 9:30 PM, Jakub Jelinek wrote: && gfc_match_omp_map_clause (>lists[OMP_LIST_MAP], - OMP_MAP_TOFROM)) + OMP_MAP_TOFROM, openacc)) Why? OpenMP doesn't have a copy clause, so I'd expect

Re: [patch,openacc] Set safelen to INT_MAX for oacc independent pragma

2018-12-04 Thread Jakub Jelinek
On Thu, Sep 20, 2018 at 11:21:28AM -0700, Cesar Philippidis wrote: > This is another old gomp4 OpenACC patch which impacts targets that use > simd vectorization, such as the host and AMD GCN, rather than nvptx. > Basically, as the subject states, it sets safelen to INT_MAX for > independent acc

Re: [PATCH, OpenACC] Support Fortran derived type members in "acc update" directives

2018-12-04 Thread Jakub Jelinek
On Mon, Sep 03, 2018 at 08:46:54PM -0400, Julian Brown wrote: > 2018-09-03 Cesar Philippidis > > gcc/fortran/ > * openmp.c (gfc_match_omp_variable_list): New allow_derived > argument. (gfc_match_omp_map_clause): Update call to > gfc_match_omp_variable_list.

Re: [PATCH, libgo]: Use build.Default.Compiler in go/cmd/vet/types.goq

2018-12-04 Thread Ian Lance Taylor
On Tue, Dec 4, 2018 at 1:56 AM, Uros Bizjak wrote: > > Without this patch go tool vet segfaults on alpha due to unknown > architecture for gc compiler: > > go tool vet: exit status 2 > panic: runtime error: invalid memory address or nil pointer dereference > [signal SIGSEGV: segmentation

[Bug target/88353] New: AVX512 instructions on macOS using Xcode Clang's assembler needs extra flags

2018-12-04 Thread mcccs at gmx dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88353 Bug ID: 88353 Summary: AVX512 instructions on macOS using Xcode Clang's assembler needs extra flags Product: gcc Version: 9.0 Status: UNCONFIRMED Severity:

Re: [PATCH] Fix predict-22.c testcase (PR tree-optimization/88285)

2018-12-04 Thread Richard Biener
On Tue, 4 Dec 2018, Jakub Jelinek wrote: > Hi! > > All uses of explicit -freorder-blocks-and-partition needs to be guarded with > freorder effective targets, e.g. arm doesn't support -fprofile-use. > > That said, until PR88310 is fixed, this effectively means the test is > UNSUPPORTED anywhere.

Re: RFA/RFC: Add stack recursion limit to libiberty's demangler [v4]

2018-12-04 Thread Nick Clifton
Hi Ian, >>> Shouldn't we make it fool-proof by instead introducing a >>> DMGL_NO_RECURSION_LIMIT > You don't need my blessing--I wrote that code ages ago--but I agree > with Richard that in practice it's OK to limit recursion depth by > default. Real symbols have very limited recursion

Re: [PATCH, OpenACC] Enable GOMP_MAP_FIRSTPRIVATE_INT for OpenACC

2018-12-04 Thread Jakub Jelinek
On Thu, Sep 20, 2018 at 07:38:04PM -0400, Julian Brown wrote: > 2018-09-20 Cesar Philippidis > Julian Brown > > gcc/ > * omp-low.c (maybe_lookup_field_in_outer_ctx): New function. > (convert_to_firstprivate_int): New function. >

C++ patch ping

2018-12-04 Thread Jakub Jelinek
Hi! I'd like to ping PR87506 - https://gcc.gnu.org/ml/gcc-patches/2018-11/msg01758.html You've acked the patch with the asserts but that FAILs as mentioned in the above mail. The following has been bootstrapped/regtested and works, can it be committed without those asserts and let those be

[PATCH, Fortran] pad char to int conversions with spaces instead of zeros (legacy)

2018-12-04 Thread Mark Eggleston
Here is a patch to considered for incorporation into gfortran adding to its legacy support. It pads character to integer conversions using spaces instead of zeros when enabled. The pad character is 'undefined' or 'processor dependent' depending on which standard you read. This makes it 0x20

Re: [patch] various OpenACC reduction enhancements - FE changes

2018-12-04 Thread Jakub Jelinek
On Fri, Jun 29, 2018 at 11:22:00AM -0700, Cesar Philippidis wrote: > 2018-06-29 Cesar Philippidis > Nathan Sidwell > > gcc/c/ > * c-parser.c (c_parser_omp_variable_list): New c_omp_region_type > argument. Use it to specialize handling of OMP_CLAUSE_REDUCTION for

Re: [RFC][AArch64] Add support for system register based stack protector canary access

2018-12-04 Thread Florian Weimer
* Wilco Dijkstra: >> For userland, I would like to eventually copy the OpenBSD approach for >> architectures which have some form of PC-relative addressing: we can >> have multiple random canaries in (RELRO) .rodata in sufficiently close >> to the code that needs them (assuming that we have split

Re: [PATCH] Fix PR88301

2018-12-04 Thread Richard Biener
On Tue, 4 Dec 2018, Christophe Lyon wrote: > Hi Richard, > On Mon, 3 Dec 2018 at 14:37, Richard Biener wrote: > > > > > > This fixes a missed optimization in EVRP by teaching the code > > figuring out conditional asserts about conversions that preserve > > the converted value. > > > >

[PATCH][RFC] Poison bitmap_head->obstack

2018-12-04 Thread Richard Biener
This tries to make bugs like that in PR88317 harder to create by introducing a bitmap_release function that can be used as pendant to bitmap_initialize for non-allocated bitmap heads. The function makes sure to poison the bitmaps obstack member so the obstack the bitmap was initialized with can

[Bug tree-optimization/88285] [9 Regression] gcc.dg/predict-22.c fails on arm

2018-12-04 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88285 --- Comment #2 from Jakub Jelinek --- Author: jakub Date: Tue Dec 4 13:15:46 2018 New Revision: 266776 URL: https://gcc.gnu.org/viewcvs?rev=266776=gcc=rev Log: PR tree-optimization/88285 * gcc.dg/predict-22.c: Only compile on

[Bug fortran/88304] [9 Regression] ICE in use_pointer_in_frame, at tree-nested.c:267

2018-12-04 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88304 Richard Biener changed: What|Removed |Added Status|WAITING |NEW CC|

[Bug target/81685] [7/8 Regression] FAIL: g++.dg/debug/dwarf2/inline-ns-2.C -std=gnu++* (internal compiler error) on darwin

2018-12-04 Thread iains at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81685 --- Comment #9 from Iain Sandoe --- Author: iains Date: Tue Dec 4 14:53:35 2018 New Revision: 266782 URL: https://gcc.gnu.org/viewcvs?rev=266782=gcc=rev Log: darwin - backport fix for DWAF5 section names. 2018-08-12 Iain Sandoe

[Bug testsuite/88310] [9 Regression] Guarded profile use + reorder tests have become UNSUPPORTED

2018-12-04 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88310 Jakub Jelinek changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed|

Re: [PING v2][PATCH] Make function clone name numbering independent.

2018-12-04 Thread Michael Ploujnikov
On 2018-12-04 7:48 a.m., Martin Jambor wrote: > Hi, > > On Tue, Sep 04 2018, Michael Ploujnikov wrote: >> >> I've tried building with numbered_clone_function_name replaced by >> suffixed_function_name and with --enable-offload-targets=hsa and >> didn't see any errors in gomp.exp. I don't have a

Re: [PATCH][OpenACC] Update deviceptr handling during gimplification

2018-12-04 Thread Jakub Jelinek
On Tue, Aug 07, 2018 at 03:09:38PM -0700, Cesar Philippidis wrote: > I had previously posted this patch as part of a monster deviceptr patch > here . This > patch breaks out the generic gimplifier changes. Essentially, with this > patch,

Re: [PATCH, OpenACC] (1/2) Fix implicit mapping for array slices on lexically-enclosing data constructs (PR70828)

2018-12-04 Thread Jakub Jelinek
On Tue, Aug 28, 2018 at 03:19:19PM -0400, Julian Brown wrote: > 2018-08-28 Julian Brown > Cesar Philippidis > > PR middle-end/70828 > > gcc/ > * gimplify.c (gimplify_omp_ctx): Add decl_data_clause hash map. > (new_omp_context): Initialise above. >

Re: [PATCH, OpenACC] (2/2) Fix implicit mapping for array slices on lexically-enclosing data constructs (PR70828)

2018-12-04 Thread Jakub Jelinek
On Tue, Aug 28, 2018 at 03:19:34PM -0400, Julian Brown wrote: > 2018-08-28 Julian Brown > > gcc/fortran/ > * trans-openmp.c (gfc_omp_finish_clause): Don't raise error for > assumed-size array if present in a lexically-enclosing data construct. > > libgomp/ > *

[PATCH] Make std::match_results::_M_resize more useful

2018-12-04 Thread Jonathan Wakely
As both callers of match_results::_M_resize(unsigned) immediately follow it with a loop to update the value of each sub_match, that behaviour can be moved into _M_resize itself. The first caller fills the container with unmatched subs, which can be done with vector::assign, and the second caller

Re: [OpenACC] Enable firstprivate OpenACC reductions

2018-12-04 Thread Jakub Jelinek
On Wed, Sep 05, 2018 at 01:08:21PM -0700, Cesar Philippidis wrote: > 2018-XX-YY Cesar Philippidis > Chung-Lin Tang > > gcc/ > * gimplify.c (omp_add_variable): Enable firstprivate reduction > variables. > > gcc/testsuite/ > *

Re: [patch] various OpenACC reduction enhancements - test cases

2018-12-04 Thread Jakub Jelinek
On Fri, Jun 29, 2018 at 11:23:21AM -0700, Cesar Philippidis wrote: > Attached are the updated reductions tests cases. Again, these have been > bootstrapped and regression tested cleanly for x86_64 with nvptx > offloading. Is it OK for trunk? If Thomas is ok with this, it is ok for trunk. >

Re: [testsuite] Require ucn support in gdc.test/compilable/ddoc12.d (PR d/88039)

2018-12-04 Thread Rainer Orth
Hi Iain, > On Sat, 1 Dec 2018 at 19:28, Iain Buclaw wrote: >> >> On Thu, 29 Nov 2018 at 15:12, Rainer Orth >> wrote: >> > >> > Hi Iain, >> > >> > > On Tue, 27 Nov 2018 at 20:32, Rainer Orth >> > > wrote: >> > >> >> > >> Hi Mike, >> > >> >> > >> > On Nov 27, 2018, at 2:18 AM, Rainer Orth >> >

Re: [patch,openacc] Propagate independent clause for OpenACC kernels pass

2018-12-04 Thread Jakub Jelinek
On Thu, Sep 20, 2018 at 11:06:40AM -0700, Cesar Philippidis wrote: > 2018-XX-YY Chung-Lin Tang > Cesar Philippidis > > gcc/ > * cfgloop.h (struct loop): Add 'bool marked_independent' field. > * omp-expand.c (struct omp_region): Add 'int kind' and > 'bool

[Bug lto/88297] [9 Regression] Assembler Error: symbol `_Z41__static_initialization_and_destruction_0ii.constprop.0' is already defined

2018-12-04 Thread plouj at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88297 --- Comment #7 from plouj at gcc dot gnu.org --- Author: plouj Date: Tue Dec 4 14:22:09 2018 New Revision: 266780 URL: https://gcc.gnu.org/viewcvs?rev=266780=gcc=rev Log: PR ipa/88297 * ipa-cp.c (create_specialized_node): Track

[Bug target/85667] (x86_64) ms_abi rules aren't followed when returning short structs with float values

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

[Bug target/88352] x86 mingw returning struct with just double in ST0 instead of edx:eax

2018-12-04 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88352 Jakub Jelinek changed: What|Removed |Added CC||jakub at gcc dot gnu.org --- Comment #1

[Bug c++/88120] [7 Regression] ICE in contains_placeholder_p at gcc/tree.c:3710

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

[Bug c++/88120] [7/8 Regression] ICE in contains_placeholder_p at gcc/tree.c:3710

2018-12-04 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88120 --- Comment #5 from Marek Polacek --- Author: mpolacek Date: Tue Dec 4 14:53:57 2018 New Revision: 266783 URL: https://gcc.gnu.org/viewcvs?rev=266783=gcc=rev Log: PR c++/88120 - ICE when calling save_expr in a template. *

[Bug target/64384] mingw-w64: stdcall function returning an aggregate is incompatible with MS ABI

2018-12-04 Thread jay.krell at cornell dot edu
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64384 Jay changed: What|Removed |Added CC||jay.krell at cornell dot edu --- Comment #6 from

Re: [PING v2][PATCH] Make function clone name numbering independent.

2018-12-04 Thread Martin Jambor
Hi, On Tue, Sep 04 2018, Michael Ploujnikov wrote: > > I've tried building with numbered_clone_function_name replaced by > suffixed_function_name and with --enable-offload-targets=hsa and > didn't see any errors in gomp.exp. I don't have a readily available > HSA setup so if you could do a quick

Re: OpenACC 2.5 Profiling Interface

2018-12-04 Thread Jakub Jelinek
On Sun, Nov 11, 2018 at 10:31:42PM -0600, Thomas Schwinge wrote: > On Tue, 28 Feb 2017 18:43:36 +0100, I wrote: > > The 2.5 versions of the OpenACC standard added a new chapter "Profiling > > Interface". > > I'd like to get that into trunk. It's not yet complete (that is, doesn't > provide all

Re: [PATCH] Fix PR88301

2018-12-04 Thread Christophe Lyon
Hi Richard, On Mon, 3 Dec 2018 at 14:37, Richard Biener wrote: > > > This fixes a missed optimization in EVRP by teaching the code > figuring out conditional asserts about conversions that preserve > the converted value. > > Bootstrapped and tested on x86_64-unknown-linux-gnu, applied to trunk >

Re: [PATCH] Fix predict-22.c testcase (PR tree-optimization/88285)

2018-12-04 Thread Jeff Law
On 12/4/18 5:11 AM, Jakub Jelinek wrote: > Hi! > > All uses of explicit -freorder-blocks-and-partition needs to be guarded with > freorder effective targets, e.g. arm doesn't support -fprofile-use. > > That said, until PR88310 is fixed, this effectively means the test is > UNSUPPORTED anywhere.

Re: [patch,openacc] Propagate independent clause for OpenACC kernels pass

2018-12-04 Thread Richard Biener
On Tue, 4 Dec 2018, Jakub Jelinek wrote: > On Mon, Dec 03, 2018 at 11:40:39PM +, Julian Brown wrote: > > Jakub asked in the following email at the time of the patch submission > > for the gomp4 branch what the difference was between the new > > marked_independent flag and safelen == INT_MAX:

Re: [PATCH v3] Make function clone name numbering independent.

2018-12-04 Thread Jan Hubicka
> On 2018-12-03 12:00 p.m., Michael Ploujnikov wrote: > > On 2018-12-01 11:29 a.m., H.J. Lu wrote: > >> This caused: > >> > >> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88297 > >> > > > > Sorry about that. Looks like I should have been testing with > > --with-build-config=bootstrap-lto rather

Re: [PATCH][OpenACC] update gfortran's tile clause error handling

2018-12-04 Thread Jakub Jelinek
On Tue, Aug 07, 2018 at 02:47:07PM -0700, Cesar Philippidis wrote: > This patch updates how the OpenACC tile clause is handled in the Fortran > FE to match it's behavior in C/C++. Specifically, the tile clause now > errors on negative integer arguments, instead of emitting a warning. > > Is this

[PATCH 3/3][rs6000] Enable x86-compat vector intrinsics testing

2018-12-04 Thread Paul Clarke
The testsuite tests for the compatibility implementations of x86 vector intrinsics for "powerpc" had been inadvertently made to PASS without actually running the test code. This patch removes the code which kept the tests from running the actual test code. 2018-12-03 Paul A. Clarke

Re: [patch] various OpenACC reduction enhancements - ME and nvptx changes

2018-12-04 Thread Tom de Vries
On 04-12-18 13:29, Jakub Jelinek wrote: > On Fri, Jun 29, 2018 at 11:19:53AM -0700, Cesar Philippidis wrote: >> The attached patch includes the nvptx and GCC ME reductions enhancements. >> >> Is this patch OK for trunk? It bootstrapped / regression tested cleanly >> for x86_64 with nvptx

Re: [doc PATCH] update attribute docs for C++

2018-12-04 Thread Martin Sebor
On 12/4/18 12:09 AM, Sandra Loosemore wrote: On 12/3/18 4:23 PM, Martin Sebor wrote: gcc/ChangeLog: * doc/extend.texi (attribute const, pure): Clarify. Index: gcc/doc/extend.texi === --- gcc/doc/extend.texi    (revision

[Bug c++/88355] New: [c++20] Placeholder non-type template argument type deduction fails with custom types

2018-12-04 Thread emmanuel.le-tr...@cnrs-orleans.fr
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88355 Bug ID: 88355 Summary: [c++20] Placeholder non-type template argument type deduction fails with custom types Product: gcc Version: 9.0 Status: UNCONFIRMED

[Bug libstdc++/88341] [9 Regression] taking norm() of complex variable fails to compile with -std=c++11

2018-12-04 Thread emsr at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88341 --- Comment #5 from emsr at gcc dot gnu.org --- Author: emsr Date: Tue Dec 4 16:26:39 2018 New Revision: 266788 URL: https://gcc.gnu.org/viewcvs?rev=266788=gcc=rev Log: 2018-12-03 Edward Smith-Rowland <3dw...@verizon.net> PR

[Bug c++/86943] [7/8/9 Regression] Wrong code when converting stateless generic lambda to function pointer

2018-12-04 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86943 --- Comment #11 from Jakub Jelinek --- I'll just include the testcase for the testsuite from the above patch: // PR c++/86943 // { dg-do run { target c++14 } } int c[3]; struct S { S () : s (1234) { c[0]++; } S (const S &) {

[Bug fortran/83865] ICE in wide_int_to_tree_1, at tree.c:1567

2018-12-04 Thread gs...@t-online.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83865 --- Comment #3 from G. Steinmetz --- Update : $ gfortran-9-20181202 -c z1.f90 z1.f90:3:0: 3 |allocate (z, source=['']) | internal compiler error: in wide_int_to_tree_1, at tree.c:1561 0xd6bd72 wide_int_to_tree_1

[Bug fortran/88357] New: ICE in parse_associate, at fortran/parse.c:4568

2018-12-04 Thread gs...@t-online.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88357 Bug ID: 88357 Summary: ICE in parse_associate, at fortran/parse.c:4568 Product: gcc Version: 9.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component:

[Bug c++/88358] New: variable template definition taken as function template declaration with implicit typename

2018-12-04 Thread blitzrakete at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88358 Bug ID: 88358 Summary: variable template definition taken as function template declaration with implicit typename Product: gcc Version: 9.0 Status: UNCONFIRMED

[PATCH PR libstdc++/88341] -

2018-12-04 Thread Ed Smith-Rowland
Committed as obvious 266788. Ed 2018-12-03 Edward Smith-Rowland <3dw...@verizon.net> PR libstdc++/88341 - Complex norm doesn't compile with C++11 * include/std/complex (_S_do_it): Make C++20 constexpr. * testsuite/26_numerics/complex/value_operations/pr88341.cc: New

  1   2   3   >