aboutsummaryrefslogtreecommitdiff
path: root/gcc/vec.h
diff options
context:
space:
mode:
authorNathan Froyd <froydnj@codesourcery.com>2010-06-28 12:04:54 +0000
committerNathan Froyd <froydnj@gcc.gnu.org>2010-06-28 12:04:54 +0000
commit04924d6a8881c2f4d4461e0e7a169846f2a34a05 (patch)
treebb1f1cf3fc571083de0db917a2eeeb95c8c15cb4 /gcc/vec.h
parent3b06d379028526625f4b9e0cf5d5f5137de950d4 (diff)
downloadgcc-04924d6a8881c2f4d4461e0e7a169846f2a34a05.zip
gcc-04924d6a8881c2f4d4461e0e7a169846f2a34a05.tar.gz
gcc-04924d6a8881c2f4d4461e0e7a169846f2a34a05.tar.bz2
vec.h (vec_heap_free): Add parentheses around free.
gcc/ * vec.h (vec_heap_free): Add parentheses around free. gcc/fortran/ * trans-openmp.c (dovar_init): Define. Define VECs containing it. (gfc_trans_omp_do): Use a VEC to accumulate variables and their initializers. From-SVN: r161486
Diffstat (limited to 'gcc/vec.h')
-rw-r--r--gcc/vec.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/vec.h b/gcc/vec.h
index c32bf88..93a432d 100644
--- a/gcc/vec.h
+++ b/gcc/vec.h
@@ -436,7 +436,8 @@ extern void dump_vec_loc_statistics (void);
#ifdef GATHER_STATISTICS
void vec_heap_free (void *);
#else
-#define vec_heap_free(V) free (V)
+/* Avoid problems with frontends that #define free(x). */
+#define vec_heap_free(V) (free) (V)
#endif
#if ENABLE_CHECKING