diff options
Diffstat (limited to 'gcc/expr.c')
-rw-r--r-- | gcc/expr.c | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -53,6 +53,7 @@ along with GCC; see the file COPYING3. If not see #include "target.h" #include "timevar.h" #include "df.h" +#include "diagnostic.h" /* Decide whether a function's arguments should be processed from first to last or from last to first. @@ -9360,6 +9361,13 @@ expand_expr_real_1 (tree exp, rtx target, enum machine_mode tmode, goto binop; } + case OMP_ATOMIC_LOAD: + case OMP_ATOMIC_STORE: + /* OMP expansion is not run when there were errors, so these codes + can get here. */ + gcc_assert (errorcount != 0); + return NULL_RTX; + default: return lang_hooks.expand_expr (exp, original_target, tmode, modifier, alt_rtl); |