lkml.org 
[lkml]   [2000]   [Mar]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: ADFS -> undefined reference to __cmpdi2 (2.3.51)
Date
Alexander Viro writes:
> On Sat, 11 Mar 2000, Russell King wrote:
> > Arjan van de Ven writes:
> > > The ADFS filesystem doesn't compile for me, it leaves undefined references
> > > to __cmpdi2.
> >
> > Is your GCC environment missing something?
>
> Yes. switch(long_long_var) is _not_ a primitive. And libgcc.a is out of
> question in the kernel. Assuming that you don't have 64-bit offsets in
> directories - switch((unsigned long)(long_long_var)) may be a good idea.

Would switch ((int)(long_long_var)) be safer for other architectures?
_____
|_____| ------------------------------------------------- ---+---+-
| | Russell King rmk@arm.linux.org.uk --- ---
| | | | http://www.arm.linux.org.uk/~rmk/aboutme.html / / |
| +-+-+ --- -+-
/ | THE developer of ARM Linux |+| /|\
/ | | | --- |
+-+-+ ------------------------------------------------- /\\\ |

-
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/

\
 
 \ /
  Last update: 2005-03-22 13:57    [W:0.071 / U:0.748 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site