[llvm-commits] [llvm-gcc-4.2] r46145 - in /llvm-gcc-4.2/trunk/gcc/config/arm: arm.c arm.h bpabi.h
Lauro Ramos Venancio
lauro.venancio at gmail.com
Thu Jan 17 15:05:21 PST 2008
Author: laurov
Date: Thu Jan 17 17:05:21 2008
New Revision: 46145
URL: http://llvm.org/viewvc/llvm-project?rev=46145&view=rev
Log:
Fix the build for arm-linux-gnueabi.
Modified:
llvm-gcc-4.2/trunk/gcc/config/arm/arm.c
llvm-gcc-4.2/trunk/gcc/config/arm/arm.h
llvm-gcc-4.2/trunk/gcc/config/arm/bpabi.h
Modified: llvm-gcc-4.2/trunk/gcc/config/arm/arm.c
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/config/arm/arm.c?rev=46145&r1=46144&r2=46145&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/config/arm/arm.c (original)
+++ llvm-gcc-4.2/trunk/gcc/config/arm/arm.c Thu Jan 17 17:05:21 2008
@@ -15165,13 +15165,14 @@
const char *function_name;
/* Darwin/mach-o: use a stub for dynamic references. */
- if (TARGET_MACHO
- && (flag_pic || MACHO_DYNAMIC_NO_PIC_P)
+#if TARGET_MACHO
+ if ((flag_pic || MACHO_DYNAMIC_NO_PIC_P)
&& ! machopic_data_defined_p (function_rtx))
function_name =
machopic_indirection_name (function_rtx, true);
- else
- function_name = XSTR (function_rtx, 0);
+#else
+ function_name = XSTR (function_rtx, 0);
+#endif
/* APPLE LOCAL ARM end 4745175 */
if (mi_delta < 0)
Modified: llvm-gcc-4.2/trunk/gcc/config/arm/arm.h
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/config/arm/arm.h?rev=46145&r1=46144&r2=46145&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/config/arm/arm.h (original)
+++ llvm-gcc-4.2/trunk/gcc/config/arm/arm.h Thu Jan 17 17:05:21 2008
@@ -31,6 +31,9 @@
#ifndef TARGET_MACHO
#define TARGET_MACHO 0
#endif
+#ifndef MACHO_DYNAMIC_NO_PIC_P
+#define MACHO_DYNAMIC_NO_PIC_P 0
+#endif
/* APPLE LOCAL end ARM darwin target */
/* APPLE LOCAL ARM interworking */
@@ -1830,9 +1833,15 @@
#define SHORT_CALL_FLAG_CHAR '^'
#define LONG_CALL_FLAG_CHAR '#'
+#define ENCODED_SHORT_CALL_ATTR_P(SYMBOL_NAME) \
+ (*(SYMBOL_NAME) == SHORT_CALL_FLAG_CHAR)
+
#define SYMBOL_SHORT_CALL_ATTR_P(SYMBOL) \
(SYMBOL_REF_FLAGS (SYMBOL) & SYMBOL_SHORT_CALL)
+#define ENCODED_LONG_CALL_ATTR_P(SYMBOL_NAME) \
+ (*(SYMBOL_NAME) == LONG_CALL_FLAG_CHAR)
+
#define SYMBOL_LONG_CALL_ATTR_P(SYMBOL) \
(SYMBOL_REF_FLAGS (SYMBOL) & SYMBOL_LONG_CALL)
Modified: llvm-gcc-4.2/trunk/gcc/config/arm/bpabi.h
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/config/arm/bpabi.h?rev=46145&r1=46144&r2=46145&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/config/arm/bpabi.h (original)
+++ llvm-gcc-4.2/trunk/gcc/config/arm/bpabi.h Thu Jan 17 17:05:21 2008
@@ -35,7 +35,9 @@
/* EABI targets should enable interworking by default. */
#undef TARGET_DEFAULT
-#define TARGET_DEFAULT MASK_INTERWORK
+/* LLVM Local begin */
+#define TARGET_DEFAULT (0)
+/* LLVM Local end */
/* The ARM BPABI functions return a boolean; they use no special
calling convention. */
More information about the llvm-commits
mailing list