This repository was archived by the owner on Nov 12, 2020. It is now read-only.
File tree 2 files changed +6
-1
lines changed
2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -273,6 +273,9 @@ Compilers:
273
273
- GPR#132: Flambda: new intermediate language and "middle-end" optimizers
274
274
(Pierre Chambart, Mark Shinwell, Leo White)
275
275
276
+ - GPR#212, PR#7226, GPR#542: emit column position in gas assembly `.loc`
277
+ (Frédéric Bour, Anton Bachin)
278
+
276
279
- GPR#207: Colors in compiler messages (warnings, errors)
277
280
configure with -color {auto|always|never} or TERM=dumb
278
281
(Simon Cruanes, review by Gabriel Scherer)
Original file line number Diff line number Diff line change @@ -284,7 +284,9 @@ let print_line b = function
284
284
file_num (X86_proc. string_of_string_literal file_name)
285
285
| Indirect_symbol s -> bprintf b " \t .indirect_symbol %s" s
286
286
| Loc (file_num , line , col ) ->
287
- bprintf b " \t .loc\t %d\t %d\t %d" file_num line col
287
+ (* PR#7726: Location.none uses column -1, breaks LLVM assembler *)
288
+ if col > = 0 then bprintf b " \t .loc\t %d\t %d\t %d" file_num line col
289
+ else bprintf b " \t .loc\t %d\t %d" file_num line
288
290
| Private_extern s -> bprintf b " \t .private_extern %s" s
289
291
| Set (arg1 , arg2 ) -> bprintf b " \t .set %s, %a" arg1 cst arg2
290
292
| Size (s , c ) -> bprintf b " \t .size %s,%a" s cst c
You can’t perform that action at this time.
0 commit comments