2002-02-10 Daniel Jacobowitz <drow@mvista.com>
* gprof.c: Include "getopt.h" after other includes, so that the proper macros are defined. * gen-c-prog.awk: Emit a prototype for the generated function.
This commit is contained in:
parent
408f8db182
commit
82fe033f4c
3 changed files with 9 additions and 1 deletions
|
@ -1,3 +1,9 @@
|
||||||
|
2002-02-10 Daniel Jacobowitz <drow@mvista.com>
|
||||||
|
|
||||||
|
* gprof.c: Include "getopt.h" after other includes, so that
|
||||||
|
the proper macros are defined.
|
||||||
|
* gen-c-prog.awk: Emit a prototype for the generated function.
|
||||||
|
|
||||||
2002-02-01 Alan Modra <amodra@bigpond.net.au>
|
2002-02-01 Alan Modra <amodra@bigpond.net.au>
|
||||||
|
|
||||||
* configure.in (build_warnings): Add -Wstrict-prototypes
|
* configure.in (build_warnings): Add -Wstrict-prototypes
|
||||||
|
|
|
@ -3,6 +3,7 @@ NR == 1 {
|
||||||
print "/* ==> Do not modify this file!! It is created automatically"
|
print "/* ==> Do not modify this file!! It is created automatically"
|
||||||
printf " from %s using the gen-c-prog.awk script. <== */\n\n", FILE
|
printf " from %s using the gen-c-prog.awk script. <== */\n\n", FILE
|
||||||
print "#include <stdio.h>"
|
print "#include <stdio.h>"
|
||||||
|
print "#include \"ansidecl.h\""
|
||||||
}
|
}
|
||||||
|
|
||||||
{
|
{
|
||||||
|
@ -12,6 +13,7 @@ NR == 1 {
|
||||||
print "}"
|
print "}"
|
||||||
curfun = FUNCTION
|
curfun = FUNCTION
|
||||||
print ""
|
print ""
|
||||||
|
print "void ", FUNCTION, "PARAMS ((FILE *));"
|
||||||
print "void";
|
print "void";
|
||||||
printf "%s (file)\n", FUNCTION
|
printf "%s (file)\n", FUNCTION
|
||||||
print " FILE *file;";
|
print " FILE *file;";
|
||||||
|
|
|
@ -16,7 +16,6 @@
|
||||||
* IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
|
* IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
|
||||||
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
|
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
|
||||||
*/
|
*/
|
||||||
#include "getopt.h"
|
|
||||||
#include "libiberty.h"
|
#include "libiberty.h"
|
||||||
#include "gprof.h"
|
#include "gprof.h"
|
||||||
#include "search_list.h"
|
#include "search_list.h"
|
||||||
|
@ -32,6 +31,7 @@
|
||||||
#include "hist.h"
|
#include "hist.h"
|
||||||
#include "sym_ids.h"
|
#include "sym_ids.h"
|
||||||
#include "demangle.h"
|
#include "demangle.h"
|
||||||
|
#include "getopt.h"
|
||||||
|
|
||||||
static void usage PARAMS ((FILE *, int)) ATTRIBUTE_NORETURN;
|
static void usage PARAMS ((FILE *, int)) ATTRIBUTE_NORETURN;
|
||||||
int main PARAMS ((int, char **));
|
int main PARAMS ((int, char **));
|
||||||
|
|
Loading…
Reference in a new issue