This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: other/8757: GCC crash when sizeof (long) > sizeof (char *), (splay_tree_compare_fn)strcmp is wrong
- From: Miloslav Trmac <mitr at volny dot cz>
- To: bangerth at dealii dot org, gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org,nobody at gcc dot gnu dot org, gcc-gnats at gcc dot gnu dot org
- Date: Sat, 15 Mar 2003 20:07:54 +0100
- Subject: Re: other/8757: GCC crash when sizeof (long) > sizeof (char *), (splay_tree_compare_fn)strcmp is wrong
- References: <20030315184431.19050.qmail@sources.redhat.com>
Hello,
On Sat, Mar 15, 2003 at 06:44:31PM -0000, bangerth at dealii dot org wrote:
> Do you have a small testcase that triggers the bug, so that
> we can see whether the patch is indeed necessary? I can
> confirm that the patch has at least not been applied by
> someone.
Not really, since it involves setting up an environment where
sizeof (long) > sizeof (char *). In that environment,
gcc would crash compiling even trivial "hello, world".
In my case, it was http://www.fw.cz/~mitr/maxos.html
(snapshot available at http://carolina.mff.cuni.cz/~trmac/MaxOS,
including patched gcc). If someone would like to reproduce this
independently, I can dig up the necessary gcc patches (new
target OS) and create "before" and "after" iso images.
The patch seems obvious to me though ;-)
Mirek