Pedro,

The commit described below moves the _M_ARM definitions from gcc
internals into an include file.

For the _M_ARM, this is clearly something that needed to be done : its
value depends on it, you cannot do this easily in the gcc internals.

I am wondering why we would need to do this for the ARM macro though.

The downside of this is that some sources need to either include winnt.h
or implement the same processing, none of which seems necessary.

My feeling is to move the definition of ARM back into the gcc config,
but maybe I'm missing something ?

        Danny

On Sun, 2006-11-12 at 10:22 -0800, [EMAIL PROTECTED]
wrote:
> Revision: 793
>           http://svn.sourceforge.net/cegcc/?rev=793&view=rev
> Author:   pedroalves
> Date:     2006-11-12 10:22:09 -0800 (Sun, 12 Nov 2006)
> 
> Log Message:
> -----------
>       * include/winnt.h (_M_ARM, ARM): Translate from gcc target defines.
> 
> Modified Paths:
> --------------
>     trunk/cegcc/src/w32api/ChangeLog.ce
>     trunk/cegcc/src/w32api/include/winnt.h
> 
> Modified: trunk/cegcc/src/w32api/ChangeLog.ce
> ===================================================================
> --- trunk/cegcc/src/w32api/ChangeLog.ce       2006-11-12 18:10:58 UTC (rev 
> 792)
> +++ trunk/cegcc/src/w32api/ChangeLog.ce       2006-11-12 18:22:09 UTC (rev 
> 793)
> @@ -1,3 +1,7 @@
> +2006-11-12  Pedro Alves  <[EMAIL PROTECTED]>
> +
> +     * include/winnt.h (_M_ARM, ARM): Translate from gcc target defines.
> +
>  2006-11-11  Danny Backx <[EMAIL PROTECTED]>
>  
>       * include/aygshell.h (WC_SIPPREF): Define.
> 
> Modified: trunk/cegcc/src/w32api/include/winnt.h
> ===================================================================
> --- trunk/cegcc/src/w32api/include/winnt.h    2006-11-12 18:10:58 UTC (rev 
> 792)
> +++ trunk/cegcc/src/w32api/include/winnt.h    2006-11-12 18:22:09 UTC (rev 
> 793)
> @@ -15,6 +15,30 @@
>  #elif defined(__i386__) && !defined(_M_IX86)
>  #define _M_IX86 300
>  #endif
> +
> +#if !defined(_M_ARM)
> +#if defined (__ARM_ARCH_4__) || defined (__ARM_ARCH_4T__)
> +#define _M_ARM 4
> +#elif defined (__ARM_ARCH_5__) || defined (__ARM_ARCH_5T__) \
> +   || defined (__ARM_ARCH_5TE__) || defined (__ARM_ARCH_5TEJ__)
> +#define _M_ARM 5
> +#elif defined (__ARM_ARCH_6J__) || defined (__ARM_ARCH_6ZK__) \
> +   || defined (__ARM_ARCH_6K__)
> +#define _M_ARM 6
> +#endif
> +#endif /* !defined(_M_ARM) */
> +
> +#if !defined(_M_ARMT)
> +#if defined (__ARM_ARCH_4T__)
> +#define _M_ARMT 4
> +#elif defined (__ARM_ARCH_5T__) || defined (__ARM_ARCH_5TE__) || defined 
> (__ARM_ARCH_5TEJ__)
> +#define _M_ARMT 5
> +#elif defined (__ARM_ARCH_6J__) || defined (__ARM_ARCH_6ZK__) \
> +   || defined (__ARM_ARCH_6K__)
> +#define _M_ARMT 6
> +#endif
> +#endif /* !defined(_M_ARMT) */
> +
>  #if defined(_M_IX86) && !defined(_X86_)
>  #define _X86_
>  #elif defined(_M_ALPHA) && !defined(_ALPHA_)
> @@ -25,6 +49,8 @@
>  #define _MIPS_
>  #elif defined(_M_M68K) && !defined(_68K_)
>  #define _68K_
> +#elif defined(_M_ARM) && !defined(ARM)
> +#define ARM
>  #endif
>  
>  #ifdef __cplusplus
> 
> 
> This was sent by the SourceForge.net collaborative development platform, the 
> world's largest Open Source development site.
> 
> -------------------------------------------------------------------------
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> _______________________________________________
> Cegcc-svn mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/cegcc-svn
-- 
Danny Backx ; danny.backx - at - scarlet.be ; http://danny.backx.info

Attachment: signature.asc
Description: This is a digitally signed message part

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Cegcc-devel mailing list
Cegcc-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cegcc-devel

Reply via email to