]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Update.
authorAndreas Jaeger <aj@suse.de>
Thu, 28 Dec 2000 10:35:17 +0000 (10:35 +0000)
committerAndreas Jaeger <aj@suse.de>
Thu, 28 Dec 2000 10:35:17 +0000 (10:35 +0000)
* sysdeps/generic/ldsodefs.h: Add noreturn attribute to
_dl_reloc_bad_type.

ChangeLog
gmon/bb_exit_func.c
sunrpc/rpc_cout.c
sunrpc/rpc_hout.c
sysdeps/generic/ldsodefs.h

index 96d2a13473aea94fa0000429db18235df4494d25..79dd0e470fa2a61f86bcb5df5fe559e4eef26124 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2000-12-28  Andreas Jaeger  <aj@suse.de>
 
+       * sysdeps/generic/ldsodefs.h: Add noreturn attribute to
+       _dl_reloc_bad_type.
+
        * sunrpc/rpc_hout.c (print_funcdef): Add break statement to shut
        up GCC's warning about "deprecated use of label at end of compound
        statement."
index 4ba79885c1918998cd3ffa33f8d656a07298635f..f0be62d106d99993699f09ac6981c3e3c5bf8b7d 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 1996, 1997, 1998 Free Software Foundation, Inc.
+/* Copyright (C) 1996, 1997, 1998, 2000 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Contributed by David Mosberger (davidm@cs.arizona.edu).
 
 /* __bb_exit_func() dumps all the basic-block statistics linked into
    the __bb_head chain to .d files.  */
 
+#include <sys/gmon.h>
 #include <sys/gmon_out.h>
 #include <sys/types.h>
 
 #include <stdio.h>
 #include <string.h>
 
-/* structure emitted by -a */
-struct bb
-  {
-    long int zero_word;
-    const char *filename;
-    long int *counts;
-    long int ncounts;
-    struct bb *next;
-    const unsigned long        int *addresses;
-  };
-
-extern struct bb *__bb_head;   /* from gmon.c */
-
 #define OUT_NAME       "gmon.out"
 
 
@@ -47,7 +35,7 @@ __bb_exit_func (void)
 {
   const int version = GMON_VERSION;
   struct gmon_hdr ghdr;
-  struct bb *ptr;
+  struct __bb *ptr;
   FILE *fp;
   fp = fopen (OUT_NAME, "wb");
   if (!fp)
index 808a5053cde5a6ceeb13fcf802259ba2a05c66b9..44027ea39ef733d57b3d49267086f478563531f7 100644 (file)
@@ -739,6 +739,7 @@ emit_inline (int indent, declaration * decl, int flag)
       f_print (fout, "}\n");
       break;
     default:
+      break;
       /* ?... do nothing I guess */
     }
 }
index a41a7e7c91f0c1191a9a345e762915978a8c686e..39bfae8324bf8a78d85757a8778af28aba50af76 100644 (file)
@@ -136,6 +136,7 @@ print_funcdef (definition *def)
       pprogramdef (def);
       break;
     default:
+      break;
       /* ?... shouldn't happen I guess */
     }
 }
index 032e26e179717c03b1e026df6494094289f3d7fa..d7ce4d0e64721971a3352102be9d99ec491c72ac 100644 (file)
@@ -391,7 +391,8 @@ extern void _dl_relocate_object (struct link_map *map,
    PLT is nonzero if this was a PLT reloc; it just affects the message.  */
 extern void _dl_reloc_bad_type (struct link_map *map,
                                uint_fast8_t type, int plt)
-     internal_function;
+     internal_function
+     __attribute__ ((__noreturn__));
 
 /* Check the version dependencies of all objects available through
    MAP.  If VERBOSE print some more diagnostics.  */