OSDN Git Service

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