regparm.. monstrosity?

Ragnar Hojland Espinosa (ragnar@lightside.ddns.org)
Fri, 4 Sep 1998 17:47:00 +0200 (MET DST)


Well, I must be overlooking something really obvious, because regparm cant
be _this_ broken.

-- 
____/|  Ragnar Hojland  (ragnar@lightside.ddns.org)      Fingerprint  94C4B
\ o.O|                                                   2F0D27DE025BE2302C
 =(_)=  "Thou shalt not follow the NULL pointer for      104B78C56 B72F0822
   U     chaos and madness await thee at its end."       hkp://keys.pgp.com

/* * -mregparm=0 arg: a.out * -mregparm=1 segmentation fault * -mregparm={2,3} segmentation fault (gcc 2.7.2.3) * * with stdio.h * -mregparm={2,3} arg: (null) (gcc 2.8.1, egcs 1.1a) * * without stdio.h * -mregparm=(2,3} nothing (gcc 2.8.1, egcs 1.1a) */

#include <stdio.h>

void furrfu (char *arg) { printf ("arg: %s\n", arg); exit(0); }

int main (int argc, char *argv[]) { furrfu (argv[0]); }

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/faq.html