]> git.ipfire.org Git - thirdparty/gcc.git/commit
cobol: Honor the "-static" command-line option. [PR119231]
authorRobert Dubner <rdubner@symas.com>
Thu, 24 Jul 2025 16:09:36 +0000 (12:09 -0400)
committerRobert Dubner <rdubner@symas.com>
Tue, 29 Jul 2025 16:06:40 +0000 (12:06 -0400)
commit4e568451bface5d15fc0bb28bc6794612f32677c
treedf0be73ff46b0f413bc4693e4298d3278ad10599
parent0879a2a840c9209b3bf54e2dc40355c263f28924
cobol: Honor the "-static" command-line option. [PR119231]

gcc/cobol/ChangeLog:

PR cobol/119231
* gcobolspec.cc: (lang_specific_driver): Pass OPT_static through.
Handle -static and -static-libgcobol properly.

gcc/testsuite/ChangeLog:

* cobol.dg/group2/_-static__compilation.cob: Modify for -static warning.
* cobol.dg/group2/_-static__compilation.out: Removed.

(cherry picked from commit 44e32178031e89399710c3ee7444891631a9c8ec)
gcc/cobol/gcobolspec.cc
gcc/testsuite/cobol.dg/group2/_-static__compilation.cob
gcc/testsuite/cobol.dg/group2/_-static__compilation.out [deleted file]