[packages] upx: add support for avr32 (closes: #7009)
[openwrt/svn-archive/archive.git] / utils / upx / patches / 101-avr32.patch
1 --- a/src/miniacc.h
2 +++ b/src/miniacc.h
3 @@ -756,6 +756,9 @@
4 #elif (UINT_MAX <= ACC_0xffffL) && defined(__AVR__)
5 # define ACC_ARCH_AVR 1
6 # define ACC_INFO_ARCH "avr"
7 +#elif defined(__avr32__)
8 +# define ACC_ARCH_AVR32 1
9 +# define ACC_INFO_ARCH "avr32"
10 #elif defined(__bfin__)
11 # define ACC_ARCH_BLACKFIN 1
12 # define ACC_INFO_ARCH "blackfin"
13 @@ -1316,7 +1319,7 @@ extern "C" {
14 # define ACC_ABI_BIG_ENDIAN 1
15 #elif (ACC_ARCH_ALPHA || ACC_ARCH_AMD64 || ACC_ARCH_BLACKFIN || ACC_ARCH_CRIS || ACC_ARCH_I086 || ACC_ARCH_I386 || ACC_ARCH_MSP430)
16 # define ACC_ABI_LITTLE_ENDIAN 1
17 -#elif (ACC_ARCH_M68K || ACC_ARCH_S390)
18 +#elif (ACC_ARCH_AVR32 || ACC_ARCH_M68K || ACC_ARCH_S390)
19 # define ACC_ABI_BIG_ENDIAN 1
20 #elif 1 && defined(__IAR_SYSTEMS_ICC__) && defined(__LITTLE_ENDIAN__)
21 # if (__LITTLE_ENDIAN__ == 1)