[llvm-commits] [llvm-gcc-4.2] r43395 - in /llvm-gcc-4.2/trunk/gcc: c-common.c config/i386/i386.c
Dale Johannesen
dalej at apple.com
Fri Oct 26 13:22:52 PDT 2007
Author: johannes
Date: Fri Oct 26 15:22:52 2007
New Revision: 43395
URL: http://llvm.org/viewvc/llvm-project?rev=43395&view=rev
Log:
Remove checks for DECL_RTL a couple places in
inline asm handling; llvm doesn't set that.
Modified:
llvm-gcc-4.2/trunk/gcc/c-common.c
llvm-gcc-4.2/trunk/gcc/config/i386/i386.c
Modified: llvm-gcc-4.2/trunk/gcc/c-common.c
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/c-common.c?rev=43395&r1=43394&r2=43395&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/c-common.c (original)
+++ llvm-gcc-4.2/trunk/gcc/c-common.c Fri Oct 26 15:22:52 2007
@@ -7980,7 +7980,11 @@
variable. */
if (TREE_CODE (arg) == VAR_DECL
&& TREE_STATIC (arg)
- && MEM_P (DECL_RTL (arg)))
+/* APPLE LOCAL begin LLVM */
+/* DECL_RTL does not get set for LLVM */
+/* && MEM_P (DECL_RTL (arg))*/
+ )
+/* APPLE LOCAL end LLVM */
{
/* See assemble_name for details. */
const char *name = IDENTIFIER_POINTER (DECL_ASSEMBLER_NAME (arg));
Modified: llvm-gcc-4.2/trunk/gcc/config/i386/i386.c
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/config/i386/i386.c?rev=43395&r1=43394&r2=43395&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/config/i386/i386.c (original)
+++ llvm-gcc-4.2/trunk/gcc/config/i386/i386.c Fri Oct 26 15:22:52 2007
@@ -20543,7 +20543,11 @@
}
if (TREE_CODE (v) == VAR_DECL
&& TREE_STATIC (v)
- && MEM_P (DECL_RTL (v)))
+/* APPLE LOCAL begin LLVM */
+/* DECL_RTL is not set for LLVM */
+/* && MEM_P (DECL_RTL (v))*/
+ )
+/* APPLE LOCAL end LLVM */
{
note_alternative_entry_points ();
return true;
More information about the llvm-commits
mailing list