From 91a60c9e8f1ec3d2eec736ee23ba01e1b9389175 Mon Sep 17 00:00:00 2001 From: ironhead Date: Sat, 18 Jul 2009 15:09:18 +0000 Subject: [PATCH] 2009-07-18 Gregory McGarry * CRT_fp8.c: Add PCC alternative to GCC-specific constructs. * CRT_fp10.c: Ditto. --- winsup/mingw/CRT_fp10.c | 4 ++++ winsup/mingw/CRT_fp8.c | 4 ++++ winsup/mingw/ChangeLog | 5 +++++ 3 files changed, 13 insertions(+) diff --git a/winsup/mingw/CRT_fp10.c b/winsup/mingw/CRT_fp10.c index a13fb0096b..516c86c4aa 100644 --- a/winsup/mingw/CRT_fp10.c +++ b/winsup/mingw/CRT_fp10.c @@ -13,4 +13,8 @@ void _fpreset (void) { __asm__ ( "fninit" ) ;} +#if defined(__PCC__) +void _Pragma("alias _fpreset") fpreset(void); +#else void __attribute__ ((alias ("_fpreset"))) fpreset(void); +#endif diff --git a/winsup/mingw/CRT_fp8.c b/winsup/mingw/CRT_fp8.c index d772d759a2..e9cfbadf6a 100644 --- a/winsup/mingw/CRT_fp8.c +++ b/winsup/mingw/CRT_fp8.c @@ -15,4 +15,8 @@ extern void (*_imp___fpreset)(void) ; void _fpreset (void) { (*_imp___fpreset)(); } +#if defined(__PCC__) +void _Pragma("alias _fpreset") fpreset(void); +#else void __attribute__ ((alias ("_fpreset"))) fpreset(void); +#endif diff --git a/winsup/mingw/ChangeLog b/winsup/mingw/ChangeLog index 6cebfaa6d5..0ab0dc3062 100644 --- a/winsup/mingw/ChangeLog +++ b/winsup/mingw/ChangeLog @@ -1,5 +1,10 @@ 2009-07-18 Gregory McGarry + * CRT_fp8.c: Add PCC alternative to GCC-specific constructs. + * CRT_fp10.c: Ditto. + +2009-07-18 Gregory McGarry + * cpu_features.c: replace gcc-specific construct with portable alternative and match the code a few lines above. * crt1.c: remove gcc-specific noreturn attribute with mingw alternative -- 2.11.0