Skip to content

Commit

Permalink
Update.
Browse files Browse the repository at this point in the history
	* sysdeps/generic/ldsodefs.h: Add noreturn attribute to
	_dl_reloc_bad_type.
  • Loading branch information
Andreas Jaeger committed Dec 28, 2000
1 parent 11e0f1c commit 8da8e2d
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 16 deletions.
3 changes: 3 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -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."
Expand Down
18 changes: 3 additions & 15 deletions gmon/bb_exit_func.c
Original file line number Diff line number Diff line change
@@ -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).
Expand All @@ -20,25 +20,13 @@
/* __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"


Expand All @@ -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)
Expand Down
1 change: 1 addition & 0 deletions sunrpc/rpc_cout.c
Original file line number Diff line number Diff line change
Expand Up @@ -739,6 +739,7 @@ emit_inline (int indent, declaration * decl, int flag)
f_print (fout, "}\n");
break;
default:
break;
/* ?... do nothing I guess */
}
}
Expand Down
1 change: 1 addition & 0 deletions sunrpc/rpc_hout.c
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ print_funcdef (definition *def)
pprogramdef (def);
break;
default:
break;
/* ?... shouldn't happen I guess */
}
}
Expand Down
3 changes: 2 additions & 1 deletion sysdeps/generic/ldsodefs.h
Original file line number Diff line number Diff line change
Expand Up @@ -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. */
Expand Down

0 comments on commit 8da8e2d

Please sign in to comment.