Hello community, here is the log from the commit of package CastXML for openSUSE:Factory checked in at 2020-08-29 20:33:11 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/CastXML (Old) and /work/SRC/openSUSE:Factory/.CastXML.new.3399 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "CastXML" Sat Aug 29 20:33:11 2020 rev:2 rq:829593 version:0.3.6 Changes: -------- --- /work/SRC/openSUSE:Factory/CastXML/CastXML.changes 2020-05-26 17:20:36.384140695 +0200 +++ /work/SRC/openSUSE:Factory/.CastXML.new.3399/CastXML.changes 2020-08-29 20:33:26.645240331 +0200 @@ -1,0 +2,18 @@ +Fri Aug 21 15:13:09 UTC 2020 - Atri Bhattacharya <[email protected]> + +- Update to version 0.3.6: + * Detect: Factor out check for compiler builtin headers into + helper function. + * Detect: Fix GNU builtin include directory detection on + aarch64. + +------------------------------------------------------------------- +Thu Aug 20 17:16:31 UTC 2020 - Atri Bhattacharya <[email protected]> + +- Update to version 0.3.5: + * Backport support for LLVM/Clang 11.0 to 0.3.x release series. + * Detect: Add support for aarch64 architecture in target triple. +- Fix builds for openSUSE <= 1500 by passing + CLANG_LINK_CLANG_DYLIB=ON for all oS versions. + +------------------------------------------------------------------- Old: ---- CastXML-0.3.4.tar.gz New: ---- CastXML-0.3.6.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ CastXML.spec ++++++ --- /var/tmp/diff_new_pack.vfHIRq/_old 2020-08-29 20:33:27.505240694 +0200 +++ /var/tmp/diff_new_pack.vfHIRq/_new 2020-08-29 20:33:27.505240694 +0200 @@ -17,7 +17,7 @@ Name: CastXML -Version: 0.3.4 +Version: 0.3.6 Release: 0 Summary: C-family Abstract Syntax Tree XML Output License: Apache-2.0 @@ -41,13 +41,9 @@ %setup -q %build -# FOR LLVM/CLANG >= 10 CLANG_LINK_CLANG_DYLIB NEEDS TO BE SET TO ON TO COMPILE -# AGAINST LLVM/CLAN DYNAMIC LIBS %cmake -DCastXML_INSTALL_MAN_DIR:PATH=%{_mandir} \ -DCastXML_INSTALL_DOC_DIR:PATH=%{_docdir}/%{name} \ -%if 0%{?suse_version} >= 1550 -DCLANG_LINK_CLANG_DYLIB:BOOL=ON \ -%endif -DSPHINX_HTML:BOOL=ON \ -DSPHINX_MAN:BOOL=ON ++++++ CastXML-0.3.4.tar.gz -> CastXML-0.3.6.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/CastXML-0.3.4/README.rst new/CastXML-0.3.6/README.rst --- old/CastXML-0.3.4/README.rst 2020-04-27 16:13:56.000000000 +0200 +++ new/CastXML-0.3.6/README.rst 2020-08-21 16:29:03.000000000 +0200 @@ -46,7 +46,8 @@ * `LLVM/Clang`_ compiler SDK install tree built using the C++ compiler. This version of CastXML has been tested with LLVM/Clang - - Git master as of 2020-02-13 (``6c73246179``) + - Release ``11.0`` + - Git master as of 2020-07-13 (``3d0b76022d``) - Release ``10.0`` - Release ``9.0`` - Release ``8.0`` diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/CastXML-0.3.4/src/Detect.cxx new/CastXML-0.3.6/src/Detect.cxx --- old/CastXML-0.3.4/src/Detect.cxx 2020-04-27 16:13:56.000000000 +0200 +++ new/CastXML-0.3.6/src/Detect.cxx 2020-08-21 16:29:03.000000000 +0200 @@ -91,6 +91,9 @@ } else if (pd.find("#define __i386__ 1") != pd.npos || pd.find("#define _M_IX86 ") != pd.npos) { triple.setArchName("i386"); + } else if (pd.find("#define __aarch64__ 1") != pd.npos || + pd.find("#define _M_ARM64 ") != pd.npos) { + triple.setArchName("aarch64"); } if (pd.find("#define _WIN32 1") != pd.npos) { triple.setVendorName("pc"); @@ -105,6 +108,16 @@ opts.Triple = triple.getTriple(); } +static bool isBuiltinIncludeDir(std::string const& inc) +{ + // FIXME: Intrinsics headers are platform-specific. + // Is there a better way to detect this directory? + return (llvm::sys::fs::exists(inc + "/emmintrin.h") // x86_64 + || llvm::sys::fs::exists(inc + "/altivec.h") // ppc64 + || llvm::sys::fs::exists(inc + "/arm_neon.h") // aarch64 + ); +} + static bool detectCC_GNU(const char* const* argBeg, const char* const* argEnd, Options& opts, const char* id, const char* ext) { @@ -146,11 +159,7 @@ fwImplicitSuffix)); } // Replace the compiler builtin include directory with ours. - if (!fw && - // FIXME: Intrinsics headers are platform-specific. - // Is there a better way to detect this directory? - (llvm::sys::fs::exists(inc + "/emmintrin.h") || - llvm::sys::fs::exists(inc + "/altivec.h"))) { + if (!fw && isBuiltinIncludeDir(inc)) { inc = getClangBuiltinIncludeDir(); } opts.Includes.push_back(Options::Include(inc, fw)); diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/CastXML-0.3.4/src/Output.cxx new/CastXML-0.3.6/src/Output.cxx --- old/CastXML-0.3.4/src/Output.cxx 2020-04-27 16:13:56.000000000 +0200 +++ new/CastXML-0.3.6/src/Output.cxx 2020-08-21 16:29:03.000000000 +0200 @@ -31,6 +31,8 @@ #include "clang/AST/Mangle.h" #include "clang/AST/PrettyPrinter.h" #include "clang/AST/RecordLayout.h" +#include "clang/Basic/FileManager.h" +#include "clang/Basic/SourceLocation.h" #include "clang/Basic/Specifiers.h" #include "clang/Basic/TargetInfo.h" #include "clang/Frontend/CompilerInstance.h" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/CastXML-0.3.4/src/Version.cmake new/CastXML-0.3.6/src/Version.cmake --- old/CastXML-0.3.4/src/Version.cmake 2020-04-27 16:13:56.000000000 +0200 +++ new/CastXML-0.3.6/src/Version.cmake 2020-08-21 16:29:03.000000000 +0200 @@ -1,7 +1,7 @@ # CastXML version number components. set(CastXML_VERSION_MAJOR 0) set(CastXML_VERSION_MINOR 3) -set(CastXML_VERSION_PATCH 4) +set(CastXML_VERSION_PATCH 6) set(CastXML_VERSION_RC 0) set(CastXML_VERSION_IS_DIRTY 0) @@ -13,7 +13,7 @@ endif() # If this source was exported by 'git archive', use its commit info. -set(git_info "3dc416a CastXML 0.3.4") +set(git_info "902ac16 CastXML 0.3.6") # Otherwise, try to identify the current development source version. if(NOT git_info MATCHES "^([0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f]?[0-9a-f]?)[0-9a-f]* " diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/CastXML-0.3.4/test/CMakeLists.txt new/CastXML-0.3.6/test/CMakeLists.txt --- old/CastXML-0.3.4/test/CMakeLists.txt 2020-04-27 16:13:56.000000000 +0200 +++ new/CastXML-0.3.6/test/CMakeLists.txt 2020-08-21 16:29:03.000000000 +0200 @@ -344,6 +344,7 @@ castxml_test_cmd(cc-gnu-src-c-E --castxml-cc-gnu $<TARGET_FILE:cc-gnu> ${empty_c} -E -dM) castxml_test_cmd(cc-gnu-src-cxx-E --castxml-cc-gnu $<TARGET_FILE:cc-gnu> ${empty_cxx} -E -dM) castxml_test_cmd(cc-gnu-src-cxx-cmd --castxml-cc-gnu $<TARGET_FILE:cc-gnu> ${empty_cxx} "-###") +castxml_test_cmd(cc-gnu-tgt-aarch64 --castxml-cc-gnu "(" $<TARGET_FILE:cc-gnu> --cc-define=__aarch64__ ")" ${empty_cxx} "-###") castxml_test_cmd(cc-gnu-tgt-amd64 --castxml-cc-gnu "(" $<TARGET_FILE:cc-gnu> --cc-define=__amd64__ ")" ${empty_cxx} "-###") castxml_test_cmd(cc-gnu-tgt-explicit --castxml-cc-gnu "(" $<TARGET_FILE:cc-gnu> ")" -target explicit-target-triple ${empty_cxx} "-###") castxml_test_cmd(cc-gnu-tgt-i386 --castxml-cc-gnu "(" $<TARGET_FILE:cc-gnu> --cc-define=__i386__ ")" ${empty_cxx} "-###") @@ -386,6 +387,7 @@ castxml_test_cmd(cc-msvc-src-c-E --castxml-cc-msvc $<TARGET_FILE:cc-msvc> ${empty_c} -E -dM) castxml_test_cmd(cc-msvc-src-cxx-E --castxml-cc-msvc $<TARGET_FILE:cc-msvc> ${empty_cxx} -E -dM) castxml_test_cmd(cc-msvc-src-cxx-cmd --castxml-cc-msvc $<TARGET_FILE:cc-msvc> ${empty_cxx} "-###") +castxml_test_cmd(cc-msvc-tgt-aarch64 --castxml-cc-msvc "(" $<TARGET_FILE:cc-msvc> --cc-define=_M_ARM64 ")" ${empty_cxx} "-###") castxml_test_cmd(cc-msvc-tgt-amd64 --castxml-cc-msvc "(" $<TARGET_FILE:cc-msvc> --cc-define=_M_AMD64 ")" ${empty_cxx} "-###") castxml_test_cmd(cc-msvc-tgt-explicit --castxml-cc-msvc "(" $<TARGET_FILE:cc-msvc> ")" -target explicit-target-triple ${empty_cxx} "-###") castxml_test_cmd(cc-msvc-tgt-i386 --castxml-cc-msvc "(" $<TARGET_FILE:cc-msvc> --cc-define=_M_IX86 ")" ${empty_cxx} "-###") diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/CastXML-0.3.4/test/expect/castxml1.any.Field.xml.txt new/CastXML-0.3.6/test/expect/castxml1.any.Field.xml.txt --- old/CastXML-0.3.4/test/expect/castxml1.any.Field.xml.txt 2020-04-27 16:13:56.000000000 +0200 +++ new/CastXML-0.3.6/test/expect/castxml1.any.Field.xml.txt 2020-08-21 16:29:03.000000000 +0200 @@ -4,14 +4,14 @@ <Field id="_3" name="field" type="_10" context="_1" access="private" location="f1:3" file="f1" line="3" offset="0"/> <Field id="_4" name="bit_field" type="_11" bits="2" context="_1" access="private" location="f1:4" file="f1" line="4" offset="32"/> <Field id="_5" name="mutable_field" type="_10" context="_1" access="private" location="f1:5" file="f1" line="5" offset="64" mutable="1"/> - <Constructor id="_6" name="start" context="_1" access="public" location="f1:1" file="f1" line="1" inline="1" artificial="1"( throw="")?> - <Argument type="_12" location="f1:1" file="f1" line="1"/> + <Constructor id="_6" name="start" context="_1" access="public" location="f1:7" file="f1" line="7"> + <Argument type="_12" location="f1:7" file="f1" line="7"/> </Constructor> - <OperatorMethod id="_7" name="=" returns="_13" context="_1" access="public" location="f1:1" file="f1" line="1" inline="1" artificial="1"( throw="")? mangled="[^"]+"> - <Argument type="_12" location="f1:1" file="f1" line="1"/> + <OperatorMethod id="_7" name="=" returns="_13" context="_1" access="public" location="f1:8" file="f1" line="8" mangled="[^"]+"> + <Argument type="_12" location="f1:8" file="f1" line="8"/> </OperatorMethod> - <Constructor id="_8" name="start" context="_1" access="public" location="f1:1" file="f1" line="1" inline="1" artificial="1"( throw="")?/> - <Destructor id="_9" name="start" context="_1" access="public" location="f1:1" file="f1" line="1" inline="1" artificial="1"( throw="")?/> + <Constructor id="_8" name="start" context="_1" access="public" location="f1:9" file="f1" line="9"/> + <Destructor id="_9" name="start" context="_1" access="public" location="f1:10" file="f1" line="10"/> <FundamentalType id="_10" name="int" size="[0-9]+" align="[0-9]+"/> <FundamentalType id="_11" name="unsigned int" size="[0-9]+" align="[0-9]+"/> <ReferenceType id="_12" type="_1c" size="[0-9]+" align="[0-9]+"/> diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/CastXML-0.3.4/test/expect/cmd.cc-gnu-tgt-aarch64.stderr.txt new/CastXML-0.3.6/test/expect/cmd.cc-gnu-tgt-aarch64.stderr.txt --- old/CastXML-0.3.4/test/expect/cmd.cc-gnu-tgt-aarch64.stderr.txt 1970-01-01 01:00:00.000000000 +0100 +++ new/CastXML-0.3.6/test/expect/cmd.cc-gnu-tgt-aarch64.stderr.txt 2020-08-21 16:29:03.000000000 +0200 @@ -0,0 +1,3 @@ +Target: aarch64-[^ +]+ +. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/CastXML-0.3.4/test/expect/cmd.cc-msvc-tgt-aarch64.stderr.txt new/CastXML-0.3.6/test/expect/cmd.cc-msvc-tgt-aarch64.stderr.txt --- old/CastXML-0.3.4/test/expect/cmd.cc-msvc-tgt-aarch64.stderr.txt 1970-01-01 01:00:00.000000000 +0100 +++ new/CastXML-0.3.6/test/expect/cmd.cc-msvc-tgt-aarch64.stderr.txt 2020-08-21 16:29:03.000000000 +0200 @@ -0,0 +1,4 @@ +Target: aarch64-[^ +]+-msvc[^ +]* +. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/CastXML-0.3.4/test/expect/gccxml.any.Field.xml.txt new/CastXML-0.3.6/test/expect/gccxml.any.Field.xml.txt --- old/CastXML-0.3.4/test/expect/gccxml.any.Field.xml.txt 2020-04-27 16:13:56.000000000 +0200 +++ new/CastXML-0.3.6/test/expect/gccxml.any.Field.xml.txt 2020-08-21 16:29:03.000000000 +0200 @@ -4,14 +4,14 @@ <Field id="_3" name="field" type="_10" context="_1" access="private" location="f1:3" file="f1" line="3" offset="0"/> <Field id="_4" name="bit_field" type="_11" bits="2" context="_1" access="private" location="f1:4" file="f1" line="4" offset="32"/> <Field id="_5" name="mutable_field" type="_10" context="_1" access="private" location="f1:5" file="f1" line="5" offset="64" mutable="1"/> - <Constructor id="_6" name="start" context="_1" access="public" location="f1:1" file="f1" line="1" inline="1" artificial="1"( throw="")?> - <Argument type="_12" location="f1:1" file="f1" line="1"/> + <Constructor id="_6" name="start" context="_1" access="public" location="f1:7" file="f1" line="7"> + <Argument type="_12" location="f1:7" file="f1" line="7"/> </Constructor> - <OperatorMethod id="_7" name="=" returns="_13" context="_1" access="public" location="f1:1" file="f1" line="1" inline="1" artificial="1"( throw="")? mangled="[^"]+"> - <Argument type="_12" location="f1:1" file="f1" line="1"/> + <OperatorMethod id="_7" name="=" returns="_13" context="_1" access="public" location="f1:8" file="f1" line="8" mangled="[^"]+"> + <Argument type="_12" location="f1:8" file="f1" line="8"/> </OperatorMethod> - <Constructor id="_8" name="start" context="_1" access="public" location="f1:1" file="f1" line="1" inline="1" artificial="1"( throw="")?/> - <Destructor id="_9" name="start" context="_1" access="public" location="f1:1" file="f1" line="1" inline="1" artificial="1"( throw="")?/> + <Constructor id="_8" name="start" context="_1" access="public" location="f1:9" file="f1" line="9"/> + <Destructor id="_9" name="start" context="_1" access="public" location="f1:10" file="f1" line="10"/> <FundamentalType id="_10" name="int" size="[0-9]+" align="[0-9]+"/> <FundamentalType id="_11" name="unsigned int" size="[0-9]+" align="[0-9]+"/> <ReferenceType id="_12" type="_1c" size="[0-9]+" align="[0-9]+"/> diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/CastXML-0.3.4/test/input/Field.cxx new/CastXML-0.3.6/test/input/Field.cxx --- old/CastXML-0.3.4/test/input/Field.cxx 2020-04-27 16:13:56.000000000 +0200 +++ new/CastXML-0.3.6/test/input/Field.cxx 2020-08-21 16:29:03.000000000 +0200 @@ -3,4 +3,9 @@ int field; unsigned bit_field : 2; mutable int mutable_field; +public: + start(start const&); + start& operator=(start const&); + start(); + ~start(); };
