Compare commits
6 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
1f33e0f9e4 | ||
|
|
2c12e4323c | ||
|
|
5edfac5a32 | ||
|
|
747f1ab8e5 | ||
|
|
c07f5f4be1 | ||
|
|
df98fbaf81 |
3 changed files with 52 additions and 0 deletions
30
safeint-3.0.27-gcc14_test_fix.patch
Normal file
30
safeint-3.0.27-gcc14_test_fix.patch
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
diff --git a/Test/ConstExpr.cpp b/Test/ConstExpr.cpp
|
||||
index ab624ea..ad2d8f1 100644
|
||||
--- a/Test/ConstExpr.cpp
|
||||
+++ b/Test/ConstExpr.cpp
|
||||
@@ -9,25 +9,6 @@
|
||||
#pragma GCC diagnostic ignored "-Wunused-variable"
|
||||
#endif
|
||||
|
||||
-#if !defined __clang__ && defined __GNUC__ && __cplusplus >= 201402L
|
||||
-// The gcc compiler isn't smart enough to sort out that the constexpr exception functions
|
||||
-// are never hit, so create a null exception handler. Nothing in this file is tested at runtime in any case.
|
||||
-class SafeIntGccCompileOnly
|
||||
-{
|
||||
-public:
|
||||
- constexpr static void SafeIntOnOverflow()
|
||||
- {
|
||||
- }
|
||||
-
|
||||
- constexpr static void SafeIntOnDivZero()
|
||||
- {
|
||||
- }
|
||||
-};
|
||||
-
|
||||
-#define SafeIntDefaultExceptionHandler SafeIntGccCompileOnly
|
||||
-
|
||||
-#endif
|
||||
-
|
||||
#include "../SafeInt.hpp"
|
||||
|
||||
namespace TestConstExpr
|
||||
20
safeint-3.0.27-gcc98_test_rm.patch
Normal file
20
safeint-3.0.27-gcc98_test_rm.patch
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
diff --git a/Test/GccTest/CMakeLists.txt b/Test/GccTest/CMakeLists.txt
|
||||
index 38bf581..9254d70 100644
|
||||
--- a/Test/GccTest/CMakeLists.txt
|
||||
+++ b/Test/GccTest/CMakeLists.txt
|
||||
@@ -123,15 +123,6 @@ else()
|
||||
|
||||
target_compile_options(CompileTest_gcc14_NoEH PUBLIC -Wall -std=c++14 -fno-exceptions)
|
||||
|
||||
- add_executable(CompileTest_gcc98
|
||||
- ../CompileTest.cpp
|
||||
- ../ConstExpr.cpp
|
||||
- ../CleanCompile.cpp
|
||||
- ../../SafeInt.hpp
|
||||
- )
|
||||
-
|
||||
- target_compile_options(CompileTest_gcc98 PUBLIC -D SAFEINT_USE_CPLUSCPLUS_98 -Wall -std=c++98 -fno-exceptions)
|
||||
-
|
||||
add_executable(safe_math_test_gcc
|
||||
../c_safe_math/safe_math_test.c
|
||||
../c_safe_math/safe_math_test.h
|
||||
|
|
@ -12,6 +12,8 @@ Source0: https://github.com/dcleblanc/SafeInt/archive/%{version}/SafeInt-
|
|||
|
||||
# https://github.com/dcleblanc/SafeInt/pull/48
|
||||
Patch0: safeint-3.0.27-gcc13_fix.patch
|
||||
Patch1: safeint-3.0.27-gcc98_test_rm.patch
|
||||
Patch2: safeint-3.0.27-gcc14_test_fix.patch
|
||||
|
||||
BuildRequires: gcc-c++
|
||||
BuildRequires: cmake
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue