[Bug fortran/47177] New: bad example of using -dM in manual

redi at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed Jan 5 12:17:00 GMT 2011


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



More information about the Gcc-bugs mailing list