From: Richard Smith Date: Mon, 9 Dec 2013 07:03:59 +0000 (+0000) Subject: Update compatibility page to list some GCC language extensions that Clang does X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ca4764740a23eda71a452f9ddf21c3893860ed2d;p=clang Update compatibility page to list some GCC language extensions that Clang does not support as a possible reason for choosing GCC instead of Clang (and vice versa). Weaken some of the claimed advantages of Clang in light of GCC improvements. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@196758 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/www/comparison.html b/www/comparison.html index afc321e061..40a0d001b2 100644 --- a/www/comparison.html +++ b/www/comparison.html @@ -51,8 +51,14 @@
  • GCC supports languages that clang does not aim to, such as Java, Ada, FORTRAN, etc.
  • GCC supports more targets than LLVM.
  • +
  • GCC supports many language extensions, some of which are not implemented + by Clang. For instance, in C mode, GCC supports + nested + functions and has an + undocumented + extension allowing VLAs in structs. - +

    Pro's of clang vs GCC: