Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!cica!ctrsol!uakari!indri!aplcen!haven!vrdxhq!bms-at!stuart From: stuart@bms-at.UUCP (Stuart Gathman) Newsgroups: comp.lang.c Subject: Re: Short code to determine compiler's Summary: Doesn't work either Message-ID: <171@bms-at.UUCP> Date: 18 Jul 89 21:15:23 GMT References: <396@uop.uop.EDU> <225800197@uxe.cso.uiuc.edu> <579@targon.UUCP> Organization: Business Management Systems, Inc., Fairfax, VA Lines: 18 In article <579@targon.UUCP>, andre@targon.UUCP (andre) writes: > register n1, n2, n3, n4, n5, n6, n7, n8; /* etc. */ > int *a; > a = &n8; > a = &n7; > /* repeat n6 - n2 */ > a = &n1; Taking the address of a register variable is not allowed even when it is not actually in a register. (When not in a register, banning addressof guarrantees no aliases for that variable. Anyone for rekindling the "noalias" debate :-) -- Stuart D. Gathman <..!{vrdxhq|daitc}!bms-at!stuart>