mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-16 00:54:54 +00:00
* Workaround: Implement noinline attributes for problematic functions in str.cpp due to what appears to be GCC compiler bugs.
This commit is contained in:
parent
09272e0e63
commit
1b55dce613
3 changed files with 7 additions and 2 deletions
|
|
@ -284,8 +284,8 @@ class String::StringData : protected StringDataImpl
|
||||||
delete [] mUTF16;
|
delete [] mUTF16;
|
||||||
}
|
}
|
||||||
|
|
||||||
void* operator new(size_t size, U32 len);
|
void* TORQUE_NOINLINE operator new(size_t size, U32 len);
|
||||||
void* operator new( size_t size, U32 len, DataChunker& chunker );
|
void* TORQUE_NOINLINE operator new( size_t size, U32 len, DataChunker& chunker );
|
||||||
void operator delete(void *);
|
void operator delete(void *);
|
||||||
|
|
||||||
bool isShared() const
|
bool isShared() const
|
||||||
|
|
|
||||||
|
|
@ -165,5 +165,8 @@ typedef unsigned long U64;
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
// Set GCC noinline
|
||||||
|
#define TORQUE_NOINLINE __attribute__ ((noinline))
|
||||||
|
|
||||||
#endif // INCLUDED_TYPES_GCC_H
|
#endif // INCLUDED_TYPES_GCC_H
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -104,6 +104,8 @@ typedef unsigned _int64 U64;
|
||||||
// see msdn.microsoft.com "Compiler Warning (level 1) C4291" for more details
|
// see msdn.microsoft.com "Compiler Warning (level 1) C4291" for more details
|
||||||
#pragma warning(disable: 4291)
|
#pragma warning(disable: 4291)
|
||||||
|
|
||||||
|
// Set MSVC noline attribute
|
||||||
|
#define TORQUE_NOINLINE __declspec(noinline)
|
||||||
|
|
||||||
#endif // INCLUDED_TYPES_VISUALC_H
|
#endif // INCLUDED_TYPES_VISUALC_H
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue