VirtualBox

Changeset 19600 in vbox for trunk/include/iprt


Ignore:
Timestamp:
May 12, 2009 10:08:12 AM (16 years ago)
Author:
vboxsync
Message:

GCC 4.3.3 workarounds for ASMAtomicCmpXchgU64 and ASMAtomicReadU64.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/iprt/asm.h

    r19524 r19600  
    118118 * of the compiler. */
    119119#ifdef __GNUC__
    120 # define RT_INLINE_ASM_GCC_4_3_3_X86 (__GNUC__ == 4 && __GNUC_MINOR__ == 1 && __GNUC_PATCHLEVEL__ == 3 && defined(__i386__))
     120# define RT_INLINE_ASM_GCC_4_3_3_X86 (__GNUC__ == 4 && __GNUC_MINOR__ == 3 && __GNUC_PATCHLEVEL__ == 3 && defined(__i386__))
    121121#endif
    122122#ifndef RT_INLINE_ASM_GCC_4_3_3_X86
     
    40244024 * @remark  This will fault if the memory is read-only!
    40254025 */
    4026 #if RT_INLINE_ASM_EXTERNAL && !defined(RT_ARCH_AMD64)
     4026#if (RT_INLINE_ASM_EXTERNAL && !defined(RT_ARCH_AMD64)) \
     4027 || (RT_INLINE_ASM_GCC_4_3_3_X86 && defined(IN_RING3) && defined(__PIC__))
    40274028DECLASM(uint64_t) ASMAtomicReadU64(volatile uint64_t *pu64);
    40284029#else
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