This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Outputting assembler constants in octal
- To: egcs at egcs dot cygnus dot com
- Subject: Outputting assembler constants in octal
- From: "Joseph S. Myers" <jsm28 at cam dot ac dot uk>
- Date: Thu, 29 Apr 1999 19:55:14 +0100 (BST)
What's the best way to get gcc to output constants to assembler files in
octal? The pdp11 target ought to be doing this (clearly it hasn't been
well tested, and pdp11-*-bsd has been tested even less :-)) (or adding a
terminating decimal point to decimal constants), but output_addr_const
seems to hardwire the knowledge that constants are printed with
HOST_WIDE_INT_PRINT_DEC. Should I add HOST_WIDE_INT_PRINT_OCT and a
target macro to indicate that assembler constants should be output in
octal, or is there already a better way to define target-specific ways of
outputting constants?
--
Joseph S. Myers
jsm28@cam.ac.uk