[llvm-commits] [llvm-gcc-4.2] r67790 - /llvm-gcc-4.2/trunk/gcc/c-cppbuiltin.c
Dan Gohman
gohman at apple.com
Thu Mar 26 16:33:38 PDT 2009
Author: djg
Date: Thu Mar 26 18:33:38 2009
New Revision: 67790
URL: http://llvm.org/viewvc/llvm-project?rev=67790&view=rev
Log:
Don't define __APPLE_CC__ on non-Darwin targets.
Modified:
llvm-gcc-4.2/trunk/gcc/c-cppbuiltin.c
Modified: llvm-gcc-4.2/trunk/gcc/c-cppbuiltin.c
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/c-cppbuiltin.c?rev=67790&r1=67789&r2=67790&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/c-cppbuiltin.c (original)
+++ llvm-gcc-4.2/trunk/gcc/c-cppbuiltin.c Thu Mar 26 18:33:38 2009
@@ -371,6 +371,7 @@
gcc_assert (!*v || *v == ' ' || *v == '-');
/* LLVM LOCAL no version number */
+#ifdef CONFIG_DARWIN_H
#ifndef LLVM_VERSION_INFO
/* APPLE LOCAL begin Apple version */
@@ -401,7 +402,6 @@
/* LLVM LOCAL begin version number */
#else
-#ifdef CONFIG_DARWIN_H
/* This chunk of code defines __APPLE_CC__ from the version
string. It expects to see a substring of the version string of
the form "build NNNN)", where each N is a digit, and the first
@@ -441,8 +441,8 @@
else
builtin_define_with_value_n ("__APPLE_CC__", vt, q - vt);
}
-#endif /*CONFIG_DARWIN_H*/
#endif /*LLVM_VERSION_INFO*/
+#endif /*CONFIG_DARWIN_H*/
/* LLVM LOCAL end version number */
}
More information about the llvm-commits
mailing list