SPARC has rather strict alignment requirements.

GCC's -Wcast-align warns us when we're doing naughty things. e.g.

mysys/default.cc: In function int load_defaults(const char*, const
char**, int*, char***):
mysys/default.cc:401: error: cast from char* to char** increases
required alignment of target type
mysys/default.cc:409: error: cast from char* to MEM_ROOT* increases
required alignment of target type
mysys/default.cc:436: error: cast from char* to char** increases
required alignment of target type
mysys/default.cc:461: error: cast from char* to MEM_ROOT* increases
required alignment of target type


My T1000 running Debian is back up (yay!) and is building with this
warning enabled (subsequently making the tree not build).

If we build clean with this warning enabled, we are rather unlikely to
have code that will SIGBUS on SPARC.

So I plan to clean this up. Any help is much appreciated (if you don't
have an account on hurricane, just ask me!).

I'll commit and push to lp:~stewart-flamingspork/drizzle/gcc-Wcast-align
as I go. Feel free to fix up a bit and propose for merging into this
branch. I'll push up to brian when it's ready.

-- 
Stewart Smith

_______________________________________________
Mailing list: https://launchpad.net/~drizzle-discuss
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~drizzle-discuss
More help   : https://help.launchpad.net/ListHelp

Reply via email to