> RColorStruct *c = (RColorStruct *)&color1; Not a bug. Your code violates the ISO C aliasing rules. GCC automatically turns on -fstrict-aliasing at -O2 so you need to fix your code or compile it with -fno-strict-aliasing. -- Eric Botcazou