diff options
author | Nick Wellnhofer <wellnhofer@aevum.de> | 2022-02-20 18:46:42 +0100 |
---|---|---|
committer | Nick Wellnhofer <wellnhofer@aevum.de> | 2022-02-20 21:49:04 +0100 |
commit | 346c3a930c50b20d6f65dd7d751b8b7284582214 (patch) | |
tree | f023a227b6afc8b4fe45f98ff9e3300c6c334824 /doc | |
parent | ce0871e15cdb68e505ccd9d9c96ff8455ed936ab (diff) | |
download | libxml2-346c3a930c50b20d6f65dd7d751b8b7284582214.tar.gz |
Remove elfgcchack.h
The same optimization can be enabled with -fno-semantic-interposition
since GCC 5. clang has always used this option by default.
Diffstat (limited to 'doc')
-rw-r--r-- | doc/Makefile.am | 12 | ||||
-rwxr-xr-x | doc/apibuild.py | 1 | ||||
-rw-r--r-- | doc/elfgcchack.xsl | 160 |
3 files changed, 1 insertions, 172 deletions
diff --git a/doc/Makefile.am b/doc/Makefile.am index 473b549b..6caa8615 100644 --- a/doc/Makefile.am +++ b/doc/Makefile.am @@ -83,7 +83,6 @@ EXTRA_DIST = \ contribs.html \ docs.html \ downloads.html \ - elfgcchack.xsl \ encoding.html \ entities.html \ example.html \ @@ -237,19 +236,10 @@ man_MANS = xmllint.1 xmlcatalog.1 if REBUILD_DOCS docs: web $(top_builddir)/NEWS libxml2.xsa $(man_MANS) -api: libxml2-api.xml libxml2-refs.xml $(APIPAGES) $(srcdir)/html/index.html $(WIN32_DIR)/libxml2.def.src ../elfgcchack.h $(srcdir)/site.xsl +api: libxml2-api.xml libxml2-refs.xml $(APIPAGES) $(srcdir)/html/index.html $(WIN32_DIR)/libxml2.def.src $(srcdir)/site.xsl web: $(PAGES) xmllint.html xmlcatalog_man.html -../elfgcchack.h: $(srcdir)/elfgcchack.xsl $(srcdir)/libxml2-api.xml - -@(if [ -x $(XSLTPROC) ] ; then \ - echo "Rebuilding the elfgcchack.h header" ; \ - $(XSLTPROC) --nonet $(srcdir)/elfgcchack.xsl $(srcdir)/libxml2-api.xml > elfgcchack.h ; \ - if [ "`diff -q elfgcchack.h ../elfgcchack.h`" ] ; then \ - echo "updating ../elfgcchack.h"; \ - cp elfgcchack.h ../elfgcchack.h; \ - fi ; rm -f elfgcchack.h ; fi ); - $(PAGES): xml.html $(srcdir)/site.xsl -@(if [ -x $(XSLTPROC) ] ; then \ echo "Rebuilding the HTML Web pages from xml.html" ; \ diff --git a/doc/apibuild.py b/doc/apibuild.py index c8be0ee3..9ed1b33f 100755 --- a/doc/apibuild.py +++ b/doc/apibuild.py @@ -31,7 +31,6 @@ ignored_files = { "testOOMlib.c": "out of memory tester", "rngparser.c": "not yet integrated", "rngparser.h": "not yet integrated", - "elfgcchack.h": "not a normal header", "testHTML.c": "test tool", "testReader.c": "test tool", "testSchemas.c": "test tool", diff --git a/doc/elfgcchack.xsl b/doc/elfgcchack.xsl deleted file mode 100644 index 8dd5c6a7..00000000 --- a/doc/elfgcchack.xsl +++ /dev/null @@ -1,160 +0,0 @@ -<?xml version="1.0"?> -<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" - xmlns:xhtml="http://www.w3.org/1999/xhtml" - version="1.0"> - <xsl:output method="text" encoding="UTF-8"/> - - <xsl:template match="/"> - <xsl:text>/* - * elfgcchack.h: hack by Arjan van de Ven <arjanv@redhat.com> to speed - * up the code when using gcc for call within the library. - * - * Based on the analysis http://people.redhat.com/drepper/dsohowto.pdf - * from Ulrich drepper. Rewritten to be generated from the XML description - * file for libxml2 API - * autogenerated with xsltproc doc/elfgcchack.xsl doc/libxml2-api.xml - */ - -#ifdef IN_LIBXML -#ifdef __GNUC__ -#ifdef PIC -#ifdef __linux__ -#if (__GNUC__ == 3 && __GNUC_MINOR__ >= 3) || (__GNUC__ > 3) - -#include "libxml/c14n.h" -#include "libxml/catalog.h" -#include "libxml/chvalid.h" -#include "libxml/debugXML.h" -#include "libxml/dict.h" -#include "libxml/DOCBparser.h" -#include "libxml/encoding.h" -#include "libxml/entities.h" -#include "libxml/globals.h" -#include "libxml/hash.h" -#include "libxml/HTMLparser.h" -#include "libxml/HTMLtree.h" -#include "libxml/list.h" -#include "libxml/nanoftp.h" -#include "libxml/nanohttp.h" -#include "libxml/parser.h" -#include "libxml/parserInternals.h" -#include "libxml/pattern.h" -#include "libxml/relaxng.h" -#include "libxml/SAX2.h" -#include "libxml/SAX.h" -#include "libxml/schemasInternals.h" -#include "libxml/schematron.h" -#include "libxml/threads.h" -#include "libxml/tree.h" -#include "libxml/uri.h" -#include "libxml/valid.h" -#include "libxml/xinclude.h" -#include "libxml/xlink.h" -#include "libxml/xmlautomata.h" -#include "libxml/xmlerror.h" -#include "libxml/xmlexports.h" -#include "libxml/xmlIO.h" -#include "libxml/xmlmemory.h" -#include "libxml/xmlreader.h" -#include "libxml/xmlregexp.h" -#include "libxml/xmlsave.h" -#include "libxml/xmlschemas.h" -#include "libxml/xmlschemastypes.h" -#include "libxml/xmlstring.h" -#include "libxml/xmlunicode.h" -#include "libxml/xmlversion.h" -#include "libxml/xmlwriter.h" -#include "libxml/xpath.h" -#include "libxml/xpathInternals.h" -#include "libxml/xpointer.h" -#include "libxml/xmlmodule.h" - -/* special hot spot not exported ones */ - -#ifdef bottom_globals -#undef __xmlGenericError -extern __typeof (__xmlGenericError) __xmlGenericError __attribute((alias("__xmlGenericError__internal_alias"))); -#else -#ifndef __xmlGenericError -extern __typeof (__xmlGenericError) __xmlGenericError__internal_alias __attribute((visibility("hidden"))); -#define __xmlGenericError __xmlGenericError__internal_alias -#endif -#endif - -#ifdef bottom_globals -#undef __xmlGenericErrorContext -extern __typeof (__xmlGenericErrorContext) __xmlGenericErrorContext __attribute((alias("__xmlGenericErrorContext__internal_alias"))); -#else -#ifndef __xmlGenericErrorContext -extern __typeof (__xmlGenericErrorContext) __xmlGenericErrorContext__internal_alias __attribute((visibility("hidden"))); -#define __xmlGenericErrorContext __xmlGenericErrorContext__internal_alias -#endif -#endif - -/* list generated from libxml2-api.xml */ -</xsl:text> - <xsl:apply-templates select="/api/symbols/function"/> - <xsl:text> -#endif -#endif -#endif -#endif -#endif - -</xsl:text> - </xsl:template> - - <xsl:template match="function"> - <xsl:variable name="str" select="string(@name)"/> - <xsl:if test="(starts-with(@name, 'xml') or starts-with(@name, 'html') or contains(@name, 'Push') or contains(@name, 'Pop')) and (not(contains(@name, 'xmlDllMain')))"> - <xsl:variable name="alias" select="concat($str, '__internal_alias')"/> - <xsl:apply-templates select="cond"/> - <xsl:text>#ifdef bottom_</xsl:text> - <xsl:value-of select="string(@module)"/> - <xsl:text> -#undef </xsl:text> - <xsl:value-of select="$str"/> - <xsl:text> -extern __typeof (</xsl:text> - <xsl:value-of select="$str"/> - <xsl:text>) </xsl:text> - <xsl:value-of select="$str"/> - <xsl:text> __attribute((alias("</xsl:text> - <xsl:value-of select="$alias"/> - <xsl:text>"))); -#else -#ifndef </xsl:text> - <xsl:value-of select="$str"/> - <xsl:text> -</xsl:text> - <xsl:text>extern __typeof (</xsl:text> - <xsl:value-of select="$str"/> - <xsl:text>) </xsl:text> - <xsl:value-of select="$alias"/> - <xsl:text> __attribute((visibility("hidden"))); -</xsl:text> - <xsl:text>#define </xsl:text> - <xsl:value-of select="$str"/> - <xsl:text> </xsl:text> - <xsl:value-of select="$alias"/> - <xsl:text> -#endif -#endif -</xsl:text> - <xsl:apply-templates select="cond" mode="end"/> - <xsl:text> -</xsl:text> - </xsl:if> - </xsl:template> - <xsl:template match="cond"> - <xsl:text>#if </xsl:text> - <xsl:value-of select="."/> - <xsl:text> -</xsl:text> - </xsl:template> - <xsl:template match="cond" mode="end"> - <xsl:text>#endif -</xsl:text> - </xsl:template> -</xsl:stylesheet> - |