Make x86-64 build free of artificial warnings

* signal.c (sys_sigreturn): Do not issue "no sys_sigreturn" warning
on X86_64.
This commit is contained in:
Дмитрий Левин 2012-05-15 00:13:59 +00:00
parent 0dbc80de89
commit f112d07800

View File

@ -899,7 +899,6 @@ sys_sigreturn(struct tcb *tcp)
long_to_sigset(sc.oldmask, &sigm); long_to_sigset(sc.oldmask, &sigm);
tprints(sprintsigmask(") (mask ", &sigm, 0)); tprints(sprintsigmask(") (mask ", &sigm, 0));
} }
return 0;
#elif defined(S390) || defined(S390X) #elif defined(S390) || defined(S390X)
if (entering(tcp)) { if (entering(tcp)) {
long usp; long usp;
@ -910,7 +909,6 @@ sys_sigreturn(struct tcb *tcp)
return 0; return 0;
tprints(sprintsigmask(") (mask ", (sigset_t *)&sc.oldmask[0], 0)); tprints(sprintsigmask(") (mask ", (sigset_t *)&sc.oldmask[0], 0));
} }
return 0;
#elif defined(I386) #elif defined(I386)
if (entering(tcp)) { if (entering(tcp)) {
struct sigcontext_struct sc; struct sigcontext_struct sc;
@ -925,7 +923,6 @@ sys_sigreturn(struct tcb *tcp)
long_to_sigset(sc.oldmask, &sigm); long_to_sigset(sc.oldmask, &sigm);
tprints(sprintsigmask(") (mask ", &sigm, 0)); tprints(sprintsigmask(") (mask ", &sigm, 0));
} }
return 0;
#elif defined(IA64) #elif defined(IA64)
if (entering(tcp)) { if (entering(tcp)) {
struct sigcontext sc; struct sigcontext sc;
@ -941,7 +938,6 @@ sys_sigreturn(struct tcb *tcp)
memcpy(&sigm, &sc.sc_mask, NSIG / 8); memcpy(&sigm, &sc.sc_mask, NSIG / 8);
tprints(sprintsigmask(") (mask ", &sigm, 0)); tprints(sprintsigmask(") (mask ", &sigm, 0));
} }
return 0;
#elif defined(POWERPC) #elif defined(POWERPC)
if (entering(tcp)) { if (entering(tcp)) {
long esp; long esp;
@ -963,7 +959,6 @@ sys_sigreturn(struct tcb *tcp)
long_to_sigset(sc.oldmask, &sigm); long_to_sigset(sc.oldmask, &sigm);
tprints(sprintsigmask(") (mask ", &sigm, 0)); tprints(sprintsigmask(") (mask ", &sigm, 0));
} }
return 0;
#elif defined(M68K) #elif defined(M68K)
if (entering(tcp)) { if (entering(tcp)) {
long usp; long usp;
@ -976,7 +971,6 @@ sys_sigreturn(struct tcb *tcp)
long_to_sigset(sc.sc_mask, &sigm); long_to_sigset(sc.sc_mask, &sigm);
tprints(sprintsigmask(") (mask ", &sigm, 0)); tprints(sprintsigmask(") (mask ", &sigm, 0));
} }
return 0;
#elif defined(ALPHA) #elif defined(ALPHA)
if (entering(tcp)) { if (entering(tcp)) {
long fp; long fp;
@ -989,7 +983,6 @@ sys_sigreturn(struct tcb *tcp)
long_to_sigset(sc.sc_mask, &sigm); long_to_sigset(sc.sc_mask, &sigm);
tprints(sprintsigmask(") (mask ", &sigm, 0)); tprints(sprintsigmask(") (mask ", &sigm, 0));
} }
return 0;
#elif defined(SPARC) || defined(SPARC64) #elif defined(SPARC) || defined(SPARC64)
if (entering(tcp)) { if (entering(tcp)) {
long i1; long i1;
@ -1008,7 +1001,6 @@ sys_sigreturn(struct tcb *tcp)
long_to_sigset(si.si_mask, &sigm); long_to_sigset(si.si_mask, &sigm);
tprints(sprintsigmask(") (mask ", &sigm, 0)); tprints(sprintsigmask(") (mask ", &sigm, 0));
} }
return 0;
#elif defined(LINUX_MIPSN32) || defined(LINUX_MIPSN64) #elif defined(LINUX_MIPSN32) || defined(LINUX_MIPSN64)
/* This decodes rt_sigreturn. The 64-bit ABIs do not have /* This decodes rt_sigreturn. The 64-bit ABIs do not have
sigreturn. */ sigreturn. */
@ -1025,7 +1017,6 @@ sys_sigreturn(struct tcb *tcp)
long_to_sigset(*(long *) &uc.uc_sigmask, &sigm); long_to_sigset(*(long *) &uc.uc_sigmask, &sigm);
tprints(sprintsigmask(") (mask ", &sigm, 0)); tprints(sprintsigmask(") (mask ", &sigm, 0));
} }
return 0;
#elif defined(MIPS) #elif defined(MIPS)
if (entering(tcp)) { if (entering(tcp)) {
long sp; long sp;
@ -1042,7 +1033,6 @@ sys_sigreturn(struct tcb *tcp)
long_to_sigset(si.si_mask, &sigm); long_to_sigset(si.si_mask, &sigm);
tprints(sprintsigmask(") (mask ", &sigm, 0)); tprints(sprintsigmask(") (mask ", &sigm, 0));
} }
return 0;
#elif defined(CRISV10) || defined(CRISV32) #elif defined(CRISV10) || defined(CRISV32)
if (entering(tcp)) { if (entering(tcp)) {
struct sigcontext sc; struct sigcontext sc;
@ -1057,7 +1047,6 @@ sys_sigreturn(struct tcb *tcp)
long_to_sigset(sc.oldmask, &sigm); long_to_sigset(sc.oldmask, &sigm);
tprints(sprintsigmask(") (mask ", &sigm, 0)); tprints(sprintsigmask(") (mask ", &sigm, 0));
} }
return 0;
#elif defined(TILE) #elif defined(TILE)
if (entering(tcp)) { if (entering(tcp)) {
struct ucontext uc; struct ucontext uc;
@ -1074,7 +1063,6 @@ sys_sigreturn(struct tcb *tcp)
memcpy(&sigm, &uc.uc_sigmask, NSIG / 8); memcpy(&sigm, &uc.uc_sigmask, NSIG / 8);
tprints(sprintsigmask(") (mask ", &sigm, 0)); tprints(sprintsigmask(") (mask ", &sigm, 0));
} }
return 0;
#elif defined(MICROBLAZE) #elif defined(MICROBLAZE)
/* TODO: Verify that this is correct... */ /* TODO: Verify that this is correct... */
if (entering(tcp)) { if (entering(tcp)) {
@ -1089,12 +1077,13 @@ sys_sigreturn(struct tcb *tcp)
long_to_sigset(sc.oldmask, &sigm); long_to_sigset(sc.oldmask, &sigm);
tprints(sprintsigmask(") (mask ", &sigm, 0)); tprints(sprintsigmask(") (mask ", &sigm, 0));
} }
return 0; #elif defined(X86_64)
/* no need to remind */
#else #else
#warning No sys_sigreturn() for this architecture # warning No sys_sigreturn() for this architecture
#warning (no problem, just a reminder :-) # warning (no problem, just a reminder :-)
return 0;
#endif #endif
return 0;
} }
int int