Bug 33363 - gfortran is missing -fcase-preserve option
Summary: gfortran is missing -fcase-preserve option
Status: RESOLVED WONTFIX
Alias: None
Product: gcc
Classification: Unclassified
Component: fortran (show other bugs)
Version: 4.3.0
: P3 enhancement
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-09-09 11:18 UTC by Tobias Burnus
Modified: 2014-06-20 20:15 UTC (History)
2 users (show)

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed: 2007-09-17 09:26:37


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tobias Burnus 2007-09-09 11:18:59 UTC
Split-off from PR31310.

g77 has a huge number (~20) of case options, cf.
http://gcc.gnu.org/onlinedocs/gcc-3.4.6/g77/Fortran-Dialect-Options.html#index-g_t_002dfintrin_002dcase_002dinitcap-option-237

-fcase-preserve would probably be the most useful option; I don't know how much needed this option is for old code (cf. PR31310).

Mentioning -fcase-lower in the gfortran manual is a bit odd if this options does not actually exist.

In gfortran's invoke.texi:
"For example, with @option{-funderscoring}, and assuming other defaults like
 @option{-fcase-lower} and that @code{j()} and @code{max_count()} are
 external functions while @code{my_var} and @code{lvar} are local variables,
 a statement like"
Comment 1 Francois-Xavier Coudert 2014-06-20 20:12:02 UTC
Author: fxcoudert
Date: Fri Jun 20 20:11:30 2014
New Revision: 211858

URL: https://gcc.gnu.org/viewcvs?rev=211858&root=gcc&view=rev
Log:
	PR fortran/33363
	* invoke.texi: Don't mention nonexisting -fcase-lower option.

Modified:
    trunk/gcc/fortran/ChangeLog
    trunk/gcc/fortran/invoke.texi
Comment 2 Francois-Xavier Coudert 2014-06-20 20:15:05 UTC
This bug is old, many people have now transitioned their code from g77 times, and BIND(C) offers a standard-conforming way to achieve this goal nowadays. I fixed the doc, and think it's safe to close this PR as WONTFIX.