* configure.in (build_warnings): Add -Wstrict-prototypes
-Wmissing-prototypes. * aclocal.m4: Regenerate. * gconfig.in: Regenerate. * configure: Regenerate. * Makefile.am: Run "make dep-am". * Makefile.in: Regenerate.
This commit is contained in:
parent
fb17c22277
commit
66477e8783
7 changed files with 409 additions and 429 deletions
|
@ -1,5 +1,13 @@
|
|||
2002-02-01 Alan Modra <amodra@bigpond.net.au>
|
||||
|
||||
* configure.in (build_warnings): Add -Wstrict-prototypes
|
||||
-Wmissing-prototypes.
|
||||
* aclocal.m4: Regenerate.
|
||||
* gconfig.in: Regenerate.
|
||||
* configure: Regenerate.
|
||||
* Makefile.am: Run "make dep-am".
|
||||
* Makefile.in: Regenerate.
|
||||
|
||||
* alpha.c (alpha_find_call): Warning fixes.
|
||||
* mips.c (mips_find_call): Likewise.
|
||||
* sparc.c (sparc_find_call): Likewise.
|
||||
|
|
|
@ -150,7 +150,7 @@ cg_print.o: cg_print.c $(INCDIR)/libiberty.h $(INCDIR)/ansidecl.h \
|
|||
gprof.h $(BFDDIR)/sysdep.h ../bfd/config.h $(INCDIR)/fopen-same.h \
|
||||
$(INCDIR)/filenames.h ../bfd/bfd.h $(INCDIR)/symcat.h \
|
||||
gconfig.h $(INCDIR)/bin-bugs.h search_list.h source.h \
|
||||
symtab.h cg_arcs.h cg_print.h hist.h utils.h
|
||||
symtab.h cg_arcs.h cg_print.h hist.h utils.h corefile.h
|
||||
corefile.o: corefile.c $(INCDIR)/libiberty.h $(INCDIR)/ansidecl.h \
|
||||
gprof.h $(BFDDIR)/sysdep.h ../bfd/config.h $(INCDIR)/fopen-same.h \
|
||||
$(INCDIR)/filenames.h ../bfd/bfd.h $(INCDIR)/symcat.h \
|
||||
|
@ -199,7 +199,7 @@ sym_ids.o: sym_ids.c $(INCDIR)/libiberty.h $(INCDIR)/ansidecl.h \
|
|||
utils.o: utils.c $(INCDIR)/demangle.h gprof.h $(BFDDIR)/sysdep.h \
|
||||
../bfd/config.h $(INCDIR)/fopen-same.h $(INCDIR)/filenames.h \
|
||||
../bfd/bfd.h $(INCDIR)/symcat.h gconfig.h $(INCDIR)/bin-bugs.h \
|
||||
search_list.h source.h symtab.h cg_arcs.h
|
||||
search_list.h source.h symtab.h cg_arcs.h utils.h
|
||||
i386.o: i386.c gprof.h $(BFDDIR)/sysdep.h $(INCDIR)/ansidecl.h \
|
||||
../bfd/config.h $(INCDIR)/fopen-same.h $(INCDIR)/filenames.h \
|
||||
../bfd/bfd.h $(INCDIR)/symcat.h gconfig.h $(INCDIR)/bin-bugs.h \
|
||||
|
|
|
@ -812,7 +812,7 @@ cg_print.o: cg_print.c $(INCDIR)/libiberty.h $(INCDIR)/ansidecl.h \
|
|||
gprof.h $(BFDDIR)/sysdep.h ../bfd/config.h $(INCDIR)/fopen-same.h \
|
||||
$(INCDIR)/filenames.h ../bfd/bfd.h $(INCDIR)/symcat.h \
|
||||
gconfig.h $(INCDIR)/bin-bugs.h search_list.h source.h \
|
||||
symtab.h cg_arcs.h cg_print.h hist.h utils.h
|
||||
symtab.h cg_arcs.h cg_print.h hist.h utils.h corefile.h
|
||||
corefile.o: corefile.c $(INCDIR)/libiberty.h $(INCDIR)/ansidecl.h \
|
||||
gprof.h $(BFDDIR)/sysdep.h ../bfd/config.h $(INCDIR)/fopen-same.h \
|
||||
$(INCDIR)/filenames.h ../bfd/bfd.h $(INCDIR)/symcat.h \
|
||||
|
@ -861,7 +861,7 @@ sym_ids.o: sym_ids.c $(INCDIR)/libiberty.h $(INCDIR)/ansidecl.h \
|
|||
utils.o: utils.c $(INCDIR)/demangle.h gprof.h $(BFDDIR)/sysdep.h \
|
||||
../bfd/config.h $(INCDIR)/fopen-same.h $(INCDIR)/filenames.h \
|
||||
../bfd/bfd.h $(INCDIR)/symcat.h gconfig.h $(INCDIR)/bin-bugs.h \
|
||||
search_list.h source.h symtab.h cg_arcs.h
|
||||
search_list.h source.h symtab.h cg_arcs.h utils.h
|
||||
i386.o: i386.c gprof.h $(BFDDIR)/sysdep.h $(INCDIR)/ansidecl.h \
|
||||
../bfd/config.h $(INCDIR)/fopen-same.h $(INCDIR)/filenames.h \
|
||||
../bfd/bfd.h $(INCDIR)/symcat.h gconfig.h $(INCDIR)/bin-bugs.h \
|
||||
|
|
34
gprof/aclocal.m4
vendored
34
gprof/aclocal.m4
vendored
|
@ -1,6 +1,6 @@
|
|||
dnl aclocal.m4 generated automatically by aclocal 1.4
|
||||
dnl aclocal.m4 generated automatically by aclocal 1.4-p5
|
||||
|
||||
dnl Copyright (C) 1994, 1995-8, 1999 Free Software Foundation, Inc.
|
||||
dnl Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc.
|
||||
dnl This file is free software; the Free Software Foundation
|
||||
dnl gives unlimited permission to copy and/or distribute it,
|
||||
dnl with or without modifications, as long as this notice is preserved.
|
||||
|
@ -25,24 +25,6 @@ AC_DEFUN([CY_WITH_NLS],)
|
|||
AC_SUBST(INTLLIBS)
|
||||
])
|
||||
|
||||
#serial 1
|
||||
# This test replaces the one in autoconf.
|
||||
# Currently this macro should have the same name as the autoconf macro
|
||||
# because gettext's gettext.m4 (distributed in the automake package)
|
||||
# still uses it. Otherwise, the use in gettext.m4 makes autoheader
|
||||
# give these diagnostics:
|
||||
# configure.in:556: AC_TRY_COMPILE was called before AC_ISC_POSIX
|
||||
# configure.in:556: AC_TRY_RUN was called before AC_ISC_POSIX
|
||||
|
||||
undefine([AC_ISC_POSIX])
|
||||
|
||||
AC_DEFUN(AC_ISC_POSIX,
|
||||
[
|
||||
dnl This test replaces the obsolescent AC_ISC_POSIX kludge.
|
||||
AC_CHECK_LIB(cposix, strerror, [LIBS="$LIBS -lcposix"])
|
||||
]
|
||||
)
|
||||
|
||||
# Do all the work for Automake. This macro actually does too much --
|
||||
# some checks are only needed if your package does certain things.
|
||||
# But this isn't really a big deal.
|
||||
|
@ -52,7 +34,7 @@ AC_DEFUN(AC_ISC_POSIX,
|
|||
dnl Usage:
|
||||
dnl AM_INIT_AUTOMAKE(package,version, [no-define])
|
||||
|
||||
AC_DEFUN(AM_INIT_AUTOMAKE,
|
||||
AC_DEFUN([AM_INIT_AUTOMAKE],
|
||||
[AC_REQUIRE([AC_PROG_INSTALL])
|
||||
PACKAGE=[$1]
|
||||
AC_SUBST(PACKAGE)
|
||||
|
@ -80,7 +62,7 @@ AC_REQUIRE([AC_PROG_MAKE_SET])])
|
|||
# Check to make sure that the build environment is sane.
|
||||
#
|
||||
|
||||
AC_DEFUN(AM_SANITY_CHECK,
|
||||
AC_DEFUN([AM_SANITY_CHECK],
|
||||
[AC_MSG_CHECKING([whether build environment is sane])
|
||||
# Just in case
|
||||
sleep 1
|
||||
|
@ -121,7 +103,7 @@ AC_MSG_RESULT(yes)])
|
|||
|
||||
dnl AM_MISSING_PROG(NAME, PROGRAM, DIRECTORY)
|
||||
dnl The program must properly implement --version.
|
||||
AC_DEFUN(AM_MISSING_PROG,
|
||||
AC_DEFUN([AM_MISSING_PROG],
|
||||
[AC_MSG_CHECKING(for working $2)
|
||||
# Run test in a subshell; some versions of sh will print an error if
|
||||
# an executable is not found, even if stderr is redirected.
|
||||
|
@ -137,7 +119,7 @@ AC_SUBST($1)])
|
|||
|
||||
# Like AC_CONFIG_HEADER, but automatically create stamp file.
|
||||
|
||||
AC_DEFUN(AM_CONFIG_HEADER,
|
||||
AC_DEFUN([AM_CONFIG_HEADER],
|
||||
[AC_PREREQ([2.12])
|
||||
AC_CONFIG_HEADER([$1])
|
||||
dnl When config.status generates a header, we must update the stamp-h file.
|
||||
|
@ -163,7 +145,7 @@ changequote([,]))])
|
|||
|
||||
# serial 1
|
||||
|
||||
AC_DEFUN(AM_MAINTAINER_MODE,
|
||||
AC_DEFUN([AM_MAINTAINER_MODE],
|
||||
[AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
|
||||
dnl maintainer-mode is disabled by default
|
||||
AC_ARG_ENABLE(maintainer-mode,
|
||||
|
@ -180,7 +162,7 @@ AC_DEFUN(AM_MAINTAINER_MODE,
|
|||
|
||||
# Define a conditional.
|
||||
|
||||
AC_DEFUN(AM_CONDITIONAL,
|
||||
AC_DEFUN([AM_CONDITIONAL],
|
||||
[AC_SUBST($1_TRUE)
|
||||
AC_SUBST($1_FALSE)
|
||||
if $2; then
|
||||
|
|
774
gprof/configure
vendored
774
gprof/configure
vendored
File diff suppressed because it is too large
Load diff
|
@ -31,7 +31,7 @@ AC_EXEEXT
|
|||
|
||||
AC_CHECK_HEADERS(sys/gmon_out.h)
|
||||
|
||||
build_warnings="-W -Wall"
|
||||
build_warnings="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
|
||||
AC_ARG_ENABLE(build-warnings,
|
||||
[ --enable-build-warnings Enable build-time compiler warnings if gcc is used],
|
||||
[case "${enableval}" in
|
||||
|
|
|
@ -25,6 +25,9 @@
|
|||
/* Define to `long' if <sys/types.h> doesn't define. */
|
||||
#undef off_t
|
||||
|
||||
/* Define if you need to in order for stat and other things to work. */
|
||||
#undef _POSIX_SOURCE
|
||||
|
||||
/* Define to `unsigned' if <sys/types.h> doesn't define. */
|
||||
#undef size_t
|
||||
|
||||
|
@ -97,6 +100,9 @@
|
|||
/* Define if you have the <nl_types.h> header file. */
|
||||
#undef HAVE_NL_TYPES_H
|
||||
|
||||
/* Define if you have the <stdlib.h> header file. */
|
||||
#undef HAVE_STDLIB_H
|
||||
|
||||
/* Define if you have the <string.h> header file. */
|
||||
#undef HAVE_STRING_H
|
||||
|
||||
|
@ -106,6 +112,12 @@
|
|||
/* Define if you have the <sys/param.h> header file. */
|
||||
#undef HAVE_SYS_PARAM_H
|
||||
|
||||
/* Define if you have the <sys/stat.h> header file. */
|
||||
#undef HAVE_SYS_STAT_H
|
||||
|
||||
/* Define if you have the <sys/types.h> header file. */
|
||||
#undef HAVE_SYS_TYPES_H
|
||||
|
||||
/* Define if you have the <unistd.h> header file. */
|
||||
#undef HAVE_UNISTD_H
|
||||
|
||||
|
|
Loading…
Reference in a new issue