On Sun, May 11, 2014 at 10:04:24PM +0200, Lukas Tribus wrote:
> > Did you force any specific cflags on your makefile ? By default we
> > build with -fno-strict-aliasing specifically to avoid this.
> 
> Ah, I see whats going on.
> 
> I specified CFLAGS on the command line via:
> make CFLAGS="-g -O3" [...]
> 
> Which is overwriting a lot of things in the Makefile, including
> -march=native and -fno-strict-aliasing.
> 
> That makes me wonder if its a good idea to use CFLAGS="-g -O0"
> when troubleshooting crashes. It would be better to just modify
> the Makefile in this cases, or manually specify the missing
> options.

No it's simpler, just define a new set of per-CPU options like I do
for development :

   make -j 4 CC=gcc TARGET=linux2628 CPU=native CPU_CFLAGS.native="-O0"

Willy


Reply via email to