diff options
author | Joseph Myers <joseph@codesourcery.com> | 2010-06-05 13:54:41 +0100 |
---|---|---|
committer | Joseph Myers <jsm28@gcc.gnu.org> | 2010-06-05 13:54:41 +0100 |
commit | f2c1da78929f644fdd6cd556769f1ecbe1614cf1 (patch) | |
tree | 6a1083c9a3ed75f534e40143e61b6ec996cb7901 /gcc/c-tree.h | |
parent | e68edbf6bcedca8428a96fc94fa25dab97b68860 (diff) | |
download | gcc-f2c1da78929f644fdd6cd556769f1ecbe1614cf1.zip gcc-f2c1da78929f644fdd6cd556769f1ecbe1614cf1.tar.gz gcc-f2c1da78929f644fdd6cd556769f1ecbe1614cf1.tar.bz2 |
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
Diffstat (limited to 'gcc/c-tree.h')
-rw-r--r-- | gcc/c-tree.h | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/gcc/c-tree.h b/gcc/c-tree.h index 30b5274..1921e19 100644 --- a/gcc/c-tree.h +++ b/gcc/c-tree.h @@ -490,11 +490,6 @@ extern bool c_warn_unused_global_decl (const_tree); extern void c_initialize_diagnostics (diagnostic_context *); extern bool c_vla_unspec_p (tree x, tree fn); -#define c_build_type_variant(TYPE, CONST_P, VOLATILE_P) \ - c_build_qualified_type ((TYPE), \ - ((CONST_P) ? TYPE_QUAL_CONST : 0) | \ - ((VOLATILE_P) ? TYPE_QUAL_VOLATILE : 0)) - /* in c-typeck.c */ extern bool in_late_binary_op; extern int in_alignof; |