Hi Stafford,
On 6/9/22 6:29 AM, Stafford Horne wrote:
>> diff --git a/gcc/config.gcc b/gcc/config.gcc
>> index c5064dd37666..0c3a09dfe810 100644
>> --- a/gcc/config.gcc
>> +++ b/gcc/config.gcc
>> @@ -2866,6 +2866,11 @@ or1k*-*-*)
>> done
>> TM_MULTILIB_CONFIG=`echo $TM_MULTILIB_CONFIG | sed 's/^,//'`
>>
>> + case ${target} in
>> + or1k*le*-*)
>
> Should this be just or1kle*-*?
I wasn't sure what the order of "le" and "nd" would be if both were present.
>> + tm_defines="${tm_defines} TARGET_LITTLE_ENDIAN_DEFAULT=1"
>> + ;;
>> + esac
>> case ${target} in
>> or1k*-*-linux*)
>> tm_file="${tm_file} gnu-user.h linux.h glibc-stdint.h"
>
>
>> diff --git a/gcc/config/or1k/or1k.opt b/gcc/config/or1k/or1k.opt
>> index 8a66832a99b1..497f259faae9 100644
>> --- a/gcc/config/or1k/or1k.opt
>> +++ b/gcc/config/or1k/or1k.opt
>> @@ -24,6 +24,14 @@
>> HeaderInclude
>> config/or1k/or1k-opts.h
>>
>> +mbig-endian
>> +Target Report RejectNegative Mask(BIG_ENDIAN)
>> +Use big-endian byte order.
>> +
>> +mlittle-endian
>> +Target Report RejectNegative InverseMask(BIG_ENDIAN, LITTLE_ENDIAN)
>> +Use little-endian byte order.
>> +
>
> We should explain what is the default int he doc's.
>
> Can you also document in: gcc/doc/invoke.texi
Yes, I will do that for v2.
Regards,
Samuel