target-alpha, target-ppc: Remove unnecessary setjmp.h include
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
@@ -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
@@ -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
Quoted 6 lines · Peter Maydell
Remove the include of
setjmp.hfrom thecpu.hof target-alpha and target-ppc. This is unnecessary becausecpu-defs.halready includes this header; this change brings these two targets into line with all the rest.Signed-off-by Peter Maydell <[email protected]>
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@@ -28,8 +28,6 @@#include "cpu-defs.h" -#include <setjmp.h> -#include "softfloat.h" #define TARGET_HAS_ICE 1target-ppc/cpu.h +0
-2@@ -75,8 +75,6 @@#include "cpu-defs.h" -#include <setjmp.h> -#include "softfloat.h" #define TARGET_HAS_ICE 1Signature · 1 line
1.7.4.1
Blue Swirl
AppliedThanks, applied.
Quoted 42 lines · Peter Maydell
Remove the include of
setjmp.hfrom thecpu.hof target-alpha and target-ppc. This is unnecessary becausecpu-defs.halready includes this header; this change brings these two targets into line with all the rest.Signed-off-by Peter Maydell <[email protected]>---
target-alpha/cpu.h | 2 --
target-ppc/cpu.h | 2 --2 files changed, 0 insertions(+), 4 deletions(-)target-alpha/cpu.h +0
-2@@ -28,8 +28,6 @@ #include "cpu-defs.h" -#include <setjmp.h> - #include "softfloat.h" #define TARGET_HAS_ICE 1target-ppc/cpu.h +0
-3@@ -75,8 +75,6 @@ #include "cpu-defs.h" -#include <setjmp.h> - #include "softfloat.h" #define TARGET_HAS_ICE 1 --1.7.4.1