Re: [uCsimm] snmpd from coldfire

From: Erwin Authried (eauth@softsys.co.at)
Date: Fri May 25 2001 - 07:02:36 EDT


Tom Walsh[SMTP:tom@cyberiansoftware.com] wrote:
> Erwin Authried wrote:
> >
> >
> > Yeah, just include <asm/byteorder.h>. And don't forget to compile with -O or -O2,
> > otherwise the ntohs function will not be inlined. And since you are obviously
> > using the gcc with my 32-bit PIC patch, don't forget to add a _cleanup() dummy
> > function at the end of your object files, or add it to libc so that you can forget
> > this nasty problem forever.
> >
>
> ??? What?! You mean that gcc doesn't properly process the inline
> statements unless the optimizer is turned on? That seems odd, doesn't
> it?
>
> Regards,
>
> TomW
>
It's not the compiler. The macros are inside a #ifdef __OPTIMIZE__ conditional in byteorder.h

-Erwin



This message resent by the ucsimm@uclinux.com list server http://www.uClinux.com/



This archive was generated by hypermail 2b30 : Sun Apr 07 2002 - 00:01:43 EST