This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug fortran/54426] [4.8 Regression] FAIL: gfortran.dg/common_6.f90 -O (internal compiler error) on powerpc-apple-darwin9


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54426

--- Comment #2 from Dominique d'Humieres <dominiq at lps dot ens.fr> 2012-08-31 12:21:59 UTC ---
Following Tobias' suggestion on IRC, the patch

--- /opt/gcc/work/gcc/fortran/symbol.c    2012-08-28 01:14:39.000000000 +0200
+++ /opt/gcc/rel_work/gcc/fortran/symbol.c    2012-08-30 23:00:09.000000000
+0200
@@ -2890,6 +2890,7 @@ gfc_undo_symbols (void)
          needs to be removed to stop the resolver looking
          for a (possibly) dead symbol.  */

+          p->common_block->refs--;
           if (p->common_block->head == p)
             p->common_block->head = p->common_next;
           else

fixes the PR on powerpc-apple-darwin9 without regression.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]