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: Merge C++ conversion into trunk (4/6 - hash table rewrite)


On Thu, 16 Aug 2012, Paolo Carlini wrote:

> Hi,
> 
> I have another "out of curiosity"-type question ;)
> 
> On 08/16/2012 11:19 AM, Richard Guenther wrote:
> > 
> > !
> > ! template <typename Element>
> > ! inline int
> > ! pointer_hash<Element>::equal (const T *existing,
> > ! 			      const T *candidate)
> > ! {
> > !   return existing == candidate;
> >    }
> are these uses in the new code of int instead of bool intended or
> "historical"? Seem weird, definitely from the C++ (but even from the C) point
> of view.

Historical, copying what libiberty htab did.

Richard.


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