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: Fix some testsuite failures on x86-64


On Tue, Nov 11, 2003 at 04:45:32PM +0100, Andreas Jaeger wrote:
> -  ASSERT_NOT_NPC ((void *)(0, 0)); /* { dg-bogus "incompatible" 
> +  ASSERT_NOT_NPC ((void *)(0, 0L)); /* { dg-bogus "incompatible" 

This will similarly fail for 16-bit targets with 32-bit long.

I suggests something like

#ifdef _LP64
#define ZERO 0L
#else
#defone ZERO 0
#endif


r~


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