Skip to content

Commit

Permalink
Merge pull request #476 from ckormanyos/update_gcc13
Browse files Browse the repository at this point in the history
  • Loading branch information
ckormanyos authored Feb 11, 2024
2 parents a64a97b + b736ea0 commit 204ff7b
Show file tree
Hide file tree
Showing 21 changed files with 58 additions and 49 deletions.
Binary file removed ref_app/libwinpthread-1.dll
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
///////////////////////////////////////////////////////////////////////////////
// Copyright Christopher Kormanyos 2021.
// Copyright Christopher Kormanyos 2021 - 2024.
// Distributed under the Boost Software License,
// Version 1.0. (See accompanying file LICENSE_1_0.txt
// or copy at http://www.boost.org/LICENSE_1_0.txt)
Expand Down
4 changes: 2 additions & 2 deletions ref_app/target/micros/am335x/make/am335x_flags.gmk
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# Copyright Christopher Kormanyos 2013 - 2022.
# Copyright Christopher Kormanyos 2013 - 2024.
# Distributed under the Boost Software License,
# Version 1.0. (See accompanying file LICENSE_1_0.txt
# or copy at http://www.boost.org/LICENSE_1_0.txt)
Expand All @@ -9,7 +9,7 @@
# compiler flags for the target architecture
# ------------------------------------------------------------------------------

GCC_VERSION = 11.2.0
GCC_VERSION = 13.2.1
GCC_TARGET = arm-none-eabi
GCC_PREFIX = arm-none-eabi

Expand Down
2 changes: 1 addition & 1 deletion ref_app/target/micros/avr/make/avr_flags.gmk
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ GCC_PREFIX = avr

TGT_SUFFIX = elf

TGT_ALLFLAGS = -Os \
TGT_ALLFLAGS = -O2 \
-mmcu=atmega328p \
-mrelax \
-finline-functions \
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# Copyright Christopher Kormanyos 2013 - 2021.
# Copyright Christopher Kormanyos 2013 - 2024.
# Distributed under the Boost Software License,
# Version 1.0. (See accompanying file LICENSE_1_0.txt
# or copy at http://www.boost.org/LICENSE_1_0.txt)
Expand All @@ -9,7 +9,7 @@
# compiler flags for the target architecture
# ------------------------------------------------------------------------------

GCC_VERSION = 11.2.0
GCC_VERSION = 13.2.1
GCC_TARGET = arm-none-eabi
GCC_PREFIX = arm-none-eabi

Expand Down
4 changes: 2 additions & 2 deletions ref_app/target/micros/lpc11c24/make/lpc11c24_flags.gmk
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright Christopher Kormanyos 2007 - 2021.
# Copyright Christopher Kormanyos 2007 - 2024.
# Distributed under the Boost Software License,
# Version 1.0. (See accompanying file LICENSE_1_0.txt
# or copy at http://www.boost.org/LICENSE_1_0.txt)
Expand All @@ -8,7 +8,7 @@
# compiler flags for the target architecture
# ------------------------------------------------------------------------------

GCC_VERSION = 11.2.0
GCC_VERSION = 13.2.1
GCC_TARGET = arm-none-eabi
GCC_PREFIX = arm-none-eabi

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# Copyright Christopher Kormanyos 2007 - 2023.
# Copyright Christopher Kormanyos 2007 - 2024.
# Distributed under the Boost Software License,
# Version 1.0. (See accompanying file LICENSE_1_0.txt
# or copy at http://www.boost.org/LICENSE_1_0.txt)
Expand All @@ -9,7 +9,7 @@
# compiler flags for the target architecture
# ------------------------------------------------------------------------------

GCC_VERSION = 11.2.0
GCC_VERSION = 13.2.1
GCC_TARGET = arm-none-eabi
GCC_PREFIX = arm-none-eabi

Expand All @@ -31,7 +31,7 @@ TGT_CFLAGS = -std=c99
-Wunsuffixed-float-constants \
$(TGT_ALLFLAGS)

