Frank Heckenbach wrote:
Thanks. Works for me too, also on gcc-3.2, gcc-2.95 and (similarly) gcc-2.8.1 (I can provide a patch for the latter if anyone is interested).
BTW, is it only these two places, not e.g. the line fprintf (asmfile, ";0;%d;", TREE_UNSIGNED (type) ? 255 : 127); (in case CHAR_TYPE) or the line fputs (";0;", asmfile); (in case REAL_TYPE)? I can't really read stabs, so I don't know where there must be a semicolon.
I have not checked all cases, but typically stabs seem to require ending semicolon. In the two cases I changed the negative number is reference to a builtin type. For such reference stabs manual gives examples without semicolon (and objdump do not want semicolon too), so I assume that version without semicolon is correct.
AFAIKS only in two places such construct was used. Maybe I missed something, but gcc typically prefers other constructs.