Safe CFLAGS

Introduction
This article aims to create a complete list of CFLAGS which are considered "safe" for each given processor. These are the settings you should use if you are unsure which CFLAGS your processor needs.

Finding your CPU
To identify the model of your CPU, you can look inside /proc/cpuinfo for the "cpu family" and "model" numbers like so:

Once you find this information, you can then match your CPU to one listed on this page in order to find out the suggested "safe" CFLAGS.

Core i5/i7
vendor_id	: GenuineIntel cpu family	: 6 model		: 42 model name	: Intel(R) Core(TM) i5-2400 CPU @ 3.10GHz CHOST="x86_64-pc-linux-gnu" CFLAGS="-march=corei7 -O2 -pipe" CXXFLAGS="${CFLAGS}"

A4/A6/A8-XXXX / XXXXM
vendor_id	: AuthenticAMD cpu family	: 18 model		: 1 model name	: AMD A8-3500M APU with Radeon(tm) HD Graphics CHOST="x86_64-pc-linux-gnu" CFLAGS="-O2 -march=amdfam10 -mcx16 -mpopcnt -pipe" CXXFLAGS="${CFLAGS}"