This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran 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]

[PATCH] PR29759


Hi all,

please find attached a proposed fix for PR29759 (ICE on OMP line 
continuation). 

The ICE occured because all lines starting with "!$" where checked 
against "!$OMP", even if they were known OMP conditional lines. The 
fix for this should qualify as obvious. Is a testcase needed?

Regtested on i686-pc-linux-gnu.

If it is acceptable, could someone commit it to trunk and 4.2?

Thanks
	Daniel

Index: gcc/fortran/scanner.c
===================================================================
--- gcc/fortran/scanner.c	(revision 118592)
+++ gcc/fortran/scanner.c	(working copy)
@@ -694,7 +694,7 @@
       while (gfc_is_whitespace (c))
 	c = next_char ();
 
-      if (openmp_flag)
+      if (openmp_flag && !openmp_cond_flag)
 	{
 	  for (i = 0; i < 5; i++, c = next_char ())
 	    {

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