Skip to content

Commit 714d8c3

Browse files
authored
Merge pull request #10825 from dhalbert/gcc-15.2Rel1
update to arm gcc 15.2Rel1
2 parents 35401b5 + 2dee190 commit 714d8c3

File tree

12 files changed

+19
-13
lines changed

12 files changed

+19
-13
lines changed

.devcontainer/cortex-m-toolchain.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ echo -e "[cortex-m-toolchain.sh] downloading and installing gcc-arm-non-eabi too
1414
cd /workspaces
1515

1616
wget -qO gcc-arm-none-eabi.tar.xz \
17-
https://developer.arm.com/-/media/Files/downloads/gnu/14.2.rel1/binrel/arm-gnu-toolchain-14.2.rel1-x86_64-arm-none-eabi.tar.xz
17+
https://developer.arm.com/-/media/Files/downloads/gnu/15.2.rel1/binrel/arm-gnu-toolchain-15.2.rel1-x86_64-arm-none-eabi.tar.xz
1818

1919
tar -xJf gcc-arm-none-eabi.tar.xz
20-
ln -s arm-gnu-toolchain-14.2.rel1-x86_64-arm-none-eabi gcc-arm-none-eabi
20+
ln -s arm-gnu-toolchain-15.2.rel1-x86_64-arm-none-eabi gcc-arm-none-eabi
2121
rm -f gcc-arm-none-eabi.tar.xz
2222

2323
echo -e "[cortex-m-toolchain.sh] update PATH in environment"

.github/actions/deps/external/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ runs:
2727
uses: carlosperate/arm-none-eabi-gcc-action@v1
2828
with:
2929
# When changing this update what Windows grabs too!
30-
release: '14.2.Rel1'
30+
release: '15.2.Rel1'
3131

3232
# espressif
3333
- name: Get espressif toolchain

.github/actions/deps/ports/broadcom/action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ runs:
55
steps:
66
- name: Get broadcom toolchain
77
run: |
8-
wget --no-verbose https://adafruit-circuit-python.s3.amazonaws.com/arm-gnu-toolchain-14.2.rel1-x86_64-aarch64-none-elf.tar.xz
9-
sudo tar -C /usr --strip-components=1 -xaf arm-gnu-toolchain-14.2.rel1-x86_64-aarch64-none-elf.tar.xz
8+
wget --no-verbose https://adafruit-circuit-python.s3.amazonaws.com/arm-gnu-toolchain-15.2.rel1-x86_64-aarch64-none-elf.tar.xz
9+
sudo tar -C /usr --strip-components=1 -xaf arm-gnu-toolchain-15.2.rel1-x86_64-aarch64-none-elf.tar.xz
1010
sudo apt-get update
1111
sudo apt-get install -y mtools
1212
shell: bash

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ jobs:
246246
python3 -c "import sys, locale; print(sys.getdefaultencoding(), locale.getpreferredencoding(False))"
247247
- name: Install dependencies
248248
run: |
249-
wget --no-verbose -O gcc-arm.zip https://developer.arm.com/-/media/Files/downloads/gnu/14.2.rel1/binrel/arm-gnu-toolchain-14.2.rel1-mingw-w64-i686-arm-none-eabi.zip
249+
wget --no-verbose -O gcc-arm.zip https://developer.arm.com/-/media/Files/downloads/gnu/15.2.rel1/binrel/arm-gnu-toolchain-15.2.rel1-mingw-w64-i686-arm-none-eabi.zip
250250
unzip -q -d /tmp/arm-gnu-toolchain gcc-arm.zip
251251
tar -C /tmp/arm-gnu-toolchain -cf - . | tar -C /usr/local -xf -
252252
# We could use a venv instead, but that requires entering the venv on each run step

ports/cxd56/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ CFLAGS += \
7474
-fdata-sections \
7575
-Wall \
7676

77-
OPTIMIZATION_FLAGS ?= -O2 -fno-inline-functions
77+
OPTIMIZATION_FLAGS ?= -O2
7878

7979
# option to override compiler optimization level, set in boards/$(BOARD)/mpconfigboard.mk
8080
CFLAGS += $(OPTIMIZATION_FLAGS)

ports/cxd56/common-hal/microcontroller/__init__.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,8 @@ void common_hal_mcu_on_next_reset(mcu_runmode_t runmode) {
6161
void common_hal_mcu_reset(void) {
6262
filesystem_flush();
6363
boardctl(BOARDIOC_RESET, 0);
64+
// boardctl is noreturn in this case.
65+
__builtin_unreachable();
6466
}
6567

6668
static const mp_rom_map_elem_t mcu_pin_globals_table[] = {

ports/litex/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ ifeq ($(DEBUG), 1)
3232
OPTIMIZATION_FLAGS ?= -Og
3333
else
3434
CFLAGS += -DNDEBUG -ggdb3
35-
OPTIMIZATION_FLAGS ?= -O2 -fno-inline-functions
35+
OPTIMIZATION_FLAGS ?= -O2
3636
endif
3737

3838
# option to override compiler optimization level, set in boards/$(BOARD)/mpconfigboard.mk

ports/nordic/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ ifeq ($(DEBUG), 1)
3636
CFLAGS += -ggdb3
3737
OPTIMIZATION_FLAGS = -Og
3838
else
39-
OPTIMIZATION_FLAGS ?= -O2 -fno-inline-functions
40-
CFLAGS += -DNDEBUG -ggdb3
39+
OPTIMIZATION_FLAGS ?= -O2
40+
CFLAGS += -DNDEBUG
4141
endif
4242

4343
ifeq ($(NRF_DEBUG_PRINT), 1)

ports/silabs/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ ifeq ($(DEBUG), 1)
7171
CFLAGS += -fno-inline -fno-ipa-sra -Og
7272
else
7373
CFLAGS += -DNDEBUG
74-
OPTIMIZATION_FLAGS ?= -Os -fno-inline-functions
74+
OPTIMIZATION_FLAGS ?= -Os
7575
CFLAGS += -g
7676
endif
7777

ports/stm/Makefile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,7 @@ ifeq ($(DEBUG), 1)
3838
CFLAGS += -fno-inline -fno-ipa-sra
3939
else
4040
CFLAGS += -DNDEBUG
41-
OPTIMIZATION_FLAGS ?= -O2 -fno-inline-functions
42-
CFLAGS += -ggdb3
41+
OPTIMIZATION_FLAGS ?= -O2
4342
endif
4443

4544
# to override compiler optimization level, set in boards/$(BOARD)/mpconfigboard.mk

0 commit comments

Comments
 (0)