<div dir="ltr"><div><span style="font-size:12.8px">(resending with history snipped to prevent needing list moderation to post due to message exceeding size limit)</span></div><span style="font-size:12.8px"><div><span style="font-size:12.8px"><br></span></div>For our users we fully expect their profile/debug builds to be the same thing (that is, almost all debugging is on fully optimized code, where fully optimized also means part of an iterative profiling workflow).  Having extra debug information that only benefits the profiling part seems reasonable.  What would be unacceptable is if we ever had to ask our users to make a trade off between debug info that was best for profiling at the expense of debugging quality or vice versa.  The "</span><span style="font-size:12.8px">-femit-debug-for-profiling" flag seems to fit this model of it being more a strict superset rather than a tuning option more clearly.</span><span class="gmail-HOEnZb" style="font-size:12.8px"><font color="#888888"><br><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">-Greg</span></div></font></span><div class="gmail_extra"><br><div class="gmail_quote">On 22 November 2016 at 23:16, Dehao Chen via llvm-dev <span dir="ltr"><<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">-gprofile should have:<div><br></div><div>1. emit linkage name in all subprograms</div><div>2. emit discriminator with dup-factor copy-factor encoded</div><div>3. use-unknown-locations=true</div><div><br></div><div>Here comes the problem: is it an intermediate -g mode between -g1 and -g2? If yes, this means that -g2 will also need to include all the 3 items above. If not, then it should not be called -gprofile, but rather a flag like -femit-debug-for-profiling", so that we can use it with "-g2 -femit-debug-for-profiling", or "-gmlt -femit-debug-for-profiling".</div><div><br></div><div>Dehao</div></div><div class="gmail_extra"><br></div></blockquote></div></div></div>