HJ's patch to libio works on Red Hat 4.2/libc 5.3.12

Mumit Khan khan@xraylith.wisc.edu
Mon Oct 13 20:18:00 GMT 1997


hjl@lucon.org (H.J. Lu) writes:
> 
> The example works fine on my machine. From the gdb back strace, it
> looks like there is some mismatch since the code should not even
> be reached.
> 
> If someone can send the complete gdb step through of
> istream& istream::operator>>(double& x), I will take 
> another look.
> 

Think I know what the problem is now. The following files are not 
installed by default now in $prefix/include/g++:
    
    libio.h
    libioP.h
    iostreamP.h
    iostdio.h
    iolibio.h
    floatio.h

I had these files leftover from Sept 24 snapshot, and weren't overwritten
during subsequent snapshot installs. Once I installed these by hand from
current egcs/libio, my simple testcase worked as expected. The reason
that the libio testsuite worked is because it uses -nostdinc++ and then
explicitly includes the libio source in the include path, hence not
looking at the bad copy in the installation tree.

Regards,
Mumit



More information about the Gcc mailing list