PR c/39464
[official-gcc.git] / gcc / c / ChangeLog
blobf2ee562cf4bab568553bcbf0d4ebdd2fe94985c8
1 2012-12-18  Jakub Jelinek  <jakub@redhat.com>
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.
8 2012-11-16  Diego Novillo  <dnovillo@google.com>
10         Adjust for new vec API (http://gcc.gnu.org/wiki/cxx-conversion/cxx-vec)
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.
24 2012-10-29  Jonathan Wakely  <jwakely.gcc@gmail.com>
26         PR c++/54930
27         * c-typeck.c (c_finish_return): Use OPT_Wreturn_local_addr.
29 2012-10-29  Manuel López-Ibáñez  <manu@gcc.gnu.org>
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.
36 2012-10-12  Jakub Jelinek  <jakub@redhat.com>
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.
49 2012-10-09  Lawrence Crowl  <crowl@google.com>
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.
55 2012-10-09  Paolo Carlini  <paolo.carlini@oracle.com>
57         PR c++/54194
58         * c-typeck.c (parser_build_binary_op): Update warn_about_parentheses
59         call.
61 2012-10-09  Marc Glisse  <marc.glisse@inria.fr>
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.
70 2012-10-04  Arnaud Charlet  <charlet@adacore.com>
72         * c-decl.c (c_write_global_declarations): Fix handling of
73         -fdump-ada-spec*.
75 2012-09-30  Sharad Singhai  <singhai@google.com>
77         * c-decl.c (c_write_global_declarations): Use a different method
78         to determine if the dump has ben initialized.
80 2012-09-14  Joseph Myers  <joseph@codesourcery.com>
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.
87 2012-09-14  Joseph Myers  <joseph@codesourcery.com>
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.
103 2012-09-13  Jakub Jelinek  <jakub@redhat.com>
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.
109 2012-08-31  Jakub Jelinek  <jakub@redhat.com>
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.
117 2012-08-24  Jakub Jelinek  <jakub@redhat.com>
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.
124 2012-08-17  Jakub Jelinek  <jakub@redhat.com>
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.
137 2012-07-24  Uros Bizjak  <ubizjak@gmail.com>
139         * c-lang.h (lang_decl): Add variable_size GTY option.
141 2012-07-16  Steven Bosscher  <steven@gcc.gnu.org>
143         * c-decl.c: Include dumpfile.h instead of tree-dump.h.
144         * Make-lang.in: Fix dependencies.
146 2012-06-29  Steven Bosscher  <steven@gcc.gnu.org>
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.
166 Copyright (C) 2012 Free Software Foundation, Inc.
168 Copying and distribution of this file, with or without modification,
169 are permitted in any medium without royalty provided the copyright
170 notice and this notice are preserved.