GCC8 the code patching A.I.
GCC8 the code patching A.I.
Posted Mar 16, 2018 0:00 UTC (Fri) by mjw (subscriber, #16740)Parent article: Malcolm: Usability improvements in GCC 8
Sweet. If you just trust the suggestions gcc makes then you can just generate a patch with -fdiagnostics-generate-patch
and then the next build will just work (assuming you didn't make more errors)./opt/local/install/gcc/bin/gcc -fdiagnostics-generate-patch -g -O2 -o t t.c 2>&1 | patch patching file t.c
Given my typo rate this probably should be a default automake rule so gcc patches my sources till they are OK :)
