diff options
author | Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> | 2025-04-13 12:50:19 +0200 |
---|---|---|
committer | Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> | 2025-04-13 12:50:19 +0200 |
commit | 4b990a03bd4cd6cf13ae1b5ab6c965dadf404619 (patch) | |
tree | 9f35206c0f98aa96ee739c42a2d0756843b22c4c /libjava/java/util | |
parent | 45e93925beaf67ba99c67f78bd9771cacd316853 (diff) | |
download | gcc-4b990a03bd4cd6cf13ae1b5ab6c965dadf404619.zip gcc-4b990a03bd4cd6cf13ae1b5ab6c965dadf404619.tar.gz gcc-4b990a03bd4cd6cf13ae1b5ab6c965dadf404619.tar.bz2 |
cobol: Heed ASM_COMMENT_START
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.
2025-04-08 Rainer Orth <ro@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.
Diffstat (limited to 'libjava/java/util')
0 files changed, 0 insertions, 0 deletions