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] |
Right.I don't like this approach. From a quick check I see that gimple lowering retains location information for both the if and the then branch correctly in lower_cond_expr and the CFG created has the correct locus set on the edge already.
Even if this location information were not lost, it couldn't be inserted without splitting theSo where is this information lost?
I suppose it may be during expand where we callI can try to modify expand_gimple_cond_expr so that it splits the jump. Note that every conditional jumps
do_jump via jumpif but the complete jump sequence has one location. So the
proper fix would probably to teach do_jump to take an alternate location for the
jump.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |