This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


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

Re: Outputting assembler constants in octal



  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


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