This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: libstdc++-v3 PATCH for bootstrap error related to ptrdiff_t
- To: Gerald Pfeifer <pfeifer at dbai dot tuwien dot ac dot at>
- Subject: Re: libstdc++-v3 PATCH for bootstrap error related to ptrdiff_t
- From: Gabriel Dos Reis <gdr at codesourcery dot com>
- Date: 16 Nov 2000 17:54:22 +0100
- Cc: <gcc-patches at gcc dot gnu dot org>
- Organization: CodeSourcery, LLC
- References: <Pine.BSF.4.30.0011161544340.78493-100000@taygeta.dbai.tuwien.ac.at>
Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at> writes:
| I'm afraid your patch
|
| 2000-11-16 Mark Mitchell <mark@codesourcery.com>
|
| * config/c_io_stdio.h (streamsize): Make it a typedef for
| ptrdiff_t.
| (wstreamsize): Likewise.
|
| breaks bootstrap on i386-unknown-freebsd4.1 with --enable-cstdio=stdio and
| also sparc-sun-solaris2.8 seems to be affected, as ptrdiff_t is defined in
| stdlib.h resp. cstddef (according to ISO C++) which we don't include.
Use <stddef.h> -- at some point we'll be showdowing C headers and
using <xxx.h> forms will help avoid nesting namespaces.
Please make that correction and check it in.
Thanks,
-- Gaby
CodeSourcery, LLC http://www.codesourcery.com