TGT_CXXFLAGS = -std=c++20 \
TGT_CXXFLAGS = -std=c++14 \
-Wno-psabi \
$(TGT_ALLFLAGS)

Expand Down
4 changes: 2 additions & 2 deletions ref_app/target/micros/riscvfe310/make/riscvfe310_flags.gmk
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright Christopher Kormanyos 2022 - 2023.
# Copyright Christopher Kormanyos 2022 - 2024.
# Distributed under the Boost Software License,
# Version 1.0. (See accompanying file LICENSE_1_0.txt
# or copy at http://www.boost.org/LICENSE_1_0.txt)
Expand All @@ -12,7 +12,7 @@ GCC_TARGET := riscv32-unknown-elf
GCC_PREFIX := riscv32-unknown-elf

ifneq ($(MAKE),make)
GCC_VERSION := 13.1.0
GCC_VERSION := 13.2.0
endif

TGT_SUFFIX = elf
Expand Down
4 changes: 1 addition & 3 deletions ref_app/target/micros/rl78/make/rl78.ld
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
/*
Copyright Christopher Kormanyos 2007 - 2013.
Copyright Christopher Kormanyos 2007 - 2024.
Distributed under the Boost Software License,
Version 1.0. (See accompanying file LICENSE_1_0.txt
or copy at http://www.boost.org/LICENSE_1_0.txt)
*/

INPUT(libc.a libm.a libgcc.a)

OUTPUT_ARCH(rl78)

/* The beginning and end of the program ROM area */
Expand Down
10 changes: 5 additions & 5 deletions ref_app/target/micros/rl78/make/rl78_flags.gmk
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# Copyright Christopher Kormanyos 2014 -2021.
# Copyright Christopher Kormanyos 2014 -2024.
# Distributed under the Boost Software License,
# Version 1.0. (See accompanying file LICENSE_1_0.txt
# or copy at http://www.boost.org/LICENSE_1_0.txt)
Expand All @@ -9,7 +9,7 @@
# compiler flags for the target architecture
# ------------------------------------------------------------------------------

GCC_VERSION = 11.2.0
GCC_VERSION = 13.2.0
GCC_TARGET = rl78-unknown-elf
GCC_PREFIX = rl78-unknown-elf

Expand All @@ -31,8 +31,8 @@ TGT_INCLUDES = -I$(PATH_APP)/util/STL

TGT_AFLAGS =

TGT_LDFLAGS = -nostdlib \
-nostartfiles \
TGT_LDFLAGS = -nostartfiles \
-Wl,--gc-sections \
-Wl,-Map,$(APP).map \
-T $(LINKER_DEFINITION_FILE)
-T $(LINKER_DEFINITION_FILE) \
--specs=nosys.specs
22 changes: 17 additions & 5 deletions ref_app/target/micros/rl78/startup/crt0_init_ram.cpp
Original file line number Diff line number Diff line change
@@ -1,12 +1,19 @@
///////////////////////////////////////////////////////
// Copyright 2013 Stephan Hage.
// Copyright 2013 Christopher Kormanyos.
// Distributed under the Boost
// Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt
// or copy at http://www.boost.org/LICENSE_1_0.txt )
// Copyright 2013, 2024 Christopher Kormanyos.
// Distributed under the Boost
// Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt
// or copy at http://www.boost.org/LICENSE_1_0.txt )
//

#if defined(__GNUC__) && (__GNUC__ >= 12)
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Warray-bounds"
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wstringop-overflow"
#endif

#include <algorithm>
#include <cstddef>
#include <cstdint>
Expand Down Expand Up @@ -43,3 +50,8 @@ void crt::init_ram()
static_cast<memory_aligned_type*>(static_cast<void*>(&_bss_end)),
static_cast<memory_aligned_type>(0U));
}

