Re: [PATCH 00/11] [nvptx] Initial vector length changes

2018-07-25 Thread Cesar Philippidis
On 07/24/2018 01:47 PM, ce...@codesourcery.com wrote: > From: Cesar Philippidis > > This patch series contains various cleanups and structural > reorganizations to the NVPTX BE in preparation for the forthcoming > variable length vector length enhancements. Tom, in order to make > these changes e

Re: [Patch-86512]: Subnormal float support in armv7(with -msoft-float) for intrinsics

2018-07-25 Thread Umesh Kalappa
Hi, Any more suggestions or comments on the patch ? Thank you ~Umesh On Tue, Jul 24, 2018, 2:08 PM Umesh Kalappa wrote: > Thank you All for the suggestions and we tried runing the GCC > testsuite and found that no regression with the fix and also ran the > our regressions base for conformance

[PATCH][Middle-end] disable strcmp/strncmp inlining with O2 below and Os

2018-07-25 Thread Qing Zhao
Hi, As Wilco suggested, the new added strcmp/strncmp inlining should be only enabled with O2 and above. this is the simple patch for this change. tested on both X86 and aarch64. Okay for thunk? Qing gcc/ChangeLog: +2018-07-25 Qing Zhao + + * builtins.c (inline_expand_builtin_string

Re: [PATCH] Make __resource_adaptor_imp usable with C++17 memory_resource

2018-07-25 Thread Jonathan Wakely
On 24/07/18 14:06 +0100, Jonathan Wakely wrote: By making the memory_resource base class a template parameter the __resource_adaptor_imp can be used to adapt an allocator into a std::pmr::memory_resource instead of experimental::pmr::memory_resource. No uses for this in the library but somebody

Re: [PATCH] Make strlen range computations more conservative

2018-07-25 Thread Martin Sebor
One other example I have found in one of the test cases: char c; if (strlen(&c) != 0) abort(); this is now completely elided, but why? Because the only string that can be stored in an array of one element is the empty string. Expanding that call to strlen() is in all likelihood going to resu

Re: [PATCH], Add configuration checks to PowerPC --with-long-double-format=ieee

2018-07-25 Thread Joseph Myers
On Fri, 6 Jul 2018, Segher Boessenkool wrote: > Version checks are terrible. This is nothing new. The key principle behind --with-glibc-version is that you can pass that option *when building the static-only inhibit_libc bootstrap compiler without having built glibc yet* and it will result in

Re: [PATCH 1/7] Add __builtin_speculation_safe_value

2018-07-25 Thread Richard Earnshaw (lists)
On 24/07/18 18:26, Richard Biener wrote: > So, please make resolve_overloaded_builtin return a no-op on such targets > which means you can remove the above warning. Maybe such targets > shouldn't advertise / initialize the builtins at all? So I tried to make resolve_overloaded_builtin collapse th

Re: [GCC][PATCH][Aarch64] Stop redundant zero-extension after UMOV when in DI mode

2018-07-25 Thread Sudakshina Das
Hi Sam On 25/07/18 14:08, Sam Tebbs wrote: On 07/23/2018 05:01 PM, Sudakshina Das wrote: Hi Sam On Monday 23 July 2018 11:39 AM, Sam Tebbs wrote: Hi all, This patch extends the aarch64_get_lane_zero_extendsi instruction definition to also cover DI mode. This prevents a redundant AND instr

[PATCH] [AArch64, Falkor] Switch to using Falkor-specific vector costs

2018-07-25 Thread Luis Machado
The adjusted vector costs give Falkor a reasonable boost in performance for FP benchmarks (both CPU2017 and CPU2006) and doesn't change INT benchmarks that much. About 0.7% for CPU2017 FP and 1.54% for CPU2006 FP. OK for trunk? gcc/ChangeLog: 2018-07-25 Luis Machado * config/aarch64/

Re: RFC: Patch to implement Aarch64 SIMD ABI

2018-07-25 Thread Steve Ellcey
Here is version 3 of my patch to implement the SIMD ABI on Aarch64. I am having a problem with how to handle a SIMD function calling a non-SIMD function.  When this happens the SIMD function needs to save V8 to V23 because it cannot count on the non-SIMD function to save all 128 bits of these regis

[PATCH] [AArch64, Falkor] Adjust Falkor's sign extend reg+reg address cost

2018-07-25 Thread Luis Machado
Adjust Falkor's register_sextend cost from 4 to 3. This fixes a testsuite failure in gcc.target/aarch64/extend.c:ldr_sxtw where GCC was generating a sbfiz instruction rather than a load with sign extension. No performance changes. gcc/ChangeLog: 2018-07-25 Luis Machado * config/aarc

Re: [PATCH] Make strlen range computations more conservative

2018-07-25 Thread Martin Sebor
BUT - for the string_constant and c_strlen functions we are, in all cases we return something interesting, able to look at an initializer which then determines that type. Hopefully. I think the strlen() folding code when it sets SSA ranges now looks at types ...? Consider struct X { int i; char

Share ebo helper throughout lib

2018-07-25 Thread François Dumont
Hi     It has already been noticed that there are 2 ebo helpers in the lib. Here is a patch to use 1.     * include/bits/ebo_helper.h: New.     * include/Makefile.am: Add latter.     * include/Makefile.in: Regenerate.     * include/bits/hashtable_policy.h: Adapt.     * include/bits/shared_ptr

Re: Share ebo helper throughout lib

2018-07-25 Thread Marc Glisse
On Wed, 25 Jul 2018, François Dumont wrote:     It has already been noticed that there are 2 ebo helpers in the lib. Here is a patch to use 1.     * include/bits/ebo_helper.h: New.     * include/Makefile.am: Add latter.     * include/Makefile.in: Regenerate.     * include/bits/hashtable_polic

Re: Share ebo helper throughout lib

2018-07-25 Thread Jonathan Wakely
On 25/07/18 21:42 +0200, François Dumont wrote: Hi     It has already been noticed that there are 2 ebo helpers in the lib. Here is a patch to use 1.     * include/bits/ebo_helper.h: New.     * include/Makefile.am: Add latter.     * include/Makefile.in: Regenerate.     * include/bits/hashtab

Re: Share ebo helper throughout lib

2018-07-25 Thread Jonathan Wakely
On 25/07/18 21:53 +0200, Marc Glisse wrote: On Wed, 25 Jul 2018, François Dumont wrote:     It has already been noticed that there are 2 ebo helpers in the lib. Here is a patch to use 1.     * include/bits/ebo_helper.h: New.     * include/Makefile.am: Add latter.     * include/Makefile.in: R

Re: [PATCH] Add initial version of C++17 header

2018-07-25 Thread Jonathan Wakely
On 25/07/18 12:01 +0100, Jonathan Wakely wrote: On 24/07/18 22:12 +0100, Jonathan Wakely wrote: This is missing the synchronized_pool_resource and unsynchronized_pool_resource classes but is otherwise complete. This is a new implementation, not based on the existing code in , but memory_resourc

committed: removed directives ignored by DejaGnu

2018-07-25 Thread Martin Sebor
Aldy pointed out that the runtime test I added in r261705 to exercise the new strnlen() built-in makes use of directives that are ignored by the test harness. I have removed the directives via r262981. Martin

[PATCH] RFC: Prototype of "rich vectorization hints" idea

2018-07-25 Thread David Malcolm
This patch is a rough prototype of how GCC could offer what I'm calling "rich optimization hints" to the user, focussing on vectorization. The idea is to provide *actionable* information to the user on how GCC is optimizing their code, and how they could modify their source code (or command-line o

Re: [PATCH] Add initial version of C++17 header

2018-07-25 Thread Jonathan Wakely
On 25/07/18 21:23 +0100, Jonathan Wakely wrote: On 25/07/18 12:01 +0100, Jonathan Wakely wrote: On 24/07/18 22:12 +0100, Jonathan Wakely wrote: This is missing the synchronized_pool_resource and unsynchronized_pool_resource classes but is otherwise complete. This is a new implementation, not b

PING [PATCH] warn for strlen of arrays with missing nul (PR 86552)

2018-07-25 Thread Martin Sebor
Ping: https://gcc.gnu.org/ml/gcc-patches/2018-07/msg01124.html The fix for bug 86532 has been checked in so this enhancement can now be applied on top of it (with only minor adjustments). On 07/19/2018 02:08 PM, Martin Sebor wrote: In the discussion of my patch for pr86532 Bernd noted that GCC

Re: [2/5] C-SKY port: Backend implementation

2018-07-25 Thread 瞿仙淼
> 在 2018年7月25日,上午5:24,Jeff Law 写道: > > On 07/24/2018 12:18 PM, Sandra Loosemore wrote: >> On 07/24/2018 09:45 AM, Jeff Law wrote: >>> On 07/23/2018 10:21 PM, Sandra Loosemore wrote: >>> I'm not a big fan of more awk code, but I'm not going to object to it :-) >>> >>> Why does the port have its

[Patch, avr, PR86635] Fix miscompilation with __memx and libgcc float function __gtsf2

2018-07-25 Thread Senthil Kumar Selvaraj
The below patch fixes a miscompilation of function calls with__memx address space arguments. For code like extern const __memx float a; extern const float b; int diff () { return a > b; } when compiled with -Os, a is never loaded and passed in as an argument to the __gtsf2 libgcc function. T

<    1   2