This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [SH] gdb.dwarf2 tests: use .byte4 instead of .long


On Wed, 14 Mar 2012 21:17:07 +0100, Pedro Alves wrote:
> Is this due to the test having been originally written by adjusting gcc output?

No, amd64 gcc just produces .long and .value.


> Maybe gcc could be changed to emit .byte4 instead?

I was looking at it once already but there are some concerns with
compatibility with various non-GNU assemblers I was unaware of at all.
As the assembler directives are chosen according to the target arch GCC can
always adjust it accordingly.  Multi-arch GDB testfiles cannot.

It is true this .4byte directive probably breaks compatibility with some
non-GNU assemblers but I believe easy cross-arch compatibility is of a more
concern to GDB than such non-GNU assemblers compatibility.  Or is it?


Thanks,
Jan


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]