#if defined(__GNUC__) && (__GNUC__ >= 12)
#pragma GCC diagnostic pop
#pragma GCC diagnostic pop
#endif
4 changes: 2 additions & 2 deletions ref_app/target/micros/rx63n/make/rx63n_flags.gmk
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# Copyright Christopher Kormanyos 2014 - 2021.
# Copyright Christopher Kormanyos 2014 - 2024.
# Distributed under the Boost Software License,
# Version 1.0. (See accompanying file LICENSE_1_0.txt
# or copy at http://www.boost.org/LICENSE_1_0.txt)
Expand All @@ -9,7 +9,7 @@
# compiler flags for the target architecture
# ------------------------------------------------------------------------------

GCC_VERSION = 11.2.0
GCC_VERSION = 13.2.0
GCC_TARGET = rx-elf
GCC_PREFIX = rx-elf

Expand Down
4 changes: 2 additions & 2 deletions ref_app/target/micros/stm32f100/make/stm32f100_flags.gmk
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright Christopher Kormanyos 2007 - 2023.
# Copyright Christopher Kormanyos 2007 - 2024.
# Distributed under the Boost Software License,
# Version 1.0. (See accompanying file LICENSE_1_0.txt
# or copy at http://www.boost.org/LICENSE_1_0.txt)
Expand All @@ -8,7 +8,7 @@
# compiler flags for the target architecture
# ------------------------------------------------------------------------------

GCC_VERSION = 11.2.0
GCC_VERSION = 13.2.1
GCC_TARGET = arm-none-eabi
GCC_PREFIX = arm-none-eabi

Expand Down
4 changes: 2 additions & 2 deletions ref_app/target/micros/stm32f407/make/stm32f407_flags.gmk
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# Copyright Christopher Kormanyos 2007 - 2022.
# Copyright Christopher Kormanyos 2007 - 2024.
# Distributed under the Boost Software License,
# Version 1.0. (See accompanying file LICENSE_1_0.txt
# or copy at http://www.boost.org/LICENSE_1_0.txt)
Expand All @@ -9,7 +9,7 @@
# compiler flags for the target architecture
# ------------------------------------------------------------------------------

GCC_VERSION = 11.2.0
GCC_VERSION = 13.2.1
GCC_TARGET = arm-none-eabi
GCC_PREFIX = arm-none-eabi

Expand Down
4 changes: 2 additions & 2 deletions ref_app/target/micros/stm32f429/make/stm32f429_flags.gmk
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# Copyright Christopher Kormanyos 2007 - 2022.
# Copyright Christopher Kormanyos 2007 - 2024.
# Distributed under the Boost Software License,
# Version 1.0. (See accompanying file LICENSE_1_0.txt
# or copy at http://www.boost.org/LICENSE_1_0.txt)
Expand All @@ -9,7 +9,7 @@
# compiler flags for the target architecture
# ------------------------------------------------------------------------------

GCC_VERSION = 11.2.0
GCC_VERSION = 13.2.1
GCC_TARGET = arm-none-eabi
GCC_PREFIX = arm-none-eabi

Expand Down
9 changes: 4 additions & 5 deletions ref_app/target/micros/stm32f446/make/stm32f446_flags.gmk
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
# compiler flags for the target architecture
# ------------------------------------------------------------------------------

GCC_VERSION = 11.2.0
GCC_VERSION = 13.2.1
GCC_TARGET = arm-none-eabi
GCC_PREFIX = arm-none-eabi

Expand All @@ -31,8 +31,9 @@ TGT_CFLAGS = -std=c99
-Wunsuffixed-float-constants \
$(TGT_ALLFLAGS)

TGT_CXXFLAGS = -std=c++20 \
TGT_CXXFLAGS = -std=c++14 \
-Wno-psabi \
-ffreestanding \
$(TGT_ALLFLAGS)

