This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/47177] New: bad example of using -dM in manual
- From: "redi at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 5 Jan 2011 12:17:27 +0000
- Subject: [Bug fortran/47177] New: bad example of using -dM in manual
- Auto-submitted: auto-generated
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47177
Summary: bad example of using -dM in manual
Product: gcc
Version: 4.6.0
Status: UNCONFIRMED
Keywords: documentation
Severity: minor
Priority: P3
Component: fortran
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: redi@gcc.gnu.org
http://gcc.gnu.org/onlinedocs/gfortran/Preprocessing-Options.html gives an
example of using -dM:
touch foo.f90; gfortran -cpp -dM foo.f90
But the CPP documentation for -dM at
http://gcc.gnu.org/onlinedocs/cpp/Invocation.html#index-dM-183 points out that
without -E it will be interpreted as a synonym for -fdump-rtl-mach
To print the predefined macros the example should be changed to
touch foo.f90; gfortran -cpp -E -dM foo.f90