* varasm.c (bss_initializer_p): Remove static.
[official-gcc.git] / gcc / c / ChangeLog
blob8c90c5568ce454a3852050e999249ab71e2c6d9e
1 2012-12-20  Jakub Jelinek  <jakub@redhat.com>
3         PR c++/55619
4         * c-parser.c (c_parser_asm_operands): Remove CONVERT_P
5         argument, don't call default_function_array_conversion
6         nor c_fully_fold here.
7         (c_parser_asm_statement): Adjust callers.
8         * c-typeck.c (build_asm_expr): Call c_fully_fold on inputs
9         and outputs here, and call default_function_array_conversion
10         on inputs that don't need to be addressable.
12 2012-12-18  Jakub Jelinek  <jakub@redhat.com>
14         PR c/39464
15         * c-typeck.c (convert_for_assignment): For -Wpointer-sign
16         warning require that both c_common_unsigned_type as well as
17         c_common_signed_type is the same for both mvl and mvr types.
19 2012-11-16  Diego Novillo  <dnovillo@google.com>
21         Adjust for new vec API (http://gcc.gnu.org/wiki/cxx-conversion/cxx-vec)
23         * c-common.c: Use new vec API in vec.h.
24         * c-common.h: Likewise.
25         * c-gimplify.c: Likewise.
26         * c-pragma.c: Likewise.
27         * c-pretty-print.c: Likewise.
28         * c-pretty-print.h: Likewise.
29         * c-semantics.c: Likewise.
30         * c-decl.c: Likewise.
31         * c-parser.c: Likewise.
32         * c-tree.h: Likewise.
33         * c-typeck.c: Likewise.
35 2012-10-29  Jonathan Wakely  <jwakely.gcc@gmail.com>
37         PR c++/54930
38         * c-typeck.c (c_finish_return): Use OPT_Wreturn_local_addr.
40 2012-10-29  Manuel López-Ibáñez  <manu@gcc.gnu.org>
42         PR c/53066
43         * c-decl.c (warn_if_shadowing): Do not warn if a variable
44         shadows a function, unless the variable is a function or a
45         pointer-to-function.
47 2012-10-12  Jakub Jelinek  <jakub@redhat.com>
49         PR c/54381
50         * c-parser.c (struct c_tree_loc_pair): Removed.
51         (c_parser_expr_list): Remove struct c_tree_loc_pair * argument,
52         add location_t * and tree * arguments, fill in array of 3
53         sizeof_arg trees and corresponding locs.
54         (c_parser_attributes, c_parser_objc_keywordexpr): Adjust
55         c_parser_expr_list callers.
56         (c_parser_postfix_expression_after_primary): Likewise.  Pass
57         array of 3 sizeof_arg trees and locs (corresponding to first
58         3 arguments) to sizeof_pointer_memaccess_warning.
60 2012-10-09  Lawrence Crowl  <crowl@google.com>
62         * Make-lang.in (c-decl.o): Add dependence on hash-table.h.
63         * c-decl.c (detect_field_duplicates_hash): Change to new type-safe
64         hash table.
66 2012-10-09  Paolo Carlini  <paolo.carlini@oracle.com>
68         PR c++/54194
69         * c-typeck.c (parser_build_binary_op): Update warn_about_parentheses
70         call.
72 2012-10-09  Marc Glisse  <marc.glisse@inria.fr>
74         PR c++/54427
75         * c-typeck.c: Include c-common.h.
76         (enum stv_conv): Moved to c-common.h.
77         (scalar_to_vector): Moved to c-common.c.
78         (build_binary_op): Adapt to scalar_to_vector's new prototype.
79         * Make-lang.in: c-typeck.c depends on c-common.h.
81 2012-10-04  Arnaud Charlet  <charlet@adacore.com>
83         * c-decl.c (c_write_global_declarations): Fix handling of
84         -fdump-ada-spec*.
86 2012-09-30  Sharad Singhai  <singhai@google.com>
88         * c-decl.c (c_write_global_declarations): Use a different method
89         to determine if the dump has ben initialized.
91 2012-09-14  Joseph Myers  <joseph@codesourcery.com>
93         PR c/54552
94         * c-typeck.c (c_cast_expr): When casting to a type requiring
95         C_MAYBE_CONST_EXPR to be created, pass the inner expression to
96         c_fully_fold first.
98 2012-09-14  Joseph Myers  <joseph@codesourcery.com>
100         PR c/54103
101         * c-typeck.c (build_unary_op): Pass original argument of
102         TRUTH_NOT_EXPR to c_objc_common_truthvalue_conversion, then remove
103         any C_MAYBE_CONST_EXPR, if it has integer operands.
104         (build_binary_op): Pass original arguments of TRUTH_ANDIF_EXPR,
105         TRUTH_ORIF_EXPR, TRUTH_AND_EXPR, TRUTH_OR_EXPR and TRUTH_XOR_EXPR
106         to c_objc_common_truthvalue_conversion, then remove any
107         C_MAYBE_CONST_EXPR, if they have integer operands.  Use
108         c_objc_common_truthvalue_conversion not
109         c_common_truthvalue_conversion.
110         (c_objc_common_truthvalue_conversion): Build NE_EXPR directly and
111         call note_integer_operands for arguments with integer operands
112         that are not integer constants.
114 2012-09-13  Jakub Jelinek  <jakub@redhat.com>
116         PR c/54559
117         * c-typeck.c (c_finish_return): Do convert to BOOLEAN_TYPE or
118         COMPLEX_TYPE with in_late_binary_op set temporarily to true.
120 2012-08-31  Jakub Jelinek  <jakub@redhat.com>
122         PR c/54428
123         * c-convert.c (convert): Don't call fold_convert_loc if
124         TYPE_MAIN_VARIANT of a COMPLEX_TYPE is the same, unless e
125         is a COMPLEX_EXPR.  Remove TYPE_MAIN_VARIANT check from
126         COMPLEX_TYPE -> COMPLEX_TYPE conversion.
128 2012-08-24  Jakub Jelinek  <jakub@redhat.com>
130         PR c/54355
131         * c-decl.c (c_parser_label): Pass true as nested and fix up comments
132         for nested and empty_ok arguments in the call to
133         c_parser_declaration_or_fndef.
135 2012-08-17  Jakub Jelinek  <jakub@redhat.com>
137         * c-tree.h (c_last_sizeof_arg): Declare.
138         * c-parser.c (struct c_tree_loc_pair): New type.
139         (c_parser_expr_list): Add sizeof_arg argument.  Fill it in if
140         non-NULL.
141         (c_parser_attributes, c_parser_objc_keywordexpr): Adjust callers.
142         (c_parser_postfix_expression_after_primary): Likewise.  Call
143         sizeof_pointer_memaccess_warning if needed.
144         (sizeof_ptr_memacc_comptypes): New function.
145         * c-typeck.c (c_last_sizeof_arg): New global variable.
146         (c_expr_sizeof_expr, c_expr_sizeof_type): Initialize it.
148 2012-07-24  Uros Bizjak  <ubizjak@gmail.com>
150         * c-lang.h (lang_decl): Add variable_size GTY option.
152 2012-07-16  Steven Bosscher  <steven@gcc.gnu.org>
154         * c-decl.c: Include dumpfile.h instead of tree-dump.h.
155         * Make-lang.in: Fix dependencies.
157 2012-06-29  Steven Bosscher  <steven@gcc.gnu.org>
159         * Make-lang.in: New file, rules migrated from gcc/Makefile.in
160         and add language Makefile hooks.
161         * config-lang.in: New file.
162         * c-config-lang.in: Moved from gcc/config-lang.in to here, and
163         add the required "normal" config-lang.in rules.
164         * c-lang.h: Moved from gcc/ to here.
165         * c-tree.h: Likewise.
166         * c-objc-common.c: Likewise.
167         * c-objc-common.h: Likewise.
168         * c-typeck.c: Likewise.
169         * c-convert.c: Likewise.
170         * c-lang.c: Likewise.
171         * c-aux-info.c: Likewise.
172         * c-errors.c: Likewise.
173         * gccspec.c: Likewise.
174         * c-decl.c: Likewise.  Include gt-c-c-decl.h, not gt-c-decl.h.
175         * c-parser.c: Likewise.  Include gt-c-c-parser.h, not gt-c-parser.h.
177 Copyright (C) 2012 Free Software Foundation, Inc.
179 Copying and distribution of this file, with or without modification,
180 are permitted in any medium without royalty provided the copyright
181 notice and this notice are preserved.