[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.
I wonder if GCC doesn't expand __builtin_constant_p properly with -O0 at
all, it wouldn't surprise either. -O0 is really messed up with GCC and
should be avoided...
Main Index |
Thread Index |