Advertisement
Guest User

Untitled

a guest
Jun 22nd, 2017
47
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 1.09 KB | None | 0 0
  1. #ifdef Q_CC_RVCT
  2. #define QT_BEGIN_COMPILE_AS_ARM \
  3.     _Pragma("push") \
  4.     _Pragma("arm")
  5. #define QT_END_COMPILE_AS_ARM \
  6.     _Pragma("pop")
  7. #else
  8. #define QT_BEGIN_COMPILE_AS_ARM
  9. #define QT_END_COMPILE_AS_ARM
  10. #endif
  11.  
  12. #if defined(QT_MAKEDLL) && (defined(__TARGET_FPU_SOFTVFP_VFPV2) || defined(__TARGET_FPU_SOFTVFP_VFPV3)) && defined(Q_CC_RVCT)
  13. // Save our pragma state and switch to ARM mode
  14. #  if __ARMCC_VERSION < 400000
  15. #    define QT_BEGIN_COMPILE_AS_ARM_IF_VFP \
  16.                 _Pragma("push") \
  17.                 // Bug in RVCT 2.2 that causes armcc segmentation fault
  18.                 // if no_exceptions_unwind is used with softvfp+vfpv2
  19.                 _Pragma("no_exceptions_unwind") \
  20.                 QT_BEGIN_COMPILE_AS_ARM
  21. #    define QT_END_COMPILE_AS_ARM_IF_VFP \
  22.                 QT_END_COMPILE_AS_ARM \
  23.                 _Pragma("pop")
  24. #  else
  25. #    define QT_BEGIN_COMPILE_AS_ARM_IF_VFP QT_BEGIN_COMPILE_AS_ARM
  26. #    define QT_END_COMPILE_AS_ARM_IF_VFP QT_END_COMPILE_AS_ARM
  27. #  endif
  28. #else
  29. #  define QT_BEGIN_COMPILE_AS_ARM_IF_VFP
  30. #  define QT_END_COMPILE_AS_ARM_IF_VFP
  31. #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement