Re: [PATCH 9/9] cse.c selftests

2016-09-16 Thread David Malcolm
On Fri, 2016-09-16 at 14:26 -0600, Jeff Law wrote: > On 09/08/2016 06:30 PM, David Malcolm wrote: > > This patch uses rtl_dump_test to start building out a test suite > > for cse. > > > > I attempted to create a reproducer for PR 71779; however I'm not > > yet > > able to replicate the bogus cse r

Re: [PATCH 0/9] RFC: selftests based on RTL dumps

2016-09-16 Thread David Malcolm
On Fri, 2016-09-16 at 14:05 -0600, Jeff Law wrote: > On 09/13/2016 05:15 AM, Bernd Schmidt wrote: > > > > > > Note that the loader now resets INSN_CODE to -1, regardless of > > > the > > > actual code passed in, to force re-recognition, and to isolate > > > the > > > dumps somewhat from changes to

Re: [PATCH 6/9] df selftests

2016-09-16 Thread David Malcolm
On Fri, 2016-09-16 at 14:34 -0600, Jeff Law wrote: > On 09/08/2016 06:30 PM, David Malcolm wrote: > > gcc/ChangeLog: > > * df-core.c: Include selftest.h and selftest-rtl.h. > > (selftest::dataflow_test::dataflow_test): New ctor. > > (selftest::dataflow_test::~dataflow_test): New dtor. >

Re: [PATCH 5/9] Introduce class function_reader

2016-09-16 Thread Jeff Law
On 09/08/2016 06:30 PM, David Malcolm wrote: This patch generalizes the RTL-reading capabilities so that they can be run on the host as well as the build machine. The available rtx in rtl.def changes dramatically between these two configurations, so a fair amount of #ifdef GENERATOR_FILE is requi

Re: [PATCH 7/9] combine.c selftests

2016-09-16 Thread David Malcolm
On Fri, 2016-09-16 at 14:40 -0600, Jeff Law wrote: > On 09/08/2016 06:30 PM, David Malcolm wrote: > > gcc/ChangeLog: > > * combine.c: Include selftest.h and selftest-rtl.h. > > (try_combine): Add assertion on this_basic_block. > > (class selftest::combine_test): New subclass of > >

Re: [PATCH 8/9] final.c selftests

2016-09-16 Thread David Malcolm
On Fri, 2016-09-16 at 14:45 -0600, Jeff Law wrote: > On 09/08/2016 06:30 PM, David Malcolm wrote: > > gcc/ChangeLog: > > * final.c: Include selftest.h and selftest-rtl.h. > > (class selftest::temp_asm_out): New subclass of > > selftest::named_temp_file. > > (selftest::temp_asm_out::

[PATCH] Fix documentation for overflow-checking builtins

2016-09-16 Thread Jonathan Wakely
This fixes a pasto in the manual. Approved by Jakub on IRC. Committed to trunk and gcc-6-branch and gcc-5-branch. commit 7bb31ae6738252bcb7839699cab5e50e8702b51a Author: Jonathan Wakely Date: Fri Sep 16 22:34:24 2016 +0100 Fix documentation for overflow-checking builtins * doc/

Delete useless .split2 dump file at -O0 on non-x86 targets

2016-09-16 Thread Eric Botcazou
Doing -fdump-rtl-all at -O0 on a non-x86 target yields a .split2 file which is mightily confusing since nothing is split, so you can easily burn a dozen of minutes trying to pinpoint the first split point after reload... Tested on x86-64/Linux and SPARC/Solaris, applied on the mainline. 2016-0

Re: [PATCH 5/9] Introduce class function_reader

2016-09-16 Thread David Malcolm
On Fri, 2016-09-16 at 15:28 -0600, Jeff Law wrote: > On 09/08/2016 06:30 PM, David Malcolm wrote: > > This patch generalizes the RTL-reading capabilities so that they > > can be run on the host as well as the build machine. > > The available rtx in rtl.def changes dramatically between these > > two

[build] Fix race condition during libgcc build

2016-09-16 Thread Eric Botcazou
Hi, we have some new machines which seem to be very good at stumbling upon race conditions during bootstrap. Another example with libgcc: /azun.a/gnatmail/sandbox/gnatcross-cont/x86-linux/gcc/build/./gcc/xgcc - B/azun.a/gnatmail/sandbox/gnatcross-cont/x86-linux/gcc/build/./gcc/ - B/azun.a/gnatm

Re: [PATCH 1/9] Introduce class rtx_reader

2016-09-16 Thread Jeff Law
On 09/08/2016 06:30 PM, David Malcolm wrote: Bundle up various global variables within gensupport.c into a class rtx_reader, with a view towards making it easier to run the code more than once in-process. gcc/ChangeLog: * genconstants.c (main): Introduce noop_reader and convert call

[patch] Fix ICE on ACATS test for Aarch64 at -O

2016-09-16 Thread Eric Botcazou
Hi, for the attached reduced testcase, the ICE is: eric@polaris:~/gnat/bugs/P901-028> ~/build/gcc/aarch64-linux/gcc/gnat1 -quiet p.adb -O -I ~/build/gcc/aarch64-linux/gcc/ada/rts +===GNAT BUG DETECTED==+ | 7.0.0 20160914 (experimental) [trunk r

[PATCH] Fix typo in Libstdc++ Profile Mode docs

2016-09-16 Thread Jonathan Wakely
* doc/xml/manual/profile_mode.xml: Fix typo. * doc/html/manual/profile_mode_devel.html: Regenerate. Committed to trunk. commit 70bd84b48945ab73c35f0c841614dc51f72697ca Author: redi Date: Fri Sep 16 22:09:15 2016 + Fix typo in Libstdc++ Profile Mode docs *

Re: [PATCH] have __builtin_object_size handle POINTER_PLUS with non-const offset

2016-09-16 Thread Martin Sebor
On 09/16/2016 04:29 AM, Richard Biener wrote: On Fri, Sep 16, 2016 at 5:29 AM, Martin Sebor wrote: __builtin_object_size fails for POINTER_PLUS expressions involving non-constant offsets into objects of known size, causing GCC to fail to detect (and add instrumentation to prevent) buffer overfl

Re: [PATCH 2/2][AArch64] Add missing support for poly64x1_t

2016-09-16 Thread James Greenhalgh
On Tue, Sep 13, 2016 at 01:54:15PM +0100, Tamar Christina wrote: > Hi all, > > This patch adds the following NEON intrinsics to the ARM Aarch64 GCC > (and fixes https://gcc.gnu.org/bugzilla/show_bug.cgi?id=72758): > > Added new tests for these and ran regression tests on aarch64-none-linux-gnu

<    1   2