lwip-users
[Top][All Lists]
Advanced

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

Re: [lwip-users] Misalignment problems on PowerPC (little endian mode)


From: Rishi Khan
Subject: Re: [lwip-users] Misalignment problems on PowerPC (little endian mode)
Date: Sun, 25 May 2008 21:45:50 -0400

Mine are:
#define PACK_STRUCT_FIELD(x) x __attribute__((packed))
#define PACK_STRUCT_STRUCT __attribute__((packed))
#define PACK_STRUCT_BEGIN
#define PACK_STRUCT_END


Maybe you don't see them because you don't have -Wall on?

On May 25, 2008, at 9:18 PM, Jonathan Larmour wrote:

Rishi Khan wrote:
Simon,
I don't know if this is an issue, but gcc spits out many warnings like: ../../../../../lwip/src/include/ipv4/lwip/ip.h:136: warning: 'packed' attribute ignored for field of type 'struct ip_addr'

I don't see that with GCC. What are your packing defines in cc.h ? Mine are:

#define PACK_STRUCT_FIELD(_x_) _x_ __attribute__((packed))
#define PACK_STRUCT_STRUCT __attribute__((packed))
#define PACK_STRUCT_BEGIN
#define PACK_STRUCT_END

Jifl
--
eCosCentric Limited http://www.eCosCentric.com/ The eCos experts Barnwell House, Barnwell Drive, Cambridge, UK. Tel: +44 1223 245571
Registered in England and Wales: Reg No 4422071.
------["The best things in life aren't things."]------ Opinions==mine


_______________________________________________
lwip-users mailing list
address@hidden
http://lists.nongnu.org/mailman/listinfo/lwip-users






reply via email to

[Prev in Thread] Current Thread [Next in Thread]