x86_64-pc-linux-gnu-gcc -march=native -O2 -g0 -fPIC -DPIC -DPOLL -DEPOLL -D_POSIX_PTHREAD_SEMANTICS -DB64 -pthread -fPIC -fno-omit-frame-pointer -O2 -m32 -DHAS_SOCK_TIMEOUT -DHAS_JVMTI -fPIC -m64 -fPIC -DRESIN_HOME=\"/usr/lib64/resin\" -I/usr/include -I/opt/icedtea-bin-6.1.11.1/include -I/opt/icedtea-bin-6.1.11.1/include/linux -I../common -DCPU=\"x86_64\" -DOS= -c -o memory.o memory.c The last -O2 overwrites my set.
Done for 4.0.22, for 4.0.25 I'll move to EAPI 4.