Similar to g:67356e61bd58ed17e4d5e67624a17a39e592fb5d
this adds a default case such that we don't get a warning on
type being used uninitialized.

This fixes the armhf bootstrap.

Bootstrapped Regtested on aarch64-none-linux-gnu,
arm-none-linux-gnueabihf, x86_64-pc-linux-gnu
-m32, -m64 and no issues.

Pushed to master as obvious.

Thanks,
Tamar

gcc/fortran/ChangeLog:

        * trans-openmp.cc (gfc_trans_omp_clauses): Add default to switch.

---
diff --git a/gcc/fortran/trans-openmp.cc b/gcc/fortran/trans-openmp.cc
index 
254fc934af1914dcf28262dd15af206f85b08b97..d7f3c28182393a990f64b2ef0f19a2494cda66ed
 100644
--- a/gcc/fortran/trans-openmp.cc
+++ b/gcc/fortran/trans-openmp.cc
@@ -5281,6 +5281,7 @@ gfc_trans_omp_clauses (stmtblock_t *block, 
gfc_omp_clauses *clauses,
          type = OMP_CLAUSE_DEVICE_TYPE_ANY;
          break;
        case OMP_DEVICE_TYPE_UNSET:
+       default:
          gcc_unreachable ();
        }
       c = build_omp_clause (gfc_get_location (&where), OMP_CLAUSE_DEVICE_TYPE);


-- 
diff --git a/gcc/fortran/trans-openmp.cc b/gcc/fortran/trans-openmp.cc
index 254fc934af1914dcf28262dd15af206f85b08b97..d7f3c28182393a990f64b2ef0f19a2494cda66ed 100644
--- a/gcc/fortran/trans-openmp.cc
+++ b/gcc/fortran/trans-openmp.cc
@@ -5281,6 +5281,7 @@ gfc_trans_omp_clauses (stmtblock_t *block, gfc_omp_clauses *clauses,
 	  type = OMP_CLAUSE_DEVICE_TYPE_ANY;
 	  break;
 	case OMP_DEVICE_TYPE_UNSET:
+	default:
 	  gcc_unreachable ();
 	}
       c = build_omp_clause (gfc_get_location (&where), OMP_CLAUSE_DEVICE_TYPE);

Reply via email to