Date: Mon, 2 Sep 2013 09:28:37 +0100 From: David Chisnall <theraven@freebsd.org> To: Matthew Windsor <mbw500@york.ac.uk> Cc: Justin Edward Muniz <jmuniz@freebsd.org>, soc-status@freebsd.org, Eitan Adler <eadler@freebsd.org> Subject: Re: GSoC Status: Week 11 Message-ID: <2DA4D21D-1740-45F2-9966-59FC21004015@freebsd.org> In-Reply-To: <CAFxS2CiHBj2BzDGMDQHU7qwsURHHWYNuSYk=EpWH_SWjTwYF3A@mail.gmail.com> References: <CAFxS2Cir5QMU2xKYbGpxSu5jLyEUs%2BBnEzv2stoNw%2BO=95Q_pA@mail.gmail.com> <CAF6rxgkK6HOY3ErR5T4coDO3ORGtzf5jN-gg13JbCSKU6vtTkg@mail.gmail.com> <440E5361-BC33-49DD-B51D-C77E9880BD1A@FreeBSD.org> <CAFxS2CiHBj2BzDGMDQHU7qwsURHHWYNuSYk=EpWH_SWjTwYF3A@mail.gmail.com>
index | next in thread | previous in thread | raw e-mail
[-- Attachment #1 --] On 2 Sep 2013, at 09:21, Matthew Windsor <mbw500@york.ac.uk> wrote: > It's fine, the only feature I was using from C11 was anonymous unions, > and the code that used them has since been stripped out, so there > isn't any reason to identify as C11. (Besides, I think anonymous > unions are a GNU extension to C89/C99 anyway - I'm sure I've seen > pkgng using them somewhere and I assume pkgng isn't C11, but I could > be wrong) Yes, anonymous unions are a GCC extension, so they'll work with both clang and gcc 4.2.1 >> Also, note that we have tried to ensure that most C11 features (with _Generic being the big exception) work even with our ancient GCC. > > I'm not sure if I was doing something wrong, but when I tried to > compile with --std=c11 on GCC (4.2.1, FreeBSD 9) I got 'cc1: error: > unrecognized command line option "-std=c11"'. This worked fine with > clang. Correct. The compiler doesn't know about the c11 dialect, however most c11 code should compile with -std=gnu99. Things like anonymous unions are GNU extensions, things like _Static_assert, _Thread_local and so on are macros defined in cdefs.h. David [-- Attachment #2 --] -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.18 (Darwin) Comment: GPGTools - http://gpgtools.org iQIcBAEBAgAGBQJSJEw1AAoJEKx65DEEsqIdhM8P/2fq4sjQuyfXWp7SqJELtezu SYsMbqDLCegmpbTmVEkPMOU0Ib8aaYP4LVYOXm57pRkePprKriC5EFPqXpzD1YYD tBfBveqJ58ScTnfnc0bUCOd4d4XNm6EX+XPXBSaD5hNjRd1sTrrxazan7zQhSnwl rXxSJh/0YdG/kkF93eXwG+XASqpLh/cCgf4plqMXX8DHt0qOhnpiCLO/dfMUqd43 yYba0Xnqk/LFVVla2EvE/ZP4byWAMT5v15dRQk3w5d8R8utrpV+znvtJsBf32Oqe rpMtzTPb2dFYvlmd89VoDUyT60WgrMv6akXxNg24KB3n6QpY1S1Msh0kqjJKluj+ lv4kH4kWczw5IIJpEcyJN1pKuz2XnaKHvSgp0AkOTJiI3xQJHiDkjvYYFcpLDdD/ ZtyyyAX0Lt2J2x9FeVDhZOwiLBrxtH8KBVWp69g3vvzVmpEFNuqFu3UE0oXUxNcm nnC96x6hvtj6t3nDo858gXCPHTrA/j+towAb1owaF42H83sweM4ijBrEY19KZ/p1 DmDcJFb9Au64CQC3oX/qQNocgAsBRTCVV3KXr7jO42jNIWGd/KlhKG/I3CB7F+hW +LhwzqcR6kkrJYP1km6r4vSnpEBfuTfCcRpJr9cEFdYvFcLYZ5MSDPp+r9LhemIQ MxZheQlINm4efXj0UPzR =4Fn1 -----END PGP SIGNATURE-----home | help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?2DA4D21D-1740-45F2-9966-59FC21004015>
