This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Enabling -frename-registers?
- From: Uros Bizjak <ubizjak at gmail dot com>
- To: "gcc-patches at gcc dot gnu dot org" <gcc-patches at gcc dot gnu dot org>
- Cc: Bernd Schmidt <bschmidt at redhat dot com>, Jeff Law <law at redhat dot com>
- Date: Mon, 2 May 2016 13:12:43 +0200
- Subject: Re: Enabling -frename-registers?
- Authentication-results: sourceware.org; auth=none
Hello!
> On 04/17/2016 08:59 PM, Jeff Law wrote:
>
>> invoke.texi has an independent list (probably incomplete! ;( of all the
>> things that -O2 enables. Make sure to add -frename-registers to that
>> list and this is Ok for the trunk (gcc-7).
>
> This is what I committed.
The patch introduced bootstrap failure on alpha-linux-gnu.
Non-bootstrapped build regresses:
FAIL: gcc.dg/torture/pr69542.c -O2 (test for excess errors)
FAIL: gcc.dg/torture/pr69542.c -O2 -flto -fno-use-linker-plugin
-flto-partition=none (test for excess errors)
FAIL: gcc.dg/torture/pr69542.c -Os (test for excess errors)
where all failures are -fcompare-debug failures.
The failure can be reproduced with a crosscompiler to alpha-linux-gnu:
$ /ssd/uros/gcc-build-alpha/gcc/xgcc -B /ssd/uros/gcc-build-alpha/gcc
-O2 -S -fcompare-debug pr69542.c
xgcc: error: pr69542.c: -fcompare-debug failure
$ /ssd/uros/gcc-build-alpha/gcc/xgcc -B /ssd/uros/gcc-build-alpha/gcc
-O2 -S -fcompare-debug -fno-rename-registers pr69542.c
[OK]
Uros.