diff options
Diffstat (limited to 'gcc/builtins.cc')
-rw-r--r-- | gcc/builtins.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/builtins.cc b/gcc/builtins.cc index b4c4fd0..504b31f 100644 --- a/gcc/builtins.cc +++ b/gcc/builtins.cc @@ -1296,8 +1296,8 @@ expand_builtin_prefetch (tree exp) } else op1 = expand_normal (arg1); - /* Argument 1 must be either zero or one. */ - if (INTVAL (op1) != 0 && INTVAL (op1) != 1) + /* Argument 1 must be 0, 1 or 2. */ + if (INTVAL (op1) < 0 || INTVAL (op1) > 2) { warning (0, "invalid second argument to %<__builtin_prefetch%>;" " using zero"); |