Re: [C++ PATCH] Fix cxx_eval_store_expression (PR c++/89336)

2019-02-19 Thread Jakub Jelinek
On Tue, Feb 19, 2019 at 11:03:05PM +0100, Jakub Jelinek wrote: > > Before P0137 I believe foo and bar were arguably undefined. > > I see, before that it was: > "an lvalue-to-rvalue conversion (4.1) or modification (5.18, 5.2.6, 5.3.2) > that is applied > to a glvalue that refers to a non-active m

[C++ PATCH] Ensure constexpr evaluation is done on pre-cp_fold_function bodies (PR c++/89285, take 2)

2019-02-19 Thread Jakub Jelinek
Hi! On Tue, Feb 19, 2019 at 05:31:28AM +0100, Jakub Jelinek wrote: > > > + /* These builtins will fold into > > > +(cast) > > > + ((something = __real__ SAVE_EXPR <.???_OVERFLOW (cst1, cst2)>), > > > + __imag__ SAVE_EXPR <.???_OVERFLOW (cst1, cst2)>) > > > +which fails is_consta

Re: [PATCH] 386: Set ix86_fpmath to FPMATH_387 without SSE

2019-02-19 Thread Uros Bizjak
On Tue, Feb 19, 2019 at 9:14 PM H.J. Lu wrote: > > On Tue, Feb 19, 2019 at 6:16 AM Uros Bizjak wrote: > > > > On Tue, Feb 19, 2019 at 2:49 PM H.J. Lu wrote: > > > > > > ix86_fpmath should be set to combination of FPMATH_387 and FPMATH_SSE. > > > When SSE is disabled, it should be set to FPMATH_3

Re: [PATCH][RFC] Extend locations where to seach for Fortran pre-include.

2019-02-19 Thread Bernhard Reutner-Fischer
On 19 February 2019 19:18:21 CET, Steve Kargl wrote: >On Mon, Feb 18, 2019 at 02:23:34PM +0100, Martin Liška wrote: >> >> As I installed all needed patches, I'm sending a documentation entry >> for the new functionality. >> >> Thoughts? > >See below. Ok to commit with suggested changes. > >> T

Re: [PATCH] rs6000: Fix PR 88100, range check for vec_splat_{su}{8,16,32}

2019-02-19 Thread Li Jia He
Yes, you are correct. If there is no question with this patch, I will backport this to GCC 8. Thanks, Lijia On 2019/2/20 12:13 PM, Bill Schmidt wrote: On 2/19/19 8:11 AM, Segher Boessenkool wrote: Hi! On Tue, Feb 19, 2019 at 03:38:56AM -0600, Li Jia He wrote: GCC revision 259524 implemented

Re: [PATCH] rs6000: Fix PR 88100, range check for vec_splat_{su}{8,16,32}

2019-02-19 Thread Bill Schmidt
On 2/19/19 8:11 AM, Segher Boessenkool wrote: > Hi! > > On Tue, Feb 19, 2019 at 03:38:56AM -0600, Li Jia He wrote: >> GCC revision 259524 implemented range check for the vec_splat_{su}{8,16,32} >> builtins. However, as a consequence of the implementation, the range check >> is not done correctly f

[C++ PATCH] PR c++/88368 - wrong 'use of deleted function'

2019-02-19 Thread Jason Merrill
Since my patch for 81359 allowed us to signal failure on return from maybe_instantiate_noexcept, we no longer need to turn an error into noexcept(false). We also need to handle NSDMI instantiation errors under synthesized_method_walk. This change caused some instantiation context notes to be lost

[LTO PATCH RFA] PR c++/88049 - ICE with undefined destructor and anon namespace.

2019-02-19 Thread Jason Merrill
A type in an anonymous namespace can never be merged with one from another translation unit, so a member of such a type is always its own prevailing decl. I don't really understand the LTO concept of prevailing decl, or why we don't get here if the destructor is defined, but this seems reasonable

Re: [PATCH] luoxhu - backport from trunk r255555, r257253 and r258137

2019-02-19 Thread Xiong Hu Luo
Hi Segher, On 2019/2/20 AM6:24, Segher Boessenkool wrote: Hi! On Tue, Feb 19, 2019 at 01:23:53AM -0600, luo...@linux.ibm.com wrote: This is a backport of r25, r257253 and r258137 of trunk to gcc-7-branch. The patches were on trunk before GCC 8 forked already. Totally 5 files need mannual r

Re: [PATCH] Teach evrp that main's argc argument is always non-negative for C family (PR tree-optimization/89350)

2019-02-19 Thread Martin Sebor
On 2/19/19 10:18 AM, Joseph Myers wrote: On Tue, 19 Feb 2019, Martin Sebor wrote: Sure, the text is in a section named Program startup, but that doesn't imply that the constraints apply only at program startup. If they did, I think it's clear from the context that the section is describing t

PING [PATCH] avoid 4095/INT_MAX warning for fprintf (PR 88993)

2019-02-19 Thread Martin Sebor
I received feedback on the first patch that it doesn't suppress all the instances of the warning so I've relaxed the checker even more to avoid the excess instances seen in Elfutils and beefed up the tests. The top of trunk compiles cleanly now with just the three instances of -Wformat-truncation

Re: [PATCH] document __builtin_is_constant_evaluated

2019-02-19 Thread Sandra Loosemore
On 2/18/19 11:52 AM, Martin Sebor wrote: Index: gcc/doc/extend.texi === --- gcc/doc/extend.texi (revision 268992) +++ gcc/doc/extend.texi (working copy) @@ -12890,6 +12890,23 @@ built-in in this case, because it has no opportuni opt

[PATCH, libvtv] Fix testsuite issue.

2019-02-19 Thread Caroline Tice via gcc-patches
One of the testsuite tests for libvtv is failing due to an incorrect signature for the function "main". This patch fixes that. Testing: The libvtv testsuite failed 4 tests without this fix; it passes all of them with it. Ok to commit? -- Caroline Tice cmt...@google.com Index: libvtv/ChangeLog

Re: [patch, fortran] Fix PR 87689, wrong decls / ABI violation on POWER

2019-02-19 Thread Thomas Koenig
Bob, Some of us still use varargs interfaces (in my case, Fortran calling C stdarg subroutines). The problem for us is that that sometimes using varargs made standard- conforming Fortran code like, in file a.f subroutine foo(a) print *,a end and in file main.f progra

[Patch, Aarch64] Implement TARGET_GET_MULTILIB_ABI_NAME for aarch64 (for use in Fortran vector header file)

2019-02-19 Thread Steve Ellcey
Here is a patch to use the new TARGET_GET_MULTILIB_ABI_NAME macro that Martin Liska added with the Aarch64 platform. The main issue to consider is what abi names to support, I created 8 versions for big- endian/little-endian, ilp32/lp64, and sve/non-sve. I am not sure if we need all of those but

Re: [PATCH] luoxhu - backport from trunk r255555, r257253 and r258137

2019-02-19 Thread Segher Boessenkool
Hi! On Tue, Feb 19, 2019 at 01:23:53AM -0600, luo...@linux.ibm.com wrote: > This is a backport of r25, r257253 and r258137 of trunk to gcc-7-branch. > The patches were on trunk before GCC 8 forked already. Totally 5 files need > mannual resolve due to code changes for r25. r257253 and r258

Re: [C++ PATCH] Fix cxx_eval_store_expression (PR c++/89336)

2019-02-19 Thread Jakub Jelinek
On Tue, Feb 19, 2019 at 11:28:22AM -1000, Jason Merrill wrote: > On Tue, Feb 19, 2019 at 4:00 AM Jakub Jelinek wrote: > > On Mon, Feb 18, 2019 at 03:01:14PM -1000, Jason Merrill wrote: > > > But it's not clear to me that the standard actually allows this. I don't > > > think changing the active m

[patch, fortran] Fix PR 86119, spurios warning for len(classtype) with -Wconversion

2019-02-19 Thread Thomas Koenig
Hello world, the attached patch fixes the 8/9 regression by inserting the conversion at the right place. Regression-tested. OK for trunk, and for 8 when it re-opens? Regards Thomas 2019-02-19 Thomas Koenig PR fortran/86110 * class.c (gfc_get_len_component): Add arg

Re: [C++ Patch] PR 84536 ("[7/8/9 Regression] ICE with non-type template parameter")

2019-02-19 Thread Jason Merrill
OK. On Tue, Feb 19, 2019 at 1:16 AM Paolo Carlini wrote: > > Hi, > > On 19/02/19 02:39, Jason Merrill wrote: > > On 2/18/19 3:15 PM, Paolo Carlini wrote: > >> Hi, > >> > >> On 19/02/19 00:52, Jason Merrill wrote: > >>> On 2/18/19 12:14 PM, Paolo Carlini wrote: > Hi Jason, > > On 18

Re: [C++ PATCH] Fix cxx_eval_store_expression (PR c++/89336)

2019-02-19 Thread Jason Merrill
On Tue, Feb 19, 2019 at 4:00 AM Jakub Jelinek wrote: > On Mon, Feb 18, 2019 at 03:01:14PM -1000, Jason Merrill wrote: > > But it's not clear to me that the standard actually allows this. I don't > > think changing the active member of a union in the mem-initializer for > > another member is reaso

[PATCH, testsuite] Enable vect_usad_char effective target for PowerPC and fix up SAD_EXPR testcases

2019-02-19 Thread Pat Haugen
Power9 added support for V16QImode SAD operations. While making the check_effective_target change I noticed that the tests will also pass on Power7/Power8 even though they don't have the optab support. The reason is the tests are only checking that the source pattern is recognized, not that a S

[PATCH v2][rs6000] PR89338, PR89339: Fix compat vector intrinsics for BE and 32-bit

2019-02-19 Thread Paul Clarke
Test FAILS: sse2-cvtpd2dq-1, sse2-cvtpd2ps, sse2-cvttpd2dq on powerpc64 (big-endian). _mm_cvtpd_epi32, _mm_cvtpd_ps, _mm_cvttpd_epi32: Type conversion from vector doubleword type to vector word type leaves the results in even lanes in big endian mode. Test FAILS: sse-cvtss2si-1, sse-cvtss2si-2, s

Re: [PATCH] 386: Set ix86_fpmath to FPMATH_387 without SSE

2019-02-19 Thread H.J. Lu
On Tue, Feb 19, 2019 at 6:16 AM Uros Bizjak wrote: > > On Tue, Feb 19, 2019 at 2:49 PM H.J. Lu wrote: > > > > ix86_fpmath should be set to combination of FPMATH_387 and FPMATH_SSE. > > When SSE is disabled, it should be set to FPMATH_387 and 387 codegen is > > also controlled by -msoft-float. > >

Re: [rs6000] 64-bit integer loads/stores and FP instructions

2019-02-19 Thread Segher Boessenkool
On Thu, Feb 14, 2019 at 05:30:52PM +0100, Eric Botcazou wrote: > > Yeah, something like that. It will need some serious testing, to make > > sure we don't regress (including not regressing what that patch that took > > them away was meant to do). I can arrange some testing, will you do the > > pa

Re: [PATCH] Capture source location of dtors (PR c++/89390)

2019-02-19 Thread Jakub Jelinek
On Tue, Feb 19, 2019 at 02:44:55PM -0500, David Malcolm wrote: > How about something like this? (on top of Jakub's patch) I had following queued for regtest, so if you want to go for the make_location ^~, you should change more spots. > pr89390.C: In function 'void foo()': > pr89390.C:9:6: error:

Re: [PATCH] rs6000: Add support for the vec_sbox_be, vec_cipher_be etc. builtins.

2019-02-19 Thread Segher Boessenkool
On Tue, Feb 12, 2019 at 02:00:38PM +0800, Xiong Hu Luo wrote: > On 2019/1/26 AM1:43, Segher Boessenkool wrote: > >On Wed, Jan 23, 2019 at 03:57:28AM -0600, luo...@linux.vnet.ibm.com wrote: > >>The 5 new builtins vec_sbox_be, vec_cipher_be, vec_cipherlast_be, > >>vec_ncipher_be > >>and vec_ncipherl

[PATCH] Capture source location of dtors (PR c++/89390)

2019-02-19 Thread David Malcolm
On Mon, 2019-02-18 at 14:07 -1000, Jason Merrill wrote: > On 2/18/19 12:50 PM, Jakub Jelinek wrote: > > Hi! > > > > On the following testcase we ICE because name is BIT_NOT_EXPR and > > suggest_alternative_in_scoped_enum assumes it is called on > > IDENTIFIER_NODE > > only. > > > > Fixed thusly,

[COMMITTED] Fix pr88850 test

2019-02-19 Thread Wilco Dijkstra
Fix pr88850.c testcase which was failing in hardfp environments. Committed as obvious. ChangeLog: 2019-02-19 Wilco Dijkstra * gcc.target/arm/pr88850.c: Block -mfloat-abi override. -- diff --git a/gcc/testsuite/gcc.target/arm/pr88850.c b/gcc/testsuite/gcc.target/arm/pr88850.c index

Go patch committed: Add debugger-callable ASP dump functions

2019-02-19 Thread Ian Lance Taylor
This patch to the Go frontend by Than McIntosh adds some debugger-callable AST dump functions, similar to function like debug_tree or debug_rtx. They are all named debug_go_xxx. Bootstrapped and ran Go testsuite on x86_64-pc-linux-gnu. Committed to mainline. Ian Index: gcc/go/gofrontend/MERGE ==

Re: [PATCH][RFC] Extend locations where to seach for Fortran pre-include.

2019-02-19 Thread Steve Kargl
On Mon, Feb 18, 2019 at 02:23:34PM +0100, Martin Liška wrote: > > As I installed all needed patches, I'm sending a documentation entry > for the new functionality. > > Thoughts? See below. Ok to commit with suggested changes. > Thanks, > Martin > >From 2d304e3b1d734548811f963c5bed1855b5375c43

Re: [patch, fortran] Fix PR 87689, wrong decls / ABI violation on POWER

2019-02-19 Thread Bob Deen via gcc-patches
On 2/18/19 12:48 AM, Janne Blomqvist wrote: On Sun, Feb 17, 2019 at 8:19 PM Thomas Koenig wrote: Hello world, the attached patch fixes a rather bad ABI violation on POWER systems. ... I agree, although we're close to the GCC-9 release, it's better to get this in now. So Ok. I wonder if we

Re: [PATCH] Teach evrp that main's argc argument is always non-negative for C family (PR tree-optimization/89350)

2019-02-19 Thread Joseph Myers
On Tue, 19 Feb 2019, Martin Sebor wrote: > Sure, the text is in a section named Program startup, but that doesn't > imply that the constraints apply only at program startup. If they did, I think it's clear from the context that the section is describing the interface between the program and its

Re: [patch] Fix LRA/reload issue with -fnon-call-exceptions

2019-02-19 Thread Eric Botcazou
> Doesn't the frame have to be laid out correctly during the final reload > subpass anyway, in order to get the right elimination choices and > elimination offsets? If so, I'm not sure what the " && > info->reload_completed" check in rs6000_stack_info achieves. It seems like > that's at least par

Re: [rs6000] PR89338, PR89339: Fix compat vector intrinsics for BE and 32-bit

2019-02-19 Thread Segher Boessenkool
Hi Paul, On Tue, Feb 19, 2019 at 10:10:38AM -0600, Paul Clarke wrote: > Incorrect type for interpreting the result from mfvsrd instruction leads > to incorrect results. Also, mfvsrd instruction only works as expected in > 64-bit mode or for 32-bit quantities in 32-bit mode. A more general, > if

Re: [PATCH][C++] Fix ICE with VTV

2019-02-19 Thread Caroline Tice via gcc-patches
On Tue, Feb 19, 2019 at 1:57 AM Richard Biener wrote: > > Looks like vtv_generate_init_routine calls symtab->process_new_functions > () which has seriously bad effects on GCCs internal memory state. > > VTV has zero testsuite coverage it seems and besides its initial > commit didn't receive any l

Re: [PATCH] Teach evrp that main's argc argument is always non-negative for C family (PR tree-optimization/89350)

2019-02-19 Thread Martin Sebor
On 2/18/19 4:12 PM, Joseph Myers wrote: On Sat, 16 Feb 2019, Jakub Jelinek wrote: Hi! Both the C and C++ standard guarantee that the argc argument to main is non-negative, the following patch sets (or adjusts) the corresponding SSA_NAME_RANGE_INFO. While main is just one, with IPA VRP it can

[PATCH, libgcc] Fixup _UnwindGetGR for function argument rename

2019-02-19 Thread Uros Bizjak
Revision 256615 (SVE unwinding) renamed _UnwindGetGR function argument, but forgot to update part under #ifdef DWARF_ZERO_REG. 2019-02-19 Uroš Bizjak * unwind-dw2.c (_Unwind_GetGR) [DWARF_ZERO_REG]: Compare regno instead of index to DWARF_ZERO_REG. Bootstrapped on alphaev68-linux-gnu

[rs6000] PR89338, PR89339: Fix compat vector intrinsics for BE and 32-bit

2019-02-19 Thread Paul Clarke
Test FAILS: sse2-cvtpd2dq-1, sse2-cvtpd2ps, sse2-cvttpd2dq on powerpc64 (big-endian). _mm_cvtpd_epi32, _mm_cvtpd_ps, _mm_cvttpd_epi32: Type conversion from vector doubleword type to vector word type leaves the results in even lanes in big endian mode. Test FAILS: sse-cvtss2si-1, sse-cvtss2si-2, s

Re: [PATCH, OpenACC] Properly handle wait clause with no arguments

2019-02-19 Thread Thomas Schwinge
Hi Chung-Lin! On Tue, 22 Jan 2019 13:16:37 +0100, I wrote: > On Mon, 14 Jan 2019 21:56:05 +0800, Chung-Lin Tang > wrote: > > this version of the wait-clause-with-no-args patch revises the following: > Thanks. > > > Hope this is now okay for trunk when appropriate. > > Given that this is a wro

Re: [omp] Move NE_EXPR handling to omp_adjust_for_condition

2019-02-19 Thread Jakub Jelinek
On Fri, Feb 15, 2019 at 12:49:58PM +0100, Martin Jambor wrote: > Ping please, the issue is now PR 89302. Please add the PR line to the ChangeLog entry. > > 2019-02-01 Martin Jambor > > > > * omp-general.c (omp_extract_for_data): Removed a duplicate call > > to omp_adjust_for_condition,

libgo patch committed: Do not require POWER8

2019-02-19 Thread Ian Lance Taylor
Although the gc toolchain requires POWER8, gccgo does not. This libgo patch removes a check that POWER8 is required. This fixes GCC PR 89169. Bootstrapped and tested on x86_64-pc-linux-gnu and ppc64-linux-gnu. Committed to mainline. Ian Index: gcc/go/gofrontend/MERGE ==

libgo patch committed: Stop stack scan when we can't unwind stack

2019-02-19 Thread Ian Lance Taylor
This libgo patch by Cherry Zhang stops the stack scan when the stack can not be unwound. In a signal-triggered stack scan, if the signal is delivered at certain bad time (e.g. in vdso, or in the middle of setcontext?), the unwinder may not be able to unwind the whole stack, while it still reports

Re: [PATCH] 386: Set ix86_fpmath to FPMATH_387 without SSE

2019-02-19 Thread Uros Bizjak
On Tue, Feb 19, 2019 at 2:49 PM H.J. Lu wrote: > > ix86_fpmath should be set to combination of FPMATH_387 and FPMATH_SSE. > When SSE is disabled, it should be set to FPMATH_387 and 387 codegen is > also controlled by -msoft-float. > > gcc/ > > PR target/89397 > * config/i386/i386.c

Re: [PATCH] rs6000: Fix PR 88100, range check for vec_splat_{su}{8,16,32}

2019-02-19 Thread Segher Boessenkool
Hi! On Tue, Feb 19, 2019 at 03:38:56AM -0600, Li Jia He wrote: > GCC revision 259524 implemented range check for the vec_splat_{su}{8,16,32} > builtins. However, as a consequence of the implementation, the range check > is not done correctly for the expected vspltis[bhw] instructions.  The result

Re: [C++ PATCH] Fix cxx_eval_store_expression (PR c++/89336)

2019-02-19 Thread Jakub Jelinek
On Mon, Feb 18, 2019 at 03:01:14PM -1000, Jason Merrill wrote: > But it's not clear to me that the standard actually allows this. I don't > think changing the active member of a union in the mem-initializer for > another member is reasonable. There is in [expr.const]/2: an lvalue-to-rvalue conve

[PATCH] 386: Set ix86_fpmath to FPMATH_387 without SSE

2019-02-19 Thread H.J. Lu
ix86_fpmath should be set to combination of FPMATH_387 and FPMATH_SSE. When SSE is disabled, it should be set to FPMATH_387 and 387 codegen is also controlled by -msoft-float. gcc/ PR target/89397 * config/i386/i386.c (ix86_option_override_internal): Set opts->x_ix86_fpmat

Re: [PATCH, stage1] Construct ipa_reduced_postorder always for overwritable (PR ipa/89009).

2019-02-19 Thread Martin Jambor
Hi, On Tue, Feb 19 2019, Martin Liška wrote: > On 2/14/19 11:19 AM, Jan Hubicka wrote: >> ... >> Next stage1 we should also teach the callback to ignore edges of calls >> that are not being optimized. > > I'm sending patch for that. ... > gcc/ChangeLog: > > 2019-02-19 Martin Liska > >

Re: [PATCH][GCC][DOC] Remove obsolete arm and aarch64 CPU names from invoke.texi

2019-02-19 Thread Gerald Pfeifer
On Fri, 15 Feb 2019, Sam Tebbs wrote: > I was looking into this and it seems that the CPU and architecture > removals have already been documented in the Arm-specific section of the > GCC 9 changes, so explicitly mentioning that the documentation has been > removed as well is probably unnecessar

Re: Go patch committed: Harmonize types referenced by both C and Go

2019-02-19 Thread Rainer Orth
Hi Ian, > On Mon, Feb 18, 2019 at 2:48 AM Rainer Orth > wrote: >> >> > The code was already calling syscall, it was just doing it in a way >> > that the types didn't necessarily match the C declaration. This is >> > the implementation of Go's syscall.Syscall function, so there isn't >> > really

Re: [libphobos, build] Enable libphobos on Solaris 11/x86

2019-02-19 Thread Rainer Orth
Hi Iain, >> Thanks. This will have to wait for >> >> [libphobos] Use sections_elf_shared.d on Solaris 11.5 (PR d/88150) >> https://gcc.gnu.org/ml/gcc-patches/2019-01/msg01661.html > > I'll make a fork of sections support tonight, as that seems to be the > right way forwards. > > O

[PATCH] Remove unused extern variables from debug (PR debug/86964)

2019-02-19 Thread Johan Carlsson
Adding so that the DIEs of unused external variables can be removed from the output when using -feliminate-unused-debug-symbols. Tested on x86_64-elf, aarch64-elf, powerpc-eabi, powerpc64-elf and arm-eabi. 2019-02-18 Johan Karlsson PR debug/86964 * dwarf2out.c (premark_used_v

Re: [patch] Fix LRA/reload issue with -fnon-call-exceptions

2019-02-19 Thread Richard Sandiford
Eric Botcazou writes: > Hi, > > this is a regression present on all active branches since the controversial > get_initial_register_offset stuff was added to rtlanal.c some time ago, and > visible in the testsuite on PowerPC/Linux under the form of gnat.dg/opt73.adb > timing out at run time. > >

Re: Fix libphobos testsuite failures on Solaris

2019-02-19 Thread Rainer Orth
Hi Iain, > On Tue, 29 Jan 2019 at 15:44, Rainer Orth > wrote: >> >> Yet another trivial fix for a Solaris libphobos testsuite failure: >> >> FAIL: libphobos.shared/load.d -shared-libphobos -ldl (test for excess errors) >> Excess errors: >> /vol/gcc/src/hg/trunk/local/libphobos/testsuite/libphobo

[PATCH] Fix PR88074

2019-02-19 Thread Richard Biener
The following limits mpfr operations to the maximum exponent range as determined by available float modes. This avoids excessive work for evaluating functions like ctan for large arguments. Bootstrapped and tested on x86_64-unknown-linux-gnu, applied to trunk. Richard. 2019-02-19 Richard Bie

[PATCH, stage1] Construct ipa_reduced_postorder always for overwritable (PR ipa/89009).

2019-02-19 Thread Martin Liška
On 2/14/19 11:19 AM, Jan Hubicka wrote: >> Hi. >> >> This is patch candidate I created and tested. It's not adding >> filtering based on opt_for_fn which I would defer to the next >> stage1. >> >> Patch can bootstrap on x86_64-linux-gnu and survives regression tests. >> >> Ready to be installed? >>

Re: [libphobos, build] Enable libphobos on Solaris 11/x86

2019-02-19 Thread Iain Buclaw
On Tue, 19 Feb 2019 at 10:32, Rainer Orth wrote: > > Hi Iain, > > > On Tue, 29 Jan 2019 at 13:35, Rainer Orth > > wrote: > >> > >> With the set of libphobos Solaris patches just posted, it would become > >> possible to enable libphobos on Solaris 11/x86 by default. > >> > >> This is what this pa

[PATCH, OpenACC, og8] Fix incorrect test case

2019-02-19 Thread Gergö Barany
Hi, This patch fixes a broken test case I added in a recent patch: https://gcc.gnu.org/ml/gcc-patches/2019-01/msg01504.html The broken test can segfault due to writing to read-only memory, which this new version avoids. Will apply to the openacc-gcc-8-branch shortly. Thanks, Gergö li

Re: [C++ Patch] PR 84536 ("[7/8/9 Regression] ICE with non-type template parameter")

2019-02-19 Thread Paolo Carlini
Hi, On 19/02/19 02:39, Jason Merrill wrote: On 2/18/19 3:15 PM, Paolo Carlini wrote: Hi, On 19/02/19 00:52, Jason Merrill wrote: On 2/18/19 12:14 PM, Paolo Carlini wrote: Hi Jason, On 18/02/19 19:28, Jason Merrill wrote: On 2/18/19 5:31 AM, Paolo Carlini wrote: Hi Jason, On 18/02/19 10:2

Re: [PATCH] Handle timeout warnings in dg-extract-results

2019-02-19 Thread Christophe Lyon
On Tue, 19 Feb 2019 at 10:28, Christophe Lyon wrote: > > On Mon, 18 Feb 2019 at 21:12, Rainer Orth > wrote: > > > > Hi Christophe, > > > > > dg-extract-results currently moves lines like > > > WARNING: program timed out > > > at the end of each .exp section when it generates .sum files. > > > >

Re: [PATCH 00/41] V9: Emulate MMX intrinsics with SSE

2019-02-19 Thread Uros Bizjak
On Mon, Feb 18, 2019 at 7:37 PM H.J. Lu wrote: > > On x86-64, since __m64 is returned and passed in XMM registers, we can > emulate MMX intrinsics with SSE instructions. To support it, we added > > #define TARGET_MMX_WITH_SSE (TARGET_64BIT && TARGET_SSE2) > > ;; Define instruction set of MMX inst

[PATCH][C++] Fix ICE with VTV

2019-02-19 Thread Richard Biener
Looks like vtv_generate_init_routine calls symtab->process_new_functions () which has seriously bad effects on GCCs internal memory state. VTV has zero testsuite coverage it seems and besides its initial commit didn't receive any love. Can we rip it out please? Is the patch OK? (Pointless) b

Re: RFC (branch prediction): PATCH to implement P0479R5, [[likely]] and [[unlikely]].

2019-02-19 Thread Martin Liška
On 2/18/19 8:34 PM, Jason Merrill wrote: > Fixed thus: Works for me, thanks! Martin

[PATCH] rs6000: Fix PR 88100, range check for vec_splat_{su}{8,16,32}

2019-02-19 Thread Li Jia He
Hi, GCC revision 259524 implemented range check for the vec_splat_{su}{8,16,32} builtins. However, as a consequence of the implementation, the range check is not done correctly for the expected vspltis[bhw] instructions.  The result is that we may not get a valid error message if the valid range

Re: [libphobos, build] Enable libphobos on Solaris 11/x86

2019-02-19 Thread Rainer Orth
Hi Iain, > On Tue, 29 Jan 2019 at 13:35, Rainer Orth > wrote: >> >> With the set of libphobos Solaris patches just posted, it would become >> possible to enable libphobos on Solaris 11/x86 by default. >> >> This is what this patch does. >> >> * It uses a LIBPHOBOS_SUPPORTED variable both in topl

Re: [PATCH] Handle timeout warnings in dg-extract-results

2019-02-19 Thread Christophe Lyon
On Mon, 18 Feb 2019 at 21:12, Rainer Orth wrote: > > Hi Christophe, > > > dg-extract-results currently moves lines like > > WARNING: program timed out > > at the end of each .exp section when it generates .sum files. > > > > This is because it sorts its output based on the 2nd field, which is > >

Re: [build] Fix libgphobos linking on Solaris 11

2019-02-19 Thread Rainer Orth
Hi Iain, > On Tue, 27 Nov 2018 at 23:28, Rainer Orth > wrote: >> >> As mentioned in passing in PR d/87864, libgphobos.so currently fails to >> link before Solaris 11.4. Until then, you needed to link with -lsocket >> -lnsl for the networking functions, in S11.4 they were merged into libc. >> >>

Re: [patch] Fix LRA/reload issue with -fnon-call-exceptions

2019-02-19 Thread Eric Botcazou
> So, barring the removal of the get_initial_register_offset stuff, the only > simple fix is probably to prevent it from calling into the back-end too > early, for example with the attached fixlet. Tested on x86-64 and > PowerPC/Linux. > > Thoughts? Where do we want to fix this? > > > *

Re: [patch, fortran] Fix PR 89384

2019-02-19 Thread Paul Richard Thomas
Hi Thomas, That's just the job. OK for trunk. Thanks for the quick fix. Paul On Mon, 18 Feb 2019 at 22:03, Thomas Koenig wrote: > > Hello world, > > this patch fixes the 9 regression in C interop with contiguous > arguments recently reported by Reinhold Bader. > > ChangeLog and patch say it al

Re: [committed] Fix set_uids_in_ptset (PR middle-end/89303)

2019-02-19 Thread Jakub Jelinek
On Tue, Feb 19, 2019 at 02:52:54AM +, Jonathan Wakely wrote: > On 18/02/19 21:22 +0100, Jakub Jelinek wrote: > > On Mon, Feb 18, 2019 at 09:15:39PM +0100, Rainer Orth wrote: > > > 2019-02-15 Rainer Orth > > > > > > * g++.dg/torture/pr89303.C (bad_weak_ptr): Rename to > > > bad_weak_ptr_