diff options
| author | Luc Van Oostenryck <luc.vanoostenryck@gmail.com> | 2019-11-08 02:49:40 +0100 |
|---|---|---|
| committer | Luc Van Oostenryck <luc.vanoostenryck@gmail.com> | 2019-11-09 14:02:03 +0100 |
| commit | 3c3881cf1c68f1b4ec4e5a68fa0aa92e88eb275c (patch) | |
| tree | e22038e2237dd834a6bdc147d33dd7e2c4796e1a /cgcc | |
| parent | 2ec21ceee59e08813403bd0425e493a31e750b00 (diff) | |
| download | sparse-dev-3c3881cf1c68f1b4ec4e5a68fa0aa92e88eb275c.tar.gz | |
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 <luc.vanoostenryck@gmail.com>
Diffstat (limited to 'cgcc')
| -rwxr-xr-x | cgcc | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -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 ( |
