From 3c3881cf1c68f1b4ec4e5a68fa0aa92e88eb275c Mon Sep 17 00:00:00 2001 From: Luc Van Oostenryck Date: Fri, 8 Nov 2019 02:49:40 +0100 Subject: cgcc: let sparse define _BIG_ENDIAN In addition of __BIG_ENDIAN__, gcc defines _BIG_ENDIAN on powerpc (32 & 64-bit). cgcc does that too but this may also beeneeded when using sparse itself. So, move this define the the sparse code. Signed-off-by: Luc Van Oostenryck --- cgcc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'cgcc') diff --git a/cgcc b/cgcc index c97085e7..93bdc644 100755 --- a/cgcc +++ b/cgcc @@ -276,8 +276,7 @@ sub add_specs { return (' --arch=x86_64' . &float_types (1, 1, 33, [24,8], [53,11], [113,15])); } elsif ($spec eq 'ppc') { - return (' -D_BIG_ENDIAN' . - ' --arch=ppc' . + return (' --arch=ppc' . &float_types (1, 1, 21, [24,8], [53,11], [113,15])); } elsif ($spec eq 'ppc64') { return ( -- cgit 1.2.3-korg