]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
cobol: Drop -fsyntax-only from COBOL lang.opt [PR119777]
authorJakub Jelinek <jakub@redhat.com>
Mon, 14 Apr 2025 17:32:06 +0000 (19:32 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Mon, 14 Apr 2025 17:32:06 +0000 (19:32 +0200)
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.

gcc/cobol/lang.opt
gcc/cobol/lang.opt.urls

index 42c402037b5c1dcaa6aba83af3490113a6bc14f8..142ec4f34bf247cefa3c70618629e1ff760e8afe 100644 (file)
@@ -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.
index 6a5dc1c0f5809a27d1d279ec2f35ddbe429f6126..75df59643eaba4c944e881d1c6c3f41f53da06e4 100644 (file)
@@ -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)