[Ada] Use underscored preprocessor symbols in C files
Eric Botcazou
ebotcazou@adacore.com
Sat May 30 21:54:00 GMT 2015
This changes 4 preprocessor symbols tested in the C files (linux, sun, i386
and sparc) to their underscored variants. Both forms are defined by the
compiler in normal mode, but the former is not in strictly conformant mode and
this is problematic on Solaris now. The other preprocessor symbols tested
already use an underscored form, modulo a couple of exceptions.
Tested on x86_64-suse-linux and i686-pc-solaris2.10, applied on the mainline.
2015-05-30 Eric Botcazou <ebotcazou@adacore.com>
* adaint.c: Test for __linux__ instead of linux and __sun__ instead
of sun. Add missing leading underscore to AIX. Remove #elif 0.
* adaint.h: Likewise.
* cio.c: Likewise.
* cstreams.c: Likewise.
* env.c: Likewise.
* gsocket.h: Likewise.
* init.c: Likewise. Test for __i386__ instead of i386.
* link.c: Likewise.
* s-oscons-tmplt.c: Likewise.
* sysdep.c: Likewise.
* terminals.c: Likewise. Use BSD symbol instead of FREEBSD.
* tracebak.c: Likewise. Test for __sparc__ instead of sparc.
--
Eric Botcazou
-------------- next part --------------
A non-text attachment was scrubbed...
Name: p.diff
Type: text/x-patch
Size: 19596 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20150530/4f21f62c/attachment.bin>
More information about the Gcc-patches
mailing list