diff options
author | Jerry DeLisle <jvdelisle@gcc.gnu.org> | 2025-02-26 17:26:26 -0800 |
---|---|---|
committer | Jerry DeLisle <jvdelisle@gcc.gnu.org> | 2025-02-27 12:39:29 -0800 |
commit | cfc9f42122f41668b986126ba7e65e3dd8bf1e9e (patch) | |
tree | 4739e1b8097cf94b49e12a232030a0ec5c230574 | |
parent | 9792126ac769f2962c0f305991818c64f9e51221 (diff) | |
download | gcc-cfc9f42122f41668b986126ba7e65e3dd8bf1e9e.zip gcc-cfc9f42122f41668b986126ba7e65e3dd8bf1e9e.tar.gz gcc-cfc9f42122f41668b986126ba7e65e3dd8bf1e9e.tar.bz2 |
GCC: Documentation of -x option
This change updates information about the -x option to clarify
that it does not ensure standards compliance. Sparked by
discussions in the following PR.
PR fortran/108369
gcc/ChangeLog:
* doc/invoke.texi: Add a note to clarify. Adjust some wording.
-rw-r--r-- | gcc/doc/invoke.texi | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi index bad49a0..6f8bf39 100644 --- a/gcc/doc/invoke.texi +++ b/gcc/doc/invoke.texi @@ -1700,9 +1700,13 @@ f77 f77-cpp-input f95 f95-cpp-input go @end smallexample +Note that @option{-x} does not imply a particular language standard. +For example @option{-x f77} may also require @option{-std=legacy} for some older +source codes. + @item -x none Turn off any specification of a language, so that subsequent files are -handled according to their file name suffixes (as they are if @option{-x} +handled according to their file name suffixes (as if @option{-x} has not been used at all). @end table |