Package: arduino-core-avr / 1.8.6+dfsg-2

debian-hacks/optimize-fno-jump-tables.diff Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
Description: Add -fno-jump-tables to optimization flags
 Original author: Scott Ashcroft <scott.ashcroft@hotmail.com>
Author: Matthias Geiger <werdahias@debian.org>
Origin: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1086256 
Forwarded: not-needed 
Last-Update: 2025-03-19
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/

--- a/bootloaders/atmega8/Makefile
+++ b/bootloaders/atmega8/Makefile
@@ -26,7 +26,7 @@
 
 
 OBJ        = $(PROGRAM).o
-OPTIMIZE   = -Os -funsigned-char -funsigned-bitfields -fno-inline-small-functions
+OPTIMIZE   = -Os -funsigned-char -funsigned-bitfields -fno-inline-small-functions -fno-jump-tables
 
 DEFS       = -DF_CPU=16000000 -DBAUD_RATE=19200
 LIBS       =