This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
small patches for libgcc2.c
- To: gcc-patches at gcc dot gnu dot org
- Subject: small patches for libgcc2.c
- From: Dan Nicolaescu <dann at ics dot uci dot edu>
- Date: Wed, 22 Sep 1999 00:26:45 -0700
Here are some small patches for libgcc2.c
BTW, are there any plans to split libgcc2.c into files?
It is hard to debug something in there because of the way libgcc2.a is
built...
I can provide a patch that creates a directory gcc/libgcc and
populates it with files, but I have zero understanding of the gcc
build process, so somebody else should do the makefile hackery
needed.
Wed Sep 22 00:16:43 1999 Dan Nicolaescu <dann@ics.uci.edu>
* libgcc2.c (num_digits): Add prototype with
__attribute__((const)).
(__terminate): Add prototype.
*** libgcc2.c~ Fri Sep 17 11:37:47 1999
--- libgcc2.c Wed Sep 22 00:15:21 1999
***************
*** 1457,1462 ****
--- 1457,1464 ----
static struct bb *bb_head;
+ static int num_digits (long value, int base) __attribute__ ((const));
+
/* Return the number of digits needed to print a value */
/* __inline__ */ static int num_digits (long value, int base)
{
***************
*** 3974,3979 ****
--- 3976,3983 ----
#endif /* inhibit_libc */
#define MESSAGE "pure virtual method called\n"
+
+ extern void __terminate (void) __attribute__ ((__noreturn__));
void
__pure_virtual ()