__eprintf fix [was Re: i686-pc-cygwin32 build of 19980628]
Dave Love
d.love@dl.ac.uk
Fri Jul 3 03:46:00 GMT 1998
>>>>> "Ian" == Ian Lance Taylor <ian@cygnus.com> writes:
Ian> In gcc/assert.h, __eprintf is declared to take a third argument
Ian> of type `unsigned', but in gcc/libgcc2.c, the third argument is
Ian> of type `int'. One of those should change to match the other.
This looks to me like the best way round.
Fri Jul 3 11:39:08 1998 Dave Love <d.love@dl.ac.uk>
* libgcc2.c (__eprintf): Make args consistent with prototype in
assert.h.
Index: libgcc2.c
===================================================================
RCS file: /egcs/carton/cvsfiles/egcs/gcc/libgcc2.c,v
retrieving revision 1.44
diff -u -p -F'^[_a-zA-Z0-9$]+ -r1.44 libgcc2.c
--- libgcc2.c 1998/06/23 10:51:43 1.44
+++ libgcc2.c 1998/07/03 10:42:12
@@ -1405,7 +1405,8 @@ __builtin_saveregs ()
/* This is used by the `assert' macro. */
void
__eprintf (const char *string, const char *expression,
- int line, const char *filename)
+ unsigned line, const char *filename)
+ __attribute__ ((noreturn))
{
fprintf (stderr, string, expression, line, filename);
fflush (stderr);
More information about the Gcc-patches
mailing list