]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/c/ChangeLog
re PR c/39464 (Attribute may_alias causes invalid warning)
[thirdparty/gcc.git] / gcc / c / ChangeLog
CommitLineData
f8a93a2e
JJ
12012-12-18 Jakub Jelinek <jakub@redhat.com>
2
3 PR c/39464
4 * c-typeck.c (convert_for_assignment): For -Wpointer-sign
5 warning require that both c_common_unsigned_type as well as
6 c_common_signed_type is the same for both mvl and mvr types.
7
9771b263
DN
82012-11-16 Diego Novillo <dnovillo@google.com>
9
10 Adjust for new vec API (http://gcc.gnu.org/wiki/cxx-conversion/cxx-vec)
11
12 * c-common.c: Use new vec API in vec.h.
13 * c-common.h: Likewise.
14 * c-gimplify.c: Likewise.
15 * c-pragma.c: Likewise.
16 * c-pretty-print.c: Likewise.
17 * c-pretty-print.h: Likewise.
18 * c-semantics.c: Likewise.
19 * c-decl.c: Likewise.
20 * c-parser.c: Likewise.
21 * c-tree.h: Likewise.
22 * c-typeck.c: Likewise.
23
880661a4
JW
242012-10-29 Jonathan Wakely <jwakely.gcc@gmail.com>
25
26 PR c++/54930
27 * c-typeck.c (c_finish_return): Use OPT_Wreturn_local_addr.
28
077d1abe
MLI
292012-10-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
30
31 PR c/53066
32 * c-decl.c (warn_if_shadowing): Do not warn if a variable
33 shadows a function, unless the variable is a function or a
34 pointer-to-function.
35
3a785c97
JJ
362012-10-12 Jakub Jelinek <jakub@redhat.com>
37
38 PR c/54381
39 * c-parser.c (struct c_tree_loc_pair): Removed.
40 (c_parser_expr_list): Remove struct c_tree_loc_pair * argument,
41 add location_t * and tree * arguments, fill in array of 3
42 sizeof_arg trees and corresponding locs.
43 (c_parser_attributes, c_parser_objc_keywordexpr): Adjust
44 c_parser_expr_list callers.
45 (c_parser_postfix_expression_after_primary): Likewise. Pass
46 array of 3 sizeof_arg trees and locs (corresponding to first
47 3 arguments) to sizeof_pointer_memaccess_warning.
48
703c8606
LC
492012-10-09 Lawrence Crowl <crowl@google.com>
50
51 * Make-lang.in (c-decl.o): Add dependence on hash-table.h.
52 * c-decl.c (detect_field_duplicates_hash): Change to new type-safe
53 hash table.
54
5d9de0d0
PC
552012-10-09 Paolo Carlini <paolo.carlini@oracle.com>
56
57 PR c++/54194
58 * c-typeck.c (parser_build_binary_op): Update warn_about_parentheses
59 call.
60
a212e43f
MG
612012-10-09 Marc Glisse <marc.glisse@inria.fr>
62
63 PR c++/54427
64 * c-typeck.c: Include c-common.h.
65 (enum stv_conv): Moved to c-common.h.
66 (scalar_to_vector): Moved to c-common.c.
67 (build_binary_op): Adapt to scalar_to_vector's new prototype.
68 * Make-lang.in: c-typeck.c depends on c-common.h.
69
3b78de56
AC
702012-10-04 Arnaud Charlet <charlet@adacore.com>
71
72 * c-decl.c (c_write_global_declarations): Fix handling of
73 -fdump-ada-spec*.
74
78c60e3d
SS
752012-09-30 Sharad Singhai <singhai@google.com>
76
77 * c-decl.c (c_write_global_declarations): Use a different method
78 to determine if the dump has ben initialized.
79
9f33203d
JM
802012-09-14 Joseph Myers <joseph@codesourcery.com>
81
82 PR c/54552
83 * c-typeck.c (c_cast_expr): When casting to a type requiring
84 C_MAYBE_CONST_EXPR to be created, pass the inner expression to
85 c_fully_fold first.
86
a27d595d
JM
872012-09-14 Joseph Myers <joseph@codesourcery.com>
88
89 PR c/54103
90 * c-typeck.c (build_unary_op): Pass original argument of
91 TRUTH_NOT_EXPR to c_objc_common_truthvalue_conversion, then remove
92 any C_MAYBE_CONST_EXPR, if it has integer operands.
93 (build_binary_op): Pass original arguments of TRUTH_ANDIF_EXPR,
94 TRUTH_ORIF_EXPR, TRUTH_AND_EXPR, TRUTH_OR_EXPR and TRUTH_XOR_EXPR
95 to c_objc_common_truthvalue_conversion, then remove any
96 C_MAYBE_CONST_EXPR, if they have integer operands. Use
97 c_objc_common_truthvalue_conversion not
98 c_common_truthvalue_conversion.
99 (c_objc_common_truthvalue_conversion): Build NE_EXPR directly and
100 call note_integer_operands for arguments with integer operands
101 that are not integer constants.
102
9feb29df
JJ
1032012-09-13 Jakub Jelinek <jakub@redhat.com>
104
105 PR c/54559
106 * c-typeck.c (c_finish_return): Do convert to BOOLEAN_TYPE or
107 COMPLEX_TYPE with in_late_binary_op set temporarily to true.
108
d409320c
JJ
1092012-08-31 Jakub Jelinek <jakub@redhat.com>
110
111 PR c/54428
112 * c-convert.c (convert): Don't call fold_convert_loc if
113 TYPE_MAIN_VARIANT of a COMPLEX_TYPE is the same, unless e
114 is a COMPLEX_EXPR. Remove TYPE_MAIN_VARIANT check from
115 COMPLEX_TYPE -> COMPLEX_TYPE conversion.
116
6265d07c
JJ
1172012-08-24 Jakub Jelinek <jakub@redhat.com>
118
119 PR c/54355
120 * c-decl.c (c_parser_label): Pass true as nested and fix up comments
121 for nested and empty_ok arguments in the call to
122 c_parser_declaration_or_fndef.
123
1a4049e7
JJ
1242012-08-17 Jakub Jelinek <jakub@redhat.com>
125
126 * c-tree.h (c_last_sizeof_arg): Declare.
127 * c-parser.c (struct c_tree_loc_pair): New type.
128 (c_parser_expr_list): Add sizeof_arg argument. Fill it in if
129 non-NULL.
130 (c_parser_attributes, c_parser_objc_keywordexpr): Adjust callers.
131 (c_parser_postfix_expression_after_primary): Likewise. Call
132 sizeof_pointer_memaccess_warning if needed.
133 (sizeof_ptr_memacc_comptypes): New function.
134 * c-typeck.c (c_last_sizeof_arg): New global variable.
135 (c_expr_sizeof_expr, c_expr_sizeof_type): Initialize it.
136
0229aee9
UB
1372012-07-24 Uros Bizjak <ubizjak@gmail.com>
138
139 * c-lang.h (lang_decl): Add variable_size GTY option.
140
7ee2468b
SB
1412012-07-16 Steven Bosscher <steven@gcc.gnu.org>
142
143 * c-decl.c: Include dumpfile.h instead of tree-dump.h.
144 * Make-lang.in: Fix dependencies.
145
d4a10d0a
SB
1462012-06-29 Steven Bosscher <steven@gcc.gnu.org>
147
148 * Make-lang.in: New file, rules migrated from gcc/Makefile.in
149 and add language Makefile hooks.
150 * config-lang.in: New file.
151 * c-config-lang.in: Moved from gcc/config-lang.in to here, and
152 add the required "normal" config-lang.in rules.
153 * c-lang.h: Moved from gcc/ to here.
154 * c-tree.h: Likewise.
155 * c-objc-common.c: Likewise.
156 * c-objc-common.h: Likewise.
157 * c-typeck.c: Likewise.
158 * c-convert.c: Likewise.
159 * c-lang.c: Likewise.
160 * c-aux-info.c: Likewise.
161 * c-errors.c: Likewise.
162 * gccspec.c: Likewise.
163 * c-decl.c: Likewise. Include gt-c-c-decl.h, not gt-c-decl.h.
164 * c-parser.c: Likewise. Include gt-c-c-parser.h, not gt-c-parser.h.
165\f
166Copyright (C) 2012 Free Software Foundation, Inc.
167
168Copying and distribution of this file, with or without modification,
169are permitted in any medium without royalty provided the copyright
170notice and this notice are preserved.