[llvm-commits] [llvm-gcc-4.2] r100625 - /llvm-gcc-4.2/trunk/gcc/config/arm/neon-gen.ml
Bob Wilson
bob.wilson at apple.com
Wed Apr 7 08:37:03 PDT 2010
Author: bwilson
Date: Wed Apr 7 10:37:03 2010
New Revision: 100625
URL: http://llvm.org/viewvc/llvm-project?rev=100625&view=rev
Log:
Add an __extension__ keyword before statement expressions to avoid
warnings in -pedantic mode.
Modified:
llvm-gcc-4.2/trunk/gcc/config/arm/neon-gen.ml
Modified: llvm-gcc-4.2/trunk/gcc/config/arm/neon-gen.ml
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/config/arm/neon-gen.ml?rev=100625&r1=100624&r2=100625&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/config/arm/neon-gen.ml (original)
+++ llvm-gcc-4.2/trunk/gcc/config/arm/neon-gen.ml Wed Apr 7 10:37:03 2010
@@ -93,15 +93,16 @@
| Arity4 (ret, arg0, arg1, arg2, arg3) ->
Format.printf "%s(__a, __b, __c, __d)" fnname
end;
- Format.printf " \\@,";
let rec print_lines = function
[] -> ()
| [line] -> Format.printf "%s; \\" line
| line::lines -> Format.printf "%s; \\@," line; print_lines lines in
let print_macro_body = function
- [] -> ()
- | [line] -> Format.printf "%s" line
- | line::lines -> Format.printf "@[<v 3>({ \\@,%s; \\@," line;
+ [] -> Format.printf " \\@,";
+ | [line] -> Format.printf " \\@,";
+ Format.printf "%s" line
+ | line::lines -> Format.printf " __extension__ \\@,";
+ Format.printf "@[<v 3>({ \\@,%s; \\@," line;
print_lines lines;
Format.printf "@]@, })" in
print_macro_body body;
More information about the llvm-commits
mailing list