]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/c/ChangeLog
Daily bump.
[thirdparty/gcc.git] / gcc / c / ChangeLog
CommitLineData
880661a4
JW
12012-10-29 Jonathan Wakely <jwakely.gcc@gmail.com>
2
3 PR c++/54930
4 * c-typeck.c (c_finish_return): Use OPT_Wreturn_local_addr.
5
077d1abe
MLI
62012-10-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
7
8 PR c/53066
9 * c-decl.c (warn_if_shadowing): Do not warn if a variable
10 shadows a function, unless the variable is a function or a
11 pointer-to-function.
12
3a785c97
JJ
132012-10-12 Jakub Jelinek <jakub@redhat.com>
14
15 PR c/54381
16 * c-parser.c (struct c_tree_loc_pair): Removed.
17 (c_parser_expr_list): Remove struct c_tree_loc_pair * argument,
18 add location_t * and tree * arguments, fill in array of 3
19 sizeof_arg trees and corresponding locs.
20 (c_parser_attributes, c_parser_objc_keywordexpr): Adjust
21 c_parser_expr_list callers.
22 (c_parser_postfix_expression_after_primary): Likewise. Pass
23 array of 3 sizeof_arg trees and locs (corresponding to first
24 3 arguments) to sizeof_pointer_memaccess_warning.
25
703c8606
LC
262012-10-09 Lawrence Crowl <crowl@google.com>
27
28 * Make-lang.in (c-decl.o): Add dependence on hash-table.h.
29 * c-decl.c (detect_field_duplicates_hash): Change to new type-safe
30 hash table.
31
5d9de0d0
PC
322012-10-09 Paolo Carlini <paolo.carlini@oracle.com>
33
34 PR c++/54194
35 * c-typeck.c (parser_build_binary_op): Update warn_about_parentheses
36 call.
37
a212e43f
MG
382012-10-09 Marc Glisse <marc.glisse@inria.fr>
39
40 PR c++/54427
41 * c-typeck.c: Include c-common.h.
42 (enum stv_conv): Moved to c-common.h.
43 (scalar_to_vector): Moved to c-common.c.
44 (build_binary_op): Adapt to scalar_to_vector's new prototype.
45 * Make-lang.in: c-typeck.c depends on c-common.h.
46
3b78de56
AC
472012-10-04 Arnaud Charlet <charlet@adacore.com>
48
49 * c-decl.c (c_write_global_declarations): Fix handling of
50 -fdump-ada-spec*.
51
78c60e3d
SS
522012-09-30 Sharad Singhai <singhai@google.com>
53
54 * c-decl.c (c_write_global_declarations): Use a different method
55 to determine if the dump has ben initialized.
56
9f33203d
JM
572012-09-14 Joseph Myers <joseph@codesourcery.com>
58
59 PR c/54552
60 * c-typeck.c (c_cast_expr): When casting to a type requiring
61 C_MAYBE_CONST_EXPR to be created, pass the inner expression to
62 c_fully_fold first.
63
a27d595d
JM
642012-09-14 Joseph Myers <joseph@codesourcery.com>
65
66 PR c/54103
67 * c-typeck.c (build_unary_op): Pass original argument of
68 TRUTH_NOT_EXPR to c_objc_common_truthvalue_conversion, then remove
69 any C_MAYBE_CONST_EXPR, if it has integer operands.
70 (build_binary_op): Pass original arguments of TRUTH_ANDIF_EXPR,
71 TRUTH_ORIF_EXPR, TRUTH_AND_EXPR, TRUTH_OR_EXPR and TRUTH_XOR_EXPR
72 to c_objc_common_truthvalue_conversion, then remove any
73 C_MAYBE_CONST_EXPR, if they have integer operands. Use
74 c_objc_common_truthvalue_conversion not
75 c_common_truthvalue_conversion.
76 (c_objc_common_truthvalue_conversion): Build NE_EXPR directly and
77 call note_integer_operands for arguments with integer operands
78 that are not integer constants.
79
9feb29df
JJ
802012-09-13 Jakub Jelinek <jakub@redhat.com>
81
82 PR c/54559
83 * c-typeck.c (c_finish_return): Do convert to BOOLEAN_TYPE or
84 COMPLEX_TYPE with in_late_binary_op set temporarily to true.
85
d409320c
JJ
862012-08-31 Jakub Jelinek <jakub@redhat.com>
87
88 PR c/54428
89 * c-convert.c (convert): Don't call fold_convert_loc if
90 TYPE_MAIN_VARIANT of a COMPLEX_TYPE is the same, unless e
91 is a COMPLEX_EXPR. Remove TYPE_MAIN_VARIANT check from
92 COMPLEX_TYPE -> COMPLEX_TYPE conversion.
93
6265d07c
JJ
942012-08-24 Jakub Jelinek <jakub@redhat.com>
95
96 PR c/54355
97 * c-decl.c (c_parser_label): Pass true as nested and fix up comments
98 for nested and empty_ok arguments in the call to
99 c_parser_declaration_or_fndef.
100
1a4049e7
JJ
1012012-08-17 Jakub Jelinek <jakub@redhat.com>
102
103 * c-tree.h (c_last_sizeof_arg): Declare.
104 * c-parser.c (struct c_tree_loc_pair): New type.
105 (c_parser_expr_list): Add sizeof_arg argument. Fill it in if
106 non-NULL.
107 (c_parser_attributes, c_parser_objc_keywordexpr): Adjust callers.
108 (c_parser_postfix_expression_after_primary): Likewise. Call
109 sizeof_pointer_memaccess_warning if needed.
110 (sizeof_ptr_memacc_comptypes): New function.
111 * c-typeck.c (c_last_sizeof_arg): New global variable.
112 (c_expr_sizeof_expr, c_expr_sizeof_type): Initialize it.
113
0229aee9
UB
1142012-07-24 Uros Bizjak <ubizjak@gmail.com>
115
116 * c-lang.h (lang_decl): Add variable_size GTY option.
117
7ee2468b
SB
1182012-07-16 Steven Bosscher <steven@gcc.gnu.org>
119
120 * c-decl.c: Include dumpfile.h instead of tree-dump.h.
121 * Make-lang.in: Fix dependencies.
122
d4a10d0a
SB
1232012-06-29 Steven Bosscher <steven@gcc.gnu.org>
124
125 * Make-lang.in: New file, rules migrated from gcc/Makefile.in
126 and add language Makefile hooks.
127 * config-lang.in: New file.
128 * c-config-lang.in: Moved from gcc/config-lang.in to here, and
129 add the required "normal" config-lang.in rules.
130 * c-lang.h: Moved from gcc/ to here.
131 * c-tree.h: Likewise.
132 * c-objc-common.c: Likewise.
133 * c-objc-common.h: Likewise.
134 * c-typeck.c: Likewise.
135 * c-convert.c: Likewise.
136 * c-lang.c: Likewise.
137 * c-aux-info.c: Likewise.
138 * c-errors.c: Likewise.
139 * gccspec.c: Likewise.
140 * c-decl.c: Likewise. Include gt-c-c-decl.h, not gt-c-decl.h.
141 * c-parser.c: Likewise. Include gt-c-c-parser.h, not gt-c-parser.h.
142\f
143Copyright (C) 2012 Free Software Foundation, Inc.
144
145Copying and distribution of this file, with or without modification,
146are permitted in any medium without royalty provided the copyright
147notice and this notice are preserved.