OSDN Git Service

9595419ad8033ad34cf47cafcac3f99450d4b39f
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2008-01-12  Doug Kwan  <dougkwan@google.com>
2
3         * c-decl.c: (grokdeclarator): Use OPT_Wignored_qualifiers
4         instead of OPT_Wreturn_type in warning due to ignored return type
5         qualifiers.
6         * c-opt.c (c_common_post_option): Add -Wignored-qualifiers to
7         options included in -Wextra.
8         * c.opt: New option -Wignored_qualifiers.
9         * doc/invoke.texi (Warning Options, -Wextra): Add new option
10         -Wignore_qualifiers.
11         (-Wignored-qualifiers): Document.
12         (-Wreturn-type): Remove description of functionality now handled
13         by -Wignored-qualifiers.
14
15 2008-01-12  Eric Botcazou  <ebotcazou@adacore.com>
16
17         PR ada/33788
18         * fold-const.c (fold_unary) <VIEW_CONVERT_EXPR>: Fold an existing
19         NOP_EXPR if it is between integral types with the same precision.
20
21 2008-01-12  Jan Hubicka  <jh@suse.cz>
22
23         PR other/28023
24         * invoke.texi (max-inline-recursive-depth): Fix default value.
25
26 2008-01-12  Zdenek Dvorak  <ook@ucw.cz>
27
28         * tree-parloops.c (transform_to_exit_first_loop): Cast nit to the
29         correct type.
30
31 2008-01-11  Bob Wilson  <bob.wilson@acm.org>
32         
33         * config/xtensa/xtensa.c (override_options): Set flag_shlib.
34         
35 2008-01-11  James E. Wilson  <wilson@specifix.com>
36
37         PR target/26015
38         * config/vax/elf.h (FRAME_POINTER_CFA_OFFSET): Define.
39
40 2008-01-11  Anatoly Sokolov <aesok@post.ru>
41
42         * config/avr/avr.c (expand_prologue, expand_epilogue): Don't 
43         save/restore frame pointer register and don't use 'call-prologues' 
44         optimization in function with "OS_task" attribute.
45
46 2008-01-11  Eric Botcazou  <ebotcazou@adacore.com>
47
48         PR middle-end/31309
49         * expr.c (copy_blkmode_from_reg): Use a mode suited to the size
50         when copying to memory.
51
52 2008-01-11  Steven Bosscher  <stevenb.gcc@gmail.com>
53
54         PR rtl-optimization/30905
55         * cfgcleanup.c: Include dce.h
56         (crossjumps_occured): New global variable.
57         (try_crossjump_bb): Exit loop after finding a fallthru edge.
58         If something changed, set crossjumps_occured to true.
59         (try_optimize_cfg): Clear crossjumps_occured at the beginning.
60         Don't add/remove fake edges to exit here...
61         (cleanup_cfg): ...but do it here, when crossjumping.
62         Run a fast DCE when successful crossjumps occured in the latest
63         iteration of try_optimize_cfg.
64
65 2008-01-11  Richard Guenther  <rguenther@suse.de>
66
67         * tree-ssa-sccvn.c (struct vn_binary_op_s): Move hashcode near opcode.
68         (struct vn_unary_op_s): Likewise.
69         (vn_reference_insert): Free old reference on hash collision.
70
71 2008-01-10  Raksit Ashok  <raksit@google.com>
72
73         PR rtl-optimization/27971
74         * combine.c (find_split_point): Split PLUS expressions which are
75         inside a MEM rtx, and whose first operand is complex.
76
77 2008-01-10  DJ Delorie  <dj@redhat.com>
78
79         * config/m32c/m32c.c (m32c_hard_regno_nregs_1): Renamed from...
80         (m32c_hard_regno_nregs): ...this, which is now a wrapper.
81         (m32c_hard_regno_ok): Call the underlying function.
82
83 2008-01-10  Richard Guenther  <rguenther@suse.de>
84
85         PR middle-end/34683
86         * tree-cfg.c (tree_merge_blocks): Do not go through the
87         full-blown folding and stmt updating path if we just deal
88         with virtual operands.
89         * tree-ssa-copy.c (may_propagate_copy): Do not short-cut
90         test for abnormal SSA_NAMEs.
91
92 2008-01-10  Andreas Krebbel  <krebbel1@de.ibm.com>
93
94         PR middle-end/34641
95         * reload.c (push_reload): Add assertions.  All constants from
96         reg_equiv_constant should have been used for replacing the respective
97         pseudo earlier.
98         (find_reloads_address): Invoke find_reloads_address_part for
99         constant taken from the reg_equiv_constant array.
100
101 2008-01-10  Steven Bosscher  <stevenb.gcc@gmail.com>
102
103         * tree-ssa-sccvn.h (struct vn_ssa_aux): Make the most accessed
104         field (valnum) the first in the struct.  Replace bools with
105         unit bit fields.
106
107 2008-01-10  Richard Guenther  <rguenther@suse.de>
108
109         PR tree-optimization/34651
110         * tree-sra.c (sra_build_assignment): Sanitize.  Use the correct
111         types and ordering for masking and converting.
112
113 2008-01-09  Sebastian Pop  <sebastian.pop@amd.com>
114
115         PR tree-optimization/34017
116         * lambda-code.c (lambda_loopnest_to_gcc_loopnest): Generate code
117         also for PHI_NODE expressions.
118
119 2008-01-09  Jan Hubicka  <jh@suse.cz>
120
121         PR tree-optimization/34708
122         * tree-inline.c (estimate_num_insns_1): Compute cost of SWITCH_EXPR
123         based on number of case labels.
124         (init_inline_once): Remove switch_cost.
125         * tree-inline.h (eni_weights_d): Remove switch_cost.
126
127 2008-01-09  Richard Guenther  <rguenther@suse.de>
128         Andrew Pinski  <andrew_pinski@playstation.sony.com>
129
130         PR middle-end/30132
131         * gimplify.c (gimplify_cond_expr): Do not create an addressable
132         temporary if an rvalue is ok or an lvalue is not required.
133
134 2008-01-09  Richard Guenther  <rguenther@suse.de>
135
136         PR middle-end/34458
137         * tree-data-ref.c (initialize_matrix_A): Use tree_low_cst,
138         adjust return type.
139
140 2008-01-09  Richard Guenther  <rguenther@suse.de>
141
142         PR middle-end/34679
143         * tree.c (host_integerp): Check for sizetype only if the
144         type is an integer type.
145
146 2008-01-09  Steven Bosscher  <stevenb.gcc@gmail.com>
147
148         PR debug/26364
149         * opts.c (decode_options): Disable inlining of functions called
150         once if not in unit-at-a-time mode.
151
152 2008-01-09  Alexandre Oliva  <aoliva@redhat.com>
153
154         * Makefile.in (dse.o): Remove duplicate $(RECOG_H) dependency.
155
156 2008-01-08  Richard Guenther  <rguenther@suse.de>
157
158         PR middle-end/31863
159         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Bail
160         out early if the result will be unused.
161
162 2008-01-08  Uros Bizjak  <ubizjak@gmail.com>
163
164         PR target/34709
165         Revert:
166
167         2008-01-05  Uros Bizjak  <ubizjak@gmail.com>
168         * config/i386/i386.c (ix86_builtin_reciprocal): Remove check
169         for TARGET_RECIP.       
170         
171 2008-01-08  Jan Sjodin  <jan.sjodin@amd.com>
172         
173         * config/i386/i386.c (k8_cost, amdfam10_cost): Branch costs
174         for vectorization tuned.
175         
176 2008-01-08  Richard Guenther  <rguenther@suse.de>
177
178         PR tree-optimization/34683
179         * tree-ssa-operands.c (operand_build_cmp): Export.
180         * tree-ssa-operands.h (operand_build_cmp): Declare.
181         * tree-vn.c (vuses_compare): Remove.
182         (sort_vuses): Use operand_build_cmp.
183         (sort_vuses_heap): Likewise.
184         * tree-ssa-sccvn.c (vuses_to_vec): Use VEC_reserve, not VEC_alloc
185         to re-use old VEC if available.  Do not sort already sorted VUSEs.
186         (vdefs_to_vec): Do not sort already sorted VDEFs.
187
188 2008-01-08  Jakub Jelinek  <jakub@redhat.com>
189
190         PR middle-end/34694
191         * omp-low.c (copy_var_decl): Copy also DECL_SOURCE_LOCATION.
192
193 2008-01-08  Uros Bizjak  <ubizjak@gmail.com>
194
195         PR target/34702
196         * doc/invoke.texi (i386 and x86-64 Options) [mrecip]: Document
197         limitations of reciprocal sequences on x86 targets.
198
199 2008-01-08  Richard Guenther  <rguenther@suse.de>
200
201         PR tree-optimization/34683
202         * tree-flow-inline.h (var_ann): Remove overzealous asserts.
203
204 2008-01-07  Jakub Jelinek  <jakub@redhat.com>
205
206         PR target/34622
207         * config/darwin.c (darwin_mergeable_string_section): Don't use
208         .cstring if int_size_in_bytes != TREE_STRING_LENGTH.
209
210 2008-01-07  Uros Bizjak  <ubizjak@gmail.com>
211
212         PR target/34682
213         * config/i386/i386.md (neg<mode>2): Rename from negsf2, negdf2 and
214         negxf2.  Macroize expander using X87MODEF mode iterator.  Change
215         predicates of op0 and op1 to register_operand.
216         (abs<mode>2): Rename from abssf2, absdf2 and negxf2.  Macroize
217         expander using X87MODEF mode iterator.  Change predicates of
218         op0 and op1 to register_operand.
219         ("*absneg<mode>2_mixed", "*absneg<mode>2_sse"): Rename from
220         corresponding patterns and macroize using MODEF macro.  Change
221         predicates of op0 and op1 to register_operand and remove
222         "m" constraint. Disparage "r" alternative with "!".
223         ("*absneg<mode>2_i387"): Rename from corresponding patterns and
224         macroize using X87MODEF macro.  Change predicates of op0 and op1
225         to register_operand and remove "m" constraint.  Disparage "r"
226         alternative with "!".
227         (absneg splitter with memory operands): Remove.
228         ("*neg<mode>2_1", "*abs<mode>2_1"): Rename from corresponding
229         patterns and macroize using X87MODEF mode iterator.
230         * config/i386/sse.md (negv4sf2, absv4sf2, neg2vdf2, absv2df2):
231         Change predicate of op1 to register_operand.
232         * config/i386/i386.c (ix86_expand_fp_absneg_operator): Remove support
233         for memory operands.
234
235 2008-01-07  Nathan Froyd  <froydnj@codesourcery.com>
236
237         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add clause for mcpu=8548.
238
239 2008-01-07  Richard Guenther  <rguenther@suse.de>
240
241         * basic-block.h (struct edge_def): Pair dest_idx with goto_locus
242         fields.
243
244 2008-01-07  Richard Guenther  <rguenther@suse.de>
245
246         PR tree-optimization/34683
247         * tree-ssa-sccvn.c (vuses_to_vec): Pre-allocate the vector of
248         VOPs of the needed size to save memory.  Use VEC_quick_push
249         to save compile-time.
250         (vdefs_to_vec): Likewise.
251
252 2008-01-07  Sa Liu  <saliu@de.ibm.com>
253
254         * config/spu/spu.md (divdf3): Genetate inline code for double
255         division.  The implementation doesn't handle INF or NAN, therefore it
256         only applies when -ffinite-math-only is given.
257
258 2008-01-06  Paolo Carlini  <pcarlini@suse.de>
259
260         PR libstdc++/34680
261         * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_RTTI, if appropriate.
262         * doc/cpp.texi ([Common Predefined Macros]): Document.
263
264 2008-01-06  Uros Bizjak  <ubizjak@gmail.com>
265
266         * config/i386/i386.c (ix86_emit_swsqrtsf): Use negative constants in
267         order to use commutative addition instead of subtraction.
268
269 2008-01-06  Andrew Pinski  <andrew_pinski@playstation.sony.com>
270             Mircea Namolaru  <namolaru@il.ibm.com>
271             Vladimir Yanovsky  <yanov@il.ibm.com>
272             Revital Eres  <eres@il.ibm.com>
273
274         PR tree-optimization/34263
275         * tree-outof-ssa.c (process_single_block_loop_latch,
276         contains_tree_r): New functions.
277         (analyze_edges_for_bb): Call process_single_block_loop_latch
278         function to empty single-basic-block latch block if possible.
279
280 2008-01-05  Uros Bizjak  <ubizjak@gmail.com>
281
282         * config/i386/i386.c (ix86_builtin_reciprocal): Remove check
283         for TARGET_RECIP.
284         (ix86_emit_swsqrtsf): Do not filter out infinity for rsqrt expansion.
285
286 2008-01-05  Richard Sandiford  <rsandifo@nildram.co.uk>
287
288         * c-omp.c (check_omp_for_incr_expr): Handle CONVERT_EXPR.
289
290 2008-01-05  Richard Sandiford  <rsandifo@nildram.co.uk>
291
292         * config/mips/mips.c (mips_in_small_data_p): Reinstate size > 0 check.
293
294 2008-01-05  Jakub Jelinek  <jakub@redhat.com>
295
296         PR tree-optimization/34618
297         * tree-outof-ssa.c (create_temp): Copy over DECL_GIMPLE_REG_P
298         flag from T.
299
300 2008-01-05  Uros Bizjak  <ubizjak@gmail.com>
301
302         PR target/34673
303         * config/i386/i386.c (ix86_emit_swsqrtsf): Swap input operands
304         in the call to gen_rtx_NE.  Remove unneeded VECTOR_MODE_P check.
305         Update copyright year.
306
307         * config/i386/i386.md (rsqrtsf2): Enable for TARGET_SSE_MATH.
308         Update copyright year.
309         * config/i386/sse.md (rsqrtv4sf2): Ditto. Unconditionally expand
310         using NR fixup.
311
312 2008-01-05  Zhouyi Zhou  <zhouzhouyi@FreeBSD.org>
313
314         * tree-vrp.c (find_conditional_asserts): Remove redundant check that
315         edge does not point to current bb before changing need_assert.
316
317 2008-01-04  Richard Guenther  <rguenther@suse.de>
318
319         PR middle-end/34029
320         * tree-cfg.c (verify_expr): Do not look inside ADDR_EXPRs
321         for verifying purposes if they are is_gimple_min_invariant.
322
323 2008-01-04  Aldy Hernandez  <aldyh@redhat.com>
324
325         PR tree-optimization/34448
326         PR tree-optimization/34465
327         * gimplify.c (gimplify_init_constructor): Add new parameter
328         notify_temp_creation.  Use it.
329         (gimplify_modify_expr_rhs): Take volatiles into account when
330         optimizing constructors.
331         Do not optimize constructors if gimplify_init_constructor will dump to
332         memory.
333         * gcc.dg/tree-ssa/pr32901.c: Tests const volatiles.
334         * gcc.c-torture/compile/pr34448.c: New.
335
336 2008-01-04  Jakub Jelinek  <jakub@redhat.com>
337
338         PR gcov-profile/34609
339         * tree-inline.c (declare_return_variable): Set TREE_ADDRESSABLE on
340         return_slot if result is TREE_ADDRESSABLE.
341
342 2008-01-04  Richard Sandiford  <rsandifo@nildram.co.uk>
343
344         * config/mips/mips.md (sqrt_condition): Tweak comment.
345         (recip_condition): Likewise.  Require TARGET_FLOAT64 for DFmode.
346
347 2008-01-03  Tom Tromey  <tromey@redhat.com>
348
349         PR c/34457
350         * c-common.c (c_type_hash): Handle VLAs.
351
352 2008-01-03  Jan Hubicka  <jh@suse.cz>
353
354         PR tree-optimization/31081
355         * tree-inline.c (remap_ssa_name): Initialize uninitialized SSA vars to
356         0 when inlining and not inlining to first basic block.
357         (remap_decl): When var is initialized to 0, don't set default_def.
358         (expand_call_inline): Set entry_bb.
359         * tree-inline.h (copy_body_data): Add entry_bb.
360
361 2008-01-03  Jakub Jelinek  <jakub@redhat.com>
362
363         PR c++/34619
364         * cgraphunit.c (cgraph_build_static_cdtor): set_cfun back to NULL
365         before returning.
366
367         PR tree-optimization/29484
368         * tree-inline.c (inline_forbidden_p_2): New function.
369         (inline_forbidden_p): Disallow inlining if some static var
370         has an address of a local LABEL_DECL in its initializer.
371         * doc/extend.texi (Labels as Values): Document &&foo behaviour
372         vs. inlining.
373
374 2008-01-03  Sebastian Pop  <sebastian.pop@amd.com>
375
376         PR tree-optimization/34635
377         * tree-data-ref.c (add_other_self_distances): Make sure that the
378         evolution step is constant.
379
380 2008-01-03  Jakub Jelinek  <jakub@redhat.com>
381
382         PR middle-end/34608
383         * omp-low.c (expand_omp_parallel): Purge dead EH edges in the child fn.
384
385 2008-01-02  Richard Sandiford  <rsandifo@nildram.co.uk>
386
387         * tree-sra.c (scalarize_init): Insert the generate_element_init
388         statements after the generate_element_zero statements.
389
390 2008-01-02  Richard Guenther  <rguenther@suse.de>
391
392         PR middle-end/34093
393         PR middle-end/31976
394         * tree-ssa-operands.c (ssa_operand_alloc): Also allocate a buffer
395         for very large number of operands instead of ICEing.
396
397 2008-01-02  Arthur Norman <acn1@cam.ac.uk>
398
399         PR target/34013
400         * gcc/config/i386/i386.c (ix86_expand_prologue): Save red-zone
401         while stack probing.
402
403 2008-01-01  Douglas Gregor  <doug.gregor@gmail.com>
404
405         * c-opts.c (sanitize_cpp_opts): Don't warn about "long long" when
406         in C++0x mode.
407
408 2008-01-01  Volker Reichelt  <v.reichelt@netcologne.de>
409
410         PR libmudflap/26442
411         * tree-mudflap.c (mx_register_decls): Guard warning by
412         !DECL_ARTIFICIAL check.
413
414 2008-01-01  Jakub Jelinek  <jakub@redhat.com>
415
416         * config/i386/sse.md (sse5_pperm, sse5_pperm_pack_v2di_v4si,
417         sse5_pperm_pack_v4si_v8hi, sse5_pperm_pack_v8hi_v16qi,
418         sse5_perm<mode>): Fix constraints.