[llvm-branch-commits] [llvm-gcc-branch] r100569 - in /llvm-gcc-4.2/branches/Apple/Hermes: ./ gcc/c-parser.c

Bob Wilson bob.wilson at apple.com
Tue Apr 6 15:02:49 PDT 2010


Author: bwilson
Date: Tue Apr  6 17:02:49 2010
New Revision: 100569

URL: http://llvm.org/viewvc/llvm-project?rev=100569&view=rev
Log:
--- Merging r100565 into '.':
U    gcc/c-parser.c

Modified:
    llvm-gcc-4.2/branches/Apple/Hermes/   (props changed)
    llvm-gcc-4.2/branches/Apple/Hermes/gcc/c-parser.c

Propchange: llvm-gcc-4.2/branches/Apple/Hermes/
------------------------------------------------------------------------------
    svn:mergeinfo = /llvm-gcc-4.2/trunk:100565

Modified: llvm-gcc-4.2/branches/Apple/Hermes/gcc/c-parser.c
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/branches/Apple/Hermes/gcc/c-parser.c?rev=100569&r1=100568&r2=100569&view=diff
==============================================================================
--- llvm-gcc-4.2/branches/Apple/Hermes/gcc/c-parser.c (original)
+++ llvm-gcc-4.2/branches/Apple/Hermes/gcc/c-parser.c Tue Apr  6 17:02:49 2010
@@ -5643,8 +5643,17 @@
 	  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");
+#endif
+/* LLVM LOCAL end */
 	  expr.value = c_finish_stmt_expr (stmt);
 	  expr.original_code = ERROR_MARK;
 	}





More information about the llvm-branch-commits mailing list