| 1 | Descriptionscip-debian debian qtscript-opensource-src 5.15.19+dfsg-2 qtscript-opensource-src/patches/`hppa_stackbase.diff`#Description.: fix stack base detection on hppa |
| 2 | Authorscip-debian debian qtscript-opensource-src 5.15.19+dfsg-2 qtscript-opensource-src/patches/`hppa_stackbase.diff`#Author.: John David Anglin <[email protected]scip-debian . . . identity/`[email protected]`.> |
| 3 | Forwardedscip-debian debian qtscript-opensource-src 5.15.19+dfsg-2 qtscript-opensource-src/patches/`hppa_stackbase.diff`#Forwarded.: not-yet |
| 4 | Last-Updatescip-debian debian qtscript-opensource-src 5.15.19+dfsg-2 qtscript-opensource-src/patches/`hppa_stackbase.diff`#Last-Update.: 2018-12-18 |
| 5 | |
| 6 | --- a/src/3rdparty/javascriptcore/JavaScriptCore/runtime/Collector.cppscip-debian debian qtscript-opensource-src 5.15.19+dfsg-2 qtscript-opensource-src/upstream/`src/3rdparty/javascriptcore/JavaScriptCore/runtime/Collector.cpp`: |
| 7 | +++ b/src/3rdparty/javascriptcore/JavaScriptCore/runtime/Collector.cppscip-debian debian qtscript-opensource-src 5.15.19+dfsg-2 qtscript-opensource-src/upstream/`src/3rdparty/javascriptcore/JavaScriptCore/runtime/Collector.cpp`: |
| 8 | @@ -672,7 +672,12 @@ static inline void* currentThreadStackBa |
| 9 | pthread_attr_destroy(&sattr); |
| 10 | stackThread = thread; |
| 11 | } |
| 12 | +#if defined(__hppa__) |
| 13 | + // Stack grows up. |
| 14 | + return static_cast<char*>(stackBase); |
| 15 | +#else |
| 16 | return static_cast<char*>(stackBase) + stackSize; |
| 17 | +#endif |
| 18 | #else |
| 19 | #error Need a way to get the stack base on this platform |
| 20 | #endif |