OSDN Git Service
(root)
/
pf3gnuchains
/
gcc-fork.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
* Makefile.am (gfor_helper_src): Split selected_kind.f90.
[pf3gnuchains/gcc-fork.git]
/
gcc
/
timevar.c
diff --git
a/gcc/timevar.c
b/gcc/timevar.c
index
6fa1610
..
1b5d244
100644
(file)
--- a/
gcc/timevar.c
+++ b/
gcc/timevar.c
@@
-1,5
+1,5
@@
/* Timing variables for measuring compiler performance.
/* Timing variables for measuring compiler performance.
- Copyright (C) 2000, 2003 Free Software Foundation, Inc.
+ Copyright (C) 2000, 2003
, 2004
Free Software Foundation, Inc.
Contributed by Alex Samuel <samuel@codesourcery.com>
This file is part of GCC.
Contributed by Alex Samuel <samuel@codesourcery.com>
This file is part of GCC.
@@
-226,7
+226,7
@@
timevar_init (void)
timevar_enable = true;
/* Zero all elapsed times. */
timevar_enable = true;
/* Zero all elapsed times. */
- memset (
(void *)
timevars, 0, sizeof (timevars));
+ memset (timevars, 0, sizeof (timevars));
/* Initialize the names of timing variables. */
#define DEFTIMEVAR(identifier__, name__) \
/* Initialize the names of timing variables. */
#define DEFTIMEVAR(identifier__, name__) \
@@
-286,8
+286,7
@@
timevar_push (timevar_id_t timevar)
unused_stack_instances = unused_stack_instances->next;
}
else
unused_stack_instances = unused_stack_instances->next;
}
else
- context = (struct timevar_stack_def *)
- xmalloc (sizeof (struct timevar_stack_def));
+ context = xmalloc (sizeof (struct timevar_stack_def));
/* Fill it in and put it on the stack. */
context->timevar = tv;
/* Fill it in and put it on the stack. */
context->timevar = tv;
@@
-499,6
+498,11
@@
timevar_print (FILE *fp)
fprintf (fp, "%7.2f\n", total->wall);
#endif
fprintf (fp, "%7.2f\n", total->wall);
#endif
+#ifdef ENABLE_CHECKING
+ fprintf (fp, "Extra diagnostic checks enabled; compiler may run slowly.\n");
+ fprintf (fp, "Configure with --disable-checking to disable checks.\n");
+#endif
+
#endif /* defined (HAVE_USER_TIME) || defined (HAVE_SYS_TIME)
|| defined (HAVE_WALL_TIME) */
}
#endif /* defined (HAVE_USER_TIME) || defined (HAVE_SYS_TIME)
|| defined (HAVE_WALL_TIME) */
}