Most if not all actual sh2 hardware is big-endian, but since sh4-linux was originally little-endian, the convention gcc uses is that sh*-linux is considered little-endian unless there's a suffix to override it. Thus it's presently impossible to get a big-endian sh2-linux configuration. Reportedly passing sh2eb as the target worked at some point in the past (gcc 4.2 era?) but was later broken. This patch fixes it.
Rich
--- gcc-5.2.0.orig/config.sub +++ gcc-5.2.0/config.sub @@ -305,7 +305,7 @@ | riscv32 | riscv64 \ | rl78 | rx \ | score \ - | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \ + | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[1234]eb | sheb | shbe | shle | sh[1234]le | sh3ele \ | sh64 | sh64le \ | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \ | sparcv8 | sparcv9 | sparcv9b | sparcv9v \
_______________________________________________ config-patches mailing list config-patches@gnu.org https://lists.gnu.org/mailman/listinfo/config-patches