1 2008-04-25 H.J. Lu <hongjiu.lu@intel.com>
3 * config/i386/sse.md (mov<mode>): Replace SSEMODEI with
5 (*mov<mode>_internal): Likewise. Support V4SF and V2DF.
7 (*movv4sf_internal): Likewise.
8 (*movv2df_internal): Likewise.
10 2008-04-25 Pompapathi V Gadad <Pompapathi.V.Gadad@nsc.com>
12 * config.gcc (crx-*-elf): Remove deprecation.
14 2008-04-25 Danny Smith <dannysmith@users.sourceforge.net>
16 * config/i386/cygming-crtend.c (register_frame_ctor): Register
17 __gcc_deregister_frame with atexit.
18 (deregister_frame_dtor): Remove.
20 2008-04-24 Nathan Froyd <froydnj@codesourcery.com>
21 Nathan Sidwell <nathan@codesourcery.com>
23 * config/rs6000/rs6000.opt (mspe): Remove Var property.
25 * config/rs6000/rs6000.h (rs6000_spe): Declare.
26 (rs6000_isel): Likewise.
27 * config/rs6000/rs6000.c (rs6000_spe): New variable.
28 (rs6000_isel): New variable.
29 (rs6000_handle_option): Handle OPT_mspe and OPT_misel.
31 2008-04-24 Jakub Jelinek <jakub@redhat.com>
34 * c-common.c (handle_vector_size_attribute): Call
35 lang_hooks.types.reconstruct_complex_type instead of
36 reconstruct_complex_type.
37 * config/rs6000/rs6000.c (rs6000_handle_altivec_attribute): Likewise.
38 * config/spu/spu.c (spu_handle_vector_attribute): Likewise.
39 * langhooks.h (struct lang_hooks_for_types): Add
40 reconstruct_complex_type hook.
41 * langhooks-def.h (LANG_HOOKS_RECONSTRUCT_COMPLEX_TYPE): Define.
42 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add it.
44 2008-04-24 Richard Guenther <rguenther@suse.de>
46 * c-common.h (check_builtin_function_arguments): Declare.
47 * c-common.c (validate_nargs): New function.
48 (check_builtin_function_arguments): Likewise.
49 * c-typeck.c (build_function_call): Call
50 check_builtin_function_arguments.
51 * builtins.c (fold_builtin_classify): Remove error reporting code.
52 (fold_builtin_unordered_cmp): Likewise.
53 (fold_builtin_1): Likewise.
54 (fold_builtin_n): Likewise.
56 2008-04-24 Jakub Jelinek <jakub@redhat.com>
58 PR tree-optimization/36008
59 * fold-const.c (try_move_mult_to_index): If s == NULL, divide
60 the original op1, rather than delta by step.
62 2008-04-22 Antoniu Pop <antoniu.pop@gmail.com>
63 Sebastian Pop <sebastian.pop@amd.com>
65 * tree-parloops.c (take_address_of, eliminate_local_variables_1,
66 eliminate_local_variables_stmt, eliminate_local_variables,
67 separate_decls_in_loop_name, separate_decls_in_loop_stmt,
68 separate_decls_in_loop, gen_parallel_loop): Make them work on a region
69 of code delimited by two edges in the CFG.
70 (separate_decls_in_loop_name): Renamed separate_decls_in_region_name.
71 (separate_decls_in_loop_stmt): Renamed separate_decls_in_region_stmt.
72 (separate_decls_in_loop): Renamed separate_decls_in_region. Isolate
73 the case of parallelisation of reductions.
74 (expr_invariant_in_region_p): New.
76 * tree-flow.h (gather_blocks_in_sese_region): Declared.
77 * tree-cfg.c (gather_blocks_in_sese_region): Extern.
79 2008-04-24 Ira Rosen <irar@il.ibm.com>
80 Richard Guenther <rguenther@suse.de>
82 PR tree-optimization/36034
83 * tree-vect-analyze.c (vect_analyze_group_access): SLP is
84 incapable of dealing with loads with gaps.
86 2008-04-24 Rafael Espindola <espindola@google.com>
88 * tree-flow.h (vrp_evaluate_conditional): Change signature.
89 * tree-ssa-propagate.c (fold_predicate_in): Update call to
90 vrp_evaluate_conditional.
91 * tree-vrp.c (vrp_evaluate_conditional_warnv): Remove.
92 (vrp_evaluate_conditional): Split the cond argument.
93 (vrp_visit_cond_stmt): Use vrp_evaluate_conditional_warnv_with_ops.
94 (simplify_stmt_for_jump_threading): Update call to
95 vrp_evaluate_conditional.
97 2008-04-24 Ira Rosen <irar@il.ibm.com>
99 PR tree-optimization/35982
100 * tree-vect-analyze.c (vect_check_interleaving): Check that the
101 interleaved data-refs are of the same type.
103 2008-04-24 Danny Smith <dannysmith@users.net>
105 * c-format.c (check_format_info_main): Use strncmp rather than a
106 magic prefix to handle multichar length specs.
107 * config/i386/msformat-c.c (format_length_info ms_printf_length_specs):
108 Don't prefix "I64" and "I32" with '\0'.
110 2008-04-24 Jakub Jelinek <jakub@redhat.com>
113 * config/i386/i386.c (init_cumulative_args): Don't pass anything
114 in registers for -m32 only if stdarg_p (fntype).
116 2008-04-24 Uros Bizjak <ubizjak@gmail.com>
118 PR rtl-optimization/36006
119 * expmed.c (store_fixed_bit_field): Copy op0 rtx before moving
120 temp to op0 in order to avoid invalid rtx sharing.
122 2008-04-23 Paolo Bonzini <bonzini@gnu.org>
124 * tree-cfg.c (verify_expr): Check with is_gimple_address. Don't
125 check TREE_INVARIANT.
126 * tree-gimple.c (is_gimple_address): New.
127 (is_gimple_invariant_address): Simplify using decl_address_invariant_p.
128 * tree-gimple.h (is_gimple_address): New.
129 * tree.h (decl_address_invariant_p): New.
130 * tree.c (make_node_stat): Don't set TREE_INVARIANT.
131 (build_string): Likewise.
132 (decl_address_invariant_p): New, from is_gimple_invariant_address.
133 (tree_invariant_p_1): Likewise.
135 (tree_invariant_p): New.
136 (skip_simple_arithmetic): Use it.
137 (stabilize_reference_1): Use it.
138 (recompute_tree_invariant_for_addr_expr): Don't update TREE_INVARIANT,
140 (build1_stat): Drop code to compute TREE_INVARIANT.
141 (build2_stat): Drop code to compute TREE_INVARIANT.
142 (build3_stat): Drop code to compute TREE_INVARIANT.
143 (build4_stat): Drop code to compute TREE_INVARIANT.
144 (build5_stat): Drop code to compute TREE_INVARIANT.
145 (build7_stat): Drop code to compute TREE_INVARIANT.
146 (merge_dllimport_decl_attributes): Don't mention TREE_INVARIANT.
147 * tree.h (struct tree_base): Remove invariant_flag.
148 (TREE_INVARIANT): Remove.
149 * builtins.c (build_string_literal): Don't set TREE_INVARIANT.
150 (fold_builtin_expect): Check TREE_CONSTANT.
151 * tree-ssa-ccp.c (fold_stmt_r): Adjust comment.
152 * c-tree.h (c_expr_to_decl): Drop third parameter.
153 * c-typeck.c (build_external_ref): Don't set TREE_INVARIANT.
154 (build_c_cast): Don't set TREE_INVARIANT.
155 (pop_init_level): Don't set TREE_INVARIANT.
156 (c_objc_common_truthvalue_conversion): Don't set TREE_INVARIANT.
157 * gimplify.c (gimplify_init_ctor_preeval): Add assertion, test
159 (gimplify_init_constructor): Don't set TREE_INVARIANT.
160 (gimplify_addr_expr): Adjust comment.
161 * tree-mudflap.c (mf_build_string):
162 * print-tree.c (print_node): Don't print TREE_INVARIANT.
163 * tree-nested.c (convert_nonlocal_reference): Adjust comment.
164 * c-common.c (fix_string_type): Don't set TREE_INVARIANT.
165 * langhooks-def.h (lhd_expr_to_decl): Drop third parameter.
166 * langhooks.c (lhd_expr_to_decl): Drop third parameter.
167 * langhooks.h (struct lang_hooks): Drop third parameter from
170 2008-04-23 Richard Guenther <rguenther@suse.de>
172 PR tree-optimization/27799
173 PR tree-optimization/32921
174 PR tree-optimization/32624
175 * tree-ssa-structalias.c (merge_smts_into): Only merge the
176 SMTs aliases and the tag itself into the solution.
177 * tree-ssa-alias.c (compute_flow_sensitive_aliasing): Do not
178 merge the points-to solution back into the SMT aliases.
179 (may_alias_p): Use alias_set_subset_of instead of
180 aliases_conflict_p. A pointer which points to
181 memory with alias set zero may access any variable.
183 2008-04-23 Richard Guenther <rguenther@suse.de>
185 * alias.c (alias_set_subset_of): Correctly handle asking
186 if zero is a subset of an alias set with zero child.
187 * tree-ssa-alias.c (have_common_aliases_p): Simplify logic.
188 (compute_flow_insensitive_aliasing): Correctly walk all
189 pointers. Do not unnecessarily union sets.
191 2008-04-23 Richard Guenther <rguenther@suse.de>
194 * c-common.c (handle_alloc_size_attribute): Use type_num_arguments.
196 2008-04-22 Tomas Bily <tbily@suse.cz>
198 * tree-cfg.c (verify_expr): Check for NON_LVALUE_EXPR as
200 * tree-vrp.c (extract_range_from_unary_expr): Removed unused
202 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
203 * tree-ssa-structalias.c (get_constraint_for): Likewise.
204 * tree-inline.c (estimate_num_insns_1): Likewise.
205 * varasm.c (const_hash_1, compare_constant, copy_constant)
206 (compute_reloc_for_constant, output_addressed_constants): Likewise.
207 * emit-rtl.c (component_ref_for_mem_expr)
208 (set_mem_attributes_minus_bitpos): Likewise.
209 * expr.c (highest_pow2_factor, expand_expr_real_1, )
210 (is_aligning_offset): Likewise.
211 * dwarf2out.c (loc_descriptor_from_tree_1, add_bound_info): Likewise.
212 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Likewise.
213 * dojump.c (do_jump): Likewise.
214 * builtins.c (get_pointer_alignment, get_memory_rtx)
215 (integer_valued_real_p, fold_builtin_next_arg): Likewise.
216 * tree-scalar-evolution.c (instantiate_parameters_1): Likewise.
218 2008-04-23 Jakub Jelinek <jakub@redhat.com>
220 PR rtl-optimization/36017
221 * builtins.c (expand_errno_check): Clear CALL_EXPR_TAILCALL before
222 expanding the library call.
224 2008-04-22 Ian Lance Taylor <iant@google.com>
226 * fold-const.c (pointer_may_wrap_p): Call int_size_in_bytes rather
229 2008-04-22 Pat Haugen <pthaugen@us.ibm.com>
231 * config/rs6000/rs6000.c (rs6000_register_move_cost): Increase cost
232 of LR/CTR moves for Power6.
234 2008-04-22 Kenneth Zadeck <zadeck@naturalbridge.com>
237 * passes.c (init_optimization_passes): Remove
238 pass_fast_rtl_byte_dce.
240 2008-04-22 Uros Bizjak <ubizjak@gmail.com>
243 * config/i386/xmmintrin.h (_mm_cvtpi16_ps): Rearrange calls to
244 builtin functions to generate faster code.
245 (_mm_cvtpu16_ps): Ditto.
246 (_mm_cvtpi32x2_ps): Ditto.
248 2008-04-22 Nick Clifton <nickc@redhat.com>
250 * common.opt (ftree-loop-distribution): Add Optimization
253 * config/frv/frv.c (frv_stack_info): Use crtl instead of cfun.
254 (frv_expand_builtin_va_start): Likewise.
256 * config/arm/arm.c (thumb_find_work_register): Fix location of
257 argument register count.
259 2008-04-22 Maxim Kuvyrkov <maxim@codesourcery.com>
261 Support scheduling for ColdFire V1 and V3 microarchitecture.
262 Improve scheduling of multiplication instructions.
264 * config/m68k/m68k.md (cpu): Add cfv1 and cfv3. Rename cf_v2 to cfv1.
265 (mac): New instruction attribute.
266 * config/m68k/m68k.c (override_options): Handle cfv1, cfv3 and mac.
267 (m68k_sched_mac): New variable.
268 (m68k_sched_attr_type2, m68k_sched_md_init_global): Update.
269 Handle cfv1 and cfv3.
270 (max_insn_size): New static variable.
271 (struct _sched_ib): New type.
272 (sched_ib): New static variable.
273 (sched_ib_size, sched_ib_filled, sched_ib_insn): Convert variables
274 to fields of 'struct _sched_ib sched_ib'. Update all uses.
275 (m68k_sched_variable_issue): Add modeling of cfv3 instruction buffer.
277 (m68k_sched_md_init_global, m68k_sched_md_finish_global,
278 m68k_sched_md_init, m68k_sched_md_finish): Handle cfv1 and cfv3. Init
279 new variables. Update.
280 (m68k_sched_dfa_pre_advance_cycle, m68k_sched_dfa_post_advance_cycle):
281 Add modeling of cfv3 instruction buffer. Update.
282 * config/m68k/m68k-protos.h (m68k_sched_mac): Declare.
283 * config/m68k/m68k.h (TUNE_CFV3): New macro.
284 * config/m68k/cf.md: Change substrings 'cf_v2' to 'cfv12' or 'cfv123'.
285 (cf_* reservations): Rename to cfv12 or cfv123 to indicate cores
286 a particular reservation applies to.
287 (type2): Reorganize attribute values. Rename alu to alu_reg,
288 alu_l to alu, move_l to omove. Join move to alu. Split mul
290 (cf_ib_*): Simplify description of instruction buffer.
291 (cf_ib_w0, cf_ib_w4, cf_ib_w5, cf_ib_w6): Remove.
292 (cf_mem): Split into cf_mem1 and cf_mem2.
293 (cf_v2_move_??): Rename to cfv12_alu_??.
294 (cf_v2_move_l_??): Rename to cfv12_omove_??.
295 (cf_v2_mul_??): Remove reservations.
296 (cfv12_mul_l_??, cfv12_mul_w_??, cfv12_mac_w_??, cfv12_mac_l_??,
297 cfv12_emac_??, cfv12_emac_w_i0): New reservations.
298 (cfv12_rts, cfv12_call, cfv12_bcc, cfv12_bra, cfv12_jmp): Move to
300 (cfv3_alu_10, cfv3_omove_10, cfv3_alu_i0, cfv3_omove_i0, cfv3_alu_01,
301 cfv3_alu_0i, cfv3_alu_11, cfv3_omove_11, cfv3_alu_i1, cfv3_omove_i1,
302 cfv3_alu_1i, cfv3_omove_1i, cfv3_pea_11, cfv3_pea_i1, cfv3_mul_w_10,
303 cfv3_mul_l_10, cfv3_mul_w_i0, cfv3_mac_w_10, cfv3_mac_l_10,
304 cfv3_mac_w_i0, cfv3_emac_10, cfv3_emac_w_i0, cfv3_rts, cfv3_call,
305 cfv3_bcc, cfv3_bra, cfv3_jmp): New reservations.
306 (cfv3_*_1, cfv3_*_2, cfv3_*_3): New instruction reservations that are
307 expansions of the above reservations for instructions of sizes
310 2008-04-22 Maxim Kuvyrkov <maxim@codesourcery.com>
312 * rtl-factoring.c (collect_patterns_seqs): Handle CC0 targets.
314 2008-04-21 Adam Nemet <anemet@caviumnetworks.com>
316 * coverage.c: Include tree-pass.h.
317 (coverage_counter_alloc): Print da_file_name to the dump file.
319 2008-04-21 Kenneth Zadeck <zadeck@naturalbridge.com>
321 * sbitmap.c (sbitmap_range_empty_p): New function.
322 * sbitmap.h (sbitmap_range_empty_p): New function.
323 * bitmap.h: Now includes obstack.h.
325 2008-04-21 Richard Sandiford <rsandifo@nildram.co.uk>
326 Kenneth Zadeck <zadeck@naturalbridge.com>
328 * dbgcnt.def (ra_byte_scan): Added.
329 * dbgcnt.c (dbg_cnt): Added code to print message to dump_file
330 when the last hit happens for a counter.
331 * timevar.def (TV_DF_BYTE_LR): New variable.
332 * tree-pass.h (pass_fast_rtl_byte_dce): New pass.
333 * passes.c (pass_fast_rtl_byte_dce): New pass.
334 * fwprop.c (update_df): Added mode to call df_ref_create.
335 Renamed DF_REF_WIDTH and DF_REF_OFFSET to DF_REF_EXTRACT_WIDTH and
336 DF_REF_EXTRACT_OFFSET.
337 * df.h (DF_BYTE_LR, DF_BYTE_LR_BB_INFO, DF_BYTE_LR_IN,
338 DF_BYTE_LR_OUT, df_byte_lr): New macro.
340 (df_ref_extract): Added mode field.
341 (DF_REF_WIDTH, DF_REF_OFFSET) Renamed to DF_REF_EXTRACT_WIDTH and
342 DF_REF_EXTRACT_OFFSET.
343 (DF_REF_EXTRACT_MODE): New macro.
344 (df_byte_lr_bb_info): New structure.
345 (df_print_byte_regset, df_compute_accessed_bytes,
346 df_byte_lr_add_problem, df_byte_lr_get_regno_start,
347 df_byte_lr_get_regno_len, df_byte_lr_simulate_defs,
348 df_byte_lr_simulate_uses,
349 df_byte_lr_simulate_artificial_refs_at_top,
350 df_byte_lr_simulate_artificial_refs_at_end,
351 df_compute_accessed_bytes): New function.
352 (df_ref_create): Add parameter.
353 (df_byte_lr_get_bb_info): New inline function.
354 * df-scan.c (df_ref_record, df_uses_record,
355 df_ref_create_structure): Added mode parameter.
356 (df_ref_create, df_notes_rescan, df_ref_record, df_def_record_1,
357 df_defs_record, df_uses_record, df_get_conditional_uses,
358 df_get_call_refs, df_insn_refs_collect, df_bb_refs_collect,
359 df_entry_block_defs_collect, df_exit_block_uses_collect):
360 Added mode parameter to calls to df_ref_record, df_uses_record,
361 df_ref_create_structure.
362 (df_ref_equal_p, df_ref_compare): Added test for modes.
363 (df_ref_create_structure): Added code to set mode. Renamed
364 DF_REF_WIDTH and DF_REF_OFFSET to DF_REF_EXTRACT_WIDTH and
365 DF_REF_EXTRACT_OFFSET.
366 * df-core.c (df_print_byte_regset): New function.
367 * df-byte-scan.c: New file.
368 * df-problems.c (df_rd_transfer_function): Removed unnecessary
369 calls to BITMAP_FREE.
370 (df_byte_lr_problem_data, df_problem problem_BYTE_LR): New structure.
371 (df_byte_lr_get_regno_start, df_byte_lr_get_regno_len,
372 df_byte_lr_set_bb_info, df_byte_lr_free_bb_info,
373 df_byte_lr_check_regs, df_byte_lr_expand_bitmap,
374 df_byte_lr_alloc, df_byte_lr_reset, df_byte_lr_bb_local_compute,
375 df_byte_lr_local_compute, df_byte_lr_init,
376 df_byte_lr_confluence_0, df_byte_lr_confluence_n,
377 df_byte_lr_transfer_function, df_byte_lr_free,
378 df_byte_lr_top_dump, df_byte_lr_bottom_dump,
379 df_byte_lr_add_problem, df_byte_lr_simulate_defs,
380 df_byte_lr_simulate_uses,
381 df_byte_lr_simulate_artificial_refs_at_top,
382 df_byte_lr_simulate_artificial_refs_at_end): New function.
383 * dce.c (byte_dce_process_block): New function.
384 (dce_process_block): au is now passed in rather than computed
385 locally. Changed loops that look at artificial defs to not look
386 for conditional or partial ones, because there never are any.
387 (fast_dce): Now is able to drive byte_dce_process_block or
388 dce_process_block depending on the kind of dce being done.
389 (rest_of_handle_fast_dce): Add parameter to fast_dce.
390 (rest_of_handle_fast_byte_dce): New function.
391 (rtl_opt_pass pass_fast_rtl_byte_dce): New pass.
392 * Makefile.in (df-byte-scan.o, debugcnt.o): Added dependencies.
394 2008-04-21 Daniel Franke <franke.daniel@gmail.com>
397 * gcc.h: Added fortran options that take arguments to
398 DEFAULT_SWITCH_TAKES_ARG and DEFAULT_WORD_SWITCH_TAKES_ARG
401 2008-04-20 Eric Botcazou <ebotcazou@adacore.com>
403 * tree-sra.c (sra_walk_expr) <VIEW_CONVERT_EXPR>: Disable
404 scalarization if on the LHS and not a full access.
406 2008-04-20 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
408 * Makefile.in (s-gtyp-input): Remove tmp-gi.list before writing it.
410 2008-04-18 Rafael Espindola <espindola@google.com>
412 * tree-vrp.c (find_case_label_index): Fix the binary search.
413 (find_case_label_range): New.
414 (vrp_visit_switch_stmt): Use find_case_label_range.
415 (simplify_switch_using_ranges): Use find_case_label_range.
417 2008-04-18 Eric Botcazou <ebotcazou@adacore.com>
419 * gimplify.c (gimplify_modify_expr_rhs) <COND_EXPR>: Gimplify the LHS
420 using the is_gimple_lvalue predicate instead of is_gimple_min_lval.
422 2008-04-18 Tom Tromey <tromey@redhat.com>
425 * doc/cpp.texi (Implementation-defined behavior): Mention
428 2008-04-18 Ian Lance Taylor <iant@google.com>
430 * fold-const.c (pointer_may_wrap_p): New static function.
431 (fold_comparison): Add another test for pointer overflow. Use
432 pointer_may_wrap_p to disable some false positives.
434 2008-04-18 Kris Van Hees <kris.van.hees@oracle.com>
436 * c-common.c (CHAR16_TYPE, CHAR32_TYPE): New macros.
437 (fname_as_string): Match updated cpp_interpret_string prototype.
438 (fix_string_type): Support char16_t* and char32_t*.
439 (c_common_nodes_and_builtins): Add char16_t and char32_t (and
440 derivative) nodes. Register as builtin if C++0x.
441 (c_parse_error): Support CPP_CHAR{16,32}.
442 * c-common.h (RID_CHAR16, RID_CHAR32): New elements.
443 (enum c_tree_index) <CTI_CHAR16_TYPE, CTI_SIGNED_CHAR16_TYPE,
444 CTI_UNSIGNED_CHAR16_TYPE, CTI_CHAR32_TYPE, CTI_SIGNED_CHAR32_TYPE,
445 CTI_UNSIGNED_CHAR32_TYPE, CTI_CHAR16_ARRAY_TYPE,
446 CTI_CHAR32_ARRAY_TYPE>: New elements.
447 (char16_type_node, signed_char16_type_node, unsigned_char16_type_node,
448 char32_type_node, signed_char32_type_node, char16_array_type_node,
449 char32_array_type_node): New defines.
450 * c-lex.c (cb_ident): Match updated cpp_interpret_string prototype.
451 (c_lex_with_flags): Support CPP_CHAR{16,32} and CPP_STRING{16,32}.
452 (lex_string): Support CPP_STRING{16,32}, match updated
453 cpp_interpret_string and cpp_interpret_string_notranslate prototypes.
454 (lex_charconst): Support CPP_CHAR{16,32}.
455 * c-parser.c (c_parser_postfix_expression): Support CPP_CHAR{16,32}
456 and CPP_STRING{16,32}.
458 2008-04-18 Paolo Bonzini <bonzini@gnu.org>
461 * aclocal.m4: Regenerate.
462 * configure: Regenerate.
464 2008-04-18 Jan Hubicka <jh@suse.cz>
466 * except.c (dw2_size_of_call_site_table,
467 sjlj_size_of_call_site_table): Use vector API for call_site_record.
469 * cgraphbuild.c (build_cgraph_edges): Update.
470 * tree-pass.h: Update comment.
471 * final.c (leaf_function_p): Update.
472 (leaf_renumber_regs): Update.
473 (rest_of_clean_state): Update.
474 * omp-low.c (expand_omp_parallel): Update.
475 * ipa-reference.c (analyze_function): Update.
476 * reorg.c (find_end_label): Update.
477 (optimize_skip): Update.
478 (fill_simple_delay_slots): Update.
479 (fill_simple_delay_slots): Update.
480 (make_return_insns): Update.
481 (dbr_schedule): Update.
482 * gimple-low.c (record_vars_into): Update.
483 * cfgbuild.c (make_edges): Update.
484 * function.c (assign_stack_local): Update.
485 (assign_parm_adjust_stack_rtl): Update.
486 (locate_and_pad_parm): Update.
487 (allocate_struct_function): Do not initialize stack_alignment_needed
488 and preferred_stack_boundary here.
489 (stack_protect_prologue): Update.
490 (stack_protect_epilogue): Update.
491 (expand_function_start): Initialize stack_alignment_needed,
492 preferred_stack_boundary and max_jumptable_ents.
493 (expand_function_end): Update.
494 (free_after_compilation): Do not NULLify epilogue_delay_list.
495 * function.h (struct rtl_data): Add stack_protect_guard,
496 stack_alignment_needed,
497 preferred_stack_boundary, epilogue_delay_list.
498 (struct function): Remove value_histograms, stack_alignment_needed,
499 preferred_stack_boundary, epilogue_delay_list, max_jumptable_ents,
501 unexpanded_var_list, stack_protect_guard.
502 (current_function_epilogue_delay_list): Remove.
503 * ipa-type-escape.c (analyze_function): Update.
504 * gimplify.c (pop_gimplify_context): Update comment.
505 * calls.c (expand_call): Update.
506 (emit_library_call_value_1): Update.
507 * except.c (set_nothrow_function_flags): Update.
508 * cfgexpand.c (get_decl_align_unit): Update.
509 (create_stack_guard): Update.
510 (estimated_stack_frame_size): Update.
511 (expand_used_vars): Update.
512 (tree_expand_cfg): Free histogram earliers, init expansion variables.
513 * explow.c (allocate_dynamic_stack_space): Update.
514 * tree-ssa-live.c (remove_unused_locals): Update.
515 * varasm.c (mark_constant_pool): Update.
516 * tree-inline.c (remap_decls): Update.
517 (initialize_cfun): Update.
518 (declare_return_variable): Update.
519 (inline_forbidden_p): Update.
520 (expand_call_inline): Update.
521 (declare_inline_vars): Update.
522 (tree_function_versioning): Update.
523 * tree-flow.h (value_histograms): New.
524 (VALUE_HISTOGRAMS): New macro.
525 * basic-block.h (control_flow_graph): Add max_jumptable_ents,
527 * tree-cfg.c (set_bb_for_stmt): Update.
528 (replace_by_duplicate_decl): Update.
529 (move_block_to_fn): Update.
530 (new_label_mapper): Update.
531 (dump_function_to_file): Update.
532 * ipa-struct-reorg.c (build_data_structure): Update.
533 * cfgrtl.c (print_rtl_with_bb): Update.
534 * reload1.c (reload): Update.
536 * config/i386/i386.c (setup_incoming_varargs_64,
537 ix86_compute_frame_layout): Update.
538 * config/arc/arc.c (arc_output_function_epilogue): Update.
540 2008-04-18 Marius Strobl <marius@FreeBSD.org>
542 * gthr-posix.h (__gthread_active_p): Use the Solaris implementation
544 * gthr-posix95.h: Likewise.
546 2008-04-17 Richard Sandiford <rsandifo@nildram.co.uk>
548 PR rtl-optimization/35838
549 * dse.c (find_shift_sequence): Use subreg_lowpart_offset to work
550 out the byte offset of the first subreg.
552 2008-04-17 Uros Bizjak <ubizjak@gmail.com>
554 * config/i386/i386.md (addti3 splitter): Pass arrays of 3 operands
555 to split_ti instead of three separate calls with single member arrays.
556 (subti3 splitter): Ditto.
557 (adddi3 splitter): Ditto with split_di.
558 (subdi3 splitter): Ditto.
559 (negti2 splitter): Pass arrays of 2 operands to split_ti instead of
560 two separate calls with single member arrays. Swap match_dup
561 operands 1 and 2 to better fit into the array.
562 (negdi2 splitter): Ditto with split_di.
563 (movdfcc splitter): Pass arrays of 2 operands to split_di instead of
564 two separate calls with single member arrays. Swap match_dup operands
565 6 and 7 to better fit into the array.
567 2008-04-17 H.J. Lu <hongjiu.lu@intel.com>
569 * config/i386/i386.c (sse_builtin_type): New.
570 (bdesc_sse_args): Likewise.
571 (bdesc_sse_3arg): Removed.
572 (bdesc_2arg): Remove IX86_BUILTIN_AESKEYGENASSIST128.
573 (bdesc_1arg): Remove IX86_BUILTIN_ROUNDPD and
574 IX86_BUILTIN_ROUNDPS.
575 (ix86_init_mmx_sse_builtins): Handle bdesc_sse_args. Remove
576 bdesc_sse_3arg. Remove IX86_BUILTIN_ROUNDPD and
577 IX86_BUILTIN_ROUNDPS.
578 (ix86_expand_sse_4_operands_builtin): Removed.
579 (ix86_expand_sse_operands_builtin): New.
580 (ix86_expand_unop_builtin): Remove CODE_FOR_sse4_1_roundpd
581 and CODE_FOR_sse4_1_roundps.
582 (ix86_expand_builtin): Remove IX86_BUILTIN_AESKEYGENASSIST128.
583 Handle bdesc_sse_args. Remove bdesc_sse_3arg.
585 2008-04-17 Alan Modra <amodra@bigpond.net.au>
588 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Restore vr and vrsave
589 regs before frame pop when needed. If use_backchain_to_restore_sp
590 then load backchain into a temp reg to restore vr and vrsave. Add
591 code to restore vr after frame pop if possible.
593 2008-04-17 Richard Guenther <rguenther@suse.de>
595 * tree-vn.c (expressions_equal_p): Do not check type
596 equality or compatibility before calling operand_equal_p.
597 * fold-const.c (operand_equal_p): Check equivalence of
598 integer constants before bailing out due to signedness or
599 precision differences.
600 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Ignore
601 spurious differences in type qualification. Ignore types
602 for COMPONENT_REFs at all.
604 2008-04-17 Christian Bruel <christian.bruel@st.com>
606 * config/sh/sh.c (expand_cbranchdi4): Use original operands for
609 2008-04-16 Jakub Jelinek <jakub@redhat.com>
612 * tree-nrv.c (tree_nrv): Don't optimize if result_type is GIMPLE
615 PR tree-optimization/35899
616 * tree-inline.c (expand_call_inline): Use GIMPLE_STMT_OPERAND
617 rather than TREE_OPERAND.
619 2008-04-16 Uros Bizjak <ubizjak@gmail.com>
622 * config/i386/i386.md (fmodxf3): Copy operand 1 and operand 2 into
623 temporary registers. Change operand predicate to general_operand.
624 (remainderxf3): Ditto.
626 2008-04-16 Richard Guenther <rguenther@suse.de>
628 * Makefile.in (tree-affine.o): Add $(FLAGS_H) dependency.
629 * tree-affine.c (aff_combination_expand): Look through some
632 2008-04-15 Doug Kwan <dougkwan@google.com>
634 * dwarf2asm.c (dw2_assemble_integer): Cast to unsigned HOST_WIDE_INT
636 * tree-pretty-print.c (dump_generic_node): Ditto.
637 * final.c (output_addr_const): Ditto.
638 * dwarf2out.c (output_cfi): Ditto.
639 * c-pretty-print.c (pp_c_integer_constant): Ditto.
640 * print-rtl.c (print_rtx): Ditto.
641 * print-tree.c (print_node_brief, print_node): Ditto.
642 * c-common.c (match_case_to_enum_1): Ditto.
643 * sched-vis.c (print_value): Ditto.
644 * config/i386/i386.c (print_operand): Cast to long unsigned int
647 2008-04-15 Danny Smith <dannysmith@users.sourceforge.net>
648 * libgcc2.c [L_trampoline]: Remove unnecessary prototype for
649 MS Windows VirtualProtect function.
651 2008-04-15 Jan Hubicka <jh@suse.cz>
653 * gengtype.c (write_root): Param_is argument is OK.
654 * expr.c (expand_expr_real_1): Update call of get_exception_*.
655 * function.h: Include varray.h
656 (rtl_eh): New stucture based on except.c one.
657 (call_site_record): New forward declaration and vector type.
658 * calls.c (emit_call_1): Do not call
659 note_current_region_may_contain_throw.
660 * except.c (eh_status): Remove cur_region, try_region since they are
662 Move filter, exc_ptr, ttype_data, ehspec_data, action_record_data and
663 exception_handler_label_map, ehr_stackadj, ehr_handler, ehr_label,
664 sjlj_fc, sjlj_exit_after to rth_eh in function.h.
665 Remove call_site_data_used, call_site_data_size.
666 Turn call_site_record into vector in function.h.
667 (note_current_region_may_contain_throw): Remove.
668 (get_exception_pointer, get_exception_filter): Do not take struct
669 function argument; update.
670 (add_ehl_entry, find_exception_handler_labels, ehspec_filter_hash,
671 add_ttypes_entry, add_ehspec_entry, assign_filter_values,
672 build_post_landing_pads, dw2_build_landing_pads,
673 sjlj_assign_call_site_values, sjlj_mark_call_sites,
674 sjlj_emit_function_enter, sjlj_emit_function_enter,
675 sjlj_emit_function_exit, sjlj_emit_dispatch_table,
676 sjlj_build_landing_pads, finish_eh_generation,
677 remove_exception_handler_label, remove_eh_handler,
678 maybe_remove_eh_handler, add_reachable_handler,
679 reachable_handlers, expand_builtin_eh_return, expand_eh_return,
680 add_action_record, collect_one_action_chain, add_call_site,
681 convert_to_eh_region_ranges, sjlj_size_of_call_site_table,
682 sjlj_output_call_site_table, output_function_exception_table,
683 * except.h (note_current_region_may_contain_throw): Remove
684 (get_exception_pointer, get_exception_filter): Do not take struct
686 * Makefile.in (GTFILES): Put varargs before struct function.
688 2008-04-15 Eric Botcazou <ebotcazou@adacore.com>
690 * tree-ssa-structalias.c (get_constraint_for_component_ref): Do not
692 (get_constraint_for): Deal with STRING_CST here instead.
694 2008-04-15 Richard Guenther <rguenther@suse.de>
696 * tree-ssa-propagate.c (substitute_and_fold): Substitute
697 statements in a basic-block with a backward walk. Do not
698 substitute into dead statements but instead remove those.
700 2008-04-15 Richard Guenther <rguenther@suse.de>
702 * params.def (PARAM_MAX_FIELDS_FOR_FIELD_SENSITIVE): Set default
703 to zero, thus disable creation of SFTs.
705 2008-04-15 Eric Botcazou <ebotcazou@adacore.com>
707 * tree-predcom.c (suitable_reference_p): Return false if the
710 2008-04-15 Jakub Jelinek <jakub@redhat.com>
713 * c-decl.c (finish_decl): If extern or static var has variable
714 size, set TREE_TYPE (decl) to error_mark_node.
716 2008-04-15 Rafael Espindola <espindola@google.com>
718 * fold-const.c (tree_call_nonnegative_warnv_p): Remove local
721 2008-04-15 Richard Guenther <rguenther@suse.de>
723 * tree-ssa-sccvn.h (vn_reference_lookup): Adjust prototype.
724 * tree-ssa-sccvn.c (vn_reference_lookup): New parameter maywalk.
725 (visit_reference_op_load): Do walk vuse-vdef chains on
727 (visit_reference_op_store): But do not here.
728 * tree-vn.c (vn_lookup): Do not walk vuse-vdef chains on
730 (vn_lookup_with_vuses): But do so here.
732 2008-04-14 Ian Lance Taylor <iant@google.com>
734 * fold-const.c (fold_overflow_warning): Remove assertion.
736 2008-04-15 Ben Elliston <bje@au.ibm.com>
738 * config/alpha/alpha.c (alpha_initialize_trampoline): Remove temp,
739 temp1 local variables.
741 2008-04-15 Zuxy Meng <zuxy.meng@gmail.com>
744 * config/i386/winnt.c (i386_pe_section_type_flags): Mark
745 ".text.unlikely" section as executable.
747 2008-04-14 James E. Wilson <wilson@tuliptree.org>
749 * config/ia64/ia64.c (rtx_needs_barrier): Handle
750 UNSPEC_FR_SQRT_RECIP_APPROX_RES.
751 * config/ia64/ia64.c (UNSPEC_FR_SQRT_RECIP_APPROX_RES): Define.
752 (divsi3_internal, divdi3_internal_lat, divdi3_internal_thr,
753 divsf3_internal_lat, sqrt_approx, sqrtsf2_internal_thr,
754 divdf3_internal_lat, sqrtdf2_internal_thr, divxf3_internal_lat,
755 divxf3_internal_thr, sqrtxf2_internal_thr, recip_approx): Use it.
757 2008-04-14 Ian Lance Taylor <iant@google.com>
759 * flags.h (POINTER_TYPE_OVERFLOW_UNDEFINED): Define.
760 * fold-const.c (fold_comparison): If appropriate, test
761 POINTER_TYPE_OVERFLOW_UNDEFINED, and issue an overflow warning.
762 (fold_binary): Test POINTER_TYPE_OVERFLOW_UNDEFINED when
763 reassociating a pointer type.
764 * doc/invoke.texi (Optimize Options): Document that
765 -fstrict-overflow applies to pointer wraparound.
767 2008-04-13 Jan Hubicka <jh@suse.cz>
769 * m32.c (m32c_pushm_popm): Use crtl->retrun_rtx.
771 2008-04-12 Andrew Pinski <pinskia@gmail.com>
773 * config/rs6000/rs6000.c (compute_save_world_info): Set lr_save_p if
774 we are going to "save the world".
776 2008-04-13 Hans-Peter Nilsson <hp@axis.com>
778 * config/cris/cris.md ("*andhi_lowpart_non_v32", "*andhi_lowpart_v32")
779 ("*andqi_lowpart_non_v32", "*andqi_lowpart_v32"): Use "+" for the
780 operand 0 constraint, not "=".
782 2008-04-11 James E. Wilson <wilson@tuliptree.org>
784 * system.h: Change ASSERT_CHECKING to ENABLE_ASSERT_CHECKING.
786 2008-04-11 H.J. Lu <hongjiu.lu@intel.com>
788 * dse.c (record_store): Use HOST_BITS_PER_WIDE_INT instead
789 of size of positions_needed * CHAR_BIT.
791 2008-04-11 H.J. Lu <hongjiu.lu@intel.com>
794 * dse.c (store_info): Change positions_needed to unsigned
796 (lowpart_bitmask): New.
797 (record_store): Cast to unsigned HOST_WIDE_INT for
798 positions_needed. Assert width <= size of positions_needed *
799 CHAR_BIT. Call lowpart_bitmask to initialize positions_needed.
800 (check_mem_read_rtx): Use unsigned HOST_WIDE_INT on mask. Call
801 lowpart_bitmask to set mask.
803 2008-04-11 Bernd Schmidt <bernd.schmidt@analog.com>
805 * config/bfin/constraints.md: New file.
806 * config/bfin/bfin.md: Include it.
807 (adddi3): Use satisfies_constraint functions instead of the old macros.
808 * config/bfin/bfin.h (REG_CLASS_FROM_LETTER, CONSTRAINT_LEN,
809 CONST_18UBIT_IMM_P, CONST_16BIT_IMM_P, CONST_16UBIT_IMM_P,
810 CONST_7BIT_IMM_P, CONST_7NBIT_IMM_P, CONST_5UBIT_IMM_P,
811 CONST_4BIT_IMM_P, CONST_4UBIT_IMM_P, CONST_3BIT_IMM_P,
812 CONST_3UBIT_IMM_P, CONST_OK_FOR_K, CONST_OK_FOR_P, CONST_OK_FOR_M,
813 CONST_OK_FOR_CONSTRAINT_P, CONST_DOUBLE_OK_FOR_LETTER,
814 EXTRA_CONSTRAINT): Delete.
815 * config/bfin/predicates.md (highbits_operand, reg_or_7bit_operand,
816 reg_or_neg7bit_operand): Use satisfies_constraint functions instead
818 * config/bfin/bfin.c: Include "tm-constrs.h".
819 (bfin_secondary_reload, split_load_immediate, bfin_rtx_costs):
820 Use satisfies_constraint functions instead of the old macros.
821 * doc/md.texi (Blackfin Constraints): Update file name reference.
823 2008-04-11 Richard Guenther <rguenther@suse.de>
825 PR tree-optimization/35869
826 * tree-vrp.c (execute_vrp): Move switch statement update after
827 jump threading. Schedule another cfg cleanup run.
829 2008-04-11 Volker Reichelt <v.reichelt@netcologne.de>
832 * attribs.c (decl_attributes): Return early on errorneous node.
834 2008-04-10 Oleg Ryjkov <olegr@google.com>
836 * tree.h (struct tree_base): Added a new flag default_def_flag.
837 (SSA_NAME_IS_DEFAULT_DEF): Changed to use the new flag.
839 2008-04-11 Kaz Kojima <kkojima@gcc.gnu.org>
841 * config.gcc (need_64bit_hwint): Need 64bit hwint for sh-*-*.
843 2008-04-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
846 * pa.md: Define mode iterator P. Define mode attribute dwc.
847 (dcacheflush): Update pattern to use iterator P and attribute dwc.
848 (icacheflush): Likewise.
849 * pa.h (INITIALIZE_TRAMPOLINE): Use dcacheflushsi/icacheflushsi if
850 !TARGET_64BIT, and dcacheflushdi/icacheflushdi if TARGET_64BIT.
852 2008-04-11 Ben Elliston <bje@au.ibm.com>
854 * config/spu/spu.c (spu_init_builtins): Mark builtins as nothrow.
856 2008-04-10 Rafael Espindola <espindola@google.com>
858 * tree-vrp.c (extract_range_from_binary_expr): Don't handle
859 TRUTH_ANDIF_EXPR or TRUTH_ORIF_EXPR.
860 (extract_range_from_expr): The same.
862 2008-04-10 Adam Nemet <anemet@caviumnetworks.com>
864 * config/mips/mips.md (GPR2): New mode iterator.
866 (*seq_<mode>, *seq_<mode>_mips16, *sne_<mode>, *sgt<u>_<mode>,
867 *sgt<u>_<mode>_mips16, *sge<u>_<mode>, *slt<u>_<mode>,
868 *slt<u>_<mode>_mips16 *sle<u>_<mode>, *sle<u>_<mode>_mips16):
869 Rewrite these to take two modes, the mode of comparison and the
870 mode of the destination.
871 * config/mips/mips.c (mips_expand_scc): Instead of having
872 paradoxical subreg as destination, expand "narrowing" scc if mode
873 of comparison is SI and target is requested in DI mode.
874 (mips_emit_int_order_test): Update comment. Make mode of
875 comparison match CMP0 rather than TARGET. When creating inverse
876 target use mode of TARGET.
878 2008-04-10 Adam Nemet <anemet@caviumnetworks.com>
880 * gcov-dump.c (tag_summary): Only print summaries for the first
881 GCOV_COUNTERS_SUMMABLE counters.
883 2008-04-10 Uros Bizjak <ubizjak@gmail.com>
885 * config/i386/i386.md (absneg): New code iterator.
886 (absnegprefix): New code attribute.
887 (<code><mode>2): Macroize expander from abs<mode>2 and neg<mode>2
888 patterns using absneg code iterator.
889 (<code>tf2): Macroize expander from abstf2 and negtf2 patterns
890 using absneg code iterator.
891 (*<code><mode>2_1): Macroize insn pattern from *abs<mode>2_1 and
892 *neg<mode>2 patterns using absneg code iterator.
893 (*<code>extendsfdf2): Macroize insn pattern from *absextendsfdf2 and
894 *negextendsfdf2 patterns using absneg code iterator.
895 (*<code>extendsfxf2): Macroize insn pattern from *absextendsfxf2 and
896 *negextendsfxf2 patterns using absneg code iterator.
897 (*<code>extendsfdf2): Macroize insn pattern from *absextendsfdf2 and
898 *negextendsfdf2 patterns using absneg code iterator.
899 * config/i386/sse.md (<code><mode>2): Macroize expander from
900 abs<mode>2 and neg<mode>2 patterns using absneg code iterator.
902 2008-04-10 Andreas Krebbel <krebbel1@de.ibm.com>
904 * config/s390/s390.h: Remove the remains of the recent search
905 & replace action of current_function_outgoing_args_size.
907 2008-04-10 Ira Rosen <irar@il.ibm.com>
909 PR tree-optimization/35821
910 * tree-vect-transform.c (vect_create_data_ref_ptr): Add check that
911 NEW_STMT_LIST is not NULL.
913 2008-04-09 David Edelsohn <edelsohn@gnu.org>
916 * toplev.c (process_options): Remove -ffunction-sections debugging
919 2008-04-09 Peter Bergner <bergner@vnet.ibm.com>
921 PR middle-end/PR28690
922 * explow.c (break_out_memory_refs): Use simplify_gen_binary rather
923 than gen_rtx_fmt_ee to perform more canonicalizations.
925 2008-04-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
928 * collect2.c (write_c_file): Don't wrap in "#ifdef __cplusplus".
930 2008-04-09 Richard Guenther <rguenther@suse.de>
932 * tree-cfg.c (verify_stmt): Print complete bogus stmt.
933 (dump_function_to_file): Dump function arguments with types.
935 2008-04-08 Richard Guenther <rguenther@suse.de>
937 * fold-const.c (fold_widened_comparison): Do not allow
938 sign-changes that change the result.
940 2008-04-08 Janis Johnson <janis187@us.ibm.com>
943 * config/rs6000/rs6000.c (rs6000_check_sdmode): Handle additional
944 kinds of indirect references.
946 2008-04-08 David Edelsohn <edelsohn@gnu.org>
948 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Update
949 GNU Fortran language string.
951 2008-04-08 Rafael Espindola <espindola@google.com>
953 * fold-canst.c (tree_call_nonnegative_warnv_p): New.
954 (tree_invalid_nonnegative_warnv_p): Use tree_call_nonnegative_warnv_p.
955 * tree.h (tree_call_nonnegative_warnv_p): New.
957 2008-04-08 Jan Hubicka <jh@suse.cz>
959 * function.c (free_after_compilation): Clear out regno_reg_rtx
962 2008-04-08 Peter Bergner <bergner@vnet.ibm.com>
965 2008-04-07 Peter Bergner <bergner@vnet.ibm.com>
967 PR middle-end/PR28690
968 * rtlanal.c: (commutative_operand_precedence): Give SYMBOL_REF's the
969 same precedence as REG_POINTER and MEM_POINTER operands.
971 2008-04-08 Richard Guenther <rguenther@suse.de>
974 * tree-ssa-address.c (create_mem_ref): Use POINTER_PLUS_EXPR
975 for adding index to base.
977 2008-04-08 Kai Tietz <kai.tietz@onevision.com>
979 * config/i386/mingw32.h (ENABLE_EXECUTE_STACK): New.
980 (MINGW_ENABLE_EXECUTE_STACK): New.
981 (IN_LIBGCC2): For libgcc include windows.h file for
982 function declarations.
984 2008-04-08 Hans-Peter Nilsson <hp@axis.com>
986 * config/cris/cris.c (cris_address_cost): For a PLUS, swap tem1
987 and tem2 if tem1 is not a REG or MULT.
989 2008-04-08 Jan Hubicka <jh@suse.cz>
991 * function.h (incomming_args): Break out of struct function.
992 (function_subsections): Break out of struct function.
993 (rtl_data): Add args, subsections fields. Break out outgoing_args_size,
994 return_rtx and hard_reg_initial_vals from struct function.
995 Kill inl_max_label_num.
996 (current_function_pops_args, current_function_args_info,
997 current_function_args_size, current_function_args_size,
998 current_function_pretend_args_size,
999 current_function_outgoing_args_size,
1000 current_function_internal_arg_pointer, current_function_return_rtx):
1001 Kill compatibility accestor macros.
1002 * builtins.c (expand_builtin_apply_args_1): Update.
1003 (expand_builtin_next_arg): Update.
1004 * df-scan.c (df_get_call_refs): Update.
1005 * dbxout.c (dbxout_function_end): Update.
1006 * dwarf2out.c (dwarf2out_switch_text_section): Update.
1007 (output_line_info): Update.
1008 (secname_for_decl): Update.
1009 (dwarf2out_var_location): Update.
1010 * function.c (free_after_compilation): Update.
1011 (assign_parm_find_stack_rtl): Update.
1012 (assign_parms): Update.
1013 (expand_dummy_function_end): Update.
1014 (expand_function_end): Update.
1015 * calls.c (mem_overlaps_already_clobbered_arg_p): Update.
1016 (expand_call): Update.
1017 (emit_library_call_value_1): Update.
1018 (store_one_arg): Update.
1019 * varasm.c (initialize_cold_section_name): Update.
1020 (unlikely_text_section): Update.
1021 (unlikely_text_section_p): Update.
1022 (assemble_start_function): Update.
1023 (assemble_end_function): Update.
1024 (default_section_type_flags): Update.
1025 (switch_to_section): Update.
1026 * integrate.c (set_decl_abstract_flags): Update.
1027 (get_hard_reg_initial_val): Update.
1028 (has_hard_reg_initial_val): Update.
1029 (allocate_initial_values): Update.
1030 * resource.c (init_resource_info): Update.
1031 * config/alpha/alpha.c (NUM_ARGS): Update.
1032 (direct_return): Update.
1033 (alpha_va_start): Update.
1034 (alpha_sa_size): Update.
1035 (alpha_initial_elimination_offset): Update.
1036 (alpha_expand_prologue): Update.
1037 (alpha_start_function): Update.
1038 (alpha_expand_epilogue): Update.
1039 (unicosmk_initial_elimination_offset):
1040 * config/alpha/alpha.md (call expander): Update.
1041 * config/s390/s390.c (s390_register_info): Update.
1042 (s390_register_info): Update.
1043 (s390_frame_info): Update.
1044 (s390_initial_elimination_offset): Update.
1045 (s390_build_builtin_va_list): Update.
1046 (s390_va_start): Update.
1047 * config/spu/spu.c (direct_return): Update.
1048 (spu_expand_prologue): Update.
1049 (spu_initial_elimination_offset): Update.
1050 (spu_build_builtin_va_list): Update.
1051 (spu_va_start): Update.
1052 * config/sparc/sparc.c (sparc_init_modes): Update.
1053 (sparc_compute_frame_size): Update.
1054 (function_value): Update.
1055 * config/m32r/m32r.c (m32r_compute_frame_size): Update.
1056 * config/i386/i386.md (return expander): Update.
1057 * config/i386/i386.c (ix86_va_start): Update.
1058 (ix86_can_use_return_insn_p): Update.
1059 (ix86_compute_frame_layout): Update.
1060 (ix86_expand_epilogue): Update.
1061 * config/sh/sh.c (output_stack_adjust): Update.
1062 (calc_live_regs): Update.
1063 (sh_expand_prologue): Update.
1064 (sh_builtin_saveregs): Update.
1065 (sh_va_start): Update.
1066 (initial_elimination_offset): Update.
1067 (sh_allocate_initial_value): Update.
1068 (sh_function_ok_for_sibcall): Update.
1069 (sh_get_pr_initial_val): Update.
1070 * config/sh/sh.md (return expander): Update.
1071 * config/avr/avr.c (frame_pointer_required_p): UPdate.
1072 * config/crx/crx.c (crx_compute_frame): UPdate.
1073 (crx_initial_elimination_offset): UPdate.
1074 * config/xtensa/xtensa.c (compute_frame_size): Update
1075 (xtensa_builtin_saveregs): Update.
1076 (xtensa_va_start): Update.
1077 (order_regs_for_local_alloc): Update.
1078 * config/stormy16/stormy16.c (xstormy16_compute_stack_layout): Update.
1079 (xstormy16_expand_builtin_va_start): Update.
1080 * config/fr30/fr30.c (fr30_compute_frame_size): Update.
1081 * config/m68hc11/m68hc11.md (return expanders): Update.
1082 * config/m68hc11/m68hc11.c (expand_prologue): Update.
1083 (expand_epilogue): Update.
1084 * config/cris/cris.c (cris_initial_frame_pointer_offset): Update.
1085 (cris_simple_epilogue): Update.
1086 (cris_expand_prologue): Update.
1087 (cris_expand_epilogue): Update.
1088 * config/iq2000/iq2000.c (iq2000_va_start): Update.
1089 (compute_frame_size): Update.
1090 * config/mt/mt.c (mt_compute_frame_size): Update.
1091 * config/mn10300/mn10300.c (expand_prologue): Update.
1092 (expand_epilogue): Update.
1093 (initial_offset): Update.
1094 (mn10300_builtin_saveregs):
1095 * config/mn10300/mn10300.md (return expander): Update.
1096 * config/ia64/ia64.c (ia64_compute_frame_size): Update.
1097 (ia64_initial_elimination_offset): Update.
1098 (ia64_initial_elimination_offset): Update.
1099 (ia64_expand_prologue): Update.
1100 * config/m68k/m68k.md (return expander): Update.
1101 * config/rs6000/rs6000.c (rs6000_va_start): Update.
1102 (rs6000_stack_info): Update.
1103 * config/mcore/mcore.c (layout_mcore_frame): Update.
1104 (mcore_expand_prolog): Update.
1105 * config/arc/arc.c (arc_compute_frame_size): Update.
1106 * config/score/score3.c (score3_compute_frame_size): Update.
1107 * config/score/score7.c (score7_compute_frame_size): Update.
1108 * config/arm/arm.c (use_return_insn): Update.
1109 (thumb_find_work_register): Update.
1110 (arm_compute_save_reg_mask): Update.
1111 (arm_output_function_prologue): Update.
1112 (arm_output_epilogue): Update.
1113 (arm_size_return_regs): Update.
1114 (arm_get_frame_offsets): Update.
1115 (arm_expand_prologue): Update.
1116 (thumb_exit): Update.
1117 (thumb_unexpanded_epilogue): Update.
1118 (thumb1_output_function_prologue): Update.
1119 * config/pa/pa.md (return expander): Update.
1120 * config/pa/pa.c (compute_frame_size): Update.
1121 (hppa_builtin_saveregs): Update.
1122 * config/mips/mips.c (mips_va_start): Update.
1123 (mips16_build_function_stub): Update.
1124 (mips_compute_frame_info): Update.
1125 (mips_restore_gp): Update.
1126 (mips_output_function_prologue): Update.
1127 (mips_expand_prologue): Update.
1128 * config/v850/v850.c (compute_frame_size): Update.
1129 (expand_prologue): * config/mmix/mmix.c (along): update.
1130 (mmix_initial_elimination_offset): update.
1131 (mmix_reorg): update.
1132 (mmix_use_simple_return): update.
1133 (mmix_expand_prologue): update.
1134 (mmix_expand_epilogue): Update.
1135 * config/bfin/bfin.c (bfin_initial_elimination_offset): Update.
1136 (emit_link_insn): Update.
1138 2008-04-08 Anatoly Sokolov <aesok@post.ru>
1140 * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): Define
1141 __AVR_HAVE_EIJMP_EICALL__ macro if device have EIJMP and EICALL
1143 * config/avr/avr.c (avr_mcu_types): Set AVR31 architecture for
1146 2008-04-07 Jan Hubicka <jh@suse.cz>
1148 * function.h (rtl): Rename to x_rtl.
1150 (return_label, naked_return_label, stack_slot_list, parm_birth_insn,
1151 frame_offset, stack_check_probe_note, arg_pointer_save_area,
1152 used_temp_slots avail_temp_slots, temp_slot_level,
1153 nonlocal_goto_handler_labels): Update accesstors.
1154 (rtl): New global variable.
1155 (struct function): Move some fileds to rtl_data.
1156 (get_arg_pointer_save_area): Update prototype.
1157 * builtins.c (expand_builtin_setjmp_receiver): Update call of
1158 get_arg_pointer_save_area.
1159 * expr.c (init_expr): Update
1160 * function.c (get_frame_size): Update
1161 (assign_stack_local): Update
1162 (expand_function_end): Update.
1163 (get_art_pointer_save_area): Update
1165 * emit-rtl.c (rtl): Declare.
1166 (regno_reg_rtx): Declare.
1167 (first_insn, last_insn, cur_insn_uid, last_location, first_label_num):
1169 (gen_reg_rtx): Update.
1170 * varasm.c (n_deferred_constatns): Update accestor.
1171 (init_varasm_status): Do not allocate varasm_status.
1172 (force_const_mem, get_pool_size, output_constant_pool): Update.
1173 * stmt.c (force_label_rtx): Do not use x_ prefixes.
1174 (expand_nl_goto_receiver): Update get_arg_pointer_save_area.
1175 * m32c/m32.c (m32c_leaf_function_p, m32c_function_needs_enter): Update.
1176 * sparc/sparc.h (INIT_EXPANDERS): Update.
1177 * ia64/ia64.h (INIT_EXPANDERS): Update.
1179 2008-04-07 James E. Wilson <wilson@tuliptree.org>
1181 * reload.c (push_secondary_reload): Add missing break to for loop.
1183 2008-04-07 Peter Bergner <bergner@vnet.ibm.com>
1185 PR middle-end/PR28690
1186 * rtlanal.c: Update copyright years.
1187 (commutative_operand_precedence): Give SYMBOL_REF's the same precedence
1188 as REG_POINTER and MEM_POINTER operands.
1189 * emit-rtl.c (gen_reg_rtx_and_attrs): New function.
1190 (set_reg_attrs_from_value): Call mark_reg_pointer as appropriate.
1191 * rtl.h (gen_reg_rtx_and_attrs): Add prototype for new function.
1192 * gcse.c: Update copyright years.
1193 (pre_delete): Call gen_reg_rtx_and_attrs.
1194 (hoist_code): Likewise.
1195 (build_store_vectors): Likewise.
1196 (delete_store): Likewise.
1197 * loop-invariant.c (move_invariant_reg): Likewise.
1198 Update copyright years.
1200 2008-04-07 Uros Bizjak <ubizjak@gmail.com>
1202 * config/i386/i386.md ("*sse_prologue_save_insn"): Use braced output
1203 control string instead of quoted.
1205 2008-04-07 Kenneth Zadeck <zadeck@naturalbridge.com>
1207 * doc/rtl.texi: Rewrite of subreg section.
1209 2008-04-07 Kai Tietz <kai.tietz@onevision.com>
1212 * config/i386/i386.c (legitimize_pic_address): Add treating
1213 of dllimport SYM_REF's.
1214 (legitimize_dllimport_symbol): Add prototype.
1216 2008-04-07 Eric Botcazou <ebotcazou@adacore.com>
1218 * fold-const.c (fold) <ARRAY_REF>: New case. Try to fold constant
1219 reference in constructor with non self-referential type.
1221 2008-04-07 Eric Botcazou <ebotcazou@adacore.com>
1223 Removal of Return with Depressed Stack Pointer support
1224 * tree.h (TYPE_RETURNS_STACK_DEPRESSED): Delete.
1225 (ECF_SP_DEPRESSED): Likewise.
1226 (ECF_LIBCALL_BLOCK, ECF_NOVOPS): Adjust.
1227 * calls.c (emit_call_1): Do not test ECF_SP_DEPRESSED.
1228 (flags_from_decl_or_type): Do not test TYPE_RETURNS_STACK_DEPRESSED.
1229 (expand_call): Do not test ECF_SP_DEPRESSED.
1230 * dse.c (dse_step0): Do not test TYPE_RETURNS_STACK_DEPRESSED.
1231 * function.c (keep_stack_depressed): Delete.
1232 (handle_epilogue_set): Likewise.
1233 (update_epilogue_consts): Likewise.
1234 (emit_equiv_load): Likewise.
1235 (thread_prologue_and_epilogue_insns): Remove support for Return with
1236 Depressed Stack Pointer.
1237 * print-tree.c (print_node): Do not test TYPE_RETURNS_STACK_DEPRESSED.
1239 2008-04-06 Richard Guenther <rguenther@suse.de>
1241 PR tree-optimization/35400
1242 * tree-vrp.c (vrp_evaluate_conditional): Only query value-range
1243 information from SSA_NAMEs.
1245 2008-04-06 Anatoly Sokolov <aesok@post.ru>
1247 * config/avr/avr.h (avr_mega_p): Remove declaration.
1248 (AVR_MEGA): Remove macro.
1249 * config/avr/avr.c (avr_mega_p): Remove variable.
1250 (avr_override_options): Remove inicializion of avr_mega_p.
1251 Use AVR_HAVE_JMP_CALL instead of AVR_MEGA.
1252 (print_operand): Use AVR_HAVE_JMP_CALL instead of AVR_MEGA.
1253 (avr_jump_mode): (Ditto.).
1254 (avr_output_progmem_section_asm_op): (Ditto.).
1255 (avr_asm_init_sections): (Ditto.).
1256 (avr_asm_init_sections): (Ditto.).
1257 (avr_rtx_costs): (Ditto.).
1258 * config/avr/avr.md: (Ditto.).
1259 * config/avr/avr.h: Use '__AVR_HAVE_JMP_CALL__' instead of
1262 2008-04-06 Richard Guenther <rguenther@suse.de>
1264 PR tree-optimization/35842
1265 * tree-ssa-address.c (fixed_address_object_p): Adjust to match
1266 is_gimple_invariant_address.
1268 2008-04-06 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1270 * gcc.c (default_compilers): Sync Fortran extensions list with
1271 that in fortran/lang-specs.h.
1272 * doc/invoke.texi: Likewise.
1273 * dbxout.c (get_lang_number): Use "GNU Fortran" in "GNU F95".
1274 * dwarf2out.c (gen_compile_unit_die): Likewise.
1276 2008-04-06 Tom G. Christensen <tgc@jupiterrise.com>
1278 * gthr-posix95.h (__gthread_cond_wait_recursive): Add missing &.
1280 2008-04-05 Uros Bizjak <ubizjak@gmail.com>
1283 * config/i386/i386.c (ix86_function_regparm): Error if regparm(3)
1284 attribute is used for nested functions.
1286 2008-04-05 Jan Hubicka <jh@suse.cz>
1288 * emit-rtl.c (init_emit): xcalloc regno_pointer_align.
1290 * tree-dump.c (dump_enable_all): Remove prototype; do not accept
1292 (dump_files): Update.
1293 (enable_rtl_dump_file): Do not accept letter argument.
1294 * tree-pass.h (dump_file_info): Remove letter argument.
1295 * toplev.c (decode_d_option): Update -da handling.
1296 * toplev.h (enable_rtl_dump_file): Update prototype.
1297 * passes.c (register_one_dump_file): Do not accept IPA argument; work
1298 it out based on pass type.
1299 (register_dump_files_1): Likewise.
1300 (init_optimization_passes): Update register_one_dump_file calls.
1301 (execute_one_pass): Sanity check that IPA passes are called at IPA
1302 level and RTL passes at RTL level.
1303 (execute_pass_list): IPA pass can not be after or subpass of
1305 (execute_ipa_pass_list): Handle IPA subpasses of IPA subpasses and
1306 disallov RTL subpasses of IPA subpasses.
1308 2008-04-05 Ben Elliston <bje@au.ibm.com>
1310 * tree-cfg.c (need_fake_edge_p): Return false for calls to
1311 builtins that return exactly once and do not throw. Cache call to
1314 2008-04-04 Andy Hutchinson <hutchinsonandy@aim.com>
1316 PR rtl-optimization/34916
1318 * combine.c (create_log_links): Do not create duplicate LOG_LINKS
1319 between instruction pairs.
1321 2008-04-04 Naveen.H.S <naveen.hs@kpitcummins.com>
1323 * doc/invoke.texi: Document -mbitops for SH.
1324 * config/sh/constraints.md (K03, K12, Sbv, Sbw): New constraints.
1325 * config/sh/predicates.md (bitwise_memory_operand): New predicate.
1326 * config/sh/sh.c (print_operand): Add %t operand code.
1327 * config/sh/sh.h (GO_IF_LEGITIMATE_INDEX): Add condition for SH2A.
1328 * config/sh/sh.md (*iorsi3_compact): Fix condition for SH2A.
1329 (extendqisi2_compact): Add the alternative for SH2A 4-byte mov.b.
1330 (extendqihi2): Likewise.
1331 (movqi_i): Likewise.
1332 (insv): Use bset, bclr and bst instructions for SH2A if possible.
1333 (extv): Use bld instruction for SH2A if possible.
1335 (bclr_m2a, bclrmem_m2a, bset_m2a, bsetmem_m2a, bst_m2a, bld_m2a,
1336 bldsign_m2a, bld_reg, *bld_regqi, band_m2a, bandreg_m2a,
1337 bor_m2a, borreg_m2a, bxor_m2a, bxorreg_m2a): New insns.
1338 (bset.b, bclr.b): Define peepholes.
1339 * config/sh/sh.opt (mbitops): New option.
1341 2008-04-04 Janis Johnson <janis187@us.ibm.com>
1344 * config/rs6000/rs6000.c (rs6000_check_sdmode): Handle indirect ref
1345 and view convert expression.
1347 2008-04-04 Jakub Jelinek <jakub@redhat.com>
1350 * tree-cfg.c (remove_useless_stmts_1): Handle OMP_* containers.
1352 2008-04-04 H.J. Lu <hongjiu.lu@intel.com>
1354 * config.gcc (extra_headers): Add wmmintrin.h for x86 and x86-64.
1356 * config/i386/cpuid.h (bit_AES): New.
1357 (bit_PCLMUL): Likewise.
1359 * config/i386/i386.c (pta_flags): Add PTA_AES and PTA_PCLMUL.
1360 (override_options): Handle PTA_AES and PTA_PCLMUL. Enable
1361 SSE2 if AES or PCLMUL is enabled.
1362 (ix86_builtins): Add IX86_BUILTIN_AESENC128,
1363 IX86_BUILTIN_AESENCLAST128, IX86_BUILTIN_AESDEC128,
1364 IX86_BUILTIN_AESDECLAST128, IX86_BUILTIN_AESIMC128,
1365 IX86_BUILTIN_AESKEYGENASSIST128 and IX86_BUILTIN_PCLMULQDQ128.
1366 (bdesc_sse_3arg): Add IX86_BUILTIN_PCLMULQDQ128.
1367 (bdesc_2arg): Add IX86_BUILTIN_AESENC128,
1368 IX86_BUILTIN_AESENCLAST128, IX86_BUILTIN_AESDEC128,
1369 IX86_BUILTIN_AESDECLAST128 and IX86_BUILTIN_AESKEYGENASSIST128.
1370 (bdesc_1arg): Add IX86_BUILTIN_AESIMC128.
1371 (ix86_init_mmx_sse_builtins): Define __builtin_ia32_aesenc128,
1372 __builtin_ia32_aesenclast128, __builtin_ia32_aesdec128,
1373 __builtin_ia32_aesdeclast128,__builtin_ia32_aesimc128,
1374 __builtin_ia32_aeskeygenassist128 and
1375 __builtin_ia32_pclmulqdq128.
1376 * config/i386/i386.c (ix86_expand_binop_imm_builtin): New.
1377 (ix86_expand_builtin): Use it for IX86_BUILTIN_PSLLDQI128 and
1378 IX86_BUILTIN_PSRLDQI128. Handle IX86_BUILTIN_AESKEYGENASSIST128.
1380 * config/i386/i386.h (TARGET_AES): New.
1381 (TARGET_PCLMUL): Likewise.
1382 (TARGET_CPU_CPP_BUILTINS): Handle TARGET_AES and TARGET_PCLMUL.
1384 * config/i386/i386.md (UNSPEC_AESENC): New.
1385 (UNSPEC_AESENCLAST): Likewise.
1386 (UNSPEC_AESDEC): Likewise.
1387 (UNSPEC_AESDECLAST): Likewise.
1388 (UNSPEC_AESIMC): Likewise.
1389 (UNSPEC_AESKEYGENASSIST): Likewise.
1390 (UNSPEC_PCLMUL): Likewise.
1392 * config/i386/i386.opt (maes): New.
1393 (mpclmul): Likewise.
1395 * config/i386/sse.md (aesenc): New pattern.
1396 (aesenclast): Likewise.
1398 (aesdeclast): Likewise.
1400 (aeskeygenassist): Likewise.
1401 (pclmulqdq): Likewise.
1403 * config/i386/wmmintrin.h: New.
1405 * doc/extend.texi: Document AES and PCLMUL built-in function.
1407 * doc/invoke.texi: Document -maes and -mpclmul.
1409 2008-04-04 Paolo Bonzini <bonzini@gnu.org>
1411 * function.c (free_after_parsing): Replace with
1412 cxx_push_function_context from C++ front-end.
1413 (allocate_struct_function): Don't call langhook.
1414 * langhooks.h (struct lang_hooks_for_functions): Delete.
1415 (struct lang_hooks): Add back missing_noreturn_ok_p here, delete
1417 * langhooks-def.h (LANG_HOOKS_MISSING_NORETURN_OK_P): Add.
1418 (LANG_HOOKS_FUNCTION_INIT, LANG_HOOKS_FUNCTION_FINAL,
1419 LANG_HOOKS_FUNCTION_MISSING_NORETURN_OK_P,
1420 LANG_HOOKS_FUNCTION_INITIALIZER): Delete.
1421 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_MISSING_NORETURN_OK_P,
1422 remove LANG_HOOKS_FUNCTION_INITIALIZER.
1423 * tree-cfg.c: Adjust call to missing_noreturn_ok_p langhook.
1425 * c-objc-common.h (LANG_HOOKS_FUNCTION_MISSING_NORETURN_OK_P):
1426 Rename to LANG_HOOKS_MISSING_NORETURN_OK_P.
1428 2008-04-04 Jakub Jelinek <jakub@redhat.com>
1431 * c-pretty-print.c (pp_c_initializer_list): Handle CONSTRUCTOR
1434 2008-04-04 Richard Guenther <rguenther@suse.de>
1437 * fold-const.c (optimize_minmax_comparison): Use the correct
1438 type for the constant in the simplified comparison.
1440 2008-04-04 Zuxy Meng <zuxy.meng@gmail.com>
1442 * config/i386/driver-i386.c (describe_cache): Add l2_sizekb argument.
1443 Pass L2 size as "--param l2-cache-size" to the compiler.
1444 (decode_l2_cache): New function to decode L2 cache parameters using
1445 0x8000006 extended cpuid function.
1446 (detect_caches_amd): Determine parameters of L2 cache using
1447 decode_l2_caches function.
1448 (decode_caches_intel): Decode L2 cache parameters.
1449 (detect_caches_intel): Determine L2 cache parameters using
1450 decode_caches_intel and decode_l2_caches functions.
1452 2008-04-03 Bob Wilson <bob.wilson@acm.org>
1454 * config/xtensa/xtensa.c (xtensa_secondary_reload_class): Use a
1455 secondary input reload for subword loads from the constant pool.
1457 2008-04-03 Janis Johnson <janis187@us.ibm.com>
1460 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use integer
1461 constants of the appropriate size for runtime calculations.
1464 * dfp.c (decimal_from_decnumber): Retain trailing zeroes for
1465 decimal-float literal constant zero.
1467 2008-04-03 Jakub Jelinek <jakub@redhat.com>
1470 * c-parser.c (c_parser_omp_atomic): Call
1471 default_function_array_conversion on the RHS.
1474 * omp-low.c (scan_sharing_clauses) <case OMP_CLAUSE_SHARED>: Don't
1475 call is_variable_sized if decl has incomplete type.
1477 2008-04-03 H.J. Lu <hongjiu.lu@intel.com>
1479 * config/i386/i386-protos.h (ix86_aligned_p): Removed.
1481 2008-04-03 Adam Nemet <anemet@caviumnetworks.com>
1483 * config/mips/mips.md (any_gt, any_ge, any_lt, any_le): New code
1485 (u): Add attribute values for gt, gtu, ge, geu, lt, ltu, le and leu.
1486 (sgt<u>): Merge sgt and sgtu into new expander.
1487 (sgt, sgtu): Remove expanders.
1488 (*sgt<u>_<mode>): Merge *sgt_<mode> and *sgtu_<mode> into new pattern.
1489 (*sgt_<mode>, *sgtu_<mode>): Remove patterns.
1490 (*sgt<u>_<mode>_mips16): Merge *sgt_<mode>_mips16 and
1491 *sgtu_<mode>_mips16 into new pattern.
1492 (*sgt_<mode>_mips16, *sgtu_<mode>_mips16): Remove patterns.
1493 (sge<u>): Merge sge and sgeu into new expander.
1494 (sge, sgeu): Remove expanders.
1495 (*sge<u>_<mode>): Merge *sge_<mode> and second *sge_<mode> into
1497 (*sge_<mode>, second *sge_<mode>): Remove patterns.
1498 (slt<u>): Merge slt and sltu into new expander.
1499 (slt, sltu): Remove expanders.
1500 (*slt<u>_<mode>): Merge *slt_<mode> and *sltu_<mode> into new pattern.
1501 (*slt_<mode>, *sltu_<mode>): Remove patterns.
1502 (*slt<u>_<mode>_mips16): Merge *slt_<mode>_mips16 and
1503 *sltu_<mode>_mips16 into new pattern.
1504 (*slt_<mode>_mips16, *sltu_<mode>_mips16): Remove patterns.
1505 (sle<u>): Merge sle and sleu into new expander.
1506 (sle, sleu): Remove expanders.
1507 (*sle<u>_<mode>): Merge *sle_<mode> and *sleu_<mode> into new pattern.
1508 (*sle_<mode>, *sleu_<mode>): Remove patterns.
1509 (*sle<u>_<mode>_mips16): Merge *sle_<mode>_mips16 and
1510 *sleu_<mode>_mips16 into new pattern.
1511 (*sle_<mode>_mips16, *sleu_<mode>_mips16): Remove patterns.
1513 2008-04-03 Jan Hubicka <jh@suse.cz>
1515 PR tree-optimization/35795
1516 * alpha/alpha.c (alpha_output_mi_thunk_osf): Free after compilation.
1517 * sparc/sparc.c (sparc_output_mi_thunk): Likewise.
1518 * ia64/ia64.c (ia64_output_mi_thunk): Likewise.
1519 * m68k/m68k.c (m68k_output_mi_thunk): Likewise.
1520 * score/score3.c (score3_output_mi_thunk): Likewise.
1521 * score/score7.c (score7_output_mi_thunk): Likewise.
1522 * mips/mips.c (mips_output_mi_thunk): Likewise.
1524 2008-04-03 Richard Guenther <rguenther@suse.de>
1526 * tree-vrp.c (extract_range_from_unary_expr): Handle all
1527 conversions. Simplify code.
1529 2008-04-03 Kaz Kojima <kkojima@gcc.gnu.org>
1531 * config/sh/sh.c (sh_output_mi_thunk): Free cfun.
1533 2008-04-03 Tom Tromey <tromey@redhat.com>
1534 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1536 * config/m68k/t-uclinux (generated_files): Add sysroot-suffix.h.
1537 * config/bfin/t-bfin-linux (generated_files): Add
1538 linux-sysroot-suffix.h.
1539 * doc/install.texi (Prerequisites): Require make 3.80.
1540 * doc/sourcebuild.texi (Front End Directory): Document new
1542 * Makefile.in (generated_files): New variable.
1543 (ALL_HOST_OBJS): New variable.
1544 ($(ALL_HOST_OBJS)): New target.
1546 2008-04-03 Paolo Bonzini <bonzini@gnu.org>
1548 * tree-inline.c (copy_generic_body, copy_decl_no_change): Export.
1549 (remap_block): Call id->transform_lang_insert_block instead
1551 (optimize_inline_calls, unsave_expr_now, tree_function_versioning):
1552 Set id.transform_lang_insert_block to NULL.
1553 (clone_body): Move to cp/optimize.c
1554 * tree-inline.h (struct copy_body_data): Change
1555 transform_lang_insert_block to function pointer.
1556 (copy_generic_body, copy_decl_no_change): Export.
1557 * langhooks.h (struct lang_hooks_for_decls): Kill insert_block.
1558 * langhooks-def.h (LANG_HOOKS_INSERT_BLOCK): Kill.
1559 (LANG_HOOKS_DECLS): Remove LANG_HOOKS_INSERT_BLOCK.
1561 * c-tree.h (insert_block): Kill.
1562 * c-decl.c (insert_block): Kill.
1564 2008-04-03 Paolo Bonzini <bonzini@gnu.org>
1566 * c-objc-common.h (LANG_HOOKS_FUNCTION_ENTER_NESTED,
1567 LANG_HOOKS_FUNCTION_LEAVE_NESTED): Delete.
1568 * c-tree.h (c_push_function_context, c_pop_function_context): Remove
1570 * c-decl.c (c_push_function_context, c_pop_function_context): Remove
1571 argument, call {push,pop}_function_context from here.
1572 * c-parser.c: Use c_{push,pop}_function_context.
1574 * function.c (push_function_context_to): Move meat ...
1575 (push_function_context): ... here. Simplify.
1576 * function.c (pop_function_context_from): Move meat ...
1577 (pop_function_context): ... here. Simplify.
1578 * langhooks.h (struct lang_hooks_for_functions): Remove enter_nested,
1580 * langhooks-def.h (LANG_HOOKS_FUNCTION_ENTER_NESTED,
1581 LANG_HOOKS_FUNCTION_LEAVE_NESTED): Delete.
1582 (LANG_HOOKS_FUNCTION_INITIALIZER): Delete them from here.
1583 * tree.h (push_function_context_to, pop_function_context_from): Remove.
1585 2008-04-03 Ben Elliston <bje@au.ibm.com>
1587 * expmed.c (extract_force_align_mem_bit_field): Remove.
1589 2008-04-03 Richard Guenther <rguenther@suse.de>
1592 * expr.h (try_casesi): Adjust prototype.
1593 * expr.c (try_casesi): Take fallback label as extra parameter.
1594 Use that for gen_casesi if default_label is NULL.
1595 * stmt.c (expand_case): Pass fallback label to try_casesi,
1596 make sure to fill gaps with a fallback label if default_label
1599 2008-04-03 Dominique d'Humieres <dominiq@lps.ens.fr>
1602 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Free cfun.
1604 2008-04-03 Ben Elliston <bje@au.ibm.com>
1606 * expmed.c (extract_split_bit_field): Remove if (0) code.
1607 * tree-ssa-structalias.c (do_sd_constraint): Likewise.
1608 (do_ds_constraint): Likewise.
1610 2008-04-02 Joseph Myers <joseph@codesourcery.com>
1612 * doc/cppopts.texi (-dU): Document.
1613 * c-common.h (flag_dump_macros): Update comment.
1614 * c-opts.c (handle_OPT_d): Handle -dU.
1615 * c-ppoutput.c (macro_queue, define_queue, undef_queue,
1616 dump_queued_macros, cb_used_define, cb_used_undef): New.
1617 (init_pp_output): Handle -dU.
1618 (cb_line_change): Call dump_queued_macros.
1619 * toplev.c (decode_d_option): Accept -dU as preprocessor option.
1621 2008-04-02 Anatoly Sokolov <aesok@post.ru>
1623 * config/avr/predicates.md (io_address_operand): New predicate.
1624 * config/avr/avr-protos.h (avr_io_address_p): Remove declaration.
1625 * config/avr/avr.c (avr_io_address_p): Remove function.
1626 (out_movqi_r_mr): Use 'io_address_operand' predicate instead of
1627 'avr_io_address_p' function.
1628 (out_movhi_r_mr): (Ditto.).
1629 (out_movqi_mr_r): (Ditto.).
1630 (out_movhi_mr_r): (Ditto.).
1631 (avr_address_cost): (Ditto.).
1633 2008-04-02 Uros Bizjak <ubizjak@gmail.com>
1635 * config/i386/i386.md (*float<SSEMODEI24:mode><X87MODEF:mode>2_1):
1636 Emit gen_floatdi<X87MODEF:mode>2_i387_with_xmm for DImode values
1637 in 32bit mode when XMM registers are available to avoid store
1639 (floatdi<X87MODEF:mode>2_i387_with_xmm): New insn pattern and
1640 corresponding post-reload splitters.
1642 2008-04-02 H.J. Lu <hongjiu.lu@intel.com>
1644 * config/i386/i386.c (bdesc_sse_3arg): Add __builtin_ia32_shufps
1645 and __builtin_ia32_shufpd. Provide __builtin_ia32_roundsd and
1646 __builtin_ia32_roundss.
1647 (ix86_init_mmx_sse_builtins): Remove __builtin_ia32_shufps,
1648 __builtin_ia32_shufpd, __builtin_ia32_roundsd and
1649 __builtin_ia32_roundss.
1650 (ix86_expand_builtin): Don't handle IX86_BUILTIN_SHUFPS and
1651 IX86_BUILTIN_SHUFPD here.
1653 2008-04-02 H.J. Lu <hongjiu.lu@intel.com>
1655 * config/i386/i386.md (plogic): New.
1656 (plogicprefix): Likewise.
1658 * config/i386/mmx.md (mmx_<code><mode>3): New.
1659 (mmx_and<mode>3): Removed.
1660 (mmx_ior<mode>3): Likewise.
1661 (mmx_xor<mode>3): Likewise.
1663 * config/i386/sse.md (<code><mode>3): New.
1664 (*<code><mode>3): Likewise.
1665 (*<code><mode>3): Likewise.
1666 (<code><mode>3): Likewise.
1667 (*sse_<code><mode>3): Likewise.
1668 (*sse2_<code><mode>3): Likewise.
1669 (<code>tf3): Likewise.
1670 (*<code>tf3): Likewise.
1671 (and<mode>3): Likewise.
1672 (*and<mode>3): Likewise.
1673 (ior<mode>3): Removed.
1674 (*ior<mode>3): Likewise.
1675 (xor<mode>3): Likewise.
1676 (*xor<mode>3): Likewise.
1677 (*and<mode>3): Likewise.
1678 (*ior<mode>3): Likewise.
1679 (*xor<mode>3): Likewise.
1680 (and<mode>3): Likewise.
1681 (*sse_and<mode>3): Likewise.
1682 (*sse2_and<mode>3): Likewise.
1684 (*andtf3): Likewise.
1685 (ior<mode>3): Likewise.
1686 (*sse_ior<mode>3): Likewise.
1687 (*sse2_ior<mode>3): Likewise.
1689 (*iortf3): Likewise.
1690 (xor<mode>3): Likewise.
1691 (*sse_xor<mode>3): Likewise.
1692 (*sse2_xor<mode>3): Likewise.
1694 (*xortf3): Likewise.
1696 2008-04-02 Richard Guenther <rguenther@suse.de>
1698 PR tree-optimization/14495
1699 PR tree-optimization/34793
1700 * tree-vrp.c (struct switch_update): New structure.
1701 (to_remove_edges, to_update_switch_stmts): New VECs.
1702 (simplify_switch_using_ranges): New function. Remove not taken
1703 case labels and edges.
1704 (simplify_stmt_using_ranges): Call it.
1705 (identify_jump_threads): Mark edges we have queued for removal
1706 so we don't thread them.
1707 (execute_vrp): Remove edges queued for removal, update SWITCH_STMT
1709 * tree-cfg.c (group_case_labels): Deal with missing default label.
1710 (tree_verify_flow_info): Allow missing default label.
1711 * stmt.c (emit_case_bit_tests): Deal with NULL default_label.
1712 (emit_case_nodes): Likewise.
1713 (expand_case): Do not rely on the default label to be present.
1714 * expr.c (try_casesi): Deal with NULL default_label.
1715 (do_tablejump): Likewise.
1717 2008-04-02 Richard Guenther <rguenther@suse.de>
1719 PR tree-optimization/14495
1720 * tree-vrp.c (vrp_visit_cond_stmt): Do not handle
1721 SWITCH_EXPR here ...
1722 (vrp_visit_switch_stmt): ... but here (new function).
1723 (find_case_label_index): New helper function.
1724 (vrp_visit_stmt): Dispatch to vrp_visit_switch_stmt.
1726 2008-04-02 Paolo Bonzini <bonzini@gnu.org>
1728 * fwprop.c: Fix ISO-C99ism.
1730 2008-04-02 Paolo Bonzini <bonzini@gnu.org>
1733 * Makefile.in (objdir): Set it here.
1734 * configure.ac: Not here. Find dynamic linker characteristics.
1735 * exec-tool.in: Use them.
1736 * aclocal.m4: Regenerate.
1737 * configure: Regenerate.
1739 2008-04-02 Paolo Bonzini <bonzini@gnu.org>
1741 * expr.c (expand_var): Delete it.
1742 * expr.h (expand_var): Delete prototype.
1743 * function.c (expand_function_start): Use expand_decl instead.
1744 * cfgexpand.c (expand_one_static_var, expand_one_var): Don't call
1747 2008-04-02 Andy Hutchinson <hutchinsonamdy@aim.com>
1749 PR rtl-optimization/35542
1750 * fwprop.c (forward_propagate_and_simplify): Replace
1751 loc_reg_mentioned_in_p with reg_mentioned_p.
1753 2008-04-02 Paolo Bonzini <bonzini@gnu.org>
1755 PR rtl-optimization/35281
1756 * fwprop.c (PR_CAN_APPEAR, PR_HANDLE_MEM): New.
1757 (propagate_rtx_1): Handle PR_HANDLE_MEM.
1758 (propagate_rtx): Pass PR_HANDLE_MEM if appropriate.
1759 (varying_mem_p): Move above propagate_rtx.
1760 (all_uses_available_at): Do not check MEMs.
1762 2008-04-02 Rafael Espindola <espindola@google.com>
1764 * tree-vrp.c (extract_code_and_val_from_cond): Remove.
1765 (register_edge_assert_for_2): Split the cond argument.
1766 (register_edge_assert_for_1): Adjust for the change in
1767 register_edge_assert_for_2.
1768 (register_edge_assert_for): Split the cond argument.
1769 (find_switch_asserts): Adjust for the change in
1770 register_edge_assert_for.
1772 2008-04-02 Kai Tietz <kai.tietz@onevision.com>
1774 * config.gcc: Add for x86_64-*-mingw* the t-crtfm to tbuild.
1775 * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Add 8 byte
1776 offsets for 64-bit mingw.
1777 * config/i386/i386.c (ix86_pass_by_reference): Correct calling
1778 abi for x86_64-pc-mingw.
1780 2008-04-02 Richard Guenther <rguenther@suse.de>
1782 * tree-vrp.c (extract_range_from_assert): Make sure to not
1783 produce range min/max with TREE_OVERFOW set.
1784 If merging a anti-range and a range keep the anti-range if
1785 the range covers all values of the type.
1786 (register_edge_assert_for_2): Only allow sign-changing
1787 conversions in detecting canonical range checks. Also
1788 register an assert for the unsigned name if useful.
1790 PR tree-optimization/35787
1791 * tree-vrp.c (vrp_val_max): New function.
1792 (vrp_val_min): Likewise.
1793 (vrp_val_is_max): Move earlier, use vrp_val_{min,max}.
1794 (vrp_val_is_min): Likewise.
1795 (supports_overflow_infinity): Use vrp_val_{min,max}.
1796 (negative_overflow_infinity): Likewise.
1797 (positive_overflow_infinity): Likewise.
1798 (is_negative_overflow_infinity): Use vrp_val_is_{min,max}.
1799 (is_positive_overflow_infinity): Likewise.
1800 (is_overflow_infinity): Likewise.
1801 (avoid_overflow_infinity): Use vrp_val_{min,max} and
1802 vrp_val_is_{min,max}.
1803 (set_and_canonicalize_value_range): Canonicalize anti-ranges
1804 to ranges if possible. Avoid empty ranges.
1806 2008-04-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1809 * fold-const.c (get_pointer_modulus_and_residue): Return modulus 1 if
1810 the expression is a function address.
1812 2008-04-01 George Helffrich <george@gcc.gnu.org>
1814 PR fortran/PR35154, fortran/PR23057
1815 * fortran/trans-common.c (create_common): Add decl to function
1816 chain to preserve identifier scope in debug output.
1818 * dbxout.c: Emit .stabs debug info for Fortran COMMON block
1819 variables as base symbol name + offset using N_BCOMM/N_ECOMM.
1820 (is_fortran, dbxout_common_name, dbxout_common_check): New functions.
1821 (dbxout_symbol_location): Transform N_LCSYM to N_GSYM for storage
1823 (dbxout_syms): Check for COMMON-based symbol and wrap in
1824 N_BCOMM/N_ECOMM stab bracket, including as many symbols as possible
1825 in bracket for efficiency.
1827 * dwarf2out.c: Emit DWARF debug info for Fortran COMMON block
1828 using DW_TAG_common_block + member offset.
1829 (add_pubname_string): New function.
1830 (dw_expand_expr): New function to find block name and offset for
1832 (common_check): New function to check whether symbol in Fortran COMMON.
1833 (gen_variable_die): If COMMON, use DW_TAG_common_block.
1835 * testsuite/gcc.dg/debug/pr35154.c: New test to check that non-Fortran
1836 use of common is unchanged.
1838 * testsuite/lib/gfortran-dg.exp: New harness to compile Fortran progs
1839 with all combinations of debug options available on target.
1840 * testsuite/gfortran.dg/debug/debug.exp: Ditto.
1841 * testsuite/gfortran.dg/debug/trivial.f: Ditto.
1842 * testsuite/gfortran.dg/debug/pr35154-stabs.f: New test case for
1843 .stabs functionality.
1844 * testsuite/gfortran.dg/debug/pr35154-dwarf2.f: New test case for
1845 DWARF functionality.
1847 2008-04-01 Volker Reichelt <v.reichelt@netcologne.de>
1850 * c-format.c (init_dynamic_gfc_info): Ignore invalid locus type.
1852 2008-04-02 Ben Elliston <bje@au.ibm.com>
1854 * config/v850/v850.md (casesi): Remove if (0) code.
1855 * config/i386/uwin.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
1856 * config/alpha/alpha.c (alpha_initialize_trampoline): Likewise.
1858 2008-04-01 Uros Bizjak <ubizjak@gmail.com>
1860 * config/i386/i386.md (rex64suffix): New mode attribute.
1861 (floathi<mode>2): Disable expander for SSE math.
1862 (*floathi<mode>2_1): New insn insn_and_split pattern.
1863 (*floathi<mode>2_i387_with_temp): New macroized instruction pattern and
1864 corresponding post-reload splitters.
1865 (*floathi<mode>2_i387): New macroized insn pattern.
1866 (float<SSEMODEI24:mode><X87MODEF:mode>2): New macroized expander.
1867 (*float<SSEMODEI24:mode><X87MODEF:mode>2_1): New macroized
1868 insn_and_split pattern.
1869 (*floatsi<mode>2_vector_mixed_with_temp, *floatsi<mode>2_vector_mixed):
1870 New macroized instruction patterns and corresponding post-reload
1872 (*floatsi<mode>2_mixed_with_temp): New macroized instruction pattern
1873 and corresponding post-reload splitters.
1874 (*floatsi<mode>2_mixed_interunit, *floatsi<mode>2_mixed_nointerunit):
1875 New macroized instruction patterns.
1876 (*floatsi<mode>2_vector_sse_with_temp, *floatsi<mode>2_vector_sse): New
1877 macroized instruction patterns and corresponding post-reload splitters.
1878 (*floatsi<mode>2_sse_with_temp): New macroized instruction pattern and
1879 corresponding post-reload splitters.
1880 (*floatsi<mode>2_sse_interunit, *floatsi<mode>2_mixed_nointerunit):
1881 New macroized instruction patterns.
1882 (*floatsi<mode>2_i387_with_temp): New macroized instruction pattern and
1883 corresponding post-reload splitters.
1884 (*floatsi<mode>2_i387): New macroized instruction patterns.
1886 2008-04-01 H.J. Lu <hongjiu.lu@intel.com>
1888 * config/i386/i386.md (smaxmin): New.
1889 (umaxmin): Likewise.
1890 (maxminiprefix): Likewise.
1891 (maxminfprefix): Likewise.
1892 (<code><mode>3): Likewise.
1893 (smin<mode>3): Removed.
1894 (smax<mode>3): Likewise.
1896 * config/i386/mmx.md (mmx_<code>v2sf3): New.
1897 (mmx_<code>v4hi3): Likewise.
1898 (mmx_<code>v8qi3): Likewise.
1899 (mmx_smaxv2sf3): Removed.
1900 (mmx_sminv2sf3): Likewise.
1901 (mmx_umaxv8qi3): Likewise.
1902 (mmx_smaxv4hi3): Likewise.
1903 (mmx_uminv8qi3): Likewise.
1904 (mmx_sminv4hi3): Likewise.
1906 * config/i386/sse.md (<addsub><mode>3): New.
1907 (*<addsub><mode>3): Likewise.
1908 (<sse>_vm<addsub><mode>3): Likewise.
1909 (<maxmin><mode>3): Likewise.
1910 (*<maxmin><mode>3_finite): Likewise.
1911 (*<maxmin><mode>3): Likewise.
1912 (<sse>_vm<maxmin><mode>3): Likewise.
1913 (sse3_h<addsub>v4sf3): Likewise.
1914 (sse3_h<addsub>v2df3): Likewise.
1915 (<maxmin>v16qi3): Likewise.
1916 (*<maxmin>v16qi3): Likewise.
1917 (<maxmin>v8hi3): Likewise.
1918 (*<maxmin>v8hi3): Likewise.
1919 (*sse4_1_<maxmin><mode>3): Likewise.
1920 (*sse4_1_<maxmin><mode>3): Likewise.
1921 (add<mode>3): Removed.
1922 (*add<mode>3): Likewise.
1923 (<sse>_vmadd<mode>3): Likewise.
1924 (sub<mode>3): Likewise.
1925 (*sub<mode>3): Likewise.
1926 (<sse>_vmsub<mode>3): Likewise.
1927 (smin<mode>3): Likewise.
1928 (*smin<mode>3_finite): Likewise.
1929 (*smin<mode>3): Likewise.
1930 (<sse>_vmsmin<mode>3): Likewise.
1931 (smax<mode>3): Likewise.
1932 (*smax<mode>3_finite): Likewise.
1933 (*smax<mode>3): Likewise.
1934 (<sse>_vmsmax<mode>3): Likewise.
1935 (sse3_haddv4sf3): Likewise.
1936 (sse3_haddv2df3): Likewise.
1937 (sse3_hsubv4sf3): Likewise.
1938 (sse3_hsubv2df3): Likewise.
1939 (umaxv16qi3): Likewise.
1940 (*umaxv16qi3): Likewise.
1941 (smaxv8hi3): Likewise.
1942 (*smaxv8hi3): Likewise.
1943 (*sse4_1_smax<mode>3): Likewise.
1944 (*sse4_1_umax<mode>3): Likewise.
1945 (uminv16qi3): Likewise.
1946 (*uminv16qi3): Likewise.
1947 (sminv8hi3): Likewise.
1948 (*sminv8hi3): Likewise.
1949 (*sse4_1_smin<mode>3): Likewise.
1950 (*sse4_1_umin<mode>3): Likewise.
1952 2008-04-01 Rafael Espindola <espindola@google.com>
1954 * tree-cfg.c (verify_expr): remove in_phi.
1955 (verify_stmt): Don't call walk_tree with verify_expr. Use
1956 is_gimple_min_invariant instead of is_gimple_val.
1958 2008-04-01 Joseph Myers <joseph@codesourcery.com>
1960 * doc/include/gpl_v3.texi: Update for manpage generation.
1961 * doc/gcc.texi, doc/gccint.texi: Include gpl_v3.texi instead of
1963 * doc/sourcebuild.texi: Document gpl_v3.texi as well as gpl.texi.
1964 * Makefile.in (TEXI_GCC_FILES, TEXI_GCCINT_FILES): Include
1965 gpl_v3.texi instead of gpl.texi.
1968 2008-04-01 Jakub Jelinek <jakub@redhat.com>
1971 * c-pch.c (c_common_read_pch): On error close (fd) resp. fclose (f).
1973 2008-04-01 Rafael Espindola <espindola@google.com>
1975 * tree-vrp.c (extract_code_and_val_from_cond_with_ops): New.
1976 (extract_code_and_val_from_cond): Use
1977 extract_code_and_val_from_cond_with_ops.
1979 2008-04-01 Jan Hubicka <jh@suse.cz>
1981 * function.c (free_after_compilation): Free epilogue_delay_list.
1982 (prepare_function_start): Assert that previous compilation was freed.
1984 2008-04-01 Jan Hubicka <jh@suse.cz>
1985 Jim Wilson <wilson@tuliptree.org>
1986 Andreas Tobler <andreast@gcc.gnu.org>
1989 * m32c/m32.c (m32c_leaf_function_p, m32c_function_needs_enter): Use
1990 rtl.emit instead cfun->emit.
1991 * sparc/sparc.h (INIT_EXPANDERS): Likewise.
1992 * ia64/ia64.h (INIT_EXPANDERS): Likewise.
1994 2008-04-01 Ben Elliston <bje@au.ibm.com>
1996 * doc/c-tree.texi (Function Basics): Fix grammatical error.
1998 2008-03-31 Seongbae Park <seongbae.park@gmail.com>
2000 * common.opt (fprofile-dir=, fprofile-use=, fprofile-generate=):
2002 (fprofile-use): Add var flag_profile_use
2003 * coverage.c (coverage_begin_output): Do not open a gcno file for
2004 output only if -ftest-coverage is set.
2005 Do not add getpwd() to gcda file path.
2006 (build_gcov_info): Check the new flag
2007 flag_profile_datafile_relative_path.
2008 (coverage_init): Use profile_data_prefix.
2009 Read profile counter only if flag_profile_use is set.
2010 * opts.c (common_handle_option): New option fprofile-use=,
2011 fprofile-dir=, fprofile-generate=.
2012 * toplev.c (profile_data_prefix): New variable definition.
2013 * toplev.h (profile_data_prefix): New declaration.
2014 * doc/invoke.tex (Option Summary, Optimization Options):
2017 2008-03-31 James E. Wilson <wilson@tuliptree.org>
2019 * varasm.c (output_constant_pool_1): In LABEL_REF check,
2020 use tmp consistently.
2023 * config/ia64/div.md (recip_approx_rf): Use UNSPEC not DIV.
2024 * config/ia64/ia64.c (rtx_needs_barrier): Handle
2025 UNSPEC_FR_RECIP_APPROX_RES.
2026 * config/ia64/ia64.md (UNSPEC_FR_RECIP_APPROX_RES): Define.
2028 2008-03-31 Volker Reichelt <v.reichelt@netcologne.de>
2031 * c-decl.c (store_parm_decls_oldstyle): Skip invalid parameters.
2033 2008-03-31 Andrew Pinski <andrew_pinski@playstation.sony.com>
2036 * fold-const.c (fold_indirect_ref_1): Support accessing non first
2037 element of the vector via a pointer.
2039 2008-03-31 Ian Lance Taylor <iant@google.com>
2041 * tlink.c (scan_linker_output): Look for symbol name in single quotes.
2043 2008-03-31 Jan Hubicka <jh@suse.cz>
2045 * builtins.c (expand_builtin_setjmp_receiver): Update call of
2046 get_arg_pointer_save_area.
2047 * expr.c (init_expr): Just clear out rtl.expr.
2048 * function.c (free_after_compilation): Clear out whole RTL structure.
2049 (get_func_frame_size): Merge into ...
2050 (get_frame_size): ... this one.
2051 (assign_stack_local_1): Merge into ...
2052 (assign_stack_local): ... this one.
2053 (expand_function_end): Update call of get_arg_pointer_save_area.
2054 (get_art_pointer_save_area): Remove cfun argument.
2055 * function.h (emit_status): regno_pointer_align does not need length
2056 attribute. Move x_regno_reg_rtx to ...
2057 (regno_reg_rtx): ... new global array.
2058 (reg_rtx_no, seq_stack, REGNO_POINTER_ALIGN): Update accestors.
2059 (pending_stack_adjust, inhibit_defer_pop, saveregs_value,
2060 apply_args_value, forced_labels, stack_pointer_delta):
2062 (struct varasm_status): Move here from varasm.c
2063 (struct rtl_data): New. Move here some fields from struct function.
2064 (return_label, naked_return_label, stack_slot_list, parm_birth_insn,
2065 frame_offset, stack_check_probe_note, arg_pointer_save_area,
2066 used_temp_slots avail_temp_slots, temp_slot_level,
2067 nonlocal_goto_handler_labels): Update accesstors.
2068 (rtl): New global variable.
2069 (struct function): Move some fileds to rtl_data.
2070 (get_arg_pointer_save_area): Update prototype.
2071 * emit-rtl.c (rtl): Declare.
2072 (regno_reg_rtx): Declare.
2073 (first_insn, last_insn, cur_insn_uid, last_location, first_label_num):
2075 (gen_reg_rtx): Update.
2076 (init_virtual_regs): Do not tate emit_status argument.
2077 (init_emit): Do not allocate emit.
2078 * varasm.c (varasm_statuc): Move to function.h.
2079 (n_deferred_constatns): Update accestor.
2080 (init_varasm_status): Do not allocate varasm_status.
2081 (force_const_mem, get_pool_size, output_constant_pool): Update.
2082 * stmt.c (force_label_rtx): Do not use x_ prefixes.
2083 (expand_nl_goto_receiver): Update get_arg_pointer_save_area.
2085 2008-03-31 Zdenek Dvorak <ook@ucw.cz>
2087 PR rtl-optimization/35729
2088 * loop-invariant.c (check_maybe_invariant): Disallow volatile memory
2091 2008-03-31 H.J. Lu <hongjiu.lu@intel.com>
2094 * config/i386/i386.md (*movti_internal): Emit unaligned SSE
2095 load/store if memory is unaligned.
2096 (*movti_rex64): Likewise.
2098 * config/i386/predicates.md (misaligned_operand): New.
2100 2008-03-31 Andrew Pinski <pinskia@gmail.com>
2103 * tree-ssa-phiopt.c (conditional_replacement): Return early for
2106 2008-03-31 Jan Beulich <jbeulich@novell.com>
2108 * config/ia64/constraints.md: Add 'j' constraint.
2109 * config/ia64/ia64.md (movsi_internal): Add addp4 case.
2110 (movdi_internal): Likewise.
2112 2008-03-30 Volker Reichelt <v.reichelt@netcologne.de>
2115 * c-typeck.c (build_c_cast): Skip invalid fields in unions.
2117 2008-03-30 H.J. Lu <hongjiu.lu@intel.com>
2120 * config/i386/i386.c (ix86_expand_sse_4_operands_builtin): Issue
2121 proper error message for the third argument on blendpd and
2124 * config/i386/sse.md (blendbits): New.
2125 (sse4_1_blendp<ssemodesuffixf2c>): Use it.
2127 2008-03-30 Eric Botcazou <ebotcazou@adacore.com>
2129 * fold-const.c (fold_binary) <BIT_IOR_EXPR>: Add missing conversions.
2131 2008-03-30 Richard Guenther <rguenther@suse.de>
2134 * fold-const.c (fold_sign_changed_comparison): Do leave
2135 conversions to base-types alone.
2137 2008-03-29 Andrew Pinski <andrew_pinski@playstation.sony.com>
2139 * config/rs6000/rs6000.c (rs6000_stack_info): Don't force saving of
2140 the link register if one altivec register is be saved.
2142 2008-03-30 Ben Elliston <bje@au.ibm.com>
2144 * final.c (final_scan_insn): Remove if (0) code.
2146 2008-03-28 Volker Reichelt <v.reichelt@netcologne.de>
2148 * c-parser.c (c_parser_next_token_is_keyword): Simplify.
2150 2008-03-28 H.J. Lu <hongjiu.lu@intel.com>
2152 * config/i386/sse.md (*and<mode>3): Pass <MODE>mode instead
2153 of V4SFmode to ix86_binary_operator_ok.
2155 2008-03-28 Uros Bizjak <ubizjak@gmail.com>
2157 * config/i386/i386.c (override_options): Initialize
2158 ix86_veclib_handler to ix86_veclibabi_svml when
2159 -mveclibabi=svml is used.
2160 (ix86_veclibabi_svml): New function for SVML ABI style
2161 vectorization support.
2162 * doc/invoke.texi (-mveclibabi) [svml]: Document new target option.
2164 2008-03-28 Rafael Espindola <espindola@google.com>
2166 * fold-const.c (tree_unary_nonnegative_warnv_p): Make it public.
2167 (tree_binary_nonnegative_warnv_p): Make it public.
2168 (tree_single_nonnegative_warnv_p): Make it public.
2169 (tree_invalid_nonnegative_warnv_p): Make it public.
2170 (tree_unary_nonzero_warnv_p): Make it public.
2171 (tree_binary_nonzero_warnv_p): Make it public
2172 (tree_single_nonzero_warnv_p): Make it public.
2173 * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops): New function.
2174 (extract_range_from_binary_expr): Split the expr argument.
2175 (extract_range_from_unary_expr): Split the expr argument.
2176 (extract_range_from_comparison): Split the expr argument.
2177 (extract_range_from_expr): Use the new aux functions.
2178 (vrp_evaluate_conditional_warnv): Use
2179 vrp_evaluate_conditional_warnv_with_ops.
2180 * tree.h (tree_unary_nonzero_warnv_p): Declare.
2181 (tree_binary_nonzero_warnv_p): Declare.
2182 (tree_single_nonzero_warnv_p): Declare.
2183 (tree_expr_nonzero_warnv_p): Declare.
2184 (tree_unary_nonnegative_warnv_p): Declare.
2185 (tree_binary_nonnegative_warnv_p): Declare.
2186 (tree_single_nonnegative_warnv_p): Declare.
2187 (tree_invalid_nonnegative_warnv_p): Declare.
2189 2008-03-28 Richard Guenther <rguenther@suse.de>
2191 PR tree-optimization/30317
2192 PR tree-optimization/30911
2193 PR tree-optimization/34793
2194 * tree-vrp.c (set_and_canonicalize_value_range): New function.
2195 (struct assert_locus_d): New member EXPR.
2196 (register_new_assert_for): Add EXPR parameter to support
2197 ASSERT_EXPR <name, expr OP limit>.
2198 (register_edge_assert_for_1): Adjust callers.
2199 (find_assert_locations): Likewise.
2200 (process_assert_insertions_for): Build condition from expression.
2201 (extract_range_from_assert): Handle ASSERT_EXPRs
2202 of the form ASSERT_EXPR <name, expr OP limit>.
2203 (register_edge_assert_for_2): New helper registering
2204 asserts for comparisons. Recognize range tests of the form
2205 (unsigned)i - CST1 OP CST2.
2206 (register_edge_assert_for_1): Use it.
2207 (register_edge_assert_for): Likewise.
2208 (needs_overflow_infinity): Integer sub-types
2209 do not need overflow infinities.
2210 (vrp_val_is_max): The extreme values of integer sub-types
2211 are those of the base type.
2212 (vrp_val_is_min): Likewise.
2213 * tree.def (ASSERT_EXPR): Document extra allowed conditional
2216 2008-03-28 Nick Clifton <nickc@redhat.com>
2219 * config/mn10300/mn10300.c (mn10300_secondary_reload_class):
2220 Return GENERAL_REGS for stack adjustment reloads.
2222 2008-03-28 Andrew Pinski <andrew_pinski@playstation.sony.com>
2225 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Create a
2226 const_vector when all the vectors are constant.
2228 2008-03-27 Bob Wilson <bob.wilson@acm.org>
2230 * config/xtensa/xtensa.c (gen_float_relational): Handle unordered
2232 * config/xtensa/xtensa.md (any_cond): Add unordered comparisons.
2233 (any_scc_sf): Add uneq, unlt, unle and unordered operators.
2235 (s<code>_sf): Use new scc_sf attribute for opcode names.
2237 2008-03-27 Tom Tromey <tromey@redhat.com>
2239 * doc/sourcebuild.texi, doc/install.texi, configure, aclocal.m4,
2240 configure.ac, Makefile.in, config/t-darwin, config/m32c/t-m32c,
2241 config/spu/t-spu-elf, config/i386/t-interix,
2242 config/i386/t-cygming, config/i386/x-i386, config/i386/t-cygwin,
2243 config/i386/x-darwin, config/i386/x-mingw32,
2244 config/i386/t-netware, config/i386/x-cygwin, config/i386/t-nwld,
2245 config/sh/t-sh, config/sh/t-symbian, config/x-linux,
2246 config/t-sol2, config/x-hpux, config/x-darwin, config/ia64/t-ia64,
2247 config/x-solaris, config/t-vxworks, config/m68k/t-uclinux,
2248 config/rs6000/x-rs6000, config/rs6000/x-darwin64,
2249 config/rs6000/x-darwin, config/rs6000/t-rs6000,
2250 config/score/t-score-elf, config/arm/t-strongarm-pe,
2251 config/arm/t-pe, config/arm/t-arm, config/arm/t-wince-pe,
2252 config/v850/t-v850, config/v850/t-v850e, config/bfin/t-bfin-linux:
2253 Revert automatic dependency patch.
2255 2008-03-27 H.J. Lu <hongjiu.lu@intel.com>
2258 * config/i386/i386.c (ix86_function_arg_boundary): Align
2259 decimal floating point to its natural boundary.
2261 2008-03-27 Richard Guenther <rguenther@suse.de>
2264 * fold-const.c (fold_comparison): Restrict distinct decl
2265 comparison folding to VAR_DECLs and PARM_DECLs. Do not
2266 solely rely on operand_equal_p.
2268 2008-03-27 Richard Guenther <rguenther@suse.de>
2271 * c-common.c (handle_weak_attribute): Reject combination of
2274 2008-03-27 Richard Guenther <rguenther@suse.de>
2276 PR tree-optimization/32810
2277 * tree-ssa-ccp.c (get_symbol_constant_value): Strip useless
2278 conversions from DECL_INITIAL.
2279 (fold_const_aggregate_ref): Likewise from constructor elements.
2281 2008-03-27 Zdenek Dvorak <ook@ucw.cz>
2283 * tree-affine.h (aff_combination_expand): Declare.
2284 (get_inner_reference_aff): Likewise.
2285 * tree-affine.c (aff_combination_expand): Split out from
2286 tree_to_aff_combination_expand.
2287 (get_inner_reference_aff): New function.
2288 * tree-parloops.c (loop_parallel_p): Free vectorizer info.
2289 * tree-ssa-loop-im.c: Include tree-affine.h and pointer-set.h.
2290 (struct lim_aux_data): sm_done field removed.
2291 (mem_ref_loc_p, mem_ref_locs_p): New types.
2292 (struct mem_ref): Added id, stored, accesses_in_loop,
2293 indep_loop, dep_loop, indep_ref, dep_ref fields.
2294 Removed is_stored, locs and next fields.
2295 (memory_accesses): New variable.
2296 (movement_possibility): Do not allow moving statements
2297 that store to memory.
2298 (outermost_indep_loop, simple_mem_ref_in_stmt, mem_ref_in_stmt):
2300 (determine_max_movement): For statements with memory references,
2301 find the outermost loop in that the reference is independent.
2302 (move_computations_stmt): Mark the virtual operands for renaming.
2303 (memref_free, mem_ref_alloc, mem_ref_locs_alloc, mark_ref_stored,
2304 gather_mem_refs_stmt, gather_mem_refs_in_loops, vtoe_hash, vtoe_eq,
2305 vtoe_free, record_vop_access, get_vop_accesses, get_vop_stores,
2306 add_vop_ref_mapping, create_vop_ref_mapping_loop,
2307 create_vop_ref_mapping, analyze_memory_references,
2308 cannot_overlap_p, mem_refs_may_alias_p, rewrite_mem_ref_loc,
2309 get_all_locs_in_loop, ref_always_accessed_p,
2310 refs_independent_p, record_indep_loop, ref_indep_loop_p_1,
2311 ref_indep_loop_p, can_sm_ref_p, find_refs_for_sm,
2312 store_motion_loop, store_motion): New functions.
2313 (struct vop_to_refs_elt): New type.
2314 (record_mem_ref_loc, free_mem_ref_locs, rewrite_mem_refs,
2315 memref_hash, memref_eq, hoist_memory_references): Rewritten.
2316 (schedule_sm): Replaced by...
2317 (execute_sm): ... this.
2318 (determine_lsm_ref, hoist_memory_references,
2319 loop_suitable_for_sm, gather_mem_refs_stmt, gather_mem_refs,
2320 find_more_ref_vops, free_mem_ref, free_mem_refs,
2321 determine_lsm_loop, determine_lsm): Removed.
2322 (tree_ssa_lim_finalize): Free data structures used by store motion.
2323 (tree_ssa_lim): Call analyze_memory_references. Use
2324 store_motion instead of determine_lsm.
2326 2008-03-27 Paolo Bonzini <bonzini@gnu.org>
2328 * config.cc (m68hc11, m6811, m68hc12, m6812): Add usegas.h,
2329 rename tmake_file to m68hc11/t-m68hc11.
2330 (mcore): Set inhibit_libc to true.
2331 * config.host (alpha*-dec-*vms*): Set extra_programs.
2332 (interix3*): Don't use host_xmake_file.
2333 * configure.ac: Let config.gcc override inhibit_libc.
2334 * configure: Regenerate.
2336 * config/alpha/x-vms (EXTRA_PROGRAMS): Remove.
2337 * config/t-openbsd-thread: Remove commented out lines.
2339 * config/x-interix: Remove.
2341 * config/m68hc11/t-m68hc11-gas: Rename to...
2342 * config/m68hc11/t-m68hc11: ... this. Remove T_CPPFLAGS.
2344 * config/mcore/t-mcore: Remove T_CFLAGS.
2345 * config/mcore/t-mcore-pe: Likewise.
2347 2008-03-27 Paolo Bonzini <bonzini@gnu.org>
2349 * configure.ac: Replace custom __GNU_SOURCE test with
2350 AC_USE_SYSTEM_EXTENSIONS. Move it earlier.
2351 * aclocal.m4: Regenerate.
2352 * configure: Regenerate.
2353 * config.in: Regenerate.
2355 2008-03-27 Richard Guenther <rguenther@suse.de>
2357 * fold-const.c (target.h): Include.
2358 (fold_comparison): Fold comparison of addresses of decls
2359 that bind locally or of constants. Consolidate address folding code.
2360 * tree-vrp.c (operand_less_p): Deal with non-INTEGER_CST
2361 results from fold_binary_to_constant.
2362 (compare_values_warnv): Likewise.
2364 2008-03-27 Andrew Pinski <pinskia@gmail.com>
2367 * fold-const.c (fold_truthop): Check for integeral types when folding
2368 a == 0 && b == 0 and a != 0 || b != 0 .
2370 2008-03-26 Eric Botcazou <ebotcazou@adacore.com>
2372 * tree.c (get_unwidened): Remove code fiddling with COMPONENT_REF.
2374 2008-03-26 Andreas Schwab <schwab@suse.de>
2376 * doc/invoke.texi: Fix use of @item vs. @itemx.
2378 2008-03-26 Tom Tromey <tromey@redhat.com>
2380 * Makefile.in (build/gensupport.o, build/print-rtl.o,
2381 build/read-rtl.o, build/rtl.o, build/gencondmd.o, build/genattr.o,
2382 build/genattrtab.o, build/genautomata.o, build/gencheck.o,
2383 build/gencodes.o, build/genconditions.o, build/genconfig.o,
2384 build/genconstants.o, build/genemit.o, build/genextract.o,
2385 build/genflags.o, build/genmddeps.o, build/genopinit.o,
2386 build/genoutput.o, build/genpeep.o, build/genrecog.o): Depend on
2389 2008-03-26 Richard Guenther <rguenther@suse.de>
2392 2008-03-26 Richard Guenther <rguenther@suse.de>
2394 * fold-const.c (target.h): Include.
2395 (fold_comparison): Fold comparison of addresses of two decls
2396 that bind locally. Consolidate address folding code.
2398 2008-03-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2400 * builtins.c (expand_builtin_pow, fold_builtin_cabs,
2401 fold_builtin_sqrt, fold_builtin_cbrt, fold_builtin_logarithm,
2402 fold_builtin_hypot, fold_builtin_pow): Remove uses of dconst3,
2403 dconstsqrt2, dconstthird, dconste and/or dconst10.
2404 * config/i386/i386.c (ix86_emit_swsqrtsf): Likewise.
2405 * emit-rtl.c (dconst3, dconst10, dconstm2, dconstthird,
2406 dconstsqrt2, dconste): Delete.
2407 (init_emit_once): Likewise. Simplify initializing dconstm1.
2409 * real.c (get_real_const): New.
2410 * real.h (dconst3, dconst10, dconstm2, dconstthird,
2411 dconstsqrt2, dconste): Delete.
2412 (real_value_const, get_real_const): New.
2414 2008-03-26 H.J. Lu <hongjiu.lu@intel.com>
2416 * config/i386/cygming.h (BIGGEST_ALIGNMENT): Removed.
2418 * config/i386/i386.c (ix86_function_arg_boundary): Check
2419 BIGGEST_ALIGNMENT instead of 128.
2420 (setup_incoming_varargs_64): Likewise.
2422 2008-03-26 Tom Tromey <tromey@redhat.com>
2424 * Makefile.in (DEPFILES): Add missing '/'.
2426 2008-03-26 Richard Guenther <rguenther@suse.de>
2428 * fold-const.c (target.h): Include.
2429 (fold_comparison): Fold comparison of addresses of two decls
2430 that bind locally. Consolidate address folding code.
2432 2008-03-26 Nick Clifton <nickc@redhat.com>
2435 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p): Do
2436 not allow INT+INT as a legitimate addressing mode.
2438 2008-03-26 Richard Guenther <rguenther@suse.de>
2440 * tree-flow.h (widen_bitfield): Remove declaration.
2441 * tree-ssa-ccp.c (visit_assignment): Remove unneeded code.
2442 (widen_bitfield): Remove function.
2443 * tree-ssa-dom.c (record_equivalences_from_stmt): Remove unneeded
2446 2008-03-25 Andrew Pinski <andrew_pinski@playstation.sony.com>
2449 * config/rs6000/rs6000-c.c (rs6000_builtin_type_compatible): Handle
2452 2008-03-25 Richard Sandiford <rsandifo@nildram.co.uk>
2454 PR rtl-optimization/35232
2455 * reload1.c (reg_reloaded_call_part_clobbered): Clarify comment.
2456 (forget_old_reloads_1, forget_marked_reloads): Don't clear
2457 reg_reloaded_call_part_clobbered here.
2458 (reload_regs_reach_end_p): New function.
2459 (reload_reg_rtx_for_input): New variable.
2460 (reload_reg_rtx_for_output): Likewise.
2461 (emit_input_reload_insns): Use reloadreg rather than rl->reg_rtx
2462 when reassigning a pseudo register. Load reloadreg from
2463 reload_reg_rtx_for_input, moving the mode and register
2465 (do_input_reload): ...here. Use the mode-adjusted reg_rtx
2466 instead of the original when deciding whether an input reload
2467 would be a no-op or whether an output reload can be deleted.
2468 (emit_output_reload_insns): Use the mode-adjusted reg_rtx
2469 when setting up new_spill_reg_store. Load it from
2470 reload_reg_rtx_for_output, moving the mode and register
2472 (do_output_reload): ...here. Use the mode-adjusted reg_rtx
2473 instead of the original when deciding whether an output reload
2474 would be a no-op. Do the same when modifying insn notes.
2475 Use rtx_equal_p instead of == to compare the registers.
2476 (inherit_piecemeal_p): Take a mode and two register numbers
2478 (emit_reload_insns): Clear new_spill_reg_store for every hard
2479 register in the reload register. Remove spill registers
2480 from reg_reloaded_valid before considering whether to record
2481 inheritance information for them. Use reload_reg_rtx_for_output
2482 instead of reg_rtx when recording output reloads. Use
2483 reload_reg_rtx_for_input instead of reg_rtx when recording
2484 input reloads. Set or clear reg_reloaded_call_part_clobbered
2485 at the same time as setting reg_reloaded_valid.
2486 (delete_output_reload): Add a new_reload_reg parameter and use it
2487 instead of rld[j].reg_rtx.
2488 (emit_input_reload_insns, do_input_reload, do_output_reload): Adjust
2491 2008-03-25 Tom Tromey <tromey@redhat.com>
2493 * Makefile.in (build/gensupport.o): Depend on insn-modes.h.
2494 (build/genattr.o): Likewise.
2495 (build/genattrtab.o): Likewise.
2496 (build/gencodes.o): Likewise.
2497 (build/genconfig.o): Likewise.
2498 (build/genconstants.o): Likewise.
2499 (build/genemit.o): Likewise.
2500 (build/genextract.o): Likewise.
2501 (build/genflags.o): Likewise.
2503 2008-03-25 Bob Wilson <bob.wilson@acm.org>
2505 * config/xtensa/xtensa.c (xtensa_va_start): Use build_int_cst
2506 instead of size_int for integer types.
2507 (xtensa_gimplify_va_arg_expr): Likewise. Convert index to sizetype
2508 to match type of MINUS_EXPR.
2510 2008-03-25 Tom Tromey <tromey@redhat.com>
2512 * configure: Rebuilt.
2513 * configure.ac (BUILD_DEPMODE): Extract CCDEPMODE from temporary
2516 2008-03-25 Tom Tromey <tromey@redhat.com>
2518 * config/x-solaris (host-solaris.o): Update.
2519 * config/x-linux (host-linux.o): Update.
2520 * config/x-hpux (host-hpux.o): Update.
2521 * config/x-darwin (host-darwin.o): Update.
2522 * config/v850/t-v850e (v850-c.o): Update.
2523 * config/v850/t-v850 (v850-c.o): Update.
2524 * config/t-vxworks (vxworks.o): Update.
2525 * config/t-sol2 (sol2-c.o, sol2.o): Update.
2526 * config/t-darwin (darwin.o, darwin-c.o, darwin-driver.o): Update.
2527 * config/spu/t-spu-elf (spu-c.o): Update.
2529 * config/sh/t-symbian (sh-c.o): Update.
2530 (symbian.o): Update.
2531 * config/sh/t-sh (sh-c.o): Update.
2532 * config/score/t-score-elf (score7.o, score3.o): Update.
2533 * config/rs6000/x-rs6000 (driver-rs6000.o): Update.
2534 * config/rs6000/x-darwin64 (host-ppc64-darwin.o): Update.
2535 * config/rs6000/x-darwin (host-ppc-darwin.o): Update.
2536 * config/rs6000/t-rs6000 (rs6000-c.o): Update.
2538 * config/m68k/t-uclinux (generated_files): Add sysroot-suffix.h.
2539 * config/m32c/t-m32c (m32c-pragma.o): Update.
2540 * config/ia64/t-ia64 (ia64-c.o): Update.
2541 * config/i386/x-mingw32 (host-mingw32.o): Update.
2542 * config/i386/x-i386 (driver-i386.o): Update.
2543 * config/i386/x-darwin (host-i386-darwin.o): Update.
2544 * config/i386/x-cygwin (host-cygwin.o): Update.
2545 * config/i386/t-nwld (nwld.o): Update.
2546 * config/i386/t-netware (netware.o): Update.
2547 * config/i386/t-interix (winnt.o): Update.
2548 * config/i386/t-cygwin (cygwin1.o, cygwin2.o): Update.
2549 * config/i386/t-cygming (winnt.o, winnt-cxx.o, winnt-stubs.o,
2550 msformat-c.o): Update.
2551 * config/bfin/t-bfin-linux (generated_files): Add
2552 linux-sysroot-suffix.h.
2553 * config/arm/t-wince-pe (pe.o): Update.
2554 * config/arm/t-strongarm-pe (pe.o): Update.
2555 * config/arm/t-pe (pe.o): Update.
2556 * config/arm/t-arm (arm-c.o): Update.
2557 * doc/install.texi (Prerequisites): Require make 3.80.
2558 * Makefile.in: Remove .o targets.
2559 (CCDEPMODE, DEPDIR, depcomp, BUILD_DEPMODE): New variables.
2560 (OBSTACK_H, FIBHEAP_H, PARTITION_H, MD5_H, BCONFIG_H): Remove.
2561 (simple_generated_h, simple_generated_c): Move earlier.
2562 (generated_files): New variable.
2563 (TARGET_H, MACHMODE_H, HOOKS_H, HOSTHOOKS_DEF_H, LANGHOOKS_DEF_H,
2564 TARGET_DEF_H, RTL_BASE_H, RTL_H, PARAMS_H, BUILTINS_DEF, TREE_H,
2565 BASIC_BLOCK_H, GCOV_IO_H, COVERAGE_H, DEMANGLE_H, RECOG_H,
2566 ALIAS_H, EMIT_RTL_H, FLAGS_H, FUNCTION_H, EXPR_H, OPTABS_H,
2567 REGS_H, RA_H, RESOURCE_H, SCHED_INT_H, INTEGRATE_H, CFGLAYOUT_H,
2568 CFGLOOP_H, IPA_UTILS_H, IPA_REFERENCE_H, IPA_TYPE_ESCAPE_H,
2569 CGRAPH_H, DF_H, RESOURCE_H, DDG_H, GCC_H, GGC_H, TIMEVAR_H,
2570 INSN_ATTR_H, C_COMMON_H, C_PRAGMA_H, C_TREE_H, SYSTEM_H,
2571 PREDICT_H, DECNUM_H, MKDEPS_H, SYMTAB_H, TREE_DUMP_H,
2572 TREE_GIMPLE_H, TREE_FLOW_H, TREE_SSA_LIVE_H, PRETTY_PRINT_H,
2573 DIAGNOSTIC_H, C_PRETTY_PRINT_H, SCEV_H, LAMBDA_H, TREE_DATA_REF_H,
2574 VARRAY_H, TREE_INLINE_H, REAL_H, DBGCNT_H, EBIMAP_H): Remove.
2576 (COMPILE.base, COMPILE): New variables.
2577 (%.o): New pattern rule.
2578 (ALL_HOST_OBJS): New variable.
2579 (xgcc$(exeext), cpp$(exeext)): Remove extra version.o.
2580 (dummy-checksum.o, cc1-checksum.o): Remove.
2581 (DRIVER_SHLIB): New variable.
2582 (DRIVER_DEFINES): Use it.
2583 (gencondmd.c): Move out of build/.
2584 (s-conditions): Update.
2585 (BUILDCOMPILE.base, BUILDCOMPILE): New variables.
2586 (ALL_BUILD_OBJS): Likewise.
2587 (build/%.o): Use BUILDCOMPILE.
2588 (build/ggc-none.o, build/ggc-none.o, build/min-insn-modes.o,
2589 build/print-rtl.o, build/read-rtl.o, build/rtl.o, build/vec.o,
2590 build/gencondmd.o, build/genattrtab.o, build/genautomata.o,
2591 build/gencheck.o, build/gencodes.o, build/genconditions.o,
2592 build/genconfig.o, build/genconstants.o, build/genemit.o,
2593 build/genextract.o, build/genflags.o, build/genmddeps.o,
2594 build/genopinit.o, build/genoutput.o, build/genpeep.o,
2595 build/genpreds.o, build/genrecog.o, build/gcov-iov.o,
2596 build/gen-protos.o, build/scan.o, build/fix-header.o,
2597 build/scan-decls.o): Simplify.
2598 (collect2.o, c-opts.o, gcc.o, gccspec.o, gcc-options.o,
2599 cppdefault.o, protoize.o, unprotoize.o, intl.o, version.o,
2600 prefix.o, toplev.o): Reduce to variable setting.
2601 (libbackend.o): Use COMPILE. Remove most dependencies. Move later.
2602 ($(out_object_file), gcc-options.o): New targets.
2603 ($(ALL_HOST_OBJS)): New target. Include dependency files.
2604 * configure: Rebuilt.
2605 * configure.ac: Call ZW_CREATE_DEPDIR, ZW_PROG_COMPILER_DEPENDENCIES.
2606 * doc/sourcebuild.texi (Front End Directory): Document new variable.
2608 2008-03-25 Douglas Gregor <doug.gregor@gmail.com>
2610 * c-common.c (c_sizeof_or_alignof_type): If we're not allowed to
2611 complain when we hit an error, return ERROR_MARK_NODE.
2613 2008-03-25 Naveen.H.S <naveen.hs@kpitcummins.com>
2615 * config/sh/constraints.md (Pso, Psz): New constraints.
2616 * config/sh/sh.c (print_operand): Add %V and %W operand codes.
2617 * config/sh/sh.md (*andsi3_bclr, *iorsi3_bset): New insns.
2619 2008-03-25 Naveen.H.S <naveen.hs@kpitcummins.com>
2621 * config/sh/sh.c (sh_expand_t_scc): Emit movrt for SH2A if possible.
2622 * config/sh/sh.md (xorsi3_movrt, movrt): New insns.
2624 2008-03-25 Naveen.H.S <naveen.hs@kpitcummins.com>
2626 * config/sh/sh.md (prefetch): Add condition for SH2A target.
2627 (prefetch_sh2a): New.
2629 2008-03-25 Jayant Sonar <Jayant.sonar@kpitcummins.com>
2630 Naveen.H.S <naveen.hs@kpitcummins.com>
2632 * config/sh/constraints.md (I28): New constraint.
2633 * config/sh/sh.c (broken_move): Add support for movi20s.
2634 * config/sh/sh.md (movsi_ie): Add the alternative for movi20s.
2636 2008-03-25 Anil Paranjape <anil.paranjape@kpitcummins.com>
2637 Jayant Sonar <Jayant.sonar@kpitcummins.com>
2638 Naveen.H.S <naveen.hs@kpitcummins.com>
2640 * config/sh/sh.c (SH_ATTRIBUTES): Define.
2641 (SYMBOL_FLAG_FUNCVEC_FUNCTION): Define.
2642 (print_operand): Handle resbank in %@ operand code.
2643 (sh_encode_section_info): New.
2644 (push_regs): Add conditions for resbank.
2645 (sh_expand_epilogue): Likewise.
2646 (sh_insert_attributes): Likewise.
2647 (sh_attribute_table): Likewise.
2648 (sh_handle_resbank_handler_attribute): New.
2649 (sh2a_handle_function_vector_handler_attribute): New.
2650 (sh2a_is_function_vector_call): New.
2651 (sh2a_get_function_vector_number): New.
2652 (sh2a_function_vector_p): New.
2653 (sh_cfun_resbank_handler_p): New.
2654 * config/sh/sh.md (calli): Emit jsr/n if possible.
2655 (calli_tbr_rel): New.
2656 (calli_pcrel): Emit jsr/n if possible.
2657 (return_i): Emit rts/n if possible.
2658 (call_valuei_tbr_rel): New.
2659 (call_valuei_pcrel): Add condition for SH2A target.
2660 (call_value): Likewise.
2661 * config/sh/sh-protos.h (sh_cfun_resbank_handler_p): Declare.
2662 (sh2a_get_function_vector_number): Likewise.
2663 (sh2a_is_function_vector_call): Likewise.
2664 * doc/extend.texi: Document TBR relative addressing of SH2A.
2665 (resbank): Add description for SH2A.
2667 2008-03-24 Richard Guenther <rguenther@suse.de>
2670 * gimplify.c (gimplify_modify_expr): For frontend type-correct
2671 pointer assignments change conversions according to middle-end rules.
2672 (gimplify_modify_expr_rhs): Deal with NULL TARGET_EXPR_INITIAL.
2673 * configure.ac: Include type checking in yes.
2674 * configure: Regenerate.
2676 2008-03-24 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
2678 * diagnostic.c (diagnostic_count_diagnostic): Delete.
2679 (diagnostic_report_diagnostic): Update. Handle ICEs here.
2681 2008-03-24 Nathan Sidwell <nathan@codesourcery.com>
2683 * gthr-vxworks.h (UNUSED): Define.
2685 2008-03-23 H.J. Lu <hongjiu.lu@intel.com>
2687 * config/i386/i386.h (STATIC_CHAIN_REGNUM): Use R10_REG and CX_REG.
2689 2008-03-23 Zuxy Meng <zuxy.meng@gmail.com>
2691 * doc/extend.texi (Function Attributes): Add missing comma in the
2692 example of the "alloc_size" attribute.
2694 2008-03-23 Uros Bizjak <ubizjak@gmail.com>
2697 2008-03-05 H.J. Lu <hongjiu.lu@intel.com>
2699 * config/i386/i386-modes.def: Use 4 byte alignment on DI for
2702 2008-03-19 Uros Bizjak <ubizjak@gmail.com>
2705 * stor-layout.c (update_alignment_for_field): Set minimum alignment
2706 of the underlying type of a MS bitfield layout to the natural
2707 alignment of the type.
2709 2008-03-22 Uros Bizjak <ubizjak@gmail.com>
2711 * config/i386/i386.c (assign_386_stack_local): Align DImode slots
2712 to their natural alignment to avoid store forwarding stalls.
2714 2008-03-22 Richard Guenther <rguenther@suse.de>
2716 * tree-cfg.c (verify_expr): Recurse again for invariant addresses.
2717 For PHI nodes verify the address is invariant.
2718 * tree-ssa-ccp.c (ccp_decl_initial_min_invariant): Remove.
2719 (get_symbol_constant_value): Use is_gimple_min_invariant.
2720 (maybe_fold_stmt_indirect): Likewise.
2722 2008-03-22 Richard Sandiford <rsandifo@nildram.co.uk>
2724 PR rtl-optimization/33927
2725 * Makefile.in (dse.o): Depend on $(TM_P_H).
2726 * expr.h (extract_low_bits): Declare.
2727 * expmed.c (extract_low_bits): New function.
2728 * rtlhooks.c (gen_lowpart_general): Generalize SUBREG handling.
2729 * dse.c: Include tm_p.h.
2730 (find_shift_sequence): Remove the read_reg argument and return the
2731 read value. Emit the instructions instead of returning them.
2732 Iterate on new_mode rather than calculating it each time.
2733 Check MODES_TIEABLE_P. Use simplify_gen_subreg to convert the
2734 source to NEW_MODE and extract_low_bits to convert the shifted
2736 (replace_read): Allow the load and store to have different mode
2737 classes. Use extract_low_bits when SHIFT == 0. Create the shift
2738 or extraction instructions before trying the replacement. Update
2739 dump-file code accordingly, avoiding use of REGNO (store_info->rhs).
2741 2008-03-22 Uros Bizjak <ubizjak@gmail.com>
2743 * config/i386/i386.c (assign_386_stack_local): Align DImode slots
2744 to their natural alignment to avoid store forwarding stalls.
2746 2008-03-21 Andrew Pinski <andrew_pinski@playstation.sony.com>
2749 * config/rs6000/rs6000.md (floatdidf2): Discouraging fprs and
2750 encouraging but not allowing gprs for input;
2751 change the input constraint to !f#r.
2752 (fix_truncdfdi2): Discouraging fprs and encouraging but not allowing
2754 change the output constraint to !f#r.
2756 2008-03-21 Uros Bizjak <ubizjak@gmail.com>
2759 * config/i386/i386.md ("*floatunssi<mode2>_1"): New pattern with
2760 corresponding post-reload splitters.
2761 ("floatunssi<mode>2"): Expand to unsigned_float x87 insn pattern
2762 when x87 FP math is selected.
2763 * config/i386/i386-protos.h (ix86_expand_convert_uns_sixf_sse):
2764 New function prototype.
2765 * config/i386/i386.c (ix86_expand_convert_uns_sixf_sse): New
2766 unreachable function to ease macroization of insn patterns.
2768 2008-03-21 Martin Jambor <mjambor@suse.cz>
2770 * tree-data-ref.c (dump_data_dependence_relation): Avoid data
2771 reference dumps if ddr is NULL or dependence is unknown.
2773 2008-03-20 Kaz Kojima <kkojima@gcc.gnu.org>
2775 * config/sh/linux-atomic.asm (ATOMIC_TEST_AND_SET): Take
2776 unsigned extension into account.
2777 (ATOMIC_COMPARE_AND_SWAP): Likewise.
2778 (ATOMIC_FETCH_AND_OP, ATOMIC_FETCH_AND_COMBOP): Likewise.
2779 Do computations on a scratch register.
2781 2008-03-21 Richard Guenther <rguenther@suse.de>
2783 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
2784 Use is_gimple_min_invariant instead of TREE_INVARIANT.
2785 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Likewise.
2786 * tree-ssa-dom.c (record_equality): Likewise.
2787 * tree-inline.c (copy_body_r): Likewise.
2788 * tree-ssa-pre.c (make_values_for_stmt): Remove test for
2791 2008-03-20 Kaz Kojima <kkojima@gcc.gnu.org>
2793 * config/sh/sh.c (split_branches): Pass zero to redirect_jump
2794 as 'delete_unused' argument.
2796 2008-03-20 Richard Guenther <rguenther@suse.de>
2798 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Remove
2799 special casing of constant qualifiers.
2800 * tree-ssa.c (useless_type_conversion_p_1): Instead do not
2801 care about them in general.
2802 * tree-ssa-ccp.c (ccp_fold): Addresses are constant or not
2803 regardless of their type.
2804 (fold_stmt_r): Forcefully fold *& if we end up with that.
2806 2008-03-20 Paul Brook <paul@codesourcery.com>
2808 * config.gcc (arm*-*-uclinux*): Remove duplicate arm/uclinux-elf.h.
2809 * config/arm/uclinux-eabi.h (SUBTARGET_EXTRA_LINK_SPEC): Add extra
2811 * config/arm/bpabi.h (SUBTARGET_EXTRA_LINK_SPEC): Provide default
2813 (LINK_SPEC): Use SUBTARGET_EXTRA_LINK_SPEC.
2814 * config/arm/unwind-arm.h (_Unwind_decode_target2): Add uClinux.
2816 2008-03-20 Volker Reichelt <v.reichelt@netcologne.de>
2818 * common.opt (Wmudflap): New option.
2819 * tree-mudflap.c (mf_xform_derefs_1): Guard warning by OPT_Wmudflap.
2820 (mx_register_decls): Likewise.
2821 (mudflap_finish_file): Likewise.
2822 * doc/invoke.texi: Document -Wno-mudflap.
2824 2008-03-20 Kai Tietz <kai.tietz@onevision.com>
2826 * c-format.c (replace_format_name_to_system_name): New.
2828 (convert_format_name_to_system_name): New.
2829 (decode_format_attr): Add use of convert_format_name_to_system_name.
2830 (format_types_orig): Add gnu_ prefix to names.
2831 (check_format_info_main): Special treating of \0 escaped names for
2832 supporting multi-character format specifiers as I32, I64.
2833 (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): Use of user defined attributes.
2834 (gnu_target_overrides_format_attributes): New.
2835 * c-format.h: Add structure target_ovr_attr to hold
2836 system specific formatter names.
2837 * config.gcc: Add for x86&x86_64 cygwin and mingw32 targets the
2838 msformat-c.o file to c_target_objs and cxx_target_objs.
2839 * config/i386/mingw32.h (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): New.
2840 (TARGET_OVERRIDES_FORMAT_ATTRIBUTES_COUNT): New.
2841 (TARGET_N_FORMAT_TYPES): New.
2842 * config/i386/msformat-c.c: New.
2843 * config/i386/t-cygming: Add build rule for msformat-c.o.
2844 * doc/extend.texi: Add new format names gnu_* and ms_* and
2846 * doc/tm.texi: (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): New.
2848 2008-03-20 Ira Rosen <irar@il.ibm.com>
2850 * doc/invoke.texi (-O3): Add -ftree-vectorize to the list of
2851 optimizations turned on under -O3.
2852 (ftree-vectorize): Add that the flag is turned on with -O3.
2854 2008-03-20 Ben Elliston <bje@au.ibm.com>
2856 * regmove.c (try_auto_increment): Fix spelling error in comment.
2857 * final.c (final_scan_insn): Likewise.
2859 2008-03-20 Uros Bizjak <ubizjak@gmail.com>
2862 * config/i386/mmx.md (*mov<mode>_internal_rex64"): Adjust register
2863 allocator preferences for "y" and "r" class registers.
2864 ("*mov<mode>_internal"): Ditto.
2865 ("*movv2sf_internal_rex64"): Ditto.
2866 ("*movv2sf_internal"): Ditto.
2868 2008-03-19 Michael Matz <matz@suse.de>
2871 * calls.c (expand_call): Check overlap of arguments with call
2872 address for sibcalls.
2874 2008-03-19 Uros Bizjak <ubizjak@gmail.com>
2877 * stor-layout.c (update_alignment_for_field): Set minimum alignment
2878 of the underlying type of a MS bitfield layout to the natural
2879 alignment of the type.
2881 2008-03-19 Jan Hubicka <jh@suse.cz>
2884 * toplev.c (decode_d_option): Handle all CPP flags.
2885 * tree-vrp.c: Update tree_pass descriptors.
2886 * regrename.c: Update tree_pass descriptors.
2887 * fwprop.c: Update tree_pass descriptors.
2888 * doc/invoke.texi: Remove documentation of dropped -d? flags.
2889 * tree-into-ssa.c: Update tree_pass descriptors.
2890 * tree-dump.c: Update tree_pass descriptors.
2891 * tree-complex.c: Update tree_pass descriptors.
2892 * tree-dump.h: Update tree_pass descriptors.
2893 * see.c: Update tree_pass descriptors.
2894 * cgraphbuild.c: Update tree_pass descriptors.
2895 * tracer.c: Update tree_pass descriptors.
2896 * tree-loop-distribution.c: Update tree_pass descriptors.
2897 * cgraph.c: Update tree_pass descriptors.
2898 * postreload-gcse.c: Update tree_pass descriptors.
2899 * postreload.c: Update tree_pass descriptors.
2900 * tree-ssa-loop-ch.c: Update tree_pass descriptors.
2901 * tree-tailcall.c: Update tree_pass descriptors.
2902 * tree-pass.h (tree_opt_pass): Rename to ...
2903 (opt_pass) ... this one; add "type" field and remove letter field.
2904 (gimple_opt_pass, rtl_opt_pass, simple_ipa_opt_pass): New.
2905 (execute_pass_list, execute_ipa_pass_list, all_passes, all_ipa_passes,
2906 all_lowering_passes): Update declaration.
2907 * ipa-cp.c: Update tree_pass descriptors.
2908 * final.c: Update tree_pass descriptors.
2909 * omp-low.c: Update tree_pass descriptors.
2910 * tree-ssa-dse.c: Update tree_pass descriptors.
2911 * ipa-reference.c: Update tree_pass descriptors.
2912 * tree-ssa-uncprop.c: Update tree_pass descriptors.
2913 * auto-inc-dec.c: Update tree_pass descriptors.
2914 * reorg.c: Update tree_pass descriptors.
2915 * cgraphunit.c: Update tree_pass descriptors.
2916 * tree-ssa-copyrename.c: Update tree_pass descriptors.
2917 * tree-ssa-ccp.c: Update tree_pass descriptors.
2918 * df-core.c: Update tree_pass descriptors.
2919 * mode-switching.c: Update tree_pass descriptors.
2920 * tree-nomudflap.c: Update tree_pass descriptors.
2921 * modulo-sched.c: Update tree_pass descriptors.
2922 * ipa-pure-const.c: Update tree_pass descriptors.
2923 * cse.c: Update tree_pass descriptors.
2924 * web.c: Update tree_pass descriptors.
2925 * tree-stdarg.c: Update tree_pass descriptors.
2926 * tree-ssa-math-opts.c: Update tree_pass descriptors.
2927 * tree-ssa-dom.c: Update tree_pass descriptors.
2928 * tree-nrv.c: Update tree_pass descriptors.
2929 * tree-ssa-alias.c: Update tree_pass descriptors.
2930 * loop-init.c: Update tree_pass descriptors.
2931 * gimple-low.c: Update tree_pass descriptors.
2932 * ipa-inline.c: Update tree_pass descriptors.
2933 * tree-ssa-sink.c: Update tree_pass descriptors.
2934 * global.c: Update tree_pass descriptors.
2935 * ifcvt.c: Update tree_pass descriptors.
2936 * jump.c: Update tree_pass descriptors.
2937 * predict.c: Update tree_pass descriptors.
2938 * tree-ssa-loop.c: Update tree_pass descriptors.
2939 * recog.c: Update tree_pass descriptors.
2940 * dse.c: Update tree_pass descriptors.
2941 * tree-ssa-ifcombine.c: Update tree_pass descriptors.
2942 * tree-eh.c: Update tree_pass descriptors.
2943 * regmove.c: Update tree_pass descriptors.
2945 * function.c: Update tree_pass descriptors.
2946 * tree-vectorizer.c: Update tree_pass descriptors.
2947 * gcse.c: Update tree_pass descriptors.
2948 * ipa-type-escape.c: Update tree_pass descriptors.
2949 * tree-if-conv.c: Update tree_pass descriptors.
2950 * init-regs.c: Update tree_pass descriptors.
2951 * ipa.c: Update tree_pass descriptors.
2952 * tree-ssa-phiopt.c: Update tree_pass descriptors.
2953 * rtl-factoring.c: Update tree_pass descriptors.
2954 * lower-subreg.c: Update tree_pass descriptors.
2955 * bt-load.c: Update tree_pass descriptors.
2956 * tree-dfa.c: Update tree_pass descriptors.
2957 * except.c: Update tree_pass descriptors.
2958 * emit-rtl.c: Update tree_pass descriptors.
2959 * cfgexpand.c: Update tree_pass descriptors.
2960 * tree-cfgcleanup.c: Update tree_pass descriptors.
2961 * cfgcleanup.c: Update tree_pass descriptors.
2962 * tree-ssa-pre.c: Update tree_pass descriptors.
2963 * tree-sra.c: Update tree_pass descriptors.
2964 * tree-mudflap.c: Update tree_pass descriptors.
2965 * tree-ssa-copy.c: Update tree_pass descriptors.
2966 * cfglayout.c: Update tree_pass descriptors.
2967 * tree-ssa-forwprop.c: Update tree_pass descriptors.
2968 * tree-ssa-dce.c: Update tree_pass descriptors.
2969 * tree-ssa.c: Update tree_pass descriptors.
2970 * regclass.c: Update tree_pass descriptors.
2971 * integrate.c: Update tree_pass descriptors.
2972 * tree-optimize.c: Update tree_pass descriptors.
2973 * tree-ssa-phiprop.c: Update tree_pass descriptors.
2974 * tree-object-size.c: Update tree_pass descriptors.
2975 * combine.c: Update tree_pass descriptors.
2976 * tree-outof-ssa.c: Update tree_pass descriptors.
2977 * bb-reorder.c: Update tree_pass descriptors.
2978 * stack-ptr-mod.c: Update tree_pass descriptors.
2979 * var-tracking.c: Update tree_pass descriptors.
2980 * tree-profile.c: Update tree_pass descriptors.
2981 * tree-vect-generic.c: Update tree_pass descriptors.
2982 * reg-stack.c: Update tree_pass descriptors.
2983 * sched-rgn.c: Update tree_pass descriptors.
2984 * tree-ssa-structalias.c: Update tree_pass descriptors.
2985 * tree-cfg.c: Update tree_pass descriptors.
2986 * passes.c (current_pass): Update declaration.
2987 (finish_optimization_passes): Update.
2988 (all_passes, all_ipa_passes, all_lowering_passes): Update declaration.
2989 (register_one_dump_file, register_dump_files_1, next_pass_1):
2991 (init_optimization_passes): Update handling of new types.
2992 (execute_one_pass, execute_pass_list, execute_ipa_pass_list): Update.
2993 * ipa-struct-reorg.c: Update tree_pass descriptors.
2994 * tree-ssa-reassoc.c: Update tree_pass descriptors.
2995 * combine-stack-adj.c: Update tree_pass descriptors.
2996 * cfgrtl.c: Update tree_pass descriptors.
2997 * dce.c: Update tree_pass descriptors.
2998 * tree-ssanames.c: Update tree_pass descriptors.
3000 2008-03-19 Richard Guenther <rguenther@suse.de>
3003 * tree-ssa.c (walk_data): New structure.
3004 (warn_uninitialized_var): If not always_executed warn with "maybe"
3006 (execute_early_warn_uninitialized): Compute post-dominators.
3007 Initialize always_executed before processing each basic block.
3009 2008-03-18 Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz>
3012 * config/i386/i386.c (x86_this_parameter): Calculate correct location
3013 of "this" pointer when "regparm = N" or "fastcall" is in effect.
3015 2008-03-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3017 * doc/include/texinfo.tex: Update to version 2008-03-17.10.
3019 2008-03-18 Paolo Bonzini <bonzini@gnu.org>
3021 * expr.c (store_expr): Assume lang_hooks.reduce_bit_field_operations
3023 (expand_expr_real_1) <REDUCE_BIT_FIELD>: Don't look at ignore.
3024 (expand_expr_real_1): Assume lang_hooks.reduce_bit_field_operations
3025 is true. Add "&& !ignore" condition to reduce_bit_field. Modify
3026 target after ignore has been set, and move there also the commputation
3027 of subtarget and original_target.
3028 * langhooks-def.h (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): Delete.
3029 (LANG_HOOKS_INITIALIZER): Remove it.
3030 * langhooks.h (struct lang_hooks): Remove reduce_bit_field_operations.
3032 2008-03-18 Richard Guenther <rguenther@suse.de>
3034 * tree-ssa-sccvn.c (visit_reference_op_load): If the lookup
3035 found an expression with constants, note that in the VN for the lhs.
3036 * tree-ssa-pre.c (eliminate): Visit COND_EXPR statements and
3037 fold them to constants if possible. Run cleanup_cfg if done so.
3038 (execute_pre): Return todo.
3040 (execute_fre): Likewise.
3041 * tree-ssa-forwprop.c (can_propagate_from): Allow propagation
3043 (get_prop_source_stmt): Look through pointer conversions.
3045 2008-03-18 Jan Hubicka <jh@suse.cz>
3047 * tree-pretty-print.c: Include predict.h.
3048 (dump_generic_node): Dump predictor.
3049 * tree.h (PREDICT_EXPR_OUTCOME, PREDICT_EXPR_PREDICTION): Update.
3050 * tree-gimple.c (is_gimple_stmt): Add PREDICT_EXPR.
3051 * gimple-low.c (lower_stmt): Likewise.
3052 * expr.c (expand_expr_real): Likewise.
3053 * predict.c (tree_bb_level_predictions): Use PREDICT_EXPRs and remove
3055 (build_predict_expr, build_predict_expr): New.
3056 * predict.h (predictor_name, build_predict_expr): Update.
3057 * c-typeck.c (c_finish_bc_stmt): Add prediction.
3058 * gimplify.c (gimplify_expr): Add PREDICT_EXPR.
3059 * predict.def (PRED_CONTINUE): Update hitrate.
3060 * tree.def (PREDICT_EXPR): Define.
3061 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Mark PREDICT_EXPR;
3062 do not handle BIND_EXPR.
3063 * tree-inline.c (estimate_num_insns_1): PREDICT_EXPR is free.
3064 * tree-cfg.c (verify_gimple_stmt): PREDICT_EXPR is valid.
3065 * tree-ssa-operands.c (get_expr_operands): PREDICT_EXPR takes no
3068 2008-03-18 Michael Matz <matz@suse.de>
3070 * gcov-io.h (__gcov_merge_ior, __gcov_fork): Mark hidden.
3072 2008-03-18 Richard Guenther <rguenther@suse.de>
3074 * tree-gimple.h (is_gimple_invariant_address): Declare.
3075 (is_gimple_constant): Likewise.
3076 * tree-gimple.c (is_gimple_constant): New function.
3077 (is_gimple_invariant_address): Likewise.
3078 (is_gimple_min_invariant): Implement in terms of is_gimple_constant
3079 and is_gimple_invariant_address.
3080 * tree-ssa-loop-niter.c (expand_simple_operations): Revert
3082 * tree-data-ref.c (get_references_in_stmt): A SSA_NAME is not
3083 an addressable base.
3085 2008-03-18 Jakub Jelinek <jakub@redhat.com>
3088 * gimplify.c (gimplify_expr): Gimplify second operand of
3091 2008-03-17 Richard Guenther <rguenther@suse.de>
3093 PR tree-optimization/19637
3094 * fold-const.c (fold_unary): Remove restrictions of removing
3095 intermediate pointer-conversions (P2)(P1)P0.
3096 * tree-ssa-ccp.c (maybe_fold_stmt_addition): Recover from
3097 conversion to void pointer.
3098 (get_maxval_strlen): Handle addresses of the form &(*p)[0].
3100 2008-03-16 James E. Wilson <wilson@tuliptree.org>
3103 * dbxout.c (dbxout_expand_expr, case VAR_DECL): Return NULL for
3104 emulated thread local variables.
3106 2008-03-16 Richard Guenther <rguenther@suse.de>
3109 * tree-ssa-loop-niter.c (expand_simple_operations): Do not
3110 expand TREE_INVARIANT operations that are not gimple invariant.
3112 2008-03-16 Hans-Peter Nilsson <hp@axis.com>
3114 * doc/extend.texi (Alignment): Say that the ABI controls
3115 the __alignof__ for non-strict-alignment targets rather
3116 than being a recommendation.
3118 2008-03-15 Paul Brook <paul@codesourcery.com>
3120 * config/arm/arm.c (arm_unwind_emit): Suppress unused unwinding
3122 (arm_output_fn_unwind): Mark functions that can not be unwound.
3124 2008-03-15 Paul Brook <paul@codesourcery.com>
3126 * config/arm/arm.c (arm_rtx_costs_1): Add costs for ARMv6 value
3127 extension instructions.
3129 2008-03-15 Richard Guenther <rguenther@suse.de>
3131 * tree-ssa-ccp.c (ccp_fold): Also read from constant values
3132 and fold constant aggregate refs.
3133 (fold_const_aggregate_ref): Handle string constants
3134 and constructors in ARRAY_REFs. Handle INDIRECT_REF.
3135 (evaluate_stmt): Simplify now that ccp_fold folds constant
3138 2008-03-15 Paul Brook <paul@codesourcery.com>
3140 * config/arm/arm.md (insv): Use gen_insv_t2 and gen_insv_zero.
3141 (extzv): Use gen_extzv_t2.
3142 (insv_t2, insv_zero, extv, extzv_t2): New patterns.
3144 2008-03-15 Richard Guenther <rguenther@suse.de>
3146 * tree-ssa-ccp.c (get_symbol_constant_value): Export.
3147 (fold_const_aggregate_ref): Likewise.
3148 (get_value): Return NULL if we don't have any values.
3149 (ccp_finalize): Set const_val to NULL after freeing it.
3150 * tree-flow.h (get_symbol_constant_value): Declare.
3151 (fold_const_aggregate_ref): Likewise.
3152 * tree-ssa-sccvn.c (try_to_simplify): Use them.
3154 2008-03-15 Richard Guenther <rguenther@suse.de>
3157 * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Make sure
3158 to not produce negative array indices if not allowed. Add
3159 parameter to indicate that.
3160 (maybe_fold_offset_to_component_ref): Allow negative array
3161 indices only for the first member of a structure.
3162 (maybe_fold_offset_to_reference): Allow negative array indices.
3163 (maybe_fold_stmt_addition): Likewise.
3165 2008-03-15 Bjoern Haase <bjoern.m.haase@web.de>
3166 Anatoly Sokolov <aesok@post.ru>
3168 * config/avr/avr.c (avr_arch_types): Add avr6 entry.
3169 (avr_arch): Add ARCH_AVR6.
3170 (avr_mcu_types): Add 'atmega2560' and 'atmega2561' entry.
3171 (initial_elimination_offset): Initialize and use 'avr_pc_size'
3172 instead of fixed value 2.
3173 (print_operand_address): Use gs() asm specifier instead of pm().
3174 (avr_assemble_integer): (Ditto.).
3175 (avr_output_addr_vec_elt): (Ditto.).
3176 (print_operand): Handle "!" code.
3177 * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): Add
3178 __AVR_3_BYTE_PC__, __AVR_2_BYTE_PC__ and __AVR_HAVE_JMP_CALL__.
3179 (AVR_HAVE_EIJMP_EICALL): Define.
3180 (AVR_3_BYTE_PC): Redefine.
3181 (AVR_2_BYTE_PC): (Ditto.).
3182 (PRINT_OPERAND_PUNCT_VALID_P): Add '!' code.
3183 (LINK_SPEC): Add atmega2560 and atmega2561.
3184 (CRT_BINUTILS_SPEC): Add atmega2560 (crtm2560.o) and atmega2561
3186 * config/avr/avr.md (call_insn): Use eicall instead of icall
3187 for 3 byte PC devices.
3188 (call_value_insn): (Ditto.).
3189 (*tablejump_enh): Use eijmp instead of ijmp for 3 byte PC devices.
3190 (indirect_jump): Use only for for 2 byte PC devices.
3191 (*tablejump): (Ditto.).
3192 (*indirect_jump_avr6): Add insn.
3193 (*tablejump_rjmp): Don't use for 3 byte PC devices.
3194 * config/avr/libgcc.S (__prologue_saves__): Use eijmp
3195 instead of ijmp for 3 byte PC devices.
3196 (__tablejump2__): (Ditto.).
3197 * config/avr/t-avr (MULITLIB_OPTIONS): Add avr6 architecture.
3198 (MULITLIB_DIRNAMES): (Ditto.).
3199 (MULTILIB_MATCHES): Add atmega2560 and atmega2561 to list.
3201 2008-03-15 Uros Bizjak <ubizjak@gmail.com>
3203 * config/i386/mmx.md ("sse2_umulv1siv2di3"): Rename from
3204 "sse2_umulsidi3". Use V1DI mode for operand 0.
3205 ("mmx_psadbw"): Use V1DI mode for operand 0.
3206 * config/i386/i386-modes.def (V1SI): New vector mode.
3207 * config/i386/i386.c (struct builtin_description)
3208 [IX86_BUILTIN_PMULUDQ]: Use CODE_FOR_sse2_umulv1siv1di3.
3209 (v1di_ftype_v8qi_v8qi): Rename from di_ftype_v8qi_v8qi.
3210 (v1di_ftype_v2si_v2si): Rename from di_ftype_v2si_v2si.
3211 (ix86_init_mmx_sse_builtins) [__builtin_ia32_psadbw]: Use
3212 v1di_ftype_v8qi_v8qi type.
3213 [__builtin_ia32_pmuludq]: Use v1di_ftype_v2si_v2si type.
3215 * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psadbw,
3216 __builtin_ia32_pmuludq]: Fix the mode of return value.
3218 2008-03-15 Richard Guenther <rguenther@suse.de>
3221 * tree-ssa-pre.c (bitmap_find_leader): Handle expression
3224 2008-03-14 Bob Wilson <bob.wilson@acm.org>
3226 * doc/invoke.texi (Option Summary, Xtensa Options): Document
3227 -mserialize-volatile and -mno-serialize-volatile Xtensa options.
3228 * config/xtensa/xtensa.c (print_operand): Do not emit MEMW instructions
3229 unless TARGET_SERIALIZE_VOLATILE is enabled.
3230 * config/xtensa/xtensa.md (*lsiu, *ssiu): Likewise.
3231 * config/xtensa/xtensa.h (TARGET_DEFAULT): Add MASK_SERIALIZE_VOLATILE.
3232 * config/xtensa/xtensa.opt (mserialize_volatile): New option.
3234 2008-03-14 Richard Guenther <rguenther@suse.de>
3236 PR tree-optimization/34172
3237 * tree-flow.h (refs_may_alias_p): Declare.
3238 (get_single_def_stmt): Likewise.
3239 (get_single_def_stmt_from_phi): Likewise.
3240 (get_single_def_stmt_with_phi): Likewise.
3241 * tree-dfa.c (refs_may_alias_p): New function.
3242 (get_single_def_stmt): Likewise.
3243 (get_single_def_stmt_from_phi): Likewise.
3244 (get_single_def_stmt_with_phi): Likewise.
3245 * tree-ssa-sccvn.c (get_def_ref_stmt_vuses): New function.
3246 (vn_reference_lookup_1): New helper function.
3247 (vn_reference_lookup): Walk the virtual use-def chain to
3248 continue searching for a match if the def does not alias the
3249 reference we are looking for.
3251 2008-03-14 David Edelsohn <edelsohn@gnu.org>
3253 * doc/install.texi (Binaries): Remove UCLA archive. Add HVCC
3254 archive and Perzl. Update The Written Word listing.
3256 2008-03-14 Richard Guenther <rguenther@suse.de>
3258 PR tree-optimization/34043
3259 PR tree-optimization/33989
3260 * tree-ssa-pre.c (execute_pre): Allow SCCVN to do insertion
3262 (bitmap_find_leader): Use extra argument to verify dominance
3263 relationship inside a basic-block.
3264 (can_PRE_operation): Add VIEW_CONVERT_EXPR.
3265 (find_leader_in_sets): Adjust.
3266 (create_component_ref_by_pieces): Take extra argument for
3267 dominance check, handle lookup failures.
3268 (find_or_generate_expression): Likewise.
3269 (create_expression_by_pieces): Likewise.
3270 (insert_into_preds_of_block): Adjust.
3271 (create_value_expr_from): If asked for, verify all operands
3272 are in the blocks AVAIL_OUT set.
3273 (make_values_for_stmt): Check for SSA_NAMEs that are life
3274 over an abnormal edge.
3275 (compute_avail): Remove such check.
3276 (do_SCCVN_insertion): New function.
3277 (eliminate): If we do not find a leader suitable for replacement
3278 insert a replacement expression from SCCVN if available.
3279 * tree-ssa-sccvn.h (run_scc_vn): Update prototype.
3280 (struct vn_ssa_aux): Add needs_insertion flag.
3281 * tree-ssa-sccvn.c (may_insert): New global flag.
3282 (copy_reference_ops_from_ref): Value-number union member access
3283 based on its size, not type and member if insertion is allowed.
3284 (visit_reference_op_load): For a weak match from union type
3285 punning lookup a view-converted value and insert a SSA_NAME
3286 for that value if that is not found.
3287 (visit_use): Make dumps shorter. Do not disallow value numbering
3288 SSA_NAMEs that are life over an abnormal edge to constants.
3289 (free_scc_vn): Release inserted SSA_NAMEs.
3290 (run_scc_vn): New flag to specify whether insertion is allowed.
3291 Process SSA_NAMEs in forward order.
3292 * tree-ssa-loop-im.c (for_each_index): Handle invariant
3293 ADDR_EXPRs inside VIEW_CONVERT_EXPR.
3294 * fold-const.c (fold_unary): Fold VIEW_CONVERT_EXPRs from/to
3295 pointer type to/from integral types that do not change the
3296 precision to regular conversions.
3298 2008-03-13 Uros Bizjak <ubizjak@gmail.com>
3300 * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psll?,
3301 __builtin_ia32_psrl?, __builtin_ia32_psra?, __builtin_ia32_psll?i,
3302 __builtin_ia32_psrl?i, __builtin_ia32_psra?i, __builtin_ia32_psll?128,
3303 __builtin_ia32_psrl?128, __builtin_ia32_psra?128]: Fix the mode of
3304 input arguments and the mode of return value. Built-in functions
3305 that operate on whole 64-bit MMX register now use V1DI mode.
3307 2008-03-13 Alon Dayan <alond@il.ibm.com>
3308 Olga Golovanevsky <olga@il.ibm.com>
3310 PR tree-optimization/35041
3311 * ipa-struct-reorg.c (find_pos_in_stmt_1): Add another option
3312 to locate the right position in a statement.
3314 2008-03-13 Uros Bizjak <ubizjak@gmail.com>
3318 * config/i386/xmmintrin.h: Change all static inline functions to
3319 extern inline and add __gnu_inline__ attribute.
3320 * config/i386/bmintrin.h: Ditto.
3321 * config/i386/smmintrin.h: Ditto.
3322 * config/i386/tmmintrin.h: Ditto.
3323 * config/i386/mmintrin-common.h: Ditto.
3324 * config/i386/ammintrin.h: Ditto.
3325 * config/i386/emmintrin.h: Ditto.
3326 * config/i386/pmmintrin.h: Ditto.
3327 * config/i386/mmintrin.h: Ditto.
3328 * config/i386/mm3dnow.h: Ditto.
3330 2008-03-13 Jakub Jelinek <jakub@redhat.com>
3333 * omp-low.c (lower_regimplify, init_tmp_var, save_tmp_var): Removed.
3334 (lower_omp_2): New function.
3335 (lower_omp_1, lower_omp): Rewritten.
3337 2008-03-13 Danny Smith <dannysmith@users.sourceforge.net>
3340 * doc/extend.texi (Structure-Packing Pragmas): Replace "Win32"
3341 with the phrase "Microsoft Windows compilers".
3342 (Push/Pop Macro Pragmas): New subsection. Document
3343 #pragma push_macro and pragma pop_macro.
3345 2008-03-12 Paul Brook <paul@codesourcery.com>
3347 * config/arm/arm.c (output_move_double): Prefer LDRD to LDM.
3349 2008-03-12 Paul Brook <paul@codesourcery.com>
3351 * config/arm/thumb2.md: Extend peephole to cover 3-arg subs.
3352 (thumb2_alusi3_short): Exclude PLUS and MINUS.
3353 (thumb2_addsi_shortim): Rename ...
3354 (thumb2_addsi_short): ... to this. Allow register operands.
3355 (thumb2_subsi_short): New pattern.
3356 (thumb2_one_cmplsi2_short,
3357 thumb2_negsi2_short): New patterns and peepholes.
3359 2008-03-12 Paul Brook <paul@codesourcery.com>
3361 * config/arm/arm.c (arm_size_rtx_costs): Use ARM costs for Thumb-2.
3363 2008-03-12 Uros Bizjak <ubizjak@gmail.com>
3365 * config/i386/i386.md (int_cond): New code iterator.
3367 ("s<code>"): Macroize expander from seq, sne, sgt, sgtu, slt, sltu,
3368 sge, sgeu, sle and sleu expanders usign int_cond code iterator.
3369 ("s<code>"): Macroize expander from sunordered, sordered, suneq, sunge,
3370 sungt, sunle, sunlt and sltgt expanders usign fp_cond code iterator.
3371 ("b<code>"): Macroize expander from beq, bne, bgt, bgtu, blt, bltu,
3372 bge, bgeu, ble and bleu expanders usign int_cond code iterator.
3373 ("b<code>"): Macroize expander from bunordered, bordered, buneq, bunge,
3374 bungt, bunle, bunlt and bltgt expanders usign fp_cond code iterator.
3376 2008-03-12 Paul Brook <paul@codesourcery.com>
3378 * config/arm/arm.c (use_return_insn): Use offsets->saved_regs_mask
3379 instead of {arm,thumb}_compute_save_reg_mask.
3380 (output_return_instruction): Ditto.
3381 (thumb_unexpanded_epilogue): Ditto.
3382 (thumb1_expand_prologue): Ditto.
3383 (thumb1_output_function_prologue): Ditto.
3384 (arm_set_return_address): Ditto.
3385 (thumb_set_return_address): Ditto.
3386 (arm_get_frame_offsets): Set offsets->saved_regs_mask. Push extra
3387 regs to achieve stack alignment.
3388 (thumb1_compute_save_reg_mask): Fix compiler warning.
3389 (arm_output_epilogue): Use offsets->saved_regs_mask.
3390 Adjust stack pointer by poping call clobered registers.
3391 (arm_expand_prologue): Use offsets->saved_regs_mask.
3392 Adjust stack pointer by pushing extra registers.
3393 * config/arm.h (arm_stack_offsets): Add saved_regs_mask.
3395 2008-03-12 Paolo Bonzini <bonzini@gnu.org>
3398 * fold-const.c (fold_unary) <NOP_EXPR>: Distribute a narrowing
3399 conversion to the operands of a multiplication.
3401 2008-03-12 Richard Guenther <rguenther@suse.de>
3403 * Makefile.in (OBJS-common): Add tree-ssa-phiprop.o
3404 (tree-ssa-phiprop.o): Copy dependencies from tree-ssa-forwprop.o.
3405 * timevar.def (TV_TREE_PHIPROP):&