]> git.ipfire.org Git - thirdparty/gcc.git/commit
Prevent use of ASM_EXPR for optimized COBOL compilations [PR119214]
authorRobert Dubner <rdubner@symas.com>
Fri, 14 Mar 2025 01:03:46 +0000 (21:03 -0400)
committerRobert Dubner <rdubner@symas.com>
Fri, 14 Mar 2025 12:52:16 +0000 (08:52 -0400)
commitb673d7b593f63a526a85d56204f1217bc4fbf6a1
tree59c16bd55afff3e9d20c47f2d8c20b08f1051850
parentddcb471e76a9960d644b9c69cab05944abdd1092
Prevent use of ASM_EXPR for optimized COBOL compilations [PR119214]

The creation of assembler labels using ASM_EXPR causes name collisions in the
assembly language because some optimizations repeat code, and those labels
can get repeated. Use of "if( !optimize )" prevents (at least) that problem when
it cropped up with "-O -ftrace"

gcc/cobol:

PR cobol/119214
* gengen.cc: applies if( !optimize ) test
gcc/cobol/gengen.cc