VirtualBox

Changeset 76375 in vbox for trunk/include/iprt/nocrt


Ignore:
Timestamp:
Dec 22, 2018 10:28:36 PM (6 years ago)
Author:
vboxsync
Message:

include/iprt/nocrt//fenv.h: Make recent gcc happy.

Location:
trunk/include/iprt/nocrt
Files:
3 added
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/iprt/nocrt/amd64/fenv.h

    r69475 r76375  
    110110#define __stmxcsr(__csr)        __asm __volatile("stmxcsr %0" : "=m" (*(__csr)))
    111111
     112#if RT_GNUC_PREREQ(4, 6)
     113# pragma GCC diagnostic push
     114# pragma GCC diagnostic ignored "-Wshadow"
     115#endif
     116
    112117DECLINLINE(int)
    113118feclearexcept(int __excepts)
     
    217222}
    218223
     224#if RT_GNUC_PREREQ(4, 6)
     225# pragma GCC diagnostic pop
     226#endif
     227
    219228RT_C_DECLS_END
    220229
  • trunk/include/iprt/nocrt/x86/fenv.h

    r69475 r76375  
    125125#define __fldcw(__cw)       __asm __volatile("fldcw %0" : : "m" (__cw))
    126126#define __fldenv(__env)     __asm __volatile("fldenv %0" : : "m" (__env))
    127 #define __fnclex()      __asm __volatile("fnclex")
     127#define __fnclex()          __asm __volatile("fnclex")
    128128#define __fnstenv(__env)    __asm __volatile("fnstenv %0" : "=m" (*(__env)))
    129129#define __fnstcw(__cw)      __asm __volatile("fnstcw %0" : "=m" (*(__cw)))
    130130#define __fnstsw(__sw)      __asm __volatile("fnstsw %0" : "=am" (*(__sw)))
    131 #define __fwait()       __asm __volatile("fwait")
     131#define __fwait()           __asm __volatile("fwait")
    132132#define __ldmxcsr(__csr)    __asm __volatile("ldmxcsr %0" : : "m" (__csr))
    133133#define __stmxcsr(__csr)    __asm __volatile("stmxcsr %0" : "=m" (*(__csr)))
     134
     135#if RT_GNUC_PREREQ(4, 6)
     136# pragma GCC diagnostic push
     137# pragma GCC diagnostic ignored "-Wshadow"
     138#endif
    134139
    135140DECLINLINE(int)
     
    255260    return (~__control & FE_ALL_EXCEPT);
    256261}
     262
     263#if RT_GNUC_PREREQ(4, 6)
     264# pragma GCC diagnostic pop
     265#endif
    257266
    258267RT_C_DECLS_END
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette