+2003-01-13 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
+
+ * config/sparc/gmon-sol2.c (moncontrol, monstartup, _mcleanup,
+ internal_mcount): Don't use PARAMS.
+ (monstartup, _mcleanup, internal_mcount, moncontrol): Convert to
+ ISO C style.
+ (internal_mcount): Use __attribute__, not ATTRIBUTE_UNUSED.
+
2003-01-13 Andreas Schwab <schwab@suse.de>
* config/rs6000/sysv4.h (ASM_OUTPUT_ALIGNED_LOCAL): Output type
#define MSG "No space for profiling buffer(s)\n"
-static void moncontrol PARAMS ((int));
-extern void monstartup PARAMS ((char *, char *));
-extern void _mcleanup PARAMS ((void));
+static void moncontrol (int);
+extern void monstartup (char *, char *);
+extern void _mcleanup (void);
-void monstartup(lowpc, highpc)
- char *lowpc;
- char *highpc;
+void monstartup(char *lowpc, char *highpc)
{
int monsize;
char *buffer;
}
void
-_mcleanup()
+_mcleanup(void)
{
int fd;
int fromindex;
* -- [eichin:19920702.1107EST]
*/
-static void internal_mcount PARAMS ((char *, unsigned short *)) ATTRIBUTE_UNUSED;
+static void internal_mcount (char *, unsigned short *)
+ __attribute__ ((__unused__));
/* i7 == last ret, -> frompcindex */
/* o7 == current ret, -> selfpc */
/* 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 void internal_mcount(selfpc, frompcindex)
- register char *selfpc;
- register unsigned short *frompcindex;
+static void internal_mcount(char *selfpc, unsigned short *frompcindex)
{
register struct tostruct *top;
register struct tostruct *prevtop;
* profiling is what mcount checks to see if
* all the data structures are ready.
*/
-static void moncontrol(mode)
- int mode;
+static void moncontrol(int mode)
{
if (mode) {
/* start */