aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2025-04-14 19:32:06 +0200
committerJakub Jelinek <jakub@gcc.gnu.org>2025-04-14 19:32:06 +0200
commite96cb35ceb08bb6d12670172115f27819c806e82 (patch)
tree4fce897123abd3abf550409409507703b56e7958 /gcc
parent2e3c91786a981f2d68600e2d7b2e25a766e59c21 (diff)
downloadgcc-e96cb35ceb08bb6d12670172115f27819c806e82.zip
gcc-e96cb35ceb08bb6d12670172115f27819c806e82.tar.gz
gcc-e96cb35ceb08bb6d12670172115f27819c806e82.tar.bz2
cobol: Drop -fsyntax-only from COBOL lang.opt [PR119777]
The comment is incorrect, fsyntax-only is not documented in c.opt, but in common.opt: fsyntax-only Common Var(flag_syntax_only) Check for syntax errors, then stop. and as such it applies to all languages, so adding CL_Cobol to the CL_COMMON is both unnecessary and because of RejectNegative which contradicts the generic option very harmful, because it makes -fno-syntax-only invalid for all languages. Fixed by just dropping it. 2025-04-14 Jakub Jelinek <jakub@redhat.com> PR cobol/119777 * lang.opt (fsyntax-only): Remove. * lang.opt.urls: Regenerate.
Diffstat (limited to 'gcc')
-rw-r--r--gcc/cobol/lang.opt4
-rw-r--r--gcc/cobol/lang.opt.urls3
2 files changed, 0 insertions, 7 deletions
diff --git a/gcc/cobol/lang.opt b/gcc/cobol/lang.opt
index 42c4020..142ec4f 100644
--- a/gcc/cobol/lang.opt
+++ b/gcc/cobol/lang.opt
@@ -77,10 +77,6 @@ ffixed-form
Cobol RejectNegative
Assume that the source file is fixed form.
-fsyntax-only
-Cobol RejectNegative
-; Documented in c.opt
-
ffree-form
Cobol RejectNegative
Assume that the source file is free form.
diff --git a/gcc/cobol/lang.opt.urls b/gcc/cobol/lang.opt.urls
index 6a5dc1c..75df596 100644
--- a/gcc/cobol/lang.opt.urls
+++ b/gcc/cobol/lang.opt.urls
@@ -13,9 +13,6 @@ UrlSuffix(gcc/Directory-Options.html#index-I) LangUrlSuffix_D(gdc/Directory-Opti
ffixed-form
LangUrlSuffix_Fortran(gfortran/Fortran-Dialect-Options.html#index-ffixed-form)
-fsyntax-only
-UrlSuffix(gcc/Warning-Options.html#index-fsyntax-only) LangUrlSuffix_D(gdc/Warnings.html#index-fno-syntax-only) LangUrlSuffix_Fortran(gfortran/Error-and-Warning-Options.html#index-fsyntax-only)
-
ffree-form
LangUrlSuffix_Fortran(gfortran/Fortran-Dialect-Options.html#index-ffree-form)