]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/c/ChangeLog
re PR bootstrap/56656 (Suffix or operands invalid for 'movq')
[thirdparty/gcc.git] / gcc / c / ChangeLog
CommitLineData
2ee028f1
MP
12013-02-12 Marek Polacek <polacek@redhat.com>
2
3 PR c/44938
4 * c-parser.c (c_parser_postfix_expression_after_primary): Initialize
5 origtypes to NULL.
6
8824edff
JJ
72013-01-24 Jakub Jelinek <jakub@redhat.com>
8
9 PR c/56078
10 * c-typeck.c (set_nonincremental_init_from_string): If
11 constructor_max_index is NULL, treat it as if tree_int_cst_lt
12 returned false.
13 (process_init_element): Likewise.
14
eadd3d0d
JJ
152012-12-20 Jakub Jelinek <jakub@redhat.com>
16
17 PR c++/55619
18 * c-parser.c (c_parser_asm_operands): Remove CONVERT_P
19 argument, don't call default_function_array_conversion
20 nor c_fully_fold here.
21 (c_parser_asm_statement): Adjust callers.
22 * c-typeck.c (build_asm_expr): Call c_fully_fold on inputs
23 and outputs here, and call default_function_array_conversion
24 on inputs that don't need to be addressable.
25
f8a93a2e
JJ
262012-12-18 Jakub Jelinek <jakub@redhat.com>
27
28 PR c/39464
29 * c-typeck.c (convert_for_assignment): For -Wpointer-sign
30 warning require that both c_common_unsigned_type as well as
31 c_common_signed_type is the same for both mvl and mvr types.
32
9771b263
DN
332012-11-16 Diego Novillo <dnovillo@google.com>
34
35 Adjust for new vec API (http://gcc.gnu.org/wiki/cxx-conversion/cxx-vec)
36
37 * c-common.c: Use new vec API in vec.h.
38 * c-common.h: Likewise.
39 * c-gimplify.c: Likewise.
40 * c-pragma.c: Likewise.
41 * c-pretty-print.c: Likewise.
42 * c-pretty-print.h: Likewise.
43 * c-semantics.c: Likewise.
44 * c-decl.c: Likewise.
45 * c-parser.c: Likewise.
46 * c-tree.h: Likewise.
47 * c-typeck.c: Likewise.
48
880661a4
JW
492012-10-29 Jonathan Wakely <jwakely.gcc@gmail.com>
50
51 PR c++/54930
52 * c-typeck.c (c_finish_return): Use OPT_Wreturn_local_addr.
53
077d1abe
MLI
542012-10-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
55
56 PR c/53066
57 * c-decl.c (warn_if_shadowing): Do not warn if a variable
58 shadows a function, unless the variable is a function or a
59 pointer-to-function.
60
3a785c97
JJ
612012-10-12 Jakub Jelinek <jakub@redhat.com>
62
63 PR c/54381
64 * c-parser.c (struct c_tree_loc_pair): Removed.
65 (c_parser_expr_list): Remove struct c_tree_loc_pair * argument,
66 add location_t * and tree * arguments, fill in array of 3
67 sizeof_arg trees and corresponding locs.
68 (c_parser_attributes, c_parser_objc_keywordexpr): Adjust
69 c_parser_expr_list callers.
70 (c_parser_postfix_expression_after_primary): Likewise. Pass
71 array of 3 sizeof_arg trees and locs (corresponding to first
72 3 arguments) to sizeof_pointer_memaccess_warning.
73
703c8606
LC
742012-10-09 Lawrence Crowl <crowl@google.com>
75
76 * Make-lang.in (c-decl.o): Add dependence on hash-table.h.
77 * c-decl.c (detect_field_duplicates_hash): Change to new type-safe
78 hash table.
79
5d9de0d0
PC
802012-10-09 Paolo Carlini <paolo.carlini@oracle.com>
81
82 PR c++/54194
83 * c-typeck.c (parser_build_binary_op): Update warn_about_parentheses
84 call.
85
a212e43f
MG
862012-10-09 Marc Glisse <marc.glisse@inria.fr>
87
88 PR c++/54427
89 * c-typeck.c: Include c-common.h.
90 (enum stv_conv): Moved to c-common.h.
91 (scalar_to_vector): Moved to c-common.c.
92 (build_binary_op): Adapt to scalar_to_vector's new prototype.
93 * Make-lang.in: c-typeck.c depends on c-common.h.
94
3b78de56
AC
952012-10-04 Arnaud Charlet <charlet@adacore.com>
96
97 * c-decl.c (c_write_global_declarations): Fix handling of
98 -fdump-ada-spec*.
99
78c60e3d
SS
1002012-09-30 Sharad Singhai <singhai@google.com>
101
102 * c-decl.c (c_write_global_declarations): Use a different method
103 to determine if the dump has ben initialized.
104
9f33203d
JM
1052012-09-14 Joseph Myers <joseph@codesourcery.com>
106
107 PR c/54552
108 * c-typeck.c (c_cast_expr): When casting to a type requiring
109 C_MAYBE_CONST_EXPR to be created, pass the inner expression to
110 c_fully_fold first.
111
a27d595d
JM
1122012-09-14 Joseph Myers <joseph@codesourcery.com>
113
114 PR c/54103
115 * c-typeck.c (build_unary_op): Pass original argument of
116 TRUTH_NOT_EXPR to c_objc_common_truthvalue_conversion, then remove
117 any C_MAYBE_CONST_EXPR, if it has integer operands.
118 (build_binary_op): Pass original arguments of TRUTH_ANDIF_EXPR,
119 TRUTH_ORIF_EXPR, TRUTH_AND_EXPR, TRUTH_OR_EXPR and TRUTH_XOR_EXPR
120 to c_objc_common_truthvalue_conversion, then remove any
121 C_MAYBE_CONST_EXPR, if they have integer operands. Use
122 c_objc_common_truthvalue_conversion not
123 c_common_truthvalue_conversion.
124 (c_objc_common_truthvalue_conversion): Build NE_EXPR directly and
125 call note_integer_operands for arguments with integer operands
126 that are not integer constants.
127
9feb29df
JJ
1282012-09-13 Jakub Jelinek <jakub@redhat.com>
129
130 PR c/54559
131 * c-typeck.c (c_finish_return): Do convert to BOOLEAN_TYPE or
132 COMPLEX_TYPE with in_late_binary_op set temporarily to true.
133
d409320c
JJ
1342012-08-31 Jakub Jelinek <jakub@redhat.com>
135
136 PR c/54428
137 * c-convert.c (convert): Don't call fold_convert_loc if
138 TYPE_MAIN_VARIANT of a COMPLEX_TYPE is the same, unless e
139 is a COMPLEX_EXPR. Remove TYPE_MAIN_VARIANT check from
140 COMPLEX_TYPE -> COMPLEX_TYPE conversion.
141
6265d07c
JJ
1422012-08-24 Jakub Jelinek <jakub@redhat.com>
143
144 PR c/54355
145 * c-decl.c (c_parser_label): Pass true as nested and fix up comments
146 for nested and empty_ok arguments in the call to
147 c_parser_declaration_or_fndef.
148
1a4049e7
JJ
1492012-08-17 Jakub Jelinek <jakub@redhat.com>
150
151 * c-tree.h (c_last_sizeof_arg): Declare.
152 * c-parser.c (struct c_tree_loc_pair): New type.
153 (c_parser_expr_list): Add sizeof_arg argument. Fill it in if
154 non-NULL.
155 (c_parser_attributes, c_parser_objc_keywordexpr): Adjust callers.
156 (c_parser_postfix_expression_after_primary): Likewise. Call
157 sizeof_pointer_memaccess_warning if needed.
158 (sizeof_ptr_memacc_comptypes): New function.
159 * c-typeck.c (c_last_sizeof_arg): New global variable.
160 (c_expr_sizeof_expr, c_expr_sizeof_type): Initialize it.
161
0229aee9
UB
1622012-07-24 Uros Bizjak <ubizjak@gmail.com>
163
164 * c-lang.h (lang_decl): Add variable_size GTY option.
165
7ee2468b
SB
1662012-07-16 Steven Bosscher <steven@gcc.gnu.org>
167
168 * c-decl.c: Include dumpfile.h instead of tree-dump.h.
169 * Make-lang.in: Fix dependencies.
170
d4a10d0a
SB
1712012-06-29 Steven Bosscher <steven@gcc.gnu.org>
172
173 * Make-lang.in: New file, rules migrated from gcc/Makefile.in
174 and add language Makefile hooks.
175 * config-lang.in: New file.
176 * c-config-lang.in: Moved from gcc/config-lang.in to here, and
177 add the required "normal" config-lang.in rules.
178 * c-lang.h: Moved from gcc/ to here.
179 * c-tree.h: Likewise.
180 * c-objc-common.c: Likewise.
181 * c-objc-common.h: Likewise.
182 * c-typeck.c: Likewise.
183 * c-convert.c: Likewise.
184 * c-lang.c: Likewise.
185 * c-aux-info.c: Likewise.
186 * c-errors.c: Likewise.
187 * gccspec.c: Likewise.
188 * c-decl.c: Likewise. Include gt-c-c-decl.h, not gt-c-decl.h.
189 * c-parser.c: Likewise. Include gt-c-c-parser.h, not gt-c-parser.h.
190\f
d1e082c2 191Copyright (C) 2012-2013 Free Software Foundation, Inc.
d4a10d0a
SB
192
193Copying and distribution of this file, with or without modification,
194are permitted in any medium without royalty provided the copyright
195notice and this notice are preserved.