Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package CastXML for openSUSE:Factory checked 
in at 2024-01-25 18:42:06
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/CastXML (Old)
 and      /work/SRC/openSUSE:Factory/.CastXML.new.1815 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "CastXML"

Thu Jan 25 18:42:06 2024 rev:15 rq:1141511 version:0.6.4

Changes:
--------
--- /work/SRC/openSUSE:Factory/CastXML/CastXML.changes  2024-01-21 
23:09:14.663447833 +0100
+++ /work/SRC/openSUSE:Factory/.CastXML.new.1815/CastXML.changes        
2024-01-25 18:42:43.841922504 +0100
@@ -1,0 +2,7 @@
+Mon Jan 22 19:41:46 UTC 2024 - Atri Bhattacharya <badshah...@gmail.com>
+
+- Update to version 0.6.4:
+  * Improve simulated _Float## types to support glibc headers
+    (gh#CastXML/CastXML#251).
+
+-------------------------------------------------------------------

Old:
----
  CastXML-0.6.3.tar.gz

New:
----
  CastXML-0.6.4.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ CastXML.spec ++++++
--- /var/tmp/diff_new_pack.X8c1Zt/_old  2024-01-25 18:42:44.573948620 +0100
+++ /var/tmp/diff_new_pack.X8c1Zt/_new  2024-01-25 18:42:44.573948620 +0100
@@ -17,7 +17,7 @@
 
 
 Name:           CastXML
-Version:        0.6.3
+Version:        0.6.4
 Release:        0
 Summary:        C-family Abstract Syntax Tree XML Output
 License:        Apache-2.0

++++++ CastXML-0.6.3.tar.gz -> CastXML-0.6.4.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/CastXML-0.6.3/src/RunClang.cxx 
new/CastXML-0.6.4/src/RunClang.cxx
--- old/CastXML-0.6.3/src/RunClang.cxx  2024-01-17 20:44:38.000000000 +0100
+++ new/CastXML-0.6.4/src/RunClang.cxx  2024-01-22 20:30:04.000000000 +0100
@@ -392,26 +392,57 @@
         // Clang does not have these types for all sizes.
         // Provide our own approximation of the builtins.
         builtins += "\n"
-                    "typedef struct __castxml_Float32_s { "
-                    "  char x[4] __attribute__((aligned(4))); "
-                    "} __castxml_Float32;\n"
                     "#define _Float32 __castxml_Float32\n"
-                    "typedef struct __castxml_Float32x_s { "
-                    "  char x[8] __attribute__((aligned(8))); "
-                    "} __castxml_Float32x;\n"
                     "#define _Float32x __castxml_Float32x\n"
-                    "typedef struct __castxml_Float64_s { "
-                    "  char x[8] __attribute__((aligned(8))); "
-                    "} __castxml_Float64;\n"
                     "#define _Float64 __castxml_Float64\n"
-                    "typedef struct __castxml_Float64x_s { "
-                    "  char x[16] __attribute__((aligned(16))); "
-                    "} __castxml_Float64x;\n"
-                    "#define _Float64x __castxml_Float64x\n"
-                    "typedef struct __castxml_Float128_s { "
-                    "  char x[16] __attribute__((aligned(16))); "
-                    "} __castxml_Float128;\n"
-                    "#define _Float128 __castxml_Float128\n";
+                    "#define _Float64x __castxml_Float64x\n";
+        if (this->NeedFloat128(this->Opts.Predefines)) {
+          builtins += "#define _Float128 __castxml_Float128\n";
+        }
+
+        if (this->IsCPlusPlus(this->Opts.Predefines)) {
+          // In C++ we need distinct types for template specializations
+          // in glibc headers, but also need conversions.
+          builtins += "\n"
+                      "typedef struct __castxml_Float32_s { "
+                      "  float x; "
+                      "  operator float() const; "
+                      "  __castxml_Float32_s(float); "
+                      "} __castxml_Float32;\n"
+                      "typedef struct __castxml_Float32x_s { "
+                      "  double x; "
+                      "  operator double() const; "
+                      "  __castxml_Float32x_s(double); "
+                      "} __castxml_Float32x;\n"
+                      "typedef struct __castxml_Float64_s { "
+                      "  double x; "
+                      "  operator double() const; "
+                      "  __castxml_Float64_s(double); "
+                      "} __castxml_Float64;\n"
+                      "typedef struct __castxml_Float64x_s { "
+                      "  long double x; "
+                      "  operator long double() const; "
+                      "  __castxml_Float64x_s(long double); "
+                      "} __castxml_Float64x;\n";
+          if (this->NeedFloat128(this->Opts.Predefines)) {
+            builtins += "typedef struct __castxml_Float128_s { "
+                        "  __float128 x; "
+                        "  operator __float128() const; "
+                        "  __castxml_Float128_s(__float128); "
+                        "} __castxml_Float128;\n";
+          }
+
+        } else {
+          // In C we need real float types for conversions in glibc headers.
+          builtins += "\n"
+                      "typedef float __castxml_Float32;\n"
+                      "typedef double __castxml_Float32x;\n"
+                      "typedef double __castxml_Float64;\n"
+                      "typedef long double __castxml_Float64x;\n";
+          if (this->NeedFloat128(this->Opts.Predefines)) {
+            builtins += "typedef __float128 __castxml_Float128;\n";
+          }
+        }
       }
 
     } else {
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/CastXML-0.6.3/src/Version.cmake 
new/CastXML-0.6.4/src/Version.cmake
--- old/CastXML-0.6.3/src/Version.cmake 2024-01-17 20:44:38.000000000 +0100
+++ new/CastXML-0.6.4/src/Version.cmake 2024-01-22 20:30:04.000000000 +0100
@@ -1,7 +1,7 @@
 # CastXML version number components.
 set(CastXML_VERSION_MAJOR 0)
 set(CastXML_VERSION_MINOR 6)
-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 "c7218b32 CastXML 0.6.3")
+set(git_info "44718c3f CastXML 0.6.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.6.3/test/CMakeLists.txt 
new/CastXML-0.6.4/test/CMakeLists.txt
--- old/CastXML-0.6.3/test/CMakeLists.txt       2024-01-17 20:44:38.000000000 
+0100
+++ new/CastXML-0.6.4/test/CMakeLists.txt       2024-01-22 20:30:04.000000000 
+0100
@@ -696,6 +696,7 @@
 castxml_test_output_c(GNU-_Float32x)
 castxml_test_output_c(GNU-_Float64)
 castxml_test_output_c(GNU-_Float64x)
+set(castxml_test_output_extra_arguments --castxml-cc-gnu-c "(" 
$<TARGET_FILE:cc-gnu> --ver-major=7 --cc-define=__x86_64__ ")")
 castxml_test_output_c(GNU-_Float128)
 unset(castxml_test_output_extra_arguments)
 
@@ -704,6 +705,7 @@
 castxml_test_output(GNU-_Float32x)
 castxml_test_output(GNU-_Float64)
 castxml_test_output(GNU-_Float64x)
+set(castxml_test_output_extra_arguments --castxml-cc-gnu "(" 
$<TARGET_FILE:cc-gnu> --ver-major=13 --cc-define=__x86_64__ ")")
 castxml_test_output(GNU-_Float128)
 unset(castxml_test_output_extra_arguments)
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/CastXML-0.6.3/test/input/GNU-_Float128.c 
new/CastXML-0.6.4/test/input/GNU-_Float128.c
--- old/CastXML-0.6.3/test/input/GNU-_Float128.c        2024-01-17 
20:44:38.000000000 +0100
+++ new/CastXML-0.6.4/test/input/GNU-_Float128.c        2024-01-22 
20:30:04.000000000 +0100
@@ -1 +1,6 @@
 _Float128 start(_Float128);
+
+__float128 conversions(__float128 x)
+{
+  return start(x);
+}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/CastXML-0.6.3/test/input/GNU-_Float128.cxx 
new/CastXML-0.6.4/test/input/GNU-_Float128.cxx
--- old/CastXML-0.6.3/test/input/GNU-_Float128.cxx      2024-01-17 
20:44:38.000000000 +0100
+++ new/CastXML-0.6.4/test/input/GNU-_Float128.cxx      2024-01-22 
20:30:04.000000000 +0100
@@ -1 +1,17 @@
 _Float128 start(_Float128);
+
+__float128 conversions(__float128 x)
+{
+  return start(x);
+}
+
+template <typename T>
+struct distinct;
+template <>
+struct distinct<__float128>
+{
+};
+template <>
+struct distinct<_Float128>
+{
+};
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/CastXML-0.6.3/test/input/GNU-_Float32.c 
new/CastXML-0.6.4/test/input/GNU-_Float32.c
--- old/CastXML-0.6.3/test/input/GNU-_Float32.c 2024-01-17 20:44:38.000000000 
+0100
+++ new/CastXML-0.6.4/test/input/GNU-_Float32.c 2024-01-22 20:30:04.000000000 
+0100
@@ -1 +1,6 @@
 _Float32 start(_Float32);
+
+float conversions(float x)
+{
+  return start(x);
+}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/CastXML-0.6.3/test/input/GNU-_Float32.cxx 
new/CastXML-0.6.4/test/input/GNU-_Float32.cxx
--- old/CastXML-0.6.3/test/input/GNU-_Float32.cxx       2024-01-17 
20:44:38.000000000 +0100
+++ new/CastXML-0.6.4/test/input/GNU-_Float32.cxx       2024-01-22 
20:30:04.000000000 +0100
@@ -1 +1,17 @@
 _Float32 start(_Float32);
+
+float conversions(float x)
+{
+  return start(x);
+}
+
+template <typename T>
+struct distinct;
+template <>
+struct distinct<float>
+{
+};
+template <>
+struct distinct<_Float32>
+{
+};
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/CastXML-0.6.3/test/input/GNU-_Float32x.c 
new/CastXML-0.6.4/test/input/GNU-_Float32x.c
--- old/CastXML-0.6.3/test/input/GNU-_Float32x.c        2024-01-17 
20:44:38.000000000 +0100
+++ new/CastXML-0.6.4/test/input/GNU-_Float32x.c        2024-01-22 
20:30:04.000000000 +0100
@@ -1 +1,6 @@
 _Float32x start(_Float32x);
+
+double conversions(double x)
+{
+  return start(x);
+}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/CastXML-0.6.3/test/input/GNU-_Float32x.cxx 
new/CastXML-0.6.4/test/input/GNU-_Float32x.cxx
--- old/CastXML-0.6.3/test/input/GNU-_Float32x.cxx      2024-01-17 
20:44:38.000000000 +0100
+++ new/CastXML-0.6.4/test/input/GNU-_Float32x.cxx      2024-01-22 
20:30:04.000000000 +0100
@@ -1 +1,17 @@
 _Float32x start(_Float32x);
+
+double conversions(double x)
+{
+  return start(x);
+}
+
+template <typename T>
+struct distinct;
+template <>
+struct distinct<double>
+{
+};
+template <>
+struct distinct<_Float32x>
+{
+};
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/CastXML-0.6.3/test/input/GNU-_Float64.c 
new/CastXML-0.6.4/test/input/GNU-_Float64.c
--- old/CastXML-0.6.3/test/input/GNU-_Float64.c 2024-01-17 20:44:38.000000000 
+0100
+++ new/CastXML-0.6.4/test/input/GNU-_Float64.c 2024-01-22 20:30:04.000000000 
+0100
@@ -1 +1,6 @@
 _Float64 start(_Float64);
+
+double conversions(double x)
+{
+  return start(x);
+}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/CastXML-0.6.3/test/input/GNU-_Float64.cxx 
new/CastXML-0.6.4/test/input/GNU-_Float64.cxx
--- old/CastXML-0.6.3/test/input/GNU-_Float64.cxx       2024-01-17 
20:44:38.000000000 +0100
+++ new/CastXML-0.6.4/test/input/GNU-_Float64.cxx       2024-01-22 
20:30:04.000000000 +0100
@@ -1 +1,17 @@
 _Float64 start(_Float64);
+
+double conversions(double x)
+{
+  return start(x);
+}
+
+template <typename T>
+struct distinct;
+template <>
+struct distinct<double>
+{
+};
+template <>
+struct distinct<_Float64>
+{
+};
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/CastXML-0.6.3/test/input/GNU-_Float64x.c 
new/CastXML-0.6.4/test/input/GNU-_Float64x.c
--- old/CastXML-0.6.3/test/input/GNU-_Float64x.c        2024-01-17 
20:44:38.000000000 +0100
+++ new/CastXML-0.6.4/test/input/GNU-_Float64x.c        2024-01-22 
20:30:04.000000000 +0100
@@ -1 +1,6 @@
 _Float64x start(_Float64x);
+
+long double conversions(long double x)
+{
+  return start(x);
+}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/CastXML-0.6.3/test/input/GNU-_Float64x.cxx 
new/CastXML-0.6.4/test/input/GNU-_Float64x.cxx
--- old/CastXML-0.6.3/test/input/GNU-_Float64x.cxx      2024-01-17 
20:44:38.000000000 +0100
+++ new/CastXML-0.6.4/test/input/GNU-_Float64x.cxx      2024-01-22 
20:30:04.000000000 +0100
@@ -1 +1,17 @@
 _Float64x start(_Float64x);
+
+long double conversions(long double x)
+{
+  return start(x);
+}
+
+template <typename T>
+struct distinct;
+template <>
+struct distinct<long double>
+{
+};
+template <>
+struct distinct<_Float64x>
+{
+};
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/CastXML-0.6.3/test/run.cmake 
new/CastXML-0.6.4/test/run.cmake
--- old/CastXML-0.6.3/test/run.cmake    2024-01-17 20:44:38.000000000 +0100
+++ new/CastXML-0.6.4/test/run.cmake    2024-01-22 20:30:04.000000000 +0100
@@ -13,7 +13,7 @@
 # See the License for the specific language governing permissions and
 # limitations under the License.
 #=============================================================================
-cmake_minimum_required(VERSION 3.3)
+cmake_minimum_required(VERSION 3.5)
 
 if(xml)
   file(REMOVE "${xml}")

Reply via email to