On 08/27/2018 09:55 AM, Steve Ellcey wrote:
> On Sun, 2018-08-26 at 20:56 -0600, Jeff Law wrote:
>> MIPS builds have been failing to build due to trying to use an
>> incomplete struct function type.  The uses are coming from cfg.h which
>> typically isn't included in the target files.
>>
>> Fixed by including "backend.h" and removing the "cfg.h" inclusion.
>>
>> THere's likely other targets (aarch64?) that are suffering from a
>> similar problem and could likely be fixed in a similar way.  I'll look
>> at those once I'm confident all my MIPS targets are building again.
>>
>> jeff
> 
> I tried this change in gcc/config/aarch64/aarch64-speculation.cc
> (changing include of cfg.h to backend.h) and it fixed my build problem.
Go ahead and commit it :-)  backend.h seems like an appropriate thing to
include there.

jeff

Reply via email to