Re: Implicition declarations of functions and bugs

2006-03-11 Thread David Mosberger-Tang
On 3/11/06, Goswin von Brederlow <[EMAIL PROTECTED]> wrote: > By the way, does ia64 NOT map anything into the lower 4GiB address > space like alpha does? Yup. Normally, nothing gets mapped below 0x2000. --david -- Mosberger Consulting LLC, http://www.mosberger-consulting.com/

Re: Implicition declarations of functions and bugs

2006-03-11 Thread David Mosberger-Tang
On 3/11/06, Goswin von Brederlow <[EMAIL PROTECTED]> wrote: > > $ gcc-3.3 -c -g -O -Wall t.c > > t.c: In function `foo': > > t.c:4: warning: implicit declaration of function `strdup' > > t.c:4: warning: return makes pointer from integer without a cast > > (all asm is from amd64) > > 004005

Re: Re: Re: Implicition declarations of functions and bugs

2006-03-10 Thread David Mosberger-Tang
even though they are qualitatively different. --david On 3/10/06, Samuel Thibault <[EMAIL PROTECTED]> wrote: > David Mosberger-Tang, le Fri 10 Mar 2006 17:06:22 -0700, a écrit : > > I'm inclined to treat this as a gcc-4 bug. > > It is not. > > > $ cat t.c >

Re: Re: Re: Implicition declarations of functions and bugs

2006-03-10 Thread David Mosberger-Tang
I'm inclined to treat this as a gcc-4 bug. To witness: $ cat t.c char * foo (char *str) { return strdup(str); } $ gcc-3.3 -c -g -O -Wall t.c t.c: In function `foo': t.c:4: warning: implicit declaration of function `strdup' t.c:4: warning: return makes pointer from integer without a cast gcc-4.0