This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
Expand_Iterator_Loop_Over_Array turns a loop over an array: for Element of Array loop into a loop with an explicit iteration variable, but it doesn't propagate the SLOC of Element onto the new iteration variable. This results in inaccurate information when precise coverage is requested, as the SLOC of the enclosing loop statement is propagated instead. The change fixes this issue by using the SLOC of iteration scheme for the entire rewrite of the construct, except for the new loop statements which still inherit the SLOC of the original loop statement. No functional changes. Tested on x86_64-pc-linux-gnu, committed on trunk 2017-12-05 Eric Botcazou <ebotcazou@adacore.com> * exp_ch5.adb (Expand_Iterator_Loop_Over_Array): Use the SLOC of the iteration scheme throughout, except for the new loop statement(s).
Attachment:
difs
Description: Text document
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |