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]

Outputting assembler constants in octal


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


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