From 019c8e808737da10aefd430d55d4a96695a8859e Mon Sep 17 00:00:00 2001 From: Zack Weinberg Date: Sat, 12 Jun 2004 06:02:51 +0000 Subject: [PATCH] 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 --- gcc/ChangeLog | 5 +++++ gcc/c-typeck.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 875cda2e1d3..b86d6ebedad 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2004-06-11 Zack Weinberg + + * c-typeck.c (default_function_array_conversion): Use + build_pointer_type not TYPE_POINTER_TO. + 2004-06-11 Zack Weinberg * configure.ac: Don't invoke ACX_HEADER_STDBOOL. diff --git a/gcc/c-typeck.c b/gcc/c-typeck.c index 3b8cb4b2c8c..c945f3d3bd4 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) -- 2.30.2