aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/fortran/scanner.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc-4.9/gcc/fortran/scanner.c')
-rw-r--r--gcc-4.9/gcc/fortran/scanner.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/gcc-4.9/gcc/fortran/scanner.c b/gcc-4.9/gcc/fortran/scanner.c
index 8f5173421..8934924d8 100644
--- a/gcc-4.9/gcc/fortran/scanner.c
+++ b/gcc-4.9/gcc/fortran/scanner.c
@@ -752,7 +752,8 @@ skip_free_comments (void)
2) handle OpenMP conditional compilation, where
!$ should be treated as 2 spaces (for initial lines
only if followed by space). */
- if (gfc_option.gfc_flag_openmp && at_bol)
+ if ((gfc_option.gfc_flag_openmp
+ || gfc_option.gfc_flag_openmp_simd) && at_bol)
{
locus old_loc = gfc_current_locus;
if (next_char () == '$')
@@ -878,7 +879,7 @@ skip_fixed_comments (void)
&& continue_line < gfc_linebuf_linenum (gfc_current_locus.lb))
continue_line = gfc_linebuf_linenum (gfc_current_locus.lb);
- if (gfc_option.gfc_flag_openmp)
+ if (gfc_option.gfc_flag_openmp || gfc_option.gfc_flag_openmp_simd)
{
if (next_char () == '$')
{
@@ -1821,7 +1822,7 @@ include_line (gfc_char_t *line)
c = line;
- if (gfc_option.gfc_flag_openmp)
+ if (gfc_option.gfc_flag_openmp || gfc_option.gfc_flag_openmp_simd)
{
if (gfc_current_form == FORM_FREE)
{