#include <stdio.h>
#include <errno.h>
#include <setjmp.h>
+#if HAVE_STDLIB_H
+#include <stdlib.h>
+#endif
+#ifdef HAVE_STRING_H
+#include <string.h>
+#else
+#ifdef HAVE_STRINGS_H
+#include <strings.h>
+#endif
+#endif
#include "rtl.h"
#include "tree.h"
static int nextchar = -1;
#endif
+#ifdef HANDLE_SYSV_PRAGMA
+static int handle_sysv_pragma PROTO((int));
+#endif /* HANDLE_SYSV_PRAGMA */
static int skip_white_space PROTO((int));
static char *extend_token_buffer PROTO((char *));
static int readescape PROTO((int *));
/* This function has to be in this file, in order to get at
the token types. */
-int
+static int
handle_sysv_pragma (token)
register int token;
{
{
register struct resword *ptr;
- if (ptr = is_reserved_word (token_buffer, p - token_buffer))
+ if ((ptr = is_reserved_word (token_buffer, p - token_buffer)))
{
if (ptr->rid)
yylval.ttype = ridpointers[(int) ptr->rid];
#include <string.h>
#include <limits.h>
#include <unistd.h>
+#include <fcntl.h>
#if 0
#include "sparc/gmon.h"
#define MSG "No space for profiling buffer(s)\n"
-monstartup(lowpc, highpc)
+static void moncontrol();
+
+void monstartup(lowpc, highpc)
char *lowpc;
char *highpc;
{
else
progname++;
- sprintf(buf, "%s/%d.%s", profdir, getpid(), progname);
+ sprintf(buf, "%s/%ld.%s", profdir, getpid(), progname);
proffile = buf;
} else {
proffile = "gmon.out";
/* This is for compatibility with old versions of gcc which used mcount. */
asm(".global mcount; mcount: mov %i7,%o1; mov %o7,%o0;b,a internal_mcount");
-static internal_mcount(selfpc, frompcindex)
+static void internal_mcount(selfpc, frompcindex)
register char *selfpc;
register unsigned short *frompcindex;
{
- register char *nextframe;
register struct tostruct *top;
register struct tostruct *prevtop;
register long toindex;
* profiling is what mcount checks to see if
* all the data structures are ready.
*/
-moncontrol(mode)
+static void moncontrol(mode)
int mode;
{
if (mode) {
register unsigned char *_limited_str = (unsigned char *) (STR); \
register unsigned ch; \
fprintf ((FILE), "\t%s\t\"", STRING_ASM_OP); \
- for (; ch = *_limited_str; _limited_str++) \
+ for (; (ch = *_limited_str); _limited_str++) \
{ \
register int escape; \
switch (escape = ESCAPES[ch]) \
extern char *xmalloc PARAMS ((unsigned));
extern char *xrealloc PARAMS ((void *, unsigned));
-#ifdef MULTIBYTE_CHARS
+#ifdef HAVE_STDLIB_H
#include <stdlib.h>
+#endif
+#ifdef MULTIBYTE_CHARS
#include <locale.h>
#endif
#if HAVE_LIMITS_H
# include <limits.h>
#endif
+#ifdef HAVE_STRING_H
+#include <string.h>
+#else
+#ifdef HAVE_STRINGS_H
+#include <strings.h>
+#endif
+#endif
#include <stdio.h>
int skip_evaluation;
{
register int c;
- register int namelen;
register struct token *toktab;
enum cpp_token token;
struct operation op;
It is mostly copied from c-lex.c. */
{
register int result = 0;
- register num_chars = 0;
+ register int num_chars = 0;
unsigned width = MAX_CHAR_TYPE_SIZE;
int wide_flag = 0;
int max_chars;
int inf_fd;
struct stat sbuf;
int c;
- int i, done;
- const char *cptr, **pptr;
+#ifdef FIXPROTO_IGNORE_LIST
+ int i;
+#endif
+ const char *cptr;
int ifndef_line;
int endif_line;
long to_read;
#include <stdio.h>
#include <errno.h>
+#ifdef HAVE_UNISTD_H
+#include <unistd.h>
+#endif
#ifdef IN_GCC
#include "gansidecl.h"
extern int execv ();
extern int execvp ();
+#ifdef IN_GCC
+extern char * my_strerror();
+#endif
int
pexecute (program, argv, this_pname, temp_base, errmsg_fmt, errmsg_arg, flags)
print_inline_rtx (outf, x, ind)
FILE *outf;
rtx x;
+ int ind;
{
int oldsaw = sawclose;
int oldindent = indent;
#include "config.h"
#include <stdio.h>
+#ifdef HAVE_STRING_H
+#include <string.h>
+#else
+#ifdef HAVE_STRINGS_H
+#include <strings.h>
+#endif
+#endif
#include "rtl.h"
#include "flags.h"
#include "insn-flags.h"
int num_instr_arcs = 0;
rtx insn;
- int neg_one = -1;
- int zero = 0;
- int inverted;
- rtx note;
-
/* Instrument the program start. */
/* Handle block 0 specially, since it will always be instrumented,
but it doesn't have a valid first_insn or branch_insn. We must
bb_graph[i].first_insn = insn;
}
else if (code == NOTE)
- ;
+ {;}
if (code == CALL_INSN)
{
sstring *src;
{
register char *d, *s;
- register count = SSTRING_LENGTH(src);
+ register int count = SSTRING_LENGTH(src);
MAKE_SSTRING_SPACE(dst, count + 1);
d = dst->ptr;
s = src->base;
scan_string (fp, s, init)
register FILE *fp;
register sstring *s;
+ int init;
{
int c;
for (;;)