This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: sparc build broken...
- From: David Miller <davem at davemloft dot net>
- To: ro at CeBiTec dot Uni-Bielefeld dot DE
- Cc: stevenb dot gcc at gmail dot com, gcc-patches at gcc dot gnu dot org
- Date: Fri, 01 Jun 2012 13:50:48 -0400 (EDT)
- Subject: Re: sparc build broken...
- References: <20120531.171543.724935960212989154.davem@davemloft.net> <CABu31nNr05Uh8unsKDCMof9gdvUdTpjEMf-AGVr9F6vSJ39ZZg@mail.gmail.com> <yddlik758d2.fsf@manam.CeBiTec.Uni-Bielefeld.DE>
From: Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
Date: Fri, 01 Jun 2012 18:01:45 +0200
> Steven Bosscher <stevenb.gcc@gmail.com> writes:
>
>> On Thu, May 31, 2012 at 11:15 PM, David Miller <davem@davemloft.net> wrote:
>>>
>>> Removing output.h from reload1.c broke the sparc build because
>>> sparc's define of INITIAL_ELIMINATION_OFFSET (which is used in
>>> reload1.c) references current_function_is_leaf.
>>
>> I was afraid of some fall-out. This is why target macros must die...
>>
>> Could you please give the attached patch a try?
>
> It currently fails like this:
>
> /vol/gcc/src/hg/trunk/local/gcc/config/sparc/sparc.c:4557:1: error: unused parameter 'from' [-Werror=unused-parameter]
> sparc_initial_elimination_offset (int from, int to)
> ^
>
> I've just restarted the build with from marked unused.
I hit the same problem, but solved it by removing the
'from' parameter entirely.