diff options
author | Frank Ch. Eigler <fche@redhat.com> | 2004-10-04 17:33:54 +0000 |
---|---|---|
committer | Frank Ch. Eigler <fche@gcc.gnu.org> | 2004-10-04 17:33:54 +0000 |
commit | 07c2f075fc06014700d6bea35c634fc5e1ca09ce (patch) | |
tree | 57606334dc29196000e1c06229646ad4e857de7d /libmudflap/mf-runtime.c | |
parent | 8f920ef7f2d9abbc818cff50621155d03eea6c73 (diff) | |
download | gcc-07c2f075fc06014700d6bea35c634fc5e1ca09ce.tar.gz |
configure.ac: Look for more headers & functions.
2004-10-04 Frank Ch. Eigler <fche@redhat.com>
* configure.ac: Look for more headers & functions.
* mf-hooks2.c (getmntent, inet_ntoa, getproto*): New wrapper functions.
* mf-runtime.h.in: Add new "#pragma redefine_extname"s for them.
* mf-runtime.c (options): Clean up integer signedness warnings.
(main): Add a declaration to fix a warning.
* mf-hooks3.c (pthread_exit): Add not-reached exit() to wrapper.
* configure, config.h.in: Regenerated.
From-SVN: r88517
Diffstat (limited to 'libmudflap/mf-runtime.c')
-rw-r--r-- | libmudflap/mf-runtime.c | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/libmudflap/mf-runtime.c b/libmudflap/mf-runtime.c index 312963b017d..a0f9f739f53 100644 --- a/libmudflap/mf-runtime.c +++ b/libmudflap/mf-runtime.c @@ -310,36 +310,36 @@ static struct option set_option, read_integer_option, } type; - int value; - int *target; + unsigned value; + unsigned *target; } options [] = { {"mode-nop", "mudflaps do nothing", - set_option, (int)mode_nop, (int *)&__mf_opts.mudflap_mode}, + set_option, (unsigned)mode_nop, (unsigned *)&__mf_opts.mudflap_mode}, {"mode-populate", "mudflaps populate object tree", - set_option, (int)mode_populate, (int *)&__mf_opts.mudflap_mode}, + set_option, (unsigned)mode_populate, (unsigned *)&__mf_opts.mudflap_mode}, {"mode-check", "mudflaps check for memory violations", - set_option, (int)mode_check, (int *)&__mf_opts.mudflap_mode}, + set_option, (unsigned)mode_check, (unsigned *)&__mf_opts.mudflap_mode}, {"mode-violate", "mudflaps always cause violations (diagnostic)", - set_option, (int)mode_violate, (int *)&__mf_opts.mudflap_mode}, + set_option, (unsigned)mode_violate, (unsigned *)&__mf_opts.mudflap_mode}, {"viol-nop", "violations do not change program execution", - set_option, (int)viol_nop, (int *)&__mf_opts.violation_mode}, + set_option, (unsigned)viol_nop, (unsigned *)&__mf_opts.violation_mode}, {"viol-abort", "violations cause a call to abort()", - set_option, (int)viol_abort, (int *)&__mf_opts.violation_mode}, + set_option, (unsigned)viol_abort, (unsigned *)&__mf_opts.violation_mode}, {"viol-segv", "violations are promoted to SIGSEGV signals", - set_option, (int)viol_segv, (int *)&__mf_opts.violation_mode}, + set_option, (unsigned)viol_segv, (unsigned *)&__mf_opts.violation_mode}, {"viol-gdb", "violations fork a gdb process attached to current program", - set_option, (int)viol_gdb, (int *)&__mf_opts.violation_mode}, + set_option, (unsigned)viol_gdb, (unsigned *)&__mf_opts.violation_mode}, {"trace-calls", "trace calls to mudflap runtime library", set_option, 1, &__mf_opts.trace_mf_calls}, @@ -728,6 +728,7 @@ __wrap_main (int argc, char* argv[]) { extern char **environ; extern int main (); + extern int __real_main (); static int been_here = 0; if (__mf_opts.heur_std_data && ! been_here) |