Hi,

On 15.12.2015 22:55, Jeff Law wrote:
> On 12/15/2015 02:13 PM, Bernd Edlinger wrote:
>> Hi,
>>
>> due to recent discussion on the basic asm, and the special handling 
>> of ASM_INPUT in ia64, I tried to build a bare-metal cross-compiler 
>> for ia64, but that did not work, because it seems to be impossible to 
>> build it without having a stdlib.h.
>>
>> With the attached patch, I was finally able to build the cross 
>> compiler, by declaring abort in the way as it is done already in many 
>> other places at libgcc.
>>
>> In case someone wants to know, working configure options are as follows:
>>
>> ../binutils-2.25.1/configure --prefix=../ia64-elf 
>> --target=ia64-unknown-elf
>>
>> ../gcc-trunk/configure --prefix=../ia64-elf --target=ia64-unknown-elf 
>> --enable-languages=c --with-gnu-as --disable-threads 
>> --disable-sjlj-exceptions --disable-libssp --disable-libquadmath
>>
>>
>> I have successfully built a bare-metal cross compiler with this patch.
>> Is it OK for trunk?
> I wouldn't call it "many" places in libgcc.  I just see one -- 
> fp-bit.c and that one is only to give "sane" handle to extended mode 
> floating point.

there is also unwind-arm-common.inc, which is included by 
./config/arm/unwind-arm.h
and ./config/c6x/unwind-c6x.h, so yes, not many, only few.

> For ia64-elf ISTM this header should be coming from newlib

but I don't want to use newlib or glibc, I just wanted to see if my 
other patch breaks something.


Bernd.

Reply via email to