This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Fwd: __ARM_ARCH_2__
- From: Andrew Haley <aph at redhat dot com>
- To: zhaobin xv <xvzhaobin at gmail dot com>
- Cc: gcc-help at gcc dot gnu dot org
- Date: Thu, 08 Aug 2013 10:39:20 +0100
- Subject: Re: Fwd: __ARM_ARCH_2__
- References: <CANEcUBX5RvrUEkC2iFZ9ZbvUEkDr4U3F+9v3QKiL_s675MNnwA at mail dot gmail dot com> <5203632d dot c25d0e0a dot 099a dot ffffedaaSMTPIN_ADDED_BROKEN at mx dot google dot com> <CANEcUBU0KGifh91nB9VEvXBUxgk081uw-=Q-ntLPS6V=EtvxaQ at mail dot gmail dot com> <CANEcUBXV8Zsu6zRqwXpyYdQBFauFKNV7Tbz4WWe6J790jTvhJw at mail dot gmail dot com>
On 08/08/2013 10:37 AM, zhaobin xv wrote:
> Thank you for your answer
> if __ARM_ARCH_2__ is defined by GCC when compiling for the ARMv2
> architecture,how do gcc know the architecture is ARMv2?
>
> and I can't find thing about __ARM_ARCH_2__ in gcc manual,could you
> tell me where I can find
Please don't top-post on gcc-help.
GCC doesn't know the architecture is ARMv2.
If the architecture is not ARMv2, you must use the correct arch
arguments to GCC. This is in the manual.
Andrew.