Skip to content

Commit 49e2cbd

Browse files
2011-04-15 Fridrich Strba <fridrich.strba@bluewin.ch>
Reviewed by Gavin Barraclough. Correctly prefix symbols. Since gcc 4.5.0, Windows x64 symbols are not prefixed by underscore anymore. This is consistent with what MSVC does. https://bugs.webkit.org/show_bug.cgi?id=58573 * jit/JITStubs.cpp: Canonical link: https://commits.webkit.org/73789@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@84048 268f45cc-cd09-0410-ab3c-d52691b4dbfc
1 parent 997ab2c commit 49e2cbd

2 files changed

Lines changed: 13 additions & 2 deletions

File tree

Source/JavaScriptCore/ChangeLog

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
1+
2011-04-15 Fridrich Strba <fridrich.strba@bluewin.ch>
2+
3+
Reviewed by Gavin Barraclough.
4+
5+
Correctly prefix symbols. Since gcc 4.5.0, Windows x64 symbols
6+
are not prefixed by underscore anymore. This is consistent with
7+
what MSVC does.
8+
https://bugs.webkit.org/show_bug.cgi?id=58573
9+
10+
* jit/JITStubs.cpp:
11+
112
2011-04-15 Gavin Barraclough <barraclough@apple.com>
213

314
Reviewed by Geoff Garen.

Source/JavaScriptCore/jit/JITStubs.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ using namespace std;
6767

6868
namespace JSC {
6969

70-
#if OS(DARWIN) || OS(WINDOWS)
70+
#if OS(DARWIN) || (OS(WINDOWS) && CPU(X86))
7171
#define SYMBOL_STRING(name) "_" #name
7272
#else
7373
#define SYMBOL_STRING(name) #name
@@ -81,7 +81,7 @@ namespace JSC {
8181

8282
#if (OS(LINUX) || OS(FREEBSD)) && CPU(X86_64)
8383
#define SYMBOL_STRING_RELOCATION(name) #name "@plt"
84-
#elif OS(DARWIN)
84+
#elif OS(DARWIN) || (CPU(X86_64) && COMPILER(MINGW) && !GCC_VERSION_AT_LEAST(4, 5, 0))
8585
#define SYMBOL_STRING_RELOCATION(name) "_" #name
8686
#elif CPU(X86) && COMPILER(MINGW)
8787
#define SYMBOL_STRING_RELOCATION(name) "@" #name "@4"

0 commit comments

Comments
 (0)