Fixed whole program (link-time) optimization build with Clang

This commit is contained in:
alexey.lysiuk 2014-08-03 12:20:30 +03:00
parent 39e2ebe425
commit 0a5dd94072
2 changed files with 4 additions and 4 deletions

View file

@ -52,7 +52,7 @@ class FScanner;
#define GCC_YSEG #define GCC_YSEG
#else #else
#define MSVC_YSEG #define MSVC_YSEG
#define GCC_YSEG __attribute__((section(SECTION_YREG))) #define GCC_YSEG __attribute__((section(SECTION_YREG))) __attribute__((used))
#endif #endif
struct FIntermissionDescriptor; struct FIntermissionDescriptor;

View file

@ -266,11 +266,11 @@ enum EDefinitionType
#define GCC_MSEG #define GCC_MSEG
#else #else
#define MSVC_ASEG #define MSVC_ASEG
#define GCC_ASEG __attribute__((section(SECTION_AREG))) #define GCC_ASEG __attribute__((section(SECTION_AREG))) __attribute__((used))
#define MSVC_PSEG #define MSVC_PSEG
#define GCC_PSEG __attribute__((section(SECTION_GREG))) #define GCC_PSEG __attribute__((section(SECTION_GREG))) __attribute__((used))
#define MSVC_MSEG #define MSVC_MSEG
#define GCC_MSEG __attribute__((section(SECTION_MREG))) #define GCC_MSEG __attribute__((section(SECTION_MREG))) __attribute__((used))
#endif #endif