This is the mail archive of the gcc-bugs@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: other/8757: GCC crash when sizeof (long) > sizeof (char *), (splay_tree_compare_fn)strcmp is wrong


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


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