Skip to contentSkip to conversation

target-alpha, target-ppc: Remove unnecessary setjmp.h include

PATCH Applied Peter Maydell 3 participants 3 messages Jul 4, 2011 – Jul 12, 2011

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 target-alpha, target-ppc: Remove unnecessary setjmp.h include

Remove the include of setjmp.h from the cpu.h of target-alpha and target-ppc. This is unnecessary because cpu-defs.h already includes this header; this change brings these two targets into line with all the rest.

---
 target-alpha/cpu.h |    2 --
 target-ppc/cpu.h   |    2 --
 2 files changed, 0 insertions(+), 4 deletions(-)
target-alpha/cpu.h +0 -2
index 411bd55..78caa79 100644
@@ -28,8 +28,6 @@
 
 #include "cpu-defs.h"
 
-#include <setjmp.h>
-
 #include "softfloat.h"
 
 #define TARGET_HAS_ICE 1
target-ppc/cpu.h +0 -2
index 84f8ff6..d903366 100644
@@ -75,8 +75,6 @@
 
 #include "cpu-defs.h"
 
-#include <setjmp.h>
-
 #include "softfloat.h"
 
 #define TARGET_HAS_ICE 1
Signature · 1 line
1.7.4.1
Acked-by on v1 1/1
#1 lore raw
Quoted 6 lines · Peter Maydell

Remove the include of setjmp.h from the cpu.h of target-alpha and target-ppc. This is unnecessary because cpu-defs.h already includes this header; this change brings these two targets into line with all the rest.

Yeah, I actually think no code (unless specifically configure'd for it) should include non-local headers (<...> instead of "..."). Of course that would include device/target specific headers as well ;).

Quoted 35 lines

---

target-alpha/cpu.h |    2 --
target-ppc/cpu.h   |    2 --
2 files changed, 0 insertions(+), 4 deletions(-)
target-alpha/cpu.h +0 -2
index 411bd55..78caa79 100644
@@ -28,8 +28,6 @@
 
 #include "cpu-defs.h"
 
-#include <setjmp.h>
-
 #include "softfloat.h"
 
 #define TARGET_HAS_ICE 1
target-ppc/cpu.h +0 -2
index 84f8ff6..d903366 100644
@@ -75,8 +75,6 @@
 
 #include "cpu-defs.h"
 
-#include <setjmp.h>
-
 #include "softfloat.h"
 
 #define TARGET_HAS_ICE 1
Signature · 1 line
1.7.4.1
Applied
#2 lore raw
In reply to Peter Maydell

Thanks, applied.

Quoted 42 lines · Peter Maydell

Remove the include of setjmp.h from the cpu.h of target-alpha and target-ppc. This is unnecessary because cpu-defs.h already includes this header; this change brings these two targets into line with all the rest.

---
 target-alpha/cpu.h |    2 --
 target-ppc/cpu.h   |    2 --

 2 files changed, 0 insertions(+), 4 deletions(-)
target-alpha/cpu.h +0 -2
index 411bd55..78caa79 100644
@@ -28,8 +28,6 @@
 
  #include "cpu-defs.h"
 
-#include <setjmp.h>
-
  #include "softfloat.h"
 
  #define TARGET_HAS_ICE 1
target-ppc/cpu.h +0 -3
index 84f8ff6..d903366 100644
@@ -75,8 +75,6 @@
 
  #include "cpu-defs.h"
 
-#include <setjmp.h>
-
  #include "softfloat.h"
 
  #define TARGET_HAS_ICE 1
--

1.7.4.1