diff options
author | Blue Swirl <blauwirbel@gmail.com> | 2008-12-17 22:01:17 +0300 |
---|---|---|
committer | Alexey Zaytsev <alexey.zaytsev@gmail.com> | 2008-12-18 20:30:22 +0300 |
commit | f8461c5cf3a66ad16084082367feac23c8cab490 (patch) | |
tree | de44759fefc608cdb70d0e5911ad68f7b14153ab /cgcc | |
parent | Sparc64 (Sparc V9, LP64) support (diff) | |
download | sparse-f8461c5cf3a66ad16084082367feac23c8cab490.tar.gz sparse-f8461c5cf3a66ad16084082367feac23c8cab490.tar.bz2 sparse-f8461c5cf3a66ad16084082367feac23c8cab490.zip |
OpenBSD support
This patch adds OpenBSD support to sparse.
Acked-by: Christopher Li <sparse@chrisli.org>
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'cgcc')
-rwxr-xr-x | cgcc | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -221,6 +221,9 @@ sub add_specs { } elsif ($spec eq 'linux') { return &add_specs ('unix') . ' -D__linux__=1 -D__linux=1 -Dlinux=linux'; + } elsif ($spec eq 'openbsd') { + return &add_specs ('unix') . + ' -D__OpenBSD__=1'; } elsif ($spec eq 'unix') { return ' -Dunix=1 -D__unix=1 -D__unix__=1'; } elsif ( $spec =~ /^cygwin/) { |