Re: [PATCH] Make strlen range computations more conservative

2018-10-12 Thread Bernd Edlinger
On 10/12/18 16:55, Jeff Law wrote: > On 9/15/18 2:43 AM, Bernd Edlinger wrote: >> Hi, >> >> this is an update on my strlen range patch (V7). Again re-based and >> retested to current trunk. >> >> I am aware that Martin wants to re-factor the interface of get_range_strlen >> and have no objections

Re: Fix bad interaction between sysroot and C++ include dir

2018-10-12 Thread Eric Botcazou
> Thanks for that. I had found and (at least partly) analyzed the same, > but had not yet prepared a patch. I'm confirming that this works as > expected when configuring with "--with-sysroot=" (that is, empty). You're welcome. > Can we get this onto release branches, too? That's an oldish

[PATCH, pdp11] fix problem with doloop_end

2018-10-12 Thread Paul Koning
For some newlib sources, pdp11 doloop_end was creating problems because it was handed a QImode operand when it only wants HImode. This patch cures that, and also adds addqi3 and subqi3 patterns to help with that case. Committed. paul ChangeLog: 2018-10-12 Paul Koning *

Re: [patch] tighten toplevel guard on ibm-ldouble.c

2018-10-12 Thread Olivier Hainque
Hi Segher, > On 8 Oct 2018, at 04:42, Olivier Hainque wrote: > >> I think it looks fine. Okay for trunk after some testing. > > I can't get a pristine mainline to build on our powerpc-linux > host - SEGVs from the newly built cc1 during libgcc. Updated > ulimits helped a bit, investigating

Re: Fix bad interaction between sysroot and C++ include dir

2018-10-12 Thread Thomas Schwinge
Hi! Belatedly... On Thu, 10 May 2018 11:36:01 +0200, Eric Botcazou wrote: > This fixes an annyoing regression introduced in 2012 by [...] > The result is that, if you configure --with-sysroot with a value that happens > to be identical to the start of the default C++ path in the install tree,

[PATCH] Fix PR87473 (SLSR ICE on hidden basis)

2018-10-12 Thread Bill Schmidt
Hi, This patch addresses SLSR bug PR87473. The underlying problem here is that create_add_on_incoming_edge contains code to handle a phi_arg that is equal to the base expression of the PHI candidate, where the increment assigned to the incoming arc should be zero minus the index expression of

Re: [patch] allow target config to state r18 is fixed on aarch64

2018-10-12 Thread Olivier Hainque
Hi Kyrill, Thanks for your feedback! > On 12 Oct 2018, at 05:50, Kyrill Tkachov wrote: > > CC'ing the aarch64 maintainers as they'll have to approve it. > I'm guessing you've tested this in the usual way (bootstrap and test)? Sorry, I failed to mention the testing indeed. We don't have a

[C++ PATCH] more TU parsing refactoring

2018-10-12 Thread Nathan Sidwell
This patch does a bit more refactoring to yesterday's cleanup. Rather than have cp_parser_translation_unit use cp_parser_declaration_seq_opt, I break out the guts of the latter function to cp_parser_toplevel_declaration, and call that from both places. Further, the implicit_extern_c

Re: [PATCH] Optimize sin(atan(x)) and cos(atan(x)), take 3 (PR tree-optimization/86829)

2018-10-12 Thread Christophe Lyon
On Fri, 12 Oct 2018 at 20:01, Giuliano Augusto Faulin Belinassi wrote: > > > fc is built with: > >mov r0, #0 > >movtr0, 24448 > > so r0=0x5f80 (1.8446744E19) which looks ok > > this is correct. My x86_64 yields the same value > > > but then cosatanf is computed as (ie

Re: [PATCH] Optimize sin(atan(x)) and cos(atan(x)), take 3 (PR tree-optimization/86829)

