issues with doubles and -fno-schedule-insns2

Giovanni Bajo rasky@develer.com
Fri Nov 26 16:02:00 GMT 2004


Matthew J Fletcher <mfletcher@serck-controls.co.uk> wrote:

> docs for simple folk ?


Don't play tricks with pointers, period. A little longer: do not access an
object using a pointer to a type different from its natural type. You
defined two longs (or one long long) and were accessing them through
double*. This is invalid. Only exception: you can use char* to access
everything.

If you need to use such things, try -fno-strict-aliasing which will make
your code work. It is generally a bad idea because many optimizers will run
crippled when you disable strict aliasing.
-- 
Giovanni Bajo



More information about the Gcc mailing list