[Pcre-svn] [1752] code/trunk: Fix lcc compiler issue.

Página superior
Eliminar este mensaje
Autor: Subversion repository
Fecha:  
A: pcre-svn
Asunto: [Pcre-svn] [1752] code/trunk: Fix lcc compiler issue.
Revision: 1752
          http://vcs.pcre.org/viewvc?view=rev&revision=1752
Author:   ph10
Date:     2019-04-20 16:06:04 +0100 (Sat, 20 Apr 2019)
Log Message:
-----------
Fix lcc compiler issue.


Modified Paths:
--------------
    code/trunk/ChangeLog
    code/trunk/pcrecpp.cc


Modified: code/trunk/ChangeLog
===================================================================
--- code/trunk/ChangeLog    2019-03-05 09:09:46 UTC (rev 1751)
+++ code/trunk/ChangeLog    2019-04-20 15:06:04 UTC (rev 1752)
@@ -12,7 +12,13 @@
 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
 -----------------------------



Modified: code/trunk/pcrecpp.cc
===================================================================
--- code/trunk/pcrecpp.cc    2019-03-05 09:09:46 UTC (rev 1751)
+++ code/trunk/pcrecpp.cc    2019-04-20 15:06:04 UTC (rev 1752)
@@ -66,7 +66,8 @@
 // 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__)