Skip to content

Commit b6cb249

Browse files
-O2 for Pico2 builds, -O3 shows a GCC error
When -O3 is used to build LWIP, GCC emits a bogus error while compiling DHCP.C: > ../dhcp.c:1453:30: error: writing 1 byte into a region of size 0 DHCP_OPTIONS_LEN was verified as being DHCP_MIN_OPTIONS_LEN (68U) and not 0 using #ifs and #errors in the dhcp.h header, but GCC somehow forgets this while doing it's checks on O3. Looks to be a bug in GCC to me, so drop to -O2 for RP204 builds.
1 parent 81ae2c0 commit b6cb249

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/build-rp2350.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ elif [ "$BUILD_PARITY" = "odd" ]; then
1515
rem=1
1616
fi
1717

18-
export FQBN=pico:rp2040:rpipico2:flash=4194304_0,arch=arm,freq=150,opt=Optimize3,rtti=Disabled,stackprotect=Disabled,exceptions=Disabled,dbgport=Disabled,dbglvl=None,usbstack=picosdk,ipbtstack=ipv4only,uploadmethod=default
18+
export FQBN=pico:rp2040:rpipico2:flash=4194304_0,arch=arm,freq=150,opt=Optimize2,rtti=Disabled,stackprotect=Disabled,exceptions=Disabled,dbgport=Disabled,dbglvl=None,usbstack=picosdk,ipbtstack=ipv4only,uploadmethod=default
1919
export PICO_BOARD=rp2350
2020

2121
install_arduino nodebug

0 commit comments

Comments
 (0)