OSDN Git Service

2000-08-19 Toon Moene <toon@moene.indiv.nluug.nl>
authortoon <toon@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 19 Aug 2000 13:20:07 +0000 (13:20 +0000)
committertoon <toon@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 19 Aug 2000 13:20:07 +0000 (13:20 +0000)
* top.c (ffe_decode_option): Disable -fdebug-kludge
and warn about it.
* lang-options.h: Document the fact.
* g77.texi: Ditto.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@35805 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/f/ChangeLog
gcc/f/g77.texi
gcc/f/lang-options.h
gcc/f/top.c

index 6cd21a2..621fa8b 100644 (file)
@@ -1,3 +1,10 @@
+2000-08-19  Toon Moene  <toon@moene.indiv.nluug.nl>
+
+       * top.c (ffe_decode_option): Disable -fdebug-kludge
+       and warn about it.
+       * lang-options.h: Document the fact.
+       * g77.texi: Ditto.
+
 2000-08-13  Toon Moene  <toon@moene.indiv.nluug.nl>
 
        * bugs.texi: Describe new ability to emit debug info
index 6c0085c..cf1eb87 100644 (file)
@@ -2659,15 +2659,19 @@ information.
 @cindex common blocks
 @cindex equivalence areas
 @cindex missing debug features
-Support for this option in Fortran programs is incomplete.
+Support for this option in Fortran programs was incomplete up till
+version 0.5.26 of @code{g77}.
 In particular, names of variables and arrays in common blocks
-or that are storage-associated via @code{EQUIVALENCE} are
+or that are storage-associated via @code{EQUIVALENCE} were
 unavailable to the debugger.
 
 However, version 0.5.19 of @code{g77} does provide this information
 in a rudimentary way, as controlled by the
 @samp{-fdebug-kludge} option.
 
+Because version 0.5.26 of @code{g77} enables full debug information
+of COMMON BLOCK and EQUIVALENCE items, this option has been disabled.
+
 @xref{Code Gen Options,,Options for Code Generation Conventions},
 for more information.
 @end table
@@ -3215,6 +3219,10 @@ language mode, so temporarily switching to the C language mode to display the
 information is suggested.
 Use @samp{set language c} and @samp{set language fortran} to accomplish this.
 
+As of version 0.5.26 of @code{g77} this option has been disabled, as the
+compiler is now able to emit correct and complete debug information
+for COMMON BLOCK and EQUIVALENCE items.
+
 For example:
 
 @smallexample
@@ -3261,7 +3269,9 @@ which might make some programs noticeably larger.
 (and its negative form).
 Current plans call for this to happen when published versions of @code{g77}
 and @code{gdb} exist that provide proper access to debugging information on
-@code{COMMON} and @code{EQUIVALENCE} members.
+@code{COMMON} and @code{EQUIVALENCE} members.  This is believed to have
+happened as of version 0.5.26 of @code{g77}, so that this option has been
+disabled starting with this release.
 
 @cindex -femulate-complex option
 @cindex options, -femulate-complex
@@ -8843,6 +8853,10 @@ in conjunction with a contemporary version of @code{gdb},
 properly supports Fortran-language debugging, including access
 to members of @code{COMMON} areas.)
 
+Version 0.5.26 of @code{g77} is believed to provide correct and
+complete debug information for COMMON BLOCK and EQUIVALENCE items -
+hence the @samp{-fdebug-kludge} option has been disabled.
+
 @xref{Code Gen Options,,Options for Code Generation Conventions},
 for information on the @samp{-fdebug-kludge} option.
 
index 804c7ed..7607c7b 100644 (file)
@@ -139,7 +139,7 @@ FTNOPT( "-fvxt-intrinsics-enable", "" )
 FTNOPT( "-fvxt-intrinsics-hide", "Hide non-FORTRAN-77 intrinsics VXT FORTRAN supports" )
 FTNOPT( "-fzeros", "Treat initial values of 0 like non-zero values" )
 FTNOPT( "-fno-zeros", "" )
-FTNOPT( "-fdebug-kludge", "Emit special debugging information for COMMON and EQUIVALENCE" )
+FTNOPT( "-fdebug-kludge", "Emit special debugging information for COMMON and EQUIVALENCE (disabled)" )
 FTNOPT( "-fno-debug-kludge", "" )
 FTNOPT( "-fonetrip", "Take at least one trip through each iterative DO loop" )
 FTNOPT( "-fno-onetrip", "" )
index 4da2258..6eba5c9 100644 (file)
@@ -307,9 +307,9 @@ ffe_decode_option (argc, argv)
       else if (strcmp (&opt[2], "no-zeros") == 0)
        ffe_set_is_zeros (FALSE);
       else if (strcmp (&opt[2], "debug-kludge") == 0)
-       ffe_set_is_debug_kludge (TRUE);
+       warning ("%s disabled, use normal debugging flags", opt);
       else if (strcmp (&opt[2], "no-debug-kludge") == 0)
-       ffe_set_is_debug_kludge (FALSE);
+       warning ("%s disabled, use normal debugging flags", opt);
       else if (strcmp (&opt[2], "onetrip") == 0)
        ffe_set_is_onetrip (TRUE);
       else if (strcmp (&opt[2], "no-onetrip") == 0)