This is the mail archive of the gcc@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: Issues with testsuite on constant pointer arithmetics


On Wed, May 06, 2009 at 03:42:47PM -0700, Ian Lance Taylor wrote:

> Stelian Pop <stelian@popies.net> writes:
> 
> There is something strange in your trees.  Why did it convert the
> pointers to "long int"?  Why did it not simply convert them to "int"?
> The fact that they are going to be assigned to a "long int" variable
> should not have caused them to convert to "long int".
> 
> Oh, I see it comes from PTRDIFF_TYPE, which defaults to "long int".  Try
> doing #define PTRDIFF_TYPE "int" in your CPU.h file.

Of course, and I thought I did:

On Wed, May 06, 2009 at 06:15:40PM +0200, Stelian Pop wrote:
> #define PTRDIFF_TYPE_SIZE       ((TARGET_8W || TARGET_16) ? "int" : "long int")

... except that there's a typo in there.

Once corrected, all things are back to normal. Thanks, and sorry for the
noise.

Now, where's that brown paper bag...

Stelian.
-- 
Stelian Pop <stelian@popies.net>


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