]> gcc.gnu.org Git - gcc.git/commit
re PR c/44322 (Bogus warning when assigning pointer-to-array with both "const" and...
authorJoseph Myers <joseph@codesourcery.com>
Sat, 5 Jun 2010 12:54:41 +0000 (13:54 +0100)
committerJoseph Myers <jsm28@gcc.gnu.org>
Sat, 5 Jun 2010 12:54:41 +0000 (13:54 +0100)
commitf2c1da78929f644fdd6cd556769f1ecbe1614cf1
tree6a1083c9a3ed75f534e40143e61b6ec996cb7901
parente68edbf6bcedca8428a96fc94fa25dab97b68860
re PR c/44322 (Bogus warning when assigning pointer-to-array with both "const" and "restrict")

PR c/44322
* c-typeck.c (build_unary_op): Merge qualifiers into pointer
target type for ADDR_EXPR; require no changes to qualifiers except
for function types.
* c-tree.h (c_build_type_variant): Remove.

testsuite:
* gcc.dg/c99-restrict-4.c: New test.

From-SVN: r160312
gcc/ChangeLog
gcc/c-tree.h
gcc/c-typeck.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/c99-restrict-4.c [new file with mode: 0644]
This page took 0.058378 seconds and 5 git commands to generate.