OSDN Git Service

PR c++/34917
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2008-01-22  Jakub Jelinek  <jakub@redhat.com>
2
3         PR c++/34917
4         * tree.c (build_type_attribute_qual_variant): Call
5         build_qualified_type if attributes are equal, but quals are not.
6
7 2008-01-22  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
8
9         PR 32102
10         * doc/invoke.texi (-Wall): -Wall enables -Wstrict-overflow=1.
11         * flags.h (warn_strict_aliasing): Remove.
12         (warn_strict_overflow): Remove.
13         * opts.c (warn_strict_aliasing): Remove.
14         (warn_strict_overflow): Remove.
15         * c-opts.c (c_common_handle_option): -Wall only sets
16         -Wstrict-aliasing or -Wstrict-overflow if they are uninitialized.
17         (c_common_post_options): Give default values to -Wstrict-aliasing
18         and -Wstrict-overflow if they are uninitialized.
19         * common.opt (Wstrict-aliasing): Specify Var and Init.
20         (Wstrict-overflow): Likewise.
21
22 2008-01-22  Kenneth Zadeck <zadeck@naturalbridge.com>
23
24         PR rtl-optimization/26854
25         PR rtl-optimization/34400
26         PR rtl-optimization/34884
27         * ddg.c (create_ddg_dep_from_intra_loop_link): Use
28         DF_RD->gen.
29         * df.h (df_changeable_flags.DF_RD_NO_TRIM): Deleted
30         (df_rd_bb_info.expanded_lr_out): Deleted
31         * loop_invariant.c (find_defs): Deleted DF_RD_NO_TRIM flag.
32         * loop_iv.c (iv_analysis_loop_init): Ditto.  * df-problems.c
33         (df_rd_free_bb_info, df_rd_alloc, df_rd_confluence_n,
34         df_rd_bb_local_compute, df_rd_transfer_function, df_rd_free):
35         Removed code to allocate, initialize or free expanded_lr_out.
36         (df_rd_bb_local_compute_process_def): Restructured to make more
37         understandable.
38         (df_rd_confluence_n): Removed code to no apply invalidate_by_call
39         sets if the sets are being trimmed.
40
41 2008-01-22  H.J. Lu  <hongjiu.lu@intel.com>
42
43         PR bootstrap/32287
44         * configure.ac (ld_vers): Support GNU linker version xx.xx.*
45         (as_vers): Likewise.
46         * configure: Regenerated.
47
48 2008-01-22  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
49
50         PR middle-end/33092
51         * tree-pass.h (pass_build_alias): New pass.
52         * tree-ssa-alias.c (gate_build_alias): New.
53         (pass_build_alias): New.
54         * passes.c (init_optimization_passes): Add pass_build_alias after
55         pass_create_structure_vars.
56
57 2008-01-22  Wolfgang Gellerich  <gellerich@de.ibm.com>
58
59         * config/s390/s390.h (S390_TDC_POSITIVE_NORMALIZED_NUMBER):
60         Renamed to S390_TDC_POSITIVE_NORMALIZED_BFP_NUMBER.
61         (S390_TDC_NEGATIVE_NORMALIZED_NUMBER): Renamed to
62         S390_TDC_NEGATIVE_NORMALIZED_BFP_NUMBER.
63         (S390_TDC_POSITIVE_DENORMALIZED_NUMBER): Renamed to
64         S390_TDC_POSITIVE_DENORMALIZED_BFP_NUMBER.
65         (S390_TDC_NEGATIVE_DENORMALIZED_NUMBER): Renamed to
66         S390_TDC_NEGATIVE_DENORMALIZED_BFP_NUMBER.
67         (S390_TDC_POSITIVE_NORMALIZED_BFP_NUMBER): New constant.
68         (S390_TDC_NEGATIVE_NORMALIZED_BFP_NUMBER): New constant.
69         (S390_TDC_POSITIVE_DENORMALIZED_BFP_NUMBER): New constant.
70         (S390_TDC_NEGATIVE_DENORMALIZED_BFP_NUMBER): New constant.
71         * config/s390/s390.md (FP_ALL): New mode iterator.
72         (_d): New mode attribute.
73         ("*signbit<mode>2>"): Changed mode of first operand.
74         ("isinf<mode>2"): Changed mode of first operand.
75         ("*TDC_insn"): Adaptation for DFP modes.
76
77 2008-01-22  Ben Elliston  <bje@au.ibm.com>
78
79         * tree.c (check_qualified_type): Improve function description.
80
81 2008-01-21  Jason Merrill  <jason@redhat.com>
82
83         PR c++/34196
84         * tree.h (TRY_CATCH_IS_CLEANUP): New macro.
85         * tree-eh.c (honor_protect_cleanup_actions): Strip TRY_CATCH_EXPR
86         if it is set.
87
88 2008-01-21  DJ Delorie  <dj@redhat.com>
89
90         * doc/tm.texi (HARD_REGNO_NREGS): Note that this macro must not
91         return zero.
92
93 2008-01-21  Richard Guenther  <rguenther@suse.de>
94
95         PR middle-end/34856
96         * tree-cfg.c (verify_expr): Allow all invariant expressions
97         instead of just constant class ones as reference argument.
98         * tree-ssa-loop-im.c (for_each_index): Handle CONSTRUCTOR
99         like any other constant.
100         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
101
102 2008-01-21  H.J. Lu  <hongjiu.lu@intel.com>
103
104         * regmove.c (fixup_match_1): Update call crossed frequencies.
105
106 2008-01-21  Richard Guenther  <rguenther@suse.de>
107
108         PR c/34885
109         * tree-inline.c (setup_one_parameter): Deal with mismatched
110         types using a VIEW_CONVERT_EXPR.
111
112 2008-01-21  Alon Dayan  <alond@il.ibm.com>
113             Olga Golovanevsky  <olga@il.ibm.com>
114         
115         PR tree-optimization/34701
116         * ipa-struct-reorg.c (gen_size): Fix the malloc parameter calculation
117         when the structure size is not a power of 2.
118
119 2008-01-20  Kenneth Zadeck <zadeck@naturalbridge.com>
120
121         * doc/install.texi: Add doc for --enable-checking=df.
122         
123 2008-01-20  Kaz Kojima  <kkojima@gcc.gnu.org>
124
125         PR rtl-optimization/34808
126         * emit-rtl.c (try_split): Handle REG_RETVAL notes.
127
128 2008-01-20  Richard Sandiford  <rsandifo@nildram.co.uk>
129
130         * global.c (find_reg): Only compute EH_RETURN_DATA_REGNO once per
131         input.
132
133 2008-01-19  Kenneth Zadeck <zadeck@naturalbridge.com>
134
135         PR rtl-optimization/26854
136         PR rtl-optimization/34400
137         * ddg.c (create_ddg_dep_from_intra_loop_link): Do not use
138         DF_RD->gen.
139         * df.h (df_changeable_flags.DF_RD_NO_TRIM): New.
140         (df_rd_bb_info.expanded_lr_out): New.
141         * loop_invariant.c (find_defs): Added DF_RD_NO_TRIM flag.
142         * loop_iv.c (iv_analysis_loop_init): Ditto.
143         * df-problems.c (df_rd_free_bb_info, df_rd_alloc, df_rd_confluence_n,
144         df_rd_bb_local_compute, df_rd_transfer_function, df_rd_free):
145         Added code to allocate, initialize or free expanded_lr_out.
146         (df_rd_bb_local_compute_process_def): Restructured to make
147         more understandable.
148         (df_rd_confluence_n): Add code to do nothing with fake edges and
149         code to no apply invalidate_by_call sets if the sets are being trimmed.
150         (df_lr_local_finalize): Renamed to df_lr_finalize.
151         (df_live_local_finalize): Renamed to df_live_finalize.
152
153 2008-01-20  Richard Sandiford  <rsandifo@nildram.co.uk>
154
155         PR target/34831
156         * config/mips/mips.md (div<mode>3): Use <recip_condition> when
157         deciding whether to use reciprocal instructions.
158
159 2008-01-19  Uros Bizjak  <ubizjak@gmail.com>
160
161         * dwarf2out.c (dwarf2out_switch_text_section): Do not call
162         dwarf2out_note_section_used if cold_text_section is NULL.
163
164 2008-01-19  Jakub Jelinek  <jakub@redhat.com>
165
166         PR gcov-profile/34610
167         * tree-cfg.c (make_edges): Mark both outgoing edges from
168         OMP_CONTINUE and from OMP_FOR as EDGE_ABNORMAL.
169         * omp-low.c (expand_omp_for): Clear EDGE_ABNORMAL bits
170         from OMP_FOR and OMP_CONTINUE outgoing edges.
171
172         * tree-profile.c (tree_profiling): Return early if
173         cfun->after_tree_profile != 0.  Set cfun->after_tree_profile
174         at the end.
175         * omp-low.c (expand_omp_parallel): Copy after_tree_profile
176         from cfun to child_cfun.
177         * function.h (struct function): Add after_tree_profile bit.
178
179 2008-01-19 Anatoly Sokolov <aesok@post.ru>
180
181         * config/avr/avr.S (_exit): Disable interrupt.
182
183 2008-01-18  Kenneth Zadeck  <zadeck@naturalbridge.com>
184             Steven Bosscher  <stevenb.gcc@gmail.com>
185
186         PR rtl-optimization/26854
187         PR rtl-optimization/34400
188         * df-problems.c (df_live_scratch): New scratch bitmap.
189         (df_live_alloc): Allocate df_live_scratch when doing df_live.
190         (df_live_reset): Clear the proper bitmaps.
191         (df_live_bb_local_compute): Only process the artificial defs once
192         since the order is not important.
193         (df_live_init): Init the df_live sets only with the variables
194         found live by df_lr.
195         (df_live_transfer_function): Use the df_lr sets to prune the
196         df_live sets as they are being computed.  
197         (df_live_free): Free df_live_scratch.
198
199 2008-01-18  Ian Lance Taylor  <iant@google.com>
200
201         * common.opt: Add fmerge-debug-strings.
202         * dwarf2out.c (DEBUG_STR_SECTION_FLAGS): Test
203         flag_merge_debug_strings rather than flag_merge_constants.
204         * doc/invoke.texi (Option Summary): Mention
205         -fmerge-debug-strings.
206         (Debugging Options): Document -fmerge-debug-strings.
207
208 2008-01-18  Ian Lance Taylor  <iant@google.com>
209
210         PR c++/33407
211         * tree.h (DECL_IS_OPERATOR_NEW): Define.
212         (struct tree_function_decl): Add new field operator_new_flag.
213         * tree-inline.c (expand_call_inline): When inlining a call to
214         operator new, force the return value to go into a variable, and
215         set DECL_NO_TBAA_P on that variable.
216         * c-decl.c (merge_decls): Merge DECL_IS_OPERATOR_NEW flag.
217
218 2008-01-18  Uros Bizjak  <ubizjak@gmail.com>
219
220         PR debug/34484
221         * dwarf2out.c (dwarf2out_switch_text_section): Do not guard with
222         DWARF2_DEBUGGING_INFO.
223         (dwarf2out_note_section_used): Ditto.  Add prototype.
224         (have_multiple_function_sections, text_section_used,
225         cold_text_section_used, *cold_text_sections): Move declarations
226         before their uses.
227
228 2007-01-17  Bob Wilson  <bob.wilson@acm.org>
229
230         * config/xtensa/unwind-dw2-xtensa.h (_Unwind_FrameState): Remove pc
231         field and add signal_ra.
232         * config/xtensa/unwind-dw2-xtensa.c (uw_frame_state_for): Remove
233         assignments to frame state pc.  Move end of stack check after
234         MD_FALLBACK_FRAME_STATE_FOR.
235         (uw_update_context_1): Use frame state signal_regs if set, instead
236         of checking signal_frame flag.
237         (uw_update_context): Use frame state signal_ra if set.
238         * config/xtensa/linux.h (MD_UNWIND_SUPPORT): Define.
239         * config/xtensa/linux-unwind.h: New file.
240
241 2007-01-18  Bernhard Fischer  <aldot@gcc.gnu.org>
242
243         * modulo-sched.c (get_sched_window): Fix comment typo.
244
245 2008-01-17  Andrew MacLeod  <amacleod@redhat.com>
246
247         PR tree-optimization/34648
248         * tree-ssa-sccvn.c (visit_use): Expressions which can throw are varying.
249
250 2008-01-17  Anatoly Sokolov <aesok@post.ru>
251
252         * config/avr/avr.h (LINK_SPEC): Support -mrelax and -mpmem-wrap-around.
253         * config/avr/avr.opt (mrelax, mpmem-wrap-around): Add.
254
255 2008-01-17  Seongbae Park  <seongbae.park@gmail.com>
256
257         PR rtl-optimization/34400
258         * df-core.c (df_worklist_dataflow_overeager,
259         df_worklist_dataflow_doublequeue): New functions.
260         (df_worklist_dataflow): Two different worklist solvers.
261         * params.def (PARAM_DF_DOUBLE_QUEUE_THRESHOLD_FACTOR):
262         New param.
263
264 2008-01-16  Sebastian Pop  <sebastian.pop@amd.com>
265
266         PR testsuite/34821
267         * doc/invoke.texi: Document the dependence on pthread for fopenmp
268         and ftree-parallelize-loops.
269
270 2008-01-17  Mircea Namolaru  <namolaru@il.ibm.com>
271
272         PR rtl-optimization/34826
273         * loop-doloop (doloop_modify): Update the REG_BR_PROB note.
274
275 2008-01-17  Andreas Krebbel  <krebbel1@de.ibm.com>
276
277         * global.c (find_reg): Mark the eh regs as used if necessary.
278         * ra-conflict.c (global_conflicts): Set no_eh_reg flag.
279         * ra.h (struct allocno): no_eh_reg field added.  Changed
280         no_stack_reg type to bitfield.
281
282 2008-01-17  Eric Botcazou  <ebotcazou@adacore.com>
283
284         * tree.c (substitute_in_expr): Add missing 'break'.
285
286 2008-01-17  Richard Guenther  <rguenther@suse.de>
287
288         PR tree-optimization/34825
289         * tree-ssa-math-opts.c (is_division_by): Do not recognize
290         x / x as division to handle.
291
292 2008-01-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
293
294         * pa64-hpux.h (LIB_SPEC): Add "-lpthread" in shared links if "-mt" or
295         "-pthread" is specified.
296         * pa-hpux11.h (LIB_SPEC): Likewise.
297
298 2007-01-16  Janis Johnson  <janis187@us.ibm.com>
299             Peter Bergner  <bergner@vnet.ibm.com>
300
301         PR rtl-optimization/33796
302         * sparseset.c (sparseset_alloc): Use xcalloc rather than xmalloc.
303
304 2008-01-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
305
306         PR libgfortran/34699
307         * pa-hpux.h (LINK_SPEC): Only search /lib/pa1.1 and /usr/lib/pa1.1 on
308         static links.
309         * pa-hpux10.h (LINK_SPEC): Likewise.
310         * pa-hpux11.h (LINK_SPEC): Don't search /lib/pa1.1 and /usr/lib/pa1.1.
311
312 2008-01-16  Richard Guenther  <rguenther@suse.de>
313
314         PR middle-end/32628
315         * fold-const.c (fold_convert_const_int_from_int): Do not
316         set overflow if that occured only because of a sign extension
317         change when converting from/to a sizetype with the same
318         precision and signedness.
319
320 2008-01-16  Uros Bizjak  <ubizjak@gmail.com>
321
322         PR debug/34249
323         * dwarf2out.c (output_call_frame_info): Move output of FDE initial
324         location address to the correct place.  Update copyright year.
325
326 2008-01-16  Sebastian Pop  <sebastian.pop@amd.com>
327
328         * lambda-code.c (lambda_transform_legal_p): Handle the case of
329         no dependences in the dependence_relations vector.
330
331 2008-01-16  Jan Hubicka  <jh@suse.cz>
332
333         PR rtl-optimization/31396
334         * regstat.c (regstat_bb_compute_ri): Compute FREQ_CALLS_CROSSED.
335         * cfg.c (dump_reg_info): Print it.
336         * regs.h (struct reg_info_t): add freq_calls_crossed.
337         (REG_FREQ_CALLS_CROSSED): New macro.
338         * global.c (global_alloc): Compute freq_calls_crossed for allocno.
339         (find_reg): Update call of CALLER_SAVE_PROFITABLE.
340         * regmove.c (optimize_reg_copy_1, optimize_reg_copy_2, fixup_match_2,
341         regmove_optimize): Update call crossed frequencies.
342         * local-alloc.c (struct qty): Add freq_calls_crossed.
343         (alloc_qty): Copute freq_calls_crossed.
344         (update_equiv_regs, combine_regs): Update REG_FREQ_CALLS_CROSSED.
345         (find_free_reg): Update call of CALLER_SAVE_PROFITABLE.
346         * ra.h (struct allocno): Add freq_calls_crossed.
347
348 2008-01-16  Sebastian Pop  <sebastian.pop@amd.com>
349
350         * gcc.c (LINK_COMMAND_SPEC): Add includes and link options for
351         libgomp when compiling with ftree-parallelize-loops.
352         (GOMP_SELF_SPECS): Add -pthread for ftree-parallelize-loops.
353
354 2008-01-16  Richard Guenther  <rguenther@suse.de>
355
356         PR tree-optimization/34769
357         * tree-data-ref.c (initialize_matrix_A): Revert fix for PR34458.
358         * tree.c (int_cst_value): Instead make this function more
359         permissive in what it accepts as valid input.  Document this
360         function always sign-extends the value.
361
362 2008-01-16  Jakub Jelinek  <jakub@redhat.com>
363             Richard Guenther  <rguenther@suse.de>
364
365         PR c/34668
366         * gimplify.c (fold_indirect_ref_rhs): Rename to ...
367         (gimple_fold_indirect_ref_rhs): ... this.
368         (gimple_fold_indirect_ref): New function with foldings
369         that preserve lvalueness.
370         (gimplify_modify_expr_rhs): Call gimple_fold_indirect_ref_rhs.
371         * tree-flow.h (gimple_fold_indirect_ref): Declare.
372         * tree-inline.c (copy_body_r): Use gimple_fold_indirect_ref
373         to fold an INDIRECT_REF, fall back to the old use of
374         fold_indirect_ref_1.
375
376 2008-01-16  Sebastian Pop  <sebastian.pop@amd.com>
377
378         * tree-data-ref.c (subscript_dependence_tester_1): Call 
379         free_conflict_function.
380         (compute_self_dependence): Same.
381
382 2008-01-16  Uros Bizjak  <ubizjak@gmail.com>
383
384         PR debug/34249
385         * debug.h (dwarf2out_switch_text_section): Move declaration from ...
386         * dwarf2out.c (dwarf2out_switch_text_section): ... here.  Make
387         function global.
388         * final.c (final_scan_insn) [NOTE_INSN_SWITCH_TEXT_SECTIONS]:
389         Depending on dwarf2out_do_frame, call dwarf2out_switch_text_section
390         for DWARF2_UNWIND_INFO targets.
391
392 2008-01-16  Richard Guenther  <rguenther@suse.de>
393
394         PR c/34768
395         * c-typeck.c (common_pointer_type): Do not merge inconsistent
396         type qualifiers for function types.
397
398 2008-01-15  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
399
400         * tree-parloops.c (gen_parallel_loop): Fix ommision of declaration for
401         loop_iterator li from previous commit.
402
403 2008-01-15  Sebastian Pop  <sebastian.pop@amd.com>
404
405         * tree-parloops.c (gen_parallel_loop): Free loop bound estimations.
406
407 2008-01-12  Sebastian Pop  <sebastian.pop@amd.com>
408
409         * tree-parloops.c (loop_has_blocks_with_irreducible_flag): New.
410         (parallelize_loops): Don't parallelize irreducible components.
411
412 2008-01-14  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
413
414         PR c++/24924
415         * c-opts (c_common_post_options): Do not enable CPP
416         flag_pedantic_errors by default.
417         
418 2008-01-14  Eric Botcazou  <ebotcazou@adacore.com>
419
420         PR rtl-optimization/31944
421         * cse.c (remove_pseudo_from_table): New function.
422         (merge_equiv_classes): Use above function to remove pseudo-registers.
423         (invalidate): Likewise.
424
425 2008-01-13  Richard Guenther  <rguenther@suse.de>
426
427         PR middle-end/34601
428         * emit-rtl.c (set_reg_attrs_for_decl_rtl): Use DECL_MODE
429         instead of TYPE_MODE to deal with calls from expand_one_error_var.
430
431 2008-01-13  Uros Bizjak  <ubizjak@gmail.com>
432
433         * gcse.c (cprop_jump): Call validate_unshare_change instead of
434         validate_change to unshare the source of the PC set.
435
436 2008-01-12  Jan Hubicka  <jh@suse.cz>
437
438         PR middle-end/32135
439         * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Do not construct
440         references above array bounds.  This might trigger bounds checks for
441         pointers to arrays.
442
443 2008-01-12  Sebastian Pop  <sebastian.pop@amd.com>
444
445         * tree-ssa-ter.c (free_temp_expr_table): Free num_in_part and
446         new_replaceable_dependencies.
447
448 2008-01-12  Doug Kwan  <dougkwan@google.com>
449
450         * c-decl.c: (grokdeclarator): Use OPT_Wignored_qualifiers
451         instead of OPT_Wreturn_type in warning due to ignored return type
452         qualifiers.
453         * c-opt.c (c_common_post_option): Add -Wignored-qualifiers to
454         options included in -Wextra.
455         * c.opt: New option -Wignored_qualifiers.
456         * doc/invoke.texi (Warning Options, -Wextra): Add new option
457         -Wignore_qualifiers.
458         (-Wignored-qualifiers): Document.
459         (-Wreturn-type): Remove description of functionality now handled
460         by -Wignored-qualifiers.
461
462 2008-01-12  Eric Botcazou  <ebotcazou@adacore.com>
463
464         PR ada/33788
465         * fold-const.c (fold_unary) <VIEW_CONVERT_EXPR>: Fold an existing
466         NOP_EXPR if it is between integral types with the same precision.
467
468 2008-01-12  Jan Hubicka  <jh@suse.cz>
469
470         PR other/28023
471         * invoke.texi (max-inline-recursive-depth): Fix default value.
472
473 2008-01-12  Zdenek Dvorak  <ook@ucw.cz>
474
475         * tree-parloops.c (transform_to_exit_first_loop): Cast nit to the
476         correct type.
477
478 2008-01-11  Bob Wilson  <bob.wilson@acm.org>
479         
480         * config/xtensa/xtensa.c (override_options): Set flag_shlib.
481         
482 2008-01-11  James E. Wilson  <wilson@specifix.com>
483
484         PR target/26015
485         * config/vax/elf.h (FRAME_POINTER_CFA_OFFSET): Define.
486
487 2008-01-11  Anatoly Sokolov <aesok@post.ru>
488
489         * config/avr/avr.c (expand_prologue, expand_epilogue): Don't 
490         save/restore frame pointer register and don't use 'call-prologues' 
491         optimization in function with "OS_task" attribute.
492
493 2008-01-11  Eric Botcazou  <ebotcazou@adacore.com>
494
495         PR middle-end/31309
496         * expr.c (copy_blkmode_from_reg): Use a mode suited to the size
497         when copying to memory.
498
499 2008-01-11  Steven Bosscher  <stevenb.gcc@gmail.com>
500
501         PR rtl-optimization/30905
502         * cfgcleanup.c: Include dce.h
503         (crossjumps_occured): New global variable.
504         (try_crossjump_bb): Exit loop after finding a fallthru edge.
505         If something changed, set crossjumps_occured to true.
506         (try_optimize_cfg): Clear crossjumps_occured at the beginning.
507         Don't add/remove fake edges to exit here...
508         (cleanup_cfg): ...but do it here, when crossjumping.
509         Run a fast DCE when successful crossjumps occured in the latest
510         iteration of try_optimize_cfg.
511
512 2008-01-11  Richard Guenther  <rguenther@suse.de>
513
514         * tree-ssa-sccvn.c (struct vn_binary_op_s): Move hashcode near opcode.
515         (struct vn_unary_op_s): Likewise.
516         (vn_reference_insert): Free old reference on hash collision.
517
518 2008-01-10  Raksit Ashok  <raksit@google.com>
519
520         PR rtl-optimization/27971
521         * combine.c (find_split_point): Split PLUS expressions which are
522         inside a MEM rtx, and whose first operand is complex.
523
524 2008-01-10  DJ Delorie  <dj@redhat.com>
525
526         * config/m32c/m32c.c (m32c_hard_regno_nregs_1): Renamed from...
527         (m32c_hard_regno_nregs): ...this, which is now a wrapper.
528         (m32c_hard_regno_ok): Call the underlying function.
529
530 2008-01-10  Richard Guenther  <rguenther@suse.de>
531
532         PR middle-end/34683
533         * tree-cfg.c (tree_merge_blocks): Do not go through the
534         full-blown folding and stmt updating path if we just deal
535         with virtual operands.
536         * tree-ssa-copy.c (may_propagate_copy): Do not short-cut
537         test for abnormal SSA_NAMEs.
538
539 2008-01-10  Andreas Krebbel  <krebbel1@de.ibm.com>
540
541         PR middle-end/34641
542         * reload.c (push_reload): Add assertions.  All constants from
543         reg_equiv_constant should have been used for replacing the respective
544         pseudo earlier.
545         (find_reloads_address): Invoke find_reloads_address_part for
546         constant taken from the reg_equiv_constant array.
547
548 2008-01-10  Steven Bosscher  <stevenb.gcc@gmail.com>
549
550         * tree-ssa-sccvn.h (struct vn_ssa_aux): Make the most accessed
551         field (valnum) the first in the struct.  Replace bools with
552         unit bit fields.
553
554 2008-01-10  Richard Guenther  <rguenther@suse.de>
555
556         PR tree-optimization/34651
557         * tree-sra.c (sra_build_assignment): Sanitize.  Use the correct
558         types and ordering for masking and converting.
559
560 2008-01-09  Sebastian Pop  <sebastian.pop@amd.com>
561
562         PR tree-optimization/34017
563         * lambda-code.c (lambda_loopnest_to_gcc_loopnest): Generate code
564         also for PHI_NODE expressions.
565
566 2008-01-09  Jan Hubicka  <jh@suse.cz>
567
568         PR tree-optimization/34708
569         * tree-inline.c (estimate_num_insns_1): Compute cost of SWITCH_EXPR
570         based on number of case labels.
571         (init_inline_once): Remove switch_cost.
572         * tree-inline.h (eni_weights_d): Remove switch_cost.
573
574 2008-01-09  Richard Guenther  <rguenther@suse.de>
575         Andrew Pinski  <andrew_pinski@playstation.sony.com>
576
577         PR middle-end/30132
578         * gimplify.c (gimplify_cond_expr): Do not create an addressable
579         temporary if an rvalue is ok or an lvalue is not required.
580
581 2008-01-09  Richard Guenther  <rguenther@suse.de>
582
583         PR middle-end/34458
584         * tree-data-ref.c (initialize_matrix_A): Use tree_low_cst,
585         adjust return type.
586
587 2008-01-09  Richard Guenther  <rguenther@suse.de>
588
589         PR middle-end/34679
590         * tree.c (host_integerp): Check for sizetype only if the
591         type is an integer type.
592
593 2008-01-09  Steven Bosscher  <stevenb.gcc@gmail.com>
594
595         PR debug/26364
596         * opts.c (decode_options): Disable inlining of functions called
597         once if not in unit-at-a-time mode.
598
599 2008-01-09  Alexandre Oliva  <aoliva@redhat.com>
600
601         * Makefile.in (dse.o): Remove duplicate $(RECOG_H) dependency.
602
603 2008-01-08  Richard Guenther  <rguenther@suse.de>
604
605         PR middle-end/31863
606         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Bail
607         out early if the result will be unused.
608
609 2008-01-08  Uros Bizjak  <ubizjak@gmail.com>
610
611         PR target/34709
612         Revert:
613
614         2008-01-05  Uros Bizjak  <ubizjak@gmail.com>
615         * config/i386/i386.c (ix86_builtin_reciprocal): Remove check
616         for TARGET_RECIP.       
617         
618 2008-01-08  Jan Sjodin  <jan.sjodin@amd.com>
619         
620         * config/i386/i386.c (k8_cost, amdfam10_cost): Branch costs
621         for vectorization tuned.
622         
623 2008-01-08  Richard Guenther  <rguenther@suse.de>
624
625         PR tree-optimization/34683
626         * tree-ssa-operands.c (operand_build_cmp): Export.
627         * tree-ssa-operands.h (operand_build_cmp): Declare.
628         * tree-vn.c (vuses_compare): Remove.
629         (sort_vuses): Use operand_build_cmp.
630         (sort_vuses_heap): Likewise.
631         * tree-ssa-sccvn.c (vuses_to_vec): Use VEC_reserve, not VEC_alloc
632         to re-use old VEC if available.  Do not sort already sorted VUSEs.
633         (vdefs_to_vec): Do not sort already sorted VDEFs.
634
635 2008-01-08  Jakub Jelinek  <jakub@redhat.com>
636
637         PR middle-end/34694
638         * omp-low.c (copy_var_decl): Copy also DECL_SOURCE_LOCATION.
639
640 2008-01-08  Uros Bizjak  <ubizjak@gmail.com>
641
642         PR target/34702
643         * doc/invoke.texi (i386 and x86-64 Options) [mrecip]: Document
644         limitations of reciprocal sequences on x86 targets.
645
646 2008-01-08  Richard Guenther  <rguenther@suse.de>
647
648         PR tree-optimization/34683
649         * tree-flow-inline.h (var_ann): Remove overzealous asserts.
650
651 2008-01-07  Jakub Jelinek  <jakub@redhat.com>
652
653         PR target/34622
654         * config/darwin.c (darwin_mergeable_string_section): Don't use
655         .cstring if int_size_in_bytes != TREE_STRING_LENGTH.
656
657 2008-01-07  Uros Bizjak  <ubizjak@gmail.com>
658
659         PR target/34682
660         * config/i386/i386.md (neg<mode>2): Rename from negsf2, negdf2 and
661         negxf2.  Macroize expander using X87MODEF mode iterator.  Change
662         predicates of op0 and op1 to register_operand.
663         (abs<mode>2): Rename from abssf2, absdf2 and negxf2.  Macroize
664         expander using X87MODEF mode iterator.  Change predicates of
665         op0 and op1 to register_operand.
666         ("*absneg<mode>2_mixed", "*absneg<mode>2_sse"): Rename from
667         corresponding patterns and macroize using MODEF macro.  Change
668         predicates of op0 and op1 to register_operand and remove
669         "m" constraint. Disparage "r" alternative with "!".
670         ("*absneg<mode>2_i387"): Rename from corresponding patterns and
671         macroize using X87MODEF macro.  Change predicates of op0 and op1
672         to register_operand and remove "m" constraint.  Disparage "r"
673         alternative with "!".
674         (absneg splitter with memory operands): Remove.
675         ("*neg<mode>2_1", "*abs<mode>2_1"): Rename from corresponding
676         patterns and macroize using X87MODEF mode iterator.
677         * config/i386/sse.md (negv4sf2, absv4sf2, neg2vdf2, absv2df2):
678         Change predicate of op1 to register_operand.
679         * config/i386/i386.c (ix86_expand_fp_absneg_operator): Remove support
680         for memory operands.
681
682 2008-01-07  Nathan Froyd  <froydnj@codesourcery.com>
683
684         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add clause for mcpu=8548.
685
686 2008-01-07  Richard Guenther  <rguenther@suse.de>
687
688         * basic-block.h (struct edge_def): Pair dest_idx with goto_locus
689         fields.
690
691 2008-01-07  Richard Guenther  <rguenther@suse.de>
692
693         PR tree-optimization/34683
694         * tree-ssa-sccvn.c (vuses_to_vec): Pre-allocate the vector of
695         VOPs of the needed size to save memory.  Use VEC_quick_push
696         to save compile-time.
697         (vdefs_to_vec): Likewise.
698
699 2008-01-07  Sa Liu  <saliu@de.ibm.com>
700
701         * config/spu/spu.md (divdf3): Genetate inline code for double
702         division.  The implementation doesn't handle INF or NAN, therefore it
703         only applies when -ffinite-math-only is given.
704
705 2008-01-06  Paolo Carlini  <pcarlini@suse.de>
706
707         PR libstdc++/34680
708         * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_RTTI, if appropriate.
709         * doc/cpp.texi ([Common Predefined Macros]): Document.
710
711 2008-01-06  Uros Bizjak  <ubizjak@gmail.com>
712
713         * config/i386/i386.c (ix86_emit_swsqrtsf): Use negative constants in
714         order to use commutative addition instead of subtraction.
715
716 2008-01-06  Andrew Pinski  <andrew_pinski@playstation.sony.com>
717             Mircea Namolaru  <namolaru@il.ibm.com>
718             Vladimir Yanovsky  <yanov@il.ibm.com>
719             Revital Eres  <eres@il.ibm.com>
720
721         PR tree-optimization/34263
722         * tree-outof-ssa.c (process_single_block_loop_latch,
723         contains_tree_r): New functions.
724         (analyze_edges_for_bb): Call process_single_block_loop_latch
725         function to empty single-basic-block latch block if possible.
726
727 2008-01-05  Uros Bizjak  <ubizjak@gmail.com>
728
729         * config/i386/i386.c (ix86_builtin_reciprocal): Remove check
730         for TARGET_RECIP.
731         (ix86_emit_swsqrtsf): Do not filter out infinity for rsqrt expansion.
732
733 2008-01-05  Richard Sandiford  <rsandifo@nildram.co.uk>
734
735         * c-omp.c (check_omp_for_incr_expr): Handle CONVERT_EXPR.
736
737 2008-01-05  Richard Sandiford  <rsandifo@nildram.co.uk>
738
739         * config/mips/mips.c (mips_in_small_data_p): Reinstate size > 0 check.
740
741 2008-01-05  Jakub Jelinek  <jakub@redhat.com>
742
743         PR tree-optimization/34618
744         * tree-outof-ssa.c (create_temp): Copy over DECL_GIMPLE_REG_P
745         flag from T.
746
747 2008-01-05  Uros Bizjak  <ubizjak@gmail.com>
748
749         PR target/34673
750         * config/i386/i386.c (ix86_emit_swsqrtsf): Swap input operands
751         in the call to gen_rtx_NE.  Remove unneeded VECTOR_MODE_P check.
752         Update copyright year.
753
754         * config/i386/i386.md (rsqrtsf2): Enable for TARGET_SSE_MATH.
755         Update copyright year.
756         * config/i386/sse.md (rsqrtv4sf2): Ditto. Unconditionally expand
757         using NR fixup.
758
759 2008-01-05  Zhouyi Zhou  <zhouzhouyi@FreeBSD.org>
760
761         * tree-vrp.c (find_conditional_asserts): Remove redundant check that
762         edge does not point to current bb before changing need_assert.
763
764 2008-01-04  Richard Guenther  <rguenther@suse.de>
765
766         PR middle-end/34029
767         * tree-cfg.c (verify_expr): Do not look inside ADDR_EXPRs
768         for verifying purposes if they are is_gimple_min_invariant.
769
770 2008-01-04  Aldy Hernandez  <aldyh@redhat.com>
771
772         PR tree-optimization/34448
773         PR tree-optimization/34465
774         * gimplify.c (gimplify_init_constructor): Add new parameter
775         notify_temp_creation.  Use it.
776         (gimplify_modify_expr_rhs): Take volatiles into account when
777         optimizing constructors.
778         Do not optimize constructors if gimplify_init_constructor will dump to
779         memory.
780         * gcc.dg/tree-ssa/pr32901.c: Tests const volatiles.
781         * gcc.c-torture/compile/pr34448.c: New.
782
783 2008-01-04  Jakub Jelinek  <jakub@redhat.com>
784
785         PR gcov-profile/34609
786         * tree-inline.c (declare_return_variable): Set TREE_ADDRESSABLE on
787         return_slot if result is TREE_ADDRESSABLE.
788
789 2008-01-04  Richard Sandiford  <rsandifo@nildram.co.uk>
790
791         * config/mips/mips.md (sqrt_condition): Tweak comment.
792         (recip_condition): Likewise.  Require TARGET_FLOAT64 for DFmode.
793
794 2008-01-03  Tom Tromey  <tromey@redhat.com>
795
796         PR c/34457
797         * c-common.c (c_type_hash): Handle VLAs.
798
799 2008-01-03  Jan Hubicka  <jh@suse.cz>
800
801         PR tree-optimization/31081
802         * tree-inline.c (remap_ssa_name): Initialize uninitialized SSA vars to
803         0 when inlining and not inlining to first basic block.
804         (remap_decl): When var is initialized to 0, don't set default_def.
805         (expand_call_inline): Set entry_bb.
806         * tree-inline.h (copy_body_data): Add entry_bb.
807
808 2008-01-03  Jakub Jelinek  <jakub@redhat.com>
809
810         PR c++/34619
811         * cgraphunit.c (cgraph_build_static_cdtor): set_cfun back to NULL
812         before returning.
813
814         PR tree-optimization/29484
815         * tree-inline.c (inline_forbidden_p_2): New function.
816         (inline_forbidden_p): Disallow inlining if some static var
817         has an address of a local LABEL_DECL in its initializer.
818         * doc/extend.texi (Labels as Values): Document &&foo behaviour
819         vs. inlining.
820
821 2008-01-03  Sebastian Pop  <sebastian.pop@amd.com>
822
823         PR tree-optimization/34635
824         * tree-data-ref.c (add_other_self_distances): Make sure that the
825         evolution step is constant.
826
827 2008-01-03  Jakub Jelinek  <jakub@redhat.com>
828
829         PR middle-end/34608
830         * omp-low.c (expand_omp_parallel): Purge dead EH edges in the child fn.
831
832 2008-01-02  Richard Sandiford  <rsandifo@nildram.co.uk>
833
834         * tree-sra.c (scalarize_init): Insert the generate_element_init
835         statements after the generate_element_zero statements.
836
837 2008-01-02  Richard Guenther  <rguenther@suse.de>
838
839         PR middle-end/34093
840         PR middle-end/31976
841         * tree-ssa-operands.c (ssa_operand_alloc): Also allocate a buffer
842         for very large number of operands instead of ICEing.
843
844 2008-01-02  Arthur Norman <acn1@cam.ac.uk>
845
846         PR target/34013
847         * gcc/config/i386/i386.c (ix86_expand_prologue): Save red-zone
848         while stack probing.
849
850 2008-01-01  Douglas Gregor  <doug.gregor@gmail.com>
851
852         * c-opts.c (sanitize_cpp_opts): Don't warn about "long long" when
853         in C++0x mode.
854
855 2008-01-01  Volker Reichelt  <v.reichelt@netcologne.de>
856
857         PR libmudflap/26442
858         * tree-mudflap.c (mx_register_decls): Guard warning by
859         !DECL_ARTIFICIAL check.
860
861 2008-01-01  Jakub Jelinek  <jakub@redhat.com>
862
863         * config/i386/sse.md (sse5_pperm, sse5_pperm_pack_v2di_v4si,
864         sse5_pperm_pack_v4si_v8hi, sse5_pperm_pack_v8hi_v16qi,
865         sse5_perm<mode>): Fix constraints.