This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [3/3] RFC - optional patch to restore DW_AT_data_member_location
- From: Jan Kratochvil <jan dot kratochvil at redhat dot com>
- To: Tom Tromey <tromey at redhat dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Wed, 12 Sep 2012 15:25:20 +0200
- Subject: Re: [3/3] RFC - optional patch to restore DW_AT_data_member_location
- References: <87628cfbg2.fsf@fleche.redhat.com> <20120826081205.GB29056@host2.jankratochvil.net> <87zk4w6zys.fsf@fleche.redhat.com>
On Tue, 11 Sep 2012 22:56:11 +0200, Tom Tromey wrote:
> >> + .string "GNU Fortran 4.6.3 20120306 (Red Hat 4.6.3-2) -mtune=generic -march=x86-64 -g -fintrinsic-modules-path /usr/lib/gcc/x86_64-redhat-linux/4.6.3/finclude"
>
> Jan> Probably not needing to be rebuilt but I think for FSF GDB it would
> Jan> be better to precompile such .S files using FSF GCC, which could be
> Jan> possibly (more easily) reproduced in the future.
>
> I had to edit the .S file. I would not want to try to reproduce this.
> I guess if I was going to do it again I would try to use my DWARF
> assembler instead.
>
> I changed the string to
>
> "GNU Fortran 4.6.3 plus hand hackery"
>
> ... which is reasonably true.
I see I did not make clear why I like the reproducibility of the compilation.
This is because sometimes it is good to know what was hand-edited in the file
and I find a bit excessive to keep both the original and the hand-edited .S
files in the repository due to it. This is why I sometimes
did #if 0-#else-#endif or #if 0-#endif-#if 1-#endif constructs in the .S
files (I see it now only in gdb.dwarf2/dw2-const.S).
I sure do not insist on anything like that, just FYI.
Thanks,
Jan