Open Quuxplusone opened 10 years ago
Bugzilla Link | PR17465 |
Status | NEW |
Importance | P normal |
Reported by | Trass3r (trass3r@gmail.com) |
Reported on | 2013-10-03 07:29:42 -0700 |
Last modified on | 2019-09-04 13:07:57 -0700 |
Version | trunk |
Hardware | PC All |
CC | gonzalo.gadeschi@gmail.com, jryans@gmail.com, kkhoo@perfwizard.com, llvm-bugs@lists.llvm.org, nicolasweber@gmx.de |
Fixed by commit(s) | |
Attachments | |
Blocks | |
Blocked by | |
See also |
Here's a patch for -masm: http://lists.cs.uiuc.edu/pipermail/cfe-commits/Week-of-Mon-20140505/105299.html
For the other thing, -fno-integrated-as -Xassembler -adhln
might do the trick.
+1 I would also like to generate source code annotated with assembly in a particular dialect. This is kind of a must to verify the assembly generated for a particular snippet of code within a large project.
fwiw, -masm=intel has been working since 208683 (clang 3.5).
MCAsmStreamer::EmitDwarfLocDirective is a POI for this.
Cross-ref "[cfe-dev] RFC: Add a way to interleave source code in assembler output" and https://reviews.llvm.org/D30897 / https://reviews.llvm.org/D30898 linked from there (apparently stalled, but maybe a good start).
See also bug 39360.