File: no-caller-saves.patch

package info (click to toggle)
arduino 2%3A1.0.5%2Bdfsg2-4
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 40,280 kB
  • ctags: 18,385
  • sloc: java: 57,238; cpp: 23,031; ansic: 13,695; makefile: 2,315; xml: 468; perl: 201; sh: 156; python: 62
file content (19 lines) | stat: -rw-r--r-- 878 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
Author: Scott Howard <showard@debian.org>
Description: WiFi.cpp won't compile without -fno-caller-saves
Bug: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50925
Bug-Debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=698254

Index: arduino/app/src/processing/app/debug/Compiler.java
===================================================================
--- arduino.orig/app/src/processing/app/debug/Compiler.java	2013-02-01 10:57:01.535264910 -0500
+++ arduino/app/src/processing/app/debug/Compiler.java	2013-02-01 10:57:27.807264371 -0500
@@ -622,6 +622,9 @@
       baseCommandCompilerCPP.add("-I" + (String) includePaths.get(i));
     }
 
+    if (sourceName.contains("WiFi.cpp")) {
+      baseCommandCompilerCPP.add("-fno-caller-saves");
+    }
     baseCommandCompilerCPP.add(sourceName);
     baseCommandCompilerCPP.add("-o");
     baseCommandCompilerCPP.add(objectName);