This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: where does gcc generate float param passing code before function call?


"add" <addsub@eyou.com> writes:

> -----   begin
> void main()
> {
>         float i=1.0;
>         foo(i);
> }
> void foo( float i )
> {
>         return i;
> }
> -----  end

This code is invalid, since foo has no prototype and doesn't match the
implicit declaration.

-- 
	Falk


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]