Add a .file directive to generated .s files
authorStephane Glondu <steph@glondu.net>
Sun, 16 Aug 2015 18:59:14 +0000 (20:59 +0200)
committerRalf Treinen <treinen@debian.org>
Fri, 15 Jul 2016 20:19:44 +0000 (20:19 +0000)
commit02a3cc3c5475d2b881296ba2eb26a563e88a7fca
treee1d5c9989c1db7ca871f2ce91b8db1adf087cae2
parentdb8beda42f06fe577f9166b3da05e046d08391bc
Add a .file directive to generated .s files

When no .file directive is given, the toolchain records the filename
of the .o file, which is sometimes random, making generated objects
non-deterministic.

We use Location.input_name for adding .file directives to assembly
files. Note: when the file is preprocessed, this reference holds the
name of the temporary file. Hence, files compiled with -pp are still
not deterministic.

Bug-Debian: https://bugs.debian.org/795784
Bug-Debian: https://bugs.debian.org/796336

Gbp-Pq: Name 0010-Add-a-.file-directive-to-generated-.s-files.patch
asmcomp/amd64/emit.mlp
asmcomp/arm/emit.mlp
asmcomp/arm64/emit.mlp
asmcomp/i386/emit.mlp
asmcomp/power/emit.mlp
asmcomp/sparc/emit.mlp