1 2008-04-24 Rafael Espindola <espindola@google.com>
3 * tree-flow.h (vrp_evaluate_conditional): Change signature.
4 * tree-ssa-propagate.c (fold_predicate_in): Update call to
5 vrp_evaluate_conditional.
6 * tree-vrp.c (vrp_evaluate_conditional_warnv): Remove.
7 (vrp_evaluate_conditional): Split the cond argument.
8 (vrp_visit_cond_stmt): Use vrp_evaluate_conditional_warnv_with_ops.
9 (simplify_stmt_for_jump_threading): Update call to
10 vrp_evaluate_conditional.
12 2008-04-24 Ira Rosen <irar@il.ibm.com>
14 PR tree-optimization/35982
15 * tree-vect-analyze.c (vect_check_interleaving): Check that the
16 interleaved data-refs are of the same type.
18 2008-04-24 Danny Smith <dannysmith@users.net>
20 * c-format.c (check_format_info_main): Use strncmp rather than a magic prefix
21 to handle multichar length specs.
22 * config/i386/msformat-c.c (format_length_info ms_printf_length_specs):
23 Don't prefix "I64" and "I32" with '\0'.
25 2008-04-24 Jakub Jelinek <jakub@redhat.com>
28 * config/i386/i386.c (init_cumulative_args): Don't pass anything
29 in registers for -m32 only if stdarg_p (fntype).
31 2008-04-24 Uros Bizjak <ubizjak@gmail.com>
33 PR rtl-optimization/36006
34 * expmed.c (store_fixed_bit_field): Copy op0 rtx before moving
35 temp to op0 in order to avoid invalid rtx sharing.
37 2008-04-23 Paolo Bonzini <bonzini@gnu.org>
39 * tree-cfg.c (verify_expr): Check with is_gimple_address. Don't
41 * tree-gimple.c (is_gimple_address): New.
42 (is_gimple_invariant_address): Simplify using decl_address_invariant_p.
43 * tree-gimple.h (is_gimple_address): New.
44 * tree.h (decl_address_invariant_p): New.
45 * tree.c (make_node_stat): Don't set TREE_INVARIANT.
46 (build_string): Likewise.
47 (decl_address_invariant_p): New, from is_gimple_invariant_address.
48 (tree_invariant_p_1): Likewise.
50 (tree_invariant_p): New.
51 (skip_simple_arithmetic): Use it.
52 (stabilize_reference_1): Use it.
53 (recompute_tree_invariant_for_addr_expr): Don't update TREE_INVARIANT,
55 (build1_stat): Drop code to compute TREE_INVARIANT.
56 (build2_stat): Drop code to compute TREE_INVARIANT.
57 (build3_stat): Drop code to compute TREE_INVARIANT.
58 (build4_stat): Drop code to compute TREE_INVARIANT.
59 (build5_stat): Drop code to compute TREE_INVARIANT.
60 (build7_stat): Drop code to compute TREE_INVARIANT.
61 (merge_dllimport_decl_attributes): Don't mention TREE_INVARIANT.
62 * tree.h (struct tree_base): Remove invariant_flag.
63 (TREE_INVARIANT): Remove.
64 * builtins.c (build_string_literal): Don't set TREE_INVARIANT.
65 (fold_builtin_expect): Check TREE_CONSTANT.
66 * tree-ssa-ccp.c (fold_stmt_r): Adjust comment.
67 * c-tree.h (c_expr_to_decl): Drop third parameter.
68 * c-typeck.c (build_external_ref): Don't set TREE_INVARIANT.
69 (build_c_cast): Don't set TREE_INVARIANT.
70 (pop_init_level): Don't set TREE_INVARIANT.
71 (c_objc_common_truthvalue_conversion): Don't set TREE_INVARIANT.
72 * gimplify.c (gimplify_init_ctor_preeval): Add assertion, test
74 (gimplify_init_constructor): Don't set TREE_INVARIANT.
75 (gimplify_addr_expr): Adjust comment.
76 * tree-mudflap.c (mf_build_string):
77 * print-tree.c (print_node): Don't print TREE_INVARIANT.
78 * tree-nested.c (convert_nonlocal_reference): Adjust comment.
79 * c-common.c (fix_string_type): Don't set TREE_INVARIANT.
80 * langhooks-def.h (lhd_expr_to_decl): Drop third parameter.
81 * langhooks.c (lhd_expr_to_decl): Drop third parameter.
82 * langhooks.h (struct lang_hooks): Drop third parameter from
85 2008-04-23 Richard Guenther <rguenther@suse.de>
87 PR tree-optimization/27799
88 PR tree-optimization/32921
89 PR tree-optimization/32624
90 * tree-ssa-structalias.c (merge_smts_into): Only merge the
91 SMTs aliases and the tag itself into the solution.
92 * tree-ssa-alias.c (compute_flow_sensitive_aliasing): Do not
93 merge the points-to solution back into the SMT aliases.
94 (may_alias_p): Use alias_set_subset_of instead of
95 aliases_conflict_p. A pointer which points to
96 memory with alias set zero may access any variable.
98 2008-04-23 Richard Guenther <rguenther@suse.de>
100 * alias.c (alias_set_subset_of): Correctly handle asking
101 if zero is a subset of an alias set with zero child.
102 * tree-ssa-alias.c (have_common_aliases_p): Simplify logic.
103 (compute_flow_insensitive_aliasing): Correctly walk all
104 pointers. Do not unnecessarily union sets.
106 2008-04-23 Richard Guenther <rguenther@suse.de>
109 * c-common.c (handle_alloc_size_attribute): Use type_num_arguments.
111 2008-04-22 Tomas Bily <tbily@suse.cz>
113 * tree-cfg.c (verify_expr): Check for NON_LVALUE_EXPR as
115 * tree-vrp.c (extract_range_from_unary_expr): Removed unused
117 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
118 * tree-ssa-structalias.c (get_constraint_for): Likewise.
119 * tree-inline.c (estimate_num_insns_1): Likewise.
120 * varasm.c (const_hash_1, compare_constant, copy_constant)
121 (compute_reloc_for_constant, output_addressed_constants): Likewise.
122 * emit-rtl.c (component_ref_for_mem_expr)
123 (set_mem_attributes_minus_bitpos): Likewise.
124 * expr.c (highest_pow2_factor, expand_expr_real_1, )
125 (is_aligning_offset): Likewise.
126 * dwarf2out.c (loc_descriptor_from_tree_1, add_bound_info): Likewise.
127 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Likewise.
128 * dojump.c (do_jump): Likewise.
129 * builtins.c (get_pointer_alignment, get_memory_rtx)
130 (integer_valued_real_p, fold_builtin_next_arg): Likewise.
131 * tree-scalar-evolution.c (instantiate_parameters_1): Likewise.
133 2008-04-23 Jakub Jelinek <jakub@redhat.com>
135 PR rtl-optimization/36017
136 * builtins.c (expand_errno_check): Clear CALL_EXPR_TAILCALL before
137 expanding the library call.
139 2008-04-22 Ian Lance Taylor <iant@google.com>
141 * fold-const.c (pointer_may_wrap_p): Call int_size_in_bytes rather
144 2008-04-22 Pat Haugen <pthaugen@us.ibm.com>
146 * config/rs6000/rs6000.c (rs6000_register_move_cost): Increase cost
147 of LR/CTR moves for Power6.
149 2008-04-22 Kenneth Zadeck <zadeck@naturalbridge.com>
152 * passes.c (init_optimization_passes): Remove
153 pass_fast_rtl_byte_dce.
155 2008-04-22 Uros Bizjak <ubizjak@gmail.com>
158 * config/i386/xmmintrin.h (_mm_cvtpi16_ps): Rearrange calls to
159 builtin functions to generate faster code.
160 (_mm_cvtpu16_ps): Ditto.
161 (_mm_cvtpi32x2_ps): Ditto.
163 2008-04-22 Nick Clifton <nickc@redhat.com>
165 * common.opt (ftree-loop-distribution): Add Optimization
168 * config/frv/frv.c (frv_stack_info): Use crtl instead of cfun.
169 (frv_expand_builtin_va_start): Likewise.
171 * config/arm/arm.c (thumb_find_work_register): Fix location of
172 argument register count.
174 2008-04-22 Maxim Kuvyrkov <maxim@codesourcery.com>
176 Support scheduling for ColdFire V1 and V3 microarchitecture.
177 Improve scheduling of multiplication instructions.
179 * config/m68k/m68k.md (cpu): Add cfv1 and cfv3. Rename cf_v2 to cfv1.
180 (mac): New instruction attribute.
181 * config/m68k/m68k.c (override_options): Handle cfv1, cfv3 and mac.
182 (m68k_sched_mac): New variable.
183 (m68k_sched_attr_type2, m68k_sched_md_init_global): Update.
184 Handle cfv1 and cfv3.
185 (max_insn_size): New static variable.
186 (struct _sched_ib): New type.
187 (sched_ib): New static variable.
188 (sched_ib_size, sched_ib_filled, sched_ib_insn): Convert variables
189 to fields of 'struct _sched_ib sched_ib'. Update all uses.
190 (m68k_sched_variable_issue): Add modeling of cfv3 instruction buffer.
192 (m68k_sched_md_init_global, m68k_sched_md_finish_global,
193 m68k_sched_md_init, m68k_sched_md_finish): Handle cfv1 and cfv3. Init
194 new variables. Update.
195 (m68k_sched_dfa_pre_advance_cycle, m68k_sched_dfa_post_advance_cycle):
196 Add modeling of cfv3 instruction buffer. Update.
197 * config/m68k/m68k-protos.h (m68k_sched_mac): Declare.
198 * config/m68k/m68k.h (TUNE_CFV3): New macro.
199 * config/m68k/cf.md: Change substrings 'cf_v2' to 'cfv12' or 'cfv123'.
200 (cf_* reservations): Rename to cfv12 or cfv123 to indicate cores
201 a particular reservation applies to.
202 (type2): Reorganize attribute values. Rename alu to alu_reg,
203 alu_l to alu, move_l to omove. Join move to alu. Split mul
205 (cf_ib_*): Simplify description of instruction buffer.
206 (cf_ib_w0, cf_ib_w4, cf_ib_w5, cf_ib_w6): Remove.
207 (cf_mem): Split into cf_mem1 and cf_mem2.
208 (cf_v2_move_??): Rename to cfv12_alu_??.
209 (cf_v2_move_l_??): Rename to cfv12_omove_??.
210 (cf_v2_mul_??): Remove reservations.
211 (cfv12_mul_l_??, cfv12_mul_w_??, cfv12_mac_w_??, cfv12_mac_l_??,
212 cfv12_emac_??, cfv12_emac_w_i0): New reservations.
213 (cfv12_rts, cfv12_call, cfv12_bcc, cfv12_bra, cfv12_jmp): Move to
215 (cfv3_alu_10, cfv3_omove_10, cfv3_alu_i0, cfv3_omove_i0, cfv3_alu_01,
216 cfv3_alu_0i, cfv3_alu_11, cfv3_omove_11, cfv3_alu_i1, cfv3_omove_i1,
217 cfv3_alu_1i, cfv3_omove_1i, cfv3_pea_11, cfv3_pea_i1, cfv3_mul_w_10,
218 cfv3_mul_l_10, cfv3_mul_w_i0, cfv3_mac_w_10, cfv3_mac_l_10,
219 cfv3_mac_w_i0, cfv3_emac_10, cfv3_emac_w_i0, cfv3_rts, cfv3_call,
220 cfv3_bcc, cfv3_bra, cfv3_jmp): New reservations.
221 (cfv3_*_1, cfv3_*_2, cfv3_*_3): New instruction reservations that are
222 expansions of the above reservations for instructions of sizes
225 2008-04-22 Maxim Kuvyrkov <maxim@codesourcery.com>
227 * rtl-factoring.c (collect_patterns_seqs): Handle CC0 targets.
229 2008-04-21 Adam Nemet <anemet@caviumnetworks.com>
231 * coverage.c: Include tree-pass.h.
232 (coverage_counter_alloc): Print da_file_name to the dump file.
234 2008-04-21 Kenneth Zadeck <zadeck@naturalbridge.com>
236 * sbitmap.c (sbitmap_range_empty_p): New function.
237 * sbitmap.h (sbitmap_range_empty_p): New function.
238 * bitmap.h: Now includes obstack.h.
240 2008-04-21 Richard Sandiford <rsandifo@nildram.co.uk>
241 Kenneth Zadeck <zadeck@naturalbridge.com>
243 * dbgcnt.def (ra_byte_scan): Added.
244 * dbgcnt.c (dbg_cnt): Added code to print message to dump_file
245 when the last hit happens for a counter.
246 * timevar.def (TV_DF_BYTE_LR): New variable.
247 * tree-pass.h (pass_fast_rtl_byte_dce): New pass.
248 * passes.c (pass_fast_rtl_byte_dce): New pass.
249 * fwprop.c (update_df): Added mode to call df_ref_create.
250 Renamed DF_REF_WIDTH and DF_REF_OFFSET to DF_REF_EXTRACT_WIDTH and
251 DF_REF_EXTRACT_OFFSET.
252 * df.h (DF_BYTE_LR, DF_BYTE_LR_BB_INFO, DF_BYTE_LR_IN,
253 DF_BYTE_LR_OUT, df_byte_lr): New macro.
255 (df_ref_extract): Added mode field.
256 (DF_REF_WIDTH, DF_REF_OFFSET) Renamed to DF_REF_EXTRACT_WIDTH and
257 DF_REF_EXTRACT_OFFSET.
258 (DF_REF_EXTRACT_MODE): New macro.
259 (df_byte_lr_bb_info): New structure.
260 (df_print_byte_regset, df_compute_accessed_bytes,
261 df_byte_lr_add_problem, df_byte_lr_get_regno_start,
262 df_byte_lr_get_regno_len, df_byte_lr_simulate_defs,
263 df_byte_lr_simulate_uses,
264 df_byte_lr_simulate_artificial_refs_at_top,
265 df_byte_lr_simulate_artificial_refs_at_end,
266 df_compute_accessed_bytes): New function.
267 (df_ref_create): Add parameter.
268 (df_byte_lr_get_bb_info): New inline function.
269 * df-scan.c (df_ref_record, df_uses_record,
270 df_ref_create_structure): Added mode parameter.
271 (df_ref_create, df_notes_rescan, df_ref_record, df_def_record_1,
272 df_defs_record, df_uses_record, df_get_conditional_uses,
273 df_get_call_refs, df_insn_refs_collect, df_bb_refs_collect,
274 df_entry_block_defs_collect, df_exit_block_uses_collect):
275 Added mode parameter to calls to df_ref_record, df_uses_record,
276 df_ref_create_structure.
277 (df_ref_equal_p, df_ref_compare): Added test for modes.
278 (df_ref_create_structure): Added code to set mode. Renamed
279 DF_REF_WIDTH and DF_REF_OFFSET to DF_REF_EXTRACT_WIDTH and
280 DF_REF_EXTRACT_OFFSET.
281 * df-core.c (df_print_byte_regset): New function.
282 * df-byte-scan.c: New file.
283 * df-problems.c (df_rd_transfer_function): Removed unnecessary
284 calls to BITMAP_FREE.
285 (df_byte_lr_problem_data, df_problem problem_BYTE_LR): New structure.
286 (df_byte_lr_get_regno_start, df_byte_lr_get_regno_len,
287 df_byte_lr_set_bb_info, df_byte_lr_free_bb_info,
288 df_byte_lr_check_regs, df_byte_lr_expand_bitmap,
289 df_byte_lr_alloc, df_byte_lr_reset, df_byte_lr_bb_local_compute,
290 df_byte_lr_local_compute, df_byte_lr_init,
291 df_byte_lr_confluence_0, df_byte_lr_confluence_n,
292 df_byte_lr_transfer_function, df_byte_lr_free,
293 df_byte_lr_top_dump, df_byte_lr_bottom_dump,
294 df_byte_lr_add_problem, df_byte_lr_simulate_defs,
295 df_byte_lr_simulate_uses,
296 df_byte_lr_simulate_artificial_refs_at_top,
297 df_byte_lr_simulate_artificial_refs_at_end): New function.
298 * dce.c (byte_dce_process_block): New function.
299 (dce_process_block): au is now passed in rather than computed
300 locally. Changed loops that look at artificial defs to not look
301 for conditional or partial ones, because there never are any.
302 (fast_dce): Now is able to drive byte_dce_process_block or
303 dce_process_block depending on the kind of dce being done.
304 (rest_of_handle_fast_dce): Add parameter to fast_dce.
305 (rest_of_handle_fast_byte_dce): New function.
306 (rtl_opt_pass pass_fast_rtl_byte_dce): New pass.
307 * Makefile.in (df-byte-scan.o, debugcnt.o): Added dependencies.
309 2008-04-21 Daniel Franke <franke.daniel@gmail.com>
312 * gcc.h: Added fortran options that take arguments to
313 DEFAULT_SWITCH_TAKES_ARG and DEFAULT_WORD_SWITCH_TAKES_ARG
316 2008-04-20 Eric Botcazou <ebotcazou@adacore.com>
318 * tree-sra.c (sra_walk_expr) <VIEW_CONVERT_EXPR>: Disable
319 scalarization if on the LHS and not a full access.
321 2008-04-20 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
323 * Makefile.in (s-gtyp-input): Remove tmp-gi.list before writing it.
325 2008-04-18 Rafael Espindola <espindola@google.com>
327 * tree-vrp.c (find_case_label_index): Fix the binary search.
328 (find_case_label_range): New.
329 (vrp_visit_switch_stmt): Use find_case_label_range.
330 (simplify_switch_using_ranges): Use find_case_label_range.
332 2008-04-18 Eric Botcazou <ebotcazou@adacore.com>
334 * gimplify.c (gimplify_modify_expr_rhs) <COND_EXPR>: Gimplify the LHS
335 using the is_gimple_lvalue predicate instead of is_gimple_min_lval.
337 2008-04-18 Tom Tromey <tromey@redhat.com>
340 * doc/cpp.texi (Implementation-defined behavior): Mention
343 2008-04-18 Ian Lance Taylor <iant@google.com>
345 * fold-const.c (pointer_may_wrap_p): New static function.
346 (fold_comparison): Add another test for pointer overflow. Use
347 pointer_may_wrap_p to disable some false positives.
349 2008-04-18 Kris Van Hees <kris.van.hees@oracle.com>
351 * c-common.c (CHAR16_TYPE, CHAR32_TYPE): New macros.
352 (fname_as_string): Match updated cpp_interpret_string prototype.
353 (fix_string_type): Support char16_t* and char32_t*.
354 (c_common_nodes_and_builtins): Add char16_t and char32_t (and
355 derivative) nodes. Register as builtin if C++0x.
356 (c_parse_error): Support CPP_CHAR{16,32}.
357 * c-common.h (RID_CHAR16, RID_CHAR32): New elements.
358 (enum c_tree_index) <CTI_CHAR16_TYPE, CTI_SIGNED_CHAR16_TYPE,
359 CTI_UNSIGNED_CHAR16_TYPE, CTI_CHAR32_TYPE, CTI_SIGNED_CHAR32_TYPE,
360 CTI_UNSIGNED_CHAR32_TYPE, CTI_CHAR16_ARRAY_TYPE,
361 CTI_CHAR32_ARRAY_TYPE>: New elements.
362 (char16_type_node, signed_char16_type_node, unsigned_char16_type_node,
363 char32_type_node, signed_char32_type_node, char16_array_type_node,
364 char32_array_type_node): New defines.
365 * c-lex.c (cb_ident): Match updated cpp_interpret_string prototype.
366 (c_lex_with_flags): Support CPP_CHAR{16,32} and CPP_STRING{16,32}.
367 (lex_string): Support CPP_STRING{16,32}, match updated
368 cpp_interpret_string and cpp_interpret_string_notranslate prototypes.
369 (lex_charconst): Support CPP_CHAR{16,32}.
370 * c-parser.c (c_parser_postfix_expression): Support CPP_CHAR{16,32}
371 and CPP_STRING{16,32}.
373 2008-04-18 Paolo Bonzini <bonzini@gnu.org>
376 * aclocal.m4: Regenerate.
377 * configure: Regenerate.
379 2008-04-18 Jan Hubicka <jh@suse.cz>
381 * except.c (dw2_size_of_call_site_table,
382 sjlj_size_of_call_site_table): Use vector API for call_site_record.
384 * cgraphbuild.c (build_cgraph_edges): Update.
385 * tree-pass.h: Update comment.
386 * final.c (leaf_function_p): Update.
387 (leaf_renumber_regs): Update.
388 (rest_of_clean_state): Update.
389 * omp-low.c (expand_omp_parallel): Update.
390 * ipa-reference.c (analyze_function): Update.
391 * reorg.c (find_end_label): Update.
392 (optimize_skip): Update.
393 (fill_simple_delay_slots): Update.
394 (fill_simple_delay_slots): Update.
395 (make_return_insns): Update.
396 (dbr_schedule): Update.
397 * gimple-low.c (record_vars_into): Update.
398 * cfgbuild.c (make_edges): Update.
399 * function.c (assign_stack_local): Update.
400 (assign_parm_adjust_stack_rtl): Update.
401 (locate_and_pad_parm): Update.
402 (allocate_struct_function): Do not initialize stack_alignment_needed
403 and preferred_stack_boundary here.
404 (stack_protect_prologue): Update.
405 (stack_protect_epilogue): Update.
406 (expand_function_start): Initialize stack_alignment_needed,
407 preferred_stack_boundary and max_jumptable_ents.
408 (expand_function_end): Update.
409 (free_after_compilation): Do not NULLify epilogue_delay_list.
410 * function.h (struct rtl_data): Add stack_protect_guard,
411 stack_alignment_needed,
412 preferred_stack_boundary, epilogue_delay_list.
413 (struct function): Remove value_histograms, stack_alignment_needed,
414 preferred_stack_boundary, epilogue_delay_list, max_jumptable_ents,
416 unexpanded_var_list, stack_protect_guard.
417 (current_function_epilogue_delay_list): Remove.
418 * ipa-type-escape.c (analyze_function): Update.
419 * gimplify.c (pop_gimplify_context): Update comment.
420 * calls.c (expand_call): Update.
421 (emit_library_call_value_1): Update.
422 * except.c (set_nothrow_function_flags): Update.
423 * cfgexpand.c (get_decl_align_unit): Update.
424 (create_stack_guard): Update.
425 (estimated_stack_frame_size): Update.
426 (expand_used_vars): Update.
427 (tree_expand_cfg): Free histogram earliers, init expansion variables.
428 * explow.c (allocate_dynamic_stack_space): Update.
429 * tree-ssa-live.c (remove_unused_locals): Update.
430 * varasm.c (mark_constant_pool): Update.
431 * tree-inline.c (remap_decls): Update.
432 (initialize_cfun): Update.
433 (declare_return_variable): Update.
434 (inline_forbidden_p): Update.
435 (expand_call_inline): Update.
436 (declare_inline_vars): Update.
437 (tree_function_versioning): Update.
438 * tree-flow.h (value_histograms): New.
439 (VALUE_HISTOGRAMS): New macro.
440 * basic-block.h (control_flow_graph): Add max_jumptable_ents,
442 * tree-cfg.c (set_bb_for_stmt): Update.
443 (replace_by_duplicate_decl): Update.
444 (move_block_to_fn): Update.
445 (new_label_mapper): Update.
446 (dump_function_to_file): Update.
447 * ipa-struct-reorg.c (build_data_structure): Update.
448 * cfgrtl.c (print_rtl_with_bb): Update.
449 * reload1.c (reload): Update.
451 * config/i386/i386.c (setup_incoming_varargs_64,
452 ix86_compute_frame_layout): Update.
453 * config/arc/arc.c (arc_output_function_epilogue): Update.
455 2008-04-18 Marius Strobl <marius@FreeBSD.org>
457 * gthr-posix.h (__gthread_active_p): Use the Solaris implementation
459 * gthr-posix95.h: Likewise.
461 2008-04-17 Richard Sandiford <rsandifo@nildram.co.uk>
463 PR rtl-optimization/35838
464 * dse.c (find_shift_sequence): Use subreg_lowpart_offset to work
465 out the byte offset of the first subreg.
467 2008-04-17 Uros Bizjak <ubizjak@gmail.com>
469 * config/i386/i386.md (addti3 splitter): Pass arrays of 3 operands
470 to split_ti instead of three separate calls with single member arrays.
471 (subti3 splitter): Ditto.
472 (adddi3 splitter): Ditto with split_di.
473 (subdi3 splitter): Ditto.
474 (negti2 splitter): Pass arrays of 2 operands to split_ti instead of
475 two separate calls with single member arrays. Swap match_dup
476 operands 1 and 2 to better fit into the array.
477 (negdi2 splitter): Ditto with split_di.
478 (movdfcc splitter): Pass arrays of 2 operands to split_di instead of
479 two separate calls with single member arrays. Swap match_dup operands
480 6 and 7 to better fit into the array.
482 2008-04-17 H.J. Lu <hongjiu.lu@intel.com>
484 * config/i386/i386.c (sse_builtin_type): New.
485 (bdesc_sse_args): Likewise.
486 (bdesc_sse_3arg): Removed.
487 (bdesc_2arg): Remove IX86_BUILTIN_AESKEYGENASSIST128.
488 (bdesc_1arg): Remove IX86_BUILTIN_ROUNDPD and
489 IX86_BUILTIN_ROUNDPS.
490 (ix86_init_mmx_sse_builtins): Handle bdesc_sse_args. Remove
491 bdesc_sse_3arg. Remove IX86_BUILTIN_ROUNDPD and
492 IX86_BUILTIN_ROUNDPS.
493 (ix86_expand_sse_4_operands_builtin): Removed.
494 (ix86_expand_sse_operands_builtin): New.
495 (ix86_expand_unop_builtin): Remove CODE_FOR_sse4_1_roundpd
496 and CODE_FOR_sse4_1_roundps.
497 (ix86_expand_builtin): Remove IX86_BUILTIN_AESKEYGENASSIST128.
498 Handle bdesc_sse_args. Remove bdesc_sse_3arg.
500 2008-04-17 Alan Modra <amodra@bigpond.net.au>
503 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Restore vr and vrsave
504 regs before frame pop when needed. If use_backchain_to_restore_sp
505 then load backchain into a temp reg to restore vr and vrsave. Add
506 code to restore vr after frame pop if possible.
508 2008-04-17 Richard Guenther <rguenther@suse.de>
510 * tree-vn.c (expressions_equal_p): Do not check type
511 equality or compatibility before calling operand_equal_p.
512 * fold-const.c (operand_equal_p): Check equivalence of
513 integer constants before bailing out due to signedness or
514 precision differences.
515 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Ignore
516 spurious differences in type qualification. Ignore types
517 for COMPONENT_REFs at all.
519 2008-04-17 Christian Bruel <christian.bruel@st.com>
521 * config/sh/sh.c (expand_cbranchdi4): Use original operands for
524 2008-04-16 Jakub Jelinek <jakub@redhat.com>
527 * tree-nrv.c (tree_nrv): Don't optimize if result_type is GIMPLE
530 PR tree-optimization/35899
531 * tree-inline.c (expand_call_inline): Use GIMPLE_STMT_OPERAND
532 rather than TREE_OPERAND.
534 2008-04-16 Uros Bizjak <ubizjak@gmail.com>
537 * config/i386/i386.md (fmodxf3): Copy operand 1 and operand 2 into
538 temporary registers. Change operand predicate to general_operand.
539 (remainderxf3): Ditto.
541 2008-04-16 Richard Guenther <rguenther@suse.de>
543 * Makefile.in (tree-affine.o): Add $(FLAGS_H) dependency.
544 * tree-affine.c (aff_combination_expand): Look through some
547 2008-04-15 Doug Kwan <dougkwan@google.com>
549 * dwarf2asm.c (dw2_assemble_integer): Cast to unsigned HOST_WIDE_INT
551 * tree-pretty-print.c (dump_generic_node): Ditto.
552 * final.c (output_addr_const): Ditto.
553 * dwarf2out.c (output_cfi): Ditto.
554 * c-pretty-print.c (pp_c_integer_constant): Ditto.
555 * print-rtl.c (print_rtx): Ditto.
556 * print-tree.c (print_node_brief, print_node): Ditto.
557 * c-common.c (match_case_to_enum_1): Ditto.
558 * sched-vis.c (print_value): Ditto.
559 * config/i386/i386.c (print_operand): Cast to long unsigned int
562 2008-04-15 Danny Smith <dannysmith@users.sourceforge.net>
563 * libgcc2.c [L_trampoline]: Remove unnecessary prototype for
564 MS Windows VirtualProtect function.
566 2008-04-15 Jan Hubicka <jh@suse.cz>
568 * gengtype.c (write_root): Param_is argument is OK.
569 * expr.c (expand_expr_real_1): Update call of get_exception_*.
570 * function.h: Include varray.h
571 (rtl_eh): New stucture based on except.c one.
572 (call_site_record): New forward declaration and vector type.
573 * calls.c (emit_call_1): Do not call
574 note_current_region_may_contain_throw.
575 * except.c (eh_status): Remove cur_region, try_region since they are
577 Move filter, exc_ptr, ttype_data, ehspec_data, action_record_data and
578 exception_handler_label_map, ehr_stackadj, ehr_handler, ehr_label,
579 sjlj_fc, sjlj_exit_after to rth_eh in function.h.
580 Remove call_site_data_used, call_site_data_size.
581 Turn call_site_record into vector in function.h.
582 (note_current_region_may_contain_throw): Remove.
583 (get_exception_pointer, get_exception_filter): Do not take struct
584 function argument; update.
585 (add_ehl_entry, find_exception_handler_labels, ehspec_filter_hash,
586 add_ttypes_entry, add_ehspec_entry, assign_filter_values,
587 build_post_landing_pads, dw2_build_landing_pads,
588 sjlj_assign_call_site_values, sjlj_mark_call_sites,
589 sjlj_emit_function_enter, sjlj_emit_function_enter,
590 sjlj_emit_function_exit, sjlj_emit_dispatch_table,
591 sjlj_build_landing_pads, finish_eh_generation,
592 remove_exception_handler_label, remove_eh_handler,
593 maybe_remove_eh_handler, add_reachable_handler,
594 reachable_handlers, expand_builtin_eh_return, expand_eh_return,
595 add_action_record, collect_one_action_chain, add_call_site,
596 convert_to_eh_region_ranges, sjlj_size_of_call_site_table,
597 sjlj_output_call_site_table, output_function_exception_table,
598 * except.h (note_current_region_may_contain_throw): Remove
599 (get_exception_pointer, get_exception_filter): Do not take struct
601 * Makefile.in (GTFILES): Put varargs before struct function.
603 2008-04-15 Eric Botcazou <ebotcazou@adacore.com>
605 * tree-ssa-structalias.c (get_constraint_for_component_ref): Do not
607 (get_constraint_for): Deal with STRING_CST here instead.
609 2008-04-15 Richard Guenther <rguenther@suse.de>
611 * tree-ssa-propagate.c (substitute_and_fold): Substitute
612 statements in a basic-block with a backward walk. Do not
613 substitute into dead statements but instead remove those.
615 2008-04-15 Richard Guenther <rguenther@suse.de>
617 * params.def (PARAM_MAX_FIELDS_FOR_FIELD_SENSITIVE): Set default
618 to zero, thus disable creation of SFTs.
620 2008-04-15 Eric Botcazou <ebotcazou@adacore.com>
622 * tree-predcom.c (suitable_reference_p): Return false if the
625 2008-04-15 Jakub Jelinek <jakub@redhat.com>
628 * c-decl.c (finish_decl): If extern or static var has variable
629 size, set TREE_TYPE (decl) to error_mark_node.
631 2008-04-15 Rafael Espindola <espindola@google.com>
633 * fold-const.c (tree_call_nonnegative_warnv_p): Remove local
636 2008-04-15 Richard Guenther <rguenther@suse.de>
638 * tree-ssa-sccvn.h (vn_reference_lookup): Adjust prototype.
639 * tree-ssa-sccvn.c (vn_reference_lookup): New parameter maywalk.
640 (visit_reference_op_load): Do walk vuse-vdef chains on
642 (visit_reference_op_store): But do not here.
643 * tree-vn.c (vn_lookup): Do not walk vuse-vdef chains on
645 (vn_lookup_with_vuses): But do so here.
647 2008-04-14 Ian Lance Taylor <iant@google.com>
649 * fold-const.c (fold_overflow_warning): Remove assertion.
651 2008-04-15 Ben Elliston <bje@au.ibm.com>
653 * config/alpha/alpha.c (alpha_initialize_trampoline): Remove temp,
654 temp1 local variables.
656 2008-04-15 Zuxy Meng <zuxy.meng@gmail.com>
659 * config/i386/winnt.c (i386_pe_section_type_flags): Mark
660 ".text.unlikely" section as executable.
662 2008-04-14 James E. Wilson <wilson@tuliptree.org>
664 * config/ia64/ia64.c (rtx_needs_barrier): Handle
665 UNSPEC_FR_SQRT_RECIP_APPROX_RES.
666 * config/ia64/ia64.c (UNSPEC_FR_SQRT_RECIP_APPROX_RES): Define.
667 (divsi3_internal, divdi3_internal_lat, divdi3_internal_thr,
668 divsf3_internal_lat, sqrt_approx, sqrtsf2_internal_thr,
669 divdf3_internal_lat, sqrtdf2_internal_thr, divxf3_internal_lat,
670 divxf3_internal_thr, sqrtxf2_internal_thr, recip_approx): Use it.
672 2008-04-14 Ian Lance Taylor <iant@google.com>
674 * flags.h (POINTER_TYPE_OVERFLOW_UNDEFINED): Define.
675 * fold-const.c (fold_comparison): If appropriate, test
676 POINTER_TYPE_OVERFLOW_UNDEFINED, and issue an overflow warning.
677 (fold_binary): Test POINTER_TYPE_OVERFLOW_UNDEFINED when
678 reassociating a pointer type.
679 * doc/invoke.texi (Optimize Options): Document that
680 -fstrict-overflow applies to pointer wraparound.
682 2008-04-13 Jan Hubicka <jh@suse.cz>
684 * m32.c (m32c_pushm_popm): Use crtl->retrun_rtx.
686 2008-04-12 Andrew Pinski <pinskia@gmail.com>
688 * config/rs6000/rs6000.c (compute_save_world_info): Set lr_save_p if
689 we are going to "save the world".
691 2008-04-13 Hans-Peter Nilsson <hp@axis.com>
693 * config/cris/cris.md ("*andhi_lowpart_non_v32", "*andhi_lowpart_v32")
694 ("*andqi_lowpart_non_v32", "*andqi_lowpart_v32"): Use "+" for the
695 operand 0 constraint, not "=".
697 2008-04-11 James E. Wilson <wilson@tuliptree.org>
699 * system.h: Change ASSERT_CHECKING to ENABLE_ASSERT_CHECKING.
701 2008-04-11 H.J. Lu <hongjiu.lu@intel.com>
703 * dse.c (record_store): Use HOST_BITS_PER_WIDE_INT instead
704 of size of positions_needed * CHAR_BIT.
706 2008-04-11 H.J. Lu <hongjiu.lu@intel.com>
709 * dse.c (store_info): Change positions_needed to unsigned
711 (lowpart_bitmask): New.
712 (record_store): Cast to unsigned HOST_WIDE_INT for
713 positions_needed. Assert width <= size of positions_needed *
714 CHAR_BIT. Call lowpart_bitmask to initialize positions_needed.
715 (check_mem_read_rtx): Use unsigned HOST_WIDE_INT on mask. Call
716 lowpart_bitmask to set mask.
718 2008-04-11 Bernd Schmidt <bernd.schmidt@analog.com>
720 * config/bfin/constraints.md: New file.
721 * config/bfin/bfin.md: Include it.
722 (adddi3): Use satisfies_constraint functions instead of the old macros.
723 * config/bfin/bfin.h (REG_CLASS_FROM_LETTER, CONSTRAINT_LEN,
724 CONST_18UBIT_IMM_P, CONST_16BIT_IMM_P, CONST_16UBIT_IMM_P,
725 CONST_7BIT_IMM_P, CONST_7NBIT_IMM_P, CONST_5UBIT_IMM_P,
726 CONST_4BIT_IMM_P, CONST_4UBIT_IMM_P, CONST_3BIT_IMM_P,
727 CONST_3UBIT_IMM_P, CONST_OK_FOR_K, CONST_OK_FOR_P, CONST_OK_FOR_M,
728 CONST_OK_FOR_CONSTRAINT_P, CONST_DOUBLE_OK_FOR_LETTER,
729 EXTRA_CONSTRAINT): Delete.
730 * config/bfin/predicates.md (highbits_operand, reg_or_7bit_operand,
731 reg_or_neg7bit_operand): Use satisfies_constraint functions instead
733 * config/bfin/bfin.c: Include "tm-constrs.h".
734 (bfin_secondary_reload, split_load_immediate, bfin_rtx_costs):
735 Use satisfies_constraint functions instead of the old macros.
736 * doc/md.texi (Blackfin Constraints): Update file name reference.
738 2008-04-11 Richard Guenther <rguenther@suse.de>
740 PR tree-optimization/35869
741 * tree-vrp.c (execute_vrp): Move switch statement update after
742 jump threading. Schedule another cfg cleanup run.
744 2008-04-11 Volker Reichelt <v.reichelt@netcologne.de>
747 * attribs.c (decl_attributes): Return early on errorneous node.
749 2008-04-10 Oleg Ryjkov <olegr@google.com>
751 * tree.h (struct tree_base): Added a new flag default_def_flag.
752 (SSA_NAME_IS_DEFAULT_DEF): Changed to use the new flag.
754 2008-04-11 Kaz Kojima <kkojima@gcc.gnu.org>
756 * config.gcc (need_64bit_hwint): Need 64bit hwint for sh-*-*.
758 2008-04-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
761 * pa.md: Define mode iterator P. Define mode attribute dwc.
762 (dcacheflush): Update pattern to use iterator P and attribute dwc.
763 (icacheflush): Likewise.
764 * pa.h (INITIALIZE_TRAMPOLINE): Use dcacheflushsi/icacheflushsi if
765 !TARGET_64BIT, and dcacheflushdi/icacheflushdi if TARGET_64BIT.
767 2008-04-11 Ben Elliston <bje@au.ibm.com>
769 * config/spu/spu.c (spu_init_builtins): Mark builtins as nothrow.
771 2008-04-10 Rafael Espindola <espindola@google.com>
773 * tree-vrp.c (extract_range_from_binary_expr): Don't handle
774 TRUTH_ANDIF_EXPR or TRUTH_ORIF_EXPR.
775 (extract_range_from_expr): The same.
777 2008-04-10 Adam Nemet <anemet@caviumnetworks.com>
779 * config/mips/mips.md (GPR2): New mode iterator.
781 (*seq_<mode>, *seq_<mode>_mips16, *sne_<mode>, *sgt<u>_<mode>,
782 *sgt<u>_<mode>_mips16, *sge<u>_<mode>, *slt<u>_<mode>,
783 *slt<u>_<mode>_mips16 *sle<u>_<mode>, *sle<u>_<mode>_mips16):
784 Rewrite these to take two modes, the mode of comparison and the
785 mode of the destination.
786 * config/mips/mips.c (mips_expand_scc): Instead of having
787 paradoxical subreg as destination, expand "narrowing" scc if mode
788 of comparison is SI and target is requested in DI mode.
789 (mips_emit_int_order_test): Update comment. Make mode of
790 comparison match CMP0 rather than TARGET. When creating inverse
791 target use mode of TARGET.
793 2008-04-10 Adam Nemet <anemet@caviumnetworks.com>
795 * gcov-dump.c (tag_summary): Only print summaries for the first
796 GCOV_COUNTERS_SUMMABLE counters.
798 2008-04-10 Uros Bizjak <ubizjak@gmail.com>
800 * config/i386/i386.md (absneg): New code iterator.
801 (absnegprefix): New code attribute.
802 (<code><mode>2): Macroize expander from abs<mode>2 and neg<mode>2
803 patterns using absneg code iterator.
804 (<code>tf2): Macroize expander from abstf2 and negtf2 patterns
805 using absneg code iterator.
806 (*<code><mode>2_1): Macroize insn pattern from *abs<mode>2_1 and
807 *neg<mode>2 patterns using absneg code iterator.
808 (*<code>extendsfdf2): Macroize insn pattern from *absextendsfdf2 and
809 *negextendsfdf2 patterns using absneg code iterator.
810 (*<code>extendsfxf2): Macroize insn pattern from *absextendsfxf2 and
811 *negextendsfxf2 patterns using absneg code iterator.
812 (*<code>extendsfdf2): Macroize insn pattern from *absextendsfdf2 and
813 *negextendsfdf2 patterns using absneg code iterator.
814 * config/i386/sse.md (<code><mode>2): Macroize expander from
815 abs<mode>2 and neg<mode>2 patterns using absneg code iterator.
817 2008-04-10 Andreas Krebbel <krebbel1@de.ibm.com>
819 * config/s390/s390.h: Remove the remains of the recent search
820 & replace action of current_function_outgoing_args_size.
822 2008-04-10 Ira Rosen <irar@il.ibm.com>
824 PR tree-optimization/35821
825 * tree-vect-transform.c (vect_create_data_ref_ptr): Add check that
826 NEW_STMT_LIST is not NULL.
828 2008-04-09 David Edelsohn <edelsohn@gnu.org>
831 * toplev.c (process_options): Remove -ffunction-sections debugging
834 2008-04-09 Peter Bergner <bergner@vnet.ibm.com>
836 PR middle-end/PR28690
837 * explow.c (break_out_memory_refs): Use simplify_gen_binary rather
838 than gen_rtx_fmt_ee to perform more canonicalizations.
840 2008-04-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
843 * collect2.c (write_c_file): Don't wrap in "#ifdef __cplusplus".
845 2008-04-09 Richard Guenther <rguenther@suse.de>
847 * tree-cfg.c (verify_stmt): Print complete bogus stmt.
848 (dump_function_to_file): Dump function arguments with types.
850 2008-04-08 Richard Guenther <rguenther@suse.de>
852 * fold-const.c (fold_widened_comparison): Do not allow
853 sign-changes that change the result.
855 2008-04-08 Janis Johnson <janis187@us.ibm.com>
858 * config/rs6000/rs6000.c (rs6000_check_sdmode): Handle additional
859 kinds of indirect references.
861 2008-04-08 David Edelsohn <edelsohn@gnu.org>
863 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Update
864 GNU Fortran language string.
866 2008-04-08 Rafael Espindola <espindola@google.com>
868 * fold-canst.c (tree_call_nonnegative_warnv_p): New.
869 (tree_invalid_nonnegative_warnv_p): Use tree_call_nonnegative_warnv_p.
870 * tree.h (tree_call_nonnegative_warnv_p): New.
872 2008-04-08 Jan Hubicka <jh@suse.cz>
874 * function.c (free_after_compilation): Clear out regno_reg_rtx
877 2008-04-08 Peter Bergner <bergner@vnet.ibm.com>
880 2008-04-07 Peter Bergner <bergner@vnet.ibm.com>
882 PR middle-end/PR28690
883 * rtlanal.c: (commutative_operand_precedence): Give SYMBOL_REF's the
884 same precedence as REG_POINTER and MEM_POINTER operands.
886 2008-04-08 Richard Guenther <rguenther@suse.de>
889 * tree-ssa-address.c (create_mem_ref): Use POINTER_PLUS_EXPR
890 for adding index to base.
892 2008-04-08 Kai Tietz <kai.tietz@onevision.com>
894 * config/i386/mingw32.h (ENABLE_EXECUTE_STACK): New.
895 (MINGW_ENABLE_EXECUTE_STACK): New.
896 (IN_LIBGCC2): For libgcc include windows.h file for
897 function declarations.
899 2008-04-08 Hans-Peter Nilsson <hp@axis.com>
901 * config/cris/cris.c (cris_address_cost): For a PLUS, swap tem1
902 and tem2 if tem1 is not a REG or MULT.
904 2008-04-08 Jan Hubicka <jh@suse.cz>
906 * function.h (incomming_args): Break out of struct function.
907 (function_subsections): Break out of struct function.
908 (rtl_data): Add args, subsections fields. Break out outgoing_args_size,
909 return_rtx and hard_reg_initial_vals from struct function.
910 Kill inl_max_label_num.
911 (current_function_pops_args, current_function_args_info,
912 current_function_args_size, current_function_args_size,
913 current_function_pretend_args_size,
914 current_function_outgoing_args_size,
915 current_function_internal_arg_pointer, current_function_return_rtx):
916 Kill compatibility accestor macros.
917 * builtins.c (expand_builtin_apply_args_1): Update.
918 (expand_builtin_next_arg): Update.
919 * df-scan.c (df_get_call_refs): Update.
920 * dbxout.c (dbxout_function_end): Update.
921 * dwarf2out.c (dwarf2out_switch_text_section): Update.
922 (output_line_info): Update.
923 (secname_for_decl): Update.
924 (dwarf2out_var_location): Update.
925 * function.c (free_after_compilation): Update.
926 (assign_parm_find_stack_rtl): Update.
927 (assign_parms): Update.
928 (expand_dummy_function_end): Update.
929 (expand_function_end): Update.
930 * calls.c (mem_overlaps_already_clobbered_arg_p): Update.
931 (expand_call): Update.
932 (emit_library_call_value_1): Update.
933 (store_one_arg): Update.
934 * varasm.c (initialize_cold_section_name): Update.
935 (unlikely_text_section): Update.
936 (unlikely_text_section_p): Update.
937 (assemble_start_function): Update.
938 (assemble_end_function): Update.
939 (default_section_type_flags): Update.
940 (switch_to_section): Update.
941 * integrate.c (set_decl_abstract_flags): Update.
942 (get_hard_reg_initial_val): Update.
943 (has_hard_reg_initial_val): Update.
944 (allocate_initial_values): Update.
945 * resource.c (init_resource_info): Update.
946 * config/alpha/alpha.c (NUM_ARGS): Update.
947 (direct_return): Update.
948 (alpha_va_start): Update.
949 (alpha_sa_size): Update.
950 (alpha_initial_elimination_offset): Update.
951 (alpha_expand_prologue): Update.
952 (alpha_start_function): Update.
953 (alpha_expand_epilogue): Update.
954 (unicosmk_initial_elimination_offset):
955 * config/alpha/alpha.md (call expander): Update.
956 * config/s390/s390.c (s390_register_info): Update.
957 (s390_register_info): Update.
958 (s390_frame_info): Update.
959 (s390_initial_elimination_offset): Update.
960 (s390_build_builtin_va_list): Update.
961 (s390_va_start): Update.
962 * config/spu/spu.c (direct_return): Update.
963 (spu_expand_prologue): Update.
964 (spu_initial_elimination_offset): Update.
965 (spu_build_builtin_va_list): Update.
966 (spu_va_start): Update.
967 * config/sparc/sparc.c (sparc_init_modes): Update.
968 (sparc_compute_frame_size): Update.
969 (function_value): Update.
970 * config/m32r/m32r.c (m32r_compute_frame_size): Update.
971 * config/i386/i386.md (return expander): Update.
972 * config/i386/i386.c (ix86_va_start): Update.
973 (ix86_can_use_return_insn_p): Update.
974 (ix86_compute_frame_layout): Update.
975 (ix86_expand_epilogue): Update.
976 * config/sh/sh.c (output_stack_adjust): Update.
977 (calc_live_regs): Update.
978 (sh_expand_prologue): Update.
979 (sh_builtin_saveregs): Update.
980 (sh_va_start): Update.
981 (initial_elimination_offset): Update.
982 (sh_allocate_initial_value): Update.
983 (sh_function_ok_for_sibcall): Update.
984 (sh_get_pr_initial_val): Update.
985 * config/sh/sh.md (return expander): Update.
986 * config/avr/avr.c (frame_pointer_required_p): UPdate.
987 * config/crx/crx.c (crx_compute_frame): UPdate.
988 (crx_initial_elimination_offset): UPdate.
989 * config/xtensa/xtensa.c (compute_frame_size): Update
990 (xtensa_builtin_saveregs): Update.
991 (xtensa_va_start): Update.
992 (order_regs_for_local_alloc): Update.
993 * config/stormy16/stormy16.c (xstormy16_compute_stack_layout): Update.
994 (xstormy16_expand_builtin_va_start): Update.
995 * config/fr30/fr30.c (fr30_compute_frame_size): Update.
996 * config/m68hc11/m68hc11.md (return expanders): Update.
997 * config/m68hc11/m68hc11.c (expand_prologue): Update.
998 (expand_epilogue): Update.
999 * config/cris/cris.c (cris_initial_frame_pointer_offset): Update.
1000 (cris_simple_epilogue): Update.
1001 (cris_expand_prologue): Update.
1002 (cris_expand_epilogue): Update.
1003 * config/iq2000/iq2000.c (iq2000_va_start): Update.
1004 (compute_frame_size): Update.
1005 * config/mt/mt.c (mt_compute_frame_size): Update.
1006 * config/mn10300/mn10300.c (expand_prologue): Update.
1007 (expand_epilogue): Update.
1008 (initial_offset): Update.
1009 (mn10300_builtin_saveregs):
1010 * config/mn10300/mn10300.md (return expander): Update.
1011 * config/ia64/ia64.c (ia64_compute_frame_size): Update.
1012 (ia64_initial_elimination_offset): Update.
1013 (ia64_initial_elimination_offset): Update.
1014 (ia64_expand_prologue): Update.
1015 * config/m68k/m68k.md (return expander): Update.
1016 * config/rs6000/rs6000.c (rs6000_va_start): Update.
1017 (rs6000_stack_info): Update.
1018 * config/mcore/mcore.c (layout_mcore_frame): Update.
1019 (mcore_expand_prolog): Update.
1020 * config/arc/arc.c (arc_compute_frame_size): Update.
1021 * config/score/score3.c (score3_compute_frame_size): Update.
1022 * config/score/score7.c (score7_compute_frame_size): Update.
1023 * config/arm/arm.c (use_return_insn): Update.
1024 (thumb_find_work_register): Update.
1025 (arm_compute_save_reg_mask): Update.
1026 (arm_output_function_prologue): Update.
1027 (arm_output_epilogue): Update.
1028 (arm_size_return_regs): Update.
1029 (arm_get_frame_offsets): Update.
1030 (arm_expand_prologue): Update.
1031 (thumb_exit): Update.
1032 (thumb_unexpanded_epilogue): Update.
1033 (thumb1_output_function_prologue): Update.
1034 * config/pa/pa.md (return expander): Update.
1035 * config/pa/pa.c (compute_frame_size): Update.
1036 (hppa_builtin_saveregs): Update.
1037 * config/mips/mips.c (mips_va_start): Update.
1038 (mips16_build_function_stub): Update.
1039 (mips_compute_frame_info): Update.
1040 (mips_restore_gp): Update.
1041 (mips_output_function_prologue): Update.
1042 (mips_expand_prologue): Update.
1043 * config/v850/v850.c (compute_frame_size): Update.
1044 (expand_prologue): * config/mmix/mmix.c (along): update.
1045 (mmix_initial_elimination_offset): update.
1046 (mmix_reorg): update.
1047 (mmix_use_simple_return): update.
1048 (mmix_expand_prologue): update.
1049 (mmix_expand_epilogue): Update.
1050 * config/bfin/bfin.c (bfin_initial_elimination_offset): Update.
1051 (emit_link_insn): Update.
1053 2008-04-08 Anatoly Sokolov <aesok@post.ru>
1055 * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): Define
1056 __AVR_HAVE_EIJMP_EICALL__ macro if device have EIJMP and EICALL
1058 * config/avr/avr.c (avr_mcu_types): Set AVR31 architecture for
1061 2008-04-07 Jan Hubicka <jh@suse.cz>
1063 * function.h (rtl): Rename to x_rtl.
1065 (return_label, naked_return_label, stack_slot_list, parm_birth_insn,
1066 frame_offset, stack_check_probe_note, arg_pointer_save_area,
1067 used_temp_slots avail_temp_slots, temp_slot_level,
1068 nonlocal_goto_handler_labels): Update accesstors.
1069 (rtl): New global variable.
1070 (struct function): Move some fileds to rtl_data.
1071 (get_arg_pointer_save_area): Update prototype.
1072 * builtins.c (expand_builtin_setjmp_receiver): Update call of
1073 get_arg_pointer_save_area.
1074 * expr.c (init_expr): Update
1075 * function.c (get_frame_size): Update
1076 (assign_stack_local): Update
1077 (expand_function_end): Update.
1078 (get_art_pointer_save_area): Update
1080 * emit-rtl.c (rtl): Declare.
1081 (regno_reg_rtx): Declare.
1082 (first_insn, last_insn, cur_insn_uid, last_location, first_label_num):
1084 (gen_reg_rtx): Update.
1085 * varasm.c (n_deferred_constatns): Update accestor.
1086 (init_varasm_status): Do not allocate varasm_status.
1087 (force_const_mem, get_pool_size, output_constant_pool): Update.
1088 * stmt.c (force_label_rtx): Do not use x_ prefixes.
1089 (expand_nl_goto_receiver): Update get_arg_pointer_save_area.
1090 * m32c/m32.c (m32c_leaf_function_p, m32c_function_needs_enter): Update.
1091 * sparc/sparc.h (INIT_EXPANDERS): Update.
1092 * ia64/ia64.h (INIT_EXPANDERS): Update.
1094 2008-04-07 James E. Wilson <wilson@tuliptree.org>
1096 * reload.c (push_secondary_reload): Add missing break to for loop.
1098 2008-04-07 Peter Bergner <bergner@vnet.ibm.com>
1100 PR middle-end/PR28690
1101 * rtlanal.c: Update copyright years.
1102 (commutative_operand_precedence): Give SYMBOL_REF's the same precedence
1103 as REG_POINTER and MEM_POINTER operands.
1104 * emit-rtl.c (gen_reg_rtx_and_attrs): New function.
1105 (set_reg_attrs_from_value): Call mark_reg_pointer as appropriate.
1106 * rtl.h (gen_reg_rtx_and_attrs): Add prototype for new function.
1107 * gcse.c: Update copyright years.
1108 (pre_delete): Call gen_reg_rtx_and_attrs.
1109 (hoist_code): Likewise.
1110 (build_store_vectors): Likewise.
1111 (delete_store): Likewise.
1112 * loop-invariant.c (move_invariant_reg): Likewise.
1113 Update copyright years.
1115 2008-04-07 Uros Bizjak <ubizjak@gmail.com>
1117 * config/i386/i386.md ("*sse_prologue_save_insn"): Use braced output
1118 control string instead of quoted.
1120 2008-04-07 Kenneth Zadeck <zadeck@naturalbridge.com>
1122 * doc/rtl.texi: Rewrite of subreg section.
1124 2008-04-07 Kai Tietz <kai.tietz@onevision.com>
1127 * config/i386/i386.c (legitimize_pic_address): Add treating
1128 of dllimport SYM_REF's.
1129 (legitimize_dllimport_symbol): Add prototype.
1131 2008-04-07 Eric Botcazou <ebotcazou@adacore.com>
1133 * fold-const.c (fold) <ARRAY_REF>: New case. Try to fold constant
1134 reference in constructor with non self-referential type.
1136 2008-04-07 Eric Botcazou <ebotcazou@adacore.com>
1138 Removal of Return with Depressed Stack Pointer support
1139 * tree.h (TYPE_RETURNS_STACK_DEPRESSED): Delete.
1140 (ECF_SP_DEPRESSED): Likewise.
1141 (ECF_LIBCALL_BLOCK, ECF_NOVOPS): Adjust.
1142 * calls.c (emit_call_1): Do not test ECF_SP_DEPRESSED.
1143 (flags_from_decl_or_type): Do not test TYPE_RETURNS_STACK_DEPRESSED.
1144 (expand_call): Do not test ECF_SP_DEPRESSED.
1145 * dse.c (dse_step0): Do not test TYPE_RETURNS_STACK_DEPRESSED.
1146 * function.c (keep_stack_depressed): Delete.
1147 (handle_epilogue_set): Likewise.
1148 (update_epilogue_consts): Likewise.
1149 (emit_equiv_load): Likewise.
1150 (thread_prologue_and_epilogue_insns): Remove support for Return with
1151 Depressed Stack Pointer.
1152 * print-tree.c (print_node): Do not test TYPE_RETURNS_STACK_DEPRESSED.
1154 2008-04-06 Richard Guenther <rguenther@suse.de>
1156 PR tree-optimization/35400
1157 * tree-vrp.c (vrp_evaluate_conditional): Only query value-range
1158 information from SSA_NAMEs.
1160 2008-04-06 Anatoly Sokolov <aesok@post.ru>
1162 * config/avr/avr.h (avr_mega_p): Remove declaration.
1163 (AVR_MEGA): Remove macro.
1164 * config/avr/avr.c (avr_mega_p): Remove variable.
1165 (avr_override_options): Remove inicializion of avr_mega_p.
1166 Use AVR_HAVE_JMP_CALL instead of AVR_MEGA.
1167 (print_operand): Use AVR_HAVE_JMP_CALL instead of AVR_MEGA.
1168 (avr_jump_mode): (Ditto.).
1169 (avr_output_progmem_section_asm_op): (Ditto.).
1170 (avr_asm_init_sections): (Ditto.).
1171 (avr_asm_init_sections): (Ditto.).
1172 (avr_rtx_costs): (Ditto.).
1173 * config/avr/avr.md: (Ditto.).
1174 * config/avr/avr.h: Use '__AVR_HAVE_JMP_CALL__' instead of
1177 2008-04-06 Richard Guenther <rguenther@suse.de>
1179 PR tree-optimization/35842
1180 * tree-ssa-address.c (fixed_address_object_p): Adjust to match
1181 is_gimple_invariant_address.
1183 2008-04-06 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1185 * gcc.c (default_compilers): Sync Fortran extensions list with
1186 that in fortran/lang-specs.h.
1187 * doc/invoke.texi: Likewise.
1188 * dbxout.c (get_lang_number): Use "GNU Fortran" in "GNU F95".
1189 * dwarf2out.c (gen_compile_unit_die): Likewise.
1191 2008-04-06 Tom G. Christensen <tgc@jupiterrise.com>
1193 * gthr-posix95.h (__gthread_cond_wait_recursive): Add missing &.
1195 2008-04-05 Uros Bizjak <ubizjak@gmail.com>
1198 * config/i386/i386.c (ix86_function_regparm): Error if regparm(3)
1199 attribute is used for nested functions.
1201 2008-04-05 Jan Hubicka <jh@suse.cz>
1203 * emit-rtl.c (init_emit): xcalloc regno_pointer_align.
1205 * tree-dump.c (dump_enable_all): Remove prototype; do not accept
1207 (dump_files): Update.
1208 (enable_rtl_dump_file): Do not accept letter argument.
1209 * tree-pass.h (dump_file_info): Remove letter argument.
1210 * toplev.c (decode_d_option): Update -da handling.
1211 * toplev.h (enable_rtl_dump_file): Update prototype.
1212 * passes.c (register_one_dump_file): Do not accept IPA argument; work
1213 it out based on pass type.
1214 (register_dump_files_1): Likewise.
1215 (init_optimization_passes): Update register_one_dump_file calls.
1216 (execute_one_pass): Sanity check that IPA passes are called at IPA
1217 level and RTL passes at RTL level.
1218 (execute_pass_list): IPA pass can not be after or subpass of
1220 (execute_ipa_pass_list): Handle IPA subpasses of IPA subpasses and
1221 disallov RTL subpasses of IPA subpasses.
1223 2008-04-05 Ben Elliston <bje@au.ibm.com>
1225 * tree-cfg.c (need_fake_edge_p): Return false for calls to
1226 builtins that return exactly once and do not throw. Cache call to
1229 2008-04-04 Andy Hutchinson <hutchinsonandy@aim.com>
1231 PR rtl-optimization/34916
1233 * combine.c (create_log_links): Do not create duplicate LOG_LINKS
1234 between instruction pairs.
1236 2008-04-04 Naveen.H.S <naveen.hs@kpitcummins.com>
1238 * doc/invoke.texi: Document -mbitops for SH.
1239 * config/sh/constraints.md (K03, K12, Sbv, Sbw): New constraints.
1240 * config/sh/predicates.md (bitwise_memory_operand): New predicate.
1241 * config/sh/sh.c (print_operand): Add %t operand code.
1242 * config/sh/sh.h (GO_IF_LEGITIMATE_INDEX): Add condition for SH2A.
1243 * config/sh/sh.md (*iorsi3_compact): Fix condition for SH2A.
1244 (extendqisi2_compact): Add the alternative for SH2A 4-byte mov.b.
1245 (extendqihi2): Likewise.
1246 (movqi_i): Likewise.
1247 (insv): Use bset, bclr and bst instructions for SH2A if possible.
1248 (extv): Use bld instruction for SH2A if possible.
1250 (bclr_m2a, bclrmem_m2a, bset_m2a, bsetmem_m2a, bst_m2a, bld_m2a,
1251 bldsign_m2a, bld_reg, *bld_regqi, band_m2a, bandreg_m2a,
1252 bor_m2a, borreg_m2a, bxor_m2a, bxorreg_m2a): New insns.
1253 (bset.b, bclr.b): Define peepholes.
1254 * config/sh/sh.opt (mbitops): New option.
1256 2008-04-04 Janis Johnson <janis187@us.ibm.com>
1259 * config/rs6000/rs6000.c (rs6000_check_sdmode): Handle indirect ref
1260 and view convert expression.
1262 2008-04-04 Jakub Jelinek <jakub@redhat.com>
1265 * tree-cfg.c (remove_useless_stmts_1): Handle OMP_* containers.
1267 2008-04-04 H.J. Lu <hongjiu.lu@intel.com>
1269 * config.gcc (extra_headers): Add wmmintrin.h for x86 and x86-64.
1271 * config/i386/cpuid.h (bit_AES): New.
1272 (bit_PCLMUL): Likewise.
1274 * config/i386/i386.c (pta_flags): Add PTA_AES and PTA_PCLMUL.
1275 (override_options): Handle PTA_AES and PTA_PCLMUL. Enable
1276 SSE2 if AES or PCLMUL is enabled.
1277 (ix86_builtins): Add IX86_BUILTIN_AESENC128,
1278 IX86_BUILTIN_AESENCLAST128, IX86_BUILTIN_AESDEC128,
1279 IX86_BUILTIN_AESDECLAST128, IX86_BUILTIN_AESIMC128,
1280 IX86_BUILTIN_AESKEYGENASSIST128 and IX86_BUILTIN_PCLMULQDQ128.
1281 (bdesc_sse_3arg): Add IX86_BUILTIN_PCLMULQDQ128.
1282 (bdesc_2arg): Add IX86_BUILTIN_AESENC128,
1283 IX86_BUILTIN_AESENCLAST128, IX86_BUILTIN_AESDEC128,
1284 IX86_BUILTIN_AESDECLAST128 and IX86_BUILTIN_AESKEYGENASSIST128.
1285 (bdesc_1arg): Add IX86_BUILTIN_AESIMC128.
1286 (ix86_init_mmx_sse_builtins): Define __builtin_ia32_aesenc128,
1287 __builtin_ia32_aesenclast128, __builtin_ia32_aesdec128,
1288 __builtin_ia32_aesdeclast128,__builtin_ia32_aesimc128,
1289 __builtin_ia32_aeskeygenassist128 and
1290 __builtin_ia32_pclmulqdq128.
1291 * config/i386/i386.c (ix86_expand_binop_imm_builtin): New.
1292 (ix86_expand_builtin): Use it for IX86_BUILTIN_PSLLDQI128 and
1293 IX86_BUILTIN_PSRLDQI128. Handle IX86_BUILTIN_AESKEYGENASSIST128.
1295 * config/i386/i386.h (TARGET_AES): New.
1296 (TARGET_PCLMUL): Likewise.
1297 (TARGET_CPU_CPP_BUILTINS): Handle TARGET_AES and TARGET_PCLMUL.
1299 * config/i386/i386.md (UNSPEC_AESENC): New.
1300 (UNSPEC_AESENCLAST): Likewise.
1301 (UNSPEC_AESDEC): Likewise.
1302 (UNSPEC_AESDECLAST): Likewise.
1303 (UNSPEC_AESIMC): Likewise.
1304 (UNSPEC_AESKEYGENASSIST): Likewise.
1305 (UNSPEC_PCLMUL): Likewise.
1307 * config/i386/i386.opt (maes): New.
1308 (mpclmul): Likewise.
1310 * config/i386/sse.md (aesenc): New pattern.
1311 (aesenclast): Likewise.
1313 (aesdeclast): Likewise.
1315 (aeskeygenassist): Likewise.
1316 (pclmulqdq): Likewise.
1318 * config/i386/wmmintrin.h: New.
1320 * doc/extend.texi: Document AES and PCLMUL built-in function.
1322 * doc/invoke.texi: Document -maes and -mpclmul.
1324 2008-04-04 Paolo Bonzini <bonzini@gnu.org>
1326 * function.c (free_after_parsing): Replace with
1327 cxx_push_function_context from C++ front-end.
1328 (allocate_struct_function): Don't call langhook.
1329 * langhooks.h (struct lang_hooks_for_functions): Delete.
1330 (struct lang_hooks): Add back missing_noreturn_ok_p here, delete
1332 * langhooks-def.h (LANG_HOOKS_MISSING_NORETURN_OK_P): Add.
1333 (LANG_HOOKS_FUNCTION_INIT, LANG_HOOKS_FUNCTION_FINAL,
1334 LANG_HOOKS_FUNCTION_MISSING_NORETURN_OK_P,
1335 LANG_HOOKS_FUNCTION_INITIALIZER): Delete.
1336 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_MISSING_NORETURN_OK_P,
1337 remove LANG_HOOKS_FUNCTION_INITIALIZER.
1338 * tree-cfg.c: Adjust call to missing_noreturn_ok_p langhook.
1340 * c-objc-common.h (LANG_HOOKS_FUNCTION_MISSING_NORETURN_OK_P):
1341 Rename to LANG_HOOKS_MISSING_NORETURN_OK_P.
1343 2008-04-04 Jakub Jelinek <jakub@redhat.com>
1346 * c-pretty-print.c (pp_c_initializer_list): Handle CONSTRUCTOR
1349 2008-04-04 Richard Guenther <rguenther@suse.de>
1352 * fold-const.c (optimize_minmax_comparison): Use the correct
1353 type for the constant in the simplified comparison.
1355 2008-04-04 Zuxy Meng <zuxy.meng@gmail.com>
1357 * config/i386/driver-i386.c (describe_cache): Add l2_sizekb argument.
1358 Pass L2 size as "--param l2-cache-size" to the compiler.
1359 (decode_l2_cache): New function to decode L2 cache parameters using
1360 0x8000006 extended cpuid function.
1361 (detect_caches_amd): Determine parameters of L2 cache using
1362 decode_l2_caches function.
1363 (decode_caches_intel): Decode L2 cache parameters.
1364 (detect_caches_intel): Determine L2 cache parameters using
1365 decode_caches_intel and decode_l2_caches functions.
1367 2008-04-03 Bob Wilson <bob.wilson@acm.org>
1369 * config/xtensa/xtensa.c (xtensa_secondary_reload_class): Use a
1370 secondary input reload for subword loads from the constant pool.
1372 2008-04-03 Janis Johnson <janis187@us.ibm.com>
1375 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use integer
1376 constants of the appropriate size for runtime calculations.
1379 * dfp.c (decimal_from_decnumber): Retain trailing zeroes for
1380 decimal-float literal constant zero.
1382 2008-04-03 Jakub Jelinek <jakub@redhat.com>
1385 * c-parser.c (c_parser_omp_atomic): Call
1386 default_function_array_conversion on the RHS.
1389 * omp-low.c (scan_sharing_clauses) <case OMP_CLAUSE_SHARED>: Don't
1390 call is_variable_sized if decl has incomplete type.
1392 2008-04-03 H.J. Lu <hongjiu.lu@intel.com>
1394 * config/i386/i386-protos.h (ix86_aligned_p): Removed.
1396 2008-04-03 Adam Nemet <anemet@caviumnetworks.com>
1398 * config/mips/mips.md (any_gt, any_ge, any_lt, any_le): New code
1400 (u): Add attribute values for gt, gtu, ge, geu, lt, ltu, le and leu.
1401 (sgt<u>): Merge sgt and sgtu into new expander.
1402 (sgt, sgtu): Remove expanders.
1403 (*sgt<u>_<mode>): Merge *sgt_<mode> and *sgtu_<mode> into new pattern.
1404 (*sgt_<mode>, *sgtu_<mode>): Remove patterns.
1405 (*sgt<u>_<mode>_mips16): Merge *sgt_<mode>_mips16 and
1406 *sgtu_<mode>_mips16 into new pattern.
1407 (*sgt_<mode>_mips16, *sgtu_<mode>_mips16): Remove patterns.
1408 (sge<u>): Merge sge and sgeu into new expander.
1409 (sge, sgeu): Remove expanders.
1410 (*sge<u>_<mode>): Merge *sge_<mode> and second *sge_<mode> into
1412 (*sge_<mode>, second *sge_<mode>): Remove patterns.
1413 (slt<u>): Merge slt and sltu into new expander.
1414 (slt, sltu): Remove expanders.
1415 (*slt<u>_<mode>): Merge *slt_<mode> and *sltu_<mode> into new pattern.
1416 (*slt_<mode>, *sltu_<mode>): Remove patterns.
1417 (*slt<u>_<mode>_mips16): Merge *slt_<mode>_mips16 and
1418 *sltu_<mode>_mips16 into new pattern.
1419 (*slt_<mode>_mips16, *sltu_<mode>_mips16): Remove patterns.
1420 (sle<u>): Merge sle and sleu into new expander.
1421 (sle, sleu): Remove expanders.
1422 (*sle<u>_<mode>): Merge *sle_<mode> and *sleu_<mode> into new pattern.
1423 (*sle_<mode>, *sleu_<mode>): Remove patterns.
1424 (*sle<u>_<mode>_mips16): Merge *sle_<mode>_mips16 and
1425 *sleu_<mode>_mips16 into new pattern.
1426 (*sle_<mode>_mips16, *sleu_<mode>_mips16): Remove patterns.
1428 2008-04-03 Jan Hubicka <jh@suse.cz>
1430 PR tree-optimization/35795
1431 * alpha/alpha.c (alpha_output_mi_thunk_osf): Free after compilation.
1432 * sparc/sparc.c (sparc_output_mi_thunk): Likewise.
1433 * ia64/ia64.c (ia64_output_mi_thunk): Likewise.
1434 * m68k/m68k.c (m68k_output_mi_thunk): Likewise.
1435 * score/score3.c (score3_output_mi_thunk): Likewise.
1436 * score/score7.c (score7_output_mi_thunk): Likewise.
1437 * mips/mips.c (mips_output_mi_thunk): Likewise.
1439 2008-04-03 Richard Guenther <rguenther@suse.de>
1441 * tree-vrp.c (extract_range_from_unary_expr): Handle all
1442 conversions. Simplify code.
1444 2008-04-03 Kaz Kojima <kkojima@gcc.gnu.org>
1446 * config/sh/sh.c (sh_output_mi_thunk): Free cfun.
1448 2008-04-03 Tom Tromey <tromey@redhat.com>
1449 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1451 * config/m68k/t-uclinux (generated_files): Add sysroot-suffix.h.
1452 * config/bfin/t-bfin-linux (generated_files): Add
1453 linux-sysroot-suffix.h.
1454 * doc/install.texi (Prerequisites): Require make 3.80.
1455 * doc/sourcebuild.texi (Front End Directory): Document new
1457 * Makefile.in (generated_files): New variable.
1458 (ALL_HOST_OBJS): New variable.
1459 ($(ALL_HOST_OBJS)): New target.
1461 2008-04-03 Paolo Bonzini <bonzini@gnu.org>
1463 * tree-inline.c (copy_generic_body, copy_decl_no_change): Export.
1464 (remap_block): Call id->transform_lang_insert_block instead
1466 (optimize_inline_calls, unsave_expr_now, tree_function_versioning):
1467 Set id.transform_lang_insert_block to NULL.
1468 (clone_body): Move to cp/optimize.c
1469 * tree-inline.h (struct copy_body_data): Change
1470 transform_lang_insert_block to function pointer.
1471 (copy_generic_body, copy_decl_no_change): Export.
1472 * langhooks.h (struct lang_hooks_for_decls): Kill insert_block.
1473 * langhooks-def.h (LANG_HOOKS_INSERT_BLOCK): Kill.
1474 (LANG_HOOKS_DECLS): Remove LANG_HOOKS_INSERT_BLOCK.
1476 * c-tree.h (insert_block): Kill.
1477 * c-decl.c (insert_block): Kill.
1479 2008-04-03 Paolo Bonzini <bonzini@gnu.org>
1481 * c-objc-common.h (LANG_HOOKS_FUNCTION_ENTER_NESTED,
1482 LANG_HOOKS_FUNCTION_LEAVE_NESTED): Delete.
1483 * c-tree.h (c_push_function_context, c_pop_function_context): Remove
1485 * c-decl.c (c_push_function_context, c_pop_function_context): Remove
1486 argument, call {push,pop}_function_context from here.
1487 * c-parser.c: Use c_{push,pop}_function_context.
1489 * function.c (push_function_context_to): Move meat ...
1490 (push_function_context): ... here. Simplify.
1491 * function.c (pop_function_context_from): Move meat ...
1492 (pop_function_context): ... here. Simplify.
1493 * langhooks.h (struct lang_hooks_for_functions): Remove enter_nested,
1495 * langhooks-def.h (LANG_HOOKS_FUNCTION_ENTER_NESTED,
1496 LANG_HOOKS_FUNCTION_LEAVE_NESTED): Delete.
1497 (LANG_HOOKS_FUNCTION_INITIALIZER): Delete them from here.
1498 * tree.h (push_function_context_to, pop_function_context_from): Remove.
1500 2008-04-03 Ben Elliston <bje@au.ibm.com>
1502 * expmed.c (extract_force_align_mem_bit_field): Remove.
1504 2008-04-03 Richard Guenther <rguenther@suse.de>
1507 * expr.h (try_casesi): Adjust prototype.
1508 * expr.c (try_casesi): Take fallback label as extra parameter.
1509 Use that for gen_casesi if default_label is NULL.
1510 * stmt.c (expand_case): Pass fallback label to try_casesi,
1511 make sure to fill gaps with a fallback label if default_label
1514 2008-04-03 Dominique d'Humieres <dominiq@lps.ens.fr>
1517 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Free cfun.
1519 2008-04-03 Ben Elliston <bje@au.ibm.com>
1521 * expmed.c (extract_split_bit_field): Remove if (0) code.
1522 * tree-ssa-structalias.c (do_sd_constraint): Likewise.
1523 (do_ds_constraint): Likewise.
1525 2008-04-02 Joseph Myers <joseph@codesourcery.com>
1527 * doc/cppopts.texi (-dU): Document.
1528 * c-common.h (flag_dump_macros): Update comment.
1529 * c-opts.c (handle_OPT_d): Handle -dU.
1530 * c-ppoutput.c (macro_queue, define_queue, undef_queue,
1531 dump_queued_macros, cb_used_define, cb_used_undef): New.
1532 (init_pp_output): Handle -dU.
1533 (cb_line_change): Call dump_queued_macros.
1534 * toplev.c (decode_d_option): Accept -dU as preprocessor option.
1536 2008-04-02 Anatoly Sokolov <aesok@post.ru>
1538 * config/avr/predicates.md (io_address_operand): New predicate.
1539 * config/avr/avr-protos.h (avr_io_address_p): Remove declaration.
1540 * config/avr/avr.c (avr_io_address_p): Remove function.
1541 (out_movqi_r_mr): Use 'io_address_operand' predicate instead of
1542 'avr_io_address_p' function.
1543 (out_movhi_r_mr): (Ditto.).
1544 (out_movqi_mr_r): (Ditto.).
1545 (out_movhi_mr_r): (Ditto.).
1546 (avr_address_cost): (Ditto.).
1548 2008-04-02 Uros Bizjak <ubizjak@gmail.com>
1550 * config/i386/i386.md (*float<SSEMODEI24:mode><X87MODEF:mode>2_1):
1551 Emit gen_floatdi<X87MODEF:mode>2_i387_with_xmm for DImode values
1552 in 32bit mode when XMM registers are available to avoid store
1554 (floatdi<X87MODEF:mode>2_i387_with_xmm): New insn pattern and
1555 corresponding post-reload splitters.
1557 2008-04-02 H.J. Lu <hongjiu.lu@intel.com>
1559 * config/i386/i386.c (bdesc_sse_3arg): Add __builtin_ia32_shufps
1560 and __builtin_ia32_shufpd. Provide __builtin_ia32_roundsd and
1561 __builtin_ia32_roundss.
1562 (ix86_init_mmx_sse_builtins): Remove __builtin_ia32_shufps,
1563 __builtin_ia32_shufpd, __builtin_ia32_roundsd and
1564 __builtin_ia32_roundss.
1565 (ix86_expand_builtin): Don't handle IX86_BUILTIN_SHUFPS and
1566 IX86_BUILTIN_SHUFPD here.
1568 2008-04-02 H.J. Lu <hongjiu.lu@intel.com>
1570 * config/i386/i386.md (plogic): New.
1571 (plogicprefix): Likewise.
1573 * config/i386/mmx.md (mmx_<code><mode>3): New.
1574 (mmx_and<mode>3): Removed.
1575 (mmx_ior<mode>3): Likewise.
1576 (mmx_xor<mode>3): Likewise.
1578 * config/i386/sse.md (<code><mode>3): New.
1579 (*<code><mode>3): Likewise.
1580 (*<code><mode>3): Likewise.
1581 (<code><mode>3): Likewise.
1582 (*sse_<code><mode>3): Likewise.
1583 (*sse2_<code><mode>3): Likewise.
1584 (<code>tf3): Likewise.
1585 (*<code>tf3): Likewise.
1586 (and<mode>3): Likewise.
1587 (*and<mode>3): Likewise.
1588 (ior<mode>3): Removed.
1589 (*ior<mode>3): Likewise.
1590 (xor<mode>3): Likewise.
1591 (*xor<mode>3): Likewise.
1592 (*and<mode>3): Likewise.
1593 (*ior<mode>3): Likewise.
1594 (*xor<mode>3): Likewise.
1595 (and<mode>3): Likewise.
1596 (*sse_and<mode>3): Likewise.
1597 (*sse2_and<mode>3): Likewise.
1599 (*andtf3): Likewise.
1600 (ior<mode>3): Likewise.
1601 (*sse_ior<mode>3): Likewise.
1602 (*sse2_ior<mode>3): Likewise.
1604 (*iortf3): Likewise.
1605 (xor<mode>3): Likewise.
1606 (*sse_xor<mode>3): Likewise.
1607 (*sse2_xor<mode>3): Likewise.
1609 (*xortf3): Likewise.
1611 2008-04-02 Richard Guenther <rguenther@suse.de>
1613 PR tree-optimization/14495
1614 PR tree-optimization/34793
1615 * tree-vrp.c (struct switch_update): New structure.
1616 (to_remove_edges, to_update_switch_stmts): New VECs.
1617 (simplify_switch_using_ranges): New function. Remove not taken
1618 case labels and edges.
1619 (simplify_stmt_using_ranges): Call it.
1620 (identify_jump_threads): Mark edges we have queued for removal
1621 so we don't thread them.
1622 (execute_vrp): Remove edges queued for removal, update SWITCH_STMT
1624 * tree-cfg.c (group_case_labels): Deal with missing default label.
1625 (tree_verify_flow_info): Allow missing default label.
1626 * stmt.c (emit_case_bit_tests): Deal with NULL default_label.
1627 (emit_case_nodes): Likewise.
1628 (expand_case): Do not rely on the default label to be present.
1629 * expr.c (try_casesi): Deal with NULL default_label.
1630 (do_tablejump): Likewise.
1632 2008-04-02 Richard Guenther <rguenther@suse.de>
1634 PR tree-optimization/14495
1635 * tree-vrp.c (vrp_visit_cond_stmt): Do not handle
1636 SWITCH_EXPR here ...
1637 (vrp_visit_switch_stmt): ... but here (new function).
1638 (find_case_label_index): New helper function.
1639 (vrp_visit_stmt): Dispatch to vrp_visit_switch_stmt.
1641 2008-04-02 Paolo Bonzini <bonzini@gnu.org>
1643 * fwprop.c: Fix ISO-C99ism.
1645 2008-04-02 Paolo Bonzini <bonzini@gnu.org>
1648 * Makefile.in (objdir): Set it here.
1649 * configure.ac: Not here. Find dynamic linker characteristics.
1650 * exec-tool.in: Use them.
1651 * aclocal.m4: Regenerate.
1652 * configure: Regenerate.
1654 2008-04-02 Paolo Bonzini <bonzini@gnu.org>
1656 * expr.c (expand_var): Delete it.
1657 * expr.h (expand_var): Delete prototype.
1658 * function.c (expand_function_start): Use expand_decl instead.
1659 * cfgexpand.c (expand_one_static_var, expand_one_var): Don't call
1662 2008-04-02 Andy Hutchinson <hutchinsonamdy@aim.com>
1664 PR rtl-optimization/35542
1665 * fwprop.c (forward_propagate_and_simplify): Replace
1666 loc_reg_mentioned_in_p with reg_mentioned_p.
1668 2008-04-02 Paolo Bonzini <bonzini@gnu.org>
1670 PR rtl-optimization/35281
1671 * fwprop.c (PR_CAN_APPEAR, PR_HANDLE_MEM): New.
1672 (propagate_rtx_1): Handle PR_HANDLE_MEM.
1673 (propagate_rtx): Pass PR_HANDLE_MEM if appropriate.
1674 (varying_mem_p): Move above propagate_rtx.
1675 (all_uses_available_at): Do not check MEMs.
1677 2008-04-02 Rafael Espindola <espindola@google.com>
1679 * tree-vrp.c (extract_code_and_val_from_cond): Remove.
1680 (register_edge_assert_for_2): Split the cond argument.
1681 (register_edge_assert_for_1): Adjust for the change in
1682 register_edge_assert_for_2.
1683 (register_edge_assert_for): Split the cond argument.
1684 (find_switch_asserts): Adjust for the change in
1685 register_edge_assert_for.
1687 2008-04-02 Kai Tietz <kai.tietz@onevision.com>
1689 * config.gcc: Add for x86_64-*-mingw* the t-crtfm to tbuild.
1690 * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Add 8 byte
1691 offsets for 64-bit mingw.
1692 * config/i386/i386.c (ix86_pass_by_reference): Correct calling
1693 abi for x86_64-pc-mingw.
1695 2008-04-02 Richard Guenther <rguenther@suse.de>
1697 * tree-vrp.c (extract_range_from_assert): Make sure to not
1698 produce range min/max with TREE_OVERFOW set.
1699 If merging a anti-range and a range keep the anti-range if
1700 the range covers all values of the type.
1701 (register_edge_assert_for_2): Only allow sign-changing
1702 conversions in detecting canonical range checks. Also
1703 register an assert for the unsigned name if useful.
1705 PR tree-optimization/35787
1706 * tree-vrp.c (vrp_val_max): New function.
1707 (vrp_val_min): Likewise.
1708 (vrp_val_is_max): Move earlier, use vrp_val_{min,max}.
1709 (vrp_val_is_min): Likewise.
1710 (supports_overflow_infinity): Use vrp_val_{min,max}.
1711 (negative_overflow_infinity): Likewise.
1712 (positive_overflow_infinity): Likewise.
1713 (is_negative_overflow_infinity): Use vrp_val_is_{min,max}.
1714 (is_positive_overflow_infinity): Likewise.
1715 (is_overflow_infinity): Likewise.
1716 (avoid_overflow_infinity): Use vrp_val_{min,max} and
1717 vrp_val_is_{min,max}.
1718 (set_and_canonicalize_value_range): Canonicalize anti-ranges
1719 to ranges if possible. Avoid empty ranges.
1721 2008-04-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1724 * fold-const.c (get_pointer_modulus_and_residue): Return modulus 1 if
1725 the expression is a function address.
1727 2008-04-01 George Helffrich <george@gcc.gnu.org>
1729 PR fortran/PR35154, fortran/PR23057
1730 * fortran/trans-common.c (create_common): Add decl to function
1731 chain to preserve identifier scope in debug output.
1733 * dbxout.c: Emit .stabs debug info for Fortran COMMON block
1734 variables as base symbol name + offset using N_BCOMM/N_ECOMM.
1735 (is_fortran, dbxout_common_name, dbxout_common_check): New functions.
1736 (dbxout_symbol_location): Transform N_LCSYM to N_GSYM for storage
1738 (dbxout_syms): Check for COMMON-based symbol and wrap in
1739 N_BCOMM/N_ECOMM stab bracket, including as many symbols as possible
1740 in bracket for efficiency.
1742 * dwarf2out.c: Emit DWARF debug info for Fortran COMMON block
1743 using DW_TAG_common_block + member offset.
1744 (add_pubname_string): New function.
1745 (dw_expand_expr): New function to find block name and offset for
1747 (common_check): New function to check whether symbol in Fortran COMMON.
1748 (gen_variable_die): If COMMON, use DW_TAG_common_block.
1750 * testsuite/gcc.dg/debug/pr35154.c: New test to check that non-Fortran
1751 use of common is unchanged.
1753 * testsuite/lib/gfortran-dg.exp: New harness to compile Fortran progs
1754 with all combinations of debug options available on target.
1755 * testsuite/gfortran.dg/debug/debug.exp: Ditto.
1756 * testsuite/gfortran.dg/debug/trivial.f: Ditto.
1757 * testsuite/gfortran.dg/debug/pr35154-stabs.f: New test case for
1758 .stabs functionality.
1759 * testsuite/gfortran.dg/debug/pr35154-dwarf2.f: New test case for
1760 DWARF functionality.
1762 2008-04-01 Volker Reichelt <v.reichelt@netcologne.de>
1765 * c-format.c (init_dynamic_gfc_info): Ignore invalid locus type.
1767 2008-04-02 Ben Elliston <bje@au.ibm.com>
1769 * config/v850/v850.md (casesi): Remove if (0) code.
1770 * config/i386/uwin.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
1771 * config/alpha/alpha.c (alpha_initialize_trampoline): Likewise.
1773 2008-04-01 Uros Bizjak <ubizjak@gmail.com>
1775 * config/i386/i386.md (rex64suffix): New mode attribute.
1776 (floathi<mode>2): Disable expander for SSE math.
1777 (*floathi<mode>2_1): New insn insn_and_split pattern.
1778 (*floathi<mode>2_i387_with_temp): New macroized instruction pattern and
1779 corresponding post-reload splitters.
1780 (*floathi<mode>2_i387): New macroized insn pattern.
1781 (float<SSEMODEI24:mode><X87MODEF:mode>2): New macroized expander.
1782 (*float<SSEMODEI24:mode><X87MODEF:mode>2_1): New macroized
1783 insn_and_split pattern.
1784 (*floatsi<mode>2_vector_mixed_with_temp, *floatsi<mode>2_vector_mixed):
1785 New macroized instruction patterns and corresponding post-reload
1787 (*floatsi<mode>2_mixed_with_temp): New macroized instruction pattern
1788 and corresponding post-reload splitters.
1789 (*floatsi<mode>2_mixed_interunit, *floatsi<mode>2_mixed_nointerunit):
1790 New macroized instruction patterns.
1791 (*floatsi<mode>2_vector_sse_with_temp, *floatsi<mode>2_vector_sse): New
1792 macroized instruction patterns and corresponding post-reload splitters.
1793 (*floatsi<mode>2_sse_with_temp): New macroized instruction pattern and
1794 corresponding post-reload splitters.
1795 (*floatsi<mode>2_sse_interunit, *floatsi<mode>2_mixed_nointerunit):
1796 New macroized instruction patterns.
1797 (*floatsi<mode>2_i387_with_temp): New macroized instruction pattern and
1798 corresponding post-reload splitters.
1799 (*floatsi<mode>2_i387): New macroized instruction patterns.
1801 2008-04-01 H.J. Lu <hongjiu.lu@intel.com>
1803 * config/i386/i386.md (smaxmin): New.
1804 (umaxmin): Likewise.
1805 (maxminiprefix): Likewise.
1806 (maxminfprefix): Likewise.
1807 (<code><mode>3): Likewise.
1808 (smin<mode>3): Removed.
1809 (smax<mode>3): Likewise.
1811 * config/i386/mmx.md (mmx_<code>v2sf3): New.
1812 (mmx_<code>v4hi3): Likewise.
1813 (mmx_<code>v8qi3): Likewise.
1814 (mmx_smaxv2sf3): Removed.
1815 (mmx_sminv2sf3): Likewise.
1816 (mmx_umaxv8qi3): Likewise.
1817 (mmx_smaxv4hi3): Likewise.
1818 (mmx_uminv8qi3): Likewise.
1819 (mmx_sminv4hi3): Likewise.
1821 * config/i386/sse.md (<addsub><mode>3): New.
1822 (*<addsub><mode>3): Likewise.
1823 (<sse>_vm<addsub><mode>3): Likewise.
1824 (<maxmin><mode>3): Likewise.
1825 (*<maxmin><mode>3_finite): Likewise.
1826 (*<maxmin><mode>3): Likewise.
1827 (<sse>_vm<maxmin><mode>3): Likewise.
1828 (sse3_h<addsub>v4sf3): Likewise.
1829 (sse3_h<addsub>v2df3): Likewise.
1830 (<maxmin>v16qi3): Likewise.
1831 (*<maxmin>v16qi3): Likewise.
1832 (<maxmin>v8hi3): Likewise.
1833 (*<maxmin>v8hi3): Likewise.
1834 (*sse4_1_<maxmin><mode>3): Likewise.
1835 (*sse4_1_<maxmin><mode>3): Likewise.
1836 (add<mode>3): Removed.
1837 (*add<mode>3): Likewise.
1838 (<sse>_vmadd<mode>3): Likewise.
1839 (sub<mode>3): Likewise.
1840 (*sub<mode>3): Likewise.
1841 (<sse>_vmsub<mode>3): Likewise.
1842 (smin<mode>3): Likewise.
1843 (*smin<mode>3_finite): Likewise.
1844 (*smin<mode>3): Likewise.
1845 (<sse>_vmsmin<mode>3): Likewise.
1846 (smax<mode>3): Likewise.
1847 (*smax<mode>3_finite): Likewise.
1848 (*smax<mode>3): Likewise.
1849 (<sse>_vmsmax<mode>3): Likewise.
1850 (sse3_haddv4sf3): Likewise.
1851 (sse3_haddv2df3): Likewise.
1852 (sse3_hsubv4sf3): Likewise.
1853 (sse3_hsubv2df3): Likewise.
1854 (umaxv16qi3): Likewise.
1855 (*umaxv16qi3): Likewise.
1856 (smaxv8hi3): Likewise.
1857 (*smaxv8hi3): Likewise.
1858 (*sse4_1_smax<mode>3): Likewise.
1859 (*sse4_1_umax<mode>3): Likewise.
1860 (uminv16qi3): Likewise.
1861 (*uminv16qi3): Likewise.
1862 (sminv8hi3): Likewise.
1863 (*sminv8hi3): Likewise.
1864 (*sse4_1_smin<mode>3): Likewise.
1865 (*sse4_1_umin<mode>3): Likewise.
1867 2008-04-01 Rafael Espindola <espindola@google.com>
1869 * tree-cfg.c (verify_expr): remove in_phi.
1870 (verify_stmt): Don't call walk_tree with verify_expr. Use
1871 is_gimple_min_invariant instead of is_gimple_val.
1873 2008-04-01 Joseph Myers <joseph@codesourcery.com>
1875 * doc/include/gpl_v3.texi: Update for manpage generation.
1876 * doc/gcc.texi, doc/gccint.texi: Include gpl_v3.texi instead of
1878 * doc/sourcebuild.texi: Document gpl_v3.texi as well as gpl.texi.
1879 * Makefile.in (TEXI_GCC_FILES, TEXI_GCCINT_FILES): Include
1880 gpl_v3.texi instead of gpl.texi.
1883 2008-04-01 Jakub Jelinek <jakub@redhat.com>
1886 * c-pch.c (c_common_read_pch): On error close (fd) resp. fclose (f).
1888 2008-04-01 Rafael Espindola <espindola@google.com>
1890 * tree-vrp.c (extract_code_and_val_from_cond_with_ops): New.
1891 (extract_code_and_val_from_cond): Use
1892 extract_code_and_val_from_cond_with_ops.
1894 2008-04-01 Jan Hubicka <jh@suse.cz>
1896 * function.c (free_after_compilation): Free epilogue_delay_list.
1897 (prepare_function_start): Assert that previous compilation was freed.
1899 2008-04-01 Jan Hubicka <jh@suse.cz>
1900 Jim Wilson <wilson@tuliptree.org>
1901 Andreas Tobler <andreast@gcc.gnu.org>
1904 * m32c/m32.c (m32c_leaf_function_p, m32c_function_needs_enter): Use
1905 rtl.emit instead cfun->emit.
1906 * sparc/sparc.h (INIT_EXPANDERS): Likewise.
1907 * ia64/ia64.h (INIT_EXPANDERS): Likewise.
1909 2008-04-01 Ben Elliston <bje@au.ibm.com>
1911 * doc/c-tree.texi (Function Basics): Fix grammatical error.
1913 2008-03-31 Seongbae Park <seongbae.park@gmail.com>
1915 * common.opt (fprofile-dir=, fprofile-use=, fprofile-generate=):
1917 (fprofile-use): Add var flag_profile_use
1918 * coverage.c (coverage_begin_output): Do not open a gcno file for
1919 output only if -ftest-coverage is set.
1920 Do not add getpwd() to gcda file path.
1921 (build_gcov_info): Check the new flag
1922 flag_profile_datafile_relative_path.
1923 (coverage_init): Use profile_data_prefix.
1924 Read profile counter only if flag_profile_use is set.
1925 * opts.c (common_handle_option): New option fprofile-use=,
1926 fprofile-dir=, fprofile-generate=.
1927 * toplev.c (profile_data_prefix): New variable definition.
1928 * toplev.h (profile_data_prefix): New declaration.
1929 * doc/invoke.tex (Option Summary, Optimization Options):
1932 2008-03-31 James E. Wilson <wilson@tuliptree.org>
1934 * varasm.c (output_constant_pool_1): In LABEL_REF check,
1935 use tmp consistently.
1938 * config/ia64/div.md (recip_approx_rf): Use UNSPEC not DIV.
1939 * config/ia64/ia64.c (rtx_needs_barrier): Handle
1940 UNSPEC_FR_RECIP_APPROX_RES.
1941 * config/ia64/ia64.md (UNSPEC_FR_RECIP_APPROX_RES): Define.
1943 2008-03-31 Volker Reichelt <v.reichelt@netcologne.de>
1946 * c-decl.c (store_parm_decls_oldstyle): Skip invalid parameters.
1948 2008-03-31 Andrew Pinski <andrew_pinski@playstation.sony.com>
1951 * fold-const.c (fold_indirect_ref_1): Support accessing non first
1952 element of the vector via a pointer.
1954 2008-03-31 Ian Lance Taylor <iant@google.com>
1956 * tlink.c (scan_linker_output): Look for symbol name in single quotes.
1958 2008-03-31 Jan Hubicka <jh@suse.cz>
1960 * builtins.c (expand_builtin_setjmp_receiver): Update call of
1961 get_arg_pointer_save_area.
1962 * expr.c (init_expr): Just clear out rtl.expr.
1963 * function.c (free_after_compilation): Clear out whole RTL structure.
1964 (get_func_frame_size): Merge into ...
1965 (get_frame_size): ... this one.
1966 (assign_stack_local_1): Merge into ...
1967 (assign_stack_local): ... this one.
1968 (expand_function_end): Update call of get_arg_pointer_save_area.
1969 (get_art_pointer_save_area): Remove cfun argument.
1970 * function.h (emit_status): regno_pointer_align does not need length
1971 attribute. Move x_regno_reg_rtx to ...
1972 (regno_reg_rtx): ... new global array.
1973 (reg_rtx_no, seq_stack, REGNO_POINTER_ALIGN): Update accestors.
1974 (pending_stack_adjust, inhibit_defer_pop, saveregs_value,
1975 apply_args_value, forced_labels, stack_pointer_delta):
1977 (struct varasm_status): Move here from varasm.c
1978 (struct rtl_data): New. Move here some fields from struct function.
1979 (return_label, naked_return_label, stack_slot_list, parm_birth_insn,
1980 frame_offset, stack_check_probe_note, arg_pointer_save_area,
1981 used_temp_slots avail_temp_slots, temp_slot_level,
1982 nonlocal_goto_handler_labels): Update accesstors.
1983 (rtl): New global variable.
1984 (struct function): Move some fileds to rtl_data.
1985 (get_arg_pointer_save_area): Update prototype.
1986 * emit-rtl.c (rtl): Declare.
1987 (regno_reg_rtx): Declare.
1988 (first_insn, last_insn, cur_insn_uid, last_location, first_label_num):
1990 (gen_reg_rtx): Update.
1991 (init_virtual_regs): Do not tate emit_status argument.
1992 (init_emit): Do not allocate emit.
1993 * varasm.c (varasm_statuc): Move to function.h.
1994 (n_deferred_constatns): Update accestor.
1995 (init_varasm_status): Do not allocate varasm_status.
1996 (force_const_mem, get_pool_size, output_constant_pool): Update.
1997 * stmt.c (force_label_rtx): Do not use x_ prefixes.
1998 (expand_nl_goto_receiver): Update get_arg_pointer_save_area.
2000 2008-03-31 Zdenek Dvorak <ook@ucw.cz>
2002 PR rtl-optimization/35729
2003 * loop-invariant.c (check_maybe_invariant): Disallow volatile memory
2006 2008-03-31 H.J. Lu <hongjiu.lu@intel.com>
2009 * config/i386/i386.md (*movti_internal): Emit unaligned SSE
2010 load/store if memory is unaligned.
2011 (*movti_rex64): Likewise.
2013 * config/i386/predicates.md (misaligned_operand): New.
2015 2008-03-31 Andrew Pinski <pinskia@gmail.com>
2018 * tree-ssa-phiopt.c (conditional_replacement): Return early for
2021 2008-03-31 Jan Beulich <jbeulich@novell.com>
2023 * config/ia64/constraints.md: Add 'j' constraint.
2024 * config/ia64/ia64.md (movsi_internal): Add addp4 case.
2025 (movdi_internal): Likewise.
2027 2008-03-30 Volker Reichelt <v.reichelt@netcologne.de>
2030 * c-typeck.c (build_c_cast): Skip invalid fields in unions.
2032 2008-03-30 H.J. Lu <hongjiu.lu@intel.com>
2035 * config/i386/i386.c (ix86_expand_sse_4_operands_builtin): Issue
2036 proper error message for the third argument on blendpd and
2039 * config/i386/sse.md (blendbits): New.
2040 (sse4_1_blendp<ssemodesuffixf2c>): Use it.
2042 2008-03-30 Eric Botcazou <ebotcazou@adacore.com>
2044 * fold-const.c (fold_binary) <BIT_IOR_EXPR>: Add missing conversions.
2046 2008-03-30 Richard Guenther <rguenther@suse.de>
2049 * fold-const.c (fold_sign_changed_comparison): Do leave
2050 conversions to base-types alone.
2052 2008-03-29 Andrew Pinski <andrew_pinski@playstation.sony.com>
2054 * config/rs6000/rs6000.c (rs6000_stack_info): Don't force saving of
2055 the link register if one altivec register is be saved.
2057 2008-03-30 Ben Elliston <bje@au.ibm.com>
2059 * final.c (final_scan_insn): Remove if (0) code.
2061 2008-03-28 Volker Reichelt <v.reichelt@netcologne.de>
2063 * c-parser.c (c_parser_next_token_is_keyword): Simplify.
2065 2008-03-28 H.J. Lu <hongjiu.lu@intel.com>
2067 * config/i386/sse.md (*and<mode>3): Pass <MODE>mode instead
2068 of V4SFmode to ix86_binary_operator_ok.
2070 2008-03-28 Uros Bizjak <ubizjak@gmail.com>
2072 * config/i386/i386.c (override_options): Initialize
2073 ix86_veclib_handler to ix86_veclibabi_svml when
2074 -mveclibabi=svml is used.
2075 (ix86_veclibabi_svml): New function for SVML ABI style
2076 vectorization support.
2077 * doc/invoke.texi (-mveclibabi) [svml]: Document new target option.
2079 2008-03-28 Rafael Espindola <espindola@google.com>
2081 * fold-const.c (tree_unary_nonnegative_warnv_p): Make it public.
2082 (tree_binary_nonnegative_warnv_p): Make it public.
2083 (tree_single_nonnegative_warnv_p): Make it public.
2084 (tree_invalid_nonnegative_warnv_p): Make it public.
2085 (tree_unary_nonzero_warnv_p): Make it public.
2086 (tree_binary_nonzero_warnv_p): Make it public
2087 (tree_single_nonzero_warnv_p): Make it public.
2088 * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops): New function.
2089 (extract_range_from_binary_expr): Split the expr argument.
2090 (extract_range_from_unary_expr): Split the expr argument.
2091 (extract_range_from_comparison): Split the expr argument.
2092 (extract_range_from_expr): Use the new aux functions.
2093 (vrp_evaluate_conditional_warnv): Use
2094 vrp_evaluate_conditional_warnv_with_ops.
2095 * tree.h (tree_unary_nonzero_warnv_p): Declare.
2096 (tree_binary_nonzero_warnv_p): Declare.
2097 (tree_single_nonzero_warnv_p): Declare.
2098 (tree_expr_nonzero_warnv_p): Declare.
2099 (tree_unary_nonnegative_warnv_p): Declare.
2100 (tree_binary_nonnegative_warnv_p): Declare.
2101 (tree_single_nonnegative_warnv_p): Declare.
2102 (tree_invalid_nonnegative_warnv_p): Declare.
2104 2008-03-28 Richard Guenther <rguenther@suse.de>
2106 PR tree-optimization/30317
2107 PR tree-optimization/30911
2108 PR tree-optimization/34793
2109 * tree-vrp.c (set_and_canonicalize_value_range): New function.
2110 (struct assert_locus_d): New member EXPR.
2111 (register_new_assert_for): Add EXPR parameter to support
2112 ASSERT_EXPR <name, expr OP limit>.
2113 (register_edge_assert_for_1): Adjust callers.
2114 (find_assert_locations): Likewise.
2115 (process_assert_insertions_for): Build condition from expression.
2116 (extract_range_from_assert): Handle ASSERT_EXPRs
2117 of the form ASSERT_EXPR <name, expr OP limit>.
2118 (register_edge_assert_for_2): New helper registering
2119 asserts for comparisons. Recognize range tests of the form
2120 (unsigned)i - CST1 OP CST2.
2121 (register_edge_assert_for_1): Use it.
2122 (register_edge_assert_for): Likewise.
2123 (needs_overflow_infinity): Integer sub-types
2124 do not need overflow infinities.
2125 (vrp_val_is_max): The extreme values of integer sub-types
2126 are those of the base type.
2127 (vrp_val_is_min): Likewise.
2128 * tree.def (ASSERT_EXPR): Document extra allowed conditional
2131 2008-03-28 Nick Clifton <nickc@redhat.com>
2134 * config/mn10300/mn10300.c (mn10300_secondary_reload_class):
2135 Return GENERAL_REGS for stack adjustment reloads.
2137 2008-03-28 Andrew Pinski <andrew_pinski@playstation.sony.com>
2140 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Create a
2141 const_vector when all the vectors are constant.
2143 2008-03-27 Bob Wilson <bob.wilson@acm.org>
2145 * config/xtensa/xtensa.c (gen_float_relational): Handle unordered
2147 * config/xtensa/xtensa.md (any_cond): Add unordered comparisons.
2148 (any_scc_sf): Add uneq, unlt, unle and unordered operators.
2150 (s<code>_sf): Use new scc_sf attribute for opcode names.
2152 2008-03-27 Tom Tromey <tromey@redhat.com>
2154 * doc/sourcebuild.texi, doc/install.texi, configure, aclocal.m4,
2155 configure.ac, Makefile.in, config/t-darwin, config/m32c/t-m32c,
2156 config/spu/t-spu-elf, config/i386/t-interix,
2157 config/i386/t-cygming, config/i386/x-i386, config/i386/t-cygwin,
2158 config/i386/x-darwin, config/i386/x-mingw32,
2159 config/i386/t-netware, config/i386/x-cygwin, config/i386/t-nwld,
2160 config/sh/t-sh, config/sh/t-symbian, config/x-linux,
2161 config/t-sol2, config/x-hpux, config/x-darwin, config/ia64/t-ia64,
2162 config/x-solaris, config/t-vxworks, config/m68k/t-uclinux,
2163 config/rs6000/x-rs6000, config/rs6000/x-darwin64,
2164 config/rs6000/x-darwin, config/rs6000/t-rs6000,
2165 config/score/t-score-elf, config/arm/t-strongarm-pe,
2166 config/arm/t-pe, config/arm/t-arm, config/arm/t-wince-pe,
2167 config/v850/t-v850, config/v850/t-v850e, config/bfin/t-bfin-linux:
2168 Revert automatic dependency patch.
2170 2008-03-27 H.J. Lu <hongjiu.lu@intel.com>
2173 * config/i386/i386.c (ix86_function_arg_boundary): Align
2174 decimal floating point to its natural boundary.
2176 2008-03-27 Richard Guenther <rguenther@suse.de>
2179 * fold-const.c (fold_comparison): Restrict distinct decl
2180 comparison folding to VAR_DECLs and PARM_DECLs. Do not
2181 solely rely on operand_equal_p.
2183 2008-03-27 Richard Guenther <rguenther@suse.de>
2186 * c-common.c (handle_weak_attribute): Reject combination of
2189 2008-03-27 Richard Guenther <rguenther@suse.de>
2191 PR tree-optimization/32810
2192 * tree-ssa-ccp.c (get_symbol_constant_value): Strip useless
2193 conversions from DECL_INITIAL.
2194 (fold_const_aggregate_ref): Likewise from constructor elements.
2196 2008-03-27 Zdenek Dvorak <ook@ucw.cz>
2198 * tree-affine.h (aff_combination_expand): Declare.
2199 (get_inner_reference_aff): Likewise.
2200 * tree-affine.c (aff_combination_expand): Split out from
2201 tree_to_aff_combination_expand.
2202 (get_inner_reference_aff): New function.
2203 * tree-parloops.c (loop_parallel_p): Free vectorizer info.
2204 * tree-ssa-loop-im.c: Include tree-affine.h and pointer-set.h.
2205 (struct lim_aux_data): sm_done field removed.
2206 (mem_ref_loc_p, mem_ref_locs_p): New types.
2207 (struct mem_ref): Added id, stored, accesses_in_loop,
2208 indep_loop, dep_loop, indep_ref, dep_ref fields.
2209 Removed is_stored, locs and next fields.
2210 (memory_accesses): New variable.
2211 (movement_possibility): Do not allow moving statements
2212 that store to memory.
2213 (outermost_indep_loop, simple_mem_ref_in_stmt, mem_ref_in_stmt):
2215 (determine_max_movement): For statements with memory references,
2216 find the outermost loop in that the reference is independent.
2217 (move_computations_stmt): Mark the virtual operands for renaming.
2218 (memref_free, mem_ref_alloc, mem_ref_locs_alloc, mark_ref_stored,
2219 gather_mem_refs_stmt, gather_mem_refs_in_loops, vtoe_hash, vtoe_eq,
2220 vtoe_free, record_vop_access, get_vop_accesses, get_vop_stores,
2221 add_vop_ref_mapping, create_vop_ref_mapping_loop,
2222 create_vop_ref_mapping, analyze_memory_references,
2223 cannot_overlap_p, mem_refs_may_alias_p, rewrite_mem_ref_loc,
2224 get_all_locs_in_loop, ref_always_accessed_p,
2225 refs_independent_p, record_indep_loop, ref_indep_loop_p_1,
2226 ref_indep_loop_p, can_sm_ref_p, find_refs_for_sm,
2227 store_motion_loop, store_motion): New functions.
2228 (struct vop_to_refs_elt): New type.
2229 (record_mem_ref_loc, free_mem_ref_locs, rewrite_mem_refs,
2230 memref_hash, memref_eq, hoist_memory_references): Rewritten.
2231 (schedule_sm): Replaced by...
2232 (execute_sm): ... this.
2233 (determine_lsm_ref, hoist_memory_references,
2234 loop_suitable_for_sm, gather_mem_refs_stmt, gather_mem_refs,
2235 find_more_ref_vops, free_mem_ref, free_mem_refs,
2236 determine_lsm_loop, determine_lsm): Removed.
2237 (tree_ssa_lim_finalize): Free data structures used by store motion.
2238 (tree_ssa_lim): Call analyze_memory_references. Use
2239 store_motion instead of determine_lsm.
2241 2008-03-27 Paolo Bonzini <bonzini@gnu.org>
2243 * config.cc (m68hc11, m6811, m68hc12, m6812): Add usegas.h,
2244 rename tmake_file to m68hc11/t-m68hc11.
2245 (mcore): Set inhibit_libc to true.
2246 * config.host (alpha*-dec-*vms*): Set extra_programs.
2247 (interix3*): Don't use host_xmake_file.
2248 * configure.ac: Let config.gcc override inhibit_libc.
2249 * configure: Regenerate.
2251 * config/alpha/x-vms (EXTRA_PROGRAMS): Remove.
2252 * config/t-openbsd-thread: Remove commented out lines.
2254 * config/x-interix: Remove.
2256 * config/m68hc11/t-m68hc11-gas: Rename to...
2257 * config/m68hc11/t-m68hc11: ... this. Remove T_CPPFLAGS.
2259 * config/mcore/t-mcore: Remove T_CFLAGS.
2260 * config/mcore/t-mcore-pe: Likewise.
2262 2008-03-27 Paolo Bonzini <bonzini@gnu.org>
2264 * configure.ac: Replace custom __GNU_SOURCE test with
2265 AC_USE_SYSTEM_EXTENSIONS. Move it earlier.
2266 * aclocal.m4: Regenerate.
2267 * configure: Regenerate.
2268 * config.in: Regenerate.
2270 2008-03-27 Richard Guenther <rguenther@suse.de>
2272 * fold-const.c (target.h): Include.
2273 (fold_comparison): Fold comparison of addresses of decls
2274 that bind locally or of constants. Consolidate address folding code.
2275 * tree-vrp.c (operand_less_p): Deal with non-INTEGER_CST
2276 results from fold_binary_to_constant.
2277 (compare_values_warnv): Likewise.
2279 2008-03-27 Andrew Pinski <pinskia@gmail.com>
2282 * fold-const.c (fold_truthop): Check for integeral types when folding
2283 a == 0 && b == 0 and a != 0 || b != 0 .
2285 2008-03-26 Eric Botcazou <ebotcazou@adacore.com>
2287 * tree.c (get_unwidened): Remove code fiddling with COMPONENT_REF.
2289 2008-03-26 Andreas Schwab <schwab@suse.de>
2291 * doc/invoke.texi: Fix use of @item vs. @itemx.
2293 2008-03-26 Tom Tromey <tromey@redhat.com>
2295 * Makefile.in (build/gensupport.o, build/print-rtl.o,
2296 build/read-rtl.o, build/rtl.o, build/gencondmd.o, build/genattr.o,
2297 build/genattrtab.o, build/genautomata.o, build/gencheck.o,
2298 build/gencodes.o, build/genconditions.o, build/genconfig.o,
2299 build/genconstants.o, build/genemit.o, build/genextract.o,
2300 build/genflags.o, build/genmddeps.o, build/genopinit.o,
2301 build/genoutput.o, build/genpeep.o, build/genrecog.o): Depend on
2304 2008-03-26 Richard Guenther <rguenther@suse.de>
2307 2008-03-26 Richard Guenther <rguenther@suse.de>
2309 * fold-const.c (target.h): Include.
2310 (fold_comparison): Fold comparison of addresses of two decls
2311 that bind locally. Consolidate address folding code.
2313 2008-03-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2315 * builtins.c (expand_builtin_pow, fold_builtin_cabs,
2316 fold_builtin_sqrt, fold_builtin_cbrt, fold_builtin_logarithm,
2317 fold_builtin_hypot, fold_builtin_pow): Remove uses of dconst3,
2318 dconstsqrt2, dconstthird, dconste and/or dconst10.
2319 * config/i386/i386.c (ix86_emit_swsqrtsf): Likewise.
2320 * emit-rtl.c (dconst3, dconst10, dconstm2, dconstthird,
2321 dconstsqrt2, dconste): Delete.
2322 (init_emit_once): Likewise. Simplify initializing dconstm1.
2324 * real.c (get_real_const): New.
2325 * real.h (dconst3, dconst10, dconstm2, dconstthird,
2326 dconstsqrt2, dconste): Delete.
2327 (real_value_const, get_real_const): New.
2329 2008-03-26 H.J. Lu <hongjiu.lu@intel.com>
2331 * config/i386/cygming.h (BIGGEST_ALIGNMENT): Removed.
2333 * config/i386/i386.c (ix86_function_arg_boundary): Check
2334 BIGGEST_ALIGNMENT instead of 128.
2335 (setup_incoming_varargs_64): Likewise.
2337 2008-03-26 Tom Tromey <tromey@redhat.com>
2339 * Makefile.in (DEPFILES): Add missing '/'.
2341 2008-03-26 Richard Guenther <rguenther@suse.de>
2343 * fold-const.c (target.h): Include.
2344 (fold_comparison): Fold comparison of addresses of two decls
2345 that bind locally. Consolidate address folding code.
2347 2008-03-26 Nick Clifton <nickc@redhat.com>
2350 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p): Do
2351 not allow INT+INT as a legitimate addressing mode.
2353 2008-03-26 Richard Guenther <rguenther@suse.de>
2355 * tree-flow.h (widen_bitfield): Remove declaration.
2356 * tree-ssa-ccp.c (visit_assignment): Remove unneeded code.
2357 (widen_bitfield): Remove function.
2358 * tree-ssa-dom.c (record_equivalences_from_stmt): Remove unneeded
2361 2008-03-25 Andrew Pinski <andrew_pinski@playstation.sony.com>
2364 * config/rs6000/rs6000-c.c (rs6000_builtin_type_compatible): Handle
2367 2008-03-25 Richard Sandiford <rsandifo@nildram.co.uk>
2369 PR rtl-optimization/35232
2370 * reload1.c (reg_reloaded_call_part_clobbered): Clarify comment.
2371 (forget_old_reloads_1, forget_marked_reloads): Don't clear
2372 reg_reloaded_call_part_clobbered here.
2373 (reload_regs_reach_end_p): New function.
2374 (reload_reg_rtx_for_input): New variable.
2375 (reload_reg_rtx_for_output): Likewise.
2376 (emit_input_reload_insns): Use reloadreg rather than rl->reg_rtx
2377 when reassigning a pseudo register. Load reloadreg from
2378 reload_reg_rtx_for_input, moving the mode and register
2380 (do_input_reload): ...here. Use the mode-adjusted reg_rtx
2381 instead of the original when deciding whether an input reload
2382 would be a no-op or whether an output reload can be deleted.
2383 (emit_output_reload_insns): Use the mode-adjusted reg_rtx
2384 when setting up new_spill_reg_store. Load it from
2385 reload_reg_rtx_for_output, moving the mode and register
2387 (do_output_reload): ...here. Use the mode-adjusted reg_rtx
2388 instead of the original when deciding whether an output reload
2389 would be a no-op. Do the same when modifying insn notes.
2390 Use rtx_equal_p instead of == to compare the registers.
2391 (inherit_piecemeal_p): Take a mode and two register numbers
2393 (emit_reload_insns): Clear new_spill_reg_store for every hard
2394 register in the reload register. Remove spill registers
2395 from reg_reloaded_valid before considering whether to record
2396 inheritance information for them. Use reload_reg_rtx_for_output
2397 instead of reg_rtx when recording output reloads. Use
2398 reload_reg_rtx_for_input instead of reg_rtx when recording
2399 input reloads. Set or clear reg_reloaded_call_part_clobbered
2400 at the same time as setting reg_reloaded_valid.
2401 (delete_output_reload): Add a new_reload_reg parameter and use it
2402 instead of rld[j].reg_rtx.
2403 (emit_input_reload_insns, do_input_reload, do_output_reload): Adjust
2406 2008-03-25 Tom Tromey <tromey@redhat.com>
2408 * Makefile.in (build/gensupport.o): Depend on insn-modes.h.
2409 (build/genattr.o): Likewise.
2410 (build/genattrtab.o): Likewise.
2411 (build/gencodes.o): Likewise.
2412 (build/genconfig.o): Likewise.
2413 (build/genconstants.o): Likewise.
2414 (build/genemit.o): Likewise.
2415 (build/genextract.o): Likewise.
2416 (build/genflags.o): Likewise.
2418 2008-03-25 Bob Wilson <bob.wilson@acm.org>
2420 * config/xtensa/xtensa.c (xtensa_va_start): Use build_int_cst
2421 instead of size_int for integer types.
2422 (xtensa_gimplify_va_arg_expr): Likewise. Convert index to sizetype
2423 to match type of MINUS_EXPR.
2425 2008-03-25 Tom Tromey <tromey@redhat.com>
2427 * configure: Rebuilt.
2428 * configure.ac (BUILD_DEPMODE): Extract CCDEPMODE from temporary
2431 2008-03-25 Tom Tromey <tromey@redhat.com>
2433 * config/x-solaris (host-solaris.o): Update.
2434 * config/x-linux (host-linux.o): Update.
2435 * config/x-hpux (host-hpux.o): Update.
2436 * config/x-darwin (host-darwin.o): Update.
2437 * config/v850/t-v850e (v850-c.o): Update.
2438 * config/v850/t-v850 (v850-c.o): Update.
2439 * config/t-vxworks (vxworks.o): Update.
2440 * config/t-sol2 (sol2-c.o, sol2.o): Update.
2441 * config/t-darwin (darwin.o, darwin-c.o, darwin-driver.o): Update.
2442 * config/spu/t-spu-elf (spu-c.o): Update.
2444 * config/sh/t-symbian (sh-c.o): Update.
2445 (symbian.o): Update.
2446 * config/sh/t-sh (sh-c.o): Update.
2447 * config/score/t-score-elf (score7.o, score3.o): Update.
2448 * config/rs6000/x-rs6000 (driver-rs6000.o): Update.
2449 * config/rs6000/x-darwin64 (host-ppc64-darwin.o): Update.
2450 * config/rs6000/x-darwin (host-ppc-darwin.o): Update.
2451 * config/rs6000/t-rs6000 (rs6000-c.o): Update.
2453 * config/m68k/t-uclinux (generated_files): Add sysroot-suffix.h.
2454 * config/m32c/t-m32c (m32c-pragma.o): Update.
2455 * config/ia64/t-ia64 (ia64-c.o): Update.
2456 * config/i386/x-mingw32 (host-mingw32.o): Update.
2457 * config/i386/x-i386 (driver-i386.o): Update.
2458 * config/i386/x-darwin (host-i386-darwin.o): Update.
2459 * config/i386/x-cygwin (host-cygwin.o): Update.
2460 * config/i386/t-nwld (nwld.o): Update.
2461 * config/i386/t-netware (netware.o): Update.
2462 * config/i386/t-interix (winnt.o): Update.
2463 * config/i386/t-cygwin (cygwin1.o, cygwin2.o): Update.
2464 * config/i386/t-cygming (winnt.o, winnt-cxx.o, winnt-stubs.o,
2465 msformat-c.o): Update.
2466 * config/bfin/t-bfin-linux (generated_files): Add
2467 linux-sysroot-suffix.h.
2468 * config/arm/t-wince-pe (pe.o): Update.
2469 * config/arm/t-strongarm-pe (pe.o): Update.
2470 * config/arm/t-pe (pe.o): Update.
2471 * config/arm/t-arm (arm-c.o): Update.
2472 * doc/install.texi (Prerequisites): Require make 3.80.
2473 * Makefile.in: Remove .o targets.
2474 (CCDEPMODE, DEPDIR, depcomp, BUILD_DEPMODE): New variables.
2475 (OBSTACK_H, FIBHEAP_H, PARTITION_H, MD5_H, BCONFIG_H): Remove.
2476 (simple_generated_h, simple_generated_c): Move earlier.
2477 (generated_files): New variable.
2478 (TARGET_H, MACHMODE_H, HOOKS_H, HOSTHOOKS_DEF_H, LANGHOOKS_DEF_H,
2479 TARGET_DEF_H, RTL_BASE_H, RTL_H, PARAMS_H, BUILTINS_DEF, TREE_H,
2480 BASIC_BLOCK_H, GCOV_IO_H, COVERAGE_H, DEMANGLE_H, RECOG_H,
2481 ALIAS_H, EMIT_RTL_H, FLAGS_H, FUNCTION_H, EXPR_H, OPTABS_H,
2482 REGS_H, RA_H, RESOURCE_H, SCHED_INT_H, INTEGRATE_H, CFGLAYOUT_H,
2483 CFGLOOP_H, IPA_UTILS_H, IPA_REFERENCE_H, IPA_TYPE_ESCAPE_H,
2484 CGRAPH_H, DF_H, RESOURCE_H, DDG_H, GCC_H, GGC_H, TIMEVAR_H,
2485 INSN_ATTR_H, C_COMMON_H, C_PRAGMA_H, C_TREE_H, SYSTEM_H,
2486 PREDICT_H, DECNUM_H, MKDEPS_H, SYMTAB_H, TREE_DUMP_H,
2487 TREE_GIMPLE_H, TREE_FLOW_H, TREE_SSA_LIVE_H, PRETTY_PRINT_H,
2488 DIAGNOSTIC_H, C_PRETTY_PRINT_H, SCEV_H, LAMBDA_H, TREE_DATA_REF_H,
2489 VARRAY_H, TREE_INLINE_H, REAL_H, DBGCNT_H, EBIMAP_H): Remove.
2491 (COMPILE.base, COMPILE): New variables.
2492 (%.o): New pattern rule.
2493 (ALL_HOST_OBJS): New variable.
2494 (xgcc$(exeext), cpp$(exeext)): Remove extra version.o.
2495 (dummy-checksum.o, cc1-checksum.o): Remove.
2496 (DRIVER_SHLIB): New variable.
2497 (DRIVER_DEFINES): Use it.
2498 (gencondmd.c): Move out of build/.
2499 (s-conditions): Update.
2500 (BUILDCOMPILE.base, BUILDCOMPILE): New variables.
2501 (ALL_BUILD_OBJS): Likewise.
2502 (build/%.o): Use BUILDCOMPILE.
2503 (build/ggc-none.o, build/ggc-none.o, build/min-insn-modes.o,
2504 build/print-rtl.o, build/read-rtl.o, build/rtl.o, build/vec.o,
2505 build/gencondmd.o, build/genattrtab.o, build/genautomata.o,
2506 build/gencheck.o, build/gencodes.o, build/genconditions.o,
2507 build/genconfig.o, build/genconstants.o, build/genemit.o,
2508 build/genextract.o, build/genflags.o, build/genmddeps.o,
2509 build/genopinit.o, build/genoutput.o, build/genpeep.o,
2510 build/genpreds.o, build/genrecog.o, build/gcov-iov.o,
2511 build/gen-protos.o, build/scan.o, build/fix-header.o,
2512 build/scan-decls.o): Simplify.
2513 (collect2.o, c-opts.o, gcc.o, gccspec.o, gcc-options.o,
2514 cppdefault.o, protoize.o, unprotoize.o, intl.o, version.o,
2515 prefix.o, toplev.o): Reduce to variable setting.
2516 (libbackend.o): Use COMPILE. Remove most dependencies. Move later.
2517 ($(out_object_file), gcc-options.o): New targets.
2518 ($(ALL_HOST_OBJS)): New target. Include dependency files.
2519 * configure: Rebuilt.
2520 * configure.ac: Call ZW_CREATE_DEPDIR, ZW_PROG_COMPILER_DEPENDENCIES.
2521 * doc/sourcebuild.texi (Front End Directory): Document new variable.
2523 2008-03-25 Douglas Gregor <doug.gregor@gmail.com>
2525 * c-common.c (c_sizeof_or_alignof_type): If we're not allowed to
2526 complain when we hit an error, return ERROR_MARK_NODE.
2528 2008-03-25 Naveen.H.S <naveen.hs@kpitcummins.com>
2530 * config/sh/constraints.md (Pso, Psz): New constraints.
2531 * config/sh/sh.c (print_operand): Add %V and %W operand codes.
2532 * config/sh/sh.md (*andsi3_bclr, *iorsi3_bset): New insns.
2534 2008-03-25 Naveen.H.S <naveen.hs@kpitcummins.com>
2536 * config/sh/sh.c (sh_expand_t_scc): Emit movrt for SH2A if possible.
2537 * config/sh/sh.md (xorsi3_movrt, movrt): New insns.
2539 2008-03-25 Naveen.H.S <naveen.hs@kpitcummins.com>
2541 * config/sh/sh.md (prefetch): Add condition for SH2A target.
2542 (prefetch_sh2a): New.
2544 2008-03-25 Jayant Sonar <Jayant.sonar@kpitcummins.com>
2545 Naveen.H.S <naveen.hs@kpitcummins.com>
2547 * config/sh/constraints.md (I28): New constraint.
2548 * config/sh/sh.c (broken_move): Add support for movi20s.
2549 * config/sh/sh.md (movsi_ie): Add the alternative for movi20s.
2551 2008-03-25 Anil Paranjape <anil.paranjape@kpitcummins.com>
2552 Jayant Sonar <Jayant.sonar@kpitcummins.com>
2553 Naveen.H.S <naveen.hs@kpitcummins.com>
2555 * config/sh/sh.c (SH_ATTRIBUTES): Define.
2556 (SYMBOL_FLAG_FUNCVEC_FUNCTION): Define.
2557 (print_operand): Handle resbank in %@ operand code.
2558 (sh_encode_section_info): New.
2559 (push_regs): Add conditions for resbank.
2560 (sh_expand_epilogue): Likewise.
2561 (sh_insert_attributes): Likewise.
2562 (sh_attribute_table): Likewise.
2563 (sh_handle_resbank_handler_attribute): New.
2564 (sh2a_handle_function_vector_handler_attribute): New.
2565 (sh2a_is_function_vector_call): New.
2566 (sh2a_get_function_vector_number): New.
2567 (sh2a_function_vector_p): New.
2568 (sh_cfun_resbank_handler_p): New.
2569 * config/sh/sh.md (calli): Emit jsr/n if possible.
2570 (calli_tbr_rel): New.
2571 (calli_pcrel): Emit jsr/n if possible.
2572 (return_i): Emit rts/n if possible.
2573 (call_valuei_tbr_rel): New.
2574 (call_valuei_pcrel): Add condition for SH2A target.
2575 (call_value): Likewise.
2576 * config/sh/sh-protos.h (sh_cfun_resbank_handler_p): Declare.
2577 (sh2a_get_function_vector_number): Likewise.
2578 (sh2a_is_function_vector_call): Likewise.
2579 * doc/extend.texi: Document TBR relative addressing of SH2A.
2580 (resbank): Add description for SH2A.
2582 2008-03-24 Richard Guenther <rguenther@suse.de>
2585 * gimplify.c (gimplify_modify_expr): For frontend type-correct
2586 pointer assignments change conversions according to middle-end rules.
2587 (gimplify_modify_expr_rhs): Deal with NULL TARGET_EXPR_INITIAL.
2588 * configure.ac: Include type checking in yes.
2589 * configure: Regenerate.
2591 2008-03-24 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
2593 * diagnostic.c (diagnostic_count_diagnostic): Delete.
2594 (diagnostic_report_diagnostic): Update. Handle ICEs here.
2596 2008-03-24 Nathan Sidwell <nathan@codesourcery.com>
2598 * gthr-vxworks.h (UNUSED): Define.
2600 2008-03-23 H.J. Lu <hongjiu.lu@intel.com>
2602 * config/i386/i386.h (STATIC_CHAIN_REGNUM): Use R10_REG and CX_REG.
2604 2008-03-23 Zuxy Meng <zuxy.meng@gmail.com>
2606 * doc/extend.texi (Function Attributes): Add missing comma in the
2607 example of the "alloc_size" attribute.
2609 2008-03-23 Uros Bizjak <ubizjak@gmail.com>
2612 2008-03-05 H.J. Lu <hongjiu.lu@intel.com>
2614 * config/i386/i386-modes.def: Use 4 byte alignment on DI for
2617 2008-03-19 Uros Bizjak <ubizjak@gmail.com>
2620 * stor-layout.c (update_alignment_for_field): Set minimum alignment
2621 of the underlying type of a MS bitfield layout to the natural
2622 alignment of the type.
2624 2008-03-22 Uros Bizjak <ubizjak@gmail.com>
2626 * config/i386/i386.c (assign_386_stack_local): Align DImode slots
2627 to their natural alignment to avoid store forwarding stalls.
2629 2008-03-22 Richard Guenther <rguenther@suse.de>
2631 * tree-cfg.c (verify_expr): Recurse again for invariant addresses.
2632 For PHI nodes verify the address is invariant.
2633 * tree-ssa-ccp.c (ccp_decl_initial_min_invariant): Remove.
2634 (get_symbol_constant_value): Use is_gimple_min_invariant.
2635 (maybe_fold_stmt_indirect): Likewise.
2637 2008-03-22 Richard Sandiford <rsandifo@nildram.co.uk>
2639 PR rtl-optimization/33927
2640 * Makefile.in (dse.o): Depend on $(TM_P_H).
2641 * expr.h (extract_low_bits): Declare.
2642 * expmed.c (extract_low_bits): New function.
2643 * rtlhooks.c (gen_lowpart_general): Generalize SUBREG handling.
2644 * dse.c: Include tm_p.h.
2645 (find_shift_sequence): Remove the read_reg argument and return the
2646 read value. Emit the instructions instead of returning them.
2647 Iterate on new_mode rather than calculating it each time.
2648 Check MODES_TIEABLE_P. Use simplify_gen_subreg to convert the
2649 source to NEW_MODE and extract_low_bits to convert the shifted
2651 (replace_read): Allow the load and store to have different mode
2652 classes. Use extract_low_bits when SHIFT == 0. Create the shift
2653 or extraction instructions before trying the replacement. Update
2654 dump-file code accordingly, avoiding use of REGNO (store_info->rhs).
2656 2008-03-22 Uros Bizjak <ubizjak@gmail.com>
2658 * config/i386/i386.c (assign_386_stack_local): Align DImode slots
2659 to their natural alignment to avoid store forwarding stalls.
2661 2008-03-21 Andrew Pinski <andrew_pinski@playstation.sony.com>
2664 * config/rs6000/rs6000.md (floatdidf2): Discouraging fprs and
2665 encouraging but not allowing gprs for input;
2666 change the input constraint to !f#r.
2667 (fix_truncdfdi2): Discouraging fprs and encouraging but not allowing
2669 change the output constraint to !f#r.
2671 2008-03-21 Uros Bizjak <ubizjak@gmail.com>
2674 * config/i386/i386.md ("*floatunssi<mode2>_1"): New pattern with
2675 corresponding post-reload splitters.
2676 ("floatunssi<mode>2"): Expand to unsigned_float x87 insn pattern
2677 when x87 FP math is selected.
2678 * config/i386/i386-protos.h (ix86_expand_convert_uns_sixf_sse):
2679 New function prototype.
2680 * config/i386/i386.c (ix86_expand_convert_uns_sixf_sse): New
2681 unreachable function to ease macroization of insn patterns.
2683 2008-03-21 Martin Jambor <mjambor@suse.cz>
2685 * tree-data-ref.c (dump_data_dependence_relation): Avoid data
2686 reference dumps if ddr is NULL or dependence is unknown.
2688 2008-03-20 Kaz Kojima <kkojima@gcc.gnu.org>
2690 * config/sh/linux-atomic.asm (ATOMIC_TEST_AND_SET): Take
2691 unsigned extension into account.
2692 (ATOMIC_COMPARE_AND_SWAP): Likewise.
2693 (ATOMIC_FETCH_AND_OP, ATOMIC_FETCH_AND_COMBOP): Likewise.
2694 Do computations on a scratch register.
2696 2008-03-21 Richard Guenther <rguenther@suse.de>
2698 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
2699 Use is_gimple_min_invariant instead of TREE_INVARIANT.
2700 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Likewise.
2701 * tree-ssa-dom.c (record_equality): Likewise.
2702 * tree-inline.c (copy_body_r): Likewise.
2703 * tree-ssa-pre.c (make_values_for_stmt): Remove test for
2706 2008-03-20 Kaz Kojima <kkojima@gcc.gnu.org>
2708 * config/sh/sh.c (split_branches): Pass zero to redirect_jump
2709 as 'delete_unused' argument.
2711 2008-03-20 Richard Guenther <rguenther@suse.de>
2713 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Remove
2714 special casing of constant qualifiers.
2715 * tree-ssa.c (useless_type_conversion_p_1): Instead do not
2716 care about them in general.
2717 * tree-ssa-ccp.c (ccp_fold): Addresses are constant or not
2718 regardless of their type.
2719 (fold_stmt_r): Forcefully fold *& if we end up with that.
2721 2008-03-20 Paul Brook <paul@codesourcery.com>
2723 * config.gcc (arm*-*-uclinux*): Remove duplicate arm/uclinux-elf.h.
2724 * config/arm/uclinux-eabi.h (SUBTARGET_EXTRA_LINK_SPEC): Add extra
2726 * config/arm/bpabi.h (SUBTARGET_EXTRA_LINK_SPEC): Provide default
2728 (LINK_SPEC): Use SUBTARGET_EXTRA_LINK_SPEC.
2729 * config/arm/unwind-arm.h (_Unwind_decode_target2): Add uClinux.
2731 2008-03-20 Volker Reichelt <v.reichelt@netcologne.de>
2733 * common.opt (Wmudflap): New option.
2734 * tree-mudflap.c (mf_xform_derefs_1): Guard warning by OPT_Wmudflap.
2735 (mx_register_decls): Likewise.
2736 (mudflap_finish_file): Likewise.
2737 * doc/invoke.texi: Document -Wno-mudflap.
2739 2008-03-20 Kai Tietz <kai.tietz@onevision.com>
2741 * c-format.c (replace_format_name_to_system_name): New.
2743 (convert_format_name_to_system_name): New.
2744 (decode_format_attr): Add use of convert_format_name_to_system_name.
2745 (format_types_orig): Add gnu_ prefix to names.
2746 (check_format_info_main): Special treating of \0 escaped names for
2747 supporting multi-character format specifiers as I32, I64.
2748 (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): Use of user defined attributes.
2749 (gnu_target_overrides_format_attributes): New.
2750 * c-format.h: Add structure target_ovr_attr to hold
2751 system specific formatter names.
2752 * config.gcc: Add for x86&x86_64 cygwin and mingw32 targets the
2753 msformat-c.o file to c_target_objs and cxx_target_objs.
2754 * config/i386/mingw32.h (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): New.
2755 (TARGET_OVERRIDES_FORMAT_ATTRIBUTES_COUNT): New.
2756 (TARGET_N_FORMAT_TYPES): New.
2757 * config/i386/msformat-c.c: New.
2758 * config/i386/t-cygming: Add build rule for msformat-c.o.
2759 * doc/extend.texi: Add new format names gnu_* and ms_* and
2761 * doc/tm.texi: (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): New.
2763 2008-03-20 Ira Rosen <irar@il.ibm.com>
2765 * doc/invoke.texi (-O3): Add -ftree-vectorize to the list of
2766 optimizations turned on under -O3.
2767 (ftree-vectorize): Add that the flag is turned on with -O3.
2769 2008-03-20 Ben Elliston <bje@au.ibm.com>
2771 * regmove.c (try_auto_increment): Fix spelling error in comment.
2772 * final.c (final_scan_insn): Likewise.
2774 2008-03-20 Uros Bizjak <ubizjak@gmail.com>
2777 * config/i386/mmx.md (*mov<mode>_internal_rex64"): Adjust register
2778 allocator preferences for "y" and "r" class registers.
2779 ("*mov<mode>_internal"): Ditto.
2780 ("*movv2sf_internal_rex64"): Ditto.
2781 ("*movv2sf_internal"): Ditto.
2783 2008-03-19 Michael Matz <matz@suse.de>
2786 * calls.c (expand_call): Check overlap of arguments with call
2787 address for sibcalls.
2789 2008-03-19 Uros Bizjak <ubizjak@gmail.com>
2792 * stor-layout.c (update_alignment_for_field): Set minimum alignment
2793 of the underlying type of a MS bitfield layout to the natural
2794 alignment of the type.
2796 2008-03-19 Jan Hubicka <jh@suse.cz>
2799 * toplev.c (decode_d_option): Handle all CPP flags.
2800 * tree-vrp.c: Update tree_pass descriptors.
2801 * regrename.c: Update tree_pass descriptors.
2802 * fwprop.c: Update tree_pass descriptors.
2803 * doc/invoke.texi: Remove documentation of dropped -d? flags.
2804 * tree-into-ssa.c: Update tree_pass descriptors.
2805 * tree-dump.c: Update tree_pass descriptors.
2806 * tree-complex.c: Update tree_pass descriptors.
2807 * tree-dump.h: Update tree_pass descriptors.
2808 * see.c: Update tree_pass descriptors.
2809 * cgraphbuild.c: Update tree_pass descriptors.
2810 * tracer.c: Update tree_pass descriptors.
2811 * tree-loop-distribution.c: Update tree_pass descriptors.
2812 * cgraph.c: Update tree_pass descriptors.
2813 * postreload-gcse.c: Update tree_pass descriptors.
2814 * postreload.c: Update tree_pass descriptors.
2815 * tree-ssa-loop-ch.c: Update tree_pass descriptors.
2816 * tree-tailcall.c: Update tree_pass descriptors.
2817 * tree-pass.h (tree_opt_pass): Rename to ...
2818 (opt_pass) ... this one; add "type" field and remove letter field.
2819 (gimple_opt_pass, rtl_opt_pass, simple_ipa_opt_pass): New.
2820 (execute_pass_list, execute_ipa_pass_list, all_passes, all_ipa_passes,
2821 all_lowering_passes): Update declaration.
2822 * ipa-cp.c: Update tree_pass descriptors.
2823 * final.c: Update tree_pass descriptors.
2824 * omp-low.c: Update tree_pass descriptors.
2825 * tree-ssa-dse.c: Update tree_pass descriptors.
2826 * ipa-reference.c: Update tree_pass descriptors.
2827 * tree-ssa-uncprop.c: Update tree_pass descriptors.
2828 * auto-inc-dec.c: Update tree_pass descriptors.
2829 * reorg.c: Update tree_pass descriptors.
2830 * cgraphunit.c: Update tree_pass descriptors.
2831 * tree-ssa-copyrename.c: Update tree_pass descriptors.
2832 * tree-ssa-ccp.c: Update tree_pass descriptors.
2833 * df-core.c: Update tree_pass descriptors.
2834 * mode-switching.c: Update tree_pass descriptors.
2835 * tree-nomudflap.c: Update tree_pass descriptors.
2836 * modulo-sched.c: Update tree_pass descriptors.
2837 * ipa-pure-const.c: Update tree_pass descriptors.
2838 * cse.c: Update tree_pass descriptors.
2839 * web.c: Update tree_pass descriptors.
2840 * tree-stdarg.c: Update tree_pass descriptors.
2841 * tree-ssa-math-opts.c: Update tree_pass descriptors.
2842 * tree-ssa-dom.c: Update tree_pass descriptors.
2843 * tree-nrv.c: Update tree_pass descriptors.
2844 * tree-ssa-alias.c: Update tree_pass descriptors.
2845 * loop-init.c: Update tree_pass descriptors.
2846 * gimple-low.c: Update tree_pass descriptors.
2847 * ipa-inline.c: Update tree_pass descriptors.
2848 * tree-ssa-sink.c: Update tree_pass descriptors.
2849 * global.c: Update tree_pass descriptors.
2850 * ifcvt.c: Update tree_pass descriptors.
2851 * jump.c: Update tree_pass descriptors.
2852 * predict.c: Update tree_pass descriptors.
2853 * tree-ssa-loop.c: Update tree_pass descriptors.
2854 * recog.c: Update tree_pass descriptors.
2855 * dse.c: Update tree_pass descriptors.
2856 * tree-ssa-ifcombine.c: Update tree_pass descriptors.
2857 * tree-eh.c: Update tree_pass descriptors.
2858 * regmove.c: Update tree_pass descriptors.
2860 * function.c: Update tree_pass descriptors.
2861 * tree-vectorizer.c: Update tree_pass descriptors.
2862 * gcse.c: Update tree_pass descriptors.
2863 * ipa-type-escape.c: Update tree_pass descriptors.
2864 * tree-if-conv.c: Update tree_pass descriptors.
2865 * init-regs.c: Update tree_pass descriptors.
2866 * ipa.c: Update tree_pass descriptors.
2867 * tree-ssa-phiopt.c: Update tree_pass descriptors.
2868 * rtl-factoring.c: Update tree_pass descriptors.
2869 * lower-subreg.c: Update tree_pass descriptors.
2870 * bt-load.c: Update tree_pass descriptors.
2871 * tree-dfa.c: Update tree_pass descriptors.
2872 * except.c: Update tree_pass descriptors.
2873 * emit-rtl.c: Update tree_pass descriptors.
2874 * cfgexpand.c: Update tree_pass descriptors.
2875 * tree-cfgcleanup.c: Update tree_pass descriptors.
2876 * cfgcleanup.c: Update tree_pass descriptors.
2877 * tree-ssa-pre.c: Update tree_pass descriptors.
2878 * tree-sra.c: Update tree_pass descriptors.
2879 * tree-mudflap.c: Update tree_pass descriptors.
2880 * tree-ssa-copy.c: Update tree_pass descriptors.
2881 * cfglayout.c: Update tree_pass descriptors.
2882 * tree-ssa-forwprop.c: Update tree_pass descriptors.
2883 * tree-ssa-dce.c: Update tree_pass descriptors.
2884 * tree-ssa.c: Update tree_pass descriptors.
2885 * regclass.c: Update tree_pass descriptors.
2886 * integrate.c: Update tree_pass descriptors.
2887 * tree-optimize.c: Update tree_pass descriptors.
2888 * tree-ssa-phiprop.c: Update tree_pass descriptors.
2889 * tree-object-size.c: Update tree_pass descriptors.
2890 * combine.c: Update tree_pass descriptors.
2891 * tree-outof-ssa.c: Update tree_pass descriptors.
2892 * bb-reorder.c: Update tree_pass descriptors.
2893 * stack-ptr-mod.c: Update tree_pass descriptors.
2894 * var-tracking.c: Update tree_pass descriptors.
2895 * tree-profile.c: Update tree_pass descriptors.
2896 * tree-vect-generic.c: Update tree_pass descriptors.
2897 * reg-stack.c: Update tree_pass descriptors.
2898 * sched-rgn.c: Update tree_pass descriptors.
2899 * tree-ssa-structalias.c: Update tree_pass descriptors.
2900 * tree-cfg.c: Update tree_pass descriptors.
2901 * passes.c (current_pass): Update declaration.
2902 (finish_optimization_passes): Update.
2903 (all_passes, all_ipa_passes, all_lowering_passes): Update declaration.
2904 (register_one_dump_file, register_dump_files_1, next_pass_1):
2906 (init_optimization_passes): Update handling of new types.
2907 (execute_one_pass, execute_pass_list, execute_ipa_pass_list): Update.
2908 * ipa-struct-reorg.c: Update tree_pass descriptors.
2909 * tree-ssa-reassoc.c: Update tree_pass descriptors.
2910 * combine-stack-adj.c: Update tree_pass descriptors.
2911 * cfgrtl.c: Update tree_pass descriptors.
2912 * dce.c: Update tree_pass descriptors.
2913 * tree-ssanames.c: Update tree_pass descriptors.
2915 2008-03-19 Richard Guenther <rguenther@suse.de>
2918 * tree-ssa.c (walk_data): New structure.
2919 (warn_uninitialized_var): If not always_executed warn with "maybe"
2921 (execute_early_warn_uninitialized): Compute post-dominators.
2922 Initialize always_executed before processing each basic block.
2924 2008-03-18 Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz>
2927 * config/i386/i386.c (x86_this_parameter): Calculate correct location
2928 of "this" pointer when "regparm = N" or "fastcall" is in effect.
2930 2008-03-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2932 * doc/include/texinfo.tex: Update to version 2008-03-17.10.
2934 2008-03-18 Paolo Bonzini <bonzini@gnu.org>
2936 * expr.c (store_expr): Assume lang_hooks.reduce_bit_field_operations
2938 (expand_expr_real_1) <REDUCE_BIT_FIELD>: Don't look at ignore.
2939 (expand_expr_real_1): Assume lang_hooks.reduce_bit_field_operations
2940 is true. Add "&& !ignore" condition to reduce_bit_field. Modify
2941 target after ignore has been set, and move there also the commputation
2942 of subtarget and original_target.
2943 * langhooks-def.h (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): Delete.
2944 (LANG_HOOKS_INITIALIZER): Remove it.
2945 * langhooks.h (struct lang_hooks): Remove reduce_bit_field_operations.
2947 2008-03-18 Richard Guenther <rguenther@suse.de>
2949 * tree-ssa-sccvn.c (visit_reference_op_load): If the lookup
2950 found an expression with constants, note that in the VN for the lhs.
2951 * tree-ssa-pre.c (eliminate): Visit COND_EXPR statements and
2952 fold them to constants if possible. Run cleanup_cfg if done so.
2953 (execute_pre): Return todo.
2955 (execute_fre): Likewise.
2956 * tree-ssa-forwprop.c (can_propagate_from): Allow propagation
2958 (get_prop_source_stmt): Look through pointer conversions.
2960 2008-03-18 Jan Hubicka <jh@suse.cz>
2962 * tree-pretty-print.c: Include predict.h.
2963 (dump_generic_node): Dump predictor.
2964 * tree.h (PREDICT_EXPR_OUTCOME, PREDICT_EXPR_PREDICTION): Update.
2965 * tree-gimple.c (is_gimple_stmt): Add PREDICT_EXPR.
2966 * gimple-low.c (lower_stmt): Likewise.
2967 * expr.c (expand_expr_real): Likewise.
2968 * predict.c (tree_bb_level_predictions): Use PREDICT_EXPRs and remove
2970 (build_predict_expr, build_predict_expr): New.
2971 * predict.h (predictor_name, build_predict_expr): Update.
2972 * c-typeck.c (c_finish_bc_stmt): Add prediction.
2973 * gimplify.c (gimplify_expr): Add PREDICT_EXPR.
2974 * predict.def (PRED_CONTINUE): Update hitrate.
2975 * tree.def (PREDICT_EXPR): Define.
2976 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Mark PREDICT_EXPR;
2977 do not handle BIND_EXPR.
2978 * tree-inline.c (estimate_num_insns_1): PREDICT_EXPR is free.
2979 * tree-cfg.c (verify_gimple_stmt): PREDICT_EXPR is valid.
2980 * tree-ssa-operands.c (get_expr_operands): PREDICT_EXPR takes no
2983 2008-03-18 Michael Matz <matz@suse.de>
2985 * gcov-io.h (__gcov_merge_ior, __gcov_fork): Mark hidden.
2987 2008-03-18 Richard Guenther <rguenther@suse.de>
2989 * tree-gimple.h (is_gimple_invariant_address): Declare.
2990 (is_gimple_constant): Likewise.
2991 * tree-gimple.c (is_gimple_constant): New function.
2992 (is_gimple_invariant_address): Likewise.
2993 (is_gimple_min_invariant): Implement in terms of is_gimple_constant
2994 and is_gimple_invariant_address.
2995 * tree-ssa-loop-niter.c (expand_simple_operations): Revert
2997 * tree-data-ref.c (get_references_in_stmt): A SSA_NAME is not
2998 an addressable base.
3000 2008-03-18 Jakub Jelinek <jakub@redhat.com>
3003 * gimplify.c (gimplify_expr): Gimplify second operand of
3006 2008-03-17 Richard Guenther <rguenther@suse.de>
3008 PR tree-optimization/19637
3009 * fold-const.c (fold_unary): Remove restrictions of removing
3010 intermediate pointer-conversions (P2)(P1)P0.
3011 * tree-ssa-ccp.c (maybe_fold_stmt_addition): Recover from
3012 conversion to void pointer.
3013 (get_maxval_strlen): Handle addresses of the form &(*p)[0].
3015 2008-03-16 James E. Wilson <wilson@tuliptree.org>
3018 * dbxout.c (dbxout_expand_expr, case VAR_DECL): Return NULL for
3019 emulated thread local variables.
3021 2008-03-16 Richard Guenther <rguenther@suse.de>
3024 * tree-ssa-loop-niter.c (expand_simple_operations): Do not
3025 expand TREE_INVARIANT operations that are not gimple invariant.
3027 2008-03-16 Hans-Peter Nilsson <hp@axis.com>
3029 * doc/extend.texi (Alignment): Say that the ABI controls
3030 the __alignof__ for non-strict-alignment targets rather
3031 than being a recommendation.
3033 2008-03-15 Paul Brook <paul@codesourcery.com>
3035 * config/arm/arm.c (arm_unwind_emit): Suppress unused unwinding
3037 (arm_output_fn_unwind): Mark functions that can not be unwound.
3039 2008-03-15 Paul Brook <paul@codesourcery.com>
3041 * config/arm/arm.c (arm_rtx_costs_1): Add costs for ARMv6 value
3042 extension instructions.
3044 2008-03-15 Richard Guenther <rguenther@suse.de>
3046 * tree-ssa-ccp.c (ccp_fold): Also read from constant values
3047 and fold constant aggregate refs.
3048 (fold_const_aggregate_ref): Handle string constants
3049 and constructors in ARRAY_REFs. Handle INDIRECT_REF.
3050 (evaluate_stmt): Simplify now that ccp_fold folds constant
3053 2008-03-15 Paul Brook <paul@codesourcery.com>
3055 * config/arm/arm.md (insv): Use gen_insv_t2 and gen_insv_zero.
3056 (extzv): Use gen_extzv_t2.
3057 (insv_t2, insv_zero, extv, extzv_t2): New patterns.
3059 2008-03-15 Richard Guenther <rguenther@suse.de>
3061 * tree-ssa-ccp.c (get_symbol_constant_value): Export.
3062 (fold_const_aggregate_ref): Likewise.
3063 (get_value): Return NULL if we don't have any values.
3064 (ccp_finalize): Set const_val to NULL after freeing it.
3065 * tree-flow.h (get_symbol_constant_value): Declare.
3066 (fold_const_aggregate_ref): Likewise.
3067 * tree-ssa-sccvn.c (try_to_simplify): Use them.
3069 2008-03-15 Richard Guenther <rguenther@suse.de>
3072 * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Make sure
3073 to not produce negative array indices if not allowed. Add
3074 parameter to indicate that.
3075 (maybe_fold_offset_to_component_ref): Allow negative array
3076 indices only for the first member of a structure.
3077 (maybe_fold_offset_to_reference): Allow negative array indices.
3078 (maybe_fold_stmt_addition): Likewise.
3080 2008-03-15 Bjoern Haase <bjoern.m.haase@web.de>
3081 Anatoly Sokolov <aesok@post.ru>
3083 * config/avr/avr.c (avr_arch_types): Add avr6 entry.
3084 (avr_arch): Add ARCH_AVR6.
3085 (avr_mcu_types): Add 'atmega2560' and 'atmega2561' entry.
3086 (initial_elimination_offset): Initialize and use 'avr_pc_size'
3087 instead of fixed value 2.
3088 (print_operand_address): Use gs() asm specifier instead of pm().
3089 (avr_assemble_integer): (Ditto.).
3090 (avr_output_addr_vec_elt): (Ditto.).
3091 (print_operand): Handle "!" code.
3092 * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): Add
3093 __AVR_3_BYTE_PC__, __AVR_2_BYTE_PC__ and __AVR_HAVE_JMP_CALL__.
3094 (AVR_HAVE_EIJMP_EICALL): Define.
3095 (AVR_3_BYTE_PC): Redefine.
3096 (AVR_2_BYTE_PC): (Ditto.).
3097 (PRINT_OPERAND_PUNCT_VALID_P): Add '!' code.
3098 (LINK_SPEC): Add atmega2560 and atmega2561.
3099 (CRT_BINUTILS_SPEC): Add atmega2560 (crtm2560.o) and atmega2561
3101 * config/avr/avr.md (call_insn): Use eicall instead of icall
3102 for 3 byte PC devices.
3103 (call_value_insn): (Ditto.).
3104 (*tablejump_enh): Use eijmp instead of ijmp for 3 byte PC devices.
3105 (indirect_jump): Use only for for 2 byte PC devices.
3106 (*tablejump): (Ditto.).
3107 (*indirect_jump_avr6): Add insn.
3108 (*tablejump_rjmp): Don't use for 3 byte PC devices.
3109 * config/avr/libgcc.S (__prologue_saves__): Use eijmp
3110 instead of ijmp for 3 byte PC devices.
3111 (__tablejump2__): (Ditto.).
3112 * config/avr/t-avr (MULITLIB_OPTIONS): Add avr6 architecture.
3113 (MULITLIB_DIRNAMES): (Ditto.).
3114 (MULTILIB_MATCHES): Add atmega2560 and atmega2561 to list.
3116 2008-03-15 Uros Bizjak <ubizjak@gmail.com>
3118 * config/i386/mmx.md ("sse2_umulv1siv2di3"): Rename from
3119 "sse2_umulsidi3". Use V1DI mode for operand 0.
3120 ("mmx_psadbw"): Use V1DI mode for operand 0.
3121 * config/i386/i386-modes.def (V1SI): New vector mode.
3122 * config/i386/i386.c (struct builtin_description)
3123 [IX86_BUILTIN_PMULUDQ]: Use CODE_FOR_sse2_umulv1siv1di3.
3124 (v1di_ftype_v8qi_v8qi): Rename from di_ftype_v8qi_v8qi.
3125 (v1di_ftype_v2si_v2si): Rename from di_ftype_v2si_v2si.
3126 (ix86_init_mmx_sse_builtins) [__builtin_ia32_psadbw]: Use
3127 v1di_ftype_v8qi_v8qi type.
3128 [__builtin_ia32_pmuludq]: Use v1di_ftype_v2si_v2si type.
3130 * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psadbw,
3131 __builtin_ia32_pmuludq]: Fix the mode of return value.
3133 2008-03-15 Richard Guenther <rguenther@suse.de>
3136 * tree-ssa-pre.c (bitmap_find_leader): Handle expression
3139 2008-03-14 Bob Wilson <bob.wilson@acm.org>
3141 * doc/invoke.texi (Option Summary, Xtensa Options): Document
3142 -mserialize-volatile and -mno-serialize-volatile Xtensa options.
3143 * config/xtensa/xtensa.c (print_operand): Do not emit MEMW instructions
3144 unless TARGET_SERIALIZE_VOLATILE is enabled.
3145 * config/xtensa/xtensa.md (*lsiu, *ssiu): Likewise.
3146 * config/xtensa/xtensa.h (TARGET_DEFAULT): Add MASK_SERIALIZE_VOLATILE.
3147 * config/xtensa/xtensa.opt (mserialize_volatile): New option.
3149 2008-03-14 Richard Guenther <rguenther@suse.de>
3151 PR tree-optimization/34172
3152 * tree-flow.h (refs_may_alias_p): Declare.
3153 (get_single_def_stmt): Likewise.
3154 (get_single_def_stmt_from_phi): Likewise.
3155 (get_single_def_stmt_with_phi): Likewise.
3156 * tree-dfa.c (refs_may_alias_p): New function.
3157 (get_single_def_stmt): Likewise.
3158 (get_single_def_stmt_from_phi): Likewise.
3159 (get_single_def_stmt_with_phi): Likewise.
3160 * tree-ssa-sccvn.c (get_def_ref_stmt_vuses): New function.
3161 (vn_reference_lookup_1): New helper function.
3162 (vn_reference_lookup): Walk the virtual use-def chain to
3163 continue searching for a match if the def does not alias the
3164 reference we are looking for.
3166 2008-03-14 David Edelsohn <edelsohn@gnu.org>
3168 * doc/install.texi (Binaries): Remove UCLA archive. Add HVCC
3169 archive and Perzl. Update The Written Word listing.
3171 2008-03-14 Richard Guenther <rguenther@suse.de>
3173 PR tree-optimization/34043
3174 PR tree-optimization/33989
3175 * tree-ssa-pre.c (execute_pre): Allow SCCVN to do insertion
3177 (bitmap_find_leader): Use extra argument to verify dominance
3178 relationship inside a basic-block.
3179 (can_PRE_operation): Add VIEW_CONVERT_EXPR.
3180 (find_leader_in_sets): Adjust.
3181 (create_component_ref_by_pieces): Take extra argument for
3182 dominance check, handle lookup failures.
3183 (find_or_generate_expression): Likewise.
3184 (create_expression_by_pieces): Likewise.
3185 (insert_into_preds_of_block): Adjust.
3186 (create_value_expr_from): If asked for, verify all operands
3187 are in the blocks AVAIL_OUT set.
3188 (make_values_for_stmt): Check for SSA_NAMEs that are life
3189 over an abnormal edge.
3190 (compute_avail): Remove such check.
3191 (do_SCCVN_insertion): New function.
3192 (eliminate): If we do not find a leader suitable for replacement
3193 insert a replacement expression from SCCVN if available.
3194 * tree-ssa-sccvn.h (run_scc_vn): Update prototype.
3195 (struct vn_ssa_aux): Add needs_insertion flag.
3196 * tree-ssa-sccvn.c (may_insert): New global flag.
3197 (copy_reference_ops_from_ref): Value-number union member access
3198 based on its size, not type and member if insertion is allowed.
3199 (visit_reference_op_load): For a weak match from union type
3200 punning lookup a view-converted value and insert a SSA_NAME
3201 for that value if that is not found.
3202 (visit_use): Make dumps shorter. Do not disallow value numbering
3203 SSA_NAMEs that are life over an abnormal edge to constants.
3204 (free_scc_vn): Release inserted SSA_NAMEs.
3205 (run_scc_vn): New flag to specify whether insertion is allowed.
3206 Process SSA_NAMEs in forward order.
3207 * tree-ssa-loop-im.c (for_each_index): Handle invariant
3208 ADDR_EXPRs inside VIEW_CONVERT_EXPR.
3209 * fold-const.c (fold_unary): Fold VIEW_CONVERT_EXPRs from/to
3210 pointer type to/from integral types that do not change the
3211 precision to regular conversions.
3213 2008-03-13 Uros Bizjak <ubizjak@gmail.com>
3215 * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psll?,
3216 __builtin_ia32_psrl?, __builtin_ia32_psra?, __builtin_ia32_psll?i,
3217 __builtin_ia32_psrl?i, __builtin_ia32_psra?i, __builtin_ia32_psll?128,
3218 __builtin_ia32_psrl?128, __builtin_ia32_psra?128]: Fix the mode of
3219 input arguments and the mode of return value. Built-in functions
3220 that operate on whole 64-bit MMX register now use V1DI mode.
3222 2008-03-13 Alon Dayan <alond@il.ibm.com>
3223 Olga Golovanevsky <olga@il.ibm.com>
3225 PR tree-optimization/35041
3226 * ipa-struct-reorg.c (find_pos_in_stmt_1): Add another option
3227 to locate the right position in a statement.
3229 2008-03-13 Uros Bizjak <ubizjak@gmail.com>
3233 * config/i386/xmmintrin.h: Change all static inline functions to
3234 extern inline and add __gnu_inline__ attribute.
3235 * config/i386/bmintrin.h: Ditto.
3236 * config/i386/smmintrin.h: Ditto.
3237 * config/i386/tmmintrin.h: Ditto.
3238 * config/i386/mmintrin-common.h: Ditto.
3239 * config/i386/ammintrin.h: Ditto.
3240 * config/i386/emmintrin.h: Ditto.
3241 * config/i386/pmmintrin.h: Ditto.
3242 * config/i386/mmintrin.h: Ditto.
3243 * config/i386/mm3dnow.h: Ditto.
3245 2008-03-13 Jakub Jelinek <jakub@redhat.com>
3248 * omp-low.c (lower_regimplify, init_tmp_var, save_tmp_var): Removed.
3249 (lower_omp_2): New function.
3250 (lower_omp_1, lower_omp): Rewritten.
3252 2008-03-13 Danny Smith <dannysmith@users.sourceforge.net>
3255 * doc/extend.texi (Structure-Packing Pragmas): Replace "Win32"
3256 with the phrase "Microsoft Windows compilers".
3257 (Push/Pop Macro Pragmas): New subsection. Document
3258 #pragma push_macro and pragma pop_macro.
3260 2008-03-12 Paul Brook <paul@codesourcery.com>
3262 * config/arm/arm.c (output_move_double): Prefer LDRD to LDM.
3264 2008-03-12 Paul Brook <paul@codesourcery.com>
3266 * config/arm/thumb2.md: Extend peephole to cover 3-arg subs.
3267 (thumb2_alusi3_short): Exclude PLUS and MINUS.
3268 (thumb2_addsi_shortim): Rename ...
3269 (thumb2_addsi_short): ... to this. Allow register operands.
3270 (thumb2_subsi_short): New pattern.
3271 (thumb2_one_cmplsi2_short,
3272 thumb2_negsi2_short): New patterns and peepholes.
3274 2008-03-12 Paul Brook <paul@codesourcery.com>
3276 * config/arm/arm.c (arm_size_rtx_costs): Use ARM costs for Thumb-2.
3278 2008-03-12 Uros Bizjak <ubizjak@gmail.com>
3280 * config/i386/i386.md (int_cond): New code iterator.
3282 ("s<code>"): Macroize expander from seq, sne, sgt, sgtu, slt, sltu,
3283 sge, sgeu, sle and sleu expanders usign int_cond code iterator.
3284 ("s<code>"): Macroize expander from sunordered, sordered, suneq, sunge,
3285 sungt, sunle, sunlt and sltgt expanders usign fp_cond code iterator.
3286 ("b<code>"): Macroize expander from beq, bne, bgt, bgtu, blt, bltu,
3287 bge, bgeu, ble and bleu expanders usign int_cond code iterator.
3288 ("b<code>"): Macroize expander from bunordered, bordered, buneq, bunge,
3289 bungt, bunle, bunlt and bltgt expanders usign fp_cond code iterator.
3291 2008-03-12 Paul Brook <paul@codesourcery.com>
3293 * config/arm/arm.c (use_return_insn): Use offsets->saved_regs_mask
3294 instead of {arm,thumb}_compute_save_reg_mask.
3295 (output_return_instruction): Ditto.
3296 (thumb_unexpanded_epilogue): Ditto.
3297 (thumb1_expand_prologue): Ditto.
3298 (thumb1_output_function_prologue): Ditto.
3299 (arm_set_return_address): Ditto.
3300 (thumb_set_return_address): Ditto.
3301 (arm_get_frame_offsets): Set offsets->saved_regs_mask. Push extra
3302 regs to achieve stack alignment.
3303 (thumb1_compute_save_reg_mask): Fix compiler warning.
3304 (arm_output_epilogue): Use offsets->saved_regs_mask.
3305 Adjust stack pointer by poping call clobered registers.
3306 (arm_expand_prologue): Use offsets->saved_regs_mask.
3307 Adjust stack pointer by pushing extra registers.
3308 * config/arm.h (arm_stack_offsets): Add saved_regs_mask.
3310 2008-03-12 Paolo Bonzini <bonzini@gnu.org>
3313 * fold-const.c (fold_unary) <NOP_EXPR>: Distribute a narrowing
3314 conversion to the operands of a multiplication.
3316 2008-03-12 Richard Guenther <rguenther@suse.de>
3318 * Makefile.in (OBJS-common): Add tree-ssa-phiprop.o
3319 (tree-ssa-phiprop.o): Copy dependencies from tree-ssa-forwprop.o.
3320 * timevar.def (TV_TREE_PHIPROP): Add.
3321 * tree-ssa-phiprop.c: Split from tree-ssa-forwprop.c, added
3322 pass description. Use TV_TREE_PHIPROP.
3323 * tree-ssa-forwprop.c: Remove phiprop code.
3325 2008-03-12 Jakub Jelinek <jakub@redhat.com>
3328 * omp-low.c (maybe_lookup_decl): Constify first argument.
3329 (use_pointer_for_field): Change last argument from bool to
3330 omp_context *. Disallow shared copy-in/out in nested
3331 parallel if decl is shared in outer parallel too.
3332 (build_outer_var_ref, scan_sharing_clauses,
3333 lower_rec_input_clauses, lower_copyprivate_clauses,
3334 lower_send_clauses, lower_send_shared_vars): Adjust callers.
3336 2008-03-12 Victor Kaplansky <victork@il.ibm.com>
3337 Ira Rosen <irar@il.ibm.com>
3339 * tree-vectorizer.c (free_stmt_vec_info): New function.
3340 (destroy_loop_vec_info): Move code to free_stmt_vec_info().
3341 Call free_stmt_vec_info(). Free LOOP_VINFO_STRIDED_STORES..
3342 * tree-vectorizer.h (free_stmt_vec_info): Declare.
3343 * tree-vect-transform.c (vectorizable_conversion): Free
3344 vec_oprnds0 if it was allocated.
3345 (vect_permute_store_chain): Remove unused VECs.
3346 (vectorizable_store): Free VECs that are allocated in the..
3348 (vect_transform_strided_load, vectorizable_load): Likewise.
3349 (vect_remove_stores): Simplify the code.
3350 (vect_transform_loop): Move code to vect_remove_stores().
3351 Call vect_remove_stores() and free_stmt_vec_info().
3353 2008-03-11 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3355 * pa.h (TARGET_LONG_PIC_SDIFF_CALL): Conditionalize define on
3356 TARGET_HPUX. Revise comment.
3357 (TARGET_LONG_PIC_PCREL_CALL): Revise comment.
3358 * pa.c (output_call): Update for revised TARGET_LONG_PIC_SDIFF_CALL.
3359 Use sr4 variant of `be' instruction when not generating PIC code.
3360 (attr_length_call): Adjust for above change.
3362 2008-03-11 Andrew Pinski <andrew_pinski@playstation.sony.com>
3364 * ipa-reference.c (static_execute): Remove module_statics_const and
3365 associated setting code.
3367 2008-03-11 Uros Bizjak <ubizjak@gmail.com>
3370 * config/i386/i386.md (paritysi2, paritydi2): Use register_operand
3371 predicate for operand 1.
3372 (paritysi2_cmp): Use register_operand predicate for operand 2.
3373 Use earlyclobber modifier for operand 1. Remove support for
3375 (paritydi2_cmp): Use register_operand predicate for operand 3.
3376 Use earlyclobber modifier for operand 1. Remove support for
3379 2008-03-11 Paul Brook <paul@codesourcery.com>
3380 Vladimir Prus <vladimir@codesourcery.com>
3382 * config/arm/arm.c (use_return_insn): Check TARGET_APCS_FRAME.
3383 (arm_compute_save_reg0_reg12_mask): Always
3384 check if register 11 must be saved. Always safe hard frame pointer
3385 when frame_pointer_needeed.
3386 (arm_compute_save_reg_mask): Save IP and PC
3387 only with apcs frames.
3388 (arm_output_epilogue): Adjust Thumb2 codepath to
3389 be also invoked and work for ARM non-apcs frames.
3390 (arm_expand_prologue): Don't bother saving IP
3391 for non-apcs frame, since it's not clobbered by
3392 prologue code. Implement non-apcs frame
3395 2008-03-11 Paolo Bonzini <bonzini@gnu.org>
3397 PR rtl-optimization/35281
3398 * expr.c (convert_move): Use a new pseudo for the intermediate
3399 from_mode->word_mode result.
3401 2008-03-11 Paolo Bonzini <bonzini@gnu.org>
3403 * langhooks-def.h (LANG_HOOKS_CLEAR_BINDING_STACK): Delete.
3404 * langhooks.h (struct lang_hooks): Delete clear_binding_stack member.
3405 * toplev.c (compile_file): Don't call it.
3407 2008-03-11 Uros Bizjak <ubizjak@gmail.com>
3410 * expr.c (store_expr): Call emit_block_move if the mode
3411 of "temp" RTX is BLKmode.
3413 2008-03-11 Andrew Pinski <andrew_pinski@playstation.sony.com>
3414 Richard Guenther <rguenther@suse.de>
3416 PR tree-optimization/31358
3417 * tree-ssa-loop-manip.c (create_iv): Call force_gimple_operand for
3418 the step with a NULL_TREE.
3419 * tree-ssa-loop-ivopts.c (find_bivs): Convert the step
3420 to sizetype if type is a pointer type.
3421 (add_candidate_1): Don't convert the base and step to
3422 the generic type if the orginal type is a pointer type.
3423 (add_iv_value_candidates): Use sizetype for the step
3424 if type is a pointer type.
3425 (cand_value_at): Likewise.
3426 * tree-ssa-address.c (add_to_parts): Use POINTER_PLUS_EXPR
3428 * tree-affine.c (tree_to_aff_combination <POINTER_PLUS_EXPR>):
3429 Don't convert the tem affine to the type.
3430 (add_elt_to_tree): Use sizetype for the step if a pointer.
3431 Use POINTER_PLUS_EXPR for pointers.
3432 (aff_combination_to_tree): Use sizetype for the step if a
3435 2008-03-10 Vladimir Makarov <vmakarov@redhat.com>
3437 * config/i386/sse.md (ssse3_pmaddubswv8hi3, ssse3_pmaddubswv4hi3):
3438 Remove commutativity hint.
3440 2008-03-10 Jakub Jelinek <jakub@redhat.com>
3444 * c-parser.c (c_parser_omp_threadprivate): Don't add vars with
3445 errorneous type. Check that v is a VAR_DECL.
3448 * tree-cfg.c (new_label_mapper): Update cfun->last_label_uid.
3450 2008-03-10 H.J. Lu <hongjiu.lu@intel.com>
3452 PR tree-optimization/35494
3453 * tree-ssa-ccp.c (get_symbol_constant_value): Check if value
3454 may be overriden at link and run time.
3456 2008-03-10 Richard Guenther <rguenther@suse.de>
3458 PR tree-optimization/34677
3459 * tree-ssa-pre.c (modify_expr_node_pool): Remove.
3460 (poolify_tree): Likewise.
3461 (modify_expr_template): Likewise.
3462 (poolify_modify_stmt): Likewise.
3463 (insert_fake_stores): Handle all component-ref style stores
3464 in addition to INDIRECT_REF. Also handle complex types.
3465 Do not poolify the inserted load.
3466 (realify_fake_stores): Do not rebuild the tree but only
3467 make it a SSA_NAME copy.
3468 (init_pre): Remove initialzation of modify_expr_template.
3469 Do not allocate modify_expr_node_pool.
3470 (fini_pre): Do not free modify_expr_node_pool.
3472 2008-03-10 Paul Brook <paul@codesourcery.com>
3474 * config/arm/arm.md (UNSPEC_STACK_ALIGN, UNSPEC_PIC_OFFSET): Renumber
3477 2008-03-10 Paul Brook <paul@codesourcery.com>
3478 Mark Shinwell <shinwell@codesourcery.com>
3480 * config/arm/cortex-r4.md: New.
3481 * config/arm/thumb2.md (divsi3, udivsi3): Annotate with
3483 * config/arm/arm.md: Include cortex-r4.md.
3484 (insn): Add smmls, sdiv and udiv values.
3485 (generic_sched): Don't use generic scheduling for Cortex-R4.
3486 (arm_issue_rate): New function.
3487 (TARGET_SCHED_ISSUE_RATE): Define.
3489 2008-03-10 Sebastian Pop <sebastian.pop@amd.com>
3491 * doc/invoke.texi (-ftree-loop-distribution): Add an example.
3493 2008-03-10 Richard Guenther <rguenther@suse.de>
3495 * tree-ssa-pre.c (get_sccvn_value): Simplify.
3496 (compute_avail): Do not add stmt uses to AVAIL_OUT.
3498 2008-03-10 Paolo Bonzini <bonzini@gnu.org>
3500 * langhooks-def.h (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS):
3501 Set default to true.
3503 2008-03-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3505 * c.opt (Wsynth): Deprecate.
3506 * doc/invoke.texi (Option Summary, Warning Options): Document
3507 -Wno-format-contains-nul.
3509 2008-03-09 Uros Bizjak <ubizjak@gmail.com>
3512 * config/i386/i386.c (ix86_constant_alignment): Compute alignment using
3513 ALIGN_MODE_128 for VECTOR_CST and INTEGER_CST in addition to REAL_CST.
3515 2008-03-09 Ira Rosen <irar@il.ibm.com>
3517 * config/rs6000/rs6000.c (builtin_description): Rename vector
3518 left shift operations.
3519 * config/rs6000/altivec.md (UNSPEC_VSL): Remove.
3520 (altivec_vsl<VI_char>): Rename to ...
3521 (ashl<mode>3): ... new name.
3522 (mulv4sf3, mulv4si3, negv4sf2): Replace gen_altivec_vslw with
3524 (absv4sf2): Convert to use ashift:V4SI instead of UNSPEC_VSL.
3526 2008-03-08 Richard Guenther <rguenther@suse.de>
3528 * coverage.h (tree_coverage_counter_addr): Declare.
3529 * coverage.c (tree_coverage_counter_addr): New function.
3530 * tree-profile.c (tree_gen_edge_profiler): Unshare counter
3532 (tree_gen_pow2_profiler): Use tree_coverage_counter_addr.
3533 (tree_gen_one_value_profiler): Likewise.
3534 (tree_gen_ic_profiler): Likewise.
3535 (tree_gen_average_profiler): Likewise.
3536 (tree_gen_ior_profiler): Likewise.
3538 2008-03-08 Richard Guenther <rguenther@suse.de>
3540 * tree-ssa-sccvn.h (vn_binary_op_lookup): Remove.
3541 (vn_binary_op_insert): Likewise.
3542 (vn_unary_op_lookup): Likewise.
3543 (vn_unary_op_insert): Likewise.
3544 (vn_nary_op_lookup): Declare.
3545 (vn_nary_op_insert): Likewise.
3546 * tree-ssa-sccvn.c (struct vn_tables_s): Merge unary
3547 and binary hashes, use a single obstack for unary_op_pool
3549 (struct vn_binary_op_s, struct vn_unary_op_s): Replace with
3550 a single struct vn_nary_op_s. Store tree code length and
3551 a variable number of operands.
3552 (struct vn_reference_op_struct): Remove unused op2.
3553 (vn_reference_op_eq): Do not compare op2.
3554 (vn_reference_op_compute_hash): Do not compute hash of op2.
3555 (vn_unary_op_hash, vn_binary_op_hash): Replace with vn_nary_op_hash.
3556 (vn_unary_op_compute_hash, vn_binary_op_compute_hash): Replace
3557 with vn_nary_op_compute_hash.
3558 (vn_unary_op_eq, vn_binary_op_eq): Replace with vn_nary_op_eq.
3559 (vn_unary_op_lookup, vn_binary_op_lookup): Replace with
3561 (vn_unary_op_insert, vn_binary_op_insert): Replace with
3563 (visit_unary_op): Call nary functions.
3564 (visit_binary_op): Likewise.
3565 (process_scc): Adjust for struct vn_tables_s changes.
3566 (allocate_vn_table): Likewise.
3567 (free_vn_table): Likewise.
3568 * tree-vn.c (vn_add): Call nary functions.
3569 (vn_lookup): Likewise.
3571 2008-03-08 Jakub Jelinek <jakub@redhat.com>
3574 * config/rs6000/rs6000.c (rs6000_expand_compare_and_swapqhi): Shift
3575 wdst back after sync_compare_and_swapqhi_internal.
3577 2008-03-08 Uros Bizjak <ubizjak@gmail.com>
3580 * config/i386/i386-modes.def (V1DI): New vector mode.
3581 * config/i386/i386.h (VALID_MMX_REG_MODE): Add V1DImode.
3582 * config/i386/mmx.md (MMXMODEI8): New mode iterator.
3583 (MMXMODE248): Ditto.
3584 (MMXMODE): Add V1DI mode.
3585 (mmxvecsize): Change DI mode to V1DI mode.
3586 ("mov<mode>): Use MMXMODEI8 mode iterator.
3587 ("*mov<mode>_internal_rex64"): Ditto.
3588 ("*mov<mode>_internal"): Ditto.
3589 ("mmx_add<mode>3"): Ditto. Handle V1DImode for TARGET_SSE2.
3590 ("mmx_sub<mode>3"): Ditto.
3591 ("mmx_adddi3"): Remove insn pattern.
3592 ("mmx_subdi3"): Ditto.
3593 ("mmx_ashr<mode>3"): Use SImode and "yN" constraint for operand 2.
3594 ("mmx_lshr<mode>3"): Ditto. Use MMXMODE248 mode iterator.
3595 ("mmx_ashl<mode>3"): Ditto.
3596 ("mmx_lshrdi3"): Remove insn pattern.
3597 ("mmx_ashldi3"): Ditto.
3598 * config/i386/i386.c (classify_argument): Handle V1DImode.
3599 (function_arg_advance_32): Ditto.
3600 (function_arg_32): Ditto.
3601 (struct builtin_description) [IX86_BUILTIN_PADDQ]: Use
3602 mmx_addv1di3 insn pattern.
3603 [IX86_BUILTIN_PSUBQ]: Use mmx_subv1di3 insn pattern.
3604 [IX86_BUILTIN_PSLL?, IX86_BUILTIN_PSRL?, IX86_BUILTIN_PSRA?,
3605 IX86_BUILTIN_PSLL?I, IX86_BUILTIN_PSRL?I, IX86_BUILTIN_PSRA?I,
3606 IX86_BUILTIN_PSLL?I128, IX86_BUILTIN_PSRL?I128, IX86_BUILTIN_PSRA?I128]:
3607 Remove definitions of built-in functions.
3608 (V1DI_type_node): New node.
3609 (v1di_ftype_v1di_int): Ditto.
3610 (v1di_ftype_v1di_v1di): Ditto.
3611 (v2si_ftype_v2si_si): Ditto.
3612 (v4hi_ftype_v4hi_di): Remove node.
3613 (v2si_ftype_v2si_di): Ditto.
3614 (ix86_init_mmx_sse_builtins): Handle V1DImode.
3615 (__builtin_ia32_psll?, __builtin_ia32_psrl?, __builtin_ia32_psra?):
3616 Redefine builtins using def_builtin_const with *_ftype_*_int node.
3617 (__builtin_ia32_psll?i, __builtin_ia32_psrl?i, __builtin_ia32_psra?i):
3618 Add new builtins using def_builtin_const.
3619 (ix86_expand_builtin) [IX86_BUILTIN_PSLL?, IX86_BUILTIN_PSRL?,
3620 IX86_BUILTIN_PSRA?, IX86_BUILTIN_PSLL?I, IX86_BUILTIN_PSRL?I,
3621 IX86_BUILTIN_PSRA?I]: Handle builtin definitions.
3622 * config/i386/mmintrin.h (__v1di): New typedef.
3623 (_mm_add_si64): Cast arguments to __v1di type.
3624 (_mm_sub_si64): Ditto.
3625 (_mm_sll_pi16): Cast __count to __v4hi type.
3626 (_mm_sll_pi32): Cast __count to __v2si type.
3627 (_mm_sll_si64): Cast arguments to __v1di type.
3628 (_mm_srl_pi16): Cast __count to __v4hi type.
3629 (_mm_srl_pi32): Cast __count to __v2si type.
3630 (_mm_srl_si64): Cast arguments to __v1di type.
3631 (_mm_sra_pi16): Cast __count to __v4hi type.
3632 (_mm_sra_pi32): Cast __count to __v2si type.
3633 (_mm_slli_pi16): Use __builtin_ia32_psllwi.
3634 (_mm_slli_pi32): Use __builtin_ia32_pslldi.
3635 (_mm_slli_si64): Use __builtin_ia32_psllqi. Cast __m to __v1di type.
3636 (_mm_srli_pi16): Use __builtin_ia32_psrlwi.
3637 (_mm_srli_pi32): Use __builtin_ia32_psrldi.
3638 (_mm_srli_si64): Use __builtin_ia32_psrlqi. Cast __m to __v1di type.
3639 (_mm_srai_pi16): Use __builtin_ia32_psrawi.
3640 (_mm_srai_pi32): Use __builtin_ia32_psradi.
3641 * config/i386/i386.md (UNSPEC_NOP): Remove unspec definition.
3642 * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psll?,
3643 __builtin_ia32_psrl?, __builtin_ia32_psra?, __builtin_ia32_psll?i,
3644 __builtin_ia32_psrl?i, __builtin_ia32_psra?i]: Add new builtins.
3646 2008-03-07 Joseph Myers <joseph@codesourcery.com>
3648 * doc/include/texinfo.tex: Update to version 2008-03-07.10.
3650 2008-03-07 Peter Bergner <bergner@vnet.ibm.com>
3653 * config/rs6000/rs6000.c (rs6000_legitimize_address): Don't generate
3654 reg+const addressing for Altivec modes. Don't generate reg+reg
3655 addressing for TFmode or TDmode quantities.
3657 2008-03-07 Paolo Bonzini <bonzini@gnu.org>
3659 * c-common.c (vector_types_convertible_p): Call langhook
3660 instead of comptypes.
3662 2008-03-06 Andrew Pinski <andrew_pinski@playstation.sony.com>
3665 * tree-ssa-ccp.c (get_symbol_constant_value): Handle
3666 integral and scalar float variables which have a
3669 2008-03-06 Nathan Froyd <froydnj@codesourcery.com>
3671 * dwarf2out.c (dwarf2out_frame_debug_expr): Consult the
3672 dwarf_register_span hook when emitting unwind information for
3673 register-to-memory saves.
3674 * config/rs6000/rs6000.c (spe_synthesize_frame): Delete.
3675 (rs6000_frame_related): Remove call to spe_synthesize_frame.
3677 2008-03-06 Jakub Jelinek <jakub@redhat.com>
3679 * gimplify.c (goa_lhs_expr_p): Allow different ADDR_EXPR nodes
3680 for the same VAR_DECL.
3682 2008-03-06 Tom Tromey <tromey@redhat.com>
3685 * doc/standards.texi (Standards): Don't mention treelang.
3686 * doc/invoke.texi (Overall Options): Don't mention treelang.
3687 * doc/install.texi (Prerequisites): Don't mention bison or
3689 (Configuration): Don't mention treelang.
3690 (Building): Likewise.
3691 * doc/frontends.texi (G++ and GCC): Don't mention treelang.
3693 2008-03-06 Paolo Bonzini <bonzini@gnu.org>
3695 * simplify-rtx.c (simplify_subreg): Remove useless shifts from
3696 word-extractions out of a multi-word object.
3698 2008-03-06 Richard Guenther <rguenther@suse.de>
3700 * tree.def (BIT_FIELD_REF): Constrain result type and its precision.
3701 * tree-cfg.c (verify_expr): Verify BIT_FIELD_REF constraints on
3702 result type and precision.
3703 * expr.c (get_inner_reference): Set unsignedp based on the result
3704 type of BIT_FIELD_REF.
3705 * tree.h (BIT_FIELD_REF_UNSIGNED): Remove.
3706 * tree-sra.c (instantiate_element): Do not set BIT_FIELD_REF_UNSIGNED.
3707 (try_instantiate_multiple_fields): Likewise. Use the correct type
3709 (sra_build_assignment): Likewise.
3710 (sra_build_elt_assignment): Likewise.
3711 (sra_explode_bitfield_assignment): Likewise.
3712 * print-tree.c (print_node): Do not check BIT_FIELD_REF_UNSIGNED.
3713 * tree-vect-transform.c (vect_create_epilog_for_reduction): Do not
3714 set BIT_FIELD_REF_UNSIGNED.
3715 (vectorizable_load): Likewise.
3717 2008-03-06 Andreas Krebbel <krebbel1@de.ibm.com>
3719 * cse.c (cse_extended_basic_block): Invalidate artificial defs
3722 2008-03-06 Richard Guenther <rguenther@suse.de>
3724 * alias.c (struct alias_set_entry): Move has_zero_child field
3725 to pack with alias_set.
3727 2008-03-05 H.J. Lu <hongjiu.lu@intel.com>
3729 * config/i386/i386-modes.def: Use 4 byte alignment on DI for
3732 2008-03-05 Ian Lance Taylor <iant@google.com>
3734 * alias.h (alias_set_type): Change from HOST_WIDE_INT to int.
3736 2008-03-05 Kenneth Zadeck <zadeck@naturalbridge.com>
3738 * fwprop.c (update_df): Support width and offset parameters of
3740 * ra-conflict.c (mark_reg_store, clear_reg_in_live,
3741 global_conflicts): Change DF_REF_EXTRACT to either
3742 DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT. Change
3743 DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
3744 * df-scan.c (df_ref_record, df_defs_record,
3745 df_ref_create_structure, df_def_record_1, df_uses_record,
3746 df_get_conditional_uses, df_get_call_refs, df_insn_refs_collect,
3747 df_bb_refs_collect, df_entry_block_defs_collect,
3748 df_exit_block_uses_collect): Support new width and offset fields.
3749 (ref_extract_pool): New storage pool.
3750 (df_free_ref): New function.
3751 (df_reg_chain_unlink, df_free_collection_rec,
3752 df_sort_and_compress_refs): Call df_free_ref.
3753 (df_ref_equal_p, df_ref_compare): Compare offset and width fields
3755 (df_ref_create_structure): Allocate df_ref_extract if offset and
3756 width fields are used.
3757 (df_def_record_1): Get offset and width from ZERO_EXTRACT.
3758 (df_uses_record): Get offset and width from ZERO_EXTRACT
3760 * global.c (build_insn_chain): Change DF_REF_EXTRACT to either
3761 DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT. Change
3762 DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
3763 * df.h (df_ref_flags): Change DF_REF_EXTRACT to either
3764 DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT. Change
3765 DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
3766 (df_ref_extract): New structure.
3767 (DF_REF_WIDTH, DF_REF_OFFSET): New macros.
3768 (df_ref_create): Add width and offset parameters.
3770 2008-03-05 Richard Guenther <rguenther@suse.de>
3772 * tree-ssa-structalias.c (get_constraint_for_component_ref):
3773 Use ranges_overlap_p.
3774 (offset_overlaps_with_access): Rename
3775 to ranges_overlap_p and move ...
3776 * tree-flow-inline.h (ranges_overlap_p): ... here.
3778 * tree.h (get_inner_reference, handled_component_p): Update
3781 * tree.h (record_component_aliases, get_alias_set,
3782 alias_sets_conflict_p, alias_sets_must_conflict_p,
3783 objects_must_conflict_p): Move declarations ...
3784 * alias.h (record_component_aliases, get_alias_set,
3785 alias_sets_conflict_p, alias_sets_must_conflict_p,
3786 objects_must_conflict_p): ... here.
3787 Include coretypes.h.
3788 * Makefile.in (ALIAS_H): Add coretypes.h dependency.
3790 2008-03-05 Aldy Hernandez <aldyh@redhat.com>
3792 * cfg.c: Include tree-flow.h.
3793 (remove_edge_raw): Call redirect_edge_var_map_clear.
3794 (redirect_edge_succ_nodup): Call redirect_edge_var_map_dup.
3795 * tree-flow-inline.h (redirect_edge_var_map_def): New.
3796 (redirect_edge_var_map_result): New.
3797 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Replace
3798 PENDING_STMT use with redirect_edge_var_map_*.
3799 * tree-ssa.c (edge_var_maps): New definition.
3800 (redirect_edge_var_map_add): New.
3801 (redirect_edge_var_map_clear): New.
3802 (redirect_edge_var_map_dup): New.
3803 (redirect_edge_var_map_vector): New.
3804 (redirect_edge_var_map_destroy): New.
3805 (ssa_redirect_edge): Replace PENDING_STMT use with
3806 redirect_edge_var_map_*.
3807 (flush_pending_stmts): Same.
3808 (delete_tree_ssa): Destroy edge var map.
3809 * tree-flow.h (struct _edge_var_map): New.
3810 Define edge_var_map vector type.
3811 Declare redirect_edge_var_map_* prototypes.
3812 * Makefile.in (cfg.o): Depend on TREE_FLOW_H.
3813 * tree-cfg.c (reinstall_phi_args): Replace
3814 PENDING_STMT use with redirect_edge_var_map_*.
3816 2008-03-05 Richard Guenther <rguenther@suse.de>
3818 PR tree-optimization/35472
3819 * tree-ssa-dse.c (dse_optimize_stmt): Do not delete a store
3820 whose single use_stmt has a overlapping set of loaded and
3821 stored symbols as that use_stmt might be a noop assignment then.
3823 2008-03-05 Joel Sherrill <joel.sherrill@oarcorp.com>
3825 * gthr-rtems.h: Implement __gthread_mutex_destroy.
3827 2008-03-05 Richard Guenther <rguenther@suse.de>
3830 * tree.def (BIT_FIELD_REF): Document that operands 1 and 2
3831 should be constants.
3832 * tree-cfg.c (verify_expr): Verify it.
3833 * fold-const.c (fold_truthop): Remove code generating
3834 BIT_FIELD_REFs of structure bases.
3835 (fold_binary): Likewise.
3836 (fold_ternary): Position and size of BIT_FIELD_REFs are
3837 always host integers.
3838 (make_bit_field_ref): Remove.
3839 (optimize_bit_field_compare): Remove.
3840 (all_ones_mask_p): Remove.
3842 2008-03-05 Gabor Loki <loki@gcc.gnu.org>
3845 * rtl-factoring.c (clear_regs_live_in_seq): Fix backward steps.
3846 (split_block_and_df_analyze): New. Split basic block and rebuild
3848 (block_label_after): Use SPLIT_BLOCK_AND_DF_ANALYZE instead of
3850 (split_pattern_seq): Likewise.
3851 (erase_matching_seqs): Likewise.
3852 (split_pattern_seq): Skip return insn in case of REG_NORETURN note.
3854 2008-03-04 Geoff Keating <geoffk@apple.com>
3856 * fold-const.c (tree_single_nonnegative_warnv_p): Fix mixed
3857 declaration and code.
3858 (tree_invalid_nonnegative_warnv_p): Likewise.
3860 2008-03-05 Serge Belyshev <belyshev@depni.sinp.msu.ru>
3862 * doc/install.texi (Testing): Correct quoting for the RUNTESTFLAGS
3863 examples. Truncate option-names then causing overfull hbox.
3865 2008-03-04 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3868 * configure.ac (CONFIG_SJLJ_EXCEPTIONS): Force SJLJ exceptions
3870 * configure: Rebuilt.
3872 2008-03-04 Rafael Espindola <espindola@google.com>
3874 * fold-const.c (tree_simple_nonnegative_warnv_p): New.
3875 (tree_unary_nonnegative_warnv_p): New.
3876 (tree_binary_nonnegative_warnv_p): New.
3877 (tree_single_nonnegative_warnv_p): New.
3878 (tree_invalid_nonnegative_warnv_p): New.
3879 (tree_expr_nonnegative_warnv_p): Redefine in term of the new functions.
3881 2008-03-04 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
3884 * opts.c (handle_option): Postpone 'unknown option' errors only for
3887 2008-03-04 H.J. Lu <hongjiu.lu@intel.com>
3890 * config/i386/smmintrin.h (SIDD_XXX): Renamed to ...
3893 2008-03-04 Rafael Espindola <espindola@google.com>
3895 * fold-const.c (tree_unary_nonzero_warnv_p): New.
3896 (tree_binary_nonzero_warnv_p): New.
3897 (tree_single_nonzero_warnv_p): New.
3898 (tree_expr_nonzero_warnv_p): Redefine using the new functions.
3900 2008-03-04 Uros Bizjak <ubizjak@gmail.com>
3903 * fold-const.c (fold_cond_expr_with_comparison): Prevent
3904 transformations for modes that have signed zeros.
3905 * ifcvt.c (noce_try_abs): Ditto.
3907 2008-03-04 Joseph Myers <joseph@codesourcery.com>
3909 * config/i386/i386.c (override_options): Force
3910 -maccumulate-outgoing-args on if TARGET_STACK_PROBE.
3912 2008-03-04 Jan Hubicka <jh@suse.cz>
3915 * ipa-inline.c (cgraph_decide_inlining_of_small_function): Fix typo
3918 2008-03-04 Danny Smith <dannysmith@users.sourceforge.net>
3920 * config/i386/i386.md (allocate_stack_worker_32): Use __chkstk
3921 label to probe the stack.
3923 2008-03-04 Danny Smith <dannysmith@users.sourceforge.net>
3925 * gthr-win32.h [__GTHREAD_HIDE_WIN32API]
3926 (__gthr_win32_mutex_destroy): Declare.
3927 [__GTHREAD_HIDE_WIN32API] (__gthread_mutex_destroy): Use
3928 __gthr_win32_mutex_destroy.
3929 * config/i386/gthr-win32.c (__gthr_win32_mutex_destroy): Define.
3931 2008-03-03 Jan Hubicka <jh@suse.cz>
3934 * ipa-inline.c (cgraph_decide_inlining_of_small_function): Be more
3935 aggressive on inlining cold calls.
3937 2008-03-03 Richard Guenther <rguenther@suse.de>
3939 * tree-ssa-sccvn.c (visit_reference_op_store): Do not insert
3940 struct copies into the expression table.
3941 (simplify_unary_expression): Handle VIEW_CONVERT_EXPR.
3942 (try_to_simplify): Likewise.
3943 * fold-const.c (fold_unary): Fold VIEW_CONVERT_EXPR of
3944 integral and pointer arguments which do not change the
3945 precision to NOP_EXPRs.
3946 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Adjust
3947 VIEW_CONVERT_EXPR case.
3949 2008-03-02 Sebastian Pop <sebastian.pop@amd.com>
3951 * tree-scalar-evolution.c (instantiate_parameters_1): An SSA_NAME
3952 defined in a loop at depth 0 is invariant.
3953 * tree-chrec.c (evolution_function_is_invariant_rec_p): Ditto.
3954 * tree-ssa-loop-ivopts.c (expr_invariant_in_loop_p): Should never
3955 be called at loop depth 0.
3957 2008-03-02 Jakub Jelinek <jakub@redhat.com>
3960 * gcc.c (process_command): Update copyright notice dates.
3961 * gcov.c (print_version): Likewise.
3962 * gcov-dump.c (print_version): Likewise.
3963 * mips-tfile.c (main): Likewise.
3964 * mips-tdump.c (main): Likewise.
3966 2008-03-02 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
3969 * c-common.c (flag_permissive): Delete.
3970 (constant_expression_warnings): Check flags first.
3971 (constant_expression_error): New.
3972 * c-common.h (flag_permissive): Delete.
3973 (constant_expression_error): Declare.
3974 * flags.h (flag_permissive): Declare. Update description.
3975 * diagnostic.c (pedwarn): Update.
3977 * diagnostic.h: (pedantic_error_kind): Rename as pedantic_warning_kind.
3978 (permissive_error_kind): New.
3979 * toplev.c (flag_permissive): Define. Update description.
3980 * toplev.h (permissive_error_kind): Declare.
3981 * c-errors.c (pedwarn_c99): Use pedantic_warning_kind.
3982 (pedwarn_c90): Use pedantic_warning_kind.
3983 * c-opts.c (c_common_post_options): flag_permissive does not affect
3984 flag_pedantic_errors.
3986 2008-03-02 Joseph Myers <joseph@codesourcery.com>
3988 * libgcc2.c (__addvSI3, __addvsi3, __addvDI3, __subvSI3,
3989 __subvsi3, __subvDI3, __negvSI2, __negvsi2, __negvDI2, __absvSI2,
3990 __absvsi2, __absvDI2): Use unsigned arithmetic.
3992 2008-03-02 Andi Kleen <ak@suse.de>
3993 Richard Guenther <rguenther@suse.de>
3995 * struct-equiv.c: Remove file.
3996 * cfg_cleanup.c (condjump_equiv_p): Remove.
3997 * Makefile.in (OBJS-common): Remove struct-equiv.o.
3998 (struct-equiv.o): Remove rule.
3999 * basic-block.h (struct_equiv_checkpoint, STRUCT_EQUIV_*,
4000 insns_match_p, struct_equiv_block_eq, struct_equiv_init,
4001 rtx_equiv_p, condjump_equiv_p): Remove prototypes.
4003 2008-03-01 Alexandre Oliva <aoliva@redhat.com>
4005 * ifcvt.c (noce_process_if_block): Try to handle only the then
4006 block if the else block exists but isn't suitable.
4008 2008-03-01 Janne Blomqvist <jb@gcc.gnu.org>
4011 * gthr-posix.h (__gthread_mutex_destroy): Remove extra declarations.
4012 * gthr-posix95.h (__gthread_mutex_destroy): Likewise. Note this fixes
4013 regression from previous patch.
4015 2008-03-01 Janne Blomqvist <jb@gcc.gnu.org>
4018 * gthr.h: Add __gthread_mutex_destroy as a function that must be
4020 * gthr-vxworks.h (__gthread_mutex_destroy): Null implementation.
4021 * gthr-single.h (__gthread_mutex_destroy): Likewise.
4022 * gthr-rtems.h (__gthread_mutex_destroy): Likewise.
4023 * gthr-mipssde.h (__gthread_mutex_destroy): Likewise.
4024 * gthr-nks.h (__gthread_mutex_destroy): Likewise.
4025 * gthr-solaris.h (__gthread_mutex_destroy): Call mutex_destroy.
4026 * gthr-win32.h (__GTHREAD_MUTEX_DESTROY_FUNCTION): Remove.
4027 (__gthread_mutex_destroy_function): Rename to
4028 __gthread_mutex_destroy.
4029 * gthr-dce.h (__gthread_mutex_destroy): Call
4030 pthread_mutex_destroy.
4031 * gthr-tpf.h (__gthread_mutex_destroy): Likewise.
4032 * gthr-posix.h (__gthread_mutex_destroy): Likewise.
4033 * gthr-posix95.h (__gthread_mutex_destroy): Likewise.
4035 2008-03-01 Alexandre Oliva <aoliva@redhat.com>
4037 * df-scan.c (df_ref_chain_change_bb): Simplify.
4038 (df_insn_change_bb): Add new_bb argument. Simplify. Call
4039 set_block_for_insn if there's any change.
4040 * df.h ((df_insn_change_bb): Fix prototype.
4041 * cfgrtl.c (update_bb_for_insn_chain): Pass bb to
4042 df_insn_change_bb, don't call set_block_for_insn.
4043 * emit-rtl.c (reorder_insns): Likewise.
4044 * haifa-sched.c (move_insn): Likewise.
4046 2008-03-01 Alexandre Oliva <aoliva@redhat.com>
4048 * rtlanal.c (loc_mentioned_in_p): Test XVECEXPs correctly.
4050 2008-03-01 Alexandre Oliva <aoliva@redhat.com>
4052 * tree-flow-inline.h (next_readonly_imm_use): Return
4053 NULL_USE_OPERAND_P after the end.
4055 2008-03-01 Richard Guenther <rguenther@suse.de>
4057 PR tree-optimization/35411
4058 * tree-sra.c (sra_build_assignment): Split conversion to
4059 final type to a separate statement if we are not assigning
4062 2008-02-29 Francois-Xavier Coudert <coudert@clipper.ens.fr>
4064 * fold-const.c (fold_convertible_p): Correct the logic to follow
4065 that in fold_convert().
4067 2008-02-29 Douglas Gregor <doug.gregor@gmail.com>
4070 * tree-inline.c (build_duplicate_type): When we make a
4071 duplicate type, make it unique in the canonical types system.
4073 2008-02-29 Tom Tromey <tromey@redhat.com>
4075 * toplev.c (input_file_stack, input_file_stack_tick, fs_p,
4076 input_file_stack_history, input_file_stack_restored): Remove.
4077 (push_srcloc, pop_srcloc, restore_input_file_stack): Likewise.
4078 * input.h (struct file_stack): Remove.
4079 (push_srcloc, pop_srcloc, restore_input_file_stack): Likewise.
4080 (input_file_stack, input_file_stack_tick, INPUT_FILE_STACK_BITS):
4082 * diagnostic.h (struct diagnostic_context) <last_module>: Change
4084 (diagnostic_last_module_changed): Add 'map' argument.
4085 (diagnostic_set_last_function): Likewise.
4086 * diagnostic.c (undiagnostic_report_current_module): Iterate using
4087 line map, not input_file_stack.
4088 * c-lex.c (fe_file_change): Don't use push_srcloc or pop_srcloc.
4090 2008-02-29 Paul Brook <paul@codesourcery.com>
4092 * config/arm/arm.md (arm_addsi3): Add r/k/n alternative.
4094 2008-02-29 Paul Brook <paul@codesourcery.com>
4096 * config/arm/ieee754-df.S (muldf3): Use RET macros.
4098 2008-02-29 Richard Guenther <rguenther@suse.de>
4100 * tree-ssa-pre.c (get_sccvn_value): Create missing VNs via
4102 * tree-ssa-sccnv.c (visit_reference_op_store): Use the rhs
4103 value for comparing for a store match.
4104 (simplify_unary_expression): Do nothing for SSA_NAMEs.
4105 (try_to_simplify): Do not do a full-blown reference lookup.
4107 2008-02-29 Kaz Kojima <kkojima@gcc.gnu.org>
4109 * config/sh/sh.c (sh_scalar_mode_supported_p): New function.
4110 (TARGET_SCALAR_MODE_SUPPORTED_P): Define.
4112 * config/sh/sh.h (OVERRIDE_OPTIONS): Don't warn for profiling.
4114 2008-02-29 Sebastian Pop <sebastian.pop@amd.com>
4116 * tree-loop-linear.c (try_interchange_loops): Compare memory access
4117 strides against cache sizes.
4119 2008-02-29 Kaz Kojima <kkojima@gcc.gnu.org>
4121 * config/sh/sh.c (sh_secondary_reload): Handle loading a float
4124 2008-02-28 Richard Sandiford <rsandifo@nildram.co.uk>
4126 * simplify-rtx.c (simplify_unary_operation_1): Extend the handling
4127 of SUBREG_PROMOTED_VAR_P to cope with cases where the extended value
4128 is smaller than the original promoted value.
4129 (simplify_subreg): If OP is a SUBREG, try to preserve its
4130 SUBREG_PROMOTED_VAR_P information.
4132 2008-02-28 Steven Bosscher <stevenb.gcc@gmail.com>
4134 * tree-ssa-sccvn (vn_ssa_aux_obstack): New obstack.
4135 (VN_INFO_GET): Allocate new objects on the obstack.
4136 (init_scc_vn): Initialize the obstack. Use XDELETE instead of free
4137 for rpo_numbers_temp, for consistency.
4138 (free_scc_vn): Free the obstack.
4140 2008-02-28 Sebastian Pop <sebastian.pop@amd.com>
4142 * doc/invoke.texi: Document -ftree-loop-distribution.
4143 * tree-loop-distribution.c: New.
4144 * tree-pass.h (pass_loop_distribution): New.
4145 * graphds.h (struct graph): Add htab_t indices.
4146 * timevar.def (TV_TREE_LOOP_DISTRIBUTION): New.
4147 * tree-vectorizer.c (rename_variables_in_loop): Extern.
4148 (slpeel_tree_duplicate_loop_to_edge_cfg): Init PENDING_STMT to NULL.
4149 * tree-vectorizer.h (tree_duplicate_loop_on_edge): Declared.
4150 * tree-data-ref.c (debug_data_dependence_relations): New.
4151 (dump_data_dependence_relation): Also print data references.
4152 (free_data_ref): Extern.
4153 (same_access_functions): Moved...
4154 (find_vertex_for_stmt): Renamed rdg_vertex_for_stmt.
4155 (dump_rdg_vertex, debug_rdg_vertex, dump_rdg_component,
4156 debug_rdg_component, dump_rdg, debug_rdg, dot_rdg_1, dot_rdg,
4157 struct rdg_vertex_info, rdg_vertex_for_stmt): New.
4158 (create_rdg_edge_for_ddr, create_rdg_vertices): Cleaned up.
4159 (stmts_from_loop): Skip LABEL_EXPR.
4160 (hash_stmt_vertex_info, eq_stmt_vertex_info, hash_stmt_vertex_del):
4162 (build_rdg): Initialize rdg->indices htab.
4163 (free_rdg, stores_from_loop, ref_base_address,
4164 rdg_defs_used_in_other_loops_p, have_similar_memory_accesses,
4165 have_similar_memory_accesses_1, ref_base_address_1,
4166 remove_similar_memory_refs): New.
4167 * tree-data-ref.h: Depend on tree-chrec.h.
4168 (debug_data_dependence_relations, free_data_ref): Declared.
4169 (same_access_functions): ... here.
4170 (ddr_is_anti_dependent, ddrs_have_anti_deps, ddr_dependence_level):
4172 (struct rdg_vertex): Add has_mem_write and has_mem_reads.
4173 (RDGV_HAS_MEM_WRITE, RDGV_HAS_MEM_READS, RDG_STMT,
4174 RDG_MEM_WRITE_STMT, RDG_MEM_READS_STMT): New.
4175 (dump_rdg_vertex, debug_rdg_vertex, dump_rdg_component,
4176 debug_rdg_component, dump_rdg, debug_rdg, dot_rdg,
4177 rdg_vertex_for_stmt): Declared.
4178 (struct rdg_edge): Add level.
4180 (free_rdg, stores_from_loop, remove_similar_memory_refs,
4181 rdg_defs_used_in_other_loops_p, have_similar_memory_accesses):
4183 (rdg_has_similar_memory_accesses): New.
4184 * tree-vect-analyze.c: Remove unused static decls.
4185 * lambda.h (dependence_level): New.
4186 * common.opt (ftree-loop-distribution): New.
4187 * tree-flow.h (mark_virtual_ops_in_bb,
4188 slpeel_tree_duplicate_loop_to_edge_cfg,
4189 rename_variables_in_loop): Declared.
4190 * Makefile.in (TREE_DATA_REF_H): Depend on tree-chrec.h.
4191 (OBJS-common): Add tree-loop-distribution.o.
4192 (tree-loop-distribution.o): New rule.
4193 * tree-cfg.c (mark_virtual_ops_in_bb): New.
4194 (mark_virtual_ops_in_region): Use mark_virtual_ops_in_bb.
4195 * passes.c (init_optimization_passes): Schedule pass_loop_distribution.
4197 2008-02-28 Joseph Myers <joseph@codesourcery.com>
4200 * tree.c (handle_dll_attribute): Disallow TYPE_DECLs for types
4201 other than structures and unions.
4203 2008-02-28 Richard Guenther <rguenther@suse.de>
4206 2008-02-26 Richard Guenther <rguenther@suse.de>
4208 * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
4209 * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
4210 (lookup_decl_from_uid): Declare.
4211 (remove_decl_from_map): Likewise.
4212 * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
4213 * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
4214 (decl_for_uid_map): New global hashtable mapping DECL_UID
4216 (init_ttree): Allocate it.
4217 (insert_decl_to_uid_decl_map): New helper function.
4218 (make_node_stat): Insert new decls into the map.
4219 (copy_node_stat): Likewise.
4220 (lookup_decl_from_uid): New function.
4221 (remove_decl_from_map): Likewise.
4222 (print_decl_for_uid_map_statistics): New helper.
4223 (dump_tree_statistics): Call it.
4225 * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
4226 (referenced_var_iterator): Adjust.
4227 (FOR_EACH_REFERENCED_VAR): Adjust.
4228 (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
4229 (num_referenced_vars): Adjust.
4230 * tree-flow-inline.h (gimple_referenced_vars): Adjust.
4231 (first_referenced_var): Remove.
4232 (end_referenced_vars_p): Likewise.
4233 (next_referenced_var): Likewise.
4234 (referenced_var_iterator_set): New helper function.
4235 * tree-dfa.c (referenced_var_lookup): Adjust.
4236 (referenced_var_check_and_insert): Likewise.
4237 (remove_referenced_var): Likewise.
4238 * tree-ssa.c (verify_flow_insensitive_alias_info): Use
4239 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
4240 (verify_call_clobbering): Likewise.
4241 (verify_memory_partitions): Likewise.
4242 (init_tree_ssa): Allocate bitmap instead of hashtable for
4244 (delete_tree_ssa): Adjust.
4245 * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
4246 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
4247 (compute_tag_properties): Likewise.
4248 (set_initial_properties): Likewise.
4249 (find_partition_for): Likewise.
4250 (update_reference_counts): Likewise.
4251 (dump_may_aliases_for): Likewise.
4252 * tree-ssa-operands.c (add_virtual_operand): Likewise.
4253 (add_call_clobber_ops): Likewise.
4254 (add_call_read_ops): Likewise.
4255 (get_asm_expr_operands): Likewise.
4256 * tree-into-ssa.c (dump_decl_set): Likewise.
4257 (update_ssa): Likewise.
4258 * tree-sra.c (scan_function): Likewise.
4259 (decide_instantiations): Likewise.
4260 (scalarize_parms): Likewise.
4261 * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
4262 (dsa_named_for): Likewise.
4263 * tree-ssa-structalias.c (update_alias_info): Likewise.
4264 (merge_smts_into): Likewise.
4266 2008-02-27 David Daney <ddaney@avtrex.com>
4269 * config/mips/iris.h (MIPS_DEBUGGING_INFO): Define.
4270 * config/mips/openbsd.h (MIPS_DEBUGGING_INFO): Same.
4271 * config/mips/sde.h (MIPS_DEBUGGING_INFO): Remove undef.
4272 * config/mips/vxworks.h (MIPS_DEBUGGING_INFO): Same.
4273 * config/mips/mips.h (MIPS_DEBUGGING_INFO): Remove define.
4275 2008-02-27 Uros Bizjak <ubizjak@gmail.com>
4278 * config/darwin-ppc-ldouble-patch.def (BUILT_IN_NANL): Add.
4279 (BUILT_IN_NEXTTOWARD): Remove.
4280 (BUILT_IN_NEXTTOWARDF): Ditto.
4281 * config/darwin.c (darwin_patch_builtin): Use ACONCAT instead of
4282 alloca/strcpy/strcat. Remove commented-out code. Fix whitespace.
4284 2008-02-27 Tom Tromey <tromey@redhat.com>
4286 * tree-dump.c (dequeue_and_dump) <FUNCTION_DECL>: Check
4287 DECL_SAVED_TREE, not DECL_LANG_SPECIFIC, when dumping body.
4289 2008-02-27 Jan Beulich <jbeulich@novell.com>
4291 * c-decl.c (merge_decls): Use DECL_USER_ALIGN() on olddecl to
4292 update the respective field on newdecl.
4294 2008-02-27 Revital Eres <eres@il.ibm.com>
4296 PR rtl-optimization/34999
4297 * bb-reorder.c (add_labels_and_missing_jumps): Do not handle
4298 crossing edges that ends with a call insn.
4299 (fix_up_fall_thru_edges): Handle crossing edges that ends with a
4300 call insn and clear the EDGE_CROSSING flag of the crossing edge
4301 when fixing fallthru edges.
4303 2008-02-27 Richard Guenther <rguenther@suse.de>
4306 * fold-const.c (fold_unary): Return the correct argument,
4307 converted to the result type.
4309 2008-02-27 Richard Guenther <rguenther@suse.de>
4312 * expr.c (expand_expr_real_1): Assert on rotates that operate
4314 * fold-const.c (fold_binary): Use the types precision, not the
4315 bitsize of the mode if folding rotate expressions. Build rotates
4316 only for full modes.
4318 2008-02-27 Jakub Jelinek <jakub@redhat.com>
4320 * c-ppoutput.c (scan_translation_unit): Handle CPP_PRAGMA
4322 * c-pragma.c (pragma_ns_name): New typedef.
4323 (registered_pp_pragmas): New variable.
4324 (c_pp_lookup_pragma): New function.
4325 (c_register_pragma_1): If flag_preprocess_only, do nothing
4326 for non-expanded pragmas, for expanded ones push pragma's
4327 namespace and name into registered_pp_pragmas vector.
4328 (c_invoke_pragma_handler): Register OpenMP pragmas even when
4329 flag_preprocess_only, don't register GCC pch_preprocess
4330 pragma if flag_preprocess_only.
4331 * c-opts.c (c_common_init): Call init_pragma even if
4332 flag_preprocess_only.
4333 * c-pragma.c (c_pp_lookup_pragma): New prototype.
4334 * config/darwin.h (DARWIN_REGISTER_TARGET_PRAGMAS): Don't call
4335 cpp_register_pragma if flag_preprocess_only.
4337 2008-02-26 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4340 * c-parser.c (c_parser_translation_unit): Warn for empty
4341 translation unit, not empty source file.
4343 2008-02-26 Paul Brook <paul@codesourcery.com>
4345 * config/arm/arm.c (thumb_set_frame_pointer): Ensure SP is first
4346 operand for Thumb-2.
4347 * config/arm/arm.h (reg_class): Add CORE_REGS.
4348 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Ditto.
4349 (BASE_REG_CLASS): Use CORE_REGS.
4350 (PREFERRED_RELOAD_CLASS): Add STACK_REG.
4351 (REGNO_MODE_OK_FOR_REG_BASE_P): Use REGNO_MODE_OK_FOR_BASE_P.
4352 (REGNO_OK_FOR_INDEX_P): Exclude SP.
4353 (ARM_REG_OK_FOR_INDEX_P): Always define. Use
4354 ARM_REGNO_OK_FOR_INDEX_P.
4355 (ARM_PRINT_OPERAND_ADDRESS): Swap operands for [reg, sp].
4356 * config/arm/arm.md (arm_addsi3, thumb1_addsi3, arm_subsi3_insn,
4357 arm_movsi_insn, thumb1_movsi_insni, stack_tie): Add "k" alternatives.
4358 (ldm/stm peepholes): Ditto.
4359 * config/arm/thumb2.md (thumb2_movdi): Add "k" alternatives.
4360 * config/arm/vfp.md (arm_movsi_vfp, thumb2_movsi_vfp): Ditto.
4361 * config/arm/iwmmxt.md (iwmmxt_movsi_insn): Ditto.
4362 * config/arm/constraints.md: Enable "k" constraint on ARM.
4364 2008-02-27 Ben Elliston <bje@au.ibm.com>
4366 * config/rs6000/rs6000.c: Annotate cache line size field in all
4367 instances of struct processor_costs.
4369 2008-02-26 David Edelsohn <edelsohn@gnu.org>
4371 * dbgcnt.def (cfg_cleanup, cprop1, cprop2, dce_fast, dce_ud, dse1,
4372 dse2, gcse, if_conversion, if_after_combine, if_after_reload,
4373 jump_bypass): New counters.
4374 * cfgcleanup.c (cleanup_cfg): Add dbg_cnt.
4375 * dce.c (gate_ud_dce): Same.
4376 (gate_fast_dce): Same.
4377 * dse.c (gate_dse1): New function.
4378 (gate_dse2): New function.
4379 (gate_dse): Merge results of new gate functions.
4380 * gcse.c (gcse_main): Bracket cprop1 and cprop2 with dbg_cnt.
4381 (gate_handle_jump_bypass): Add dbg_cnt.
4382 (gate_handle_gcse): Add dbg_cnt.
4383 * ifcvt.c (gate_handle_if_conversion): Same.
4384 (gate_handle_if_after_combine): Same.
4385 (gate_handle_if_after_reload): Same.
4386 * Makefile.in: Add DBGCNT_H to cfgcleanup.o and ifcvt.o.
4388 2008-02-26 Edmar Wienskoski <edmar@freescale.com>
4390 * config/rs6000/rs6000.c (processor_costs): Update e300 cache
4392 * doc/invoke.texi: Add e300c2 and e300c3 to list of cpus.
4394 2008-02-26 Jason Merrill <jason@redhat.com>
4397 * attribs.c (decl_attributes): Leave ATTR_FLAG_TYPE_IN_PLACE
4398 alone if it's the naming decl for the type's main variant.
4400 2008-02-26 Tom Tromey <tromey@redhat.com>
4402 * system.h (USE_MAPPED_LOCATION): Poison.
4403 * Makefile.in (GTFILES): Put CPP_ID_DATA_H first.
4404 * tree-cfg.c (make_cond_expr_edges): Remove old location code.
4405 (make_goto_expr_edges): Likewise.
4406 (remove_bb): Likewise.
4407 (execute_warn_function_return): Likewise.
4408 * basic-block.h (struct edge_def) <goto_locus>: Change type to
4410 * c-common.c (fname_decl): Remove old location code.
4411 * tree-vect-transform.c (vect_finish_stmt_generation): Remove old
4413 * rtl.h (ASM_OPERANDS_SOURCE_LOCATION): Remove old-location
4415 (ASM_INPUT_SOURCE_LOCATION): Likewise.
4416 (gen_rtx_ASM_INPUT): Likewise.
4417 (gen_rtx_ASM_INPUT_loc): Likewise.
4418 (get_rtx_asm_OPERANDS): Remove.
4419 * cfglayout.c (insn_locators_alloc): Remove old location code.
4420 (set_curr_insn_source_location): Likewise.
4421 (curr_insn_locator): Likewise.
4422 * print-tree.c (print_node): Remove old location code.
4423 * tree-mudflap.c (mf_varname_tree): Remove old location code.
4424 (mf_file_function_line_tree): Remove test of USE_MAPPED_LOCATION.
4425 * cfgexpand.c (expand_gimple_cond_expr): Don't use
4426 location_from_locus.
4427 (construct_exit_block): Remove old location code.
4428 * emit-rtl.c (force_next_line_note): Remove old location code.
4429 * profile.c (branch_prob): Remove old location code.
4430 * tree-vectorizer.h (LOC, UNKNOWN_LOC, EXPR_LOC, LOC_FILE,
4431 LOC_LINE): Remove old-location variants.
4432 * langhooks.c (lhd_print_error_function): Remove old location
4434 * configure, config.in: Rebuilt.
4435 * configure.ac (--enable-mapped-location): Remove.
4436 * c-decl.c (c_init_decl_processing): Remove old location code.
4437 (finish_function): Likewise.
4438 * recog.c (decode_asm_operands): Remove old location code.
4439 * c-pch.c (c_common_read_pch): Remove old location code.
4440 * rtl.def (ASM_INPUT, ASM_OPERANDS): Remove old location
4442 * gimple-low.c (lower_function_body): Remove old location code.
4443 * toplev.c (unknown_location): Remove.
4444 (push_srcloc): Remove old-location variant.
4445 (process_options): Remove old location code.
4446 (lang_dependent_init): Likewise.
4447 * input.h (UNKNOWN_LOCATION): Move definition.
4448 (location_t): Undeprecate.
4449 (source_locus): Remove.
4450 (location_from_locus): Remove.
4451 (struct location_s): Remove.
4452 Remove all old-location code.
4453 (input_line, input_filename): Remove.
4454 * final.c (final_scan_insn): Remove old location code.
4455 * diagnostic.c (diagnostic_build_prefix): Remove
4456 USE_MAPPED_LOCATION test.
4457 * tree.h (gimple_stmt) <locus>: Now a location_t.
4458 (tree_exp) <locus>: Likewise.
4459 (DECL_IS_BUILTIN): Remove old-location variant.
4460 (annotate_with_file_line, annotate_with_locus): Likewise.
4461 (expr_locus, set_expr_locus): Update.
4462 * tree.c (build1_stat): Remove old location code.
4463 (last_annotated_node): Remove.
4464 (annotate_with_file_line): Remove old-location variant.
4465 (annotate_with_locus): Likewise.
4466 (expr_location): Remove old location code.
4467 (set_expr_location): Likewise.
4468 (expr_has_location): Likewise.
4469 (expr_locus): Likewise.
4470 (set_expr_locus): Likewise.
4471 (expr_filename): Don't use location_from_locus.
4472 (expr_lineno): Likewise.
4473 * rtl-error.c (location_for_asm): Remove old location code.
4474 * c-lex.c (cb_line_change): Remove old location code.
4475 (fe_file_change): Likewise.
4476 (cb_def_pragma): Likewise.
4477 (c_lex_with_flags): Likewise.
4478 * gengtype.c (do_typedef): Don't special-case location types.
4479 (define_location_structures): Remove.
4480 (main): Don't call define_location_structures.
4481 * tree-pretty-print.c (dump_implicit_edges): Remove old location
4484 2008-02-26 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
4487 * builtins.def (BUILT_IN_STDARG_START): Remove.
4488 * builtins.c (expand_builtin): Remove BUILT_IN_STDARG_START.
4489 * tree-stdarg.c (execute_optimize_stdarg): Likewise.
4490 * tree-inline.c (inline_forbidden_p_1): Likewise.
4492 2008-02-26 Richard Guenther <rguenther@suse.de>
4494 * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
4495 * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
4496 (lookup_decl_from_uid): Declare.
4497 (remove_decl_from_map): Likewise.
4498 * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
4499 * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
4500 (decl_for_uid_map): New global hashtable mapping DECL_UID
4502 (init_ttree): Allocate it.
4503 (insert_decl_to_uid_decl_map): New helper function.
4504 (make_node_stat): Insert new decls into the map.
4505 (copy_node_stat): Likewise.
4506 (lookup_decl_from_uid): New function.
4507 (remove_decl_from_map): Likewise.
4508 (print_decl_for_uid_map_statistics): New helper.
4509 (dump_tree_statistics): Call it.
4511 * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
4512 (referenced_var_iterator): Adjust.
4513 (FOR_EACH_REFERENCED_VAR): Adjust.
4514 (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
4515 (num_referenced_vars): Adjust.
4516 * tree-flow-inline.h (gimple_referenced_vars): Adjust.
4517 (first_referenced_var): Remove.
4518 (end_referenced_vars_p): Likewise.
4519 (next_referenced_var): Likewise.
4520 (referenced_var_iterator_set): New helper function.
4521 * tree-dfa.c (referenced_var_lookup): Adjust.
4522 (referenced_var_check_and_insert): Likewise.
4523 (remove_referenced_var): Likewise.
4524 * tree-ssa.c (verify_flow_insensitive_alias_info): Use
4525 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
4526 (verify_call_clobbering): Likewise.
4527 (verify_memory_partitions): Likewise.
4528 (init_tree_ssa): Allocate bitmap instead of hashtable for
4530 (delete_tree_ssa): Adjust.
4531 * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
4532 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
4533 (compute_tag_properties): Likewise.
4534 (set_initial_properties): Likewise.
4535 (find_partition_for): Likewise.
4536 (update_reference_counts): Likewise.
4537 (dump_may_aliases_for): Likewise.
4538 * tree-ssa-operands.c (add_virtual_operand): Likewise.
4539 (add_call_clobber_ops): Likewise.
4540 (add_call_read_ops): Likewise.
4541 (get_asm_expr_operands): Likewise.
4542 * tree-into-ssa.c (dump_decl_set): Likewise.
4543 (update_ssa): Likewise.
4544 * tree-sra.c (scan_function): Likewise.
4545 (decide_instantiations): Likewise.
4546 (scalarize_parms): Likewise.
4547 * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
4548 (dsa_named_for): Likewise.
4549 * tree-ssa-structalias.c (update_alias_info): Likewise.
4550 (merge_smts_into): Likewise.
4552 2008-02-26 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
4555 * doc/invoke.texi (-Wall): Add -Wvolatile-register-var.
4556 * c-opts.c (c_common_handle_option): Wall enables
4557 Wvolatile-register-var.
4558 * common.opt: Move Wvolatile-register-var to...
4561 2008-02-26 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
4563 * common.opt (Wlarger-than=): New.
4564 * doc/invoke.texi (Warning Options): Replace -Wlarger-than- with
4566 * opts.c (common_handle_option): Handle -Wlarger-than=.
4567 * optc-gen.awk: Likewise.
4568 * opth-gen.awk: Likewise.
4569 * stor-layout.c (layout_decl): Use -Wlarger-than= for warning.
4570 * tree-optimize.c (tree_rest_of_compilation): Likewise.
4572 2008-02-26 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
4574 * c-common.c (match_case_to_enum_1): Add appropriate
4575 OPT_W* parameter to warning.
4576 (c_do_switch_warnings): Likewise.
4577 * c-typeck.c (warning_init): Add one more parameter following
4579 (push_init_level): Update call to warning_init.
4580 (pop_init_level): Likewise.
4581 (add_pending_init): Likewise.
4582 (output_init_element: Likewise.
4584 2008-02-26 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
4587 * toplev.c (toplev_main): If there are warnings or error, print
4588 errors for ignored options.
4589 * opts.c (ignored_options): New static variable.
4590 (postpone_unknown_option_error): New.
4591 (print_ignored_options): New.
4592 (handle_option): Postpone errors for unknown -Wno-* options.
4593 * opts.h (print_ignored_options): Declare.
4595 2008-02-25 Richard Sandiford <rsandifo@nildram.co.uk>
4597 * config/mips/mips.md (loadgp_blockage, blockage): Change type
4600 2008-02-25 Richard Guenther <rguenther@suse.de>
4603 2008-02-25 Richard Guenther <rguenther@suse.de>
4605 * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
4606 * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
4607 (lookup_decl_from_uid): Declare.
4608 * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
4609 * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
4610 (decl_for_uid_map): New global hashtable mapping DECL_UID
4612 (init_ttree): Allocate it.
4613 (insert_decl_to_uid_decl_map): New helper function.
4614 (make_node_stat): Insert new decls into the map.
4615 (copy_node_stat): Likewise.
4616 (lookup_decl_from_uid): New function.
4617 (print_decl_for_uid_map_statistics): New helper.
4618 (dump_tree_statistics): Call it.
4620 * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
4621 (referenced_var_iterator): Adjust.
4622 (FOR_EACH_REFERENCED_VAR): Adjust.
4623 (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
4624 (num_referenced_vars): Adjust.
4625 * tree-flow-inline.h (gimple_referenced_vars): Adjust.
4626 (first_referenced_var): Remove.
4627 (end_referenced_vars_p): Likewise.
4628 (next_referenced_var): Likewise.
4629 (referenced_var_iterator_set): New helper function.
4630 * tree-dfa.c (referenced_var_lookup): Adjust.
4631 (referenced_var_check_and_insert): Likewise.
4632 (remove_referenced_var): Likewise.
4633 * tree-ssa.c (verify_flow_insensitive_alias_info): Use
4634 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
4635 (verify_call_clobbering): Likewise.
4636 (verify_memory_partitions): Likewise.
4637 (init_tree_ssa): Allocate bitmap instead of hashtable for
4639 (delete_tree_ssa): Adjust.
4640 * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
4641 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
4642 (compute_tag_properties): Likewise.
4643 (set_initial_properties): Likewise.
4644 (find_partition_for): Likewise.
4645 (update_reference_counts): Likewise.
4646 (dump_may_aliases_for): Likewise.
4647 * tree-ssa-operands.c (add_virtual_operand): Likewise.
4648 (add_call_clobber_ops): Likewise.
4649 (add_call_read_ops): Likewise.
4650 (get_asm_expr_operands): Likewise.
4651 * tree-into-ssa.c (dump_decl_set): Likewise.
4652 (update_ssa): Likewise.
4653 * tree-sra.c (scan_function): Likewise.
4654 (decide_instantiations): Likewise.
4655 (scalarize_parms): Likewise.
4656 * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
4657 (dsa_named_for): Likewise.
4658 * tree-ssa-structalias.c (update_alias_info): Likewise.
4659 (merge_smts_into): Likewise.
4661 2008-02-25 Janne Blomqvist <jb@gcc.gnu.org>
4664 * doc/invoke.texi (-fcx-limited-range): Document new option.
4665 * toplev.c (process_options): Handle -fcx-fortran-rules.
4666 * common.opt: Add documentation for -fcx-fortran-rules.
4668 2008-02-25 Janne Blomqvist <jb@gcc.gnu.org>
4671 * doc/invoke.texi (-fcx-limited-range): Correct to be in line with
4672 actual behaviour and C99.
4674 2008-02-26 Ben Elliston <bje@au.ibm.com>
4676 * config/rs6000/rs6000.h (ASM_CPU_POWER5_SPEC): Define.
4677 (ASM_CPU_POWER6_SPEC): Likewise.
4678 (ASM_CPU_SPEC): Pass %(asm_cpu_power5) for -mcpu=power5.
4679 Likewise, pass %(asm_cpu_power6) for -mcpu=power6.
4680 (EXTRA_SPECS): Add asm_cpu_power5, asm_cpu_power6 spec strings.
4682 2008-02-25 Richard Guenther <rguenther@suse.de>
4684 * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
4685 * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
4686 (lookup_decl_from_uid): Declare.
4687 * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
4688 * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
4689 (decl_for_uid_map): New global hashtable mapping DECL_UID
4691 (init_ttree): Allocate it.
4692 (insert_decl_to_uid_decl_map): New helper function.
4693 (make_node_stat): Insert new decls into the map.
4694 (copy_node_stat): Likewise.
4695 (lookup_decl_from_uid): New function.
4696 (print_decl_for_uid_map_statistics): New helper.
4697 (dump_tree_statistics): Call it.
4699 * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
4700 (referenced_var_iterator): Adjust.
4701 (FOR_EACH_REFERENCED_VAR): Adjust.
4702 (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
4703 (num_referenced_vars): Adjust.
4704 * tree-flow-inline.h (gimple_referenced_vars): Adjust.
4705 (first_referenced_var): Remove.
4706 (end_referenced_vars_p): Likewise.
4707 (next_referenced_var): Likewise.
4708 (referenced_var_iterator_set): New helper function.
4709 * tree-dfa.c (referenced_var_lookup): Adjust.
4710 (referenced_var_check_and_insert): Likewise.
4711 (remove_referenced_var): Likewise.
4712 * tree-ssa.c (verify_flow_insensitive_alias_info): Use
4713 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
4714 (verify_call_clobbering): Likewise.
4715 (verify_memory_partitions): Likewise.
4716 (init_tree_ssa): Allocate bitmap instead of hashtable for
4718 (delete_tree_ssa): Adjust.
4719 * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
4720 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
4721 (compute_tag_properties): Likewise.
4722 (set_initial_properties): Likewise.
4723 (find_partition_for): Likewise.
4724 (update_reference_counts): Likewise.
4725 (dump_may_aliases_for): Likewise.
4726 * tree-ssa-operands.c (add_virtual_operand): Likewise.
4727 (add_call_clobber_ops): Likewise.
4728 (add_call_read_ops): Likewise.
4729 (get_asm_expr_operands): Likewise.
4730 * tree-into-ssa.c (dump_decl_set): Likewise.
4731 (update_ssa): Likewise.
4732 * tree-sra.c (scan_function): Likewise.
4733 (decide_instantiations): Likewise.
4734 (scalarize_parms): Likewise.
4735 * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
4736 (dsa_named_for): Likewise.
4737 * tree-ssa-structalias.c (update_alias_info): Likewise.
4738 (merge_smts_into): Likewise.
4740 2008-02-25 Andreas Krebbel <krebbel1@de.ibm.com>
4743 * cse.c (cse_insn): Avoid creation of overlapping MEMs.
4744 * alias.c (nonoverlapping_memrefs_p): Export for use in other modules.
4745 * alias.h (nonoverlapping_memrefs_p): Likewise.
4747 2008-02-25 Jan Beulich <jbeulich@novell.com>
4749 * Makefile.in: Also prefix uses of crt0.o and mcrt0.o with $(T).
4750 * config/i386/netware-libgcc.exp: Add __bswap?i2,
4751 __emultls_get_address, __emultls_register_common,
4752 __floatundi?f, and _Unwind_GetIPInfo.
4753 * config/i386/netware.c (gen_stdcall_or_fastcall_decoration):
4754 Sync with config/i386/winnt.c:gen_stdcall_or_fastcall_suffix().
4755 (gen_regparm_prefix): Likewise.
4756 (i386_nlm_encode_section_info): Sync with
4757 config/i386/winnt.c:i386_pe_encode_section_info().
4758 (i386_nlm_maybe_mangle_decl_assembler_name): New.
4759 i386_nlm_mangle_decl_assembler_name): New.
4760 (netware_override_options): New.
4761 * config/i386/netware.h (netware_override_options): Declare.
4762 (OVERRIDE_OPTIONS): Re-define to netware_override_options.
4763 (i386_nlm_mangle_decl_assembler_name): Declare.
4764 (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Define.
4766 2008-02-25 Ben Elliston <bje@au.ibm.com>
4769 * c-decl.c (grokdeclarator): Remove unused local variables
4770 `typedef_type' and `type_as_written'.
4772 (find_rarely_executed_basic_blocks_and_crossing_edges): Remove
4773 unused local variable `has_hot_blocks'.
4774 (fix_crossing_conditional_branches): Remove unused local variable
4777 2008-02-25 Uros Bizjak <ubizjak@gmail.com>
4780 * builtins.def (BUILT_IN_NAN): Define as c99 builtin
4781 using DEF_C99_BUILTIN.
4782 (BUILT_IN_NANF): Ditto.
4783 (BUILT_IN_NANL): Ditto.
4785 2008-02-25 Ayal Zaks <zaks@il.ibm.com>
4786 Revital Eres <eres@il.ibm.com>
4788 * modulo-sched.c (calculate_must_precede_follow): Address TODO
4789 regarding the order of two dependent insns in the same row.
4791 2008-02-25 Eric Botcazou <ebotcazou@adacore.com>
4793 * stor-layout.c (layout_decl): Do not bump the alignment of a
4794 bit-field to more than byte alignment if it is packed.
4796 2008-02-24 David Edelsohn <edelsohn@gnu.org>
4798 * config/rs6000/rs6000.c (processor_costs): Add cache costs for
4801 2008-02-24 Diego Novillo <dnovillo@google.com>
4803 http://gcc.gnu.org/ml/gcc-patches/2008-02/msg01094.html
4806 * tree-vrp.c (vrp_evaluate_conditional): With
4807 -Wtype-limits, emit a warning when comparing against a
4808 constant outside the natural range of OP0's type.
4809 * c.opt (Wtype-limits): Move ...
4810 * common.opt (Wtype-limits): ... here.
4812 2008-02-24 Edmar Wienskoski <edmar@freescale.com>
4814 * config.gcc (powerpc*-*-*): Add new cores e300c2 and e300c3.
4815 * config/rs6000/e300c2c3.md: New file.
4816 * config/rs6000/rs6000.c (processor_costs): Add new costs for
4818 (rs6000_override_options): Add e300c2 and e300c3 cases to
4819 processor_target_table. Do not allow usage of Altivec or Spe
4820 with e300 cores. Initialize rs6000_cost for e300c2 and e300c3.
4821 (rs6000_issue_rate): Set issue rate for e300c2 and e300c3.
4822 * config/rs6000/rs6000.h (processor_type): Add
4823 PROCESSOR_PPCE300C2 and PROCESSOR_PPCE300C3.
4824 (ASM_CPU_SPEC): Add e300c2 and e300c3.
4825 * config/rs6000/rs6000.md (define_attr "cpu"): Add ppce300c2
4826 and ppce300c3. Include e300c2c3.md.
4828 2008-02-23 David Edelsohn <edelsohn@gnu.org>
4830 * config/rs6000/rs6000.h (CONSTANT_ALIGNMENT): Use STRICT_ALIGNMENT
4831 instead of TARGET_STRICT_ALIGN.
4833 2008-02-23 Joseph Myers <joseph@codesourcery.com>
4835 * explow.c (memory_address): Assert that the generated address is
4838 2008-02-23 Francois-Xavier Coudert <coudert@clipper.ens.fr>
4841 * config/darwin-protos.h: Add darwin_patch_builtins prototype.
4842 * config/darwin-ppc-ldouble-patch.def: New file.
4843 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): New macro.
4844 * config/rs6000/rs6000.c (rs6000_init_builtins): Call
4845 SUBTARGET_INIT_BUILTINS if defined.
4846 * config/darwin.c (darwin_patch_builtin, darwin_patch_builtins):
4849 2008-02-23 Andrew Pinski <andrew_pinski@playstation.sony.com>
4852 * simplify-rtx.c (simplify_binary_operation_1): Add simplification
4853 of (and X (ior (not X) Y) and (and (ior (not X) Y) X).
4855 2008-02-23 Andrew Pinski <andrew_pinski@playstation.sony.com>
4858 * c-pch.c (c_common_valid_pch): Make the "too short to be a PCH
4859 file" warning condtional on -Winvalid-PCH.
4861 2008-02-23 Daniel Jacobowitz <dan@codesourcery.com>
4863 * expmed.c (extract_bit_field): Always use adjust_address for MEM.
4865 2008-02-23 Uros Bizjak <ubizjak@gmail.com>
4869 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use "!y" to
4870 prevent reload from using MMX registers.
4871 (*mov<mode>_internal): Ditto.
4872 (*movv2sf_internal_rex64): Ditto.
4873 (*movv2sf_internal): Ditto.
4875 2008-02-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4877 PR documentation/31569
4878 * doc/install.texi2html: Use makeinfo --no-number-sections.
4880 2008-02-22 Nathan Froyd <froydnj@codesourcery.com>
4882 * config/rs6000/rs6000.c (rs6000_legitimize_address): Check to
4883 ensure that we can address an entire entity > 8 bytes. Don't
4884 generate reg+reg addressing for such data.
4886 2008-02-22 Nathan Froyd <froydnj@codesourcery.com>
4888 * config/rs6000/rs6000.h (CONSTANT_ALIGNMENT): Don't overalign
4889 strings when optimizing for size, unless the target cares about
4892 2008-02-22 Tom Tromey <tromey@redhat.com>
4894 * regclass.c (current_pass): Remove declaration.
4896 2008-02-22 Anatoly Sokolov <aesok@post.ru>
4898 * config/avr/libgcc.S (__RAMPZ__): Define.
4899 (__do_copy_data): Add for devices with 128KB code memory.
4901 2008-02-22 Nathan Froyd <froydnj@codesourcery.com>
4903 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS):
4905 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Likewise.
4907 2008-02-22 Hans-Peter Nilsson <hp@axis.com>
4909 * config/cris/cris.h (REG_CLASS_FROM_LETTER): Recognize 'b' for
4912 2008-02-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4915 * c-typeck.c (build_binary_op): Warn about floating point
4916 comparisons if FLOAT_TYPE_P, not only for REAL_TYPE.
4918 2008-02-21 Janis Johnson <janis187@us.ibm.com>
4921 * config/rs6000/rs6000.c (rs6000_altivec_abi): Clarify comment.
4922 (rs6000_explicit_options): Split abi into spe_abi and altivec_abi,
4924 (rs6000_override_options): Set altivec_abi as default, not override,
4925 for 64-bit GNU/Linux; for 32-bit GNU/Linux default to altivec_abi for
4926 TARGET_ALTIVEC; default to TARGET_ALTIVEC_VRSAVE when AltiVec ABI
4927 is used; use new member spe_abi.
4928 (rs6000_handle_option): Set rs6000_explicit_options.vrsave; use
4929 spe_abi and altivec_abi.
4931 2008-02-22 Tomas Bily <tbily@suse.cz>
4933 * tree-vectorizer.c (vect_is_simple_reduction): Fix comment typo.
4935 2008-02-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4938 * config.build (build_file_translate): Set to `CMD //c' only if
4940 * Makefile.in (build_file_translate): Improve comment.
4942 2008-02-21 Jan Hubicka <jh@suse.cz>
4944 * predict.def (PRED_TREE_OPCODE_POSITIVE, PRED_TREE_OPCODE_NONEQUAL,
4945 PRED_TREE_OPCODE_POSITIVE, PRED_TREE_OPCODE_NONEQUAL, PRED_CALL,
4946 PRED_TREE_EARLY_RETURN, PRED_NULL_RETURN): Update.
4948 2008-02-21 Michael Matz <matz@suse.de>
4951 * config/i386/i386.c (ix86_expand_branch): Add missing breaks.
4953 2008-02-21 Uros Bizjak <ubizjak@gmail.com>
4955 * config/i386/i386.md (mov<mode>cc): Macroize expander from movsfcc,
4956 movdfcc and movxfcc using X87MODEF mode iterator and SSE_FLOAT_MODE_P
4958 * config/i386/sse.md (<sse>_movup<ssemodesuffixf2c>): Macroize insn
4959 from sse_movups adn sse2_movupd using SSEMODEF2P mode iterator and
4960 SSE_VEC_FLOAT_MODE_P as insn constraint.
4961 (<sse>_movmskp<ssemodesuffixf2c>): Ditto from similar patterns.
4962 (sse4a_movnt<mode>): Macroize insn from sse4a_movntsf and
4963 sse4a_movntdf using MODEF mode iterator.
4964 (sse4a_vmmovnt<mode>): Macroize insn form sse4a_vmmovntv2df and
4965 sse4a_vmmovntv4sf using SSEMODEF2P mode iterator.
4966 (sse4_1_blendp<ssemodesuffixf2c>): Ditto from similar patterns.
4967 (sse4_1_blendvp<ssemodesuffixf2c>): Ditto.
4968 (sse4_1_dpp<ssemodesuffixf2c>): Ditto.
4969 (sse4_1_roundp<ssemodesuffixf2c>): Ditto.
4970 (sse4_1_rounds<ssemodesuffixf2c>): Ditto.
4972 2008-02-21 Richard Guenther <rguenther@suse.de>
4974 * tree.def (PAREN_EXPR): New tree code.
4975 * fold-const.c (fold_unary): Remove PAREN_EXPR around constants
4977 * tree-pretty-print.c (dump_generic_node): Handle PAREN_EXPR.
4978 * expr.c (expand_expr_real_1): Likewise.
4979 * tree-inline.c (estimate_num_insns_1): Likewise.
4980 * tree-complex.c (expand_complex_move): Likewise.
4981 * tree-vectorizer.c (vect_is_simple_use): Treat PAREN_EXPR (x)
4984 2008-02-20 Kaz Kojima <kkojima@gcc.gnu.org>
4987 * config/sh/sh.c (find_barrier): Don't go past 'from' argument.
4989 2008-02-20 Kaz Kojima <kkojima@gcc.gnu.org>
4992 * config/sh/sh.md (jump_compact): Disable for crossing jumps.
4994 * config/sh/sh.c (find_barrier): Don't go past
4995 NOTE_INSN_SWITCH_TEXT_SECTIONS note.
4997 2008-02-20 DJ Delorie <dj@redhat.com>
4999 * config/h8300/h8300.md (insv): Force source operand to be a register.
5001 * config/h8300/h8300.c (h8300_expand_epilogue): Emit return insn
5002 as a jump, not as a plain insn.
5004 2008-02-20 Seongbae Park <seongbae.park@gmail.com>
5006 * doc/invoke.texi (Warning Options): Add new option
5007 -Wframe-larger-than=.
5008 (-Wframe-larger-than): Document.
5010 * flags.h (warn_frame_larger_than, frame_larger_than_size):
5011 Add declarations for new option variables.
5013 * final.c (final_start_function): Check the frame size
5014 before emission and issue a Wframe-larger-than warning.
5016 * opts.c (warn_frame_larger_than, frame_larger_than_size):
5017 Add definitions for new option variables.
5018 (common_handle_option): Handle new option OPT_Wframe_larger_than_.
5020 * common.opt (Wframe-larger-than=): New option.
5022 2008-02-20 Uros Bizjak <ubizjak@gmail.com>
5024 * config/i386/sse.md (<sse>_vmmul<mode>3): Fix typo in asm template.
5025 (<sse>_div<mode>3): Ditto.
5026 (<sse>_vmdiv<mode>3): Ditto.
5027 (<sse>_vmsqrt<mode>2): Ditto.
5028 (*smax<mode>3): Ditto.
5029 (sse5_frcz<mode>2): Ditto.
5030 (sse5_vmfrcz<mode>2): Ditto. Use TARGET_SSE5 instead of TARGET_ROUND
5033 2008-02-20 Richard Guenther <rguenther@suse.de>
5036 * builtins.c (validate_arg): If we want an INTEGER_TYPE,
5037 be happy with INTEGRAL_TYPE_P.
5039 2008-02-20 Richard Guenther <rguenther@suse.de>
5041 * fold-const.c (split_tree): Associate floatig-point expressions
5042 if flag_associative_math is set.
5044 2008-02-20 Richard Guenther <rguenther@suse.de>
5046 * tree.h (fold_real_zero_addition_p): Declare.
5047 * fold-const.c (fold_real_zero_addition_p): Export.
5048 * tree-ssa-reassoc.c (eliminate_using_constants): Also handle
5049 floating-point operations with zero and one.
5051 2008-02-20 Paolo Bonzini <bonzini@gnu.org>
5053 * doc/install.texi: Correct references to CFLAGS, replacing them
5054 with BOOT_CFLAGS. Document flags used during bootstrap for
5057 2008-02-20 Uros Bizjak <ubizjak@gmail.com>
5059 * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): New define.
5060 * config/i386/i386.md (*sse_setcc<mode>): Macroize from *sse_setccsf
5061 and *sse_setccdf using MODEF mode iterator and SSE_FLOAT_MODE_P as
5063 (smin<mode>3): Ditto from similar patterns.
5064 (smax<mode>3): Ditto.
5065 (*ieee_smin<mode>3): Ditto.
5066 (*ieee_smax<mode>3): Ditto.
5067 * config/i386/sse.md (sse): New mode attribute.
5068 (mov<mode>): Macroize expander from movv4sf and movv2df using
5069 SSEMODEF2P mode iterator.
5070 (<sse>_movnt<mode>): Ditto from similar patterns. Use
5071 SSE_VEC_FLOAT_MODE_P as insn constraint.
5072 (storent<mode>): Ditto.
5073 (storent<mode>): Macroize expander from storentsf and storentdf using
5074 MODEF mode iterator.
5075 (neg<mode>2): Macroize from negv4sf2 and negv2df2 using SSEMODEF2P
5076 mode iterator and SSE_VEC_FLOAT_MODE_P as insn constraint.
5077 (abs<mode>2): Ditto from similar patterns.
5078 (add<mode>3, *add<mode>3, <sse>_vmadd<mode>3): Ditto.
5079 (sub<mode>3, *sub<mode>3, <sse>_vmsub<mode>3): Ditto.
5080 (<sse>_div<mode>3, <sse>_vmdiv<mode>3): Ditto.
5081 (<sse>_vmsqrt<mode>2): Ditto.
5082 (smin<mode>3, *smin<mode>3_finite, *smin<mode>3)
5083 (<sse>_vmsmin<mode>3, *ieee_smin<mode>3): Ditto.
5084 (smax<mode>3, *smax<mode>3_finite, *smax<mode>3)
5085 (<sse>_vmsmax<mode>3, *ieee_smax<mode>3): Ditto.
5086 (<sse>_maskcmp<mode>3): Macroize from sse_maskcmpv4sf3,
5087 sse_maskcmpsf3, sse2_maskcmpv2df3 and sse2_maskcmpdf3 using SSEMODEF4
5088 mode iterator. Use SSE_FLOAT_MODE_P with SSE_VEC_FLOAT_MODE_P as
5090 (<sse>_comi): Macroize from sse_comi and sse2_comi using MODEF mode
5091 iterator and SSE_FLOAT_MODE_P as insn constraint.
5092 (<sse>_ucomi): Ditto from similar patterns.
5093 (<sse>_vmmaskcmp<mode>3): Macroize from sse_vmmaskcmpv4sf3 and
5094 sse2_vmmaskcmpv2df3 using SSEMODEF2P mode iterator and
5095 SSE_VEC_FLOAT_MODE_P as insn constraint.
5096 (vcond<mode>): Ditto from similar patterns.
5097 (and<mode>3, *and<mode>3): Ditto.
5098 (<sse>_nand<mode>3): Ditto.
5099 (ior<mode>3, *ior<mode>3): Ditto.
5100 (xor<mode>3, *xor<mode>3): Ditto.
5101 (*and<mode>3): Macroize from *andsf3 and *anddf3 using MODEF mode
5102 iterator and SSE_FLOAT_MODE_P as insn constraint.
5103 (*nand<mode>3): Ditto from similar patterns.
5104 (*ior<mode>3): Ditto.
5105 (*xor<mode>3): Ditto.
5107 2008-02-20 Ira Rosen <irar@il.ibm.com>
5109 * config/spu/spu.md (vec_unpacku_hi_v8hi, vec_unpacku_lo_v8hi,
5110 vec_unpacks_hi_v8hi, vec_unpacks_lo_v8hi, vec_unpacku_hi_v16qi,
5111 vec_unpacku_lo_v16qi, vec_unpacks_lo_v16qi): Implement.
5113 2008-02-19 Jan Hubicka <jh@suse.cz>
5115 * predict.c (tree_bb_level_predictions): Remove variable next
5116 mistakely introduced by previous commit.
5118 2008-02-19 Jan Hubicka <jh@suse.cz>
5120 * predict.c (predict_paths_leading_to): Rewrite.
5121 (predict_paths_for_bb): New.
5122 (tree_bb_level_predictions): Update call of predict_paths_leading_to.
5124 2008-02-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5127 * Makefile.in (build_file_translate): New.
5128 (gcc-vers.texi): Use it for translating $(abs_srcdir).
5129 * config.build (build_file_translate): Set to `CMD //c' on MinGW.
5130 * configure.ac (build_file_translate): Substitute it.
5131 * configure: Regenerate.
5133 2008-02-19 Jan Hubicka <jh@suse.cz>
5135 PR rtl-optimization/34408
5136 * see.c (see_def_extension_not_merged): Copy subreg so we don't have
5139 2008-02-19 Jan Hubicka <jh@suse.cz>
5142 * tree-inline.c (estimate_num_insns_1): Fix counting of cost of
5145 2008-02-19 H.J. Lu <hongjiu.lu@intel.com>
5148 * config/i386/i386-modes.def: Revert the last DI alignment
5149 change until Ada people can look into it.
5151 2008-02-19 Nick Clifton <nickc@redhat.com>
5153 * opts.c (print_specific_help): Fix typo in --help text.
5155 2008-02-19 Jakub Jelinek <jakub@redhat.com>
5158 * config/i386/cpuid.h (__cpuid, __get_cpuid_max): Use special
5159 32-bit inline asm without asm alternatives for host GCC < 3.0.
5161 2008-02-19 Richard Guenther <rguenther@suse.de>
5163 PR tree-optimization/34989
5164 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Re-structure.
5165 Allow propagation to INDIRECT_REF if we can simplify only.
5167 2008-02-19 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
5169 * c-common.c (warn_for_collisions_1): Use appropriate option when
5172 2008-02-19 Nick Clifton <nickc@redhat.com>
5175 * opts.c (undocumented_msg): Leave blank unless checking is enabled.
5176 (handle_options): Fix indentation.
5177 (print_filtered_help): If no language-specific options were
5178 displayed tell the user how to list all the options supported by
5179 the language's front-end.
5180 (print_specific_help): Fix indentation and remove duplicate line.
5181 (common_handle_option): Handle the -v option.
5182 For --help enable the display of undocumented options if the -v
5183 switch has been included on the command line.
5184 For --help= check for overlaps in the arguments between the option
5185 classes and the language names and issue a warning when they
5186 cannot be disambiguated.
5187 * c.opt (v): Pass on to the common option handler.
5189 2008-02-19 Revital Eres <eres@il.ibm.com>
5191 * modulo-sched.c (sms_schedule): Change dump message when
5192 create_ddg function fails.
5193 (try_scheduling_node_in_cycle): Rename row to cycle.
5194 (print_partial_schedule): Rename CYCLE to ROW.
5196 2008-02-19 Christian Bruel <christian.bruel@st.com>
5197 Zdenek Dvorak <ook@ucw.cz>
5199 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Check step alignment.
5201 2008-02-19 Uros Bizjak <ubizjak@gmail.com>
5204 * config/i386/i386.md (*x86_movsicc_0_m1_se): New insn pattern.
5205 (*x86_movdicc_0_m1_se): Ditto.
5207 2008-02-19 Uros Bizjak <ubizjak@gmail.com>
5209 * config/i386/sfp-machine.h (__gcc_CMPtype): New typedef.
5210 (CMPtype): Define as __gcc_CMPtype.
5211 * config/rs6000/sfp-machine.h (__gcc_CMPtype): New typedef.
5212 (CMPtype): Define as __gcc_CMPtype.
5214 2008-02-19 Hans-Peter Nilsson <hp@axis.com>
5216 Support valgrind 3.3 for --enable-checking=valgrind.
5217 * system.h: Consolidate ENABLE_VALGRIND_CHECKING-dependent defines
5219 [!VALGRIND_MAKE_MEM_NOACCESS]: Define as VALGRIND_MAKE_NOACCESS.
5220 [!VALGRIND_MAKE_MEM_DEFINED]: Define as VALGRIND_MAKE_READABLE.
5221 [!VALGRIND_MAKE_MEM_UNDEFINED]: Define as VALGRIND_MAKE_WRITABLE.
5222 * ggc-common.c: Remove ENABLE_VALGRIND_CHECKING-dependent defines.
5223 Replace use of VALGRIND_MAKE_READABLE, VALGRIND_MAKE_WRITABLE, and
5224 VALGRIND_MAKE_NOACCESS with VALGRIND_MAKE_MEM_DEFINED,
5225 VALGRIND_MAKE_MEM_UNDEFINED, and VALGRIND_MAKE_MEM_NOACCESS
5227 * ggc-zone.c: Similar.
5228 * ggc-page.c: Similar.
5230 2008-02-19 Paul Brook <paul@codesourcery.com>
5233 * config/arm/ieee754-df.S: Fix do_it typo.
5234 * config/arm/ieee754-sf.S: Fix do_it typo.
5236 2008-02-18 H.J. Lu <hongjiu.lu@intel.com>
5239 * config/i386/i386.c (OPTION_MASK_ISA_MMX_SET): New.
5240 (OPTION_MASK_ISA_3DNOW_SET): Likewise.
5241 (OPTION_MASK_ISA_SSE_SET): Likewise.
5242 (OPTION_MASK_ISA_SSE2_SET): Likewise.
5243 (OPTION_MASK_ISA_SSE3_SET): Likewise.
5244 (OPTION_MASK_ISA_SSSE3_SET): Likewise.
5245 (OPTION_MASK_ISA_SSE4_1_SET): Likewise.
5246 (OPTION_MASK_ISA_SSE4_2_SET): Likewise.
5247 (OPTION_MASK_ISA_SSE4_SET): Likewise.
5248 (OPTION_MASK_ISA_SSE4A_SET): Likewise.
5249 (OPTION_MASK_ISA_SSE5_SET): Likewise.
5250 (OPTION_MASK_ISA_3DNOW_A_UNSET): Likewise.
5251 (OPTION_MASK_ISA_MMX_UNSET): Updated.
5252 (OPTION_MASK_ISA_3DNOW_UNSET): Updated.
5253 (OPTION_MASK_ISA_SSE_UNSET): Likewise.
5254 (OPTION_MASK_ISA_SSE3_UNSET): Likewise.
5255 (OPTION_MASK_ISA_SSSE3_UNSET): Likewise.
5256 (OPTION_MASK_ISA_SSE4_1_UNSET): Likewise.
5257 (OPTION_MASK_ISA_SSE4_2_UNSET): Likewise.
5258 (OPTION_MASK_ISA_SSE4A_UNSET): Likewise.
5259 (OPTION_MASK_ISA_SSE5_UNSET): Likewise.
5260 (OPTION_MASK_ISA_SSE4): Removed.
5261 (ix86_handle_option): Turn on bits in ix86_isa_flags and
5262 ix86_isa_flags_explicit with OPTION_MASK_ISA_XXX_SET for -mXXX.
5263 (override_options): Don't turn on implied SSE/MMX bits in
5266 2008-02-18 H.J. Lu <hongjiu.lu@intel.com>
5268 * config/i386/i386-modes.def: Use 4 byte alignment on DI for
5271 2008-02-18 Joey Ye <joey.ye@intel.com>
5274 * tree-nested.c (insert_field_into_struct): Set type alignment
5275 to field alignment if the former is less than the latter.
5277 2008-02-18 Jakub Jelinek <jakub@redhat.com>
5279 * BASE-VER: Set to 4.4.0.
5281 2008-02-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5283 * doc/c-tree.texi: Use @dots{} and @enddots{} where appropriate.
5284 * doc/cfg.texi: Likewise.
5285 * doc/extend.texi: Likewise.
5286 * doc/gty.texi: Likewise.
5287 * doc/invoke.texi: Likewise.
5288 * doc/loop.texi: Likewise.
5289 * doc/md.texi: Likewise.
5290 * doc/passes.texi: Likewise.
5291 * doc/rtl.texi: Likewise.
5292 * doc/sourcebuild.texi: Likewise.
5293 * doc/tm.texi: Likewise.
5294 * doc/tree-ssa.texi: Likewise.
5296 2008-02-17 Richard Guenther <rguenther@suse.de>
5299 * tree-complex.c (init_parameter_lattice_values): Handle parameters
5300 without default definition.
5302 2008-02-17 Richard Guenther <rguenther@suse.de>
5304 PR tree-optimization/35231
5305 * tree-vrp.c (register_edge_assert_for): Do not assume A == 0
5308 2008-02-17 Uros Bizjak <ubizjak@gmail.com>
5311 2008-02-15 Uros Bizjak <ubizjak@gmail.com>
5312 * config/i386/sfp-machine.h (CMPtype): Define as typedef using
5313 libgcc_cmp_return mode.
5315 2008-02-16 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
5318 * doc/invoke.texi (-std): Clarify description of -std= and -ansi.
5320 2008-02-16 Ralf Corsepius <ralf.corsepius@rtems.org>
5322 * config/m68k/t-rtems (M68K_MLIB_CPU): Add 5208, 5307, 5407, 5475
5325 2008-02-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5327 * doc/c-tree.texi: Use `@.' where appropriate.
5328 * doc/extend.texi: Likewise.
5329 * doc/install.texi: Likewise.
5330 * doc/invoke.texi: Likewise.
5331 * doc/loop.texi: Likewise.
5332 * doc/makefile.texi: Likewise.
5333 * doc/md.texi: Likewise.
5334 * doc/passes.texi: Likewise.
5335 * doc/standards.texi: Likewise.
5336 * doc/tm.texi: Likewise.
5338 2008-02-15 Jakub Jelinek <jakub@redhat.com>
5341 * omp-low.c (expand_omp_for_generic): Don't initialize fd->v
5343 (expand_omp_for_static_nochunk): Initialize fd->v in seq_start_bb
5344 rather than in entry_bb.
5346 2008-02-15 Uros Bizjak <ubizjak@gmail.com>
5348 * config/i386/sfp-machine.h (CMPtype): Define as typedef using
5349 libgcc_cmp_return mode.
5351 2008-02-15 Jakub Jelinek <jakub@redhat.com>
5354 * tree-nested.c (convert_call_expr): Put FRAME.* vars into
5355 OMP_CLAUSE_SHARED rather than OMP_CLAUSE_FIRSTPRIVATE clause.
5357 2008-02-15 Richard Guenther <rguenther@suse.de>
5358 Zdenek Dvorak <ook@ucw.cz>
5360 PR tree-optimization/35164
5361 * tree-flow.h (stmt_references_abnormal_ssa_name): Declare.
5362 * tree-dfa.c (stmt_references_abnormal_ssa_name): New function.
5363 * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_vars):
5364 Only propagate addresses which do not have abnormal SSA_NAMEs
5367 2008-02-15 Joseph Myers <joseph@codesourcery.com>
5370 * config/m68k/m68k.h (DWARF_CIE_DATA_ALIGNMENT): Define.
5372 2008-02-15 Jan Hubicka <jh@suse.cz>
5375 * ipa.c (cgraph_remove_unreachable_nodes): Clear local.inlinable flag.
5377 2008-02-15 Uros Bizjak <ubizjak@gmail.com>
5380 * function.c (pad_to_arg_alignment): Remove test for STACK_BOUNDARY
5381 when calculating alignment_pad.
5383 2008-02-15 Uros Bizjak <ubizjak@gmail.com>
5385 * config/i386/i386.h (CLEAR_RATIO): Use MIN macro.
5386 (WIDEST_HARDWARE_FP_SIZE): Use LONG_DOUBLE_TYPE_SIZE define.
5387 * config/i386/darwin.h (PREFERRED_STACK_BOUNDARY): Use MAX macro
5388 and STACK_BOUNDARY define.
5390 2008-02-14 Danny Smith <dannysmith@users.sourceforge.net>
5392 PR preprocessor/35061
5393 * c-pragma.c (handle_pragma_pop_macro): Check that
5394 pushed_macro_table has been allocated.
5396 2008-02-14 Eric Botcazou <ebotcazou@adacore.com>
5399 * gimplify.c (force_gimple_operand_bsi): Revert 2008-02-12 change.
5400 (force_gimple_operand): Likewise.
5401 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Add new cases
5402 for TARGET_MEM_REF and CONVERT_EXPR/NON_LVALUE_EXPR/NOP_EXPR.
5403 Also recurse on the operand for regular VIEW_CONVERT_EXPRs.
5404 (find_interesting_uses_address): Check addressability and alignment
5405 of the base expression only after substituting bases of IVs into it.
5407 2008-02-14 Michael Matz <matz@suse.de>
5410 * function.c (instantiate_virtual_regs_in_insn): Reload address
5411 before falling back to reloading the whole operand.
5413 2008-02-14 Andreas Krebbel <krebbel1@de.ibm.com>
5415 * config/s390/s390.c (s390_mainpool_start): Emit the pool
5416 before the first section switch note.
5418 2008-02-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5420 * doc/bugreport.texi: Update copyright years.
5421 * doc/c-tree.texi: Likewise.
5422 * doc/cfg.texi: Likewise.
5423 * doc/cpp.texi: Likewise.
5424 * doc/cppinternals.texi: Likewise.
5425 * doc/fragments.texi: Likewise.
5426 * doc/frontends.texi: Likewise.
5427 * doc/gcc.texi: Likewise.
5428 * doc/gty.texi: Likewise.
5429 * doc/hostconfig.texi: Likewise.
5430 * doc/implement-c.texi: Likewise.
5431 * doc/libgcc.texi: Likewise.
5432 * doc/loop.texi: Likewise.
5433 * doc/makefile.texi: Likewise.
5434 * doc/options.texi: Likewise.
5435 * doc/passes.texi: Likewise.
5436 * doc/rtl.texi: Likewise.
5437 * doc/sourcebuild.texi: Likewise.
5438 * doc/standards.texi: Likewise.
5439 * doc/tree-ssa.texi: Likewise.
5440 * doc/trouble.texi: Likewise.
5442 * doc/extend.texi: Use @: or add comma where appropriate.
5443 * doc/invoke.texi: Likewise.
5444 * doc/tm.texi: Likewise.
5446 2008-02-14 Alan Modra <amodra@bigpond.net.au>
5449 * config/rs6000/rs6000.md (restore_stack_block): Force operands[1]
5452 2008-02-14 Jesper Nilsson <jesper.nilsson@axis.com>
5454 * doc/md.texi (clz, ctz): Add reference.
5455 * doc/rtl.texi (clz, ctz): Likewise.
5457 2008-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5460 * Makefile.in (gcc-vers.texi): Use abs_srcdir for the value of
5463 2008-02-13 Andreas Krebbel <krebbel1@de.ibm.com>
5465 * config/s390/s390.c (struct constant_pool): New field
5466 emit_pool_after added.
5467 (s390_mainpool_start): Set the emit_pool_after flag according
5468 to the section switch notes.
5469 (s390_mainpool_finish): Consider emit_pool_after when emitting
5470 the literal pool at the end of the function.
5471 (s390_chunkify_start): Force literal pool splits at section
5474 2008-02-13 Michael Matz <matz@suse.de>
5477 * var-tracking.c (clobber_variable_part): Correctly traverse the
5480 2008-02-13 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
5483 * doc/invoke.texi (Debugging Options): Remove -fdump-tree-inlined.
5484 Add -fdump-ipa-inline.
5485 * tree-dump.c (dump_files): Remove tree-inlined dump.
5486 * tree-pass.h (tree_dump_index): Remove TDI_inlined.
5488 2008-02-12 Richard Guenther <rguenther@suse.de>
5490 PR tree-optimization/35171
5491 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Deal with
5494 2008-02-12 Richard Guenther <rguenther@suse.de>
5497 * fold-const.c (fold_widened_comparison): Use get_unwidened in
5498 value-preserving mode. Disallow final truncation.
5500 2008-02-12 Eric Botcazou <ebotcazou@adacore.com>
5503 * gimplify.c (force_gimple_operand_bsi): Move SSA renaming
5504 code from here to...
5505 (force_gimple_operand): ...here.
5507 2008-02-12 Jakub Jelinek <jakub@redhat.com>
5510 * tree-sra.c (sra_build_assignment): fold_convert SRC if copying
5511 non-compatible pointers.
5512 (generate_element_copy): If SRC and DST are RECORD_TYPEs with
5513 different FIELD_DECLs, try harder by comparing field offsets, sizes
5517 * function.c (match_asm_constraints_1): Don't replace the same input
5520 2008-02-12 Anatoly Sokolov <aesok@post.ru>
5522 * config/avr/avr.h (AVR_HAVE_RAMPZ): Define.
5523 * config/avr/avr.c (expand_prologue): Save RAMPZ register.
5524 (expand_epilogue): Restore RAMPZ register.
5525 * config/avr/avr.md (RAMPZ_ADDR): New constant.
5527 2008-02-11 Kai Tietz <kai.tietz@onevision.com>
5529 * config/i386/cygwin.asm: (__alloca): Correct calling
5530 convention and alignment.
5531 (__chkstk): Force 8 byte stack alignment.
5533 2008-02-11 Uros Bizjak <ubizjak@gmail.com>
5534 Richard Guenther <rguenther@suse.de>
5536 PR tree-optimization/33992
5537 * tree-ssa-loop-im.c (rewrite_bittest): Fixup the type of
5538 the zero we compare against.
5540 2008-02-10 Danny Smith <dannysmith@users.sourceforge.net>
5543 * gthr-win32.h (__gthread_mutex_destroy_function): New function
5544 to CloseHandle after unlocking to prevent accumulation of handle
5547 2008-02-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5550 * pa.c (legitimize_pic_address): Add REG_EQUAL note on sets with a
5551 pic_label_operand source. Similarly, add a REG_LABEL_OPERAND note
5552 and update LABEL_NUSES during and after reload.
5554 2008-02-08 Steven Bosscher <stevenb.gcc@gmail.com>
5557 * combine.c (simplify_if_then_else): Make sure the comparison is
5558 against const0_rtx when simplifying to (abs x) or (neg (abs X)).
5560 2008-02-08 Richard Sandiford <rsandifo@nildram.co.uk>
5563 * double-int.h: Don't include gmp.h for GENERATOR_FILEs.
5564 (mpz_set_double_int, mpz_get_double_int): Hide from GENERATOR_FILEs.
5565 * real.h: Don't include gmp.h or mpfr.h for GENERATOR_FILEs.
5566 (real_from_mpfr, mpfr_from_real): Hide from GENERATOR_FILEs.
5567 * tree.h (get_type_static_bounds): Likewise.
5569 2008-02-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5571 * doc/invoke.texi (Option Summary, C++ Dialect Options)
5572 (Objective-C and Objective-C++ Dialect Options, Warning Options):
5573 Make -Wfoo language annotations match what the compiler outputs.
5575 2008-02-08 Sa Liu <saliu@de.ibm.com>
5577 * config/spu/spu-builtins.def: Fixed wrong parameter type in spu
5578 intrinsics spu_convts, spu_convtu, spu_convtf.
5579 * testsuite/gcc.target/spu/intrinsics-3.c: New. Test error messages.
5581 2008-02-08 Hans-Peter Nilsson <hp@axis.com>
5583 * doc/extend.texi (Function Attributes) <noinline>: Mention
5584 asm ("") as method to keep calls.
5586 2008-02-07 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
5589 * doc/options.texi (Options): Replace references to opts.sh with
5591 * opts-common.c: Likewise.
5592 * optc-gen.awk: Likewise.
5594 2008-02-07 Andreas Krebbel <krebbel1@de.ibm.com>
5596 * config/s390/s390.h (FUNCTION_ARG_REGNO_P): Fix fprs for 64 bit.
5598 2008-02-07 Richard Henderson <rth@redhat.com>
5601 * config/alpha/alpha.c (alpha_emit_xfloating_compare): Use an
5602 EXPR_LIST for the REG_EQUAL instead of a comparison with a
5605 2008-02-07 Uros Bizjak <ubizjak@gmail.com>
5607 PR tree-optimization/35085
5608 * tree-ssa-reassoc.c (rewrite_expr_tree): Enable destructive update
5609 for operand entry oe2 in addition to operand entry oe3 in order to
5610 expose more opportunities for vectorizer sum reduction.
5612 2008-02-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5615 * Makefile.in (LIBS): Remove $(GMPLIBS).
5616 (cc1-dummy, cc1): Add $(GMPLIBS).
5618 2008-02-06 Jan Hubicka <jh@suse.cz>
5621 * i386.md (moddf_integer): Do not produce partial memory stalls for
5622 targets where it hurts.
5624 2008-02-06 Uros Bizjak <ubizjak@gmail.com>
5627 * optabs.c (expand_float): Do not check for decimal modes when
5628 expanding unsigned integer through signed conversion.
5630 2008-02-06 Nick Clifton <nickc@redhat.com>
5632 * config/stormy16/stormy16.md (eqbranchsi): Replace a match_dup
5633 inside the clobber with a match_operand and duplicated operand
5634 number in the constraint.
5635 (ineqbranchsi): Delete redundant comment.
5637 2008-02-06 Ralf Corsepius <ralf.corsepius@rtems.org>
5639 * config/arm/rtems-elf.h (TARGET_OS_CPP_BUILTINS): Add
5640 builtin_define ("__USE_INIT_FINI__").
5641 * config/h8300/t-rtems (MULTILIB_OPTION,MULTILIB_DIRNAMES): Add
5643 * gthr-rtems.h: Remove __GTHREAD_MUTEX_INIT.
5645 2008-02-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5647 PR documentation/30330
5648 * doc/invoke.texi (C++ Dialect Options)
5649 (Objective-C and Objective-C++ Dialect Options, Warning Options):
5650 For each warning option -Wfoo that allows -Wno-foo, ensure both
5651 -Wfoo and -Wno-foo are listed in the option index. Fix index
5652 entry of -Wswitch-default, index -Wnormalized= including the
5653 `=', and -Wlarger-than-@var{len} including @var{len}.
5655 2008-02-05 Uros Bizjak <ubizjak@gmail.com>
5657 * config/i386/i386.md (floatunssisf2): Use
5658 ix86_expand_convert_uns_sisf_sse also for TARGET_SSE.
5659 (floatunssi<mode>2): Rename from floatunssisf2 and floatunssidf2.
5660 Macroize expander using MODEF mode iterator.
5662 2008-02-05 Diego Novillo <dnovillo@google.com>
5664 http://gcc.gnu.org/ml/gcc-patches/2008-02/msg00140.html
5667 * tree-vrp.c (vrp_evaluate_conditional): Revert fix for PR 33738.
5669 2008-02-05 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5672 * toplev.c (print_version): Honor `indent' for GMP/MPFR warnings.
5674 2008-02-05 H.J. Lu <hongjiu.lu@intel.com>
5677 * config/i386/i386.c (ix86_function_sseregparm): Add an arg
5678 to indicate if a message should be generated.
5679 (init_cumulative_args): Updated.
5680 (function_value_32): Likewise.
5682 2008-02-05 Joseph Myers <joseph@codesourcery.com>
5684 * doc/include/texinfo.tex: Update to version 2008-02-04.16.
5686 2008-02-05 Uros Bizjak <ubizjak@gmail.com>
5689 * config/i386/i386.md (floatunsisf2): Enable for TARGET_SSE_MATH only.
5690 Call ix86_expand_convert_uns_sisf_sse for TARGET_SSE2.
5692 2008-02-04 Diego Novillo <dnovillo@google.com>
5694 http://gcc.gnu.org/ml/gcc-patches/2008-02/msg00110.html
5697 * tree-vrp.c (vrp_evaluate_conditional): With
5698 -Wtype-limits, emit a warning when comparing against a
5699 constant outside the natural range of OP0's type.
5701 2008-02-04 Richard Guenther <rguenther@suse.de>
5704 * expr.c (count_type_elements): Give for unions instead of
5707 2008-02-04 Richard Guenther <rguenther@suse.de>
5710 * gimplify.c (gimplify_init_ctor_eval): Convert array indices
5711 to TYPE_DOMAINs base type instead of using bitsizetype here.
5713 2008-02-03 Jason Merrill <jason@redhat.com>
5715 * print-tree.c (print_node) [CONSTRUCTOR]: Print elements.
5717 2008-02-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5720 * doc/invoke.texi (C++ Dialect Options, Optimize Options)
5721 (HPPA Options, i386 and x86-64 Options, IA-64 Options)
5722 (RS/6000 and PowerPC Options): Fix typos and markup.
5723 * doc/passes.texi (Tree-SSA passes): Likewise.
5725 2008-02-02 Michael Matz <matz@suse.de>
5728 * postreload-gcse.c (record_last_reg_set_info_regno): Renamed
5729 from record_last_reg_set_info.
5730 (record_last_reg_set_info): Take an RTX argument, iterate over all
5731 constituent hardregs.
5732 (record_last_set_info, record_opr_changes): Change calls to
5733 new signature or to record_last_reg_set_info_regno.
5735 2008-02-02 Gerald Pfeifer <gerald@pfeifer.com>
5737 * doc/extend.texi (X86 Built-in Functions): Fix grammar.
5739 2008-02-01 Hans-Peter Nilsson <hp@axis.com>
5741 PR rtl-optimization/34773
5742 * reg-notes.def (EQUAL): Mention significance of combination of
5743 REG_EQUAL and REG_RETVAL.
5744 * fwprop.c (try_fwprop_subst): Don't add REG_EQUAL to an
5745 insn that has a REG_RETVAL.
5747 2008-02-01 Roger Sayle <roger@eyesopen.com>
5750 * configure.ac (--enable-fixed-point): Disable unless explicitly
5752 * configure: Regenerate.
5754 2008-02-01 Richard Guenther <rguenther@suse.de>
5757 * invoke.texi (-finline-limit): Remove no longer true parts
5758 of the documentation. Note that there is no default value.
5760 2008-02-01 Andrew Pinski <pinskia@gmail.com>
5761 Mark Mitchell <mark@codesourcery.com>
5762 Ben Elliston <bje@au.ibm.com>
5765 * doc/extend.texi (Other Builtins): Document.
5767 2008-01-31 Tom Browder <tom.browder@gmail.com>
5769 * doc/c-tree.texi (Types): Fix grammar.
5770 (Expression trees): Ditto.
5771 * doc/passes.texi (Tree-SSA passes): Ditto.
5773 * doc/configterms.texi (Configure Terms): Fix typo.
5774 * doc/cpp.texi (Common Predefined Macros): Ditto.
5775 * doc/md.texi (Machine Constraints): Ditto.
5777 * doc/makefile.texi (Makefile): Add comma.
5779 2008-01-31 Tom Browder <tom.browder@gmail.com>
5780 Gerald Pfeifer <gerald@pfeifer.com>
5782 * doc/sourcebuild.texi (Front End): Remove references to CVS
5783 and CVSROOT/modules.
5784 (Texinfo Manuals): Replace reference to CVS by one to SVN.
5785 (Back End): Remove reference to CVS.
5787 2008-01-31 Richard Sandiford <rsandifo@nildram.co.uk>
5790 * config/mips/mips.c (gen_load_const_gp): New function, taking a
5792 (mips16_gp_pseudo_reg): ...here.
5793 * config/mips/mips.md (load_const_gp): Replace with...
5794 (load_const_gp_<mode>): ...this :P-based insn.
5796 2008-01-31 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
5798 * doc/invoke.texi (-ansi): Mention explicitly corresponding -std=
5799 options. Minor fixes.
5800 (-std): Move reference to standards closer to where language
5801 standards are first mentioned.
5803 2008-01-31 Richard Sandiford <rsandifo@nildram.co.uk>
5805 PR rtl-optimization/34995
5806 * reload.c (alternative_allows_const_pool_ref): Take an rtx
5807 parameter and return a bool. If the rtx parameter is nonnull,
5808 check that it satisfies an EXTRA_MEMORY_CONSTRAINT.
5809 (find_reloads): Update call accordingly. Pass the new operand
5810 if it needed no address reloads, otherwise pass null.
5812 2008-01-30 Richard Henderson <rth@redhat.com>
5815 * tree.c (build_type_attribute_qual_variant): Skip TYPE_DOMAIN
5816 for unbounded arrays.
5818 2008-01-30 Silvius Rus <rus@google.com>
5820 * config/i386/xmmintrin.h (_mm_prefetch): Add const to first arg.
5822 2008-01-30 Jan Hubicka <jh@suse.cz>
5825 * i386.c (init_cumulative_args): Use real function declaration when
5828 2008-01-30 Richard Sandiford <rsandifo@nildram.co.uk>
5830 PR rtl-optimization/34998
5831 * global.c (build_insn_chain): Treat non-subreg_lowpart
5832 SUBREGs of pseudos as clobbering all the words covered by the
5833 SUBREG, not just all the bytes.
5834 * ra-conflict.c (clear_reg_in_live): Likewise. Take the
5835 original df_ref rather than an extract parameter.
5836 (global_conflicts): Update call accordingly.
5838 2008-01-30 Andreas Krebbel <krebbel1@de.ibm.com>
5840 * config/s390/fixdfdi.h (__fixunstfdi, __fixtfdi): Rearrange
5841 the overflow check to make it easier to read.
5842 (__fixtfdi): Change the type of the ll member in union
5843 long_double to UDItype_x.
5845 2008-01-30 Jakub Jelinek <jakub@redhat.com>
5848 * cgraph.h (cgraph_update_edges_for_call_stmt): New prototype.
5849 * cgraph.c (cgraph_update_edges_for_call_stmt): New function.
5850 * tree-inline.c (fold_marked_statements): Call
5851 cgraph_update_edges_for_call_stmt if folding a call statement.
5852 * cgraphunit.c (verify_cgraph_node): Set cfun to this_cfun for
5853 debug_generic_stmt calls, reset it back afterwards.
5856 * c-decl.c (start_decl): Don't pedwarn about TREE_READONLY
5858 * c-typeck.c (build_external_ref): Don't pedwarn about
5859 static vars in current function's scope.
5861 2008-01-29 Joseph Myers <joseph@codesourcery.com>
5863 * config.gcc (i[34567]86-*-nto-qnx*): Remove deprecation.
5865 2008-01-29 Bernhard Fischer <aldot@gcc.gnu.org>
5868 * ipa-struct-reorg.c: Fix spelling.
5869 * params.def: Ditto.
5871 2008-01-29 Richard Guenther <rguenther@suse.de>
5874 * tree-inline.h (struct copy_body_data): Add remapping_type_depth
5876 * tree-inline.c (remap_type): Increment remapping_type_depth
5877 around remapping types.
5878 (copy_body_r): Only add referenced variables if they are referenced
5879 from code, not types.
5881 2008-01-29 Douglas Gregor <doug.gregor@gmail.com>
5892 * c-pretty-print.c (pp_c_type_qualifier_list): Don't try to print
5893 qualifiers for an ERROR_MARK_NODE or a NULL_TREE.
5895 2008-01-28 Andy Hutchinson <hutchinsonandy@netscape.net>
5898 * config/avr/avr.c (expand_prologue): Use correct QI mode frame
5899 pointer for tiny stack.
5901 2008-01-28 Bernhard Fischer <aldot@gcc.gnu.org>
5903 * doc/tree-ssa.texi: Add cindex PHI nodes and improve wording.
5905 2008-01-28 Bernhard Fischer <aldot@gcc.gnu.org>
5907 * config/vx-common.h: Fix typo in comment.
5909 2008-01-28 Ian Lance Taylor <iant@google.com>
5913 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
5914 coalesce pointers if they have different DECL_NO_TBAA_P values.
5915 * tree-ssa-copy.c (may_propagate_copy): Don't propagate copies
5916 between variables with different DECL_NO_TBAA_P values.
5918 2008-01-28 Nathan Froyd <froydnj@codesourcery.com>
5921 * config/rs6000/rs6000.c (small_data_operand): Vectors and floats
5922 are not legitimate small data references on SPE targets.
5924 2008-01-28 David Daney <ddaney@avtrex.com>
5926 * doc/install.texi (mips-*-*): Recommend binutils 2.18.
5928 2008-01-28 David Daney <ddaney@avtrex.com>
5930 * doc/install.texi (--disable-libgcj-bc): Reword documentation.
5932 2008-01-27 Joseph Myers <joseph@codesourcery.com>
5934 * config.gcc (strongarm*-*, ep9312*-*, xscale*-*, parisc*-*,
5935 m680[012]0-*, *-*-beos*, *-*-kaos*, *-*-linux*aout*,
5936 *-*-linux*libc1*, *-*-solaris2.[0-6], *-*-solaris2.[0-6].*,
5937 *-*-sysv*, *-*-windiss*, alpha*-*-unicosmk*, cris-*-aout,
5938 hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-bsd*,
5939 i[34567]86-sequent-ptx4*, i[34567]86-*-nto-qnx*,
5940 i[34567]86-*-sco3.2v5*, i[34567]86-*-uwin*, powerpc-*-chorusos*,
5941 vax-*-bsd*, vax-*-ultrix*): Mark obsolete.
5943 2008-01-27 Bernhard Fischer <aldot@gcc.gnu.org>
5945 * basic-block.h (condjump_equiv_p): Fix comment.
5947 2008-01-27 Bernhard Fischer <aldot@gcc.gnu.org>
5949 * tree-pretty-print.c (print_generic_decl, print_generic_stmt,
5950 print_generic_stmt_indented): Fix comment.
5952 2008-01-27 Bernhard Fischer <aldot@gcc.gnu.org>
5954 * configure.ac (__stack_chk_fail): Add detecion for availability
5955 of SSP in uClibc by checking if __UCLIBC_HAS_SSP__ is defined.
5956 * configure: Regenerate.
5958 2008-01-26 Maxim Kuvyrkov <maxim@codesourcery.com>
5961 * final.c (output_addr_const): Handle TRUNCATE.
5963 2008-01-26 Zdenek Dvorak <ook@ucw.cz>
5966 * tree-ssa-loop-ivopts.c (comp_cost): New type.
5967 (zero_cost, infinite_cost): New constants.
5968 (struct cost_pair): Change type of cost to comp_cost.
5969 (struct iv_ca): Change type of cand_use_cost and cost to comp_cost.
5970 (new_cost, add_costs, sub_costs, compare_costs, infinite_cost_p):
5972 (set_use_iv_cost, force_expr_to_var_cost, force_var_cost,
5973 split_address_cost, ptr_difference_cost, difference_cost,
5974 get_computation_cost_at, get_computation_cost,
5975 determine_use_iv_cost_generic, determine_use_iv_cost_address,
5976 determine_use_iv_cost_condition, determine_use_iv_costs,
5977 cheaper_cost_pair, iv_ca_recount_cost, iv_ca_set_no_cp,
5978 iv_ca_set_cp, iv_ca_cost, iv_ca_new, iv_ca_dump, iv_ca_extend,
5979 iv_ca_narrow, iv_ca_prune, try_improve_iv_set, find_optimal_iv_set):
5980 Change type of cost to comp_cost.
5981 (determine_iv_cost): Increase cost of non-original ivs, instead
5982 of decreasing the cost of original ones.
5983 (get_address_cost): Indicate the complexity of the addressing mode
5985 (try_add_cand_for): Prefer using ivs not specific to some object.
5986 * tree-flow.h (force_expr_to_var_cost): Declaration removed.
5988 2008-01-26 Peter Bergner <bergner@vnet.ibm.com>
5989 Janis Johnson <janis187@us.ibm.com>
5992 * doc/tm.texi (TARGET_EXPAND_TO_RTL_HOOK): Document.
5993 (TARGET_INSTANTIATE_DECLS): Likewise.
5994 * target.h (expand_to_rtl_hook): New target hook.
5995 (instantiate_decls): Likewise.
5996 * function.c (instantiate_decl): Make non-static. Rename to...
5997 (instantiate_decl_rtl): ... this.
5998 (instantiate_expr): Use instantiate_decl_rtl.
5999 (instantiate_decls_1): Likewise.
6000 (instantiate_decls): Likewise.
6001 (instantiate_virtual_regs: Call new instantiate_decls taget hook.
6002 * function.h (instantiate_decl_rtl): Add prototype.
6003 * cfgexpand.c (target.h): New include.
6004 (tree_expand_cfg): Call new expand_to_rtl_hook target hook.
6005 * target-def.h (TARGET_EXPAND_TO_RTL_HOOK): New define.
6006 (TARGET_INSTANTIATE_DECLS): Likewise.
6007 (TARGET_INITIALIZER): New target hooks added.
6008 * config/rs6000/rs6000-protos.h (rs6000_secondary_memory_needed_rtx):
6010 * config/rs6000/rs6000.c (tree-flow.h): New include.
6011 (machine_function): Add sdmode_stack_slot field.
6012 (rs6000_alloc_sdmode_stack_slot): New function.
6013 (rs6000_instantiate_decls): Likewise.
6014 (rs6000_secondary_memory_needed_rtx): Likewise.
6015 (rs6000_check_sdmode): Likewise.
6016 (TARGET_EXPAND_TO_RTL_HOOK): Target macro defined.
6017 (TARGET_INSTANTIATE_DECLS): Likewise.
6018 (rs6000_hard_regno_mode_ok): Allow SDmode.
6019 (num_insns_constant): Likewise. Handle _Decimal32 constants.
6020 (rs6000_emit_move): Handle SDmode.
6021 (function_arg_advance): Likewise.
6022 (function_arg): Likewise.
6023 (rs6000_gimplify_va_arg): Likewise. Add special handling of
6024 SDmode var args for 32-bit compiles.
6025 (rs6000_secondary_reload_class): Handle SDmode.
6026 (rs6000_output_function_epilogue): Likewise.
6027 (rs6000_function_value): Simplify if statement.
6028 (rs6000_libcall_value): Likewise.
6029 * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Handle SDmode.
6030 (SECONDARY_MEMORY_NEEDED_RTX): Add define.
6031 * config/rs6000/dfp.md (movsd): New define_expand and splitter.
6032 (movsd_hardfloat): New define_insn.
6033 (movsd_softfloat): Likewise.
6034 (movsd_store): Likewise.
6035 (movsd_load): Likewise.
6036 (extendsddd2): Likewise.
6037 (extendsdtd2): Likewise.
6038 (truncddsd2): Likewise.
6039 (movdd_hardfloat64): Fixup comment.
6040 (UNSPEC_MOVSD_LOAD): New constant.
6041 (UNSPEC_MOVSD_STORE): Likewise.
6043 2008-01-26 Jakub Jelinek <jakub@redhat.com>
6046 * c-pretty-print.c (pp_c_exclusive_or_expression): Handle
6048 (pp_c_logical_and_expression): Handle TRUTH_AND_EXPR.
6049 (pp_c_logical_or_expression): Handle TRUTH_OR_EXPR.
6050 (pp_c_expression): Handle TRUTH_AND_EXPR, TRUTH_OR_EXPR
6053 2008-01-26 David Edelsohn <edelsohn@gnu.org>
6056 * config.gcc: Separate AIX 5.3 from AIX 6.1.
6057 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
6058 __LONGDOUBLE128 too.
6059 * config/rs6000/aix61.h: New file.
6061 2008-01-26 Richard Sandiford <rsandifo@nildram.co.uk>
6063 PR rtl-optimization/34959
6064 * optabs.c (expand_unop): In libcall notes, give ffs, clz, ctz,
6065 popcount and parity rtxes the same mode as their operand.
6066 Truncate or extend the result to the return value's mode
6069 2008-01-26 Richard Sandiford <rsandifo@nildram.co.uk>
6072 * config/mips/mips-protos.h (mips_expand_call): Return an rtx.
6073 * config/mips/mips.h (FIRST_PSEUDO_REGISTER): Rename FAKE_CALL_REGNO
6074 to GOT_VERSION_REGNUM.
6075 (CALL_REALLY_USED_REGISTERS): Set the GOT_VERSION_REGNUM entry to 0.
6076 (EPILOGUE_USES): Include GOT_VERSION_REGNUM if TARGET_USE_GOT.
6077 * config/mips/mips.c (mips_emit_call_insn): New function.
6078 (mips_call_tls_get_addr): Call mips_expand_call directly.
6079 (mips16_copy_fpr_return_value): Use mips_emit_call_insn rather than
6081 (mips16_build_call_stub): Likewise. Return the call insn or null.
6082 (mips_expand_call): Update the call to mips16_build_call_stub
6083 accordingly and a remove redundant condition. Assert that MIPS16
6084 stubs do not use lazy binding. Use mips_emit_call_insn and return
6086 (mips_extra_live_on_entry): Include GOT_VERSION_REGNUM if
6088 (mips_hard_regno_mode_ok_p): Allow SImode for GOT_VERSION_REGNUM.
6089 (mips_avoid_hazard): Remove hazard_set handling.
6090 * config/mips/mips.md (UNSPEC_EH_RECEIVER): Rename to...
6091 (UNSPEC_RESTORE_GP): ...this.
6092 (UNSPEC_SET_GOT_VERSION, UNSPEC_UPDATE_GOT_VERSION): New constants.
6093 (FAKE_CALL_REGNO): Rename to...
6094 (GOT_VERSION_REGNUM): ...this.
6095 (type): Add "ghost" value. Add an associated insn reservation.
6096 (hazard_set): Remove.
6097 (exception_receiver): Rename to...
6098 (restore_gp): ...this and update the unspec identifier accordingly.
6099 (exception_receiver, nonlocal_got_receiver): New expanders.
6100 (load_call<mode>): Use GOT_VERSION_REGNUM. Don't set
6101 FAKE_CALL_REGNO. Remove hazard_set attribute.
6102 (set_got_version, update_got_version): New patterns.
6104 2008-01-26 Danny Smith <dannysmith@users.sourceforge.net>
6107 * config/i386/cygming.h (ASM_OUTPUT_LABELREF): Define.
6109 2008-01-25 Joseph Myers <joseph@codesourcery.com>
6112 * doc/install.texi2html: Generate gcc-vers.texi.
6114 2008-01-25 DJ Delorie <dj@redhat.com>
6116 * config/m32c/m32c.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
6118 2008-01-25 Joseph Myers <joseph@codesourcery.com>
6120 * config/c4x: Remove directory.
6121 * config.gcc (crx-*, mt-*): Mark obsolete.
6122 (c4x-*, tic4x-*, c4x-*-rtems*, tic4x-*-rtems*, c4x-*, tic4x-*,
6123 h8300-*-rtemscoff*, ns32k-*-netbsdelf*, ns32k-*-netbsd*,
6124 sh-*-rtemscoff*): Remove cases.
6125 * defaults.h (C4X_FLOAT_FORMAT): Remove.
6126 * real.c (encode_c4x_single, decode_c4x_single,
6127 encode_c4x_extended, decode_c4x_extended, c4x_single_format,
6128 c4x_extended_format): Remove.
6129 * real.h (c4x_single_format, c4x_extended_format): Remove.
6130 * doc/extend.texi (interrupt, naked): Remove mention of attributes
6132 (Pragmas): Remove comment about c4x pragmas.
6133 * doc/install.texi (c4x): Remove target-specific instructions.
6134 * doc/invoke.texi (TMS320C3x/C4x Options): Remove.
6135 * doc/md.texi (Machine Constraints): Remove C4x documentation.
6136 * doc/tm.texi (MEMBER_TYPE_FORCES_BLK, c_register_pragma): Do not
6137 refer to C4x source files as examples.
6138 (C4X_FLOAT_FORMAT): Remove documentation.
6140 2008-01-25 Bernd Schmidt <bernd.schmidt@analog.com>
6142 * config/bfin/bfin.c (override_options): Reorder tests so that
6143 flag_pic gets enabled for -msep-data.
6145 2008-01-25 Richard Guenther <rguenther@suse.de>
6148 * expr.c (expand_expr_real_1): Reduce result of LSHIFT_EXPR
6149 to its bitfield precision if required.
6151 2008-01-25 Jakub Jelinek <jakub@redhat.com>
6154 * tree-nested.c (walk_omp_for): New function.
6155 (convert_nonlocal_reference, convert_local_reference): Call
6156 walk_omp_for on OMP_FOR.
6157 (convert_call_expr): Call walk_body on OMP_FOR's
6158 OMP_FOR_PRE_INIT_BODY.
6160 2008-01-25 Richard Guenther <rguenther@suse.de>
6162 PR tree-optimization/34966
6163 * tree-ssa-math-opts.c (execute_cse_sincos_1): For all but
6164 default defs and PHI_NODEs we have to insert after the
6167 2008-01-24 Nick Clifton <nickc@redhat.com>
6169 * config/stormy16/stormy16-lib2.c (MIN_UNITS_PER_WORD):
6170 Provide a default definition.
6171 (LIBGCC2_UNITS_PER_WORD): Likewise.
6173 * config/stormy16/stormy16.c: Include df.h for the prototype
6174 for df_regs_ever_live_p.
6175 (xstormy16_expand_builtin_va_start): Convert the stack offset
6176 into a component_ref and then use POINTER_PLUS_EXPR to add it
6177 to the incoming_virtual_args_rtx.
6178 (xstormy16_gimplify_va_arg_expr): Rename to
6179 xstormy16_gimplify_va_arg_expr.
6180 Use POINTER_PLUS_EXPR when performing pointer arithmetic.
6181 (TARGET_GIMPLIFY_VA_ARG_EXPR): Use renamed
6182 xstormy16_gimplify_va_arg_expr.
6183 Fix up some formatting issues.
6185 * config/stormy16/stormy16.c: (xstormy16_carry_plus_operand):
6186 Move to predicates.md.
6187 (xs_hi_general_operand): Likewise.
6188 (xs_hi_nonmemory_operand): Likewise.
6189 * config/stormy16/predicates.md:
6190 (xstormy16_carry_plus_operand): New predicate.
6191 (xs_hi_general_operand): New predicate.
6192 (xs_hi_nonmemory_operand): New predicate.
6193 * config/stormy16/stormy16-protos.h:
6194 (xstormy16_carry_plus_operand): Delete prototype.
6195 (xs_hi_general_operand): Likewise.
6196 (xs_hi_nonmemory_operand): Likewise.
6198 * config/storm16/stormy16.md (addhi3): Remove earlyclobber
6199 modifiers as they are no longer needed and they can trigger
6200 reload spill failures.
6202 * config/storm16/stormy16.md (ineqbranchsi): Replace match_dup
6203 with a match_operand in order to help reload.
6205 * config/storm16/stormy16.md (movhi_internal): Replace 'r'
6206 constraint with 'e' for the 8th alternative as this version of
6207 the mov.w instruction only accepts the lower 8 registers.
6209 2008-01-25 Uros Bizjak <ubizjak@gmail.com>
6212 * simplifx-rtx.c (simplify_const_binary_operation) [VEC_CONCAT]:
6213 Consider only CONST_INT, CONST_DOUBLE and CONST_FIXED as constant
6216 2008-01-25 Jakub Jelinek <jakub@redhat.com>
6219 * gimplify.c (gimplify_omp_for): Gimplify OMP_FOR_PRE_BODY.
6221 2008-01-25 Golovanevsky Olga <olga@il.ibm.com>
6223 * ipa-struct-reorg.c (remove_str_allocs_in_func, remove_str_allocs):
6225 (remove_structure): Update allocations list before removing structure.
6227 2008-01-25 Golovanevsky Olga <olga@il.ibm.com>
6229 * ipa-struct-reorg.c (is_safe_cond_expr,
6230 create_new_stmts_for_cond_expr): Use integer_zerop function,
6231 that recognize not only zero-pointer, but zero-integer too.
6233 2008-01-25 Ben Elliston <bje@au.ibm.com>
6236 * fixproto: Escape "." in sed expression that strips leading "./".
6238 2008-01-24 H.J. Lu <hongjiu.lu@intel.com>
6241 * gcc.c (SWITCH_OK): Removed.
6242 (SWITCH_LIVE): Changed to bit.
6243 (SWITCH_FALSE): Likewise.
6244 (SWITCH_IGNORE): Likewise.
6245 (switchstr): Change live_cond to unsigned int.
6246 (process_command): Replace SWITCH_OK with 0.
6247 (do_self_spec): Likewise.
6248 (set_collect_gcc_options): Check the SWITCH_IGNORE bit.
6249 (give_switch): Likewise.
6250 (used_arg): Likewise.
6251 (do_spec_1): Set the SWITCH_IGNORE bit.
6252 (check_live_switch): Check both SWITCH_LIVE and SWITCH_FALSE
6253 bits. Set the SWITCH_LIVE bit.
6255 2008-01-24 Andreas Krebbel <krebbel1@de.ibm.com>
6257 * config/s390/s390.h (MOVE_RATIO): Define new target macro.
6259 2008-01-24 Richard Sandiford <rsandifo@nildram.co.uk>
6261 PR tree-optimization/34472
6262 * ipa-struct-reorg.c (safe_cond_expr_check): Change the DATA
6263 parameter to a "bool *" and set *DATA to false if there is
6264 an unsafe access. Do not delete the structure here.
6265 (check_cond_exprs): Delete it here instead.
6266 (check_cond_exprs, exclude_cold_structs): Do not increase
6267 I when removing a structure.
6269 2008-01-24 Uros Bizjak <ubizjak@gmail.com>
6272 * config/i386/i386.c (ix86_expand_vector_init): Consider only
6273 CONST_INT, CONST_DOUBLE and CONST_FIXED as constant vector elements.
6275 2008-01-24 Jakub Jakub Jelinek <jakub@redhat.com>
6278 * tree-stdarg.c (reachable_at_most_once): Use VEC vector instead of
6279 a fixed vector for stack.
6281 2008-01-24 Ben Elliston <bje@au.ibm.com>
6284 * doc/gcc.texi (Software development): Add a direntry for g++.
6286 2008-01-23 Hans-Peter Nilsson <hp@axis.com>
6288 * config/cris/cris.h (CC1PLUS_SPEC, OPTIMIZATION_OPTIONS): Drop
6289 stale and straggling -fforce-addr comments above.
6291 * config/cris/cris.h (CRIS_SUBTARGET_VERSION, TARGET_VERSION): Don't
6293 * config/cris/linux.h (CRIS_SUBTARGET_VERSION): Don't define.
6294 * config/cris/aout.h (CRIS_SUBTARGET_VERSION): Don't define.
6296 2008-01-23 Michael Matz <matz@suse.de>
6299 * dwarf2out.c (force_type_die): Use modified_type_die instead of
6302 2008-01-23 Andreas Krebbel <krebbel1@de.ibm.com>
6304 * ipa-struct-reorg.c (create_new_malloc): Use pointer type as
6307 2008-01-23 Anatoly Sokolov <aesok@post.ru>
6309 * config/avr/avr.c (avr_current_arch): New variable.
6310 (avr_arch_types): Add 'avr31' and 'avr51' entries.
6311 (avr_arch): Add 'ARCH_AVR31' and 'ARCH_AVR51'.
6312 (avr_mcu_types): Add 'avr31' and 'avr51' architectures.
6313 (avr_override_options): Init 'avr_current_arch'.
6314 (base_arch_s): Move from here...
6315 * config/avr/avr.h (base_arch_s): ... here. Add new members
6316 'have_elpm', 'have_elpmx', 'have_eijmp_eicall', 'reserved'. Rename
6317 'mega' to 'have_jmp_call'.
6318 (TARGET_CPU_CPP_BUILTINS): Define "__AVR_HAVE_JMP_CALL__",
6319 "__AVR_HAVE_RAMPZ__", "__AVR_HAVE_ELPM__" and "__AVR_HAVE_ELPMX__"
6321 (LINK_SPEC, CRT_BINUTILS_SPECS, ASM_SPEC): Add 'avr31' and 'avr51'
6323 * config/avr/t-avr (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
6324 MULTILIB_MATCHES): (Ditto.).
6326 2008-01-23 Richard Guenther <rguenther@suse.de>
6329 * cgraphunit.c (cgraph_reset_node): Always mark the node
6330 not reachable if it is not queued already.
6332 2008-01-23 Bernd Schmidt <bernd.schmidt@analog.com>
6334 * config/bfin/bfin-protos.h (WA_RETS, ENABLE_WA_RETS): New macros.
6335 * config/bfin/bfin.c (bfin_cpus): Add WA_RETS everywhere.
6336 (cputype_selected): New static variable.
6337 (bfin_handle_option): Set it if -mcpu is used.
6338 (override_option): Select default set of workarounds if no cpu type
6339 selected on the command line.
6340 (workaround_rts_anomaly): Only run if ENABLE_WA_RETS.
6342 From Michael Frysinger <michael.frysinger@analog.com>
6343 * config/bfin/bfin-protos.h (enum bfin_cpu_type): Add
6344 BFIN_CPU_BF547, BFIN_CPU_BF523, BFIN_CPU_BF524, and BFIN_CPU_BF526.
6346 * config/bfin/elf.h (LIB_SPEC): Use proper linker script
6347 for bf547, bf523, bf524, and bf526.
6348 * config/bfin/bfin.c (bfin_cpus[]): Add bf547, bf523, bf524, and
6350 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
6351 __ADSPBF523__ for bf523, __ADSPBF524__ for bf524,
6352 __ADSPBF526__ for bf526, __ADSPBF52x__ for all three, as well as
6353 __ADSPBF547__ and __ADSPBF54x__ for bf547.
6354 * doc/invoke.texi (Blackfin Options): Document that
6355 -mcpu now accept bf547, bf523, bf524, and bf526.
6357 2008-01-22 Eric Botcazou <ebotcazou@adacore.com>
6359 PR rtl-optimization/34628
6360 * combine.c (try_combine): Stop and undo after the first combination
6361 if an autoincrement side-effect on the first insn has effectively
6364 2008-01-22 David Edelsohn <edelsohn@gnu.org>
6367 * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
6368 Offset addresses are not valid for Altivec or paired float modes.
6370 2008-01-22 Jakub Jelinek <jakub@redhat.com>
6373 * c-parser.c (c_parser_omp_for_loop): Don't call c_finish_omp_for
6374 if DECL_INITIAL (decl) is error_mark_node.
6377 * c-common.c (handle_vector_size_attribute): Only allow
6378 integral, scalar float and fixed point types. Handle OFFSET_TYPE
6379 the same way as pointer, array etc. types.
6380 * tree.c (reconstruct_complex_type): Handle OFFSET_TYPE.
6383 * tree.c (build_type_attribute_qual_variant): Call
6384 build_qualified_type if attributes are equal, but quals are not.
6386 2008-01-22 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
6389 * doc/invoke.texi (-Wall): -Wall enables -Wstrict-overflow=1.
6390 * flags.h (warn_strict_aliasing): Remove.
6391 (warn_strict_overflow): Remove.
6392 * opts.c (warn_strict_aliasing): Remove.
6393 (warn_strict_overflow): Remove.
6394 * c-opts.c (c_common_handle_option): -Wall only sets
6395 -Wstrict-aliasing or -Wstrict-overflow if they are uninitialized.
6396 (c_common_post_options): Give default values to -Wstrict-aliasing
6397 and -Wstrict-overflow if they are uninitialized.
6398 * common.opt (Wstrict-aliasing): Specify Var and Init.
6399 (Wstrict-overflow): Likewise.
6401 2008-01-22 Kenneth Zadeck <zadeck@naturalbridge.com>
6403 PR rtl-optimization/26854
6404 PR rtl-optimization/34400
6405 PR rtl-optimization/34884
6406 * ddg.c (create_ddg_dep_from_intra_loop_link): Use
6408 * df.h (df_changeable_flags.DF_RD_NO_TRIM): Deleted
6409 (df_rd_bb_info.expanded_lr_out): Deleted
6410 * loop_invariant.c (find_defs): Deleted DF_RD_NO_TRIM flag.
6411 * loop_iv.c (iv_analysis_loop_init): Ditto. * df-problems.c
6412 (df_rd_free_bb_info, df_rd_alloc, df_rd_confluence_n,
6413 df_rd_bb_local_compute, df_rd_transfer_function, df_rd_free):
6414 Removed code to allocate, initialize or free expanded_lr_out.
6415 (df_rd_bb_local_compute_process_def): Restructured to make more
6417 (df_rd_confluence_n): Removed code to no apply invalidate_by_call
6418 sets if the sets are being trimmed.
6420 2008-01-22 H.J. Lu <hongjiu.lu@intel.com>
6423 * configure.ac (ld_vers): Support GNU linker version xx.xx.*
6424 (as_vers): Likewise.
6425 * configure: Regenerated.
6427 2008-01-22 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
6430 * tree-pass.h (pass_build_alias): New pass.
6431 * tree-ssa-alias.c (gate_build_alias): New.
6432 (pass_build_alias): New.
6433 * passes.c (init_optimization_passes): Add pass_build_alias after
6434 pass_create_structure_vars.
6436 2008-01-22 Wolfgang Gellerich <gellerich@de.ibm.com>
6438 * config/s390/s390.h (S390_TDC_POSITIVE_NORMALIZED_NUMBER):
6439 Renamed to S390_TDC_POSITIVE_NORMALIZED_BFP_NUMBER.
6440 (S390_TDC_NEGATIVE_NORMALIZED_NUMBER): Renamed to
6441 S390_TDC_NEGATIVE_NORMALIZED_BFP_NUMBER.
6442 (S390_TDC_POSITIVE_DENORMALIZED_NUMBER): Renamed to
6443 S390_TDC_POSITIVE_DENORMALIZED_BFP_NUMBER.
6444 (S390_TDC_NEGATIVE_DENORMALIZED_NUMBER): Renamed to
6445 S390_TDC_NEGATIVE_DENORMALIZED_BFP_NUMBER.
6446 (S390_TDC_POSITIVE_NORMALIZED_BFP_NUMBER): New constant.
6447 (S390_TDC_NEGATIVE_NORMALIZED_BFP_NUMBER): New constant.
6448 (S390_TDC_POSITIVE_DENORMALIZED_BFP_NUMBER): New constant.
6449 (S390_TDC_NEGATIVE_DENORMALIZED_BFP_NUMBER): New constant.
6450 * config/s390/s390.md (FP_ALL): New mode iterator.
6451 (_d): New mode attribute.
6452 ("*signbit<mode>2>"): Changed mode of first operand.
6453 ("isinf<mode>2"): Changed mode of first operand.
6454 ("*TDC_insn"): Adaptation for DFP modes.
6456 2008-01-22 Ben Elliston <bje@au.ibm.com>
6458 * tree.c (check_qualified_type): Improve function description.
6460 2008-01-21 Jason Merrill <jason@redhat.com>
6463 * tree.h (TRY_CATCH_IS_CLEANUP): New macro.
6464 * tree-eh.c (honor_protect_cleanup_actions): Strip TRY_CATCH_EXPR
6467 2008-01-21 DJ Delorie <dj@redhat.com>
6469 * doc/tm.texi (HARD_REGNO_NREGS): Note that this macro must not
6472 2008-01-21 Richard Guenther <rguenther@suse.de>
6475 * tree-cfg.c (verify_expr): Allow all invariant expressions
6476 instead of just constant class ones as reference argument.
6477 * tree-ssa-loop-im.c (for_each_index): Handle CONSTRUCTOR
6478 like any other constant.
6479 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
6481 2008-01-21 H.J. Lu <hongjiu.lu@intel.com>
6483 * regmove.c (fixup_match_1): Update call crossed frequencies.
6485 2008-01-21 Richard Guenther <rguenther@suse.de>
6488 * tree-inline.c (setup_one_parameter): Deal with mismatched
6489 types using a VIEW_CONVERT_EXPR.
6491 2008-01-21 Alon Dayan <alond@il.ibm.com>
6492 Olga Golovanevsky <olga@il.ibm.com>
6494 PR tree-optimization/34701
6495 * ipa-struct-reorg.c (gen_size): Fix the malloc parameter calculation
6496 when the structure size is not a power of 2.
6498 2008-01-20 Kenneth Zadeck <zadeck@naturalbridge.com>
6500 * doc/install.texi: Add doc for --enable-checking=df.
6502 2008-01-20 Kaz Kojima <kkojima@gcc.gnu.org>
6504 PR rtl-optimization/34808
6505 * emit-rtl.c (try_split): Handle REG_RETVAL notes.
6507 2008-01-20 Richard Sandiford <rsandifo@nildram.co.uk>
6509 * global.c (find_reg): Only compute EH_RETURN_DATA_REGNO once per
6512 2008-01-19 Kenneth Zadeck <zadeck@naturalbridge.com>
6514 PR rtl-optimization/26854
6515 PR rtl-optimization/34400
6516 * ddg.c (create_ddg_dep_from_intra_loop_link): Do not use
6518 * df.h (df_changeable_flags.DF_RD_NO_TRIM): New.
6519 (df_rd_bb_info.expanded_lr_out): New.
6520 * loop_invariant.c (find_defs): Added DF_RD_NO_TRIM flag.
6521 * loop_iv.c (iv_analysis_loop_init): Ditto.
6522 * df-problems.c (df_rd_free_bb_info, df_rd_alloc, df_rd_confluence_n,
6523 df_rd_bb_local_compute, df_rd_transfer_function, df_rd_free):
6524 Added code to allocate, initialize or free expanded_lr_out.
6525 (df_rd_bb_local_compute_process_def): Restructured to make
6526 more understandable.
6527 (df_rd_confluence_n): Add code to do nothing with fake edges and
6528 code to no apply invalidate_by_call sets if the sets are being trimmed.
6529 (df_lr_local_finalize): Renamed to df_lr_finalize.
6530 (df_live_local_finalize): Renamed to df_live_finalize.
6532 2008-01-20 Richard Sandiford <rsandifo@nildram.co.uk>
6535 * config/mips/mips.md (div<mode>3): Use <recip_condition> when
6536 deciding whether to use reciprocal instructions.
6538 2008-01-19 Uros Bizjak <ubizjak@gmail.com>
6540 * dwarf2out.c (dwarf2out_switch_text_section): Do not call
6541 dwarf2out_note_section_used if cold_text_section is NULL.
6543 2008-01-19 Jakub Jelinek <jakub@redhat.com>
6545 PR gcov-profile/34610
6546 * tree-cfg.c (make_edges): Mark both outgoing edges from
6547 OMP_CONTINUE and from OMP_FOR as EDGE_ABNORMAL.
6548 * omp-low.c (expand_omp_for): Clear EDGE_ABNORMAL bits
6549 from OMP_FOR and OMP_CONTINUE outgoing edges.
6551 * tree-profile.c (tree_profiling): Return early if
6552 cfun->after_tree_profile != 0. Set cfun->after_tree_profile
6554 * omp-low.c (expand_omp_parallel): Copy after_tree_profile
6555 from cfun to child_cfun.
6556 * function.h (struct function): Add after_tree_profile bit.
6558 2008-01-19 Anatoly Sokolov <aesok@post.ru>
6560 * config/avr/avr.S (_exit): Disable interrupt.
6562 2008-01-18 Kenneth Zadeck <zadeck@naturalbridge.com>
6563 Steven Bosscher <stevenb.gcc@gmail.com>
6565 PR rtl-optimization/26854
6566 PR rtl-optimization/34400
6567 * df-problems.c (df_live_scratch): New scratch bitmap.
6568 (df_live_alloc): Allocate df_live_scratch when doing df_live.
6569 (df_live_reset): Clear the proper bitmaps.
6570 (df_live_bb_local_compute): Only process the artificial defs once
6571 since the order is not important.
6572 (df_live_init): Init the df_live sets only with the variables
6573 found live by df_lr.
6574 (df_live_transfer_function): Use the df_lr sets to prune the
6575 df_live sets as they are being computed.
6576 (df_live_free): Free df_live_scratch.
6578 2008-01-18 Ian Lance Taylor <iant@google.com>
6580 * common.opt: Add fmerge-debug-strings.
6581 * dwarf2out.c (DEBUG_STR_SECTION_FLAGS): Test
6582 flag_merge_debug_strings rather than flag_merge_constants.
6583 * doc/invoke.texi (Option Summary): Mention
6584 -fmerge-debug-strings.
6585 (Debugging Options): Document -fmerge-debug-strings.
6587 2008-01-18 Ian Lance Taylor <iant@google.com>
6590 * tree.h (DECL_IS_OPERATOR_NEW): Define.
6591 (struct tree_function_decl): Add new field operator_new_flag.
6592 * tree-inline.c (expand_call_inline): When inlining a call to
6593 operator new, force the return value to go into a variable, and
6594 set DECL_NO_TBAA_P on that variable.
6595 * c-decl.c (merge_decls): Merge DECL_IS_OPERATOR_NEW flag.
6597 2008-01-18 Uros Bizjak <ubizjak@gmail.com>
6600 * dwarf2out.c (dwarf2out_switch_text_section): Do not guard with
6601 DWARF2_DEBUGGING_INFO.
6602 (dwarf2out_note_section_used): Ditto. Add prototype.
6603 (have_multiple_function_sections, text_section_used,
6604 cold_text_section_used, *cold_text_sections): Move declarations
6607 2008-01-17 Bob Wilson <bob.wilson@acm.org>
6609 * config/xtensa/unwind-dw2-xtensa.h (_Unwind_FrameState): Remove pc
6610 field and add signal_ra.
6611 * config/xtensa/unwind-dw2-xtensa.c (uw_frame_state_for): Remove
6612 assignments to frame state pc. Move end of stack check after
6613 MD_FALLBACK_FRAME_STATE_FOR.
6614 (uw_update_context_1): Use frame state signal_regs if set, instead
6615 of checking signal_frame flag.
6616 (uw_update_context): Use frame state signal_ra if set.
6617 * config/xtensa/linux.h (MD_UNWIND_SUPPORT): Define.
6618 * config/xtensa/linux-unwind.h: New file.
6620 2008-01-18 Bernhard Fischer <aldot@gcc.gnu.org>
6622 * modulo-sched.c (get_sched_window): Fix comment typo.
6624 2008-01-17 Andrew MacLeod <amacleod@redhat.com>
6626 PR tree-optimization/34648
6627 * tree-ssa-sccvn.c (visit_use): Expressions which can throw are varying.
6629 2008-01-17 Anatoly Sokolov <aesok@post.ru>
6631 * config/avr/avr.h (LINK_SPEC): Support -mrelax and -mpmem-wrap-around.
6632 * config/avr/avr.opt (mrelax, mpmem-wrap-around): Add.
6634 2008-01-17 Seongbae Park <seongbae.park@gmail.com>
6636 PR rtl-optimization/34400
6637 * df-core.c (df_worklist_dataflow_overeager,
6638 df_worklist_dataflow_doublequeue): New functions.
6639 (df_worklist_dataflow): Two different worklist solvers.
6640 * params.def (PARAM_DF_DOUBLE_QUEUE_THRESHOLD_FACTOR):
6643 2008-01-16 Sebastian Pop <sebastian.pop@amd.com>
6646 * doc/invoke.texi: Document the dependence on pthread for fopenmp
6647 and ftree-parallelize-loops.
6649 2008-01-17 Mircea Namolaru <namolaru@il.ibm.com>
6651 PR rtl-optimization/34826
6652 * loop-doloop (doloop_modify): Update the REG_BR_PROB note.
6654 2008-01-17 Andreas Krebbel <krebbel1@de.ibm.com>
6656 * global.c (find_reg): Mark the eh regs as used if necessary.
6657 * ra-conflict.c (global_conflicts): Set no_eh_reg flag.
6658 * ra.h (struct allocno): no_eh_reg field added. Changed
6659 no_stack_reg type to bitfield.
6661 2008-01-17 Eric Botcazou <ebotcazou@adacore.com>
6663 * tree.c (substitute_in_expr): Add missing 'break'.
6665 2008-01-17 Richard Guenther <rguenther@suse.de>
6667 PR tree-optimization/34825
6668 * tree-ssa-math-opts.c (is_division_by): Do not recognize
6669 x / x as division to handle.
6671 2008-01-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6673 * pa64-hpux.h (LIB_SPEC): Add "-lpthread" in shared links if "-mt" or
6674 "-pthread" is specified.
6675 * pa-hpux11.h (LIB_SPEC): Likewise.
6677 2008-01-16 Janis Johnson <janis187@us.ibm.com>
6678 Peter Bergner <bergner@vnet.ibm.com>
6680 PR rtl-optimization/33796
6681 * sparseset.c (sparseset_alloc): Use xcalloc rather than xmalloc.
6683 2008-01-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6685 PR libgfortran/34699
6686 * pa-hpux.h (LINK_SPEC): Only search /lib/pa1.1 and /usr/lib/pa1.1 on
6688 * pa-hpux10.h (LINK_SPEC): Likewise.
6689 * pa-hpux11.h (LINK_SPEC): Don't search /lib/pa1.1 and /usr/lib/pa1.1.
6691 2008-01-16 Richard Guenther <rguenther@suse.de>
6694 * fold-const.c (fold_convert_const_int_from_int): Do not
6695 set overflow if that occured only because of a sign extension
6696 change when converting from/to a sizetype with the same
6697 precision and signedness.
6699 2008-01-16 Uros Bizjak <ubizjak@gmail.com>
6702 * dwarf2out.c (output_call_frame_info): Move output of FDE initial
6703 location address to the correct place. Update copyright year.
6705 2008-01-16 Sebastian Pop <sebastian.pop@amd.com>
6707 * lambda-code.c (lambda_transform_legal_p): Handle the case of
6708 no dependences in the dependence_relations vector.
6710 2008-01-16 Jan Hubicka <jh@suse.cz>
6712 PR rtl-optimization/31396
6713 * regstat.c (regstat_bb_compute_ri): Compute FREQ_CALLS_CROSSED.
6714 * cfg.c (dump_reg_info): Print it.
6715 * regs.h (struct reg_info_t): add freq_calls_crossed.
6716 (REG_FREQ_CALLS_CROSSED): New macro.
6717 * global.c (global_alloc): Compute freq_calls_crossed for allocno.
6718 (find_reg): Update call of CALLER_SAVE_PROFITABLE.
6719 * regmove.c (optimize_reg_copy_1, optimize_reg_copy_2, fixup_match_2,
6720 regmove_optimize): Update call crossed frequencies.
6721 * local-alloc.c (struct qty): Add freq_calls_crossed.
6722 (alloc_qty): Copute freq_calls_crossed.
6723 (update_equiv_regs, combine_regs): Update REG_FREQ_CALLS_CROSSED.
6724 (find_free_reg): Update call of CALLER_SAVE_PROFITABLE.
6725 * ra.h (struct allocno): Add freq_calls_crossed.
6727 2008-01-16 Sebastian Pop <sebastian.pop@amd.com>
6729 * gcc.c (LINK_COMMAND_SPEC): Add includes and link options for
6730 libgomp when compiling with ftree-parallelize-loops.
6731 (GOMP_SELF_SPECS): Add -pthread for ftree-parallelize-loops.
6733 2008-01-16 Richard Guenther <rguenther@suse.de>
6735 PR tree-optimization/34769
6736 * tree-data-ref.c (initialize_matrix_A): Revert fix for PR34458.
6737 * tree.c (int_cst_value): Instead make this function more
6738 permissive in what it accepts as valid input. Document this
6739 function always sign-extends the value.
6741 2008-01-16 Jakub Jelinek <jakub@redhat.com>
6742 Richard Guenther <rguenther@suse.de>
6745 * gimplify.c (fold_indirect_ref_rhs): Rename to ...
6746 (gimple_fold_indirect_ref_rhs): ... this.
6747 (gimple_fold_indirect_ref): New function with foldings
6748 that preserve lvalueness.
6749 (gimplify_modify_expr_rhs): Call gimple_fold_indirect_ref_rhs.
6750 * tree-flow.h (gimple_fold_indirect_ref): Declare.
6751 * tree-inline.c (copy_body_r): Use gimple_fold_indirect_ref
6752 to fold an INDIRECT_REF, fall back to the old use of
6753 fold_indirect_ref_1.
6755 2008-01-16 Sebastian Pop <sebastian.pop@amd.com>
6757 * tree-data-ref.c (subscript_dependence_tester_1): Call
6758 free_conflict_function.
6759 (compute_self_dependence): Same.
6761 2008-01-16 Uros Bizjak <ubizjak@gmail.com>
6764 * debug.h (dwarf2out_switch_text_section): Move declaration from ...
6765 * dwarf2out.c (dwarf2out_switch_text_section): ... here. Make
6767 * final.c (final_scan_insn) [NOTE_INSN_SWITCH_TEXT_SECTIONS]:
6768 Depending on dwarf2out_do_frame, call dwarf2out_switch_text_section
6769 for DWARF2_UNWIND_INFO targets.
6771 2008-01-16 Richard Guenther <rguenther@suse.de>
6774 * c-typeck.c (common_pointer_type): Do not merge inconsistent
6775 type qualifiers for function types.
6777 2008-01-15 Jerry DeLisle <jvdelisle@gcc.gnu.org>
6779 * tree-parloops.c (gen_parallel_loop): Fix ommision of declaration for
6780 loop_iterator li from previous commit.
6782 2008-01-15 Sebastian Pop <sebastian.pop@amd.com>
6784 * tree-parloops.c (gen_parallel_loop): Free loop bound estimations.
6786 2008-01-12 Sebastian Pop <sebastian.pop@amd.com>
6788 * tree-parloops.c (loop_has_blocks_with_irreducible_flag): New.
6789 (parallelize_loops): Don't parallelize irreducible components.
6791 2008-01-14 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
6794 * c-opts (c_common_post_options): Do not enable CPP
6795 flag_pedantic_errors by default.
6797 2008-01-14 Eric Botcazou <ebotcazou@adacore.com>
6799 PR rtl-optimization/31944
6800 * cse.c (remove_pseudo_from_table): New function.
6801 (merge_equiv_classes): Use above function to remove pseudo-registers.
6802 (invalidate): Likewise.
6804 2008-01-13 Richard Guenther <rguenther@suse.de>
6807 * emit-rtl.c (set_reg_attrs_for_decl_rtl): Use DECL_MODE
6808 instead of TYPE_MODE to deal with calls from expand_one_error_var.
6810 2008-01-13 Uros Bizjak <ubizjak@gmail.com>
6812 * gcse.c (cprop_jump): Call validate_unshare_change instead of
6813 validate_change to unshare the source of the PC set.
6815 2008-01-12 Jan Hubicka <jh@suse.cz>
6818 * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Do not construct
6819 references above array bounds. This might trigger bounds checks for
6822 2008-01-12 Sebastian Pop <sebastian.pop@amd.com>
6824 * tree-ssa-ter.c (free_temp_expr_table): Free num_in_part and
6825 new_replaceable_dependencies.
6827 2008-01-12 Doug Kwan <dougkwan@google.com>
6829 * c-decl.c: (grokdeclarator): Use OPT_Wignored_qualifiers
6830 instead of OPT_Wreturn_type in warning due to ignored return type
6832 * c-opt.c (c_common_post_option): Add -Wignored-qualifiers to
6833 options included in -Wextra.
6834 * c.opt: New option -Wignored_qualifiers.
6835 * doc/invoke.texi (Warning Options, -Wextra): Add new option
6836 -Wignore_qualifiers.
6837 (-Wignored-qualifiers): Document.
6838 (-Wreturn-type): Remove description of functionality now handled
6839 by -Wignored-qualifiers.
6841 2008-01-12 Eric Botcazou <ebotcazou@adacore.com>
6844 * fold-const.c (fold_unary) <VIEW_CONVERT_EXPR>: Fold an existing
6845 NOP_EXPR if it is between integral types with the same precision.
6847 2008-01-12 Jan Hubicka <jh@suse.cz>
6850 * invoke.texi (max-inline-recursive-depth): Fix default value.
6852 2008-01-12 Zdenek Dvorak <ook@ucw.cz>
6854 * tree-parloops.c (transform_to_exit_first_loop): Cast nit to the
6857 2008-01-11 Bob Wilson <bob.wilson@acm.org>
6859 * config/xtensa/xtensa.c (override_options): Set flag_shlib.
6861 2008-01-11 James E. Wilson <wilson@specifix.com>
6864 * config/vax/elf.h (FRAME_POINTER_CFA_OFFSET): Define.
6866 2008-01-11 Anatoly Sokolov <aesok@post.ru>
6868 * config/avr/avr.c (expand_prologue, expand_epilogue): Don't
6869 save/restore frame pointer register and don't use 'call-prologues'
6870 optimization in function with "OS_task" attribute.
6872 2008-01-11 Eric Botcazou <ebotcazou@adacore.com>
6875 * expr.c (copy_blkmode_from_reg): Use a mode suited to the size
6876 when copying to memory.
6878 2008-01-11 Steven Bosscher <stevenb.gcc@gmail.com>
6880 PR rtl-optimization/30905
6881 * cfgcleanup.c: Include dce.h
6882 (crossjumps_occured): New global variable.
6883 (try_crossjump_bb): Exit loop after finding a fallthru edge.
6884 If something changed, set crossjumps_occured to true.
6885 (try_optimize_cfg): Clear crossjumps_occured at the beginning.
6886 Don't add/remove fake edges to exit here...
6887 (cleanup_cfg): ...but do it here, when crossjumping.
6888 Run a fast DCE when successful crossjumps occured in the latest
6889 iteration of try_optimize_cfg.
6891 2008-01-11 Richard Guenther <rguenther@suse.de>
6893 * tree-ssa-sccvn.c (struct vn_binary_op_s): Move hashcode near opcode.
6894 (struct vn_unary_op_s): Likewise.
6895 (vn_reference_insert): Free old reference on hash collision.
6897 2008-01-10 Raksit Ashok <raksit@google.com>
6899 PR rtl-optimization/27971
6900 * combine.c (find_split_point): Split PLUS expressions which are
6901 inside a MEM rtx, and whose first operand is complex.
6903 2008-01-10 DJ Delorie <dj@redhat.com>
6905 * config/m32c/m32c.c (m32c_hard_regno_nregs_1): Renamed from...
6906 (m32c_hard_regno_nregs): ...this, which is now a wrapper.
6907 (m32c_hard_regno_ok): Call the underlying function.
6909 2008-01-10 Richard Guenther <rguenther@suse.de>
6912 * tree-cfg.c (tree_merge_blocks): Do not go through the
6913 full-blown folding and stmt updating path if we just deal
6914 with virtual operands.
6915 * tree-ssa-copy.c (may_propagate_copy): Do not short-cut
6916 test for abnormal SSA_NAMEs.
6918 2008-01-10 Andreas Krebbel <krebbel1@de.ibm.com>
6921 * reload.c (push_reload): Add assertions. All constants from
6922 reg_equiv_constant should have been used for replacing the respective
6924 (find_reloads_address): Invoke find_reloads_address_part for
6925 constant taken from the reg_equiv_constant array.
6927 2008-01-10 Steven Bosscher <stevenb.gcc@gmail.com>
6929 * tree-ssa-sccvn.h (struct vn_ssa_aux): Make the most accessed
6930 field (valnum) the first in the struct. Replace bools with
6933 2008-01-10 Richard Guenther <rguenther@suse.de>
6935 PR tree-optimization/34651
6936 * tree-sra.c (sra_build_assignment): Sanitize. Use the correct
6937 types and ordering for masking and converting.
6939 2008-01-09 Sebastian Pop <sebastian.pop@amd.com>
6941 PR tree-optimization/34017
6942 * lambda-code.c (lambda_loopnest_to_gcc_loopnest): Generate code
6943 also for PHI_NODE expressions.
6945 2008-01-09 Jan Hubicka <jh@suse.cz>
6947 PR tree-optimization/34708
6948 * tree-inline.c (estimate_num_insns_1): Compute cost of SWITCH_EXPR
6949 based on number of case labels.
6950 (init_inline_once): Remove switch_cost.
6951 * tree-inline.h (eni_weights_d): Remove switch_cost.
6953 2008-01-09 Richard Guenther <rguenther@suse.de>
6954 Andrew Pinski <andrew_pinski@playstation.sony.com>
6957 * gimplify.c (gimplify_cond_expr): Do not create an addressable
6958 temporary if an rvalue is ok or an lvalue is not required.
6960 2008-01-09 Richard Guenther <rguenther@suse.de>
6963 * tree-data-ref.c (initialize_matrix_A): Use tree_low_cst,
6966 2008-01-09 Richard Guenther <rguenther@suse.de>
6969 * tree.c (host_integerp): Check for sizetype only if the
6970 type is an integer type.
6972 2008-01-09 Steven Bosscher <stevenb.gcc@gmail.com>
6975 * opts.c (decode_options): Disable inlining of functions called
6976 once if not in unit-at-a-time mode.
6978 2008-01-09 Alexandre Oliva <aoliva@redhat.com>
6980 * Makefile.in (dse.o): Remove duplicate $(RECOG_H) dependency.
6982 2008-01-08 Richard Guenther <rguenther@suse.de>
6985 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Bail
6986 out early if the result will be unused.
6988 2008-01-08 Uros Bizjak <ubizjak@gmail.com>
6993 2008-01-05 Uros Bizjak <ubizjak@gmail.com>
6994 * config/i386/i386.c (ix86_builtin_reciprocal): Remove check
6997 2008-01-08 Jan Sjodin <jan.sjodin@amd.com>
6999 * config/i386/i386.c (k8_cost, amdfam10_cost): Branch costs
7000 for vectorization tuned.
7002 2008-01-08 Richard Guenther <rguenther@suse.de>
7004 PR tree-optimization/34683
7005 * tree-ssa-operands.c (operand_build_cmp): Export.
7006 * tree-ssa-operands.h (operand_build_cmp): Declare.
7007 * tree-vn.c (vuses_compare): Remove.
7008 (sort_vuses): Use operand_build_cmp.
7009 (sort_vuses_heap): Likewise.
7010 * tree-ssa-sccvn.c (vuses_to_vec): Use VEC_reserve, not VEC_alloc
7011 to re-use old VEC if available. Do not sort already sorted VUSEs.
7012 (vdefs_to_vec): Do not sort already sorted VDEFs.
7014 2008-01-08 Jakub Jelinek <jakub@redhat.com>
7017 * omp-low.c (copy_var_decl): Copy also DECL_SOURCE_LOCATION.
7019 2008-01-08 Uros Bizjak <ubizjak@gmail.com>
7022 * doc/invoke.texi (i386 and x86-64 Options) [mrecip]: Document
7023 limitations of reciprocal sequences on x86 targets.
7025 2008-01-08 Richard Guenther <rguenther@suse.de>
7027 PR tree-optimization/34683
7028 * tree-flow-inline.h (var_ann): Remove overzealous asserts.
7030 2008-01-07 Jakub Jelinek <jakub@redhat.com>
7033 * config/darwin.c (darwin_mergeable_string_section): Don't use
7034 .cstring if int_size_in_bytes != TREE_STRING_LENGTH.
7036 2008-01-07 Uros Bizjak <ubizjak@gmail.com>
7039 * config/i386/i386.md (neg<mode>2): Rename from negsf2, negdf2 and
7040 negxf2. Macroize expander using X87MODEF mode iterator. Change
7041 predicates of op0 and op1 to register_operand.
7042 (abs<mode>2): Rename from abssf2, absdf2 and negxf2. Macroize
7043 expander using X87MODEF mode iterator. Change predicates of
7044 op0 and op1 to register_operand.
7045 ("*absneg<mode>2_mixed", "*absneg<mode>2_sse"): Rename from
7046 corresponding patterns and macroize using MODEF macro. Change
7047 predicates of op0 and op1 to register_operand and remove
7048 "m" constraint. Disparage "r" alternative with "!".
7049 ("*absneg<mode>2_i387"): Rename from corresponding patterns and
7050 macroize using X87MODEF macro. Change predicates of op0 and op1
7051 to register_operand and remove "m" constraint. Disparage "r"
7052 alternative with "!".
7053 (absneg splitter with memory operands): Remove.
7054 ("*neg<mode>2_1", "*abs<mode>2_1"): Rename from corresponding
7055 patterns and macroize using X87MODEF mode iterator.
7056 * config/i386/sse.md (negv4sf2, absv4sf2, neg2vdf2, absv2df2):
7057 Change predicate of op1 to register_operand.
7058 * config/i386/i386.c (ix86_expand_fp_absneg_operator): Remove support
7059 for memory operands.
7061 2008-01-07 Nathan Froyd <froydnj@codesourcery.com>
7063 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add clause for mcpu=8548.
7065 2008-01-07 Richard Guenther <rguenther@suse.de>
7067 * basic-block.h (struct edge_def): Pair dest_idx with goto_locus
7070 2008-01-07 Richard Guenther <rguenther@suse.de>
7072 PR tree-optimization/34683
7073 * tree-ssa-sccvn.c (vuses_to_vec): Pre-allocate the vector of
7074 VOPs of the needed size to save memory. Use VEC_quick_push
7075 to save compile-time.
7076 (vdefs_to_vec): Likewise.
7078 2008-01-07 Sa Liu <saliu@de.ibm.com>
7080 * config/spu/spu.md (divdf3): Genetate inline code for double
7081 division. The implementation doesn't handle INF or NAN, therefore it
7082 only applies when -ffinite-math-only is given.
7084 2008-01-06 Paolo Carlini <pcarlini@suse.de>
7087 * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_RTTI, if appropriate.
7088 * doc/cpp.texi ([Common Predefined Macros]): Document.
7090 2008-01-06 Uros Bizjak <ubizjak@gmail.com>
7092 * config/i386/i386.c (ix86_emit_swsqrtsf): Use negative constants in
7093 order to use commutative addition instead of subtraction.
7095 2008-01-06 Andrew Pinski <andrew_pinski@playstation.sony.com>
7096 Mircea Namolaru <namolaru@il.ibm.com>
7097 Vladimir Yanovsky <yanov@il.ibm.com>
7098 Revital Eres <eres@il.ibm.com>
7100 PR tree-optimization/34263
7101 * tree-outof-ssa.c (process_single_block_loop_latch,
7102 contains_tree_r): New functions.
7103 (analyze_edges_for_bb): Call process_single_block_loop_latch
7104 function to empty single-basic-block latch block if possible.
7106 2008-01-05 Uros Bizjak <ubizjak@gmail.com>
7108 * config/i386/i386.c (ix86_builtin_reciprocal): Remove check
7110 (ix86_emit_swsqrtsf): Do not filter out infinity for rsqrt expansion.
7112 2008-01-05 Richard Sandiford <rsandifo@nildram.co.uk>
7114 * c-omp.c (check_omp_for_incr_expr): Handle CONVERT_EXPR.
7116 2008-01-05 Richard Sandiford <rsandifo@nildram.co.uk>
7118 * config/mips/mips.c (mips_in_small_data_p): Reinstate size > 0 check.
7120 2008-01-05 Jakub Jelinek <jakub@redhat.com>
7122 PR tree-optimization/34618
7123 * tree-outof-ssa.c (create_temp): Copy over DECL_GIMPLE_REG_P
7126 2008-01-05 Uros Bizjak <ubizjak@gmail.com>
7129 * config/i386/i386.c (ix86_emit_swsqrtsf): Swap input operands
7130 in the call to gen_rtx_NE. Remove unneeded VECTOR_MODE_P check.
7131 Update copyright year.
7133 * config/i386/i386.md (rsqrtsf2): Enable for TARGET_SSE_MATH.
7134 Update copyright year.
7135 * config/i386/sse.md (rsqrtv4sf2): Ditto. Unconditionally expand
7138 2008-01-05 Zhouyi Zhou <zhouzhouyi@FreeBSD.org>
7140 * tree-vrp.c (find_conditional_asserts): Remove redundant check that
7141 edge does not point to current bb before changing need_assert.
7143 2008-01-04 Richard Guenther <rguenther@suse.de>
7146 * tree-cfg.c (verify_expr): Do not look inside ADDR_EXPRs
7147 for verifying purposes if they are is_gimple_min_invariant.
7149 2008-01-04 Aldy Hernandez <aldyh@redhat.com>
7151 PR tree-optimization/34448
7152 PR tree-optimization/34465
7153 * gimplify.c (gimplify_init_constructor): Add new parameter
7154 notify_temp_creation. Use it.
7155 (gimplify_modify_expr_rhs): Take volatiles into account when
7156 optimizing constructors.
7157 Do not optimize constructors if gimplify_init_constructor will dump to
7159 * gcc.dg/tree-ssa/pr32901.c: Tests const volatiles.
7160 * gcc.c-torture/compile/pr34448.c: New.
7162 2008-01-04 Jakub Jelinek <jakub@redhat.com>
7164 PR gcov-profile/34609
7165 * tree-inline.c (declare_return_variable): Set TREE_ADDRESSABLE on
7166 return_slot if result is TREE_ADDRESSABLE.
7168 2008-01-04 Richard Sandiford <rsandifo@nildram.co.uk>
7170 * config/mips/mips.md (sqrt_condition): Tweak comment.
7171 (recip_condition): Likewise. Require TARGET_FLOAT64 for DFmode.
7173 2008-01-03 Tom Tromey <tromey@redhat.com>
7176 * c-common.c (c_type_hash): Handle VLAs.
7178 2008-01-03 Jan Hubicka <jh@suse.cz>
7180 PR tree-optimization/31081
7181 * tree-inline.c (remap_ssa_name): Initialize uninitialized SSA vars to
7182 0 when inlining and not inlining to first basic block.
7183 (remap_decl): When var is initialized to 0, don't set default_def.
7184 (expand_call_inline): Set entry_bb.
7185 * tree-inline.h (copy_body_data): Add entry_bb.
7187 2008-01-03 Jakub Jelinek <jakub@redhat.com>
7190 * cgraphunit.c (cgraph_build_static_cdtor): set_cfun back to NULL
7193 PR tree-optimization/29484
7194 * tree-inline.c (inline_forbidden_p_2): New function.
7195 (inline_forbidden_p): Disallow inlining if some static var
7196 has an address of a local LABEL_DECL in its initializer.
7197 * doc/extend.texi (Labels as Values): Document &&foo behaviour
7200 2008-01-03 Sebastian Pop <sebastian.pop@amd.com>
7202 PR tree-optimization/34635
7203 * tree-data-ref.c (add_other_self_distances): Make sure that the
7204 evolution step is constant.
7206 2008-01-03 Jakub Jelinek <jakub@redhat.com>
7209 * omp-low.c (expand_omp_parallel): Purge dead EH edges in the child fn.
7211 2008-01-02 Richard Sandiford <rsandifo@nildram.co.uk>
7213 * tree-sra.c (scalarize_init): Insert the generate_element_init
7214 statements after the generate_element_zero statements.
7216 2008-01-02 Richard Guenther <rguenther@suse.de>
7220 * tree-ssa-operands.c (ssa_operand_alloc): Also allocate a buffer
7221 for very large number of operands instead of ICEing.
7223 2008-01-02 Arthur Norman <acn1@cam.ac.uk>
7226 * config/i386/i386.c (ix86_expand_prologue): Save red-zone
7227 while stack probing.
7229 2008-01-01 Douglas Gregor <doug.gregor@gmail.com>
7231 * c-opts.c (sanitize_cpp_opts): Don't warn about "long long" when
7234 2008-01-01 Volker Reichelt <v.reichelt@netcologne.de>
7237 * tree-mudflap.c (mx_register_decls): Guard warning by
7238 !DECL_ARTIFICIAL check.
7240 2008-01-01 Jakub Jelinek <jakub@redhat.com>
7242 * config/i386/sse.md (sse5_pperm, sse5_pperm_pack_v2di_v4si,
7243 sse5_pperm_pack_v4si_v8hi, sse5_pperm_pack_v8hi_v16qi,
7244 sse5_perm<mode>): Fix constraints.