summaryrefslogtreecommitdiff
path: root/editors/TeXmacs
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2012-11-16 20:09:47 +0000
committerjoerg <joerg@pkgsrc.org>2012-11-16 20:09:47 +0000
commitad88ba6576f71ea91a64c0389539e97a09d7962d (patch)
treeab25b74d6f5fb13bd9714683d9ebc8e3c4e73946 /editors/TeXmacs
parent5e04a50773dcbdcfa786b22f50a1ad85fd427926 (diff)
downloadpkgsrc-ad88ba6576f71ea91a64c0389539e97a09d7962d.tar.gz
Don't allocate variable length arrays of non-POD types on the stack for
clang.
Diffstat (limited to 'editors/TeXmacs')
-rw-r--r--editors/TeXmacs/distinfo3
-rw-r--r--editors/TeXmacs/patches/patch-src_Kernel_Abstractions_basic.hpp13
2 files changed, 15 insertions, 1 deletions
diff --git a/editors/TeXmacs/distinfo b/editors/TeXmacs/distinfo
index bef7461fc9c..d44b1b9d8ae 100644
--- a/editors/TeXmacs/distinfo
+++ b/editors/TeXmacs/distinfo
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.61 2011/01/03 18:20:17 drochner Exp $
+$NetBSD: distinfo,v 1.62 2012/11/16 20:09:47 joerg Exp $
SHA1 (TeXmacs-1.0.6.15-src.tar.gz) = bd11a9176c7a3627322a374cd27d5eecfcd2527f
RMD160 (TeXmacs-1.0.6.15-src.tar.gz) = 97388fd96f110bd97ff5386e50b37530c24822ee
@@ -13,3 +13,4 @@ SHA1 (patch-ai) = 98a4a51a3bd7778f16008b243802385e264b965d
SHA1 (patch-aj) = 8f07479a6857900b535a0fd7b1f61043164baf15
SHA1 (patch-ak) = dede7b76bac02e1a6395a7cb698990e385edebc8
SHA1 (patch-al) = f7deed3d692af322aebe1a4068dfd3bde9e87a0a
+SHA1 (patch-src_Kernel_Abstractions_basic.hpp) = f7987b901d6b2524f086660da6e3a7836b16f557
diff --git a/editors/TeXmacs/patches/patch-src_Kernel_Abstractions_basic.hpp b/editors/TeXmacs/patches/patch-src_Kernel_Abstractions_basic.hpp
new file mode 100644
index 00000000000..93308738c3b
--- /dev/null
+++ b/editors/TeXmacs/patches/patch-src_Kernel_Abstractions_basic.hpp
@@ -0,0 +1,13 @@
+$NetBSD: patch-src_Kernel_Abstractions_basic.hpp,v 1.1 2012/11/16 20:09:47 joerg Exp $
+
+--- src/Kernel/Abstractions/basic.hpp.orig 2012-11-16 12:54:48.000000000 +0000
++++ src/Kernel/Abstractions/basic.hpp
+@@ -69,7 +69,7 @@ void operator delete[] (register void*
+ int mem_used ();
+ void mem_info ();
+
+-#if (defined OS_WIN32 || defined __SUNPRO_CC)
++#if (defined OS_WIN32 || defined __SUNPRO_CC) || defined(__clang__)
+ #define STACK_NEW_ARRAY(name,T,size) T* name= new T[size]
+ #define STACK_DELETE_ARRAY(name) delete[] name
+ #else