[PATCH][ARM] Big Endian and Generic tuning

2011-10-25 Thread Andrew Stubbs
My recent patch to add -mcpu=generic-armv7-a omitted support for big endian. This patch should solve that. As far as I know the only this missing is the linker spec. (I have no big-endian targets to test with.) OK? Andrew 2011-10-25 Andrew Stubbs gcc/ * config/arm/bpabi.h (BE8_LINK_SPE

Re: [PATCH][ARM] Big Endian and Generic tuning

2011-10-25 Thread Richard Earnshaw
On 25/10/11 11:51, Andrew Stubbs wrote: > My recent patch to add -mcpu=generic-armv7-a omitted support for big > endian. This patch should solve that. > > As far as I know the only this missing is the linker spec. (I have no > big-endian targets to test with.) > > OK? > > Andrew > > > be.pat

Re: [PATCH][ARM] Big Endian and Generic tuning

2011-10-25 Thread Andrew Stubbs
On 25/10/11 13:19, Richard Earnshaw wrote: 2011-10-25 Andrew Stubbs gcc/ * config/arm/bpabi.h (BE8_LINK_SPEC): Recognize generic-armv7 tuning. --- a/gcc/config/arm/bpabi.h +++ b/gcc/config/arm/bpabi.h @@ -58,6 +58,7 @@ #define BE8_LINK_SPEC \ " %{mbig-endian:%{march=armv7

Re: [PATCH][ARM] Big Endian and Generic tuning

2011-10-25 Thread Richard Earnshaw
On 25/10/11 13:48, Andrew Stubbs wrote: > On 25/10/11 13:19, Richard Earnshaw wrote: >>> 2011-10-25 Andrew Stubbs >>> >>> gcc/ >>> * config/arm/bpabi.h (BE8_LINK_SPEC): Recognize generic-armv7 tuning. >>> >>> --- a/gcc/config/arm/bpabi.h >>> +++ b/gcc/config/arm/bpabi.h >>> @@ -58,6 +58,7

Re: [PATCH][ARM] Big Endian and Generic tuning

2011-10-26 Thread Andrew Stubbs
On 25/10/11 15:16, Richard Earnshaw wrote: The difficulty on R profile is that although BE-32 mode is obsolete, there is a config bit that can be set to make the CPU byte-swap the instruction stream to make it behave largely like it is running in BE-32 mode. I think really we should be pushing t

Re: [PATCH][ARM] Big Endian and Generic tuning

2011-10-26 Thread Richard Earnshaw
On 26/10/11 14:54, Andrew Stubbs wrote: > On 25/10/11 15:16, Richard Earnshaw wrote: >> The difficulty on R profile is that although BE-32 mode is obsolete, >> there is a config bit that can be set to make the CPU byte-swap the >> instruction stream to make it behave largely like it is running in B

Re: [PATCH][ARM] Big Endian and Generic tuning

2011-11-01 Thread Andrew Stubbs
On 26/10/11 10:15, Richard Earnshaw wrote: Here's an updated patch that makes no generalizations. OK? Yep Committed. Andrew