[llvm-branch-commits] [llvm-gcc-branch] r109466 - /llvm-gcc-4.2/branches/Apple/Morbo/gcc/config/darwin-c.c

Dale Johannesen dalej at apple.com
Mon Jul 26 16:03:00 PDT 2010


Author: johannes
Date: Mon Jul 26 18:03:00 2010
New Revision: 109466

URL: http://llvm.org/viewvc/llvm-project?rev=109466&view=rev
Log:
--- Merging r109465 into '.':
U    gcc/config/darwin-c.c


Modified:
    llvm-gcc-4.2/branches/Apple/Morbo/gcc/config/darwin-c.c

Modified: llvm-gcc-4.2/branches/Apple/Morbo/gcc/config/darwin-c.c
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/branches/Apple/Morbo/gcc/config/darwin-c.c?rev=109466&r1=109465&r2=109466&view=diff
==============================================================================
--- llvm-gcc-4.2/branches/Apple/Morbo/gcc/config/darwin-c.c (original)
+++ llvm-gcc-4.2/branches/Apple/Morbo/gcc/config/darwin-c.c Mon Jul 26 18:03:00 2010
@@ -416,14 +416,16 @@
 void
 darwin_pragma_opt_level  (cpp_reader *pfile ATTRIBUTE_UNUSED)
 {
-  warning (0, "ignoring '#pragma optimization_level'");  
+  if (warn_unknown_pragmas > in_system_header)
+    warning (OPT_Wunknown_pragmas, "ignoring #pragma optimization_level");  
   return;
 }
 
 void
 darwin_pragma_opt_size  (cpp_reader *pfile ATTRIBUTE_UNUSED)
 {
-  warning (0, "ignoring '#pragma optimize_for_size'");
+  if (warn_unknown_pragmas > in_system_header)
+    warning (OPT_Wunknown_pragmas, "ignoring #pragma optimize_for_size");
   return;
 }
 /* LLVM LOCAL end disable optimization pragmas */





More information about the llvm-branch-commits mailing list