[PATCH] Fix lto-bootstrap (PR bootstrap/79003).

Christophe Lyon christophe.lyon@linaro.org
Fri Jan 6 16:13:00 GMT 2017


Hi,


On 6 January 2017 at 13:54, Jakub Jelinek <jakub@redhat.com> wrote:
> On Fri, Jan 06, 2017 at 01:41:15PM +0100, Martin Liška wrote:
>> Hello.
>>
>> This enables doable LTO bootstrap w/o -disable-werror. First change is mentioned
>> in the PR, second is adding -fno-lto to libdecnumber. Honza told me that proper
>> fix would take more effort as it's an old library. Last needed hunk handles -Wmaybe-uninitialized,
>> as described in https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79003#c4.
>>
>> Patch LTO bootstraps on x86_64-linux-gnu, can bootstrap on ppc64le-redhat-linux
>> and survives regression tests.
>>
>> Ready to be installed?
>> Martin
>
>> >From 67a3ccd99963ac19cbaebf17453cb51819c7bf1d Mon Sep 17 00:00:00 2001
>> From: marxin <mliska@suse.cz>
>> Date: Thu, 5 Jan 2017 17:18:27 +0100
>> Subject: [PATCH] Fix lto-bootstrap (PR bootstrap/79003).
>>
>> gcc/ChangeLog:
>>
>> 2017-01-05  Martin Liska  <mliska@suse.cz>
>>
>>       PR bootstrap/79003
>>       * lra-constraints.c: Rename invariant to lra_invariant.
>>       * predict.c (set_even_probabilities): Initialize e to NULL.
>>
>> libdecnumber/ChangeLog:
>>
>> 2017-01-05  Martin Liska  <mliska@suse.cz>
>>
>>       PR bootstrap/79003
>>       * Makefile.in: Add -fno-lto to {C,CPP,LD}FLAGS.
>
> Ok, thanks.
>
>         Jakub


This makes all my builds fail.
(The *linux* ones are broken after Alexandre's pragma, and
this commit breaks the remaining bare-metal configurations).
make[2]: Entering directory
`/tmp/3119026_6.tmpdir/aci-gcc-fsf/builds/gcc-fsf-gccsrc/obj-aarch64-none-linux-gnu/gcc1/libdecnumber'
source='/tmp/3119026_6.tmpdir/aci-gcc-fsf/sources/gcc-fsf/gccsrc/libdecnumber/decNumber.c'
object='decNumber.o' libtool=no gcc  -I/tmp/3
119026_6.tmpdir/aci-gcc-fsf/sources/gcc-fsf/gccsrc/libdecnumber -I.
-fno-lto -g -O2 -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissi
ng-prototypes -Wold-style-definition -Wmissing-format-attribute
-Wcast-qual -pedantic -Wno-long-long
-I/tmp/3119026_6.tmpdir/aci-gcc-fs
f/sources/gcc-fsf/gccsrc/libdecnumber -I. -fno-lto  -c
/tmp/3119026_6.tmpdir/aci-gcc-fsf/sources/gcc-fsf/gccsrc/libdecnumber/decNumber.c
cc1: error: unrecognized command line option "-fno-lto"
cc1: error: unrecognized command line option "-fno-lto"

Still using gcc-4.4.7 on RHEL6....

Christophe



More information about the Gcc-patches mailing list