This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: PATCH: Add LWP support for upcoming AMD Orochi processor.


On Mon, Dec 14, 2009 at 08:38:20PM +0100, Uros Bizjak wrote:
> Strangely, with attached patch, I got a couple of errors:
> 
> In file included from 
> /home/uros/gcc-build/gcc/testsuite/g++/../../include/x86intrin.h:77:0,
>                  from 
> /home/uros/gcc-svn/trunk/gcc/testsuite/g++.dg/other/i386-2.C:8:
> <built-in>: In function 'void* __slwpcb()':
> <built-in>:0:0: error: too few arguments to function 'void* 
> __builtin_ia32_slwpcb(void)'
> /home/uros/gcc-build/gcc/testsuite/g++/../../include/lwpintrin.h:44:33: 
> error: at this point in file

Here is a fix for that.  Committing as obvious...

2009-12-14  Jakub Jelinek  <jakub@redhat.com>

	* config/i386/i386-builtin-types.def (PVOID_FTYPE_VOID): Use
	DEF_FUNCTION_TYPE (PVOID) instead of DEF_FUNCTION_TYPE (PVOID, VOID).

--- gcc/config/i386/i386-builtin-types.def.jj	2009-12-14 17:50:14.000000000 +0100
+++ gcc/config/i386/i386-builtin-types.def	2009-12-14 20:48:07.000000000 +0100
@@ -129,6 +129,7 @@ DEF_FUNCTION_TYPE (FLOAT128)
 DEF_FUNCTION_TYPE (UINT64)
 DEF_FUNCTION_TYPE (UNSIGNED)
 DEF_FUNCTION_TYPE (VOID)
+DEF_FUNCTION_TYPE (PVOID)
 
 DEF_FUNCTION_TYPE (FLOAT, FLOAT)
 DEF_FUNCTION_TYPE (FLOAT128, FLOAT128)
@@ -197,7 +198,6 @@ DEF_FUNCTION_TYPE (V8SI, V4SI)
 DEF_FUNCTION_TYPE (V8SI, V8SF)
 DEF_FUNCTION_TYPE (VOID, PCVOID)
 DEF_FUNCTION_TYPE (VOID, PVOID)
-DEF_FUNCTION_TYPE (PVOID, VOID)
 DEF_FUNCTION_TYPE (VOID, UNSIGNED)
 
 DEF_FUNCTION_TYPE (DI, V2DI, INT)


	Jakub


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]