aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorDan Nicolaescu <dann@ics.uci.edu>1999-09-23 13:37:49 +0000
committerJeff Law <law@gcc.gnu.org>1999-09-23 07:37:49 -0600
commite8f38d1aced2552e8fec58de66b7b95b17c7f75a (patch)
treef2bfa44024c366dafe382b4fc0098eaa05a107c9 /gcc
parent8b0212ca2a52a22c6e81133dfca16be7985917c6 (diff)
downloadgcc-e8f38d1aced2552e8fec58de66b7b95b17c7f75a.zip
gcc-e8f38d1aced2552e8fec58de66b7b95b17c7f75a.tar.gz
gcc-e8f38d1aced2552e8fec58de66b7b95b17c7f75a.tar.bz2
libgcc2.c (num_digits): Add prototype with __attribute__((const)).
* libgcc2.c (num_digits): Add prototype with __attribute__((const)). (__terminate): Add prototype. From-SVN: r29616
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog6
-rw-r--r--gcc/libgcc2.c4
2 files changed, 10 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 1896e34..97c15b3 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,9 @@
+Thu Sep 23 07:37:13 1999 Dan Nicolaescu <dann@ics.uci.edu>
+
+ * libgcc2.c (num_digits): Add prototype with
+ __attribute__((const)).
+ (__terminate): Add prototype.
+
Thu Sep 23 05:32:06 1999 Richard Henderson <rth@cygnus.com>
* builtins.c, dbxout.c, varasm.c: Include tm_p.h.
diff --git a/gcc/libgcc2.c b/gcc/libgcc2.c
index 6e1742e..aa8839b 100644
--- a/gcc/libgcc2.c
+++ b/gcc/libgcc2.c
@@ -1457,6 +1457,8 @@ char *ctime ();
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)
{
@@ -3975,6 +3977,8 @@ label:
#define MESSAGE "pure virtual method called\n"
+extern void __terminate (void) __attribute__ ((__noreturn__));
+
void
__pure_virtual ()
{