Commit f7835768 by Kaveh R. Ghazi Committed by Kaveh Ghazi

gmon-sol2.c (moncontrol, [...]): Don't use PARAMS.

	* 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.

From-SVN: r61253
parent 38a3dbbb
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> 2003-01-13 Andreas Schwab <schwab@suse.de>
* config/rs6000/sysv4.h (ASM_OUTPUT_ALIGNED_LOCAL): Output type * config/rs6000/sysv4.h (ASM_OUTPUT_ALIGNED_LOCAL): Output type
......
...@@ -88,13 +88,11 @@ static int s_scale; ...@@ -88,13 +88,11 @@ static int s_scale;
#define MSG "No space for profiling buffer(s)\n" #define MSG "No space for profiling buffer(s)\n"
static void moncontrol PARAMS ((int)); static void moncontrol (int);
extern void monstartup PARAMS ((char *, char *)); extern void monstartup (char *, char *);
extern void _mcleanup PARAMS ((void)); extern void _mcleanup (void);
void monstartup(lowpc, highpc) void monstartup(char *lowpc, char *highpc)
char *lowpc;
char *highpc;
{ {
int monsize; int monsize;
char *buffer; char *buffer;
...@@ -170,7 +168,7 @@ void monstartup(lowpc, highpc) ...@@ -170,7 +168,7 @@ void monstartup(lowpc, highpc)
} }
void void
_mcleanup() _mcleanup(void)
{ {
int fd; int fd;
int fromindex; int fromindex;
...@@ -269,7 +267,8 @@ _mcleanup() ...@@ -269,7 +267,8 @@ _mcleanup()
* -- [eichin:19920702.1107EST] * -- [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 */ /* i7 == last ret, -> frompcindex */
/* o7 == current ret, -> selfpc */ /* o7 == current ret, -> selfpc */
...@@ -278,9 +277,7 @@ asm(".global _mcount; _mcount: mov %i7,%o1; mov %o7,%o0;b,a internal_mcount"); ...@@ -278,9 +277,7 @@ asm(".global _mcount; _mcount: mov %i7,%o1; mov %o7,%o0;b,a internal_mcount");
/* This is for compatibility with old versions of gcc which used mcount. */ /* 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"); asm(".global mcount; mcount: mov %i7,%o1; mov %o7,%o0;b,a internal_mcount");
static void internal_mcount(selfpc, frompcindex) static void internal_mcount(char *selfpc, unsigned short *frompcindex)
register char *selfpc;
register unsigned short *frompcindex;
{ {
register struct tostruct *top; register struct tostruct *top;
register struct tostruct *prevtop; register struct tostruct *prevtop;
...@@ -410,8 +407,7 @@ overflow: ...@@ -410,8 +407,7 @@ overflow:
* profiling is what mcount checks to see if * profiling is what mcount checks to see if
* all the data structures are ready. * all the data structures are ready.
*/ */
static void moncontrol(mode) static void moncontrol(int mode)
int mode;
{ {
if (mode) { if (mode) {
/* start */ /* start */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment