aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'dev-lang/berkeley_upc_translator/files/berkeley_upc_translator-2.16.0-stackoverflow.patch')
-rw-r--r--dev-lang/berkeley_upc_translator/files/berkeley_upc_translator-2.16.0-stackoverflow.patch18
1 files changed, 18 insertions, 0 deletions
diff --git a/dev-lang/berkeley_upc_translator/files/berkeley_upc_translator-2.16.0-stackoverflow.patch b/dev-lang/berkeley_upc_translator/files/berkeley_upc_translator-2.16.0-stackoverflow.patch
new file mode 100644
index 000000000..44c6a8e78
--- /dev/null
+++ b/dev-lang/berkeley_upc_translator/files/berkeley_upc_translator-2.16.0-stackoverflow.patch
@@ -0,0 +1,18 @@
+Author: Paul H. Hargrove
+See https://upc-bugs.lbl.gov/bugzilla/show_bug.cgi?id=3141
+--- open64/osprey1.0/gccfe/tree_symtab.h
++++ open64/osprey1.0/gccfe/tree_symtab.h
+@@ -45,7 +45,12 @@
+ #include <set>
+ #include <upc_symtab_utils.h>
+
+-#define MAX_PATH 500
++#include <limits>
++#ifdef PATH_MAX
++ #define MAX_PATH PATH_MAX
++#else
++ #define MAX_PATH 4096
++#endif
+
+ extern int Scope_level;
+ extern int For_scope;