On Fri, Apr 11, 2025 at 10:57 AM Rainer Orth <r...@cebitec.uni-bielefeld.de> wrote: > > When building COBOL on Solaris/sparcv9 with the native assembler, many > tests FAIL to assemble at -O0 like this: > > FAIL: cobol.dg/data1.cob -O0 (test for excess errors) > Excess errors: > /usr/ccs/bin/as: "/var/tmp//ccUduuqd.s", line 302: error: invalid character > (0x50) > /usr/ccs/bin/as: "/var/tmp//ccUduuqd.s", line 302: error: unknown opcode > "PERFORM" > /usr/ccs/bin/as: "/var/tmp//ccUduuqd.s", line 302: error: statement syntax > > The problem is that genapi.cc hardcodes # as assembler comment > character, which isn't valid in general. > > Instead, this patch uses ASM_COMMENT_START. > > Bootstrapped without regressions on sparcv9-sun-solaris2.11, > amd64-pc-solaris2.11, and x86_64-pc-linux-gnu. > > Ok for trunk?
OK. > Rainer > > -- > ----------------------------------------------------------------------------- > Rainer Orth, Center for Biotechnology, Bielefeld University > > > 2025-04-08 Rainer Orth <r...@cebitec.uni-bielefeld.de> > > gcc/cobol: > * genapi.cc: Include target.h. > (section_label): Use ASM_COMMENT_START. > (paragraph_label): Likewise. > (parser_perform): Likewise. > (internal_perform_through): Likewise. > (hijack_for_development): Likewise. >