OSDN Git Service

a6a1232ecb708804e10701fae17244f2b68b1f83
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2007-01-02  Manuel Lopez-Ibanez <manu@gcc.gnu.org>
2
3         PR c/19977
4         * c-typeck.c (store_init_value): Don't emit pedantic overflow
5         warning for non-static initializers.
6         
7 2007-01-02  Steven Bosscher  <steven@gcc.gnu.org>
8
9         * config/alpha/alpha.md, arm/arm.c, darwin.c, frv/frv.md,
10         m32r/m32r.c, m32r/m32r.c, mn10300/mn10300.md, pa/pa.c,
11         rs6000/rs6000.c, s390/s390.md, sh/sh.md, sparc/sparc.c:
12         Always use set_unique_reg_note to add REG_EQUAL notes.
13
14 2007-01-02  Kazu Hirata  <kazu@codesourcery.com>
15
16         Revert:
17         2007-01-02  Kazu Hirata  <kazu@codesourcery.com>
18
19         * alias.c (init_alias_analysis): Use VEC_safe_grow_cleared.
20         * cfgbuild.c (find_basic_blocks): Likewise.
21         * cfgrtl.c (rtl_create_basic_block): Likewise.
22         * function.c (temp_slots_at_level): Likewise.
23         * reg-stack.c (stack_regs_mentioned): Likewise.
24         * regclass.c (allocate_reg_info): Likewise.
25         * tree-cfg.c (init_empty_tree_cfg, build_tree_cfg, create_bb,
26         set_bb_for_stmt, move_block_to_fn): Likewise.
27         * tree-complex.c (tree_lower_complex): Likewise.
28         * vec.h (VEC_safe_grow_cleared): New.
29
30 2007-01-02  Ian Lance Taylor  <iant@google.com>
31
32         * c-common.c (c_common_truthvalue_conversion): When warning about
33         using an assignment as a truth value, set TREE_NO_WARNING.
34
35 2007-01-02  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
36
37         PR middle-end/7651
38         * c.opt (Wold-style-declaration): New.
39         * doc/invoke.texi (C-only Warning Options): New.
40         (Wold-style-declaration): Document it.
41         (Wextra): Enabled by -Wextra.
42         * c-opts.c (c_common_post_options): Enabled by -Wextra.
43         * c-decl.c (declspecs_add_scspec): Replace -Wextra with
44         -Wold-style-declaration.
45         
46 2007-01-02  Kazu Hirata  <kazu@codesourcery.com>
47
48         * alias.c (init_alias_analysis): Use VEC_safe_grow_cleared.
49         * cfgbuild.c (find_basic_blocks): Likewise.
50         * cfgrtl.c (rtl_create_basic_block): Likewise.
51         * function.c (temp_slots_at_level): Likewise.
52         * reg-stack.c (stack_regs_mentioned): Likewise.
53         * regclass.c (allocate_reg_info): Likewise.
54         * tree-cfg.c (init_empty_tree_cfg, build_tree_cfg, create_bb,
55         set_bb_for_stmt, move_block_to_fn): Likewise.
56         * tree-complex.c (tree_lower_complex): Likewise.
57         * vec.h (VEC_safe_grow_cleared): New.
58
59 2007-01-02  Douglas Gregor  <doug.gregor@gmail.com>
60
61         * c-common.c(c_common_nodes_and_builtins): Since variants of
62         void_type_node get built before it is given a name, we need to
63         give those variants the name, too. 
64         (complete_array_type): We need to work with the canonical main
65         type of the array, from which we will build the qualified version.
66         * params.def (PARAM_VERIFY_CANONICAL_TYPES): New.
67         * print-tree.c (print_node): Display canonical type information
68         for each type.
69         * stor-layout.c (layout_type): When we don't know the
70         alignment of a type for which we're building an array, we end up
71         guessing wrong, so make the type require structural equality.
72         * tree.c (make_node_stat): When we build a new type, it is its
73         own canonical type.
74         (build_type_attribute_qual_variant): When building an attribute
75         variant, its canonical type is the non-attribute variant. However,
76         if the attributes are target-dependent and they differ, we need to
77         use structural equality checks for this type.
78         (build_qualified_type): A qualified type is not equivalent to its
79         unqualified variant; set the canonical type appropriately.
80         (build_distinct_type_copy): When building a distinct type from
81         another type, the new type is its own canonical type.
82         (build_variant_type_copy): When building a new type variant, we
83         assume that it is equivalent to the original type.
84         (build_pointer_type_for_mode): When building a pointer type, also
85         build a canonical type pointer.
86         (build_reference_type_for_mode): When building a reference type,
87         also build a canonical type reference.
88         (build_index_type): When we can't hash an index type (e.g.,
89         because its maximum value is negative), the index type requires
90         structural equality tests.
91         (build_array_type): Build the canonical form of an array type.
92         (build_function_type): Function types require structural equality,
93         because they contain default arguments, attributes, etc. 
94         (build_method_type_directly): Ditto for method types.
95         (build_offset_type): Build the canonical offset type.
96         (build_complex_type): Build the canonical vector type.
97         (make_vector_type): Build the canonical vector type.
98         * tree.h (TYPE_CANONICAL): New.
99         (TYPE_STRUCTURAL_EQUALITY_P): New.
100         (SET_TYPE_STRUCTURAL_EQUALITY): New.
101         (struct tree_type): Added "canonical" field.
102         * params.h (VERIFY_CANONICAL_TYPES): New.
103         * doc/c-tree.texi (TYPE_CANONICAL): Document.
104         (TYPE_STRUCTURAL_EQUALITY_P): Document.
105         (SET_TYPE_STRUCTURAL_EQUALITY): Document.
106         * doc/invoke.texi (verify-canonical-types): Document --param
107         parameter for verifying canonical types.
108
109 2007-01-02  Joseph Myers  <joseph@codesourcery.com>
110
111         * config.gcc (powerpc-*-eabispe*, powerpc-*-eabisimaltivec*,
112         powerpc-*-eabisim*, powerpc-*-eabialtivec*, powerpc-*-eabi*,
113         powerpc-*-rtems*, powerpc-wrs-vxworks, powerpc-wrs-vxworksae,
114         powerpcle-*-eabisim*, powerpcle-*-eabi*): Add rs6000/e500.h to
115         tm_file.
116         * config/rs6000/e500.h: New.
117         * config/rs6000/eabi.h (TARGET_SPE_ABI, TARGET_SPE, TARGET_E500,
118         TARGET_ISEL, TARGET_FPRS, TARGET_E500_SINGLE, TARGET_E500_DOUBLE):
119         Remove.
120         * config/rs6000/linuxspe.h (TARGET_SPE_ABI, TARGET_SPE,
121         TARGET_E500, TARGET_ISEL, TARGET_FPRS, TARGET_E500_SINGLE,
122         TARGET_E500_DOUBLE): Remove.
123         * config/rs6000/vxworks.h (TARGET_SPE_ABI, TARGET_SPE,
124         TARGET_E500, TARGET_ISEL, TARGET_FPRS): Remove.
125         * config/rs6000/rs6000.h (CHECK_E500_OPTIONS): Define.
126         * config/rs6000/rs6000.c (rs6000_override_options): Use
127         CHECK_E500_OPTIONS.
128
129 2007-01-02  Joseph Myers  <joseph@codesourcery.com>
130
131         * config/rs6000/rs6000.c (print_operand): Check (TARGET_SPE ||
132         TARGET_E500_DOUBLE), not TARGET_E500, for %y.
133         (rs6000_generate_compare, rs6000_emit_sCOND, output_cbranch,
134         rs6000_emit_cmove): Don't check TARGET_E500.
135         * config/rs6000/rs6000.md (bunordered, bordered, sunordered,
136         sordered): Don't check TARGET_E500.
137
138 2007-01-01  Eric Christopher  <echristo@apple.com>
139
140         * config/mips/mips.c (mips_regno_mode_ok_for_base_p): Use
141         HARD_REGISTER_NUM_P.
142
143 2007-01-01  Roger Sayle  <roger@eyesopen.com>
144
145         * fold-const.c (fold_binary) <EQ_EXPR>: Fold "(X^C1) eq/ne C2" into
146         "X eq/ne (C1^C2)".  Fold "(X^Z) eq/ne (Y^Z)" as "X eq/ne Y" when Z
147         has no side-effects.  Fold "(X^C1) eq/ne (Y^C2)" as "(X^(C1^C2))
148         eq/ne Y".
149
150 2007-01-01  Mike Stump  <mrs@apple.com>
151
152         * configure.ac: Remove support for building with Apple's gcc-3.1.
153
154 2007-01-02  Joseph Myers  <joseph@codesourcery.com>
155
156         PR middle-end/30311
157         * caller-save.c (add_stored_regs): Only handle SUBREGs if inner
158         REG is a hard register.  Do not modify REG before calling
159         subreg_nregs.
160         * rtlanal.c (subreg_get_info): Don't assert size of XMODE is a
161         multiple of the size of YMODE for certain lowpart cases.
162
163 2007-01-01  Andrew Pinski  <pinskia@gmail.com>
164
165         PR middle-end/30253
166         * gimplify (voidify_wrapper_expr): Update for
167         GIMPLE_MODIFY_STMT.
168
169 2007-01-01  Andreas Schwab  <schwab@suse.de>
170
171         PR target/29166
172         * config/ia64/ia64.c (ia64_compute_frame_size): Account space for
173         save of BR0 in extra_spill_size instead of spill_size.
174         (ia64_expand_prologue): Save BR0 outside of the gr/br/fr spill
175         area.
176         (ia64_expand_epilogue): Restore BR0 from its new location.
177
178 2007-01-01  Andrew Pinski  <pinskia@gmail.com>
179
180         * gimplify.c (gimplify_init_constructor <case VECTOR_TYPE>):
181         Use a temporary variable if the left hand side is not a gimple
182         register.
183
184 2007-01-01  Andrew Pinski  <pinskia@gmail.com>
185
186         * gimplify.c (gimplify_return_expr): Make the temporary variable
187         for the return expression, a gimple register variable.
188
189 2007-01-01  Jan Hubicka  <jh@suse.cz>
190
191         * emit-rtl.c (emit_copy_of_insn_after): Do not call copy_insn_1 for
192         INSN_LIST.
193
194 2007-01-01  Mike Stump  <mrs@apple.com>
195
196         * configure.ac (HAVE_GAS_LITERAL16): Add autoconf check for
197         .literal16.
198         * config/darwin.c (machopic_select_rtx_section): Use
199         HAVE_GAS_LITERAL16.
200         (darwin_mergeable_constant_section): Likewise.
201         * configure: Regenerate.
202         * config.in: Regenerate.
203
204 2007-01-01  Jan Hubicka  <jh@suse.cz>
205             Andrew Pinski  <pinskia@gmail.com>
206
207         * cgraphunit.c (cgraph_optimize): Call cgraph_add_new_functions
208         before starting IPA passes.