File tree 8 files changed +41
-13
lines changed 8 files changed +41
-13
lines changed Original file line number Diff line number Diff line change 28
28
29
29
#endif
30
30
31
- #if (defined(STDFLOAT_FLOAT64_NATIVE_TYPE) || (defined(__STDCPP_FLOAT64_T__) && (__STDCPP_FLOAT64_T__ == 1)))
31
+ #if (defined(__GNUC__) && defined(__RL78__))
32
+
33
+ using local_float_type = std::float32_t ;
34
+ static_assert ((std::numeric_limits<local_float_type>::digits >= 24 ), "Error: Incorrect local_float_type type definition");
35
+
36
+ #elif (defined(STDFLOAT_FLOAT64_NATIVE_TYPE) || (defined(__STDCPP_FLOAT64_T__) && (__STDCPP_FLOAT64_T__ == 1)))
32
37
33
38
using local_float_type = std::float64_t ;
34
39
static_assert ((std::numeric_limits<local_float_type>::digits >= 53 ), "Error: Incorrect local_float_type type definition");
Original file line number Diff line number Diff line change 38
38
{
39
39
const std::uint_fast32_t two_j_plus_one { (j * UINT32_C (2 )) + UINT32_C (1 ) };
40
40
41
- sum += real_function (a + real_value_type (step * two_j_plus_one));
41
+ sum += real_function (a + real_value_type (step * static_cast <real_value_type>( two_j_plus_one) ));
42
42
}
43
43
44
44
const real_value_type tmp { result };
Original file line number Diff line number Diff line change 1
1
///////////////////////////////////////////////////////////////////////////////
2
- // Copyright Christopher Kormanyos 2021.
2
+ // Copyright Christopher Kormanyos 2021 - 2025 .
3
3
// Distributed under the Boost Software License,
4
4
// Version 1.0. (See accompanying file LICENSE_1_0.txt
5
5
// or copy at http://www.boost.org/LICENSE_1_0.txt)
8
8
#ifndef CINTTYPES_2021_10_19_
9
9
#define CINTTYPES_2021_10_19_
10
10
11
+ #if (defined(__GNUC__) && defined(__RL78__))
12
+ #include <stdint-gcc.h>
13
+ #else
11
14
#include <inttypes.h>
15
+ #endif
12
16
#include <cstdint>
13
17
14
18
namespace std
Original file line number Diff line number Diff line change 725
725
template<typename FloatType>
726
726
inline bool isinf_impl(FloatType x)
727
727
{
728
+ #if defined(__GNUC__)
729
+ #pragma GCC diagnostic push
730
+ #pragma GCC diagnostic ignored "-Wfloat-equal"
731
+ #endif
732
+
728
733
using float_type = FloatType;
729
734
730
735
return
731
736
(
732
737
( x == std::numeric_limits<float_type>::infinity())
733
738
|| (-x == std::numeric_limits<float_type>::infinity())
734
739
);
740
+
741
+ #if defined(__GNUC__)
742
+ #pragma GCC diagnostic pop
743
+ #endif
735
744
}
736
745
737
746
} // namespace cmath_detail
Original file line number Diff line number Diff line change 26
26
#define __STDCPP_FLOAT64_T__ 1
27
27
#endif
28
28
29
+ #elif (defined(__GNUC__) && defined(__RL78__))
30
+
31
+ using float64_t = long double;
32
+ #define __STDCPP_FLOAT64_T__ 1
33
+
29
34
#else
30
35
31
36
using float64_t = double;
Original file line number Diff line number Diff line change 1
1
/*
2
- Copyright Christopher Kormanyos 2007 - 2024 .
2
+ Copyright Christopher Kormanyos 2007 - 2025 .
3
3
Distributed under the Boost Software License,
4
4
Version 1.0. (See accompanying file LICENSE_1_0.txt
5
5
or copy at http ://www.boost.org /LICENSE_1_0.txt)
6
6
*/
7
7
8
+ INPUT (libc.a libm.a libgcc.a )
9
+
8
10
OUTPUT_ARCH (rl78 )
9
11
10
12
/* The beginning and end of the program ROM area */
Original file line number Diff line number Diff line change 1
1
#
2
- # Copyright Christopher Kormanyos 2014 -2024 .
2
+ # Copyright Christopher Kormanyos 2014 -2025 .
3
3
# Distributed under the Boost Software License,
4
4
# Version 1.0. (See accompanying file LICENSE_1_0.txt
5
5
# or copy at http://www.boost.org/LICENSE_1_0.txt)
9
9
# compiler flags for the target architecture
10
10
# ------------------------------------------------------------------------------
11
11
12
- GCC_VERSION = 13.2 .0
12
+ GCC_VERSION = 15.1 .0
13
13
GCC_TARGET = rl78-unknown-elf
14
14
GCC_PREFIX = rl78-unknown-elf
15
15
@@ -18,21 +18,22 @@ TGT_SUFFIX = elf
18
18
TGT_ALLFLAGS = -Os \
19
19
-mcpu=g13 \
20
20
-mmul=g13 \
21
- -fno-inline-functions
21
+ -fno-inline-functions \
22
+ -ffreestanding
22
23
23
- TGT_CFLAGS = -std=c99 \
24
+ TGT_CFLAGS = -std=c11 \
24
25
-Wunsuffixed-float-constants \
25
26
$(TGT_ALLFLAGS)
26
27
27
- TGT_CXXFLAGS = -std=c++14 \
28
+ TGT_CXXFLAGS = -std=c++20 \
28
29
$(TGT_ALLFLAGS)
29
30
30
- TGT_INCLUDES = -isystem $(PATH_APP)/util/STL
31
+ TGT_INCLUDES = -isystem$(PATH_APP)/util/STL
31
32
32
33
TGT_AFLAGS =
33
34
34
35
TGT_LDFLAGS = -nostartfiles \
36
+ -nostdlib \
35
37
-Wl,--gc-sections \
36
38
-Wl,-Map,$(APP).map \
37
- -T $(LINKER_DEFINITION_FILE) \
38
- --specs=nosys.specs
39
+ -T $(LINKER_DEFINITION_FILE)
Original file line number Diff line number Diff line change @@ -33,7 +33,9 @@ TGT_CXXFLAGS = -std=c++14
33
33
-Wno-psabi \
34
34
$(TGT_ALLFLAGS)
35
35
36
- TGT_INCLUDES = -isystem $(PATH_APP)/util/STL
36
+ INC_PREFIX := -isystem
37
+
38
+ TGT_INCLUDES = $(INC_PREFIX)$(PATH_APP)/util/STL
37
39
38
40
TGT_AFLAGS =
39
41
You can’t perform that action at this time.
0 commit comments