2018-10-12 Thread Christophe Lyon
On Fri, 12 Oct 2018 at 17:57, Jeff Law wrote: > > On 10/12/18 9:51 AM, Giuliano Augusto Faulin Belinassi wrote: > > Hello > > What is the output of these functions on such arch? Since the > > test didn't fail for the sinatan counterpart, an possible explanation > > would be that the

Backports to gcc-6-branch

2018-10-12 Thread Jakub Jelinek
Hi! I've backported following 8 patches from gcc-8-branch to gcc-6-branch, bootstrapped/regtested and committed to gcc-6-branch. Jakub 2018-10-12 Jakub Jelinek Backported from mainline 2018-07-16 Jakub Jelinek PR c++/3698 PR c++/86208 *

Re: [PATCH] Run selftests for C++ as well as C

2018-10-12 Thread David Malcolm
On Fri, 2018-10-12 at 14:45 -0400, David Malcolm wrote: > [re this thread "ToT build failure?": > https://gcc.gnu.org/ml/gcc-patches/2017-07/msg00344.html ] > > On Thu, 2017-07-06 at 20:58 +0200, Jakub Jelinek wrote: > > On Thu, Jul 06, 2017 at 01:45:42PM -0400, David Malcolm wrote: > > > Given

Re: [PATCH] Optimize sin(atan(x)) and cos(atan(x)), take 3 (PR tree-optimization/86829)

2018-10-12 Thread Giuliano Augusto Faulin Belinassi
> fc is built with: >mov r0, #0 >movtr0, 24448 > so r0=0x5f80 (1.8446744E19) which looks ok this is correct. My x86_64 yields the same value > but then cosatanf is computed as (ie there's not call to cosatanf()): >movwr3, #48430 >movtr3, 45883

[PATCH] Run selftests for C++ as well as C

2018-10-12 Thread David Malcolm
[re this thread "ToT build failure?": https://gcc.gnu.org/ml/gcc-patches/2017-07/msg00344.html ] On Thu, 2017-07-06 at 20:58 +0200, Jakub Jelinek wrote: > On Thu, Jul 06, 2017 at 01:45:42PM -0400, David Malcolm wrote: > > Given that the previous status quo of the selftests was to require > >

Re: [PATCH] asm inline

2018-10-12 Thread Alexander Monakov
On Fri, 12 Oct 2018, Segher Boessenkool wrote: > > Please consider that as currently GCC over-estimates length of such asms, > > branches around them are emitted as long-range jumps more often than needed, > > which should be a problem we'd want to solve, because the whole reason this > > is being

Re: [PATCH] asm inline

2018-10-12 Thread Segher Boessenkool
On Fri, Oct 12, 2018 at 07:57:12PM +0300, Alexander Monakov wrote: > > I don't agree at all. Sure it is not very many lines to implement this, > > but it will make the semantics of inline assembler even stranger than it > > already is. > > > > I also don't think it will be very useful. > > > >

Re: [PATCH 2/2 v3][IRA,LRA] Fix PR86939, IRA incorrectly creates an interference between a pseudo register and a hard register

2018-10-12 Thread Jeff Law
On 10/12/18 10:38 AM, Peter Bergner wrote: > On 10/11/18 3:51 PM, Vladimir Makarov wrote: >> I think it has a sense because even if LRA has the same problem, it will be >> hard to fix it in reload and LRA. Nobody worked on reload pass for a long >> time and it is not worth to fix it because we

Re: [PATCH] Add option to control warnings added through attribure "warning"

2018-10-12 Thread Martin Sebor
On 10/12/2018 04:14 AM, Nikolai Merinov wrote: Hello, In https://gcc.gnu.org/ml/gcc-patches/2018-09/msg01795.html mail I suggested patch to have ability to control behavior of "__attribute__((warning))" in case when option "-Werror" enabled. Usage example: #include int a()

Re: [PATCH] asm inline

2018-10-12 Thread Alexander Monakov
On Fri, 12 Oct 2018, Segher Boessenkool wrote: > > For instance by introducing special tokens like %[ %] that demarkate > > portion of the asm that shouldn't be counted: > > This potentially conflicts with targetm.asm_out.print_operand_punct_valid_p > (and it does in fact conflict for

Re: [C++ Patch] PR 71140 ("[concepts] ill-formed nested-requirement lacking a semicolon not rejected")

2018-10-12 Thread Paolo Carlini
Hi, On 12/10/18 14:55, Jason Merrill wrote: BTW, I would discourage you from messing much with the concepts code at this point, as a major overhaul should be coming soon. Agreed: we have good news from Andrew! By the way, over the last days, outside trivial parsing issues, I noticed a

Re: [PATCH 2/2 v3][IRA,LRA] Fix PR86939, IRA incorrectly creates an interference between a pseudo register and a hard register

2018-10-12 Thread Peter Bergner
On 10/11/18 3:51 PM, Vladimir Makarov wrote: > I think it has a sense because even if LRA has the same problem, it will be > hard to fix it in reload and LRA. Nobody worked on reload pass for a long > time and it is not worth to fix it because we are moving from reload. [snip] > In any case, the

[PR87563][AARCH64-SVE]: Don't keep ifcvt loop when COND_ ifn could not be vectorized.

2018-10-12 Thread Renlin Li
Hi all, ifcvt will created versioned loop and it will permissively generate scalar COND_ ifn. If in the loop vectorize pass, COND_ could not get vectorized, the if-converted loop should be abandoned when the target doesn't support such ifn. As currently, COND_ is only used by aarch64 sve

Re: C++ PATCH to implement C++20 P0892R2 - explicit(bool) [v3]

2018-10-12 Thread Marek Polacek
On Fri, Oct 12, 2018 at 02:26:45AM -0400, Jason Merrill wrote: > On Thu, Oct 11, 2018 at 8:25 PM Marek Polacek wrote: > > > > On Thu, Oct 11, 2018 at 11:35:23AM -0400, Jason Merrill wrote: > > > > + /* [dcl.fct.spec] > > > > + "the constant-expression, if supplied, shall be a > >

Make std::vector iterator operators friend inline

2018-10-12 Thread François Dumont
Here is the patch for _Bit_iterator and _Bit_const_iterator operators. I noticed that _Bit_reference == and < operators could be made inline friend too. Do you want me to include this change in the patch ?     * include/bits/stl_bvector.h (_Bit_iterator_base::operator==): Replace     member

Re: [Patch, Fortran] PR87597 - fix off-by-one issue with inline matmul

2018-10-12 Thread Thomas Koenig
Hi Tobias, Build and regtested on x86-64-linux. OK for the trunk and - after a grace time - for GCC 6, 7 and 8? Thanks for taking this on so quickly! I don't think that this will result in any missed optimizations. Ok. Thomas

Re: [PATCH] Optimize sin(atan(x)) and cos(atan(x)), take 3 (PR tree-optimization/86829)

2018-10-12 Thread Jeff Law
On 10/12/18 9:51 AM, Giuliano Augusto Faulin Belinassi wrote: > Hello > What is the output of these functions on such arch? Since the > test didn't fail for the sinatan counterpart, an possible explanation > would be that the calculation of the sqrf, sqrt and sqrtl (lines > 62-64) yielded a

Re: [PATCH] Optimize sin(atan(x)) and cos(atan(x)), take 3 (PR tree-optimization/86829)

2018-10-12 Thread Giuliano Augusto Faulin Belinassi
Hello What is the output of these functions on such arch? Since the test didn't fail for the sinatan counterpart, an possible explanation would be that the calculation of the sqrf, sqrt and sqrtl (lines 62-64) yielded a number that is far behind of what it should be. However, I am still not

Re: [PATCH] Optimize sin(atan(x)) and cos(atan(x)), take 3 (PR tree-optimization/86829)

2018-10-12 Thread Christophe Lyon
On Fri, 12 Oct 2018 at 16:14, Jeff Law wrote: > > On 10/12/18 8:11 AM, Christophe Lyon wrote: > > On Fri, 12 Oct 2018 at 13:27, Richard Biener > > wrote: > >> > >> On Fri, Oct 12, 2018 at 10:08 AM Christophe Lyon > >> wrote: > >>> > >>> On Thu, 11 Oct 2018 at 23:07, Jeff Law wrote: > >

Re: C++ PATCH for decomp31.C test

2018-10-12 Thread Marek Polacek
On Fri, Oct 12, 2018 at 08:59:00AM -0400, Jason Merrill wrote: > On Fri, Oct 12, 2018 at 4:10 AM Jakub Jelinek wrote: > > > > On Thu, Oct 11, 2018 at 09:39:51PM -0400, Marek Polacek wrote: > > > Running make check-c++ RUNTESTFLAGS=dg.exp=decomp31.C will yield > > > # of unsupported tests

Re: [doc PATCH] attribute packed does not apply to variables

2018-10-12 Thread Martin Sebor
On 10/11/2018 10:43 PM, Eric Gallager wrote: On 10/11/18, Martin Sebor wrote: The manual says that: The packed attribute specifies that a variable or structure field should have the smallest possible alignment--one byte for a variable, and one bit for a field... The variable part

Backports to gcc-7-branch

2018-10-12 Thread Jakub Jelinek
Hi! I've backported following 9 patches from gcc-8-branch to gcc-7-branch, bootstrapped/regtested and committed to gcc-7-branch. Jakub 2018-10-12 Jakub Jelinek Backported from mainline 2018-07-16 Jakub Jelinek PR c++/3698 PR c++/86208 *

Re: [PATCH] Make strlen range computations more conservative

2018-10-12 Thread Jeff Law
On 9/15/18 2:43 AM, Bernd Edlinger wrote: > Hi, > > this is an update on my strlen range patch (V7). Again re-based and > retested to current trunk. > > I am aware that Martin wants to re-factor the interface of get_range_strlen > and have no objections against, but I'd suggest that to be a

[PATCH/RFC] Add "User Experience Guidelines" to gccint.texi

2018-10-12 Thread David Malcolm
Here's a proposed "User Experience Guidelines" section for our internals manual It's a mixture of proposed policy, together with notes on how to implement the recommendations. Thoughts? gcc/ChangeLog: * Makefile.in (TEXI_GCCINT_FILES): Add ux.texi. * doc/gccint.texi: Include

Re: [PATCH] Add sinh(tanh(x)) and cosh(tanh(x)) rules

2018-10-12 Thread Giuliano Augusto Faulin Belinassi
Hello. I don't think there is a need for overflow handling here because the argument is bound by the argument of the sqrt function :-) Since we have to compute sqrt (1 - x*x), the input is only valid if 1 - x*x >= 0, implying that -1 <= x <= 1. For any x outside of this set, the sqrt will

[Patch, Fortran] PR87597 - fix off-by-one issue with inline matmul

2018-10-12 Thread Tobias Burnus
In the front-end optimization for matmul, we call lbound() for each matrix argument to obtain the shift to the 0-based loop variables. If the first argument is a PARAMETER, it appears initially as EXPR_VARIABLE and has associated ref->u.ar for the AR_FULL and ref->u.ar.as contains the bounds.

Re: [PATCH] Optimize sin(atan(x)) and cos(atan(x)), take 3 (PR tree-optimization/86829)

2018-10-12 Thread Jeff Law
On 10/12/18 8:11 AM, Christophe Lyon wrote: > On Fri, 12 Oct 2018 at 13:27, Richard Biener > wrote: >> >> On Fri, Oct 12, 2018 at 10:08 AM Christophe Lyon >> wrote: >>> >>> On Thu, 11 Oct 2018 at 23:07, Jeff Law wrote: On 10/9/18 5:29 PM, Giuliano Augusto Faulin Belinassi wrote:

Re: [PATCH] Optimize sin(atan(x)) and cos(atan(x)), take 3 (PR tree-optimization/86829)

2018-10-12 Thread Christophe Lyon
On Fri, 12 Oct 2018 at 13:27, Richard Biener wrote: > > On Fri, Oct 12, 2018 at 10:08 AM Christophe Lyon > wrote: > > > > On Thu, 11 Oct 2018 at 23:07, Jeff Law wrote: > > > > > > On 10/9/18 5:29 PM, Giuliano Augusto Faulin Belinassi wrote: > > > > Fixed all issues pointed in the previous

Re: [C++ PATCH] Fix pretty-print of enumerator ids (PR c++/87364)

2018-10-12 Thread will wray
Thanks for the commit, for fixing the formatting issues and for writing the detailed ChangeLog entry. Sorry for those issues; all looks good now - there are only whitespace diffs between trunk and my patched version. My tests pass, including the test code attached to the bug report. Will IIRC I

Re: [PATCH] asm inline

2018-10-12 Thread Segher Boessenkool
On Fri, Oct 12, 2018 at 03:45:41PM +0300, Alexander Monakov wrote: > On Fri, 12 Oct 2018, Segher Boessenkool wrote: > > > The Linux kernel people want a feature that makes GCC pretend some > > inline assembler code is tiny (while it would think it is huge), so > > that such code will be inlined

Re: [PATCH, doc] describe mode checking for doloop_end pattern

2018-10-12 Thread Paul Koning
> On Oct 11, 2018, at 11:01 PM, Jeff Law wrote: > > On 10/11/18 3:09 PM, Paul Koning wrote: >> Updated with an additional item I just debugged. >> >> Since the code that uses the doloop_end pattern does not check the operand >> mode as given in the pattern, the pattern itself may need to do

Re: [C++ Patch] PR 71140 ("[concepts] ill-formed nested-requirement lacking a semicolon not rejected")

2018-10-12 Thread Andrew Sutton
> > BTW, I would discourage you from messing much with the concepts code > at this point, as a major overhaul should be coming soon. > Major overhaul: https://github.com/asutton/gcc (branch is concepts; we're about 2 weeks back from trunk). Unfortunately, I we haven't been following GCC commit

Re: [PATCH] asm inline

2018-10-12 Thread Jakub Jelinek
On Fri, Oct 12, 2018 at 08:13:51AM -0500, Segher Boessenkool wrote: > On Fri, Oct 12, 2018 at 02:38:52PM +0200, Jakub Jelinek wrote: > > On Fri, Oct 12, 2018 at 12:21:06PM +, Segher Boessenkool wrote: > > > The Linux kernel people want a feature that makes GCC pretend some > > > inline

Re: [PATCH] asm inline

2018-10-12 Thread Segher Boessenkool
On Fri, Oct 12, 2018 at 02:38:52PM +0200, Jakub Jelinek wrote: > On Fri, Oct 12, 2018 at 12:21:06PM +, Segher Boessenkool wrote: > > The Linux kernel people want a feature that makes GCC pretend some > > inline assembler code is tiny (while it would think it is huge), so > > that such code

Re: C++ PATCH for decomp31.C test

2018-10-12 Thread Jason Merrill
On Fri, Oct 12, 2018 at 4:10 AM Jakub Jelinek wrote: > > On Thu, Oct 11, 2018 at 09:39:51PM -0400, Marek Polacek wrote: > > Running make check-c++ RUNTESTFLAGS=dg.exp=decomp31.C will yield > > # of unsupported tests3 > > because the test (as the only one in cpp1z/) uses > > "dg-do

Re: [C++ Patch] PR 71140 ("[concepts] ill-formed nested-requirement lacking a semicolon not rejected")

2018-10-12 Thread Jason Merrill
On Thu, Oct 11, 2018 at 4:31 PM Paolo Carlini wrote: > > On 11/10/18 20:36, Jason Merrill wrote: > > On Wed, Oct 3, 2018 at 8:18 AM Paolo Carlini > > wrote: > >> a simple issue, we weren't correctly implementing 7.5.7.4 on the > >> terminating semicolon. Tested x86_64-linux. > > If the missing

Re: [PATCH] asm inline

2018-10-12 Thread Alexander Monakov
On Fri, 12 Oct 2018, Segher Boessenkool wrote: > The Linux kernel people want a feature that makes GCC pretend some > inline assembler code is tiny (while it would think it is huge), so > that such code will be inlined essentially always instead of > essentially never. I do apologize for being

Re: [PATCH] asm inline

2018-10-12 Thread Jakub Jelinek
On Fri, Oct 12, 2018 at 12:21:06PM +, Segher Boessenkool wrote: > The Linux kernel people want a feature that makes GCC pretend some > inline assembler code is tiny (while it would think it is huge), so > that such code will be inlined essentially always instead of > essentially never. Just a

[PATCH] asm inline

2018-10-12 Thread Segher Boessenkool
The Linux kernel people want a feature that makes GCC pretend some inline assembler code is tiny (while it would think it is huge), so that such code will be inlined essentially always instead of essentially never. This patch lets you say "asm inline" instead of just "asm", with the result that

Re: [ARM/FDPIC v3 08/21] [ARM] FDPIC: Ensure local/global binding for function descriptors

2018-10-12 Thread Richard Earnshaw (lists)
On 11/10/18 14:34, Christophe Lyon wrote: > Use local binding rules to decide whether we can use GOTOFFFUNCDESC to > compute the function address. > > 2018-XX-XX Christophe Lyon > Mickaël Guêné > > gcc/ > * config/arm/arm.c (arm_local_funcdesc_p): New function. >

Re: [ARM/FDPIC v3 07/21] [ARM] FDPIC: Avoid saving/restoring r9 on stack since it is RO

2018-10-12 Thread Richard Earnshaw (lists)
On 11/10/18 14:34, Christophe Lyon wrote: > 2018-XX-XX Christophe Lyon > Mickaël Guêné > > gcc/ > * config/arm/arm.c (arm_compute_save_reg0_reg12_mask): Handle > FDPIC. > (thumb1_compute_save_core_reg_mask): Likewise. The hunk for this bit is missing. > > diff

Re: [ARM/FDPIC v3 06/21] [ARM] FDPIC: Add support for c++ exceptions

2018-10-12 Thread Richard Earnshaw (lists)
On 11/10/18 14:34, Christophe Lyon wrote: > The main difference with existing support is that function addresses > are function descriptor addresses instead. This means that all code > dealing with function pointers now has to cope with function > descriptors instead. > > For the same reason,

[Patch, Fortran] PR67125 - ALLOCATE with source-expr lbounds/ubound off by one

2018-10-12 Thread Tobias Burnus
Hello all, "When an ALLOCATE statement is executed for an array with no allocate-shape-spec-list, the bounds of source-expr determine the bounds of the array." (F2018, 9.7.1.2 (6)) That seems to work fine for arrays which have an array descriptor. However, as the current code shows, it fails

Re: [PATCH] Optimize sin(atan(x)) and cos(atan(x)), take 3 (PR tree-optimization/86829)

2018-10-12 Thread Richard Biener
On Fri, Oct 12, 2018 at 10:08 AM Christophe Lyon wrote: > > On Thu, 11 Oct 2018 at 23:07, Jeff Law wrote: > > > > On 10/9/18 5:29 PM, Giuliano Augusto Faulin Belinassi wrote: > > > Fixed all issues pointed in the previous iteration. > > > There is now a significant change regarding how the

Re: [ARM/FDPIC v3 05/21] [ARM] FDPIC: Fix __do_global_dtors_aux and frame_dummy generation

2018-10-12 Thread Richard Earnshaw (lists)
On 11/10/18 14:34, Christophe Lyon wrote: > In FDPIC, we need to make sure __do_global_dtors_aux and frame_dummy > are referenced by their address, not by pointers to the function > descriptors. > > 2018-XX-XX Christophe Lyon > Mickaël Guêné > > * libgcc/crtstuff.c: Add support

Re: introduce --enable-mingw-full32 to default to --large-address-aware

2018-10-12 Thread JonY
On 10/12/2018 05:56 AM, Alexandre Oliva wrote: > On Oct 11, 2018, JonY <10wa...@gmail.com> wrote: > >> On 10/11/2018 02:57 AM, NightStrike wrote: >>> >>> Except that options typically don't get removed, just deprecated. It >>> seems cleaner to me to drop mingw from the name and make it default

[PATCH] Initial commit of Networking TS implementation

2018-10-12 Thread Jonathan Wakely
This implementation is very incomplete (see the various TODO comments in the code) but rather than keeping it out of tree any longer I'm committing it to trunk. This will allow others to experiment with it and (I hope) work on finishing it. Either way we'll ship somehing for gcc 9. It works OK

Re: [ARM/FDPIC v3 04/21] [ARM] FDPIC: Add support for FDPIC for arm architecture

2018-10-12 Thread Richard Earnshaw (lists)
On 11/10/18 14:34, Christophe Lyon wrote: > The FDPIC register is hard-coded to r9, as defined in the ABI. > > We have to disable tailcall optimizations if we don't know if the > target function is in the same module. If not, we have to set r9 to > the value associated with the target module. >

[PATCH] Add option to control warnings added through attribure "warning"

2018-10-12 Thread Nikolai Merinov
Hello, In https://gcc.gnu.org/ml/gcc-patches/2018-09/msg01795.html mail I suggested patch to have ability to control behavior of "__attribute__((warning))" in case when option "-Werror" enabled. Usage example: #include int a() __attribute__((warning("Warning: `a' was used"))); int a() {

Re: [ARM/FDPIC v3 03/21] [ARM] FDPIC: Force FDPIC related options unless -mno-fdpic is provided

2018-10-12 Thread Richard Earnshaw (lists)
On 11/10/18 14:34, Christophe Lyon wrote: > In FDPIC mode, we set -fPIE unless the user provides -fno-PIE, -fpie, > -fPIC or -fpic: indeed FDPIC code is PIC, but we want to generate code > for executables rather than shared libraries by default. > > We also make sure to use the --fdpic assembler

Re: [ARM/FDPIC v3 02/21] [ARM] FDPIC: Handle arm*-*-uclinuxfdpiceabi in configure scripts

2018-10-12 Thread Richard Earnshaw (lists)
On 11/10/18 14:34, Christophe Lyon wrote: > The new arm-uclinuxfdpiceabi target behaves pretty much like > arm-linux-gnueabi. In order the enable the same set of features, we > have to update several configure scripts that generally match targets > like *-*-linux*: in most places, we add

Re: [ARM/FDPIC v3 01/21] [ARM] FDPIC: Add -mfdpic option support

2018-10-12 Thread Richard Earnshaw (lists)
On 11/10/18 14:34, Christophe Lyon wrote: > 2018-XX-XX Christophe Lyon > Mickaël Guêné > > gcc/ > * config/arm/arm.opt: Add -mfdpic option. > * doc/invoke.texi: Add documentation for -mfdpic. This is OK (once the rest of the series is approved). R. > > diff --git

Re: [patch] allow target config to state r18 is fixed on aarch64

2018-10-12 Thread Kyrill Tkachov
Hi Olivier, On 10/10/18 22:40, Olivier Hainque wrote: Hello, The aarch64 "platform register" r18 is currently unconditionally used as a scratch register by gcc. Working on a VxWorks port for this arch (that we plan to contribute soon), we discovered that VxWorks has an internal use of this

Re: [PATCH][AArch64] Support zero-extended move to FP register

2018-10-12 Thread Richard Earnshaw (lists)
On 11/10/18 19:37, Wilco Dijkstra wrote: > Here is the same version again with an extra test added: > > The popcount expansion uses SIMD instructions acting on 64-bit values. > As a result a popcount of a 32-bit integer requires zero-extension before > moving the zero-extended value into an FP

Re: [PATCH 2/2 v3][IRA,LRA] Fix PR86939, IRA incorrectly creates an interference between a pseudo register and a hard register

2018-10-12 Thread Eric Botcazou
> These are the easy ones (they default to reload): > > bergner@pike:~/gcc/gcc-fsf-mainline/gcc/config$ grep -r TARGET_LRA_P | grep > false | sort alpha/alpha.c:#define TARGET_LRA_P hook_bool_void_false > avr/avr.c:#define TARGET_LRA_P hook_bool_void_false > bfin/bfin.c:#define TARGET_LRA_P

Re: [PATCH] Come up with gcc/testsuite/g++.target/i386/i386.dg and move there some tests.

2018-10-12 Thread Rainer Orth
Hi Martin, > On 10/9/18 11:03 AM, Rainer Orth wrote: >> Hi Martin, >> >>> rename from gcc/testsuite/g++.dg/ext/pr82625.C >>> rename to gcc/testsuite/g++.target/i386/pr82625.C >>> index 59b174f8c51..0eb70baed5e 100644 >>> --- a/gcc/testsuite/g++.dg/ext/pr82625.C >>> +++

Re: C++ PATCH for decomp31.C test

2018-10-12 Thread Jakub Jelinek
On Thu, Oct 11, 2018 at 09:39:51PM -0400, Marek Polacek wrote: > Running make check-c++ RUNTESTFLAGS=dg.exp=decomp31.C will yield > # of unsupported tests3 > because the test (as the only one in cpp1z/) uses > "dg-do compile { target c++17 }" which doesn't work (yet?). This patch

Re: [PATCH] Optimize sin(atan(x)) and cos(atan(x)), take 3 (PR tree-optimization/86829)

2018-10-12 Thread Christophe Lyon
On Thu, 11 Oct 2018 at 23:07, Jeff Law wrote: > > On 10/9/18 5:29 PM, Giuliano Augusto Faulin Belinassi wrote: > > Fixed all issues pointed in the previous iteration. > > There is now a significant change regarding how the sin(atan(x)) > > constant is calculated, as now it checks for which values

Re: [C++ PATCH] Fix pretty-print of enumerator ids (PR c++/87364)

2018-10-12 Thread Christophe Lyon
On Fri, 12 Oct 2018 at 07:47, Christophe Lyon wrote: > > On Fri, 12 Oct 2018 at 05:37, Jeff Law wrote: > > > > On 10/8/18 11:12 AM, will wray wrote: > > > Hi, > > > > > > A PR to fix Bug 87364 - Pretty print of enumerator never prints the id, > > > always falls back to C-style cast output > > >

Re: [Patch, Fortran] PR58787 ICE (error recovery) in check_proc_interface

2018-10-12 Thread Paul Richard Thomas
Hi Tobias, This is OK. Thanks for the patch and the extra careful regtesting :-) Paul On Fri, 12 Oct 2018 at 00:17, Tobias Burnus wrote: > > Next patch, next try … > > The problem is the following: We have a use-associated symbol (a > function) – which is once referenced (by use association).

Re: C++ PATCH to implement C++20 P0892R2 - explicit(bool) [v2]

2018-10-12 Thread Jason Merrill
On Thu, Oct 11, 2018 at 8:25 PM Marek Polacek wrote: > > On Thu, Oct 11, 2018 at 11:35:23AM -0400, Jason Merrill wrote: > > > + /* [dcl.fct.spec] > > > + "the constant-expression, if supplied, shall be a contextually > > > + converted constant expression of type bool." */