c-typeck.c (default_function_array_conversion): Use build_pointer_type not TYPE_POINT...
authorZack Weinberg <zack@codesourcery.com>
Sat, 12 Jun 2004 06:02:51 +0000 (06:02 +0000)
committerZack Weinberg <zack@gcc.gnu.org>
Sat, 12 Jun 2004 06:02:51 +0000 (06:02 +0000)
* c-typeck.c (default_function_array_conversion): Use
build_pointer_type not TYPE_POINTER_TO.

From-SVN: r83021

gcc/ChangeLog
gcc/c-typeck.c

index 875cda2e1d3e08b3edf3bc16664c97b40b856629..b86d6ebedad20920ad94f92c6898ee23639d907c 100644 (file)
@@ -1,3 +1,8 @@
+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.
index 3b8cb4b2c8c3620ae0b3b0747015ff04e5680ee6..c945f3d3bd49c9a23ce130010cb7087c3e331331 100644 (file)
@@ -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)