<div dir="ltr">From include/clang/Frontend/LangStandards.def:<div><br></div><div><div>LANGSTANDARD(c89, "c89",</div><div>             "ISO C 1990",</div><div>             C89 | ImplicitInt)</div></div><div>
<br></div><div><div>LANGSTANDARD(gnu89, "gnu89",</div><div>             "ISO C 1990 with GNU extensions",</div><div>             LineComment | C89 | Digraphs | GNUMode | ImplicitInt)</div></div><div><br>
</div><div style>So... -std=gnu89 adds:</div><div style> - BCPL // comments</div><div style> - C94 / C++ digraphs <: etc</div><div style> - things enabled by GNUMode -- grep the code for GNUMode to find those; they are:</div>
<div style>   - predefined macros without surrounding __ (use -dM -E to see them)</div><div style>   - GNU keywords without __s: inline, asm, typeof</div><div style>   - trigraphs disabled</div><div style>   - don't define __STDC_VERSION__ nor __STRICT_ANSI__</div>
<div style>   - enables special token-pasting rule for ", ## __VA_ARGS__" with empty args (note, this is always enabled outside of c99 modes anyway, since __VA_ARGS__ is an extension there)</div><div style>   - allow main to return something other than 'int'</div>
<div style>   - some cases allowing foldable non-constant expressions in places where a constant expression is required<br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Apr 19, 2013 at 12:20 PM, JonathanN <span dir="ltr"><<a href="mailto:Jonathan.Newton@ni.com" target="_blank">Jonathan.Newton@ni.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
I wasn't sure where to post this question but I'm trying to find out what<br>
extensions GNU89 provides over C89. I did find the<br>
<a href="http://gcc.gnu.org/onlinedocs/gcc/C-Extensions.html" target="_blank">http://gcc.gnu.org/onlinedocs/gcc/C-Extensions.html</a><br>
<<a href="http://gcc.gnu.org/onlinedocs/gcc/C-Extensions.html" target="_blank">http://gcc.gnu.org/onlinedocs/gcc/C-Extensions.html</a>>   website, but I<br>
wasn't sure if these were the GNU89 extensions used by clang when you<br>
specify -std:gnu89. If someone knows of a document or a way in the source to<br>
find this list, please let me know.<br>
<br>
Thanks<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://clang-developers.42468.n3.nabble.com/Finding-List-of-C-Extensions-Used-by-GNU89-tp4031598.html" target="_blank">http://clang-developers.42468.n3.nabble.com/Finding-List-of-C-Extensions-Used-by-GNU89-tp4031598.html</a><br>

Sent from the Clang Developers mailing list archive at Nabble.com.<br>
_______________________________________________<br>
cfe-dev mailing list<br>
<a href="mailto:cfe-dev@cs.uiuc.edu">cfe-dev@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev</a><br>
</blockquote></div><br></div>