diff options
author | Zack Weinberg <zack@codesourcery.com> | 2004-06-12 06:02:51 +0000 |
---|---|---|
committer | Zack Weinberg <zack@gcc.gnu.org> | 2004-06-12 06:02:51 +0000 |
commit | 019c8e808737da10aefd430d55d4a96695a8859e (patch) | |
tree | 16bf3defe8435da65ecbd368acf31fd942002c14 /gcc | |
parent | 2fac9c017f9f3339fc56b843a4e0b372d1f770a1 (diff) | |
download | gcc-019c8e808737da10aefd430d55d4a96695a8859e.zip gcc-019c8e808737da10aefd430d55d4a96695a8859e.tar.gz gcc-019c8e808737da10aefd430d55d4a96695a8859e.tar.bz2 |
c-typeck.c (default_function_array_conversion): Use build_pointer_type not TYPE_POINTER_TO.
* c-typeck.c (default_function_array_conversion): Use
build_pointer_type not TYPE_POINTER_TO.
From-SVN: r83021
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/c-typeck.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 875cda2..b86d6eb 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,10 @@ 2004-06-11 Zack Weinberg <zack@codesourcery.com> + * c-typeck.c (default_function_array_conversion): Use + build_pointer_type not TYPE_POINTER_TO. + +2004-06-11 Zack Weinberg <zack@codesourcery.com> + * configure.ac: Don't invoke ACX_HEADER_STDBOOL. * configure, config.in: Regenerate. * system.h: Unconditionally define bool as unsigned char, diff --git a/gcc/c-typeck.c b/gcc/c-typeck.c index 3b8cb4b..c945f3d 100644 --- a/gcc/c-typeck.c +++ b/gcc/c-typeck.c @@ -1207,7 +1207,7 @@ default_function_array_conversion (tree exp) | (volatilep * TYPE_QUAL_VOLATILE)); if (TREE_CODE (exp) == INDIRECT_REF) - return convert (TYPE_POINTER_TO (restype), + return convert (build_pointer_type (restype), TREE_OPERAND (exp, 0)); if (TREE_CODE (exp) == COMPOUND_EXPR) |