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

Re: [MiNT] GCC return register



On Mon, 2011-01-24 at 16:32 +0100, Miro Kropáček wrote:
> 
>         That's not really good enough though, as you can still pass
>         another
>         search path with -L and it blows up anyway.
> But someone needs to pass this to command line and it wont be a
> compiler. If programmer is stupid enough to mix library paths, I don't
> see it as system error.
>   
> 
>         The only real solution is to agree on which register to use.
> As I see it, this hides problems like described above, completely. You
> have no way to know unless you compile with -Wl,-t. And if you want to
> make me this, I can reply one can do this in your test case, too ;-)

The agreement on which register to use, follows that the entire system
must have been compiled this way and that the libraries have also been
recompiled. So then mixing libraries becomes sane again.

The option of fudging the search paths, and you are never guaranteed 
that.

Alan.