I am doing instruction cache research and need to build from scratch a gcc (4.8.2 or 4.9) so that all functions in the compiler and the libraries are aligned to 512 bytes and have debug symbols. 64-bit or 32-bit is OK. I tried several configure options such as: STAGE1_CFLAGS="-g -falign-functions=512" STAGE1_CXXFLAGS="-g -falign-functions=512" \ STAGE2_CFLAGS="-g -falign-functions=512" STAGE2_CXXFLAGS="-g -falign-functions=512" \ STAGE3_CFLAGS="-g -falign-functions=512" STAGE3_CXXFLAGS="-g -falign-functions=512" \ STAGE4_CFLAGS="-g -falign-functions=512" STAGE4_CXXFLAGS="-g -falign-functions=512" \ XGCC_FLAGS_FOR_TARGET="-g -falign-functions=512" \ but I notice most compiles do not have the flags. Also tried CC="gcc -g -falign-functions=512" etc. That worked better but still had many compiles (mostly xgcc and xg++ compiles) without the flag. Does anyone know the magic flags for accomplishing this? FYI, I am on Ubuntu 14.04 with gcc 4.8.2. I did an apt-get build-dep gcc-4.8 to get all dependencies installed. So, I am trying to build a specialized 4.8.2 with 4.8.2. I was able to build specialized versions of GMP, MPFR, MPC, etc with no problem. Thanks in advance. -- View this message in context: http://gcc.1065356.n5.nabble.com/Building-GCC-libs-with-falign-function-512-g-tp1036356.html Sent from the gcc - Help mailing list archive at Nabble.com.