Re: [PATCH 22/23] Add rtl-ssa

2020-12-19 Thread Jeff Law via Gcc-patches
On 12/16/20 5:33 PM, Richard Sandiford wrote: > Jeff Law via Gcc-patches writes: >> On 11/13/20 1:23 AM, Richard Sandiford via Gcc-patches wrote: >>> This patch adds the RTL SSA infrastructure itself. The following >>> fwprop.c patch will make use of it. >>> >>> gcc/ >>> * configure.ac: Ad

Re: [PATCH] expr: Fix up constant_byte_string bitfield handling [PR98366]

2020-12-19 Thread Richard Biener
On December 18, 2020 9:41:24 PM GMT+01:00, Jakub Jelinek wrote: >Hi! > >constant_byte_string now uses a convert_to_bytes function, which >doesn't >handle bitfields at all (don't punt on them, just puts them into wrong >bits >or bytes). Furthermore, I don't see a reason why that function should >

V3 [PATCH 3/5] Support the PGO build for binutils+gdb

2020-12-19 Thread H.J. Lu via Gcc-patches
Add the --enable-pgo-build[=lto] configure option. When binutils+gdb is not built together with GCC, --enable-pgo-build enables the PGO build: 1. First build with -fprofile-generate. 2. Use "make maybe-check-*" to generate profiling data and pass -i to make to ignore errors when generating profil

V3 [PATCH 5/5] gnulib: Support variables from the top level Makefile

2020-12-19 Thread H.J. Lu via Gcc-patches
Work around what appears to be a GNU make bug handling MAKEFLAGS values defined in terms of make variables, as is the case for CC and friends when we are called from the top level Makefile. * Makefile.am (AM_MAKEFLAGS): New. * Makefile.in: Regenerated. --- gnulib/Makefile.am | 39

V3 [PATCH 1/5] GCC: Pass --plugin to AR and RANLIB

2020-12-19 Thread H.J. Lu via Gcc-patches
Detect GCC LTO plugin. Pass --plugin to AR and RANLIB to support LTO build. * Makefile.tpl (AR): Add @AR_PLUGIN_OPTION@ (RANLIB): Add @RANLIB_PLUGIN_OPTION@. * configure.ac: Include config/gcc-plugin.m4. AC_SUBST AR_PLUGIN_OPTION and RANLIB_PLUGIN_OPTION. *

V3 [PATCH 0/5] Support the PGO build for binutils+gdb

2020-12-19 Thread H.J. Lu via Gcc-patches
Add the --enable-pgo-build[=lto] configure option. When binutils+gdb is not built together with GCC, --enable-pgo-build enables the PGO build: 1. First build with -fprofile-generate. 2. Use "make maybe-check-*" to generate profiling data and pass -i to make to ignore errors when generating profil

V3 [PATCH 4/5] Set TESTS to gdb.dwarf2/*.exp for PGO build training

2020-12-19 Thread H.J. Lu via Gcc-patches
When configured with --enable-pgo-build, set TESTS to gdb.dwarf2/*.exp for PGO build training. * Makefile.in (TESTS): Set to gdb.dwarf2/*.exp for PGO build training. --- gdb/testsuite/Makefile.in | 5 + 1 file changed, 5 insertions(+) diff --git a/gdb/testsuite/Makefile.in b/

V3 [PATCH 2/5] Binutils: Pass --plugin to AR and RANLIB

2020-12-19 Thread H.J. Lu via Gcc-patches
Detect GCC LTO plugin. Pass --plugin to AR and RANLIB to support LTO build. bfd/ * configure: Regenerated. binutils/ * configure: Regenerated. gas/ * configure: Regenerated. gprof/ * configure: Regenerated. ld/ * configure: Regenerated. libctf/

[committed] bswap: Fix up a thinko with empty CONSTRUCTORs [PR98378]

2020-12-19 Thread Jakub Jelinek via Gcc-patches
Hi! The code I've added recently in find_bswap_or_nop for VECTOR CONSTRUCTORs is missing punt on an important case - namely empty CONSTRUCTORs, because in that case the loop will not initialize *n and the code after the loop will then use the uninitialized structure. Fixed thusly, bootstrapped/r