Subject: Re: EGCS 1.1 UPDATE rev. 6 / bad newlines on m(ac)68k
To: Todd Vierling <tv@pobox.com>
From: Ignatios Souvatzis <is@jocelyn.rhein.de>
List: tech-toolchain
Date: 08/24/1998 11:46:37
On Sun, Aug 23, 1998 at 06:02:06PM -0400, Todd Vierling wrote:
> On Sun, 23 Aug 1998, Ignatios Souvatzis wrote:
>
> : > I chased this further down, and finally found that the first character output
> : > by a %o directive is eaten somewhere.
> : >
> : > (gcc creates the \12 instead of \n in the assembler output, I guessed by
> : > using \\%o to format, so I tried that directly).
>
> Now, if it weren't for:
>
> : Its worse: only the last character of an octal value is ever printed. if
> : you specify a field width, it is padded with blanks.
>
> you could just tack on a `0' before the %o. Note that you /can/ pad it with
> zeros by specifying the field width such as: %04o (note the `0' at the
> start of the field width). You'd probably want a field width of 4 so that
> 255 = 0377 (leading 0 to mean octal).
yes, but I would need to do this all over the compiler, at least. It might
be easier to just fix the compiler.
-is