This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: issues with doubles and -fno-schedule-insns2


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]