This is the mail archive of the gcc@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]

Re: egcs-980315, gen*.c system.h and fatal() using stdarg/varargs



> 	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.



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