This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: egcs-980315, gen*.c system.h and fatal() using stdarg/varargs
- To: "Kaveh R. Ghazi" <ghazi at caip dot rutgers dot edu>
- Subject: Re: egcs-980315, gen*.c system.h and fatal() using stdarg/varargs
- From: John Carr <jfc at mit dot edu>
- Date: Sun, 29 Mar 1998 08:14:23 -0500
- cc: egcs at cygnus dot com
> All of these individual hacks play tricks with type mismatches
> on arguments passed to fprintf. None of them accounts for the actual
> size of the argument passed. Yet somehow we haven't had a bug report
> against this.
I sent a bug report about the C++ error handler a couple months ago.
Compile C++ with HOST_WIDE_INT = long long. It will crash as soon as
it prints a message because it assumes that HOST_WIDE_INT, int, long,
and pointer are all the same size and passed the same way to functions.