OSDN Git Service

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