[llvm-commits] [llvm-gcc-4.2] r100624 - /llvm-gcc-4.2/trunk/gcc/c-parser.c

Bob Wilson bob.wilson at apple.com
Wed Apr 7 08:36:05 PDT 2010

Author: bwilson
Date: Wed Apr  7 10:36:05 2010
New Revision: 100624

URL: http://llvm.org/viewvc/llvm-project?rev=100624&view=rev
Revert my change to disable the pedantic warning about statement expressions.
There is a better way.


Modified: llvm-gcc-4.2/trunk/gcc/c-parser.c
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/c-parser.c?rev=100624&r1=100623&r2=100624&view=diff
--- llvm-gcc-4.2/trunk/gcc/c-parser.c (original)
+++ llvm-gcc-4.2/trunk/gcc/c-parser.c Wed Apr  7 10:36:05 2010
@@ -5643,17 +5643,8 @@
 	  c_parser_compound_statement_nostart (parser);
 	  c_parser_skip_until_found (parser, CPP_CLOSE_PAREN,
 				     "expected %<)%>");
-/* LLVM LOCAL begin */
-          /* Disable this warning for the sake of ARM NEON intrinsics, which
-             are implemented as macros with statement expressions in llvm-gcc
-             since the inliner is not run later and the arguments need to be
-             visible to the front-end.  Otherwise, it is not possible to
-             compile NEON intrinsics with "-pedantic -Werror".  */
-#ifndef ENABLE_LLVM
 	  if (pedantic)
 	    pedwarn ("ISO C forbids braced-groups within expressions");
-/* LLVM LOCAL end */
 	  expr.value = c_finish_stmt_expr (stmt);
 	  expr.original_code = ERROR_MARK;

More information about the llvm-commits mailing list