TGT_INCLUDES = -I$(PATH_APP)/util/STL
Expand All @@ -43,6 +44,4 @@ TGT_LDFLAGS = -nostdlib
-nostartfiles \
-Wl,--gc-sections \
-Wl,-Map,$(APP).map \
-T $(LINKER_DEFINITION_FILE) \
--specs=nano.specs \
--specs=nosys.specs
-T $(LINKER_DEFINITION_FILE)
4 changes: 2 additions & 2 deletions ref_app/target/micros/stm32h7a3/make/stm32h7a3_flags.gmk
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# Copyright Christopher Kormanyos 2007 - 2022.
# Copyright Christopher Kormanyos 2007 - 2024.
# Distributed under the Boost Software License,
# Version 1.0. (See accompanying file LICENSE_1_0.txt
# or copy at http://www.boost.org/LICENSE_1_0.txt)
Expand All @@ -9,7 +9,7 @@
# compiler flags for the target architecture
# ------------------------------------------------------------------------------

GCC_VERSION = 11.2.0
GCC_VERSION = 13.2.1
GCC_TARGET = arm-none-eabi
GCC_PREFIX = arm-none-eabi

Expand Down
4 changes: 2 additions & 2 deletions ref_app/target/micros/stm32l100c/make/stm32l100c_flags.gmk
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright Christopher Kormanyos 2007 - 2023.
# Copyright Christopher Kormanyos 2007 - 2024.
# Distributed under the Boost Software License,
# Version 1.0. (See accompanying file LICENSE_1_0.txt
# or copy at http://www.boost.org/LICENSE_1_0.txt)
Expand All @@ -8,7 +8,7 @@
# compiler flags for the target architecture
# ------------------------------------------------------------------------------

GCC_VERSION = 11.2.0
GCC_VERSION = 13.2.1
GCC_TARGET = arm-none-eabi
GCC_PREFIX = arm-none-eabi

Expand Down
4 changes: 2 additions & 2 deletions ref_app/target/micros/stm32l152/make/stm32l152_flags.gmk
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# Copyright Christopher Kormanyos 2017 - 2021.
# Copyright Christopher Kormanyos 2017 - 2024.
# Distributed under the Boost Software License,
# Version 1.0. (See accompanying file LICENSE_1_0.txt
# or copy at http://www.boost.org/LICENSE_1_0.txt)
Expand All @@ -9,7 +9,7 @@
# compiler flags for the target architecture
# ------------------------------------------------------------------------------

GCC_VERSION = 11.2.0
GCC_VERSION = 13.2.1
GCC_TARGET = arm-none-eabi
GCC_PREFIX = arm-none-eabi

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# Copyright Christopher Kormanyos 2019 - 2022.
# Copyright Christopher Kormanyos 2019 - 2024.
# Distributed under the Boost Software License,
# Version 1.0. (See accompanying file LICENSE_1_0.txt
# or copy at http://www.boost.org/LICENSE_1_0.txt)
Expand All @@ -9,7 +9,7 @@
# compiler flags for the target architecture
# ------------------------------------------------------------------------------

GCC_VERSION = 11.2.0
GCC_VERSION = 13.2.0
GCC_TARGET = x86_64-w64-mingw32
GCC_PREFIX =

Expand Down
4 changes: 2 additions & 2 deletions ref_app/target/micros/xtensa32/make/xtensa32_flags.gmk
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# Copyright Christopher Kormanyos 2018 - 2021.
# Copyright Christopher Kormanyos 2018 - 2024.
# Distributed under the Boost Software License,
# Version 1.0. (See accompanying file LICENSE_1_0.txt
# or copy at http://www.boost.org/LICENSE_1_0.txt)
Expand All @@ -9,7 +9,7 @@
# compiler flags for the target architecture
# ------------------------------------------------------------------------------

GCC_VERSION = 8.4.0
GCC_VERSION = 13.2.0
GCC_TARGET = xtensa-esp32-elf
GCC_PREFIX = xtensa-esp32-elf

Expand Down

0 comments on commit 204ff7b

Please sign in to comment.