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: 3.4BIB HOST_WIDE_INT size error


Nathanael Nerode wrote:-

> The lazy-proper fix (if I can call it that?) is to introduce a 
> single-precision library for constant integers in tree, RTL, and cpp.  

In 3.3., CPP already gets this stuff right.  It just doesn't handle the
case where the widest target int is strictly greater than twice the
widest host int.  Since this is almost never the case, I didn't deem
it worthwhile doing truly MP stuff.

However, if we do go to arbitrary arithmetic, which would be nice
aestetically at least, we *must not* impact the performance of native
compiles.  Since all this is theoretically determinable at build
time, there should be no run-time performance hit for handling native
efficiently, and crosses less efficiently if the target types make
that necessary.

> Maybe I'll put this on the beginner projects list, since it's another 
> BUILD/HOST/TARGET confusion issue.

I think if you can solve these issues you're a bit more advanced than
"beginner" 8-)

Neil.


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