Current-Users archive

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

Re: rump and htonl() in constants



On Sat, Feb 28, 2015 at 10:38:56PM +0100, Joerg Sonnenberger wrote:
> On Sat, Feb 28, 2015 at 01:16:11PM -0500, Christos Zoulas wrote:
> > On Feb 28,  5:46pm, prlw1%cam.ac.uk@localhost (Patrick Welche) wrote:
> > -- Subject: Re: rump and htonl() in constants
> > 
> > | Yes - I have DBG=-g -O0 in Makefile.rump
> > | 
> > | I thought that would help trying to step through a rump kernel in gdb - not
> > | a good idea? (removing now)
> > | 
> > | I suppose that is why no one else is seeing this...
> > 
> > We could make this compile by adding an ifdef __OPTIMIZE__...
> 
> No, if you want to fix it make it use fixed size conversion macro from
> sys/endian.h, it takes care of handling constants.
> 
> Joerg

Wasn't that what my example program in the original post did and yet
exhibits the problem?

Patrick


Home | Main Index | Thread Index | Old Index