Re: RFA: Multilib support in gdb.asm tests

Nick Clifton
2002-01-11T17:28:56Z

Hi Andrew,

> > + # FIXME: Invoking the assembler directly is incorrect.
>
>
> Just FYI, this is wrong. These tests apply to targets that do not
> have a C compiler so must be able to invoke the assembler directly.

How about this alternative wording of the comment:

# WARNING: Invoking the assembler directly is problematic.
# For targets which support multilibs a compile time switch is used
# to select the appropriate multilibs. This switch may not be same
# as the switch that the compiler will pass on to the assembler. For
# example if big-endian and little-endian multilibs are supported
# the compiler options will probably be -mbig-endian and -mlittle-endian
# but, for historical reasons, the assembler options are probably -EB
# and -EL.
#
# Since these tests are supposed to be able to be run for targets for
# which there is no compiler we cannot just invoke a compiler driver
# program (eg 'gcc') to handle this translation for us. For now we
# just hard code the endian translation and hope that there are no
# others that are needed.

Cheers
Nick