summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorph10 <ph10@2f5784b3-3f2a-0410-8824-cb99058d5e15>2019-04-20 15:06:04 +0000
committerph10 <ph10@2f5784b3-3f2a-0410-8824-cb99058d5e15>2019-04-20 15:06:04 +0000
commit12b770c9c2b337be8edd049d963d737084a96649 (patch)
tree343c81ccf05877a9effed2b8e080f8e99b3cf86b
parenta8831f597be23e0f3604055c06962e919f8cfd7e (diff)
downloadpcre-12b770c9c2b337be8edd049d963d737084a96649.tar.gz
Fix lcc compiler issue.
git-svn-id: svn://vcs.exim.org/pcre/code/trunk@1752 2f5784b3-3f2a-0410-8824-cb99058d5e15
-rw-r--r--ChangeLog6
-rw-r--r--pcrecpp.cc3
2 files changed, 8 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 4cae656..3056d71 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -12,6 +12,12 @@ Version 8.44-RC1 01 March-2019
source directory wasn't in the search path for AC_TRY_COMPILE always. Patch
from Ross Burton.
+2. Applied a patch from Michael Shigorin to fix 8.43 build on e2k arch
+with lcc compiler (EDG frontend based); the problem it fixes is:
+
+ lcc: "pcrecpp.cc", line 74: error: declaration aliased to undefined entity
+ "_ZN7pcrecpp2RE6no_argE" [-Werror]
+
Version 8.43 23-February-2019
-----------------------------
diff --git a/pcrecpp.cc b/pcrecpp.cc
index 77a2fed..6a3eff8 100644
--- a/pcrecpp.cc
+++ b/pcrecpp.cc
@@ -66,7 +66,8 @@ Arg RE::no_arg((void*)NULL);
// inclusive test if we ever needed it. (Note that not only the
// __attribute__ syntax, but also __USER_LABEL_PREFIX__, are
// gnu-specific.)
-#if defined(__GNUC__) && __GNUC__ >= 3 && defined(__ELF__) && !defined(__INTEL_COMPILER)
+#if defined(__GNUC__) && __GNUC__ >= 3 && defined(__ELF__) \
+ && !defined(__INTEL_COMPILER) && !defined(__LCC__)
# define ULP_AS_STRING(x) ULP_AS_STRING_INTERNAL(x)
# define ULP_AS_STRING_INTERNAL(x) #x
# define USER_LABEL_PREFIX_STR ULP_AS_STRING(__USER_LABEL_PREFIX__)