Arnaud Charlet writes:
>> unfortunately, it turned out that this fix only works when compiling
>> ada/init.c inside gcc, not for gnatlib where CONST_CAST* isn't defined.
>> I need the following patch instead, which is also simpler for using
>> CONST_CAST, not CONST_CAST2, and provides a CONST_CAS
> unfortunately, it turned out that this fix only works when compiling
> ada/init.c inside gcc, not for gnatlib where CONST_CAST* isn't defined.
> I need the following patch instead, which is also simpler for using
> CONST_CAST, not CONST_CAST2, and provides a CONST_CAST definition in
> tsystem.h,
Arnaud,
>> Fixed as follows, bootstrap is well beyond the failure now.
>>
>> Ok for mainline?
>
> OK, thanks.
unfortunately, it turned out that this fix only works when compiling
ada/init.c inside gcc, not for gnatlib where CONST_CAST* isn't defined.
I need the following patch instead, which is
> Fixed as follows, bootstrap is well beyond the failure now.
>
> Ok for mainline?
OK, thanks.
Tru64 UNIX Ada bootstrap was broken, too:
/vol/gcc/src/hg/trunk/solaris/gcc/ada/init.c: In function 'void
__gnat_error_handler(int, siginfo_t*, void*)':
/vol/gcc/src/hg/trunk/solaris/gcc/ada/init.c:382:50: error: cast from type
'const char*' to type 'char*' casts away qualifiers [-Werror=cast-qu