[llvm-commits] [gcc-plugin] r76570 - /gcc-plugin/trunk/i386/llvm-i386-target.h

Duncan Sands baldrick at free.fr
Tue Jul 21 05:24:11 PDT 2009


Author: baldrick
Date: Tue Jul 21 07:24:08 2009
New Revision: 76570

URL: http://llvm.org/viewvc/llvm-project?rev=76570&view=rev
Log:
Correct a linkage type.  Rename contains_128bit_aligned_vector_p
to contains_aligned_value_p, like in gcc mainline (doesn't help
much though because this is a static function in mainline).

Modified:
    gcc-plugin/trunk/i386/llvm-i386-target.h

Modified: gcc-plugin/trunk/i386/llvm-i386-target.h
URL: http://llvm.org/viewvc/llvm-project/gcc-plugin/trunk/i386/llvm-i386-target.h?rev=76570&r1=76569&r2=76570&view=diff

==============================================================================
--- gcc-plugin/trunk/i386/llvm-i386-target.h (original)
+++ gcc-plugin/trunk/i386/llvm-i386-target.h Tue Jul 21 07:24:08 2009
@@ -45,7 +45,7 @@
    `inreg` parameter attribute */
 #define LLVM_TARGET_ENABLE_REGPARM
 
-extern int ix86_regparm;
+extern "C" int ix86_regparm;
 
 #define LLVM_TARGET_INIT_REGPARM(local_regparm, local_fp_regparm, type) \
   {                                                             \
@@ -99,10 +99,10 @@
 /* On x86-32 objects containing SSE vectors are 16 byte aligned, everything
    else 4.  On x86-64 vectors are 8-byte aligned, everything else can
    be figured out by the back end. */
-extern "C" bool contains_128bit_aligned_vector_p(tree);
+extern "C" bool contains_aligned_value_p(tree);
 #define LLVM_BYVAL_ALIGNMENT(T) \
   (TARGET_64BIT ? (TREE_CODE(T)==VECTOR_TYPE ? 8 : 0) : \
-   TARGET_SSE && contains_128bit_aligned_vector_p(T) ? 16 : 4)
+   TARGET_SSE && contains_aligned_value_p(T) ? 16 : 4)
 
 extern tree llvm_x86_should_return_selt_struct_as_scalar(tree);
 





More information about the llvm-commits mailing list