OSDN Git Service
(root)
/
pf3gnuchains
/
gcc-fork.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
PR c++/36695
[pf3gnuchains/gcc-fork.git]
/
gcc
/
c-omp.c
diff --git
a/gcc/c-omp.c
b/gcc/c-omp.c
index
b06c830
..
3be3729
100644
(file)
--- a/
gcc/c-omp.c
+++ b/
gcc/c-omp.c
@@
-357,7
+357,8
@@
c_finish_omp_for (location_t locus, tree declv, tree initv, tree condv,
break;
incr_ok = true;
- if (POINTER_TYPE_P (TREE_TYPE (decl)))
+ if (POINTER_TYPE_P (TREE_TYPE (decl))
+ && TREE_OPERAND (incr, 1))
{
tree t = fold_convert (sizetype, TREE_OPERAND (incr, 1));