Re: [PATCH] m68k: use conventional function parameters for do_sigreturn

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Feb 09, 2016 at 02:17:24PM +0100, Andreas Schwab wrote:
Greg Ungerer <gerg@xxxxxxxxxxx> writes:

Given the original code is:

  asmlinkage int do_sigreturn(unsigned long __unused)
  {
        struct switch_stack *sw = (struct switch_stack *) &__unused;
        struct pt_regs *regs = (struct pt_regs *) (sw + 1);

So gcc is determining that what sw and regs points to are
part of do_sigreturn() parameters here?

It's basically what varags used to do.

Given what gcc does now, how can scanf still work then ?

Philippe

-- 
Philippe De Muyter +32 2 6101532 Macq SA rue de l'Aeronef 2 B-1140 Bruxelles
--
To unsubscribe from this list: send the line "unsubscribe linux-m68k" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Video for Linux]     [Yosemite News]     [Linux S/390]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux