other/8757: GCC crash when sizeof (long) > sizeof (char *), (splay_tree_compare_fn)strcmp is wrong

Miloslav Trmac mitr@volny.cz
Sat Mar 15 19:16:00 GMT 2003


The following reply was made to PR other/8757; it has been noted by GNATS.

From: Miloslav Trmac <mitr@volny.cz>
To: bangerth@dealii.org, gcc-bugs@gcc.gnu.org, gcc-prs@gcc.gnu.org,
	nobody@gcc.gnu.org, gcc-gnats@gcc.gnu.org
Cc:  
Subject: Re: other/8757: GCC crash when sizeof (long) > sizeof (char *), (splay_tree_compare_fn)strcmp is wrong
Date: Sat, 15 Mar 2003 20:07:54 +0100

 Hello,
 On Sat, Mar 15, 2003 at 06:44:31PM -0000, bangerth@dealii.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



More information about the Gcc-prs mailing list