------- Comment #9 from jakub at gcc dot gnu dot org 2010-08-16 10:47 ------- Created an attachment (id=21488) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=21488&action=view) gcc46-pr45186.patch
So, IMNSHO, either we use something like in this patch, Richard probably won't like it, but the FE isn't really prepared to maintain locus properly everywhere, or you need to be prepared to handle not just dozens, but around thousand places: grep -w build[0-9] trans*.c | wc -l 38 grep -w build[0-9]_v trans*.c | wc -l 158 grep -w fold_build[0-9] trans*.c | wc -l 734 Perhaps the build*_v macros could be changed to use fold_build*_loc instead of fold_build and pass input_location, but then there are still those > 700 fold_build* calls, which would need to be turned into fold_build*_loc. I don't think it is reasonable to do that for 4.5 at least, and for 4.6 only if somebody has a lot of time in his hands. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45186