File: hppa_stackbase.diff

package info (click to toggle)
qtscript-opensource-src 5.11.3%2Bdfsg-3
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 28,872 kB
  • sloc: cpp: 163,657; yacc: 1,768; ansic: 1,718; perl: 425; sh: 169; python: 55; makefile: 24
file content (20 lines) | stat: -rw-r--r-- 653 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
Description: fix stack base detection on hppa
Author: John David Anglin <dave.anglin@bell.net>
Forwarded: not-yet
Last-Update: 2018-12-18

--- a/src/3rdparty/javascriptcore/JavaScriptCore/runtime/Collector.cpp
+++ b/src/3rdparty/javascriptcore/JavaScriptCore/runtime/Collector.cpp
@@ -672,7 +672,12 @@ static inline void* currentThreadStackBa
         pthread_attr_destroy(&sattr);
         stackThread = thread;
     }
+#if defined(__hppa__)
+    // Stack grows up.
+    return static_cast<char*>(stackBase);
+#else
     return static_cast<char*>(stackBase) + stackSize;
+#endif
 #else
 #error Need a way to get the stack base on this platform
 #endif