On Fri, Jul 24, 2015 at 10:36:57PM -0400, tbsaunde+...@tbsaunde.org wrote: > -@defmac ASM_OUTPUT_ASCII (@var{stream}, @var{ptr}, @var{len}) > -A C statement to output to the stdio stream @var{stream} an assembler > -instruction to assemble a string constant containing the @var{len} > -bytes at @var{ptr}. @var{ptr} will be a C expression of type > -@code{char *} and @var{len} a C expression of type @code{int}. > +@deftypefn {Target Hook} void TARGET_ASM_OUTPUT_ASCII (FILE *@var{f}, const > char *@var{str}, size_t @var{length}) > +A target hook to output an assembly instruction to assemble a string > + constant containing the @var{length} bytes at @var{str}.
^ stray space > -If the assembler has a @code{.ascii} pseudo-op as found in the > -Berkeley Unix assembler, do not define the macro > -@code{ASM_OUTPUT_ASCII}. > -@end defmac > +The defalt hook uses the @code{.ascii} pseudo op as found in the Berkely > Unix assembler. Typoes ("defalt", "Berkely"). > +DEFHOOK > +(output_ascii, > + "A target hook to output an assembly instruction to assemble a string\n\ > + constant containing the @var{length} bytes at @var{str}.\n\ > +\n\ > +The defalt hook uses the @code{.ascii} pseudo op as found in the Berkely > Unix assembler.", > + void, (FILE *f, const char *str, size_t length), > + default_output_ascii) Both here as well, of course. > - FIXME: ASM_OUTPUT_ASCII, as defined in config/elfos.h will not emit NUL > - characters - instead it treats them as sub-string separators. Since > - we want to emit NUL strings terminators into the object file we have to > use > - ASM_OUTPUT_SKIP. */ > + FIXME: target.asm_out.output_ascii, as defined in config/elfos.h will not targetm? Segher