This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Outputting assembler constants in octal
- To: "Joseph S. Myers" <jsm28 at cam dot ac dot uk>
- Subject: Re: Outputting assembler constants in octal
- From: Jeffrey A Law <law at upchuck dot cygnus dot com>
- Date: Thu, 29 Apr 1999 22:21:10 -0600
- cc: Richard Henderson <rth at cygnus dot com>, egcs at egcs dot cygnus dot com
- Reply-To: law at cygnus dot com
In message <Pine.SOL.3.95q.990429215403.17790A-100000@red.csi.cam.ac.uk>you w
rite:
> ASM_OUTPUT_INT and suchlike are documented to take an RTL expression and
> later pass it to output_addr_const to output it as an assembler
> expression, having first output a .word or similar pseudo-op. The problem
> is that when the expression passed to output_addr_const gets down to a
> CONST_INT, it doesn't go back through ASM_OUTPUT_INT - output_addr_const
> `knows' to output it in decimal (and likewise knows how to form
> expressions with "+" and "-"); duplicating all the logic of
> output_addr_const in the target code in order to vary integer output
> format doesn't really seem to make sense (and there are still calls of
> output_addr_const elsewhere in the complier, though I think they are
> irrelevant in this case).
I don't think anything actually requires those macros call back to
output_addr_const. That's simply how most ports do it.
jeff