1 2008-07-19 Jan Hubicka <jh@suse.cz>
3 * cgraph.c (cgraph_add_new_function): Do early local passes.
4 * tree-nrv.c (gate_pass_return_slot): New gate.
5 (pass_nrv): Add the gate.
6 * tree-ssa-coalese.c (hash_ssa_name_by_var, eq_ssa_name_by_var): New
8 (coalesce_ssa_name): Coalesce SSA names.
9 * tree-ssa-live.c (remove_unused_locals): Be more conservative when
10 not optimizing so unused user vars remains visible.
11 * common.opt (flag_tree_ter): Always enable by default.
12 * tree-ssa-ter.c: Include flags.h
13 (is_replaceable_p): Check that locations match; when aliasing is missing
14 be conservative about loads.
15 * tree-optimize.c (gate_init_datastructures): Remove.
16 (pass_init_datastructures): New.
17 * passes.c: Reorder passes so we always go into SSA.
19 2008-07-19 Jan Hubicka <jh@suse.cz>
21 * doc/extend.texi (flatten attribute): Remove note about unit-at-a-time
22 * doc/invoke.texi (--combine): Likewise.
23 (-finline-functions-called-once): Update levels when enabled.
24 (-funit-at-a-time): Document new behaviour.
25 (-ftoplevel-reorder): Document that it is enabled -O0 and imply
26 -fno-section-anchors when disabled explicitly.
27 (inline params): They are not ignored now.
28 (precompiled headers): Remove unit-at-a-time as being incompatible.
29 * opts.c (decode_options): Handle unit-at-a-time as alias;
30 imply -fno-section-anchors when toplevel reorder is disabled
32 * common.opt (ftoplevel-reorder): Set default value to 2.
33 (funit-at-a-time): Set default value to 1.
34 * config/rs6000/rs6000.c (optimization_options): Set section anchors
37 2008-07-19 Jan Hubicka <jh@suse.cz>
39 * builtins.c (expand_builtin_int_roundingfn,
40 expand_builtin_int_roundingfn_2): Do not take subtarget argument;
43 2008-07-19 Richard Guenther <rguenther@suse.de>
46 * tree-ssa-sccvn.h (get_constant_value_id): Declare.
47 * tree-ssa-sccvn.c (get_constant_value_id): New function.
48 * tree-ssa-pre.c (get_expr_value_id): For newly created
49 constant value-ids make sure to add the expression to its
52 2008-07-19 Jakub Jelinek <jakub@redhat.com>
55 * omp-low.c (expand_omp_atomic_fetch_op): Make sure the
56 return value of the builtin is ignored.
58 2008-07-19 Olivier Hainque <hainque@adacore.com>
60 * doc/tm.texi (MALLOC_ABI_ALIGNMENT): New macro. Alignment, in
61 bits, a C conformant malloc implementation has to provide.
62 * defaults.h (MALLOC_ABI_ALIGNMENT): Default to BITS_PER_WORD.
64 2008-07-19 Joseph Myers <joseph@codesourcery.com>
68 * reload.c (find_reloads_subreg_address): Only reload address if
69 reloaded == 0, not for reloaded != 1.
72 2008-07-16 Joseph Myers <joseph@codesourcery.com>
73 * config/m32c/m32c.c (BIG_FB_ADJ): Move definition earlier.
74 (m32c_legitimate_address_p): Handle "++rii" addresses created by
75 m32c_legitimize_reload_address.
77 2008-07-15 Kaz Kojima <kkojima@gcc.gnu.org>
78 * config/sh/sh.h (GO_IF_LEGITIMATE_ADDRESS): Allow
79 (plus (plus (reg) (const_int)) (const_int)) when reload_in_progress.
81 2008-07-19 Olivier Hainque <hainque@adacore.com>
83 * dwarf2out.c (add_subscript_info): New explicit COLLAPSE_P
84 argument, saying whether nested array are to be collapsed
85 into a single array type DIE with multiple subscripts.
86 (gen_array_type_die): Factorize comments about the MIPS_DEBUG_INFO
87 issues, centralize the nested array types collapsing control and
88 disable the transformation for Ada.
90 2008-07-18 Uros Bizjak <ubizjak@gmail.com>
93 * config/i386/i386.md (x86_64_shift_adj_1): Rename from
95 (x86_64_shift_adj_2): New expander.
96 (x86_64_shift_adj_3): Ditto.
97 * config/i386/i386.c (ix86_split_ashr): Use gen_x86_64_shift_adj_3
98 to split TImode operands.
99 (ix86_split_ashl): Use gen_x86_64_shift_adj_2 to split TImode operands.
100 (ix86_split_lshr): Ditto.
102 2008-07-18 Kris Van Hees <kris.van.hees@oracle.com>
104 * c-common.c (c_stddef_cpp_builtins): Define __CHAR16_TYPE__
106 * c-typeck.c (digest_init): Support char16_t and char32_t.
107 (set_nonincremental_init_from_string): Idem.
109 2008-07-18 H.J. Lu <hongjiu.lu@intel.com>
112 * builtins.c (std_gimplify_va_arg_expr): Limit alignment to
113 PREFERRED_STACK_BOUNDARY.
114 * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
116 2008-07-18 H.J. Lu <hongjiu.lu@intel.com>
119 * function.c (locate_and_pad_parm): Cap boundary earlier.
121 2008-07-17 Julian Brown <julian@codesourcery.com>
123 * config/arm/arm.c (arm_cxx_determine_class_data_visibility): Make
124 no-op for targets which don't use DLLs.
126 2008-07-17 Martin Jambor <mjambor@suse.cz>
128 * ipa-cp.c (ipcp_print_all_lattices): New variable info, check
129 that nodes are relevant by examining the node->analyzed flag.
130 (ipcp_init_stage): Check which nodes are relevant, assert that the
131 relevant ones are also required.
132 (ipcp_propagate_stage): Check on the side arrays are properly
134 (ipcp_print_all_jump_functions): Make sure not to touch any node
135 that is not analyzed or an edge that does not have a corresponding
136 entry in the on-the-side vectors.
137 (ipcp_function_scale_print): Likewise.
138 (ipcp_update_callgraph): Check that the node is relevant.
139 (ipcp_insert_stage): Check that the node is relevant. Check there is
140 an info for every node and edge.
141 * ipa-prop.c (ipa_init_func_list): Check the nodes are relevant.
142 (ipa_print_all_tree_maps): Likewise and a new variable info.
143 (ipa_print_all_params_modified): Likewise.
144 * ipa-prop.h (ipa_edge_args_info_available_for_edge_p): New function.
146 2008-07-17 Roman Zippel <zippel@linux-m68k.org>
149 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for __mc68000__.
151 2008-07-17 Paolo Bonzini <bonzini@gnu.org>
153 PR rtl-optimization/36753
154 * fwprop.c (use_killed_between): Don't shortcut
155 single-definition global registers.
157 2008-07-16 Jan Hubicka <jh@suse.cz>
159 * cgraph.h (varpool_empty_needed_queue): Declare.
160 * cgraphunit.c (output_in_order): Mark all variables as needed;
162 * varpool.c (varpool_assemble_node): Update debug queue.
163 (varpool_assemble_pending_decls): Don't do it here.
164 (varpool_empty_needed_queue): New function.
166 2008-07-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
168 * recog.c (peephole2_optimize): Fix formatting.
170 2008-07-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
172 * c-pch.c (get_ident): Avoid C++ keywords.
173 * combine-stack-adj.c (single_set_for_csa): Likewise.
174 * final.c (asm_insn_count, final_scan_insn, alter_subreg,
175 output_asm_insn): Likewise.
176 * reload.c (push_secondary_reload, find_reusable_reload,
177 push_reload, combine_reloads, find_reloads,
178 debug_reload_to_stream): Likewise.
179 * reload.h (struct reload): Likewise.
180 * reload1.c (reload_reg_class_lower, find_reg, find_reload_regs,
181 allocate_reload_reg, choose_reload_regs, emit_input_reload_insns,
182 emit_output_reload_insns): Likewise.
183 * targhooks.c (default_secondary_reload): Likewise.
184 * varasm.c (section_entry_eq, object_block_entry_eq): Likewise.
186 2008-07-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
188 * recog.c (validate_change_1, validate_change,
189 validate_unshare_change, validate_replace_rtx_1, struct
190 funny_match, constrain_operands, peephole2_optimize): Avoid C++
192 * reload.c (push_secondary_reload, secondary_reload_class,
193 scratch_reload_class, find_valid_class, find_reusable_reload,
194 push_reload, find_dummy_reload, find_reloads_address_1,
195 find_reloads_address_part, find_equiv_reg): Likewise.
196 * reload1.c (spill_failure, eliminate_regs_1, allocate_reload_reg,
197 choose_reload_regs): Likewise.
198 * rtlanal.c (replace_rtx, nonzero_bits1, num_sign_bit_copies1):
200 * rtlhooks.c (gen_lowpart_if_possible): Likewise.
201 * sched-ebb.c (add_deps_for_risky_insns): Likewise.
202 * sched-rgn.c (concat_INSN_LIST): Likewise.
203 * stor-layout.c (mode_for_size, mode_for_size_tree,
204 smallest_mode_for_size): Likewise.
206 2008-07-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
208 * cfg.c (dump_reg_info): Avoid C++ keywords.
209 * dwarf2asm.c (dw2_force_const_mem,
210 dw2_asm_output_encoded_addr_rtx): Likewise.
211 * except.c (gen_eh_region, add_action_record, output_ttype): Likewise.
212 * expmed.c (expand_shift): Likewise.
213 * global.c (find_reg): Likewise.
214 * graph.c (draw_edge): Likewise.
215 * local-alloc.c (reg_meets_class_p, find_free_reg): Likewise.
216 * optabs.c (expand_binop, expand_twoval_unop, expand_twoval_binop,
217 widen_clz, widen_bswap, expand_parity, expand_unop,
218 emit_cmp_and_jump_insn_1): Likewise.
219 * postreload.c (reload_cse_simplify_operands): Likewise.
220 * ra.h (add_neighbor): Likewise.
221 * reg-stack.c (remove_regno_note, change_stack): Likewise.
222 * regclass.c (memory_move_secondary_cost, dump_regclass, regclass,
223 record_reg_classes, copy_cost, record_address_regs,
224 invalid_mode_change_p): Likewise.
225 * regrename.c (regrename_optimize, scan_rtx_reg,
226 dump_def_use_chain, find_oldest_value_reg,
227 replace_oldest_value_reg, copyprop_hardreg_forward_1): Likewise.
229 2008-07-16 David Edelsohn <edelsohn@gnu.org>
231 * config/rs6000/rs6000.c (processor_target_table): Remove duplicate
232 MASK_POWERPC64 for power4 in previous commit.
234 2008-07-16 Olivier Hainque <hainque@adacore.com>
236 * collect2.c (scan_prog_file, COFF version): Use CONST_CAST
237 instead of bare conversion to cast const-ness away.
239 2008-07-16 Anatoly Sokolov <aesok@post.ru>
241 * config/xtensa/xtensa.h (FUNCTION_OUTGOING_VALUE,
242 XTENSA_FUNCTION_VALUE, XTENSA_FUNCTION_VALUE): Remove.
243 * config/xtensa/xtensa.c (xtensa_function_value): New function.
244 (TARGET_FUNCTION_VALUE): Define.
246 2008-07-16 David Edelsohn <edelsohn@gnu.org>
248 * config/rs6000/rs6000.c (processor_target_table): Add
249 MASK_PPC_GPOPT for power4, power5, power5+, power6, and power6x.
251 2008-07-16 Joseph Myers <joseph@codesourcery.com>
254 * config/m32c/m32c.c (BIG_FB_ADJ): Move definition earlier.
255 (m32c_legitimate_address_p): Handle "++rii" addresses created by
256 m32c_legitimize_reload_address.
258 2007-07-16 Rafael Avila de Espindola <espindola@google.com>
260 * c-decl.c (merge_decls): Keep DECL_SOURCE_LOCATION and
261 DECL_IN_SYSTEM_HEADER in sync.
263 2008-07-15 Daniel Berlin <dberlin@dberlin.org>
265 * tree-ssa-sccvn.c (expressions_equal_p): Check type equality.
266 * tree-ssa-pre.c (pre_expr_eq): Ditto
267 (get_constant_for_value_id): Take a type as an argument.
268 (fully_constant_expression): Pass in type.
269 (find_or_generate_expression): Short circuit constant case.
270 (create_expression_by_pieces): Remove special casing of
272 (do_regular_insertion): Short circuit constant case.
273 (do_partial_partial_insertion): Ditto.
275 2008-07-15 Kaz Kojima <kkojima@gcc.gnu.org>
278 * config/sh/sh.md (symGOT_load): Don't add REG_EQUAL note.
280 2008-07-15 Bob Wilson <bob.wilson@acm.org>
282 * config/xtensa/libgcc-xtensa.ver: New file.
283 * config/xtensa/t-linux (SHLIB_MAPFILES): Append libgcc-xtensa.ver.
285 2008-07-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
287 * df-problems.c (df_set_note): Avoid C++ keywords.
288 * df-scan.c (df_ref_change_reg_with_loc_1): Likewise.
289 * dse.c (record_store, remove_useless_values): Likewise.
290 * emit-rtl.c (gen_reg_rtx, update_reg_offset, gen_rtx_REG_offset,
291 gen_reg_rtx_offset, operand_subword, change_address_1,
292 change_address, adjust_address_1, offset_address,
293 widen_memory_access, emit_copy_of_insn_after): Likewise.
294 * explow.c (round_push, allocate_dynamic_stack_space): Likewise.
295 * fwprop.c (should_replace_address, propagate_rtx_1,
296 propagate_rtx, try_fwprop_subst, forward_propagate_and_simplify):
298 * gcse.c (cprop_jump, find_implicit_sets, bypass_block,
299 gcse_emit_move_after, update_ld_motion_stores): Likewise.
300 * lcm.c (compute_insert_delete, pre_edge_lcm,
301 compute_rev_insert_delete, pre_edge_rev_lcm): Likewise.
302 * lower-subreg.c (resolve_reg_notes): Likewise.
303 * mode-switching.c (optimize_mode_switching): Likewise.
305 2008-07-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
307 * bt-load.c (add_btr_def, migrate_btr_def,
308 branch_target_load_optimize): Avoid C++ keywords.
309 * caller-save.c (insert_restore, insert_save, insert_one_insn):
311 * combine.c (subst, simplify_set, make_extraction,
312 make_compound_operation, known_cond, simplify_shift_const_1): Likewise.
313 * cse.c (make_regs_eqv, merge_equiv_classes, validate_canon_reg,
314 fold_rtx, equiv_constant, cse_insn, cse_process_notes_1): Likewise.
316 2008-07-15 Richard Guenther <rguenther@suse.de>
319 * c-common.c (strict_aliasing_warning): Do not warn for
320 TYPE_REF_CAN_ALIAS_ALL pointers.
321 (c_common_get_alias_set): may_alias types are not special.
322 * tree.c (build_pointer_type_for_mode): Look up the may_alias
323 attribute and set can_ref_all accordingly.
324 (build_reference_type_for_mode): Likewise.
325 * doc/extend.texi (may_alias): Clarify.
327 2008-07-15 Kaz Kojima <kkojima@gcc.gnu.org>
330 * config/sh/sh.h (GO_IF_LEGITIMATE_ADDRESS): Allow
331 (plus (plus (reg) (const_int)) (const_int)) when reload_in_progress.
333 2008-07-15 Andrew Pinski <andrew_pinski@playstation.sony.com>
336 * config/rs6000/rs6000.c (print_operand <case 'y'>): Don't use
337 gcc_assert, instead call output_operand_lossage.
339 2008-07-15 Kai Tietz <kai.tietz@onevision.com>
341 * builtins.c (std_canonical_va_list): Treat structure based
344 2008-07-15 Ben Elliston <bje@au.ibm.com>
346 * emit-rtl.c (set_mem_attributes_minus_bitpos): Improve comment.
348 2007-07-14 Rafael Avila de Espindola <espindola@google.com>
350 * c-decl.c (diagnose_mismatched_decls): Don't warn if TREE_NO_WARNING
353 2008-07-14 Jan Hubicka <jh@suse.cz>
355 * i386.md (sse5 cmov pattern): Update call of ix86_sse5_valid_op_p
356 * sse.md (sse5 patterns): Update call of ix86_sse5_valid_op_p;
357 fix predicates and constraints.
358 * i386.c (ix86_sse5_valid_op_p): Add commutative parameter.
359 * i386-protos.h (ix86_sse5_valid_op_p): Update declaration.
361 2008-07-14 Doug Kwan <dougkwan@google.com>
363 * config.gcc (arm*-*-eabi*): Include arm/eabi.h and use
364 additional option file arm/eabi.opt.
365 * config/arm/eabi.h (File): New configuration file for EABI targets.
366 * config/arm/elf.h (SUBTARGET_EXTRA_SPECS): Add
367 SUBSUBTARGET_EXTRA_SPECS.
368 (SUBSUBTARGET_EXTRA_SPECS): Provide empty default.
369 * config/arm/unknown-elf.h (UNKNOWN_ELF_STARTFILE_SPEC): Renamed
370 from STARTFILE_SPEC so that it can be referenced in an override.
371 (STARTFILE_SPEC): Use UNKNOWN_ELF_STARTFILE_SPEC.
372 (UNKNOWN_ELF_ENDFILE_SPEC): Renamed from ENDFILE_SPEC so that it
373 can be referenced in an override.
374 (ENDFILE_SPEC): Use UNKNOWN_ELF_ENDFILE_SPEC.
375 * config/arm/bpabi.h (BPABI_LINK_SPEC): Renamed from LINK_SPEC
376 so that it can be referenced in an override.
377 (LINK_SPEC): Use BPABI_LINK_SPEC.
378 * config/arm/eabi.opt (File): New.
380 2008-07-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
382 * Makefile.in (TARGET_DEF_H): Add targhooks.h.
383 (FIXED_VALUE_H): New variable.
384 (RTL_BASE_H): Use $(INPUT_H) and $(FIXED_VALUE_H) instead of
385 input.h, fixed-value.h.
386 (TREE_H): Use $(INPUT_H), add $(SYMTAB_H).
387 (BASIC_BLOCK_H): Use $(BITMAP_H).
388 (FUNCTION_H): Add varray.h.
389 (IPA_REFERENCE_H): Use $(BITMAP_H).
390 (CGRAPH_H): Add $(BASIC_BLOCK_H).
391 (DF_H): Use $(BITMAP_H).
392 (GGC_H): Add statistics.h.
394 (INSN_ATTR_H): Use it.
395 (SYSTEM_H): Add safe-ctype.h, filenames.h.
397 (SYMTAB_H): Add $(OBSTACK_H).
398 (CPP_INTERNAL_H): New.
399 (TREE_DUMP_H): Add tree-pass.h.
400 (TREE_FLOW_H): Use $(BITMAP_H)
401 (PRETTY_PRINT_H): Use $(INPUT_H).
402 (EBITMAP_H): Rename from typo-ed EBIMAP_H.
405 (many object files): Fix lots of header dependencies throughout.
407 2008-07-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
409 * Makefile.in (write_entries_to_file, write_entries_to_file_split):
411 (s-gtyp-input): Use them to write tmp-gi.list.
412 (echo_to_gi.list): Remove.
414 2008-07-14 Richard Guenther <rguenther@suse.de>
416 * tree-ssa-sccvn.c (pre_info): Remove.
417 (switch_to_PRE_table): Likewise.
418 (free_scc_vn): Do not clear SSA_NAME_VALUE. Do not free pre_info.
419 (set_hashtable_value_ids): Do not create value-ids for the
421 (run_scc_vn): Remove double test. Remove bogus special-case
422 in value-number printing.
423 * tree-ssa-sccvn.h (switch_to_PRE_table): Remove.
424 * tree-ssa-ccp.c (get_symbol_constant_value): Do not look at
426 * tree-flow-inline.h (get_value_handle): Remove.
427 * tree-flow.h (get_value_handle): Remove.
429 2008-07-14 Martin Jambor <mjambor@suse.cz>
431 * tree-switch-conversion.c (gen_inbound_check): Make sure the type
432 in which we generate arithmetics is not a subrange.
434 2008-07-14 Martin Jambor <mjambor@suse.cz>
436 * Makefile.in (IPA_PROP_H): Added ipa-prop.h to IPA_PROP_H variable.
438 2008-07-14 Richard Guenther <rguenther@suse.de>
440 * tree-ssa-pre.c (insert_into_preds_of_block): Do not call convert.
442 2008-07-14 Andreas Krebbel <krebbel1@de.ibm.com>
445 * config/s390/s390.c: (s390_secondary_reload): Add a secondary
446 reload for symbol refs moved to r0 with -fPIC.
447 (legitimize_pic_address): Use the target register as temporary
449 (emit_symbolic_move): Adjust comment.
450 * config/s390/s390.md (reloadsi_PIC_addr, reloaddi_PIC_addr):
453 2008-07-14 Ben Elliston <bje@au.ibm.com>
455 * c-common.h (C_CPP_HASHNODE): New macro.
456 * coretypes.h (struct cpp_token): Forward declare.
457 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
458 the context-sensitive keyword method.
459 * config/rs6000/rs6000-c.c (__vector_keyword, vector_keyword,
460 __pixel_keyword, pixel_keyword, __bool_keyword, bool_keyword,
461 expand_bool_pixel): New.
462 (altivec_categorize_keyword): New function.
463 (init_vector_keywords): New function.
464 (rs6000_macro_to_expand): Likewise.
465 (rs6000_cpu_cpp_builtins): Enable context-sensitive macros if not
466 compiling an ISO C dialect.
468 2008-07-13 Daniel Berlin <dberlin@dberlin.org>
470 * tree-ssa-pre.c (fully_constant_expression): Add fold_convert calls.
471 (create_expression_by_pieces): Fix typo.
472 (do_regular_insertion): Use debug counter here too.
474 2008-07-14 Hans-Peter Nilsson <hp@axis.com>
477 * config/cris/cris.h (CRIS_CONST_OK_FOR_LETTER_P): Renamed from
478 CONST_OK_FOR_LETTER_P. All port-local users changed.
479 (CONST_OK_FOR_CONSTRAINT_P): Define; implement Kc as old K,
480 implement Kp matching power-of-two.
481 (CONSTRAINT_LEN): Define to match.
482 * config/cris/cris.md: Replace all use of constraint K with Kc.
483 ("*btst*): Use Kp for operand 0 of last alternative.
485 2008-07-13 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
488 * tree-call-cdce.c (check_target_format): Accept MIPS single, double
491 2008-07-13 Jan Hubicka <jh@suse.cz>
493 * tree.c (decl_assembler_name_equal): Expect assembler name of decl
496 2008-07-13 Richard Guenther <rguenther@suse.de>
499 * langhooks.c (lhd_print_error_function): Deal with recursive
502 2008-07-12 Jan Hubicka <jh@suse.cz>
504 * cgraph.c (assembler_name_hash): New static var.
505 (hash_node_by_assembler_name, eq_assembler_name): New.
506 (cgraph_node_for_asm): Use hashtable.
507 (cgraph_remove_node): Maintain hashtable.
508 (change_decl_assembler_name): Sanity check that names are not changing
509 after aliasing was processed.
510 * cgraph.h (varpoon_node): Add next GGC marker.
511 * tree.c (decl_assembler_name_equal): Constify.
512 (decl_assembler_name_hash): New.
513 * tree.h (decl_assembler_name_equal): Constify.
514 (decl_assembler_name_hash): Update.
516 2008-07-12 David Daney <ddaney@avtrex.com>
518 * config/mips/driver-native.c (host_detect_local_cpu): Handle
521 2008-07-12 Richard Sandiford <rdsandiford@googlemail.com>
523 * doc/md.texi: Document the MIPS "v" constraint.
524 * config/mips/mips.h (reg_class): Revert last change.
525 (REG_CLASS_NAMES): Likewise.
526 (REG_CLASS_CONTENTS): Likewise.
527 * config/mips/mips.c (mips_regno_to_class): Likewise.
528 * config/mips/constraints.md (v): Likewise, but add documentation.
529 Add a comment to say that this constraint should not be used in
532 2008-07-11 DJ Delorie <dj@redhat.com>
534 * config/h8300/h8300.md (length): Fix branch offset limit.
536 2008-07-11 Anatoly Sokolov <aesok@post.ru>
538 * config/avr/avr-protos.h (avr_peep2_scratch_safe): Remove prototype.
539 * config/avr/avr.c (avr_peep2_scratch_safe): Remove.
540 (avr_hard_regno_scratch_ok): New function.
541 (TARGET_HARD_REGNO_SCRATCH_OK): Define.
542 * config/avr/avr.md (all peepholes that request a scratch register):
543 Remove avr_peep2_scratch_safe use.
545 2008-07-11 Tom Tromey <tromey@redhat.com>
546 Ian Lance Taylor <iant@google.com>
548 * c-common.h (enum rid): Add RID_CXX_COMPAT_WARN.
549 (struct c_common_resword): Define.
550 (D_CONLY, D_CXXONLY, D_C99, D_CXX0X, D_EXT, D_EXT89): Define.
551 (D_ASM, D_OBJC, D_CXX_OBJC, D_CXXWARN): Define.
552 (c_common_reswords, num_c_common_reswords): Declare.
553 * c-common.c (c_common_reswords): New global const array.
554 (num_c_common_reswords): New const int.
555 * c-parser.c (struct resword, reswords): Don't define.
556 (D_C89, D_EXT, D_EXT89, D_OBJC): Don't define.
557 (c_parse_init): Clarify mask code. Use c_common_reswords rather
558 than reswords. If warning about C++ keywords, give them a special
560 (c_lex_one_token): Warn about C++ keywords. Call
561 objc_is_reserved_word rather than OBJC_IS_AT_KEYWORD.
562 (c_parser_external_declaration): Look for RID_xxx rather than
563 RID_AT_xxx, for ObjC++ keywords which are also C++ keywords.
564 (c_parser_statement_after_labels): Likewise.
565 (c_parser_objc_class_instance_variables): Likewise.
566 (c_parser_objc_class_declaration): Likewise.
567 (c_parser_objc_try_catch_statement): Likewise.
568 * c-decl.c (c_print_identifier): Ignore RID_CXX_COMPAT_WARN.
569 (declspecs_add_type): Likewise.
571 2008-07-11 Angelo Graziosi <angelo.graziosi@alice.it>
573 * ggc-page.c (alloc_page):
574 Substituting xmalloc, xcalloc with
575 XNEWVEC and XCNEWVAR macros which add the
578 2008-07-11 Richard Guenther <rguenther@suse.de>
580 PR tree-optimization/36765
581 * tree-ssa-alias.c (compute_flow_insensitive_aliasing): Add
582 aliases from HEAP vars to SMTs.
584 2008-07-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
586 * Makefile.in (LOOSE_WARN, STRICT_WARN): Update comments.
587 * configure.ac (loose_warn): Move -Wc++-compat from here...
588 (strict_warn): ...to here.
589 * configure: Regenerate.
591 2008-07-10 Joseph Myers <joseph@codesourcery.com>
593 * config.gcc (arm-*-coff*, armel-*-coff*, h8300-*-*,
594 i[34567]86-*-aout*, i[34567]86-*-coff*, m68k-*-aout*,
595 m68k-*-coff*, sh-*-*, mips-sgi-irix[56]*, pdp11-*-bsd,
596 rs6000-ibm-aix4.[12]*, powerpc-ibm-aix4.[12]*): Deprecate targets,
597 excluding more specific h8300-*-* and sh-*-* targets.
599 2008-07-10 Daniel Berlin <dberlin@dberlin.org>
601 * tree-ssa-pre.c (create_expression_by_pieces): Add fold_convert calls.
603 (execute_pre): Call loop_optimizer_finalize in early exit.
605 2008-07-10 Jakub Jelinek <jakub@redhat.com>
608 * omp-low.c (lower_omp_2): If task_shared_vars, test all DECL_P
609 uids in the bitmap, not just VAR_DECL uids.
611 PR rtl-optimization/36419
612 * combine-stack-adj.c (adjust_frame_related_expr): New function.
613 (combine_stack_adjustments_for_block): Call it if needed. Delete
615 * dwarf2out.c (dwarf2out_frame_debug_expr): Adjust
616 DW_CFA_GNU_args_size if CSA pass merged some adjustments into
617 prologue sp adjustment.
619 2008-07-10 Peter Maydell <pmaydell@chiark.greenend.org.uk>
622 * opts.c (print_ignored_options): Report postponed diagnostics for
623 unknown -Wno-* options as warnings, not errors.
624 (postpone_unknown_option_error): Renamed to...
625 (postpone_unknown_option_warning): ... this.
627 2008-07-09 Doug Kwan <dougkwan@google.com>
630 2008-07-08 Doug Kwan <dougkwan@google.com>
632 * config/arm/arm.opt (mandroid): New option.
633 * config/arm/bpabi.h (ANDROID_LINK_SPEC): New macro.
634 (LINK_SPEC): Enable Android specific behaviour when -mandroid is used.
636 (CC1PLUS_SPEC): Same.
638 (STARTFILE_SPEC): Same.
639 (ENDFILE_SPEC): Same.
640 (TARGET_BPABI_CPP_BUILTINS): Define __ANDROID__ when -mandroid is
643 2008-07-09 Richard Sandiford <rdsandiford@googlemail.com>
646 * config/mips/mips.h (reg_class): Remove V1_REG.
647 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update accordingly.
648 * config/mips/mips.c (mips_regno_to_class): Map $3 to M16_NA_REGS
650 (mips_get_tp): New function.
651 (mips_legitimize_tls_address): Use it.
652 * config/mips/constraints.md (v): Delete.
653 * config/mips/mips.md (TLS_GET_TP_REGNUM): New constant.
654 (tls_get_tp_<mode>): Allow any GPR destination and clobber $3.
655 After reload, split into a move and ...
656 (*tls_get_tp_<mode>_split): ...this new instruction.
658 2008-07-09 David Daney <ddaney@avtrex.com>
660 * config/mips/driver-native.c: Include coretypes.h and tm.h.
662 2008-07-09 Jakub Jelinek <jakub@redhat.com>
664 * gimplify.c (struct gimplify_ctx): Move to tree-gimple.h.
665 (push_gimplify_context): Don't allocate temp_htab nor c itself here.
667 (pop_gimplify_context): Check c->temp_htab instead of optimize whether
668 htab_delete should be called. Don't free c.
669 (lookup_tmp_var): Create temp_htab lazily.
670 (gimplify_scan_omp_clauses, gimplify_omp_parallel, gimplify_omp_task,
671 gimplify_body, force_gimple_operand): Adjust push_gimplify_context
673 * omp-low.c (lower_omp_sections, lower_omp_single, lower_omp_master,
674 lower_omp_ordered, lower_omp_critical, lower_omp_for,
675 create_task_copyfn, lower_omp_taskreg, execute_lower_omp):
676 * tree-ssa-ccp.c (convert_to_gimple_builtin): Likewise.
677 * tree-sra.c (generate_element_init): Likewise.
678 * tree-mudflap.c (execute_mudflap_function_ops,
679 execute_mudflap_function_decls): Likewise.
680 * tree-inline.c (setup_one_parameter, optimize_inline_calls): Likewise.
681 * tree-gimple.h (struct gimplify_ctx): New type.
682 (push_gimplify_context): Adjust prototype.
684 2008-07-09 Daniel Berlin <dberlin@dberlin.org>
686 * tree-ssa-pre.c (phi_translate_1): Update placement of
689 2008-07-09 Anatoly Sokolov <aesok@post.ru>
691 * target.h (struct gcc_target): Add hard_regno_scratch_ok field.
692 * target-def.h (TARGET_HARD_REGNO_SCRATCH_OK): New.
693 (TARGET_INITIALIZER): Use TARGET_HARD_REGNO_SCRATCH_OK.
694 * targhooks.c (default_hard_regno_scratch_ok): New function.
695 * targhooks.h (default_hard_regno_scratch_ok): Declare function.
696 * doc/tm.texi: Document TARGET_HARD_REGNO_SCRATCH_OK hook.
697 * recog.c: Include "target.h".
698 (peep2_find_free_register): Add check for global regs. Add target
700 * Makefile.in (recog.o): Depend on target.h.
702 2008-07-09 Kaz Kojima <kkojima@gcc.gnu.org>
704 * config/sh/sh.c (sh_canonical_va_list_type): New.
705 (TARGET_CANONICAL_VA_LIST_TYPE): Define.
707 2008-07-09 Raksit Ashok <raksit@google.com>
709 * doc/invoke.texi (Option Summary): Mention new option
710 -Wdisallowed-function-list=...
711 (Warning Options): Document -Wdisallowed-function-list=...
712 * common.opt (Wdisallowed-function-list=): New flag.
713 * flags.h (warn_disallowed_functions): External definition of new
714 boolean warning flag.
715 (warn_if_disallowed_function_p): Declare new function.
716 * opts.c (warning_disallowed_functions): New static variable.
717 (warn_disallowed_functions): New boolean warning flag.
718 (warn_if_disallowed_function_p): New function.
719 (add_comma_separated_to_vector): Rename
720 add_instrument_functions_exclude_list to this.
721 (common_handle_option): Handle new option. Rename calls to
722 add_instrument_functions_exclude_list into calls to
723 add_comma_separated_to_vector.
724 * c-parser.c (c_parser_postfix_expression_after_primary): New warning
725 based on flag warn_disallowed_functions.
727 2008-07-09 Christian Bruel <christian.bruel@st.com>
729 * final.c (get_attr_length_1): Call get_attr_length_1 with fallback_fn
730 instead of get_attr_length.
732 2008-07-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
734 * genattrtab.c (insert_right_side, evaluate_eq_attr): Avoid C++
736 * genemit.c (gen_insn): Likewise.
737 * gengtype.c (note_def_vec): Likewise.
738 * gengtype.h (note_def_vec): Likewise.
739 * genoutput.c (struct data, output_insn_data, process_template,
740 gen_expand, gen_split, note_constraint): Likewise.
741 * genrecog.c (new_decision, add_to_sequence, factor_tests,
742 make_insn_sequence): Likewise.
743 * gensupport.c (record_insn_name): Likewise.
745 2008-07-08 Doug Kwan <dougkwan@google.com>
747 * config/arm/arm.opt (mandroid): New option.
748 * config/arm/bpabi.h (ANDROID_LINK_SPEC): New macro.
749 (LINK_SPEC): Enable Android specific behaviour when -mandroid is used.
751 (CC1PLUS_SPEC): Same.
753 (STARTFILE_SPEC): Same.
754 (ENDFILE_SPEC): Same.
755 (TARGET_BPABI_CPP_BUILTINS): Define __ANDROID__ when -mandroid is
758 2008-07-08 Raksit Ashok <raksit@google.com>
760 * expr.c (emit_block_move_via_movmem): Fix expected_align parameter.
761 (set_storage_via_setmem): Fix expected_align parameter.
762 * doc/invoke.texi (i386 and x86-64 Options): Add a couple of options
763 missing from the list.
764 * doc/md.texi (movmem): Explicitly state that expected alignment is
765 to be expressed in bytes.
766 (setmem): Explicitly state that expected alignment is to be expressed
769 2008-07-08 Joseph Myers <joseph@codesourcery.com>
771 * reload.c (find_reloads_subreg_address): Do not require validity
772 of address in original mode before reloading address.
774 2008-07-07 Tianwei Sheng <tianweis@google.com>
776 * df-core.c (df_remove_problem): Adjust the access to avoid out of
779 2008-07-08 Jakub Jelinek <jakub@redhat.com>
781 * tree-sra.c (sra_build_assignment): Handle CONVERT_EXPR_P dst.
783 2008-07-05 Daniel Berlin <dberlin@dberlin.org>
785 Fix PR tree-optimization/23455
786 Fix PR tree-optimization/35286
787 Fix PR tree-optimization/35287
788 * Makefile.in (OBJS-common): Remove tree-vn.o.
790 * dbgcnt.def: Add treepre_insert debug counter.
791 * gcc/tree-flow.h (add_to_value): Updated for other changes.
792 (debug_value_expressions): Ditto.
793 (print_value_expressions): Ditto.
794 * tree-pretty-print.c (dump_generic_node): Updated for
795 VALUE_HANDLE removal.
796 * tree-ssa-dom.c (record_equality): Ditto.
797 (cprop_operand): Ditto.
798 (lookup_avail_expr): Ditto.
799 * tree-ssa-threadedge.c
800 (record_temporary_equivalences_from_stmts_at_dest): Ditto.
801 (simplify_control_stmt_condition): Ditto.
802 * tree.c (tree_code_size): Ditto.
803 (tree_node_structure): Ditto.
804 (iterative_hash_expr): Ditto.
806 * tree.h (VALUE_HANDLE_ID): Ditto.
807 (VALUE_HANDLE_EXPR_SET): Ditto.
808 (struct tree_value_handle): Ditto.
809 (union tree_node): Ditto.
810 * treestruct.def: Ditto.
811 * tree-vn.c: Removed.
812 * tree-ssa-pre.c: Rewritten entirely.
813 * tree-ssa-sccvn.c (constant_to_value_id): New hashtable.
814 (constant_value_ids): Ditto.
815 (vn_nary_op_t): Moved to header.
817 (vn_reference_op_t): Ditto
818 (vn_reference_t): Ditto.
819 (next_value_id): New variable.
820 (VN_INFO): Add an assert.
821 (vn_constant_eq): New function.
822 (vn_constant_hash): Ditto.
823 (get_or_alloc_constant_value_id): Ditto.
824 (value_id_constant_p): Ditto.
825 (vn_reference_compute_hash): De-staticify.
826 (copy_reference_ops_from_ref): Don't use get_callee_fndecl.
827 Disable some code with a FIXME. Remove VALUE_HANDLE use.
828 (valueize_refs): Update opcode if it changes from ssa name to constant.
829 (vn_reference_lookup_1): Add new argument.
830 (vn_reference_lookup): Ditto.
831 (vn_reference_lookup_pieces): New function.
832 (vn_reference_insert): Add return type. Modify to deal with value ids.
833 (vn_reference_insert_pieces): New function.
834 (vn_nary_op_compute_hash): De-staticify.
835 (vn_nary_op_eq): Ditto.
836 (vn_nary_op_lookup_pieces): New function.
837 (vn_nary_op_lookup): Add new argument.
838 (vn_nary_op_insert_pieces): New function.
839 (vn_nary_op_insert): Add return type. Modify to deal with value ids.
840 (vn_phi_insert): Ditto.
841 (visit_unary_op): Update for callee changes.
842 (visit_binary_op): Ditto.
843 (visit_reference_op_load): Ditto.
844 (visit_reference_op_store): Ditto.
845 (init_scc_vn): Init next_value_id, constant_to_value_id and
847 (free_scc_vn): Free them.
848 (set_hashtable_value_ids): New function.
849 (run_scc_vn): Use it.
850 (get_max_value_id): New function.
851 (get_next_value_id): Ditto.
852 (expressions_equal_p): Moved from tree-vn.c
854 (sort_vuses_heap): Ditto.
855 * tree-ssa-sccvn.h: Structures moved from tree-ssa-sccvn.c (noted
857 * tree.c (iterative_hash_hashval_t): Made non-static
858 * tree.h (iterative_hash_hashval_t): Declare it.
860 2008-07-08 Martin Jambor <mjambor@suse.cz>
862 * ipa-cp.c (ipcp_init_cloned_node): Call ipa_check_create_node_params
863 instead of ipa_create_node_params.
864 (ipcp_driver): Allocate infos with ipa_check_create_node_params and
865 ipa_check_create_edge_args, free them with
866 free_all_ipa_structures_after_ipa_cp, call ipa_register_cgraph_hooks.
868 * ipa-prop.c: Include flags.h and tree-inline.h.
869 (ipa_node_params_vector): New variable.
870 (ipa_edge_args_vector): New variable.
871 (edge_removal_hook_holder): New variable.
872 (node_removal_hook_holder): New variable.
873 (edge_duplication_hook_holder): New variable.
874 (node_duplication_hook_holder): New variable.
875 (ipa_detect_param_modifications): Check for presence of modified flags.
876 (ipa_compute_jump_functions): Check for presence of jump functions.
877 (ipa_free_edge_args_substructures): New function.
878 (ipa_create_node_params): Removed.
879 (ipa_free_all_edge_args): Changed to deallocate the on-the-side vector.
880 (ipa_free_node_params_substructures): New function.
881 (ipa_free_all_node_params): Changed to deallocate the on-the-side
883 (ipa_edge_removal_hook): New function.
884 (ipa_node_removal_hook): New function.
885 (duplicate_array): New function.
886 (ipa_edge_duplication_hook): New function.
887 (ipa_node_duplication_hook): New function.
888 (ipa_register_cgraph_hooks): New function.
889 (ipa_unregister_cgraph_hooks): New function.
890 (free_all_ipa_structures_after_ipa_cp): New function.
892 * ipa-prop.h: Include vec.h.
893 (ipa_node_params_t): New typedef with vector types for it.
894 (ipa_edge_args_t): New typedef with vector types for it.
895 (IPA_NODE_REF): Changed to access an on-the-side vector.
896 (IPA_EDGE_REF): Changed to access an on-the-side vector.
897 (ipa_check_create_node_params): New function.
898 (ipa_check_create_edge_args): New function.
900 * Makefile.in (IPA_PROP_H): New variable for ipa-prop.h. Converted
903 2008-07-07 Tom Tromey <tromey@redhat.com>
905 * configure, config.in: Rebuilt.
906 * configure.ac: Don't check for scandir or alphasort.
908 2008-07-07 Joseph Myers <joseph@codesourcery.com>
910 * config/arm/arm.c (arm_init_neon_builtins): Register built-in
911 types immediately after creating them.
913 2008-07-07 Joseph Myers <joseph@codesourcery.com>
915 * config/arm/aout.h (DOLLARS_IN_IDENTIFIERS): Remove.
917 2008-07-07 Fernando Pereira <fernando@cs.ucla.edu>
919 * tree-ssa-structalias.c (compute_points_to_sets): Add call to
920 dump_constraint_graph.
921 (dump_constraint_edge): New function.
922 (dump_constraint_graph): New function.
923 (debug_constraint_graph): New function.
924 (dump_constraint): Removed useless comparison.
925 * tree-ssa-structalias.h (dump_constraint_edge): Declare.
926 (dump_constraint_graph): Declare.
927 (debug_constraint_graph): Declare.
928 * tree-dump.c (struct dump_option_value_info): Declare TDF_GRAPH.
930 2008-07-07 Kai Tietz <kai.tietz@onevision.com>
932 * config/i386/i386.c (is_va_list_char_pointer): New.
933 (ix86_va_start): Replace compare with ms_va_list_type_node
934 by is_va_list_char_pointer.
935 (ix86_gimplify_va_arg): Likewise.
937 2008-07-07 Martin Jambor <mjambor@suse.cz>
939 * cgraph.c (cgraph_edge_max_uid): New variable.
940 (struct cgraph_edge_hook_list): New type.
941 (struct cgraph_node_hook_list): New type.
942 (struct cgraph_2edge_hook_list): New type.
943 (struct cgraph_2node_hook_list): New type.
944 (first_cgraph_edge_removal_hook): New variable.
945 (first_cgraph_node_removal_hook): New variable.
946 (first_cgraph_edge_duplicated_hook): New variable.
947 (first_cgraph_node_duplicated_hook): New variable.
948 (cgraph_add_edge_removal_hook): New function.
949 (cgraph_remove_edge_removal_hook): New function.
950 (cgraph_call_edge_removal_hooks): New function.
951 (cgraph_add_node_removal_hook): New function.
952 (cgraph_remove_node_removal_hook): New function.
953 (cgraph_call_node_removal_hooks): New function.
954 (cgraph_add_edge_duplication_hook): New function.
955 (cgraph_remove_edge_duplication_hook): New function.
956 (cgraph_call_edge_duplication_hooks): New function.
957 (cgraph_add_node_duplication_hook): New function.
958 (cgraph_remove_node_duplication_hook): New function.
959 (cgraph_call_node_duplication_hooks): New function.
960 (cgraph_create_edge): Assign to edge uid.
961 (cgraph_remove_edge): Call edge removal hooks.
962 (cgraph_node_remove_callees): Call edge removal hooks.
963 (cgraph_node_remove_callers): Call edge removal hooks.
964 (cgraph_remove_node): Call node removal hooks.
965 (cgraph_clone_edge): Call edge duplication hooks.
966 (cgraph_clone_node): Call node duplication hooks.
968 * cgraph.h (cgraph_edge): New field uid.
969 (cgraph_edge_hook): New type.
970 (cgraph_node_hook): New type.
971 (cgraph_2edge_hook): New type.
972 (cgraph_2node_hook): New type.
974 2008-07-07 Andreas Tobler <a.tobler@schweiz.org>
976 * config.in: Regenerate.
978 2008-07-07 Vladimir Prus <vladimir@codesourcery.com>
980 * gcc.c (print_sysroot): New.
981 (option_map, display_help, process_command): Handle the
982 -print-sysroot option.
983 (main): Print the sysroot if requested.
984 * doc/invoke.texi (Debugging Options): Document -print-sysroot.
986 2008-07-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
989 * unwind-pe.h (size_of_encoded_value): add attribute unused.
991 2008-07-07 Daniel Jacobowitz <dan@codesourcery.com>
993 * function.c (assign_parm_remove_parallels): Check mode of entry_parm.
994 (assign_parm_setup_block_p): Also check mode of entry_parm.
996 2008-07-07 Richard Guenther <rguenther@suse.de>
998 * tree-ssa-structalias.h (set_used_smts): Remove.
999 * tree-ssa-structalias.c (used_smts): Likewise.
1000 (set_used_smts): Likewise.
1001 * tree-ssa-alias.c (compute_flow_sensitive_aliasing): Remove
1002 call to set_used_smts.
1004 2008-07-07 Richard Guenther <rguenther@suse.de>
1006 * tree-ssa-structalias.c (struct variable_info): Add is_full_var flag.
1007 (new_var_info): Set it to false.
1008 (solution_set_add): Correctly handle pointers outside a var and
1010 (type_safe): Treat variables with is_full_var properly.
1011 (do_sd_constraint): Likewise.
1012 (do_ds_constraint): Likewise.
1013 (process_constraint): Remove zeroing offset for !use_field_sensitive.
1014 (get_constraint_for_ptr_offset): New function.
1015 (get_constraint_for_component_ref): For addresses at least include
1016 the last field of the variable. Handle is_full_vars properly.
1017 (get_constraint_for_1): Factor common code, handle POINTER_PLUS_EXPR.
1018 (handle_ptr_arith): Remove.
1019 (find_func_aliases): Simplify assignment handling.
1020 (create_function_info_for): For parameter and result varinfos set
1022 (create_variable_info_for): Set is_full_var flag whenever we
1023 just created a single varinfo for a decl.
1024 (init_alias_vars): Initialize use_field_sensitive from
1025 max-fields-for-field-sensitive parameter.
1027 2008-07-07 Richard Guenther <rguenther@suse.de>
1029 PR tree-optimization/36713
1030 * tree-flow-inline.h (is_call_used): New function.
1031 * tree-nrv.c (dest_safe_for_nrv_p): Use it.
1032 * tree-tailcall.c (suitable_for_tail_opt_p): Likewise.
1033 * tree-outof-ssa.c (create_temp): Set call-used flag if required.
1035 2008-07-07 Maxim Kuvyrkov <maxim@codesourcery.com>
1037 * config/m68k/m68k.c (m68k_return_in_memory): Fix arguments types.
1039 2008-07-07 Mark Shinwell <shinwell@codesourcery.com>
1041 * config/m68k/lb1sf68.asm: Add PIC macros for Linux targets.
1043 2008-07-07 Maxim Kuvyrkov <maxim@codesourcery.com>
1044 Nathan Sidwell <nathan@codesourcery.com>
1046 * config.gcc (m68k-*-linux*): Add with_arch. Add sysroot-suffix.h
1047 to tm_file. Add m68k/t-floatlib, m68k/t-linux & m68k/t-mlibs to
1049 * config/m68k/t-linux: New.
1050 * doc/install.texi: Document m68k-*-linux is now multilibbed by
1053 2008-07-07 Nathan Sidwell <nathan@codesourcery.com>
1055 * config/m68k/t-cf (MULTILIB_EXTRA_OPTS): Add no-mac.
1056 * config/m68k/m68k-devices.def: Remove multilibs that only differ
1059 2008-07-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1061 * gcc.c (execute): Fix -Wc++-compat warning.
1063 2008-07-06 H.J. Lu <hongjiu.lu@intel.com>
1066 * config/ia64/ia64.c (ia64_split_tmode): Fix typo in TImode
1067 constant for little endian.
1069 2008-07-06 Richard Sandiford <rdsandiford@googlemail.com>
1071 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Check
1072 mips_base_mips16 instead of TARGET_MIPS16.
1073 (mips_base_mips16): Declare.
1074 * config/mips/mips.c (mips_base_mips16): Make global.
1075 (was_mips16_p): Remove GTY marker.
1076 (was_mips16_pch_p): New variable.
1077 (mips_set_mips16_mode): Check both was_mips16_p and was_mips16_pch_p.
1078 (mips_override_options): Force to non-MIPS16 mode initially.
1079 Do not complain about MIPS16 PIC incompatibilities here.
1080 Only allow -mgpopt if -mexplicit-relocs is in force for
1083 2008-07-06 Andreas Tobler <a.tobler@schweiz.org>
1085 * configure.ac: Check for caddr_t, define to char * if not defined.
1086 * configure: Regenerate.
1087 * ggc-common.c (mmap_gt_pch_get_address): Fix -Wc++-compat warnings.
1088 (mmap_gt_pch_use_address): Likewise.
1089 * config/host-solaris.c (sol_gt_pch_use_address): Likewise.
1091 2008-07-06 Richard Guenther <rguenther@suse.de>
1093 * tree-ssa-structalias.c (struct variable_info): Remove has_union.
1094 (new_var_info): Deal with it.
1095 (solution_set_add): Likewise.
1096 (bitpos_of_field): Make signed, fix.
1097 (struct fieldoff): Remove type and decl fields. Make size field
1098 unsigned HOST_WIDE_INT. Add has_unknown_size and may_have_pointers
1100 (fieldoff_compare): Deal with it.
1101 (push_fields_onto_fieldstack): Remove has_union argument, glob
1102 adjacent non-pointer fields together.
1103 (create_function_info_for): Do not set has_union.
1104 (create_variable_info_for): Simplify.
1106 2008-07-06 Kai Tietz <kai.tietz@onevision.com>
1108 * config.gcc (extra_headers): Add cross-stdarg.h for target
1109 x86_64-*-* and i?86-*-*.
1110 * config/i386/cross-stdarg.h: New.
1111 * builtins.c (std_fn_abi_va_list): New.
1112 (std_canonical_va_list_type): New.
1113 (stabilize_va_list): Replace va_list_type_node use by
1114 mtarget.canonical_va_list_type.
1115 (gimplify_va_arg_expr): Likewise.
1116 (expand_builtin_va_copy): Replace va_list_type_node use by
1117 mtarget.fn_abi_va_list.
1118 * tree-sra.c (is_va_list_type): New helper.
1119 (decl_can_be_decomposed_p): Replace
1120 va_list_type_node use by is_va_list_type.
1121 * tree-ssa-ccp.c (optimize_stdarg_builtin): Likewise.
1122 * tree-stdarg.c (execute_optimize_stdarg): Likewise.
1123 * c-common.c (c_common_nodes_and_builtins): Use TARGET_ENUM_VA_LIST.
1124 * config/i386/i386-protos.h (ix86_get_valist_type): New.
1125 (ix86_enum_va_list): New.
1126 * config/i386/i386.c (sysv_va_list_type_node): New.
1127 (ms_va_list_type_node): New.
1128 (ix86_function_type_abi): Remove sorry.
1129 (ix86_build_builtin_va_list_abi): New.
1130 (ix86_build_builtin_va_list): Call ix86_build_builtin_va_list_abi
1132 (ix86_va_start): Replace va_list_type_node by sysv_va_list_type_node.
1133 (ix86_init_builtins_va_builtins_abi): New.
1134 (ix86_init_builtins): Use ix86_init_builtins_va_builtins_abi
1136 (ix86_handle_abi_attribute): New.
1137 (attribute_spec): Add sysv_abi and ms_abi.
1138 (ix86_fn_abi_va_list): New.
1139 (ix86_canonical_va_list_type): New.
1140 (ix86_enum_va_list): New.
1141 (TARGET_FN_ABI_VA_LIST): New.
1142 (TARGET_CANONICAL_VA_LIST_TYPE): New.
1143 * config/i386/i386.h (TARGET_ENUM_VA_LIST): New.
1144 * doc/tm.texi (TARGET_FN_ABI_VA_LIST): New.
1145 (TARGET_CANONICAL_VA_LIST_TYPE): New.
1146 (TARGET_ENUM_VA_LIST): New.
1147 * expr.h (std_fn_abi_va_list): New.
1148 (std_canonical_va_list_type): New.
1149 * target-def.h (TARGET_FN_ABI_VA_LIST): New.
1150 (TARGET_CANONICAL_VA_LIST_TYPE): New.
1151 (TARGET_INITIALIZER): Add TARGET_FN_ABI_VA_LIST and
1152 TARGET_CANONICAL_VA_LIST_TYPE.
1153 * target.h (struct gcc_target): Add fn_abi_va_list hook
1154 and canonical_va_list_type hook.
1156 2008-07-05 Andrew Pinski <andrew_pinski@playstation.sony.com>
1158 * fold-const.c (fold_convert_const): Treat OFFSET_TYPE the same as
1159 integral and pointer types.
1161 2008-07-04 Roger Sayle <roger@eyesopen.com>
1163 * config/rs6000/host-darwin.c (darwin_rs6000_extra_signals): Cast
1164 the "void*" result of xmalloc to "char*" to fix bootstrap breakage.
1166 2008-07-04 Kaz Kojima <kkojima@gcc.gnu.org>
1169 * config/sh/sh.h (OVERRIDE_OPTIONS): Disable -fschedule-insns for PIC.
1171 2008-07-04 Jakub Jelinek <jakub@redhat.com>
1173 * tree-switch-conversion.c (build_one_array, gen_def_assigns): Use
1174 build_gimple_modify_stmt.
1175 (build_arrays, gen_inbound_check): Likewise. Force RHS to be
1176 gimple operand. Use fold_build* instead of build*.
1178 2008-07-04 Richard Guenther <rguenther@suse.de>
1180 * tree-ssa-structalias.c (lookup_vi_for_tree): Declare.
1181 (do_sd_constraint): Handle a dereference of ESCAPED and CALLUSED
1182 properly to compute the reachability set if we do field-sensitive PTA.
1183 * invoke.texi (max-fields-for-field-sensitive): Document default.
1184 * opts.c (decode_options): Set max-fields-for-field-sensitive to
1185 100 for optimize >= 2.
1187 2008-07-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1189 * ggc-zone.c (lookup_page_table_if_allocated,
1190 set_page_table_entry, zone_find_object_size, alloc_small_page,
1191 alloc_large_page, ggc_free, gt_ggc_m_S, ggc_marked_p, init_ggc,
1192 new_ggc_zone, init_ggc_pch, ggc_pch_this_base, ggc_pch_read): Fix
1193 -Wc++-compat and/or -Wcast-qual warnings.
1195 2008-07-04 Alan Modra <amodra@bigpond.net.au>
1198 * config/rs6000/rs6000.md (call, call_value): Don't arrange for
1199 pic_offset_table_rtx to be marked as used here.
1200 (call_nonlocal_sysv, call_value_nonlocal_sysv): Add split for
1201 TARGET_SECURE_PLT to "use" pic_offset_table_rtx.
1202 (call_nonlocal_sysv_secure, call_value_nonlocal_sysv_secure): New insn.
1203 (sibcall_nonlocal_sysv, sibcall_value_nonlocal_sysv): Assert
1206 2008-07-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1208 * alloc-pool.c (hash_descriptor, eq_descriptor,
1209 alloc_pool_descriptor): Fix -Wc++-compat warnings.
1210 * bitmap.c (hash_descriptor, eq_descriptor, bitmap_descriptor):
1212 * ggc-common.c (hash_descriptor, eq_descriptor, hash_ptr, eq_ptr,
1213 loc_descriptor, ggc_prune_ptr, ggc_free_overhead,
1214 final_cmp_statistic, cmp_statistic, dump_ggc_loc_statistics): Likewise.
1215 * varray.c (hash_descriptor, eq_descriptor, varray_descriptor):
1218 2008-07-03 Eric Botcazou <ebotcazou@adacore.com>
1220 * tree-flow.h (loop_only_exit_p): Declare.
1221 * tree-ssa-loop-niter.c (loop_only_exit_p): Make public.
1222 * tree-ssa-loop-ivopts.c (may_eliminate_iv): Reinstate direct check on
1223 the number of iterations if it is constant. Otherwise, if this is the
1224 only possible exit of the loop, use the conservative estimate on the
1225 number of iterations of the entire loop if available.
1227 2008-07-03 Richard Sandiford <rdsandiford@googlemail.com>
1229 * Makefile.in (libgcc.mvars): Add LIBGCC_SYNC and LIBGCC_SYNC_CFLAGS.
1230 * libgcc-std.ver (GCC_4.4.0): New version, inherited from GCC_4.3.0.
1231 Add synchronization functions.
1232 * config/sync.c: New file.
1233 * config/mips/t-libgcc-mips16 (LIBGCC_SYNC): Define.
1234 (LIBGCC_SYNC_CFLAGS): Likewise.
1236 2008-07-03 Uros Bizjak <ubizjak@gmail.com>
1239 * config/i386/i386.md (mode): Add TF to "mode" attribute.
1240 (*pushtf_sse): New insn pattern.
1241 (pushtf splitters): New splitters.
1243 2008-07-03 Michael Meissner <gnu@the-meissners.org>
1246 * predict.c (build_predict_expr): Use void_type_node for the tree
1247 type, instead of NULL_TREE.
1249 2008-07-03 H.J. Lu <hongjiu.lu@intel.com>
1251 * config/i386/i386.c (contains_aligned_value_p): Return true
1253 (ix86_data_alignment): Align TCmode to 128bits.
1254 (ix86_local_alignment): Likewise.
1256 2008-07-03 Andrew Haley <aph@redhat.com>
1259 * vec.h (VEC_TA): New.
1260 (DEF_VEC_I, DEF_VEC_P, DEF_VEC_ALLOC_I, DEF_VEC_ALLOC_P,
1261 DEF_VEC_O, DEF_VEC_ALLOC_O: Use VEC_TA.
1262 * c-common.c (C_COMMON_FIXED_TYPES_SAT): New macro.
1263 (C_COMMON_FIXED_MODE_TYPES_SAT): New macro.
1264 (C_COMMON_FIXED_TYPES): Remove first arg.
1265 (C_COMMON_FIXED_MODE_TYPES): Likewise.
1266 * tree.c (MAKE_FIXED_TYPE_NODE): Break into two macros,
1267 MAKE_FIXED_TYPE_NODE and MAKE_FIXED_TYPE_NODE_WIDTH in order
1268 not to use empty macro arguments.
1270 2008-07-02 Joseph Myers <joseph@codesourcery.com>
1272 * config/alpha/vms_tramp.asm, config/arm/crti.asm,
1273 config/arm/crtn.asm, config/bfin/crti.s, config/bfin/crtlibid.s,
1274 config/bfin/crtn.s, config/fr30/crti.asm, config/fr30/crtn.asm,
1275 config/frv/lib1funcs.asm, config/i386/sol2-c1.asm,
1276 config/i386/sol2-ci.asm, config/i386/sol2-cn.asm,
1277 config/i386/sol2-gc1.asm, config/ia64/crti.asm,
1278 config/ia64/crtn.asm, config/m68hc11/larith.asm,
1279 config/m68hc11/m68hc11-crt0.S, config/m68k/crti.s,
1280 config/m68k/crtn.s, config/mcore/crti.asm, config/mcore/crtn.asm,
1281 config/rs6000/crtresfpr.asm, config/rs6000/crtresgpr.asm,
1282 config/rs6000/crtresxfpr.asm, config/rs6000/crtresxgpr.asm,
1283 config/rs6000/crtsavfpr.asm, config/rs6000/crtsavgpr.asm,
1284 config/rs6000/crtsavres.asm, config/rs6000/e500crtres32gpr.asm,
1285 config/rs6000/e500crtres64gpr.asm,
1286 config/rs6000/e500crtres64gprctr.asm,
1287 config/rs6000/e500crtrest32gpr.asm,
1288 config/rs6000/e500crtrest64gpr.asm,
1289 config/rs6000/e500crtresx32gpr.asm,
1290 config/rs6000/e500crtresx64gpr.asm,
1291 config/rs6000/e500crtsav32gpr.asm,
1292 config/rs6000/e500crtsav64gpr.asm,
1293 config/rs6000/e500crtsav64gprctr.asm,
1294 config/rs6000/e500crtsavg32gpr.asm,
1295 config/rs6000/e500crtsavg64gpr.asm,
1296 config/rs6000/e500crtsavg64gprctr.asm, config/rs6000/eabi-ci.asm,
1297 config/rs6000/eabi-cn.asm, config/rs6000/eabi.asm,
1298 config/rs6000/sol-ci.asm, config/rs6000/sol-cn.asm,
1299 config/rs6000/tramp.asm, config/sparc/sol2-ci.asm,
1300 config/sparc/sol2-cn.asm: Remove .file directives.
1302 2008-07-02 Richard Sandiford <rdsandiford@googlemail.com>
1304 * resource.c (mark_referenced_resources): Look inside
1305 UNSPEC_VOLATILEs and ASM_INPUTs.
1307 2008-07-02 Ian Lance Taylor <iant@google.com>
1309 * rtlanal.c (add_reg_note): New function.
1310 * rtl.h (add_reg_note): Declare.
1311 * auto-inc-dec.c (attempt_change): Use add_reg_note.
1312 * bb-reorder.c (add_reg_crossing_jump_notes): Likewise.
1313 * builtins.c (expand_builtin_longjmp): Likewise.
1314 (expand_builtin_nonlocal_goto): Likewise.
1315 * calls.c (emit_call_1, expand_call): Likewise.
1316 * cfgexpand.c (add_reg_br_prob_note): Likewise.
1317 * cfglayout.c (fixup_reorder_chain): Likewise.
1318 * cfgrtl.c (force_nonfallthru_and_redirect): Likewise.
1319 (commit_one_edge_insertion): Likewise.
1320 * combine.c (move_deaths, distribute_notes): Likewise.
1321 * df-problems.c (df_set_note): Likewise.
1322 * emit-rtl.c (link_cc0_insns, try_split): Likewise.
1323 (set_unique_reg_note): Likewise.
1324 (emit_copy_of_insn_after): Likewise.
1325 * expr.c (expand_expr_real): Likewise.
1326 * gcse.c (add_label_notes): Likewise.
1327 * haifa-sched.c (create_check_block_twin): Likewise.
1328 * jump.c (mark_jump_label_1): Likewise.
1329 * loop-doloop.c (add_test, doloop_modify): Likewise.
1330 * loop-unswitch.c (compare_and_jump_seq): Likewise.
1331 * lower-subreg.c (move_eh_region_note): Likewise.
1332 * optabs.c (emit_libcall_block): Likewise.
1333 * predict.c (predict_insn): Likewise.
1334 (combine_predictions_for_insn): Likewise.
1335 * recog.c (peephole2_optimize): Likewise.
1336 * regmove.c (try_auto_increment): Likewise.
1337 * reg-stack.c (emit_pop_insn, move_for_stack_reg): Likewise.
1338 * reload.c (find_reloads): Likewise.
1339 * reload1.c (fixup_eh_region_note): Likewise.
1340 (reload_as_needed, add_auto_inc_notes, copy_eh_notes): Likewise.
1341 * reorg.c (delete_prior_computation): Likewise.
1342 (delete_computation, dbr_schedule): Likewise.
1343 * config/pa/pa.c (legitimize_pic_address): Likewise.
1344 * config/sh/sh.c (sh_reorg): Likewise.
1346 2008-07-02 H.J. Lu <hongjiu.lu@intel.com>
1349 * config/libgcc-glibc.ver: Add %exclude.
1350 * config/m32r/libgcc-glibc.ver: Likwise.
1351 * config/s390/libgcc-glibc.ver: Likwise.
1352 * config/sh/libgcc-glibc.ver: Likwise.
1353 * config/sparc/libgcc-sparc-glibc.ver: Likwise.
1355 * config/i386/libgcc-glibc.ver: New.
1357 * config/i386/libgcc-x86_64-glibc.ver: Removed.
1359 2008-07-02 H.J. Lu <hongjiu.lu@intel.com>
1361 * config.gcc: Remove i386/t-fprules-softfp64 soft-fp/t-softfp
1362 from tmake_file from i[34567]86-*-darwin*, x86_64-*-darwin*,
1363 i[34567]86-*-linux*, x86_64-*-linux*. Add
1364 i386/t-fprules-softfp and soft-fp/t-softfp to tmake_file for
1365 i[34567]86-*-darwin*, x86_64-*-darwin*, i[34567]86-*-linux*,
1366 x86_64-*-linux*. Add i386/t-linux to tmake_file for
1367 i[34567]86-*-linux*, x86_64-*-linux*.
1369 * libgcc-std.ver: Add empty GCC_4.4.0.
1371 * mkmap-symver.awk: Support multiple versions per symbol.
1373 * config/i386/i386.c (ix86_init_builtins): Always define
1374 __builtin_fabsq and __builtin_copysignq with fallbacks.
1375 (ix86_expand_builtin): Emit normal call for __builtin_fabsq
1376 and __builtin_copysignq if SSE2 isn't available.
1378 * config/i386/linux.h (LIBGCC2_HAS_TF_MODE): Defined.
1379 (LIBGCC2_TF_CEXT): Likwise.
1382 * config/i386/linux64.h (LIBGCC2_HAS_TF_MODE): Defined as 1.
1384 * config/i386/sfp-machine.h: Moved to libgcc.
1386 * config/i386/sfp-machine.h: New.
1387 * config/i386/t-linux: Likwise.
1389 * config/i386/t-darwin: Remove softfp_wrap_start and
1391 * config/i386/t-darwin64: Likewise.
1393 * config/i386/t-fprules-softfp64: Renamed to ...
1394 * config/i386/t-fprules-softfp: This.
1396 * config/i386/t-linux64: Remove SHLIB_MAPFILES, softfp_wrap_start
1397 and softfp_wrap_end.
1399 2008-07-02 Jason Merrill <jason@redhat.com>
1401 * tree.c (ctor_to_list): Use FOR_EACH_CONSTRUCTOR_ELT.
1403 * tree.c (ctor_to_list): New fn.
1404 * tree.h: Declare it.
1405 (CONSTRUCTOR_ELT): New macro.
1406 (CONSTRUCTOR_NELTS): New macro.
1408 2008-07-02 Richard Guenther <rguenther@suse.de>
1410 * tree-ssa-structalias.c (struct variable_info): Reorder
1411 to fill padding on 64bit hosts. Make collapsed_to an int.
1412 (get_varinfo_fc): Deal with that.
1413 (new_var_info): Likewise.
1414 (collapse_rest_of_var): Likewise.
1416 2008-07-02 Joshua Sumali <jsumali@redhat.com>
1418 * doc/install.texi (--enable-java-home): Document.
1419 (--enable-aot-compile-rpm): Likewise.
1420 (--with-arch-directory): Likewise.
1421 (--with-os-directory): Likewise.
1422 (--with-origin-name): Likewise.
1423 (--with-arch-suffix): Likewise.
1424 (--with-jvm-root-dir): Likewise.
1425 (--with-jvm-jar-dir): Likewise.
1426 (--with-python-dir): Likewise.
1428 2008-07-02 Richard Guenther <rguenther@suse.de>
1430 * tree-ssa-forwprop.c (can_propagate_from): Exclude loads
1431 from decls explicitly. Merge operand checking from tuples.
1433 2008-07-02 Martin Jambor <mjambor@suse.cz>
1435 * tree-switch-conversion.c: Included timevar.h which I forgot before.
1437 2008-07-02 Martin Jambor <mjambor@suse.cz>
1439 * tree-switch-conversion.c: Included timevar.h
1440 (pass_convert_switch): Added a timevar id (TV_TREE_SWITCH_CONVERSION).
1442 * timevar.def: Added TV_TREE_SWITCH_CONVERSION.
1444 2008-07-02 Martin Jambor <mjambor@suse.cz>
1446 * tree-switch-conversion.c: Corrected various comments and
1448 (build_constructors): Fixed minor formatting mistakes.
1450 * invoke.texi (Optimize Options): Corrected the
1451 switch-conversion-max-branch-ratio parameter.
1453 2008-07-02 Mark Shinwell <shinwell@codesourcery.com>
1455 * final.c (asm_insn_count): Return zero for an empty asm body.
1457 2008-07-02 Richard Guenther <rguenther@suse.de>
1459 * bitmap.h (bitmap_set_bit): Return bool.
1460 (bitmap_clear_bit): Likewise.
1461 * bitmap.c (bitmap_set_bit): Return if the bit changed. Only
1462 write to the bitmap if it would.
1463 (bitmap_clear_bit): Likewise.
1464 * tree-ssa-structalias.c (add_implicit_graph_edge): Use
1465 bitmap_set_bit return value.
1466 (add_pred_graph_edge): Likewise.
1467 (add_graph_edge): Likewise.
1468 (do_sd_constraint): Likewise.
1469 (do_ds_constraint): Likewise.
1471 2008-07-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1473 * config/alpha/alpha.c (alpha_need_linkage, alpha_use_linkage):
1474 Fix -Wc++-compat and/or -Wcast-qual warnings.
1475 * config/i386/netware.c (gen_stdcall_or_fastcall_decoration,
1476 gen_regparm_prefix): Likewise.
1477 * vmsdbgout.c (write_modbeg, lookup_filename,
1478 vmsdbgout_source_line, vmsdbgout_init): Likewise.
1480 2008-07-02 Danny Smith <dannysmith@users.sourceforge.net>
1482 * config/i386/mingw32.h (TARGET_USE_JCR_SECTION): Undef to let
1483 defaults.h definition apply.
1485 2008-07-01 Daniel Jacobowitz <dan@codesourcery.com>
1487 * function.c (assign_parm_remove_parallels): New.
1488 (assign_parm_setup_block_p): Do not return true for non-BLKmode
1490 (assign_parm_setup_block): Do not handle them.
1491 (assign_parm_setup_reg, assign_parm_setup_stack): Call
1492 assign_parm_remove_parallels.
1494 2008-07-01 Daniel Jacobowitz <dan@codesourcery.com>
1496 * c-typeck.c (convert_for_assignment): Use
1497 vector_targets_convertible_p.
1498 * c-common.c (vector_targets_convertible_p): New.
1499 * c-common.h (vector_targets_convertible_p): New prototype.
1500 * config/rs6000/rs6000.c (rs6000_is_opaque_type): Do not check
1501 opaque_p_V2SI_type_node.
1503 2008-07-01 Steve Ellcey <sje@cup.hp.com>
1505 * config/ia64/ia64.c (ia64_cannot_force_const_mem): Do not allow
1508 2008-07-01 Uros Bizjak <ubizjak@gmail.com>
1510 * config/i386/i386.c (ix86_build_signbit_mask): Generate TImode and
1511 TFmode constants via two element DImode vector for hosts with
1512 HOST_BITS_PER_WIDE_INT < 64.
1513 (ix86_init_builtins): Define __builtin_fabsq and __builtin_copysignq
1514 also for HOST_BITS_PER_WIDE_INT < 64.
1516 2008-07-01 Richard Guenther <rguenther@suse.de>
1518 PR tree-optimization/36666
1519 * tree-ssa-structalias.c (get_constraint_for_1): Declare.
1520 (get_constraint_exp_from_ssa_var): Split into ...
1521 (get_constraint_exp_for_temp): ... this ...
1522 (get_constraint_for_ssa_var): ... and that.
1523 Return constraint expressions for all touched sub-fields
1524 if the results address is not taken.
1525 (process_constraint): Remove assertion that aggregate
1526 assignments do not happen at this place.
1527 (get_constraint_for_component_ref): Add address_p argument.
1528 Return constraint expressions for all touched sub-fields
1529 if the results address is not taken.
1530 (do_deref): Use get_constraint_exp_for_temp.
1531 (get_constraint_for_1): Rename from ...
1532 (get_constraint_for): ... this. Add the old function as wrapper.
1533 (do_structure_copy): Use get_constraint_for_1.
1535 2008-07-01 Martin Jambor <mjambor@suse.cz>
1537 * Makefile.in (tree-switch-conversion.o): Add.
1538 (OBJS-common): Add tree-swtch-conversion.o.
1539 * passes.c (init_optimization_passes): Add pass_convert_switch.
1540 * tree-pass.h: (pass_convert_switch): Add.
1541 * tree-switch-conversion.c: New file.
1542 * gcc.dg/tree-ssa/cswtch.c: New testcase.
1543 * common.opt (ftree-cswtch): New option.
1544 * params.h (PARAM_SWITCH_CONVERSION_BRANCH_RATIO): New parameter.
1545 * params.def (PARAM_SWITCH_CONVERSION_BRANCH_RATIO): New parameter.
1546 * opts.c (decode_options): Set flag_tree_switch_conversion when
1547 optimization level is >= 2.
1548 * doc/invoke.texi (Optimize Options): Added description of
1549 -ftree-swtch-conversion and switch-conversion-max-branch-ratio.
1551 2008-06-30 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1553 * config/darwin-driver.c (darwin_default_min_version): Fix
1554 -Wc++-compat warnings.
1556 2008-06-30 Uros Bizjak <ubizjak@gmail.com>
1558 * config/i386/i386.md (*movti_rex64): Add "!" to "r" constraint
1561 2008-06-30 Kenneth Zadeck <zadeck@naturalbridge.com>
1563 * ifcvt.c (cond_move_process_if_block): Free vectors on false return.
1565 2008-06-30 Kenneth Zadeck <zadeck@naturalbridge.com>
1567 PR rtl-optimization/34744
1568 * df-scan.c (df_scan_free_ref_vec, df_scan_free_mws_vec): New macros.
1569 (df_scan_free_internal): Free data structures not
1570 allocated in storage pools.
1571 (df_mw_hardreg_chain_delete_eq_uses): Use df_scan_free_mws_vec.
1572 (df_refs_add_to_chains): Use df_scan_free_ref_vec and
1573 df_scan_free_mws_vec.
1574 * dse.c (dse_step6): Free offset_map_p and offset_map_n
1577 2008-06-30 H.J. Lu <hongjiu.lu@intel.com>
1579 * config/i386/i386.c (contains_aligned_value_p): Return true
1581 (ix86_function_arg_boundary): Return its natural boundary
1583 (return_in_memory_32): Don't check TDmode.
1584 (ix86_split_to_parts): Support splitting into 4 parts and
1585 support TFmode for 32bit target.
1586 (ix86_split_long_move): Support splitting into 4 parts.
1587 (bdesc_args): Enable IX86_BUILTIN_FABSQ and IX86_BUILTIN_COPYSIGNQ
1589 (ix86_init_mmx_sse_builtins): Move __float80 and __float128 to ...
1590 (ix86_init_builtins): Here.
1591 (ix86_scalar_mode_supported_p): Always return true for TFmode.
1592 (ix86_c_mode_for_suffix): Always return TFmode and XFmode for
1593 'q' and 'w', respectively.
1595 * config/i386/i386.md (movtf): Check TARGET_SSE2 instead of
1597 (movtf_internal): Likewise.
1598 (<code>tf2): Likewise.
1599 (*absnegtf2_sse): Likewise.
1600 (copysign<mode>3): Likewise.
1601 (copysign<mode>3_const): Likewise.
1602 (copysign<mode>3_var): Likewise.
1603 (define_split UNSPEC_COPYSIGN): Likewise.
1604 * config/i386/sse.md (*nandtf3): Likewise.
1605 (<code>tf3): Likewise.
1606 (*<code>tf3): Likewise.
1608 2008-06-30 Joey Ye <joey.ye@intel.com>
1609 H.J. Lu <hongjiu.lu@intel.com>
1611 * global.c (compute_regsets): Set frame_pointer_needed here.
1612 * reload1.c (init_elim_table): Don't set frame_pointer_needed here.
1614 2008-06-30 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
1616 * doc/install.texi (specific): Expand Windows build notes.
1618 2008-06-30 Ira Rosen <irar@il.ibm.com>
1620 PR tree-optimization/36648
1621 * tree-vect-transform.c (vect_do_peeling_for_loop_bound): Divide
1622 number of prolog iterations by step. Fix the comment.
1624 2008-06-30 Richard Guenther <rguenther@suse.de>
1627 * tree-ssa-structalias.c (handle_lhs_call): Add flags argument,
1628 handle calls from ECF_MALLOC functions.
1629 (handle_pure_call): ECF_MALLOC functions do not return
1631 (find_func_aliases): Handle all calls, adjust calls to handle_lhs_call.
1633 2008-06-29 Andreas Schwab <schwab@suse.de>
1635 * config/m68k/m68k.c (print_operand): Always print a float
1637 * config/m68k/m68k.h (ASM_OUTPUT_FLOAT_OPERAND)
1638 (ASM_OUTPUT_DOUBLE_OPERAND, ASM_OUTPUT_LONG_DOUBLE_OPERAND):
1641 * config/rs6000/x-linux64: Remove never used file.
1643 2008-06-29 Richard Guenther <rguenther@suse.de>
1645 * tree-ssa-structalias.h (compute_points_to_sets): Adjust
1647 (struct alias_info): Move ...
1648 * tree-ssa-alias.c: ... here.
1649 (update_alias_info): Declare.
1650 (compute_may_aliases): Call it.
1651 (update_alias_info): New function.
1652 * tree-ssa-structalias.c (update_alias_info): Move ...
1653 * tree-ssa-alias.c (update_alias_info_1): ... here.
1654 * tree-ssa-structalias.c (process_constraint_1): Remove
1655 unused from_call argument. Rename to ...
1656 (process_constraint): ... this. Delete old wrapper.
1657 (make_constraint_to): Adjust callers.
1658 (handle_const_call): Likewise.
1659 (handle_pure_call): Likewise.
1660 (init_base_vars): Likewise.
1661 (handle_lhs_call): Likewise. Remove unnecessary constraint.
1662 (find_func_aliases): We don't need structure copies for
1664 (make_constraint_from_anything): Remove.
1665 (create_variable_info_for): For globals make constraints
1666 from escaped, not from anything.
1667 (compute_points_to_sets): Do not call update_alias_info.
1668 (ipa_pta_execute): Use make_constraint_from.
1670 2008-06-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1672 * Makefile.in (CXX_COMPAT_WARN, cxx_compat_warn): Delete.
1673 (bitmap.o-warn, dominance.o-warn): New.
1674 * configure.ac (cxx_compat_warn): Delete.
1675 (loose_warn): Add -Wcast-qual and -Wc++-compat.
1676 * system.h: Remove #pragma diagnostic for -Wcast-qual and
1678 * configure: Regenerate.
1680 * optabs.c (libfunc_decl_hash, libfunc_decl_eq): Fix -Wcast-qual
1683 2008-06-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1685 * alloc-pool.c (create_alloc_pool): Fix -Wc++-compat warnings.
1686 * df-scan.c (df_notes_rescan): Likewise.
1687 * ggc-page.c (set_page_table_entry): Likewise.
1688 * intl.c (gcc_gettext_width): Likewise.
1689 * varasm.c (get_unnamed_section, get_noswitch_section,
1690 get_section): Likewise.
1692 2008-06-28 Andrew Jenner <andrew@codesourcery.com>
1694 * regrename.c (build_def_use): Don't copy RTX.
1696 2008-06-28 Sandra Loosemore <sandra@codesourcery.com>
1698 * doc/extend.texi (Variable Attributes): Use @ref instead of @xref.
1699 (Type Attributes): Fix nesting of @table and @subsection. Adjust
1700 punctuation. Use @ref instead of @xref.
1701 (Function Names): Remove stray @display/@end display.
1702 (C++ Attributes): Use @ref instead of @xref.
1703 (Deprecated Features): Fix punctuation around @xref.
1704 (Backwards Compatibility): Likewise.
1705 * doc/rtl.texi (Incdec): Remove stray @table/@end table.
1707 2008-06-28 Joseph Myers <joseph@codesourcery.com>
1709 * config/rs6000/predicates.md (easy_fp_constant): Reject TFmode
1710 constants for E500 double.
1712 2008-06-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1714 * doc/rtl.texi (const_vector): Document const_fixed as legitimate
1715 element type of const_vector.
1717 2008-06-28 Uros Bizjak <ubizjak@gmail.com>
1719 * config/i386/i386.md (addti3, adddi3, addsi3, addhi3, addqi3):
1720 Remove FLAGS_REG clobber from expander pattern.
1721 (subti3, subdi3, subsi3, subhi3, subqi3): Ditto.
1722 (anddi3, andsi3, andhi3, andqi3): Ditto.
1723 (iordi3, iorsi3, iorhi3, iorqi3): Ditto.
1724 (xordi3, xorsi3, xorhi3, xorqi3): Ditto.
1725 (negti2, negdi2, negsi2, neghi2, negqi2): Ditto.
1726 (ashlsi3, ashlhi3, ashlqi3): Ditto.
1727 (ashrsi3, ashrhi3, ashrqi3): Ditto.
1728 (lshrsi3, lshrhi3, lshrqi3): Ditto.
1729 (rotldi3, rotlsi3, rotlhi3, rotlqi3): Ditto.
1730 (rotrdi3, rotrsi3, rotrhi3, rotrqi3): Ditto.
1732 2008-06-28 Richard Guenther <rguenther@suse.de>
1734 * tree-ssa-structalias.c (callused_id, var_callused,
1735 callused_tree): Add.
1736 (handle_pure_call): New function.
1737 (find_func_aliases): Call it.
1738 (find_what_p_points_to): Handle the call-used set.
1739 (clobber_what_escaped): Likewise.
1740 (compute_call_used_vars): New function.
1741 (init_base_vars): Init the call-used variable.
1742 (do_sd_constraint): Do not propagate the solution from CALLUSED
1743 but use CALLUSED as a placeholder.
1744 (solve_graph): Likewise.
1745 * tree-flow-inline.h (gimple_call_used_vars): New function.
1746 * tree-flow.h (struct gimple_df): Add call_used_vars bitmap.
1747 (compute_call_used_vars): Declare.
1748 * tree-ssa-alias.c (set_initial_properties): Call
1749 compute_call_used_vars.
1750 (reset_alias_info): Clear call-used variables.
1751 (add_call_clobber_ops): Assert we are not called for const/pure
1752 functions. Remove handling of them.
1753 (add_call_read_ops): Handle pure functions by adding the
1754 call-used set of variables as VUSEs.
1755 * tree-ssa.c (init_tree_ssa): Allocate call-used bitmap.
1756 (delete_tree_ssa): Free it.
1757 * tree-dfa.c (remove_referenced_var): Clear the var from the
1760 2008-06-28 Kai Tietz <kai.tietz@onevision.com>
1762 * tree.c (build_varargs_function_type_list): New.
1763 (build_function_type_list_1): New.
1764 (build_function_type_list): Use build_function_type_list_1.
1765 * tree.h (build_varargs_function_type_list): New.
1767 2008-06-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1770 * config/spu/spu.c (spu_builtin_splats): Do not generate
1771 invalid CONST_VECTOR expressions.
1772 (spu_expand_vector_init): Likewise.
1774 2008-06-28 Richard Sandiford <rdsandiford@googlemail.com>
1776 * optabs.c (libfunc_decls): New variable.
1777 (libfunc_decl_hash, libfunc_decl_eq): New functions.
1778 (init_one_libfunc): Reuse decls and SYMBOL_REFs when asked
1779 for the same function twice.
1781 2008-06-27 Uros Bizjak <ubizjak@gmail.com>
1783 * config/i386/i386.md (ashlti3, ashrti3, lshrti3): Expand using
1784 ix86_expand_binary_operator directly.
1785 (*ashlti3_1): Rename from ashlti3_1. Use nonmemory_operand predicate
1787 (*ashrti3_1): Ditto.
1788 (*lshrti3_1): Ditto.
1789 (*ashlti3_2, *ashrti3_2, *lshrti3_2): Remove insn patterns.
1790 (ashlti, ashrti and lshrti splitters): Handle nonmemory operand 2
1791 using only one splitter. Conditionaly execute splitter before or
1792 after peephole2 pass.
1793 (ashlti, ashrti and lshrti peephole2): Define peephole2 patterns.
1794 (x86_shld): Rename from x86_shld_1. Compress operand 2 constraints.
1795 Use only one alternative in asm template.
1796 (x86_64_shld): Compress operand 2 constraints. Use only one alternative
1798 (*ashldi3_cmp_rex64): Use const_1_to_63_operand operand predicate and
1799 "J" operand constraint for operand 2.
1800 (*ashldi3_cconly_rex64): Ditto.
1801 (*ashrdi3_cmp_rex64): Ditto.
1802 (*ashrdi3_cconly_rex64): Ditto.
1803 (*lshrdi3_cmp_rex64): Ditto.
1804 (*lshrdi3_cconly_rex64): Ditto.
1805 * config/i386/predicates.md (const_1_to_63_operand): New predicate.
1806 * config/i386/i386.md (print_operand) ['s']: Print ", " using fputs.
1807 (split_ashr, split_ashl, split_lshr): Use gen_x86_shrd instead of
1810 2008-06-27 Jakub Jelinek <jakub@redhat.com>
1812 * gimplify.c (omp_is_private): Don't return true if decl is not
1813 already private on #pragma omp for or #pragma omp parallel for.
1816 * tree-cfg.c (struct move_stmt_d): Replace block field with
1817 orig_block and new_block fields.
1818 (move_stmt_r): Only set TREE_BLOCK to p->new_block if
1819 if it used to be NULL, p->orig_block or if p->orig_block is NULL.
1820 (move_block_to_fn): Replace vars_map and new_label_map arguments
1821 with struct move_stmt_d pointer.
1822 (replace_block_vars_by_duplicates): New function.
1823 (move_sese_region_to_fn): Add ORIG_BLOCK argument. Adjust
1824 move_block_to_fn caller. If ORIG_BLOCK is non-NULL, move over
1825 all subblocks of ORIG_BLOCK to the new function. Call
1826 replace_block_vars_by_duplicates.
1827 * tree-flow.h (move_sese_region_to_fn): Adjust prototype.
1828 * omp-low.c (expand_omp_taskreg): Set TREE_USED on DECL_INITIAL
1829 BLOCK of the new function. Adjust move_sese_region_to_fn caller.
1830 Prune vars with original DECL_CONTEXT from child_cfun->local_decls.
1831 (expand_omp): Temporarily set input_location to the location of
1832 region's controlling stmt.
1833 (lower_omp_sections, lower_omp_for): Add a BLOCK into outermost
1834 BIND_EXPR, push ctx->block_vars and gimplification vars into
1835 the BIND_EXPR and its block's BLOCK_VARS instead of directly
1837 (lower_omp_single): Set TREE_USED on the BIND_EXPR's BLOCK if
1838 there are any BLOCK_VARS.
1839 (lower_omp_taskreg): Set BLOCK on a BIND_EXPR containing the
1840 OMP_PARALLEL or OMP_TASK stmt.
1841 (lower_omp): Save and restore input_location around the lower_omp_1
1844 2008-06-27 Richard Guenther <rguenther@suse.de>
1846 PR tree-optimization/36400
1847 PR tree-optimization/36373
1848 PR tree-optimization/36344
1849 * tree-ssa-structalias.c (var_escaped, escaped_tree, escaped_id,
1850 var_nonlocal, nonlocal_tree, nonlocal_id): New globals
1851 (update_alias_info): Remove call clobbering code.
1852 (make_constraint_to): New helper function.
1853 (make_escape_constraint): Likewise.
1854 (handle_rhs_call): Use it on all pointer containing arguments.
1855 Also mark the static chain escaped.
1856 (handle_lhs_call): Make constraints from NONLOCAL and ESCAPED
1857 instead of ANYTHING.
1858 (make_constraint_from): New helper split out from ...
1859 (make_constraint_from_anything): ... here.
1860 (find_func_aliases): Add constraints for escape sites.
1861 (intra_create_variable_infos): Make constraints from NONLOCAL
1863 (find_what_p_points_to): Interpret NONLOCAL and ESCAPED the same
1865 (clobber_what_p_points_to): Remove.
1866 (clobber_what_escaped): New function.
1867 (init_base_vars): Init NONLOCAL and ESCAPED.
1868 (do_sd_constraint): Do not propagate the solution from ESCAPED
1869 but use ESCAPED as a placeholder.
1870 (solve_graph): Likewise.
1871 * tree-flow.h (clobber_what_p_points_to): Remove.
1872 (clobber_what_escaped): Declare.
1873 * tree-ssa-alias.c (set_initial_properties): Call it.
1874 Remove code clobbering escaped pointers.
1876 2008-06-27 Richard Sandiford <rdsandiford@googlemail.com>
1878 * function.c (allocate_struct_function): Only allocate a unique
1879 funcdef_no if the decl is nonzero.
1881 2008-06-27 Richard Sandiford <rdsandiford@googlemail.com>
1883 * config/mips/mips-protos.h (mips_split_const_insns): Declare.
1884 * config/mips/mips.c (mips_split_const_insns): New function.
1885 * config/mips/mips.md (move_type): New attribute.
1886 (mode): Move attribute definition earlier in file. Add "TI" and "TF".
1887 (dword_mode): New attribute.
1888 (type): Avoid long line. Map "move_type"s to "type"s,
1889 choosing "multi" for doubleword moves if appropriate.
1890 Swap MTC/MFC comments to match their declaration order.
1891 (extended_mips16): Default to "yes" if "move_type" is "sll0",
1892 "type" is "branch" or "jal" is "direct".
1893 (length): Handle "extended_mips16" first. Make the default
1894 "0" for "ghost" instructions. Set the length from "move_type".
1895 (truncdisi2, truncdihi2, truncdiqi2): Use "move_type" instead
1896 of "type", with "sll0" for the register alternative. Remove the
1897 "extended_mips16" attribute.
1898 (zero_extendsidi2, *clear_upper32): Use "move_type" instead
1899 of "type", with "shift_shift" for the register alternative.
1900 Remove the "length" attribute.
1901 (*extend<SHORT:mode><GPR:mode>2, *extendqihi2): Likewise.
1902 (*zero_extend<SHORT:mode><GPR:mode>2): Use "move_type" instead
1903 of "type", with "andi" for the register alternative.
1904 (*zero_extendqihi2): Likewise.
1905 (*zero_extend<SHORT:mode><GPR:mode>2_mips16e): Use a "move_type"
1906 of "andi" instead of a "type" of "arith".
1907 (*zero_extend<SHORT:mode><GPR:mode>2_mips16): Use "move_type"
1909 (*zero_extendqihi2_mips16, mov_<load>l, mov_<load>r, mov_<store>l)
1910 (mov_<store>r, *mov<mode>_ra): Likewise.
1911 (extendsidi2): Use "move_type" instead of "type", with "move"
1912 for the register alternative.
1913 (*extend<SHORT:mode><GPR:mode>2_mips16e): Use "move_type" instead
1914 of "type", with "signext" for the register alternative.
1915 (*extend<SHORT:mode><GPR:mode>2_se<SHORT:size>): Likewise.
1916 (*extendqihi2_mips16e, *extendqihi2_seb): Likewise.
1917 (fix_truncdfsi2_insn, fix_truncsfsi2_insn, fix_truncdfdi2)
1918 (fix_truncsfdi2, floatsidf2, floatdidf2, floatsisf2, floatdisf2)
1919 (floatdisf2, *branch_equality<mode>_mips16): Likewise.
1920 (unnamed branch insn): Likewise.
1921 (*movdi_gp32_fp64): Fold into...
1922 (*movdi_32bit): ...here.
1923 (*movdf_hardfloat_64bit, *movdf_hardfloat_32bit): Combine into...
1924 (*movdf_hardfloat): ...this new pattern.
1925 (*movdf_softfloat): Remove redundant FPR alternatives.
1926 (*movti, *movti_mips16, *movtf, *movtf_mips16): Add "mode" attributes.
1927 (*movv2sf_hardfloat_64bit, *movv2sf_hardfloat_32bit): Combine into...
1928 (*movv2sf): ...this new pattern. Use "DF" rather than "SF" for
1929 the "move" attribute.
1930 (*movdi_32bit): Use "move_type" instead of "type" and remove the
1931 "length" attribute. Use "fpload" and "fpstore" instead of "load"
1932 and "store" for COP loads and stores.
1933 (*movdi_32bit_mips16, *movdi_64bit, *movsi_internal, movcc)
1934 (*movhi_internal, *movhi_mips16, *movqi_internal, *movqi_mips16)
1935 (*movsf_hardfloat, *movsf_softfloat, *movsi_mips16, *movdf_hardfloat)
1936 (*movdf_softfloat, *movdf_mips16, *movti, *movti_mips16, *movtf)
1937 (*movtf_mips16, *movv2sf): Likewise.
1938 (mfhi<GPR:mode>_<HILO:mode>, mflo<GPR:mode>_<HILO:mode>)
1939 (load_low<mode>, load_high<mode>, store_word<mode>, mthc1<mode>)
1940 (mfhc1<mode>): Use "move_type" instead of "move".
1941 (*low<mode>_mips16): Use "extended_mips16" instead of "length".
1942 (loadgp_blockage): Remove the "length" attribute.
1943 (blockage, set_got_version, update_got_version): Likewise.
1944 (call_internal): Remove the "extended_mips16" attribute.
1945 (call_value_internal, call_value_multiple_internal): Likewise.
1946 * config/mips/loongson.md (mov<mode>_internal): Use "move_type"
1948 * config/mips/mips-dsp.md (mips_lbux, mips_lhx, mips_lwx): Remove
1949 the "length" attribute.
1951 2008-06-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1953 * c-format.c (handle_format_attribute): Fix -Wc++-compat and/or
1954 -Wcast-qual warnings.
1955 * c-pragma.c (dpm_eq, handle_pragma_push_macro,
1956 handle_pragma_pop_macro): Likewise.
1957 * collect2.c (resolve_lib_name): Likewise.
1958 * config/arc/arc.c (arc_init): Likewise.
1959 * config/arm/arm.c (neon_builtin_compare,
1960 locate_neon_builtin_icode): Likewise.
1961 * config/arm/pe.c (arm_mark_dllexport, arm_pe_unique_section): Likewise.
1962 * config/bfin/bfin.c (bfin_init_machine_status,
1963 bfin_optimize_loop): Likewise.
1964 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Likewise.
1965 * config/cris/cris.c (cris_init_expanders): Likewise.
1966 * config/darwin-c.c (frameworks_in_use, add_framework): Likewise.
1967 * config/darwin.c (machopic_indirection_eq,
1968 machopic_indirection_name, machopic_output_indirection): Likewise.
1969 * config/frv/frv.c (frv_init_machine_status, frv_compare_insns,
1970 frv_io_check_address, frv_io_handle_set, frv_io_handle_use_1,
1971 frv_optimize_membar): Likewise.
1972 * config/i386/cygwin.h (mingw_scan,
1973 GCC_DRIVER_HOST_INITIALIZATION): Likewise.
1974 * config/i386/cygwin1.c (mingw_scan): Likewise.
1975 * config/i386/i386.c (machopic_output_stub): Likewise.
1976 * config/i386/winnt.c (gen_stdcall_or_fastcall_suffix,
1977 i386_pe_unique_section): Likewise.
1978 * config/ia64/ia64.c (ia64_init_machine_status,
1979 ia64_h_i_d_extended, get_free_bundle_state, bundling, ia64_reorg):
1981 * config/iq2000/iq2000.c, iq2000_init_machine_status): Likewise.
1982 * config/m68hc11/m68hc11.c (m68hc11_encode_label): Likewise.
1983 * config/m68k/m68k.c (m68k_handle_option,
1984 m68k_sched_md_init_global): Likewise.
1985 * config/mcore/mcore.c (mcore_mark_dllexport, mcore_mark_dllimport,
1986 mcore_unique_section): Likewise.
1987 * config/mips/mips.c (mips_block_move_straight,
1988 mips16_rewrite_pool_refs, mips_sim_wait_regs_2, mips_sim_record_set):
1990 * config/mmix/mmix.c (mmix_init_machine_status,
1991 mmix_encode_section_info): Likewise.
1992 * config/pa/pa.c (pa_init_machine_status, hppa_encode_label): Likewise.
1993 * config/rs6000/rs6000.c (rs6000_init_machine_status,
1994 print_operand_address, output_toc, redefine_groups,
1995 rs6000_elf_encode_section_info, machopic_output_stub): Likewise.
1996 * config/s390/s390.c (s390_init_machine_status): Likewise.
1997 * config/score/score.c (score_block_move_straight,
1998 score_block_move_loop_body): Likewise.
1999 * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
2000 * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
2001 * emit-rtl.c (find_auto_inc): Likewise.
2002 * gcc.c (translate_options, process_command): Likewise.
2003 * reorg.c (dbr_schedule): Likewise.
2004 * sdbout.c (sdbout_start_source_file, sdbout_init): Likewise.
2005 * xcoffout.c (xcoffout_declare_function): Likewise.
2007 2008-06-27 Daniel Berlin <dberlin@dberlin.org>
2009 * tree-ssa-structalias.c (find_func_aliases): Trivial fix to get
2010 ipa-pta working again.
2012 2008-06-27 David Edelsohn <edelsohn@gnu.org>
2014 * config/rs6000/t-aix52: Append large data option to LDFLAGS for
2017 2008-06-27 Edmar Wienskoski <edmar@freescale.com>
2019 * config.gcc (powerpc*-*-*): Add new core e500mc.
2020 * config/rs6000/e500mc.md: New file.
2021 * config/rs6000/rs6000.c (processor_costs): Add new costs for
2023 (rs6000_override_options): Add e500mc case to
2024 processor_target_table. Altivec and Spe options not allowed
2025 with e500mc. Add isel instruction to e500mc by
2026 default. Initialize rs6000_cost for e500mc.
2027 (rs6000_issue_rate): Set issue rate for e500mc.
2028 * config/rs6000/rs6000.h (processor_type): Add
2029 PROCESSOR_PPCE500MC.
2030 (ASM_CPU_SPEC): Add e500mc.
2031 Set TARGET_ISEL to rs6000_isel.
2032 * config/rs6000/e500.h: Remove redefinition of TARGET_ISEL.
2033 (CHECK_E500_OPTIONS): Remove TARGET_ISEL.
2034 * config/rs6000/rs6000.md (define_attr "cpu"): Add ppce500mc.
2036 * doc/invoke.texi: Add e500mc to list of cpus.
2038 2008-06-27 Laurynas Biveinis <laurynas.biveinis@gmail.com>
2041 * c-lex.c (lex_charconst): Initialize unsignedp.
2043 2008-06-27 Olivier Hainque <hainque@adacore.com>
2045 * gimplify.c (gimplify_modify_expr_to_memset): Assert our
2046 documented assumptions.
2048 2008-06-26 H.J. Lu <hongjiu.lu@intel.com>
2050 * dwarf2out.c: Remove trailing white spaces. Break long line
2053 2008-06-26 Richard Sandiford <rdsandiford@googlemail.com>
2055 * libfuncs.h (LTI_synchronize): New libfunc_index.
2056 (synchronize_libfunc): Declare.
2057 * builtins.c (expand_builtin_synchronize): Consider using
2058 synchronize_libfunc before falling back on an asm blockage.
2059 * config/mips/mips.c: Include libfuncs.h
2060 (mips_init_libfuncs): Initialize synchronize_libfunc for TARGET_MIPS16.
2062 2008-06-26 Nathan Froyd <froydnj@codesourcery.com>
2064 * config/rs6000/rs6000.c (emit_allocate_stack): Add copy_r11
2065 parameter. Copy stack_reg to r11 where appropriate.
2066 (no_global_regs_above): Add gpr parameter.
2067 (rs6000_stack_info): Only add padding for SPE save area if we
2068 are saving SPE GPRs and CR.
2069 (saveres_routine_syms): New variable.
2070 (FIRST_SAVRES_REGISTER, LAST_SAVRES_REGISTER, N_SAVRES_REGISTERS):
2072 (rs6000_savres_routine_sym): New function.
2073 (rs6000_emit_stack_reset, rs6000_restore_saved_cr): New functions,
2075 (rs6000_emit_epilogue): ...here. Use rs6000_use_multiple_p and
2076 rs6000_savres_strategy. Restore GPRs out-of-line if appropriate.
2077 Tweak FPR out-of-line saving.
2078 (rs6000_make_savres_rtx): New function.
2079 (rs6000_use_multiple_p): New function.
2080 (rs6000_savres_strategy): New function.
2081 (rs6000_emit_prologue): Use rs6000_savres_strategy. Save GPRs
2082 out-of-line if appropriate.
2083 * config/rs6000/sysv4.h (FP_SAVE_INLINE): Save FPRs out-of-line
2084 if we are optimizing for size.
2085 (GP_SAVE_INLINE): Define.
2086 (SAVE_FP_SUFFIX, RESTORE_FP_SUFFIX): Only use _l on 64-bit targets.
2087 * config/rs6000/darwin.h (GP_SAVE_INLINE): Define.
2088 * config/rs6000/aix.h (GP_SAVE_INLINE): Define.
2089 * config/rs6000/rs6000.md (*save_gpregs_<mode>): New insn.
2090 (*save_fpregs_<mode>): Add use of r11.
2091 (*restore_gpregs_<mode>): New insn.
2092 (*return_and_restore_gpregs_<mode>): New insn.
2093 (*return_and_restore_fpregs_<mode>): Adjust to clobber LR and
2095 * config/rs6000/spe.md (*save_gpregs_spe): New insn.
2096 (*restore_gpregs_spe): New insn.
2097 (*return_and_restore_gpregs_spe): New insn.
2098 * config/rs6000/predicates.md (save_world_operation): Fix check.
2100 2008-06-26 Steven Bosscher <steven@gcc.gnu.org>
2102 * tree-into-ssa (insert_phi_nodes_for): 'var' must be a DECL at
2103 this point, so assert that.
2105 2008-06-26 Steven Bosscher <steven@gcc.gnu.org>
2107 * cfganal.c: Include vec.h and vecprim.h.
2108 (compute_idf): Import from...
2109 * tree-into-ssa (compute_idf): ...here.
2110 * basic-block.h (compute_idf): Export.
2112 2008-06-26 Joseph Myers <joseph@codesourcery.com>
2114 * c-decl.c (merge_decls): Use !current_function_decl to check for
2115 extern declaration of C99 inline function being at file scope.
2117 2008-06-25 John David Anglin <dave.anglin@gcc-cnrc.gc.ca>
2119 * config.gcc (hppa[12]*-*-hpux10*): Don't use fixproto.
2121 2008-06-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2123 * alias.c (record_alias_subset, init_alias_analysis): Fix
2124 -Wc++-compat and/or -Wcast-qual warnings.
2125 * attribs.c (lookup_attribute_spec): Likewise.
2126 * bb-reorder.c (find_traces, rotate_loop, find_traces_1_round,
2127 copy_bb, connect_traces,
2128 find_rarely_executed_basic_blocks_and_cr): Likewise.
2129 * bt-load.c (find_btr_def_group, add_btr_def, new_btr_user,
2130 note_btr_set, migrate_btr_defs): Likewise.
2131 * builtins.c (result_vector, expand_builtin_memcpy,
2132 expand_builtin_mempcpy_args, expand_builtin_strncpy,
2133 builtin_memset_read_str, expand_builtin_printf,
2134 fold_builtin_memchr, rewrite_call_expr, fold_builtin_printf):
2136 * caller-save.c (mark_set_regs): Likewise.
2137 * calls.c (expand_call, emit_library_call_value_1): Likewise.
2138 * cgraph.c (cgraph_edge): Likewise.
2139 * combine.c (likely_spilled_retval_1): Likewise.
2140 * coverage.c (htab_counts_entry_hash, htab_counts_entry_eq,
2141 htab_counts_entry_del, get_coverage_counts): Likewise.
2142 * cselib.c (new_elt_list, new_elt_loc_list, entry_and_rtx_equal_p,
2143 new_cselib_val): Likewise.
2144 * dbgcnt.c (dbg_cnt_process_opt): Likewise.
2145 * dbxout.c (dbxout_init, dbxout_type, output_used_types_helper):
2147 * df-core.c (df_compact_blocks): Likewise.
2148 * df-problems.c (df_grow_bb_info, df_chain_create): Likewise.
2149 * df-scan.c (df_grow_reg_info, df_ref_create,
2150 df_insn_create_insn_record, df_insn_rescan, df_notes_rescan,
2151 df_ref_compare, df_ref_create_structure, df_bb_refs_record,
2152 df_record_entry_block_defs, df_record_exit_block_uses,
2153 df_bb_verify): Likewise.
2154 * df.h (DF_REF_EXTRACT_WIDTH_CONST, DF_REF_EXTRACT_OFFSET_CONST,
2155 DF_REF_EXTRACT_MODE_CONST): New.
2156 * dominance.c (get_immediate_dominator, get_dominated_by,
2157 nearest_common_dominator, root_of_dom_tree,
2158 iterate_fix_dominators, first_dom_son, next_dom_son): Fix
2159 -Wc++-compat and/or -Wcast-qual warnings.
2160 * dse.c (clear_alias_set_lookup, get_group_info, gen_rtx_MEM,
2161 record_store, replace_read, check_mem_read_rtx, scan_insn,
2162 dse_step1, dse_record_singleton_alias_set): Likewise.
2163 * dwarf2asm.c (dw2_force_const_mem): Likewise.
2165 2008-06-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2167 * dwarf2out.c (new_cfi, queue_reg_save, dwarf2out_begin_prologue,
2168 dwarf2out_frame_init, new_loc_descr, new_die, lookup_decl_die,
2169 lookup_decl_loc, add_var_loc_to_decl, compute_section_prefix,
2170 assign_symbol_names, htab_cu_hash, htab_cu_eq, htab_cu_del,
2171 build_abbrev_table, new_loc_list, output_comp_unit, add_arange,
2172 add_ranges_num, add_ranges_by_labels, file_info_cmp,
2173 file_name_acquire, output_file_names, add_const_value_attribute,
2174 premark_used_types_helper, file_table_eq, file_table_hash,
2175 lookup_filename, dwarf2out_var_location, dwarf2out_source_line,
2176 dwarf2out_init, file_table_relative_p): Fix -Wc++-compat and/or
2177 -Wcast-qual warnings.
2178 * ebitmap.c (ebitmap_array_grow, ebitmap_array_init,
2179 ebitmap_alloc, ebitmap_ior, ebitmap_and_compl): Likewise.
2180 * emit-rtl.c (get_mem_attrs, get_reg_attrs, gen_rtvec,
2181 gen_reg_rtx, start_sequence, init_emit): Likewise.
2182 * et-forest.c (et_new_occ, et_new_tree): Likewise.
2183 * except.c (init_eh_for_function, gen_eh_region,
2184 remove_unreachable_regions, add_ehl_entry, duplicate_eh_regions_1,
2185 arh_to_landing_pad, arh_to_label, add_action_record,
2186 add_call_site, switch_to_exception_section): Likewise.
2187 * expmed.c (synth_mult): Likewise.
2188 * expr.c (gen_group_rtx, emit_group_load, emit_group_store,
2189 store_expr): Likewise.
2190 * final.c (shorten_branches, final_scan_insn, debug_queue_symbol):
2192 * function.c (assign_stack_temp_for_type,
2193 allocate_struct_function, match_asm_constraints_1): Likewise.
2194 * gcov-io.c (gcov_allocate): Likewise.
2195 * gcse.c (GNEW, GCNEW, GNEWVEC, GCNEWVEC, GRESIZEVEC, GNEWVAR,
2196 GCNEWVAR, GRESIZEVAR, GOBNEW, GOBNEWVAR): New.
2197 (gcse_main, alloc_gcse_mem, alloc_gcse_mem, alloc_reg_set_mem,
2198 record_one_set, insert_expr_in_table, insert_set_in_table,
2199 dump_hash_table, compute_hash_table_work, alloc_hash_table,
2200 pre_ldst_expr_hash, pre_ldst_expr_eq, find_rtx_in_ldst,
2201 reg_set_info, reg_clear_last_set): Fix -Wc++-compat and/or
2202 -Wcast-qual warnings.
2204 2008-06-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2206 * cse.c (approx_reg_cost_1, cse_insn): Fix -Wc++-compat and/or
2207 -Wcast-qual warnings.
2208 * gcc.c (process_command): Likewise.
2209 * genattrtab.c (oballoc): Use XOBNEW.
2210 (oballocvec): Define.
2211 (attr_hash_add_rtx, attr_hash_add_string, attr_string,
2212 get_attr_value, fill_attr, make_length_attrs, gen_attr, gen_insn,
2213 gen_delay, find_attr, gen_insn_reserv, gen_bypass_1): Fix
2214 -Wc++-compat and/or -Wcast-qual warnings.
2215 * genautomata.c (XCREATENODE, XCREATENODEVEC, XCREATENODEVAR,
2216 XCOPYNODE, XCOPYNODEVEC, XCOPYNODEVAR): New.
2217 (gen_cpu_unit, gen_query_cpu_unit, gen_bypass, gen_excl_set,
2218 gen_presence_absence_set, gen_automaton, gen_regexp_el,
2219 gen_regexp_repeat, gen_regexp_allof, gen_regexp_oneof,
2220 gen_regexp_sequence, gen_reserv, gen_insn_reserv, process_excls,
2221 add_excls, process_presence_absence_names,
2222 process_presence_absence_patterns, add_presence_absence,
2223 process_regexp, add_advance_cycle_insn_decl, get_free_alt_state,
2224 get_free_state, add_arc, get_free_automata_list_el,
2225 form_reserv_sets_list, copy_insn_regexp, transform_1, transform_2,
2226 transform_3, cache_presence, create_ainsns, create_automata,
2227 create_state_ainsn_table, dfa_insn_code_enlarge,
2228 output_trans_func, output_min_issue_delay_func,
2229 output_dead_lock_func, output_reset_func,
2230 output_get_cpu_unit_code_func, output_dfa_start_func,
2231 expand_automata): Likewise.
2232 * genextract.c (gen_insn): Likewise.
2233 * gengtype-lex.l: Likewise.
2234 * gengtype.c (read_input_list, adjust_field_type,
2235 process_gc_options): Likewise.
2236 * genoutput.c (note_constraint): Likewise.
2237 * genpreds.c (mangle, add_constraint): Likewise.
2238 * genrecog.c (process_define_predicate, new_decision,
2239 add_to_sequence): Likewise.
2240 * gensupport.c (record_insn_name): Likewise.
2242 2008-06-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2244 * config/i386/driver-i386.c (detect_caches_amd,
2245 detect_caches_intel, host_detect_local_cpu): Fix -Wc++-compat
2246 and/or -Wcast-qual warnings.
2247 *ggc-common.c (ggc_mark_roots, gt_pch_note_object,
2248 gt_pch_note_reorder, relocate_ptrs, write_pch_globals,
2249 gt_pch_save): Likewise.
2250 * ggc-page.c (push_depth, push_by_depth, alloc_anon, alloc_page,
2251 gt_ggc_m_S, clear_marks, ggc_pch_read): Likewise.
2252 * global.c (compute_regsets): Likewise.
2253 * graph.c (print_rtl_graph_with_bb, clean_graph_dump_file,
2254 finish_graph_dump_file): Likewise.
2255 * haifa-sched.c (schedule_block, extend_h_i_d, extend_ready,
2256 unlink_bb_notes): Likewise.
2257 * integrate.c (get_hard_reg_initial_val): Likewise.
2258 * ipa-prop.c (ipa_push_func_to_list): Likewise.
2259 * ipa-struct-reorg.c (gen_var_name, gen_cluster_name): Likewise.
2260 * local-alloc.c (update_equiv_regs): Likewise.
2261 * loop-invariant.c (check_invariant_table_size,
2262 hash_invariant_expr, eq_invariant_expr, find_or_insert_inv):
2264 * loop-iv.c (check_iv_ref_table_size, analyzed_for_bivness_p,
2265 altered_reg_used, mark_altered): Likewise.
2266 * loop-unroll.c (si_info_eq, ve_info_eq, allocate_basic_variable,
2267 insert_var_expansion_initialization,
2268 combine_var_copies_in_loop_exit, apply_opt_in_copies,
2269 release_var_copies): Likewise.
2270 * matrix-reorg.c (mat_acc_phi_hash, mat_acc_phi_eq, mtt_info_eq,
2271 analyze_matrix_decl, add_allocation_site, analyze_transpose,
2272 analyze_accesses_for_phi_node, check_var_notmodified_p,
2273 check_allocation_function, find_sites_in_func,
2274 record_all_accesses_in_func, transform_access_sites,
2275 transform_allocation_sites): Likewise.
2276 * omp-low.c (new_omp_region, create_omp_child_function_name,
2277 check_omp_nesting_restrictions, check_combined_parallel,
2278 lower_omp_2, diagnose_sb_1, diagnose_sb_2): Likewise.
2279 * optabs.c (no_conflict_move_test, gen_libfunc, gen_fp_libfunc,
2280 gen_intv_fp_libfunc, gen_interclass_conv_libfunc,
2281 gen_intraclass_conv_libfunc, set_optab_libfunc, set_conv_libfunc):
2283 * opts-common.c (prune_options): Likewise.
2284 * opts.c (add_input_filename, print_filtered_help,
2285 get_option_state): Likewise.
2286 * params.c (add_params): Likewise.
2287 * passes.c (set_pass_for_id, next_pass_1,
2288 do_per_function_toporder, pass_fini_dump_file): Likewise.
2289 * postreload.c (reload_cse_simplify_operands): Likewise.
2290 * predict.c (tree_predicted_by_p, tree_predict_edge,
2291 clear_bb_predictions, combine_predictions_for_bb): Likewise.
2293 2008-06-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2295 * ra.h (add_neighbor): Fix -Wc++-compat and/or -Wcast-qual
2297 * recog.c (check_asm_operands, validate_change_1): Likewise.
2298 * reg-stack.c (check_asm_stack_operands, subst_asm_stack_regs,
2299 subst_asm_stack_regs): Likewise.
2300 * regclass.c (regclass, som_hash, som_eq, record_subregs_of_mode,
2301 cannot_change_mode_set_regs, invalid_mode_change_p): Likewise.
2302 * regmove.c (reg_is_remote_constant_p): Likewise.
2303 * regrename.c (regrename_optimize, scan_rtx_reg,
2304 kill_clobbered_value, kill_set_value, kill_autoinc_value):
2306 * regstat.c (regstat_init_n_sets_and_refs, regstat_compute_ri,
2307 regstat_compute_calls_crossed): Likewise.
2308 * reload1.c (init_reload, new_insn_chain,
2309 has_nonexceptional_receiver, reload, copy_reloads,
2310 calculate_needs_all_insns, init_elim_table): Likewise.
2311 * rtl-factoring.c (compute_rtx_cost, fill_hash_bucket): Likewise.
2312 * rtl.c (shallow_copy_rtx_stat): Likewise.
2313 * rtlanal.c (parms_set): Likewise.
2314 * sbitmap.c (sbitmap_alloc, sbitmap_alloc_with_popcount,
2315 sbitmap_resize, sbitmap_vector_alloc): Likewise.
2316 * sched-ebb.c (earliest_block_with_similiar_load,
2317 add_deps_for_risky_insns): Likewise.
2318 * sched-rgn.c (find_rgns, gather_region_statistics, extend_rgns,
2319 schedule_region): Likewise.
2320 * see.c (eq_descriptor_pre_extension,
2321 hash_descriptor_pre_extension, hash_del_pre_extension,
2322 eq_descriptor_properties, hash_descriptor_properties,
2323 hash_del_properties, see_seek_pre_extension_expr,
2324 see_initialize_data_structures, see_print_register_properties,
2325 see_print_pre_extension_expr, see_delete_merged_def_extension,
2326 see_delete_unmerged_def_extension, see_emit_use_extension,
2327 see_pre_delete_extension, see_map_extension, see_commit_changes,
2328 see_analyze_merged_def_local_prop,
2329 see_analyze_merged_def_local_prop,
2330 see_analyze_unmerged_def_local_prop, see_analyze_use_local_prop,
2331 see_set_prop_merged_def, see_set_prop_unmerged_def,
2332 see_set_prop_unmerged_use, see_print_one_extension,
2333 see_merge_one_use_extension, see_merge_one_def_extension,
2334 see_store_reference_and_extension, see_update_uses_relevancy,
2335 see_update_defs_relevancy): Likewise.
2336 * statistics.c (hash_statistics_hash, hash_statistics_eq,
2337 hash_statistics_free, curr_statistics_hash): Likewise.
2338 * stmt.c (parse_output_constraint, decl_overlaps_hard_reg_set_p,
2339 expand_asm_operands, expand_return, case_bit_test_cmp,
2340 expand_case): Likewise.
2341 * stor-layout.c (start_record_layout): Likewise.
2342 * stringpool.c (ggc_alloc_string, gt_pch_n_S,
2343 gt_pch_save_stringpool): Likewise.
2344 * tree-data-ref.c (hash_stmt_vertex_info,
2345 have_similar_memory_accesses_1, ref_base_address_1): Likewise.
2346 * tree-ssa-phiopt.c (name_to_bb_hash): Likewise.
2348 2008-06-25 Uros Bizjak <ubizjak@gmail.com>
2351 * config/i386/i386.md : Change constraints of HImode and QImode
2352 immediate operands from "i" to "n". Change SImode "ni" constraint to
2353 "i" and SImode "rmi" constraint to "g". Remove all constraints
2354 from const0_operand and const1_operand predicated operands.
2355 (i): Change QImode and HImode attribute from "i" to "n".
2356 (*subqi_2): Change HImode operands to QImode.
2359 2008-06-25 Olivier Hainque <hainque@adacore.com>
2361 * Makefile.in (GTFILES_H): Use | instead of ; as separator in
2364 2008-06-25 Richard Guenther <rguenther@suse.de>
2366 * tree-ssa-structalias.c (fieldoff_compare): Make sure to
2367 not overflow the result type.
2369 2008-06-25 Richard Guenther <rguenther@suse.de>
2371 * tree-vn.c (vn_add): Handle TRUTH_*_EXPR.
2372 (vn_lookup): Likewise.
2374 2008-06-25 Richard Guenther <rguenther@suse.de>
2376 PR tree-optimization/35518
2377 * fold-const.c (fold_ternary): Strip trivial BIT_FIELD_REFs.
2378 * tree-sra.c (instantiate_element): Use fold_build3 to build
2380 (try_instantiate_multiple_fields): Likewise.
2382 2008-06-24 Andrew Pinski <andrew_pinski@playstation.sony.com>
2384 * config/rs6000/rs6000.md: Change all string instruction's clobber to
2387 2008-06-24 Andrew Pinski <andrew_pinski@playstation.sony.com>
2389 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Set
2390 use_backchain_to_restore_sp to true
2391 if the offset of the link register save area would go over the 32k - 1
2392 offset limit of the load
2395 2008-06-25 Hans-Peter Nilsson <hp@axis.com>
2397 * doc/invoke.texi (Optimize Options) <fstrict-aliasing>: Add
2398 anchor for the type-punning blurb. Cross-reference "Structures
2399 unions enumerations and bit-fields implementation". Provide a
2400 cast-through-pointer example. Make final sentence self-contained.
2401 * doc/implement-c.texi (Structures unions enumerations and
2402 bit-fields implementation): Cross-reference the type-punning blurb
2403 in the -fstrict-aliasing documentation.
2405 2008-06-24 Andrew Pinski <andrew_pinski@playstation.sony.com>
2408 * builtins.c (expand_builtin_nonlocal_goto): Stabilize the address of
2409 the memory instead of the memory itself for the save area.
2411 2008-06-24 Olivier Hainque <hainque@adacore.com>
2412 Nicolas Roche <roche@adacore.com>
2414 * gengtype.c (srcdir_len): size_t instead of int.
2415 (get_file_realbasename): New function. For F a filename, the real
2416 basename of F, with all the path components stripped.
2417 (get_file_srcdir_relative_path): New function. For F a filename, the
2418 relative path to F from $(srcdir).
2419 (get_file_basename): Rewrite using get_file_srcdir_relative_path and
2420 get_file_realbasename. Adjust the head comment.
2421 (get_prefix_langdir_index): New function. For F a filename, return the
2422 lang_dir_names[] relative index of the language directory that is
2424 (get_file_langdir): For F a filename, return the name of the language
2425 directory where F is located.
2426 (get_file_gtfilename): New function. The gt- output file name for an
2428 (get_output_file_with_visibility): Replace in-line computations with
2429 uses of get_file_gtfilename and get_prefix_langdir_index.
2430 * Makefile.in (GTFILES_H): Adjust to match what gengtype generates.
2432 2008-06-24 Jakub Jelinek <jakub@redhat.com>
2434 PR tree-optimization/36504
2435 * tree-ssa-loop-prefetch.c (gather_memory_references_ref): Skip
2436 references without base address.
2438 2008-06-23 Uros Bizjak <ubizjak@gmail.com>
2441 * calls.c (expand_call): Increase alignment for recursive functions.
2443 2008-06-23 Anatoly Sokolov <aesok@post.ru>
2445 * config/avr/avr.c (avr_function_value): Add new 'outgoing' argument.
2446 (TARGET_FUNCTION_VALUE): New define.
2447 * config/avr/avr-protos.h (avr_function_value): Remove declaration.
2448 * config/avr/avr.h (FUNCTION_VALUE): Remove.
2450 2008-06-23 Uros Bizjak <ubizjak@gmail.com>
2452 * config/i386/i386.md (fmodxf3): Change sequence of move instructions.
2453 (fmod<mode>3): Ditto.
2454 (remainderxf3): Ditto.
2455 (remainder<mode>3): Ditto.
2457 2008-06-23 Jakub Jelinek <jakub@redhat.com>
2460 * emit-rtl.c (set_reg_attrs_from_value): Do nothing if
2461 REG is a hard register.
2463 PR tree-optimization/36508
2464 * tree-ssa-pre.c (compute_antic): Allow num_iterations up to
2465 499, don't check it at all in release compilers.
2467 2008-06-23 Uros Bizjak <ubizjak@gmail.com>
2469 * config/i386/i386.md (*fop_<mode>_1_i387): Use SSE_FLOAT_MODE_P
2470 together with SSE_TARGET_MATH to disable insn pattern.
2471 (*fop_<MODEF:mode>_2_i387): Ditto.
2472 (*fop_<MODEF:mode>_3_i387): Ditto.
2474 2008-06-22 Andy Hutchinson <hutchinsonandy@aim.com>
2476 * config/avr/avr.h (SUPPORTS_INIT_PRIORITY): Define.
2478 2008-06-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
2481 * gimplify.c (gimplify_asm_expr): Check the return code of
2482 parse_output_constraint call, set function return and is_inout
2485 2008-06-22 Ian Lance Taylor <iant@google.com>
2487 * c-lex.c (narrowest_unsigned_type): Change itk to int.
2488 (narrowest_signed_type): Likewise.
2489 * c-typeck.c (c_common_type): Change local variable mclass to enum
2491 (parser_build_binary_op): Compare the TREE_CODE_CLASS with
2492 tcc_comparison, not the tree code itself.
2493 * c-common.c (def_fn_type): Pass int, not an enum, to va_arg.
2494 (c_expand_expr): Cast modifier to enum expand_modifier.
2495 * c-common.h (C_RID_CODE): Add casts.
2496 (C_SET_RID_CODE): Define.
2497 * c-parser.c (c_parse_init): Use C_SET_RID_CODE.
2498 (c_lex_one_token): Add cast to avoid warning.
2499 (c_parser_objc_type_name): Rename local typename to type_name.
2500 (check_no_duplicate_clause): Change code parameter to enum
2502 (c_parser_omp_var_list_parens): Change kind parameter to enum
2504 (c_parser_omp_flush): Pass OMP_CLAUSE_ERROR, not 0, to
2505 c_parser_omp_list_var_parens.
2506 (c_parser_omp_threadprivate): Likewise.
2507 * cp/lex.c (init_reswords): Use C_SET_RID_CODE.
2508 * cp/parser.c (cp_lexer_get_preprocessor_token): Likewise.
2509 * c-format.c (NO_FMT): Define.
2510 (printf_length_specs): Use NO_FMT.
2511 (asm_fprintf_length_specs): Likewise.
2512 (gcc_diag_length_specs): Likewise.
2513 (scanf_length_specs): Likewise.
2514 (strfmon_length_specs): Likewise.
2515 (gcc_gfc_length_specs): Likewise.
2516 (printf_flag_specs): Change 0 to STD_C89.
2517 (asm_fprintf_flag_specs): Likewise.
2518 (gcc_diag_flag_specs): Likewise.
2519 (gcc_cxxdiag_flag_specs): Likewise.
2520 (scanf_flag_specs): Likewise.
2521 (strftime_flag_specs): Likewise.
2522 (strfmon_flag_specs): Likewise.
2523 (print_char_table): Likewise.
2524 (asm_fprintf_char_table): Likewise.
2525 (gcc_diag_char_table): Likewise.
2526 (gcc_tdiag_char_table): Likewise.
2527 (gcc_cdiag_char_table): Likewise.
2528 (gcc_cxxdiag_char_table): Likewise.
2529 (gcc_gfc_char_table): Likewise.
2530 (scan_char_table): Likewise.
2531 (time_char_table): Likewis.
2532 (monetary_char_table): Likewise.
2533 * c-format.h (BADLEN): Likewise.
2535 2008-06-21 Ian Lance Taylor <iant@google.com>
2537 * tree.h (enum tree_code): Include all-tree.def, not tree.def.
2538 Define END_OF_BASE_TREE_CODES around inclusion.
2539 * tree.c (tree_code_type): New global array.
2540 (tree_code_length, tree_code_name): Likewise.
2541 * Makefile.in (TREE_H): Add all-tree.def, c-common.def, and
2543 (all-tree.def, s-alltree): New targets.
2544 (gencheck.h, s-gencheck): Remove.
2545 (tree.o): Depend upon all-tree.def.
2546 (build/gencheck.o): Remove gencheck.h dependency.
2547 (mostlyclean): Don't remove gencheck.h.
2548 * c-common.h (enum c_tree_code): Remove.
2549 * c-lang.c (tree_code_type): Remove.
2550 (tree_code_length, tree_code_name): Remove.
2551 * gencheck.c (tree_codes): Include all-tree.def, rather than
2552 tree.def, c-common.def, and gencheck.h. Undefined DEFTREECODE
2554 * tree-browser.c (tb_tree_codes): Include all-tree.def, rather
2556 * cp/cp-tree.h (enum cplus_tree_code): Remove.
2557 (operator_name_info): Size to MAX_TREE_CODES.
2558 (assignment_operator_name_info): Likewise.
2559 * cp/cp-lang.c (tree_code_type): Remove.
2560 (tree_code_length, tree_code_name): Remove.
2561 * cp/lex.c (operator_name_info): Size to MAX_TREE_CODES.
2562 (assignment_operator_name_info): Likewise.
2563 * cp/decl.c (grok_op_properties): Change LAST_CPLUS_TREE_CODE to
2565 * cp/mangle.c (write_expression): Likewise.
2566 * cp/Make-lang.in (CXX_TREE_H): Remove cp/cp-tree.def.
2567 * fortran/f95-lang.c (tree_code_type): Remove.
2568 (tree_code_length, tree_code_name): Remove.
2569 * java/java-tree.h (enum java_tree_code): Remove.
2570 * java/lang.c (tree_code_type): Remove.
2571 (tree_code_length, tree_code_name): Remove.
2572 * java/Make-lang.in (JAVA_TREE_H): Remove java/java-tree.def.
2573 * objc/objc-act.h (enum objc_tree_code): Remove.
2574 * objc/objc-lang.c (tree_code_type): Remove.
2575 (tree_code_length, tree_code_name): Remove.
2576 * objcp/objcp-lang.c (tree_code_type): Remove.
2577 (tree_code_length, tree_code_name): Remove.
2578 * ada/ada-tree.h (enum gnat_tree_code): Remove.
2579 * ada/Make-lang.in (ADA_TREE_H): Remove ada/ada-tre.def.
2580 * ada/misc.c (tree_code_type): Remove.
2581 (tree_code_length, tree_code_name): Remove.
2583 2008-06-21 Bernhard Fischer <aldot@gcc.gnu.org>
2585 * tree-ssa-pre.c (fini_antic): Bitmap_sets have to be freed before
2586 the grand_bitmap_obstack.
2588 2008-06-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2590 * ggc.h (GGC_RESIZEVAR): New, reorder macros.
2591 * tracer.c (tail_duplicate): Fix for -Wc++-compat.
2592 * tree-affine.c (aff_combination_expand, free_name_expansion): Likewise.
2593 * tree-cfg.c (replace_by_duplicate_decl, replace_ssa_name,
2594 move_stmt_r, new_label_mapper): Likewise.
2595 * tree-complex.c (cvc_lookup): Likewise.
2596 * tree-dfa.c (create_function_ann): Likewise.
2597 * tree-dump.c (dump_register): Likewise.
2598 * tree-if-conv.c (tree_if_conversion, add_to_predicate_list,
2599 find_phi_replacement_condition): Likewise.
2600 * tree-inline.c (copy_phis_for_bb, estimate_num_insns_1,
2601 tree_function_versioning): Likewise.
2602 * tree-into-ssa.c (cmp_dfsnum): Likewise.
2603 * tree-iterator.c (tsi_link_before, tsi_link_after): Likewise.
2604 * tree-nested.c (lookup_field_for_decl, lookup_tramp_for_decl,
2605 get_nonlocal_debug_decl, convert_nonlocal_reference,
2606 convert_nonlocal_omp_clauses, get_local_debug_decl,
2607 convert_local_reference, convert_local_omp_clauses,
2608 convert_nl_goto_reference, convert_nl_goto_receiver,
2609 convert_tramp_reference, convert_call_expr): Likewise.
2610 * tree-outof-ssa.c (contains_tree_r): Likewise.
2611 * tree-parloops.c (reduction_phi, initialize_reductions,
2612 eliminate_local_variables_1, add_field_for_reduction,
2613 add_field_for_name, create_phi_for_local_result,
2614 create_call_for_reduction_1, create_loads_for_reductions,
2615 create_stores_for_reduction, create_loads_and_stores_for_name):
2617 * tree-phinodes.c (allocate_phi_node): Likewise.
2618 * tree-predcom.c (order_drefs, execute_pred_commoning_cbck): Likewise.
2619 * tree-sra.c (sra_elt_hash, sra_elt_eq, lookup_element): Likewise.
2620 * tree-ssa-alias.c (get_mem_sym_stats_for): Likewise.
2621 * tree-ssa-coalesce.c (compare_pairs): Likewise.
2622 * tree-ssa-loop-im.c (mem_ref_in_stmt, memref_hash, memref_eq,
2623 memref_free, gather_mem_refs_stmt, vtoe_hash, vtoe_eq, vtoe_free,
2624 record_vop_access, get_vop_accesses, get_vop_stores): Likewise.
2625 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Likewise.
2626 * tree-ssa-sccvn.c (VN_INFO_GET, free_phi, free_reference,
2627 vn_nary_op_insert): Likewise.
2628 * tree-ssa.c (redirect_edge_var_map_add,
2629 redirect_edge_var_map_clear, redirect_edge_var_map_dup): Likewise.
2630 * tree-vectorizer.c (vectorize_loops): Likewise.
2631 * tree.c (make_node_stat, copy_node_stat, build_int_cst_wide,
2632 build_fixed, build_real, make_tree_binfo_stat, make_tree_vec_stat,
2633 tree_cons_stat, build1_stat, build_variant_type_copy,
2634 decl_init_priority_lookup, decl_fini_priority_lookup,
2635 decl_priority_info, decl_restrict_base_lookup,
2636 decl_restrict_base_insert, decl_debug_expr_lookup,
2637 decl_debug_expr_insert, decl_value_expr_lookup,
2638 decl_value_expr_insert, type_hash_eq, type_hash_lookup,
2639 type_hash_add, get_file_function_name, tree_check_failed,
2640 tree_not_check_failed, tree_range_check_failed,
2641 omp_clause_range_check_failed, build_omp_clause,
2642 build_vl_exp_stat): Likewise.
2643 * value-prof.c (gimple_histogram_value,
2644 gimple_duplicate_stmt_histograms): Likewise.
2645 * var-tracking.c (attrs_list_insert, attrs_list_copy,
2646 unshare_variable, variable_union_info_cmp_pos, variable_union,
2647 dataflow_set_different_1, dataflow_set_different_2,
2648 vt_find_locations, variable_was_changed, set_variable_part,
2649 emit_notes_for_differences_1, emit_notes_for_differences_2): Likewise.
2650 * varasm.c (prefix_name, emutls_decl, section_entry_eq,
2651 section_entry_hash, object_block_entry_eq,
2652 object_block_entry_hash, create_block_symbol,
2653 initialize_cold_section_name, default_function_rodata_section,
2654 strip_reg_name, set_user_assembler_name, const_desc_eq,
2655 build_constant_desc, output_constant_def, lookup_constant_def,
2656 const_desc_rtx_hash, const_desc_rtx_eq, const_rtx_hash_1,
2657 create_constant_pool, force_const_mem, compute_reloc_for_rtx_1,
2658 default_internal_label): Likewise.
2659 * varray.c (varray_init, varray_grow): Likewise.
2660 * vec.c (vec_gc_o_reserve_1, vec_heap_o_reserve_1): Likewise.
2662 2008-06-20 Uros Bizjak <ubizjak@gmail.com>
2664 * config/i386/i386.md (*jcc_fused_1): Handle all valid compare
2665 operators for "test" insn. Macroize insn using SWI mode macro.
2666 (*jcc_fused_2): Ditto.
2667 (*jcc_fused_3): Macroize insn using SWI mode macro.
2668 (*jcc_fused_4): Ditto.
2670 2008-06-20 Bernhard Fischer <aldot@gcc.gnu.org>
2672 * tree-ssa-pre.c: Fix typo in comment.
2673 (init_antic, fini_antic): Add explicit funtions for
2674 initializing and deinitializing ANTIC and AVAIL sets.
2675 (create_expression_by_pieces): Fix typo in comment.
2676 Remove redundant set of new_stuff and use NULL_TREE instead of NULL.
2677 (execute_pre): Eventually dump details about ANTIC_IN.
2679 2008-06-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2681 * collect2.c (main, add_to_list): Fix for -Wc++-compat.
2682 * gcc.c (translate_options, init_spec, store_arg, read_specs,
2683 add_to_obstack, file_at_path, find_a_file, execute,
2684 add_preprocessor_option, add_assembler_option, add_linker_option,
2685 process_command, insert_wrapper, do_option_spec, do_self_spec,
2686 spec_path, do_spec_1, is_directory, main, used_arg,
2687 getenv_spec_function): Likewise.
2688 * tlink.c (symbol_hash_lookup, file_hash_lookup,
2689 demangled_hash_lookup, symbol_push, file_push, frob_extension):
2692 2008-06-19 Kenneth Zadeck <zadeck@naturalbridge.com>
2694 * doc/rtl.texi: Updated subreg section.
2696 2008-06-19 Jakub Jelinek <jakub@redhat.com>
2699 * cgraphunit.c (cgraph_process_new_functions): Don't clear
2700 node->needed and node->reachable.
2701 * cgraphbuild.c (record_reference): Handle OMP_PARALLEL and OMP_TASK.
2702 * omp-low.c (delete_omp_context): Call finalize_task_copyfn.
2703 (expand_task_call): Don't call expand_task_copyfn.
2704 (expand_task_copyfn): Renamed to...
2705 (finalize_task_copyfn): ... this.
2707 2008-06-19 Jan Hubicka <jh@suse.cz>
2709 * builtins.c (expand_builtin_nonlocal_goto): Stabilize r_sp before
2710 clobbering framepointer.
2712 2008-06-19 Jan Hubicka <jh@suse.cz>
2714 * tree-optimize.c (execute_early_local_optimizations): Set
2715 cgraph_state only at first invocation.
2717 2008-06-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2719 * system.h (-Wc++-compat): Activate as a warning, no an error.
2721 2008-06-19 Uros Bizjak <ubizjak@gmail.com>
2723 * config/i386/i386.md (*jcc_fused_1): Use ASM_COMMENT_START
2724 instead of "#" in insn asm template.
2725 (*jcc_fused_2): Ditto.
2727 2008-06-19 Uros Bizjak <ubizjak@gmail.com>
2729 * config/i386/i386.h (ix86_tune_indices)
2730 [X86_TUNE_FUSE_CMP_AND_BRANCH]: New.
2731 (TARGET_FUSE_CMP_AND_BRANCH): New define.
2732 * config/i386/i386.md (*jcc_fused_1): New insn pattern
2733 (*jcc_fused_2): Ditto.
2734 * config/i386/i386.c (ix86_tune_features): Add m_CORE2 to
2735 X86_TUNE_FUSE_CMP_AND_BRANCH targets.
2736 (print operand): Handle 'E' and 'e' code.
2738 2008-06-19 Anatoly Sokolov <aesok@post.ru>
2740 * config/avr/avr.c (avr_mcu_t): Add attiny13a.
2741 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
2742 * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
2744 2008-06-19 Bernhard Fischer <aldot@gcc.gnu.org>
2746 * cgraphunit.c (cgraph_finalize_function): Remove redundant setting of
2748 (cgraph_expand_function): Use local copy of decl.
2749 (cgraph_expand_all_functions): Remove redundant initialization of
2751 (cgraph_optimize): Reword internal_error message.
2753 2008-06-19 Chung-Lin Tang <ctang@marvell.com>
2755 * arm-protos.h (arm_return_in_memory): Remove public
2756 arm_return_in_memory() prototype.
2757 * arm.c (arm_return_in_memory): Add static prototype, add target
2758 hook macro, change definition and comments.
2759 * arm.h (TARGET_RETURN_IN_MEMORY): Remove.
2761 2008-06-19 Ben Elliston <bje@au.ibm.com>
2763 * dfp.h, dfp.c, config/dfp-bit.h, config/dfp-bit.c, real.h,
2764 real.c: Remove references to IEEE 754R.
2765 * doc/install.texi (Configuration): IEEE 754R -> IEEE 754-2008.
2766 * doc/libgcc.texi (Decimal float library routines): Likewise.
2768 2008-06-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2770 * targhooks.h (struct gcc_target): New member unwind_word_mode.
2771 (default_unwind_word_mode): Add prototype.
2772 * targhooks.c (default_unwind_word_mode): New function.
2773 (default_eh_return_filter_mode): Return targetm.unwind_word_mode ()
2774 instead of word_mode.
2775 * target-def.h (TARGET_UNWIND_WORD_MODE): New macro.
2776 (TARGET_INITIALIZER): Use it.
2778 * c-common.c (handle_mode_attribute): Support "unwind_word"
2780 * unwind-generic.h (_Unwind_Word, _Unwind_Sword): Use it.
2782 * except.c (init_eh): Use targetm.unwind_word_mode () instead of
2783 word_mode to access SjLj_Function_Context member "data".
2784 (sjlj_emit_dispatch_table): Likewise. Also, perform type
2785 conversion from targetm.eh_return_filter_mode () to
2786 targetm.unwind_word_mode () if they differ.
2788 * builtin-types.def (BT_UNWINDWORD): New primitive type.
2789 (BT_FN_UNWINDWORD_PTR): New function type.
2790 (BT_FN_WORD_PTR): Remove.
2791 * builtins.def (BUILT_IN_EXTEND_POINTER): Use BT_FN_UNWINDWORD_PTR.
2792 * except.c (expand_builtin_extend_pointer): Convert pointer to
2793 targetm.unwind_word_mode () instead of word_mode.
2795 * config/spu/spu-protos.h (spu_eh_return_filter_mode): Remove.
2796 * config/spu/spu.c (spu_eh_return_filter_mode): Remove.
2797 (spu_unwind_word_mode): New function.
2798 (TARGET_EH_RETURN_FILTER_MODE): Do not define.
2799 (TARGET_UNWIND_WORD_MODE): Define.
2800 * config/spu/t-spu-elf (TARGET_LIBGCC2_CFLAGS): Remove -D__word__=SI.
2802 2008-06-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2804 * config/spu/spu.c (reg_align): Remove.
2805 (regno_aligned_for_load): Also accept ARG_POINTER_REGNUM.
2806 (spu_split_load): Use regno_aligned_for_load instead of reg_align.
2807 (spu_split_store): Likewise.
2809 2008-06-18 Bernhard Fischer <aldot@gcc.gnu.org>
2811 * gcc/tree-vn.c: Fix typo in comment.
2813 2008-06-18 Jan Hubicka <jh@suse.cz>
2815 * cgraphunit.c (cgraph_optimize): Output debug info when doing
2816 toplevel reorder too.
2818 2008-06-18 Jan Hubicka <jh@suse.cz>
2820 * c-opts.c (c_common_post_options): PCH is not compatible with
2822 * opts.c (handle_options): Enable unit-at-a-time at O0 along with
2823 -fno-toplevel-reorder by default now.
2825 2008-06-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2827 PR documentation/30739
2828 * doc/install.texi (Prerequisites): Document dependency on awk.
2830 2008-06-18 Uros Bizjak <ubizjak@gmail.com>
2831 Ian Lance Taylor <iant@google.com>
2833 PR rtl-optimization/35604
2834 * jump.c (redirect_exp_1): Skip the condition of an IF_THEN_ELSE. We
2835 only want to change jump destinations, not eventual label comparisons.
2837 2008-06-16 Jan Hubicka <jh@suse.cz>
2839 * cgraphunit.c (cgraph_expand_pending_functions): Give up at
2841 (cgraph_analyze_function): Likewise.
2843 2008-06-16 Jan Hubicka <jh@suse.cz>
2845 * cgraph.h (cgraph_mark_if_needed): New function.
2846 * cgraphunit.c (cgraph_mark_if_needed): New function.
2847 * c-decl.c (duplicate_decl): Use it.
2849 2008-06-16 Jan Hubicka <jh@suse.cz>
2851 * cgraph.c (cgraph_add_new_function): When in expansion state, do
2854 2008-06-16 Jan Hubicka <jh@suse.cz>
2856 * tree-outof-ssa.c (pass_out_of_ssa): Do not depend on PROP_alias.
2858 2008-06-16 Daniel Jacobowitz <dan@codesourcery.com>
2859 Kazu Hirata <kazu@codesourcery.com>
2860 Maxim Kuvyrkov <maxim@codesourcery.com
2862 * config.gcc (mips64el-st-linux-gnu): Use mips/st.h and mips/t-st.
2863 * config.host: Use driver-native.o and mips/x-native for mips*-linux*.
2864 * config/mips/linux.h (host_detect_local_cpu): Declare, add to
2865 EXTRA_SPEC_FUNCTIONS.
2866 (MARCH_MTUNE_NATIVE_SPECS, BASE_DRIVER_SELF_SPECS): New macros.
2867 (DRIVER_SELF_SPECS): Adjust.
2868 * config/mips/linux64.h (DRIVER_SELF_SPECS): Update.
2869 * config/mips/st.h, config/mips/t-st: New.
2870 * config/mips/driver-native.c, config/mips/x-native: New.
2871 * doc/invoke.texi (MIPS): Document 'native' value for -march and
2874 2008-06-18 Maxim Kuvyrkov <maxim@codesourcery.com>
2876 * config/mips/mips.h (ISA_HAS_CONDMOVE): Slice ISA_HAS_FP_CONDMOVE
2878 (ISA_HAS_FP_CONDMOVE): New macro.
2879 (ISA_HAS_FP_MADD4_MSUB4, ISA_HAS_FP_MADD3_MSUB3): New macros.
2880 (ISA_HAS_NMADD_NMSUB): Rename to ISA_HAS_NMADD4_NMSUB4.
2881 (ISA_HAS_NMADD3_NMSUB3): New macro.
2882 * config/mips/mips.c (mips_rtx_costs): Update.
2883 * config/mips/mips.md (MOVECC): Don't use FP conditional moves when
2884 compiling for ST Loongson 2E/2F.
2885 (madd<mode>): Rename to madd4<mode>. Update.
2886 (madd3<mode>): New pattern.
2887 (msub<mode>): Rename to msub4<mode>. Update.
2888 (msub3<mode>): New pattern.
2889 (nmadd<mode>): Rename to nmadd4<mode>. Update.
2890 (nmadd3<mode>): New pattern.
2891 (nmadd<mode>_fastmath): Rename to nmadd4<mode>_fastmath. Update.
2892 (nmadd3<mode>_fastmath): New pattern.
2893 (nmsub<mode>): Rename to nmsub4<mode>. Update.
2894 (nmsub3<mode>): New pattern.
2895 (nmsub<mode>_fastmath): Rename to nmsub4<mode>_fastmath. Update.
2896 (nmsub3<mode>_fastmath): New pattern.
2897 (mov<SCALARF:mode>_on_<MOVECC:mode>, mov<mode>cc): Update.
2899 2008-06-18 Steven Bosscher <steven@gcc.gnu.org>
2901 * df.h (struct df_ref): Replace 'insn' field with 'insn_info' field.
2902 (DF_REF_INSN_INFO): New.
2903 (DF_REF_INSN, DF_REF_INSN_UID): Rewrite macros using DF_REF_INSN_INFO.
2904 (DF_REF_IS_ARTIFICIAL): Artificial refs are now identified as refs
2905 with a NULL DF_REF_INSN_INFO.
2906 (DF_INSN_INFO_GET, DF_INSN_INFO_SET): Renamed from DF_INSN_GET and
2908 (DF_INSN_INFO_LUID, DF_INSN_INFO_DEFS, DF_INSN_INFO_USES,
2909 DF_INSN_INFO_EQ_USES): New.
2910 (DF_INSN_LUID, DF_INSN_DEFS, DF_INSN_USES, DF_INSN_EQ_USES,
2911 DF_INSN_UID_LUID, DF_INSN_UID_DEFS, DF_INSN_UID_USES,
2912 DF_INSN_UID_EQ_USES): Rewrite using DF_INSN_INFO_* macros.
2913 * df-core.c: Update comment for above changes.
2914 (df_insn_debug_regno): Use DF_INSN_INFO_GET instead of INSN_UID and
2915 DF_INSN_UID_* macros.
2916 (df_ref_debug): Check for NULL DF_REF_INSN_INFO.
2917 * df-scan.c (df_ref_record): Take a df_insn_info instead of an
2918 insn rtx. Update all callers.
2919 (df_def_record_1, df_defs_record, df_uses_record, df_get_call_refs,
2920 df_ref_create_structure, df_insn_refs_collect): Likewise.
2921 (df_ref_equal_p): Compare DF_REF_INSN_INFO pointers for the refs.
2922 * df-problems.c (df_chain_dump): Test for non-NULL DF_REF_INSN_INFO.
2923 (df_live_bb_local_compute): Retrieve DF_INSN_INFO, use DF_INSN_INFO_*
2924 macros to access the insn refs.
2925 (df_chain_top_dump, df_chain_bottom_dump, df_byte_lr_alloc): Likewise.
2926 * fwprop.c (use_killed_between): Use DF_REF_INSN accessor macro.
2927 (all_uses_available): Retrieve DF_INSN_INFO for def_insn, and use it
2928 for accessing the refs.
2929 (try_fwprop_subst): Likewise.
2930 * ddg.c (add_cross_iteration_register_deps): Use DF_REF_INSN macro.
2931 * web.c (union_defs): Retrieve DF_INSN_INFO for def_insn, and use it
2932 for accessing the refs.
2933 * loop-invariant.c (invariant_for_use): Use DF_REF_BB macro.
2934 (check_dependencies): Use DF_INSN_INFO_GET, use DF_INSN_INFO_* macros
2935 to look at the insn refs.
2936 (record_uses): Likewise.
2937 * dce.c (deletable_insn_p): Don't tolerate artificial DEFs in this
2939 (mark_artificial_uses): Don't mark_insn for artificial refs.
2940 (mark_reg_rependencies): Likewise.
2942 * doc/rtl.texi: Remove documentation of ADDRESSOF.
2944 2008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2946 * configure: Regenerate.
2948 2008-06-17 Eric B. Weddington <eric.weddington@atmel.com>
2950 * config/avr/avr.c (avr_mcu_t): Remove atmega32hvb.
2951 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
2952 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
2954 2008-06-17 Eric B. Weddington <eric.weddington@atmel.com>
2956 * config/avr/avr.c (avr_mcu_t): Add attiny167.
2957 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
2958 * gcc/config/avr/t-avr (MULTILIB_MATCHES): Likewise.
2960 2008-06-17 Eric B. Weddington <eric.weddington@atmel.com>
2962 * config/avr/avr.c (avr_mcu_t): Add atmega32u4.
2963 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
2964 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
2966 2008-06-17 Bernhard Fischer <aldot@gcc.gnu.org>
2968 * tree-ssa-sccvn.c: Fix format of comments.
2970 2008-06-17 Bernhard Fischer <aldot@gcc.gnu.org>
2972 * cgraph.c: Remove unneeded forward declarations of eq_node()
2975 2008-06-17 Steven Bosscher <steven@gcc.gnu.org>
2977 * see.c (see_analyse_one_def): Do not look for REG_LIBCALL and
2979 (see_update_relevancy): Likewise.
2980 * fwprop.c (try_fwprop_subst): Likewise.
2981 * rtlanal.c (noop_move_p): Likewise.
2982 * builtins.c (expand_buitlin_mathfn): Don't try to add REG_EQUAL
2983 notes to non-existing libcall blocks.
2984 * cse.c (cse_insn): Change prototype. Don't update libcall notes.
2986 (cse_extended_basic_block): Don't track libcall and no-conflict notes.
2987 (dead_libcall_p): Remove.
2988 (delete_trivially_dead_insns): Don't use it.
2989 * web.c (union_defs): Remove comment about keeping nops.
2990 * gcse.c (hash_scan_insn): Don't take libcall pointers.
2991 (compute_hash_table_work): Don't track libcall notes.
2992 (do_local_cprop): Don't take libcall pointers. Don't update
2994 (adjust_libcall_notes): Deleted.
2995 (local_cprop_pass): Remove stack for nested libcalls (which shouldn't
2996 ever have existed in the first place).
2997 (replace_store_insn): Don't try to remove libcall notes.
2998 * lower-subreg.c (move_libcall_note, move_retval_note): Deleted.
2999 (resolve_reg_notes): Don't call them.
3000 (resolve_simple_move): Likewise.
3001 (decompose_multiword_subregs): Remove block handling REG_RETVAL notes.
3002 Don't remove REG_RETVAL notes.
3003 * emit-rtl.c (try_split): Don't update libcall notes.
3004 (emit_copy_of_insn_after): Dito.
3005 * cselib.c (cselib_current_insn_in_libcall): Remove.
3006 (cselib_process_insn): Don't set/clear it.
3007 (new_elt_loc_list): Don't record it.
3008 (cselib_init): Don't initialize it.
3009 * cselib.c (struct elt_loc_list): Remove in_libcall field.
3010 * loop-invariant.c (find_invariant_insn): Don't look for libcall
3012 * sched-deps.c (sched_analyze_insn): Don't group libcall blocks.
3013 (sched_analyze): Don't set up deps->libcall_block_tail_insn.
3014 (init_deps): Don't initialize it.
3015 * sched-int.h (struct deps): Rremove libcall_block_tail_insn field.
3016 * combine.c (delete_noop_moves): Don't update libcall notes.
3017 (can_combine_p): Remove now pointless #if 0 block.
3018 (try_combine): Remove another obsolete #if 0 block.
3019 (distribute_notes): Don't distribute libcall notes.
3020 * reg-notes.def (REG_LIBCALL, REG_RETVAL): Remove.
3021 * dce.c (libcall_dead_p): Remove.
3022 (delete_unmarked_insns): Don't handle libcall blocks.
3023 (preserve_libcall_for_dce): Remove.
3024 (prescan_insns_for_dce): Don't special-case libcall block insns.
3025 * reload1 (reload): Don't handle libcall notes.
3026 * doc/rtl.texi (REG_LIBCALL, REG_RETVAL, REG_LIBCALL_ID): Remove
3029 2008-06-16 Eric B. Weddington <eric.weddington@atmel.com>
3031 * config/avr/avr.c (avr_mcu_t): Add atmega32c1.
3032 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
3033 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
3035 2008-06-16 Eric B. Weddington <eric.weddington@atmel.com>
3037 * config/avr/avr.c (avr_mcu_t): Add atmega32m1.
3038 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
3039 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
3041 2008-06-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3043 * Makefile.in (FLAGS_TO_PASS): Add $(datarootdir).
3045 2008-06-16 Ira Rosen <irar@il.ibm.com>
3047 PR tree-optimization/36493
3048 * tree-vect-transform.c (vect_create_data_ref_ptr): Remove TYPE from
3049 the arguments list. Use VECTYPE to create vector pointer.
3050 (vectorizable_store): Fail if accesses through a pointer to vectype
3051 do not alias the original memory reference operands.
3052 Call vect_create_data_ref_ptr without the removed argument.
3053 (vectorizable_load): Likewise.
3054 (vect_setup_realignment): Call vect_create_data_ref_ptr without the
3057 2008-06-015 Andy Hutchinson <hutchinsonandy@aim.com>
3060 * config/avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Add check for
3063 2008-06-15 Maxim Kuvyrkov <maxim@codesourcery.com>
3065 * config/mips/loongson2ef.md: New file.
3066 * config/mips/mips.md (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
3067 (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
3068 (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
3069 (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): New constants.
3070 (define_attr "cpu"): Rename loongson2e and loongson2f to loongson_2e
3072 (loongson2ef.md): New include.
3073 * config/mips/loongson.md (vec_pack_ssat_<mode>, vec_pack_usat_<mode>)
3074 (add<mode>3, paddd, ssadd<mode>3, usadd<mode>3)
3075 (loongson_and_not_<mode>, loongson_average_<mode>, loongson_eq_<mode>)
3076 (loongson_gt_<mode>, loongson_extract_halfword)
3077 (loongson_insert_halfword_0, loongson_insert_halfword_2)
3078 (loongson_insert_halfword_3, loongson_mult_add, smax<mode>3)
3079 (umax<mode>3, smin<mode>3, umin<mode>3, loongson_move_byte_mask)
3080 (umul<mode>3_highpart, smul<mode>3_highpart, loongson_smul_lowpart)
3081 (loongson_umul_word, loongson_pasubub, reduc_uplus_<mode>)
3082 (loongson_psadbh, loongson_pshufh, loongson_psll<mode>)
3083 (loongson_psra<mode>, loongson_psrl<mode>, sub<mode>3, psubd)
3084 (sssub<mode>3, ussub<mode>3, vec_interleave_high<mode>)
3085 (vec_interleave_low<mode>): Define type attribute.
3086 * config/mips/mips.c (mips_ls2): New static variable.
3087 (mips_issue_rate): Update to handle tuning for Loongson 2E/2F.
3088 (mips_ls2_init_dfa_post_cycle_insn, mips_init_dfa_post_cycle_insn)
3089 (sched_ls2_dfa_post_advance_cycle, mips_dfa_post_advance_cycle):
3090 Implement target scheduling hooks.
3091 (mips_multipass_dfa_lookahead): Update to handle tuning for
3093 (mips_sched_init): Initialize data for Loongson scheduling.
3094 (mips_ls2_variable_issue): New static function.
3095 (mips_variable_issue): Update to handle tuning for Loongson 2E/2F.
3097 (TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN)
3098 (TARGET_SCHED_DFA_POST_ADVANCE_CYCLE): Override target hooks.
3099 * config/mips/mips.h (TUNE_LOONGSON_2EF): New macros.
3100 (ISA_HAS_XFER_DELAY, ISA_HAS_FCMP_DELAY, ISA_HAS_HILO_INTERLOCKS):
3101 Handle ST Loongson 2E/2F cores.
3102 (CPU_UNITS_QUERY): Define macro to enable querying of DFA units.
3104 2008-06-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3106 * omp-low.c (extract_omp_for_data): Fix comment typo.
3109 2008-06-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3111 * doc/sourcebuild.texi (Config Fragments): Remove obsolete
3112 FIXME note about gcc/config.guess.
3113 * doc/options.texi (Option file format): Remove non-ASCII bytes.
3114 * doc/cpp.texi: Expand TABs, drop indentation outside examples.
3115 * doc/cppopts.texi: Likewise.
3116 * doc/extend.texi: Likewise.
3117 * doc/gcc.texi: Likewise.
3118 * doc/gccint.texi: Likewise.
3119 * doc/gcov.texi: Likewise.
3120 * doc/gty.texi: Likewise.
3121 * doc/hostconfig.texi: Likewise.
3122 * doc/install.texi: Likewise.
3123 * doc/invoke.texi: Likewise.
3124 * doc/loop.texi: Likewise.
3125 * doc/makefile.texi: Likewise.
3126 * doc/md.texi: Likewise.
3127 * doc/passes.texi: Likewise.
3128 * doc/tm.texi: Likewise.
3129 * doc/tree-ssa.texi: Likewise.
3130 * doc/trouble.texi: Likewise.
3132 2008-06-15 Mark Shinwell <shinwell@codesourcery.com>
3133 Nathan Sidwell <nathan@codesourcery.com>
3134 Maxim Kuvyrkov <maxim@codesourcery.com>
3135 Richard Sandiford <rdsandiford@googlemail.com>
3137 * config/mips/mips-modes.def: Add V8QI, V4HI and V2SI modes.
3138 * config/mips/mips-protos.h (mips_expand_vector_init): New.
3139 * config/mips/mips-ftypes.def: Add function types for Loongson-2E/2F
3141 * config/mips/mips.c (mips_split_doubleword_move): Handle new modes.
3142 (mips_hard_regno_mode_ok_p): Allow 64-bit vector modes for Loongson.
3143 (mips_vector_mode_supported_p): Add V2SImode, V4HImode and
3145 (LOONGSON_BUILTIN, LOONGSON_BUILTIN_ALIAS): New.
3146 (CODE_FOR_loongson_packsswh, CODE_FOR_loongson_packsshb,
3147 (CODE_FOR_loongson_packushb, CODE_FOR_loongson_paddw,
3148 (CODE_FOR_loongson_paddh, CODE_FOR_loongson_paddb,
3149 (CODE_FOR_loongson_paddsh, CODE_FOR_loongson_paddsb)
3150 (CODE_FOR_loongson_paddush, CODE_FOR_loongson_paddusb)
3151 (CODE_FOR_loongson_pmaxsh, CODE_FOR_loongson_pmaxub)
3152 (CODE_FOR_loongson_pminsh, CODE_FOR_loongson_pminub)
3153 (CODE_FOR_loongson_pmulhuh, CODE_FOR_loongson_pmulhh)
3154 (CODE_FOR_loongson_biadd, CODE_FOR_loongson_psubw)
3155 (CODE_FOR_loongson_psubh, CODE_FOR_loongson_psubb)
3156 (CODE_FOR_loongson_psubsh, CODE_FOR_loongson_psubsb)
3157 (CODE_FOR_loongson_psubush, CODE_FOR_loongson_psubusb)
3158 (CODE_FOR_loongson_punpckhbh, CODE_FOR_loongson_punpckhhw)
3159 (CODE_FOR_loongson_punpckhwd, CODE_FOR_loongson_punpcklbh)
3160 (CODE_FOR_loongson_punpcklhw, CODE_FOR_loongson_punpcklwd): New.
3161 (mips_builtins): Add Loongson builtins.
3162 (mips_loongson_2ef_bdesc): New.
3163 (mips_bdesc_arrays): Add mips_loongson_2ef_bdesc.
3164 (mips_builtin_vector_type): Handle unsigned versions of vector modes.
3165 (MIPS_ATYPE_UQI, MIPS_ATYPE_UDI, MIPS_ATYPE_V2SI, MIPS_ATYPE_UV2SI)
3166 (MIPS_ATYPE_V4HI, MIPS_ATYPE_UV4HI, MIPS_ATYPE_V8QI, MIPS_ATYPE_UV8QI):
3168 (mips_expand_vector_init): New.
3169 * config/mips/mips.h (HAVE_LOONGSON_VECTOR_MODES): New.
3170 (TARGET_CPU_CPP_BUILTINS): Define __mips_loongson_vector_rev
3172 * config/mips/mips.md: Add unspec numbers for Loongson
3173 builtins. Include loongson.md.
3174 (MOVE64): Include Loongson vector modes.
3175 (SPLITF): Include Loongson vector modes.
3176 (HALFMODE): Handle Loongson vector modes.
3177 * config/mips/loongson.md: New.
3178 * config/mips/loongson.h: New.
3179 * config.gcc: Add loongson.h header for mips*-*-* targets.
3180 * doc/extend.texi (MIPS Loongson Built-in Functions): New.
3182 2008-06-14 Joseph Myers <joseph@codesourcery.com>
3184 * config.gcc (arc-*-elf*, avr-*-*, fr30-*-elf, frv-*-elf,
3185 h8300-*-elf*, h8300-*-*, i[34567]86-*-elf*, x86_64-*-elf*,
3186 i[34567]86-*-aout*, i[34567]86-*-coff*, ia64*-*-elf*,
3187 iq2000*-*-elf*, m32r-*-elf*, m32rle-*-elf*, m32r-*-linux*,
3188 m32rle-*-linux*, m68hc11-*-*|m6811-*-*, m68hc12-*-*|m6812-*-*,
3189 m68k-*-coff*, mcore-*-elf, mcore-*-pe*, mipsisa64sr71k-*-elf*,
3190 mipsisa64sb1-*-elf* | mipsisa64sb1el-*-elf*, mips-*-elf* |
3191 mipsel-*-elf*, mips64-*-elf* | mips64el-*-elf*, mips64vr-*-elf* |
3192 mips64vrel-*-elf*, mips64orion-*-elf* | mips64orionel-*-elf*,
3193 mipstx39-*-elf* | mipstx39el-*-elf*, mn10300-*-*, pdp11-*-,
3194 powerpc-*-elf*, powerpcle-*-elf*, sh-*-elf* | sh[12346l]*-*-elf* |
3195 sh-*-symbianelf* | sh[12346l]*-*-symbianelf* | sh-*-linux* |
3196 sh[2346lbe]*-*-linux* | sh-*-netbsdelf* | shl*-*-netbsdelf* |
3197 sh5-*-netbsd* | sh5l*-*-netbsd* | sh64-*-netbsd* |
3198 sh64l*-*-netbsd*, sh-*-*, sparc-*-elf*, sparc64-*-elf*,
3199 v850e1-*-*, v850e-*-*, v850-*-*, xstormy16-*-elf, m32c-*-elf*):
3200 Remove use_fixproto=yes.
3201 (ia64*-*-hpux*): Remove comment about using fixproto.
3202 (m68k-*-uclinuxoldabi*, m68k-*-uclinux*): Remove use_fixproto=no.
3204 2008-06-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3206 * configure.ac: Update gthr-default.h lazily, to avoid unneeded
3208 * configure: Regenerate.
3210 2008-06-13 Eric Botcazou <ebotcazou@adacore.com>
3213 * builtins.c (get_memory_rtx): Test for the presence of DECL_SIZE_UNIT
3214 before evaluating it.
3216 2008-06-13 Jakub Jelinek <jakub@redhat.com>
3219 * c-decl.c (merge_decls): Don't clear DECL_EXTERNAL for
3220 nested inline functions.
3221 (start_decl, start_function): Don't invert DECL_EXTERNAL
3222 for nested inline functions.
3224 2008-06-13 Richard Sandiford <rdsandiford@googlemail.com>
3226 * config/mips/mips.md: Remove TARGET_DEBUG_D_MODE conditions from
3227 splits that must be made for correctness.
3229 2008-06-13 Richard Sandiford <rdsandiford@googlemail.com>
3231 * config/mips/mips.c (BUILTIN_AVAIL_NON_MIPS16): New macro.
3232 (AVAIL_NON_MIPS16): Likewise.
3233 (mips_builtin_description): Replace target_flags with a predicate.
3234 (paired_single, sb1_paired_single, mips3d, dsp, dspr2, dsp_32)
3235 (dspr2_32): New availability predicates.
3236 (MIPS_BUILTIN): New macro.
3237 (DIRECT_BUILTIN, CMP_SCALAR_BUILTINS, CMP_PS_BUILTINS)
3238 (CMP_4S_BUILTINS, MOVTF_BUILTINS, CMP_BUILTINS)
3239 (DIRECT_NO_TARGET_BUILTIN, BPOSGE_BUILTIN): Use it.
3240 Replace the TARGET_FLAGS parameters with AVAIL parameters.
3241 (mips_ps_bdesc, mips_sb1_bdesc, mips_dsp_bdesc)
3242 (mips_dsp_32only_bdesc): Merge into...
3243 (mips_builtins): ...this new array.
3244 (mips_bdesc_map, mips_bdesc_arrays): Delete.
3245 (mips_init_builtins): Update after above changes.
3246 (mips_expand_builtin_1): Merge into...
3247 (mips_expand_builtin): ...here and update after above changes.
3249 2008-06-12 Paul Brook <paul@codesourcery.com>
3251 * longlong.h (__arm__): Define count_leading_zeros.
3252 * config/arm/lib1funcs.asm (xxh, xxl, yyh, yyl): Define.
3253 (clzsi2, clzdi2): New functions.
3254 * config/arm/bpabi-v6m.S (xxh, xxl, yyh, yyl): Remove.
3255 * config/arm/bpabi.S (xxh, xxl, yyh, yyl): Remove.
3256 * config/arm/t-strongarm-elf (LIB1ASMFUNCS): Ditto.
3257 * config/arm/t-vxworks (LIB1ASMFUNCS): Ditto.
3258 * config/arm/t-pe (LIB1ASMFUNCS): Ditto.
3259 * config/arm/t-arm-elf (LIB1ASMFUNCS): Ditto.
3260 * config/arm/t-arm-coff (LIB1ASMFUNCS): Ditto.
3261 * config/arm/t-linux (LIB1ASMFUNCS): Ditto.
3262 * config/arm/t-symbian (LIB1ASMFUNCS): Ditto.
3263 * config/arm/t-wince-pe (LIB1ASMFUNCS): Ditto.
3265 2008-06-12 Kazu Hirata <kazu@codesourcery.com>
3267 * config/m68k/m68k.c (m68k_tune_flags): New.
3268 (override_options): Compute m68k_tune_flags.
3269 (MULL_COST, MULW_COST): Update for various variants of CFV2.
3270 * config/m68k/m68k.h (TUNE_MAC, TUNE_EMAC): New.
3272 2008-06-12 Jakub Jelinek <jakub@redhat.com>
3275 * omp-low.c (expand_omp_sections): Initialize l2 to avoid bogus warning.
3277 2008-06-12 Eric Botcazou <ebotcazou@adacore.com>
3279 * tree-inline.c (copy_body_r): Copy TREE_SIDE_EFFECTS along with
3280 TREE_THIS_VOLATILE on INDIRECT_REF nodes.
3282 2008-06-12 Eric Botcazou <ebotcazou@adacore.com>
3284 * expr.c (store_field): Do a block copy from BLKmode to BLKmode-like.
3285 (get_inner_reference): Use BLKmode for byte-aligned BLKmode bitfields.
3287 2008-06-12 Jakub Jelinek <jakub@redhat.com>
3290 * omp-low.c (expand_omp_sections): Handle #pragma omp sections with
3293 2008-06-12 Richard Guenther <rguenther@suse.de>
3295 PR tree-optimization/36345
3296 * tree-flow.h (struct ptr_info_def): Align escape_mask,
3297 add memory_tag_needed flag.
3298 (may_alias_p): Declare.
3299 * tree-ssa-alias.c (may_alias_p): Export.
3300 (set_initial_properties): Use memory_tag_needed flag.
3301 (update_reference_counts): Likewise.
3302 (reset_alias_info): Reset memory_tag_needed flag.
3303 (create_name_tags): Check memory_tag_needed flag.
3304 (dump_points_to_info_for): Dump it.
3305 * tree-ssa-structalias.c (struct variable_info): Remove
3306 directly_dereferenced flag.
3307 (new_var_info): Do not initialize it.
3308 (process_constraint_1): Do not set it.
3309 (update_alias_info): Set is_dereferenced flag.
3310 (set_uids_in_ptset): Use may_alias_p.
3311 (set_used_smts): Check memory_tag_needed flag.
3312 (find_what_p_points_to): Likewise. Pass is_dereferenced flag.
3313 * tree-ssa-alias.c (verify_flow_sensitive_alias_info): Check
3314 memory_tag_needed flag.
3315 * tree-ssa-alias-warnings.c (dsa_named_for): Try to recover
3318 2008-06-12 Kai Tietz <kai.tietz@onevision.com>
3320 * config/i386/i386.c (ix86_compute_frame_layout): Disable
3321 red zone for w64 abi.
3322 (ix86_expand_prologue): Likewise.
3323 (ix86_force_to_memory): Likewise.
3324 (ix86_free_from_memory): Likewise.
3326 2008-06-11 Edmar Wienskoski <edmar@freescale.com>
3329 * config/rs6000/rs6000.c (rs6000_override_options): Set
3330 rs6000_isel conditionally to the absence of comand line override.
3331 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS):
3332 Remove duplicate rs6000_isel setting.
3333 * config/rs6000/eabispe.h: Ditto.
3335 2008-06-11 Richard Guenther <rguenther@suse.de>
3337 * alias.c (get_alias_set): Use the element alias-set for arrays.
3338 (record_component_aliases): For arrays and vectors do nothing.
3339 * c-common.c (strict_aliasing_warning): Handle the cases
3340 of alias set zero explicitly.
3341 * Makefile.in (dfp.o-warn): Add -Wno-error.
3343 2008-06-11 Joseph Myers <joseph@codesourcery.com>
3345 * config.gcc (all_defaults): Add arch_32 arch_64 cpu_32 cpu_64
3347 (i[34567]86-*-* | x86_64-*-*): Add arch_32 arch_64 cpu_32 cpu_64
3348 tune_32 tune_64 to supported_defaults. Allow values not
3349 supporting 64-bit mode for arch_32, cpu_32 and tune_32 for
3350 x86_64. Do not override cpu_32 or cpu_64 values from target name.
3351 (i[34567]86-*-linux*, i[34567]86-*-solaris2.1[0-9]*): Only default
3352 with_cpu_64 to generic for 64-bit-supporting configurations, not
3353 with_cpu. Remove FIXMEs.
3354 * doc/install.texi (--with-cpu-32, --with-cpu-64, --with-arch-32,
3355 --with-arch-64, --with-tune-32, --with-tune-64): Document.
3356 * config/i386/i386.h (OPT_ARCH32, OPT_ARCH64): Define.
3357 (OPTION_DEFAULT_SPECS): Add tune_32, tune_64, cpu_32, cpu_64,
3358 arch_32 and arch_64.
3360 2008-06-11 Eric Botcazou <ebotcazou@adacore.com>
3361 Olivier Hainque <hainque@adacore.com>
3363 * builtins.c (get_memory_rtx): Accept byte-addressable bitfields.
3364 Use DECL_SIZE_UNIT to retrieve the size of the field.
3366 2008-06-11 Joseph Myers <joseph@codesourcery.com>
3368 * config/arm/arm.c (arm_init_neon_builtins): Move initialization
3369 with function calls after declarations. Lay out
3370 neon_float_type_node before further use.
3372 2008-06-11 Richard Guenther <rguenther@suse.de>
3374 * tree-flow.h (may_point_to_global_var): Declare.
3375 * tree-ssa-alias.c (may_point_to_global_var): New function.
3376 * tree-ssa-sink.c (is_hidden_global_store): Use it.
3378 2008-06-10 Kazu Hirata <kazu@codesourcery.com>
3380 * configure.ac: Teach that fido supports .debug_line.
3381 * configure: Regenerate.
3383 2008-06-10 Tom Tromey <tromey@redhat.com>
3385 * c-lex.c (fe_file_change): Pass SOURCE_LINE to start_source_file
3388 2008-06-10 Joseph Myers <joseph@codesourcery.com>
3390 * dfp.c (WORDS_BIGENDIAN): Define to 0 if not defined.
3391 (encode_decimal64, decode_decimal64, encode_decimal128,
3392 decode_decimal128): Reverse order of 32-bit parts of value if host
3393 and target endianness differ.
3395 2008-06-10 Vinodha Ramasamy <vinodha@google.com>
3397 * value_prob.c (tree_divmod_fixed_value_transform): Use gcov_type.
3398 Avoid division by 0.
3399 (tree_mod_pow2_value_transform): Likewise.
3400 (tree_ic_transform): Likewise.
3401 (tree_stringops_transform): Likewise.
3402 (tree_mod_subtract_transform): Likewise.
3403 * tree-inline-c (copy_bb): Corrected int type to gcov_type.
3404 (copy_edges_for_bb): Likewise.
3405 (initialize_cfun): Likewise.
3407 2008-06-10 Uros Bizjak <ubizjak@gmail.com>
3409 * config/i386/i386.md (*btdi_rex64): Change operand 1 predicate to
3410 nonmemory_operand. Add "N" operand constraint.
3412 (*jcc_btdi_mask_rex64): New instruction and split pattern.
3413 (*jcc_btsi_mask): Ditto.
3414 (*jcc_btsi_mask_1): Ditto.
3416 2008-06-10 Joseph Myers <joseph@codesourcery.com>
3418 * config/rs6000/rs6000.c (build_opaque_vector_type): Set
3419 TYPE_CANONICAL for copied element type.
3421 2008-06-10 Uros Bizjak <ubizjak@gmail.com>
3424 * config/i386/i386.c (ix86_tune_features) [TUNE_USE_BT]:
3425 Add m_CORE2 and m_GENERIC.
3426 * config/i386/predicates.md (bt_comparison_operator): New predicate.
3427 * config/i386/i386.md (*btdi_rex64): New instruction pattern.
3429 (*jcc_btdi_rex64): New instruction and split pattern.
3431 (*jcc_btsi_1): Ditto.
3432 (*btsq): Fix Intel asm dialect operand order.
3436 2008-06-09 Andy Hutchinson <hutchinsonandy@aim.com>
3439 * simplify-rtx.c (simplify_subreg): Add check for shift count
3442 2008-06-09 Richard Sandiford <rdsandiford@googlemail.com>
3444 * doc/md.texi: Synchronize with later constraints.md change.
3445 * longlong.h (umul_ppmm): Replace the MIPS asm implementation
3446 with a C implementation.
3447 * config/mips/mips.c (mips_legitimize_move): Remove MFHI and
3449 (mips_subword): Assume TImode for CONST_INTs if TARGET_64BIT.
3450 (mips_split_doubleword_move): Use special MTHI and MFHI instructions
3451 when moving to and from MD_REGNUM.
3452 (mips_output_move): Don't handle moves from GPRs to HI_REGNUM.
3453 Handle moves from LO_REGNUM to GPRs using MFLO, MACC or DMACC.
3454 Handle byte and halfword moves.
3455 (mips_hard_regno_mode_ok_p): Handle MD_REGS and DSP_ACC_REGS
3457 * config/mips/constraints.md (h): Turn into NO_REGS.
3458 (l, x): Update documentation.
3459 * config/mips/mips.md (UNSPEC_MFHILO): Delete.
3460 (UNSPEC_MFHI, UNSPEC_MTHI, UNSPEC_SET_HILO): New.
3461 (UNSPEC_TLS_LDM, UNSPEC_TLS_GET_TP): Renumber.
3462 (HILO): New mode iterator.
3464 (any_div): New code iterator.
3465 (u): Extend code attribute to div and udiv.
3466 (*add<mode>3_mips16, *movdi_64bit_mips16, *movsi_mips16): Use
3467 d_operand in the splitters. Remove redundant CONST_INT checks.
3468 (mulsi3_mult3, mul<mode>3_internal, mul<mode>3_r4000, *mul_acc_si)
3469 (*macc, *msac, *msac_using_macc, *macc2, *msac2, *mul_sub_si)
3470 (*muls): Remove "=h" clobbers. Adjust peephole2s and define_splits
3471 accordingly, using normal moves instead of unspecs to move LO into
3472 a GPR. Use d_operand and lo_operand instead of *_REG_P checks.
3473 (<u>mulsidi3): Handle expansion in C code.
3474 (<u>mulsidi3_32bit_internal): Rename to...
3475 (<u>mulsidi3_32bit): ...this.
3476 (<u>mulsidi3_32bit_r4000): Fix insn separator.
3477 (*<u>mulsidi3_64bit): Rename to...
3478 (<u>mulsidi3_64bit): ...this. Combine DImode "=h" and "=l" clobbers
3479 into a TImode "=x" clobber. In the split, use an UNSPEC_SET_HILO
3480 to set LO and HI to the multiplication result. Use a normal move
3481 for MFLO and an unspec for MFHI.
3482 (*<u>mulsidi3_64bit_parts): Replace with...
3483 (<u>mulsidi3_64bit_hilo): ...this new instruction.
3484 (<su>mulsi3_highpart): Extend to TARGET_FIX_R4000.
3485 (<su>mulsi3_highpart_internal): Turn into a define_insn_and_split
3486 and extend it to TARGET_FIX_R4000. Store the destination in a GPR
3487 instead of HI. Split the instruction into a separate multiplication
3488 and MFHI if !TARGET_FIX_R4000.
3489 (<su>muldi3_highpart): Likewise.
3490 (<su>mulsi3_highpart_mulhi_internal): Remove the first alternative
3491 and the "=h" clobber.
3492 (*<su>mulsi3_highpart_neg_mulhi_internal): Likewise.
3493 (<u>mulditi3): New expander.
3494 (<u>mulditi3_internal, <u>mulditi3_r4000): New patterns.
3495 (madsi): Remove "=h" clobber.
3496 (divmod<mode>4, udivmod<mode>4): Turn into define_insn_and_splits.
3497 Force the modulus result to be a GPR and split the instruction into
3498 a division followed by an MFHI after reload.
3499 (<u>divmod<GPR:mode>4_hilo_<HILO:mode>): New instruction.
3500 (*lea_high64): Use d_operand in the define_peephole2. Likewise
3501 the MIPS16 HIGH define_split.
3502 (*movdi_32bit, *movdi_gp32_fp64, *movdi_32bit_mips16): Change type
3503 of acc<->gpr moves to "multi".
3504 (*movdi_64bit): Replace the single "x" alternative with
3505 alternatives for moving into and out of "a".
3506 (*movhi_internal, *movqi_internal): Likewise. Use mips_output_move.
3507 (*movsi_internal): Extend the "d<-A" alternative to "d<-a".
3508 (*movdi_64bit_mips16, *movsi_mips16): Add d<-a alternatives.
3509 Use d_operand in the splitters. Remove redundant CONST_INT checks.
3510 (*movhi_mips16, *movqi_mips16): Likewise. Use mips_output_move.
3511 (movti): New expander.
3512 (*movti, *movti_mips16): New insns.
3513 (mfhilo_<mode>, *mfhilo_<mode>, *mfhilo_<mode>_macc): Delete.
3514 (mfhi<GPR:mode>_<HILO:mode>): New pattern.
3515 (mthi<GPR:mode>_<HILO:mode>): Likewise.
3516 * config/mips/predicates.md (fpr_operand): Delete.
3517 (d_operand): New predicate.
3519 2008-06-09 Michael Meissner <michael.meissner@amd.com>
3521 * config.gcc (i[34567]86-*-*): Put test in quotes to prevent
3522 failure on some Bourne shells.
3523 (x86_64-*-*): Ditto.
3525 2008-06-09 Kai Tietz <kai.tietz@onevision.com>
3527 * config/i386/cygming.h (TARGET_SUBTARGET64_DEFAULT): New.
3529 2008-06-09 Eric Botcazou <ebotcazou@libertysurf.fr>
3531 * doc/install.texi (*-*-solaris2*): Remove obsolete contents.
3532 (sparc-sun-solaris2*): Likewise.
3534 2008-06-09 Arnaud Charlet <charlet@adacore.com
3536 * doc/install.texi: Update requirements to build the Ada compiler.
3538 2008-06-08 Steven Bosscher <stevenb.gcc@gmail.com>
3540 * df-scan.c (struct df_scan_problem_data): Remove the
3541 mw_link_pool alloc pool.
3542 (df_scan_free_internal): Don't free it.
3543 (df_scan_alloc): Don't allocate it.
3544 * df.h (struct df_link): Update comment.
3546 2008-06-08 Nathan Sidwell <nathan@codesourcery.com>
3548 * except.h: Correct checks for when SJLJ exceptions must be used.
3550 2008-06-08 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
3552 * doc/invoke.texi (Wenum-compare): Mention that it is enabled by
3555 2008-06-08 Joseph Myers <joseph@codesourcery.com>
3557 PR tree-optimization/36218
3558 * configure.ac: Use LDFLAGS="${LDFLAGS_FOR_BUILD}" when running
3559 configure for the build system.
3560 (BUILD_LDFLAGS): Define.
3561 * configure: Regenerate.
3562 * Makefile.in (BUILD_LDFLAGS): Define to @BUILD_LDFLAGS@.
3564 2008-07-08 Anatoly Sokolov <aesok@post.ru>
3567 * config/avr/avr.h (HARD_REGNO_RENAME_OK): Define.
3568 * config/avr/avr.c (avr_hard_regno_rename_ok): New function.
3569 * config/avr/avr-protos.h (avr_hard_regno_rename_ok): New prototype.
3571 2008-06-07 Danny Smith <dannysmith@users.sourceforge.net>
3573 * config/i386/cygming.h (MAYBE_UWIN_CPP_BUILTINS): Remove.
3575 2008-06-07 Joseph Myers <joseph@codesourcery.com>
3577 * config.gcc (Obsolete configurations): Remove list of
3579 (Unsupported targets list): Add *-*-linux*aout*, *-*-linux*libc1*,
3580 *-*-solaris2.[0-6], *-*-solaris2.[0-6].*, *-*-sysv*. Remove other
3581 targets matched by those patterns.
3582 (strongarm*-*-*, ep9312*-*-*, xscale-*-*, parisc*-*-*,
3583 m680[012]0-*-*, *-*-linux*libc1*, *-*-linux*aout*,
3584 alpha*-*-unicosmk*, strongarm*-*-freebsd*, ep9312-*-elf,
3585 arm*-*-kaos*, cris-*-aout, parisc*64*-*-linux*, parisc*-*-linux*,
3586 hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-bsd*,
3587 i[34567]86-sequent-ptx4*, i[34567]86-sequent-sysv4*,
3588 i[34567]86-*-beoself*, i[34567]86-*-beos*, i[34567]86-*-sco3.2v5*,
3589 i[34567]86-*-sysv5*, i[34567]86-*-sysv4*, i[34567]86-*-uwin*,
3590 i[34567]86-*-kaos*, m68020-*-elf*, m68010-*-netbsdelf*,
3591 mips-wrs-windiss, mt-*-elf, powerpc-*-beos*, powerpc-*-chorusos*,
3592 powerpc-wrs-windiss*, powerpcle-*-sysv*, powerpc-*-kaos*,
3593 powerpcle-*-kaos*, sh*-*-kaos*, sparc-*-sysv4*, strongarm-*-elf*,
3594 strongarm-*-pe, strongarm-*-kaos*, vax-*-bsd*, vax-*-sysv*,
3595 vax-*-ultrix*, xscale-*-elf, xscale-*-coff,
3596 i[34567]86-*-linux*aout*, i[34567]86-*-linux*libc1): Remove.
3597 Make code for Solaris 7 and greater unconditional for Solaris.
3598 (ep9312-*-*, parisc1*, m680[012]0-*-*, parisc*-*-*, mt-*-*):
3599 Remove --with-* handling.
3600 * config/rs6000/sysv4.h (-mwindiss): Remove from all specs.
3601 (LIB_WINDISS_SPEC, CPP_OS_WINDISS_SPEC, STARTFILE_WINDISS_SPEC,
3602 ENDFILE_WINDISS_SPEC, LINK_START_WINDISS_SPEC,
3603 LINK_OS_WINDISS_SPEC): Remove.
3604 * config/rs6000/sysv4.opt (mwindiss): Remove.
3605 * configure.ac (strongarm*-*-*, xscale*-*-*): Remove.
3606 * configure: Regenerate.
3607 * doc/cpp.texi: Don't mention BeOS.
3608 * doc/extend.texi (interrupt): Don't mention MS1.
3609 * doc/install.texi: (i386-@var{any}-sysv, m68k-bull-sysv,
3610 m68k-hp-hpux, m68000-hp-hpux, m68000-att-sysv,
3611 alphaev5-cray-unicosmk*, xscale-*-*, i?86-*-linux*aout,
3612 i?86-*-sco3.2v5*, i?86-*-udk, m68k-hp-hpux, powerpc-*-sysv4,
3613 powerpc-*-sysv4, powerpcle-*-sysv4, *-*-sysv*, vax-dec-ultrix):
3615 * doc/invoke.texi (MT Options): Remove.
3616 (-mwindiss): Remove.
3617 (CRIS Options): Remove cris-axis-aout references.
3618 (HPPA Options): Don't mention hppa1.1-*-pro.
3619 * doc/md.texi: (MorphoTech family): Remove.
3620 * libgcc2.c: Don't handle UWIN.
3621 * config/alpha/t-unicosmk: Remove.
3622 * config/alpha/unicosmk.h: Remove.
3623 * config/arm/kaos-arm.h: Remove.
3624 * config/arm/kaos-strongarm.h: Remove.
3625 * config/arm/strongarm-coff.h: Remove.
3626 * config/arm/strongarm-elf.h: Remove.
3627 * config/arm/strongarm-pe.h: Remove.
3628 * config/arm/t-strongarm-pe: Remove.
3629 * config/arm/t-xscale-coff: Remove.
3630 * config/arm/t-xscale-elf: Remove.
3631 * config/arm/xscale-coff.h: Remove.
3632 * config/arm/xscale-elf.h: Remove.
3633 * config/chorus.h: Remove.
3634 * config/cris/aout.h: Remove.
3635 * config/cris/aout.opt: Remove.
3636 * config/cris/t-aout: Remove.
3637 * config/i386/beos-elf.h: Remove.
3638 * config/i386/kaos-i386.h: Remove.
3639 * config/i386/ptx4-i.h: Remove.
3640 * config/i386/sco5.h: Remove.
3641 * config/i386/sco5.opt: Remove.
3642 * config/i386/sysv4-cpp.h: Remove.
3643 * config/i386/sysv5.h: Remove.
3644 * config/i386/t-beos: Remove.
3645 * config/i386/t-sco5: Remove.
3646 * config/i386/t-uwin: Remove.
3647 * config/i386/uwin.asm: Remove.
3648 * config/i386/uwin.h: Remove.
3649 * config/kaos.h: Remove.
3650 * config/mips/windiss.h: Remove.
3651 * config/mt: Remove directory.
3652 * config/pa/pa-osf.h: Remove.
3653 * config/pa/pa-pro-end.h: Remove.
3654 * config/pa/t-pro: Remove.
3655 * config/ptx4.h: Remove.
3656 * config/rs6000/beos.h: Remove.
3657 * config/rs6000/kaos-ppc.h: Remove.
3658 * config/rs6000/t-beos: Remove.
3659 * config/rs6000/windiss.h: Remove.
3660 * config/sh/kaos-sh.h: Remove.
3661 * config/sol2-6.h: Remove.
3662 * config/sparc/sol26-sld.h: Remove.
3663 * config/sparc/sysv4-only.h: Remove.
3664 * config/vax/bsd.h: Remove.
3665 * config/vax/t-memfuncs: Remove.
3666 * config/vax/ultrix.h: Remove.
3667 * config/vax/vaxv.h: Remove.
3668 * config/windiss.h: Remove.
3670 2008-06-06 Uros Bizjak <ubizjak@gmail.com>
3672 PR rtl-optimization/36438
3673 * cse.c (fold_rtx) [ASHIFT, LSHIFTRT, ASHIFTRT]: Break out early
3674 for vector shifts with constant scalar shift operands.
3676 2008-06-06 Sandip Matte <sandip@rmicorp.com>
3678 * doc/invoke.texi: Document -march=xlr.
3679 * config/mips/xlr.md: New file.
3680 * config/mips/mips.md: Include it.
3682 * config/mips/mips.h (PROCESSOR_XLR): New processor_type.
3683 * config/mips/mips.c (mips_cpu_info_table): Add an XLR entry.
3684 (mips_rtx_cost_data): Likewise.
3686 2008-06-06 Nathan Froyd <froydnj@codesourcery.com>
3688 * config/rs6000/rs6000.c (rs6000_mode_dependent_address): Remove
3689 PRE_INC and PRE_DEC cases.
3691 2008-06-06 Jakub Jelinek <jakub@redhat.com>
3693 PR rtl-optimization/36419
3694 * except.c (expand_resx_expr): Call do_pending_stack_adjust () before
3695 the emitting jump insn.
3698 * gimplify.c (gimplify_expr) <case TRUTH_NOT_EXPR>: If *expr_p type
3699 is not bool, boolify the whole *expr_p and convert to the desired type.
3701 2008-06-06 Jakub Jelinek <jakub@redhat.com>
3703 * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP value to 200805.
3704 * langhooks.h (struct lang_hooks_for_decls): Add omp_finish_clause.
3705 Add omp_private_outer_ref hook, add another argument to
3706 omp_clause_default_ctor hook.
3707 * langhooks-def.h (LANG_HOOKS_OMP_FINISH_CLAUSE): Define.
3708 (LANG_HOOKS_OMP_PRIVATE_OUTER_REF): Define.
3709 (LANG_HOOKS_OMP_CLAUSE_DEFAULT_CTOR): Change to
3710 hook_tree_tree_tree_tree_null.
3711 (LANG_HOOKS_DECLS): Add LANG_HOOKS_OMP_FINISH_CLAUSE and
3712 LANG_HOOKS_OMP_PRIVATE_OUTER_REF.
3713 * hooks.c (hook_tree_tree_tree_tree_null): New function.
3714 * hooks.h (hook_tree_tree_tree_tree_null): New prototype.
3715 * tree.def (OMP_TASK): New tree code.
3716 * tree.h (OMP_TASK_COPYFN, OMP_TASK_ARG_SIZE, OMP_TASK_ARG_ALIGN,
3717 OMP_CLAUSE_PRIVATE_OUTER_REF, OMP_CLAUSE_LASTPRIVATE_STMT,
3718 OMP_CLAUSE_COLLAPSE_ITERVAR, OMP_CLAUSE_COLLAPSE_COUNT,
3719 OMP_TASKREG_CHECK, OMP_TASKREG_BODY, OMP_TASKREG_CLAUSES,
3720 OMP_TASKREG_FN, OMP_TASKREG_DATA_ARG, OMP_TASK_BODY,
3721 OMP_TASK_CLAUSES, OMP_TASK_FN, OMP_TASK_DATA_ARG,
3722 OMP_CLAUSE_COLLAPSE_EXPR): Define.
3723 (enum omp_clause_default_kind): Add OMP_CLAUSE_DEFAULT_FIRSTPRIVATE.
3724 (OMP_DIRECTIVE_P): Add OMP_TASK.
3725 (OMP_CLAUSE_COLLAPSE, OMP_CLAUSE_UNTIED): New clause codes.
3726 (OMP_CLAUSE_SCHEDULE_AUTO): New schedule kind.
3727 * tree.c (omp_clause_code_name): Add OMP_CLAUSE_COLLAPSE
3728 and OMP_CLAUSE_UNTIED entries.
3729 (omp_clause_num_ops): Likewise. Increase OMP_CLAUSE_LASTPRIVATE
3731 (walk_tree_1): Handle OMP_CLAUSE_COLLAPSE and OMP_CLAUSE_UNTIED.
3732 Walk OMP_CLAUSE_LASTPRIVATE_STMT.
3733 * tree-pretty-print.c (dump_omp_clause): Handle
3734 OMP_CLAUSE_SCHEDULE_AUTO, OMP_CLAUSE_UNTIED, OMP_CLAUSE_COLLAPSE,
3735 OMP_CLAUSE_DEFAULT_FIRSTPRIVATE.
3736 (dump_generic_node): Handle OMP_TASK and collapsed OMP_FOR loops.
3737 * c-omp.c (c_finish_omp_for): Allow pointer iterators. Remove
3738 warning about unsigned iterators. Change decl/init/cond/incr
3739 arguments to TREE_VECs, check arguments for all collapsed loops.
3740 (c_finish_omp_taskwait): New function.
3741 (c_split_parallel_clauses): Put OMP_CLAUSE_COLLAPSE clause to
3743 * c-parser.c (c_parser_omp_for_loop): Parse collapsed loops. Call
3744 default_function_array_conversion on init. Add par_clauses argument.
3745 If decl is present in parallel's lastprivate clause, change it to
3746 shared and add lastprivate clause for decl to OMP_FOR_CLAUSES.
3747 Add clauses argument, on success set OMP_FOR_CLAUSES to it. Look up
3748 collapse count in clauses.
3749 (c_parser_omp_for, c_parser_omp_parallel): Adjust
3750 c_parser_omp_for_loop callers.
3751 (OMP_FOR_CLAUSE_MASK): Add 1 << PRAGMA_OMP_CLAUSE_COLLAPSE.
3752 (c_parser_pragma): Handle PRAGMA_OMP_TASKWAIT.
3753 (c_parser_omp_clause_name): Handle collapse and untied clauses.
3754 (c_parser_omp_clause_collapse, c_parser_omp_clause_untied): New
3756 (c_parser_omp_clause_schedule): Handle schedule(auto).
3757 Include correct location in the error message.
3758 (c_parser_omp_all_clauses): Handle PRAGMA_OMP_CLAUSE_COLLAPSE
3759 and PRAGMA_OMP_CLAUSE_UNTIED.
3760 (OMP_TASK_CLAUSE_MASK): Define.
3761 (c_parser_omp_task, c_parser_omp_taskwait): New functions.
3762 (c_parser_omp_construct): Handle PRAGMA_OMP_TASK.
3763 * tree-nested.c (convert_nonlocal_omp_clauses,
3764 convert_local_omp_clauses): Handle OMP_CLAUSE_LASTPRIVATE_STMT,
3765 OMP_CLAUSE_REDUCTION_INIT, OMP_CLAUSE_REDUCTION_MERGE,
3766 OMP_CLAUSE_COLLAPSE and OMP_CLAUSE_UNTIED.
3767 Don't handle TREE_STATIC or DECL_EXTERNAL VAR_DECLs in
3769 (conver_nonlocal_reference, convert_local_reference,
3770 convert_call_expr): Handle OMP_TASK the same as OMP_PARALLEL. Use
3771 OMP_TASKREG_* macros rather than OMP_PARALLEL_*.
3772 (walk_omp_for): Adjust for OMP_FOR_{INIT,COND,INCR} changes.
3773 * tree-gimple.c (is_gimple_stmt): Handle OMP_TASK.
3774 * c-tree.h (c_begin_omp_task, c_finish_omp_task): New prototypes.
3775 * c-pragma.h (PRAGMA_OMP_TASK, PRAGMA_OMP_TASKWAIT): New.
3776 (PRAGMA_OMP_CLAUSE_COLLAPSE, PRAGMA_OMP_CLAUSE_UNTIED): New.
3777 * c-typeck.c (c_begin_omp_task, c_finish_omp_task): New functions.
3778 (c_finish_omp_clauses): Handle OMP_CLAUSE_COLLAPSE and
3780 * c-pragma.c (init_pragma): Init omp task and omp taskwait pragmas.
3781 * c-common.h (c_finish_omp_taskwait): New prototype.
3782 * gimple-low.c (lower_stmt): Handle OMP_TASK.
3783 * tree-parloops.c (create_parallel_loop): Create 1 entry
3784 vectors for OMP_FOR_{INIT,COND,INCR}.
3785 * tree-cfg.c (remove_useless_stmts_1): Handle OMP_* containers.
3786 (make_edges): Handle OMP_TASK.
3787 * tree-ssa-operands.c (get_expr_operands): Handle collapsed OMP_FOR
3788 loops, adjust for OMP_FOR_{INIT,COND,INCR} changes.
3789 * tree-inline.c (estimate_num_insns_1): Handle OMP_TASK.
3790 * builtin-types.def (BT_PTR_ULONGLONG, BT_PTR_FN_VOID_PTR_PTR,
3791 BT_FN_BOOL_ULONGLONGPTR_ULONGLONGPTR,
3792 BT_FN_BOOL_BOOL_ULL_ULL_ULL_ULLPTR_ULLPTR,
3793 BT_FN_BOOL_BOOL_ULL_ULL_ULL_ULL_ULLPTR_ULLPTR,
3794 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT): New.
3795 * omp-builtins.def (BUILT_IN_GOMP_TASK, BUILT_IN_GOMP_TASKWAIT,
3796 BUILT_IN_GOMP_LOOP_ULL_STATIC_START,
3797 BUILT_IN_GOMP_LOOP_ULL_DYNAMIC_START,
3798 BUILT_IN_GOMP_LOOP_ULL_GUIDED_START,
3799 BUILT_IN_GOMP_LOOP_ULL_RUNTIME_START,
3800 BUILT_IN_GOMP_LOOP_ULL_ORDERED_STATIC_START,
3801 BUILT_IN_GOMP_LOOP_ULL_ORDERED_DYNAMIC_START,
3802 BUILT_IN_GOMP_LOOP_ULL_ORDERED_GUIDED_START,
3803 BUILT_IN_GOMP_LOOP_ULL_ORDERED_RUNTIME_START,
3804 BUILT_IN_GOMP_LOOP_ULL_STATIC_NEXT,
3805 BUILT_IN_GOMP_LOOP_ULL_DYNAMIC_NEXT,
3806 BUILT_IN_GOMP_LOOP_ULL_GUIDED_NEXT,
3807 BUILT_IN_GOMP_LOOP_ULL_RUNTIME_NEXT,
3808 BUILT_IN_GOMP_LOOP_ULL_ORDERED_STATIC_NEXT,
3809 BUILT_IN_GOMP_LOOP_ULL_ORDERED_DYNAMIC_NEXT,
3810 BUILT_IN_GOMP_LOOP_ULL_ORDERED_GUIDED_NEXT,
3811 BUILT_IN_GOMP_LOOP_ULL_ORDERED_RUNTIME_NEXT): New builtins.
3812 * gimplify.c (gimplify_omp_for): Allow pointer type for decl,
3813 handle POINTER_PLUS_EXPR. If loop counter has been replaced and
3814 original iterator is present in lastprivate clause or if
3815 collapse > 1, set OMP_CLAUSE_LASTPRIVATE_STMT. Handle collapsed
3816 OMP_FOR loops, adjust for OMP_FOR_{INIT,COND,INCR} changes.
3817 (gimplify_expr): Handle OMP_SECTIONS_SWITCH and OMP_TASK.
3818 (enum gimplify_omp_var_data): Add GOVD_PRIVATE_OUTER_REF.
3819 (omp_notice_variable): Set GOVD_PRIVATE_OUTER_REF if needed,
3820 if it is set, lookup var in outer contexts too. Handle
3821 OMP_CLAUSE_DEFAULT_FIRSTPRIVATE. Handle vars that are supposed
3822 to be implicitly determined firstprivate for task regions.
3823 (gimplify_scan_omp_clauses): Set GOVD_PRIVATE_OUTER_REF if needed,
3824 if it is set, lookup var in outer contexts too. Set
3825 OMP_CLAUSE_PRIVATE_OUTER_REF if GOVD_PRIVATE_OUTER_REF is set.
3826 Handle OMP_CLAUSE_LASTPRIVATE_STMT, OMP_CLAUSE_COLLAPSE and
3827 OMP_CLAUSE_UNTIED. Take region_type as last argument
3828 instead of in_parallel and in_combined_parallel.
3829 (gimplify_omp_parallel, gimplify_omp_for, gimplify_omp_workshare):
3831 (gimplify_adjust_omp_clauses_1): Set OMP_CLAUSE_PRIVATE_OUTER_REF if
3832 GOVD_PRIVATE_OUTER_REF is set. Call omp_finish_clause langhook.
3833 (new_omp_context): Set default_kind to
3834 OMP_CLAUSE_DEFAULT_UNSPECIFIED for OMP_TASK regions.
3835 (omp_region_type): New enum.
3836 (struct gimplify_omp_ctx): Remove is_parallel and is_combined_parallel
3837 fields, add region_type.
3838 (new_omp_context): Take region_type as argument instead of is_parallel
3839 and is_combined_parallel.
3840 (gimple_add_tmp_var, omp_firstprivatize_variable, omp_notice_variable,
3841 omp_is_private, omp_check_private): Adjust ctx->is_parallel and
3842 ctx->is_combined_parallel checks.
3843 (gimplify_omp_task): New function.
3844 (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_COLLAPSE and
3846 * omp-low.c (extract_omp_for_data): Use schedule(static)
3847 for schedule(auto). Handle pointer and unsigned iterators.
3848 Compute fd->iter_type. Handle POINTER_PLUS_EXPR increments.
3849 Add loops argument. Extract data for collapsed OMP_FOR loops.
3850 (expand_parallel_call): Assert sched_kind isn't auto,
3851 map runtime schedule to index 3.
3852 (struct omp_for_data_loop): New type.
3853 (struct omp_for_data): Remove v, n1, n2, step, cond_code fields.
3854 Add loop, loops, collapse and iter_type fields.
3855 (workshare_safe_to_combine_p): Disallow combined for if
3856 iter_type is unsigned long long. Don't combine collapse > 1 loops
3857 unless all bounds and steps are constant. Adjust extract_omp_for_data
3859 (expand_omp_for_generic): Handle pointer, unsigned and long long
3860 iterators. Handle collapsed OMP_FOR loops. Adjust
3861 for struct omp_for_data changes. If libgomp function doesn't return
3862 boolean_type_node, add comparison of the return value with 0.
3863 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk): Handle
3864 pointer, unsigned and long long iterators. Adjust for struct
3865 omp_for_data changes.
3866 (expand_omp_for): Assert sched_kind isn't auto, map runtime schedule
3867 to index 3. Use GOMP_loop_ull*{start,next} if iter_type is
3868 unsigned long long. Allocate loops array, pass it to
3869 extract_omp_for_data. For collapse > 1 loops use always
3870 expand_omp_for_generic.
3871 (omp_context): Add sfield_map and srecord_type fields.
3872 (is_task_ctx, lookup_sfield): New functions.
3873 (use_pointer_for_field): Use is_task_ctx helper. Change first
3874 argument's type from const_tree to tree. Clarify comment.
3875 In OMP_TASK disallow copy-in/out sharing.
3876 (build_sender_ref): Call lookup_sfield instead of lookup_field.
3877 (install_var_field): Add mask argument. Populate both record_type
3878 and srecord_type if needed.
3879 (delete_omp_context): Destroy sfield_map, clear DECL_ABSTRACT_ORIGIN
3881 (fixup_child_record_type): Also remap FIELD_DECL's DECL_SIZE{,_UNIT}
3882 and DECL_FIELD_OFFSET.
3883 (scan_sharing_clauses): Adjust install_var_field callers. For
3884 firstprivate clauses on explicit tasks allocate the var by value in
3885 record_type unconditionally, rather than by reference.
3886 Handle OMP_CLAUSE_PRIVATE_OUTER_REF. Scan OMP_CLAUSE_LASTPRIVATE_STMT.
3887 Use is_taskreg_ctx instead of is_parallel_ctx.
3888 Handle OMP_CLAUSE_COLLAPSE and OMP_CLAUSE_UNTIED.
3889 (create_omp_child_function_name): Add task_copy argument, use
3890 *_omp_cpyfn* names if it is true.
3891 (create_omp_child_function): Add task_copy argument, if true create
3892 *_omp_cpyfn* helper function.
3893 (scan_omp_parallel): Adjust create_omp_child_function callers.
3894 Rename parallel_nesting_level to taskreg_nesting_level.
3895 (scan_omp_task): New function.
3896 (lower_rec_input_clauses): Don't run constructors for firstprivate
3897 explicit task vars which are initialized by *_omp_cpyfn*.
3898 Pass outer var ref to omp_clause_default_ctor hook if
3899 OMP_CLAUSE_PRIVATE_OUTER_REF or OMP_CLAUSE_LASTPRIVATE.
3900 Replace OMP_CLAUSE_REDUCTION_PLACEHOLDER decls in
3901 OMP_CLAUSE_REDUCTION_INIT.
3902 (lower_send_clauses): Clear DECL_ABSTRACT_ORIGIN if in task to
3903 avoid duplicate setting of fields. Handle
3904 OMP_CLAUSE_PRIVATE_OUTER_REF.
3905 (lower_send_shared_vars): Use srecord_type if non-NULL. Don't
3906 copy-out if TREE_READONLY, only copy-in.
3907 (expand_task_copyfn): New function.
3908 (expand_task_call): New function.
3909 (struct omp_taskcopy_context): New type.
3910 (task_copyfn_copy_decl, task_copyfn_remap_type, create_task_copyfn):
3912 (lower_omp_parallel): Rename to...
3913 (lower_omp_taskreg): ... this. Use OMP_TASKREG_* macros where needed.
3914 Call create_task_copyfn if srecord_type is needed. Adjust
3916 (task_shared_vars): New variable.
3917 (check_omp_nesting_restrictions): Warn if work-sharing,
3918 barrier, master or ordered region is closely nested inside OMP_TASK.
3919 Add warnings for barrier if closely nested inside of work-sharing,
3920 ordered, or master region.
3921 (scan_omp_1): Call check_omp_nesting_restrictions even for
3922 GOMP_barrier calls. Rename parallel_nesting_level to
3923 taskreg_nesting_level. Handle OMP_TASK.
3924 (lower_lastprivate_clauses): Even if some lastprivate is found on a
3925 work-sharing construct, continue looking for them on parent parallel
3927 (lower_omp_for_lastprivate): Add lastprivate clauses
3928 to the beginning of dlist rather than end. Adjust for struct
3929 omp_for_data changes.
3930 (lower_omp_for): Add rec input clauses before OMP_FOR_PRE_BODY,
3931 not after it. Handle collapsed OMP_FOR loops, adjust for
3932 OMP_FOR_{INIT,COND,INCR} changes, adjust extract_omp_for_data caller.
3933 (get_ws_args_for): Adjust extract_omp_for_data caller.
3934 (scan_omp_for): Handle collapsed OMP_FOR
3935 loops, adjust for OMP_FOR_{INIT,COND,INCR} changes.
3936 (lower_omp_single_simple): If libgomp function doesn't return
3937 boolean_type_node, add comparison of the return value with 0.
3938 (diagnose_sb_1, diagnose_sb_2): Handle collapsed OMP_FOR
3939 loops, adjust for OMP_FOR_{INIT,COND,INCR} changes. Handle OMP_TASK.
3940 (parallel_nesting_level): Rename to...
3941 (taskreg_nesting_level): ... this.
3942 (is_taskreg_ctx): New function.
3943 (build_outer_var_ref, omp_copy_decl): Use is_taskreg_ctx instead
3945 (execute_lower_omp): Rename parallel_nesting_level to
3946 taskreg_nesting_level.
3947 (expand_omp_parallel): Rename to...
3948 (expand_omp_taskreg): ... this. Use OMP_TASKREG_* macros where needed.
3949 Call omp_task_call for OMP_TASK regions.
3950 (expand_omp): Adjust caller, handle OMP_TASK.
3951 (lower_omp_1): Adjust lower_omp_taskreg caller, handle OMP_TASK.
3953 * bitmap.c (bitmap_default_obstack_depth): New variable.
3954 (bitmap_obstack_initialize, bitmap_obstack_release): Do nothing
3955 if argument is NULL and bitmap_default_obstack is already initialized.
3956 * ipa-struct-reorg.c (do_reorg_1): Call bitmap_obstack_release
3958 * matrix-reorg.c (matrix_reorg): Likewise.
3960 2008-06-06 Uros Bizjak <ubizjak@gmail.com>
3962 * config/i386/i386.md (*indirect_jump): Macroize using P
3963 mode iterator. Remove !TARGET_64BIT from insn constraints.
3964 (*tablejump_1): Ditto.
3965 (*indirect_jump_rex64): Remove insn pattern.
3966 (*tablejump_1_rex64): Ditto.
3967 (eh_return_<mode>): Macroize using P mode iterator from eh_return_di
3968 and eh_return_si insn patterns.
3970 2008-06-06 Richard Guenther <rguenther@suse.de>
3972 * tree-ssa-structalias.c (merge_smts_into): Remove.
3973 (find_what_p_points_to): Do not bother to compute the
3974 points-to set for pt_anything pointers.
3975 * tree-ssa-operands.c (get_addr_dereference_operands): No NMT
3976 for pt_anything pointers is ok.
3978 2008-06-06 Jan Hubicka <jh@suse.cz>
3980 * passes.c (execute_ipa_pass_list): Do not regenerate summaries.
3982 2008-06-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3984 * cgraph.c: Fix typos in comments.
3985 (cgraph_availability_names): Fix string typo.
3986 * fold-const.c: Fix typos in comments.
3987 (fold_binary): Fix typo in warning.
3988 * genautomata.c: Fix typos in comments.
3989 (check_presence_pattern_sets): Fix typo in local variable.
3990 (output_description): Fix typo in output.
3991 * ggc-zone.c (ggc_pch_finish): Fix typo in error message.
3992 * hwint.h: Likewise.
3993 * matrix-reorg.c (check_allocation_function): Likewise.
3994 * omega.c (smooth_weird_equations): Likewise.
3995 * auto-inc-dec.c: Fix typos in comments.
3996 * bb-reorder.c: Likewise.
3997 * builtins.c: Likewise.
3998 * c-common.c: Likewise.
3999 * c-cppbuiltin.c: Likewise.
4000 * c-parser.c: Likewise.
4001 * c-pretty-print.c: Likewise.
4002 * cfgcleanup.c: Likewise.
4003 * cfgexpand.c: Likewise.
4004 * cfghooks.c: Likewise.
4005 * cfglayout.c: Likewise.
4006 * cfgloopmanip.c: Likewise.
4007 * cgraphunit.c: Likewise.
4008 * coverage.c: Likewise.
4009 * dbxout.c: Likewise.
4010 * df-byte-scan.c: Likewise.
4011 * df-core.c: Likewise.
4012 * df-problems.c: Likewise.
4013 * df-scan.c: Likewise.
4015 * dominance.c: Likewise.
4016 * domwalk.c: Likewise.
4018 * dwarf2out.c: Likewise.
4019 * emit-rtl.c: Likewise.
4020 * et-forest.c: Likewise.
4021 * function.c: Likewise.
4022 * function.h: Likewise.
4024 * gcov-io.c: Likewise.
4027 * genattrtab.c: Likewise.
4028 * ggc-page.c: Likewise.
4029 * gimplify.c: Likewise.
4030 * gthr-lynx.h: Likewise.
4031 * haifa-sched.c: Likewise.
4032 * ipa-cp.c: Likewise.
4033 * ipa-inline.c: Likewise.
4034 * ipa-prop.h: Likewise.
4035 * ipa-pure-const.c: Likewise.
4036 * ipa-struct-reorg.c: Likewise.
4037 * ipa-struct-reorg.h: Likewise.
4038 * ipa-type-escape.c: Likewise.
4040 * loop-doloop.c: Likewise.
4041 * mips-tfile.c: Likewise.
4042 * mkmap-flat.awk: Likewise.
4043 * mkmap-symver.awk: Likewise.
4044 * modulo-sched.c: Likewise.
4045 * omp-low.c: Likewise.
4046 * optabs.c: Likewise.
4047 * optabs.h: Likewise.
4049 * passes.c: Likewise.
4050 * postreload-gcse.c: Likewise.
4051 * postreload.c: Likewise.
4052 * predict.c: Likewise.
4053 * pretty-print.h: Likewise.
4054 * profile.c: Likewise.
4055 * protoize.c: Likewise.
4056 * ra-conflict.c: Likewise.
4058 * recog.c: Likewise.
4059 * regclass.c: Likewise.
4061 * reload.c: Likewise.
4062 * rtl-error.c: Likewise.
4063 * rtlanal.c: Likewise.
4065 * sched-rgn.c: Likewise.
4068 * target.h: Likewise.
4069 * tree-dfa.c: Likewise.
4070 * tree-eh.c: Likewise.
4071 * tree-flow-inline.h: Likewise.
4072 * tree-inline.c: Likewise.
4073 * tree-into-ssa.c: Likewise.
4074 * tree-loop-distribution.c: Likewise.
4075 * tree-nested.c: Likewise.
4076 * tree-parloops.c: Likewise.
4077 * tree-pass.h: Likewise.
4078 * tree-pretty-print.c: Likewise.
4079 * tree-profile.c: Likewise.
4080 * tree-scalar-evolution.c: Likewise.
4081 * tree-sra.c: Likewise.
4082 * tree-ssa-alias-warnings.c: Likewise.
4083 * tree-ssa-ccp.c: Likewise.
4084 * tree-ssa-coalesce.c: Likewise.
4085 * tree-ssa-dom.c: Likewise.
4086 * tree-ssa-dse.c: Likewise.
4087 * tree-ssa-forwprop.c: Likewise.
4088 * tree-ssa-live.c: Likewise.
4089 * tree-ssa-live.h: Likewise.
4090 * tree-ssa-loop-im.c: Likewise.
4091 * tree-ssa-loop-ivopts.c: Likewise.
4092 * tree-ssa-loop-niter.c: Likewise.
4093 * tree-ssa-loop-prefetch.c: Likewise.
4094 * tree-ssa-phiopt.c: Likewise.
4095 * tree-ssa-phiprop.c: Likewise.
4096 * tree-ssa-sccvn.c: Likewise.
4097 * tree-ssa-ter.c: Likewise.
4098 * tree-ssa-threadupdate.c: Likewise.
4099 * tree-ssa.c: Likewise.
4100 * tree-vect-analyze.c: Likewise.
4101 * tree-vect-transform.c: Likewise.
4102 * tree-vectorizer.c: Likewise.
4103 * tree-vn.c: Likewise.
4104 * tree-vrp.c: Likewise.
4106 * tree.def: Likewise.
4108 * unwind-dw2-fde.c: Likewise.
4109 * unwind.inc: Likewise.
4110 * value-prof.c: Likewise.
4111 * vmsdbgout.c: Likewise.
4113 2008-06-05 David Edelsohn <edelsohn@gnu.org>
4115 * config/rs6000/xcoff.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Do not
4116 always place FP constants in the TOC for TARGET_POWERPC64.
4117 * config/rs6000/linux64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Same.
4119 2008-06-05 Joseph Myers <joseph@codesourcery.com>
4121 * config.gcc (powerpc-*-linux*spe*): Use t-dfprules.
4122 * config/rs6000/dfp.md (negdd2, absdd2, negtd2, abstd2): Do not
4123 enable for TARGET_E500_DOUBLE.
4124 (*movdd_softfloat32): Also enable for !TARGET_FPRS.
4125 * config/rs6000/rs6000.c (invalid_e500_subreg): Treat decimal
4126 floating-point modes like integer modes for E500 double.
4127 (rs6000_legitimate_offset_address_p): Likewise.
4128 (rs6000_legitimize_address): Likewise. Do not allow REG+REG
4129 addressing for DDmode for E500 double.
4130 (rs6000_hard_regno_nregs): Do not treat decimal floating-point
4131 modes as using 64-bits of registers for E500 double.
4132 (spe_build_register_parallel): Do not handle DDmode or TDmode.
4133 (rs6000_spe_function_arg): Do not handle DDmode or TDmode
4134 specially for E500 double.
4135 (function_arg): Do not call rs6000_spe_function_arg for DDmode or
4136 TDmode for E500 double.
4137 (rs6000_gimplify_va_arg): Only handle SDmode in registers
4138 specially if TARGET_HARD_FLOAT && TARGET_FPRS.
4139 (rs6000_split_multireg_move): Do not handle TDmode specially for
4141 (spe_func_has_64bit_regs_p): Do not treat DDmode or TDmode as
4142 using 64-bit registers for E500 double.
4143 (emit_frame_save): Do not handle DDmode specially for E500 double.
4144 (gen_frame_mem_offset): Likewise.
4145 (rs6000_function_value): Do not call spe_build_register_parallel
4146 for DDmode or TDmode.
4147 (rs6000_libcall_value): Likewise.
4148 * config/rs6000/rs6000.h (LOCAL_ALIGNMENT, MEMBER_TYPE_FORCES_BLK,
4149 DATA_ALIGNMENT, CLASS_MAX_NREGS): Do not handle DDmode specially
4152 2008-06-04 H.J. Lu <hongjiu.lu@intel.com>
4154 * config/i386/i386.c (setup_incoming_varargs_64): Fix a typo
4157 2008-06-04 Junjie Gu <jgu@tensilica.com>
4159 * config/xtensa/lib2funcs.S (__xtensa_nonlocal_goto): Use unsigned
4160 comparison for frame pointers.
4162 2008-06-04 Andy Hutchinson <hutchinsonandy@aim.com>
4165 * config/avr/avr.h (PUSH_ROUNDING): Remove.
4167 2008-06-04 Andy Hutchinson <hutchinsonandy@aim.com>
4170 * builtins.c (expand_builtin_signbit): Don't take lowpart when
4171 register is already smaller or equal to required mode.
4173 2008-06-04 Xinliang David Li <davidxl@google.com>
4175 * tree-call-cdce.c: New file.
4176 (cond_dead_built_in_calls): New static variable.
4177 (input_domain): New struct.
4178 (check_pow): New function.
4179 (check_builtin_call): Ditto.
4180 (check_target_format): Ditto.
4181 (is_call_dce_candidate): Ditto.
4182 (gen_one_condition): Ditto.
4183 (gen_conditions_for_domain): Ditto.
4184 (get_domain): Ditto.
4185 (gen_conditions_for_pow_cst_base): Ditto.
4186 (gen_conditions_for_pow_int_base): Ditto.
4187 (gen_conditions_for_pow): Ditto.
4188 (get_no_error_domain): Ditto.
4189 (gen_shrink_wrap_conditions): Ditto.
4190 (shrink_wrap_one_built_in_call): Ditto.
4191 (shink_wrap_conditional_dead_built_in_calls): Ditto.
4192 (tree_call_cdce): Ditto.
4193 (gate_call_cdce): Ditto.
4194 (pass_call_cdce): New gimple pass.
4195 * passes.c: (init_optimization_passes): New pass.
4196 * tree-pass.h: New pass declaration.
4197 * opts.c (decode_options): New flag setting.
4198 * common.opt: Add -ftree-builtin-call-dce flag.
4199 * Makefile.in: Add new source file.
4200 * tempvar.def: New tv_id.
4201 * doc/invoke.texi (-ftree-builtin-call-dce): New flag.
4203 2008-06-04 Richard Guenther <rguenther@suse.de>
4205 * tree-flow-inline.h (is_global_var): Do not check TREE_STATIC on MTAGs.
4206 (is_call_clobbered): Always check var_ann->call_clobbered.
4207 (mark_call_clobbered): Always set var_ann->call_clobbered.
4208 (clear_call_clobbered): Always clear var_ann->call_clobbered.
4209 * tree-ssa-alias.c (mark_non_addressable): Use clear_call_clobbered.
4210 (reset_alias_info): Clear call clobbering info on MTAGs and
4212 (set_pt_anything): Set pt_global_mem.
4213 (create_tag_raw): Adjust comment.
4214 (may_be_aliased): Do not check TREE_PUBLIC on MTAGs.
4216 2008-06-04 Joseph Myers <joseph@codesourcery.com>
4217 Maxim Kuvyrkov <maxim@codesourcery.com>
4219 * config/m68k/m68k.opt (mxgot): New option.
4220 * config/m68k/m68k.c (legitimize_pic_address): Handle -mxgot.
4221 (m68k_output_addr_const_extra): New.
4222 * config/m68k/m68k.h (OUTPUT_ADDR_CONST_EXTRA): New.
4223 * config/m68k/m68k-protos.h (m68k_output_addr_const_extra): Declare.
4224 * config/m68k/m68k.md (UNSPEC_GOTOFF): Define.
4225 * doc/invoke.texi (M680x0 Options): Document -mxgot.
4227 2008-06-04 Richard Guenther <rguenther@suse.de>
4229 * tree-ssa-structalias.c (handle_ptr_arith): Correctly handle
4230 negative or non-representable offsets.
4232 2008-06-03 H.J. Lu <hongjiu.lu@intel.com>
4234 * config/i386/i386.c (ix86_gen_leave): New.
4235 (ix86_gen_pop1): Likewise.
4236 (ix86_gen_add3): Likewise.
4237 (ix86_gen_sub3): Likewise.
4238 (ix86_gen_sub3_carry): Likewise.
4239 (ix86_gen_one_cmpl2): Likewise.
4240 (ix86_gen_monitor): Likewise.
4241 (override_options): Initialize ix86_gen_leave, ix86_gen_pop1,
4242 ix86_gen_add3, ix86_gen_sub3, ix86_gen_sub3_carry,
4243 ix86_gen_one_cmpl2 and ix86_gen_monitor.
4244 (ix86_file_end): Use mov%z0 instead of mov{q}/mov{l}.
4245 (output_set_got): Use mov%z0, pop%z0 and add%z0 instead of
4246 mov{q}/mov{l}, pop{q}/pop{l} and add{q}/add{l}.
4247 (ix86_expand_epilogue): Updated.
4248 (print_operand): Handle integer register operand for 'z'.
4249 (ix86_expand_strlensi_unroll_1): Likewise.
4250 (ix86_expand_strlen): Likewise.
4251 (ix86_expand_builtin): Likewise.
4252 (x86_output_mi_thunk): Use mov%z1 and add%z1 instead of
4253 mov{q}/mov{l} and add{q}/add{l}.
4255 2008-06-03 Kai Tietz <kai.tietz@onevision.com>
4257 * config/i386/i386.md (P): New mode iterator.
4258 (SFmode push_operand splitter): Macroize DImode and SImode pushes
4259 using P mode iterator.
4260 (DFmode push_operand splitter): Ditto.
4261 (XFmode push_operand splitter): Ditto.
4262 (DFmode float_extend SFmode push_operand splitter): Ditto.
4263 (XFmode float_extend SFmode push_operand splitter): Do not generate
4264 SImode pushes for 64bit target. Macroize Dimode and SImode
4265 pushes using P mode iterator.
4266 (XFmode float_extend DFmode push_operand splitter): Ditto.
4268 2008-06-03 Kai Tietz <kai.tietz@onevision.com>
4270 * config/i386/i386-protos.h (ix86_reg_parm_stack_space): New.
4271 * config/i386/i386.h (ix86_reg_parm_stack_space): Removed prototype.
4272 * config/i386/i386.c (ix86_reg_parm_stack_space): Changed
4274 (ix86_call_abi_override): Remove check for call_used_regs.
4276 2008-06-03 Richard Guenther <rguenther@suse.de>
4278 * tree-ssa-structalias.c (find_func_aliases): Add constraints
4279 for the lhs of calls if the return type contains pointers.
4281 2008-06-03 Kai Tietz <kai.tietz@onevision.com>
4283 * doc/tm.texi (OVERRIDE_ABI_FORMAT): New.
4284 * doc/extend.texi (ms_abi,sysv_abi): New attribute description.
4285 * function.c (allocate_struct_function): Use of OVERRIDE_ABI_FORMAT.
4286 * config/i386/cygming.h (TARGET_64BIT_MS_ABI): Make use
4287 of cfun and DEFAULT_ABI to deceide abi mode.
4289 (REG_PARM_STACK_SPACE): Removed.
4290 (OUTGOING_REG_PARM_STACK_SPACE): Removed.
4291 (STACK_BOUNDARY): Use default target to deceide stack boundary.
4292 * config/i386/i386-protos.h (ix86_cfun_abi): New.
4293 (ix86_function_abi): Likewise.
4294 (ix86_function_type_abi): Likewise.
4295 (ix86_call_abi_override): Likewise.
4296 * confid/i386/i386.md (SSE_REGPARM_MAX): Replaced by abi
4297 specific define X86_64_SSE_REGPARM_MAX/X64_SSE_REGPARM_MAX.
4298 * config/i386/i386.c (override_options): Replace TARGET_64BIT_MS_ABI.
4299 (X86_64_VARARGS_SIZE): Replace REGPARM_MAX and SSE_REGPARM_MAX by abi
4301 (X86_64_REGPARM_MAX): New.
4302 (X86_64_SSE_REGPARM_MAX): New.
4303 (X64_REGPARM_MAX): New.
4304 (X64_SSE_REGPARM_MAX): New.
4305 (X86_32_REGPARM_MAX): New.
4306 (X86_32_SSE_REGPARM_MAX): New.
4307 (ix86_handle_cconv_attribute): Replace TARGET_64BIT_MS_ABI.
4308 (ix86_function_regparm): Handle user calling abi.
4309 (ix86_function_arg_regno_p): Replace TARGET_64BIT_MS_ABI
4310 by DEFAULT_ABI versus SYSV_ABI check.
4311 (ix86_reg_parm_stack_space): New.
4312 (ix86_function_type_abi): New.
4313 (ix86_call_abi_override): New.
4314 (ix86_function_abi): New.
4315 (ix86_cfun_abi): New.
4316 (init_cumulative_args): Call abi specific initialization.
4317 (function_arg_advance): Remove TARGET_64BIT_MS_ABI.
4318 (function_arg_64): Extend SSE_REGPARM_MAX check.
4319 (function_arg (): Remove TARGET_64BIT_MS_ABI.
4320 (ix86_pass_by_reference): Likewise.
4321 (ix86_function_value_regno_p): Likewise.
4322 (function_value_64): Replace REGPARM_MAX, and SSE_REGPARM_MAX.
4323 (ix86_function_value_1): Replace TARGET_64BIT_MS_ABI.
4324 (return_in_memory_ms_64): Replace TARGET_64BIT_MS_ABI.
4325 (ix86_build_builtin_va_list): Replace TARGET_64BIT_MS_ABI.
4326 (setup_incoming_varargs_64): Adjust regparm for call abi.
4327 (ix86_setup_incoming_varargs): Replace TARGET_64BIT_MS_ABI.
4328 (ix86_va_start): Likewise.
4329 (ix86_gimplify_va_arg): Likewise.
4330 (ix86_expand_prologue): Likewise.
4331 (output_pic_addr_const): Likewise.
4332 (ix86_init_machine_status): Initialize call_abi by DEFAULT_ABI.
4333 (x86_this_parameter): Replace TARGET_64BIT_MS_ABI.
4334 (x86_output_mi_thunk): Likewise.
4335 (x86_function_profiler): Likewise.
4336 * config/i386/i386.h (TARGET_64BIT_MS_ABI): Use ix64_cfun_abi.
4337 (SYSV_ABI, MS_ABI): New constants.
4339 (init_regs): Add prototype of function in regclass.c file.
4340 (OVERRIDE_ABI_FORMAT): New.
4341 (CONDITIONAL_REGISTER_USAGE): Remove TARGET_64BIT_MS_ABI part.
4342 (REG_PARM_STACK_SPACE): Use ix86_reg_parm_stack_space.
4343 (OUTGOING_REG_PARM_STACK_SPACE): New.
4344 (ix86_reg_parm_stack_space): New prototype.
4345 (CUMULATIVE_ARGS): Add call_abi member.
4346 (machine_function): Add call_abi member.
4347 * config/i386/mingw32.h (EXTRA_OS_CPP_BUILTINS): Replace
4348 TARGET_64BIT_MS_ABI by DEFAULT_ABI compare to MS_ABI.
4350 2008-06-02 Andy Hutchinson <hutchinsonandy@aim.com>
4353 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Redefine.
4354 (avr_builtin_setjmp_frame_value): New function.
4355 * config/avr/avr.md (nonlocal_goto_receiver): Define.
4356 (nonlocal_goto): Define.
4358 2008-06-02 Richard Sandiford <rdsandiford@googlemail.com>
4360 * config/mips/mips.c (mips_emit_loadgp): Return early if
4361 there is nothing do to, otherwise emit a blockage if
4362 !TARGET_EXPLICIT_RELOCS || crtl->profile.
4363 * config/mips/mips.md (loadgp_blockage): Use SI rather than DI.
4365 2008-06-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4367 * configure.ac: Drop unneeded backslash ending up in config.in.
4368 * acinclude.m4: Likewise.
4369 * config.in: Regenerate.
4371 2008-05-26 Jan Hubicka <jh@suse.cz>
4373 * predict.c (maybe_hot_frequency_p): Break out of...
4374 (maybe_hot_bb_p): ... here.
4375 (maybe_hot_edge_p): New.
4376 * tree-ssa-coalesce.c (coalesce_cost_edge): Compute cost based on edge.
4377 * basic-block.h (maybe_hot_edge_p): Declare.
4379 2008-05-31 Uros Bizjak <ubizjak@gmail.com>
4381 * config/i386/i386.md (*cmpfp_<mode>): Enable for optimize_size.
4382 (*cmpfp_<mode>_cc): Ditto.
4383 (*fp_jcc_8<mode>_387): Ditto.
4384 (*fop_<MODEF:mode>_2_i387): Ditto.
4385 (*fop_<MODEF:mode>_3_i387): Ditto.
4386 (*fop_xf_2_i387): Ditto.
4387 (*fop_xf_3_i387): Ditto.
4389 2008-06-02 Tomas Bily <tbily@suse.cz>
4391 * tree-ssa-ifcombine.c (get_name_for_bit_test): Use CONVERT_EXPR_P.
4393 2008-06-01 Richard Sandiford <rdsandiford@googlemail.com>
4395 * config/mips/mips.c (mips_valid_offset_p): New function.
4396 (mips_valid_lo_sum_p): Likewise.
4397 (mips_classify_address): Use them.
4398 (mips_force_address): New function.
4399 (mips_legitimize_address): Use it.
4400 * config/mips/mips.md (MOVE128): New mode iterator.
4401 (movtf): Require TARGET_64BIT. Remove empty strings.
4402 (*movtf_internal): Rename to...
4403 (*movtf): ...this and require !TARGET_MIPS16. Use "m" instead
4404 of "R" and use {,fp}{load,store} attributes instead of "multi".
4405 Use a separate define_split.
4406 (*movtf_mips16): New pattern.
4408 2008-06-01 Richard Sandiford <rdsandiford@googlemail.com>
4410 * config/mips/mips-protos.h (mips_expand_before_return): Declare.
4411 * config/mips/mips.c (mips_expand_before_return): New function.
4412 (mips_expand_epilogue): Call it.
4413 * config/mips/mips.md (return): Turn into a define_expand.
4414 (*return): New insn.
4416 2008-06-01 Richard Sandiford <rdsandiford@googlemail.com>
4418 * rtl.h (emit_clobber, gen_clobber, emit_use, gen_use): Declare.
4419 * emit-rtl.c (emit_clobber, gen_clobber, emit_use, gen_use): New
4420 functions. Do not emit uses and clobbers of CONCATs; individually
4421 use and clobber their operands.
4422 * builtins.c (expand_builtin_setjmp_receiver): Use emit_clobber,
4423 gen_clobber, emit_use and gen_use.
4424 (expand_builtin_longjmp, expand_builtin_nonlocal_goto): Likewise.
4425 (expand_builtin_return): Likewise.
4426 * cfgbuild.c (count_basic_blocks): Likewise.
4427 * cfgrtl.c (rtl_flow_call_edges_add): Likewise.
4428 * explow.c (emit_stack_restore): Likewise.
4429 * expmed.c (extract_bit_field_1): Likewise.
4430 * expr.c (convert_move, emit_move_complex_parts): Likewise.
4431 (emit_move_multi_word, store_constructor): Likewise.
4432 * function.c (do_clobber_return_reg, do_use_return_reg): Likewise.
4433 (thread_prologue_and_epilogue_insns): Likewise.
4434 * lower-subreg.c (resolve_simple_move): Likewise.
4435 * optabs.c (widen_operand, expand_binop): Likewise.
4436 (expand_doubleword_bswap, emit_no_conflict_block): Likewise.
4437 * reload.c (find_reloads): Likewise.
4438 * reload1.c (eliminate_regs_in_insn): Likewise.
4439 * stmt.c (expand_nl_goto_receiver): Likewise.
4440 * config/alpha/alpha.md (builtin_longjmp): Likewise.
4441 * config/arc/arc.md (*movdi_insn, *movdf_insn): Likewise.
4442 * config/arm/arm.c (arm_load_pic_register): Likewise.
4443 (thumb1_expand_epilogue, thumb_set_return_address): Likewise.
4444 * config/arm/arm.md (untyped_return): Likewise.
4445 * config/arm/linux-elf.h (PROFILE_HOOK): Likewise.
4446 * config/avr/avr.c (expand_prologue): Likewise.
4447 * config/bfin/bfin.c (do_unlink): Likewise.
4448 * config/bfin/bfin.md (<optab>di3, adddi3, subdi3): Likewise.
4449 * config/cris/cris.c (cris_expand_prologue): Likewise.
4450 * config/darwin.c (machopic_indirect_data_reference): Likewise.
4451 (machopic_legitimize_pic_address): Likewise.
4452 * config/frv/frv.c (frv_frame_access, frv_expand_epilogue): Likewise.
4453 (frv_ifcvt_modify_insn, frv_expand_mdpackh_builtin): Likewise.
4454 * config/i386/i386.c (ix86_expand_vector_move_misalign): Likewise.
4455 (ix86_expand_convert_uns_didf_sse): Likewise.
4456 (ix86_expand_vector_init_general): Likewise.
4457 * config/ia64/ia64.md (eh_epilogue): Likewise.
4458 * config/iq2000/iq2000.c (iq2000_expand_epilogue): Likewise.
4459 * config/m32c/m32c.c (m32c_emit_eh_epilogue): Likewise.
4460 * config/m32r/m32r.c (m32r_reload_lr): Likewise.
4461 (config/iq2000/iq2000.c): Likewise.
4462 * config/mips/mips.md (fixuns_truncdfsi2): Likewise.
4463 (fixuns_truncdfdi2, fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
4464 (builtin_longjmp): Likewise.
4465 * config/mn10300/mn10300.md (call, call_value): Likewise.
4466 * config/pa/pa.md (nonlocal_goto, nonlocal_longjmp): Likewise.
4467 * config/pdp11/pdp11.md (abshi2): Likewise.
4468 * config/rs6000/rs6000.c (rs6000_emit_move): Likewise.
4469 * config/s390/s390.c (s390_emit_prologue): Likewise.
4470 * config/s390/s390.md (movmem_long, setmem_long): Likewise.
4471 (cmpmem_long, extendsidi2, zero_extendsidi2, udivmoddi4): Likewise.
4472 (builtin_setjmp_receiver, restore_stack_nonlocal): Likewise.
4473 * config/sh/sh.c (prepare_move_operands): Likewise.
4474 (output_stack_adjust, sh_expand_epilogue): Likewise.
4475 (sh_set_return_address, sh_expand_t_scc): Likewise.
4476 * config/sparc/sparc.c (load_pic_register): Likewise.
4477 * config/sparc/sparc.md (untyped_return, nonlocal_goto): Likewise.
4478 * config/spu/spu.c (spu_expand_epilogue): Likewise.
4479 * config/v850/v850.c (expand_epilogue): Likewise.
4481 2008-05-31 Anatoly Sokolov <aesok@post.ru>
4483 * config/avr/avr.md (UNSPECV_WRITE_SP_IRQ_ON): New constants.
4484 (UNSPECV_WRITE_SP_IRQ_OFF): (Ditto.).
4485 (movhi_sp_r_irq_off, movhi_sp_r_irq_on): New insn.
4486 * config/avr/avr.c (expand_prologue, expand_epilogue): Use
4487 movhi_sp_r_irq_off and movhi_sp_r_irq_on insns for writing to the
4488 stack pointer register.
4489 (output_movhi): Remove code for interrupt specific writing to the
4490 stack pointer register.
4492 2008-05-31 Richard Guenther <rguenther@suse.de>
4494 PR tree-optimization/34244
4495 * fold-const.c (tree_expr_nonnegative_warnv_p): Do not ask VRP.
4496 (tree_expr_nonzero_warnv_p): Likewise.
4497 * tree-vrp.c (vrp_expr_computes_nonnegative): Call
4498 ssa_name_nonnegative_p.
4499 (vrp_expr_computes_nonzero): Call ssa_name_nonzero_p.
4500 (extract_range_from_unary_expr): Use vrp_expr_computes_nonzero,
4501 not tree_expr_nonzero_warnv_p.
4503 PR tree-optimization/36262
4505 2007-11-29 Zdenek Dvorak <ook@ucw.cz>
4507 PR tree-optimization/34244
4508 * tree-vrp.c (adjust_range_with_scev): Clear scev cache.
4509 (record_numbers_of_iterations): New function.
4510 (execute_vrp): Cache the numbers of iterations of loops.
4511 * tree-scalar-evolution.c (scev_reset_except_niters):
4513 (scev_reset): Use scev_reset_except_niters.
4514 * tree-scalar-evolution.h (scev_reset_except_niters): Declare.
4516 2008-05-31 Bernd Schmidt <bernd.schmidt@analog.com>
4518 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
4519 __WORKAROUND_RETS when appropriate.
4521 2008-05-31 Uros Bizjak <ubizjak@gmail.com>
4523 * config/i386/i386.md (*fop_<mode>_comm_mixed): Macroize from
4524 *fop_sf_comm_mixed and *fop_df_comm_mixed insn patterns using MODEF
4526 (*fop_<mode>_comm_sse): Macroize from *fop_sf_comm_sse and
4527 *fop_df_comm_sse insn patterns using MODEF mode iterator.
4528 (*fop_<mode>_comm_i387): Macroize from *fop_sf_comm_i387 and
4529 *fop_df_comm_i387 insn patterns using MODEF mode iterator.
4530 (*fop_<mode>_1_mixed): Macroize from *fop_sf_1_mixed and
4531 *fop_df_1_mixed insn patterns using MODEF mode iterator.
4532 (*fop_<mode>_1_sse): Macroize from *fop_sf_1_sse and
4533 *fop_df_1_sse insn patterns using MODEF mode iterator.
4534 (*fop_<mode>_1_i387): Macroize from *fop_sf_1_i387 and
4535 *fop_df_1_i387 insn patterns using MODEF mode iterator.
4536 (*fop_<MODEF:mode>_2_i387): Macroize from *fop_sf_2<mode>_i387 and
4537 *fop_df_2<mode>_i387 insn patterns using MODEF mode iterator.
4538 (*fop_<MODEF:mode>_3_i387): Macroize from *fop_sf_3<mode>_i387 and
4539 *fop_df_3<mode>_i387 insn patterns using MODEF mode iterator.
4540 (*fop_xf_2_i387): Rename from *fop_xf_2<mode>_i387.
4541 (*fop_xf_3_i387): Rename from *fop_xf_3<mode>_i387.
4542 (*fop_xf_4_i387): Use <MODE> for mode attribute.
4543 (*fop_xf_5_i387): Ditto.
4544 (*fop_xf_6_i387): Ditto.
4546 2008-05-30 Richard Guenther <rguenther@suse.de>
4548 * builtins.c (build_string_literal): Avoid generating
4549 a non-gimple_val result.
4551 2008-05-30 DJ Delorie <dj@redhat.com>
4553 * exec-tool.in: Use an environment variable (private) instead of a
4554 file (shared) as a semaphore, so as to not break parallel builds.
4556 2008-05-30 Steven Bosscher <stevenb.gcc@gmail.com>
4558 * optabs.c (maybe_encapsulate_block): Remove.
4559 (emit_libcall_block): Adjust accordingly.
4560 * optabs.h (maybe_encapsulate_block): Remove prototype.
4562 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address):
4563 Don't use maybe_encapsulate_block.
4565 2008-05-30 Steven Bosscher <stevenb.gcc@gmail.com>
4567 * config/rs6000/rs6000.c (rs6000_legitimize_address,
4568 rs6000_legitimize_reload_address, rs6000_emit_move): Make sure an
4569 rtx is a SYMBOL_REF before calling get_pool_constant.
4571 2008-05-30 Eric Botcazou <ebotcazou@adacore.com>
4573 * fold-const.c (fold_unary) <CASE_CONVERT>: Add ??? comment.
4575 2008-05-30 Danny Smith <dannysmith@users.sourceforge.net>
4577 * incpath.c: Use HOST_LACKS_INODE_NUMBERS conditional
4578 rather than OS names to choose INO_T_EQ definition.
4579 (DIRS_EQ) [!INO_T_EQ]: Don't worry about case in comparison.
4580 (add_path) [!INO_T_EQ]: Use lrealpath to fill canonical_name field.
4582 2008-05-29 Daniel Franke <franke.daniel@gmail.com>
4585 * config/darwin-f.c: New.
4586 * config/t-darwin: Added rule to build darwin-f.o.
4587 * config.gcc: Defined new variable, fortran_target_objs.
4588 (*-*-darwin*): Set fortran_target_objs.
4589 * Makefile.in: Defined new variable FORTRAN_TARGET_OBJS.
4590 * configure.ac: Substitute fortran_target_objs, set FORTRAN_TARGET_OBJS.
4591 * configure: Regenerated.
4593 2008-05-29 H.J. Lu <hongjiu.lu@intel.com>
4596 * config/i386/i386.c (ix86_function_arg_boundary): Convert to
4597 canonical type if needed.
4599 2008-05-29 Eric Botcazou <ebotcazou@adacore.com>
4601 * tree-nested.c (check_for_nested_with_variably_modified): Fix typo.
4603 2008-05-29 Richard Guenther <rguenther@suse.de>
4605 PR tree-optimization/36343
4606 PR tree-optimization/36346
4607 PR tree-optimization/36347
4608 * tree-flow.h (clobber_what_p_points_to): Declare.
4609 * tree-ssa-structalias.c (set_uids_in_ptset): Whether the
4610 pointed-to variable is dereferenced is irrelevant to whether
4611 the pointer can access the pointed-to variable.
4612 (clobber_what_p_points_to): New function.
4613 * tree-ssa-alias.c (set_initial_properties): Use it.
4614 * tree-ssa.c (verify_flow_sensitive_alias_info): Adjust
4615 call clobber check for NMTs.
4617 2008-05-28 Seongbae Park <seongbae.park@gmail.com>
4619 * value-prof.c (tree_ic_transform): Use HOST_WIDEST_INT_PRINT_DEC
4620 for printing gcov_type.
4622 2008-05-28 Seongbae Park <seongbae.park@gmail.com>
4624 * tree-ssa-propagate.c (set_rhs): Preserve the histogram
4625 and the eh region information.
4626 * value-prof.c (gimple_move_stmt_histograms): New function.
4627 * value-prof.h (gimple_move_stmt_histograms): New function declaration.
4629 2008-05-28 Andreas Tobler <a.tobler@schweiz.org>
4631 * config/pa/pa.md: Remove extern frame_pointer_needed declaration.
4633 2008-05-28 Seongbae Park <seongbae.park@gmail.com>
4635 * value-prof.c (tree_ic_transform): Print counts.
4636 * tree-profile.c (tree_gen_ic_func_profiler):
4637 Clear __gcov_indreict_call_callee variable to avoid misattribution
4640 2008-05-28 Rafael Espindola <espindola@google.com>
4642 * see.c (see_def_extension_not_merged): Use copy_rtx_if_shared to avoid
4645 2008-05-28 Richard Guenther <rguenther@suse.de>
4647 PR tree-optimization/36339
4648 * tree-ssa-alias.c (set_initial_properties): Move pt_anything
4649 and clobbering code out of the loop.
4651 2008-05-28 Andreas Krebbel <krebbel1@de.ibm.com>
4653 * config/s390/constraints.md ('b', 'C', 'D', 'e'): New constraint
4656 * config/s390/s390.c (s390_compare_and_branch_condition_mask,
4657 s390_contiguous_bitmask_p, s390_symref_operand_p,
4658 s390_check_symref_alignment, s390_reload_larl_operand,
4659 s390_reload_symref_address): New functions.
4660 (s390_branch_condition_mnemonic): Support compare and branch
4662 (s390_mem_constraint): Avoid symrefs to accepted by the 'T'
4663 and 'W' constraints.
4664 (s390_secondary_reload): Add secondary reloads for unaligned
4665 symbol refs or symbol refs to floating point or QI/TI mode
4667 (legitimate_address_p): Accept symbol references as addresses.
4668 (s390_expand_insv): Use rotate and insert selected bits
4669 instruction for insv when building for z10.
4670 (print_operand_address): Handle symbol ref addresses.
4671 (print_operand): Output modifier 'c' added for signed byte values.
4672 (s390_encode_section_info): Mark symbol refs with
4673 SYMBOL_FLAG_NOT_NATURALLY_ALIGNED if appropriate.
4675 * config/s390/s390.md (SIL,RRS,RIS): New instruction formats added.
4676 (length attribute): RRF, RRR have 4 byte length.
4677 (FPALL, INTALL): New mode iterators added.
4678 (*tstdi_sign, *cmpdi_ccs_sign, *cmpsi_ccs_sign,
4679 *cmp<mode>_ccs, *cmpdi_ccu_zero, *cmpdi_ccu, *cmpsi_ccu, *cmphi_ccu,
4680 *movdi_64, *movsi_zarch, *movhi, movmem<mode>, *movmem_short,
4681 *extendsidi2, *extendhidi2_extimm, *extendhisi2_extimm,
4682 *zero_extendsidi2, adddi3, *adddi3_31z, *adddi3_31, addsi3,
4683 *add<mode>3, *add<mode>3_carry1_cc, *add<mode>3_carry2_cc,
4684 *add<mode>3_cc, *add<mode>3_imm_cc, *muldi3_sign, muldi3,
4685 *mulsi3_sign, mulsi3, mulsidi3): Patterns enhanced with z10
4687 (*cmphi_ccs_z10, *cmpdi_ccs_signhi_rl, *cmpsi_ccu_zerohi_rlsi,
4688 *cmp<GPR:mode>_ccu_zerohi_rldi, *cmp_and_br_signed_<mode>,
4689 *cmp_and_br_unsigned_<mode>, reload<INTALL:mode><P:mode>_tomem_z10,
4690 reload<INTALL:mode><P:mode>_toreg_z10,
4691 reload<FPALL:mode><P:mode>_tomem_z10,
4692 reload<FPALL:mode><P:mode>_toreg_z10,
4693 reload<P:mode>_larl_odd_addend_z10, *execute_rl, *insv<mode>_z10,
4694 *insv<mode>_z10_noshift, *insv<mode>_or_z10_noshift,
4695 *zero_extendhi<mode>2_z10, *cmp_and_trap_signed_int<mode>,
4696 *cmp_and_trap_unsigned_int<mode>, prefetch): New pattern or expander
4698 (movmem, clrmem, cmpmem): New splitters added.
4700 * config/s390/predicates.md (larl_operand): Use
4701 SYMBOL_REF_FLAGS (op) & SYMBOL_FLAG_ALIGN1 replaced with
4702 SYMBOL_REF_ALIGN1_P.
4703 (s390_signed_integer_comparison,
4704 s390_unsigned_integer_comparison): New predicates.
4706 * config/s390/s390-protos.h (s390_check_symref_alignment,
4707 s390_contiguous_bitmask_p, s390_reload_larl_operand,
4708 s390_reload_symref_address,
4709 s390_compare_and_branch_condition_mask): Prototypes added.
4711 * config/s390/s390.h (TARGET_MEM_CONSTRAINT,
4712 SYMBOL_REF_ALIGN1_P, SYMBOL_FLAG_NOT_NATURALLY_ALIGNED,
4713 SYMBOL_REF_NOT_NATURALLY_ALIGNED_P): Macro definition added.
4715 2008-05-28 Andreas Krebbel <krebbel1@de.ibm.com>
4717 * config/s390/s390.c (z10_cost): New cost function for z10.
4718 (s390_handle_arch_option, override_options): Support -march=z10 switch.
4719 (s390_issue_rate): Adjust issue rate for z10.
4720 * config/s390/s390.h (processor_type): Add PROCESSOR_2097_Z10.
4721 (processor_flags): Add PF_Z10.
4722 (TARGET_CPU_Z10, TARGET_Z10): New macro definitions.
4723 * config/s390/s390.md (cpu, cpu_facility attributes): Add z10.
4724 * gcc/config.gcc: Add z10.
4726 2008-05-28 Richard Guenther <rguenther@suse.de>
4728 PR tree-optimization/36291
4729 * tree-flow. h (struct gimple_df): Remove var_anns member.
4730 * tree-flow-inline.h (gimple_var_anns): Remove.
4731 (var_ann): Simplify.
4732 * tree-dfa.c (create_var_ann): Simplify.
4733 (remove_referenced_var): Clear alias info from var_anns of globals.
4734 * tree-ssa.c (init_tree_ssa): Do not allocate var_anns.
4735 (delete_tree_ssa): Clear alias info from var_anns of globals.
4736 Do not free var_anns.
4737 (var_ann_eq): Remove.
4738 (var_ann_hash): Likewise.
4740 2008-05-28 Mark Shinwell <shinwell@codesourcery.com>
4742 * config/mips/mips.c (mips_cpu_info_table): Add loongson2e
4743 and loongson2f entries.
4744 (mips_rtx_cost_data): Add entries for Loongson-2E/2F.
4745 * config/mips/mips.h (processor_type): Add Loongson-2E
4746 and Loongson-2F entries.
4747 (TARGET_LOONGSON_2E, TARGET_LOONGSON_2F, TARGET_LOONGSON_2EF): New.
4748 (MIPS_ISA_LEVEL_SPEC): Handle Loongson-2E/2F.
4749 * config/mips/mips.md (define_attr cpu): Add loongson2e and loongson2f.
4750 * doc/invoke.texi (MIPS Options): Document loongson2e
4751 and loongson2f processor names.
4753 2008-05-27 H.J. Lu <hongjiu.lu@intel.com>
4757 * config/i386/i386.c (ix86_function_arg_boundary): Use
4758 alignment of canonical type.
4759 (ix86_expand_vector_move): Check unaligned memory access for
4762 2008-05-27 H.J. Lu <hongjiu.lu@intel.com>
4764 * dwarf2out.c (current_fde): Change return type to dw_fde_ref.
4765 Moved to the front of file.
4767 2008-05-27 Xuepeng Guo <xuepeng.guo@intel.com>
4768 H.J. Lu <hongjiu.lu@intel.com>
4770 * dwarf2out.c (current_fde): New.
4772 (lookup_cfa:): Likewise.
4773 (dwarf2out_end_epilogue): Likewise.
4774 (dwarf2out_note_section_used): Likewise.
4776 2008-05-27 Michael Matz <matz@suse.de>
4779 * c.opt (Wenum-compare): New warning option.
4780 * doc/invoke.texi (Warning Options): Document -Wenum-compare.
4782 2008-05-27 Michael Matz <matz@suse.de>
4785 * tree-gimple.c (is_gimple_mem_rhs): Remove work-around for
4787 * tree-tailcall.c (find_tail_calls): Don't mark calls storing
4788 into memory as tail calls.
4790 2008-05-27 Richard Guenther <rguenther@suse.de>
4792 PR tree-optimization/36339
4793 * tree-ssa-alias.c (set_initial_properties): Escaped pt_anything
4794 pointers cause all addressable variables to be call clobbered.
4796 2008-05-27 Richard Guenther <rguenther@suse.de>
4798 PR tree-optimization/36245
4799 * tree-ssa-address.c (add_to_parts): Deal with non-pointer bases.
4801 2008-05-27 Andreas Krebbel <krebbel1@de.ibm.com>
4803 * config/s390/s390.md: Replace all occurences of the 'm'
4804 constraint with 'RT'.
4806 2008-05-27 Andreas Krebbel <krebbel1@de.ibm.com>
4808 * config/s390/s390.md ("cpu_facility", "enabled"): Attribute
4810 ("*movdi_64dfp", "*movdi_64extimm", "*movdi_64"): Merged into
4812 ("*anddi3_extimm", "*anddi3"): Merged into "*anddi3".
4813 ("*iordi3_extimm", "*iordi3"): Merged into "*iordi3".
4814 ("*xordi3_extimm", "*xordi3"): Merged into "*xordi3".
4816 2008-05-27 Andreas Krebbel <krebbel1@de.ibm.com>
4818 * reload.c: (find_reloads): Skip alternatives according to the
4819 "enabled" attribute. Constify the constraint variable.
4820 * recog.c (get_attr_enabled): Add default implementation.
4821 (extract_insn): Set the alternative_enabled_p array
4822 in the recog_data struct.
4823 (preprocess_constraints, constrain_operands): Skip
4824 alternatives according to the "enabled" attribute
4825 * recog.h (struct recog_data): New field alternative_enabled_p.
4826 (skip_alternative): New inline function.
4827 * regclass.c: (record_operand_costs): Check the "enabled" attribute.
4828 (record_reg_classes): Skip alternative according to the
4829 "enabled" attribute.
4831 * doc/md.texi: Add documention for the "enabled" attribute.
4833 2008-05-27 Andreas Krebbel <krebbel1@de.ibm.com>
4835 * defaults.h (TARGET_MEM_CONSTRAINT): New target macro added.
4836 * postreload.c (reload_cse_simplify_operands): Replace 'm'
4837 constraint with TARGET_MEM_CONSTRAINT.
4838 * recog.c (asm_operand_ok, preprocess_constraints,
4839 constrain_operands): Likewise.
4840 * regclass.c (record_reg_classes): Likewise.
4841 * reload.c (find_reloads, alternative_allows_const_pool_ref): Likewise.
4842 * reload1.c (maybe_fix_stack_asms): Likewise.
4843 * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
4844 * recog.h: Adjust comment.
4845 * genpreds.c (generic_constraint_letters): Remove 'm' constraint.
4846 * genoutput.c (note_constraint): Don't emit error for 'm' constraint.
4847 * doc/md.texi: Add a note to description of 'm' constraint.
4848 * doc/tm.texi: Document the new TARGET_MEM_CONSTRAINT macro.
4850 2008-05-27 Eric Botcazou <ebotcazou@adacore.com>
4852 * tree-sra.c (sra_type_can_be_decomposed_p) <RECORD_TYPE>: Make sure
4853 that the bitfield is of integral type before testing its precision.
4855 2008-05-27 Trevor Smigiel <trevor_smigiel@playstation.sony.com>
4856 Sa Liu <saliu@de.ibm.com>
4858 * config/spu/spu.c (spu_init_libfuncs): Add __multi3, __divti3,
4859 __modti3, __udivti3, __umodti3 and __udivmodti4.
4860 * config/spu/t-spu-elf (LIB2FUNCS_STATIC_EXTRA): Add files
4861 that implement TImode mul and div functions.
4862 * config/spu/multi3.c: New. Implement __multi3.
4863 * config/spu/divmodti4.c: New. Implement _udivmodti4 and others.
4864 * testsuite/gcc.target/spu/muldivti3.c: New. Test TImode mul and div
4867 2008-05-26 Steven Bosscher <stevenb.gcc@gmail.com>
4869 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Generate
4870 new tls_gd_* and tls_ld_* insns instead of an insn sequence.
4871 * config/rs6000/rs6000.md (TLSmode, tls_abi_suffix, tls_insn_suffix,
4872 tls_sysv_suffix): New mode and mode attribute iterators.
4873 (tls_gd_32, tls_gd_64, tls_ld_32, tls_ld_64): Remove.
4874 (lts_gd_aix*, tls_gd_sysv*, tls_ld_aix*, tls_ld_sysv*): New patterns.
4875 (tls_dtprel_*, tls_dtprel_ha_*, tls_dtprel_lo_*, tls_got_dtprel_*,
4876 tls_tprel_*, tls_tprel_ha_*, tls_tprel_lo_*, tls_got_tprel_*,
4877 tls_tls_*): Merge 32 bit and 64 bit variants using aforementioned
4880 2008-05-26 Eric Botcazou <ebotcazou@adacore.com>
4882 PR tree-optimization/36329
4883 * tree.h (CALL_CANNOT_INLINE_P): Add access check.
4884 * tree-gimple.h (CALL_STMT_CANNOT_INLINE_P): New macro.
4885 * cgraphbuild.c (initialize_inline_failed): Use the latter
4886 macro in lieu of the former.
4887 * ipa-inline.c (cgraph_mark_inline): Likewise.
4888 (cgraph_decide_inlining_of_small_function): Likewise.
4889 (cgraph_decide_inlining): Likewise.
4890 (cgraph_decide_inlining_incrementally): Likewise.
4892 2008-05-26 Tristan Gingold <gingold@adacore.com>
4893 Anatoly Sokolov <aesok@post.ru>
4895 * config/avr/avr.md ("call_prologue_saves"): Use hi8(gs())/lo8(gs())
4896 instead of pm_lo8/pm_hi8 to makes this call working on avr6.
4897 * config/avr/avr.c (expand_prologue): Tune "call_prologue"
4898 optimization for 'avr6' architecture.
4900 2008-05-26 Andy Hutchinson <hutchinsonandy@aim.com>
4903 * config/avr/avr.md (*addhi3_zero_extend2): Remove.
4905 2008-05-26 Richard Guenther <rguenther@suse.de>
4907 * tree-ssa-sccvn.c (expr_has_constants): Declare.
4908 (visit_reference_op_load): Initialize VN_INFO->has_constants properly.
4910 2008-05-26 H.J. Lu <hongjiu.lu@intel.com>
4913 * caller-save.c (insert_restore): Verify alignment of spill space.
4914 (insert_save): Likewise.
4915 * cfgexpand.c (LOCAL_ALIGNMENT): Removed.
4916 * defaults.h (LOCAL_ALIGNMENT): New. Provide default.
4917 (STACK_SLOT_ALIGNMENT): Likewise.
4918 * function.c (LOCAL_ALIGNMENT): Removed.
4919 (get_stack_local_alignment): New.
4920 (assign_stack_local): Use it. Set alignment on stack slot.
4921 (assign_stack_temp_for_type): Use get_stack_local_alignment.
4922 * config/i386/i386.h (LOCAL_ALIGNMENT): Updated.
4923 (STACK_SLOT_ALIGNMENT): New.
4924 * config/i386/i386.c (ix86_local_alignment): Handle caller-save
4925 stack slot in XFmode.
4927 * doc/tm.texi (STACK_SLOT_ALIGNMENT): New.
4929 2008-05-26 Kai Tietz <kai.tietz@onevision.com>
4932 * config/i386/i386.md (allocate_stack_worker_64): Make sure
4933 argument operand in rax isn't removed.
4935 2008-05-26 Richard Guenther <rguenther@suse.de>
4938 * fold-const.c (extract_muldiv_1): Use TYPE_OVERFLOW_WRAPS,
4939 not TYPE_UNSIGNED. Use TYPE_PRECISION instead of GET_MODE_SIZE.
4941 2008-05-26 Daniel Franke <franke.daniel@gmail.com>
4944 * c-cppbuiltin.c (define__GNUC__): Re-add definition of __GNUG__.
4946 2008-05-26 Dominique Dhumieres <dominiq@lps.ens.fr>
4948 * config/darwin-c.c: Include "incpath.h" instead of "c-incpath.h".
4949 * config/t-darwin: Use "incpath.h" instead of "c-incpath.h".
4951 2008-05-25 Eric Botcazou <ebotcazou@adacore.com>
4953 * tree-nested.c (convert_tramp_reference) <ADDR_EXPR>: Do not
4954 build a trampoline if we don't want one.
4955 * varasm.c (initializer_constant_valid_p) <ADDR_EXPR>: Do not
4956 return zero for nested functions if we don't want a trampoline.
4958 2008-05-26 Daniel Franke <franke.daniel@gmail.com>
4960 * doc/invoke.texi: Added f77, f77-cpp-input to list of file types.
4962 2008-05-26 Daniel Franke <franke.daniel@gmail.com>
4965 * c.opt: Removed undocumented option '-lang-fortran'.
4966 * c-common.h: Removed global variable 'lang_fortran'.
4967 * c-opts.c (c_common_handle_option): Removed code to handle
4968 option '-lang-fortran'. Updated includes.
4969 * c-cppbuiltin.c (c_cpp_builtins): Removed conditional
4970 definition of '__GFORTRAN__'.
4971 (define__GNUC__): Reimplemented to use BASEVER and
4972 cpp_define_formatted.
4973 (builtin_define_with_value_n): Removed.
4974 * c-incpath.h: Renamed to ...
4975 * incpath.h: ... this.
4976 * c-incpath.c: Renamed to ...
4977 * incpath.c: ... this. Updated includes.
4978 * fix-header.c: Updated includes.
4979 * Makefile.in: Replaced c-incpath.[ch] by incpath.[ch].
4980 (c-cppbuiltin.o): Added dependency on and definition of BASEVER.
4981 (OBJ-archive): Added cppdefault.o, incpath.o and prefix.o.
4983 2008-05-25 Eric Botcazou <ebotcazou@adacore.com>
4985 * tree.h: Update the table of flags used on tree nodes.
4986 (TREE_NO_TRAMPOLINE): New accessor for static_flag.
4987 (SAVE_EXPR_RESOLVED_P): Use automatically-built access check.
4988 (FORCED_LABEL): Add access check.
4989 (CALL_EXPR_RETURN_SLOT_OPT): Likewise.
4990 (ASM_INPUT_P): Likewise.
4991 (ASM_VOLATILE_P): Likewise.
4992 (EH_FILTER_MUST_NOT_THROW): Access static_flag directly.
4993 (OMP_SECTION_LAST): Access private_flag directly.
4994 (OMP_RETURN_NOWAIT): Likewise.
4995 (OMP_PARALLEL_COMBINED): Likewise.
4996 (OMP_CLAUSE_PRIVATE_DEBUG): Access public_flag directly.
4997 (OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE): Likewise.
4998 * tree-ssa-propagate.c (STMT_IN_SSA_EDGE_WORKLIST): Access
4999 deprecated_flag directly.
5001 2008-05-25 H.J. Lu <hongjiu.lu@intel.com>
5003 * final.c (frame_pointer_needed): Removed.
5004 * flags.h (frame_pointer_needed): Likewise.
5006 * function.h (rtl_data): Add frame_pointer_needed.
5007 (frame_pointer_needed): New.
5009 2008-05-25 Arthur Loiret <arthur.loiret@u-psud.fr>
5011 * config.gcc (sh2[lbe]*-*-linux*): Allow target.
5013 2008-05-25 Steven Bosscher <stevenb.gcc@gmail.com>
5015 * gcse.c (hash_scan_set): Do not pick up a REG_EQUAL value if
5018 2008-05-25 Alan Modra <amodra@bigpond.net.au>
5020 * c-common.c (strip_array_types): Move function to..
5022 (get_inner_array_type): Delete.
5023 * c-common.h (strip_array_types): Move declaration to..
5025 (get_inner_array_type): Delete.
5026 * config/i386/i386.c (x86_field_alignment): Use strip_array_types.
5027 * config/rs6000/aix.h (ADJUST_FIELD_ALIGN): Likewise.
5028 * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
5029 * config/pa/pa.c (emit_move_sequence): Likewise.
5031 2008-05-24 H.J. Lu <hongjiu.lu@intel.com>
5033 * config/i386/i386.md (*sse_prologue_save_insn): Set length
5036 2008-05-24 Andy Hutchinson <hutchinsonandy@aim.com>
5038 * function.c: Include target hook for nonlocal_goto frame value.
5040 2008-05-24 Richard Guenther <rguenther@suse.de>
5042 * tree-dfa.c (refs_may_alias_p): Re-instantiate case that a scalar
5043 variable can be only accessed through a pointer or a union.
5045 2008-05-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5047 * builtins.c (fold_builtin_fpclassify): Fix spelling of FP_INFINITE.
5048 * doc/extend.texi: Likewise.
5050 2008-05-23 DJ Delorie <dj@redhat.com>
5052 * config/m32c/jump.md (untyped_call): Add.
5054 * config/m32c/m32c.c (m32c_return_addr_rtx): Change pointer type
5056 (m32c_address_cost): Detail costs for indirect offsets.
5058 2008-05-23 Rafael Espindola <espindola@google.com>
5060 * see.c (see_get_extension_data): Don't use SUBREG_REG to test
5061 if a node is a SUBREG.
5062 (see_analyze_one_def): Don't use SUBREG_REG to test if a node
5065 2008-05-23 Paul Brook <paul@codesourcery.com>
5066 Carlos O'Donell <carlos@codesourcery.com>
5068 * doc/extend.texi: Clarify use of __attribute__((naked)).
5069 * doc/tm.texi: Document TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS.
5070 * target.h (gcc_target): Add allocate_stack_slots_for_args.
5071 * function.c (use_register_for_decl): Use
5072 targetm.calls.allocate_stack_slots_for_args.
5073 * target-def.h (TARGET_CALLS): Add TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS.
5074 * config/arm/arm.c (arm_allocate_stack_slots_for_args): New function.
5075 (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Define.
5077 2008-05-23 Eric Botcazou <ebotcazou@adacore.com>
5079 * expr.c (highest_pow2_factor) <BIT_AND_EXPR>: New case.
5081 2008-05-23 Steven Munroe <sjmunroe@us.ibm.com>
5083 * config/rs6000/darwin-ldouble.c (fmsub): Eliminate the full
5084 PACK/UNPACK between FP_SUB_Q and FD_TRUNC so that the result
5085 is only rounded once.
5087 2008-05-23 Richard Guenther <rguenther@suse.de>
5089 * tree-ssa-operands.c (mark_difference_for_renaming): Use bitmap_xor.
5091 2008-05-23 Uros Bizjak <ubizjak@gmail.com>
5092 Jakub Jelinek <jakub@redhat.com>
5095 * configure.ac: Handle --enable-cld.
5096 * configure: Regenerated.
5097 * config.gcc: Add USE_IX86_CLD to tm_defines for x86 targets.
5098 * config/i386/i386.h (struct machine_function): Add needs_cld field.
5099 (ix86_current_function_needs_cld): New define.
5100 * config/i386/i386.md (UNSPEC_CLD): New unspec volatile constant.
5101 (cld): New isns pattern.
5102 (strmov_singleop, rep_mov, strset_singleop, rep_stos, cmpstrnqi_nz_1,
5103 cmpstrnqi_1, strlenqi_1): Set ix86_current_function_needs_cld flag.
5104 * config/i386/i386.opt (mcld): New option.
5105 * config/i386/i386.c (ix86_expand_prologue): Emit cld insn if
5106 TARGET_CLD and ix86_current_function_needs_cld.
5107 (override_options): Use -mcld by default for 32-bit code if
5110 * doc/install.texi (Options specification): Document --enable-cld.
5111 * doc/invoke.texi (Machine Dependent Options)
5112 [i386 and x86-64 Options]: Add -mcld option.
5113 (Intel 386 and AMD x86-64 Options): Document -mcld option.
5115 2008-05-23 Kai Tietz <kai.tietz@onevison.com>
5116 * config/i386/i386.c (return_in_memory_32): Add ATTRIBUTE_UNUSED.
5117 (return_in_memory_64): Likewise.
5118 (return_in_memory_ms_64): Likewise.
5120 2008-05-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5122 * builtin-types.def (BT_FN_INT_INT_INT_INT_INT_INT_VAR): New.
5123 * builtins.c (fold_builtin_fpclassify): New.
5124 (fold_builtin_varargs): Handle BUILT_IN_FPCLASSIFY.
5125 * builtins.def (BUILT_IN_FPCLASSIFY): New.
5126 * c-common.c (handle_type_generic_attribute): Adjust to accept
5127 fixed arguments before an elipsis.
5128 (check_builtin_function_arguments): Handle BUILT_IN_FPCLASSIFY.
5129 * doc/extend.texi: Document __builtin_fpclassify.
5131 2008-05-22 Aldy Hernandez <aldyh@redhat.com>
5133 * omp-low.c (gate_expand_omp_ssa): Remove.
5134 (pass_expand_omp_ssa): Remove.
5135 (gate_expand_omp): Do not check for flag_openmp_ssa.
5136 * common.opt (-fopenmp-ssa): Remove.
5137 * passes.c (init_optimization_passes): Remove pass_expand_omp_ssa.
5139 2008-05-22 Kaz Kojima <kkojima@gcc.gnu.org>
5141 * config/sh/sh.opt (mfixed-range): New option.
5142 * config/sh/sh-protos.h (sh_fix_range): Declare.
5143 * config/sh/sh.c (sh_fix_range): New function.
5144 * config/sh/sh.h (sh_fixed_range_str): Declare.
5145 (OVERRIDE_OPTIONS): Call sh_fix_range if sh_fixed_range_str
5147 * doc/invoke.texi (SH Options): Document -mfixed-range.
5149 2008-05-22 Kai Tietz <kai.tietz@onevision.com>
5151 * config/i386/sol2-10.h (SUBTARGET_RETURN_IN_MEMORY): Undefine
5152 it before the redeclaration.
5154 2008-05-22 Anatoly Sokolov <aesok@post.ru>
5156 * config/avr/avr.c (get_sequence_length): Add new function.
5157 (expand_prologue, expand_epilogue): Remove duplicate code.
5159 2008-05-22 Rafael Espindola <espindola@google.com>
5161 * see.c (see_pre_insert_extensions): Use copy_rtx to avoid invalid rtx
5164 2008-05-22 H.J. Lu <hongjiu.lu@intel.com>
5166 * defaults.h (UNITS_PER_SIMD_WORD): Add scalar mode as argument.
5167 * doc/tm.texi (UNITS_PER_SIMD_WORD): Likewise.
5169 * tree-vect-analyze.c (vect_compute_data_ref_alignment): Replace
5170 UNITS_PER_SIMD_WORD with GET_MODE_SIZE (TYPE_MODE (vectype)).
5171 (vect_update_misalignment_for_peel): Likewise.
5172 (vector_alignment_reachable_p): Likewise.
5173 * tree-vect-transform.c (vectorizable_load): Likewise.
5174 * tree-vectorizer.c (vect_supportable_dr_alignment): Likewise.
5175 (get_vectype_for_scalar_type): Pass mode of scalar_type
5176 to UNITS_PER_SIMD_WORD.
5178 * config/arm/arm.h (UNITS_PER_SIMD_WORD): Updated.
5179 * config/i386/i386.h (UNITS_PER_SIMD_WORD): Likewise.
5180 * config/mips/mips.h (UNITS_PER_SIMD_WORD): Likewise.
5181 * config/rs6000/rs6000.h (UNITS_PER_SIMD_WORD): Likewise.
5182 * config/sparc/sparc.h (UNITS_PER_SIMD_WORD): Likewise.
5184 2008-05-22 Ira Rosen <irar@il.ibm.com>
5186 PR tree-optimization/36293
5187 * tree-vect-transform.c (vect_transform_strided_load): Don't check
5188 if the first load must be skipped because of a gap.
5190 2008-05-22 Richard Guenther <rguenther@suse.de>
5192 * tree-dfa.c (refs_may_alias_p): Exit early if possible. Handle
5193 more cases of offset disambiguation that is possible if
5194 strict-aliasing rules apply.
5195 * tree-ssa-loop-im.c (mem_refs_may_alias_p): Use refs_may_alias_p
5196 for basic offset and type-based disambiguation.
5198 2008-05-21 H.J. Lu <hongjiu.lu@intel.com>
5200 * config/i386/i386.c (ix86_expand_vector_init_one_var): Use
5201 ix86_expand_vector_set on V16QImode for SSE4.1.
5203 2008-05-21 Tom Tromey <tromey@redhat.com>
5205 * c.opt (Wimport): Mark as undocumented.
5206 * doc/invoke.texi (Option Summary): Don't mention -Wimport or
5208 (Warning Options): Likewise.
5209 * doc/cppopts.texi: Don't mention -Wimport.
5211 2008-05-21 Sebastian Pop <sebastian.pop@amd.com>
5213 PR tree-optimization/36287
5214 PR tree-optimization/36286
5215 * lambda-code.c (build_access_matrix): Do not use the loop->num
5216 for computing the number of induction variables: use the loop depth
5219 2008-05-21 Kai Tietz <kai.tietz@onevision.com>
5222 * config/i386/cygming.h (ASM_OUTPUT_LABELREF): Honor
5223 option -f(no-)leading-underscore.
5225 2008-05-21 H.J. Lu <hongjiu.lu@intel.com>
5227 * config/i386/i386.c (ix86_expand_vector_init_general): Use
5228 GET_MODE_NUNITS (mode).
5230 2008-05-21 Peter Bergner <bergner@vnet.ibm.com>
5232 * doc/invoke.texi: Add cpu_type's 464 and 464fp.
5233 (-mmulhw): Add 464 to description.
5234 (-mdlmzb): Likewise.
5235 * config.gcc: Handle --with-cpu=464 and --with-cpu=464fp.
5236 * config/rs6000/rs6000.c (processor_target_table): Add 464 and
5238 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add 464 and 464fp support.
5239 * config/rs6000/t-fprules (MULTILIB_MATCHES_FLOAT): Include -mcpu=464.
5240 * config/rs6000/rs6000.md: Update comments for 464.
5242 2008-05-21 Janis Johnson <janis187@us.ibm.com>
5244 * doc/sourcebuild.texi (Test Directives): Add dg-xfail-run-if.
5246 2008-05-21 H.J. Lu <hongjiu.lu@intel.com>
5248 * config/i386/sse.md (vec_extractv4sf): Removed.
5249 (vec_extractv2df): Likewise.
5250 (vec_extractv2di): Likewise.
5251 (vec_extractv4si): Likewise.
5252 (vec_extractv8hi): Likewise.
5253 (vec_extractv16qi): Likewise.
5254 (vec_extract<mode>): New.
5256 2008-05-21 H.J. Lu <hongjiu.lu@intel.com>
5258 * config/i386/sse.md (vec_setv4sf): Removed.
5259 (vec_setv2df): Likewise.
5260 (vec_setv2di): Likewise.
5261 (vec_setv4si): Likewise.
5262 (vec_setv8hi): Likewise.
5263 (vec_setv16qi): Likewise.
5264 (vec_set<mode>): New.
5266 2008-05-21 H.J. Lu <hongjiu.lu@intel.com>
5268 * config/i386/i386.c (ix86_expand_vector_init_general): Remove
5269 goto for vec_concat and vec_interleave.
5271 2008-05-21 H.J. Lu <hongjiu.lu@intel.com>
5273 * config/i386/sse.md (vec_initv4sf): Removed.
5274 (vec_initv2df): Likewise.
5275 (vec_initv2di): Likewise.
5276 (vec_initv4si): Likewise.
5277 (vec_initv8hi): Likewise.
5278 (vec_initv16qi): Likewise.
5279 (vec_init<mode>): New.
5281 2008-05-21 Joseph Myers <joseph@codesourcery.com>
5283 * collect2.c (find_a_file): Use IS_ABSOLUTE_PATH.
5285 2008-05-21 Tom Tromey <tromey@redhat.com>
5287 * ggc-zone.c (lookup_page_table_if_allocated): New function.
5288 (zone_find_object_offset): Likewise.
5289 (gt_ggc_m_S): Likewise.
5290 (highest_bit): Likewise.
5291 * ggc-page.c (gt_ggc_m_S): New function.
5292 * stringpool.c (string_stack): Remove.
5293 (init_stringpool): Update.
5294 (ggc_alloc_string): Use ggc_alloc.
5295 (maybe_delete_ident): New function.
5296 (ggc_purge_stringpool): Likewise.
5297 (gt_ggc_m_S): Remove.
5298 * ggc-common.c (ggc_protect_identifiers): New global.
5299 (ggc_mark_roots): Call ggc_purge_stringpool. Use
5300 ggc_protect_identifiers.
5301 * ggc.h (ggc_protect_identifiers): Declare.
5302 (gt_ggc_m_S): Update.
5303 (ggc_purge_stringpool): Declare.
5304 * toplev.c (compile_file): Set and reset ggc_protect_identifiers.
5305 * gengtype.c (write_types_process_field) <TYPE_STRING>: Remove
5307 (write_root): Cast gt_ggc_m_S to gt_pointer_walker.
5309 2008-05-21 David S. Miller <davem@davemloft.net>
5311 * config.gcc (sparc-*-linux*): Always include sparc/t-linux in
5314 2008-05-21 Eric Botcazou <ebotcazou@adacore.com>
5316 * cfgexpand.c (tree_expand_cfg): Zap the EH throw statement table
5319 2008-05-20 David Daney <ddaney@avtrex.com>
5321 * config/mips/mips.md (UNSPEC_SYNC_NEW_OP_12,
5322 UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE_12): New define_constants.
5323 (UNSPEC_SYNC_EXCHANGE, UNSPEC_MEMORY_BARRIER, UNSPEC_SET_GOT_VERSION,
5324 UNSPEC_UPDATE_GOT_VERSION): Renumber.
5325 (optab, insn): Add 'plus' and 'minus' to define_code_attr.
5326 (atomic_hiqi_op): New define_code_iterator.
5327 (sync_compare_and_swap<mode>): Call mips_expand_atomic_qihi instead of
5328 mips_expand_compare_and_swap_12.
5329 (compare_and_swap_12): Use MIPS_COMPARE_AND_SWAP_12 instead of
5330 MIPS_COMPARE_AND_SWAP_12_0. Pass argument to MIPS_COMPARE_AND_SWAP_12.
5331 (sync_<optab><mode>, sync_old_<optab><mode>,
5332 sync_new_<optab><mode>, sync_nand<mode>, sync_old_nand<mode>,
5333 sync_new_nand<mode>): New define_expands for HI and QI mode operands.
5334 (sync_<optab>_12, sync_old_<optab>_12, sync_new_<optab>_12,
5335 sync_nand_12, sync_old_nand_12, sync_new_nand_12): New insns.
5336 (sync_lock_test_and_set<mode>): New define_expand for HI and QI modes.
5337 (test_and_set_12): New insn.
5338 (sync_old_add<mode>, sync_new_add<mode>, sync_old_<optab><mode>,
5339 sync_new_<optab><mode>, sync_old_nand<mode>,
5340 sync_new_nand<mode>, sync_lock_test_and_set<mode>): Add early
5341 clobber to operand 0 for SI and DI mode insns.
5342 * config/mips/mips-protos.h (mips_gen_fn_6, mips_gen_fn_5,
5343 mips_gen_fn_4): New typedefs.
5344 (mips_gen_fn_ptrs): Define new union type.
5345 (mips_expand_compare_and_swap_12): Remove declaration.
5346 (mips_expand_atomic_qihi): Declare function.
5347 * config/mips/mips.c (mips_expand_compare_and_swap_12): Rename to...
5348 (mips_expand_atomic_qihi): ... this. Use new generator function
5350 * config/mips/mips.h (MIPS_COMPARE_AND_SWAP_12): Add OPS parameter.
5351 (MIPS_COMPARE_AND_SWAP_12_0): Delete macro.
5352 (MIPS_COMPARE_AND_SWAP_12_ZERO_OP, MIPS_COMPARE_AND_SWAP_12_NONZERO_OP,
5353 MIPS_SYNC_OP_12, MIPS_SYNC_OP_12_NOT_NOP,
5354 MIPS_SYNC_OP_12_NOT_NOT, MIPS_SYNC_OLD_OP_12,
5355 MIPS_SYNC_OLD_OP_12_NOT_NOP, MIPS_SYNC_OLD_OP_12_NOT_NOP_REG,
5356 MIPS_SYNC_OLD_OP_12_NOT_NOT, MIPS_SYNC_OLD_OP_12_NOT_NOT_REG,
5357 MIPS_SYNC_NEW_OP_12, MIPS_SYNC_NEW_OP_12_NOT_NOP,
5358 MIPS_SYNC_NEW_OP_12_NOT_NOT, MIPS_SYNC_EXCHANGE_12,
5359 MIPS_SYNC_EXCHANGE_12_ZERO_OP, MIPS_SYNC_EXCHANGE_12_NONZERO_OP):
5362 2008-05-20 H.J. Lu <hongjiu.lu@intel.com>
5364 * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): Add
5367 2008-05-20 Anatoly Sokolov <aesok@post.ru>
5369 * config/avr/avr.h (machine_function): Add 'is_OS_main' field.
5370 * config/avr/avr.c (avr_OS_main_function_p): Add new function.
5371 (avr_attribute_table): Add 'OS_main' function attribute.
5372 (avr_regs_to_save, expand_prologue, expand_epilogue): Handle
5373 functions with 'OS_main' attribute.
5375 2008-05-20 Richard Guenther <rguenther@suse.de>
5377 PR tree-optimization/35204
5378 * tree-ssa-sccvn.c (extract_and_process_scc_for_name): New
5379 helper, split out from ...
5380 (DFS): ... here. Make the DFS walk non-recursive.
5382 2008-05-20 Sebastian Pop <sebastian.pop@amd.com>
5383 Jan Sjodin <jan.sjodin@amd.com>
5385 PR tree-optimization/36181
5386 * tree-parloops.c (loop_has_vector_phi_nodes): New.
5387 (parallelize_loops): Don't parallelize when the loop has vector
5390 2008-05-20 Jan Sjodin <jan.sjodin@amd.com>
5391 Sebastian Pop <sebastian.pop@amd.com>
5393 * tree-loop-linear.c (gather_interchange_stats): Look in the access
5394 matrix, and never look at the tree representation of the memory
5396 (linear_transform_loops): Computes parameters and access matrices.
5397 * tree-data-ref.c (compute_data_dependences_for_loop): Returns false
5399 (access_matrix_get_index_for_parameter): New.
5400 * tree-data-ref.h (struct access_matrix): New.
5401 (AM_LOOP_NEST_NUM, AM_NB_INDUCTION_VARS, AM_PARAMETERS, AM_MATRIX,
5402 AM_NB_PARAMETERS, AM_CONST_COLUMN_INDEX, AM_NB_COLUMNS,
5403 AM_GET_SUBSCRIPT_ACCESS_VECTOR, AM_GET_ACCESS_MATRIX_ELEMENT,
5404 am_vector_index_for_loop): New.
5405 (struct data_reference): Add field access_matrix.
5406 (DR_ACCESS_MATRIX): New.
5407 (compute_data_dependences_for_loop): Update declaration.
5408 (lambda_collect_parameters, lambda_compute_access_matrices): Declared.
5409 * lambda.h (lambda_vector_vec_p): Declared.
5410 * lambda-code.c: Depend on pointer-set.h.
5411 (lambda_collect_parameters_from_af, lambda_collect_parameters,
5412 av_for_af_base, av_for_af, build_access_matrix,
5413 lambda_compute_access_matrices): New.
5414 * Makefile.in (lambda-code.o): Depend on pointer-set.h.
5416 2008-05-20 Joseph Myers <joseph@codesourcery.com>
5418 * doc/install.texi2html: Generate gcc-vers.texi in $DESTDIR not
5421 2008-05-20 Jan Sjodin <jan.sjodin@amd.com>
5422 Sebastian Pop <sebastian.pop@amd.com>
5424 PR tree-optimization/36206
5425 * tree-scalar-evolution.c: Remove enum INSERT_SUPERLOOP_CHRECS,
5427 (instantiate_scev_1): Rename flags to fold_conversions.
5428 Do not check for INSERT_SUPERLOOP_CHRECS, keep SSA_NAMEs defined
5429 outeside instantiation_loop.
5430 * tree-chrec.h (evolution_function_is_affine_in_loop): New.
5431 (evolution_function_is_affine_or_constant_p): Removed.
5432 * tree-data-ref.c (dr_analyze_indices): Replace resolve_mixers with
5434 (analyze_siv_subscript): Pass in the loop nest number.
5435 Call evolution_function_is_affine_in_loop instead of
5436 evolution_function_is_affine_p.
5437 (analyze_overlapping_iterations): Pass in the loop nest number.
5439 2008-05-20 Jan Sjodin <jan.sjodin@amd.com>
5440 Sebastian Pop <sebastian.pop@amd.com>
5442 PR tree-optimization/36206
5443 * tree-chrec.h (chrec_fold_op): New.
5444 * tree-data-ref.c (initialize_matrix_A): Traverse NOP_EXPR, PLUS_EXPR,
5447 2008-05-20 Nathan Sidwell <nathan@codesourcery.com>
5449 * c-incpath.c (INO_T_EQ): Do not define on non-inode systems.
5451 (remove_duplicates): Do not set inode on non-inode systems.
5454 2008-05-20 Sandra Loosemore <sandra@codesourcery.com>
5456 * config.gcc (tm_file): Update comments about relative pathnames.
5458 2008-05-20 Richard Guenther <rguenther@suse.de>
5460 * tree-ssa-reassoc.c (fini_reassoc): Use the statistics infrastructure.
5461 * tree-ssa-sccvn.c (process_scc): Likewise.
5462 * tree-ssa-sink.c (execute_sink_code): Likewise.
5463 * tree-ssa-threadupdate.c (thread_through_all_blocks): Likewise.
5464 * tree-vrp.c (process_assert_insertions): Likewise.
5465 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Likewise.
5466 (perform_tree_ssa_dce): Likewise.
5467 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Likewise.
5468 (dump_dominator_optimization_stats): Likewise.
5469 * tree-vectorizer.c (vectorize_loops): Likewise.
5471 2008-05-20 Richard Guenther <rguenther@suse.de>
5473 * tree-vn.c (vn_lookup_with_vuses): Do not use the alias oracle.
5475 2008-05-20 Kai Tietz <kai.tietz@onevision.com>
5477 * config/i386/i386-protos.h (ix86_return_in_memory): Removed.
5478 (ix86_i386elf_return_in_memory): Likewise.
5479 (ix86_i386interix_return_in_memory): Likewise.
5480 * config/i386/i386-interix.h (TARGET_RETURN_IN_MEMORY): Removed.
5481 (SUBTARGET_RETURN_IN_MEMORY): New.
5482 * config/i386/i386elf.h: Likewise.
5483 * config/i386/ptx4-i.h: Likewise.
5484 * config/i386/sol2-10.h: Likewise.
5485 * config/i386/sysv4.h: Likewise.
5486 * config/i386/vx-common.h: Likewise.
5487 * config/i386/i386.h (TARGET_RETURN_IN_MEMORY): Removed.
5488 * config/i386/i386.c (ix86_return_in_memory): Made static and
5489 make use of optional SUBTARGET_RETURN_IN_MEMORY macro.
5490 (ix86_i386elf_return_in_memory): Removed.
5491 (ix86_i386interix_return_in_memory): Removed.
5492 (TARGET_RETURN_IN_MEMORY): Declared within i386.c only.
5493 * target-def.h (TARGET_RETURN_IN_MEMORY): Remove protection #ifdef.
5495 2008-05-20 Alexandre Oliva <aoliva@redhat.com>
5497 * cselib.c (cselib_record_sets): Use correct mode for IF_THEN_ELSE.
5499 2008-05-19 Xinliang David Li <davidxl@google.com>
5501 * tree-ssa-dce.c: Revert patches of 2008-05-17 and 2008-05-18.
5503 * common.opt: Ditto.
5504 * doc/invoke.texi: Ditto.
5506 2008-05-19 Eric Botcazou <ebotcazou@adacore.com>
5508 * tree.c (substitute_in_expr) <tcc_vl_exp>: Fix thinko.
5509 (substitute_placeholder_in_expr) <tcc_vl_exp>: Minor tweak.
5511 2008-05-19 H.J. Lu <hongjiu.lu@intel.com>
5513 * config/i386/i386.c (ix86_expand_vector_init_concat): Change
5514 sizes of operand array from 8/4 to 4/2.
5515 (ix86_expand_vector_init_general): Change size of operand array
5516 from 32 to 16. Remove op0, op1 and half_mode.
5518 2008-05-19 H.J. Lu <hongjiu.lu@intel.com>
5520 * config/i386/i386.c (ix86_expand_vector_init_concat): New.
5521 (ix86_expand_vector_init_interleave): Likewise.
5522 (ix86_expand_vector_init_general): Use them. Assert
5523 word_mode == SImode when n_words == 4.
5525 2008-05-19 Uros Bizjak <ubizjak@gmail.com>
5527 * config/i386/i386.c (ix86_secondary_reload): New static function.
5528 (TARGET_SECONDARY_RELOAD): New define.
5529 * config/i386/i386.h (SECONDARY_OUTPUT_RELOAD_CLASS): Remove.
5530 * config/i386/i386.md (reload_outqi): Remove.
5532 2008-05-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5535 * builtins.c (mathfn_built_in_1): Renamed from mathfn_built_in.
5536 Add `implicit' parameter. Handle BUILT_IN_SIGNBIT.
5537 (mathfn_built_in): Rewrite in terms of mathfn_built_in_1.
5538 (fold_builtin_classify): Handle BUILT_IN_ISINF_SIGN.
5539 (fold_builtin_1): Likewise.
5540 * builtins.def (BUILT_IN_ISINF_SIGN): New.
5541 c-common.c (check_builtin_function_arguments): Handle
5542 BUILT_IN_ISINF_SIGN.
5543 * doc/extend.texi: Document __builtin_isinf_sign.
5544 * fold-const.c (operand_equal_p): Handle COND_EXPR.
5546 2008-05-18 Eric Botcazou <ebotcazou@adacore.com>
5548 * tree-ssa-dom.c (tree_ssa_dominator_optimize): If some blocks need
5549 EH cleanup at the end of the pass, search for those that have been
5550 turned into forwarder blocks and do the cleanup on their successor.
5552 2008-05-18 Richard Guenther <rguenther@suse.de>
5554 * tree-cfg.c (verify_gimple_expr): Allow conversions from
5555 pointers to sizetype and vice versa.
5557 2008-05-18 Xinliang David Li <davidxl@google.com>
5559 * gcc/tree-ssa-dce.c: Coding style fix.
5560 (check_pow): Documentation comment.
5561 (check_log): Documenation comment. Coding style fix.
5562 (is_unnecessary_except_errno_call): Ditto.
5563 (gen_conditions_for_pow): Ditto.
5564 (gen_conditions_for_log): Ditto.
5565 (gen_shrink_wrap_conditions): Ditto.
5566 (shrink_wrap_one_built_in_calls): Ditto.
5567 * gcc/doc/invoke.texi: Better documentation string.
5568 * ChangeLog: Fix wrong change log entries from
5569 May 17 checkin on function call DCE.
5571 2008-05-17 Kaz Kojima <kkojima@gcc.gnu.org>
5573 * config/sh/sh.c (sh_output_mi_thunk): Update the use of init_flow.
5575 2008-05-17 Kenneth Zadeck <zadeck@naturalbridge.com>
5577 * doc/rtl.texi (RTL_CONST_CALL_P, RTL_PURE_CALL_P): Fixed typos.
5578 * df-problems.c (simulation routines): Fixed block comment to
5579 properly say how to add forwards scanning functions.
5581 2008-05-17 Eric Botcazou <ebotcazou@adacore.com>
5583 * tree-inline.c (setup_one_parameter): Remove dead code.
5585 2008-05-17 Eric Botcazou <ebotcazou@adacore.com>
5587 * fold-const.c (fold_unary) <CASE_CONVERT>: Fold the cast into
5588 a BIT_AND_EXPR only for an INTEGER_TYPE.
5590 2008-05-17 Xinliang David Li <davidxl@google.com>
5592 * gcc/tree-ssa-dce.c (cond_dead_built_in_calls): New static variable.
5593 (check_pow, check_log, is_unnecessary_except_errno_call): New
5594 functions to check for eliminating math functions that are pure
5595 except for setting errno.
5596 (gen_conditions_for_pow, gen_conditionas_for_log): New functions to
5597 general condition expressions for shrink-wrapping pow/log calls.
5598 (gen_shrink_wrap_conditions): Ditto.
5599 (shrink_wrap_one_built_in_call): Ditto.
5600 (shrink_wrap_conditional_dead_built_in_calls): Ditto.
5601 (mark_operand_necessary): If debugging, output if OP is necessary.
5602 (eliminate_unnecessary_stmts): Eliminate pow, log calls that are
5604 * gcc/opts.c (decode_options): set flag_tree_builtin_dce to 1 when
5606 * gcc/common.opt: New user flag -ftree-builtin-dce.
5607 * gcc/doc/invoke.texi (-ftree-builtin-dce): New option.
5609 2008-05-16 David S. Miller <davem@davemloft.net>
5611 * config/sparc/linux.h (NO_PROFILE_COUNTERS): Undef before overriding.
5612 * config/sparc/linux64.h (NO_PROFILE_COUNTERS): Likewise.
5614 2008-05-16 Uros Bizjak <ubizjak@gmail.com>
5617 * config/i386/i386.h (SECONDARY_MEMORY_NEEDED_MODE): New define.
5619 2008-05-16 Kenneth Zadeck <zadeck@naturalbridge.com>
5621 * ifcvt.c (dead_or_predicable): Rename
5622 df_simulate_one_insn_backwards to df_simulate_one_insn.
5623 * recog.c (peephole2_optimize): Ditto.
5624 * rtl-factoring.c (collect_pattern_seqs, clear_regs_live_in_seq):
5626 * df.h: Rename df_simulate_one_insn_backwards to
5627 df_simulate_one_insn. and delete df_simulate_one_insn_forwards.
5628 * df-problems.c (df_simulate_artificial_refs_at_top) Reversed
5629 scanning of defs and uses.
5630 (df_simulate_one_insn_backwards): Renamed to df_simulate_one_insn.
5631 (df_simulate_one_insn_forwards): Removed.
5633 2008-05-16 Doug Kwan <dougkwan@google.com>
5635 * real.c (real_to_decimal, real_to_hexadecimal): Distinguish
5637 (real_from_string): Handle NaNs and Inf as approriate.
5639 2008-05-16 Nathan Froyd <froydnj@codesourcery.com>
5641 * doc/gty.texi (Source Files Containing Type Information): Note
5642 that headers should appear first in the gtfiles list.
5644 2008-05-16 Kenneth Zadeck <zadeck@naturalbridge.com>
5646 * tree.def (COND_EXEC): Properly documented this code.
5648 2008-05-16 Diego Novillo <dnovillo@google.com>
5650 * dwarf2asm.c (dw2_assemble_integer): Clarify comment.
5651 * tree-nested.c (get_trampoline_type): Set DECL_CONTEXT for
5654 2008-05-16 Kenneth Zadeck <zadeck@naturalbridge.com>
5656 * tree-ssa-dse (max_stmt_uid): Removed.
5657 (get_stmt_uid, dse_possible_dead_store_p, dse_optimize_stmt,
5658 tree_ssa_dse): Encapsulate all uses of stmt_ann->uid.
5659 * tree-ssa-sccvn.c (compare_ops, init_scc_vn): Ditto.
5660 * function.h (cfun.last_stmt_uid): New field.
5661 * tree-flow-inline.h (set_gimple_stmt_uid, gimple_stmt_uid,
5662 gimple_stmt_max_uid, set_gimple_stmt_max_uid, inc_gimple_stmt_max_uid):
5664 * tree-dfa.c (renumber_gimple_stmt_uids): New function.
5665 (create_stmt_ann): Initialize the ann->uid field.
5666 * tree-ssa-pre.c (compute_avail): Encapsulate the stmt_ann->uid
5668 * tree-flow.h (renumber_gimple_stmt_uids): New function.
5670 2008-05-16 Nathan Froyd <froydnj@codesourcery.com>
5672 * tree-flow.h (init_empty_tree_cfg_for_function): Declare.
5673 * tree-cfg.c (init_empty_tree_cfg_for_function): Define.
5674 (init_empty_tree_cfg): Call it.
5676 2008-05-16 Kenneth Zadeck <zadeck@naturalbridge.com>
5678 * cfg.c (init_flow): Add argument THE_FUN. Use it instead of cfun.
5681 2008-05-16 Kenneth Zadeck <zadeck@naturalbridge.com>
5683 * doc/invoke.text (-fdump-tree-*-verbose): New option.
5684 * tree-dump.c (dump_options): New verbose option.
5685 * tree-pretty-print.c (dump_phi_nodes, dump_generic_bb_buff):
5687 * tree-pass.h (TDF_VERBOSE): New dump flag.
5688 * print-tree.c (print_node): Added code to be able to print PHI_NODES.
5689 (tree-flow.h): Added include.
5690 * Makefile.in (print-tree.o): Added TREE_FLOW_H.
5692 2008-05-16 Bernd Schmidt <bernd.schmidt@analog.com>
5694 * config/bfin/bfin.c (bfin_discover_loops): Delete empty loops.
5696 From Jie Zhang <jie.zhang@analog.com>
5697 * config/bfin/t-bfin-elf (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
5698 MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Remove mcpu=bf532-0.3,
5699 mcpu=bf561-none and mcpu=bf561-0.2.
5700 * config/bfin/t-bfin-uclinux (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
5701 MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Likewise.
5702 * config/bfin/t-bfin-linux (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
5703 MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Likewise.
5704 * config/bfin/bfin-protos.h (enum bfin_cpu_type): Add BFIN_CPU_UNKNOWN.
5705 * config/bfin/elf.h (STARTFILE_SPEC): Use specific CRT for BF561.
5706 (LIB_SPEC): Use proper linker script for bf561. Error if no mcpu
5708 * config/bfin/bfin.c (bfin_cpu_type): Set to BFIN_CPU_UNKNOWN.
5709 (cputype_selected): Remove.
5710 (bfin_handle_option): Don't use cputype_selected.
5711 (override_options): When no mcpu option, enable all workarounds.
5712 Don't use bfin_workarounds.
5713 * config/bfin/bfin.h (DRIVER_SELF_SPECS): Don't set default
5715 (DEFAULT_CPU_TYPE): Don't define.
5717 2008-05-16 Richard Guenther <rguenther@suse.de>
5719 * tree-ssa-propagate.c (substitute_and_fold): Fix stmt walking
5720 on deletion of the last stmt.
5722 2008-05-15 H.J. Lu <hongjiu.lu@intel.com>
5724 * config/i386/i386.c (ix86_expand_vector_init_general): Optimize
5725 V8HImode for SSE2 and V16QImode for SSE4.1.
5727 2008-05-15 Kenneth Zadeck <zadeck@naturalbridge.com>
5729 * cgraph.h (compute_inline_parameters): Made public.
5730 * tree-pass.h (ipa_opt_pass): Removed function_generate_summary,
5731 variable_generate_summary, function_write_summary,
5732 variable_write_summary, variable_read_summary. Added generate_summary,
5733 write_summary, read_summary.
5734 * cgraphunit.c (cgraph_process_new_functions): Changed call from
5735 pass_ipa_inline.function_generate_summary, to
5736 compute_inline_parameters.
5737 * ipa-inline.c (compute_inline_parameters): Made public and added
5739 (compute_inline_parameters_for_current): New function.
5740 (pass_inline_param): Now calls compute_inline_parameters_for_current.
5741 (inline_generate_summary): Removed parameter and made to loop over
5743 (pass_ipa_inline): Updated for new IPA_PASS structure.
5744 * passes.c (execute_ipa_summary_passes): Now is called once per
5745 pass rather than once per node*pass.
5747 2008-05-15 Anatoly Sokolov <aesok@post.ru>
5749 * config/avr/avr.c (avr_base_arch_macro, avr_have_movw_lpmx_p,
5750 avr_have_mul_p, avr_asm_only_p): Remove variables.
5751 (avr_override_options): Remove initialization of removed variables.
5752 (avr_file_start): Convert removed variables to fields of
5753 'struct base_arch_s *avr_current_arch'.
5754 * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): (Ditto.).
5755 (AVR_HAVE_MUL): (Ditto.).
5756 (AVR_HAVE_MOVW): (Ditto.).
5757 (AVR_HAVE_LPMX): (Ditto.).
5758 (avr_base_arch_macro, avr_have_movw_lpmx_p, avr_have_mul_p,
5759 avr_asm_only_p): Remove declaration.
5761 2008-05-15 Diego Novillo <dnovillo@google.com>
5763 * config/arm/arm.c (arm_return_in_memory): Fix return type.
5764 * config/arm/arm-protos.h (arm_return_in_memory): Likewise.
5766 2008-05-15 Adam Nemet <anemet@caviumnetworks.com>
5769 * combine.c (check_conversion): Rename back to check_promoted_subreg.
5770 Don't call record_truncated_value from here.
5771 (record_truncated_value): Turn it into a for_each_rtx callback.
5772 (record_truncated_values): New function.
5773 (combine_instructions): Call note_uses with record_truncated_values.
5774 Change name of check_conversion to check_promoted_subreg.
5776 2008-05-15 Janis Johnson <janis187@us.ibm.com>
5778 * doc/sourcebuild.texi: Document support for torture tests.
5780 2008-05-15 Uros Bizjak <ubizjak@gmail.com>
5782 * config/i386/sse.md (*vec_concatv2sf_sse4_1): Add "m" constraint
5783 to alternative 4 of operand 2.
5785 2008-05-15 Richard Guenther <rguenther@suse.de>
5787 * tree-pass.h (current_pass): Declare.
5788 (get_pass_for_id): Likewise.
5789 * passes.c (passes_by_id, passes_by_id_size): New globals.
5790 (set_pass_for_id): New function.
5791 (get_pass_for_id): Likewise.
5792 (register_one_dump_file): Use set_pass_for_id to populate passes_by_id.
5793 (execute_function_todo): Flush per function statistics.
5794 * toplev.c (compile_file): Init statistics.
5795 (general_init): Do early statistics initialization.
5796 (finalize): Finish statistics.
5797 * statistics.h (statistics_early_init): Declare.
5798 (statistics_init): Likewise.
5799 (statistics_fini): Likewise.
5800 (statistics_fini_pass): Likewise.
5801 (statistics_counter_event): Likewise.
5802 (statistics_histogram_event): Likewise.
5803 * statistics.c: New file.
5804 * Makefile.in (OBJS-common): Add statistics.o.
5805 (statistics.o): Add dependencies.
5806 * doc/invoke.texi (-fdump-statistics): Document.
5808 * tree-ssa-pre.c (compute_antic): Use statistics_histogram_event.
5810 (execute_pre): Use statistics_counter_event.
5811 * tree-ssa-propagate.c (struct prop_stats_d): Add num_dce field.
5812 (substitute_and_fold): Increment it. Use statistics_counter_event.
5814 2008-05-15 Diego Novillo <dnovillo@google.com>
5816 http://gcc.gnu.org/ml/gcc-patches/2008-05/msg00893.html
5818 * treestruct.def (TS_STRUCT_FIELD_TAG): Remove.
5819 * tree-ssa-alias.c (new_type_alias): Remove references to
5820 sub-variables from comment.
5821 * tree-ssa-operands.c (swap_tree_operands): Likewise.
5823 2008-05-15 H.J. Lu <hongjiu.lu@intel.com>
5825 * config/i386/sse.md (*vec_concatv2sf_sse4_1): Set prefix_extra
5826 attribute to 1 only for insertps alternative.
5828 2008-05-15 Bernd Schmidt <bernd.schmidt@analog.com>
5830 * config/bfin/bfin.md (loadbytes): New pattern.
5831 * config/bfin/bfin.c (enum bfin_builtins): Add BFIN_BUILTIN_LOADBYTES.
5832 (bfin_init_builtins): Initialize it.
5833 (bdesc_1arg): Add it.
5835 2008-05-15 Sa Liu <saliu@de.ibm.com>
5837 * testsuite/gfortran.dg/c_kind_int128_test1.f03: New.
5838 * testsuite/gfortran.dg/c_kind_int128_test2.f03: New.
5839 * testsuite/lib/target-supports.exp: Add
5840 check_effective_target_fortran_integer_16.
5842 2008-05-15 Bernd Schmidt <bernd.schmidt@analog.com>
5844 * config/bfin/bfin.h (TARGET_RETURN_IN_MEMORY): Don't define here.
5845 * config/bfin/bfin-protos.h (bfin_return_in_memory): Don't declare.
5846 * config/bfin/bfin.c (bfin_return_in_memory): Now static. Return bool.
5847 (TARGET_RETURN_IN_MEMORY): Define.
5849 2008-05-15 Richard Guenther <rguenther@suse.de>
5852 * tree-ssa-alias.c (new_type_alias): Do not set TREE_READONLY.
5853 * tree-flow-inline.h (unmodifiable_var_p): Memory tags never
5854 represent unmodifiable vars.
5856 2008-05-15 Richard Guenther <rguenther@suse.de>
5858 * tree-dfa.c (refs_may_alias_p): Allow all kinds of
5859 INDIRECT_REF and TARGET_MEM_REF.
5860 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle
5863 2008-05-15 Uros Bizjak <ubizjak@gmail.com>
5864 H.J. Lu <hongjiu.lu@intel.com>
5866 * config/i386/sse.md (*vec_concatv2sf_sse4_1): New insn pattern.
5867 (*vec_concatv2si_sse4_1): Use vector_move_operand predicate
5868 for operand 2. Remove pinsr{q,d} with 0x0 immediate operand from
5869 insn alternatives. Add missing alternatives.
5870 (*vec_concatv2di_rex64_sse4_1): Likewise.
5871 (*vec_concatv2si_sse2): Use "x" register constraint instead of "Y2".
5872 (*vec_concatv2di_rex64_sse): Rename from *vec_concatv2di_rex64.
5875 2008-05-15 Richard Guenther <rguenther@suse.de>
5877 PR tree-optimization/36009
5878 PR tree-optimization/36204
5879 * tree-ssa-loop-im.c (tree-ssa-propagate.h): Include.
5880 (determine_invariantness_stmt): Record the loop a store is
5882 * Makefile.in (tree-ssa-loop-im.o): Add tree-ssa-propagate.h
5885 2008-05-15 Richard Guenther <rguenther@suse.de>
5887 PR tree-optimization/34330
5888 * tree-ssa-alias.c (get_smt_for): Only assert that accesses
5889 through the pointer will alias the SMT.
5891 2008-05-14 Andreas Tobler <a.tobler@schweiz.org>
5893 * config/sparc/sparc.h (NO_PROFILE_COUNTERS): Define as 0.
5895 2008-05-14 H.J. Lu <hongjiu.lu@intel.com>
5897 * config/i386/sse.md (*sse4_1_pinsrq): Make it 64bit only.
5899 2008-05-14 Michael Meissner <michael.meissner@amd.com>
5900 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
5902 * optabs.h (optab_index): Add OTI_vashl, OTI_vlshr, OTI_vashr,
5903 OTI_vrotl, OTI_vrotr to support vector/vector shifts.
5904 (vashl_optab): New optab for vector/vector shifts.
5905 (vashr_optab): Ditto.
5906 (vlshr_optab): Ditto.
5907 (vrotl_optab): Ditto.
5908 (vrotr_optab): Ditto.
5909 (optab_subtype): New enum for optab_for_tree_code call.
5910 (optab_for_tree_code): Add enum optab_subtype argument.
5912 * optabs.c (optab_for_tree_code): Take an additional argument to
5913 distinguish between a vector shift by a scalar and vector shift by
5914 a vector. Make lshr/ashr/ashl/rotl/rotr optabs just vector
5915 shifted by a scalar. Use vlshr/vashr/vashl/vrotl/vrotr for the
5916 vector shift by a vector.
5917 (expand_widen_pattern_expr): Pass additional argument to
5918 optab_for_tree_code.
5920 * genopinit.c (optabs): Add vashr_optab, vashl_optab, vlshr_optab,
5921 vrotl_optab, vrotr_optab.
5923 * expr.c (expand_expr_real_1): Update calls to
5924 optab_for_tree_code to distinguish between vector shifted by a
5925 scalar and vector shifted by a vector.
5926 * tree-vectorizer.c (supportable_widening_operation): Ditto.
5927 (supportable_narrowing_operation): Ditto.
5928 * tree-vect-analyze.c (vect_build_slp_tree): Ditto.
5929 * tree-vect-patterns.c (vect_pattern_recog_1): Ditto.
5930 * tree-vect-transform.c (vect_model_reduction_cost): Ditto.
5931 (vect_create_epilog_for_reduction): Ditto.
5932 (vectorizable_reduction): Ditto.
5933 (vectorizable_operation): Ditto.
5934 (vect_strided_store_supported): Ditto.
5935 (vect_strided_load_supported): Ditto.
5936 * tree-vect-generic.c (expand_vector_operations_1): Ditto.
5937 * expmed.c (expand_shift): Ditto.
5939 * doc/md.texi (ashl@var{m}3): Document that operand 2 is always a
5941 (ashr@var{m}3): Ditto.
5942 (vashl@var{m}3): Document new vector/vector shift standard name.
5943 (vashr@var{m}3): Ditto.
5944 (vlshr@var{m}3): Ditto.
5945 (vrotl@var{m}3): Ditto.
5946 (vrotr@var{m}3): Ditto.
5948 * config/i386/i386.md (PPERM_SRC): Move PPERM masks here from i386.c.
5949 (PPERM_INVERT): Ditto.
5950 (PPERM_REVERSE): Ditto.
5951 (PPERM_REV_INV): Ditto.
5952 (PPERM_ZERO): Ditto.
5953 (PPERM_ONES): Ditto.
5954 (PPERM_SIGN): Ditto.
5955 (PPERM_INV_SIGN): Ditto.
5956 (PPERM_SRC1): Ditto.
5957 (PPERM_SRC2): Ditto.
5959 * config/i386/sse.md (mulv2di3): Add SSE5 support.
5960 (sse5_pmacsdql_mem): New SSE5 define_and_split that temporarily
5961 allows a memory operand to be the value being added, and split it
5962 to improve vectorization.
5963 (sse5_pmacsdqh_mem): Ditto.
5964 (sse5_mulv2div2di3_low): SSE5 32-bit multiply and extend function.
5965 (sse5_mulv2div2di3_high): Ditto.
5966 (vec_pack_trunc_v8hi): Add SSE5 pperm support.
5967 (vec_pack_trunc_v4si): Ditto.
5968 (vec_pack_trunc_v2di): Ditto.
5969 (sse5_pcmov_<mode>): Remove code that tried to use use
5970 andps/andnps instead of pcmov.
5971 (vec_widen_smult_hi_v4si): If we have SSE5, use the pmacsdql and
5972 pmacsdqh instructions.
5973 (vec_widen_smult_lo_v4si): Ditto.
5975 * config/i386/i386.c (PPERM_SRC): Move PPERM masks to i386.md.
5976 (PPERM_INVERT): Ditto.
5977 (PPERM_REVERSE): Ditto.
5978 (PPERM_REV_INV): Ditto.
5979 (PPERM_ZERO): Ditto.
5980 (PPERM_ONES): Ditto.
5981 (PPERM_SIGN): Ditto.
5982 (PPERM_INV_SIGN): Ditto.
5983 (PPERM_SRC1): Ditto.
5984 (PPERM_SRC2): Ditto.
5985 (ix86_expand_sse_movcc): Move the SSE5 test after the if
5987 (ix86_expand_int_vcond): If SSE5 generate all possible integer
5989 (ix86_sse5_valid_op_p): Allow num_memory to be negative, which
5990 says ignore whether the last reference is a memory operand.
5992 2008-05-14 Michael Meissner <michael.meissner@amd.com>
5993 Paolo Bonzini <bonzini at gnu dot org>
5995 * config/rs6000/rs6000.c (bdesc_2arg): Change the names of vector
5998 * config/rs6000/altivec.md (vashl<mode>3): Rename from ashl<mode>3.
5999 (vlshr<mode>3): Rename from vlshr<mode>3.
6000 (vashr<mode>3): Rename from vashr<mode>3.
6001 (mulv4sf3): Change the names of vector shift patterns.
6005 * config/spu/spu.c (spu_initialize_trampoline): Rename vector
6008 * config/spu/spu-builtins.def (SI_SHLH): Rename vector shift insns.
6033 * config/spu/spu.md (v): New iterator macro to add v for vector types.
6034 (floatunssidf2_internal): Change vector/vector shift names.
6035 (floatunsdidf2_internal): Ditto.
6042 (vashl<mode>3): Rename from ashl<mode>3.
6043 (vashr<mode>3): Rename from ashr<mode>3.
6044 (vlshr<mode>3): Rename from lshr<mode>3.
6045 (vrotl<mode>3): Rename from rotl<mode>3.
6047 2008-05-14 Michael Meissner <michael.meissner@amd.com>
6050 * config/i386/sse.md (vec_widen_smult_hi_v4si): Delete, using unsigned
6051 multiply gives the wrong value when doing widening multiplies.
6052 (vec_widen_smult_lo_v4si): Ditto.
6054 2008-05-14 Kenneth Zadeck <zadeck@naturalbridge.com>
6056 * optabs.c (prepare_cmp_insn): Changed LCT_PURE_MAKE_BLOCK to
6057 LCT_PURE and LCT_CONST_MAKE_BLOCK to LCT_CONST in calls to
6058 emit_library_call_value.
6059 * builtins.c (expand_builtin_powi, expand_builtin_memcmp): Ditto.
6060 * tree.h (ECF_LIBCALL_BLOCK): Removed.
6061 * calls.c (initialize_argument_information, precompute_arguments,
6062 expand_call, emit_library_call_value_1): Remove ECF_LIBCALL_BLOCK.
6063 (precompute_arguments): Removed flags parameter.
6064 * rtl.h (LCT_CONST_MAKE_BLOCK, LCT_PURE_MAKE_BLOCK): Removed.
6066 2008-05-14 Richard Guenther <rguenther@suse.de>
6068 * tree-ssa-dse.c (dse_possible_dead_store_p): Remove dead code.
6069 Make sure to register the store if the use is a PHI_NODE.
6071 2008-05-14 Olivier Hainque <hainque@adacore.com>
6073 * expr.c (expand_expr_real_1) <normal_inner_ref>: Force op0 to
6074 memory if the component is to be referenced in BLKmode according
6075 to get_inner_reference.
6077 2008-05-14 Adam Nemet <anemet@caviumnetworks.com>
6079 * calls.c (emit_library_call_value_1): Restore code clearing
6080 ECF_LIBCALL_BLOCK to ensure that we only call end_sequence once.
6082 2008-05-14 Olivier Hainque <hainque@adacore.com>
6083 Nicolas Roche <roche@adacore.com>
6085 * configure.ac: Add support for a "gcc_subdir" variable in
6086 config-lang.in, to denote a subdirectory where the language/GCC
6087 integration files are to be found.
6088 * configure: Regenerate.
6090 2008-05-14 Ira Rosen <irar@il.ibm.com>
6092 PR tree-optimization/36098
6093 * tree-vect-analyze.c (vect_analyze_group_access): Set the gap
6094 value for the first load in the group in case of a gap.
6095 (vect_build_slp_tree): Check that there are no gaps in loads.
6097 2008-05-14 Kenneth Zadeck <zadeck@naturalbridge.com>
6099 * doc/rtl.texi: Removed reference to REG_NO_CONFLICT notes.
6100 * optabs.c (expand_binop, expand_absneg_bit, expand_unop,
6101 expand_copysign_bit, ): Change call to emit_no_conflict_block to
6102 emit_insn and remove unneeded code to construct extra args.
6103 (emit_no_conflict_block): Removed.
6104 * optabls.h: (emit_no_conflict_block): Removed.
6105 * cse.c (cse_extended_basic_block): Remove search for
6106 REG_NO_CONFLICT note.
6107 * global.c: Removed incorrect comment added in revision 117.
6108 * expr.c (convert_move): Change call to emit_no_conflict_block to
6110 * recog.c: Change comments so that they do not mention
6112 * local_alloc.c (combine_regs): Removed last parameter.
6113 (no_conflict_p): Removed.
6114 (block_alloc): Removed note, no_conflict_combined_regno and set
6115 local vars. Removed all code to process REG_NO_CONFLICT blocks.
6116 (combine_regs): Removed already_dead and code to look for
6117 REG_NO_CONFLICT notes.
6118 * lower_subreg (remove_retval_note): Removed code to look for
6119 REG_NO_CONFLICT block.
6120 (resolve_reg_notes): Removed REG_NO_CONFLICT case.
6121 (resolve_clobber): Remove code to process libcalls that have
6122 REG_NO_CONFLICT notes.
6123 * loop_invariant.c (find_invariant_insn): Removed REG_NO_CONFLICT
6125 * combine.c (can_combine_p, distribute_notes): Removed
6126 REG_NO_CONFLICT case.
6127 * config/cris/cris.md (movdi pattern): Changed emit_no_conflict_block
6129 * config/mn10300/mn10300.md (absdf2, negdf2 patterns): Ditto.
6130 * config/m68k/m68k.md (negdf2, negxf2, absdf2, absxf2 patterns):
6132 * reg-notes.def (NO_CONFLICT): Removed.
6134 2008-05-14 David S. Miller <davem@davemloft.net>
6136 * config/sparc/sparc.c (sparc_profile_hook): If
6137 NO_PROFILE_COUNTERS, don't generate and pass a label into mcount.
6138 * config/sparc/linux.h (NO_PROFILE_COUNTERS): Define as 1.
6139 * config/sparc/linux64.h (NO_PROFILE_COUNTERS): Likewise.
6141 2008-05-14 Andreas Krebbel <krebbel1@de.ibm.com>
6143 * cse.c (cse_cc_succs): Invoke delete_insn_and_edges.
6145 2008-05-13 Uros Bizjak <ubizjak@gmail.com>
6148 * config/i386/i386.c (ix86_expand_vector_init_general): Rearrange op0
6149 and op1 expansion before vector concat to have less live pseudos.
6151 2008-05-13 H.J. Lu <hongjiu.lu@intel.com>
6153 * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): Use
6154 ix86_expand_vector_set if supported.
6156 2008-05-13 Diego Novillo <dnovillo@google.com>
6157 Kenneth Zadeck <zadeck@naturalbridge.com>
6159 http://gcc.gnu.org/ml/gcc-patches/2008-05/msg00748.html
6161 * tree.h (init_phinodes, fini_phinodes, release_phi_node,
6162 phinodes_print_statistics, init_ssanames, fini_ssanames,
6163 make_ssa_name, duplicate_ssa_name, duplicate_ssa_name_ptr_info,
6164 release_ssa_name, release_defs, replace_ssa_name_symbol,
6165 ssanames_print_statistics): Move ...
6166 * tree-flow.h: ... here.
6167 * tree-ssanames.c (init_ssanames): Add arguments FN and SIZE.
6168 Use FN instead of cfun.
6169 (make_ssa_name_fn): Rename from make_ssa_name.
6170 (pass_release_ssa_names): Add TODO_dump_func to finish flags.
6171 * tree-flow-inline.h (make_ssa_name): Move from
6172 tree-ssanames.c. Convert to static inline. Call make_ssa_name_fn.
6173 * omp-low.c (expand_omp_parallel):
6174 * tree-flow-inline.h (redirect_edge_var_map_result):
6175 * tree-ssa.c (init_tree_ssa): Add argument FN.
6176 Use it instead of cfun. Update all users.
6178 2008-05-13 Tom Tromey <tromey@redhat.com>
6180 PR preprocessor/22168:
6181 * doc/cpp.texi (Top): Update menu.
6182 (Alternatives to Wrapper #ifndef): New node.
6183 (Other Directives): Document deprecation.
6184 (Obsolete Features): Remove menu.
6185 (Assertions): Merge node into Obsolete Features.
6186 (Obsolete once-only headers): Move earlier; rename to Alternatives
6188 * doc/cppopts.texi: Update.
6189 * c.opt (Wdeprecated): Enable for C and ObjC.
6190 * doc/invoke.texi (Option Summary): Move -Wno-deprecated.
6191 (C++ Dialect Options): Move -Wno-deprecated from here to...
6192 (Warning Options): ... here.
6194 2008-05-13 Richard Guenther <rguenther@suse.de>
6197 * fold-const.c (fold_sign_changed_comparison): Do not allow
6198 changes in pointer-ness.
6200 2008-05-12 Kaz Kojima <kkojima@gcc.gnu.org>
6203 * config/sh/sh.c (sh_expand_prologue): Don't clear
6204 RTX_FRAME_RELATED_P for push insns.
6206 2008-05-12 Andy Hutchinson <hutchinsonandy@aim.com>
6208 * config/avr/avr.h (MAX_OFILE_ALIGNMENT): Define.
6210 2008-05-12 Anatoly Sokolov <aesok@post.ru>
6212 * config/avr/avr.h (machine_function): Add 'is_leaf' field.
6213 * config/avr/avr.c (avr_regs_to_save): Compute 'machine->is_leaf'.
6214 Use 'machine->is_leaf' instead of 'leaf_func_p'.
6216 2008-05-12 H.J. Lu <hongjiu.lu@intel.com>
6218 * config/i386/sse.md (*sse_concatv4sf): Renamed to ...
6219 (*vec_concatv4sf_sse): This.
6220 (*sse2_concatv2si): Renamed to ...
6221 (*vec_concatv2si_sse2): This.
6222 (*sse1_concatv2si): Renamed to ...
6223 (*vec_concatv2si_sse): This.
6224 (*vec_concatv2di_rex): Renamed to ...
6225 (*vec_concatv2di_rex64): This.
6226 (*vec_concatv2si_sse4_1): New.
6227 (*vec_concatv2di_rex64_sse4_1): Likewise.
6229 2008-05-12 Uros Bizjak <ubizjak@gmail.com>
6231 PR rtl-optimization/36111
6232 * recog.c (validate_replace_rtx_1): Unshare new RTL expression
6233 that was created for swappable operands.
6235 2008-05-12 Samuel Tardieu <sam@rfc1149.net>
6238 * Makefile.in: Substitute GNATMAKE and GNATBIND.
6239 * configure.ac: Add call to ACX_PROG_GNAT.
6241 2008-05-11 Volker Reichelt <v.reichelt@netcologne.de>
6243 * optc-gen.awk: Fix comment typo.
6245 2008-05-11 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
6247 * pretty-print.c (pp_integer_with_precision): Use
6248 HOST_LONG_LONG_FORMAT.
6250 2008-05-10 Kenneth Zadeck <zadeck@naturalbridge.com>
6252 * gcse.c (store_killed_in_insn): Negated call to RTL_CONST_CALL_P.
6254 2008-05-10 H.J. Lu <hongjiu.lu@intel.com>
6256 * config/i386/i386.c (bdesc_ptest): Removed.
6257 (ix86_builtin_type): Add INT_FTYPE_V2DI_V2DI_PTEST.
6258 (bdesc_args): Add __builtin_ia32_ptestz128,
6259 __builtin_ia32_ptestc128 and __builtin_ia32_ptestnzc128.
6260 (ix86_init_mmx_sse_builtins): Updated.
6261 (ix86_expand_args_builtin): Handle INT_FTYPE_V2DI_V2DI_PTEST.
6262 (ix86_expand_builtin): Updated.
6264 2008-05-10 Richard Sandiford <rdsandiford@googlemail.com>
6266 * tree-cfg.c (valid_fixed_convert_types_p): New function.
6267 (verify_gimple_expr): Handle FIXED_CONVERT_EXPR.
6269 2008-05-10 Uros Bizjak <ubizjak@gmail.com>
6271 * value-prof.c (interesting_stringop_to_profile): Do not
6272 return early for BUILT_IN_MEMPCPY.
6274 2008-05-09 H.J. Lu <hongjiu.lu@intel.com>
6276 * calls.c (expand_call): Don't use callgraph to increase
6277 preferred_stack_boundary.
6279 * cgraph.h (cgraph_rtl_info): Use unsigned on
6280 preferred_incoming_stack_boundary.
6282 * final.c (rest_of_clean_state): Use unsigned on
6283 preferred_stack_boundary.
6285 2008-05-09 Tom Tromey <tromey@redhat.com>
6287 PR preprocessor/22231:
6288 * c-opts.c (sanitize_cpp_opts): Disallow -MG if compilation is
6291 2008-05-09 Uros Bizjak <ubizjak@gmail.com>
6293 PR tree-optimization/36129
6294 * tree-ssa-ccp.c: Include value-prof.h.
6295 (execute_fold_all_builtins): Call gimple_remove_stmt_histograms if
6296 built-in function was folded to a constant.
6297 * Makefile.in (tree-ssa-ccp.c): Depend on value-prof.h
6299 2008-05-09 Jan Sjodin <jan.sjodin@amd.com>
6300 Sebastian Pop <sebastian.pop@amd.com>
6302 * tree-scalar-evolution.c: Document instantiate_scev.
6303 (instantiate_parameters_1): Renamed instantiate_scev_1.
6304 Don't use the same loop for instantiation_loop and evolution_loop.
6305 (instantiate_scev): New.
6306 (instantiate_parameters): Moved...
6307 (resolve_mixers): Update call to instantiate_scev_1 to pass the
6308 same loop twice. Maintains the semantics for this function.
6309 * tree-scalar-evolution.h (instantiate_scev): Declare.
6310 (instantiate_parameters): ...here. Now static inline.
6311 * tree-data-ref.c (dr_analyze_indices): Call instantiate_scev
6312 instead of resolve_mixers.
6314 2008-05-09 Maxim Kuvyrkov <maxim@codesourcery.com>
6316 * rtl-factoring.c (collect_pattern_seqs): Fix typo.
6318 2008-05-09 Tomas Bily <tbily@suse.cz>
6320 * config/pa/pa.c (reloc_needed): Use CASE_CONVERT.
6321 * tree-cfg.c (verify_expr, verify_gimple_expr): Likewise.
6322 * tree-ssa-structalias.c (get_constraint_for): Likewise.
6323 * c-common.c (c_common_truthvalue_conversion): Likewise.
6324 * tree-object-size.c (compute_object_offset): Likewise.
6325 * tree-inline.c (estimate_num_insns_1): Likewise.
6326 * varasm.c (const_hash_1, compare_constant, copy_constant)
6327 (compute_reloc_for_constant, output_addressed_constants)
6328 (initializer_constant_valid_p): Likewise.
6329 * c-omp.c (check_omp_for_incr_expr): Likewise.
6330 * gimplify.c (gimplify_expr): Likewise.
6331 * c-typeck.c (c_finish_return): Likewise.
6332 * tree-vectorizer.c (supportable_widening_operation)
6333 (supportable_narrowing_operation): Likewise.
6334 * c-pretty-print.c (pp_c_cast_expression, pp_c_expression): Likewise.
6335 * matrix-reorg.c (can_calculate_expr_before_stmt): Likewise.
6336 * expr.c (highest_pow2_factor, expand_expr_real_1): Likewise.
6337 * dwarf2out.c (loc_descriptor_from_tree_1, add_bound_info)
6338 (descr_info_loc): Likewise.
6339 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Likewise.
6340 * fold-const.c (operand_equal_p, make_range, extract_muldiv_1)
6341 (fold_unary): Likewise.
6342 * builtins.c (get_pointer_alignment): Likewise.
6343 * tree-scalar-evolution.c (interpret_rhs_modify_stmt)
6344 (instantiate_parameters_1): Likewise.
6345 * tree.c (expr_align, stabilize_reference): Likewise.
6346 * tree-pretty-print.c (dump_generic_node, op_prio): Likewise.
6347 * tree-ssa-loop-niter.c (derive_constant_upper_bound): Likewise.
6348 * convert.c (strip_float_extensions): Use CONVERT_EXPR_P.
6349 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
6350 * config/alpha/alpha.c (va_list_skip_additions): Likewise.
6351 * c-common.c (c_alignof_expr, check_function_arguments_recurse):
6353 * tree-ssa.c (tree_ssa_useless_type_conversion): Likewise.
6354 * varasm.c (initializer_constant_valid_p, output_constant): Likewise.
6355 * tree-ssa-forwprop.c (get_prop_source_stmt, can_propagate_from)
6356 (forward_propagate_addr_expr_1, forward_propagate_addr_expr)
6357 (forward_propagate_comparison)
6358 (tree_ssa_forward_propagate_single_use_vars): Likewise.
6359 * cfgexpand.c (discover_nonconstant_array_refs_r): Likewise.
6360 * emit-rtl.c (component_ref_for_mem_expr)
6361 (set_mem_attributes_minus_bitpos): Likewise.
6362 * tree-ssa-phiopt.c (conditional_replacement): Likewise.
6363 * gimplify.c (gimplify_conversion, goa_lhs_expr_p, gimplify_expr):
6365 * c-typeck.c (default_function_array_conversion, build_indirect_ref)
6366 (build_function_call, pointer_diff, build_compound_expr)
6367 (c_finish_return): Likewise.
6368 * tree-vect-analyze.c (vect_determine_vectorization_factor): Likewise.
6369 * matrix-reorg.c (get_inner_of_cast_expr, may_flatten_matrices_1):
6371 * tree-ssa-ifcombine.c (recognize_single_bit_test): Likewise.
6372 * expr.c (is_aligning_offset): Likewise.
6373 * tree-ssa-alias.c (is_escape_site): Likewise.
6374 * tree-stdarg.c (va_list_counter_bump, check_va_list_escapes)
6375 (check_all_va_list_escapes): Likewise.
6376 * tree-ssa-loop-ivopts.c (determine_base_object)
6377 (determine_common_wider_type): Likewise.
6378 * dojump.c (do_jump): Likewise.
6379 * tree-ssa-sccvn.c (simplify_unary_expression): Likewise.
6380 * tree-gimple.c (is_gimple_cast): Likewise.
6381 * fold-const.c (decode_field_reference, )
6382 (fold_sign_changed_comparison, fold_unary, fold_comparison)
6383 (fold_binary): Likewise.
6384 * tree-ssa-alias-warnings.c (find_alias_site_helper)
6385 (already_warned_in_frontend_p): Likewise.
6386 * builtins.c (get_memory_rtx, fold_builtin_next_arg): Likewise.
6387 * tree.c (really_constant_p, get_unwidened): Likewise.
6388 * tree-ssa-loop-niter.c (expand_simple_operations): Likewise.
6389 * tree-ssa-loop-im.c (rewrite_bittest): Likewise.
6390 * tree-vrp.c (register_edge_assert_for_2, register_edge_assert_for_1):
6392 * tree.h (STRIP_NOPS, STRIP_SIGN_NOPS, STRIP_TYPE_NOPS): Use
6394 (CONVERT_EXPR_P): Define.
6395 (CASE_CONVERT): Define.
6397 2008-05-08 Kenneth Zadeck <zadeck@naturalbridge.com>
6400 * dce.c (deletable_insn_p): Do not delete calls if df_in_progress.
6401 (delete_unmarked_insns): When deleting a call, call
6402 delete_unreachable_blocks.
6403 * rtl.texi (RTL_CONST_CALL_P, RTL_PURE_CALL_P,
6404 RTL_CONST_OR_PURE_CALL_P, RTL_LOOPING_CONST_OR_PURE_CALL_P): Fixed doc.
6406 2008-05-08 Richard Guenther <rguenther@suse.de>
6408 * doc/invoke.texi (-fdump-tree-salias): Remove documentation.
6409 (-ftree-salias): Likewise.
6410 (salias-max-implicit-fields): Remove param documentation.
6411 (salias-max-array-elements): Likewise.
6412 * tree-pass.h (pass_create_structure_vars): Remove.
6413 * params.h (SALIAS_MAX_IMPLICIT_FIELDS): Remove.
6414 (SALIAS_MAX_ARRAY_ELEMENTS): Likewise.
6415 * tree-ssa-alias.c (create_structure_vars): Remove.
6416 (gate_structure_vars): Likewise.
6417 (pass_create_structure_vars): Likewise.
6418 (gate_build_alias): Likewise.
6419 (pass_build_alias): Adjust to run always and dump the function.
6420 * common.opt (ftree-salias): Hide.
6421 * passes.c (init_optimization_passes): Remove
6422 pass_create_structure_vars, adjust comment.
6423 * params.def (PARAM_SALIAS_MAX_IMPLICIT_FIELDS): Remove.
6424 (PARAM_SALIAS_MAX_ARRAY_ELEMENTS): Likewise.
6425 * opts.c (decode_options): Do not set flag_tree_salias.
6426 (common_handle_option): Add OPT_ftree_salias to the backward
6427 compatibility section.
6429 2008-05-08 Richard Guenther <rguenther@suse.de>
6431 * tree-flow-inline.h (var_can_have_subvars): Move ...
6432 * tree-ssa-structalias.c (var_can_have_subvars): ... here.
6433 * tree-flow.h (var_can_have_subvars): Remove.
6434 (push_fields_onto_fieldstack): Remove.
6435 (sort_fieldstack): Likewise.
6436 (struct fieldoff): Move ...
6437 * tree-ssa-structalias.c (struct fieldoff): ... here. Remove
6438 alias_set and base_for_components fields.
6439 (sort_fieldstack): Make static.
6440 (push_fields_onto_fieldstack): Likewise. Remove code that
6441 handles anything but RECORD_TYPEs. Remove alias_set and
6442 base_for_components handling.
6443 (create_variable_info_for): Adjust.
6445 2008-05-08 Seongbae Park <seongbae.park@gmail.com>
6447 * common.opt (Wframe-larger-than=): Shorten the help message
6449 * doc/invoke.texi (Wframe-larger-than=): Add more description.
6451 2008-05-08 Rafael Espindola <espindola@google.com>
6453 * tree-complex.c (expand_complex_div_wide): Don't create CONDs that
6455 * tree-gimple.c (is_gimple_condexpr): Check that the expression doesn't
6456 trap and that both operands are gimple values.
6457 (canonicalize_cond_expr_cond): Use is_gimple_condexpr.
6458 * gcc/tree-eh.c (tree_could_trap_p): Correctly detect if a comparison
6461 2008-05-08 Richard Sandiford <rsandifo@nildram.co.uk>
6463 * read-rtl.c (join_c_conditions): Return the first string if the
6464 two strings are equal.
6466 2008-05-08 Richard Sandiford <rsandifo@nildram.co.uk>
6468 * gensupport.h (pred_data): Add a "num_codes" field.
6469 (add_predicate_code): Declare.
6470 * gensupport.c (add_predicate_code): New function.
6471 (std_pred_table): Add an "allows_const_p" field.
6472 (std_preds): Set this field for predicates that allow RTX_CONST_OBJs.
6473 Remove the (incomplete) list of such codes from the codes field.
6474 (init_predicate_table): Use add_predicate_code. Add all
6475 RTX_CONST_OBJs if allows_const_p is true.
6476 * genrecog.c (process_define_predicate): Use add_predicate_code.
6478 2008-05-08 David Daney <ddaney@avtrex.com>
6479 Richard Sandiford <rsandifo@nildram.co.uk>
6481 * config/mips/mips.md (mips_expand_compare_and_swap_12): Handle
6482 special case of constant zero operands.
6483 * config/mips/mips.c (mips_expand_compare_and_swap_12): Zero extend
6484 old and new values. Special case constant zero values.
6485 * config/mips/mips.h (MIPS_COMPARE_AND_SWAP): Skip 'sync' if compare
6487 (MIPS_COMPARE_AND_SWAP_12): Handle constant zero operands.
6488 (MIPS_COMPARE_AND_SWAP_12_0): New macro.
6490 2008-05-08 Paolo Bonzini <bonzini@gnu.org>
6493 * simplify-rtx.c (simplify_plus_minus): Create CONST of
6494 similar RTX_CONST_OBJ before CONST_INT.
6496 2008-05-08 Steve Ellcey <sje@cup.hp.com>
6498 * stmt.c (expand_stack_restore): Change sa mode if needed.
6500 2008-05-08 Richard Guenther <rguenther@suse.de>
6502 * config/i386/i386-protos.h (ix86_return_in_memory): Adjust
6503 return type to bool.
6504 (ix86_sol10_return_in_memory): Likewise.
6505 (ix86_i386elf_return_in_memory): Likewise.
6506 (ix86_i386interix_return_in_memory): Likewise.
6507 * config/i386/i386.c (ix86_return_in_memory): Likewise.
6508 (ix86_sol10_return_in_memory): Likewise.
6509 (ix86_i386elf_return_in_memory): Likewise.
6510 (ix86_i386interix_return_in_memory): Likewise.
6512 2008-05-08 Kai Tietz <kai.tietz@onevision.com>
6515 * calls.c (compute_argument_block_size ): Add ATTRIBUTE_UNUSED to
6517 (emit_library_call_value_1): Add ATTRIBUTE_UNUSED to variable fndecl.
6518 * target-def.h: Check that TARGET_RETURN_IN_MEMORY isn't
6521 2008-05-08 Richard Guenther <rguenther@suse.de>
6523 * tree-data-ref.c (dr_analyze_alias): Do not set DR_SUBVARS.
6524 * tree-data-ref.h (struct dr_alias): Remove subvars field.
6525 (DR_SUBVARS): Remove.
6526 * tree-dfa.c (dump_subvars_for): Remove.
6527 (debug_subvars_for): Likewise.
6528 (dump_variable): Do not dump subvars.
6529 (remove_referenced_var): Do not remove subvars.
6530 * tree-flow-inline.h (clear_call_clobbered): SFTs no longer exist.
6531 (lookup_subvars_for_var): Remove.
6532 (get_subvars_for_var): Likewise.
6533 (get_subvars_at): Likewise.
6534 (get_first_overlapping_subvar): Likewise.
6535 (overlap_subvar): Likewise.
6536 * tree-flow.h (subvar_t): Remove.
6537 (struct var_ann_d): Remove subvars field.
6538 * tree-ssa-alias.c (mark_aliases_call_clobbered): Remove queued
6539 argument. Remove special handling of SFTs.
6540 (compute_tag_properties): Likewise.
6541 (set_initial_properties): Likewise.
6542 (compute_call_clobbered): Likewise.
6543 (count_mem_refs): Likewise.
6544 (compute_memory_partitions): Likewise.
6545 (compute_flow_insensitive_aliasing): Likewise.
6546 (setup_pointers_and_addressables): Likewise.
6547 (new_type_alias): Likewise.
6548 (struct used_part): Remove.
6549 (used_portions): Likewise.
6550 (struct used_part_map): Likewise.
6551 (used_part_map_eq): Likewise.
6552 (used_part_map_hash): Likewise.
6553 (free_used_part_map): Likewise.
6554 (up_lookup): Likewise.
6555 (up_insert): Likewise.
6556 (get_or_create_used_part_for): Likewise.
6557 (create_sft): Likewise.
6558 (create_overlap_variables_for): Likewise.
6559 (find_used_portions): Likewise.
6560 (create_structure_vars): Likewise.
6561 * tree.def (STRUCT_FIELD_TAG): Remove.
6562 * tree.h (MTAG_P): Adjust.
6563 (struct tree_memory_tag): Remove base_for_components and
6564 unpartitionable flags.
6565 (struct tree_struct_field_tag): Remove.
6566 (SFT_PARENT_VAR): Likewise.
6567 (SFT_OFFSET): Likewise.
6568 (SFT_SIZE): Likewise.
6569 (SFT_NONADDRESSABLE_P): Likewise.
6570 (SFT_ALIAS_SET): Likewise.
6571 (SFT_UNPARTITIONABLE_P): Likewise.
6572 (SFT_BASE_FOR_COMPONENTS_P): Likewise.
6573 (union tree_node): Remove sft field.
6574 * alias.c (get_alias_set): Remove special handling of SFTs.
6575 * print-tree.c (print_node): Remove handling of SFTs.
6576 * tree-dump.c (dequeue_and_dump): Likewise.
6577 * tree-into-ssa.c (mark_sym_for_renaming): Likewise.
6578 * tree-nrv.c (dest_safe_for_nrv_p): Remove special handling of SFTs.
6579 * tree-predcom.c (set_alias_info): Do not set subvars.
6580 * tree-pretty-print.c (dump_generic_node): Do not handle SFTs.
6581 * tree-ssa-loop-ivopts.c (get_ref_tag): Likewise.
6582 * tree-ssa-operands.c (access_can_touch_variable): Likewise.
6583 (add_vars_for_offset): Remove.
6584 (add_virtual_operand): Remove special handling of SFTs.
6585 (add_call_clobber_ops): Likewise.
6586 (add_call_read_ops): Likewise.
6587 (get_asm_expr_operands): Likewise.
6588 (get_modify_stmt_operands): Likewise.
6589 (get_expr_operands): Likewise.
6590 (add_to_addressable_set): Likewise.
6591 * tree-ssa.c (verify_ssa_name): Do not handle SFTs.
6592 * tree-tailcall.c (suitable_for_tail_opt_p): Likewise.
6593 * tree-vect-transform.c (vect_create_data_ref_ptr): Do not set subvars.
6594 * tree.c (init_ttree): Remove STRUCT_FIELD_TAG initialization.
6595 (tree_code_size): Remove STRUCT_FIELD_TAG handling.
6596 (tree_node_structure): Likewise.
6597 * tree-ssa-structalias.c (set_uids_in_ptset): Remove special
6599 (find_what_p_points_to): Likewise.
6601 2008-05-08 Sa Liu <saliu@de.ibm.com>
6603 * config/spu/spu.md: Fixed subti3 pattern.
6605 2008-05-08 Richard Guenther <rguenther@suse.de>
6608 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
6609 sure to create a representative for trailing arrays for PTA.
6611 2008-05-08 Richard Guenther <rguenther@suse.de>
6614 * fold-const.c (operand_equal_p): Two objects which types
6615 differ in pointerness are not equal.
6617 2008-05-08 Kai Tietz <kai.tietz@onevision.com>
6619 * calls.c (compute_argument_block_size): Add argument tree fndecl.
6620 (OUTGOING_REG_PARM_STACK_SPACE): Add function type argument.
6621 (emit_library_call_value_1): Add new variable fndecl initialized by
6622 NULL_TREE. It should be the decl type of orgfun, but this information
6623 seems not to be available here, so it uses the default calling abi.
6624 * config/arm/arm.c (arm_return_in_memory): Add fntype argumen.
6625 * config/arm/arm.h (RETURN_IN_MEMORY): Replace RETURN_IN_MEMORY
6626 by TARGET_RETURN_IN_MEMORY.
6627 * config/i386/i386-interix.h: Likewise.
6628 * config/i386/i386.h: Likewise.
6629 * config/i386/i386elf.h: Likewise.
6630 * config/i386/ptx4-i.h: Likewise.
6631 * config/i386/sol2-10.h: Likewise.
6632 * config/i386/sysv4.h: Likewise.
6633 * config/i386/vx-common.h: Likewise.
6634 * config/cris/cris.h: Removed #if 0 clause.
6635 * config/arm/arm-protos.h (arm_return_in_memory): Add fntype argument.
6636 * config/i386/i386-protos.h (ix86_return_in_memory): Add fntype
6638 (ix86_sol10_return_in_memory): Likewise.
6639 (ix86_i386elf_return_in_memory): New.
6640 (ix86_i386interix_return_in_memory): New.
6641 * config/mt/mt-protos.h (mt_return_in_memory): New.
6642 * config/mt/mt.c: Likewise.
6643 * config/mt/mt.h (OUTGOING_REG_PARM_STACK_SPACE): Add FNTYPE argument.
6644 (RETURN_IN_MEMORY): Replace by TARGET_RETURN_IN_MEMORY.
6645 * config/bfin/bfin.h: Likewise.
6646 * config/bfin/bfin-protos.h (bfin_return_in_memory): Add fntype
6648 * config/bfin/bfin.c: Likewise.
6649 * config/pa/pa.h (OUTGOING_REG_PARM_STACK_SPACE): Add FNTYPE argument.
6650 * config/alpha/unicosmk.h: Likewise.
6651 * config/i386/cygming.h: Likewise.
6652 * config/iq2000/iq2000.h: Likewise.
6653 * config/mips/mips.h: Likewise.
6654 * config/mn10300/mn10300.h: Likewise.
6655 * config/rs6000/rs6000.h: Likewise.
6656 * config/score/score.h: Likewise.
6657 * config/spu/spu.h: Likewise.
6658 * config/v850/v850.h: Likewise.
6659 * defaults.h: Likewise.
6660 * doc/tm.texi (OUTGOING_REG_PARM_STACK_SPACE): Adjust documentation.
6661 * expr.c (emit_block_move): Adjust use of
6662 OUTGOING_REG_PARM_STACK_SPACE.
6663 * function.c (STACK_DYNAMIC_OFFSET): Adjust use of
6664 OUTGOING_REG_PARM_STACK_SPACE.
6665 * targhooks.c (default_return_in_memory): Remove RETURN_IN_MEMORY.
6667 2008-05-08 Jakub Jelinek <jakub@redhat.com>
6669 * tree-parloops.c (create_parallel_loop): Set OMP_RETURN_NOWAIT
6670 on OMP_RETURN for OMP_FOR.
6673 * dwarf2out.c (dw_expand_expr, common_check): Removed.
6674 (fortran_common): New function.
6675 (gen_variable_die): Call fortran_common instead of common_check,
6676 adjust for it returning tree instead of rtx. Formatting.
6678 2008-05-07 Kenneth Zadeck <zadeck@naturalbridge.com>
6682 * see.c (see_copy_insn): Copy new pure const attributes for new call.
6683 * c-decl.c (merge_decls): Ditto.
6684 * postreload.c (record_opr_changes): Change CONST_OR_PURE_CALL_P
6685 to RTL_CONST_OR_PURE_CALL_P.
6686 * tree.c (define_local_buitin): Rename DECL_IS_PURE to DECL_PURE_P.
6687 Initialized DECL_LOOPING_CONST_PURE.
6688 (process_call_operands): Set tree_side_effects properly.
6689 * tree.h (TREE_READONLY_DECL_P): Removed.
6690 (DECL_IS_PURE): Renamed to DECL_PURE_P.
6691 (DECL_LOOPING_OR_CONST_P): New macro.
6692 (struct tree_function_decl): Added looping_const_or_pure_p.
6694 (ECF_LOOPING_OR_CONST_P): New macro.
6695 * rtlanal.c (pure_const_p): Removed.
6696 * builtins.c (expand_builtin): Rename DECL_IS_PURE to DECL_PURE_P.
6697 * reorg.c (delete_prior_computation) Changed CONST_OR_PURE_CALL_P
6698 to RTL_CONST_CALL_P.
6699 * ipa-pure-const.c (pure_const_state_e): Added looping field.
6700 (check_decl, check_tree, check_call, scan_function): Initialize
6702 (analyze_function): Rename DECL_IS_PURE to DECL_PURE_P.
6703 (static_execute): Set looping true for recursive functions.
6704 Undo setting state to IPA_NEITHER for recursive functions.
6706 * ifcvt.c (noce_can_store_speculate_p): Changed
6707 CONST_OR_PURE_CALL_P and pure_call_p to RTL_CONST_CALL_P or
6708 RTL_CONST_OR_PURE_CALL_P.
6709 * dse.c (scan_insn): Ditto.
6710 * local-alloc.c (validate_equiv_mem, memref_used_between_p): Ditto.
6711 * gcse.c (oprs_not_seen_p) Changed CONST_OR_PURE_CALL_P to
6712 RTL_CONST_OR_PURE_CALL_P.
6713 (store_killed_in_insn): Changed CONST_OR_PURE_CALL_P and
6714 pure_call_p to RTL_CONST_CALL_P.
6715 * gimplify.c (gimplify_call_expr): Clear side effects for
6716 non-looping pure and constant calls.
6717 * calls.c (emit_call_1): Set rtl flags from ecf flags.
6718 (flags_from_decl_or_type): Set ecf flags from decl flags.
6719 (initialize_argument_information): Turn off
6720 ECF_LOOPING_CONST_OR_PURE when turning off ECF_CONST.
6721 Change const to pure if callee_copies is true rather than just
6723 (expand_call): Turn off ECF_LOOPING_PURE_CONST_CALL and remove old
6724 way of marking pure calls.
6725 (emit_library_call_value_1): Turn off ECF_LOOPING_PURE_CONST_CALL.
6726 Remove hack that was supposed to fix pr7335 and remove old
6727 way of marking pure calls.
6728 * emit-rtl.c (emit_copy_of_insn_after): Copy RTL_CONST_CALL_P,
6729 RTL_PURE_CALL_P, RTL_LOOPING_CONST_OR_PURE_CALL_P.
6730 * cselib.c (cselib_process_insn): Changed CONST_OR_PURE_CALL_P to
6731 RTL_CONST_OR_PURE_CALL_P.
6732 * tree-ssa-pre.c (can_value_number_call): Fixed spacing.
6733 * loop-invariant.c (find_exits, find_invariant_bb): Changed
6734 CONST_OR_PURE_CALL_P to RTL_CONST_OR_PURE_CALL_P.
6735 * sched-deps.c (schedule_analyze): Ditto.
6736 * rtl.h (struct rtx_def): Use call field, unchanging field, and
6737 return_val field of calls to represent pure and const function info.
6738 (CONST_OR_PURE_CALL_P): Deleted macro.
6739 (RTL_CONST_CALL_P, RTL_PURE_CALL_P,
6740 RTL_LOOPING_CONST_OR_PURE_CALL_P, RTL_CONST_OR_PURE_P): New macros.
6741 * tree-inline.c (copy_body_r): Changed TREE_READONLY_DECL_P to
6743 * tree-optimize.c (execute_fixup_cfg): Added test for
6744 ECF_LOOPING_CONST_OR_PURE.
6745 * c-common.c (handle_pure_attribute): Changed DECL_IS_PURE to
6747 * tree-cfg.c (update_call_expr_flags): Do not clear tree side
6748 effects for looping pure or const calls.
6749 (verify_gimple_expr): Added verification code.
6750 * config/alpha/alpha.c (alpha_legitimize_address,
6751 alpha_emit_xfloating_libcall): Changed CONST_OR_PURE_CALL_P to
6753 * config/s390/s390.c (s390_emit_tls_call_insn): Ditto.
6754 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Ditto.
6755 * config/mips/mips.c (mips_call_tls_get_addr): Ditto.
6756 * cfgrtl.c (need_fake_edge_p): Changed CONST_OR_PURE_CALL_P to
6757 RTL_CONST_OR_PURE_CALL_P.
6758 * dce.c (deletable_insn_p): Allow non looping, non sibling, pure
6759 and const calls to be deleted.
6761 2008-05-07 Uros Bizjak <ubizjak@gmail.com>
6764 * config/i386/mmx.md (mmx_subv2sf3): New expander.
6765 (*mmx_subv2sf3): Rename from mmx_subv2sf3 insn pattern.
6766 (*mmx_eqv2sf3): Rename from mmx_eqv2sf3 insn pattern.
6767 (mmx_eqv2sf3): New expander. Use ix86_fixup_binary_operands_no_copy
6768 to handle nonimmediate operands.
6769 (*mmx_paddwd): Rename from mmx_paddwd insn pattern.
6770 (mmx_paddwd): New expander. Use ix86_fixup_binary_operands_no_copy
6771 to handle nonimmediate operands.
6772 (*mmx_pmulhrwv4hi3): Rename from mmx_pmulhrwv4hi3 insn pattern.
6773 (mmx_pmulhrwv4hi3): New expander. Use
6774 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
6775 (*sse2_umulv1siv1di3): Rename from sse2_umulv1siv1di3 insn pattern.
6776 (sse2_umulv1siv1di3): New expander. Use
6777 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
6778 (*mmx_eq<mode>3): Rename from mmx_eq<mode>3 insn pattern.
6779 (mmx_eq<mode>3): New expander. Use
6780 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
6781 (*mmx_uavgv8qi3): Rename from mmx_uavgv8qi3 insn pattern.
6782 (mmx_uavgv8qi3): New expander. Use
6783 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
6784 (*mmx_uavgv4hi3): Rename from mmx_uavgv4hi3 insn pattern.
6785 (mmx_uavgv4hi3): New expander. Use
6786 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
6788 * config/i386/sse.md
6789 (sse_movhlps_exp): New expander. Use ix86_fixup_binary_operands
6790 to handle nonimmediate operands.
6791 (sse_movlhps_exp): New expander. Use ix86_fixup_binary_operands
6792 to handle nonimmediate operands.
6793 (sse_loadhps_exp): New expander. Use ix86_fixup_binary_operands
6794 to handle nonimmediate operands.
6795 (sse_loadlps_exp): New expander. Use ix86_fixup_binary_operands
6796 to handle nonimmediate operands.
6797 (sse2_unpckhpd_exp): New expander. Use
6798 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
6799 (sse2_unpcklpd_exp): New expander. Use
6800 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
6801 (sse_loadhpd_exp): New expander. Use ix86_fixup_binary_operands
6802 to handle nonimmediate operands.
6803 (sse_loadlpd): New expander. Use ix86_fixup_binary_operands
6804 to handle nonimmediate operands.
6805 (*sse2_<plusminus_insn><mode>3): Rename from
6806 sse2_<plusminus_insn><mode>3 insn pattern.
6807 (sse2_<plusminus_insn><mode>3): New expander. Use
6808 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
6809 (*sse2_umulv2siv2di3): Rename from sse2_umulv2siv2di3 insn pattern.
6810 (sse2_umulv2siv2di3): New expander. Use
6811 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
6812 (*sse4_1_mulv2siv2di3): Rename from sse4_1_mulv2siv2di3 insn pattern.
6813 (sse4_1_mulv2siv2di3): New expander. Use
6814 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
6815 (*sse2_pmaddwd): Rename from sse2_pmaddwd insn pattern.
6816 (sse2_pmaddwd): New expander. Use
6817 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
6818 (*sse2_eq<mode>3): Rename from sse2_eq<mode>3 insn pattern.
6819 (sse2_eq<mode>3): New expander. Use
6820 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
6821 (*sse4_1_eqv2di3): Rename from sse4_1_eqv2di3 insn pattern.
6822 (sse4_1_eqv2di3): New expander. Use
6823 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
6824 (*sse2_uavgv16qi3): Rename from sse2_uavgv16qi3 insn pattern.
6825 (sse2_uavgv16qi3): New expander. Use
6826 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
6827 (*sse2_uavgv16qi3): Rename from sse2_uavgv16qi3 insn pattern.
6828 (sse2_uavgv16qi3): New expander. Use
6829 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
6830 (*sse2_uavgv8hi3): Rename from sse2_uavgv8hi3 insn pattern.
6831 (sse2_uavgv8hi3): New expander. Use
6832 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
6833 (*ssse3_pmulhrswv8hi3): Rename from ssse3_pmulhrswv8hi3 insn pattern.
6834 (ssse3_pmulhrswv8hi3): New expander. Use
6835 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
6836 (*ssse3_pmulhrswv4hi3): Rename from ssse3_pmulhrswv4hi3 insn pattern.
6837 (ssse3_pmulhrswv4hi3): New expander. Use
6838 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
6840 (<sse>_vm<plusminus_insn><mode>3): Do not use ix86_binary_operator_ok.
6841 (<sse>_vmmul<mode>3): Ditto.
6842 (divv4sf3): Do not use ix86_fixup_binary_operands_no_copy.
6844 (ssse3_pmaddubsw128): Use register_operand for operand 1.
6845 (ssse3_pmaddubsw): Ditto.
6847 * config/i386/i386.c (struct_builtin_description)
6848 [IX86_BUILTIN_LOADHPS]: Use CODE_FOR_sse_loadhps_exp.
6849 [IX86_BUILTIN_STOREHPS]: Use CODE_FOR_sse_loadlps_exp.
6850 [IX86_BUILTIN_LOADHPD]: Use CODE_FOR_sse2_loadhpd_exp.
6851 [IX86_BUILTIN_LOADLPD]: Use CODE_FOR_sse2_loadlpd_exp.
6852 [IX86_BUILTIN_MOVHLPS]: Use CODE_FOR_sse_movhlps_exp.
6853 [IX86_BUILTIN_MOVLHPS]: Use CODE_FOR_sse_movlhps_exp.
6854 [IX86_BUILTIN_UNPCKHPD]: Use FOR_sse2_unpckhpd_exp.
6855 [IX86_BUILTIN_UNPCKLPD]: Use FOR_sse2_unpcklpd_exp.
6856 (ix86_fixup_binary_operands): Assert that src1
6857 and src2 must have the same mode when swapped.
6858 (ix86_expand_binop_builtin): Do not use ix86_fixup_binary_operands
6859 and ix86_binary_operator_ok. Do not force operands in registers
6862 2008-05-07 Jan Hubicka <jh@suse.cz>
6864 * cgraph.c (dump_cgraph_node): Update.
6865 * cgraph.h (cgraph_local_info): Break out inline summary.
6866 * cgraphunit.c (cgraph_process_new_functions): Use inliner analysis
6868 * ipa-inline (inline_summary): New accestor function.
6869 (cgraph_clone_inlined_nodes, cgraph_check_inline_limits,
6870 cgraph_decide_inlining, compute_inline_parameters): Update.
6871 * ipa.c (cgraph_remove_unreachable_nodes): Remove statistics.
6873 2008-05-07 Maxim Kuvyrkov <maxim@codesourcery.com>
6875 Cleanup ColdFire scheduling support and add V4 pipeline model.
6877 * config/m68k/m68k.md (UNSPEC_TIE): New constant.
6878 (define_attr cpu): Add cfv4 value.
6879 (define_attr type, define_attr type1): Merge into a single 'type'
6880 attribute. Update all uses.
6881 (define_attr opx_type, define_attr opy_type, define_attr opx_access):
6882 Rearrange and update. Rename value 'reg' to 'Rn', add value 'FPn'.
6884 (define_attr opx_mem, define_attr opy_mem): Remove.
6885 (define_attr op_mem): Clean up, update comment.
6886 (define_attr size): Use specific values instead of general int.
6887 (define_attr guess, define_attr split): Remove. Update all uses.
6888 (movdf_internal, tstsi_internal, tsthi_internal, tstqi_internal,
6889 tst<mode>_68881, pushexthisi_const, movsi_const0_68000_10,
6890 movsi_const0_68040_60, movsi_const0, movsi_cf, movstrictqi_cf,
6891 zero_extendhisi2_cf, zero_extendqisi2_cfv4, cfv4_extendhisi2,
6892 68k_extendhisi2, extendqihi2, cfv4_extendqisi2, 68k_extendqisi2,
6893 floatsi<mode>2_68881, ftrunc<mode>2_68881, ftrunc<mode>2_cf,
6894 fix<mode>qi2_68881, fix<mode>hi2_68881, fix<mode>si2_68881,
6895 adddi_dishl32, addsi3_5200, add<mode>3_floatsi_68881,
6896 add<mode>3_floathi_68881, add<mode>3_floatqi_68881,
6897 add<mode>3_68881, add<mode>3_cf, subdi_dishl32, subsi3,
6898 sub<mode>3_floatsi_68881, sub<mode>3_floathi_68881,
6899 sub<mode>3_floatqi_68881, sub<mode>3_68881, sub<mode>3_cf,
6900 mulhi3, mulhisi3, mulhisisi3_s, mulsi3_68020, mulsi3_cf,
6901 umulhisi3, mulhisisi3_z, mul<mode>3_floatsi_68881,
6902 mul<mode>3_floathi_68881, mul<mode>3_floatqi_68881, fmul<mode>3_cf,
6903 div<mode>3_cf, sqrt<mode>2_cf, abs<mode>2_cf, clzsi2,
6904 one_cmplsi2_5200, subreghi1ashrdi_const32, ashrsi3, lshrsi3,
6905 bsetmemqi, bsetmemqi_ext, bclrmemqi, bclrmemqi_ext,
6906 beq, bne, bgt, blt, bordered, bunordered, buneq, bunge, bungt, bunle,
6907 bunlt, bltgt, tablejump_internal, call, non_symbolic_call_value,
6908 symbolic_call_value_jsr, symbolic_call_value_bsr, link):
6909 Update or set attributes.
6910 (stack_tie): New fake instruction.
6912 * config/m68k/m68k.h (TUNE_CFV4): New macro.
6913 (m68k_sched_attr_size): Update declaration.
6914 (m68k_sched_attr_type2): Remove.
6915 (m68k_sched_address_bypass_p, m68k_sched_indexed_address_bypass_p):
6916 Declare new bypass predicates.
6918 * config/m68k/m68k.c (m68k_sched_issue_rate,
6919 m68k_sched_first_cycle_multipass_dfa_lookahead): Declare hook
6921 (TARGET_SCHED_ISSUE_RATE,
6922 TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Override hooks.
6923 (override_options): Handle scheduling for ColdFire V4 core.
6924 (m68k_expand_prologue): Emit stack_tie.
6925 (enum attr_op_type): Split value 'OP_TYPE_REG' to 'OP_TYPE_RN' and
6926 'OP_TYPE_FPN'. Update all uses.
6927 (sched_guess_p): Remove.
6928 (sched_address_type): Handle symbolic addresses.
6929 (sched_get_operand): New static function.
6930 (sched_operand_type): Merge into sched_attr_op_type.
6931 (sched_attr_op_type): Handle FP registers, handle quick constants,
6933 (m68k_sched_attr_opx_type, m68k_sched_attr_opy_type): Update.
6934 (m68k_sched_attr_size): Update. Move logic to ...
6935 (sched_get_attr_size_int): New static function.
6936 (sched_get_opxy_mem_type): New static function.
6937 (m68k_sched_attr_op_mem): Update.
6938 (m68k_sched_attr_type2): Remove.
6939 (sched_cfv4_bypass_data): New static variable.
6940 (m68k_sched_adjust_cost): Handle ColdFire V4 bypass.
6941 (m68k_sched_issue_rate): Implement scheduler hook.
6942 (struct _sched_ib: enabled_p): New field.
6943 (m68k_sched_variable_issue): Update. Handle V4.
6944 (SCHED_DUMP_TODO, SCHED_DUMP_DONE, SCHED_DUMP_NOTHING,
6945 sched_dump_class_func_t, sched_dump_split_class,
6946 sched_dump_dfa_guess_unit_code, sched_dump_dfa_state,
6947 sched_dump_dfa_class, m68k_sched_dump): Remove.
6948 (m68k_sched_first_cycle_multipass_dfa_lookahead): Implement scheduler
6950 (m68k_sched_init_global): Remove statisctics dumping, introduce
6951 sanity check that all instructions have pipeline reservations. Handle
6953 (m68k_sched_dfa_pre_advance_cycle, m68k_sched_dfa_post_advance_cycle):
6954 Handle ColdFire V4 core.
6955 (sched_mem_operand_p, sched_get_reg_operand, sched_get_mem_operand):
6956 New static functions.
6957 (m68k_sched_address_bypass_p): New bypass predicate.
6958 (sched_get_indexed_address_scale): New static function.
6959 (m68k_sched_indexed_address_bypass_p): New bypass predicate.
6961 * cf.md: Update comments.
6962 (define_attr type2): Remove. Use 'type' attribute instead.
6964 (cf_ib): Rename to cfv123_ib. Update all uses.
6965 (cf_oep): Rename to cfv123_oep. Update all uses.
6966 (cf_chr): Rename to cfv123_chr. Update all uses.
6967 (cf_mem): Rename to cfv123_mem. Update all uses.
6968 (cf_mac): Move to more appropriate place.
6969 (cfv123_guess): New automaton and cpu_unit.
6970 (cfv123_*, cfv12_*, cfv1_*, cfv2_*, cfv3_*): Use type attribute.
6971 Update uses of 'size' attribute. Handle before reload scheduling.
6972 (cfv123_guess): New dummy reservation for unhandled instructions.
6973 (cfv4_*): Pipeline description of ColdFire V4 core.
6974 (ignore): New reservation to handle 'ignore' type.
6976 2008-05-07 Ian Lance Taylor <iant@google.com>
6979 * gimplify.c (find_single_pointer_decl_1): Don't look through
6981 (find_single_pointer_decl): Adjust comments.
6983 2008-05-07 Jakub Jelinek <jakub@redhat.com>
6986 * fold-const.c (fold_binary): Use STRIP_SIGN_NOPS instead of
6987 STRIP_NOPS on arguments even for MIN_EXPR and MAX_EXPR.
6990 * omp-low.c (expand_omp_atomic_pipeline): Load value using the
6991 integral type rather than floating point, then VIEW_CONVERT_EXPR
6992 to the floating point type.
6994 2008-05-07 Uros Bizjak <ubizjak@gmail.com>
6996 * config/i386/i386.c (ix86_expand_copysign): Force non-zero constant
6997 TFmode op0 to register.
6999 2008-05-07 Alan Modra <amodra@bigpond.net.au>
7001 * c-decl.c (grokdeclarator): Comment typo.
7003 2008-05-06 Aldy Hernandez <aldyh@redhat.com>
7005 * tree-flow.h: Remove prototype for computed_goto_p.
7006 * tree-cfg.c (computed_goto_p): Make static.
7008 2008-05-06 H.J. Lu <hongjiu.lu@intel.com>
7011 * config/i386/i386.c (contains_128bit_aligned_vector_p): Renamed to ...
7012 (contains_aligned_value_p): This. Handle _Decimal128.
7013 (ix86_function_arg_boundary): Only align _Decimal128 to its
7014 natural boundary and handle it properly.
7016 2008-05-06 Martin Jambor <mjambor@suse.cz>
7018 * ipa-cp.c (ipcp_method_orig_node): Renamed to ipcp_get_orig_node.
7019 (ipcp_method_is_cloned): Renamed to ipcp_node_is_clone
7020 (ipcp_method_set_orig_node): Removed.
7021 (ipcp_cval_get_cvalue_type): Removed.
7022 (ipcp_method_get_scale): Renamed to ipcp_get_node_scale.
7023 (ipcp_method_set_scale): Renamed to ipcp_set_node_scale.
7024 (ipcp_cval_set_cvalue_type): Removed.
7025 (ipcp_cval_get_cvalue): Removed.
7026 (ipcp_cval_set_cvalue): Removed.
7027 (ipcp_type_is_const): Renamed to ipcp_lat_is_const.
7028 (ipcp_cval_equal_cvalues): Renamed to ipcp_lats_are_equal
7029 (ipcp_lats_are_equal): Changed parameters to two ipcp_lattice's
7030 (ipcp_cval_meet): Renamed to ipa_lattice_meet
7031 (ipcp_cval_changed): Changed to use ipcp_lat_is_const
7032 (ipcp_method_cval): Renamed to ipcp_get_ith_lattice
7033 (ipcp_get_ith_lattice): Changed parameters.
7034 (ipcp_cval_compute): Renamed to ipcp_lattice_from_jfunc
7035 (ipcp_lattice_from_jfunc): Changed parameters.
7036 (ipcp_redirect): Local lattice pointer instead of lattice type variable.
7037 (ipcp_method_cval_print): Added temporary variable info.
7038 (ipcp_redirect): Removed already unused local variable caller.
7039 (ipcp_redirect): New temporary variable orig_callee_info
7040 (ipcp_redirect): Removed newly unused local variable callee.
7041 (ipcp_redirect): Removed (a bit confusing) local variable type.
7042 (ipcp_insert_stage): Added local variable info.
7043 (ipcp_cval_changed): Renamed to ipcp_lattice_changed, parameters
7045 (ipcp_formal_create): Removed.
7046 (ipcp_method_cval_set): Removed.
7047 (ipcp_propagate_stage): Renamed lattice variables.
7048 (ipcp_method_cval_set_cvalue_type): Removed.
7049 (ipcp_method_cval_print): Renamed to ipcp_print_all_lattices
7050 (ipcp_print_all_lattices): Changed printed strings to refer to
7051 lattices rather than cvals.
7052 (ipcp_method_cval_init): Renamed to ipcp_initialize_node_lattices
7053 (ipcp_propagate_const): Changed formal parameters.
7054 (build_const_val): Changed formal parameters.
7055 (ipcp_insert_stage): Removed useless variable cvalue
7056 (build_const_val): Changed formal parameters.
7057 (ipcp_method_compute_scale): Renamed to ipcp_compute_node_scale
7058 (ipcp_after_propagate): Renamed to ipcp_change_tops_to_bottom
7059 (ipcp_callsite_param_print): Renamed to ipcp_print_all_jump_functions
7060 (ipcp_profile_mt_count_print): Renamed to ipcp_print_func_profile_counts
7061 (ipcp_print_func_profile_counts): Changed string from "method" to
7063 (ipcp_profile_cs_count_print): Renamed to ipcp_print_call_profile_counts
7064 (ipcp_profile_edge_print): Renamed to ipcp_print_edge_profiles
7065 (ipcp_profile_bb_print): Renamed to ipcp_print_bb_profiles
7066 (ipcp_structures_print): Renamed to ipcp_print_all_structures
7067 (ipcp_profile_print): Renamed to ipcp_print_profile_data
7068 (ipcp_lat_is_const): Changed parameters and made inline.
7069 (ipcp_replace_map_create): Renamed to ipcp_create_replace_map
7070 (ipcp_redirect): Renamed to ipcp_need_redirect_p
7071 (ipcp_need_redirect_p): Calls ipcp_lat_is_const instead of using
7072 the predicate condition directly
7073 (ipcp_propagate_stage): Added local variable args. Removed local
7074 variable callee. (Both are mere code simplifications.)
7075 (ipcp_method_dont_insert_const): Renamed to
7076 ipcp_node_not_modifiable_p.
7077 (ipcp_node_not_modifiable_p): Made inline.
7078 (ipcp_cloned_create): Renamed to ipcp_init_cloned_node
7079 (ipcp_propagate_const): Renamed to ipcp_propagate_one_const
7080 (ipcp_print_all_lattices): Removed variable cvalue
7081 (ipcp_method_scale_print): Renamed to ipcp_function_scale_print
7084 2008-05-06 Olivier Hainque <hainque@adacore.com>
7086 * tree-sra.c (try_instantiate_multiple_fields): Early return
7087 if field has POINTER_TYPE.
7089 2008-05-06 Kai Tietz <kai.tietz@onevision.com>
7091 * config/i386/i386.c (output_set_got): Fix for x86_64 output_emit_asm
7092 by using 'q' specifier for instruction.
7093 (ix86_file_end): Replaced case TARGET_64BIT_MS_ABI by TARGET_64BIT.
7095 2008-05-06 Anatoly Sokolov <aesok@post.ru>
7097 * config/avr/avr.md (*sbrx_branch, *sbix_branch, *sbix_branch_tmp):
7098 Change mode of zero_extract from QImode to HImode.
7099 (sign bit tests peepholes): (Ditto.).
7101 2008-05-06 Uros Bizjak <ubizjak@gmail.com>
7103 * config/i386/mmx.md: Remove double backslashes from asm templates.
7104 (*mmx_addv2sf3): Rename from mmx_addv2sf3 insn pattern.
7105 (mmx_addv2sf3): New expander. Use ix86_fixup_binary_operands_no_copy
7106 to handle nonimmediate operands.
7107 (*mmx_mulv2sf3): Rename from mmx_mulv2sf3 insn pattern.
7108 (mmx_mulv2sf3): New expander. Use ix86_fixup_binary_operands_no_copy
7109 to handle nonimmediate operands.
7110 (*mmx_<code>v2sf3_finite): New insn pattern.
7111 (*mmx_<code>v2sf3): Rename from mmx_<code>v2sf3 insn pattern.
7112 (mmx_<code>v2sf3): New expander. Use
7113 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
7114 (mmx_<plusminus_insn><mode>3): New expander. Use
7115 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
7116 (*mmx_<plusminus_insn><mode>3): New insn pattern.
7117 (mmx_add<mode>3): Removed.
7118 (mmx_ssadd<mode>3): Ditto.
7119 (mmx_usadd<mode>3): Ditto.
7120 (mmx_sub<mode>3): Ditto.
7121 (mmx_sssub<mode>3): Ditto.
7122 (mmx_ussub<mode>3): Ditto.
7123 (*mmx_mulv4hi3): Rename from mmx_mulv4hi3 insn pattern.
7124 (mmx_mulv4hi3): New expander. Use ix86_fixup_binary_operands_no_copy
7125 to handle nonimmediate operands.
7126 (*mmx_smulv4hi3_highpart): Rename from mmx_smulv4hi3_highpart
7128 (mmx_smulv4hi3_highpart): New expander. Use
7129 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
7130 (*mmx_umulv4hi3_highpart): Rename from mmx_umulv4hi3_highpart
7132 (mmx_umulv4hi3_highpart): New expander. Use
7133 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
7134 (*mmx_<code>v4hi3): Rename from mmx_<code>v4hi3 insn pattern.
7135 (mmx_<code>v4hi3): New expander. Use
7136 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
7137 (*mmx_<code>v8qi3): Rename from mmx_<code>v8qi3 insn pattern.
7138 (mmx_<code>v8qi3): New expander. Use
7139 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
7140 (*mmx_<code><mode>3): Rename from mmx_<code><mode>3 insn pattern.
7141 (mmx_<code><mode>3): New expander. Use
7142 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
7144 2008-05-05 Jan Hubicka <jh@suse.cz>
7146 PR tree-optimization/36118
7147 * passes.c (pass_init_dump_file): Fix dump header.
7149 2008-05-05 Andrew Pinski <andrew_pinski@playstation.sony.com>
7152 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't create
7153 VCE for function decls.
7155 2008-05-05 H.J. Lu <hongjiu.lu@intel.com>
7157 * config/i386/sse.md (sse2_<plusminus_insn><mode>3): Fix a typo.
7159 2008-05-05 H.J. Lu <hongjiu.lu@intel.com>
7161 * config/i386/i386.md (sat_plusminus): New.
7162 (plusminus_insn): Likewise.
7163 (plusminus_mnemonic): Likewise.
7165 (comm): Add ss_plus, us_plus, ss_minus and us_minus.
7166 (*<addsub><mode>3_cc_overflow): Renamed to ...
7167 (*<plusminus_insn><mode>3_cc_overflow): This.
7168 (*<addsub>si3_zext_cc_overflow): Renamed to ...
7169 (*<plusminus_insn>si3_zext_cc_overflow): This.
7171 * config/i386/sse.md (<addsub><mode>3): Renamed to ...
7172 (<plusminus_insn><mode>3): This.
7173 (*<addsub><mode>3): Renamed to ...
7174 (*<plusminus_insn><mode>3): This.
7175 (<sse>_vm<addsub><mode>3): Renamed to ...
7176 (<sse>_vm<plusminus_insn><mode>3): This.
7177 (sse3_h<addsub>v4sf3): Renamed to ...
7178 (sse3_h<plusminus_insn>v4sf3): This.
7179 (sse3_h<addsub>v2df3): Renamed to ...
7180 (sse3_h<plusminus_insn>v2df3): This.
7181 (<plusminus_insn><mode>3): New.
7182 (*<plusminus_insn><mode>3): Likewise.
7183 (sse2_<plusminus_insn><mode>3): Likewise.
7184 (add<mode>): Removed.
7185 (*add<mode>3): Likewise.
7186 (sse2_ssadd<mode>3): Likewise.
7187 (sse2_usadd<mode>3): Likewise.
7188 (sub<mode>3): Likewise.
7189 (*sub<mode>3): Likewise.
7190 (sse2_sssub<mode>3): Likewise.
7191 (sse2_ussub<mode>3): Likewise.
7193 2008-05-05 Benjamin Kosnik <bkoz@redhat.com>
7195 * gthr-single.h: Add in required interface elements as per gthr.h.
7196 Add stub types for __gthread_key_t, __gthread_once_t. Add defines
7197 for __GTHREAD_ONCE_INIT, __GTHREAD_RECURSIVE_MUTEX_INIT.
7198 Generalize UNUSED macro.
7199 (__gthread_once): Add.
7200 (__gthread_key_create): Add.
7201 (__gthread_key_delete): Add.
7202 (__gthread_getspecific): Add.
7203 (__gthread_setspecific): Add.
7205 2008-05-05 Andrew Pinski <Andrew.Pinski@playstation.sony.com>
7207 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): If we have
7208 the same size types for the indirect reference on the rhs, then
7211 2008-05-05 Uros Bizjak <ubizjak@gmail.com>
7213 * config/i386/i386.md
7214 (*float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit): Use only
7215 one insn template instead of template series.
7216 (*xordi_1_rex64): Ditto.
7217 (*xordi_2_rex64): Ditto.
7219 2008-05-05 Ira Rosen <irar@il.ibm.com>
7221 PR tree-optimization/36119
7222 * tree-vect-transform.c (vectorizable_assignment): Set NCOPIES to 1
7225 2008-06-04 Jan Hubicka <jh@suse.cz>
7227 tree-optimization/36100
7228 * tree-pass.h (pass_O0_always_inline): Declare.
7229 * ipa-inline.c (inline_transform): Remove dead code.
7230 (cgraph_gate_O0_always_inline, cgraph_O0_always_inline,
7231 pass_O0_always_inline): New.
7232 * passes.c (init_optimization_passes): Add pass_O0_always_inline.
7234 2008-05-04 Kai Tietz <kai.tietz@onevision.com>
7236 * config/i386/i386.c (x86_output_mi_thunk): Use movq alternative
7237 mnemonic in this_param move for TARGET_64BIT.
7239 2008-05-04 Uros Bizjak <ubizjak@gmail.com>
7241 * config/i386/i386.md (*strmovsi_1): Simplify asm alternatives.
7242 (*strmovsi_rex_1): Ditto.
7243 (*strsetsi_1): Ditto.
7244 (*strsetsi_rex_1): Ditto.
7246 (add<mode>cc): Macroize expander from addqicc, addhicc, addsicc and
7247 adddicc expanders using SWI mode iterator.
7249 2008-05-04 H.J. Lu <hongjiu.lu@intel.com>
7252 * config/i386/i386.c (ix86_expand_special_args_builtin): Remove three
7255 2008-05-04 David S. Miller <davem@davemloft.net>
7257 * config.gcc (sparc*-*-*): Always set need_64bit_hwint to yes.
7258 (sparc*-*-linux*): Use linux.h in tm_file.
7259 (sparc-*-linux*): If 'enabled_targets' is 'all', build a bi-arch
7260 compiler defaulting to 32-bit.
7261 (sparc*-*-*): Remove explicit target settings of need_64bit_hwint,
7263 * config/sparc/linux.h: Remove definitions now obtained
7264 properly from linux.h
7265 * config/sparc/linux64.h: Likewise.
7266 (ASM_CPU_DEFAULT_SPEC): Change this to ASM_CPU64_DEFAULT_SPEC, we
7267 don't want this setting for 32-bit builds in a biarch compiler.
7268 * doc/install.texi: Add sparc-linux to list of targets
7269 supporting --enable-targets=all.
7271 2008-05-03 Andrew Pinski <pinskia@gmail.com>
7273 * Makefile.in (tree-ssa-phiprop.o): Fix dependencies.
7275 2008-05-03 H.J. Lu <hongjiu.lu@intel.com>
7277 * config/i386/i386.c (ix86_builtin_type): Move V4SI_FTYPE_V4SF
7278 after V4SI_FTYPE_V8HI.
7279 (ix86_init_mmx_sse_builtins): Move case V4HI_FTYPE_V4HI after
7280 case V4SI_FTYPE_V2DF.
7282 2008-05-03 Kenneth Zadeck <zadeck@naturalbridge.com>
7284 * doc/invoke.texi (max-flow-memory-locations): Removed.
7285 * params.def (PARAM_MAX_FLOW_MEMORY_LOCATIONS): Removed.
7287 2008-05-03 Richard Guenther <rguenther@suse.de>
7290 * opts.c (set_Wstrict_aliasing): Handle the turn-off case.
7292 2008-05-02 David S. Miller <davem@davemloft.net>
7294 * config.gcc (need_64bit_hwint): Document libcpp dependency.
7296 2008-05-02 Simon Baldwin <simonb@google.com>
7299 * c-common.h (warn_array_subscript_range): Removed.
7300 * c-common.c (warn_array_subscript_range): Ditto.
7301 * tree-vrp.c (check_array_ref): Revert to ignoring arrays with size 2.
7302 * c-typeck.c (build_array_ref): Remove warn_array_subscript_range.
7304 2008-05-02 H.J. Lu <hongjiu.lu@intel.com>
7306 * config/i386/i386.c (ix86_special_builtin_type): New.
7307 (bdesc_special_args): Likewise.
7308 (ix86_expand_special_args_builtin): Likewise.
7309 (ix86_init_mmx_sse_builtins): Updated.
7310 (ix86_expand_builtin): Updated.
7311 (ix86_expand_store_builtin): Removed.
7312 (ix86_expand_unop_builtin): Likewise.
7314 * config/i386/mm3dnow.h (__v2sf): Moved to ...
7315 * config/i386/mmintrin.h (__v2sf): Here.
7317 * config/i386/xmmintrin.h (_mm_loadh_pi): Replace __v2si with
7319 (_mm_loadl_pi): Likewise.
7320 (_mm_storeh_pi): Replace __v2si with __v2sf.
7321 (_mm_storel_pi): Likewise.
7323 * doc/extend.texi: Correct __builtin_ia32_loadhps,
7324 __builtin_ia32_loadlps, __builtin_ia32_storehps,
7325 __builtin_ia32_storelps, __builtin_ia32_loadhpd and
7326 __builtin_ia32_loadlpd.
7328 2008-05-02 H.J. Lu <hongjiu.lu@intel.com>
7330 * config/i386/i386.c (ix86_builtin_type): Add FLOAT_FTYPE_FLOAT,
7331 V4SF_FTYPE_V4SF_VEC_MERGE and V2DF_FTYPE_V2DF_VEC_MERGE.
7332 (bdesc_args): Updated. Add scalar SSE builtins with vec_merge.
7333 (ix86_init_mmx_sse_builtins): Updated.
7334 (ix86_expand_args_builtin): Likewise.
7335 (ix86_expand_builtin): Likewise.
7336 (ix86_expand_unop1_builtin): Renamed to ...
7337 (ix86_expand_unop_vec_merge_builtin): This.
7339 2008-05-01 Jan Hubicka <jh@suse.cz>
7342 * ipa-inline.c (inline_generate_summary): Make static.
7343 (inline_transform): Do not call inlining at -O0; make static.
7344 * passes.c (execute_todo): Add sanity check.
7345 (execute_one_ipa_transform_pass): Execute proper flags.
7347 2008-05-01 Eric Botcazou <ebotcazou@adacore.com>
7349 * tree.h (TYPE_NONALIASED_COMPONENT): Expand comment.
7350 (DECL_NONADDRESSABLE_P): Likewise.
7351 * alias.c (record_component_aliases): Fix comment.
7353 2008-05-01 Simon Baldwin <simonb@google.com>
7355 * c-common.h (warn_array_subscript_range): New function.
7356 * c-common.c (warn_array_subscript_range): Ditto.
7357 * tree-vrp.c (check_array_ref): Corrected code to agree with
7358 comment, ignoring only arrays of size 0 or size 1.
7359 * c-typeck.c (build_array_ref): Call warn_array_subscript_range.
7361 2008-05-01 H.J. Lu <hongjiu.lu@intel.com>
7363 * config/i386/i386.c (ix86_builtin_type): Replace
7364 DI_FTYPE_DI_DI_INT with V1DI2DI_FTYPE_V1DI_V1DI_INT.
7365 (bdesc_args): Updated.
7366 (ix86_init_mmx_sse_builtins): Likewise.
7367 (ix86_expand_args_builtin): Likewise.
7369 * config/i386/tmmintrin.h (_mm_alignr_pi8): Replace long long
7372 * doc/extend.texi: Correct __builtin_ia32_palignr.
7374 2008-05-01 H.J. Lu <hongjiu.lu@intel.com>
7377 * config/i386/i386.c (bdesc_crc32): Removed.
7378 (ix86_expand_crc32): Likewise.
7379 (ix86_builtin_type): Replace V2DI2TI_FTYPE_V2DI2TI_INT with
7380 V2DI2TI_FTYPE_V2DI_INT, V2DI2TI_FTYPE_V2DI2TI_V2DI2TI_INT with
7381 V2DI2TI_FTYPE_V2DI_V2DI_INT. Add UINT64_FTYPE_UINT64_UINT64,
7382 UINT_FTYPE_UINT_UINT, UINT_FTYPE_UINT_USHORT and
7383 UINT_FTYPE_UINT_UCHAR.
7384 (bdesc_args): Updated. Add crc32 builtins.
7385 (ix86_init_mmx_sse_builtins): Updated.
7386 (ix86_expand_args_builtin): Updated to support subreg.
7388 * doc/extend.texi: Correct __builtin_ia32_crc32di.
7390 2008-05-01 Jan Hubicka <jh@suse.cz>
7392 * tree-pass.h (opt_pass): Add IPA_PASS.
7393 (varpool_node, cgraph_node): Forward declare.
7394 (ipa_opt_pass): Define.
7395 (pass_ipa_inline): Turn into ipa_opt_pass.
7396 (pass_apply_inline): Remove.
7397 * ipa-inline.c (pass_ipa_inline): Turn into ipa_opt_pass.
7398 (apply_inline): Turn into ....
7399 (inline_transform): ... this one.
7400 (inline_generate_summary): New function.
7401 (pass_apply_inline): Remove.
7402 * function.h (ipa_opt_pass): Forward declare structure; typedef;
7404 (struct function): Add ipa_transforms_to_apply.
7405 * passes.c (register_one_dump_file): Work on IPA_PASS.
7406 (init_optimization_passes): Remove pass_inline_parameters and
7408 (pass_init_dump_file, pass_fini_dump_file): Break out from ....
7409 (execute_one_pass) ... here; apply transforms when possible.
7410 (add_ipa_transform_pass, execute_ipa_summary_asses,
7411 execute_one_ipa_transform_pass): New.
7412 (execute_ipa_pass_list): Update for IPA_PASS type.
7414 2008-05-01 H.J. Lu <hongjiu.lu@intel.com>
7416 * config/i386/i386.c (ix86_builtin_type): Add
7417 V2DI_FTYPE_V2DI_V16QI, V2DI_FTYPE_V2DI_UINT_UINT and
7418 V2DI_FTYPE_V2DI_V2DI_UINT_UINT.
7419 (bdesc_args): Add SSE4a builtins.
7420 (ix86_init_mmx_sse_builtins): Updated.
7421 (ix86_expand_args_builtin): Likewise.
7422 (ix86_expand_builtin): Likewise.
7424 2008-05-01 H.J. Lu <hongjiu.lu@intel.com>
7426 * config/i386/i386.c (ix86_builtin_type): Add
7427 V8HI_FTYPE_V8HI_V8HI_COUNT, V8HI_FTYPE_V8HI_SI_COUNT,
7428 V4SI_FTYPE_V4SI_V4SI_COUNT, V4SI_FTYPE_V4SI_SI_COUNT,
7429 V4HI_FTYPE_V4HI_V4HI_COUNT, V4HI_FTYPE_V4HI_SI_COUNT,
7430 V2DI_FTYPE_V2DI_V2DI_COUNT, V2DI_FTYPE_V2DI_SI_COUNT,
7431 V2SI_FTYPE_V2SI_V2SI_COUNT, V2SI_FTYPE_V2SI_SI_COUNT,
7432 V1DI_FTYPE_V1DI_V1DI_COUNT, V1DI_FTYPE_V1DI_SI_COUNT,
7433 V8HI_FTYPE_V8HI_INT, V4SI_FTYPE_V4SI_INT, V4HI_FTYPE_V4HI_INT,
7434 V2DI2TI_FTYPE_V2DI2TI_INT, V2DI2TI_FTYPE_V2DI2TI_V2DI2TI_INT
7435 and DI_FTYPE_DI_DI_INT.
7436 (bdesc_args): Add MMX/SSE shift, shuffle and palignr builtins.
7437 (ix86_init_mmx_sse_builtins): Updated.
7438 (ix86_expand_args_builtin): Likewise.
7439 (ix86_expand_builtin): Likewise.
7440 (ix86_expand_binop_imm_builtin): Removed.
7442 * doc/extend.texi: Correct __builtin_ia32_palignr128.
7444 2008-04-30 Richard Guenther <rguenther@suse.de>
7446 PR tree-optimization/32921
7447 * tree-ssa-loop-im.c (mem_refs_may_alias_p): Disambiguate with TBAA.
7449 2008-04-30 Richard Sandiford <rsandifo@nildram.co.uk>
7451 * config/arm/arm.c (arm_unwind_emit): Use
7452 crtl->all_throwers_are_sibcalls instead of
7453 cfun->all_throwers_are_sibcalls.
7454 (arm_output_fn_unwind): Likewise.
7455 * config/frv/frv.c (frv_stack_info): Use crtl->uses_pic_offset_table
7456 instead of cfun->uses_pic_offset_table.
7457 (frv_expand_prologue): Likewise.
7458 (frv_frame_pointer_required): Likewise.
7459 (frv_expand_fdpic_call): Likewise.
7460 (frv_emit_movsi): Likewise.
7461 * config/iq2000/iq2000.c (iq2000_expand_prologue): Use
7462 cfun->returns_pcc_struct instead of
7463 current_function_returns_pcc_struct.
7464 * config/m32c/m32c.c (need_to_save): Use crtl->calls_eh_return
7465 instead of cfun->calls_eh_return.
7466 (m32c_pushm_popm): Likewise.
7467 * config/xtensa/xtensa.h (cfun->calls_alloca): Remove bogus
7468 "extern" declaration.
7470 2008-04-30 Richard Guenther <rguenther@suse.de>
7472 PR tree-optimization/21636
7473 * tree-ssa-ccp.c (ccp_fold): Handle &p->x with p being a
7475 (evaluate_stmt): Print the likely value.
7476 (ccp_visit_stmt): Avoid excessive vertical spacing.
7478 2008-04-30 Rafael Espindola <espindola@google.com>
7480 * builtins.c (fold_call_expr): Return realret.
7481 * tree-ssa-threadedge.c
7482 (record_temporary_equivalences_from_stmts_at_dest): Ignore calls to
7483 __builtin_object_size.
7485 2008-04-30 Seongbae Park <seongbae.park@gmail.com>
7487 * gcc.c (wrapper_string): New variable.
7488 (insert_wrapper): New function.
7489 (execute): New option -wrapper.
7490 * doc/invoke.texi (Overall Options): New driver option -wrapper.
7492 2008-04-30 Nathan Froyd <froydnj@codesourcery.com>
7494 * config/rs6000/crtresgpr.asm, config/rs6000/crtresxgpr.asm,
7495 config/rs6000/crtsavgpr.asm, config/rs6000/crtresfpr.asm,
7496 config/rs6000/crtresxfpr.asm, config/rs6000/crtsavfpr.asm: Break out
7498 * config/rs6000/crtsavres.asm: ...here. Remove unneeded file.
7499 * config/rs6000/e500crtres32gpr.asm, config/rs6000/e500crtres64gpr.asm,
7500 config/rs6000/e500crtres64gprctr.asm,
7501 config/rs6000/e500crtrest32gpr.asm, config/rs6000/e500crtrest64gpr.asm,
7502 config/rs6000/e500crtresx32gpr.asm, config/rs6000/e500crtresx64gpr.asm,
7503 config/rs6000/e500crtsav32gpr.asm, config/rs6000/e500crtsav64gpr.asm,
7504 config/rs6000/e500crtsav64gprctr.asm,
7505 config/rs6000/e500crtsavg32gpr.asm, config/rs6000/e500crtsavg64gpr.asm,
7506 config/rs6000/e500crtsavg64gprctr.asm: New files.
7507 * config/rs6000/t-ppccomm: Add build rules for new files.
7508 (LIB2FUNCS_STATIC_EXTRA): Add new files.
7509 * config/rs6000/t-netbsd: Add build rules for new files.
7510 (LIB2FUNCS_STATIC_EXTRA): New variable.
7511 * config/rs6000/sysv4.h (ENDFILE_SPEC): Don't include crtsavres.o
7512 (CRTSAVRES_DEFAULT_SPEC): Likewise.
7513 * config/rs6000/netbsd.h (ENDFILE_SPEC): Likewise.
7515 2008-04-30 H.J. Lu <hongjiu.lu@intel.com>
7517 * config/i386/i386.c (ix86_builtin_type): Add
7518 FLOAT128_FTYPE_FLOAT128_FLOAT128, V16QI_FTYPE_V16QI_V16QI,
7519 V16QI_FTYPE_V8HI_V8HI, V8QI_FTYPE_V8QI_V8QI,
7520 V8QI_FTYPE_V4HI_V4HI, V8HI_FTYPE_V8HI_V8HI,
7521 V8HI_FTYPE_V16QI_V16QI, V8HI_FTYPE_V4SI_V4SI,
7522 V4SI_FTYPE_V4SI_V4SI, V4SI_FTYPE_V8HI_V8HI,
7523 V4SI_FTYPE_V4SF_V4SF, V4SI_FTYPE_V2DF_V2DF,
7524 V4HI_FTYPE_V4HI_V4HI, V4HI_FTYPE_V8QI_V8QI,
7525 V4HI_FTYPE_V2SI_V2SI, V4SF_FTYPE_V4SF_V4SF,
7526 V4SF_FTYPE_V4SF_V4SF_SWAP, V4SF_FTYPE_V4SF_V2SI,
7527 V4SF_FTYPE_V4SF_V2DF, V4SF_FTYPE_V4SF_DI,
7528 V4SF_FTYPE_V4SF_SI, V2DI_FTYPE_V2DI_V2DI,
7529 V2DI_FTYPE_V16QI_V16QI, V2DI_FTYPE_V4SI_V4SI,
7530 V2DI_FTYPE_V2DF_V2DF, V2SI_FTYPE_V2SI_V2SI,
7531 V2SI_FTYPE_V4HI_V4HI, V2SI_FTYPE_V2SF_V2SF,
7532 V2DF_FTYPE_V2DF_V2DF, V2DF_FTYPE_V2DF_V2DF_SWAP,
7533 V2DF_FTYPE_V2DF_V4SF, V2DF_FTYPE_V2DF_DI,
7534 V2DF_FTYPE_V2DF_SI, V2SF_FTYPE_V2SF_V2SF,
7535 V1DI_FTYPE_V1DI_V1DI, V1DI_FTYPE_V8QI_V8QI and
7536 V1DI_FTYPE_V2SI_V2SI.
7537 (bdesc_2arg): Moved to ...
7539 (ix86_init_mmx_sse_builtins): Updated.
7540 (ix86_expand_args_builtin): Updated. Take a pointer
7541 to const struct builtin_description. Handle comparison
7543 (ix86_expand_sse_compare): Take a new argument for swapping operands.
7544 (ix86_expand_builtin): Updated.
7546 * config/i386/sse.md (ssse3_pmaddubswv8hi3): Renamed to ...
7547 (ssse3_pmaddubsw128): This.
7548 (ssse3_pmaddubswv4hi3): Renamed to ...
7549 (ssse3_pmaddubsw): This.
7551 * doc/extend.texi (__builtin_ia32_packsswb128): Correct prototype.
7552 (__builtin_ia32_packssdw128): Likewise.
7553 (__builtin_ia32_packuswb128): Likewise.
7554 (__builtin_ia32_pmaddubsw): Likewise.
7555 (__builtin_ia32_pmaddubsw128): Likewise.
7557 2008-04-30 Richard Guenther <rguenther@suse.de>
7559 PR tree-optimization/14847
7560 * tree-ssa-ifcombine.c (get_name_for_bit_test): New helper function.
7561 (recognize_bits_test): Use it.
7562 (recognize_single_bit_test): Likewise.
7564 2008-04-30 Martin Jambor <mjambor@suse.cz>
7566 * ipa-cp.c (ipcp_init_stage): Calls ipa_set_called_with_variable_arg
7567 instead of setting number of formal parameters to zero.
7568 (ipcp_init_stage): Do not set the number of actual parameters to zero
7570 (ipcp_propagate_stage): Explicitly skipping all calls to nodes
7571 which are called with variable number of arguments.
7572 (ipcp_insert_stage): Explicitely skipping all nodes which are
7573 called with variable number of arguments.
7574 (ipcp_callsite_param_print): Skipps callsites to nodes with varaible
7575 number of parameters.
7577 * ipa-prop.h (struct ipa_node_params): Added flag
7578 called_with_var_arguments
7579 (ipa_set_param_count): Added. Changed sole setter to use it.
7580 (ipa_get_param_count): Added. All readers of param_count
7581 converted to use it instead.
7582 (ipa_set_called_with_variable_arg): Added.
7583 (ipa_is_called_with_var_arguments): Added.
7584 (ipa_get_ith_param): Added. All readers of param_decls converted
7586 (ipa_set_cs_argument_count): Added, sole writer to argument_count
7588 (ipa_get_cs_argument_count): Added, all readers of argument_count
7590 (ipa_get_ith_jump_func): Added. Accessors of jump values changed
7593 * ipa-prop.h (struct ipcp_formal): Renamed to ipcp_lattice
7594 (struct ipcp_lattice): Renamed cval_type to type
7595 (struct ipa_node_params): ipcp_cval renamed to ipcp_lattices
7597 * ipa-cp.c (ipcp_cval_get_cvalue): Changed return value to tree
7598 (ipcp_cval_set_cvalue): Changed type of parameter value to tree
7599 (ipcp_insert_stage): Changed the type of variable cvalue to tree
7600 (ipcp_replace_map_create): Changed the type of parameter cvalue to tree
7601 (build_const_val): Changed the type of parameter cvalue to tree
7602 (ipcp_propagate_const): Changed the type of parameter cvalue to tree
7603 (ipcp_method_cval_set_cvalue_type): Renamed parameter cval_type1 to type
7605 * ipa-prop.h (struct ipcp_formal): Replaced cvalue with tree called
7608 * ipa-prop.c (ipa_methodlist_init): Renamed to ipa_init_func_list
7609 (ipa_methodlist_not_empty): Removed, the sole user now checks directly
7610 (ipa_add_method): Renamed to ipa_push_func_to_list
7611 (ipa_remove_method): Renamed to ipa_pop_func_from_list
7612 (ipa_callsite_param_count): Removed.
7613 (ipa_callsite_param_count_set): Removed.
7614 (ipa_callsite_param): Removed.
7615 (ipa_callsite_callee): Removed.
7616 (ipa_callsite_compute_param): Renamed to ipa_compute_jump_functions
7617 (ipa_callsite_compute_count): Renamed to ipa_count_arguments
7618 (ipa_method_formal_count): Removed.
7619 (ipa_method_formal_count_set): Removed.
7620 (ipa_method_get_tree): Removed.
7621 (ipa_method_tree_map_create): Removed.
7622 (ipa_method_compute_tree_map): Renamed to ipa_create_param_decls_array
7623 (ipa_create_param_decls_array): Creates the array itself
7624 (ipa_create_param_decls_array): Temporary variable info instead of
7626 (ipa_method_formal_compute_count): Renamed to ipa_count_formal_params
7627 (ipa_method_compute_modify): Renamed to ipa_detect_param_modifications
7628 (get_type): Removed.
7629 (ipa_jf_get_info_type): Removed.
7630 (ipa_node_create): Renamed to ipa_create_node_params
7631 (ipa_free): Renamed to ipa_free_all_node_params
7632 (ipa_nodes_create): Renamed to ipa_create_all_node_params
7633 (ipa_edges_create): Renamed to ipa_create_all_edge_args
7634 (ipa_edges_free): Renamed to ipa_free_all_edge_args
7635 (ipa_nodes_free): Integrated into ipa_free_all_node_params and removed
7636 (ipa_free_all_node_params): Deallocation to jump_functions moved to
7637 ipa_free_all_edge_args
7638 (ipa_method_tree_print): Renamed to ipa_print_all_tree_maps
7639 (ipa_method_modify_print): Renamed to ipa_print_all_params_modified
7640 (ipa_create_methodlist_node): Removed.
7641 (ipa_methodlist_method): Removed.
7642 (ipa_methodlist_method_set): Removed.
7643 (ipa_methodlist_next_method): Removed.
7644 (ipa_methodlist_next_method_set): Removed.
7645 (ipa_method_is_modified): Removed.
7646 (ipa_method_modify_create): Removed.
7647 (ipa_method_modify_init): Temporary variable info instead of a few
7649 (ipa_detect_param_modifications): Temporary variable info instead of
7651 (ipa_compute_jump_functions): Temporary variable info instead of
7653 (ipa_method_modify_set): Removed.
7654 (ipa_method_tree_map): Renamed to ipa_get_param_decl_index
7655 (ipa_get_param_decl_index): Now accepts struct ipa_node_params rather
7656 than craph_node as the first parameter.
7657 (ipa_method_modify_stmt): Renamed to ipa_check_stmt_modifications
7658 (ipa_method_modify_init): Removed.
7659 (ipa_compute_jump_functions): Added a temp variable instead of
7660 repeatadly dereferencing the cgraph_edge.aux pointer
7661 (ipa_callsite_param_set_type): Removed.
7662 (ipa_compute_jump_functions): i renamed to index and moved to
7664 (ipa_callsite_param_set_info_type_formal): Removed.
7665 (ipa_callsite_param_set_info_type): Removed.
7666 (ipa_callsite_param_map_create): Removed.
7667 (ipa_callsite_tree): Removed.
7668 (ipa_callsite_caller): Removed.
7669 (ipa_pop_func_from_list): return_method removed to return_func
7671 * ipa-prop.h (enum cvalue_type): Renamed to ipa_lattice_type,
7672 prefixed all values with IPA_. Changed all users.
7673 (enum jump_func_type): Rnamed UNKNOWN_IPATYPE to IPA_UNKNOWN,
7674 CONST_IPATYPE to IPA_CONST, CONST_IPATYPE_REF to IPA_CONST_REF
7675 and FORMAL_IPATYPE IPA_PASS_THROUGH.
7676 (union parameter_info): Renamed to jump_func_value.
7677 (union jump_func_value): Renamed value to constant
7678 (struct ipa_jump_func): Renamed info_type to value
7679 (struct ipa_node): Renamed to ipa_node_params
7680 (struct ipa_node_params): Renamed ipa_arg_num to param_count
7681 (struct ipa_node_params): Renamed ipa_param_tree to param_decls
7682 (struct ipa_node_params): Renamed ipa_mod to modified_flags
7683 (struct ipa_edge): Renamed to ipa_edge_args
7684 (struct ipa_edge_args): Renamed ipa_param_num to argument_count
7685 (struct ipa_edge_args): Renamed ipa_param_map to jump_functions
7686 (struct ipa_methodlist): Renamed to ipa_func_list
7687 (struct ipa_func_list): method_p renamed to node, next_method
7689 (ipa_methodlist_p): Removed, switched all users to struct pointer
7690 (IS_VALID_TREE_MAP_INDEX): Renamed to IS_VALID_JUMP_FUNC_INDEX
7692 2008-04-30 Alan Modra <amodra@bigpond.net.au>
7694 * config/rs6000/rs6000.c (ALWAYS_RESTORE_ALTIVEC_BEFORE_POP): Define.
7695 (rs6000_emit_epilogue): Use backchain to restore only when we
7696 have a large frame. Make use of frame pointer to restore if we
7697 have one. Handle ALWAYS_RESTORE_ALTIVEC_BEFORE_POP.
7699 2008-04-29 Paolo Bonzini <bonzini@gnu.org>
7701 * config/avr/avr.md (*sbrx_branch, *sbix_branch, *sbix_branch_tmp):
7702 Add mode to zero_extract.
7703 (sign bit tests peepholes): (Ditto.).
7705 2008-04-29 H.J. Lu <hongjiu.lu@intel.com>
7707 * config/i386/i386.c (ix86_builtins): Replace Prescott New
7708 Instructions in comments with SSE3.
7709 (ix86_builtin_type): This. Add FLOAT128_FTYPE_FLOAT128,
7710 INT64_FTYPE_V4SF, INT64_FTYPE_V2DF, INT_FTYPE_V16QI,
7711 INT_FTYPE_V8QI, INT_FTYPE_V4SF, INT_FTYPE_V2DF,
7712 V16QI_FTYPE_V16QI, V8HI_FTYPE_V8HI, V8HI_FTYPE_V16QI,
7713 V8QI_FTYPE_V8QI, V4SI_FTYPE_V4SI, V4SI_FTYPE_V16QI,
7714 V4SI_FTYPE_V4SF, V4SI_FTYPE_V8HI, V4SI_FTYPE_V2DF,
7715 V4HI_FTYPE_V4HI, V4SF_FTYPE_V4SF, V4SF_FTYPE_V4SI,
7716 V4SF_FTYPE_V2DF, V2DI_FTYPE_V2DI, V2DI_FTYPE_V16QI,
7717 V2DI_FTYPE_V8HI, V2DI_FTYPE_V4SI, V2DF_FTYPE_V2DF,
7718 V2DF_FTYPE_V4SI, V2DF_FTYPE_V4SF, V2DF_FTYPE_V2SI,
7719 V2SI_FTYPE_V2SI, V2SI_FTYPE_V4SF, V2SI_FTYPE_V2SF,
7720 V2SI_FTYPE_V2DF, V2SF_FTYPE_V2SF and V2SF_FTYPE_V2SI.
7721 (bdesc_sse_args): Renamed to ...
7722 (bdesc_args): This. Add IX86_BUILTIN_PF2ID, IX86_BUILTIN_PFRCP,
7723 IX86_BUILTIN_PFRSQRT, IX86_BUILTIN_PI2FD, IX86_BUILTIN_PF2IW,
7724 IX86_BUILTIN_PSWAPDSI, IX86_BUILTIN_PSWAPDSF and
7726 (bdesc_1arg): Moved to ...
7728 (ix86_init_mmx_sse_builtins): Updated. Replace Prescott New
7729 Instructions in comments with SSE3.
7730 (ix86_expand_sse_operands_builtin): Renamed to ...
7731 (ix86_expand_args_builtin): This. Updated.
7732 (ix86_expand_unop1_builtin): Update comments.
7733 (ix86_expand_builtin): Updated.
7735 2008-04-29 Richard Guenther <rguenther@suse.de>
7737 PR tree-optimization/36078
7738 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely):
7739 Update virtual SSA form after cleaning up the CFG.
7741 2008-04-29 Richard Guenther <rguenther@suse.de>
7744 * fold-const.c (fold_binary): Fold (A + A) * C to A * 2*C.
7746 2008-04-29 Richard Guenther <rguenther@suse.de>
7748 * tree-ssa-alias.c (finalize_ref_all_pointers): Remove.
7749 (compute_may_aliases): Do not call finalize_ref_all_pointers.
7750 (compute_flow_insensitive_aliasing): Do not treat
7751 PTR_IS_REF_ALL pointers special.
7752 (get_smt_for): Likewise.
7753 (may_alias_p): Re-structure.
7754 (is_escape_site): A ref-all pointer conversion is not an escape site.
7755 * tree-ssa-structalias.c (find_what_p_points_to): Do not treat
7756 PTR_IS_REF_ALL pointers special.
7757 * tree-ssa-structalias.h (struct alias_info): Remove
7758 ref_all_symbol_mem_tag field.
7759 (PTR_IS_REF_ALL): Remove.
7761 2008-04-29 Richard Guenther <rguenther@suse.de>
7764 * fold-const.c (extract_muldiv_1): In combining division constants
7765 make sure to never overflow.
7767 2008-04-29 Nick Clifton <nickc@redhat.com>
7769 * doc/tm.texi (RETURN_ADDR_RTX): Fix typo.
7771 2008-04-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7774 * optc-gen.awk: Work around HP-UX/IA awk bug.
7776 2008-04-28 Danny Smith <dannysmith@users.sourceforge.net>
7778 * config/i386/cygming-crtend.c (register_frame_ctor): Revert my
7781 2008-04-28 Uros Bizjak <ubizjak@gmail.com>
7784 * config/i386/i386.md
7785 (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit):
7786 Change operand 1 predicate to nonimmediate_operand.
7788 2008-04-28 Jakub Jelinek <jakub@redhat.com>
7791 * dwarf2out.c (struct die_struct): Mark as chain_circular through
7793 * gengtype.c (walk_type, write_func_for_structure): Handle
7795 * doc/gty.texi: Document chain_circular.
7797 2008-04-28 Richard Guenther <rguenther@suse.de>
7799 PR tree-optimization/36066
7800 * tree-vrp.c (execute_vrp): Cleanup the CFG only after finalizing
7803 2008-04-28 Uros Bizjak <ubizjak@gmail.com>
7806 * config/i386/i386.md
7807 (floatdi<X87MODEF:mode>2_i387_with_xmm splitters):
7808 Use match_scratch instead of match_operand for operands 3 and 4.
7810 2008-04-27 Richard Guenther <rguenther@suse.de>
7812 PR tree-optimization/18754
7813 PR tree-optimization/34223
7814 * tree-pass.h (pass_complete_unrolli): Declare.
7815 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Print
7816 loop size before and after unconditionally of UL_NO_GROWTH in effect.
7817 Rewrite loop into loop closed SSA form if it is not already.
7818 (tree_unroll_loops_completely): Re-structure to iterate over
7819 innermost loops with intermediate CFG cleanups.
7820 Unroll outermost loops only if requested or the code does not grow
7822 * tree-ssa-loop.c (gate_tree_vectorize): Don't shortcut if no
7823 loops are available.
7824 (tree_vectorize): Instead do so here.
7825 (tree_complete_unroll): Also unroll outermost loops.
7826 (tree_complete_unroll_inner): New function.
7827 (gate_tree_complete_unroll_inner): Likewise.
7828 (pass_complete_unrolli): New pass.
7829 * tree-ssa-loop-manip.c (find_uses_to_rename_use): Only record
7830 uses outside of the loop.
7831 (tree_duplicate_loop_to_header_edge): Only verify loop-closed SSA
7832 form if it is available.
7833 * tree-flow.h (tree_unroll_loops_completely): Add extra parameter.
7834 * passes.c (init_optimization_passes): Schedule complete inner
7835 loop unrolling pass before the first CCP pass after final inlining.
7837 2008-04-27 Nathan Sidwell <nathan@codesourcery.com>
7839 * targhooks.h (default_emutls_var_fields,
7840 default_emutls_var_init): Declare.
7841 * tree.h (DECL_THREAD_LOCAL): Compare against TLS_MODEL_REAL.
7842 * target.h (struct gcc_target): Add struct emutls member.
7843 * target-def.h (TARGET_EMUTLS_GET_ADDRESS,
7844 TARGET_EMUTLS_REGISTER_COMMON, TARGET_EMUTLS_VAR_SECTION,
7845 TARGET_EMUTLS_TMPL_SECTION, TARGET_EMUTLS_VAR_PREFIX,
7846 TARGET_EMUTLS_TMPL_PREFIX, TARGET_EMUTLS_VAR_FIELDS,
7847 TARGET_EMUTLS_VAR_INIT, TARGET_EMUTLS_DEBUG_FORM_TLS_ADDRESS,
7848 TARGET_EMUTLS_VAR_ALIGN_FIXED, TARGET_EMUTLS): New.
7849 (TARGET_INITIALIZER): Add TARGET_EMUTLS.
7850 * builtins.def (BUILT_IN_EMUTLS_GET_ADDRESS,
7851 BUILT_IN_EMUTLS_REGISTER_COMMON): Get name from targetm structure.
7852 * dwarf2out.c (loc_descriptor_from_tree_1): Check if emutls can
7853 emit debug information.
7854 * coretypes.h (tls_model): Add TLS_MODEL_EMULATED, TLS_MODEL_REAL.
7855 * varasm.c: Include targhooks.h.
7856 (emutls_object_section, emutls_tmpl_section): New.
7857 (EMUTLS_VAR_PREFIX, EMUTLS_TMPL_PREFIX): Remove.
7858 (EMUTLS_SEPARATOR): New.
7860 (get_emutls_object_name): New.
7861 (default_emutls_var_fields): New, broken out of ...
7862 (get_emutls_object_type): ... here. Adjust to use target hooks.
7863 (get_emutls_init_templ_addr): Adjust to use target hooks.
7864 (emutls_decl): Adjust to use target hooks.
7865 (emutls_finish): Likewise.
7866 (default_emutls_var_init): New, broken out of ...
7867 (assemble_variable): ... here. Adjust to use target hooks.
7868 * output.h (enum section_category): Add SECCAT_EMUTLS_VAR,
7870 * c-common.c (handle_section_attribute): Prevent overriding
7871 sections for emulated tls with special sections.
7872 * config/i386/i386.c (x86_64_elf_select_section): Add
7873 SECCAT_EMUTLS_VAR and SECCAT_EMUTLS_TMPL.
7874 (x86_64_elf_unique_section): Likewise.
7875 * config/vxworks.c: Include tree.h.
7876 (vxworks_emutls_var_fields, vxworks_emutls_var_init): New.
7877 (vxworks_override_options): Set TLS scheme.
7878 * doc/tm.texi (Emulated TLS): New node.
7880 2008-04-26 Simon Baldwin <simonb@google.com>
7883 * builtins.c (c_strlen): Suppressed multiple warnings that can occur
7884 with propagated string constants.
7886 2008-04-26 Uros Bizjak <ubizjak@gmail.com>
7888 * config/i386/i386.md (fix_trunc<mode>_i387_fisttp_with_temp): Use 'X'
7889 constraint for operand 2 when operand 0 is memory operand.
7890 (fix_truncdi_i387_with_temp): : Use 'X' constraint for operand 4 when
7891 operand 0 is memory operand.
7892 (fix_trunc<mode>_i387_with_temp): Ditto.
7893 (*floatsi<mode>2_vector_mixed_with_temp): Use 'X' constraint for
7894 operand 2 when operand 1 is memory operand.
7895 (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_with_temp): Ditto.
7896 (*floatsi<mode>2_vector_sse_with_temp): Ditto.
7897 (*float<SSEMODEI24:mode><MODEF:mode>2_sse_with_temp): Ditto.
7898 (*float<SSEMODEI24:mode><X87MODEF:mode>2_i387_with_temp): Ditto.
7899 (floatdi<X87MODEF:mode>2_i387_with_xmm): Use 'X' constraint for
7900 operands 2,3 and 4 when operand 1 is memory operand.
7901 (fistdi2_with_temp): Use 'X' constraint for operand 2 when operand 0
7903 (fistdi2_floor_with_temp): Ditto.
7904 (fist<mode>2_floor_with_temp): Ditto.
7905 (fistdi2_ceil_with_temp): Ditto.
7906 (fist<mode>2_ceil_with_temp): Ditto.
7907 (*truncdfsf_fast_mixed): Merge alternatives 0 and 1.
7909 2008-04-26 David Daney <ddaney@avtrex.com>
7911 * config/mips/mips.md (UNSPEC_COMPARE_AND_SWAP_12): New
7913 (UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP, UNSPEC_SYNC_EXCHANGE,
7914 UNSPEC_MEMORY_BARRIER, UNSPEC_SET_GOT_VERSION,
7915 UNSPEC_UPDATE_GOT_VERSION): Renumber.
7916 (sync_compare_and_swap<mode>): New expand for QI and HI modes.
7917 (compare_and_swap_12): New insn.
7918 * config/mips/mips-protos.h (mips_expand_compare_and_swap_12): Declare.
7919 * config/mips/mips.c (mips_force_binary): New function.
7920 (mips_emit_int_order_test, mips_expand_synci_loop): Use it.
7921 (mips_expand_compare_and_swap_12): New function.
7922 * config/mips/mips.h (MIPS_COMPARE_AND_SWAP_12): New macro.
7924 2008-04-25 Jan Hubicka <jh@suse.cz>
7927 * cfgexpand.c (pass_expand): Turn into RTL pass.
7928 * passes.c (execute_one_pass): Do pass typechecking after execution.
7929 * tree-pass.h (pass_expand): Turn into RTL pass.
7931 * function.h (struct rtl_data): Move here fields
7932 accesses_prior_frames, calls_eh_return, saves_all_registers,
7933 has_nonlocal_goto, has_asm_statement, is_thunk,
7934 all_throwers_are_sibcalls, limit_stack, profile, uses_const_pool,
7935 uses_pic_offset_table, uses_eh_lsda, tail_call_emit,
7936 arg_pointer_save_area_init from struct function; turn into bool.
7937 (struct function): Move
7938 calls_eh_return, saves_all_registers, has_nonlocal_goto,
7939 has_asm_statement, is_thunk, all_throwers_are_sibcalls, limit_stack,
7940 profile, uses_const_pool, uses_pic_offset_table, uses_eh_lsda,
7941 tail_call_emit, arg_pointer_save_area_init
7942 into struct rtl_data. Remove recursive_call_emit and gimplified flags.
7943 (current_function_returns_struct, current_function_returns_pcc_struct,
7944 current_function_calls_setjmp, current_function_calls_alloca,
7945 current_function_accesses_prior_frames,
7946 current_function_calls_eh_return, current_function_is_thunk,
7947 current_function_stdarg, current_function_profile,
7948 current_function_limit_stack, current_function_uses_pic_offset_table,
7949 current_function_uses_const_pool, current_function_has_nonlocal_label,
7950 current_function_saves_all_registers,
7951 current_function_has_nonlocal_goto,
7952 current_function_has_asm_statement): Remove accesor macros.
7953 * ra-conflict.c (global_conflicts): Update.
7954 * tree-tailcall.c (suitable_for_tail_opt_p): Update.
7955 (suitable_for_tail_call_opt_p): Update.
7956 * builtins.c (expand_builtin_return_addr): Update.
7957 (expand_builtin_setjmp_setup): Update.
7958 (expand_builtin_nonlocal_goto): Update.
7959 * final.c (final_start_function): Update.
7960 (profile_function): Update.
7961 (leaf_function_p): Update.
7962 (only_leaf_regs_used): Update.
7963 * df-scan.c (df_get_exit_block_use_set): Update.
7964 * dojump.c (clear_pending_stack_adjust): Update.
7965 * tree-stdarg.c (gate_optimize_stdarg): Update.
7966 * gimple-low.c (lower_function_body): Update.
7967 * global.c (compute_regsets): Update.
7968 (global_alloc): Update.
7969 * dwarf2out.c (dwarf2out_begin_prologue): Update.
7970 * expr.c (expand_assignment): Update.
7971 * dse.c (dse_step0): Update.
7972 (dse_step1): Update.
7973 * c-decl.c (store_parm_decls): Update.
7974 * local-alloc.c (combine_regs): Update.
7975 (find_free_reg): Update.
7976 * function.c (assign_parms_augmented_arg_list): Update.
7977 (assign_parm_find_data_types): Update.
7978 (assign_parms): Update.
7979 (allocate_struct_function): Update.
7980 (expand_function_start): Update.
7981 (expand_function_end): Update.
7982 (get_arg_pointer_save_area): Update.
7983 (thread_prologue_and_epilogue_insns): Update.
7984 (rest_of_match_asm_constraints): Update.
7985 * stor-layout.c (variable_size): Update.
7986 * gcse.c (gcse_main): Update.
7987 (bypass_jumps): Update.
7988 * gimplify.c (gimplify_function_tree): Update.
7989 * calls.c (emit_call_1): Update.
7990 (expand_call): Update.
7991 * bt-load.c (compute_defs_uses_and_gen): Update.
7992 * except.c (sjlj_assign_call_site_values): Update.
7993 (sjlj_emit_function_enter): Update.
7994 (can_throw_external): Update.
7995 (set_nothrow_function_flags): Update.
7996 (expand_builtin_unwind_init): Update.
7997 (expand_eh_return): Update.
7998 (convert_to_eh_region_ranges): Update.
7999 (output_function_exception_table): Update.
8000 * emit-rtl.c (gen_tmp_stack_mem): Update.
8001 * cfgexpand.c (expand_used_vars): Update.
8002 (tree_expand_cfg): Update.
8003 * cfgcleanup.c (rest_of_handle_jump): Update.
8004 * explow.c (allocate_dynamic_stack_space): Update.
8005 * varasm.c (assemble_start_function): Update.
8006 (force_const_mem): Update.
8007 (mark_constant_pool): Update.
8008 * tree-optimize.c (tree_rest_of_compilation): Update.
8009 * stack-ptr-mod.c (notice_stack_pointer_modification): Update.
8010 * tree-cfg.c (notice_special_calls): Update.
8011 (is_ctrl_altering_stmt): Update.
8012 (tree_can_make_abnormal_goto): Update.
8013 (tree_purge_dead_abnormal_call_edges): Update.
8014 * config/alpha/predicates.md: Update.
8015 * config/alpha/alpha.c (alpha_sa_mask): Update.
8016 (alpha_sa_size): Update.
8017 (alpha_does_function_need_gp): Update.
8018 (alpha_expand_prologue): Update.
8019 (alpha_start_function): Update.
8020 (alpha_output_function_end_prologue): Update.
8021 (alpha_expand_epilogue): Update.
8022 * config/frv/frv.c (frv_stack_info): Update.
8023 (frv_expand_epilogue): Update.
8024 * config/s390/s390.c (s390_regs_ever_clobbered): Update.
8025 (s390_register_info): Update.
8026 (s390_frame_info): Update.
8027 (s390_init_frame_layout): Update.
8028 (s390_can_eliminate): Update.
8029 (save_gprs): Update.
8030 * config/spu/spu.c (spu_split_immediate): Update.
8031 (need_to_save_reg): Update.
8032 (spu_expand_prologue): Update.
8033 (spu_expand_epilogue): Update.
8034 * config/sparc/sparc.md: Update.
8035 * config/sparc/sparc.c (eligible_for_return_delay): Update.
8036 (sparc_tls_got): Update.
8037 (legitimize_pic_address): Update.
8038 (sparc_emit_call_insn): Update.
8039 (sparc_expand_prologue): Update.
8040 (output_return): Update.
8041 (print_operand): Update.
8042 (sparc_function_ok_for_sibcall): Update.
8043 * config/sparc/sparc.h (EXIT_IGNORE_STACK): Update.
8044 * config/m32r/m32r.md: Update.
8045 * config/m32r/m32r.c (MUST_SAVE_RETURN_ADDR): Update.
8046 (m32r_compute_frame_size): Update.
8047 (m32r_expand_prologue): Update.
8048 (m32r_expand_epilogue): Update.
8049 (m32r_legitimize_pic_address): Update.
8050 * config/m32r/m32r.h (FRAME_POINTER_REQUIRED): Update.
8051 * config/i386/linux.h (SUBTARGET_FRAME_POINTER_REQUIRED): Update.
8052 * config/i386/i386.c (ix86_frame_pointer_required): Update.
8054 (ix86_save_reg): Update.
8055 (ix86_compute_frame_layout): Update.
8056 (ix86_expand_prologue): Update.
8057 (ix86_expand_epilogue): Update.
8058 * config/sh/sh.c (output_stack_adjust): Update.
8059 (calc_live_regs): Update.
8060 (sh5_schedule_saves): Update.
8061 (sh_expand_prologue): Update.
8062 (sh_expand_epilogue): Update.
8063 (sh_setup_incoming_varargs): Update.
8064 (sh_allocate_initial_value): Update.
8065 (sh_get_pr_initial_val): Update.
8066 * config/sh/sh.h (SHMEDIA_REGS_STACK_ADJUST): Update.
8067 * config/sh/sh.md (label:): Update.
8068 * config/avr/avr.c (out_movhi_mr_r): Update.
8069 * config/crx/crx.h (enum): Update.
8070 * config/xtensa/xtensa.h (along): Update.
8071 * config/stormy16/stormy16.c Update.
8072 (xstormy16_compute_stack_layout): Update.
8073 * config/fr30/fr30.c (MUST_SAVE_RETURN_POINTER): Update.
8074 (fr30_expand_prologue): Update.
8075 * config/cris/cris.c (cris_conditional_register_usage): Update.
8076 (cris_reg_saved_in_regsave_area): Update.
8077 (cris_initial_frame_pointer_offset): Update.
8078 (cris_simple_epilogue): Update.
8079 (cris_expand_prologue): Update.
8080 (cris_expand_epilogue): Update.
8081 (cris_expand_pic_call_address): Update.
8082 (cris_asm_output_symbol_ref): Update.
8083 (cris_asm_output_label_ref): Update.
8084 * config/cris/cris.md Update.
8085 * config/iq2000/iq2000.c (compute_frame_size): Update.
8086 (iq2000_expand_epilogue): Update.
8087 * config/mt/mt.h (save_direction): Update.
8088 * config/mn10300/mn10300.c (mn10300_function_value): Update.
8089 * config/ia64/ia64.c (ia64_compute_frame_size): Update.
8090 (ia64_secondary_reload_class): Update.
8091 * config/m68k/m68k.c (m68k_save_reg): Update.
8092 (m68k_expand_prologue): Update.
8093 (m68k_expand_epilogue): Update.
8094 (legitimize_pic_address): Update.
8095 * config/rs6000/rs6000.c (rs6000_got_register): Update.
8096 (first_reg_to_save): Update.
8097 (first_altivec_reg_to_save): Update.
8098 (compute_vrsave_mask): Update.
8099 (compute_save_world_info): Update.
8100 (rs6000_stack_info): Update.
8101 (spe_func_has_64bit_regs_p): Update.
8102 (rs6000_ra_ever_killed): Update.
8103 (rs6000_emit_eh_reg_restore): Update.
8104 (rs6000_emit_allocate_stack): Update.
8105 (rs6000_emit_prologue): Update.
8106 (rs6000_emit_epilogue): Update.
8107 (rs6000_output_function_epilogue): Update.
8108 (output_profile_hook): Update.
8109 (rs6000_elf_declare_function_name): Update.
8110 * config/rs6000/rs6000.h (rs6000_args): Update.
8111 * config/rs6000/rs6000.md: Update.
8112 * config/mcore/mcore.c (mcore_expand_prolog): Update.
8113 * config/arc/arc.c (arc_output_function_epilogue): Update.
8114 * config/arc/arc.h (FRAME_POINTER_REQUIRED): Update.
8115 * config/darwin.c (machopic_function_base_name): Update.
8116 * config/score/score3.c (score3_compute_frame_size): Update.
8119 (score3_epilogue): Update.
8120 * config/score/score7.c (score7_compute_frame_size): Update.
8121 (score7_prologue): Update.
8122 (score7_epilogue): Update.
8123 * config/score/score.h (FRAME_POINTER_REQUIRED): Update.
8124 * config/arm/linux-elf.h (SUBTARGET_FRAME_POINTER_REQUIRED): Update.
8125 * config/arm/arm.c (use_return_insn): Update.
8126 (require_pic_register): Update.
8127 (arm_load_pic_register): Update.
8128 (arm_compute_save_reg0_reg12_mask): Update.
8129 (arm_compute_save_reg_mask): Update.
8130 (thumb1_compute_save_reg_mask): Update.
8131 (output_return_instruction): Update.
8132 (arm_output_function_prologue): Update.
8133 (arm_output_epilogue): Update.
8134 (arm_get_frame_offsets): Update.
8135 (arm_expand_prologue): Update.
8136 (thumb_pushpop): Update.
8137 (thumb_exit): Update.
8138 (thumb1_expand_prologue): Update.
8139 (thumb1_expand_epilogue): Update.
8140 (arm_unwind_emit): Update.
8141 (arm_output_fn_unwind): Update.
8142 * config/arm/arm.h (FRAME_POINTER_REQUIRED): Update.
8143 * config/arm/arm.md: Update.
8144 * config/pa/pa.md: Update.
8145 * config/pa/pa.c (legitimize_pic_address): Update.
8146 (compute_frame_size): Update.
8147 (hppa_expand_prologue): Update.
8148 (hppa_expand_epilogue): Update.
8149 (borx_reg_operand): Update.
8150 * config/pa/pa.h (FRAME_POINTER_REQUIRED): Update.
8151 (HARD_REGNO_RENAME_OK): Update.
8152 * config/mips/mips.c (mips_global_pointer): Update.
8153 (mips_save_reg_p): Update.
8154 (mips_compute_frame_info): Update.
8155 (mips_frame_pointer_required): Update.
8156 (mips_expand_prologue): Update.
8157 (mips_expand_epilogue): Update.
8158 (mips_can_use_return_insn): Update.
8159 (mips_reorg_process_insns): Update.
8160 * config/v850/v850.c (compute_register_save_size): Update.
8161 * config/mmix/mmix.h (FRAME_POINTER_REQUIRED): Update.
8162 * config/mmix/mmix.c (along): Update.
8163 (mmix_expand_epilogue): Update.
8164 * config/bfin/bfin.c (legitimize_pic_address): Update.
8165 (must_save_p): Update.
8166 (stack_frame_needed_p): Update.
8167 (add_to_reg): Update.
8168 (bfin_expand_prologue): Update.
8169 * stmt.c (expand_asm_operands): Update.
8170 * reload1.c (reload): Update.
8171 (init_elim_table): Update.
8173 2008-04-25 Bob Wilson <bob.wilson@acm.org>
8175 * optabs.c (expand_float): Fix REG_EQUAL for UNSIGNED_FLOAT libcall.
8177 2008-04-25 H.J. Lu <hongjiu.lu@intel.com>
8179 * config/i386/sse.md (mov<mode>): Replace SSEMODEI with SSEMODE.
8180 (*mov<mode>_internal): Likewise. Support V4SF and V2DF.
8181 (mov<mode>): Removed.
8182 (*movv4sf_internal): Likewise.
8183 (*movv2df_internal): Likewise.
8185 2008-04-25 Pompapathi V Gadad <Pompapathi.V.Gadad@nsc.com>
8187 * config.gcc (crx-*-elf): Remove deprecation.
8189 2008-04-25 Danny Smith <dannysmith@users.sourceforge.net>
8191 * config/i386/cygming-crtend.c (register_frame_ctor): Register
8192 __gcc_deregister_frame with atexit.
8193 (deregister_frame_dtor): Remove.
8195 2008-04-24 Nathan Froyd <froydnj@codesourcery.com>
8196 Nathan Sidwell <nathan@codesourcery.com>
8198 * config/rs6000/rs6000.opt (mspe): Remove Var property.
8200 * config/rs6000/rs6000.h (rs6000_spe): Declare.
8201 (rs6000_isel): Likewise.
8202 * config/rs6000/rs6000.c (rs6000_spe): New variable.
8203 (rs6000_isel): New variable.
8204 (rs6000_handle_option): Handle OPT_mspe and OPT_misel.
8206 2008-04-24 Jakub Jelinek <jakub@redhat.com>
8209 * c-common.c (handle_vector_size_attribute): Call
8210 lang_hooks.types.reconstruct_complex_type instead of
8211 reconstruct_complex_type.
8212 * config/rs6000/rs6000.c (rs6000_handle_altivec_attribute): Likewise.
8213 * config/spu/spu.c (spu_handle_vector_attribute): Likewise.
8214 * langhooks.h (struct lang_hooks_for_types): Add
8215 reconstruct_complex_type hook.
8216 * langhooks-def.h (LANG_HOOKS_RECONSTRUCT_COMPLEX_TYPE): Define.
8217 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add it.
8219 2008-04-24 Richard Guenther <rguenther@suse.de>
8221 * c-common.h (check_builtin_function_arguments): Declare.
8222 * c-common.c (validate_nargs): New function.
8223 (check_builtin_function_arguments): Likewise.
8224 * c-typeck.c (build_function_call): Call
8225 check_builtin_function_arguments.
8226 * builtins.c (fold_builtin_classify): Remove error reporting code.
8227 (fold_builtin_unordered_cmp): Likewise.
8228 (fold_builtin_1): Likewise.
8229 (fold_builtin_n): Likewise.
8231 2008-04-24 Jakub Jelinek <jakub@redhat.com>
8233 PR tree-optimization/36008
8234 * fold-const.c (try_move_mult_to_index): If s == NULL, divide
8235 the original op1, rather than delta by step.
8237 2008-04-22 Antoniu Pop <antoniu.pop@gmail.com>
8238 Sebastian Pop <sebastian.pop@amd.com>
8240 * tree-parloops.c (take_address_of, eliminate_local_variables_1,
8241 eliminate_local_variables_stmt, eliminate_local_variables,
8242 separate_decls_in_loop_name, separate_decls_in_loop_stmt,
8243 separate_decls_in_loop, gen_parallel_loop): Make them work on a region
8244 of code delimited by two edges in the CFG.
8245 (separate_decls_in_loop_name): Renamed separate_decls_in_region_name.
8246 (separate_decls_in_loop_stmt): Renamed separate_decls_in_region_stmt.
8247 (separate_decls_in_loop): Renamed separate_decls_in_region. Isolate
8248 the case of parallelisation of reductions.
8249 (expr_invariant_in_region_p): New.
8251 * tree-flow.h (gather_blocks_in_sese_region): Declared.
8252 * tree-cfg.c (gather_blocks_in_sese_region): Extern.
8254 2008-04-24 Ira Rosen <irar@il.ibm.com>
8255 Richard Guenther <rguenther@suse.de>
8257 PR tree-optimization/36034
8258 * tree-vect-analyze.c (vect_analyze_group_access): SLP is
8259 incapable of dealing with loads with gaps.
8261 2008-04-24 Rafael Espindola <espindola@google.com>
8263 * tree-flow.h (vrp_evaluate_conditional): Change signature.
8264 * tree-ssa-propagate.c (fold_predicate_in): Update call to
8265 vrp_evaluate_conditional.
8266 * tree-vrp.c (vrp_evaluate_conditional_warnv): Remove.
8267 (vrp_evaluate_conditional): Split the cond argument.
8268 (vrp_visit_cond_stmt): Use vrp_evaluate_conditional_warnv_with_ops.
8269 (simplify_stmt_for_jump_threading): Update call to
8270 vrp_evaluate_conditional.
8272 2008-04-24 Ira Rosen <irar@il.ibm.com>
8274 PR tree-optimization/35982
8275 * tree-vect-analyze.c (vect_check_interleaving): Check that the
8276 interleaved data-refs are of the same type.
8278 2008-04-24 Danny Smith <dannysmith@users.net>
8280 * c-format.c (check_format_info_main): Use strncmp rather than a
8281 magic prefix to handle multichar length specs.
8282 * config/i386/msformat-c.c (format_length_info ms_printf_length_specs):
8283 Don't prefix "I64" and "I32" with '\0'.
8285 2008-04-24 Jakub Jelinek <jakub@redhat.com>
8288 * config/i386/i386.c (init_cumulative_args): Don't pass anything
8289 in registers for -m32 only if stdarg_p (fntype).
8291 2008-04-24 Uros Bizjak <ubizjak@gmail.com>
8293 PR rtl-optimization/36006
8294 * expmed.c (store_fixed_bit_field): Copy op0 rtx before moving
8295 temp to op0 in order to avoid invalid rtx sharing.
8297 2008-04-23 Paolo Bonzini <bonzini@gnu.org>
8299 * tree-cfg.c (verify_expr): Check with is_gimple_address. Don't
8300 check TREE_INVARIANT.
8301 * tree-gimple.c (is_gimple_address): New.
8302 (is_gimple_invariant_address): Simplify using decl_address_invariant_p.
8303 * tree-gimple.h (is_gimple_address): New.
8304 * tree.h (decl_address_invariant_p): New.
8305 * tree.c (make_node_stat): Don't set TREE_INVARIANT.
8306 (build_string): Likewise.
8307 (decl_address_invariant_p): New, from is_gimple_invariant_address.
8308 (tree_invariant_p_1): Likewise.
8309 (save_expr): Use it.
8310 (tree_invariant_p): New.
8311 (skip_simple_arithmetic): Use it.
8312 (stabilize_reference_1): Use it.
8313 (recompute_tree_invariant_for_addr_expr): Don't update TREE_INVARIANT,
8315 (build1_stat): Drop code to compute TREE_INVARIANT.
8316 (build2_stat): Drop code to compute TREE_INVARIANT.
8317 (build3_stat): Drop code to compute TREE_INVARIANT.
8318 (build4_stat): Drop code to compute TREE_INVARIANT.
8319 (build5_stat): Drop code to compute TREE_INVARIANT.
8320 (build7_stat): Drop code to compute TREE_INVARIANT.
8321 (merge_dllimport_decl_attributes): Don't mention TREE_INVARIANT.
8322 * tree.h (struct tree_base): Remove invariant_flag.
8323 (TREE_INVARIANT): Remove.
8324 * builtins.c (build_string_literal): Don't set TREE_INVARIANT.
8325 (fold_builtin_expect): Check TREE_CONSTANT.
8326 * tree-ssa-ccp.c (fold_stmt_r): Adjust comment.
8327 * c-tree.h (c_expr_to_decl): Drop third parameter.
8328 * c-typeck.c (build_external_ref): Don't set TREE_INVARIANT.
8329 (build_c_cast): Don't set TREE_INVARIANT.
8330 (pop_init_level): Don't set TREE_INVARIANT.
8331 (c_objc_common_truthvalue_conversion): Don't set TREE_INVARIANT.
8332 * gimplify.c (gimplify_init_ctor_preeval): Add assertion, test
8334 (gimplify_init_constructor): Don't set TREE_INVARIANT.
8335 (gimplify_addr_expr): Adjust comment.
8336 * tree-mudflap.c (mf_build_string):
8337 * print-tree.c (print_node): Don't print TREE_INVARIANT.
8338 * tree-nested.c (convert_nonlocal_reference): Adjust comment.
8339 * c-common.c (fix_string_type): Don't set TREE_INVARIANT.
8340 * langhooks-def.h (lhd_expr_to_decl): Drop third parameter.
8341 * langhooks.c (lhd_expr_to_decl): Drop third parameter.
8342 * langhooks.h (struct lang_hooks): Drop third parameter from
8345 2008-04-23 Richard Guenther <rguenther@suse.de>
8347 PR tree-optimization/27799
8348 PR tree-optimization/32921
8349 PR tree-optimization/32624
8350 * tree-ssa-structalias.c (merge_smts_into): Only merge the
8351 SMTs aliases and the tag itself into the solution.
8352 * tree-ssa-alias.c (compute_flow_sensitive_aliasing): Do not
8353 merge the points-to solution back into the SMT aliases.
8354 (may_alias_p): Use alias_set_subset_of instead of
8355 aliases_conflict_p. A pointer which points to
8356 memory with alias set zero may access any variable.
8358 2008-04-23 Richard Guenther <rguenther@suse.de>
8360 * alias.c (alias_set_subset_of): Correctly handle asking
8361 if zero is a subset of an alias set with zero child.
8362 * tree-ssa-alias.c (have_common_aliases_p): Simplify logic.
8363 (compute_flow_insensitive_aliasing): Correctly walk all
8364 pointers. Do not unnecessarily union sets.
8366 2008-04-23 Richard Guenther <rguenther@suse.de>
8369 * c-common.c (handle_alloc_size_attribute): Use type_num_arguments.
8371 2008-04-22 Tomas Bily <tbily@suse.cz>
8373 * tree-cfg.c (verify_expr): Check for NON_LVALUE_EXPR as
8375 * tree-vrp.c (extract_range_from_unary_expr): Removed unused
8377 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
8378 * tree-ssa-structalias.c (get_constraint_for): Likewise.
8379 * tree-inline.c (estimate_num_insns_1): Likewise.
8380 * varasm.c (const_hash_1, compare_constant, copy_constant)
8381 (compute_reloc_for_constant, output_addressed_constants): Likewise.
8382 * emit-rtl.c (component_ref_for_mem_expr)
8383 (set_mem_attributes_minus_bitpos): Likewise.
8384 * expr.c (highest_pow2_factor, expand_expr_real_1, )
8385 (is_aligning_offset): Likewise.
8386 * dwarf2out.c (loc_descriptor_from_tree_1, add_bound_info): Likewise.
8387 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Likewise.
8388 * dojump.c (do_jump): Likewise.
8389 * builtins.c (get_pointer_alignment, get_memory_rtx)
8390 (integer_valued_real_p, fold_builtin_next_arg): Likewise.
8391 * tree-scalar-evolution.c (instantiate_parameters_1): Likewise.
8393 2008-04-23 Jakub Jelinek <jakub@redhat.com>
8395 PR rtl-optimization/36017
8396 * builtins.c (expand_errno_check): Clear CALL_EXPR_TAILCALL before
8397 expanding the library call.
8399 2008-04-22 Ian Lance Taylor <iant@google.com>
8401 * fold-const.c (pointer_may_wrap_p): Call int_size_in_bytes rather
8404 2008-04-22 Pat Haugen <pthaugen@us.ibm.com>
8406 * config/rs6000/rs6000.c (rs6000_register_move_cost): Increase cost
8407 of LR/CTR moves for Power6.
8409 2008-04-22 Kenneth Zadeck <zadeck@naturalbridge.com>
8412 * passes.c (init_optimization_passes): Remove
8413 pass_fast_rtl_byte_dce.
8415 2008-04-22 Uros Bizjak <ubizjak@gmail.com>
8418 * config/i386/xmmintrin.h (_mm_cvtpi16_ps): Rearrange calls to
8419 builtin functions to generate faster code.
8420 (_mm_cvtpu16_ps): Ditto.
8421 (_mm_cvtpi32x2_ps): Ditto.
8423 2008-04-22 Nick Clifton <nickc@redhat.com>
8425 * common.opt (ftree-loop-distribution): Add Optimization
8428 * config/frv/frv.c (frv_stack_info): Use crtl instead of cfun.
8429 (frv_expand_builtin_va_start): Likewise.
8431 * config/arm/arm.c (thumb_find_work_register): Fix location of
8432 argument register count.
8434 2008-04-22 Maxim Kuvyrkov <maxim@codesourcery.com>
8436 Support scheduling for ColdFire V1 and V3 microarchitecture.
8437 Improve scheduling of multiplication instructions.
8439 * config/m68k/m68k.md (cpu): Add cfv1 and cfv3. Rename cf_v2 to cfv1.
8440 (mac): New instruction attribute.
8441 * config/m68k/m68k.c (override_options): Handle cfv1, cfv3 and mac.
8442 (m68k_sched_mac): New variable.
8443 (m68k_sched_attr_type2, m68k_sched_md_init_global): Update.
8444 Handle cfv1 and cfv3.
8445 (max_insn_size): New static variable.
8446 (struct _sched_ib): New type.
8447 (sched_ib): New static variable.
8448 (sched_ib_size, sched_ib_filled, sched_ib_insn): Convert variables
8449 to fields of 'struct _sched_ib sched_ib'. Update all uses.
8450 (m68k_sched_variable_issue): Add modeling of cfv3 instruction buffer.
8452 (m68k_sched_md_init_global, m68k_sched_md_finish_global,
8453 m68k_sched_md_init, m68k_sched_md_finish): Handle cfv1 and cfv3. Init
8454 new variables. Update.
8455 (m68k_sched_dfa_pre_advance_cycle, m68k_sched_dfa_post_advance_cycle):
8456 Add modeling of cfv3 instruction buffer. Update.
8457 * config/m68k/m68k-protos.h (m68k_sched_mac): Declare.
8458 * config/m68k/m68k.h (TUNE_CFV3): New macro.
8459 * config/m68k/cf.md: Change substrings 'cf_v2' to 'cfv12' or 'cfv123'.
8460 (cf_* reservations): Rename to cfv12 or cfv123 to indicate cores
8461 a particular reservation applies to.
8462 (type2): Reorganize attribute values. Rename alu to alu_reg,
8463 alu_l to alu, move_l to omove. Join move to alu. Split mul
8465 (cf_ib_*): Simplify description of instruction buffer.
8466 (cf_ib_w0, cf_ib_w4, cf_ib_w5, cf_ib_w6): Remove.
8467 (cf_mem): Split into cf_mem1 and cf_mem2.
8468 (cf_v2_move_??): Rename to cfv12_alu_??.
8469 (cf_v2_move_l_??): Rename to cfv12_omove_??.
8470 (cf_v2_mul_??): Remove reservations.
8471 (cfv12_mul_l_??, cfv12_mul_w_??, cfv12_mac_w_??, cfv12_mac_l_??,
8472 cfv12_emac_??, cfv12_emac_w_i0): New reservations.
8473 (cfv12_rts, cfv12_call, cfv12_bcc, cfv12_bra, cfv12_jmp): Move to
8475 (cfv3_alu_10, cfv3_omove_10, cfv3_alu_i0, cfv3_omove_i0, cfv3_alu_01,
8476 cfv3_alu_0i, cfv3_alu_11, cfv3_omove_11, cfv3_alu_i1, cfv3_omove_i1,
8477 cfv3_alu_1i, cfv3_omove_1i, cfv3_pea_11, cfv3_pea_i1, cfv3_mul_w_10,
8478 cfv3_mul_l_10, cfv3_mul_w_i0, cfv3_mac_w_10, cfv3_mac_l_10,
8479 cfv3_mac_w_i0, cfv3_emac_10, cfv3_emac_w_i0, cfv3_rts, cfv3_call,
8480 cfv3_bcc, cfv3_bra, cfv3_jmp): New reservations.
8481 (cfv3_*_1, cfv3_*_2, cfv3_*_3): New instruction reservations that are
8482 expansions of the above reservations for instructions of sizes
8485 2008-04-22 Maxim Kuvyrkov <maxim@codesourcery.com>
8487 * rtl-factoring.c (collect_patterns_seqs): Handle CC0 targets.
8489 2008-04-21 Adam Nemet <anemet@caviumnetworks.com>
8491 * coverage.c: Include tree-pass.h.
8492 (coverage_counter_alloc): Print da_file_name to the dump file.
8494 2008-04-21 Kenneth Zadeck <zadeck@naturalbridge.com>
8496 * sbitmap.c (sbitmap_range_empty_p): New function.
8497 * sbitmap.h (sbitmap_range_empty_p): New function.
8498 * bitmap.h: Now includes obstack.h.
8500 2008-04-21 Richard Sandiford <rsandifo@nildram.co.uk>
8501 Kenneth Zadeck <zadeck@naturalbridge.com>
8503 * dbgcnt.def (ra_byte_scan): Added.
8504 * dbgcnt.c (dbg_cnt): Added code to print message to dump_file
8505 when the last hit happens for a counter.
8506 * timevar.def (TV_DF_BYTE_LR): New variable.
8507 * tree-pass.h (pass_fast_rtl_byte_dce): New pass.
8508 * passes.c (pass_fast_rtl_byte_dce): New pass.
8509 * fwprop.c (update_df): Added mode to call df_ref_create.
8510 Renamed DF_REF_WIDTH and DF_REF_OFFSET to DF_REF_EXTRACT_WIDTH and
8511 DF_REF_EXTRACT_OFFSET.
8512 * df.h (DF_BYTE_LR, DF_BYTE_LR_BB_INFO, DF_BYTE_LR_IN,
8513 DF_BYTE_LR_OUT, df_byte_lr): New macro.
8515 (df_ref_extract): Added mode field.
8516 (DF_REF_WIDTH, DF_REF_OFFSET) Renamed to DF_REF_EXTRACT_WIDTH and
8517 DF_REF_EXTRACT_OFFSET.
8518 (DF_REF_EXTRACT_MODE): New macro.
8519 (df_byte_lr_bb_info): New structure.
8520 (df_print_byte_regset, df_compute_accessed_bytes,
8521 df_byte_lr_add_problem, df_byte_lr_get_regno_start,
8522 df_byte_lr_get_regno_len, df_byte_lr_simulate_defs,
8523 df_byte_lr_simulate_uses,
8524 df_byte_lr_simulate_artificial_refs_at_top,
8525 df_byte_lr_simulate_artificial_refs_at_end,
8526 df_compute_accessed_bytes): New function.
8527 (df_ref_create): Add parameter.
8528 (df_byte_lr_get_bb_info): New inline function.
8529 * df-scan.c (df_ref_record, df_uses_record,
8530 df_ref_create_structure): Added mode parameter.
8531 (df_ref_create, df_notes_rescan, df_ref_record, df_def_record_1,
8532 df_defs_record, df_uses_record, df_get_conditional_uses,
8533 df_get_call_refs, df_insn_refs_collect, df_bb_refs_collect,
8534 df_entry_block_defs_collect, df_exit_block_uses_collect):
8535 Added mode parameter to calls to df_ref_record, df_uses_record,
8536 df_ref_create_structure.
8537 (df_ref_equal_p, df_ref_compare): Added test for modes.
8538 (df_ref_create_structure): Added code to set mode. Renamed
8539 DF_REF_WIDTH and DF_REF_OFFSET to DF_REF_EXTRACT_WIDTH and
8540 DF_REF_EXTRACT_OFFSET.
8541 * df-core.c (df_print_byte_regset): New function.
8542 * df-byte-scan.c: New file.
8543 * df-problems.c (df_rd_transfer_function): Removed unnecessary
8544 calls to BITMAP_FREE.
8545 (df_byte_lr_problem_data, df_problem problem_BYTE_LR): New structure.
8546 (df_byte_lr_get_regno_start, df_byte_lr_get_regno_len,
8547 df_byte_lr_set_bb_info, df_byte_lr_free_bb_info,
8548 df_byte_lr_check_regs, df_byte_lr_expand_bitmap,
8549 df_byte_lr_alloc, df_byte_lr_reset, df_byte_lr_bb_local_compute,
8550 df_byte_lr_local_compute, df_byte_lr_init,
8551 df_byte_lr_confluence_0, df_byte_lr_confluence_n,
8552 df_byte_lr_transfer_function, df_byte_lr_free,
8553 df_byte_lr_top_dump, df_byte_lr_bottom_dump,
8554 df_byte_lr_add_problem, df_byte_lr_simulate_defs,
8555 df_byte_lr_simulate_uses,
8556 df_byte_lr_simulate_artificial_refs_at_top,
8557 df_byte_lr_simulate_artificial_refs_at_end): New function.
8558 * dce.c (byte_dce_process_block): New function.
8559 (dce_process_block): au is now passed in rather than computed
8560 locally. Changed loops that look at artificial defs to not look
8561 for conditional or partial ones, because there never are any.
8562 (fast_dce): Now is able to drive byte_dce_process_block or
8563 dce_process_block depending on the kind of dce being done.
8564 (rest_of_handle_fast_dce): Add parameter to fast_dce.
8565 (rest_of_handle_fast_byte_dce): New function.
8566 (rtl_opt_pass pass_fast_rtl_byte_dce): New pass.
8567 * Makefile.in (df-byte-scan.o, debugcnt.o): Added dependencies.
8569 2008-04-21 Daniel Franke <franke.daniel@gmail.com>
8572 * gcc.h: Added fortran options that take arguments to
8573 DEFAULT_SWITCH_TAKES_ARG and DEFAULT_WORD_SWITCH_TAKES_ARG
8576 2008-04-20 Eric Botcazou <ebotcazou@adacore.com>
8578 * tree-sra.c (sra_walk_expr) <VIEW_CONVERT_EXPR>: Disable
8579 scalarization if on the LHS and not a full access.
8581 2008-04-20 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8583 * Makefile.in (s-gtyp-input): Remove tmp-gi.list before writing it.
8585 2008-04-18 Rafael Espindola <espindola@google.com>
8587 * tree-vrp.c (find_case_label_index): Fix the binary search.
8588 (find_case_label_range): New.
8589 (vrp_visit_switch_stmt): Use find_case_label_range.
8590 (simplify_switch_using_ranges): Use find_case_label_range.
8592 2008-04-18 Eric Botcazou <ebotcazou@adacore.com>
8594 * gimplify.c (gimplify_modify_expr_rhs) <COND_EXPR>: Gimplify the LHS
8595 using the is_gimple_lvalue predicate instead of is_gimple_min_lval.
8597 2008-04-18 Tom Tromey <tromey@redhat.com>
8600 * doc/cpp.texi (Implementation-defined behavior): Mention
8603 2008-04-18 Ian Lance Taylor <iant@google.com>
8605 * fold-const.c (pointer_may_wrap_p): New static function.
8606 (fold_comparison): Add another test for pointer overflow. Use
8607 pointer_may_wrap_p to disable some false positives.
8609 2008-04-18 Kris Van Hees <kris.van.hees@oracle.com>
8611 * c-common.c (CHAR16_TYPE, CHAR32_TYPE): New macros.
8612 (fname_as_string): Match updated cpp_interpret_string prototype.
8613 (fix_string_type): Support char16_t* and char32_t*.
8614 (c_common_nodes_and_builtins): Add char16_t and char32_t (and
8615 derivative) nodes. Register as builtin if C++0x.
8616 (c_parse_error): Support CPP_CHAR{16,32}.
8617 * c-common.h (RID_CHAR16, RID_CHAR32): New elements.
8618 (enum c_tree_index) <CTI_CHAR16_TYPE, CTI_SIGNED_CHAR16_TYPE,
8619 CTI_UNSIGNED_CHAR16_TYPE, CTI_CHAR32_TYPE, CTI_SIGNED_CHAR32_TYPE,
8620 CTI_UNSIGNED_CHAR32_TYPE, CTI_CHAR16_ARRAY_TYPE,
8621 CTI_CHAR32_ARRAY_TYPE>: New elements.
8622 (char16_type_node, signed_char16_type_node, unsigned_char16_type_node,
8623 char32_type_node, signed_char32_type_node, char16_array_type_node,
8624 char32_array_type_node): New defines.
8625 * c-lex.c (cb_ident): Match updated cpp_interpret_string prototype.
8626 (c_lex_with_flags): Support CPP_CHAR{16,32} and CPP_STRING{16,32}.
8627 (lex_string): Support CPP_STRING{16,32}, match updated
8628 cpp_interpret_string and cpp_interpret_string_notranslate prototypes.
8629 (lex_charconst): Support CPP_CHAR{16,32}.
8630 * c-parser.c (c_parser_postfix_expression): Support CPP_CHAR{16,32}
8631 and CPP_STRING{16,32}.
8633 2008-04-18 Paolo Bonzini <bonzini@gnu.org>
8636 * aclocal.m4: Regenerate.
8637 * configure: Regenerate.
8639 2008-04-18 Jan Hubicka <jh@suse.cz>
8641 * except.c (dw2_size_of_call_site_table,
8642 sjlj_size_of_call_site_table): Use vector API for call_site_record.
8644 * cgraphbuild.c (build_cgraph_edges): Update.
8645 * tree-pass.h: Update comment.
8646 * final.c (leaf_function_p): Update.
8647 (leaf_renumber_regs): Update.
8648 (rest_of_clean_state): Update.
8649 * omp-low.c (expand_omp_parallel): Update.
8650 * ipa-reference.c (analyze_function): Update.
8651 * reorg.c (find_end_label): Update.
8652 (optimize_skip): Update.
8653 (fill_simple_delay_slots): Update.
8654 (fill_simple_delay_slots): Update.
8655 (make_return_insns): Update.
8656 (dbr_schedule): Update.
8657 * gimple-low.c (record_vars_into): Update.
8658 * cfgbuild.c (make_edges): Update.
8659 * function.c (assign_stack_local): Update.
8660 (assign_parm_adjust_stack_rtl): Update.
8661 (locate_and_pad_parm): Update.
8662 (allocate_struct_function): Do not initialize stack_alignment_needed
8663 and preferred_stack_boundary here.
8664 (stack_protect_prologue): Update.
8665 (stack_protect_epilogue): Update.
8666 (expand_function_start): Initialize stack_alignment_needed,
8667 preferred_stack_boundary and max_jumptable_ents.
8668 (expand_function_end): Update.
8669 (free_after_compilation): Do not NULLify epilogue_delay_list.
8670 * function.h (struct rtl_data): Add stack_protect_guard,
8671 stack_alignment_needed,
8672 preferred_stack_boundary, epilogue_delay_list.
8673 (struct function): Remove value_histograms, stack_alignment_needed,
8674 preferred_stack_boundary, epilogue_delay_list, max_jumptable_ents,
8676 unexpanded_var_list, stack_protect_guard.
8677 (current_function_epilogue_delay_list): Remove.
8678 * ipa-type-escape.c (analyze_function): Update.
8679 * gimplify.c (pop_gimplify_context): Update comment.
8680 * calls.c (expand_call): Update.
8681 (emit_library_call_value_1): Update.
8682 * except.c (set_nothrow_function_flags): Update.
8683 * cfgexpand.c (get_decl_align_unit): Update.
8684 (create_stack_guard): Update.
8685 (estimated_stack_frame_size): Update.
8686 (expand_used_vars): Update.
8687 (tree_expand_cfg): Free histogram earliers, init expansion variables.
8688 * explow.c (allocate_dynamic_stack_space): Update.
8689 * tree-ssa-live.c (remove_unused_locals): Update.
8690 * varasm.c (mark_constant_pool): Update.
8691 * tree-inline.c (remap_decls): Update.
8692 (initialize_cfun): Update.
8693 (declare_return_variable): Update.
8694 (inline_forbidden_p): Update.
8695 (expand_call_inline): Update.
8696 (declare_inline_vars): Update.
8697 (tree_function_versioning): Update.
8698 * tree-flow.h (value_histograms): New.
8699 (VALUE_HISTOGRAMS): New macro.
8700 * basic-block.h (control_flow_graph): Add max_jumptable_ents,
8702 * tree-cfg.c (set_bb_for_stmt): Update.
8703 (replace_by_duplicate_decl): Update.
8704 (move_block_to_fn): Update.
8705 (new_label_mapper): Update.
8706 (dump_function_to_file): Update.
8707 * ipa-struct-reorg.c (build_data_structure): Update.
8708 * cfgrtl.c (print_rtl_with_bb): Update.
8709 * reload1.c (reload): Update.
8711 * config/i386/i386.c (setup_incoming_varargs_64,
8712 ix86_compute_frame_layout): Update.
8713 * config/arc/arc.c (arc_output_function_epilogue): Update.
8715 2008-04-18 Marius Strobl <marius@FreeBSD.org>
8717 * gthr-posix.h (__gthread_active_p): Use the Solaris implementation
8718 for FreeBSD as well.
8719 * gthr-posix95.h: Likewise.
8721 2008-04-17 Richard Sandiford <rsandifo@nildram.co.uk>
8723 PR rtl-optimization/35838
8724 * dse.c (find_shift_sequence): Use subreg_lowpart_offset to work
8725 out the byte offset of the first subreg.
8727 2008-04-17 Uros Bizjak <ubizjak@gmail.com>
8729 * config/i386/i386.md (addti3 splitter): Pass arrays of 3 operands
8730 to split_ti instead of three separate calls with single member arrays.
8731 (subti3 splitter): Ditto.
8732 (adddi3 splitter): Ditto with split_di.
8733 (subdi3 splitter): Ditto.
8734 (negti2 splitter): Pass arrays of 2 operands to split_ti instead of
8735 two separate calls with single member arrays. Swap match_dup
8736 operands 1 and 2 to better fit into the array.
8737 (negdi2 splitter): Ditto with split_di.
8738 (movdfcc splitter): Pass arrays of 2 operands to split_di instead of
8739 two separate calls with single member arrays. Swap match_dup operands
8740 6 and 7 to better fit into the array.
8742 2008-04-17 H.J. Lu <hongjiu.lu@intel.com>
8744 * config/i386/i386.c (sse_builtin_type): New.
8745 (bdesc_sse_args): Likewise.
8746 (bdesc_sse_3arg): Removed.
8747 (bdesc_2arg): Remove IX86_BUILTIN_AESKEYGENASSIST128.
8748 (bdesc_1arg): Remove IX86_BUILTIN_ROUNDPD and
8749 IX86_BUILTIN_ROUNDPS.
8750 (ix86_init_mmx_sse_builtins): Handle bdesc_sse_args. Remove
8751 bdesc_sse_3arg. Remove IX86_BUILTIN_ROUNDPD and
8752 IX86_BUILTIN_ROUNDPS.
8753 (ix86_expand_sse_4_operands_builtin): Removed.
8754 (ix86_expand_sse_operands_builtin): New.
8755 (ix86_expand_unop_builtin): Remove CODE_FOR_sse4_1_roundpd
8756 and CODE_FOR_sse4_1_roundps.
8757 (ix86_expand_builtin): Remove IX86_BUILTIN_AESKEYGENASSIST128.
8758 Handle bdesc_sse_args. Remove bdesc_sse_3arg.
8760 2008-04-17 Alan Modra <amodra@bigpond.net.au>
8763 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Restore vr and vrsave
8764 regs before frame pop when needed. If use_backchain_to_restore_sp
8765 then load backchain into a temp reg to restore vr and vrsave. Add
8766 code to restore vr after frame pop if possible.
8768 2008-04-17 Richard Guenther <rguenther@suse.de>
8770 * tree-vn.c (expressions_equal_p): Do not check type
8771 equality or compatibility before calling operand_equal_p.
8772 * fold-const.c (operand_equal_p): Check equivalence of
8773 integer constants before bailing out due to signedness or
8774 precision differences.
8775 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Ignore
8776 spurious differences in type qualification. Ignore types
8777 for COMPONENT_REFs at all.
8779 2008-04-17 Christian Bruel <christian.bruel@st.com>
8781 * config/sh/sh.c (expand_cbranchdi4): Use original operands for
8782 msw_skip comparison.
8784 2008-04-16 Jakub Jelinek <jakub@redhat.com>
8787 * tree-nrv.c (tree_nrv): Don't optimize if result_type is GIMPLE
8790 PR tree-optimization/35899
8791 * tree-inline.c (expand_call_inline): Use GIMPLE_STMT_OPERAND
8792 rather than TREE_OPERAND.
8794 2008-04-16 Uros Bizjak <ubizjak@gmail.com>
8797 * config/i386/i386.md (fmodxf3): Copy operand 1 and operand 2 into
8798 temporary registers. Change operand predicate to general_operand.
8799 (remainderxf3): Ditto.
8801 2008-04-16 Richard Guenther <rguenther@suse.de>
8803 * Makefile.in (tree-affine.o): Add $(FLAGS_H) dependency.
8804 * tree-affine.c (aff_combination_expand): Look through some
8807 2008-04-15 Doug Kwan <dougkwan@google.com>
8809 * dwarf2asm.c (dw2_assemble_integer): Cast to unsigned HOST_WIDE_INT
8811 * tree-pretty-print.c (dump_generic_node): Ditto.
8812 * final.c (output_addr_const): Ditto.
8813 * dwarf2out.c (output_cfi): Ditto.
8814 * c-pretty-print.c (pp_c_integer_constant): Ditto.
8815 * print-rtl.c (print_rtx): Ditto.
8816 * print-tree.c (print_node_brief, print_node): Ditto.
8817 * c-common.c (match_case_to_enum_1): Ditto.
8818 * sched-vis.c (print_value): Ditto.
8819 * config/i386/i386.c (print_operand): Cast to long unsigned int
8822 2008-04-15 Danny Smith <dannysmith@users.sourceforge.net>
8823 * libgcc2.c [L_trampoline]: Remove unnecessary prototype for
8824 MS Windows VirtualProtect function.
8826 2008-04-15 Jan Hubicka <jh@suse.cz>
8828 * gengtype.c (write_root): Param_is argument is OK.
8829 * expr.c (expand_expr_real_1): Update call of get_exception_*.
8830 * function.h: Include varray.h
8831 (rtl_eh): New stucture based on except.c one.
8832 (call_site_record): New forward declaration and vector type.
8833 * calls.c (emit_call_1): Do not call
8834 note_current_region_may_contain_throw.
8835 * except.c (eh_status): Remove cur_region, try_region since they are
8837 Move filter, exc_ptr, ttype_data, ehspec_data, action_record_data and
8838 exception_handler_label_map, ehr_stackadj, ehr_handler, ehr_label,
8839 sjlj_fc, sjlj_exit_after to rth_eh in function.h.
8840 Remove call_site_data_used, call_site_data_size.
8841 Turn call_site_record into vector in function.h.
8842 (note_current_region_may_contain_throw): Remove.
8843 (get_exception_pointer, get_exception_filter): Do not take struct
8844 function argument; update.
8845 (add_ehl_entry, find_exception_handler_labels, ehspec_filter_hash,
8846 add_ttypes_entry, add_ehspec_entry, assign_filter_values,
8847 build_post_landing_pads, dw2_build_landing_pads,
8848 sjlj_assign_call_site_values, sjlj_mark_call_sites,
8849 sjlj_emit_function_enter, sjlj_emit_function_enter,
8850 sjlj_emit_function_exit, sjlj_emit_dispatch_table,
8851 sjlj_build_landing_pads, finish_eh_generation,
8852 remove_exception_handler_label, remove_eh_handler,
8853 maybe_remove_eh_handler, add_reachable_handler,
8854 reachable_handlers, expand_builtin_eh_return, expand_eh_return,
8855 add_action_record, collect_one_action_chain, add_call_site,
8856 convert_to_eh_region_ranges, sjlj_size_of_call_site_table,
8857 sjlj_output_call_site_table, output_function_exception_table,
8858 * except.h (note_current_region_may_contain_throw): Remove
8859 (get_exception_pointer, get_exception_filter): Do not take struct
8861 * Makefile.in (GTFILES): Put varargs before struct function.
8863 2008-04-15 Eric Botcazou <ebotcazou@adacore.com>
8865 * tree-ssa-structalias.c (get_constraint_for_component_ref): Do not
8866 punt for STRING_CST.
8867 (get_constraint_for): Deal with STRING_CST here instead.
8869 2008-04-15 Richard Guenther <rguenther@suse.de>
8871 * tree-ssa-propagate.c (substitute_and_fold): Substitute
8872 statements in a basic-block with a backward walk. Do not
8873 substitute into dead statements but instead remove those.
8875 2008-04-15 Richard Guenther <rguenther@suse.de>
8877 * params.def (PARAM_MAX_FIELDS_FOR_FIELD_SENSITIVE): Set default
8878 to zero, thus disable creation of SFTs.
8880 2008-04-15 Eric Botcazou <ebotcazou@adacore.com>
8882 * tree-predcom.c (suitable_reference_p): Return false if the
8883 reference can throw.
8885 2008-04-15 Jakub Jelinek <jakub@redhat.com>
8888 * c-decl.c (finish_decl): If extern or static var has variable
8889 size, set TREE_TYPE (decl) to error_mark_node.
8891 2008-04-15 Rafael Espindola <espindola@google.com>
8893 * fold-const.c (tree_call_nonnegative_warnv_p): Remove local
8896 2008-04-15 Richard Guenther <rguenther@suse.de>
8898 * tree-ssa-sccvn.h (vn_reference_lookup): Adjust prototype.
8899 * tree-ssa-sccvn.c (vn_reference_lookup): New parameter maywalk.
8900 (visit_reference_op_load): Do walk vuse-vdef chains on
8901 vn_reference_lookup.
8902 (visit_reference_op_store): But do not here.
8903 * tree-vn.c (vn_lookup): Do not walk vuse-vdef chains on
8904 vn_reference_lookup.
8905 (vn_lookup_with_vuses): But do so here.
8907 2008-04-14 Ian Lance Taylor <iant@google.com>
8909 * fold-const.c (fold_overflow_warning): Remove assertion.
8911 2008-04-15 Ben Elliston <bje@au.ibm.com>
8913 * config/alpha/alpha.c (alpha_initialize_trampoline): Remove temp,
8914 temp1 local variables.
8916 2008-04-15 Zuxy Meng <zuxy.meng@gmail.com>
8919 * config/i386/winnt.c (i386_pe_section_type_flags): Mark
8920 ".text.unlikely" section as executable.
8922 2008-04-14 James E. Wilson <wilson@tuliptree.org>
8924 * config/ia64/ia64.c (rtx_needs_barrier): Handle
8925 UNSPEC_FR_SQRT_RECIP_APPROX_RES.
8926 * config/ia64/ia64.c (UNSPEC_FR_SQRT_RECIP_APPROX_RES): Define.
8927 (divsi3_internal, divdi3_internal_lat, divdi3_internal_thr,
8928 divsf3_internal_lat, sqrt_approx, sqrtsf2_internal_thr,
8929 divdf3_internal_lat, sqrtdf2_internal_thr, divxf3_internal_lat,
8930 divxf3_internal_thr, sqrtxf2_internal_thr, recip_approx): Use it.
8932 2008-04-14 Ian Lance Taylor <iant@google.com>
8934 * flags.h (POINTER_TYPE_OVERFLOW_UNDEFINED): Define.
8935 * fold-const.c (fold_comparison): If appropriate, test
8936 POINTER_TYPE_OVERFLOW_UNDEFINED, and issue an overflow warning.
8937 (fold_binary): Test POINTER_TYPE_OVERFLOW_UNDEFINED when
8938 reassociating a pointer type.
8939 * doc/invoke.texi (Optimize Options): Document that
8940 -fstrict-overflow applies to pointer wraparound.
8942 2008-04-13 Jan Hubicka <jh@suse.cz>
8944 * m32.c (m32c_pushm_popm): Use crtl->retrun_rtx.
8946 2008-04-12 Andrew Pinski <pinskia@gmail.com>
8948 * config/rs6000/rs6000.c (compute_save_world_info): Set lr_save_p if
8949 we are going to "save the world".
8951 2008-04-13 Hans-Peter Nilsson <hp@axis.com>
8953 * config/cris/cris.md ("*andhi_lowpart_non_v32", "*andhi_lowpart_v32")
8954 ("*andqi_lowpart_non_v32", "*andqi_lowpart_v32"): Use "+" for the
8955 operand 0 constraint, not "=".
8957 2008-04-11 James E. Wilson <wilson@tuliptree.org>
8959 * system.h: Change ASSERT_CHECKING to ENABLE_ASSERT_CHECKING.
8961 2008-04-11 H.J. Lu <hongjiu.lu@intel.com>
8963 * dse.c (record_store): Use HOST_BITS_PER_WIDE_INT instead
8964 of size of positions_needed * CHAR_BIT.
8966 2008-04-11 H.J. Lu <hongjiu.lu@intel.com>
8969 * dse.c (store_info): Change positions_needed to unsigned
8971 (lowpart_bitmask): New.
8972 (record_store): Cast to unsigned HOST_WIDE_INT for
8973 positions_needed. Assert width <= size of positions_needed *
8974 CHAR_BIT. Call lowpart_bitmask to initialize positions_needed.
8975 (check_mem_read_rtx): Use unsigned HOST_WIDE_INT on mask. Call
8976 lowpart_bitmask to set mask.
8978 2008-04-11 Bernd Schmidt <bernd.schmidt@analog.com>
8980 * config/bfin/constraints.md: New file.
8981 * config/bfin/bfin.md: Include it.
8982 (adddi3): Use satisfies_constraint functions instead of the old macros.
8983 * config/bfin/bfin.h (REG_CLASS_FROM_LETTER, CONSTRAINT_LEN,
8984 CONST_18UBIT_IMM_P, CONST_16BIT_IMM_P, CONST_16UBIT_IMM_P,
8985 CONST_7BIT_IMM_P, CONST_7NBIT_IMM_P, CONST_5UBIT_IMM_P,
8986 CONST_4BIT_IMM_P, CONST_4UBIT_IMM_P, CONST_3BIT_IMM_P,
8987 CONST_3UBIT_IMM_P, CONST_OK_FOR_K, CONST_OK_FOR_P, CONST_OK_FOR_M,
8988 CONST_OK_FOR_CONSTRAINT_P, CONST_DOUBLE_OK_FOR_LETTER,
8989 EXTRA_CONSTRAINT): Delete.
8990 * config/bfin/predicates.md (highbits_operand, reg_or_7bit_operand,
8991 reg_or_neg7bit_operand): Use satisfies_constraint functions instead
8993 * config/bfin/bfin.c: Include "tm-constrs.h".
8994 (bfin_secondary_reload, split_load_immediate, bfin_rtx_costs):
8995 Use satisfies_constraint functions instead of the old macros.
8996 * doc/md.texi (Blackfin Constraints): Update file name reference.
8998 2008-04-11 Richard Guenther <rguenther@suse.de>
9000 PR tree-optimization/35869
9001 * tree-vrp.c (execute_vrp): Move switch statement update after
9002 jump threading. Schedule another cfg cleanup run.
9004 2008-04-11 Volker Reichelt <v.reichelt@netcologne.de>
9007 * attribs.c (decl_attributes): Return early on errorneous node.
9009 2008-04-10 Oleg Ryjkov <olegr@google.com>
9011 * tree.h (struct tree_base): Added a new flag default_def_flag.
9012 (SSA_NAME_IS_DEFAULT_DEF): Changed to use the new flag.
9014 2008-04-11 Kaz Kojima <kkojima@gcc.gnu.org>
9016 * config.gcc (need_64bit_hwint): Need 64bit hwint for sh-*-*.
9018 2008-04-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9021 * pa.md: Define mode iterator P. Define mode attribute dwc.
9022 (dcacheflush): Update pattern to use iterator P and attribute dwc.
9023 (icacheflush): Likewise.
9024 * pa.h (INITIALIZE_TRAMPOLINE): Use dcacheflushsi/icacheflushsi if
9025 !TARGET_64BIT, and dcacheflushdi/icacheflushdi if TARGET_64BIT.
9027 2008-04-11 Ben Elliston <bje@au.ibm.com>
9029 * config/spu/spu.c (spu_init_builtins): Mark builtins as nothrow.
9031 2008-04-10 Rafael Espindola <espindola@google.com>
9033 * tree-vrp.c (extract_range_from_binary_expr): Don't handle
9034 TRUTH_ANDIF_EXPR or TRUTH_ORIF_EXPR.
9035 (extract_range_from_expr): The same.
9037 2008-04-10 Adam Nemet <anemet@caviumnetworks.com>
9039 * config/mips/mips.md (GPR2): New mode iterator.
9041 (*seq_<mode>, *seq_<mode>_mips16, *sne_<mode>, *sgt<u>_<mode>,
9042 *sgt<u>_<mode>_mips16, *sge<u>_<mode>, *slt<u>_<mode>,
9043 *slt<u>_<mode>_mips16 *sle<u>_<mode>, *sle<u>_<mode>_mips16):
9044 Rewrite these to take two modes, the mode of comparison and the
9045 mode of the destination.
9046 * config/mips/mips.c (mips_expand_scc): Instead of having
9047 paradoxical subreg as destination, expand "narrowing" scc if mode
9048 of comparison is SI and target is requested in DI mode.
9049 (mips_emit_int_order_test): Update comment. Make mode of
9050 comparison match CMP0 rather than TARGET. When creating inverse
9051 target use mode of TARGET.
9053 2008-04-10 Adam Nemet <anemet@caviumnetworks.com>
9055 * gcov-dump.c (tag_summary): Only print summaries for the first
9056 GCOV_COUNTERS_SUMMABLE counters.
9058 2008-04-10 Uros Bizjak <ubizjak@gmail.com>
9060 * config/i386/i386.md (absneg): New code iterator.
9061 (absnegprefix): New code attribute.
9062 (<code><mode>2): Macroize expander from abs<mode>2 and neg<mode>2
9063 patterns using absneg code iterator.
9064 (<code>tf2): Macroize expander from abstf2 and negtf2 patterns
9065 using absneg code iterator.
9066 (*<code><mode>2_1): Macroize insn pattern from *abs<mode>2_1 and
9067 *neg<mode>2 patterns using absneg code iterator.
9068 (*<code>extendsfdf2): Macroize insn pattern from *absextendsfdf2 and
9069 *negextendsfdf2 patterns using absneg code iterator.
9070 (*<code>extendsfxf2): Macroize insn pattern from *absextendsfxf2 and
9071 *negextendsfxf2 patterns using absneg code iterator.
9072 (*<code>extendsfdf2): Macroize insn pattern from *absextendsfdf2 and
9073 *negextendsfdf2 patterns using absneg code iterator.
9074 * config/i386/sse.md (<code><mode>2): Macroize expander from
9075 abs<mode>2 and neg<mode>2 patterns using absneg code iterator.
9077 2008-04-10 Andreas Krebbel <krebbel1@de.ibm.com>
9079 * config/s390/s390.h: Remove the remains of the recent search
9080 & replace action of current_function_outgoing_args_size.
9082 2008-04-10 Ira Rosen <irar@il.ibm.com>
9084 PR tree-optimization/35821
9085 * tree-vect-transform.c (vect_create_data_ref_ptr): Add check that
9086 NEW_STMT_LIST is not NULL.
9088 2008-04-09 David Edelsohn <edelsohn@gnu.org>
9091 * toplev.c (process_options): Remove -ffunction-sections debugging
9094 2008-04-09 Peter Bergner <bergner@vnet.ibm.com>
9096 PR middle-end/PR28690
9097 * explow.c (break_out_memory_refs): Use simplify_gen_binary rather
9098 than gen_rtx_fmt_ee to perform more canonicalizations.
9100 2008-04-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9103 * collect2.c (write_c_file): Don't wrap in "#ifdef __cplusplus".
9105 2008-04-09 Richard Guenther <rguenther@suse.de>
9107 * tree-cfg.c (verify_stmt): Print complete bogus stmt.
9108 (dump_function_to_file): Dump function arguments with types.
9110 2008-04-08 Richard Guenther <rguenther@suse.de>
9112 * fold-const.c (fold_widened_comparison): Do not allow
9113 sign-changes that change the result.
9115 2008-04-08 Janis Johnson <janis187@us.ibm.com>
9118 * config/rs6000/rs6000.c (rs6000_check_sdmode): Handle additional
9119 kinds of indirect references.
9121 2008-04-08 David Edelsohn <edelsohn@gnu.org>
9123 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Update
9124 GNU Fortran language string.
9126 2008-04-08 Rafael Espindola <espindola@google.com>
9128 * fold-canst.c (tree_call_nonnegative_warnv_p): New.
9129 (tree_invalid_nonnegative_warnv_p): Use tree_call_nonnegative_warnv_p.
9130 * tree.h (tree_call_nonnegative_warnv_p): New.
9132 2008-04-08 Jan Hubicka <jh@suse.cz>
9134 * function.c (free_after_compilation): Clear out regno_reg_rtx
9137 2008-04-08 Peter Bergner <bergner@vnet.ibm.com>
9140 2008-04-07 Peter Bergner <bergner@vnet.ibm.com>
9142 PR middle-end/PR28690
9143 * rtlanal.c: (commutative_operand_precedence): Give SYMBOL_REF's the
9144 same precedence as REG_POINTER and MEM_POINTER operands.
9146 2008-04-08 Richard Guenther <rguenther@suse.de>
9149 * tree-ssa-address.c (create_mem_ref): Use POINTER_PLUS_EXPR
9150 for adding index to base.
9152 2008-04-08 Kai Tietz <kai.tietz@onevision.com>
9154 * config/i386/mingw32.h (ENABLE_EXECUTE_STACK): New.
9155 (MINGW_ENABLE_EXECUTE_STACK): New.
9156 (IN_LIBGCC2): For libgcc include windows.h file for
9157 function declarations.
9159 2008-04-08 Hans-Peter Nilsson <hp@axis.com>
9161 * config/cris/cris.c (cris_address_cost): For a PLUS, swap tem1
9162 and tem2 if tem1 is not a REG or MULT.
9164 2008-04-08 Jan Hubicka <jh@suse.cz>
9166 * function.h (incomming_args): Break out of struct function.
9167 (function_subsections): Break out of struct function.
9168 (rtl_data): Add args, subsections fields. Break out outgoing_args_size,
9169 return_rtx and hard_reg_initial_vals from struct function.
9170 Kill inl_max_label_num.
9171 (current_function_pops_args, current_function_args_info,
9172 current_function_args_size, current_function_args_size,
9173 current_function_pretend_args_size,
9174 current_function_outgoing_args_size,
9175 current_function_internal_arg_pointer, current_function_return_rtx):
9176 Kill compatibility accestor macros.
9177 * builtins.c (expand_builtin_apply_args_1): Update.
9178 (expand_builtin_next_arg): Update.
9179 * df-scan.c (df_get_call_refs): Update.
9180 * dbxout.c (dbxout_function_end): Update.
9181 * dwarf2out.c (dwarf2out_switch_text_section): Update.
9182 (output_line_info): Update.
9183 (secname_for_decl): Update.
9184 (dwarf2out_var_location): Update.
9185 * function.c (free_after_compilation): Update.
9186 (assign_parm_find_stack_rtl): Update.
9187 (assign_parms): Update.
9188 (expand_dummy_function_end): Update.
9189 (expand_function_end): Update.
9190 * calls.c (mem_overlaps_already_clobbered_arg_p): Update.
9191 (expand_call): Update.
9192 (emit_library_call_value_1): Update.
9193 (store_one_arg): Update.
9194 * varasm.c (initialize_cold_section_name): Update.
9195 (unlikely_text_section): Update.
9196 (unlikely_text_section_p): Update.
9197 (assemble_start_function): Update.
9198 (assemble_end_function): Update.
9199 (default_section_type_flags): Update.
9200 (switch_to_section): Update.
9201 * integrate.c (set_decl_abstract_flags): Update.
9202 (get_hard_reg_initial_val): Update.
9203 (has_hard_reg_initial_val): Update.
9204 (allocate_initial_values): Update.
9205 * resource.c (init_resource_info): Update.
9206 * config/alpha/alpha.c (NUM_ARGS): Update.
9207 (direct_return): Update.
9208 (alpha_va_start): Update.
9209 (alpha_sa_size): Update.
9210 (alpha_initial_elimination_offset): Update.
9211 (alpha_expand_prologue): Update.
9212 (alpha_start_function): Update.
9213 (alpha_expand_epilogue): Update.
9214 (unicosmk_initial_elimination_offset):
9215 * config/alpha/alpha.md (call expander): Update.
9216 * config/s390/s390.c (s390_register_info): Update.
9217 (s390_register_info): Update.
9218 (s390_frame_info): Update.
9219 (s390_initial_elimination_offset): Update.
9220 (s390_build_builtin_va_list): Update.
9221 (s390_va_start): Update.
9222 * config/spu/spu.c (direct_return): Update.
9223 (spu_expand_prologue): Update.
9224 (spu_initial_elimination_offset): Update.
9225 (spu_build_builtin_va_list): Update.
9226 (spu_va_start): Update.
9227 * config/sparc/sparc.c (sparc_init_modes): Update.
9228 (sparc_compute_frame_size): Update.
9229 (function_value): Update.
9230 * config/m32r/m32r.c (m32r_compute_frame_size): Update.
9231 * config/i386/i386.md (return expander): Update.
9232 * config/i386/i386.c (ix86_va_start): Update.
9233 (ix86_can_use_return_insn_p): Update.
9234 (ix86_compute_frame_layout): Update.
9235 (ix86_expand_epilogue): Update.
9236 * config/sh/sh.c (output_stack_adjust): Update.
9237 (calc_live_regs): Update.
9238 (sh_expand_prologue): Update.
9239 (sh_builtin_saveregs): Update.
9240 (sh_va_start): Update.
9241 (initial_elimination_offset): Update.
9242 (sh_allocate_initial_value): Update.
9243 (sh_function_ok_for_sibcall): Update.
9244 (sh_get_pr_initial_val): Update.
9245 * config/sh/sh.md (return expander): Update.
9246 * config/avr/avr.c (frame_pointer_required_p): UPdate.
9247 * config/crx/crx.c (crx_compute_frame): UPdate.
9248 (crx_initial_elimination_offset): UPdate.
9249 * config/xtensa/xtensa.c (compute_frame_size): Update
9250 (xtensa_builtin_saveregs): Update.
9251 (xtensa_va_start): Update.
9252 (order_regs_for_local_alloc): Update.
9253 * config/stormy16/stormy16.c (xstormy16_compute_stack_layout): Update.
9254 (xstormy16_expand_builtin_va_start): Update.
9255 * config/fr30/fr30.c (fr30_compute_frame_size): Update.
9256 * config/m68hc11/m68hc11.md (return expanders): Update.
9257 * config/m68hc11/m68hc11.c (expand_prologue): Update.
9258 (expand_epilogue): Update.
9259 * config/cris/cris.c (cris_initial_frame_pointer_offset): Update.
9260 (cris_simple_epilogue): Update.
9261 (cris_expand_prologue): Update.
9262 (cris_expand_epilogue): Update.
9263 * config/iq2000/iq2000.c (iq2000_va_start): Update.
9264 (compute_frame_size): Update.
9265 * config/mt/mt.c (mt_compute_frame_size): Update.
9266 * config/mn10300/mn10300.c (expand_prologue): Update.
9267 (expand_epilogue): Update.
9268 (initial_offset): Update.
9269 (mn10300_builtin_saveregs):
9270 * config/mn10300/mn10300.md (return expander): Update.
9271 * config/ia64/ia64.c (ia64_compute_frame_size): Update.
9272 (ia64_initial_elimination_offset): Update.
9273 (ia64_initial_elimination_offset): Update.
9274 (ia64_expand_prologue): Update.
9275 * config/m68k/m68k.md (return expander): Update.
9276 * config/rs6000/rs6000.c (rs6000_va_start): Update.
9277 (rs6000_stack_info): Update.
9278 * config/mcore/mcore.c (layout_mcore_frame): Update.
9279 (mcore_expand_prolog): Update.
9280 * config/arc/arc.c (arc_compute_frame_size): Update.
9281 * config/score/score3.c (score3_compute_frame_size): Update.
9282 * config/score/score7.c (score7_compute_frame_size): Update.
9283 * config/arm/arm.c (use_return_insn): Update.
9284 (thumb_find_work_register): Update.
9285 (arm_compute_save_reg_mask): Update.
9286 (arm_output_function_prologue): Update.
9287 (arm_output_epilogue): Update.
9288 (arm_size_return_regs): Update.
9289 (arm_get_frame_offsets): Update.
9290 (arm_expand_prologue): Update.
9291 (thumb_exit): Update.
9292 (thumb_unexpanded_epilogue): Update.
9293 (thumb1_output_function_prologue): Update.
9294 * config/pa/pa.md (return expander): Update.
9295 * config/pa/pa.c (compute_frame_size): Update.
9296 (hppa_builtin_saveregs): Update.
9297 * config/mips/mips.c (mips_va_start): Update.
9298 (mips16_build_function_stub): Update.
9299 (mips_compute_frame_info): Update.
9300 (mips_restore_gp): Update.
9301 (mips_output_function_prologue): Update.
9302 (mips_expand_prologue): Update.
9303 * config/v850/v850.c (compute_frame_size): Update.
9304 (expand_prologue): * config/mmix/mmix.c (along): update.
9305 (mmix_initial_elimination_offset): update.
9306 (mmix_reorg): update.
9307 (mmix_use_simple_return): update.
9308 (mmix_expand_prologue): update.
9309 (mmix_expand_epilogue): Update.
9310 * config/bfin/bfin.c (bfin_initial_elimination_offset): Update.
9311 (emit_link_insn): Update.
9313 2008-04-08 Anatoly Sokolov <aesok@post.ru>
9315 * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): Define
9316 __AVR_HAVE_EIJMP_EICALL__ macro if device have EIJMP and EICALL
9318 * config/avr/avr.c (avr_mcu_types): Set AVR31 architecture for
9321 2008-04-07 Jan Hubicka <jh@suse.cz>
9323 * function.h (rtl): Rename to x_rtl.
9325 (return_label, naked_return_label, stack_slot_list, parm_birth_insn,
9326 frame_offset, stack_check_probe_note, arg_pointer_save_area,
9327 used_temp_slots avail_temp_slots, temp_slot_level,
9328 nonlocal_goto_handler_labels): Update accesstors.
9329 (rtl): New global variable.
9330 (struct function): Move some fileds to rtl_data.
9331 (get_arg_pointer_save_area): Update prototype.
9332 * builtins.c (expand_builtin_setjmp_receiver): Update call of
9333 get_arg_pointer_save_area.
9334 * expr.c (init_expr): Update
9335 * function.c (get_frame_size): Update
9336 (assign_stack_local): Update
9337 (expand_function_end): Update.
9338 (get_art_pointer_save_area): Update
9340 * emit-rtl.c (rtl): Declare.
9341 (regno_reg_rtx): Declare.
9342 (first_insn, last_insn, cur_insn_uid, last_location, first_label_num):
9344 (gen_reg_rtx): Update.
9345 * varasm.c (n_deferred_constatns): Update accestor.
9346 (init_varasm_status): Do not allocate varasm_status.
9347 (force_const_mem, get_pool_size, output_constant_pool): Update.
9348 * stmt.c (force_label_rtx): Do not use x_ prefixes.
9349 (expand_nl_goto_receiver): Update get_arg_pointer_save_area.
9350 * m32c/m32.c (m32c_leaf_function_p, m32c_function_needs_enter): Update.
9351 * sparc/sparc.h (INIT_EXPANDERS): Update.
9352 * ia64/ia64.h (INIT_EXPANDERS): Update.
9354 2008-04-07 James E. Wilson <wilson@tuliptree.org>
9356 * reload.c (push_secondary_reload): Add missing break to for loop.
9358 2008-04-07 Peter Bergner <bergner@vnet.ibm.com>
9360 PR middle-end/PR28690
9361 * rtlanal.c: Update copyright years.
9362 (commutative_operand_precedence): Give SYMBOL_REF's the same precedence
9363 as REG_POINTER and MEM_POINTER operands.
9364 * emit-rtl.c (gen_reg_rtx_and_attrs): New function.
9365 (set_reg_attrs_from_value): Call mark_reg_pointer as appropriate.
9366 * rtl.h (gen_reg_rtx_and_attrs): Add prototype for new function.
9367 * gcse.c: Update copyright years.
9368 (pre_delete): Call gen_reg_rtx_and_attrs.
9369 (hoist_code): Likewise.
9370 (build_store_vectors): Likewise.
9371 (delete_store): Likewise.
9372 * loop-invariant.c (move_invariant_reg): Likewise.
9373 Update copyright years.
9375 2008-04-07 Uros Bizjak <ubizjak@gmail.com>
9377 * config/i386/i386.md ("*sse_prologue_save_insn"): Use braced output
9378 control string instead of quoted.
9380 2008-04-07 Kenneth Zadeck <zadeck@naturalbridge.com>
9382 * doc/rtl.texi: Rewrite of subreg section.
9384 2008-04-07 Kai Tietz <kai.tietz@onevision.com>
9387 * config/i386/i386.c (legitimize_pic_address): Add treating
9388 of dllimport SYM_REF's.
9389 (legitimize_dllimport_symbol): Add prototype.
9391 2008-04-07 Eric Botcazou <ebotcazou@adacore.com>
9393 * fold-const.c (fold) <ARRAY_REF>: New case. Try to fold constant
9394 reference in constructor with non self-referential type.
9396 2008-04-07 Eric Botcazou <ebotcazou@adacore.com>
9398 Removal of Return with Depressed Stack Pointer support
9399 * tree.h (TYPE_RETURNS_STACK_DEPRESSED): Delete.
9400 (ECF_SP_DEPRESSED): Likewise.
9401 (ECF_LIBCALL_BLOCK, ECF_NOVOPS): Adjust.
9402 * calls.c (emit_call_1): Do not test ECF_SP_DEPRESSED.
9403 (flags_from_decl_or_type): Do not test TYPE_RETURNS_STACK_DEPRESSED.
9404 (expand_call): Do not test ECF_SP_DEPRESSED.
9405 * dse.c (dse_step0): Do not test TYPE_RETURNS_STACK_DEPRESSED.
9406 * function.c (keep_stack_depressed): Delete.
9407 (handle_epilogue_set): Likewise.
9408 (update_epilogue_consts): Likewise.
9409 (emit_equiv_load): Likewise.
9410 (thread_prologue_and_epilogue_insns): Remove support for Return with
9411 Depressed Stack Pointer.
9412 * print-tree.c (print_node): Do not test TYPE_RETURNS_STACK_DEPRESSED.
9414 2008-04-06 Richard Guenther <rguenther@suse.de>
9416 PR tree-optimization/35400
9417 * tree-vrp.c (vrp_evaluate_conditional): Only query value-range
9418 information from SSA_NAMEs.
9420 2008-04-06 Anatoly Sokolov <aesok@post.ru>
9422 * config/avr/avr.h (avr_mega_p): Remove declaration.
9423 (AVR_MEGA): Remove macro.
9424 * config/avr/avr.c (avr_mega_p): Remove variable.
9425 (avr_override_options): Remove inicializion of avr_mega_p.
9426 Use AVR_HAVE_JMP_CALL instead of AVR_MEGA.
9427 (print_operand): Use AVR_HAVE_JMP_CALL instead of AVR_MEGA.
9428 (avr_jump_mode): (Ditto.).
9429 (avr_output_progmem_section_asm_op): (Ditto.).
9430 (avr_asm_init_sections): (Ditto.).
9431 (avr_asm_init_sections): (Ditto.).
9432 (avr_rtx_costs): (Ditto.).
9433 * config/avr/avr.md: (Ditto.).
9434 * config/avr/avr.h: Use '__AVR_HAVE_JMP_CALL__' instead of
9437 2008-04-06 Richard Guenther <rguenther@suse.de>
9439 PR tree-optimization/35842
9440 * tree-ssa-address.c (fixed_address_object_p): Adjust to match
9441 is_gimple_invariant_address.
9443 2008-04-06 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
9445 * gcc.c (default_compilers): Sync Fortran extensions list with
9446 that in fortran/lang-specs.h.
9447 * doc/invoke.texi: Likewise.
9448 * dbxout.c (get_lang_number): Use "GNU Fortran" in "GNU F95".
9449 * dwarf2out.c (gen_compile_unit_die): Likewise.
9451 2008-04-06 Tom G. Christensen <tgc@jupiterrise.com>
9453 * gthr-posix95.h (__gthread_cond_wait_recursive): Add missing &.
9455 2008-04-05 Uros Bizjak <ubizjak@gmail.com>
9458 * config/i386/i386.c (ix86_function_regparm): Error if regparm(3)
9459 attribute is used for nested functions.
9461 2008-04-05 Jan Hubicka <jh@suse.cz>
9463 * emit-rtl.c (init_emit): xcalloc regno_pointer_align.
9465 * tree-dump.c (dump_enable_all): Remove prototype; do not accept
9467 (dump_files): Update.
9468 (enable_rtl_dump_file): Do not accept letter argument.
9469 * tree-pass.h (dump_file_info): Remove letter argument.
9470 * toplev.c (decode_d_option): Update -da handling.
9471 * toplev.h (enable_rtl_dump_file): Update prototype.
9472 * passes.c (register_one_dump_file): Do not accept IPA argument; work
9473 it out based on pass type.
9474 (register_dump_files_1): Likewise.
9475 (init_optimization_passes): Update register_one_dump_file calls.
9476 (execute_one_pass): Sanity check that IPA passes are called at IPA
9477 level and RTL passes at RTL level.
9478 (execute_pass_list): IPA pass can not be after or subpass of
9480 (execute_ipa_pass_list): Handle IPA subpasses of IPA subpasses and
9481 disallov RTL subpasses of IPA subpasses.
9483 2008-04-05 Ben Elliston <bje@au.ibm.com>
9485 * tree-cfg.c (need_fake_edge_p): Return false for calls to
9486 builtins that return exactly once and do not throw. Cache call to
9489 2008-04-04 Andy Hutchinson <hutchinsonandy@aim.com>
9491 PR rtl-optimization/34916
9493 * combine.c (create_log_links): Do not create duplicate LOG_LINKS
9494 between instruction pairs.
9496 2008-04-04 Naveen.H.S <naveen.hs@kpitcummins.com>
9498 * doc/invoke.texi: Document -mbitops for SH.
9499 * config/sh/constraints.md (K03, K12, Sbv, Sbw): New constraints.
9500 * config/sh/predicates.md (bitwise_memory_operand): New predicate.
9501 * config/sh/sh.c (print_operand): Add %t operand code.
9502 * config/sh/sh.h (GO_IF_LEGITIMATE_INDEX): Add condition for SH2A.
9503 * config/sh/sh.md (*iorsi3_compact): Fix condition for SH2A.
9504 (extendqisi2_compact): Add the alternative for SH2A 4-byte mov.b.
9505 (extendqihi2): Likewise.
9506 (movqi_i): Likewise.
9507 (insv): Use bset, bclr and bst instructions for SH2A if possible.
9508 (extv): Use bld instruction for SH2A if possible.
9510 (bclr_m2a, bclrmem_m2a, bset_m2a, bsetmem_m2a, bst_m2a, bld_m2a,
9511 bldsign_m2a, bld_reg, *bld_regqi, band_m2a, bandreg_m2a,
9512 bor_m2a, borreg_m2a, bxor_m2a, bxorreg_m2a): New insns.
9513 (bset.b, bclr.b): Define peepholes.
9514 * config/sh/sh.opt (mbitops): New option.
9516 2008-04-04 Janis Johnson <janis187@us.ibm.com>
9519 * config/rs6000/rs6000.c (rs6000_check_sdmode): Handle indirect ref
9520 and view convert expression.
9522 2008-04-04 Jakub Jelinek <jakub@redhat.com>
9525 * tree-cfg.c (remove_useless_stmts_1): Handle OMP_* containers.
9527 2008-04-04 H.J. Lu <hongjiu.lu@intel.com>
9529 * config.gcc (extra_headers): Add wmmintrin.h for x86 and x86-64.
9531 * config/i386/cpuid.h (bit_AES): New.
9532 (bit_PCLMUL): Likewise.
9534 * config/i386/i386.c (pta_flags): Add PTA_AES and PTA_PCLMUL.
9535 (override_options): Handle PTA_AES and PTA_PCLMUL. Enable
9536 SSE2 if AES or PCLMUL is enabled.
9537 (ix86_builtins): Add IX86_BUILTIN_AESENC128,
9538 IX86_BUILTIN_AESENCLAST128, IX86_BUILTIN_AESDEC128,
9539 IX86_BUILTIN_AESDECLAST128, IX86_BUILTIN_AESIMC128,
9540 IX86_BUILTIN_AESKEYGENASSIST128 and IX86_BUILTIN_PCLMULQDQ128.
9541 (bdesc_sse_3arg): Add IX86_BUILTIN_PCLMULQDQ128.
9542 (bdesc_2arg): Add IX86_BUILTIN_AESENC128,
9543 IX86_BUILTIN_AESENCLAST128, IX86_BUILTIN_AESDEC128,
9544 IX86_BUILTIN_AESDECLAST128 and IX86_BUILTIN_AESKEYGENASSIST128.
9545 (bdesc_1arg): Add IX86_BUILTIN_AESIMC128.
9546 (ix86_init_mmx_sse_builtins): Define __builtin_ia32_aesenc128,
9547 __builtin_ia32_aesenclast128, __builtin_ia32_aesdec128,
9548 __builtin_ia32_aesdeclast128,__builtin_ia32_aesimc128,
9549 __builtin_ia32_aeskeygenassist128 and
9550 __builtin_ia32_pclmulqdq128.
9551 * config/i386/i386.c (ix86_expand_binop_imm_builtin): New.
9552 (ix86_expand_builtin): Use it for IX86_BUILTIN_PSLLDQI128 and
9553 IX86_BUILTIN_PSRLDQI128. Handle IX86_BUILTIN_AESKEYGENASSIST128.
9555 * config/i386/i386.h (TARGET_AES): New.
9556 (TARGET_PCLMUL): Likewise.
9557 (TARGET_CPU_CPP_BUILTINS): Handle TARGET_AES and TARGET_PCLMUL.
9559 * config/i386/i386.md (UNSPEC_AESENC): New.
9560 (UNSPEC_AESENCLAST): Likewise.
9561 (UNSPEC_AESDEC): Likewise.
9562 (UNSPEC_AESDECLAST): Likewise.
9563 (UNSPEC_AESIMC): Likewise.
9564 (UNSPEC_AESKEYGENASSIST): Likewise.
9565 (UNSPEC_PCLMUL): Likewise.
9567 * config/i386/i386.opt (maes): New.
9568 (mpclmul): Likewise.
9570 * config/i386/sse.md (aesenc): New pattern.
9571 (aesenclast): Likewise.
9573 (aesdeclast): Likewise.
9575 (aeskeygenassist): Likewise.
9576 (pclmulqdq): Likewise.
9578 * config/i386/wmmintrin.h: New.
9580 * doc/extend.texi: Document AES and PCLMUL built-in function.
9582 * doc/invoke.texi: Document -maes and -mpclmul.
9584 2008-04-04 Paolo Bonzini <bonzini@gnu.org>
9586 * function.c (free_after_parsing): Replace with
9587 cxx_push_function_context from C++ front-end.
9588 (allocate_struct_function): Don't call langhook.
9589 * langhooks.h (struct lang_hooks_for_functions): Delete.
9590 (struct lang_hooks): Add back missing_noreturn_ok_p here, delete
9592 * langhooks-def.h (LANG_HOOKS_MISSING_NORETURN_OK_P): Add.
9593 (LANG_HOOKS_FUNCTION_INIT, LANG_HOOKS_FUNCTION_FINAL,
9594 LANG_HOOKS_FUNCTION_MISSING_NORETURN_OK_P,
9595 LANG_HOOKS_FUNCTION_INITIALIZER): Delete.
9596 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_MISSING_NORETURN_OK_P,
9597 remove LANG_HOOKS_FUNCTION_INITIALIZER.
9598 * tree-cfg.c: Adjust call to missing_noreturn_ok_p langhook.
9600 * c-objc-common.h (LANG_HOOKS_FUNCTION_MISSING_NORETURN_OK_P):
9601 Rename to LANG_HOOKS_MISSING_NORETURN_OK_P.
9603 2008-04-04 Jakub Jelinek <jakub@redhat.com>
9606 * c-pretty-print.c (pp_c_initializer_list): Handle CONSTRUCTOR
9609 2008-04-04 Richard Guenther <rguenther@suse.de>
9612 * fold-const.c (optimize_minmax_comparison): Use the correct
9613 type for the constant in the simplified comparison.
9615 2008-04-04 Zuxy Meng <zuxy.meng@gmail.com>
9617 * config/i386/driver-i386.c (describe_cache): Add l2_sizekb argument.
9618 Pass L2 size as "--param l2-cache-size" to the compiler.
9619 (decode_l2_cache): New function to decode L2 cache parameters using
9620 0x8000006 extended cpuid function.
9621 (detect_caches_amd): Determine parameters of L2 cache using
9622 decode_l2_caches function.
9623 (decode_caches_intel): Decode L2 cache parameters.
9624 (detect_caches_intel): Determine L2 cache parameters using
9625 decode_caches_intel and decode_l2_caches functions.
9627 2008-04-03 Bob Wilson <bob.wilson@acm.org>
9629 * config/xtensa/xtensa.c (xtensa_secondary_reload_class): Use a
9630 secondary input reload for subword loads from the constant pool.
9632 2008-04-03 Janis Johnson <janis187@us.ibm.com>
9635 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use integer
9636 constants of the appropriate size for runtime calculations.
9639 * dfp.c (decimal_from_decnumber): Retain trailing zeroes for
9640 decimal-float literal constant zero.
9642 2008-04-03 Jakub Jelinek <jakub@redhat.com>
9645 * c-parser.c (c_parser_omp_atomic): Call
9646 default_function_array_conversion on the RHS.
9649 * omp-low.c (scan_sharing_clauses) <case OMP_CLAUSE_SHARED>: Don't
9650 call is_variable_sized if decl has incomplete type.
9652 2008-04-03 H.J. Lu <hongjiu.lu@intel.com>
9654 * config/i386/i386-protos.h (ix86_aligned_p): Removed.
9656 2008-04-03 Adam Nemet <anemet@caviumnetworks.com>
9658 * config/mips/mips.md (any_gt, any_ge, any_lt, any_le): New code
9660 (u): Add attribute values for gt, gtu, ge, geu, lt, ltu, le and leu.
9661 (sgt<u>): Merge sgt and sgtu into new expander.
9662 (sgt, sgtu): Remove expanders.
9663 (*sgt<u>_<mode>): Merge *sgt_<mode> and *sgtu_<mode> into new pattern.
9664 (*sgt_<mode>, *sgtu_<mode>): Remove patterns.
9665 (*sgt<u>_<mode>_mips16): Merge *sgt_<mode>_mips16 and
9666 *sgtu_<mode>_mips16 into new pattern.
9667 (*sgt_<mode>_mips16, *sgtu_<mode>_mips16): Remove patterns.
9668 (sge<u>): Merge sge and sgeu into new expander.
9669 (sge, sgeu): Remove expanders.
9670 (*sge<u>_<mode>): Merge *sge_<mode> and second *sge_<mode> into
9672 (*sge_<mode>, second *sge_<mode>): Remove patterns.
9673 (slt<u>): Merge slt and sltu into new expander.
9674 (slt, sltu): Remove expanders.
9675 (*slt<u>_<mode>): Merge *slt_<mode> and *sltu_<mode> into new pattern.
9676 (*slt_<mode>, *sltu_<mode>): Remove patterns.
9677 (*slt<u>_<mode>_mips16): Merge *slt_<mode>_mips16 and
9678 *sltu_<mode>_mips16 into new pattern.
9679 (*slt_<mode>_mips16, *sltu_<mode>_mips16): Remove patterns.
9680 (sle<u>): Merge sle and sleu into new expander.
9681 (sle, sleu): Remove expanders.
9682 (*sle<u>_<mode>): Merge *sle_<mode> and *sleu_<mode> into new pattern.
9683 (*sle_<mode>, *sleu_<mode>): Remove patterns.
9684 (*sle<u>_<mode>_mips16): Merge *sle_<mode>_mips16 and
9685 *sleu_<mode>_mips16 into new pattern.
9686 (*sle_<mode>_mips16, *sleu_<mode>_mips16): Remove patterns.
9688 2008-04-03 Jan Hubicka <jh@suse.cz>
9690 PR tree-optimization/35795
9691 * alpha/alpha.c (alpha_output_mi_thunk_osf): Free after compilation.
9692 * sparc/sparc.c (sparc_output_mi_thunk): Likewise.
9693 * ia64/ia64.c (ia64_output_mi_thunk): Likewise.
9694 * m68k/m68k.c (m68k_output_mi_thunk): Likewise.
9695 * score/score3.c (score3_output_mi_thunk): Likewise.
9696 * score/score7.c (score7_output_mi_thunk): Likewise.
9697 * mips/mips.c (mips_output_mi_thunk): Likewise.
9699 2008-04-03 Richard Guenther <rguenther@suse.de>
9701 * tree-vrp.c (extract_range_from_unary_expr): Handle all
9702 conversions. Simplify code.
9704 2008-04-03 Kaz Kojima <kkojima@gcc.gnu.org>
9706 * config/sh/sh.c (sh_output_mi_thunk): Free cfun.
9708 2008-04-03 Tom Tromey <tromey@redhat.com>
9709 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9711 * config/m68k/t-uclinux (generated_files): Add sysroot-suffix.h.
9712 * config/bfin/t-bfin-linux (generated_files): Add
9713 linux-sysroot-suffix.h.
9714 * doc/install.texi (Prerequisites): Require make 3.80.
9715 * doc/sourcebuild.texi (Front End Directory): Document new
9717 * Makefile.in (generated_files): New variable.
9718 (ALL_HOST_OBJS): New variable.
9719 ($(ALL_HOST_OBJS)): New target.
9721 2008-04-03 Paolo Bonzini <bonzini@gnu.org>
9723 * tree-inline.c (copy_generic_body, copy_decl_no_change): Export.
9724 (remap_block): Call id->transform_lang_insert_block instead
9726 (optimize_inline_calls, unsave_expr_now, tree_function_versioning):
9727 Set id.transform_lang_insert_block to NULL.
9728 (clone_body): Move to cp/optimize.c
9729 * tree-inline.h (struct copy_body_data): Change
9730 transform_lang_insert_block to function pointer.
9731 (copy_generic_body, copy_decl_no_change): Export.
9732 * langhooks.h (struct lang_hooks_for_decls): Kill insert_block.
9733 * langhooks-def.h (LANG_HOOKS_INSERT_BLOCK): Kill.
9734 (LANG_HOOKS_DECLS): Remove LANG_HOOKS_INSERT_BLOCK.
9736 * c-tree.h (insert_block): Kill.
9737 * c-decl.c (insert_block): Kill.
9739 2008-04-03 Paolo Bonzini <bonzini@gnu.org>
9741 * c-objc-common.h (LANG_HOOKS_FUNCTION_ENTER_NESTED,
9742 LANG_HOOKS_FUNCTION_LEAVE_NESTED): Delete.
9743 * c-tree.h (c_push_function_context, c_pop_function_context): Remove
9745 * c-decl.c (c_push_function_context, c_pop_function_context): Remove
9746 argument, call {push,pop}_function_context from here.
9747 * c-parser.c: Use c_{push,pop}_function_context.
9749 * function.c (push_function_context_to): Move meat ...
9750 (push_function_context): ... here. Simplify.
9751 * function.c (pop_function_context_from): Move meat ...
9752 (pop_function_context): ... here. Simplify.
9753 * langhooks.h (struct lang_hooks_for_functions): Remove enter_nested,
9755 * langhooks-def.h (LANG_HOOKS_FUNCTION_ENTER_NESTED,
9756 LANG_HOOKS_FUNCTION_LEAVE_NESTED): Delete.
9757 (LANG_HOOKS_FUNCTION_INITIALIZER): Delete them from here.
9758 * tree.h (push_function_context_to, pop_function_context_from): Remove.
9760 2008-04-03 Ben Elliston <bje@au.ibm.com>
9762 * expmed.c (extract_force_align_mem_bit_field): Remove.
9764 2008-04-03 Richard Guenther <rguenther@suse.de>
9767 * expr.h (try_casesi): Adjust prototype.
9768 * expr.c (try_casesi): Take fallback label as extra parameter.
9769 Use that for gen_casesi if default_label is NULL.
9770 * stmt.c (expand_case): Pass fallback label to try_casesi,
9771 make sure to fill gaps with a fallback label if default_label
9774 2008-04-03 Dominique d'Humieres <dominiq@lps.ens.fr>
9777 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Free cfun.
9779 2008-04-03 Ben Elliston <bje@au.ibm.com>
9781 * expmed.c (extract_split_bit_field): Remove if (0) code.
9782 * tree-ssa-structalias.c (do_sd_constraint): Likewise.
9783 (do_ds_constraint): Likewise.
9785 2008-04-02 Joseph Myers <joseph@codesourcery.com>
9787 * doc/cppopts.texi (-dU): Document.
9788 * c-common.h (flag_dump_macros): Update comment.
9789 * c-opts.c (handle_OPT_d): Handle -dU.
9790 * c-ppoutput.c (macro_queue, define_queue, undef_queue,
9791 dump_queued_macros, cb_used_define, cb_used_undef): New.
9792 (init_pp_output): Handle -dU.
9793 (cb_line_change): Call dump_queued_macros.
9794 * toplev.c (decode_d_option): Accept -dU as preprocessor option.
9796 2008-04-02 Anatoly Sokolov <aesok@post.ru>
9798 * config/avr/predicates.md (io_address_operand): New predicate.
9799 * config/avr/avr-protos.h (avr_io_address_p): Remove declaration.
9800 * config/avr/avr.c (avr_io_address_p): Remove function.
9801 (out_movqi_r_mr): Use 'io_address_operand' predicate instead of
9802 'avr_io_address_p' function.
9803 (out_movhi_r_mr): (Ditto.).
9804 (out_movqi_mr_r): (Ditto.).
9805 (out_movhi_mr_r): (Ditto.).
9806 (avr_address_cost): (Ditto.).
9808 2008-04-02 Uros Bizjak <ubizjak@gmail.com>
9810 * config/i386/i386.md (*float<SSEMODEI24:mode><X87MODEF:mode>2_1):
9811 Emit gen_floatdi<X87MODEF:mode>2_i387_with_xmm for DImode values
9812 in 32bit mode when XMM registers are available to avoid store
9814 (floatdi<X87MODEF:mode>2_i387_with_xmm): New insn pattern and
9815 corresponding post-reload splitters.
9817 2008-04-02 H.J. Lu <hongjiu.lu@intel.com>
9819 * config/i386/i386.c (bdesc_sse_3arg): Add __builtin_ia32_shufps
9820 and __builtin_ia32_shufpd. Provide __builtin_ia32_roundsd and
9821 __builtin_ia32_roundss.
9822 (ix86_init_mmx_sse_builtins): Remove __builtin_ia32_shufps,
9823 __builtin_ia32_shufpd, __builtin_ia32_roundsd and
9824 __builtin_ia32_roundss.
9825 (ix86_expand_builtin): Don't handle IX86_BUILTIN_SHUFPS and
9826 IX86_BUILTIN_SHUFPD here.
9828 2008-04-02 H.J. Lu <hongjiu.lu@intel.com>
9830 * config/i386/i386.md (plogic): New.
9831 (plogicprefix): Likewise.
9833 * config/i386/mmx.md (mmx_<code><mode>3): New.
9834 (mmx_and<mode>3): Removed.
9835 (mmx_ior<mode>3): Likewise.
9836 (mmx_xor<mode>3): Likewise.
9838 * config/i386/sse.md (<code><mode>3): New.
9839 (*<code><mode>3): Likewise.
9840 (*<code><mode>3): Likewise.
9841 (<code><mode>3): Likewise.
9842 (*sse_<code><mode>3): Likewise.
9843 (*sse2_<code><mode>3): Likewise.
9844 (<code>tf3): Likewise.
9845 (*<code>tf3): Likewise.
9846 (and<mode>3): Likewise.
9847 (*and<mode>3): Likewise.
9848 (ior<mode>3): Removed.
9849 (*ior<mode>3): Likewise.
9850 (xor<mode>3): Likewise.
9851 (*xor<mode>3): Likewise.
9852 (*and<mode>3): Likewise.
9853 (*ior<mode>3): Likewise.
9854 (*xor<mode>3): Likewise.
9855 (and<mode>3): Likewise.
9856 (*sse_and<mode>3): Likewise.
9857 (*sse2_and<mode>3): Likewise.
9859 (*andtf3): Likewise.
9860 (ior<mode>3): Likewise.
9861 (*sse_ior<mode>3): Likewise.
9862 (*sse2_ior<mode>3): Likewise.
9864 (*iortf3): Likewise.
9865 (xor<mode>3): Likewise.
9866 (*sse_xor<mode>3): Likewise.
9867 (*sse2_xor<mode>3): Likewise.
9869 (*xortf3): Likewise.
9871 2008-04-02 Richard Guenther <rguenther@suse.de>
9873 PR tree-optimization/14495
9874 PR tree-optimization/34793
9875 * tree-vrp.c (struct switch_update): New structure.
9876 (to_remove_edges, to_update_switch_stmts): New VECs.
9877 (simplify_switch_using_ranges): New function. Remove not taken
9878 case labels and edges.
9879 (simplify_stmt_using_ranges): Call it.
9880 (identify_jump_threads): Mark edges we have queued for removal
9881 so we don't thread them.
9882 (execute_vrp): Remove edges queued for removal, update SWITCH_STMT
9884 * tree-cfg.c (group_case_labels): Deal with missing default label.
9885 (tree_verify_flow_info): Allow missing default label.
9886 * stmt.c (emit_case_bit_tests): Deal with NULL default_label.
9887 (emit_case_nodes): Likewise.
9888 (expand_case): Do not rely on the default label to be present.
9889 * expr.c (try_casesi): Deal with NULL default_label.
9890 (do_tablejump): Likewise.
9892 2008-04-02 Richard Guenther <rguenther@suse.de>
9894 PR tree-optimization/14495
9895 * tree-vrp.c (vrp_visit_cond_stmt): Do not handle
9896 SWITCH_EXPR here ...
9897 (vrp_visit_switch_stmt): ... but here (new function).
9898 (find_case_label_index): New helper function.
9899 (vrp_visit_stmt): Dispatch to vrp_visit_switch_stmt.
9901 2008-04-02 Paolo Bonzini <bonzini@gnu.org>
9903 * fwprop.c: Fix ISO-C99ism.
9905 2008-04-02 Paolo Bonzini <bonzini@gnu.org>
9908 * Makefile.in (objdir): Set it here.
9909 * configure.ac: Not here. Find dynamic linker characteristics.
9910 * exec-tool.in: Use them.
9911 * aclocal.m4: Regenerate.
9912 * configure: Regenerate.
9914 2008-04-02 Paolo Bonzini <bonzini@gnu.org>
9916 * expr.c (expand_var): Delete it.
9917 * expr.h (expand_var): Delete prototype.
9918 * function.c (expand_function_start): Use expand_decl instead.
9919 * cfgexpand.c (expand_one_static_var, expand_one_var): Don't call
9922 2008-04-02 Andy Hutchinson <hutchinsonamdy@aim.com>
9924 PR rtl-optimization/35542
9925 * fwprop.c (forward_propagate_and_simplify): Replace
9926 loc_reg_mentioned_in_p with reg_mentioned_p.
9928 2008-04-02 Paolo Bonzini <bonzini@gnu.org>
9930 PR rtl-optimization/35281
9931 * fwprop.c (PR_CAN_APPEAR, PR_HANDLE_MEM): New.
9932 (propagate_rtx_1): Handle PR_HANDLE_MEM.
9933 (propagate_rtx): Pass PR_HANDLE_MEM if appropriate.
9934 (varying_mem_p): Move above propagate_rtx.
9935 (all_uses_available_at): Do not check MEMs.
9937 2008-04-02 Rafael Espindola <espindola@google.com>
9939 * tree-vrp.c (extract_code_and_val_from_cond): Remove.
9940 (register_edge_assert_for_2): Split the cond argument.
9941 (register_edge_assert_for_1): Adjust for the change in
9942 register_edge_assert_for_2.
9943 (register_edge_assert_for): Split the cond argument.
9944 (find_switch_asserts): Adjust for the change in
9945 register_edge_assert_for.
9947 2008-04-02 Kai Tietz <kai.tietz@onevision.com>
9949 * config.gcc: Add for x86_64-*-mingw* the t-crtfm to tbuild.
9950 * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Add 8 byte
9951 offsets for 64-bit mingw.
9952 * config/i386/i386.c (ix86_pass_by_reference): Correct calling
9953 abi for x86_64-pc-mingw.
9955 2008-04-02 Richard Guenther <rguenther@suse.de>
9957 * tree-vrp.c (extract_range_from_assert): Make sure to not
9958 produce range min/max with TREE_OVERFOW set.
9959 If merging a anti-range and a range keep the anti-range if
9960 the range covers all values of the type.
9961 (register_edge_assert_for_2): Only allow sign-changing
9962 conversions in detecting canonical range checks. Also
9963 register an assert for the unsigned name if useful.
9965 PR tree-optimization/35787
9966 * tree-vrp.c (vrp_val_max): New function.
9967 (vrp_val_min): Likewise.
9968 (vrp_val_is_max): Move earlier, use vrp_val_{min,max}.
9969 (vrp_val_is_min): Likewise.
9970 (supports_overflow_infinity): Use vrp_val_{min,max}.
9971 (negative_overflow_infinity): Likewise.
9972 (positive_overflow_infinity): Likewise.
9973 (is_negative_overflow_infinity): Use vrp_val_is_{min,max}.
9974 (is_positive_overflow_infinity): Likewise.
9975 (is_overflow_infinity): Likewise.
9976 (avoid_overflow_infinity): Use vrp_val_{min,max} and
9977 vrp_val_is_{min,max}.
9978 (set_and_canonicalize_value_range): Canonicalize anti-ranges
9979 to ranges if possible. Avoid empty ranges.
9981 2008-04-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9984 * fold-const.c (get_pointer_modulus_and_residue): Return modulus 1 if
9985 the expression is a function address.
9987 2008-04-01 George Helffrich <george@gcc.gnu.org>
9989 PR fortran/35154, fortran/23057
9990 * dbxout.c: Emit .stabs debug info for Fortran COMMON block
9991 variables as base symbol name + offset using N_BCOMM/N_ECOMM.
9992 (is_fortran, dbxout_common_name, dbxout_common_check): New functions.
9993 (dbxout_symbol_location): Transform N_LCSYM to N_GSYM for storage
9995 (dbxout_syms): Check for COMMON-based symbol and wrap in
9996 N_BCOMM/N_ECOMM stab bracket, including as many symbols as possible
9997 in bracket for efficiency.
9999 * dwarf2out.c: Emit DWARF debug info for Fortran COMMON block
10000 using DW_TAG_common_block + member offset.
10001 (add_pubname_string): New function.
10002 (dw_expand_expr): New function to find block name and offset for
10004 (common_check): New function to check whether symbol in Fortran COMMON.
10005 (gen_variable_die): If COMMON, use DW_TAG_common_block.
10007 2008-04-01 Volker Reichelt <v.reichelt@netcologne.de>
10010 * c-format.c (init_dynamic_gfc_info): Ignore invalid locus type.
10012 2008-04-02 Ben Elliston <bje@au.ibm.com>
10014 * config/v850/v850.md (casesi): Remove if (0) code.
10015 * config/i386/uwin.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
10016 * config/alpha/alpha.c (alpha_initialize_trampoline): Likewise.
10018 2008-04-01 Uros Bizjak <ubizjak@gmail.com>
10020 * config/i386/i386.md (rex64suffix): New mode attribute.
10021 (floathi<mode>2): Disable expander for SSE math.
10022 (*floathi<mode>2_1): New insn insn_and_split pattern.
10023 (*floathi<mode>2_i387_with_temp): New macroized instruction pattern and
10024 corresponding post-reload splitters.
10025 (*floathi<mode>2_i387): New macroized insn pattern.
10026 (float<SSEMODEI24:mode><X87MODEF:mode>2): New macroized expander.
10027 (*float<SSEMODEI24:mode><X87MODEF:mode>2_1): New macroized
10028 insn_and_split pattern.
10029 (*floatsi<mode>2_vector_mixed_with_temp, *floatsi<mode>2_vector_mixed):
10030 New macroized instruction patterns and corresponding post-reload
10032 (*floatsi<mode>2_mixed_with_temp): New macroized instruction pattern
10033 and corresponding post-reload splitters.
10034 (*floatsi<mode>2_mixed_interunit, *floatsi<mode>2_mixed_nointerunit):
10035 New macroized instruction patterns.
10036 (*floatsi<mode>2_vector_sse_with_temp, *floatsi<mode>2_vector_sse): New
10037 macroized instruction patterns and corresponding post-reload splitters.
10038 (*floatsi<mode>2_sse_with_temp): New macroized instruction pattern and
10039 corresponding post-reload splitters.
10040 (*floatsi<mode>2_sse_interunit, *floatsi<mode>2_mixed_nointerunit):
10041 New macroized instruction patterns.
10042 (*floatsi<mode>2_i387_with_temp): New macroized instruction pattern and
10043 corresponding post-reload splitters.
10044 (*floatsi<mode>2_i387): New macroized instruction patterns.
10046 2008-04-01 H.J. Lu <hongjiu.lu@intel.com>
10048 * config/i386/i386.md (smaxmin): New.
10049 (umaxmin): Likewise.
10050 (maxminiprefix): Likewise.
10051 (maxminfprefix): Likewise.
10052 (<code><mode>3): Likewise.
10053 (smin<mode>3): Removed.
10054 (smax<mode>3): Likewise.
10056 * config/i386/mmx.md (mmx_<code>v2sf3): New.
10057 (mmx_<code>v4hi3): Likewise.
10058 (mmx_<code>v8qi3): Likewise.
10059 (mmx_smaxv2sf3): Removed.
10060 (mmx_sminv2sf3): Likewise.
10061 (mmx_umaxv8qi3): Likewise.
10062 (mmx_smaxv4hi3): Likewise.
10063 (mmx_uminv8qi3): Likewise.
10064 (mmx_sminv4hi3): Likewise.
10066 * config/i386/sse.md (<addsub><mode>3): New.
10067 (*<addsub><mode>3): Likewise.
10068 (<sse>_vm<addsub><mode>3): Likewise.
10069 (<maxmin><mode>3): Likewise.
10070 (*<maxmin><mode>3_finite): Likewise.
10071 (*<maxmin><mode>3): Likewise.
10072 (<sse>_vm<maxmin><mode>3): Likewise.
10073 (sse3_h<addsub>v4sf3): Likewise.
10074 (sse3_h<addsub>v2df3): Likewise.
10075 (<maxmin>v16qi3): Likewise.
10076 (*<maxmin>v16qi3): Likewise.
10077 (<maxmin>v8hi3): Likewise.
10078 (*<maxmin>v8hi3): Likewise.
10079 (*sse4_1_<maxmin><mode>3): Likewise.
10080 (*sse4_1_<maxmin><mode>3): Likewise.
10081 (add<mode>3): Removed.
10082 (*add<mode>3): Likewise.
10083 (<sse>_vmadd<mode>3): Likewise.
10084 (sub<mode>3): Likewise.
10085 (*sub<mode>3): Likewise.
10086 (<sse>_vmsub<mode>3): Likewise.
10087 (smin<mode>3): Likewise.
10088 (*smin<mode>3_finite): Likewise.
10089 (*smin<mode>3): Likewise.
10090 (<sse>_vmsmin<mode>3): Likewise.
10091 (smax<mode>3): Likewise.
10092 (*smax<mode>3_finite): Likewise.
10093 (*smax<mode>3): Likewise.
10094 (<sse>_vmsmax<mode>3): Likewise.
10095 (sse3_haddv4sf3): Likewise.
10096 (sse3_haddv2df3): Likewise.
10097 (sse3_hsubv4sf3): Likewise.
10098 (sse3_hsubv2df3): Likewise.
10099 (umaxv16qi3): Likewise.
10100 (*umaxv16qi3): Likewise.
10101 (smaxv8hi3): Likewise.
10102 (*smaxv8hi3): Likewise.
10103 (*sse4_1_smax<mode>3): Likewise.
10104 (*sse4_1_umax<mode>3): Likewise.
10105 (uminv16qi3): Likewise.
10106 (*uminv16qi3): Likewise.
10107 (sminv8hi3): Likewise.
10108 (*sminv8hi3): Likewise.
10109 (*sse4_1_smin<mode>3): Likewise.
10110 (*sse4_1_umin<mode>3): Likewise.
10112 2008-04-01 Rafael Espindola <espindola@google.com>
10114 * tree-cfg.c (verify_expr): remove in_phi.
10115 (verify_stmt): Don't call walk_tree with verify_expr. Use
10116 is_gimple_min_invariant instead of is_gimple_val.
10118 2008-04-01 Joseph Myers <joseph@codesourcery.com>
10120 * doc/include/gpl_v3.texi: Update for manpage generation.
10121 * doc/gcc.texi, doc/gccint.texi: Include gpl_v3.texi instead of
10123 * doc/sourcebuild.texi: Document gpl_v3.texi as well as gpl.texi.
10124 * Makefile.in (TEXI_GCC_FILES, TEXI_GCCINT_FILES): Include
10125 gpl_v3.texi instead of gpl.texi.
10128 2008-04-01 Jakub Jelinek <jakub@redhat.com>
10131 * c-pch.c (c_common_read_pch): On error close (fd) resp. fclose (f).
10133 2008-04-01 Rafael Espindola <espindola@google.com>
10135 * tree-vrp.c (extract_code_and_val_from_cond_with_ops): New.
10136 (extract_code_and_val_from_cond): Use
10137 extract_code_and_val_from_cond_with_ops.
10139 2008-04-01 Jan Hubicka <jh@suse.cz>
10141 * function.c (free_after_compilation): Free epilogue_delay_list.
10142 (prepare_function_start): Assert that previous compilation was freed.
10144 2008-04-01 Jan Hubicka <jh@suse.cz>
10145 Jim Wilson <wilson@tuliptree.org>
10146 Andreas Tobler <andreast@gcc.gnu.org>
10148 PR middle-end/35781
10149 * m32c/m32.c (m32c_leaf_function_p, m32c_function_needs_enter): Use
10150 rtl.emit instead cfun->emit.
10151 * sparc/sparc.h (INIT_EXPANDERS): Likewise.
10152 * ia64/ia64.h (INIT_EXPANDERS): Likewise.
10154 2008-04-01 Ben Elliston <bje@au.ibm.com>
10156 * doc/c-tree.texi (Function Basics): Fix grammatical error.
10158 2008-03-31 Seongbae Park <seongbae.park@gmail.com>
10160 * common.opt (fprofile-dir=, fprofile-use=, fprofile-generate=):
10162 (fprofile-use): Add var flag_profile_use
10163 * coverage.c (coverage_begin_output): Do not open a gcno file for
10164 output only if -ftest-coverage is set.
10165 Do not add getpwd() to gcda file path.
10166 (build_gcov_info): Check the new flag
10167 flag_profile_datafile_relative_path.
10168 (coverage_init): Use profile_data_prefix.
10169 Read profile counter only if flag_profile_use is set.
10170 * opts.c (common_handle_option): New option fprofile-use=,
10171 fprofile-dir=, fprofile-generate=.
10172 * toplev.c (profile_data_prefix): New variable definition.
10173 * toplev.h (profile_data_prefix): New declaration.
10174 * doc/invoke.tex (Option Summary, Optimization Options):
10177 2008-03-31 James E. Wilson <wilson@tuliptree.org>
10179 * varasm.c (output_constant_pool_1): In LABEL_REF check,
10180 use tmp consistently.
10183 * config/ia64/div.md (recip_approx_rf): Use UNSPEC not DIV.
10184 * config/ia64/ia64.c (rtx_needs_barrier): Handle
10185 UNSPEC_FR_RECIP_APPROX_RES.
10186 * config/ia64/ia64.md (UNSPEC_FR_RECIP_APPROX_RES): Define.
10188 2008-03-31 Volker Reichelt <v.reichelt@netcologne.de>
10191 * c-decl.c (store_parm_decls_oldstyle): Skip invalid parameters.
10193 2008-03-31 Andrew Pinski <andrew_pinski@playstation.sony.com>
10195 PR middle-end/30186
10196 * fold-const.c (fold_indirect_ref_1): Support accessing non first
10197 element of the vector via a pointer.
10199 2008-03-31 Ian Lance Taylor <iant@google.com>
10201 * tlink.c (scan_linker_output): Look for symbol name in single quotes.
10203 2008-03-31 Jan Hubicka <jh@suse.cz>
10205 * builtins.c (expand_builtin_setjmp_receiver): Update call of
10206 get_arg_pointer_save_area.
10207 * expr.c (init_expr): Just clear out rtl.expr.
10208 * function.c (free_after_compilation): Clear out whole RTL structure.
10209 (get_func_frame_size): Merge into ...
10210 (get_frame_size): ... this one.
10211 (assign_stack_local_1): Merge into ...
10212 (assign_stack_local): ... this one.
10213 (expand_function_end): Update call of get_arg_pointer_save_area.
10214 (get_art_pointer_save_area): Remove cfun argument.
10215 * function.h (emit_status): regno_pointer_align does not need length
10216 attribute. Move x_regno_reg_rtx to ...
10217 (regno_reg_rtx): ... new global array.
10218 (reg_rtx_no, seq_stack, REGNO_POINTER_ALIGN): Update accestors.
10219 (pending_stack_adjust, inhibit_defer_pop, saveregs_value,
10220 apply_args_value, forced_labels, stack_pointer_delta):
10222 (struct varasm_status): Move here from varasm.c
10223 (struct rtl_data): New. Move here some fields from struct function.
10224 (return_label, naked_return_label, stack_slot_list, parm_birth_insn,
10225 frame_offset, stack_check_probe_note, arg_pointer_save_area,
10226 used_temp_slots avail_temp_slots, temp_slot_level,
10227 nonlocal_goto_handler_labels): Update accesstors.
10228 (rtl): New global variable.
10229 (struct function): Move some fileds to rtl_data.
10230 (get_arg_pointer_save_area): Update prototype.
10231 * emit-rtl.c (rtl): Declare.
10232 (regno_reg_rtx): Declare.
10233 (first_insn, last_insn, cur_insn_uid, last_location, first_label_num):
10235 (gen_reg_rtx): Update.
10236 (init_virtual_regs): Do not tate emit_status argument.
10237 (init_emit): Do not allocate emit.
10238 * varasm.c (varasm_statuc): Move to function.h.
10239 (n_deferred_constatns): Update accestor.
10240 (init_varasm_status): Do not allocate varasm_status.
10241 (force_const_mem, get_pool_size, output_constant_pool): Update.
10242 * stmt.c (force_label_rtx): Do not use x_ prefixes.
10243 (expand_nl_goto_receiver): Update get_arg_pointer_save_area.
10245 2008-03-31 Zdenek Dvorak <ook@ucw.cz>
10247 PR rtl-optimization/35729
10248 * loop-invariant.c (check_maybe_invariant): Disallow volatile memory
10251 2008-03-31 H.J. Lu <hongjiu.lu@intel.com>
10254 * config/i386/i386.md (*movti_internal): Emit unaligned SSE
10255 load/store if memory is unaligned.
10256 (*movti_rex64): Likewise.
10258 * config/i386/predicates.md (misaligned_operand): New.
10260 2008-03-31 Andrew Pinski <pinskia@gmail.com>
10263 * tree-ssa-phiopt.c (conditional_replacement): Return early for
10266 2008-03-31 Jan Beulich <jbeulich@novell.com>
10268 * config/ia64/constraints.md: Add 'j' constraint.
10269 * config/ia64/ia64.md (movsi_internal): Add addp4 case.
10270 (movdi_internal): Likewise.
10272 2008-03-30 Volker Reichelt <v.reichelt@netcologne.de>
10275 * c-typeck.c (build_c_cast): Skip invalid fields in unions.
10277 2008-03-30 H.J. Lu <hongjiu.lu@intel.com>
10280 * config/i386/i386.c (ix86_expand_sse_4_operands_builtin): Issue
10281 proper error message for the third argument on blendpd and
10284 * config/i386/sse.md (blendbits): New.
10285 (sse4_1_blendp<ssemodesuffixf2c>): Use it.
10287 2008-03-30 Eric Botcazou <ebotcazou@adacore.com>
10289 * fold-const.c (fold_binary) <BIT_IOR_EXPR>: Add missing conversions.
10291 2008-03-30 Richard Guenther <rguenther@suse.de>
10293 PR middle-end/31023
10294 * fold-const.c (fold_sign_changed_comparison): Do leave
10295 conversions to base-types alone.
10297 2008-03-29 Andrew Pinski <andrew_pinski@playstation.sony.com>
10299 * config/rs6000/rs6000.c (rs6000_stack_info): Don't force saving of
10300 the link register if one altivec register is be saved.
10302 2008-03-30 Ben Elliston <bje@au.ibm.com>
10304 * final.c (final_scan_insn): Remove if (0) code.
10306 2008-03-28 Volker Reichelt <v.reichelt@netcologne.de>
10308 * c-parser.c (c_parser_next_token_is_keyword): Simplify.
10310 2008-03-28 H.J. Lu <hongjiu.lu@intel.com>
10312 * config/i386/sse.md (*and<mode>3): Pass <MODE>mode instead
10313 of V4SFmode to ix86_binary_operator_ok.
10315 2008-03-28 Uros Bizjak <ubizjak@gmail.com>
10317 * config/i386/i386.c (override_options): Initialize
10318 ix86_veclib_handler to ix86_veclibabi_svml when
10319 -mveclibabi=svml is used.
10320 (ix86_veclibabi_svml): New function for SVML ABI style
10321 vectorization support.
10322 * doc/invoke.texi (-mveclibabi) [svml]: Document new target option.
10324 2008-03-28 Rafael Espindola <espindola@google.com>
10326 * fold-const.c (tree_unary_nonnegative_warnv_p): Make it public.
10327 (tree_binary_nonnegative_warnv_p): Make it public.
10328 (tree_single_nonnegative_warnv_p): Make it public.
10329 (tree_invalid_nonnegative_warnv_p): Make it public.
10330 (tree_unary_nonzero_warnv_p): Make it public.
10331 (tree_binary_nonzero_warnv_p): Make it public
10332 (tree_single_nonzero_warnv_p): Make it public.
10333 * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops): New function.
10334 (extract_range_from_binary_expr): Split the expr argument.
10335 (extract_range_from_unary_expr): Split the expr argument.
10336 (extract_range_from_comparison): Split the expr argument.
10337 (extract_range_from_expr): Use the new aux functions.
10338 (vrp_evaluate_conditional_warnv): Use
10339 vrp_evaluate_conditional_warnv_with_ops.
10340 * tree.h (tree_unary_nonzero_warnv_p): Declare.
10341 (tree_binary_nonzero_warnv_p): Declare.
10342 (tree_single_nonzero_warnv_p): Declare.
10343 (tree_expr_nonzero_warnv_p): Declare.
10344 (tree_unary_nonnegative_warnv_p): Declare.
10345 (tree_binary_nonnegative_warnv_p): Declare.
10346 (tree_single_nonnegative_warnv_p): Declare.
10347 (tree_invalid_nonnegative_warnv_p): Declare.
10349 2008-03-28 Richard Guenther <rguenther@suse.de>
10351 PR tree-optimization/30317
10352 PR tree-optimization/30911
10353 PR tree-optimization/34793
10354 * tree-vrp.c (set_and_canonicalize_value_range): New function.
10355 (struct assert_locus_d): New member EXPR.
10356 (register_new_assert_for): Add EXPR parameter to support
10357 ASSERT_EXPR <name, expr OP limit>.
10358 (register_edge_assert_for_1): Adjust callers.
10359 (find_assert_locations): Likewise.
10360 (process_assert_insertions_for): Build condition from expression.
10361 (extract_range_from_assert): Handle ASSERT_EXPRs
10362 of the form ASSERT_EXPR <name, expr OP limit>.
10363 (register_edge_assert_for_2): New helper registering
10364 asserts for comparisons. Recognize range tests of the form
10365 (unsigned)i - CST1 OP CST2.
10366 (register_edge_assert_for_1): Use it.
10367 (register_edge_assert_for): Likewise.
10368 (needs_overflow_infinity): Integer sub-types
10369 do not need overflow infinities.
10370 (vrp_val_is_max): The extreme values of integer sub-types
10371 are those of the base type.
10372 (vrp_val_is_min): Likewise.
10373 * tree.def (ASSERT_EXPR): Document extra allowed conditional
10376 2008-03-28 Nick Clifton <nickc@redhat.com>
10379 * config/mn10300/mn10300.c (mn10300_secondary_reload_class):
10380 Return GENERAL_REGS for stack adjustment reloads.
10382 2008-03-28 Andrew Pinski <andrew_pinski@playstation.sony.com>
10385 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Create a
10386 const_vector when all the vectors are constant.
10388 2008-03-27 Bob Wilson <bob.wilson@acm.org>
10390 * config/xtensa/xtensa.c (gen_float_relational): Handle unordered
10392 * config/xtensa/xtensa.md (any_cond): Add unordered comparisons.
10393 (any_scc_sf): Add uneq, unlt, unle and unordered operators.
10395 (s<code>_sf): Use new scc_sf attribute for opcode names.
10397 2008-03-27 Tom Tromey <tromey@redhat.com>
10399 * doc/sourcebuild.texi, doc/install.texi, configure, aclocal.m4,
10400 configure.ac, Makefile.in, config/t-darwin, config/m32c/t-m32c,
10401 config/spu/t-spu-elf, config/i386/t-interix,
10402 config/i386/t-cygming, config/i386/x-i386, config/i386/t-cygwin,
10403 config/i386/x-darwin, config/i386/x-mingw32,
10404 config/i386/t-netware, config/i386/x-cygwin, config/i386/t-nwld,
10405 config/sh/t-sh, config/sh/t-symbian, config/x-linux,
10406 config/t-sol2, config/x-hpux, config/x-darwin, config/ia64/t-ia64,
10407 config/x-solaris, config/t-vxworks, config/m68k/t-uclinux,
10408 config/rs6000/x-rs6000, config/rs6000/x-darwin64,
10409 config/rs6000/x-darwin, config/rs6000/t-rs6000,
10410 config/score/t-score-elf, config/arm/t-strongarm-pe,
10411 config/arm/t-pe, config/arm/t-arm, config/arm/t-wince-pe,
10412 config/v850/t-v850, config/v850/t-v850e, config/bfin/t-bfin-linux:
10413 Revert automatic dependency patch.
10415 2008-03-27 H.J. Lu <hongjiu.lu@intel.com>
10418 * config/i386/i386.c (ix86_function_arg_boundary): Align
10419 decimal floating point to its natural boundary.
10421 2008-03-27 Richard Guenther <rguenther@suse.de>
10423 PR middle-end/35716
10424 * fold-const.c (fold_comparison): Restrict distinct decl
10425 comparison folding to VAR_DECLs and PARM_DECLs. Do not
10426 solely rely on operand_equal_p.
10428 2008-03-27 Richard Guenther <rguenther@suse.de>
10431 * c-common.c (handle_weak_attribute): Reject combination of
10434 2008-03-27 Richard Guenther <rguenther@suse.de>
10436 PR tree-optimization/32810
10437 * tree-ssa-ccp.c (get_symbol_constant_value): Strip useless
10438 conversions from DECL_INITIAL.
10439 (fold_const_aggregate_ref): Likewise from constructor elements.
10441 2008-03-27 Zdenek Dvorak <ook@ucw.cz>
10443 * tree-affine.h (aff_combination_expand): Declare.
10444 (get_inner_reference_aff): Likewise.
10445 * tree-affine.c (aff_combination_expand): Split out from
10446 tree_to_aff_combination_expand.
10447 (get_inner_reference_aff): New function.
10448 * tree-parloops.c (loop_parallel_p): Free vectorizer info.
10449 * tree-ssa-loop-im.c: Include tree-affine.h and pointer-set.h.
10450 (struct lim_aux_data): sm_done field removed.
10451 (mem_ref_loc_p, mem_ref_locs_p): New types.
10452 (struct mem_ref): Added id, stored, accesses_in_loop,
10453 indep_loop, dep_loop, indep_ref, dep_ref fields.
10454 Removed is_stored, locs and next fields.
10455 (memory_accesses): New variable.
10456 (movement_possibility): Do not allow moving statements
10457 that store to memory.
10458 (outermost_indep_loop, simple_mem_ref_in_stmt, mem_ref_in_stmt):
10460 (determine_max_movement): For statements with memory references,
10461 find the outermost loop in that the reference is independent.
10462 (move_computations_stmt): Mark the virtual operands for renaming.
10463 (memref_free, mem_ref_alloc, mem_ref_locs_alloc, mark_ref_stored,
10464 gather_mem_refs_stmt, gather_mem_refs_in_loops, vtoe_hash, vtoe_eq,
10465 vtoe_free, record_vop_access, get_vop_accesses, get_vop_stores,
10466 add_vop_ref_mapping, create_vop_ref_mapping_loop,
10467 create_vop_ref_mapping, analyze_memory_references,
10468 cannot_overlap_p, mem_refs_may_alias_p, rewrite_mem_ref_loc,
10469 get_all_locs_in_loop, ref_always_accessed_p,
10470 refs_independent_p, record_indep_loop, ref_indep_loop_p_1,
10471 ref_indep_loop_p, can_sm_ref_p, find_refs_for_sm,
10472 store_motion_loop, store_motion): New functions.
10473 (struct vop_to_refs_elt): New type.
10474 (record_mem_ref_loc, free_mem_ref_locs, rewrite_mem_refs,
10475 memref_hash, memref_eq, hoist_memory_references): Rewritten.
10476 (schedule_sm): Replaced by...
10477 (execute_sm): ... this.
10478 (determine_lsm_ref, hoist_memory_references,
10479 loop_suitable_for_sm, gather_mem_refs_stmt, gather_mem_refs,
10480 find_more_ref_vops, free_mem_ref, free_mem_refs,
10481 determine_lsm_loop, determine_lsm): Removed.
10482 (tree_ssa_lim_finalize): Free data structures used by store motion.
10483 (tree_ssa_lim): Call analyze_memory_references. Use
10484 store_motion instead of determine_lsm.
10486 2008-03-27 Paolo Bonzini <bonzini@gnu.org>
10488 * config.cc (m68hc11, m6811, m68hc12, m6812): Add usegas.h,
10489 rename tmake_file to m68hc11/t-m68hc11.
10490 (mcore): Set inhibit_libc to true.
10491 * config.host (alpha*-dec-*vms*): Set extra_programs.
10492 (interix3*): Don't use host_xmake_file.
10493 * configure.ac: Let config.gcc override inhibit_libc.
10494 * configure: Regenerate.
10496 * config/alpha/x-vms (EXTRA_PROGRAMS): Remove.
10497 * config/t-openbsd-thread: Remove commented out lines.
10499 * config/x-interix: Remove.
10501 * config/m68hc11/t-m68hc11-gas: Rename to...
10502 * config/m68hc11/t-m68hc11: ... this. Remove T_CPPFLAGS.
10504 * config/mcore/t-mcore: Remove T_CFLAGS.
10505 * config/mcore/t-mcore-pe: Likewise.
10507 2008-03-27 Paolo Bonzini <bonzini@gnu.org>
10509 * configure.ac: Replace custom __GNU_SOURCE test with
10510 AC_USE_SYSTEM_EXTENSIONS. Move it earlier.
10511 * aclocal.m4: Regenerate.
10512 * configure: Regenerate.
10513 * config.in: Regenerate.
10515 2008-03-27 Richard Guenther <rguenther@suse.de>
10517 * fold-const.c (target.h): Include.
10518 (fold_comparison): Fold comparison of addresses of decls
10519 that bind locally or of constants. Consolidate address folding code.
10520 * tree-vrp.c (operand_less_p): Deal with non-INTEGER_CST
10521 results from fold_binary_to_constant.
10522 (compare_values_warnv): Likewise.
10524 2008-03-27 Andrew Pinski <pinskia@gmail.com>
10526 PR middle-end/35429
10527 * fold-const.c (fold_truthop): Check for integeral types when folding
10528 a == 0 && b == 0 and a != 0 || b != 0 .
10530 2008-03-26 Eric Botcazou <ebotcazou@adacore.com>
10532 * tree.c (get_unwidened): Remove code fiddling with COMPONENT_REF.
10534 2008-03-26 Andreas Schwab <schwab@suse.de>
10536 * doc/invoke.texi: Fix use of @item vs. @itemx.
10538 2008-03-26 Tom Tromey <tromey@redhat.com>
10540 * Makefile.in (build/gensupport.o, build/print-rtl.o,
10541 build/read-rtl.o, build/rtl.o, build/gencondmd.o, build/genattr.o,
10542 build/genattrtab.o, build/genautomata.o, build/gencheck.o,
10543 build/gencodes.o, build/genconditions.o, build/genconfig.o,
10544 build/genconstants.o, build/genemit.o, build/genextract.o,
10545 build/genflags.o, build/genmddeps.o, build/genopinit.o,
10546 build/genoutput.o, build/genpeep.o, build/genrecog.o): Depend on
10549 2008-03-26 Richard Guenther <rguenther@suse.de>
10552 2008-03-26 Richard Guenther <rguenther@suse.de>
10554 * fold-const.c (target.h): Include.
10555 (fold_comparison): Fold comparison of addresses of two decls
10556 that bind locally. Consolidate address folding code.
10558 2008-03-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10560 * builtins.c (expand_builtin_pow, fold_builtin_cabs,
10561 fold_builtin_sqrt, fold_builtin_cbrt, fold_builtin_logarithm,
10562 fold_builtin_hypot, fold_builtin_pow): Remove uses of dconst3,
10563 dconstsqrt2, dconstthird, dconste and/or dconst10.
10564 * config/i386/i386.c (ix86_emit_swsqrtsf): Likewise.
10565 * emit-rtl.c (dconst3, dconst10, dconstm2, dconstthird,
10566 dconstsqrt2, dconste): Delete.
10567 (init_emit_once): Likewise. Simplify initializing dconstm1.
10569 * real.c (get_real_const): New.
10570 * real.h (dconst3, dconst10, dconstm2, dconstthird,
10571 dconstsqrt2, dconste): Delete.
10572 (real_value_const, get_real_const): New.
10574 2008-03-26 H.J. Lu <hongjiu.lu@intel.com>
10576 * config/i386/cygming.h (BIGGEST_ALIGNMENT): Removed.
10578 * config/i386/i386.c (ix86_function_arg_boundary): Check
10579 BIGGEST_ALIGNMENT instead of 128.
10580 (setup_incoming_varargs_64): Likewise.
10582 2008-03-26 Tom Tromey <tromey@redhat.com>
10584 * Makefile.in (DEPFILES): Add missing '/'.
10586 2008-03-26 Richard Guenther <rguenther@suse.de>
10588 * fold-const.c (target.h): Include.
10589 (fold_comparison): Fold comparison of addresses of two decls
10590 that bind locally. Consolidate address folding code.
10592 2008-03-26 Nick Clifton <nickc@redhat.com>
10595 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p): Do
10596 not allow INT+INT as a legitimate addressing mode.
10598 2008-03-26 Richard Guenther <rguenther@suse.de>
10600 * tree-flow.h (widen_bitfield): Remove declaration.
10601 * tree-ssa-ccp.c (visit_assignment): Remove unneeded code.
10602 (widen_bitfield): Remove function.
10603 * tree-ssa-dom.c (record_equivalences_from_stmt): Remove unneeded
10606 2008-03-25 Andrew Pinski <andrew_pinski@playstation.sony.com>
10609 * config/rs6000/rs6000-c.c (rs6000_builtin_type_compatible): Handle
10612 2008-03-25 Richard Sandiford <rsandifo@nildram.co.uk>
10614 PR rtl-optimization/35232
10615 * reload1.c (reg_reloaded_call_part_clobbered): Clarify comment.
10616 (forget_old_reloads_1, forget_marked_reloads): Don't clear
10617 reg_reloaded_call_part_clobbered here.
10618 (reload_regs_reach_end_p): New function.
10619 (reload_reg_rtx_for_input): New variable.
10620 (reload_reg_rtx_for_output): Likewise.
10621 (emit_input_reload_insns): Use reloadreg rather than rl->reg_rtx
10622 when reassigning a pseudo register. Load reloadreg from
10623 reload_reg_rtx_for_input, moving the mode and register
10625 (do_input_reload): ...here. Use the mode-adjusted reg_rtx
10626 instead of the original when deciding whether an input reload
10627 would be a no-op or whether an output reload can be deleted.
10628 (emit_output_reload_insns): Use the mode-adjusted reg_rtx
10629 when setting up new_spill_reg_store. Load it from
10630 reload_reg_rtx_for_output, moving the mode and register
10632 (do_output_reload): ...here. Use the mode-adjusted reg_rtx
10633 instead of the original when deciding whether an output reload
10634 would be a no-op. Do the same when modifying insn notes.
10635 Use rtx_equal_p instead of == to compare the registers.
10636 (inherit_piecemeal_p): Take a mode and two register numbers
10638 (emit_reload_insns): Clear new_spill_reg_store for every hard
10639 register in the reload register. Remove spill registers
10640 from reg_reloaded_valid before considering whether to record
10641 inheritance information for them. Use reload_reg_rtx_for_output
10642 instead of reg_rtx when recording output reloads. Use
10643 reload_reg_rtx_for_input instead of reg_rtx when recording
10644 input reloads. Set or clear reg_reloaded_call_part_clobbered
10645 at the same time as setting reg_reloaded_valid.
10646 (delete_output_reload): Add a new_reload_reg parameter and use it
10647 instead of rld[j].reg_rtx.
10648 (emit_input_reload_insns, do_input_reload, do_output_reload): Adjust
10651 2008-03-25 Tom Tromey <tromey@redhat.com>
10653 * Makefile.in (build/gensupport.o): Depend on insn-modes.h.
10654 (build/genattr.o): Likewise.
10655 (build/genattrtab.o): Likewise.
10656 (build/gencodes.o): Likewise.
10657 (build/genconfig.o): Likewise.
10658 (build/genconstants.o): Likewise.
10659 (build/genemit.o): Likewise.
10660 (build/genextract.o): Likewise.
10661 (build/genflags.o): Likewise.
10663 2008-03-25 Bob Wilson <bob.wilson@acm.org>
10665 * config/xtensa/xtensa.c (xtensa_va_start): Use build_int_cst
10666 instead of size_int for integer types.
10667 (xtensa_gimplify_va_arg_expr): Likewise. Convert index to sizetype
10668 to match type of MINUS_EXPR.
10670 2008-03-25 Tom Tromey <tromey@redhat.com>
10672 * configure: Rebuilt.
10673 * configure.ac (BUILD_DEPMODE): Extract CCDEPMODE from temporary
10676 2008-03-25 Tom Tromey <tromey@redhat.com>
10678 * config/x-solaris (host-solaris.o): Update.
10679 * config/x-linux (host-linux.o): Update.
10680 * config/x-hpux (host-hpux.o): Update.
10681 * config/x-darwin (host-darwin.o): Update.
10682 * config/v850/t-v850e (v850-c.o): Update.
10683 * config/v850/t-v850 (v850-c.o): Update.
10684 * config/t-vxworks (vxworks.o): Update.
10685 * config/t-sol2 (sol2-c.o, sol2.o): Update.
10686 * config/t-darwin (darwin.o, darwin-c.o, darwin-driver.o): Update.
10687 * config/spu/t-spu-elf (spu-c.o): Update.
10689 * config/sh/t-symbian (sh-c.o): Update.
10690 (symbian.o): Update.
10691 * config/sh/t-sh (sh-c.o): Update.
10692 * config/score/t-score-elf (score7.o, score3.o): Update.
10693 * config/rs6000/x-rs6000 (driver-rs6000.o): Update.
10694 * config/rs6000/x-darwin64 (host-ppc64-darwin.o): Update.
10695 * config/rs6000/x-darwin (host-ppc-darwin.o): Update.
10696 * config/rs6000/t-rs6000 (rs6000-c.o): Update.
10697 (rs6000.o): Remove.
10698 * config/m68k/t-uclinux (generated_files): Add sysroot-suffix.h.
10699 * config/m32c/t-m32c (m32c-pragma.o): Update.
10700 * config/ia64/t-ia64 (ia64-c.o): Update.
10701 * config/i386/x-mingw32 (host-mingw32.o): Update.
10702 * config/i386/x-i386 (driver-i386.o): Update.
10703 * config/i386/x-darwin (host-i386-darwin.o): Update.
10704 * config/i386/x-cygwin (host-cygwin.o): Update.
10705 * config/i386/t-nwld (nwld.o): Update.
10706 * config/i386/t-netware (netware.o): Update.
10707 * config/i386/t-interix (winnt.o): Update.
10708 * config/i386/t-cygwin (cygwin1.o, cygwin2.o): Update.
10709 * config/i386/t-cygming (winnt.o, winnt-cxx.o, winnt-stubs.o,
10710 msformat-c.o): Update.
10711 * config/bfin/t-bfin-linux (generated_files): Add
10712 linux-sysroot-suffix.h.
10713 * config/arm/t-wince-pe (pe.o): Update.
10714 * config/arm/t-strongarm-pe (pe.o): Update.
10715 * config/arm/t-pe (pe.o): Update.
10716 * config/arm/t-arm (arm-c.o): Update.
10717 * doc/install.texi (Prerequisites): Require make 3.80.
10718 * Makefile.in: Remove .o targets.
10719 (CCDEPMODE, DEPDIR, depcomp, BUILD_DEPMODE): New variables.
10720 (OBSTACK_H, FIBHEAP_H, PARTITION_H, MD5_H, BCONFIG_H): Remove.
10721 (simple_generated_h, simple_generated_c): Move earlier.
10722 (generated_files): New variable.
10723 (TARGET_H, MACHMODE_H, HOOKS_H, HOSTHOOKS_DEF_H, LANGHOOKS_DEF_H,
10724 TARGET_DEF_H, RTL_BASE_H, RTL_H, PARAMS_H, BUILTINS_DEF, TREE_H,
10725 BASIC_BLOCK_H, GCOV_IO_H, COVERAGE_H, DEMANGLE_H, RECOG_H,
10726 ALIAS_H, EMIT_RTL_H, FLAGS_H, FUNCTION_H, EXPR_H, OPTABS_H,
10727 REGS_H, RA_H, RESOURCE_H, SCHED_INT_H, INTEGRATE_H, CFGLAYOUT_H,
10728 CFGLOOP_H, IPA_UTILS_H, IPA_REFERENCE_H, IPA_TYPE_ESCAPE_H,
10729 CGRAPH_H, DF_H, RESOURCE_H, DDG_H, GCC_H, GGC_H, TIMEVAR_H,
10730 INSN_ATTR_H, C_COMMON_H, C_PRAGMA_H, C_TREE_H, SYSTEM_H,
10731 PREDICT_H, DECNUM_H, MKDEPS_H, SYMTAB_H, TREE_DUMP_H,
10732 TREE_GIMPLE_H, TREE_FLOW_H, TREE_SSA_LIVE_H, PRETTY_PRINT_H,
10733 DIAGNOSTIC_H, C_PRETTY_PRINT_H, SCEV_H, LAMBDA_H, TREE_DATA_REF_H,
10734 VARRAY_H, TREE_INLINE_H, REAL_H, DBGCNT_H, EBIMAP_H): Remove.
10736 (COMPILE.base, COMPILE): New variables.
10737 (%.o): New pattern rule.
10738 (ALL_HOST_OBJS): New variable.
10739 (xgcc$(exeext), cpp$(exeext)): Remove extra version.o.
10740 (dummy-checksum.o, cc1-checksum.o): Remove.
10741 (DRIVER_SHLIB): New variable.
10742 (DRIVER_DEFINES): Use it.
10743 (gencondmd.c): Move out of build/.
10744 (s-conditions): Update.
10745 (BUILDCOMPILE.base, BUILDCOMPILE): New variables.
10746 (ALL_BUILD_OBJS): Likewise.
10747 (build/%.o): Use BUILDCOMPILE.
10748 (build/ggc-none.o, build/ggc-none.o, build/min-insn-modes.o,
10749 build/print-rtl.o, build/read-rtl.o, build/rtl.o, build/vec.o,
10750 build/gencondmd.o, build/genattrtab.o, build/genautomata.o,
10751 build/gencheck.o, build/gencodes.o, build/genconditions.o,
10752 build/genconfig.o, build/genconstants.o, build/genemit.o,
10753 build/genextract.o, build/genflags.o, build/genmddeps.o,
10754 build/genopinit.o, build/genoutput.o, build/genpeep.o,
10755 build/genpreds.o, build/genrecog.o, build/gcov-iov.o,
10756 build/gen-protos.o, build/scan.o, build/fix-header.o,
10757 build/scan-decls.o): Simplify.
10758 (collect2.o, c-opts.o, gcc.o, gccspec.o, gcc-options.o,
10759 cppdefault.o, protoize.o, unprotoize.o, intl.o, version.o,
10760 prefix.o, toplev.o): Reduce to variable setting.
10761 (libbackend.o): Use COMPILE. Remove most dependencies. Move later.
10762 ($(out_object_file), gcc-options.o): New targets.
10763 ($(ALL_HOST_OBJS)): New target. Include dependency files.
10764 * configure: Rebuilt.
10765 * configure.ac: Call ZW_CREATE_DEPDIR, ZW_PROG_COMPILER_DEPENDENCIES.
10766 * doc/sourcebuild.texi (Front End Directory): Document new variable.
10768 2008-03-25 Douglas Gregor <doug.gregor@gmail.com>
10770 * c-common.c (c_sizeof_or_alignof_type): If we're not allowed to
10771 complain when we hit an error, return ERROR_MARK_NODE.
10773 2008-03-25 Naveen.H.S <naveen.hs@kpitcummins.com>
10775 * config/sh/constraints.md (Pso, Psz): New constraints.
10776 * config/sh/sh.c (print_operand): Add %V and %W operand codes.
10777 * config/sh/sh.md (*andsi3_bclr, *iorsi3_bset): New insns.
10779 2008-03-25 Naveen.H.S <naveen.hs@kpitcummins.com>
10781 * config/sh/sh.c (sh_expand_t_scc): Emit movrt for SH2A if possible.
10782 * config/sh/sh.md (xorsi3_movrt, movrt): New insns.
10784 2008-03-25 Naveen.H.S <naveen.hs@kpitcummins.com>
10786 * config/sh/sh.md (prefetch): Add condition for SH2A target.
10787 (prefetch_sh2a): New.
10789 2008-03-25 Jayant Sonar <Jayant.sonar@kpitcummins.com>
10790 Naveen.H.S <naveen.hs@kpitcummins.com>
10792 * config/sh/constraints.md (I28): New constraint.
10793 * config/sh/sh.c (broken_move): Add support for movi20s.
10794 * config/sh/sh.md (movsi_ie): Add the alternative for movi20s.
10796 2008-03-25 Anil Paranjape <anil.paranjape@kpitcummins.com>
10797 Jayant Sonar <Jayant.sonar@kpitcummins.com>
10798 Naveen.H.S <naveen.hs@kpitcummins.com>
10800 * config/sh/sh.c (SH_ATTRIBUTES): Define.
10801 (SYMBOL_FLAG_FUNCVEC_FUNCTION): Define.
10802 (print_operand): Handle resbank in %@ operand code.
10803 (sh_encode_section_info): New.
10804 (push_regs): Add conditions for resbank.
10805 (sh_expand_epilogue): Likewise.
10806 (sh_insert_attributes): Likewise.
10807 (sh_attribute_table): Likewise.
10808 (sh_handle_resbank_handler_attribute): New.
10809 (sh2a_handle_function_vector_handler_attribute): New.
10810 (sh2a_is_function_vector_call): New.
10811 (sh2a_get_function_vector_number): New.
10812 (sh2a_function_vector_p): New.
10813 (sh_cfun_resbank_handler_p): New.
10814 * config/sh/sh.md (calli): Emit jsr/n if possible.
10815 (calli_tbr_rel): New.
10816 (calli_pcrel): Emit jsr/n if possible.
10817 (return_i): Emit rts/n if possible.
10818 (call_valuei_tbr_rel): New.
10819 (call_valuei_pcrel): Add condition for SH2A target.
10820 (call_value): Likewise.
10821 * config/sh/sh-protos.h (sh_cfun_resbank_handler_p): Declare.
10822 (sh2a_get_function_vector_number): Likewise.
10823 (sh2a_is_function_vector_call): Likewise.
10824 * doc/extend.texi: Document TBR relative addressing of SH2A.
10825 (resbank): Add description for SH2A.
10827 2008-03-24 Richard Guenther <rguenther@suse.de>
10830 * gimplify.c (gimplify_modify_expr): For frontend type-correct
10831 pointer assignments change conversions according to middle-end rules.
10832 (gimplify_modify_expr_rhs): Deal with NULL TARGET_EXPR_INITIAL.
10833 * configure.ac: Include type checking in yes.
10834 * configure: Regenerate.
10836 2008-03-24 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
10838 * diagnostic.c (diagnostic_count_diagnostic): Delete.
10839 (diagnostic_report_diagnostic): Update. Handle ICEs here.
10841 2008-03-24 Nathan Sidwell <nathan@codesourcery.com>
10843 * gthr-vxworks.h (UNUSED): Define.
10845 2008-03-23 H.J. Lu <hongjiu.lu@intel.com>
10847 * config/i386/i386.h (STATIC_CHAIN_REGNUM): Use R10_REG and CX_REG.
10849 2008-03-23 Zuxy Meng <zuxy.meng@gmail.com>
10851 * doc/extend.texi (Function Attributes): Add missing comma in the
10852 example of the "alloc_size" attribute.
10854 2008-03-23 Uros Bizjak <ubizjak@gmail.com>
10857 2008-03-05 H.J. Lu <hongjiu.lu@intel.com>
10859 * config/i386/i386-modes.def: Use 4 byte alignment on DI for
10862 2008-03-19 Uros Bizjak <ubizjak@gmail.com>
10865 * stor-layout.c (update_alignment_for_field): Set minimum alignment
10866 of the underlying type of a MS bitfield layout to the natural
10867 alignment of the type.
10869 2008-03-22 Uros Bizjak <ubizjak@gmail.com>
10871 * config/i386/i386.c (assign_386_stack_local): Align DImode slots
10872 to their natural alignment to avoid store forwarding stalls.
10874 2008-03-22 Richard Guenther <rguenther@suse.de>
10876 * tree-cfg.c (verify_expr): Recurse again for invariant addresses.
10877 For PHI nodes verify the address is invariant.
10878 * tree-ssa-ccp.c (ccp_decl_initial_min_invariant): Remove.
10879 (get_symbol_constant_value): Use is_gimple_min_invariant.
10880 (maybe_fold_stmt_indirect): Likewise.
10882 2008-03-22 Richard Sandiford <rsandifo@nildram.co.uk>
10884 PR rtl-optimization/33927
10885 * Makefile.in (dse.o): Depend on $(TM_P_H).
10886 * expr.h (extract_low_bits): Declare.
10887 * expmed.c (extract_low_bits): New function.
10888 * rtlhooks.c (gen_lowpart_general): Generalize SUBREG handling.
10889 * dse.c: Include tm_p.h.
10890 (find_shift_sequence): Remove the read_reg argument and return the
10891 read value. Emit the instructions instead of returning them.
10892 Iterate on new_mode rather than calculating it each time.
10893 Check MODES_TIEABLE_P. Use simplify_gen_subreg to convert the
10894 source to NEW_MODE and extract_low_bits to convert the shifted
10895 value to READ_MODE.
10896 (replace_read): Allow the load and store to have different mode
10897 classes. Use extract_low_bits when SHIFT == 0. Create the shift
10898 or extraction instructions before trying the replacement. Update
10899 dump-file code accordingly, avoiding use of REGNO (store_info->rhs).
10901 2008-03-22 Uros Bizjak <ubizjak@gmail.com>
10903 * config/i386/i386.c (assign_386_stack_local): Align DImode slots
10904 to their natural alignment to avoid store forwarding stalls.
10906 2008-03-21 Andrew Pinski <andrew_pinski@playstation.sony.com>
10909 * config/rs6000/rs6000.md (floatdidf2): Discouraging fprs and
10910 encouraging but not allowing gprs for input;
10911 change the input constraint to !f#r.
10912 (fix_truncdfdi2): Discouraging fprs and encouraging but not allowing
10914 change the output constraint to !f#r.
10916 2008-03-21 Uros Bizjak <ubizjak@gmail.com>
10919 * config/i386/i386.md ("*floatunssi<mode2>_1"): New pattern with
10920 corresponding post-reload splitters.
10921 ("floatunssi<mode>2"): Expand to unsigned_float x87 insn pattern
10922 when x87 FP math is selected.
10923 * config/i386/i386-protos.h (ix86_expand_convert_uns_sixf_sse):
10924 New function prototype.
10925 * config/i386/i386.c (ix86_expand_convert_uns_sixf_sse): New
10926 unreachable function to ease macroization of insn patterns.
10928 2008-03-21 Martin Jambor <mjambor@suse.cz>
10930 * tree-data-ref.c (dump_data_dependence_relation): Avoid data
10931 reference dumps if ddr is NULL or dependence is unknown.
10933 2008-03-20 Kaz Kojima <kkojima@gcc.gnu.org>
10935 * config/sh/linux-atomic.asm (ATOMIC_TEST_AND_SET): Take
10936 unsigned extension into account.
10937 (ATOMIC_COMPARE_AND_SWAP): Likewise.
10938 (ATOMIC_FETCH_AND_OP, ATOMIC_FETCH_AND_COMBOP): Likewise.
10939 Do computations on a scratch register.
10941 2008-03-21 Richard Guenther <rguenther@suse.de>
10943 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
10944 Use is_gimple_min_invariant instead of TREE_INVARIANT.
10945 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Likewise.
10946 * tree-ssa-dom.c (record_equality): Likewise.
10947 * tree-inline.c (copy_body_r): Likewise.
10948 * tree-ssa-pre.c (make_values_for_stmt): Remove test for
10951 2008-03-20 Kaz Kojima <kkojima@gcc.gnu.org>
10953 * config/sh/sh.c (split_branches): Pass zero to redirect_jump
10954 as 'delete_unused' argument.
10956 2008-03-20 Richard Guenther <rguenther@suse.de>
10958 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Remove
10959 special casing of constant qualifiers.
10960 * tree-ssa.c (useless_type_conversion_p_1): Instead do not
10961 care about them in general.
10962 * tree-ssa-ccp.c (ccp_fold): Addresses are constant or not
10963 regardless of their type.
10964 (fold_stmt_r): Forcefully fold *& if we end up with that.
10966 2008-03-20 Paul Brook <paul@codesourcery.com>
10968 * config.gcc (arm*-*-uclinux*): Remove duplicate arm/uclinux-elf.h.
10969 * config/arm/uclinux-eabi.h (SUBTARGET_EXTRA_LINK_SPEC): Add extra
10971 * config/arm/bpabi.h (SUBTARGET_EXTRA_LINK_SPEC): Provide default
10973 (LINK_SPEC): Use SUBTARGET_EXTRA_LINK_SPEC.
10974 * config/arm/unwind-arm.h (_Unwind_decode_target2): Add uClinux.
10976 2008-03-20 Volker Reichelt <v.reichelt@netcologne.de>
10978 * common.opt (Wmudflap): New option.
10979 * tree-mudflap.c (mf_xform_derefs_1): Guard warning by OPT_Wmudflap.
10980 (mx_register_decls): Likewise.
10981 (mudflap_finish_file): Likewise.
10982 * doc/invoke.texi: Document -Wno-mudflap.
10984 2008-03-20 Kai Tietz <kai.tietz@onevision.com>
10986 * c-format.c (replace_format_name_to_system_name): New.
10987 (cmp_attribs): New.
10988 (convert_format_name_to_system_name): New.
10989 (decode_format_attr): Add use of convert_format_name_to_system_name.
10990 (format_types_orig): Add gnu_ prefix to names.
10991 (check_format_info_main): Special treating of \0 escaped names for
10992 supporting multi-character format specifiers as I32, I64.
10993 (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): Use of user defined attributes.
10994 (gnu_target_overrides_format_attributes): New.
10995 * c-format.h: Add structure target_ovr_attr to hold
10996 system specific formatter names.
10997 * config.gcc: Add for x86&x86_64 cygwin and mingw32 targets the
10998 msformat-c.o file to c_target_objs and cxx_target_objs.
10999 * config/i386/mingw32.h (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): New.
11000 (TARGET_OVERRIDES_FORMAT_ATTRIBUTES_COUNT): New.
11001 (TARGET_N_FORMAT_TYPES): New.
11002 * config/i386/msformat-c.c: New.
11003 * config/i386/t-cygming: Add build rule for msformat-c.o.
11004 * doc/extend.texi: Add new format names gnu_* and ms_* and
11006 * doc/tm.texi: (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): New.
11008 2008-03-20 Ira Rosen <irar@il.ibm.com>
11010 * doc/invoke.texi (-O3): Add -ftree-vectorize to the list of
11011 optimizations turned on under -O3.
11012 (ftree-vectorize): Add that the flag is turned on with -O3.
11014 2008-03-20 Ben Elliston <bje@au.ibm.com>
11016 * regmove.c (try_auto_increment): Fix spelling error in comment.
11017 * final.c (final_scan_insn): Likewise.
11019 2008-03-20 Uros Bizjak <ubizjak@gmail.com>
11022 * config/i386/mmx.md (*mov<mode>_internal_rex64"): Adjust register
11023 allocator preferences for "y" and "r" class registers.
11024 ("*mov<mode>_internal"): Ditto.
11025 ("*movv2sf_internal_rex64"): Ditto.
11026 ("*movv2sf_internal"): Ditto.
11028 2008-03-19 Michael Matz <matz@suse.de>
11030 PR middle-end/35616
11031 * calls.c (expand_call): Check overlap of arguments with call
11032 address for sibcalls.
11034 2008-03-19 Uros Bizjak <ubizjak@gmail.com>
11037 * stor-layout.c (update_alignment_for_field): Set minimum alignment
11038 of the underlying type of a MS bitfield layout to the natural
11039 alignment of the type.
11041 2008-03-19 Jan Hubicka <jh@suse.cz>
11044 * toplev.c (decode_d_option): Handle all CPP flags.
11045 * tree-vrp.c: Update tree_pass descriptors.
11046 * regrename.c: Update tree_pass descriptors.
11047 * fwprop.c: Update tree_pass descriptors.
11048 * doc/invoke.texi: Remove documentation of dropped -d? flags.
11049 * tree-into-ssa.c: Update tree_pass descriptors.
11050 * tree-dump.c: Update tree_pass descriptors.
11051 * tree-complex.c: Update tree_pass descriptors.
11052 * tree-dump.h: Update tree_pass descriptors.
11053 * see.c: Update tree_pass descriptors.
11054 * cgraphbuild.c: Update tree_pass descriptors.
11055 * tracer.c: Update tree_pass descriptors.
11056 * tree-loop-distribution.c: Update tree_pass descriptors.
11057 * cgraph.c: Update tree_pass descriptors.
11058 * postreload-gcse.c: Update tree_pass descriptors.
11059 * postreload.c: Update tree_pass descriptors.
11060 * tree-ssa-loop-ch.c: Update tree_pass descriptors.
11061 * tree-tailcall.c: Update tree_pass descriptors.
11062 * tree-pass.h (tree_opt_pass): Rename to ...
11063 (opt_pass) ... this one; add "type" field and remove letter field.
11064 (gimple_opt_pass, rtl_opt_pass, simple_ipa_opt_pass): New.
11065 (execute_pass_list, execute_ipa_pass_list, all_passes, all_ipa_passes,
11066 all_lowering_passes): Update declaration.
11067 * ipa-cp.c: Update tree_pass descriptors.
11068 * final.c: Update tree_pass descriptors.
11069 * omp-low.c: Update tree_pass descriptors.
11070 * tree-ssa-dse.c: Update tree_pass descriptors.
11071 * ipa-reference.c: Update tree_pass descriptors.
11072 * tree-ssa-uncprop.c: Update tree_pass descriptors.
11073 * auto-inc-dec.c: Update tree_pass descriptors.
11074 * reorg.c: Update tree_pass descriptors.
11075 * cgraphunit.c: Update tree_pass descriptors.
11076 * tree-ssa-copyrename.c: Update tree_pass descriptors.
11077 * tree-ssa-ccp.c: Update tree_pass descriptors.
11078 * df-core.c: Update tree_pass descriptors.
11079 * mode-switching.c: Update tree_pass descriptors.
11080 * tree-nomudflap.c: Update tree_pass descriptors.
11081 * modulo-sched.c: Update tree_pass descriptors.
11082 * ipa-pure-const.c: Update tree_pass descriptors.
11083 * cse.c: Update tree_pass descriptors.
11084 * web.c: Update tree_pass descriptors.
11085 * tree-stdarg.c: Update tree_pass descriptors.
11086 * tree-ssa-math-opts.c: Update tree_pass descriptors.
11087 * tree-ssa-dom.c: Update tree_pass descriptors.
11088 * tree-nrv.c: Update tree_pass descriptors.
11089 * tree-ssa-alias.c: Update tree_pass descriptors.
11090 * loop-init.c: Update tree_pass descriptors.
11091 * gimple-low.c: Update tree_pass descriptors.
11092 * ipa-inline.c: Update tree_pass descriptors.
11093 * tree-ssa-sink.c: Update tree_pass descriptors.
11094 * global.c: Update tree_pass descriptors.
11095 * ifcvt.c: Update tree_pass descriptors.
11096 * jump.c: Update tree_pass descriptors.
11097 * predict.c: Update tree_pass descriptors.
11098 * tree-ssa-loop.c: Update tree_pass descriptors.
11099 * recog.c: Update tree_pass descriptors.
11100 * dse.c: Update tree_pass descriptors.
11101 * tree-ssa-ifcombine.c: Update tree_pass descriptors.
11102 * tree-eh.c: Update tree_pass descriptors.
11103 * regmove.c: Update tree_pass descriptors.
11105 * function.c: Update tree_pass descriptors.
11106 * tree-vectorizer.c: Update tree_pass descriptors.
11107 * gcse.c: Update tree_pass descriptors.
11108 * ipa-type-escape.c: Update tree_pass descriptors.
11109 * tree-if-conv.c: Update tree_pass descriptors.
11110 * init-regs.c: Update tree_pass descriptors.
11111 * ipa.c: Update tree_pass descriptors.
11112 * tree-ssa-phiopt.c: Update tree_pass descriptors.
11113 * rtl-factoring.c: Update tree_pass descriptors.
11114 * lower-subreg.c: Update tree_pass descriptors.
11115 * bt-load.c: Update tree_pass descriptors.
11116 * tree-dfa.c: Update tree_pass descriptors.
11117 * except.c: Update tree_pass descriptors.
11118 * emit-rtl.c: Update tree_pass descriptors.
11119 * cfgexpand.c: Update tree_pass descriptors.
11120 * tree-cfgcleanup.c: Update tree_pass descriptors.
11121 * cfgcleanup.c: Update tree_pass descriptors.
11122 * tree-ssa-pre.c: Update tree_pass descriptors.
11123 * tree-sra.c: Update tree_pass descriptors.
11124 * tree-mudflap.c: Update tree_pass descriptors.
11125 * tree-ssa-copy.c: Update tree_pass descriptors.
11126 * cfglayout.c: Update tree_pass descriptors.
11127 * tree-ssa-forwprop.c: Update tree_pass descriptors.
11128 * tree-ssa-dce.c: Update tree_pass descriptors.
11129 * tree-ssa.c: Update tree_pass descriptors.
11130 * regclass.c: Update tree_pass descriptors.
11131 * integrate.c: Update tree_pass descriptors.
11132 * tree-optimize.c: Update tree_pass descriptors.
11133 * tree-ssa-phiprop.c: Update tree_pass descriptors.
11134 * tree-object-size.c: Update tree_pass descriptors.
11135 * combine.c: Update tree_pass descriptors.
11136 * tree-outof-ssa.c: Update tree_pass descriptors.
11137 * bb-reorder.c: Update tree_pass descriptors.
11138 * stack-ptr-mod.c: Update tree_pass descriptors.
11139 * var-tracking.c: Update tree_pass descriptors.
11140 * tree-profile.c: Update tree_pass descriptors.
11141 * tree-vect-generic.c: Update tree_pass descriptors.
11142 * reg-stack.c: Update tree_pass descriptors.
11143 * sched-rgn.c: Update tree_pass descriptors.
11144 * tree-ssa-structalias.c: Update tree_pass descriptors.
11145 * tree-cfg.c: Update tree_pass descriptors.
11146 * passes.c (current_pass): Update declaration.
11147 (finish_optimization_passes): Update.
11148 (all_passes, all_ipa_passes, all_lowering_passes): Update declaration.
11149 (register_one_dump_file, register_dump_files_1, next_pass_1):
11151 (init_optimization_passes): Update handling of new types.
11152 (execute_one_pass, execute_pass_list, execute_ipa_pass_list): Update.
11153 * ipa-struct-reorg.c: Update tree_pass descriptors.
11154 * tree-ssa-reassoc.c: Update tree_pass descriptors.
11155 * combine-stack-adj.c: Update tree_pass descriptors.
11156 * cfgrtl.c: Update tree_pass descriptors.
11157 * dce.c: Update tree_pass descriptors.
11158 * tree-ssanames.c: Update tree_pass descriptors.
11160 2008-03-19 Richard Guenther <rguenther@suse.de>
11162 PR middle-end/35609
11163 * tree-ssa.c (walk_data): New structure.
11164 (warn_uninitialized_var): If not always_executed warn with "maybe"
11166 (execute_early_warn_uninitialized): Compute post-dominators.
11167 Initialize always_executed before processing each basic block.
11169 2008-03-18 Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz>
11172 * config/i386/i386.c (x86_this_parameter): Calculate correct location
11173 of "this" pointer when "regparm = N" or "fastcall" is in effect.
11175 2008-03-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11177 * doc/include/texinfo.tex: Update to version 2008-03-17.10.
11179 2008-03-18 Paolo Bonzini <bonzini@gnu.org>
11181 * expr.c (store_expr): Assume lang_hooks.reduce_bit_field_operations
11183 (expand_expr_real_1) <REDUCE_BIT_FIELD>: Don't look at ignore.
11184 (expand_expr_real_1): Assume lang_hooks.reduce_bit_field_operations
11185 is true. Add "&& !ignore" condition to reduce_bit_field. Modify
11186 target after ignore has been set, and move there also the commputation
11187 of subtarget and original_target.
11188 * langhooks-def.h (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): Delete.
11189 (LANG_HOOKS_INITIALIZER): Remove it.
11190 * langhooks.h (struct lang_hooks): Remove reduce_bit_field_operations.
11192 2008-03-18 Richard Guenther <rguenther@suse.de>
11194 * tree-ssa-sccvn.c (visit_reference_op_load): If the lookup
11195 found an expression with constants, note that in the VN for the lhs.
11196 * tree-ssa-pre.c (eliminate): Visit COND_EXPR statements and
11197 fold them to constants if possible. Run cleanup_cfg if done so.
11198 (execute_pre): Return todo.
11199 (do_pre): Likewise.
11200 (execute_fre): Likewise.
11201 * tree-ssa-forwprop.c (can_propagate_from): Allow propagation
11203 (get_prop_source_stmt): Look through pointer conversions.
11205 2008-03-18 Jan Hubicka <jh@suse.cz>
11207 * tree-pretty-print.c: Include predict.h.
11208 (dump_generic_node): Dump predictor.
11209 * tree.h (PREDICT_EXPR_OUTCOME, PREDICT_EXPR_PREDICTION): Update.
11210 * tree-gimple.c (is_gimple_stmt): Add PREDICT_EXPR.
11211 * gimple-low.c (lower_stmt): Likewise.
11212 * expr.c (expand_expr_real): Likewise.
11213 * predict.c (tree_bb_level_predictions): Use PREDICT_EXPRs and remove
11215 (build_predict_expr, build_predict_expr): New.
11216 * predict.h (predictor_name, build_predict_expr): Update.
11217 * c-typeck.c (c_finish_bc_stmt): Add prediction.
11218 * gimplify.c (gimplify_expr): Add PREDICT_EXPR.
11219 * predict.def (PRED_CONTINUE): Update hitrate.
11220 * tree.def (PREDICT_EXPR): Define.
11221 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Mark PREDICT_EXPR;
11222 do not handle BIND_EXPR.
11223 * tree-inline.c (estimate_num_insns_1): PREDICT_EXPR is free.
11224 * tree-cfg.c (verify_gimple_stmt): PREDICT_EXPR is valid.
11225 * tree-ssa-operands.c (get_expr_operands): PREDICT_EXPR takes no
11228 2008-03-18 Michael Matz <matz@suse.de>
11230 * gcov-io.h (__gcov_merge_ior, __gcov_fork): Mark hidden.
11232 2008-03-18 Richard Guenther <rguenther@suse.de>
11234 * tree-gimple.h (is_gimple_invariant_address): Declare.
11235 (is_gimple_constant): Likewise.
11236 * tree-gimple.c (is_gimple_constant): New function.
11237 (is_gimple_invariant_address): Likewise.
11238 (is_gimple_min_invariant): Implement in terms of is_gimple_constant
11239 and is_gimple_invariant_address.
11240 * tree-ssa-loop-niter.c (expand_simple_operations): Revert
11242 * tree-data-ref.c (get_references_in_stmt): A SSA_NAME is not
11243 an addressable base.
11245 2008-03-18 Jakub Jelinek <jakub@redhat.com>
11247 PR middle-end/35611
11248 * gimplify.c (gimplify_expr): Gimplify second operand of
11251 2008-03-17 Richard Guenther <rguenther@suse.de>
11253 PR tree-optimization/19637
11254 * fold-const.c (fold_unary): Remove restrictions of removing
11255 intermediate pointer-conversions (P2)(P1)P0.
11256 * tree-ssa-ccp.c (maybe_fold_stmt_addition): Recover from
11257 conversion to void pointer.
11258 (get_maxval_strlen): Handle addresses of the form &(*p)[0].
11260 2008-03-16 James E. Wilson <wilson@tuliptree.org>
11263 * dbxout.c (dbxout_expand_expr, case VAR_DECL): Return NULL for
11264 emulated thread local variables.
11266 2008-03-16 Richard Guenther <rguenther@suse.de>
11268 PR middle-end/35607
11269 * tree-ssa-loop-niter.c (expand_simple_operations): Do not
11270 expand TREE_INVARIANT operations that are not gimple invariant.
11272 2008-03-16 Hans-Peter Nilsson <hp@axis.com>
11274 * doc/extend.texi (Alignment): Say that the ABI controls
11275 the __alignof__ for non-strict-alignment targets rather
11276 than being a recommendation.
11278 2008-03-15 Paul Brook <paul@codesourcery.com>
11280 * config/arm/arm.c (arm_unwind_emit): Suppress unused unwinding
11282 (arm_output_fn_unwind): Mark functions that can not be unwound.
11284 2008-03-15 Paul Brook <paul@codesourcery.com>
11286 * config/arm/arm.c (arm_rtx_costs_1): Add costs for ARMv6 value
11287 extension instructions.
11289 2008-03-15 Richard Guenther <rguenther@suse.de>
11291 * tree-ssa-ccp.c (ccp_fold): Also read from constant values
11292 and fold constant aggregate refs.
11293 (fold_const_aggregate_ref): Handle string constants
11294 and constructors in ARRAY_REFs. Handle INDIRECT_REF.
11295 (evaluate_stmt): Simplify now that ccp_fold folds constant
11298 2008-03-15 Paul Brook <paul@codesourcery.com>
11300 * config/arm/arm.md (insv): Use gen_insv_t2 and gen_insv_zero.
11301 (extzv): Use gen_extzv_t2.
11302 (insv_t2, insv_zero, extv, extzv_t2): New patterns.
11304 2008-03-15 Richard Guenther <rguenther@suse.de>
11306 * tree-ssa-ccp.c (get_symbol_constant_value): Export.
11307 (fold_const_aggregate_ref): Likewise.
11308 (get_value): Return NULL if we don't have any values.
11309 (ccp_finalize): Set const_val to NULL after freeing it.
11310 * tree-flow.h (get_symbol_constant_value): Declare.
11311 (fold_const_aggregate_ref): Likewise.
11312 * tree-ssa-sccvn.c (try_to_simplify): Use them.
11314 2008-03-15 Richard Guenther <rguenther@suse.de>
11316 PR middle-end/35593
11317 * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Make sure
11318 to not produce negative array indices if not allowed. Add
11319 parameter to indicate that.
11320 (maybe_fold_offset_to_component_ref): Allow negative array
11321 indices only for the first member of a structure.
11322 (maybe_fold_offset_to_reference): Allow negative array indices.
11323 (maybe_fold_stmt_addition): Likewise.
11325 2008-03-15 Bjoern Haase <bjoern.m.haase@web.de>
11326 Anatoly Sokolov <aesok@post.ru>
11328 * config/avr/avr.c (avr_arch_types): Add avr6 entry.
11329 (avr_arch): Add ARCH_AVR6.
11330 (avr_mcu_types): Add 'atmega2560' and 'atmega2561' entry.
11331 (initial_elimination_offset): Initialize and use 'avr_pc_size'
11332 instead of fixed value 2.
11333 (print_operand_address): Use gs() asm specifier instead of pm().
11334 (avr_assemble_integer): (Ditto.).
11335 (avr_output_addr_vec_elt): (Ditto.).
11336 (print_operand): Handle "!" code.
11337 * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): Add
11338 __AVR_3_BYTE_PC__, __AVR_2_BYTE_PC__ and __AVR_HAVE_JMP_CALL__.
11339 (AVR_HAVE_EIJMP_EICALL): Define.
11340 (AVR_3_BYTE_PC): Redefine.
11341 (AVR_2_BYTE_PC): (Ditto.).
11342 (PRINT_OPERAND_PUNCT_VALID_P): Add '!' code.
11343 (LINK_SPEC): Add atmega2560 and atmega2561.
11344 (CRT_BINUTILS_SPEC): Add atmega2560 (crtm2560.o) and atmega2561
11346 * config/avr/avr.md (call_insn): Use eicall instead of icall
11347 for 3 byte PC devices.
11348 (call_value_insn): (Ditto.).
11349 (*tablejump_enh): Use eijmp instead of ijmp for 3 byte PC devices.
11350 (indirect_jump): Use only for for 2 byte PC devices.
11351 (*tablejump): (Ditto.).
11352 (*indirect_jump_avr6): Add insn.
11353 (*tablejump_rjmp): Don't use for 3 byte PC devices.
11354 * config/avr/libgcc.S (__prologue_saves__): Use eijmp
11355 instead of ijmp for 3 byte PC devices.
11356 (__tablejump2__): (Ditto.).
11357 * config/avr/t-avr (MULITLIB_OPTIONS): Add avr6 architecture.
11358 (MULITLIB_DIRNAMES): (Ditto.).
11359 (MULTILIB_MATCHES): Add atmega2560 and atmega2561 to list.
11361 2008-03-15 Uros Bizjak <ubizjak@gmail.com>
11363 * config/i386/mmx.md ("sse2_umulv1siv2di3"): Rename from
11364 "sse2_umulsidi3". Use V1DI mode for operand 0.
11365 ("mmx_psadbw"): Use V1DI mode for operand 0.
11366 * config/i386/i386-modes.def (V1SI): New vector mode.
11367 * config/i386/i386.c (struct builtin_description)
11368 [IX86_BUILTIN_PMULUDQ]: Use CODE_FOR_sse2_umulv1siv1di3.
11369 (v1di_ftype_v8qi_v8qi): Rename from di_ftype_v8qi_v8qi.
11370 (v1di_ftype_v2si_v2si): Rename from di_ftype_v2si_v2si.
11371 (ix86_init_mmx_sse_builtins) [__builtin_ia32_psadbw]: Use
11372 v1di_ftype_v8qi_v8qi type.
11373 [__builtin_ia32_pmuludq]: Use v1di_ftype_v2si_v2si type.
11375 * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psadbw,
11376 __builtin_ia32_pmuludq]: Fix the mode of return value.
11378 2008-03-15 Richard Guenther <rguenther@suse.de>
11380 PR middle-end/35595
11381 * tree-ssa-pre.c (bitmap_find_leader): Handle expression
11384 2008-03-14 Bob Wilson <bob.wilson@acm.org>
11386 * doc/invoke.texi (Option Summary, Xtensa Options): Document
11387 -mserialize-volatile and -mno-serialize-volatile Xtensa options.
11388 * config/xtensa/xtensa.c (print_operand): Do not emit MEMW instructions
11389 unless TARGET_SERIALIZE_VOLATILE is enabled.
11390 * config/xtensa/xtensa.md (*lsiu, *ssiu): Likewise.
11391 * config/xtensa/xtensa.h (TARGET_DEFAULT): Add MASK_SERIALIZE_VOLATILE.
11392 * config/xtensa/xtensa.opt (mserialize_volatile): New option.
11394 2008-03-14 Richard Guenther <rguenther@suse.de>
11396 PR tree-optimization/34172
11397 * tree-flow.h (refs_may_alias_p): Declare.
11398 (get_single_def_stmt): Likewise.
11399 (get_single_def_stmt_from_phi): Likewise.
11400 (get_single_def_stmt_with_phi): Likewise.
11401 * tree-dfa.c (refs_may_alias_p): New function.
11402 (get_single_def_stmt): Likewise.
11403 (get_single_def_stmt_from_phi): Likewise.
11404 (get_single_def_stmt_with_phi): Likewise.
11405 * tree-ssa-sccvn.c (get_def_ref_stmt_vuses): New function.
11406 (vn_reference_lookup_1): New helper function.
11407 (vn_reference_lookup): Walk the virtual use-def chain to
11408 continue searching for a match if the def does not alias the
11409 reference we are looking for.
11411 2008-03-14 David Edelsohn <edelsohn@gnu.org>
11413 * doc/install.texi (Binaries): Remove UCLA archive. Add HVCC
11414 archive and Perzl. Update The Written Word listing.
11416 2008-03-14 Richard Guenther <rguenther@suse.de>
11418 PR tree-optimization/34043
11419 PR tree-optimization/33989
11420 * tree-ssa-pre.c (execute_pre): Allow SCCVN to do insertion
11422 (bitmap_find_leader): Use extra argument to verify dominance
11423 relationship inside a basic-block.
11424 (can_PRE_operation): Add VIEW_CONVERT_EXPR.
11425 (find_leader_in_sets): Adjust.
11426 (create_component_ref_by_pieces): Take extra argument for
11427 dominance check, handle lookup failures.
11428 (find_or_generate_expression): Likewise.
11429 (create_expression_by_pieces): Likewise.
11430 (insert_into_preds_of_block): Adjust.
11431 (create_value_expr_from): If asked for, verify all operands
11432 are in the blocks AVAIL_OUT set.
11433 (make_values_for_stmt): Check for SSA_NAMEs that are life
11434 over an abnormal edge.
11435 (compute_avail): Remove such check.
11436 (do_SCCVN_insertion): New function.
11437 (eliminate): If we do not find a leader suitable for replacement
11438 insert a replacement expression from SCCVN if available.
11439 * tree-ssa-sccvn.h (run_scc_vn): Update prototype.
11440 (struct vn_ssa_aux): Add needs_insertion flag.
11441 * tree-ssa-sccvn.c (may_insert): New global flag.
11442 (copy_reference_ops_from_ref): Value-number union member access
11443 based on its size, not type and member if insertion is allowed.
11444 (visit_reference_op_load): For a weak match from union type
11445 punning lookup a view-converted value and insert a SSA_NAME
11446 for that value if that is not found.
11447 (visit_use): Make dumps shorter. Do not disallow value numbering
11448 SSA_NAMEs that are life over an abnormal edge to constants.
11449 (free_scc_vn): Release inserted SSA_NAMEs.
11450 (run_scc_vn): New flag to specify whether insertion is allowed.
11451 Process SSA_NAMEs in forward order.
11452 * tree-ssa-loop-im.c (for_each_index): Handle invariant
11453 ADDR_EXPRs inside VIEW_CONVERT_EXPR.
11454 * fold-const.c (fold_unary): Fold VIEW_CONVERT_EXPRs from/to
11455 pointer type to/from integral types that do not change the
11456 precision to regular conversions.
11458 2008-03-13 Uros Bizjak <ubizjak@gmail.com>
11460 * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psll?,
11461 __builtin_ia32_psrl?, __builtin_ia32_psra?, __builtin_ia32_psll?i,
11462 __builtin_ia32_psrl?i, __builtin_ia32_psra?i, __builtin_ia32_psll?128,
11463 __builtin_ia32_psrl?128, __builtin_ia32_psra?128]: Fix the mode of
11464 input arguments and the mode of return value. Built-in functions
11465 that operate on whole 64-bit MMX register now use V1DI mode.
11467 2008-03-13 Alon Dayan <alond@il.ibm.com>
11468 Olga Golovanevsky <olga@il.ibm.com>
11470 PR tree-optimization/35041
11471 * ipa-struct-reorg.c (find_pos_in_stmt_1): Add another option
11472 to locate the right position in a statement.
11474 2008-03-13 Uros Bizjak <ubizjak@gmail.com>
11478 * config/i386/xmmintrin.h: Change all static inline functions to
11479 extern inline and add __gnu_inline__ attribute.
11480 * config/i386/bmintrin.h: Ditto.
11481 * config/i386/smmintrin.h: Ditto.
11482 * config/i386/tmmintrin.h: Ditto.
11483 * config/i386/mmintrin-common.h: Ditto.
11484 * config/i386/ammintrin.h: Ditto.
11485 * config/i386/emmintrin.h: Ditto.
11486 * config/i386/pmmintrin.h: Ditto.
11487 * config/i386/mmintrin.h: Ditto.
11488 * config/i386/mm3dnow.h: Ditto.
11490 2008-03-13 Jakub Jelinek <jakub@redhat.com>
11492 PR middle-end/35185
11493 * omp-low.c (lower_regimplify, init_tmp_var, save_tmp_var): Removed.
11494 (lower_omp_2): New function.
11495 (lower_omp_1, lower_omp): Rewritten.
11497 2008-03-13 Danny Smith <dannysmith@users.sourceforge.net>
11500 * doc/extend.texi (Structure-Packing Pragmas): Replace "Win32"
11501 with the phrase "Microsoft Windows compilers".
11502 (Push/Pop Macro Pragmas): New subsection. Document
11503 #pragma push_macro and pragma pop_macro.
11505 2008-03-12 Paul Brook <paul@codesourcery.com>
11507 * config/arm/arm.c (output_move_double): Prefer LDRD to LDM.
11509 2008-03-12 Paul Brook <paul@codesourcery.com>
11511 * config/arm/thumb2.md: Extend peephole to cover 3-arg subs.
11512 (thumb2_alusi3_short): Exclude PLUS and MINUS.
11513 (thumb2_addsi_shortim): Rename ...
11514 (thumb2_addsi_short): ... to this. Allow register operands.
11515 (thumb2_subsi_short): New pattern.
11516 (thumb2_one_cmplsi2_short,
11517 thumb2_negsi2_short): New patterns and peepholes.
11519 2008-03-12 Paul Brook <paul@codesourcery.com>
11521 * config/arm/arm.c (arm_size_rtx_costs): Use ARM costs for Thumb-2.
11523 2008-03-12 Uros Bizjak <ubizjak@gmail.com>
11525 * config/i386/i386.md (int_cond): New code iterator.
11527 ("s<code>"): Macroize expander from seq, sne, sgt, sgtu, slt, sltu,
11528 sge, sgeu, sle and sleu expanders usign int_cond code iterator.
11529 ("s<code>"): Macroize expander from sunordered, sordered, suneq, sunge,
11530 sungt, sunle, sunlt and sltgt expanders usign fp_cond code iterator.
11531 ("b<code>"): Macroize expander from beq, bne, bgt, bgtu, blt, bltu,
11532 bge, bgeu, ble and bleu expanders usign int_cond code iterator.
11533 ("b<code>"): Macroize expander from bunordered, bordered, buneq, bunge,
11534 bungt, bunle, bunlt and bltgt expanders usign fp_cond code iterator.
11536 2008-03-12 Paul Brook <paul@codesourcery.com>
11538 * config/arm/arm.c (use_return_insn): Use offsets->saved_regs_mask
11539 instead of {arm,thumb}_compute_save_reg_mask.
11540 (output_return_instruction): Ditto.
11541 (thumb_unexpanded_epilogue): Ditto.
11542 (thumb1_expand_prologue): Ditto.
11543 (thumb1_output_function_prologue): Ditto.
11544 (arm_set_return_address): Ditto.
11545 (thumb_set_return_address): Ditto.
11546 (arm_get_frame_offsets): Set offsets->saved_regs_mask. Push extra
11547 regs to achieve stack alignment.
11548 (thumb1_compute_save_reg_mask): Fix compiler warning.
11549 (arm_output_epilogue): Use offsets->saved_regs_mask.
11550 Adjust stack pointer by poping call clobered registers.
11551 (arm_expand_prologue): Use offsets->saved_regs_mask.
11552 Adjust stack pointer by pushing extra registers.
11553 * config/arm.h (arm_stack_offsets): Add saved_regs_mask.
11555 2008-03-12 Paolo Bonzini <bonzini@gnu.org>
11558 * fold-const.c (fold_unary) <NOP_EXPR>: Distribute a narrowing
11559 conversion to the operands of a multiplication.
11561 2008-03-12 Richard Guenther <rguenther@suse.de>
11563 * Makefile.in (OBJS-common): Add tree-ssa-phiprop.o
11564 (tree-ssa-phiprop.o): Copy dependencies from tree-ssa-forwprop.o.
11565 * timevar.def (TV_TREE_PHIPROP): Add.
11566 * tree-ssa-phiprop.c: Split from tree-ssa-forwprop.c, added
11567 pass description. Use TV_TREE_PHIPROP.
11568 * tree-ssa-forwprop.c: Remove phiprop code.
11570 2008-03-12 Jakub Jelinek <jakub@redhat.com>
11572 PR middle-end/35549
11573 * omp-low.c (maybe_lookup_decl): Constify first argument.
11574 (use_pointer_for_field): Change last argument from bool to
11575 omp_context *. Disallow shared copy-in/out in nested
11576 parallel if decl is shared in outer parallel too.
11577 (build_outer_var_ref, scan_sharing_clauses,
11578 lower_rec_input_clauses, lower_copyprivate_clauses,
11579 lower_send_clauses, lower_send_shared_vars): Adjust callers.
11581 2008-03-12 Victor Kaplansky <victork@il.ibm.com>
11582 Ira Rosen <irar@il.ibm.com>
11584 * tree-vectorizer.c (free_stmt_vec_info): New function.
11585 (destroy_loop_vec_info): Move code to free_stmt_vec_info().
11586 Call free_stmt_vec_info(). Free LOOP_VINFO_STRIDED_STORES..
11587 * tree-vectorizer.h (free_stmt_vec_info): Declare.
11588 * tree-vect-transform.c (vectorizable_conversion): Free
11589 vec_oprnds0 if it was allocated.
11590 (vect_permute_store_chain): Remove unused VECs.
11591 (vectorizable_store): Free VECs that are allocated in the..
11593 (vect_transform_strided_load, vectorizable_load): Likewise.
11594 (vect_remove_stores): Simplify the code.
11595 (vect_transform_loop): Move code to vect_remove_stores().
11596 Call vect_remove_stores() and free_stmt_vec_info().
11598 2008-03-11 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11600 * pa.h (TARGET_LONG_PIC_SDIFF_CALL): Conditionalize define on
11601 TARGET_HPUX. Revise comment.
11602 (TARGET_LONG_PIC_PCREL_CALL): Revise comment.
11603 * pa.c (output_call): Update for revised TARGET_LONG_PIC_SDIFF_CALL.
11604 Use sr4 variant of `be' instruction when not generating PIC code.
11605 (attr_length_call): Adjust for above change.
11607 2008-03-11 Andrew Pinski <andrew_pinski@playstation.sony.com>
11609 * ipa-reference.c (static_execute): Remove module_statics_const and
11610 associated setting code.
11612 2008-03-11 Uros Bizjak <ubizjak@gmail.com>
11615 * config/i386/i386.md (paritysi2, paritydi2): Use register_operand
11616 predicate for operand 1.
11617 (paritysi2_cmp): Use register_operand predicate for operand 2.
11618 Use earlyclobber modifier for operand 1. Remove support for
11620 (paritydi2_cmp): Use register_operand predicate for operand 3.
11621 Use earlyclobber modifier for operand 1. Remove support for
11624 2008-03-11 Paul Brook <paul@codesourcery.com>
11625 Vladimir Prus <vladimir@codesourcery.com>
11627 * config/arm/arm.c (use_return_insn): Check TARGET_APCS_FRAME.
11628 (arm_compute_save_reg0_reg12_mask): Always
11629 check if register 11 must be saved. Always safe hard frame pointer
11630 when frame_pointer_needeed.
11631 (arm_compute_save_reg_mask): Save IP and PC
11632 only with apcs frames.
11633 (arm_output_epilogue): Adjust Thumb2 codepath to
11634 be also invoked and work for ARM non-apcs frames.
11635 (arm_expand_prologue): Don't bother saving IP
11636 for non-apcs frame, since it's not clobbered by
11637 prologue code. Implement non-apcs frame
11640 2008-03-11 Paolo Bonzini <bonzini@gnu.org>
11642 PR rtl-optimization/35281
11643 * expr.c (convert_move): Use a new pseudo for the intermediate
11644 from_mode->word_mode result.
11646 2008-03-11 Paolo Bonzini <bonzini@gnu.org>
11648 * langhooks-def.h (LANG_HOOKS_CLEAR_BINDING_STACK): Delete.
11649 * langhooks.h (struct lang_hooks): Delete clear_binding_stack member.
11650 * toplev.c (compile_file): Don't call it.
11652 2008-03-11 Uros Bizjak <ubizjak@gmail.com>
11654 PR middle-end/35526
11655 * expr.c (store_expr): Call emit_block_move if the mode
11656 of "temp" RTX is BLKmode.
11658 2008-03-11 Andrew Pinski <andrew_pinski@playstation.sony.com>
11659 Richard Guenther <rguenther@suse.de>
11661 PR tree-optimization/31358
11662 * tree-ssa-loop-manip.c (create_iv): Call force_gimple_operand for
11663 the step with a NULL_TREE.
11664 * tree-ssa-loop-ivopts.c (find_bivs): Convert the step
11665 to sizetype if type is a pointer type.
11666 (add_candidate_1): Don't convert the base and step to
11667 the generic type if the orginal type is a pointer type.
11668 (add_iv_value_candidates): Use sizetype for the step
11669 if type is a pointer type.
11670 (cand_value_at): Likewise.
11671 * tree-ssa-address.c (add_to_parts): Use POINTER_PLUS_EXPR
11673 * tree-affine.c (tree_to_aff_combination <POINTER_PLUS_EXPR>):
11674 Don't convert the tem affine to the type.
11675 (add_elt_to_tree): Use sizetype for the step if a pointer.
11676 Use POINTER_PLUS_EXPR for pointers.
11677 (aff_combination_to_tree): Use sizetype for the step if a
11680 2008-03-10 Vladimir Makarov <vmakarov@redhat.com>
11682 * config/i386/sse.md (ssse3_pmaddubswv8hi3, ssse3_pmaddubswv4hi3):
11683 Remove commutativity hint.
11685 2008-03-10 Jakub Jelinek <jakub@redhat.com>
11689 * c-parser.c (c_parser_omp_threadprivate): Don't add vars with
11690 errorneous type. Check that v is a VAR_DECL.
11692 PR middle-end/35099
11693 * tree-cfg.c (new_label_mapper): Update cfun->last_label_uid.
11695 2008-03-10 H.J. Lu <hongjiu.lu@intel.com>
11697 PR tree-optimization/35494
11698 * tree-ssa-ccp.c (get_symbol_constant_value): Check if value
11699 may be overriden at link and run time.
11701 2008-03-10 Richard Guenther <rguenther@suse.de>
11703 PR tree-optimization/34677
11704 * tree-ssa-pre.c (modify_expr_node_pool): Remove.
11705 (poolify_tree): Likewise.
11706 (modify_expr_template): Likewise.
11707 (poolify_modify_stmt): Likewise.
11708 (insert_fake_stores): Handle all component-ref style stores
11709 in addition to INDIRECT_REF. Also handle complex types.
11710 Do not poolify the inserted load.
11711 (realify_fake_stores): Do not rebuild the tree but only
11712 make it a SSA_NAME copy.
11713 (init_pre): Remove initialzation of modify_expr_template.
11714 Do not allocate modify_expr_node_pool.
11715 (fini_pre): Do not free modify_expr_node_pool.
11717 2008-03-10 Paul Brook <paul@codesourcery.com>
11719 * config/arm/arm.md (UNSPEC_STACK_ALIGN, UNSPEC_PIC_OFFSET): Renumber
11720 to avoid conflicts.
11722 2008-03-10 Paul Brook <paul@codesourcery.com>
11723 Mark Shinwell <shinwell@codesourcery.com>
11725 * config/arm/cortex-r4.md: New.
11726 * config/arm/thumb2.md (divsi3, udivsi3): Annotate with
11728 * config/arm/arm.md: Include cortex-r4.md.
11729 (insn): Add smmls, sdiv and udiv values.
11730 (generic_sched): Don't use generic scheduling for Cortex-R4.
11731 (arm_issue_rate): New function.
11732 (TARGET_SCHED_ISSUE_RATE): Define.
11734 2008-03-10 Sebastian Pop <sebastian.pop@amd.com>
11736 * doc/invoke.texi (-ftree-loop-distribution): Add an example.
11738 2008-03-10 Richard Guenther <rguenther@suse.de>
11740 * tree-ssa-pre.c (get_sccvn_value): Simplify.
11741 (compute_avail): Do not add stmt uses to AVAIL_OUT.
11743 2008-03-10 Paolo Bonzini <bonzini@gnu.org>
11745 * langhooks-def.h (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS):
11746 Set default to true.
11748 2008-03-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11750 * c.opt (Wsynth): Deprecate.
11751 * doc/invoke.texi (Option Summary, Warning Options): Document
11752 -Wno-format-contains-nul.
11754 2008-03-09 Uros Bizjak <ubizjak@gmail.com>
11757 * config/i386/i386.c (ix86_constant_alignment): Compute alignment using
11758 ALIGN_MODE_128 for VECTOR_CST and INTEGER_CST in addition to REAL_CST.
11760 2008-03-09 Ira Rosen <irar@il.ibm.com>
11762 * config/rs6000/rs6000.c (builtin_description): Rename vector
11763 left shift operations.
11764 * config/rs6000/altivec.md (UNSPEC_VSL): Remove.
11765 (altivec_vsl<VI_char>): Rename to ...
11766 (ashl<mode>3): ... new name.
11767 (mulv4sf3, mulv4si3, negv4sf2): Replace gen_altivec_vslw with
11769 (absv4sf2): Convert to use ashift:V4SI instead of UNSPEC_VSL.
11771 2008-03-08 Richard Guenther <rguenther@suse.de>
11773 * coverage.h (tree_coverage_counter_addr): Declare.
11774 * coverage.c (tree_coverage_counter_addr): New function.
11775 * tree-profile.c (tree_gen_edge_profiler): Unshare counter
11776 before using again.
11777 (tree_gen_pow2_profiler): Use tree_coverage_counter_addr.
11778 (tree_gen_one_value_profiler): Likewise.
11779 (tree_gen_ic_profiler): Likewise.
11780 (tree_gen_average_profiler): Likewise.
11781 (tree_gen_ior_profiler): Likewise.
11783 2008-03-08 Richard Guenther <rguenther@suse.de>
11785 * tree-ssa-sccvn.h (vn_binary_op_lookup): Remove.
11786 (vn_binary_op_insert): Likewise.
11787 (vn_unary_op_lookup): Likewise.
11788 (vn_unary_op_insert): Likewise.
11789 (vn_nary_op_lookup): Declare.
11790 (vn_nary_op_insert): Likewise.
11791 * tree-ssa-sccvn.c (struct vn_tables_s): Merge unary
11792 and binary hashes, use a single obstack for unary_op_pool
11793 and binary_op_pool.
11794 (struct vn_binary_op_s, struct vn_unary_op_s): Replace with
11795 a single struct vn_nary_op_s. Store tree code length and
11796 a variable number of operands.
11797 (struct vn_reference_op_struct): Remove unused op2.
11798 (vn_reference_op_eq): Do not compare op2.
11799 (vn_reference_op_compute_hash): Do not compute hash of op2.
11800 (vn_unary_op_hash, vn_binary_op_hash): Replace with vn_nary_op_hash.
11801 (vn_unary_op_compute_hash, vn_binary_op_compute_hash): Replace
11802 with vn_nary_op_compute_hash.
11803 (vn_unary_op_eq, vn_binary_op_eq): Replace with vn_nary_op_eq.
11804 (vn_unary_op_lookup, vn_binary_op_lookup): Replace with
11806 (vn_unary_op_insert, vn_binary_op_insert): Replace with
11808 (visit_unary_op): Call nary functions.
11809 (visit_binary_op): Likewise.
11810 (process_scc): Adjust for struct vn_tables_s changes.
11811 (allocate_vn_table): Likewise.
11812 (free_vn_table): Likewise.
11813 * tree-vn.c (vn_add): Call nary functions.
11814 (vn_lookup): Likewise.
11816 2008-03-08 Jakub Jelinek <jakub@redhat.com>
11819 * config/rs6000/rs6000.c (rs6000_expand_compare_and_swapqhi): Shift
11820 wdst back after sync_compare_and_swapqhi_internal.
11822 2008-03-08 Uros Bizjak <ubizjak@gmail.com>
11825 * config/i386/i386-modes.def (V1DI): New vector mode.
11826 * config/i386/i386.h (VALID_MMX_REG_MODE): Add V1DImode.
11827 * config/i386/mmx.md (MMXMODEI8): New mode iterator.
11828 (MMXMODE248): Ditto.
11829 (MMXMODE): Add V1DI mode.
11830 (mmxvecsize): Change DI mode to V1DI mode.
11831 ("mov<mode>): Use MMXMODEI8 mode iterator.
11832 ("*mov<mode>_internal_rex64"): Ditto.
11833 ("*mov<mode>_internal"): Ditto.
11834 ("mmx_add<mode>3"): Ditto. Handle V1DImode for TARGET_SSE2.
11835 ("mmx_sub<mode>3"): Ditto.
11836 ("mmx_adddi3"): Remove insn pattern.
11837 ("mmx_subdi3"): Ditto.
11838 ("mmx_ashr<mode>3"): Use SImode and "yN" constraint for operand 2.
11839 ("mmx_lshr<mode>3"): Ditto. Use MMXMODE248 mode iterator.
11840 ("mmx_ashl<mode>3"): Ditto.
11841 ("mmx_lshrdi3"): Remove insn pattern.
11842 ("mmx_ashldi3"): Ditto.
11843 * config/i386/i386.c (classify_argument): Handle V1DImode.
11844 (function_arg_advance_32): Ditto.
11845 (function_arg_32): Ditto.
11846 (struct builtin_description) [IX86_BUILTIN_PADDQ]: Use
11847 mmx_addv1di3 insn pattern.
11848 [IX86_BUILTIN_PSUBQ]: Use mmx_subv1di3 insn pattern.
11849 [IX86_BUILTIN_PSLL?, IX86_BUILTIN_PSRL?, IX86_BUILTIN_PSRA?,
11850 IX86_BUILTIN_PSLL?I, IX86_BUILTIN_PSRL?I, IX86_BUILTIN_PSRA?I,
11851 IX86_BUILTIN_PSLL?I128, IX86_BUILTIN_PSRL?I128, IX86_BUILTIN_PSRA?I128]:
11852 Remove definitions of built-in functions.
11853 (V1DI_type_node): New node.
11854 (v1di_ftype_v1di_int): Ditto.
11855 (v1di_ftype_v1di_v1di): Ditto.
11856 (v2si_ftype_v2si_si): Ditto.
11857 (v4hi_ftype_v4hi_di): Remove node.
11858 (v2si_ftype_v2si_di): Ditto.
11859 (ix86_init_mmx_sse_builtins): Handle V1DImode.
11860 (__builtin_ia32_psll?, __builtin_ia32_psrl?, __builtin_ia32_psra?):
11861 Redefine builtins using def_builtin_const with *_ftype_*_int node.
11862 (__builtin_ia32_psll?i, __builtin_ia32_psrl?i, __builtin_ia32_psra?i):
11863 Add new builtins using def_builtin_const.
11864 (ix86_expand_builtin) [IX86_BUILTIN_PSLL?, IX86_BUILTIN_PSRL?,
11865 IX86_BUILTIN_PSRA?, IX86_BUILTIN_PSLL?I, IX86_BUILTIN_PSRL?I,
11866 IX86_BUILTIN_PSRA?I]: Handle builtin definitions.
11867 * config/i386/mmintrin.h (__v1di): New typedef.
11868 (_mm_add_si64): Cast arguments to __v1di type.
11869 (_mm_sub_si64): Ditto.
11870 (_mm_sll_pi16): Cast __count to __v4hi type.
11871 (_mm_sll_pi32): Cast __count to __v2si type.
11872 (_mm_sll_si64): Cast arguments to __v1di type.
11873 (_mm_srl_pi16): Cast __count to __v4hi type.
11874 (_mm_srl_pi32): Cast __count to __v2si type.
11875 (_mm_srl_si64): Cast arguments to __v1di type.
11876 (_mm_sra_pi16): Cast __count to __v4hi type.
11877 (_mm_sra_pi32): Cast __count to __v2si type.
11878 (_mm_slli_pi16): Use __builtin_ia32_psllwi.
11879 (_mm_slli_pi32): Use __builtin_ia32_pslldi.
11880 (_mm_slli_si64): Use __builtin_ia32_psllqi. Cast __m to __v1di type.
11881 (_mm_srli_pi16): Use __builtin_ia32_psrlwi.
11882 (_mm_srli_pi32): Use __builtin_ia32_psrldi.
11883 (_mm_srli_si64): Use __builtin_ia32_psrlqi. Cast __m to __v1di type.
11884 (_mm_srai_pi16): Use __builtin_ia32_psrawi.
11885 (_mm_srai_pi32): Use __builtin_ia32_psradi.
11886 * config/i386/i386.md (UNSPEC_NOP): Remove unspec definition.
11887 * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psll?,
11888 __builtin_ia32_psrl?, __builtin_ia32_psra?, __builtin_ia32_psll?i,
11889 __builtin_ia32_psrl?i, __builtin_ia32_psra?i]: Add new builtins.
11891 2008-03-07 Joseph Myers <joseph@codesourcery.com>
11893 * doc/include/texinfo.tex: Update to version 2008-03-07.10.
11895 2008-03-07 Peter Bergner <bergner@vnet.ibm.com>
11898 * config/rs6000/rs6000.c (rs6000_legitimize_address): Don't generate
11899 reg+const addressing for Altivec modes. Don't generate reg+reg
11900 addressing for TFmode or TDmode quantities.
11902 2008-03-07 Paolo Bonzini <bonzini@gnu.org>
11904 * c-common.c (vector_types_convertible_p): Call langhook
11905 instead of comptypes.
11907 2008-03-06 Andrew Pinski <andrew_pinski@playstation.sony.com>
11910 * tree-ssa-ccp.c (get_symbol_constant_value): Handle
11911 integral and scalar float variables which have a
11914 2008-03-06 Nathan Froyd <froydnj@codesourcery.com>
11916 * dwarf2out.c (dwarf2out_frame_debug_expr): Consult the
11917 dwarf_register_span hook when emitting unwind information for
11918 register-to-memory saves.
11919 * config/rs6000/rs6000.c (spe_synthesize_frame): Delete.
11920 (rs6000_frame_related): Remove call to spe_synthesize_frame.
11922 2008-03-06 Jakub Jelinek <jakub@redhat.com>
11924 * gimplify.c (goa_lhs_expr_p): Allow different ADDR_EXPR nodes
11925 for the same VAR_DECL.
11927 2008-03-06 Tom Tromey <tromey@redhat.com>
11929 * treelang: Delete.
11930 * doc/standards.texi (Standards): Don't mention treelang.
11931 * doc/invoke.texi (Overall Options): Don't mention treelang.
11932 * doc/install.texi (Prerequisites): Don't mention bison or
11934 (Configuration): Don't mention treelang.
11935 (Building): Likewise.
11936 * doc/frontends.texi (G++ and GCC): Don't mention treelang.
11938 2008-03-06 Paolo Bonzini <bonzini@gnu.org>
11940 * simplify-rtx.c (simplify_subreg): Remove useless shifts from
11941 word-extractions out of a multi-word object.
11943 2008-03-06 Richard Guenther <rguenther@suse.de>
11945 * tree.def (BIT_FIELD_REF): Constrain result type and its precision.
11946 * tree-cfg.c (verify_expr): Verify BIT_FIELD_REF constraints on
11947 result type and precision.
11948 * expr.c (get_inner_reference): Set unsignedp based on the result
11949 type of BIT_FIELD_REF.
11950 * tree.h (BIT_FIELD_REF_UNSIGNED): Remove.
11951 * tree-sra.c (instantiate_element): Do not set BIT_FIELD_REF_UNSIGNED.
11952 (try_instantiate_multiple_fields): Likewise. Use the correct type
11954 (sra_build_assignment): Likewise.
11955 (sra_build_elt_assignment): Likewise.
11956 (sra_explode_bitfield_assignment): Likewise.
11957 * print-tree.c (print_node): Do not check BIT_FIELD_REF_UNSIGNED.
11958 * tree-vect-transform.c (vect_create_epilog_for_reduction): Do not
11959 set BIT_FIELD_REF_UNSIGNED.
11960 (vectorizable_load): Likewise.
11962 2008-03-06 Andreas Krebbel <krebbel1@de.ibm.com>
11964 * cse.c (cse_extended_basic_block): Invalidate artificial defs
11967 2008-03-06 Richard Guenther <rguenther@suse.de>
11969 * alias.c (struct alias_set_entry): Move has_zero_child field
11970 to pack with alias_set.
11972 2008-03-05 H.J. Lu <hongjiu.lu@intel.com>
11974 * config/i386/i386-modes.def: Use 4 byte alignment on DI for
11977 2008-03-05 Ian Lance Taylor <iant@google.com>
11979 * alias.h (alias_set_type): Change from HOST_WIDE_INT to int.
11981 2008-03-05 Kenneth Zadeck <zadeck@naturalbridge.com>
11983 * fwprop.c (update_df): Support width and offset parameters of
11985 * ra-conflict.c (mark_reg_store, clear_reg_in_live,
11986 global_conflicts): Change DF_REF_EXTRACT to either
11987 DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT. Change
11988 DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
11989 * df-scan.c (df_ref_record, df_defs_record,
11990 df_ref_create_structure, df_def_record_1, df_uses_record,
11991 df_get_conditional_uses, df_get_call_refs, df_insn_refs_collect,
11992 df_bb_refs_collect, df_entry_block_defs_collect,
11993 df_exit_block_uses_collect): Support new width and offset fields.
11994 (ref_extract_pool): New storage pool.
11995 (df_free_ref): New function.
11996 (df_reg_chain_unlink, df_free_collection_rec,
11997 df_sort_and_compress_refs): Call df_free_ref.
11998 (df_ref_equal_p, df_ref_compare): Compare offset and width fields
12000 (df_ref_create_structure): Allocate df_ref_extract if offset and
12001 width fields are used.
12002 (df_def_record_1): Get offset and width from ZERO_EXTRACT.
12003 (df_uses_record): Get offset and width from ZERO_EXTRACT
12005 * global.c (build_insn_chain): Change DF_REF_EXTRACT to either
12006 DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT. Change
12007 DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
12008 * df.h (df_ref_flags): Change DF_REF_EXTRACT to either
12009 DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT. Change
12010 DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
12011 (df_ref_extract): New structure.
12012 (DF_REF_WIDTH, DF_REF_OFFSET): New macros.
12013 (df_ref_create): Add width and offset parameters.
12015 2008-03-05 Richard Guenther <rguenther@suse.de>
12017 * tree-ssa-structalias.c (get_constraint_for_component_ref):
12018 Use ranges_overlap_p.
12019 (offset_overlaps_with_access): Rename
12020 to ranges_overlap_p and move ...
12021 * tree-flow-inline.h (ranges_overlap_p): ... here.
12023 * tree.h (get_inner_reference, handled_component_p): Update
12026 * tree.h (record_component_aliases, get_alias_set,
12027 alias_sets_conflict_p, alias_sets_must_conflict_p,
12028 objects_must_conflict_p): Move declarations ...
12029 * alias.h (record_component_aliases, get_alias_set,
12030 alias_sets_conflict_p, alias_sets_must_conflict_p,
12031 objects_must_conflict_p): ... here.
12032 Include coretypes.h.
12033 * Makefile.in (ALIAS_H): Add coretypes.h dependency.
12035 2008-03-05 Aldy Hernandez <aldyh@redhat.com>
12037 * cfg.c: Include tree-flow.h.
12038 (remove_edge_raw): Call redirect_edge_var_map_clear.
12039 (redirect_edge_succ_nodup): Call redirect_edge_var_map_dup.
12040 * tree-flow-inline.h (redirect_edge_var_map_def): New.
12041 (redirect_edge_var_map_result): New.
12042 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Replace
12043 PENDING_STMT use with redirect_edge_var_map_*.
12044 * tree-ssa.c (edge_var_maps): New definition.
12045 (redirect_edge_var_map_add): New.
12046 (redirect_edge_var_map_clear): New.
12047 (redirect_edge_var_map_dup): New.
12048 (redirect_edge_var_map_vector): New.
12049 (redirect_edge_var_map_destroy): New.
12050 (ssa_redirect_edge): Replace PENDING_STMT use with
12051 redirect_edge_var_map_*.
12052 (flush_pending_stmts): Same.
12053 (delete_tree_ssa): Destroy edge var map.
12054 * tree-flow.h (struct _edge_var_map): New.
12055 Define edge_var_map vector type.
12056 Declare redirect_edge_var_map_* prototypes.
12057 * Makefile.in (cfg.o): Depend on TREE_FLOW_H.
12058 * tree-cfg.c (reinstall_phi_args): Replace
12059 PENDING_STMT use with redirect_edge_var_map_*.
12061 2008-03-05 Richard Guenther <rguenther@suse.de>
12063 PR tree-optimization/35472
12064 * tree-ssa-dse.c (dse_optimize_stmt): Do not delete a store
12065 whose single use_stmt has a overlapping set of loaded and
12066 stored symbols as that use_stmt might be a noop assignment then.
12068 2008-03-05 Joel Sherrill <joel.sherrill@oarcorp.com>
12070 * gthr-rtems.h: Implement __gthread_mutex_destroy.
12072 2008-03-05 Richard Guenther <rguenther@suse.de>
12075 * tree.def (BIT_FIELD_REF): Document that operands 1 and 2
12076 should be constants.
12077 * tree-cfg.c (verify_expr): Verify it.
12078 * fold-const.c (fold_truthop): Remove code generating
12079 BIT_FIELD_REFs of structure bases.
12080 (fold_binary): Likewise.
12081 (fold_ternary): Position and size of BIT_FIELD_REFs are
12082 always host integers.
12083 (make_bit_field_ref): Remove.
12084 (optimize_bit_field_compare): Remove.
12085 (all_ones_mask_p): Remove.
12087 2008-03-05 Gabor Loki <loki@gcc.gnu.org>
12090 * rtl-factoring.c (clear_regs_live_in_seq): Fix backward steps.
12091 (split_block_and_df_analyze): New. Split basic block and rebuild
12093 (block_label_after): Use SPLIT_BLOCK_AND_DF_ANALYZE instead of
12095 (split_pattern_seq): Likewise.
12096 (erase_matching_seqs): Likewise.
12097 (split_pattern_seq): Skip return insn in case of REG_NORETURN note.
12099 2008-03-04 Geoff Keating <geoffk@apple.com>
12101 * fold-const.c (tree_single_nonnegative_warnv_p): Fix mixed
12102 declaration and code.
12103 (tree_invalid_nonnegative_warnv_p): Likewise.
12105 2008-03-05 Serge Belyshev <belyshev@depni.sinp.msu.ru>
12107 * doc/install.texi (Testing): Correct quoting for the RUNTESTFLAGS
12108 examples. Truncate option-names then causing overfull hbox.
12110 2008-03-04 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12113 * configure.ac (CONFIG_SJLJ_EXCEPTIONS): Force SJLJ exceptions
12115 * configure: Rebuilt.
12117 2008-03-04 Rafael Espindola <espindola@google.com>
12119 * fold-const.c (tree_simple_nonnegative_warnv_p): New.
12120 (tree_unary_nonnegative_warnv_p): New.
12121 (tree_binary_nonnegative_warnv_p): New.
12122 (tree_single_nonnegative_warnv_p): New.
12123 (tree_invalid_nonnegative_warnv_p): New.
12124 (tree_expr_nonnegative_warnv_p): Redefine in term of the new functions.
12126 2008-03-04 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
12129 * opts.c (handle_option): Postpone 'unknown option' errors only for
12132 2008-03-04 H.J. Lu <hongjiu.lu@intel.com>
12135 * config/i386/smmintrin.h (SIDD_XXX): Renamed to ...
12138 2008-03-04 Rafael Espindola <espindola@google.com>
12140 * fold-const.c (tree_unary_nonzero_warnv_p): New.
12141 (tree_binary_nonzero_warnv_p): New.
12142 (tree_single_nonzero_warnv_p): New.
12143 (tree_expr_nonzero_warnv_p): Redefine using the new functions.
12145 2008-03-04 Uros Bizjak <ubizjak@gmail.com>
12147 PR middle-end/35456
12148 * fold-const.c (fold_cond_expr_with_comparison): Prevent
12149 transformations for modes that have signed zeros.
12150 * ifcvt.c (noce_try_abs): Ditto.
12152 2008-03-04 Joseph Myers <joseph@codesourcery.com>
12154 * config/i386/i386.c (override_options): Force
12155 -maccumulate-outgoing-args on if TARGET_STACK_PROBE.
12157 2008-03-04 Jan Hubicka <jh@suse.cz>
12160 * ipa-inline.c (cgraph_decide_inlining_of_small_function): Fix typo
12163 2008-03-04 Danny Smith <dannysmith@users.sourceforge.net>
12165 * config/i386/i386.md (allocate_stack_worker_32): Use __chkstk
12166 label to probe the stack.
12168 2008-03-04 Danny Smith <dannysmith@users.sourceforge.net>
12170 * gthr-win32.h [__GTHREAD_HIDE_WIN32API]
12171 (__gthr_win32_mutex_destroy): Declare.
12172 [__GTHREAD_HIDE_WIN32API] (__gthread_mutex_destroy): Use
12173 __gthr_win32_mutex_destroy.
12174 * config/i386/gthr-win32.c (__gthr_win32_mutex_destroy): Define.
12176 2008-03-03 Jan Hubicka <jh@suse.cz>
12179 * ipa-inline.c (cgraph_decide_inlining_of_small_function): Be more
12180 aggressive on inlining cold calls.
12182 2008-03-03 Richard Guenther <rguenther@suse.de>
12184 * tree-ssa-sccvn.c (visit_reference_op_store): Do not insert
12185 struct copies into the expression table.
12186 (simplify_unary_expression): Handle VIEW_CONVERT_EXPR.
12187 (try_to_simplify): Likewise.
12188 * fold-const.c (fold_unary): Fold VIEW_CONVERT_EXPR of
12189 integral and pointer arguments which do not change the
12190 precision to NOP_EXPRs.
12191 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Adjust
12192 VIEW_CONVERT_EXPR case.
12194 2008-03-02 Sebastian Pop <sebastian.pop@amd.com>
12196 * tree-scalar-evolution.c (instantiate_parameters_1): An SSA_NAME
12197 defined in a loop at depth 0 is invariant.
12198 * tree-chrec.c (evolution_function_is_invariant_rec_p): Ditto.
12199 * tree-ssa-loop-ivopts.c (expr_invariant_in_loop_p): Should never
12200 be called at loop depth 0.
12202 2008-03-02 Jakub Jelinek <jakub@redhat.com>
12205 * gcc.c (process_command): Update copyright notice dates.
12206 * gcov.c (print_version): Likewise.
12207 * gcov-dump.c (print_version): Likewise.
12208 * mips-tfile.c (main): Likewise.
12209 * mips-tdump.c (main): Likewise.
12211 2008-03-02 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
12214 * c-common.c (flag_permissive): Delete.
12215 (constant_expression_warnings): Check flags first.
12216 (constant_expression_error): New.
12217 * c-common.h (flag_permissive): Delete.
12218 (constant_expression_error): Declare.
12219 * flags.h (flag_permissive): Declare. Update description.
12220 * diagnostic.c (pedwarn): Update.
12222 * diagnostic.h: (pedantic_error_kind): Rename as pedantic_warning_kind.
12223 (permissive_error_kind): New.
12224 * toplev.c (flag_permissive): Define. Update description.
12225 * toplev.h (permissive_error_kind): Declare.
12226 * c-errors.c (pedwarn_c99): Use pedantic_warning_kind.
12227 (pedwarn_c90): Use pedantic_warning_kind.
12228 * c-opts.c (c_common_post_options): flag_permissive does not affect
12229 flag_pedantic_errors.
12231 2008-03-02 Joseph Myers <joseph@codesourcery.com>
12233 * libgcc2.c (__addvSI3, __addvsi3, __addvDI3, __subvSI3,
12234 __subvsi3, __subvDI3, __negvSI2, __negvsi2, __negvDI2, __absvSI2,
12235 __absvsi2, __absvDI2): Use unsigned arithmetic.
12237 2008-03-02 Andi Kleen <ak@suse.de>
12238 Richard Guenther <rguenther@suse.de>
12240 * struct-equiv.c: Remove file.
12241 * cfg_cleanup.c (condjump_equiv_p): Remove.
12242 * Makefile.in (OBJS-common): Remove struct-equiv.o.
12243 (struct-equiv.o): Remove rule.
12244 * basic-block.h (struct_equiv_checkpoint, STRUCT_EQUIV_*,
12245 insns_match_p, struct_equiv_block_eq, struct_equiv_init,
12246 rtx_equiv_p, condjump_equiv_p): Remove prototypes.
12248 2008-03-01 Alexandre Oliva <aoliva@redhat.com>
12250 * ifcvt.c (noce_process_if_block): Try to handle only the then
12251 block if the else block exists but isn't suitable.
12253 2008-03-01 Janne Blomqvist <jb@gcc.gnu.org>
12256 * gthr-posix.h (__gthread_mutex_destroy): Remove extra declarations.
12257 * gthr-posix95.h (__gthread_mutex_destroy): Likewise. Note this fixes
12258 regression from previous patch.
12260 2008-03-01 Janne Blomqvist <jb@gcc.gnu.org>
12263 * gthr.h: Add __gthread_mutex_destroy as a function that must be
12265 * gthr-vxworks.h (__gthread_mutex_destroy): Null implementation.
12266 * gthr-single.h (__gthread_mutex_destroy): Likewise.
12267 * gthr-rtems.h (__gthread_mutex_destroy): Likewise.
12268 * gthr-mipssde.h (__gthread_mutex_destroy): Likewise.
12269 * gthr-nks.h (__gthread_mutex_destroy): Likewise.
12270 * gthr-solaris.h (__gthread_mutex_destroy): Call mutex_destroy.
12271 * gthr-win32.h (__GTHREAD_MUTEX_DESTROY_FUNCTION): Remove.
12272 (__gthread_mutex_destroy_function): Rename to
12273 __gthread_mutex_destroy.
12274 * gthr-dce.h (__gthread_mutex_destroy): Call
12275 pthread_mutex_destroy.
12276 * gthr-tpf.h (__gthread_mutex_destroy): Likewise.
12277 * gthr-posix.h (__gthread_mutex_destroy): Likewise.
12278 * gthr-posix95.h (__gthread_mutex_destroy): Likewise.
12280 2008-03-01 Alexandre Oliva <aoliva@redhat.com>
12282 * df-scan.c (df_ref_chain_change_bb): Simplify.
12283 (df_insn_change_bb): Add new_bb argument. Simplify. Call
12284 set_block_for_insn if there's any change.
12285 * df.h ((df_insn_change_bb): Fix prototype.
12286 * cfgrtl.c (update_bb_for_insn_chain): Pass bb to
12287 df_insn_change_bb, don't call set_block_for_insn.
12288 * emit-rtl.c (reorder_insns): Likewise.
12289 * haifa-sched.c (move_insn): Likewise.
12291 2008-03-01 Alexandre Oliva <aoliva@redhat.com>
12293 * rtlanal.c (loc_mentioned_in_p): Test XVECEXPs correctly.
12295 2008-03-01 Alexandre Oliva <aoliva@redhat.com>
12297 * tree-flow-inline.h (next_readonly_imm_use): Return
12298 NULL_USE_OPERAND_P after the end.
12300 2008-03-01 Richard Guenther <rguenther@suse.de>
12302 PR tree-optimization/35411
12303 * tree-sra.c (sra_build_assignment): Split conversion to
12304 final type to a separate statement if we are not assigning
12307 2008-02-29 Francois-Xavier Coudert <coudert@clipper.ens.fr>
12309 * fold-const.c (fold_convertible_p): Correct the logic to follow
12310 that in fold_convert().
12312 2008-02-29 Douglas Gregor <doug.gregor@gmail.com>
12315 * tree-inline.c (build_duplicate_type): When we make a
12316 duplicate type, make it unique in the canonical types system.
12318 2008-02-29 Tom Tromey <tromey@redhat.com>
12320 * toplev.c (input_file_stack, input_file_stack_tick, fs_p,
12321 input_file_stack_history, input_file_stack_restored): Remove.
12322 (push_srcloc, pop_srcloc, restore_input_file_stack): Likewise.
12323 * input.h (struct file_stack): Remove.
12324 (push_srcloc, pop_srcloc, restore_input_file_stack): Likewise.
12325 (input_file_stack, input_file_stack_tick, INPUT_FILE_STACK_BITS):
12327 * diagnostic.h (struct diagnostic_context) <last_module>: Change
12329 (diagnostic_last_module_changed): Add 'map' argument.
12330 (diagnostic_set_last_function): Likewise.
12331 * diagnostic.c (undiagnostic_report_current_module): Iterate using
12332 line map, not input_file_stack.
12333 * c-lex.c (fe_file_change): Don't use push_srcloc or pop_srcloc.
12335 2008-02-29 Paul Brook <paul@codesourcery.com>
12337 * config/arm/arm.md (arm_addsi3): Add r/k/n alternative.
12339 2008-02-29 Paul Brook <paul@codesourcery.com>
12341 * config/arm/ieee754-df.S (muldf3): Use RET macros.
12343 2008-02-29 Richard Guenther <rguenther@suse.de>
12345 * tree-ssa-pre.c (get_sccvn_value): Create missing VNs via
12347 * tree-ssa-sccnv.c (visit_reference_op_store): Use the rhs
12348 value for comparing for a store match.
12349 (simplify_unary_expression): Do nothing for SSA_NAMEs.
12350 (try_to_simplify): Do not do a full-blown reference lookup.
12352 2008-02-29 Kaz Kojima <kkojima@gcc.gnu.org>
12354 * config/sh/sh.c (sh_scalar_mode_supported_p): New function.
12355 (TARGET_SCALAR_MODE_SUPPORTED_P): Define.
12357 * config/sh/sh.h (OVERRIDE_OPTIONS): Don't warn for profiling.
12359 2008-02-29 Sebastian Pop <sebastian.pop@amd.com>
12361 * tree-loop-linear.c (try_interchange_loops): Compare memory access
12362 strides against cache sizes.
12364 2008-02-29 Kaz Kojima <kkojima@gcc.gnu.org>
12366 * config/sh/sh.c (sh_secondary_reload): Handle loading a float
12369 2008-02-28 Richard Sandiford <rsandifo@nildram.co.uk>
12371 * simplify-rtx.c (simplify_unary_operation_1): Extend the handling
12372 of SUBREG_PROMOTED_VAR_P to cope with cases where the extended value
12373 is smaller than the original promoted value.
12374 (simplify_subreg): If OP is a SUBREG, try to preserve its
12375 SUBREG_PROMOTED_VAR_P information.
12377 2008-02-28 Steven Bosscher <stevenb.gcc@gmail.com>
12379 * tree-ssa-sccvn (vn_ssa_aux_obstack): New obstack.
12380 (VN_INFO_GET): Allocate new objects on the obstack.
12381 (init_scc_vn): Initialize the obstack. Use XDELETE instead of free
12382 for rpo_numbers_temp, for consistency.
12383 (free_scc_vn): Free the obstack.
12385 2008-02-28 Sebastian Pop <sebastian.pop@amd.com>
12387 * doc/invoke.texi: Document -ftree-loop-distribution.
12388 * tree-loop-distribution.c: New.
12389 * tree-pass.h (pass_loop_distribution): New.
12390 * graphds.h (struct graph): Add htab_t indices.
12391 * timevar.def (TV_TREE_LOOP_DISTRIBUTION): New.
12392 * tree-vectorizer.c (rename_variables_in_loop): Extern.
12393 (slpeel_tree_duplicate_loop_to_edge_cfg): Init PENDING_STMT to NULL.
12394 * tree-vectorizer.h (tree_duplicate_loop_on_edge): Declared.
12395 * tree-data-ref.c (debug_data_dependence_relations): New.
12396 (dump_data_dependence_relation): Also print data references.
12397 (free_data_ref): Extern.
12398 (same_access_functions): Moved...
12399 (find_vertex_for_stmt): Renamed rdg_vertex_for_stmt.
12400 (dump_rdg_vertex, debug_rdg_vertex, dump_rdg_component,
12401 debug_rdg_component, dump_rdg, debug_rdg, dot_rdg_1, dot_rdg,
12402 struct rdg_vertex_info, rdg_vertex_for_stmt): New.
12403 (create_rdg_edge_for_ddr, create_rdg_vertices): Cleaned up.
12404 (stmts_from_loop): Skip LABEL_EXPR.
12405 (hash_stmt_vertex_info, eq_stmt_vertex_info, hash_stmt_vertex_del):
12407 (build_rdg): Initialize rdg->indices htab.
12408 (free_rdg, stores_from_loop, ref_base_address,
12409 rdg_defs_used_in_other_loops_p, have_similar_memory_accesses,
12410 have_similar_memory_accesses_1, ref_base_address_1,
12411 remove_similar_memory_refs): New.
12412 * tree-data-ref.h: Depend on tree-chrec.h.
12413 (debug_data_dependence_relations, free_data_ref): Declared.
12414 (same_access_functions): ... here.
12415 (ddr_is_anti_dependent, ddrs_have_anti_deps, ddr_dependence_level):
12417 (struct rdg_vertex): Add has_mem_write and has_mem_reads.
12418 (RDGV_HAS_MEM_WRITE, RDGV_HAS_MEM_READS, RDG_STMT,
12419 RDG_MEM_WRITE_STMT, RDG_MEM_READS_STMT): New.
12420 (dump_rdg_vertex, debug_rdg_vertex, dump_rdg_component,
12421 debug_rdg_component, dump_rdg, debug_rdg, dot_rdg,
12422 rdg_vertex_for_stmt): Declared.
12423 (struct rdg_edge): Add level.
12425 (free_rdg, stores_from_loop, remove_similar_memory_refs,
12426 rdg_defs_used_in_other_loops_p, have_similar_memory_accesses):
12428 (rdg_has_similar_memory_accesses): New.
12429 * tree-vect-analyze.c: Remove unused static decls.
12430 * lambda.h (dependence_level): New.
12431 * common.opt (ftree-loop-distribution): New.
12432 * tree-flow.h (mark_virtual_ops_in_bb,
12433 slpeel_tree_duplicate_loop_to_edge_cfg,
12434 rename_variables_in_loop): Declared.
12435 * Makefile.in (TREE_DATA_REF_H): Depend on tree-chrec.h.
12436 (OBJS-common): Add tree-loop-distribution.o.
12437 (tree-loop-distribution.o): New rule.
12438 * tree-cfg.c (mark_virtual_ops_in_bb): New.
12439 (mark_virtual_ops_in_region): Use mark_virtual_ops_in_bb.
12440 * passes.c (init_optimization_passes): Schedule pass_loop_distribution.
12442 2008-02-28 Joseph Myers <joseph@codesourcery.com>
12445 * tree.c (handle_dll_attribute): Disallow TYPE_DECLs for types
12446 other than structures and unions.
12448 2008-02-28 Richard Guenther <rguenther@suse.de>
12451 2008-02-26 Richard Guenther <rguenther@suse.de>
12453 * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
12454 * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
12455 (lookup_decl_from_uid): Declare.
12456 (remove_decl_from_map): Likewise.
12457 * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
12458 * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
12459 (decl_for_uid_map): New global hashtable mapping DECL_UID
12461 (init_ttree): Allocate it.
12462 (insert_decl_to_uid_decl_map): New helper function.
12463 (make_node_stat): Insert new decls into the map.
12464 (copy_node_stat): Likewise.
12465 (lookup_decl_from_uid): New function.
12466 (remove_decl_from_map): Likewise.
12467 (print_decl_for_uid_map_statistics): New helper.
12468 (dump_tree_statistics): Call it.
12470 * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
12471 (referenced_var_iterator): Adjust.
12472 (FOR_EACH_REFERENCED_VAR): Adjust.
12473 (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
12474 (num_referenced_vars): Adjust.
12475 * tree-flow-inline.h (gimple_referenced_vars): Adjust.
12476 (first_referenced_var): Remove.
12477 (end_referenced_vars_p): Likewise.
12478 (next_referenced_var): Likewise.
12479 (referenced_var_iterator_set): New helper function.
12480 * tree-dfa.c (referenced_var_lookup): Adjust.
12481 (referenced_var_check_and_insert): Likewise.
12482 (remove_referenced_var): Likewise.
12483 * tree-ssa.c (verify_flow_insensitive_alias_info): Use
12484 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
12485 (verify_call_clobbering): Likewise.
12486 (verify_memory_partitions): Likewise.
12487 (init_tree_ssa): Allocate bitmap instead of hashtable for
12489 (delete_tree_ssa): Adjust.
12490 * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
12491 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
12492 (compute_tag_properties): Likewise.
12493 (set_initial_properties): Likewise.
12494 (find_partition_for): Likewise.
12495 (update_reference_counts): Likewise.
12496 (dump_may_aliases_for): Likewise.
12497 * tree-ssa-operands.c (add_virtual_operand): Likewise.
12498 (add_call_clobber_ops): Likewise.
12499 (add_call_read_ops): Likewise.
12500 (get_asm_expr_operands): Likewise.
12501 * tree-into-ssa.c (dump_decl_set): Likewise.
12502 (update_ssa): Likewise.
12503 * tree-sra.c (scan_function): Likewise.
12504 (decide_instantiations): Likewise.
12505 (scalarize_parms): Likewise.
12506 * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
12507 (dsa_named_for): Likewise.
12508 * tree-ssa-structalias.c (update_alias_info): Likewise.
12509 (merge_smts_into): Likewise.
12511 2008-02-27 David Daney <ddaney@avtrex.com>
12514 * config/mips/iris.h (MIPS_DEBUGGING_INFO): Define.
12515 * config/mips/openbsd.h (MIPS_DEBUGGING_INFO): Same.
12516 * config/mips/sde.h (MIPS_DEBUGGING_INFO): Remove undef.
12517 * config/mips/vxworks.h (MIPS_DEBUGGING_INFO): Same.
12518 * config/mips/mips.h (MIPS_DEBUGGING_INFO): Remove define.
12520 2008-02-27 Uros Bizjak <ubizjak@gmail.com>
12523 * config/darwin-ppc-ldouble-patch.def (BUILT_IN_NANL): Add.
12524 (BUILT_IN_NEXTTOWARD): Remove.
12525 (BUILT_IN_NEXTTOWARDF): Ditto.
12526 * config/darwin.c (darwin_patch_builtin): Use ACONCAT instead of
12527 alloca/strcpy/strcat. Remove commented-out code. Fix whitespace.
12529 2008-02-27 Tom Tromey <tromey@redhat.com>
12531 * tree-dump.c (dequeue_and_dump) <FUNCTION_DECL>: Check
12532 DECL_SAVED_TREE, not DECL_LANG_SPECIFIC, when dumping body.
12534 2008-02-27 Jan Beulich <jbeulich@novell.com>
12536 * c-decl.c (merge_decls): Use DECL_USER_ALIGN() on olddecl to
12537 update the respective field on newdecl.
12539 2008-02-27 Revital Eres <eres@il.ibm.com>
12541 PR rtl-optimization/34999
12542 * bb-reorder.c (add_labels_and_missing_jumps): Do not handle
12543 crossing edges that ends with a call insn.
12544 (fix_up_fall_thru_edges): Handle crossing edges that ends with a
12545 call insn and clear the EDGE_CROSSING flag of the crossing edge
12546 when fixing fallthru edges.
12548 2008-02-27 Richard Guenther <rguenther@suse.de>
12550 PR middle-end/35390
12551 * fold-const.c (fold_unary): Return the correct argument,
12552 converted to the result type.
12554 2008-02-27 Richard Guenther <rguenther@suse.de>
12556 PR middle-end/34971
12557 * expr.c (expand_expr_real_1): Assert on rotates that operate
12559 * fold-const.c (fold_binary): Use the types precision, not the
12560 bitsize of the mode if folding rotate expressions. Build rotates
12561 only for full modes.
12563 2008-02-27 Jakub Jelinek <jakub@redhat.com>
12565 * c-ppoutput.c (scan_translation_unit): Handle CPP_PRAGMA
12566 and CPP_PRAGMA_EOL.
12567 * c-pragma.c (pragma_ns_name): New typedef.
12568 (registered_pp_pragmas): New variable.
12569 (c_pp_lookup_pragma): New function.
12570 (c_register_pragma_1): If flag_preprocess_only, do nothing
12571 for non-expanded pragmas, for expanded ones push pragma's
12572 namespace and name into registered_pp_pragmas vector.
12573 (c_invoke_pragma_handler): Register OpenMP pragmas even when
12574 flag_preprocess_only, don't register GCC pch_preprocess
12575 pragma if flag_preprocess_only.
12576 * c-opts.c (c_common_init): Call init_pragma even if
12577 flag_preprocess_only.
12578 * c-pragma.c (c_pp_lookup_pragma): New prototype.
12579 * config/darwin.h (DARWIN_REGISTER_TARGET_PRAGMAS): Don't call
12580 cpp_register_pragma if flag_preprocess_only.
12582 2008-02-26 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12585 * c-parser.c (c_parser_translation_unit): Warn for empty
12586 translation unit, not empty source file.
12588 2008-02-26 Paul Brook <paul@codesourcery.com>
12590 * config/arm/arm.c (thumb_set_frame_pointer): Ensure SP is first
12591 operand for Thumb-2.
12592 * config/arm/arm.h (reg_class): Add CORE_REGS.
12593 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Ditto.
12594 (BASE_REG_CLASS): Use CORE_REGS.
12595 (PREFERRED_RELOAD_CLASS): Add STACK_REG.
12596 (REGNO_MODE_OK_FOR_REG_BASE_P): Use REGNO_MODE_OK_FOR_BASE_P.
12597 (REGNO_OK_FOR_INDEX_P): Exclude SP.
12598 (ARM_REG_OK_FOR_INDEX_P): Always define. Use
12599 ARM_REGNO_OK_FOR_INDEX_P.
12600 (ARM_PRINT_OPERAND_ADDRESS): Swap operands for [reg, sp].
12601 * config/arm/arm.md (arm_addsi3, thumb1_addsi3, arm_subsi3_insn,
12602 arm_movsi_insn, thumb1_movsi_insni, stack_tie): Add "k" alternatives.
12603 (ldm/stm peepholes): Ditto.
12604 * config/arm/thumb2.md (thumb2_movdi): Add "k" alternatives.
12605 * config/arm/vfp.md (arm_movsi_vfp, thumb2_movsi_vfp): Ditto.
12606 * config/arm/iwmmxt.md (iwmmxt_movsi_insn): Ditto.
12607 * config/arm/constraints.md: Enable "k" constraint on ARM.
12609 2008-02-27 Ben Elliston <bje@au.ibm.com>
12611 * config/rs6000/rs6000.c: Annotate cache line size field in all
12612 instances of struct processor_costs.
12614 2008-02-26 David Edelsohn <edelsohn@gnu.org>
12616 * dbgcnt.def (cfg_cleanup, cprop1, cprop2, dce_fast, dce_ud, dse1,
12617 dse2, gcse, if_conversion, if_after_combine, if_after_reload,
12618 jump_bypass): New counters.
12619 * cfgcleanup.c (cleanup_cfg): Add dbg_cnt.
12620 * dce.c (gate_ud_dce): Same.
12621 (gate_fast_dce): Same.
12622 * dse.c (gate_dse1): New function.
12623 (gate_dse2): New function.
12624 (gate_dse): Merge results of new gate functions.
12625 * gcse.c (gcse_main): Bracket cprop1 and cprop2 with dbg_cnt.
12626 (gate_handle_jump_bypass): Add dbg_cnt.
12627 (gate_handle_gcse): Add dbg_cnt.
12628 * ifcvt.c (gate_handle_if_conversion): Same.
12629 (gate_handle_if_after_combine): Same.
12630 (gate_handle_if_after_reload): Same.
12631 * Makefile.in: Add DBGCNT_H to cfgcleanup.o and ifcvt.o.
12633 2008-02-26 Edmar Wienskoski <edmar@freescale.com>
12635 * config/rs6000/rs6000.c (processor_costs): Update e300 cache
12637 * doc/invoke.texi: Add e300c2 and e300c3 to list of cpus.
12639 2008-02-26 Jason Merrill <jason@redhat.com>
12642 * attribs.c (decl_attributes): Leave ATTR_FLAG_TYPE_IN_PLACE
12643 alone if it's the naming decl for the type's main variant.
12645 2008-02-26 Tom Tromey <tromey@redhat.com>
12647 * system.h (USE_MAPPED_LOCATION): Poison.
12648 * Makefile.in (GTFILES): Put CPP_ID_DATA_H first.
12649 * tree-cfg.c (make_cond_expr_edges): Remove old location code.
12650 (make_goto_expr_edges): Likewise.
12651 (remove_bb): Likewise.
12652 (execute_warn_function_return): Likewise.
12653 * basic-block.h (struct edge_def) <goto_locus>: Change type to
12655 * c-common.c (fname_decl): Remove old location code.
12656 * tree-vect-transform.c (vect_finish_stmt_generation): Remove old
12658 * rtl.h (ASM_OPERANDS_SOURCE_LOCATION): Remove old-location
12660 (ASM_INPUT_SOURCE_LOCATION): Likewise.
12661 (gen_rtx_ASM_INPUT): Likewise.
12662 (gen_rtx_ASM_INPUT_loc): Likewise.
12663 (get_rtx_asm_OPERANDS): Remove.
12664 * cfglayout.c (insn_locators_alloc): Remove old location code.
12665 (set_curr_insn_source_location): Likewise.
12666 (curr_insn_locator): Likewise.
12667 * print-tree.c (print_node): Remove old location code.
12668 * tree-mudflap.c (mf_varname_tree): Remove old location code.
12669 (mf_file_function_line_tree): Remove test of USE_MAPPED_LOCATION.
12670 * cfgexpand.c (expand_gimple_cond_expr): Don't use
12671 location_from_locus.
12672 (construct_exit_block): Remove old location code.
12673 * emit-rtl.c (force_next_line_note): Remove old location code.
12674 * profile.c (branch_prob): Remove old location code.
12675 * tree-vectorizer.h (LOC, UNKNOWN_LOC, EXPR_LOC, LOC_FILE,
12676 LOC_LINE): Remove old-location variants.
12677 * langhooks.c (lhd_print_error_function): Remove old location
12679 * configure, config.in: Rebuilt.
12680 * configure.ac (--enable-mapped-location): Remove.
12681 * c-decl.c (c_init_decl_processing): Remove old location code.
12682 (finish_function): Likewise.
12683 * recog.c (decode_asm_operands): Remove old location code.
12684 * c-pch.c (c_common_read_pch): Remove old location code.
12685 * rtl.def (ASM_INPUT, ASM_OPERANDS): Remove old location
12687 * gimple-low.c (lower_function_body): Remove old location code.
12688 * toplev.c (unknown_location): Remove.
12689 (push_srcloc): Remove old-location variant.
12690 (process_options): Remove old location code.
12691 (lang_dependent_init): Likewise.
12692 * input.h (UNKNOWN_LOCATION): Move definition.
12693 (location_t): Undeprecate.
12694 (source_locus): Remove.
12695 (location_from_locus): Remove.
12696 (struct location_s): Remove.
12697 Remove all old-location code.
12698 (input_line, input_filename): Remove.
12699 * final.c (final_scan_insn): Remove old location code.
12700 * diagnostic.c (diagnostic_build_prefix): Remove
12701 USE_MAPPED_LOCATION test.
12702 * tree.h (gimple_stmt) <locus>: Now a location_t.
12703 (tree_exp) <locus>: Likewise.
12704 (DECL_IS_BUILTIN): Remove old-location variant.
12705 (annotate_with_file_line, annotate_with_locus): Likewise.
12706 (expr_locus, set_expr_locus): Update.
12707 * tree.c (build1_stat): Remove old location code.
12708 (last_annotated_node): Remove.
12709 (annotate_with_file_line): Remove old-location variant.
12710 (annotate_with_locus): Likewise.
12711 (expr_location): Remove old location code.
12712 (set_expr_location): Likewise.
12713 (expr_has_location): Likewise.
12714 (expr_locus): Likewise.
12715 (set_expr_locus): Likewise.
12716 (expr_filename): Don't use location_from_locus.
12717 (expr_lineno): Likewise.
12718 * rtl-error.c (location_for_asm): Remove old location code.
12719 * c-lex.c (cb_line_change): Remove old location code.
12720 (fe_file_change): Likewise.
12721 (cb_def_pragma): Likewise.
12722 (c_lex_with_flags): Likewise.
12723 * gengtype.c (do_typedef): Don't special-case location types.
12724 (define_location_structures): Remove.
12725 (main): Don't call define_location_structures.
12726 * tree-pretty-print.c (dump_implicit_edges): Remove old location
12729 2008-02-26 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
12732 * builtins.def (BUILT_IN_STDARG_START): Remove.
12733 * builtins.c (expand_builtin): Remove BUILT_IN_STDARG_START.
12734 * tree-stdarg.c (execute_optimize_stdarg): Likewise.
12735 * tree-inline.c (inline_forbidden_p_1): Likewise.
12737 2008-02-26 Richard Guenther <rguenther@suse.de>
12739 * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
12740 * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
12741 (lookup_decl_from_uid): Declare.
12742 (remove_decl_from_map): Likewise.
12743 * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
12744 * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
12745 (decl_for_uid_map): New global hashtable mapping DECL_UID
12747 (init_ttree): Allocate it.
12748 (insert_decl_to_uid_decl_map): New helper function.
12749 (make_node_stat): Insert new decls into the map.
12750 (copy_node_stat): Likewise.
12751 (lookup_decl_from_uid): New function.
12752 (remove_decl_from_map): Likewise.
12753 (print_decl_for_uid_map_statistics): New helper.
12754 (dump_tree_statistics): Call it.
12756 * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
12757 (referenced_var_iterator): Adjust.
12758 (FOR_EACH_REFERENCED_VAR): Adjust.
12759 (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
12760 (num_referenced_vars): Adjust.
12761 * tree-flow-inline.h (gimple_referenced_vars): Adjust.
12762 (first_referenced_var): Remove.
12763 (end_referenced_vars_p): Likewise.
12764 (next_referenced_var): Likewise.
12765 (referenced_var_iterator_set): New helper function.
12766 * tree-dfa.c (referenced_var_lookup): Adjust.
12767 (referenced_var_check_and_insert): Likewise.
12768 (remove_referenced_var): Likewise.
12769 * tree-ssa.c (verify_flow_insensitive_alias_info): Use
12770 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
12771 (verify_call_clobbering): Likewise.
12772 (verify_memory_partitions): Likewise.
12773 (init_tree_ssa): Allocate bitmap instead of hashtable for
12775 (delete_tree_ssa): Adjust.
12776 * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
12777 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
12778 (compute_tag_properties): Likewise.
12779 (set_initial_properties): Likewise.
12780 (find_partition_for): Likewise.
12781 (update_reference_counts): Likewise.
12782 (dump_may_aliases_for): Likewise.
12783 * tree-ssa-operands.c (add_virtual_operand): Likewise.
12784 (add_call_clobber_ops): Likewise.
12785 (add_call_read_ops): Likewise.
12786 (get_asm_expr_operands): Likewise.
12787 * tree-into-ssa.c (dump_decl_set): Likewise.
12788 (update_ssa): Likewise.
12789 * tree-sra.c (scan_function): Likewise.
12790 (decide_instantiations): Likewise.
12791 (scalarize_parms): Likewise.
12792 * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
12793 (dsa_named_for): Likewise.
12794 * tree-ssa-structalias.c (update_alias_info): Likewise.
12795 (merge_smts_into): Likewise.
12797 2008-02-26 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
12800 * doc/invoke.texi (-Wall): Add -Wvolatile-register-var.
12801 * c-opts.c (c_common_handle_option): Wall enables
12802 Wvolatile-register-var.
12803 * common.opt: Move Wvolatile-register-var to...
12806 2008-02-26 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
12808 * common.opt (Wlarger-than=): New.
12809 * doc/invoke.texi (Warning Options): Replace -Wlarger-than- with
12811 * opts.c (common_handle_option): Handle -Wlarger-than=.
12812 * optc-gen.awk: Likewise.
12813 * opth-gen.awk: Likewise.
12814 * stor-layout.c (layout_decl): Use -Wlarger-than= for warning.
12815 * tree-optimize.c (tree_rest_of_compilation): Likewise.
12817 2008-02-26 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
12819 * c-common.c (match_case_to_enum_1): Add appropriate
12820 OPT_W* parameter to warning.
12821 (c_do_switch_warnings): Likewise.
12822 * c-typeck.c (warning_init): Add one more parameter following
12823 'warning' function.
12824 (push_init_level): Update call to warning_init.
12825 (pop_init_level): Likewise.
12826 (add_pending_init): Likewise.
12827 (output_init_element: Likewise.
12829 2008-02-26 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
12832 * toplev.c (toplev_main): If there are warnings or error, print
12833 errors for ignored options.
12834 * opts.c (ignored_options): New static variable.
12835 (postpone_unknown_option_error): New.
12836 (print_ignored_options): New.
12837 (handle_option): Postpone errors for unknown -Wno-* options.
12838 * opts.h (print_ignored_options): Declare.
12840 2008-02-25 Richard Sandiford <rsandifo@nildram.co.uk>
12842 * config/mips/mips.md (loadgp_blockage, blockage): Change type
12845 2008-02-25 Richard Guenther <rguenther@suse.de>
12848 2008-02-25 Richard Guenther <rguenther@suse.de>
12850 * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
12851 * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
12852 (lookup_decl_from_uid): Declare.
12853 * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
12854 * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
12855 (decl_for_uid_map): New global hashtable mapping DECL_UID
12857 (init_ttree): Allocate it.
12858 (insert_decl_to_uid_decl_map): New helper function.
12859 (make_node_stat): Insert new decls into the map.
12860 (copy_node_stat): Likewise.
12861 (lookup_decl_from_uid): New function.
12862 (print_decl_for_uid_map_statistics): New helper.
12863 (dump_tree_statistics): Call it.
12865 * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
12866 (referenced_var_iterator): Adjust.
12867 (FOR_EACH_REFERENCED_VAR): Adjust.
12868 (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
12869 (num_referenced_vars): Adjust.
12870 * tree-flow-inline.h (gimple_referenced_vars): Adjust.
12871 (first_referenced_var): Remove.
12872 (end_referenced_vars_p): Likewise.
12873 (next_referenced_var): Likewise.
12874 (referenced_var_iterator_set): New helper function.
12875 * tree-dfa.c (referenced_var_lookup): Adjust.
12876 (referenced_var_check_and_insert): Likewise.
12877 (remove_referenced_var): Likewise.
12878 * tree-ssa.c (verify_flow_insensitive_alias_info): Use
12879 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
12880 (verify_call_clobbering): Likewise.
12881 (verify_memory_partitions): Likewise.
12882 (init_tree_ssa): Allocate bitmap instead of hashtable for
12884 (delete_tree_ssa): Adjust.
12885 * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
12886 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
12887 (compute_tag_properties): Likewise.
12888 (set_initial_properties): Likewise.
12889 (find_partition_for): Likewise.
12890 (update_reference_counts): Likewise.
12891 (dump_may_aliases_for): Likewise.
12892 * tree-ssa-operands.c (add_virtual_operand): Likewise.
12893 (add_call_clobber_ops): Likewise.
12894 (add_call_read_ops): Likewise.
12895 (get_asm_expr_operands): Likewise.
12896 * tree-into-ssa.c (dump_decl_set): Likewise.
12897 (update_ssa): Likewise.
12898 * tree-sra.c (scan_function): Likewise.
12899 (decide_instantiations): Likewise.
12900 (scalarize_parms): Likewise.
12901 * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
12902 (dsa_named_for): Likewise.
12903 * tree-ssa-structalias.c (update_alias_info): Likewise.
12904 (merge_smts_into): Likewise.
12906 2008-02-25 Janne Blomqvist <jb@gcc.gnu.org>
12909 * doc/invoke.texi (-fcx-limited-range): Document new option.
12910 * toplev.c (process_options): Handle -fcx-fortran-rules.
12911 * common.opt: Add documentation for -fcx-fortran-rules.
12913 2008-02-25 Janne Blomqvist <jb@gcc.gnu.org>
12916 * doc/invoke.texi (-fcx-limited-range): Correct to be in line with
12917 actual behaviour and C99.
12919 2008-02-26 Ben Elliston <bje@au.ibm.com>
12921 * config/rs6000/rs6000.h (ASM_CPU_POWER5_SPEC): Define.
12922 (ASM_CPU_POWER6_SPEC): Likewise.
12923 (ASM_CPU_SPEC): Pass %(asm_cpu_power5) for -mcpu=power5.
12924 Likewise, pass %(asm_cpu_power6) for -mcpu=power6.
12925 (EXTRA_SPECS): Add asm_cpu_power5, asm_cpu_power6 spec strings.
12927 2008-02-25 Richard Guenther <rguenther@suse.de>
12929 * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
12930 * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
12931 (lookup_decl_from_uid): Declare.
12932 * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
12933 * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
12934 (decl_for_uid_map): New global hashtable mapping DECL_UID
12936 (init_ttree): Allocate it.
12937 (insert_decl_to_uid_decl_map): New helper function.
12938 (make_node_stat): Insert new decls into the map.
12939 (copy_node_stat): Likewise.
12940 (lookup_decl_from_uid): New function.
12941 (print_decl_for_uid_map_statistics): New helper.
12942 (dump_tree_statistics): Call it.
12944 * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
12945 (referenced_var_iterator): Adjust.
12946 (FOR_EACH_REFERENCED_VAR): Adjust.
12947 (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
12948 (num_referenced_vars): Adjust.
12949 * tree-flow-inline.h (gimple_referenced_vars): Adjust.
12950 (first_referenced_var): Remove.
12951 (end_referenced_vars_p): Likewise.
12952 (next_referenced_var): Likewise.
12953 (referenced_var_iterator_set): New helper function.
12954 * tree-dfa.c (referenced_var_lookup): Adjust.
12955 (referenced_var_check_and_insert): Likewise.
12956 (remove_referenced_var): Likewise.
12957 * tree-ssa.c (verify_flow_insensitive_alias_info): Use
12958 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
12959 (verify_call_clobbering): Likewise.
12960 (verify_memory_partitions): Likewise.
12961 (init_tree_ssa): Allocate bitmap instead of hashtable for
12963 (delete_tree_ssa): Adjust.
12964 * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
12965 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
12966 (compute_tag_properties): Likewise.
12967 (set_initial_properties): Likewise.
12968 (find_partition_for): Likewise.
12969 (update_reference_counts): Likewise.
12970 (dump_may_aliases_for): Likewise.
12971 * tree-ssa-operands.c (add_virtual_operand): Likewise.
12972 (add_call_clobber_ops): Likewise.
12973 (add_call_read_ops): Likewise.
12974 (get_asm_expr_operands): Likewise.
12975 * tree-into-ssa.c (dump_decl_set): Likewise.
12976 (update_ssa): Likewise.
12977 * tree-sra.c (scan_function): Likewise.
12978 (decide_instantiations): Likewise.
12979 (scalarize_parms): Likewise.
12980 * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
12981 (dsa_named_for): Likewise.
12982 * tree-ssa-structalias.c (update_alias_info): Likewise.
12983 (merge_smts_into): Likewise.
12985 2008-02-25 Andreas Krebbel <krebbel1@de.ibm.com>
12988 * cse.c (cse_insn): Avoid creation of overlapping MEMs.
12989 * alias.c (nonoverlapping_memrefs_p): Export for use in other modules.
12990 * alias.h (nonoverlapping_memrefs_p): Likewise.
12992 2008-02-25 Jan Beulich <jbeulich@novell.com>
12994 * Makefile.in: Also prefix uses of crt0.o and mcrt0.o with $(T).
12995 * config/i386/netware-libgcc.exp: Add __bswap?i2,
12996 __emultls_get_address, __emultls_register_common,
12997 __floatundi?f, and _Unwind_GetIPInfo.
12998 * config/i386/netware.c (gen_stdcall_or_fastcall_decoration):
12999 Sync with config/i386/winnt.c:gen_stdcall_or_fastcall_suffix().
13000 (gen_regparm_prefix): Likewise.
13001 (i386_nlm_encode_section_info): Sync with
13002 config/i386/winnt.c:i386_pe_encode_section_info().
13003 (i386_nlm_maybe_mangle_decl_assembler_name): New.
13004 i386_nlm_mangle_decl_assembler_name): New.
13005 (netware_override_options): New.
13006 * config/i386/netware.h (netware_override_options): Declare.
13007 (OVERRIDE_OPTIONS): Re-define to netware_override_options.
13008 (i386_nlm_mangle_decl_assembler_name): Declare.
13009 (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Define.
13011 2008-02-25 Ben Elliston <bje@au.ibm.com>
13014 * c-decl.c (grokdeclarator): Remove unused local variables
13015 `typedef_type' and `type_as_written'.
13017 (find_rarely_executed_basic_blocks_and_crossing_edges): Remove
13018 unused local variable `has_hot_blocks'.
13019 (fix_crossing_conditional_branches): Remove unused local variable
13022 2008-02-25 Uros Bizjak <ubizjak@gmail.com>
13024 PR middle-end/19984
13025 * builtins.def (BUILT_IN_NAN): Define as c99 builtin
13026 using DEF_C99_BUILTIN.
13027 (BUILT_IN_NANF): Ditto.
13028 (BUILT_IN_NANL): Ditto.
13030 2008-02-25 Ayal Zaks <zaks@il.ibm.com>
13031 Revital Eres <eres@il.ibm.com>
13033 * modulo-sched.c (calculate_must_precede_follow): Address TODO
13034 regarding the order of two dependent insns in the same row.
13036 2008-02-25 Eric Botcazou <ebotcazou@adacore.com>
13038 * stor-layout.c (layout_decl): Do not bump the alignment of a
13039 bit-field to more than byte alignment if it is packed.
13041 2008-02-24 David Edelsohn <edelsohn@gnu.org>
13043 * config/rs6000/rs6000.c (processor_costs): Add cache costs for
13046 2008-02-24 Diego Novillo <dnovillo@google.com>
13048 http://gcc.gnu.org/ml/gcc-patches/2008-02/msg01094.html
13051 * tree-vrp.c (vrp_evaluate_conditional): With
13052 -Wtype-limits, emit a warning when comparing against a
13053 constant outside the natural range of OP0's type.
13054 * c.opt (Wtype-limits): Move ...
13055 * common.opt (Wtype-limits): ... here.
13057 2008-02-24 Edmar Wienskoski <edmar@freescale.com>
13059 * config.gcc (powerpc*-*-*): Add new cores e300c2 and e300c3.
13060 * config/rs6000/e300c2c3.md: New file.
13061 * config/rs6000/rs6000.c (processor_costs): Add new costs for
13063 (rs6000_override_options): Add e300c2 and e300c3 cases to
13064 processor_target_table. Do not allow usage of Altivec or Spe
13065 with e300 cores. Initialize rs6000_cost for e300c2 and e300c3.
13066 (rs6000_issue_rate): Set issue rate for e300c2 and e300c3.
13067 * config/rs6000/rs6000.h (processor_type): Add
13068 PROCESSOR_PPCE300C2 and PROCESSOR_PPCE300C3.
13069 (ASM_CPU_SPEC): Add e300c2 and e300c3.
13070 * config/rs6000/rs6000.md (define_attr "cpu"): Add ppce300c2
13071 and ppce300c3. Include e300c2c3.md.
13073 2008-02-23 David Edelsohn <edelsohn@gnu.org>
13075 * config/rs6000/rs6000.h (CONSTANT_ALIGNMENT): Use STRICT_ALIGNMENT
13076 instead of TARGET_STRICT_ALIGN.
13078 2008-02-23 Joseph Myers <joseph@codesourcery.com>
13080 * explow.c (memory_address): Assert that the generated address is
13083 2008-02-23 Francois-Xavier Coudert <coudert@clipper.ens.fr>
13086 * config/darwin-protos.h: Add darwin_patch_builtins prototype.
13087 * config/darwin-ppc-ldouble-patch.def: New file.
13088 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): New macro.
13089 * config/rs6000/rs6000.c (rs6000_init_builtins): Call
13090 SUBTARGET_INIT_BUILTINS if defined.
13091 * config/darwin.c (darwin_patch_builtin, darwin_patch_builtins):
13094 2008-02-23 Andrew Pinski <andrew_pinski@playstation.sony.com>
13097 * simplify-rtx.c (simplify_binary_operation_1): Add simplification
13098 of (and X (ior (not X) Y) and (and (ior (not X) Y) X).
13100 2008-02-23 Andrew Pinski <andrew_pinski@playstation.sony.com>
13103 * c-pch.c (c_common_valid_pch): Make the "too short to be a PCH
13104 file" warning condtional on -Winvalid-PCH.
13106 2008-02-23 Daniel Jacobowitz <dan@codesourcery.com>
13108 * expmed.c (extract_bit_field): Always use adjust_address for MEM.
13110 2008-02-23 Uros Bizjak <ubizjak@gmail.com>
13114 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use "!y" to
13115 prevent reload from using MMX registers.
13116 (*mov<mode>_internal): Ditto.
13117 (*movv2sf_internal_rex64): Ditto.
13118 (*movv2sf_internal): Ditto.
13120 2008-02-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13122 PR documentation/31569
13123 * doc/install.texi2html: Use makeinfo --no-number-sections.
13125 2008-02-22 Nathan Froyd <froydnj@codesourcery.com>
13127 * config/rs6000/rs6000.c (rs6000_legitimize_address): Check to
13128 ensure that we can address an entire entity > 8 bytes. Don't
13129 generate reg+reg addressing for such data.
13131 2008-02-22 Nathan Froyd <froydnj@codesourcery.com>
13133 * config/rs6000/rs6000.h (CONSTANT_ALIGNMENT): Don't overalign
13134 strings when optimizing for size, unless the target cares about
13137 2008-02-22 Tom Tromey <tromey@redhat.com>
13139 * regclass.c (current_pass): Remove declaration.
13141 2008-02-22 Anatoly Sokolov <aesok@post.ru>
13143 * config/avr/libgcc.S (__RAMPZ__): Define.
13144 (__do_copy_data): Add for devices with 128KB code memory.
13146 2008-02-22 Nathan Froyd <froydnj@codesourcery.com>
13148 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS):
13150 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Likewise.
13152 2008-02-22 Hans-Peter Nilsson <hp@axis.com>
13154 * config/cris/cris.h (REG_CLASS_FROM_LETTER): Recognize 'b' for
13157 2008-02-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13160 * c-typeck.c (build_binary_op): Warn about floating point
13161 comparisons if FLOAT_TYPE_P, not only for REAL_TYPE.
13163 2008-02-21 Janis Johnson <janis187@us.ibm.com>
13166 * config/rs6000/rs6000.c (rs6000_altivec_abi): Clarify comment.
13167 (rs6000_explicit_options): Split abi into spe_abi and altivec_abi,
13169 (rs6000_override_options): Set altivec_abi as default, not override,
13170 for 64-bit GNU/Linux; for 32-bit GNU/Linux default to altivec_abi for
13171 TARGET_ALTIVEC; default to TARGET_ALTIVEC_VRSAVE when AltiVec ABI
13172 is used; use new member spe_abi.
13173 (rs6000_handle_option): Set rs6000_explicit_options.vrsave; use
13174 spe_abi and altivec_abi.
13176 2008-02-22 Tomas Bily <tbily@suse.cz>
13178 * tree-vectorizer.c (vect_is_simple_reduction): Fix comment typo.
13180 2008-02-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13183 * config.build (build_file_translate): Set to `CMD //c' only if
13185 * Makefile.in (build_file_translate): Improve comment.
13187 2008-02-21 Jan Hubicka <jh@suse.cz>
13189 * predict.def (PRED_TREE_OPCODE_POSITIVE, PRED_TREE_OPCODE_NONEQUAL,
13190 PRED_TREE_OPCODE_POSITIVE, PRED_TREE_OPCODE_NONEQUAL, PRED_CALL,
13191 PRED_TREE_EARLY_RETURN, PRED_NULL_RETURN): Update.
13193 2008-02-21 Michael Matz <matz@suse.de>
13196 * config/i386/i386.c (ix86_expand_branch): Add missing breaks.
13198 2008-02-21 Uros Bizjak <ubizjak@gmail.com>
13200 * config/i386/i386.md (mov<mode>cc): Macroize expander from movsfcc,
13201 movdfcc and movxfcc using X87MODEF mode iterator and SSE_FLOAT_MODE_P
13202 as insn constraint.
13203 * config/i386/sse.md (<sse>_movup<ssemodesuffixf2c>): Macroize insn
13204 from sse_movups adn sse2_movupd using SSEMODEF2P mode iterator and
13205 SSE_VEC_FLOAT_MODE_P as insn constraint.
13206 (<sse>_movmskp<ssemodesuffixf2c>): Ditto from similar patterns.
13207 (sse4a_movnt<mode>): Macroize insn from sse4a_movntsf and
13208 sse4a_movntdf using MODEF mode iterator.
13209 (sse4a_vmmovnt<mode>): Macroize insn form sse4a_vmmovntv2df and
13210 sse4a_vmmovntv4sf using SSEMODEF2P mode iterator.
13211 (sse4_1_blendp<ssemodesuffixf2c>): Ditto from similar patterns.
13212 (sse4_1_blendvp<ssemodesuffixf2c>): Ditto.
13213 (sse4_1_dpp<ssemodesuffixf2c>): Ditto.
13214 (sse4_1_roundp<ssemodesuffixf2c>): Ditto.
13215 (sse4_1_rounds<ssemodesuffixf2c>): Ditto.
13217 2008-02-21 Richard Guenther <rguenther@suse.de>
13219 * tree.def (PAREN_EXPR): New tree code.
13220 * fold-const.c (fold_unary): Remove PAREN_EXPR around constants
13222 * tree-pretty-print.c (dump_generic_node): Handle PAREN_EXPR.
13223 * expr.c (expand_expr_real_1): Likewise.
13224 * tree-inline.c (estimate_num_insns_1): Likewise.
13225 * tree-complex.c (expand_complex_move): Likewise.
13226 * tree-vectorizer.c (vect_is_simple_use): Treat PAREN_EXPR (x)
13229 2008-02-20 Kaz Kojima <kkojima@gcc.gnu.org>
13232 * config/sh/sh.c (find_barrier): Don't go past 'from' argument.
13234 2008-02-20 Kaz Kojima <kkojima@gcc.gnu.org>
13237 * config/sh/sh.md (jump_compact): Disable for crossing jumps.
13239 * config/sh/sh.c (find_barrier): Don't go past
13240 NOTE_INSN_SWITCH_TEXT_SECTIONS note.
13242 2008-02-20 DJ Delorie <dj@redhat.com>
13244 * config/h8300/h8300.md (insv): Force source operand to be a register.
13246 * config/h8300/h8300.c (h8300_expand_epilogue): Emit return insn
13247 as a jump, not as a plain insn.
13249 2008-02-20 Seongbae Park <seongbae.park@gmail.com>
13251 * doc/invoke.texi (Warning Options): Add new option
13252 -Wframe-larger-than=.
13253 (-Wframe-larger-than): Document.
13255 * flags.h (warn_frame_larger_than, frame_larger_than_size):
13256 Add declarations for new option variables.
13258 * final.c (final_start_function): Check the frame size
13259 before emission and issue a Wframe-larger-than warning.
13261 * opts.c (warn_frame_larger_than, frame_larger_than_size):
13262 Add definitions for new option variables.
13263 (common_handle_option): Handle new option OPT_Wframe_larger_than_.
13265 * common.opt (Wframe-larger-than=): New option.
13267 2008-02-20 Uros Bizjak <ubizjak@gmail.com>
13269 * config/i386/sse.md (<sse>_vmmul<mode>3): Fix typo in asm template.
13270 (<sse>_div<mode>3): Ditto.
13271 (<sse>_vmdiv<mode>3): Ditto.
13272 (<sse>_vmsqrt<mode>2): Ditto.
13273 (*smax<mode>3): Ditto.
13274 (sse5_frcz<mode>2): Ditto.
13275 (sse5_vmfrcz<mode>2): Ditto. Use TARGET_SSE5 instead of TARGET_ROUND
13276 as insn constraint.
13278 2008-02-20 Richard Guenther <rguenther@suse.de>
13280 PR middle-end/35265
13281 * builtins.c (validate_arg): If we want an INTEGER_TYPE,
13282 be happy with INTEGRAL_TYPE_P.
13284 2008-02-20 Richard Guenther <rguenther@suse.de>
13286 * fold-const.c (split_tree): Associate floatig-point expressions
13287 if flag_associative_math is set.
13289 2008-02-20 Richard Guenther <rguenther@suse.de>
13291 * tree.h (fold_real_zero_addition_p): Declare.
13292 * fold-const.c (fold_real_zero_addition_p): Export.
13293 * tree-ssa-reassoc.c (eliminate_using_constants): Also handle
13294 floating-point operations with zero and one.
13296 2008-02-20 Paolo Bonzini <bonzini@gnu.org>
13298 * doc/install.texi: Correct references to CFLAGS, replacing them
13299 with BOOT_CFLAGS. Document flags used during bootstrap for
13302 2008-02-20 Uros Bizjak <ubizjak@gmail.com>
13304 * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): New define.
13305 * config/i386/i386.md (*sse_setcc<mode>): Macroize from *sse_setccsf
13306 and *sse_setccdf using MODEF mode iterator and SSE_FLOAT_MODE_P as
13308 (smin<mode>3): Ditto from similar patterns.
13309 (smax<mode>3): Ditto.
13310 (*ieee_smin<mode>3): Ditto.
13311 (*ieee_smax<mode>3): Ditto.
13312 * config/i386/sse.md (sse): New mode attribute.
13313 (mov<mode>): Macroize expander from movv4sf and movv2df using
13314 SSEMODEF2P mode iterator.
13315 (<sse>_movnt<mode>): Ditto from similar patterns. Use
13316 SSE_VEC_FLOAT_MODE_P as insn constraint.
13317 (storent<mode>): Ditto.
13318 (storent<mode>): Macroize expander from storentsf and storentdf using
13319 MODEF mode iterator.
13320 (neg<mode>2): Macroize from negv4sf2 and negv2df2 using SSEMODEF2P
13321 mode iterator and SSE_VEC_FLOAT_MODE_P as insn constraint.
13322 (abs<mode>2): Ditto from similar patterns.
13323 (add<mode>3, *add<mode>3, <sse>_vmadd<mode>3): Ditto.
13324 (sub<mode>3, *sub<mode>3, <sse>_vmsub<mode>3): Ditto.
13325 (<sse>_div<mode>3, <sse>_vmdiv<mode>3): Ditto.
13326 (<sse>_vmsqrt<mode>2): Ditto.
13327 (smin<mode>3, *smin<mode>3_finite, *smin<mode>3)
13328 (<sse>_vmsmin<mode>3, *ieee_smin<mode>3): Ditto.
13329 (smax<mode>3, *smax<mode>3_finite, *smax<mode>3)
13330 (<sse>_vmsmax<mode>3, *ieee_smax<mode>3): Ditto.
13331 (<sse>_maskcmp<mode>3): Macroize from sse_maskcmpv4sf3,
13332 sse_maskcmpsf3, sse2_maskcmpv2df3 and sse2_maskcmpdf3 using SSEMODEF4
13333 mode iterator. Use SSE_FLOAT_MODE_P with SSE_VEC_FLOAT_MODE_P as
13335 (<sse>_comi): Macroize from sse_comi and sse2_comi using MODEF mode
13336 iterator and SSE_FLOAT_MODE_P as insn constraint.
13337 (<sse>_ucomi): Ditto from similar patterns.
13338 (<sse>_vmmaskcmp<mode>3): Macroize from sse_vmmaskcmpv4sf3 and
13339 sse2_vmmaskcmpv2df3 using SSEMODEF2P mode iterator and
13340 SSE_VEC_FLOAT_MODE_P as insn constraint.
13341 (vcond<mode>): Ditto from similar patterns.
13342 (and<mode>3, *and<mode>3): Ditto.
13343 (<sse>_nand<mode>3): Ditto.
13344 (ior<mode>3, *ior<mode>3): Ditto.
13345 (xor<mode>3, *xor<mode>3): Ditto.
13346 (*and<mode>3): Macroize from *andsf3 and *anddf3 using MODEF mode
13347 iterator and SSE_FLOAT_MODE_P as insn constraint.
13348 (*nand<mode>3): Ditto from similar patterns.
13349 (*ior<mode>3): Ditto.
13350 (*xor<mode>3): Ditto.
13352 2008-02-20 Ira Rosen <irar@il.ibm.com>
13354 * config/spu/spu.md (vec_unpacku_hi_v8hi, vec_unpacku_lo_v8hi,
13355 vec_unpacks_hi_v8hi, vec_unpacks_lo_v8hi, vec_unpacku_hi_v16qi,
13356 vec_unpacku_lo_v16qi, vec_unpacks_lo_v16qi): Implement.
13358 2008-02-19 Jan Hubicka <jh@suse.cz>
13360 * predict.c (tree_bb_level_predictions): Remove variable next
13361 mistakely introduced by previous commit.
13363 2008-02-19 Jan Hubicka <jh@suse.cz>
13365 * predict.c (predict_paths_leading_to): Rewrite.
13366 (predict_paths_for_bb): New.
13367 (tree_bb_level_predictions): Update call of predict_paths_leading_to.
13369 2008-02-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13372 * Makefile.in (build_file_translate): New.
13373 (gcc-vers.texi): Use it for translating $(abs_srcdir).
13374 * config.build (build_file_translate): Set to `CMD //c' on MinGW.
13375 * configure.ac (build_file_translate): Substitute it.
13376 * configure: Regenerate.
13378 2008-02-19 Jan Hubicka <jh@suse.cz>
13380 PR rtl-optimization/34408
13381 * see.c (see_def_extension_not_merged): Copy subreg so we don't have
13384 2008-02-19 Jan Hubicka <jh@suse.cz>
13386 PR middle-end/28779
13387 * tree-inline.c (estimate_num_insns_1): Fix counting of cost of
13390 2008-02-19 H.J. Lu <hongjiu.lu@intel.com>
13393 * config/i386/i386-modes.def: Revert the last DI alignment
13394 change until Ada people can look into it.
13396 2008-02-19 Nick Clifton <nickc@redhat.com>
13398 * opts.c (print_specific_help): Fix typo in --help text.
13400 2008-02-19 Jakub Jelinek <jakub@redhat.com>
13403 * config/i386/cpuid.h (__cpuid, __get_cpuid_max): Use special
13404 32-bit inline asm without asm alternatives for host GCC < 3.0.
13406 2008-02-19 Richard Guenther <rguenther@suse.de>
13408 PR tree-optimization/34989
13409 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Re-structure.
13410 Allow propagation to INDIRECT_REF if we can simplify only.
13412 2008-02-19 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
13414 * c-common.c (warn_for_collisions_1): Use appropriate option when
13417 2008-02-19 Nick Clifton <nickc@redhat.com>
13420 * opts.c (undocumented_msg): Leave blank unless checking is enabled.
13421 (handle_options): Fix indentation.
13422 (print_filtered_help): If no language-specific options were
13423 displayed tell the user how to list all the options supported by
13424 the language's front-end.
13425 (print_specific_help): Fix indentation and remove duplicate line.
13426 (common_handle_option): Handle the -v option.
13427 For --help enable the display of undocumented options if the -v
13428 switch has been included on the command line.
13429 For --help= check for overlaps in the arguments between the option
13430 classes and the language names and issue a warning when they
13431 cannot be disambiguated.
13432 * c.opt (v): Pass on to the common option handler.
13434 2008-02-19 Revital Eres <eres@il.ibm.com>
13436 * modulo-sched.c (sms_schedule): Change dump message when
13437 create_ddg function fails.
13438 (try_scheduling_node_in_cycle): Rename row to cycle.
13439 (print_partial_schedule): Rename CYCLE to ROW.
13441 2008-02-19 Christian Bruel <christian.bruel@st.com>
13442 Zdenek Dvorak <ook@ucw.cz>
13444 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Check step alignment.
13446 2008-02-19 Uros Bizjak <ubizjak@gmail.com>
13449 * config/i386/i386.md (*x86_movsicc_0_m1_se): New insn pattern.
13450 (*x86_movdicc_0_m1_se): Ditto.
13452 2008-02-19 Uros Bizjak <ubizjak@gmail.com>
13454 * config/i386/sfp-machine.h (__gcc_CMPtype): New typedef.
13455 (CMPtype): Define as __gcc_CMPtype.
13456 * config/rs6000/sfp-machine.h (__gcc_CMPtype): New typedef.
13457 (CMPtype): Define as __gcc_CMPtype.
13459 2008-02-19 Hans-Peter Nilsson <hp@axis.com>
13461 Support valgrind 3.3 for --enable-checking=valgrind.
13462 * system.h: Consolidate ENABLE_VALGRIND_CHECKING-dependent defines
13464 [!VALGRIND_MAKE_MEM_NOACCESS]: Define as VALGRIND_MAKE_NOACCESS.
13465 [!VALGRIND_MAKE_MEM_DEFINED]: Define as VALGRIND_MAKE_READABLE.
13466 [!VALGRIND_MAKE_MEM_UNDEFINED]: Define as VALGRIND_MAKE_WRITABLE.
13467 * ggc-common.c: Remove ENABLE_VALGRIND_CHECKING-dependent defines.
13468 Replace use of VALGRIND_MAKE_READABLE, VALGRIND_MAKE_WRITABLE, and
13469 VALGRIND_MAKE_NOACCESS with VALGRIND_MAKE_MEM_DEFINED,
13470 VALGRIND_MAKE_MEM_UNDEFINED, and VALGRIND_MAKE_MEM_NOACCESS
13472 * ggc-zone.c: Similar.
13473 * ggc-page.c: Similar.
13475 2008-02-19 Paul Brook <paul@codesourcery.com>
13478 * config/arm/ieee754-df.S: Fix do_it typo.
13479 * config/arm/ieee754-sf.S: Fix do_it typo.
13481 2008-02-18 H.J. Lu <hongjiu.lu@intel.com>
13484 * config/i386/i386.c (OPTION_MASK_ISA_MMX_SET): New.
13485 (OPTION_MASK_ISA_3DNOW_SET): Likewise.
13486 (OPTION_MASK_ISA_SSE_SET): Likewise.
13487 (OPTION_MASK_ISA_SSE2_SET): Likewise.
13488 (OPTION_MASK_ISA_SSE3_SET): Likewise.
13489 (OPTION_MASK_ISA_SSSE3_SET): Likewise.
13490 (OPTION_MASK_ISA_SSE4_1_SET): Likewise.
13491 (OPTION_MASK_ISA_SSE4_2_SET): Likewise.
13492 (OPTION_MASK_ISA_SSE4_SET): Likewise.
13493 (OPTION_MASK_ISA_SSE4A_SET): Likewise.
13494 (OPTION_MASK_ISA_SSE5_SET): Likewise.
13495 (OPTION_MASK_ISA_3DNOW_A_UNSET): Likewise.
13496 (OPTION_MASK_ISA_MMX_UNSET): Updated.
13497 (OPTION_MASK_ISA_3DNOW_UNSET): Updated.
13498 (OPTION_MASK_ISA_SSE_UNSET): Likewise.
13499 (OPTION_MASK_ISA_SSE3_UNSET): Likewise.
13500 (OPTION_MASK_ISA_SSSE3_UNSET): Likewise.
13501 (OPTION_MASK_ISA_SSE4_1_UNSET): Likewise.
13502 (OPTION_MASK_ISA_SSE4_2_UNSET): Likewise.
13503 (OPTION_MASK_ISA_SSE4A_UNSET): Likewise.
13504 (OPTION_MASK_ISA_SSE5_UNSET): Likewise.
13505 (OPTION_MASK_ISA_SSE4): Removed.
13506 (ix86_handle_option): Turn on bits in ix86_isa_flags and
13507 ix86_isa_flags_explicit with OPTION_MASK_ISA_XXX_SET for -mXXX.
13508 (override_options): Don't turn on implied SSE/MMX bits in
13511 2008-02-18 H.J. Lu <hongjiu.lu@intel.com>
13513 * config/i386/i386-modes.def: Use 4 byte alignment on DI for
13516 2008-02-18 Joey Ye <joey.ye@intel.com>
13518 PR middle-end/34921
13519 * tree-nested.c (insert_field_into_struct): Set type alignment
13520 to field alignment if the former is less than the latter.
13522 2008-02-18 Jakub Jelinek <jakub@redhat.com>
13524 * BASE-VER: Set to 4.4.0.
13526 2008-02-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13528 * doc/c-tree.texi: Use @dots{} and @enddots{} where appropriate.
13529 * doc/cfg.texi: Likewise.
13530 * doc/extend.texi: Likewise.
13531 * doc/gty.texi: Likewise.
13532 * doc/invoke.texi: Likewise.
13533 * doc/loop.texi: Likewise.
13534 * doc/md.texi: Likewise.
13535 * doc/passes.texi: Likewise.
13536 * doc/rtl.texi: Likewise.
13537 * doc/sourcebuild.texi: Likewise.
13538 * doc/tm.texi: Likewise.
13539 * doc/tree-ssa.texi: Likewise.
13541 2008-02-17 Richard Guenther <rguenther@suse.de>
13543 PR middle-end/35227
13544 * tree-complex.c (init_parameter_lattice_values): Handle parameters
13545 without default definition.
13547 2008-02-17 Richard Guenther <rguenther@suse.de>
13549 PR tree-optimization/35231
13550 * tree-vrp.c (register_edge_assert_for): Do not assume A == 0
13553 2008-02-17 Uros Bizjak <ubizjak@gmail.com>
13556 2008-02-15 Uros Bizjak <ubizjak@gmail.com>
13557 * config/i386/sfp-machine.h (CMPtype): Define as typedef using
13558 libgcc_cmp_return mode.
13560 2008-02-16 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
13563 * doc/invoke.texi (-std): Clarify description of -std= and -ansi.
13565 2008-02-16 Ralf Corsepius <ralf.corsepius@rtems.org>
13567 * config/m68k/t-rtems (M68K_MLIB_CPU): Add 5208, 5307, 5407, 5475
13570 2008-02-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13572 * doc/c-tree.texi: Use `@.' where appropriate.
13573 * doc/extend.texi: Likewise.
13574 * doc/install.texi: Likewise.
13575 * doc/invoke.texi: Likewise.
13576 * doc/loop.texi: Likewise.
13577 * doc/makefile.texi: Likewise.
13578 * doc/md.texi: Likewise.
13579 * doc/passes.texi: Likewise.
13580 * doc/standards.texi: Likewise.
13581 * doc/tm.texi: Likewise.
13583 2008-02-15 Jakub Jelinek <jakub@redhat.com>
13585 PR middle-end/35196
13586 * omp-low.c (expand_omp_for_generic): Don't initialize fd->v
13588 (expand_omp_for_static_nochunk): Initialize fd->v in seq_start_bb
13589 rather than in entry_bb.
13591 2008-02-15 Uros Bizjak <ubizjak@gmail.com>
13593 * config/i386/sfp-machine.h (CMPtype): Define as typedef using
13594 libgcc_cmp_return mode.
13596 2008-02-15 Jakub Jelinek <jakub@redhat.com>
13598 PR middle-end/35130
13599 * tree-nested.c (convert_call_expr): Put FRAME.* vars into
13600 OMP_CLAUSE_SHARED rather than OMP_CLAUSE_FIRSTPRIVATE clause.
13602 2008-02-15 Richard Guenther <rguenther@suse.de>
13603 Zdenek Dvorak <ook@ucw.cz>
13605 PR tree-optimization/35164
13606 * tree-flow.h (stmt_references_abnormal_ssa_name): Declare.
13607 * tree-dfa.c (stmt_references_abnormal_ssa_name): New function.
13608 * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_vars):
13609 Only propagate addresses which do not have abnormal SSA_NAMEs
13612 2008-02-15 Joseph Myers <joseph@codesourcery.com>
13615 * config/m68k/m68k.h (DWARF_CIE_DATA_ALIGNMENT): Define.
13617 2008-02-15 Jan Hubicka <jh@suse.cz>
13619 PR middle-end/35149
13620 * ipa.c (cgraph_remove_unreachable_nodes): Clear local.inlinable flag.
13622 2008-02-15 Uros Bizjak <ubizjak@gmail.com>
13624 PR middle-end/34621
13625 * function.c (pad_to_arg_alignment): Remove test for STACK_BOUNDARY
13626 when calculating alignment_pad.
13628 2008-02-15 Uros Bizjak <ubizjak@gmail.com>
13630 * config/i386/i386.h (CLEAR_RATIO): Use MIN macro.
13631 (WIDEST_HARDWARE_FP_SIZE): Use LONG_DOUBLE_TYPE_SIZE define.
13632 * config/i386/darwin.h (PREFERRED_STACK_BOUNDARY): Use MAX macro
13633 and STACK_BOUNDARY define.
13635 2008-02-14 Danny Smith <dannysmith@users.sourceforge.net>
13637 PR preprocessor/35061
13638 * c-pragma.c (handle_pragma_pop_macro): Check that
13639 pushed_macro_table has been allocated.
13641 2008-02-14 Eric Botcazou <ebotcazou@adacore.com>
13643 PR middle-end/35136
13644 * gimplify.c (force_gimple_operand_bsi): Revert 2008-02-12 change.
13645 (force_gimple_operand): Likewise.
13646 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Add new cases
13647 for TARGET_MEM_REF and CONVERT_EXPR/NON_LVALUE_EXPR/NOP_EXPR.
13648 Also recurse on the operand for regular VIEW_CONVERT_EXPRs.
13649 (find_interesting_uses_address): Check addressability and alignment
13650 of the base expression only after substituting bases of IVs into it.
13652 2008-02-14 Michael Matz <matz@suse.de>
13655 * function.c (instantiate_virtual_regs_in_insn): Reload address
13656 before falling back to reloading the whole operand.
13658 2008-02-14 Andreas Krebbel <krebbel1@de.ibm.com>
13660 * config/s390/s390.c (s390_mainpool_start): Emit the pool
13661 before the first section switch note.
13663 2008-02-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13665 * doc/bugreport.texi: Update copyright years.
13666 * doc/c-tree.texi: Likewise.
13667 * doc/cfg.texi: Likewise.
13668 * doc/cpp.texi: Likewise.
13669 * doc/cppinternals.texi: Likewise.
13670 * doc/fragments.texi: Likewise.
13671 * doc/frontends.texi: Likewise.
13672 * doc/gcc.texi: Likewise.
13673 * doc/gty.texi: Likewise.
13674 * doc/hostconfig.texi: Likewise.
13675 * doc/implement-c.texi: Likewise.
13676 * doc/libgcc.texi: Likewise.
13677 * doc/loop.texi: Likewise.
13678 * doc/makefile.texi: Likewise.
13679 * doc/options.texi: Likewise.
13680 * doc/passes.texi: Likewise.
13681 * doc/rtl.texi: Likewise.
13682 * doc/sourcebuild.texi: Likewise.
13683 * doc/standards.texi: Likewise.
13684 * doc/tree-ssa.texi: Likewise.
13685 * doc/trouble.texi: Likewise.
13687 * doc/extend.texi: Use @: or add comma where appropriate.
13688 * doc/invoke.texi: Likewise.
13689 * doc/tm.texi: Likewise.
13691 2008-02-14 Alan Modra <amodra@bigpond.net.au>
13694 * config/rs6000/rs6000.md (restore_stack_block): Force operands[1]
13697 2008-02-14 Jesper Nilsson <jesper.nilsson@axis.com>
13699 * doc/md.texi (clz, ctz): Add reference.
13700 * doc/rtl.texi (clz, ctz): Likewise.
13702 2008-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13705 * Makefile.in (gcc-vers.texi): Use abs_srcdir for the value of
13708 2008-02-13 Andreas Krebbel <krebbel1@de.ibm.com>
13710 * config/s390/s390.c (struct constant_pool): New field
13711 emit_pool_after added.
13712 (s390_mainpool_start): Set the emit_pool_after flag according
13713 to the section switch notes.
13714 (s390_mainpool_finish): Consider emit_pool_after when emitting
13715 the literal pool at the end of the function.
13716 (s390_chunkify_start): Force literal pool splits at section
13719 2008-02-13 Michael Matz <matz@suse.de>
13722 * var-tracking.c (clobber_variable_part): Correctly traverse the
13725 2008-02-13 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
13728 * doc/invoke.texi (Debugging Options): Remove -fdump-tree-inlined.
13729 Add -fdump-ipa-inline.
13730 * tree-dump.c (dump_files): Remove tree-inlined dump.
13731 * tree-pass.h (tree_dump_index): Remove TDI_inlined.
13733 2008-02-12 Richard Guenther <rguenther@suse.de>
13735 PR tree-optimization/35171
13736 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Deal with
13739 2008-02-12 Richard Guenther <rguenther@suse.de>
13741 PR middle-end/35163
13742 * fold-const.c (fold_widened_comparison): Use get_unwidened in
13743 value-preserving mode. Disallow final truncation.
13745 2008-02-12 Eric Botcazou <ebotcazou@adacore.com>
13747 PR middle-end/35136
13748 * gimplify.c (force_gimple_operand_bsi): Move SSA renaming
13749 code from here to...
13750 (force_gimple_operand): ...here.
13752 2008-02-12 Jakub Jelinek <jakub@redhat.com>
13755 * tree-sra.c (sra_build_assignment): fold_convert SRC if copying
13756 non-compatible pointers.
13757 (generate_element_copy): If SRC and DST are RECORD_TYPEs with
13758 different FIELD_DECLs, try harder by comparing field offsets, sizes
13761 PR inline-asm/35160
13762 * function.c (match_asm_constraints_1): Don't replace the same input
13765 2008-02-12 Anatoly Sokolov <aesok@post.ru>
13767 * config/avr/avr.h (AVR_HAVE_RAMPZ): Define.
13768 * config/avr/avr.c (expand_prologue): Save RAMPZ register.
13769 (expand_epilogue): Restore RAMPZ register.
13770 * config/avr/avr.md (RAMPZ_ADDR): New constant.
13772 2008-02-11 Kai Tietz <kai.tietz@onevision.com>
13774 * config/i386/cygwin.asm: (__alloca): Correct calling
13775 convention and alignment.
13776 (__chkstk): Force 8 byte stack alignment.
13778 2008-02-11 Uros Bizjak <ubizjak@gmail.com>
13779 Richard Guenther <rguenther@suse.de>
13781 PR tree-optimization/33992
13782 * tree-ssa-loop-im.c (rewrite_bittest): Fixup the type of
13783 the zero we compare against.
13785 2008-02-10 Danny Smith <dannysmith@users.sourceforge.net>
13787 PR libfortran/35063
13788 * gthr-win32.h (__gthread_mutex_destroy_function): New function
13789 to CloseHandle after unlocking to prevent accumulation of handle
13792 2008-02-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13794 PR middle_end/34150
13795 * pa.c (legitimize_pic_address): Add REG_EQUAL note on sets with a
13796 pic_label_operand source. Similarly, add a REG_LABEL_OPERAND note
13797 and update LABEL_NUSES during and after reload.
13799 2008-02-08 Steven Bosscher <stevenb.gcc@gmail.com>
13801 PR middle-end/34627
13802 * combine.c (simplify_if_then_else): Make sure the comparison is
13803 against const0_rtx when simplifying to (abs x) or (neg (abs X)).
13805 2008-02-08 Richard Sandiford <rsandifo@nildram.co.uk>
13808 * double-int.h: Don't include gmp.h for GENERATOR_FILEs.
13809 (mpz_set_double_int, mpz_get_double_int): Hide from GENERATOR_FILEs.
13810 * real.h: Don't include gmp.h or mpfr.h for GENERATOR_FILEs.
13811 (real_from_mpfr, mpfr_from_real): Hide from GENERATOR_FILEs.
13812 * tree.h (get_type_static_bounds): Likewise.
13814 2008-02-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13816 * doc/invoke.texi (Option Summary, C++ Dialect Options)
13817 (Objective-C and Objective-C++ Dialect Options, Warning Options):
13818 Make -Wfoo language annotations match what the compiler outputs.
13820 2008-02-08 Sa Liu <saliu@de.ibm.com>
13822 * config/spu/spu-builtins.def: Fixed wrong parameter type in spu
13823 intrinsics spu_convts, spu_convtu, spu_convtf.
13825 2008-02-08 Hans-Peter Nilsson <hp@axis.com>
13827 * doc/extend.texi (Function Attributes) <noinline>: Mention
13828 asm ("") as method to keep calls.
13830 2008-02-07 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
13833 * doc/options.texi (Options): Replace references to opts.sh with
13835 * opts-common.c: Likewise.
13836 * optc-gen.awk: Likewise.
13838 2008-02-07 Andreas Krebbel <krebbel1@de.ibm.com>
13840 * config/s390/s390.h (FUNCTION_ARG_REGNO_P): Fix fprs for 64 bit.
13842 2008-02-07 Richard Henderson <rth@redhat.com>
13845 * config/alpha/alpha.c (alpha_emit_xfloating_compare): Use an
13846 EXPR_LIST for the REG_EQUAL instead of a comparison with a
13849 2008-02-07 Uros Bizjak <ubizjak@gmail.com>
13851 PR tree-optimization/35085
13852 * tree-ssa-reassoc.c (rewrite_expr_tree): Enable destructive update
13853 for operand entry oe2 in addition to operand entry oe3 in order to
13854 expose more opportunities for vectorizer sum reduction.
13856 2008-02-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13859 * Makefile.in (LIBS): Remove $(GMPLIBS).
13860 (cc1-dummy, cc1): Add $(GMPLIBS).
13862 2008-02-06 Jan Hubicka <jh@suse.cz>
13865 * i386.md (moddf_integer): Do not produce partial memory stalls for
13866 targets where it hurts.
13868 2008-02-06 Uros Bizjak <ubizjak@gmail.com>
13871 * optabs.c (expand_float): Do not check for decimal modes when
13872 expanding unsigned integer through signed conversion.
13874 2008-02-06 Nick Clifton <nickc@redhat.com>
13876 * config/stormy16/stormy16.md (eqbranchsi): Replace a match_dup
13877 inside the clobber with a match_operand and duplicated operand
13878 number in the constraint.
13879 (ineqbranchsi): Delete redundant comment.
13881 2008-02-06 Ralf Corsepius <ralf.corsepius@rtems.org>
13883 * config/arm/rtems-elf.h (TARGET_OS_CPP_BUILTINS): Add
13884 builtin_define ("__USE_INIT_FINI__").
13885 * config/h8300/t-rtems (MULTILIB_OPTION,MULTILIB_DIRNAMES): Add
13887 * gthr-rtems.h: Remove __GTHREAD_MUTEX_INIT.
13889 2008-02-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13891 PR documentation/30330
13892 * doc/invoke.texi (C++ Dialect Options)
13893 (Objective-C and Objective-C++ Dialect Options, Warning Options):
13894 For each warning option -Wfoo that allows -Wno-foo, ensure both
13895 -Wfoo and -Wno-foo are listed in the option index. Fix index
13896 entry of -Wswitch-default, index -Wnormalized= including the
13897 `=', and -Wlarger-than-@var{len} including @var{len}.
13899 2008-02-05 Uros Bizjak <ubizjak@gmail.com>
13901 * config/i386/i386.md (floatunssisf2): Use
13902 ix86_expand_convert_uns_sisf_sse also for TARGET_SSE.
13903 (floatunssi<mode>2): Rename from floatunssisf2 and floatunssidf2.
13904 Macroize expander using MODEF mode iterator.
13906 2008-02-05 Diego Novillo <dnovillo@google.com>
13908 http://gcc.gnu.org/ml/gcc-patches/2008-02/msg00140.html
13911 * tree-vrp.c (vrp_evaluate_conditional): Revert fix for PR 33738.
13913 2008-02-05 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13916 * toplev.c (print_version): Honor `indent' for GMP/MPFR warnings.
13918 2008-02-05 H.J. Lu <hongjiu.lu@intel.com>
13921 * config/i386/i386.c (ix86_function_sseregparm): Add an arg
13922 to indicate if a message should be generated.
13923 (init_cumulative_args): Updated.
13924 (function_value_32): Likewise.
13926 2008-02-05 Joseph Myers <joseph@codesourcery.com>
13928 * doc/include/texinfo.tex: Update to version 2008-02-04.16.
13930 2008-02-05 Uros Bizjak <ubizjak@gmail.com>
13933 * config/i386/i386.md (floatunsisf2): Enable for TARGET_SSE_MATH only.
13934 Call ix86_expand_convert_uns_sisf_sse for TARGET_SSE2.
13936 2008-02-04 Diego Novillo <dnovillo@google.com>
13938 http://gcc.gnu.org/ml/gcc-patches/2008-02/msg00110.html
13941 * tree-vrp.c (vrp_evaluate_conditional): With
13942 -Wtype-limits, emit a warning when comparing against a
13943 constant outside the natural range of OP0's type.
13945 2008-02-04 Richard Guenther <rguenther@suse.de>
13947 PR middle-end/33631
13948 * expr.c (count_type_elements): Give for unions instead of
13951 2008-02-04 Richard Guenther <rguenther@suse.de>
13953 PR middle-end/35043
13954 * gimplify.c (gimplify_init_ctor_eval): Convert array indices
13955 to TYPE_DOMAINs base type instead of using bitsizetype here.
13957 2008-02-03 Jason Merrill <jason@redhat.com>
13959 * print-tree.c (print_node) [CONSTRUCTOR]: Print elements.
13961 2008-02-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13964 * doc/invoke.texi (C++ Dialect Options, Optimize Options)
13965 (HPPA Options, i386 and x86-64 Options, IA-64 Options)
13966 (RS/6000 and PowerPC Options): Fix typos and markup.
13967 * doc/passes.texi (Tree-SSA passes): Likewise.
13969 2008-02-02 Michael Matz <matz@suse.de>
13972 * postreload-gcse.c (record_last_reg_set_info_regno): Renamed
13973 from record_last_reg_set_info.
13974 (record_last_reg_set_info): Take an RTX argument, iterate over all
13975 constituent hardregs.
13976 (record_last_set_info, record_opr_changes): Change calls to
13977 new signature or to record_last_reg_set_info_regno.
13979 2008-02-02 Gerald Pfeifer <gerald@pfeifer.com>
13981 * doc/extend.texi (X86 Built-in Functions): Fix grammar.
13983 2008-02-01 Hans-Peter Nilsson <hp@axis.com>
13985 PR rtl-optimization/34773
13986 * reg-notes.def (EQUAL): Mention significance of combination of
13987 REG_EQUAL and REG_RETVAL.
13988 * fwprop.c (try_fwprop_subst): Don't add REG_EQUAL to an
13989 insn that has a REG_RETVAL.
13991 2008-02-01 Roger Sayle <roger@eyesopen.com>
13994 * configure.ac (--enable-fixed-point): Disable unless explicitly
13996 * configure: Regenerate.
13998 2008-02-01 Richard Guenther <rguenther@suse.de>
14001 * invoke.texi (-finline-limit): Remove no longer true parts
14002 of the documentation. Note that there is no default value.
14004 2008-02-01 Andrew Pinski <pinskia@gmail.com>
14005 Mark Mitchell <mark@codesourcery.com>
14006 Ben Elliston <bje@au.ibm.com>
14009 * doc/extend.texi (Other Builtins): Document.
14011 2008-01-31 Tom Browder <tom.browder@gmail.com>
14013 * doc/c-tree.texi (Types): Fix grammar.
14014 (Expression trees): Ditto.
14015 * doc/passes.texi (Tree-SSA passes): Ditto.
14017 * doc/configterms.texi (Configure Terms): Fix typo.
14018 * doc/cpp.texi (Common Predefined Macros): Ditto.
14019 * doc/md.texi (Machine Constraints): Ditto.
14021 * doc/makefile.texi (Makefile): Add comma.
14023 2008-01-31 Tom Browder <tom.browder@gmail.com>
14024 Gerald Pfeifer <gerald@pfeifer.com>
14026 * doc/sourcebuild.texi (Front End): Remove references to CVS
14027 and CVSROOT/modules.
14028 (Texinfo Manuals): Replace reference to CVS by one to SVN.
14029 (Back End): Remove reference to CVS.
14031 2008-01-31 Richard Sandiford <rsandifo@nildram.co.uk>
14034 * config/mips/mips.c (gen_load_const_gp): New function, taking a
14036 (mips16_gp_pseudo_reg): ...here.
14037 * config/mips/mips.md (load_const_gp): Replace with...
14038 (load_const_gp_<mode>): ...this :P-based insn.
14040 2008-01-31 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
14042 * doc/invoke.texi (-ansi): Mention explicitly corresponding -std=
14043 options. Minor fixes.
14044 (-std): Move reference to standards closer to where language
14045 standards are first mentioned.
14047 2008-01-31 Richard Sandiford <rsandifo@nildram.co.uk>
14049 PR rtl-optimization/34995
14050 * reload.c (alternative_allows_const_pool_ref): Take an rtx
14051 parameter and return a bool. If the rtx parameter is nonnull,
14052 check that it satisfies an EXTRA_MEMORY_CONSTRAINT.
14053 (find_reloads): Update call accordingly. Pass the new operand
14054 if it needed no address reloads, otherwise pass null.
14056 2008-01-30 Richard Henderson <rth@redhat.com>
14059 * tree.c (build_type_attribute_qual_variant): Skip TYPE_DOMAIN
14060 for unbounded arrays.
14062 2008-01-30 Silvius Rus <rus@google.com>
14064 * config/i386/xmmintrin.h (_mm_prefetch): Add const to first arg.
14066 2008-01-30 Jan Hubicka <jh@suse.cz>
14069 * i386.c (init_cumulative_args): Use real function declaration when
14072 2008-01-30 Richard Sandiford <rsandifo@nildram.co.uk>
14074 PR rtl-optimization/34998
14075 * global.c (build_insn_chain): Treat non-subreg_lowpart
14076 SUBREGs of pseudos as clobbering all the words covered by the
14077 SUBREG, not just all the bytes.
14078 * ra-conflict.c (clear_reg_in_live): Likewise. Take the
14079 original df_ref rather than an extract parameter.
14080 (global_conflicts): Update call accordingly.
14082 2008-01-30 Andreas Krebbel <krebbel1@de.ibm.com>
14084 * config/s390/fixdfdi.h (__fixunstfdi, __fixtfdi): Rearrange
14085 the overflow check to make it easier to read.
14086 (__fixtfdi): Change the type of the ll member in union
14087 long_double to UDItype_x.
14089 2008-01-30 Jakub Jelinek <jakub@redhat.com>
14091 PR middle-end/34969
14092 * cgraph.h (cgraph_update_edges_for_call_stmt): New prototype.
14093 * cgraph.c (cgraph_update_edges_for_call_stmt): New function.
14094 * tree-inline.c (fold_marked_statements): Call
14095 cgraph_update_edges_for_call_stmt if folding a call statement.
14096 * cgraphunit.c (verify_cgraph_node): Set cfun to this_cfun for
14097 debug_generic_stmt calls, reset it back afterwards.
14100 * c-decl.c (start_decl): Don't pedwarn about TREE_READONLY
14102 * c-typeck.c (build_external_ref): Don't pedwarn about
14103 static vars in current function's scope.
14105 2008-01-29 Joseph Myers <joseph@codesourcery.com>
14107 * config.gcc (i[34567]86-*-nto-qnx*): Remove deprecation.
14109 2008-01-29 Bernhard Fischer <aldot@gcc.gnu.org>
14112 * ipa-struct-reorg.c: Fix spelling.
14113 * params.def: Ditto.
14115 2008-01-29 Richard Guenther <rguenther@suse.de>
14117 PR middle-end/35006
14118 * tree-inline.h (struct copy_body_data): Add remapping_type_depth
14120 * tree-inline.c (remap_type): Increment remapping_type_depth
14121 around remapping types.
14122 (copy_body_r): Only add referenced variables if they are referenced
14123 from code, not types.
14125 2008-01-29 Douglas Gregor <doug.gregor@gmail.com>
14136 * c-pretty-print.c (pp_c_type_qualifier_list): Don't try to print
14137 qualifiers for an ERROR_MARK_NODE or a NULL_TREE.
14139 2008-01-28 Andy Hutchinson <hutchinsonandy@netscape.net>
14142 * config/avr/avr.c (expand_prologue): Use correct QI mode frame
14143 pointer for tiny stack.
14145 2008-01-28 Bernhard Fischer <aldot@gcc.gnu.org>
14147 * doc/tree-ssa.texi: Add cindex PHI nodes and improve wording.
14149 2008-01-28 Bernhard Fischer <aldot@gcc.gnu.org>
14151 * config/vx-common.h: Fix typo in comment.
14153 2008-01-28 Ian Lance Taylor <iant@google.com>
14157 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
14158 coalesce pointers if they have different DECL_NO_TBAA_P values.
14159 * tree-ssa-copy.c (may_propagate_copy): Don't propagate copies
14160 between variables with different DECL_NO_TBAA_P values.
14162 2008-01-28 Nathan Froyd <froydnj@codesourcery.com>
14165 * config/rs6000/rs6000.c (small_data_operand): Vectors and floats
14166 are not legitimate small data references on SPE targets.
14168 2008-01-28 David Daney <ddaney@avtrex.com>
14170 * doc/install.texi (mips-*-*): Recommend binutils 2.18.
14172 2008-01-28 David Daney <ddaney@avtrex.com>
14174 * doc/install.texi (--disable-libgcj-bc): Reword documentation.
14176 2008-01-27 Joseph Myers <joseph@codesourcery.com>
14178 * config.gcc (strongarm*-*, ep9312*-*, xscale*-*, parisc*-*,
14179 m680[012]0-*, *-*-beos*, *-*-kaos*, *-*-linux*aout*,
14180 *-*-linux*libc1*, *-*-solaris2.[0-6], *-*-solaris2.[0-6].*,
14181 *-*-sysv*, *-*-windiss*, alpha*-*-unicosmk*, cris-*-aout,
14182 hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-bsd*,
14183 i[34567]86-sequent-ptx4*, i[34567]86-*-nto-qnx*,
14184 i[34567]86-*-sco3.2v5*, i[34567]86-*-uwin*, powerpc-*-chorusos*,
14185 vax-*-bsd*, vax-*-ultrix*): Mark obsolete.
14187 2008-01-27 Bernhard Fischer <aldot@gcc.gnu.org>
14189 * basic-block.h (condjump_equiv_p): Fix comment.
14191 2008-01-27 Bernhard Fischer <aldot@gcc.gnu.org>
14193 * tree-pretty-print.c (print_generic_decl, print_generic_stmt,
14194 print_generic_stmt_indented): Fix comment.
14196 2008-01-27 Bernhard Fischer <aldot@gcc.gnu.org>
14198 * configure.ac (__stack_chk_fail): Add detecion for availability
14199 of SSP in uClibc by checking if __UCLIBC_HAS_SSP__ is defined.
14200 * configure: Regenerate.
14202 2008-01-26 Maxim Kuvyrkov <maxim@codesourcery.com>
14204 PR middle-end/34688
14205 * final.c (output_addr_const): Handle TRUNCATE.
14207 2008-01-26 Zdenek Dvorak <ook@ucw.cz>
14210 * tree-ssa-loop-ivopts.c (comp_cost): New type.
14211 (zero_cost, infinite_cost): New constants.
14212 (struct cost_pair): Change type of cost to comp_cost.
14213 (struct iv_ca): Change type of cand_use_cost and cost to comp_cost.
14214 (new_cost, add_costs, sub_costs, compare_costs, infinite_cost_p):
14216 (set_use_iv_cost, force_expr_to_var_cost, force_var_cost,
14217 split_address_cost, ptr_difference_cost, difference_cost,
14218 get_computation_cost_at, get_computation_cost,
14219 determine_use_iv_cost_generic, determine_use_iv_cost_address,
14220 determine_use_iv_cost_condition, determine_use_iv_costs,
14221 cheaper_cost_pair, iv_ca_recount_cost, iv_ca_set_no_cp,
14222 iv_ca_set_cp, iv_ca_cost, iv_ca_new, iv_ca_dump, iv_ca_extend,
14223 iv_ca_narrow, iv_ca_prune, try_improve_iv_set, find_optimal_iv_set):
14224 Change type of cost to comp_cost.
14225 (determine_iv_cost): Increase cost of non-original ivs, instead
14226 of decreasing the cost of original ones.
14227 (get_address_cost): Indicate the complexity of the addressing mode
14229 (try_add_cand_for): Prefer using ivs not specific to some object.
14230 * tree-flow.h (force_expr_to_var_cost): Declaration removed.
14232 2008-01-26 Peter Bergner <bergner@vnet.ibm.com>
14233 Janis Johnson <janis187@us.ibm.com>
14236 * doc/tm.texi (TARGET_EXPAND_TO_RTL_HOOK): Document.
14237 (TARGET_INSTANTIATE_DECLS): Likewise.
14238 * target.h (expand_to_rtl_hook): New target hook.
14239 (instantiate_decls): Likewise.
14240 * function.c (instantiate_decl): Make non-static. Rename to...
14241 (instantiate_decl_rtl): ... this.
14242 (instantiate_expr): Use instantiate_decl_rtl.
14243 (instantiate_decls_1): Likewise.
14244 (instantiate_decls): Likewise.
14245 (instantiate_virtual_regs: Call new instantiate_decls taget hook.
14246 * function.h (instantiate_decl_rtl): Add prototype.
14247 * cfgexpand.c (target.h): New include.
14248 (tree_expand_cfg): Call new expand_to_rtl_hook target hook.
14249 * target-def.h (TARGET_EXPAND_TO_RTL_HOOK): New define.
14250 (TARGET_INSTANTIATE_DECLS): Likewise.
14251 (TARGET_INITIALIZER): New target hooks added.
14252 * config/rs6000/rs6000-protos.h (rs6000_secondary_memory_needed_rtx):
14254 * config/rs6000/rs6000.c (tree-flow.h): New include.
14255 (machine_function): Add sdmode_stack_slot field.
14256 (rs6000_alloc_sdmode_stack_slot): New function.
14257 (rs6000_instantiate_decls): Likewise.
14258 (rs6000_secondary_memory_needed_rtx): Likewise.
14259 (rs6000_check_sdmode): Likewise.
14260 (TARGET_EXPAND_TO_RTL_HOOK): Target macro defined.
14261 (TARGET_INSTANTIATE_DECLS): Likewise.
14262 (rs6000_hard_regno_mode_ok): Allow SDmode.
14263 (num_insns_constant): Likewise. Handle _Decimal32 constants.
14264 (rs6000_emit_move): Handle SDmode.
14265 (function_arg_advance): Likewise.
14266 (function_arg): Likewise.
14267 (rs6000_gimplify_va_arg): Likewise. Add special handling of
14268 SDmode var args for 32-bit compiles.
14269 (rs6000_secondary_reload_class): Handle SDmode.
14270 (rs6000_output_function_epilogue): Likewise.
14271 (rs6000_function_value): Simplify if statement.
14272 (rs6000_libcall_value): Likewise.
14273 * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Handle SDmode.
14274 (SECONDARY_MEMORY_NEEDED_RTX): Add define.
14275 * config/rs6000/dfp.md (movsd): New define_expand and splitter.
14276 (movsd_hardfloat): New define_insn.
14277 (movsd_softfloat): Likewise.
14278 (movsd_store): Likewise.
14279 (movsd_load): Likewise.
14280 (extendsddd2): Likewise.
14281 (extendsdtd2): Likewise.
14282 (truncddsd2): Likewise.
14283 (movdd_hardfloat64): Fixup comment.
14284 (UNSPEC_MOVSD_LOAD): New constant.
14285 (UNSPEC_MOVSD_STORE): Likewise.
14287 2008-01-26 Jakub Jelinek <jakub@redhat.com>
14290 * c-pretty-print.c (pp_c_exclusive_or_expression): Handle
14292 (pp_c_logical_and_expression): Handle TRUTH_AND_EXPR.
14293 (pp_c_logical_or_expression): Handle TRUTH_OR_EXPR.
14294 (pp_c_expression): Handle TRUTH_AND_EXPR, TRUTH_OR_EXPR
14295 and TRUTH_XOR_EXPR.
14297 2008-01-26 David Edelsohn <edelsohn@gnu.org>
14300 * config.gcc: Separate AIX 5.3 from AIX 6.1.
14301 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
14302 __LONGDOUBLE128 too.
14303 * config/rs6000/aix61.h: New file.
14305 2008-01-26 Richard Sandiford <rsandifo@nildram.co.uk>
14307 PR rtl-optimization/34959
14308 * optabs.c (expand_unop): In libcall notes, give ffs, clz, ctz,
14309 popcount and parity rtxes the same mode as their operand.
14310 Truncate or extend the result to the return value's mode
14313 2008-01-26 Richard Sandiford <rsandifo@nildram.co.uk>
14316 * config/mips/mips-protos.h (mips_expand_call): Return an rtx.
14317 * config/mips/mips.h (FIRST_PSEUDO_REGISTER): Rename FAKE_CALL_REGNO
14318 to GOT_VERSION_REGNUM.
14319 (CALL_REALLY_USED_REGISTERS): Set the GOT_VERSION_REGNUM entry to 0.
14320 (EPILOGUE_USES): Include GOT_VERSION_REGNUM if TARGET_USE_GOT.
14321 * config/mips/mips.c (mips_emit_call_insn): New function.
14322 (mips_call_tls_get_addr): Call mips_expand_call directly.
14323 (mips16_copy_fpr_return_value): Use mips_emit_call_insn rather than
14325 (mips16_build_call_stub): Likewise. Return the call insn or null.
14326 (mips_expand_call): Update the call to mips16_build_call_stub
14327 accordingly and a remove redundant condition. Assert that MIPS16
14328 stubs do not use lazy binding. Use mips_emit_call_insn and return
14330 (mips_extra_live_on_entry): Include GOT_VERSION_REGNUM if
14332 (mips_hard_regno_mode_ok_p): Allow SImode for GOT_VERSION_REGNUM.
14333 (mips_avoid_hazard): Remove hazard_set handling.
14334 * config/mips/mips.md (UNSPEC_EH_RECEIVER): Rename to...
14335 (UNSPEC_RESTORE_GP): ...this.
14336 (UNSPEC_SET_GOT_VERSION, UNSPEC_UPDATE_GOT_VERSION): New constants.
14337 (FAKE_CALL_REGNO): Rename to...
14338 (GOT_VERSION_REGNUM): ...this.
14339 (type): Add "ghost" value. Add an associated insn reservation.
14340 (hazard_set): Remove.
14341 (exception_receiver): Rename to...
14342 (restore_gp): ...this and update the unspec identifier accordingly.
14343 (exception_receiver, nonlocal_got_receiver): New expanders.
14344 (load_call<mode>): Use GOT_VERSION_REGNUM. Don't set
14345 FAKE_CALL_REGNO. Remove hazard_set attribute.
14346 (set_got_version, update_got_version): New patterns.
14348 2008-01-26 Danny Smith <dannysmith@users.sourceforge.net>
14351 * config/i386/cygming.h (ASM_OUTPUT_LABELREF): Define.
14353 2008-01-25 Joseph Myers <joseph@codesourcery.com>
14356 * doc/install.texi2html: Generate gcc-vers.texi.
14358 2008-01-25 DJ Delorie <dj@redhat.com>
14360 * config/m32c/m32c.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
14362 2008-01-25 Joseph Myers <joseph@codesourcery.com>
14364 * config/c4x: Remove directory.
14365 * config.gcc (crx-*, mt-*): Mark obsolete.
14366 (c4x-*, tic4x-*, c4x-*-rtems*, tic4x-*-rtems*, c4x-*, tic4x-*,
14367 h8300-*-rtemscoff*, ns32k-*-netbsdelf*, ns32k-*-netbsd*,
14368 sh-*-rtemscoff*): Remove cases.
14369 * defaults.h (C4X_FLOAT_FORMAT): Remove.
14370 * real.c (encode_c4x_single, decode_c4x_single,
14371 encode_c4x_extended, decode_c4x_extended, c4x_single_format,
14372 c4x_extended_format): Remove.
14373 * real.h (c4x_single_format, c4x_extended_format): Remove.
14374 * doc/extend.texi (interrupt, naked): Remove mention of attributes
14376 (Pragmas): Remove comment about c4x pragmas.
14377 * doc/install.texi (c4x): Remove target-specific instructions.
14378 * doc/invoke.texi (TMS320C3x/C4x Options): Remove.
14379 * doc/md.texi (Machine Constraints): Remove C4x documentation.
14380 * doc/tm.texi (MEMBER_TYPE_FORCES_BLK, c_register_pragma): Do not
14381 refer to C4x source files as examples.
14382 (C4X_FLOAT_FORMAT): Remove documentation.
14384 2008-01-25 Bernd Schmidt <bernd.schmidt@analog.com>
14386 * config/bfin/bfin.c (override_options): Reorder tests so that
14387 flag_pic gets enabled for -msep-data.
14389 2008-01-25 Richard Guenther <rguenther@suse.de>
14391 PR middle-end/32244
14392 * expr.c (expand_expr_real_1): Reduce result of LSHIFT_EXPR
14393 to its bitfield precision if required.
14395 2008-01-25 Jakub Jelinek <jakub@redhat.com>
14397 PR middle-end/33880
14398 * tree-nested.c (walk_omp_for): New function.
14399 (convert_nonlocal_reference, convert_local_reference): Call
14400 walk_omp_for on OMP_FOR.
14401 (convert_call_expr): Call walk_body on OMP_FOR's
14402 OMP_FOR_PRE_INIT_BODY.
14404 2008-01-25 Richard Guenther <rguenther@suse.de>
14406 PR tree-optimization/34966
14407 * tree-ssa-math-opts.c (execute_cse_sincos_1): For all but
14408 default defs and PHI_NODEs we have to insert after the
14409 defining statement.
14411 2008-01-24 Nick Clifton <nickc@redhat.com>
14413 * config/stormy16/stormy16-lib2.c (MIN_UNITS_PER_WORD):
14414 Provide a default definition.
14415 (LIBGCC2_UNITS_PER_WORD): Likewise.
14417 * config/stormy16/stormy16.c: Include df.h for the prototype
14418 for df_regs_ever_live_p.
14419 (xstormy16_expand_builtin_va_start): Convert the stack offset
14420 into a component_ref and then use POINTER_PLUS_EXPR to add it
14421 to the incoming_virtual_args_rtx.
14422 (xstormy16_gimplify_va_arg_expr): Rename to
14423 xstormy16_gimplify_va_arg_expr.
14424 Use POINTER_PLUS_EXPR when performing pointer arithmetic.
14425 (TARGET_GIMPLIFY_VA_ARG_EXPR): Use renamed
14426 xstormy16_gimplify_va_arg_expr.
14427 Fix up some formatting issues.
14429 * config/stormy16/stormy16.c: (xstormy16_carry_plus_operand):
14430 Move to predicates.md.
14431 (xs_hi_general_operand): Likewise.
14432 (xs_hi_nonmemory_operand): Likewise.
14433 * config/stormy16/predicates.md:
14434 (xstormy16_carry_plus_operand): New predicate.
14435 (xs_hi_general_operand): New predicate.
14436 (xs_hi_nonmemory_operand): New predicate.
14437 * config/stormy16/stormy16-protos.h:
14438 (xstormy16_carry_plus_operand): Delete prototype.
14439 (xs_hi_general_operand): Likewise.
14440 (xs_hi_nonmemory_operand): Likewise.
14442 * config/storm16/stormy16.md (addhi3): Remove earlyclobber
14443 modifiers as they are no longer needed and they can trigger
14444 reload spill failures.
14446 * config/storm16/stormy16.md (ineqbranchsi): Replace match_dup
14447 with a match_operand in order to help reload.
14449 * config/storm16/stormy16.md (movhi_internal): Replace 'r'
14450 constraint with 'e' for the 8th alternative as this version of
14451 the mov.w instruction only accepts the lower 8 registers.
14453 2008-01-25 Uros Bizjak <ubizjak@gmail.com>
14456 * simplifx-rtx.c (simplify_const_binary_operation) [VEC_CONCAT]:
14457 Consider only CONST_INT, CONST_DOUBLE and CONST_FIXED as constant
14460 2008-01-25 Jakub Jelinek <jakub@redhat.com>
14462 PR middle-end/33333
14463 * gimplify.c (gimplify_omp_for): Gimplify OMP_FOR_PRE_BODY.
14465 2008-01-25 Golovanevsky Olga <olga@il.ibm.com>
14467 * ipa-struct-reorg.c (remove_str_allocs_in_func, remove_str_allocs):
14469 (remove_structure): Update allocations list before removing structure.
14471 2008-01-25 Golovanevsky Olga <olga@il.ibm.com>
14473 * ipa-struct-reorg.c (is_safe_cond_expr,
14474 create_new_stmts_for_cond_expr): Use integer_zerop function,
14475 that recognize not only zero-pointer, but zero-integer too.
14477 2008-01-25 Ben Elliston <bje@au.ibm.com>
14480 * fixproto: Escape "." in sed expression that strips leading "./".
14482 2008-01-24 H.J. Lu <hongjiu.lu@intel.com>
14485 * gcc.c (SWITCH_OK): Removed.
14486 (SWITCH_LIVE): Changed to bit.
14487 (SWITCH_FALSE): Likewise.
14488 (SWITCH_IGNORE): Likewise.
14489 (switchstr): Change live_cond to unsigned int.
14490 (process_command): Replace SWITCH_OK with 0.
14491 (do_self_spec): Likewise.
14492 (set_collect_gcc_options): Check the SWITCH_IGNORE bit.
14493 (give_switch): Likewise.
14494 (used_arg): Likewise.
14495 (do_spec_1): Set the SWITCH_IGNORE bit.
14496 (check_live_switch): Check both SWITCH_LIVE and SWITCH_FALSE
14497 bits. Set the SWITCH_LIVE bit.
14499 2008-01-24 Andreas Krebbel <krebbel1@de.ibm.com>
14501 * config/s390/s390.h (MOVE_RATIO): Define new target macro.
14503 2008-01-24 Richard Sandiford <rsandifo@nildram.co.uk>
14505 PR tree-optimization/34472
14506 * ipa-struct-reorg.c (safe_cond_expr_check): Change the DATA
14507 parameter to a "bool *" and set *DATA to false if there is
14508 an unsafe access. Do not delete the structure here.
14509 (check_cond_exprs): Delete it here instead.
14510 (check_cond_exprs, exclude_cold_structs): Do not increase
14511 I when removing a structure.
14513 2008-01-24 Uros Bizjak <ubizjak@gmail.com>
14516 * config/i386/i386.c (ix86_expand_vector_init): Consider only
14517 CONST_INT, CONST_DOUBLE and CONST_FIXED as constant vector elements.
14519 2008-01-24 Jakub Jakub Jelinek <jakub@redhat.com>
14521 PR middle-end/34934
14522 * tree-stdarg.c (reachable_at_most_once): Use VEC vector instead of
14523 a fixed vector for stack.
14525 2008-01-24 Ben Elliston <bje@au.ibm.com>
14528 * doc/gcc.texi (Software development): Add a direntry for g++.
14530 2008-01-23 Hans-Peter Nilsson <hp@axis.com>
14532 * config/cris/cris.h (CC1PLUS_SPEC, OPTIMIZATION_OPTIONS): Drop
14533 stale and straggling -fforce-addr comments above.
14535 * config/cris/cris.h (CRIS_SUBTARGET_VERSION, TARGET_VERSION): Don't
14537 * config/cris/linux.h (CRIS_SUBTARGET_VERSION): Don't define.
14538 * config/cris/aout.h (CRIS_SUBTARGET_VERSION): Don't define.
14540 2008-01-23 Michael Matz <matz@suse.de>
14543 * dwarf2out.c (force_type_die): Use modified_type_die instead of
14546 2008-01-23 Andreas Krebbel <krebbel1@de.ibm.com>
14548 * ipa-struct-reorg.c (create_new_malloc): Use pointer type as
14549 malloc result type.
14551 2008-01-23 Anatoly Sokolov <aesok@post.ru>
14553 * config/avr/avr.c (avr_current_arch): New variable.
14554 (avr_arch_types): Add 'avr31' and 'avr51' entries.
14555 (avr_arch): Add 'ARCH_AVR31' and 'ARCH_AVR51'.
14556 (avr_mcu_types): Add 'avr31' and 'avr51' architectures.
14557 (avr_override_options): Init 'avr_current_arch'.
14558 (base_arch_s): Move from here...
14559 * config/avr/avr.h (base_arch_s): ... here. Add new members
14560 'have_elpm', 'have_elpmx', 'have_eijmp_eicall', 'reserved'. Rename
14561 'mega' to 'have_jmp_call'.
14562 (TARGET_CPU_CPP_BUILTINS): Define "__AVR_HAVE_JMP_CALL__",
14563 "__AVR_HAVE_RAMPZ__", "__AVR_HAVE_ELPM__" and "__AVR_HAVE_ELPMX__"
14565 (LINK_SPEC, CRT_BINUTILS_SPECS, ASM_SPEC): Add 'avr31' and 'avr51'
14567 * config/avr/t-avr (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
14568 MULTILIB_MATCHES): (Ditto.).
14570 2008-01-23 Richard Guenther <rguenther@suse.de>
14572 PR middle-end/31529
14573 * cgraphunit.c (cgraph_reset_node): Always mark the node
14574 not reachable if it is not queued already.
14576 2008-01-23 Bernd Schmidt <bernd.schmidt@analog.com>
14578 * config/bfin/bfin-protos.h (WA_RETS, ENABLE_WA_RETS): New macros.
14579 * config/bfin/bfin.c (bfin_cpus): Add WA_RETS everywhere.
14580 (cputype_selected): New static variable.
14581 (bfin_handle_option): Set it if -mcpu is used.
14582 (override_option): Select default set of workarounds if no cpu type
14583 selected on the command line.
14584 (workaround_rts_anomaly): Only run if ENABLE_WA_RETS.
14586 From Michael Frysinger <michael.frysinger@analog.com>
14587 * config/bfin/bfin-protos.h (enum bfin_cpu_type): Add
14588 BFIN_CPU_BF547, BFIN_CPU_BF523, BFIN_CPU_BF524, and BFIN_CPU_BF526.
14590 * config/bfin/elf.h (LIB_SPEC): Use proper linker script
14591 for bf547, bf523, bf524, and bf526.
14592 * config/bfin/bfin.c (bfin_cpus[]): Add bf547, bf523, bf524, and
14594 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
14595 __ADSPBF523__ for bf523, __ADSPBF524__ for bf524,
14596 __ADSPBF526__ for bf526, __ADSPBF52x__ for all three, as well as
14597 __ADSPBF547__ and __ADSPBF54x__ for bf547.
14598 * doc/invoke.texi (Blackfin Options): Document that
14599 -mcpu now accept bf547, bf523, bf524, and bf526.
14601 2008-01-22 Eric Botcazou <ebotcazou@adacore.com>
14603 PR rtl-optimization/34628
14604 * combine.c (try_combine): Stop and undo after the first combination
14605 if an autoincrement side-effect on the first insn has effectively
14608 2008-01-22 David Edelsohn <edelsohn@gnu.org>
14611 * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
14612 Offset addresses are not valid for Altivec or paired float modes.
14614 2008-01-22 Jakub Jelinek <jakub@redhat.com>
14617 * c-parser.c (c_parser_omp_for_loop): Don't call c_finish_omp_for
14618 if DECL_INITIAL (decl) is error_mark_node.
14621 * c-common.c (handle_vector_size_attribute): Only allow
14622 integral, scalar float and fixed point types. Handle OFFSET_TYPE
14623 the same way as pointer, array etc. types.
14624 * tree.c (reconstruct_complex_type): Handle OFFSET_TYPE.
14627 * tree.c (build_type_attribute_qual_variant): Call
14628 build_qualified_type if attributes are equal, but quals are not.
14630 2008-01-22 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
14633 * doc/invoke.texi (-Wall): -Wall enables -Wstrict-overflow=1.
14634 * flags.h (warn_strict_aliasing): Remove.
14635 (warn_strict_overflow): Remove.
14636 * opts.c (warn_strict_aliasing): Remove.
14637 (warn_strict_overflow): Remove.
14638 * c-opts.c (c_common_handle_option): -Wall only sets
14639 -Wstrict-aliasing or -Wstrict-overflow if they are uninitialized.
14640 (c_common_post_options): Give default values to -Wstrict-aliasing
14641 and -Wstrict-overflow if they are uninitialized.
14642 * common.opt (Wstrict-aliasing): Specify Var and Init.
14643 (Wstrict-overflow): Likewise.
14645 2008-01-22 Kenneth Zadeck <zadeck@naturalbridge.com>
14647 PR rtl-optimization/26854
14648 PR rtl-optimization/34400
14649 PR rtl-optimization/34884
14650 * ddg.c (create_ddg_dep_from_intra_loop_link): Use
14652 * df.h (df_changeable_flags.DF_RD_NO_TRIM): Deleted
14653 (df_rd_bb_info.expanded_lr_out): Deleted
14654 * loop_invariant.c (find_defs): Deleted DF_RD_NO_TRIM flag.
14655 * loop_iv.c (iv_analysis_loop_init): Ditto. * df-problems.c
14656 (df_rd_free_bb_info, df_rd_alloc, df_rd_confluence_n,
14657 df_rd_bb_local_compute, df_rd_transfer_function, df_rd_free):
14658 Removed code to allocate, initialize or free expanded_lr_out.
14659 (df_rd_bb_local_compute_process_def): Restructured to make more
14661 (df_rd_confluence_n): Removed code to no apply invalidate_by_call
14662 sets if the sets are being trimmed.
14664 2008-01-22 H.J. Lu <hongjiu.lu@intel.com>
14667 * configure.ac (ld_vers): Support GNU linker version xx.xx.*
14668 (as_vers): Likewise.
14669 * configure: Regenerated.
14671 2008-01-22 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
14673 PR middle-end/33092
14674 * tree-pass.h (pass_build_alias): New pass.
14675 * tree-ssa-alias.c (gate_build_alias): New.
14676 (pass_build_alias): New.
14677 * passes.c (init_optimization_passes): Add pass_build_alias after
14678 pass_create_structure_vars.
14680 2008-01-22 Wolfgang Gellerich <gellerich@de.ibm.com>
14682 * config/s390/s390.h (S390_TDC_POSITIVE_NORMALIZED_NUMBER):
14683 Renamed to S390_TDC_POSITIVE_NORMALIZED_BFP_NUMBER.
14684 (S390_TDC_NEGATIVE_NORMALIZED_NUMBER): Renamed to
14685 S390_TDC_NEGATIVE_NORMALIZED_BFP_NUMBER.
14686 (S390_TDC_POSITIVE_DENORMALIZED_NUMBER): Renamed to
14687 S390_TDC_POSITIVE_DENORMALIZED_BFP_NUMBER.
14688 (S390_TDC_NEGATIVE_DENORMALIZED_NUMBER): Renamed to
14689 S390_TDC_NEGATIVE_DENORMALIZED_BFP_NUMBER.
14690 (S390_TDC_POSITIVE_NORMALIZED_BFP_NUMBER): New constant.
14691 (S390_TDC_NEGATIVE_NORMALIZED_BFP_NUMBER): New constant.
14692 (S390_TDC_POSITIVE_DENORMALIZED_BFP_NUMBER): New constant.
14693 (S390_TDC_NEGATIVE_DENORMALIZED_BFP_NUMBER): New constant.
14694 * config/s390/s390.md (FP_ALL): New mode iterator.
14695 (_d): New mode attribute.
14696 ("*signbit<mode>2>"): Changed mode of first operand.
14697 ("isinf<mode>2"): Changed mode of first operand.
14698 ("*TDC_insn"): Adaptation for DFP modes.
14700 2008-01-22 Ben Elliston <bje@au.ibm.com>
14702 * tree.c (check_qualified_type): Improve function description.
14704 2008-01-21 Jason Merrill <jason@redhat.com>
14707 * tree.h (TRY_CATCH_IS_CLEANUP): New macro.
14708 * tree-eh.c (honor_protect_cleanup_actions): Strip TRY_CATCH_EXPR
14711 2008-01-21 DJ Delorie <dj@redhat.com>
14713 * doc/tm.texi (HARD_REGNO_NREGS): Note that this macro must not
14716 2008-01-21 Richard Guenther <rguenther@suse.de>
14718 PR middle-end/34856
14719 * tree-cfg.c (verify_expr): Allow all invariant expressions
14720 instead of just constant class ones as reference argument.
14721 * tree-ssa-loop-im.c (for_each_index): Handle CONSTRUCTOR
14722 like any other constant.
14723 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
14725 2008-01-21 H.J. Lu <hongjiu.lu@intel.com>
14727 * regmove.c (fixup_match_1): Update call crossed frequencies.
14729 2008-01-21 Richard Guenther <rguenther@suse.de>
14732 * tree-inline.c (setup_one_parameter): Deal with mismatched
14733 types using a VIEW_CONVERT_EXPR.
14735 2008-01-21 Alon Dayan <alond@il.ibm.com>
14736 Olga Golovanevsky <olga@il.ibm.com>
14738 PR tree-optimization/34701
14739 * ipa-struct-reorg.c (gen_size): Fix the malloc parameter calculation
14740 when the structure size is not a power of 2.
14742 2008-01-20 Kenneth Zadeck <zadeck@naturalbridge.com>
14744 * doc/install.texi: Add doc for --enable-checking=df.
14746 2008-01-20 Kaz Kojima <kkojima@gcc.gnu.org>
14748 PR rtl-optimization/34808
14749 * emit-rtl.c (try_split): Handle REG_RETVAL notes.
14751 2008-01-20 Richard Sandiford <rsandifo@nildram.co.uk>
14753 * global.c (find_reg): Only compute EH_RETURN_DATA_REGNO once per
14756 2008-01-19 Kenneth Zadeck <zadeck@naturalbridge.com>
14758 PR rtl-optimization/26854
14759 PR rtl-optimization/34400
14760 * ddg.c (create_ddg_dep_from_intra_loop_link): Do not use
14762 * df.h (df_changeable_flags.DF_RD_NO_TRIM): New.
14763 (df_rd_bb_info.expanded_lr_out): New.
14764 * loop_invariant.c (find_defs): Added DF_RD_NO_TRIM flag.
14765 * loop_iv.c (iv_analysis_loop_init): Ditto.
14766 * df-problems.c (df_rd_free_bb_info, df_rd_alloc, df_rd_confluence_n,
14767 df_rd_bb_local_compute, df_rd_transfer_function, df_rd_free):
14768 Added code to allocate, initialize or free expanded_lr_out.
14769 (df_rd_bb_local_compute_process_def): Restructured to make
14770 more understandable.
14771 (df_rd_confluence_n): Add code to do nothing with fake edges and
14772 code to no apply invalidate_by_call sets if the sets are being trimmed.
14773 (df_lr_local_finalize): Renamed to df_lr_finalize.
14774 (df_live_local_finalize): Renamed to df_live_finalize.
14776 2008-01-20 Richard Sandiford <rsandifo@nildram.co.uk>
14779 * config/mips/mips.md (div<mode>3): Use <recip_condition> when
14780 deciding whether to use reciprocal instructions.
14782 2008-01-19 Uros Bizjak <ubizjak@gmail.com>
14784 * dwarf2out.c (dwarf2out_switch_text_section): Do not call
14785 dwarf2out_note_section_used if cold_text_section is NULL.
14787 2008-01-19 Jakub Jelinek <jakub@redhat.com>
14789 PR gcov-profile/34610
14790 * tree-cfg.c (make_edges): Mark both outgoing edges from
14791 OMP_CONTINUE and from OMP_FOR as EDGE_ABNORMAL.
14792 * omp-low.c (expand_omp_for): Clear EDGE_ABNORMAL bits
14793 from OMP_FOR and OMP_CONTINUE outgoing edges.
14795 * tree-profile.c (tree_profiling): Return early if
14796 cfun->after_tree_profile != 0. Set cfun->after_tree_profile
14798 * omp-low.c (expand_omp_parallel): Copy after_tree_profile
14799 from cfun to child_cfun.
14800 * function.h (struct function): Add after_tree_profile bit.
14802 2008-01-19 Anatoly Sokolov <aesok@post.ru>
14804 * config/avr/avr.S (_exit): Disable interrupt.
14806 2008-01-18 Kenneth Zadeck <zadeck@naturalbridge.com>
14807 Steven Bosscher <stevenb.gcc@gmail.com>
14809 PR rtl-optimization/26854
14810 PR rtl-optimization/34400
14811 * df-problems.c (df_live_scratch): New scratch bitmap.
14812 (df_live_alloc): Allocate df_live_scratch when doing df_live.
14813 (df_live_reset): Clear the proper bitmaps.
14814 (df_live_bb_local_compute): Only process the artificial defs once
14815 since the order is not important.
14816 (df_live_init): Init the df_live sets only with the variables
14817 found live by df_lr.
14818 (df_live_transfer_function): Use the df_lr sets to prune the
14819 df_live sets as they are being computed.
14820 (df_live_free): Free df_live_scratch.
14822 2008-01-18 Ian Lance Taylor <iant@google.com>
14824 * common.opt: Add fmerge-debug-strings.
14825 * dwarf2out.c (DEBUG_STR_SECTION_FLAGS): Test
14826 flag_merge_debug_strings rather than flag_merge_constants.
14827 * doc/invoke.texi (Option Summary): Mention
14828 -fmerge-debug-strings.
14829 (Debugging Options): Document -fmerge-debug-strings.
14831 2008-01-18 Ian Lance Taylor <iant@google.com>
14834 * tree.h (DECL_IS_OPERATOR_NEW): Define.
14835 (struct tree_function_decl): Add new field operator_new_flag.
14836 * tree-inline.c (expand_call_inline): When inlining a call to
14837 operator new, force the return value to go into a variable, and
14838 set DECL_NO_TBAA_P on that variable.
14839 * c-decl.c (merge_decls): Merge DECL_IS_OPERATOR_NEW flag.
14841 2008-01-18 Uros Bizjak <ubizjak@gmail.com>
14844 * dwarf2out.c (dwarf2out_switch_text_section): Do not guard with
14845 DWARF2_DEBUGGING_INFO.
14846 (dwarf2out_note_section_used): Ditto. Add prototype.
14847 (have_multiple_function_sections, text_section_used,
14848 cold_text_section_used, *cold_text_sections): Move declarations
14851 2008-01-17 Bob Wilson <bob.wilson@acm.org>
14853 * config/xtensa/unwind-dw2-xtensa.h (_Unwind_FrameState): Remove pc
14854 field and add signal_ra.
14855 * config/xtensa/unwind-dw2-xtensa.c (uw_frame_state_for): Remove
14856 assignments to frame state pc. Move end of stack check after
14857 MD_FALLBACK_FRAME_STATE_FOR.
14858 (uw_update_context_1): Use frame state signal_regs if set, instead
14859 of checking signal_frame flag.
14860 (uw_update_context): Use frame state signal_ra if set.
14861 * config/xtensa/linux.h (MD_UNWIND_SUPPORT): Define.
14862 * config/xtensa/linux-unwind.h: New file.
14864 2008-01-18 Bernhard Fischer <aldot@gcc.gnu.org>
14866 * modulo-sched.c (get_sched_window): Fix comment typo.
14868 2008-01-17 Andrew MacLeod <amacleod@redhat.com>
14870 PR tree-optimization/34648
14871 * tree-ssa-sccvn.c (visit_use): Expressions which can throw are varying.
14873 2008-01-17 Anatoly Sokolov <aesok@post.ru>
14875 * config/avr/avr.h (LINK_SPEC): Support -mrelax and -mpmem-wrap-around.
14876 * config/avr/avr.opt (mrelax, mpmem-wrap-around): Add.
14878 2008-01-17 Seongbae Park <seongbae.park@gmail.com>
14880 PR rtl-optimization/34400
14881 * df-core.c (df_worklist_dataflow_overeager,
14882 df_worklist_dataflow_doublequeue): New functions.
14883 (df_worklist_dataflow): Two different worklist solvers.
14884 * params.def (PARAM_DF_DOUBLE_QUEUE_THRESHOLD_FACTOR):
14887 2008-01-16 Sebastian Pop <sebastian.pop@amd.com>
14890 * doc/invoke.texi: Document the dependence on pthread for fopenmp
14891 and ftree-parallelize-loops.
14893 2008-01-17 Mircea Namolaru <namolaru@il.ibm.com>
14895 PR rtl-optimization/34826
14896 * loop-doloop (doloop_modify): Update the REG_BR_PROB note.
14898 2008-01-17 Andreas Krebbel <krebbel1@de.ibm.com>
14900 * global.c (find_reg): Mark the eh regs as used if necessary.
14901 * ra-conflict.c (global_conflicts): Set no_eh_reg flag.
14902 * ra.h (struct allocno): no_eh_reg field added. Changed
14903 no_stack_reg type to bitfield.
14905 2008-01-17 Eric Botcazou <ebotcazou@adacore.com>
14907 * tree.c (substitute_in_expr): Add missing 'break'.
14909 2008-01-17 Richard Guenther <rguenther@suse.de>
14911 PR tree-optimization/34825
14912 * tree-ssa-math-opts.c (is_division_by): Do not recognize
14913 x / x as division to handle.
14915 2008-01-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
14917 * pa64-hpux.h (LIB_SPEC): Add "-lpthread" in shared links if "-mt" or
14918 "-pthread" is specified.
14919 * pa-hpux11.h (LIB_SPEC): Likewise.
14921 2008-01-16 Janis Johnson <janis187@us.ibm.com>
14922 Peter Bergner <bergner@vnet.ibm.com>
14924 PR rtl-optimization/33796
14925 * sparseset.c (sparseset_alloc): Use xcalloc rather than xmalloc.
14927 2008-01-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
14929 PR libgfortran/34699
14930 * pa-hpux.h (LINK_SPEC): Only search /lib/pa1.1 and /usr/lib/pa1.1 on
14932 * pa-hpux10.h (LINK_SPEC): Likewise.
14933 * pa-hpux11.h (LINK_SPEC): Don't search /lib/pa1.1 and /usr/lib/pa1.1.
14935 2008-01-16 Richard Guenther <rguenther@suse.de>
14937 PR middle-end/32628
14938 * fold-const.c (fold_convert_const_int_from_int): Do not
14939 set overflow if that occured only because of a sign extension
14940 change when converting from/to a sizetype with the same
14941 precision and signedness.
14943 2008-01-16 Uros Bizjak <ubizjak@gmail.com>
14946 * dwarf2out.c (output_call_frame_info): Move output of FDE initial
14947 location address to the correct place. Update copyright year.
14949 2008-01-16 Sebastian Pop <sebastian.pop@amd.com>
14951 * lambda-code.c (lambda_transform_legal_p): Handle the case of
14952 no dependences in the dependence_relations vector.
14954 2008-01-16 Jan Hubicka <jh@suse.cz>
14956 PR rtl-optimization/31396
14957 * regstat.c (regstat_bb_compute_ri): Compute FREQ_CALLS_CROSSED.
14958 * cfg.c (dump_reg_info): Print it.
14959 * regs.h (struct reg_info_t): add freq_calls_crossed.
14960 (REG_FREQ_CALLS_CROSSED): New macro.
14961 * global.c (global_alloc): Compute freq_calls_crossed for allocno.
14962 (find_reg): Update call of CALLER_SAVE_PROFITABLE.
14963 * regmove.c (optimize_reg_copy_1, optimize_reg_copy_2, fixup_match_2,
14964 regmove_optimize): Update call crossed frequencies.
14965 * local-alloc.c (struct qty): Add freq_calls_crossed.
14966 (alloc_qty): Copute freq_calls_crossed.
14967 (update_equiv_regs, combine_regs): Update REG_FREQ_CALLS_CROSSED.
14968 (find_free_reg): Update call of CALLER_SAVE_PROFITABLE.
14969 * ra.h (struct allocno): Add freq_calls_crossed.
14971 2008-01-16 Sebastian Pop <sebastian.pop@amd.com>
14973 * gcc.c (LINK_COMMAND_SPEC): Add includes and link options for
14974 libgomp when compiling with ftree-parallelize-loops.
14975 (GOMP_SELF_SPECS): Add -pthread for ftree-parallelize-loops.
14977 2008-01-16 Richard Guenther <rguenther@suse.de>
14979 PR tree-optimization/34769
14980 * tree-data-ref.c (initialize_matrix_A): Revert fix for PR34458.
14981 * tree.c (int_cst_value): Instead make this function more
14982 permissive in what it accepts as valid input. Document this
14983 function always sign-extends the value.
14985 2008-01-16 Jakub Jelinek <jakub@redhat.com>
14986 Richard Guenther <rguenther@suse.de>
14989 * gimplify.c (fold_indirect_ref_rhs): Rename to ...
14990 (gimple_fold_indirect_ref_rhs): ... this.
14991 (gimple_fold_indirect_ref): New function with foldings
14992 that preserve lvalueness.
14993 (gimplify_modify_expr_rhs): Call gimple_fold_indirect_ref_rhs.
14994 * tree-flow.h (gimple_fold_indirect_ref): Declare.
14995 * tree-inline.c (copy_body_r): Use gimple_fold_indirect_ref
14996 to fold an INDIRECT_REF, fall back to the old use of
14997 fold_indirect_ref_1.
14999 2008-01-16 Sebastian Pop <sebastian.pop@amd.com>
15001 * tree-data-ref.c (subscript_dependence_tester_1): Call
15002 free_conflict_function.
15003 (compute_self_dependence): Same.
15005 2008-01-16 Uros Bizjak <ubizjak@gmail.com>
15008 * debug.h (dwarf2out_switch_text_section): Move declaration from ...
15009 * dwarf2out.c (dwarf2out_switch_text_section): ... here. Make
15011 * final.c (final_scan_insn) [NOTE_INSN_SWITCH_TEXT_SECTIONS]:
15012 Depending on dwarf2out_do_frame, call dwarf2out_switch_text_section
15013 for DWARF2_UNWIND_INFO targets.
15015 2008-01-16 Richard Guenther <rguenther@suse.de>
15018 * c-typeck.c (common_pointer_type): Do not merge inconsistent
15019 type qualifiers for function types.
15021 2008-01-15 Jerry DeLisle <jvdelisle@gcc.gnu.org>
15023 * tree-parloops.c (gen_parallel_loop): Fix ommision of declaration for
15024 loop_iterator li from previous commit.
15026 2008-01-15 Sebastian Pop <sebastian.pop@amd.com>
15028 * tree-parloops.c (gen_parallel_loop): Free loop bound estimations.
15030 2008-01-12 Sebastian Pop <sebastian.pop@amd.com>
15032 * tree-parloops.c (loop_has_blocks_with_irreducible_flag): New.
15033 (parallelize_loops): Don't parallelize irreducible components.
15035 2008-01-14 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
15038 * c-opts (c_common_post_options): Do not enable CPP
15039 flag_pedantic_errors by default.
15041 2008-01-14 Eric Botcazou <ebotcazou@adacore.com>
15043 PR rtl-optimization/31944
15044 * cse.c (remove_pseudo_from_table): New function.
15045 (merge_equiv_classes): Use above function to remove pseudo-registers.
15046 (invalidate): Likewise.
15048 2008-01-13 Richard Guenther <rguenther@suse.de>
15050 PR middle-end/34601
15051 * emit-rtl.c (set_reg_attrs_for_decl_rtl): Use DECL_MODE
15052 instead of TYPE_MODE to deal with calls from expand_one_error_var.
15054 2008-01-13 Uros Bizjak <ubizjak@gmail.com>
15056 * gcse.c (cprop_jump): Call validate_unshare_change instead of
15057 validate_change to unshare the source of the PC set.
15059 2008-01-12 Jan Hubicka <jh@suse.cz>
15061 PR middle-end/32135
15062 * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Do not construct
15063 references above array bounds. This might trigger bounds checks for
15064 pointers to arrays.
15066 2008-01-12 Sebastian Pop <sebastian.pop@amd.com>
15068 * tree-ssa-ter.c (free_temp_expr_table): Free num_in_part and
15069 new_replaceable_dependencies.
15071 2008-01-12 Doug Kwan <dougkwan@google.com>
15073 * c-decl.c: (grokdeclarator): Use OPT_Wignored_qualifiers
15074 instead of OPT_Wreturn_type in warning due to ignored return type
15076 * c-opt.c (c_common_post_option): Add -Wignored-qualifiers to
15077 options included in -Wextra.
15078 * c.opt: New option -Wignored_qualifiers.
15079 * doc/invoke.texi (Warning Options, -Wextra): Add new option
15080 -Wignore_qualifiers.
15081 (-Wignored-qualifiers): Document.
15082 (-Wreturn-type): Remove description of functionality now handled
15083 by -Wignored-qualifiers.
15085 2008-01-12 Eric Botcazou <ebotcazou@adacore.com>
15088 * fold-const.c (fold_unary) <VIEW_CONVERT_EXPR>: Fold an existing
15089 NOP_EXPR if it is between integral types with the same precision.
15091 2008-01-12 Jan Hubicka <jh@suse.cz>
15094 * invoke.texi (max-inline-recursive-depth): Fix default value.
15096 2008-01-12 Zdenek Dvorak <ook@ucw.cz>
15098 * tree-parloops.c (transform_to_exit_first_loop): Cast nit to the
15101 2008-01-11 Bob Wilson <bob.wilson@acm.org>
15103 * config/xtensa/xtensa.c (override_options): Set flag_shlib.
15105 2008-01-11 James E. Wilson <wilson@specifix.com>
15108 * config/vax/elf.h (FRAME_POINTER_CFA_OFFSET): Define.
15110 2008-01-11 Anatoly Sokolov <aesok@post.ru>
15112 * config/avr/avr.c (expand_prologue, expand_epilogue): Don't
15113 save/restore frame pointer register and don't use 'call-prologues'
15114 optimization in function with "OS_task" attribute.
15116 2008-01-11 Eric Botcazou <ebotcazou@adacore.com>
15118 PR middle-end/31309
15119 * expr.c (copy_blkmode_from_reg): Use a mode suited to the size
15120 when copying to memory.
15122 2008-01-11 Steven Bosscher <stevenb.gcc@gmail.com>
15124 PR rtl-optimization/30905
15125 * cfgcleanup.c: Include dce.h
15126 (crossjumps_occured): New global variable.
15127 (try_crossjump_bb): Exit loop after finding a fallthru edge.
15128 If something changed, set crossjumps_occured to true.
15129 (try_optimize_cfg): Clear crossjumps_occured at the beginning.
15130 Don't add/remove fake edges to exit here...
15131 (cleanup_cfg): ...but do it here, when crossjumping.
15132 Run a fast DCE when successful crossjumps occured in the latest
15133 iteration of try_optimize_cfg.
15135 2008-01-11 Richard Guenther <rguenther@suse.de>
15137 * tree-ssa-sccvn.c (struct vn_binary_op_s): Move hashcode near opcode.
15138 (struct vn_unary_op_s): Likewise.
15139 (vn_reference_insert): Free old reference on hash collision.
15141 2008-01-10 Raksit Ashok <raksit@google.com>
15143 PR rtl-optimization/27971
15144 * combine.c (find_split_point): Split PLUS expressions which are
15145 inside a MEM rtx, and whose first operand is complex.
15147 2008-01-10 DJ Delorie <dj@redhat.com>
15149 * config/m32c/m32c.c (m32c_hard_regno_nregs_1): Renamed from...
15150 (m32c_hard_regno_nregs): ...this, which is now a wrapper.
15151 (m32c_hard_regno_ok): Call the underlying function.
15153 2008-01-10 Richard Guenther <rguenther@suse.de>
15155 PR middle-end/34683
15156 * tree-cfg.c (tree_merge_blocks): Do not go through the
15157 full-blown folding and stmt updating path if we just deal
15158 with virtual operands.
15159 * tree-ssa-copy.c (may_propagate_copy): Do not short-cut
15160 test for abnormal SSA_NAMEs.
15162 2008-01-10 Andreas Krebbel <krebbel1@de.ibm.com>
15164 PR middle-end/34641
15165 * reload.c (push_reload): Add assertions. All constants from
15166 reg_equiv_constant should have been used for replacing the respective
15168 (find_reloads_address): Invoke find_reloads_address_part for
15169 constant taken from the reg_equiv_constant array.
15171 2008-01-10 Steven Bosscher <stevenb.gcc@gmail.com>
15173 * tree-ssa-sccvn.h (struct vn_ssa_aux): Make the most accessed
15174 field (valnum) the first in the struct. Replace bools with
15177 2008-01-10 Richard Guenther <rguenther@suse.de>
15179 PR tree-optimization/34651
15180 * tree-sra.c (sra_build_assignment): Sanitize. Use the correct
15181 types and ordering for masking and converting.
15183 2008-01-09 Sebastian Pop <sebastian.pop@amd.com>
15185 PR tree-optimization/34017
15186 * lambda-code.c (lambda_loopnest_to_gcc_loopnest): Generate code
15187 also for PHI_NODE expressions.
15189 2008-01-09 Jan Hubicka <jh@suse.cz>
15191 PR tree-optimization/34708
15192 * tree-inline.c (estimate_num_insns_1): Compute cost of SWITCH_EXPR
15193 based on number of case labels.
15194 (init_inline_once): Remove switch_cost.
15195 * tree-inline.h (eni_weights_d): Remove switch_cost.
15197 2008-01-09 Richard Guenther <rguenther@suse.de>
15198 Andrew Pinski <andrew_pinski@playstation.sony.com>
15200 PR middle-end/30132
15201 * gimplify.c (gimplify_cond_expr): Do not create an addressable
15202 temporary if an rvalue is ok or an lvalue is not required.
15204 2008-01-09 Richard Guenther <rguenther@suse.de>
15206 PR middle-end/34458
15207 * tree-data-ref.c (initialize_matrix_A): Use tree_low_cst,
15208 adjust return type.
15210 2008-01-09 Richard Guenther <rguenther@suse.de>
15212 PR middle-end/34679
15213 * tree.c (host_integerp): Check for sizetype only if the
15214 type is an integer type.
15216 2008-01-09 Steven Bosscher <stevenb.gcc@gmail.com>
15219 * opts.c (decode_options): Disable inlining of functions called
15220 once if not in unit-at-a-time mode.
15222 2008-01-09 Alexandre Oliva <aoliva@redhat.com>
15224 * Makefile.in (dse.o): Remove duplicate $(RECOG_H) dependency.
15226 2008-01-08 Richard Guenther <rguenther@suse.de>
15228 PR middle-end/31863
15229 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Bail
15230 out early if the result will be unused.
15232 2008-01-08 Uros Bizjak <ubizjak@gmail.com>
15237 2008-01-05 Uros Bizjak <ubizjak@gmail.com>
15238 * config/i386/i386.c (ix86_builtin_reciprocal): Remove check
15241 2008-01-08 Jan Sjodin <jan.sjodin@amd.com>
15243 * config/i386/i386.c (k8_cost, amdfam10_cost): Branch costs
15244 for vectorization tuned.
15246 2008-01-08 Richard Guenther <rguenther@suse.de>
15248 PR tree-optimization/34683
15249 * tree-ssa-operands.c (operand_build_cmp): Export.
15250 * tree-ssa-operands.h (operand_build_cmp): Declare.
15251 * tree-vn.c (vuses_compare): Remove.
15252 (sort_vuses): Use operand_build_cmp.
15253 (sort_vuses_heap): Likewise.
15254 * tree-ssa-sccvn.c (vuses_to_vec): Use VEC_reserve, not VEC_alloc
15255 to re-use old VEC if available. Do not sort already sorted VUSEs.
15256 (vdefs_to_vec): Do not sort already sorted VDEFs.
15258 2008-01-08 Jakub Jelinek <jakub@redhat.com>
15260 PR middle-end/34694
15261 * omp-low.c (copy_var_decl): Copy also DECL_SOURCE_LOCATION.
15263 2008-01-08 Uros Bizjak <ubizjak@gmail.com>
15266 * doc/invoke.texi (i386 and x86-64 Options) [mrecip]: Document
15267 limitations of reciprocal sequences on x86 targets.
15269 2008-01-08 Richard Guenther <rguenther@suse.de>
15271 PR tree-optimization/34683
15272 * tree-flow-inline.h (var_ann): Remove overzealous asserts.
15274 2008-01-07 Jakub Jelinek <jakub@redhat.com>
15277 * config/darwin.c (darwin_mergeable_string_section): Don't use
15278 .cstring if int_size_in_bytes != TREE_STRING_LENGTH.
15280 2008-01-07 Uros Bizjak <ubizjak@gmail.com>
15283 * config/i386/i386.md (neg<mode>2): Rename from negsf2, negdf2 and
15284 negxf2. Macroize expander using X87MODEF mode iterator. Change
15285 predicates of op0 and op1 to register_operand.
15286 (abs<mode>2): Rename from abssf2, absdf2 and negxf2. Macroize
15287 expander using X87MODEF mode iterator. Change predicates of
15288 op0 and op1 to register_operand.
15289 ("*absneg<mode>2_mixed", "*absneg<mode>2_sse"): Rename from
15290 corresponding patterns and macroize using MODEF macro. Change
15291 predicates of op0 and op1 to register_operand and remove
15292 "m" constraint. Disparage "r" alternative with "!".
15293 ("*absneg<mode>2_i387"): Rename from corresponding patterns and
15294 macroize using X87MODEF macro. Change predicates of op0 and op1
15295 to register_operand and remove "m" constraint. Disparage "r"
15296 alternative with "!".
15297 (absneg splitter with memory operands): Remove.
15298 ("*neg<mode>2_1", "*abs<mode>2_1"): Rename from corresponding
15299 patterns and macroize using X87MODEF mode iterator.
15300 * config/i386/sse.md (negv4sf2, absv4sf2, neg2vdf2, absv2df2):
15301 Change predicate of op1 to register_operand.
15302 * config/i386/i386.c (ix86_expand_fp_absneg_operator): Remove support
15303 for memory operands.
15305 2008-01-07 Nathan Froyd <froydnj@codesourcery.com>
15307 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add clause for mcpu=8548.
15309 2008-01-07 Richard Guenther <rguenther@suse.de>
15311 * basic-block.h (struct edge_def): Pair dest_idx with goto_locus
15314 2008-01-07 Richard Guenther <rguenther@suse.de>
15316 PR tree-optimization/34683
15317 * tree-ssa-sccvn.c (vuses_to_vec): Pre-allocate the vector of
15318 VOPs of the needed size to save memory. Use VEC_quick_push
15319 to save compile-time.
15320 (vdefs_to_vec): Likewise.
15322 2008-01-07 Sa Liu <saliu@de.ibm.com>
15324 * config/spu/spu.md (divdf3): Genetate inline code for double
15325 division. The implementation doesn't handle INF or NAN, therefore it
15326 only applies when -ffinite-math-only is given.
15328 2008-01-06 Paolo Carlini <pcarlini@suse.de>
15331 * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_RTTI, if appropriate.
15332 * doc/cpp.texi ([Common Predefined Macros]): Document.
15334 2008-01-06 Uros Bizjak <ubizjak@gmail.com>
15336 * config/i386/i386.c (ix86_emit_swsqrtsf): Use negative constants in
15337 order to use commutative addition instead of subtraction.
15339 2008-01-06 Andrew Pinski <andrew_pinski@playstation.sony.com>
15340 Mircea Namolaru <namolaru@il.ibm.com>
15341 Vladimir Yanovsky <yanov@il.ibm.com>
15342 Revital Eres <eres@il.ibm.com>
15344 PR tree-optimization/34263
15345 * tree-outof-ssa.c (process_single_block_loop_latch,
15346 contains_tree_r): New functions.
15347 (analyze_edges_for_bb): Call process_single_block_loop_latch
15348 function to empty single-basic-block latch block if possible.
15350 2008-01-05 Uros Bizjak <ubizjak@gmail.com>
15352 * config/i386/i386.c (ix86_builtin_reciprocal): Remove check
15354 (ix86_emit_swsqrtsf): Do not filter out infinity for rsqrt expansion.
15356 2008-01-05 Richard Sandiford <rsandifo@nildram.co.uk>
15358 * c-omp.c (check_omp_for_incr_expr): Handle CONVERT_EXPR.
15360 2008-01-05 Richard Sandiford <rsandifo@nildram.co.uk>
15362 * config/mips/mips.c (mips_in_small_data_p): Reinstate size > 0 check.
15364 2008-01-05 Jakub Jelinek <jakub@redhat.com>
15366 PR tree-optimization/34618
15367 * tree-outof-ssa.c (create_temp): Copy over DECL_GIMPLE_REG_P
15370 2008-01-05 Uros Bizjak <ubizjak@gmail.com>
15373 * config/i386/i386.c (ix86_emit_swsqrtsf): Swap input operands
15374 in the call to gen_rtx_NE. Remove unneeded VECTOR_MODE_P check.
15375 Update copyright year.
15377 * config/i386/i386.md (rsqrtsf2): Enable for TARGET_SSE_MATH.
15378 Update copyright year.
15379 * config/i386/sse.md (rsqrtv4sf2): Ditto. Unconditionally expand
15382 2008-01-05 Zhouyi Zhou <zhouzhouyi@FreeBSD.org>
15384 * tree-vrp.c (find_conditional_asserts): Remove redundant check that
15385 edge does not point to current bb before changing need_assert.
15387 2008-01-04 Richard Guenther <rguenther@suse.de>
15389 PR middle-end/34029
15390 * tree-cfg.c (verify_expr): Do not look inside ADDR_EXPRs
15391 for verifying purposes if they are is_gimple_min_invariant.
15393 2008-01-04 Aldy Hernandez <aldyh@redhat.com>
15395 PR tree-optimization/34448
15396 PR tree-optimization/34465
15397 * gimplify.c (gimplify_init_constructor): Add new parameter
15398 notify_temp_creation. Use it.
15399 (gimplify_modify_expr_rhs): Take volatiles into account when
15400 optimizing constructors.
15401 Do not optimize constructors if gimplify_init_constructor will dump to
15403 * gcc.dg/tree-ssa/pr32901.c: Tests const volatiles.
15404 * gcc.c-torture/compile/pr34448.c: New.
15406 2008-01-04 Jakub Jelinek <jakub@redhat.com>
15408 PR gcov-profile/34609
15409 * tree-inline.c (declare_return_variable): Set TREE_ADDRESSABLE on
15410 return_slot if result is TREE_ADDRESSABLE.
15412 2008-01-04 Richard Sandiford <rsandifo@nildram.co.uk>
15414 * config/mips/mips.md (sqrt_condition): Tweak comment.
15415 (recip_condition): Likewise. Require TARGET_FLOAT64 for DFmode.
15417 2008-01-03 Tom Tromey <tromey@redhat.com>
15420 * c-common.c (c_type_hash): Handle VLAs.
15422 2008-01-03 Jan Hubicka <jh@suse.cz>
15424 PR tree-optimization/31081
15425 * tree-inline.c (remap_ssa_name): Initialize uninitialized SSA vars to
15426 0 when inlining and not inlining to first basic block.
15427 (remap_decl): When var is initialized to 0, don't set default_def.
15428 (expand_call_inline): Set entry_bb.
15429 * tree-inline.h (copy_body_data): Add entry_bb.
15431 2008-01-03 Jakub Jelinek <jakub@redhat.com>
15434 * cgraphunit.c (cgraph_build_static_cdtor): set_cfun back to NULL
15437 PR tree-optimization/29484
15438 * tree-inline.c (inline_forbidden_p_2): New function.
15439 (inline_forbidden_p): Disallow inlining if some static var
15440 has an address of a local LABEL_DECL in its initializer.
15441 * doc/extend.texi (Labels as Values): Document &&foo behaviour
15444 2008-01-03 Sebastian Pop <sebastian.pop@amd.com>
15446 PR tree-optimization/34635
15447 * tree-data-ref.c (add_other_self_distances): Make sure that the
15448 evolution step is constant.
15450 2008-01-03 Jakub Jelinek <jakub@redhat.com>
15452 PR middle-end/34608
15453 * omp-low.c (expand_omp_parallel): Purge dead EH edges in the child fn.
15455 2008-01-02 Richard Sandiford <rsandifo@nildram.co.uk>
15457 * tree-sra.c (scalarize_init): Insert the generate_element_init
15458 statements after the generate_element_zero statements.
15460 2008-01-02 Richard Guenther <rguenther@suse.de>
15462 PR middle-end/34093
15463 PR middle-end/31976
15464 * tree-ssa-operands.c (ssa_operand_alloc): Also allocate a buffer
15465 for very large number of operands instead of ICEing.
15467 2008-01-02 Arthur Norman <acn1@cam.ac.uk>
15470 * config/i386/i386.c (ix86_expand_prologue): Save red-zone
15471 while stack probing.
15473 2008-01-01 Douglas Gregor <doug.gregor@gmail.com>
15475 * c-opts.c (sanitize_cpp_opts): Don't warn about "long long" when
15478 2008-01-01 Volker Reichelt <v.reichelt@netcologne.de>
15480 PR libmudflap/26442
15481 * tree-mudflap.c (mx_register_decls): Guard warning by
15482 !DECL_ARTIFICIAL check.
15484 2008-01-01 Jakub Jelinek <jakub@redhat.com>
15486 * config/i386/sse.md (sse5_pperm, sse5_pperm_pack_v2di_v4si,
15487 sse5_pperm_pack_v4si_v8hi, sse5_pperm_pack_v8hi_v16qi,
15488 sse5_perm<mode>): Fix constraints.