Add a .file directive to generated .s files
authorStephane Glondu <steph@glondu.net>
Sun, 16 Aug 2015 18:59:14 +0000 (20:59 +0200)
committerMehdi Dogguy <mehdi@debian.org>
Sun, 6 Nov 2016 10:29:41 +0000 (10:29 +0000)
commit47cd5f7ba4edc7a2ec922424fd55a695ff214108
tree78545f0e88bf465534bf8cc4575c36e267dfeb8f
parent8c0c6ef99ee420062bd49a10d20a140c8a17584a
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