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

__eprintf fix [was Re: i686-pc-cygwin32 build of 19980628]

>>>>> "Ian" == Ian Lance Taylor <> 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  <>

	* libgcc2.c (__eprintf): Make args consistent with prototype in

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.  */
 __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);

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