Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package CastXML for openSUSE:Factory checked in at 2021-10-27 22:21:22 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/CastXML (Old) and /work/SRC/openSUSE:Factory/.CastXML.new.1890 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "CastXML" Wed Oct 27 22:21:22 2021 rev:6 rq:927810 version:0.4.4 Changes: -------- --- /work/SRC/openSUSE:Factory/CastXML/CastXML.changes 2021-03-05 13:51:07.959944155 +0100 +++ /work/SRC/openSUSE:Factory/.CastXML.new.1890/CastXML.changes 2021-10-27 22:21:43.751214760 +0200 @@ -1,0 +2,8 @@ +Tue Oct 26 11:45:37 UTC 2021 - Atri Bhattacharya <[email protected]> + +- Update to version 0.4.4: + * RunClang: Tolerate GNU __attribute__((__malloc__)) with + arguments [gh#CastXML/CastXML#204]. + * Test: Updates for LLVM/Clang 13.0. + +------------------------------------------------------------------- Old: ---- CastXML-0.4.3.tar.gz New: ---- CastXML-0.4.4.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ CastXML.spec ++++++ --- /var/tmp/diff_new_pack.kjlxD6/_old 2021-10-27 22:21:44.087214933 +0200 +++ /var/tmp/diff_new_pack.kjlxD6/_new 2021-10-27 22:21:44.087214933 +0200 @@ -17,7 +17,7 @@ Name: CastXML -Version: 0.4.3 +Version: 0.4.4 Release: 0 Summary: C-family Abstract Syntax Tree XML Output License: Apache-2.0 @@ -38,7 +38,7 @@ CastXML is a C-family abstract syntax tree XML output tool. %prep -%setup -q +%autosetup -p1 %build %cmake -DCastXML_INSTALL_MAN_DIR:PATH=%{_mandir} \ ++++++ CastXML-0.4.3.tar.gz -> CastXML-0.4.4.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/CastXML-0.4.3/README.rst new/CastXML-0.4.4/README.rst --- old/CastXML-0.4.3/README.rst 2021-03-03 19:15:49.000000000 +0100 +++ new/CastXML-0.4.4/README.rst 2021-10-25 22:44:07.000000000 +0200 @@ -54,8 +54,10 @@ * `LLVM/Clang`_ compiler SDK install tree built using the C++ compiler. This version of CastXML has been tested with LLVM/Clang + - Git ``main`` as of 2021-08-25 (``24201b6437``) + - Release ``13.0`` + - Release ``12.0`` - 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.4.3/src/RunClang.cxx new/CastXML-0.4.4/src/RunClang.cxx --- old/CastXML-0.4.3/src/RunClang.cxx 2021-03-03 19:15:49.000000000 +0100 +++ new/CastXML-0.4.4/src/RunClang.cxx 2021-10-25 22:44:07.000000000 +0200 @@ -368,6 +368,14 @@ "#define __NO_MATH_INLINES 1\n"; } + // Tolerate glibc use of a GNU extension not implemented by Clang. + if (this->NeedAttributeMallocArgs(this->Opts.Predefines)) { + // Clang does not support '__attribute__((__malloc__(args...)))' + // used in glibc 2.34+ headers. + builtins += "\n" + "#define __malloc__(...) __malloc__\n"; + } + } else { builtins += predefines.substr(start, end - start); } @@ -387,6 +395,11 @@ { return this->IsActualGNU(pd); } + + bool NeedAttributeMallocArgs(std::string const& pd) + { + return this->IsActualGNU(pd); + } bool NeedFloat128(std::string const& pd) const { diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/CastXML-0.4.3/src/Version.cmake new/CastXML-0.4.4/src/Version.cmake --- old/CastXML-0.4.3/src/Version.cmake 2021-03-03 19:15:49.000000000 +0100 +++ new/CastXML-0.4.4/src/Version.cmake 2021-10-25 22:44:07.000000000 +0200 @@ -1,7 +1,7 @@ # CastXML version number components. set(CastXML_VERSION_MAJOR 0) set(CastXML_VERSION_MINOR 4) -set(CastXML_VERSION_PATCH 3) +set(CastXML_VERSION_PATCH 4) 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 "333ed18 CastXML 0.4.3") +set(git_info "2095c10 CastXML 0.4.4") # 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.4.3/test/CMakeLists.txt new/CastXML-0.4.4/test/CMakeLists.txt --- old/CastXML-0.4.3/test/CMakeLists.txt 2021-03-03 19:15:49.000000000 +0100 +++ new/CastXML-0.4.4/test/CMakeLists.txt 2021-10-25 22:44:07.000000000 +0200 @@ -637,9 +637,11 @@ unset(castxml_test_output_extra_arguments) set(castxml_test_output_extra_arguments --castxml-cc-gnu-c $<TARGET_FILE:cc-gnu>) +castxml_test_output_c(GNU-attr-malloc-args) castxml_test_output_c(GNU-va_arg_pack) unset(castxml_test_output_extra_arguments) set(castxml_test_output_extra_arguments --castxml-cc-gnu $<TARGET_FILE:cc-gnu>) +castxml_test_output(GNU-attr-malloc-args) castxml_test_output(GNU-va_arg_pack) unset(castxml_test_output_extra_arguments) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/CastXML-0.4.3/test/expect/castxml1.any.GNU-attr-malloc-args.xml.txt new/CastXML-0.4.4/test/expect/castxml1.any.GNU-attr-malloc-args.xml.txt --- old/CastXML-0.4.3/test/expect/castxml1.any.GNU-attr-malloc-args.xml.txt 1970-01-01 01:00:00.000000000 +0100 +++ new/CastXML-0.4.4/test/expect/castxml1.any.GNU-attr-malloc-args.xml.txt 2021-10-25 22:44:07.000000000 +0200 @@ -0,0 +1,8 @@ +^<\?xml version="1.0"\?> +<CastXML[^>]*> + <Function id="_1" name="start" returns="_2" context="_3" location="f1:7" file="f1" line="7" mangled="[^"]+"/> + <PointerType id="_2" type="_4" size="[0-9]+" align="[0-9]+"/> + <Namespace id="_3" name="::"/> + <Struct id="_4" name="foo" context="_3" location="f1:1" file="f1" line="1" size="[0-9]+" align="[0-9]+"/> + <File id="f1" name=".*/test/input/GNU-attr-malloc-args.cxx"/> +</CastXML>$ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/CastXML-0.4.3/test/expect/castxml1.c.GNU-attr-malloc-args.xml.txt new/CastXML-0.4.4/test/expect/castxml1.c.GNU-attr-malloc-args.xml.txt --- old/CastXML-0.4.3/test/expect/castxml1.c.GNU-attr-malloc-args.xml.txt 1970-01-01 01:00:00.000000000 +0100 +++ new/CastXML-0.4.4/test/expect/castxml1.c.GNU-attr-malloc-args.xml.txt 2021-10-25 22:44:07.000000000 +0200 @@ -0,0 +1,10 @@ +^<\?xml version="1.0"\?> +<CastXML[^>]*> + <Function id="_1" name="start" returns="_2" context="_3" location="f1:7" file="f1" line="7" mangled="[^"]+"/> + <PointerType id="_2" type="_4" size="[0-9]+" align="[0-9]+"/> + <Namespace id="_3" name="::"/> + <Typedef id="_4" name="foo" type="_5" context="_3" location="f1:3" file="f1" line="3"/> + <ElaboratedType id="_5" type="_6"/> + <Struct id="_6" name="foo_s" context="_3" location="f1:1" file="f1" line="1" size="[0-9]+" align="[0-9]+"/> + <File id="f1" name=".*/test/input/GNU-attr-malloc-args.c"/> +</CastXML>$ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/CastXML-0.4.3/test/expect/cmd.cc-gnu-c-src-c-E.stdout.txt new/CastXML-0.4.4/test/expect/cmd.cc-gnu-c-src-c-E.stdout.txt --- old/CastXML-0.4.3/test/expect/cmd.cc-gnu-c-src-c-E.stdout.txt 2021-03-03 19:15:49.000000000 +0100 +++ new/CastXML-0.4.4/test/expect/cmd.cc-gnu-c-src-c-E.stdout.txt 2021-10-25 22:44:07.000000000 +0200 @@ -1,4 +1,5 @@ ^(#define _WIN32 1 +)?(#define __GCC_HAVE_DWARF2_CFI_ASM 1 )?#define __GNUC_MINOR__ 1 #define __GNUC__ 1( #define __MINGW32__ 1)? @@ -13,4 +14,5 @@ #define __castxml_clang_patchlevel__ [0-9]+ #define __castxml_major__ [0-9]+ #define __castxml_minor__ [0-9]+ -#define __castxml_patch__ [0-9]+$ +#define __castxml_patch__ [0-9]+( +#define __malloc__\(\.\.\.\) __malloc__)?$ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/CastXML-0.4.3/test/expect/cmd.cc-gnu-c-tgt-i386-opt-E.stdout.txt new/CastXML-0.4.4/test/expect/cmd.cc-gnu-c-tgt-i386-opt-E.stdout.txt --- old/CastXML-0.4.3/test/expect/cmd.cc-gnu-c-tgt-i386-opt-E.stdout.txt 2021-03-03 19:15:49.000000000 +0100 +++ new/CastXML-0.4.4/test/expect/cmd.cc-gnu-c-tgt-i386-opt-E.stdout.txt 2021-10-25 22:44:07.000000000 +0200 @@ -1,4 +1,5 @@ ^(#define _WIN32 1 +)?(#define __GCC_HAVE_DWARF2_CFI_ASM 1 )?#define __GNUC_MINOR__ 1 #define __GNUC__ 1( #define __MINGW32__ 1)? @@ -17,4 +18,5 @@ #define __castxml_minor__ [0-9]+ #define __castxml_patch__ [0-9]+( #define __float128 __castxml__float128)? -#define __i386__ 1$ +#define __i386__ 1( +#define __malloc__\(\.\.\.\) __malloc__)?$ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/CastXML-0.4.3/test/expect/cmd.cc-gnu-src-cxx-E.stdout.txt new/CastXML-0.4.4/test/expect/cmd.cc-gnu-src-cxx-E.stdout.txt --- old/CastXML-0.4.3/test/expect/cmd.cc-gnu-src-cxx-E.stdout.txt 2021-03-03 19:15:49.000000000 +0100 +++ new/CastXML-0.4.4/test/expect/cmd.cc-gnu-src-cxx-E.stdout.txt 2021-10-25 22:44:07.000000000 +0200 @@ -1,4 +1,5 @@ ^(#define _WIN32 1 +)?(#define __GCC_HAVE_DWARF2_CFI_ASM 1 )?#define __GNUC_MINOR__ 1 #define __GNUC__ 1( #define __MINGW32__ 1)? @@ -14,4 +15,5 @@ #define __castxml_major__ [0-9]+ #define __castxml_minor__ [0-9]+ #define __castxml_patch__ [0-9]+ -#define __cplusplus 199711L$ +#define __cplusplus 199711L( +#define __malloc__\(\.\.\.\) __malloc__)?$ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/CastXML-0.4.3/test/expect/cmd.cc-gnu-tgt-i386-opt-E.stdout.txt new/CastXML-0.4.4/test/expect/cmd.cc-gnu-tgt-i386-opt-E.stdout.txt --- old/CastXML-0.4.3/test/expect/cmd.cc-gnu-tgt-i386-opt-E.stdout.txt 2021-03-03 19:15:49.000000000 +0100 +++ new/CastXML-0.4.4/test/expect/cmd.cc-gnu-tgt-i386-opt-E.stdout.txt 2021-10-25 22:44:07.000000000 +0200 @@ -1,4 +1,5 @@ ^(#define _WIN32 1 +)?(#define __GCC_HAVE_DWARF2_CFI_ASM 1 )?#define __GNUC_MINOR__ 1 #define __GNUC__ 1( #define __MINGW32__ 1)? @@ -18,4 +19,5 @@ #define __castxml_patch__ [0-9]+ #define __cplusplus 199711L( #define __float128 __castxml__float128)? -#define __i386__ 1$ +#define __i386__ 1( +#define __malloc__\(\.\.\.\) __malloc__)?$ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/CastXML-0.4.3/test/expect/cmd.cc-msvc-builtin-1800-E.stdout.txt new/CastXML-0.4.4/test/expect/cmd.cc-msvc-builtin-1800-E.stdout.txt --- old/CastXML-0.4.3/test/expect/cmd.cc-msvc-builtin-1800-E.stdout.txt 2021-03-03 19:15:49.000000000 +0100 +++ new/CastXML-0.4.4/test/expect/cmd.cc-msvc-builtin-1800-E.stdout.txt 2021-10-25 22:44:07.000000000 +0200 @@ -1,6 +1,7 @@ ^#define _MSC_VER 1800 #define _WIN32 1 -#define __castxml__ [^ +(#define __GCC_HAVE_DWARF2_CFI_ASM 1 +)?#define __castxml__ [^ ]* #define __castxml_check[^ ]* diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/CastXML-0.4.3/test/expect/cmd.cc-msvc-builtin-1900-E.stdout.txt new/CastXML-0.4.4/test/expect/cmd.cc-msvc-builtin-1900-E.stdout.txt --- old/CastXML-0.4.3/test/expect/cmd.cc-msvc-builtin-1900-E.stdout.txt 2021-03-03 19:15:49.000000000 +0100 +++ new/CastXML-0.4.4/test/expect/cmd.cc-msvc-builtin-1900-E.stdout.txt 2021-10-25 22:44:07.000000000 +0200 @@ -1,6 +1,7 @@ ^#define _MSC_VER 1900 #define _WIN32 1 -#define __castxml__ [^ +(#define __GCC_HAVE_DWARF2_CFI_ASM 1 +)?#define __castxml__ [^ ]* #define __castxml_check[^ ]* diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/CastXML-0.4.3/test/expect/cmd.cc-msvc-src-cxx-E.stdout.txt new/CastXML-0.4.4/test/expect/cmd.cc-msvc-src-cxx-E.stdout.txt --- old/CastXML-0.4.3/test/expect/cmd.cc-msvc-src-cxx-E.stdout.txt 2021-03-03 19:15:49.000000000 +0100 +++ new/CastXML-0.4.4/test/expect/cmd.cc-msvc-src-cxx-E.stdout.txt 2021-10-25 22:44:07.000000000 +0200 @@ -1,6 +1,7 @@ ^#define _MSC_VER 1600 #define _WIN32 1 -#define __castxml__ [^ +(#define __GCC_HAVE_DWARF2_CFI_ASM 1 +)?#define __castxml__ [^ ]* #define __castxml_check[^ ]* diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/CastXML-0.4.3/test/expect/cmd.cc-msvc-std-c++17-E.stdout.txt new/CastXML-0.4.4/test/expect/cmd.cc-msvc-std-c++17-E.stdout.txt --- old/CastXML-0.4.3/test/expect/cmd.cc-msvc-std-c++17-E.stdout.txt 2021-03-03 19:15:49.000000000 +0100 +++ new/CastXML-0.4.4/test/expect/cmd.cc-msvc-std-c++17-E.stdout.txt 2021-10-25 22:44:07.000000000 +0200 @@ -1,7 +1,8 @@ ^#define _MSC_VER 1900 #define _MSVC_LANG 201703L #define _WIN32 1 -#define __STDCPP_DEFAULT_NEW_ALIGNMENT__ 16ll +(#define __GCC_HAVE_DWARF2_CFI_ASM 1 +)?#define __STDCPP_DEFAULT_NEW_ALIGNMENT__ 16ll #define __castxml__ [^ ]* #define __castxml_check[^ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/CastXML-0.4.3/test/expect/cmd.predefined-macros.stdout.txt.in new/CastXML-0.4.4/test/expect/cmd.predefined-macros.stdout.txt.in --- old/CastXML-0.4.3/test/expect/cmd.predefined-macros.stdout.txt.in 2021-03-03 19:15:49.000000000 +0100 +++ new/CastXML-0.4.4/test/expect/cmd.predefined-macros.stdout.txt.in 2021-10-25 22:44:07.000000000 +0200 @@ -6,7 +6,9 @@ #define __castxml_major__ @CastXML_VERSION_MAJOR@ #define __castxml_minor__ @CastXML_VERSION_MINOR@ #define __castxml_patch__ @CastXML_VERSION_PATCH@ -#define __clang__ 1 +#define __clang__ 1( +#define __clang_literal_encoding__ [^ +]*)? #define __clang_major__ [0-9]+ #define __clang_minor__ [0-9]+ #define __clang_patchlevel__ [0-9]+ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/CastXML-0.4.3/test/expect/gccxml.any.GNU-attr-malloc-args.xml.txt new/CastXML-0.4.4/test/expect/gccxml.any.GNU-attr-malloc-args.xml.txt --- old/CastXML-0.4.3/test/expect/gccxml.any.GNU-attr-malloc-args.xml.txt 1970-01-01 01:00:00.000000000 +0100 +++ new/CastXML-0.4.4/test/expect/gccxml.any.GNU-attr-malloc-args.xml.txt 2021-10-25 22:44:07.000000000 +0200 @@ -0,0 +1,8 @@ +^<\?xml version="1.0"\?> +<GCC_XML[^>]*> + <Function id="_1" name="start" returns="_2" context="_3" location="f1:7" file="f1" line="7" mangled="[^"]+"/> + <PointerType id="_2" type="_4" size="[0-9]+" align="[0-9]+"/> + <Namespace id="_3" name="::"/> + <Struct id="_4" name="foo" context="_3" location="f1:1" file="f1" line="1" size="[0-9]+" align="[0-9]+"/> + <File id="f1" name=".*/test/input/GNU-attr-malloc-args.cxx"/> +</GCC_XML>$ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/CastXML-0.4.3/test/expect/gccxml.c.GNU-attr-malloc-args.xml.txt new/CastXML-0.4.4/test/expect/gccxml.c.GNU-attr-malloc-args.xml.txt --- old/CastXML-0.4.3/test/expect/gccxml.c.GNU-attr-malloc-args.xml.txt 1970-01-01 01:00:00.000000000 +0100 +++ new/CastXML-0.4.4/test/expect/gccxml.c.GNU-attr-malloc-args.xml.txt 2021-10-25 22:44:07.000000000 +0200 @@ -0,0 +1,9 @@ +^<\?xml version="1.0"\?> +<GCC_XML[^>]*> + <Function id="_1" name="start" returns="_2" context="_3" location="f1:7" file="f1" line="7" mangled="[^"]+"/> + <PointerType id="_2" type="_4" size="[0-9]+" align="[0-9]+"/> + <Namespace id="_3" name="::"/> + <Typedef id="_4" name="foo" type="_5" context="_3" location="f1:3" file="f1" line="3"/> + <Struct id="_5" name="foo_s" context="_3" location="f1:1" file="f1" line="1" size="[0-9]+" align="[0-9]+"/> + <File id="f1" name=".*/test/input/GNU-attr-malloc-args.c"/> +</GCC_XML>$ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/CastXML-0.4.3/test/input/GNU-attr-malloc-args.c new/CastXML-0.4.4/test/input/GNU-attr-malloc-args.c --- old/CastXML-0.4.3/test/input/GNU-attr-malloc-args.c 1970-01-01 01:00:00.000000000 +0100 +++ new/CastXML-0.4.4/test/input/GNU-attr-malloc-args.c 2021-10-25 22:44:07.000000000 +0200 @@ -0,0 +1,7 @@ +typedef struct foo_s +{ +} foo; +void foo_close(foo*); +__attribute__((__malloc__, __malloc__(foo_close), + __malloc__(foo_close, 1))) foo* +start(void); diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/CastXML-0.4.3/test/input/GNU-attr-malloc-args.cxx new/CastXML-0.4.4/test/input/GNU-attr-malloc-args.cxx --- old/CastXML-0.4.3/test/input/GNU-attr-malloc-args.cxx 1970-01-01 01:00:00.000000000 +0100 +++ new/CastXML-0.4.4/test/input/GNU-attr-malloc-args.cxx 2021-10-25 22:44:07.000000000 +0200 @@ -0,0 +1,7 @@ +struct foo +{ +}; +void foo_close(foo*); +__attribute__((__malloc__, __malloc__(foo_close), + __malloc__(foo_close, 1))) foo* +start(void);
