1 2008-07-18 H.J. Lu <hongjiu.lu@intel.com>
4 * builtins.c (std_gimplify_va_arg_expr): Limit alignment to
5 PREFERRED_STACK_BOUNDARY.
6 * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
8 2008-07-18 H.J. Lu <hongjiu.lu@intel.com>
11 * function.c (locate_and_pad_parm): Cap boundary earlier.
13 2008-07-17 Julian Brown <julian@codesourcery.com>
15 * config/arm/arm.c (arm_cxx_determine_class_data_visibility): Make
16 no-op for targets which don't use DLLs.
18 2008-07-17 Martin Jambor <mjambor@suse.cz>
20 * ipa-cp.c (ipcp_print_all_lattices): New variable info, check
21 that nodes are relevant by examining the node->analyzed flag.
22 (ipcp_init_stage): Check which nodes are relevant, assert that the
23 relevant ones are also required.
24 (ipcp_propagate_stage): Check on the side arrays are properly
26 (ipcp_print_all_jump_functions): Make sure not to touch any node
27 that is not analyzed or an edge that does not have a corresponding
28 entry in the on-the-side vectors.
29 (ipcp_function_scale_print): Likewise.
30 (ipcp_update_callgraph): Check that the node is relevant.
31 (ipcp_insert_stage): Check that the node is relevant. Check there is
32 an info for every node and edge.
33 * ipa-prop.c (ipa_init_func_list): Check the nodes are relevant.
34 (ipa_print_all_tree_maps): Likewise and a new variable info.
35 (ipa_print_all_params_modified): Likewise.
36 * ipa-prop.h (ipa_edge_args_info_available_for_edge_p): New function.
38 2008-07-17 Roman Zippel <zippel@linux-m68k.org>
41 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for __mc68000__.
43 2008-07-17 Paolo Bonzini <bonzini@gnu.org>
45 PR rtl-optimization/36753
46 * fwprop.c (use_killed_between): Don't shortcut
47 single-definition global registers.
49 2008-07-16 Jan Hubicka <jh@suse.cz>
51 * cgraph.h (varpool_empty_needed_queue): Declare.
52 * cgraphunit.c (output_in_order): Mark all variables as needed;
54 * varpool.c (varpool_assemble_node): Update debug queue.
55 (varpool_assemble_pending_decls): Don't do it here.
56 (varpool_empty_needed_queue): New function.
58 2008-07-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
60 * recog.c (peephole2_optimize): Fix formatting.
62 2008-07-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
64 * c-pch.c (get_ident): Avoid C++ keywords.
65 * combine-stack-adj.c (single_set_for_csa): Likewise.
66 * final.c (asm_insn_count, final_scan_insn, alter_subreg,
67 output_asm_insn): Likewise.
68 * reload.c (push_secondary_reload, find_reusable_reload,
69 push_reload, combine_reloads, find_reloads,
70 debug_reload_to_stream): Likewise.
71 * reload.h (struct reload): Likewise.
72 * reload1.c (reload_reg_class_lower, find_reg, find_reload_regs,
73 allocate_reload_reg, choose_reload_regs, emit_input_reload_insns,
74 emit_output_reload_insns): Likewise.
75 * targhooks.c (default_secondary_reload): Likewise.
76 * varasm.c (section_entry_eq, object_block_entry_eq): Likewise.
78 2008-07-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
80 * recog.c (validate_change_1, validate_change,
81 validate_unshare_change, validate_replace_rtx_1, struct
82 funny_match, constrain_operands, peephole2_optimize): Avoid C++
84 * reload.c (push_secondary_reload, secondary_reload_class,
85 scratch_reload_class, find_valid_class, find_reusable_reload,
86 push_reload, find_dummy_reload, find_reloads_address_1,
87 find_reloads_address_part, find_equiv_reg): Likewise.
88 * reload1.c (spill_failure, eliminate_regs_1, allocate_reload_reg,
89 choose_reload_regs): Likewise.
90 * rtlanal.c (replace_rtx, nonzero_bits1, num_sign_bit_copies1):
92 * rtlhooks.c (gen_lowpart_if_possible): Likewise.
93 * sched-ebb.c (add_deps_for_risky_insns): Likewise.
94 * sched-rgn.c (concat_INSN_LIST): Likewise.
95 * stor-layout.c (mode_for_size, mode_for_size_tree,
96 smallest_mode_for_size): Likewise.
98 2008-07-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
100 * cfg.c (dump_reg_info): Avoid C++ keywords.
101 * dwarf2asm.c (dw2_force_const_mem,
102 dw2_asm_output_encoded_addr_rtx): Likewise.
103 * except.c (gen_eh_region, add_action_record, output_ttype):
105 * expmed.c (expand_shift): Likewise.
106 * global.c (find_reg): Likewise.
107 * graph.c (draw_edge): Likewise.
108 * local-alloc.c (reg_meets_class_p, find_free_reg): Likewise.
109 * optabs.c (expand_binop, expand_twoval_unop, expand_twoval_binop,
110 widen_clz, widen_bswap, expand_parity, expand_unop,
111 emit_cmp_and_jump_insn_1): Likewise.
112 * postreload.c (reload_cse_simplify_operands): Likewise.
113 * ra.h (add_neighbor): Likewise.
114 * reg-stack.c (remove_regno_note, change_stack): Likewise.
115 * regclass.c (memory_move_secondary_cost, dump_regclass, regclass,
116 record_reg_classes, copy_cost, record_address_regs,
117 invalid_mode_change_p): Likewise.
118 * regrename.c (regrename_optimize, scan_rtx_reg,
119 dump_def_use_chain, find_oldest_value_reg,
120 replace_oldest_value_reg, copyprop_hardreg_forward_1): Likewise.
122 2008-07-16 David Edelsohn <edelsohn@gnu.org>
124 * config/rs6000/rs6000.c (processor_target_table): Remove duplicate
125 MASK_POWERPC64 for power4 in previous commit.
127 2008-07-16 Olivier Hainque <hainque@adacore.com>
129 * collect2.c (scan_prog_file, COFF version): Use CONST_CAST
130 instead of bare conversion to cast const-ness away.
132 2008-07-16 Anatoly Sokolov <aesok@post.ru>
134 * config/xtensa/xtensa.h (FUNCTION_OUTGOING_VALUE,
135 XTENSA_FUNCTION_VALUE, XTENSA_FUNCTION_VALUE): Remove.
136 * config/xtensa/xtensa.c (xtensa_function_value): New function.
137 (TARGET_FUNCTION_VALUE): Define.
139 2008-07-16 David Edelsohn <edelsohn@gnu.org>
141 * config/rs6000/rs6000.c (processor_target_table): Add
142 MASK_PPC_GPOPT for power4, power5, power5+, power6, and power6x.
144 2008-07-16 Joseph Myers <joseph@codesourcery.com>
147 * config/m32c/m32c.c (BIG_FB_ADJ): Move definition earlier.
148 (m32c_legitimate_address_p): Handle "++rii" addresses created by
149 m32c_legitimize_reload_address.
151 2007-07-16 Rafael Avila de Espindola <espindola@google.com>
153 * c-decl.c (merge_decls): Keep DECL_SOURCE_LOCATION and
154 DECL_IN_SYSTEM_HEADER in sync.
156 2008-07-15 Daniel Berlin <dberlin@dberlin.org>
158 * tree-ssa-sccvn.c (expressions_equal_p): Check type equality.
159 * tree-ssa-pre.c (pre_expr_eq): Ditto
160 (get_constant_for_value_id): Take a type as an argument.
161 (fully_constant_expression): Pass in type.
162 (find_or_generate_expression): Short circuit constant case.
163 (create_expression_by_pieces): Remove special casing of
165 (do_regular_insertion): Short circuit constant case.
166 (do_partial_partial_insertion): Ditto.
168 2008-07-15 Kaz Kojima <kkojima@gcc.gnu.org>
171 * config/sh/sh.md (symGOT_load): Don't add REG_EQUAL note.
173 2008-07-15 Bob Wilson <bob.wilson@acm.org>
175 * config/xtensa/libgcc-xtensa.ver: New file.
176 * config/xtensa/t-linux (SHLIB_MAPFILES): Append libgcc-xtensa.ver.
178 2008-07-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
180 * df-problems.c (df_set_note): Avoid C++ keywords.
181 * df-scan.c (df_ref_change_reg_with_loc_1): Likewise.
182 * dse.c (record_store, remove_useless_values): Likewise.
183 * emit-rtl.c (gen_reg_rtx, update_reg_offset, gen_rtx_REG_offset,
184 gen_reg_rtx_offset, operand_subword, change_address_1,
185 change_address, adjust_address_1, offset_address,
186 widen_memory_access, emit_copy_of_insn_after): Likewise.
187 * explow.c (round_push, allocate_dynamic_stack_space): Likewise.
188 * fwprop.c (should_replace_address, propagate_rtx_1,
189 propagate_rtx, try_fwprop_subst, forward_propagate_and_simplify):
191 * gcse.c (cprop_jump, find_implicit_sets, bypass_block,
192 gcse_emit_move_after, update_ld_motion_stores): Likewise.
193 * lcm.c (compute_insert_delete, pre_edge_lcm,
194 compute_rev_insert_delete, pre_edge_rev_lcm): Likewise.
195 * lower-subreg.c (resolve_reg_notes): Likewise.
196 * mode-switching.c (optimize_mode_switching): Likewise.
198 2008-07-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
200 * bt-load.c (add_btr_def, migrate_btr_def,
201 branch_target_load_optimize): Avoid C++ keywords.
202 * caller-save.c (insert_restore, insert_save, insert_one_insn):
204 * combine.c (subst, simplify_set, make_extraction,
205 make_compound_operation, known_cond, simplify_shift_const_1):
207 * cse.c (make_regs_eqv, merge_equiv_classes, validate_canon_reg,
208 fold_rtx, equiv_constant, cse_insn, cse_process_notes_1):
211 2008-07-15 Richard Guenther <rguenther@suse.de>
214 * c-common.c (strict_aliasing_warning): Do not warn for
215 TYPE_REF_CAN_ALIAS_ALL pointers.
216 (c_common_get_alias_set): may_alias types are not special.
217 * tree.c (build_pointer_type_for_mode): Look up the may_alias
218 attribute and set can_ref_all accordingly.
219 (build_reference_type_for_mode): Likewise.
220 * doc/extend.texi (may_alias): Clarify.
222 2008-07-15 Kaz Kojima <kkojima@gcc.gnu.org>
225 * config/sh/sh.h (GO_IF_LEGITIMATE_ADDRESS): Allow
226 (plus (plus (reg) (const_int)) (const_int)) when reload_in_progress.
228 2008-07-15 Andrew Pinski <andrew_pinski@playstation.sony.com>
231 * config/rs6000/rs6000.c (print_operand <case 'y'>): Don't use
232 gcc_assert, instead call output_operand_lossage.
234 2008-07-15 Kai Tietz <kai.tietz@onevision.com>
236 * builtins.c (std_canonical_va_list): Treat structure based
239 2008-07-15 Ben Elliston <bje@au.ibm.com>
241 * emit-rtl.c (set_mem_attributes_minus_bitpos): Improve comment.
243 2007-07-14 Rafael Avila de Espindola <espindola@google.com>
245 * c-decl.c (diagnose_mismatched_decls): Don't warn if TREE_NO_WARNING
248 2008-07-14 Jan Hubicka <jh@suse.cz>
250 * i386.md (sse5 cmov pattern): Update call of ix86_sse5_valid_op_p
251 * sse.md (sse5 patterns): Update call of ix86_sse5_valid_op_p;
252 fix predicates and constraints.
253 * i386.c (ix86_sse5_valid_op_p): Add commutative parameter.
254 * i386-protos.h (ix86_sse5_valid_op_p): Update declaration.
256 2008-07-14 Doug Kwan <dougkwan@google.com>
258 * config.gcc (arm*-*-eabi*): Include arm/eabi.h and use
259 additional option file arm/eabi.opt.
260 * config/arm/eabi.h (File): New configuration file for EABI targets.
261 * config/arm/elf.h (SUBTARGET_EXTRA_SPECS): Add
262 SUBSUBTARGET_EXTRA_SPECS.
263 (SUBSUBTARGET_EXTRA_SPECS): Provide empty default.
264 * config/arm/unknown-elf.h (UNKNOWN_ELF_STARTFILE_SPEC): Renamed
265 from STARTFILE_SPEC so that it can be referenced in an override.
266 (STARTFILE_SPEC): Use UNKNOWN_ELF_STARTFILE_SPEC.
267 (UNKNOWN_ELF_ENDFILE_SPEC): Renamed from ENDFILE_SPEC so that it
268 can be referenced in an override.
269 (ENDFILE_SPEC): Use UNKNOWN_ELF_ENDFILE_SPEC.
270 * config/arm/bpabi.h (BPABI_LINK_SPEC): Renamed from LINK_SPEC
271 so that it can be referenced in an override.
272 (LINK_SPEC): Use BPABI_LINK_SPEC.
273 * config/arm/eabi.opt (File): New.
275 2008-07-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
277 * Makefile.in (TARGET_DEF_H): Add targhooks.h.
278 (FIXED_VALUE_H): New variable.
279 (RTL_BASE_H): Use $(INPUT_H) and $(FIXED_VALUE_H) instead of
280 input.h, fixed-value.h.
281 (TREE_H): Use $(INPUT_H), add $(SYMTAB_H).
282 (BASIC_BLOCK_H): Use $(BITMAP_H).
283 (FUNCTION_H): Add varray.h.
284 (IPA_REFERENCE_H): Use $(BITMAP_H).
285 (CGRAPH_H): Add $(BASIC_BLOCK_H).
286 (DF_H): Use $(BITMAP_H).
287 (GGC_H): Add statistics.h.
289 (INSN_ATTR_H): Use it.
290 (SYSTEM_H): Add safe-ctype.h, filenames.h.
292 (SYMTAB_H): Add $(OBSTACK_H).
293 (CPP_INTERNAL_H): New.
294 (TREE_DUMP_H): Add tree-pass.h.
295 (TREE_FLOW_H): Use $(BITMAP_H)
296 (PRETTY_PRINT_H): Use $(INPUT_H).
297 (EBITMAP_H): Rename from typo-ed EBIMAP_H.
300 (many object files): Fix lots of header dependencies throughout.
302 2008-07-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
304 * Makefile.in (write_entries_to_file, write_entries_to_file_split):
306 (s-gtyp-input): Use them to write tmp-gi.list.
307 (echo_to_gi.list): Remove.
309 2008-07-14 Richard Guenther <rguenther@suse.de>
311 * tree-ssa-sccvn.c (pre_info): Remove.
312 (switch_to_PRE_table): Likewise.
313 (free_scc_vn): Do not clear SSA_NAME_VALUE.
314 Do not free pre_info.
315 (set_hashtable_value_ids): Do not create value-ids for the
317 (run_scc_vn): Remove double test. Remove bogus special-case
318 in value-number printing.
319 * tree-ssa-sccvn.h (switch_to_PRE_table): Remove.
320 * tree-ssa-ccp.c (get_symbol_constant_value): Do not look at
322 * tree-flow-inline.h (get_value_handle): Remove.
323 * tree-flow.h (get_value_handle): Remove.
325 2008-07-14 Martin Jambor <mjambor@suse.cz>
327 * tree-switch-conversion.c (gen_inbound_check): Make sure the type
328 in which we generate arithmetics is not a subrange.
330 2008-07-14 Martin Jambor <mjambor@suse.cz>
332 * Makefile.in (IPA_PROP_H): Added ipa-prop.h to IPA_PROP_H variable.
334 2008-07-14 Richard Guenther <rguenther@suse.de>
336 * tree-ssa-pre.c (insert_into_preds_of_block): Do not call
339 2008-07-14 Andreas Krebbel <krebbel1@de.ibm.com>
342 * config/s390/s390.c: (s390_secondary_reload): Add a secondary
343 reload for symbol refs moved to r0 with -fPIC.
344 (legitimize_pic_address): Use the target register as temporary
346 (emit_symbolic_move): Adjust comment.
347 * config/s390/s390.md (reloadsi_PIC_addr, reloaddi_PIC_addr):
350 2008-07-14 Ben Elliston <bje@au.ibm.com>
352 * c-common.h (C_CPP_HASHNODE): New macro.
353 * coretypes.h (struct cpp_token): Forward declare.
354 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
355 the context-sensitive keyword method.
356 * config/rs6000/rs6000-c.c (__vector_keyword, vector_keyword,
357 __pixel_keyword, pixel_keyword, __bool_keyword, bool_keyword,
358 expand_bool_pixel): New.
359 (altivec_categorize_keyword): New function.
360 (init_vector_keywords): New function.
361 (rs6000_macro_to_expand): Likewise.
362 (rs6000_cpu_cpp_builtins): Enable context-sensitive macros if not
363 compiling an ISO C dialect.
365 2008-07-13 Daniel Berlin <dberlin@dberlin.org>
367 * tree-ssa-pre.c (fully_constant_expression): Add fold_convert
369 (create_expression_by_pieces): Fix typo.
370 (do_regular_insertion): Use debug counter here too.
372 2008-07-14 Hans-Peter Nilsson <hp@axis.com>
375 * config/cris/cris.h (CRIS_CONST_OK_FOR_LETTER_P): Renamed from
376 CONST_OK_FOR_LETTER_P. All port-local users changed.
377 (CONST_OK_FOR_CONSTRAINT_P): Define; implement Kc as old K,
378 implement Kp matching power-of-two.
379 (CONSTRAINT_LEN): Define to match.
380 * config/cris/cris.md: Replace all use of constraint K with Kc.
381 ("*btst*): Use Kp for operand 0 of last alternative.
383 2008-07-13 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
386 * tree-call-cdce.c (check_target_format): Accept MIPS single, double
389 2008-07-13 Jan Hubicka <jh@suse.cz>
391 * tree.c (decl_assembler_name_equal): Expect assembler name of decl
394 2008-07-13 Richard Guenther <rguenther@suse.de>
397 * langhooks.c (lhd_print_error_function): Deal with recursive
400 2008-07-12 Jan Hubicka <jh@suse.cz>
402 * cgraph.c (assembler_name_hash): New static var.
403 (hash_node_by_assembler_name, eq_assembler_name): New.
404 (cgraph_node_for_asm): Use hashtable.
405 (cgraph_remove_node): Maintain hashtable.
406 (change_decl_assembler_name): Sanity check that names are not changing
407 after aliasing was processed.
408 * cgraph.h (varpoon_node): Add next GGC marker.
409 * tree.c (decl_assembler_name_equal): Constify.
410 (decl_assembler_name_hash): New.
411 * tree.h (decl_assembler_name_equal): Constify.
412 (decl_assembler_name_hash): Update.
414 2008-07-12 David Daney <ddaney@avtrex.com>
416 * config/mips/driver-native.c (host_detect_local_cpu): Handle
419 2008-07-12 Richard Sandiford <rdsandiford@googlemail.com>
421 * doc/md.texi: Document the MIPS "v" constraint.
422 * config/mips/mips.h (reg_class): Revert last change.
423 (REG_CLASS_NAMES): Likewise.
424 (REG_CLASS_CONTENTS): Likewise.
425 * config/mips/mips.c (mips_regno_to_class): Likewise.
426 * config/mips/constraints.md (v): Likewise, but add documentation.
427 Add a comment to say that this constraint should not be used in
430 2008-07-11 DJ Delorie <dj@redhat.com>
432 * config/h8300/h8300.md (length): Fix branch offset limit.
434 2008-07-11 Anatoly Sokolov <aesok@post.ru>
436 * config/avr/avr-protos.h (avr_peep2_scratch_safe): Remove prototype.
437 * config/avr/avr.c (avr_peep2_scratch_safe): Remove.
438 (avr_hard_regno_scratch_ok): New function.
439 (TARGET_HARD_REGNO_SCRATCH_OK): Define.
440 * config/avr/avr.md (all peepholes that request a scratch register):
441 Remove avr_peep2_scratch_safe use.
443 2008-07-11 Tom Tromey <tromey@redhat.com>
444 Ian Lance Taylor <iant@google.com>
446 * c-common.h (enum rid): Add RID_CXX_COMPAT_WARN.
447 (struct c_common_resword): Define.
448 (D_CONLY, D_CXXONLY, D_C99, D_CXX0X, D_EXT, D_EXT89): Define.
449 (D_ASM, D_OBJC, D_CXX_OBJC, D_CXXWARN): Define.
450 (c_common_reswords, num_c_common_reswords): Declare.
451 * c-common.c (c_common_reswords): New global const array.
452 (num_c_common_reswords): New const int.
453 * c-parser.c (struct resword, reswords): Don't define.
454 (D_C89, D_EXT, D_EXT89, D_OBJC): Don't define.
455 (c_parse_init): Clarify mask code. Use c_common_reswords rather
456 than reswords. If warning about C++ keywords, give them a special
458 (c_lex_one_token): Warn about C++ keywords. Call
459 objc_is_reserved_word rather than OBJC_IS_AT_KEYWORD.
460 (c_parser_external_declaration): Look for RID_xxx rather than
461 RID_AT_xxx, for ObjC++ keywords which are also C++ keywords.
462 (c_parser_statement_after_labels): Likewise.
463 (c_parser_objc_class_instance_variables): Likewise.
464 (c_parser_objc_class_declaration): Likewise.
465 (c_parser_objc_try_catch_statement): Likewise.
466 * c-decl.c (c_print_identifier): Ignore RID_CXX_COMPAT_WARN.
467 (declspecs_add_type): Likewise.
469 2008-07-11 Angelo Graziosi <angelo.graziosi@alice.it>
471 * ggc-page.c (alloc_page):
472 Substituting xmalloc, xcalloc with
473 XNEWVEC and XCNEWVAR macros which add the
476 2008-07-11 Richard Guenther <rguenther@suse.de>
478 PR tree-optimization/36765
479 * tree-ssa-alias.c (compute_flow_insensitive_aliasing): Add
480 aliases from HEAP vars to SMTs.
482 2008-07-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
484 * Makefile.in (LOOSE_WARN, STRICT_WARN): Update comments.
485 * configure.ac (loose_warn): Move -Wc++-compat from here...
486 (strict_warn): ...to here.
487 * configure: Regenerate.
489 2008-07-10 Joseph Myers <joseph@codesourcery.com>
491 * config.gcc (arm-*-coff*, armel-*-coff*, h8300-*-*,
492 i[34567]86-*-aout*, i[34567]86-*-coff*, m68k-*-aout*,
493 m68k-*-coff*, sh-*-*, mips-sgi-irix[56]*, pdp11-*-bsd,
494 rs6000-ibm-aix4.[12]*, powerpc-ibm-aix4.[12]*): Deprecate targets,
495 excluding more specific h8300-*-* and sh-*-* targets.
497 2008-07-10 Daniel Berlin <dberlin@dberlin.org>
499 * tree-ssa-pre.c (create_expression_by_pieces): Add fold_convert
502 (execute_pre): Call loop_optimizer_finalize in early exit.
504 2008-07-10 Jakub Jelinek <jakub@redhat.com>
507 * omp-low.c (lower_omp_2): If task_shared_vars, test all DECL_P
508 uids in the bitmap, not just VAR_DECL uids.
510 PR rtl-optimization/36419
511 * combine-stack-adj.c (adjust_frame_related_expr): New function.
512 (combine_stack_adjustments_for_block): Call it if needed. Delete
514 * dwarf2out.c (dwarf2out_frame_debug_expr): Adjust
515 DW_CFA_GNU_args_size if CSA pass merged some adjustments into
516 prologue sp adjustment.
518 2008-07-10 Peter Maydell <pmaydell@chiark.greenend.org.uk>
521 * opts.c (print_ignored_options): Report postponed diagnostics for
522 unknown -Wno-* options as warnings, not errors.
523 (postpone_unknown_option_error): Renamed to...
524 (postpone_unknown_option_warning): ... this.
526 2008-07-09 Doug Kwan <dougkwan@google.com>
529 2008-07-08 Doug Kwan <dougkwan@google.com>
531 * config/arm/arm.opt (mandroid): New option.
532 * config/arm/bpabi.h (ANDROID_LINK_SPEC): New macro.
533 (LINK_SPEC): Enable Android specific behaviour when -mandroid is used.
535 (CC1PLUS_SPEC): Same.
537 (STARTFILE_SPEC): Same.
538 (ENDFILE_SPEC): Same.
539 (TARGET_BPABI_CPP_BUILTINS): Define __ANDROID__ when -mandroid is
542 2008-07-09 Richard Sandiford <rdsandiford@googlemail.com>
545 * config/mips/mips.h (reg_class): Remove V1_REG.
546 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update accordingly.
547 * config/mips/mips.c (mips_regno_to_class): Map $3 to M16_NA_REGS
549 (mips_get_tp): New function.
550 (mips_legitimize_tls_address): Use it.
551 * config/mips/constraints.md (v): Delete.
552 * config/mips/mips.md (TLS_GET_TP_REGNUM): New constant.
553 (tls_get_tp_<mode>): Allow any GPR destination and clobber $3.
554 After reload, split into a move and ...
555 (*tls_get_tp_<mode>_split): ...this new instruction.
557 2008-07-09 David Daney <ddaney@avtrex.com>
559 * config/mips/driver-native.c: Include coretypes.h and tm.h.
561 2008-07-09 Jakub Jelinek <jakub@redhat.com>
563 * gimplify.c (struct gimplify_ctx): Move to tree-gimple.h.
564 (push_gimplify_context): Don't allocate temp_htab nor c itself here.
566 (pop_gimplify_context): Check c->temp_htab instead of optimize whether
567 htab_delete should be called. Don't free c.
568 (lookup_tmp_var): Create temp_htab lazily.
569 (gimplify_scan_omp_clauses, gimplify_omp_parallel, gimplify_omp_task,
570 gimplify_body, force_gimple_operand): Adjust push_gimplify_context
572 * omp-low.c (lower_omp_sections, lower_omp_single, lower_omp_master,
573 lower_omp_ordered, lower_omp_critical, lower_omp_for,
574 create_task_copyfn, lower_omp_taskreg, execute_lower_omp):
575 * tree-ssa-ccp.c (convert_to_gimple_builtin): Likewise.
576 * tree-sra.c (generate_element_init): Likewise.
577 * tree-mudflap.c (execute_mudflap_function_ops,
578 execute_mudflap_function_decls): Likewise.
579 * tree-inline.c (setup_one_parameter, optimize_inline_calls): Likewise.
580 * tree-gimple.h (struct gimplify_ctx): New type.
581 (push_gimplify_context): Adjust prototype.
583 2008-07-09 Daniel Berlin <dberlin@dberlin.org>
585 * tree-ssa-pre.c (phi_translate_1): Update placement of
588 2008-07-09 Anatoly Sokolov <aesok@post.ru>
590 * target.h (struct gcc_target): Add hard_regno_scratch_ok field.
591 * target-def.h (TARGET_HARD_REGNO_SCRATCH_OK): New.
592 (TARGET_INITIALIZER): Use TARGET_HARD_REGNO_SCRATCH_OK.
593 * targhooks.c (default_hard_regno_scratch_ok): New function.
594 * targhooks.h (default_hard_regno_scratch_ok): Declare function.
595 * doc/tm.texi: Document TARGET_HARD_REGNO_SCRATCH_OK hook.
596 * recog.c: Include "target.h".
597 (peep2_find_free_register): Add check for global regs. Add target
599 * Makefile.in (recog.o): Depend on target.h.
601 2008-07-09 Kaz Kojima <kkojima@gcc.gnu.org>
603 * config/sh/sh.c (sh_canonical_va_list_type): New.
604 (TARGET_CANONICAL_VA_LIST_TYPE): Define.
606 2008-07-09 Raksit Ashok <raksit@google.com>
608 * doc/invoke.texi (Option Summary): Mention new option
609 -Wdisallowed-function-list=...
610 (Warning Options): Document -Wdisallowed-function-list=...
611 * common.opt (Wdisallowed-function-list=): New flag.
612 * flags.h (warn_disallowed_functions): External definition of new
613 boolean warning flag.
614 (warn_if_disallowed_function_p): Declare new function.
615 * opts.c (warning_disallowed_functions): New static variable.
616 (warn_disallowed_functions): New boolean warning flag.
617 (warn_if_disallowed_function_p): New function.
618 (add_comma_separated_to_vector): Rename
619 add_instrument_functions_exclude_list to this.
620 (common_handle_option): Handle new option. Rename calls to
621 add_instrument_functions_exclude_list into calls to
622 add_comma_separated_to_vector.
623 * c-parser.c (c_parser_postfix_expression_after_primary): New warning
624 based on flag warn_disallowed_functions.
626 2008-07-09 Christian Bruel <christian.bruel@st.com>
628 * final.c (get_attr_length_1): Call get_attr_length_1 with fallback_fn
629 instead of get_attr_length.
631 2008-07-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
633 * genattrtab.c (insert_right_side, evaluate_eq_attr): Avoid C++
635 * genemit.c (gen_insn): Likewise.
636 * gengtype.c (note_def_vec): Likewise.
637 * gengtype.h (note_def_vec): Likewise.
638 * genoutput.c (struct data, output_insn_data, process_template,
639 gen_expand, gen_split, note_constraint): Likewise.
640 * genrecog.c (new_decision, add_to_sequence, factor_tests,
641 make_insn_sequence): Likewise.
642 * gensupport.c (record_insn_name): Likewise.
644 2008-07-08 Doug Kwan <dougkwan@google.com>
646 * config/arm/arm.opt (mandroid): New option.
647 * config/arm/bpabi.h (ANDROID_LINK_SPEC): New macro.
648 (LINK_SPEC): Enable Android specific behaviour when -mandroid is used.
650 (CC1PLUS_SPEC): Same.
652 (STARTFILE_SPEC): Same.
653 (ENDFILE_SPEC): Same.
654 (TARGET_BPABI_CPP_BUILTINS): Define __ANDROID__ when -mandroid is
657 2008-07-08 Raksit Ashok <raksit@google.com>
659 * expr.c (emit_block_move_via_movmem): Fix expected_align parameter.
660 (set_storage_via_setmem): Fix expected_align parameter.
661 * doc/invoke.texi (i386 and x86-64 Options): Add a couple of options
662 missing from the list.
663 * doc/md.texi (movmem): Explicitly state that expected alignment is
664 to be expressed in bytes.
665 (setmem): Explicitly state that expected alignment is to be expressed
668 2008-07-08 Joseph Myers <joseph@codesourcery.com>
670 * reload.c (find_reloads_subreg_address): Do not require validity
671 of address in original mode before reloading address.
673 2008-07-07 Tianwei Sheng <tianweis@google.com>
675 * df-core.c (df_remove_problem): Adjust the access to avoid out of
678 2008-07-08 Jakub Jelinek <jakub@redhat.com>
680 * tree-sra.c (sra_build_assignment): Handle CONVERT_EXPR_P
683 2008-07-05 Daniel Berlin <dberlin@dberlin.org>
685 Fix PR tree-optimization/23455
686 Fix PR tree-optimization/35286
687 Fix PR tree-optimization/35287
688 * Makefile.in (OBJS-common): Remove tree-vn.o.
690 * dbgcnt.def: Add treepre_insert debug counter.
691 * gcc/tree-flow.h (add_to_value): Updated for other changes.
692 (debug_value_expressions): Ditto.
693 (print_value_expressions): Ditto.
694 * tree-pretty-print.c (dump_generic_node): Updated for
695 VALUE_HANDLE removal.
696 * tree-ssa-dom.c (record_equality): Ditto.
697 (cprop_operand): Ditto.
698 (lookup_avail_expr): Ditto.
699 * tree-ssa-threadedge.c
700 (record_temporary_equivalences_from_stmts_at_dest): Ditto.
701 (simplify_control_stmt_condition): Ditto.
702 * tree.c (tree_code_size): Ditto.
703 (tree_node_structure): Ditto.
704 (iterative_hash_expr): Ditto.
706 * tree.h (VALUE_HANDLE_ID): Ditto.
707 (VALUE_HANDLE_EXPR_SET): Ditto.
708 (struct tree_value_handle): Ditto.
709 (union tree_node): Ditto.
710 * treestruct.def: Ditto.
711 * tree-vn.c: Removed.
712 * tree-ssa-pre.c: Rewritten entirely.
713 * tree-ssa-sccvn.c (constant_to_value_id): New hashtable.
714 (constant_value_ids): Ditto.
715 (vn_nary_op_t): Moved to header.
717 (vn_reference_op_t): Ditto
718 (vn_reference_t): Ditto.
719 (next_value_id): New variable.
720 (VN_INFO): Add an assert.
721 (vn_constant_eq): New function.
722 (vn_constant_hash): Ditto.
723 (get_or_alloc_constant_value_id): Ditto.
724 (value_id_constant_p): Ditto.
725 (vn_reference_compute_hash): De-staticify.
726 (copy_reference_ops_from_ref): Don't use get_callee_fndecl.
727 Disable some code with a FIXME.
728 Remove VALUE_HANDLE use.
729 (valueize_refs): Update opcode if it changes from ssa name to
731 (vn_reference_lookup_1): Add new argument.
732 (vn_reference_lookup): Ditto.
733 (vn_reference_lookup_pieces): New function.
734 (vn_reference_insert): Add return type. Modify to deal with value
736 (vn_reference_insert_pieces): New function.
737 (vn_nary_op_compute_hash): De-staticify.
738 (vn_nary_op_eq): Ditto.
739 (vn_nary_op_lookup_pieces): New function.
740 (vn_nary_op_lookup): Add new argument.
741 (vn_nary_op_insert_pieces): New function.
742 (vn_nary_op_insert): Add return type. Modify to deal with value
744 (vn_phi_insert): Ditto.
745 (visit_unary_op): Update for callee changes.
746 (visit_binary_op): Ditto.
747 (visit_reference_op_load): Ditto.
748 (visit_reference_op_store): Ditto.
749 (init_scc_vn): Init next_value_id, constant_to_value_id and
751 (free_scc_vn): Free them.
752 (set_hashtable_value_ids): New function.
753 (run_scc_vn): Use it.
754 (get_max_value_id): New function.
755 (get_next_value_id): Ditto.
756 (expressions_equal_p): Moved from tree-vn.c
758 (sort_vuses_heap): Ditto.
759 * tree-ssa-sccvn.h: Structures moved from tree-ssa-sccvn.c (noted
761 * tree.c (iterative_hash_hashval_t): Made non-static
762 * tree.h (iterative_hash_hashval_t): Declare it.
764 2008-07-08 Martin Jambor <mjambor@suse.cz>
766 * ipa-cp.c (ipcp_init_cloned_node): Call ipa_check_create_node_params
767 instead of ipa_create_node_params.
768 (ipcp_driver): Allocate infos with ipa_check_create_node_params and
769 ipa_check_create_edge_args, free them with
770 free_all_ipa_structures_after_ipa_cp, call ipa_register_cgraph_hooks.
772 * ipa-prop.c: Include flags.h and tree-inline.h.
773 (ipa_node_params_vector): New variable.
774 (ipa_edge_args_vector): New variable.
775 (edge_removal_hook_holder): New variable.
776 (node_removal_hook_holder): New variable.
777 (edge_duplication_hook_holder): New variable.
778 (node_duplication_hook_holder): New variable.
779 (ipa_detect_param_modifications): Check for presence of modified flags.
780 (ipa_compute_jump_functions): Check for presence of jump functions.
781 (ipa_free_edge_args_substructures): New function.
782 (ipa_create_node_params): Removed.
783 (ipa_free_all_edge_args): Changed to deallocate the on-the-side vector.
784 (ipa_free_node_params_substructures): New function.
785 (ipa_free_all_node_params): Changed to deallocate the on-the-side
787 (ipa_edge_removal_hook): New function.
788 (ipa_node_removal_hook): New function.
789 (duplicate_array): New function.
790 (ipa_edge_duplication_hook): New function.
791 (ipa_node_duplication_hook): New function.
792 (ipa_register_cgraph_hooks): New function.
793 (ipa_unregister_cgraph_hooks): New function.
794 (free_all_ipa_structures_after_ipa_cp): New function.
796 * ipa-prop.h: Include vec.h.
797 (ipa_node_params_t): New typedef with vector types for it.
798 (ipa_edge_args_t): New typedef with vector types for it.
799 (IPA_NODE_REF): Changed to access an on-the-side vector.
800 (IPA_EDGE_REF): Changed to access an on-the-side vector.
801 (ipa_check_create_node_params): New function.
802 (ipa_check_create_edge_args): New function.
804 * Makefile.in (IPA_PROP_H): New variable for ipa-prop.h. Converted
807 2008-07-07 Tom Tromey <tromey@redhat.com>
809 * configure, config.in: Rebuilt.
810 * configure.ac: Don't check for scandir or alphasort.
812 2008-07-07 Joseph Myers <joseph@codesourcery.com>
814 * config/arm/arm.c (arm_init_neon_builtins): Register built-in
815 types immediately after creating them.
817 2008-07-07 Joseph Myers <joseph@codesourcery.com>
819 * config/arm/aout.h (DOLLARS_IN_IDENTIFIERS): Remove.
821 2008-07-07 Fernando Pereira <fernando@cs.ucla.edu>
823 * tree-ssa-structalias.c (compute_points_to_sets): Add call to
824 dump_constraint_graph.
825 (dump_constraint_edge): New function.
826 (dump_constraint_graph): New function.
827 (debug_constraint_graph): New function.
828 (dump_constraint): Removed useless comparison.
829 * tree-ssa-structalias.h (dump_constraint_edge): Declare.
830 (dump_constraint_graph): Declare.
831 (debug_constraint_graph): Declare.
832 * tree-dump.c (struct dump_option_value_info): Declare
835 2008-07-07 Kai Tietz <kai.tietz@onevision.com>
837 * config/i386/i386.c (is_va_list_char_pointer): New.
838 (ix86_va_start): Replace compare with ms_va_list_type_node
839 by is_va_list_char_pointer.
840 (ix86_gimplify_va_arg): Likewise.
842 2008-07-07 Martin Jambor <mjambor@suse.cz>
844 * cgraph.c (cgraph_edge_max_uid): New variable.
845 (struct cgraph_edge_hook_list): New type.
846 (struct cgraph_node_hook_list): New type.
847 (struct cgraph_2edge_hook_list): New type.
848 (struct cgraph_2node_hook_list): New type.
849 (first_cgraph_edge_removal_hook): New variable.
850 (first_cgraph_node_removal_hook): New variable.
851 (first_cgraph_edge_duplicated_hook): New variable.
852 (first_cgraph_node_duplicated_hook): New variable.
853 (cgraph_add_edge_removal_hook): New function.
854 (cgraph_remove_edge_removal_hook): New function.
855 (cgraph_call_edge_removal_hooks): New function.
856 (cgraph_add_node_removal_hook): New function.
857 (cgraph_remove_node_removal_hook): New function.
858 (cgraph_call_node_removal_hooks): New function.
859 (cgraph_add_edge_duplication_hook): New function.
860 (cgraph_remove_edge_duplication_hook): New function.
861 (cgraph_call_edge_duplication_hooks): New function.
862 (cgraph_add_node_duplication_hook): New function.
863 (cgraph_remove_node_duplication_hook): New function.
864 (cgraph_call_node_duplication_hooks): New function.
865 (cgraph_create_edge): Assign to edge uid.
866 (cgraph_remove_edge): Call edge removal hooks.
867 (cgraph_node_remove_callees): Call edge removal hooks.
868 (cgraph_node_remove_callers): Call edge removal hooks.
869 (cgraph_remove_node): Call node removal hooks.
870 (cgraph_clone_edge): Call edge duplication hooks.
871 (cgraph_clone_node): Call node duplication hooks.
873 * cgraph.h (cgraph_edge): New field uid.
874 (cgraph_edge_hook): New type.
875 (cgraph_node_hook): New type.
876 (cgraph_2edge_hook): New type.
877 (cgraph_2node_hook): New type.
879 2008-07-07 Andreas Tobler <a.tobler@schweiz.org>
881 * config.in: Regenerate.
883 2008-07-07 Vladimir Prus <vladimir@codesourcery.com>
885 * gcc.c (print_sysroot): New.
886 (option_map, display_help, process_command): Handle the
887 -print-sysroot option.
888 (main): Print the sysroot if requested.
889 * doc/invoke.texi (Debugging Options): Document -print-sysroot.
891 2008-07-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
894 * unwind-pe.h (size_of_encoded_value): add attribute unused.
896 2008-07-07 Daniel Jacobowitz <dan@codesourcery.com>
898 * function.c (assign_parm_remove_parallels): Check mode of
900 (assign_parm_setup_block_p): Also check mode of entry_parm.
902 2008-07-07 Richard Guenther <rguenther@suse.de>
904 * tree-ssa-structalias.h (set_used_smts): Remove.
905 * tree-ssa-structalias.c (used_smts): Likewise.
906 (set_used_smts): Likewise.
907 * tree-ssa-alias.c (compute_flow_sensitive_aliasing): Remove
908 call to set_used_smts.
910 2008-07-07 Richard Guenther <rguenther@suse.de>
912 * tree-ssa-structalias.c (struct variable_info): Add is_full_var flag.
913 (new_var_info): Set it to false.
914 (solution_set_add): Correctly handle pointers outside a var and
916 (type_safe): Treat variables with is_full_var properly.
917 (do_sd_constraint): Likewise.
918 (do_ds_constraint): Likewise.
919 (process_constraint): Remove zeroing offset for !use_field_sensitive.
920 (get_constraint_for_ptr_offset): New function.
921 (get_constraint_for_component_ref): For addresses at least include
922 the last field of the variable. Handle is_full_vars properly.
923 (get_constraint_for_1): Factor common code, handle POINTER_PLUS_EXPR.
924 (handle_ptr_arith): Remove.
925 (find_func_aliases): Simplify assignment handling.
926 (create_function_info_for): For parameter and result varinfos set
928 (create_variable_info_for): Set is_full_var flag whenever we
929 just created a single varinfo for a decl.
930 (init_alias_vars): Initialize use_field_sensitive from
931 max-fields-for-field-sensitive parameter.
933 2008-07-07 Richard Guenther <rguenther@suse.de>
935 PR tree-optimization/36713
936 * tree-flow-inline.h (is_call_used): New function.
937 * tree-nrv.c (dest_safe_for_nrv_p): Use it.
938 * tree-tailcall.c (suitable_for_tail_opt_p): Likewise.
939 * tree-outof-ssa.c (create_temp): Set call-used flag if required.
941 2008-07-07 Maxim Kuvyrkov <maxim@codesourcery.com>
943 * config/m68k/m68k.c (m68k_return_in_memory): Fix arguments types.
945 2008-07-07 Mark Shinwell <shinwell@codesourcery.com>
947 * config/m68k/lb1sf68.asm: Add PIC macros for Linux targets.
949 2008-07-07 Maxim Kuvyrkov <maxim@codesourcery.com>
950 Nathan Sidwell <nathan@codesourcery.com>
952 * config.gcc (m68k-*-linux*): Add with_arch. Add sysroot-suffix.h
953 to tm_file. Add m68k/t-floatlib, m68k/t-linux & m68k/t-mlibs to
955 * config/m68k/t-linux: New.
956 * doc/install.texi: Document m68k-*-linux is now multilibbed by
959 2008-07-07 Nathan Sidwell <nathan@codesourcery.com>
961 * config/m68k/t-cf (MULTILIB_EXTRA_OPTS): Add no-mac.
962 * config/m68k/m68k-devices.def: Remove multilibs that only differ
965 2008-07-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
967 * gcc.c (execute): Fix -Wc++-compat warning.
969 2008-07-06 H.J. Lu <hongjiu.lu@intel.com>
972 * config/ia64/ia64.c (ia64_split_tmode): Fix typo in TImode
973 constant for little endian.
975 2008-07-06 Richard Sandiford <rdsandiford@googlemail.com>
977 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Check
978 mips_base_mips16 instead of TARGET_MIPS16.
979 (mips_base_mips16): Declare.
980 * config/mips/mips.c (mips_base_mips16): Make global.
981 (was_mips16_p): Remove GTY marker.
982 (was_mips16_pch_p): New variable.
983 (mips_set_mips16_mode): Check both was_mips16_p and was_mips16_pch_p.
984 (mips_override_options): Force to non-MIPS16 mode initially.
985 Do not complain about MIPS16 PIC incompatibilities here.
986 Only allow -mgpopt if -mexplicit-relocs is in force for
989 2008-07-06 Andreas Tobler <a.tobler@schweiz.org>
991 * configure.ac: Check for caddr_t, define to char * if not defined.
992 * configure: Regenerate.
993 * ggc-common.c (mmap_gt_pch_get_address): Fix -Wc++-compat warnings.
994 (mmap_gt_pch_use_address): Likewise.
995 * config/host-solaris.c (sol_gt_pch_use_address): Likewise.
997 2008-07-06 Richard Guenther <rguenther@suse.de>
999 * tree-ssa-structalias.c (struct variable_info): Remove has_union.
1000 (new_var_info): Deal with it.
1001 (solution_set_add): Likewise.
1002 (bitpos_of_field): Make signed, fix.
1003 (struct fieldoff): Remove type and decl fields. Make size field
1004 unsigned HOST_WIDE_INT. Add has_unknown_size and may_have_pointers
1006 (fieldoff_compare): Deal with it.
1007 (push_fields_onto_fieldstack): Remove has_union argument, glob
1008 adjacent non-pointer fields together.
1009 (create_function_info_for): Do not set has_union.
1010 (create_variable_info_for): Simplify.
1012 2008-07-06 Kai Tietz <kai.tietz@onevision.com>
1014 * config.gcc (extra_headers): Add cross-stdarg.h for target
1015 x86_64-*-* and i?86-*-*.
1016 * config/i386/cross-stdarg.h: New.
1017 * builtins.c (std_fn_abi_va_list): New.
1018 (std_canonical_va_list_type): New.
1019 (stabilize_va_list): Replace va_list_type_node use by
1020 mtarget.canonical_va_list_type.
1021 (gimplify_va_arg_expr): Likewise.
1022 (expand_builtin_va_copy): Replace va_list_type_node use by
1023 mtarget.fn_abi_va_list.
1024 * tree-sra.c (is_va_list_type): New helper.
1025 (decl_can_be_decomposed_p): Replace
1026 va_list_type_node use by is_va_list_type.
1027 * tree-ssa-ccp.c (optimize_stdarg_builtin): Likewise.
1028 * tree-stdarg.c (execute_optimize_stdarg): Likewise.
1029 * c-common.c (c_common_nodes_and_builtins): Use TARGET_ENUM_VA_LIST.
1030 * config/i386/i386-protos.h (ix86_get_valist_type): New.
1031 (ix86_enum_va_list): New.
1032 * config/i386/i386.c (sysv_va_list_type_node): New.
1033 (ms_va_list_type_node): New.
1034 (ix86_function_type_abi): Remove sorry.
1035 (ix86_build_builtin_va_list_abi): New.
1036 (ix86_build_builtin_va_list): Call ix86_build_builtin_va_list_abi
1038 (ix86_va_start): Replace va_list_type_node by sysv_va_list_type_node.
1039 (ix86_init_builtins_va_builtins_abi): New.
1040 (ix86_init_builtins): Use ix86_init_builtins_va_builtins_abi
1042 (ix86_handle_abi_attribute): New.
1043 (attribute_spec): Add sysv_abi and ms_abi.
1044 (ix86_fn_abi_va_list): New.
1045 (ix86_canonical_va_list_type): New.
1046 (ix86_enum_va_list): New.
1047 (TARGET_FN_ABI_VA_LIST): New.
1048 (TARGET_CANONICAL_VA_LIST_TYPE): New.
1049 * config/i386/i386.h (TARGET_ENUM_VA_LIST): New.
1050 * doc/tm.texi (TARGET_FN_ABI_VA_LIST): New.
1051 (TARGET_CANONICAL_VA_LIST_TYPE): New.
1052 (TARGET_ENUM_VA_LIST): New.
1053 * expr.h (std_fn_abi_va_list): New.
1054 (std_canonical_va_list_type): New.
1055 * target-def.h (TARGET_FN_ABI_VA_LIST): New.
1056 (TARGET_CANONICAL_VA_LIST_TYPE): New.
1057 (TARGET_INITIALIZER): Add TARGET_FN_ABI_VA_LIST and
1058 TARGET_CANONICAL_VA_LIST_TYPE.
1059 * target.h (struct gcc_target): Add fn_abi_va_list hook
1060 and canonical_va_list_type hook.
1062 2008-07-05 Andrew Pinski <andrew_pinski@playstation.sony.com>
1064 * fold-const.c (fold_convert_const): Treat OFFSET_TYPE the same as
1065 integral and pointer types.
1067 2008-07-04 Roger Sayle <roger@eyesopen.com>
1069 * config/rs6000/host-darwin.c (darwin_rs6000_extra_siganls): Cast
1070 the "void*" result of xmalloc to "char*" to fix bootstrap breakage.
1072 2008-07-04 Kaz Kojima <kkojima@gcc.gnu.org>
1075 * config/sh/sh.h (OVERRIDE_OPTIONS): Disable -fschedule-insns
1078 2008-07-04 Jakub Jelinek <jakub@redhat.com>
1080 * tree-switch-conversion.c (build_one_array, gen_def_assigns): Use
1081 build_gimple_modify_stmt.
1082 (build_arrays, gen_inbound_check): Likewise. Force RHS to be
1083 gimple operand. Use fold_build* instead of build*.
1085 2008-07-04 Richard Guenther <rguenther@suse.de>
1087 * tree-ssa-structalias.c (lookup_vi_for_tree): Declare.
1088 (do_sd_constraint): Handle a dereference of ESCAPED and CALLUSED
1089 properly to compute the reachability set if we do field-sensitive PTA.
1090 * invoke.texi (max-fields-for-field-sensitive): Document default.
1091 * opts.c (decode_options): Set max-fields-for-field-sensitive to
1092 100 for optimize >= 2.
1094 2008-07-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1096 * ggc-zone.c (lookup_page_table_if_allocated,
1097 set_page_table_entry, zone_find_object_size, alloc_small_page,
1098 alloc_large_page, ggc_free, gt_ggc_m_S, ggc_marked_p, init_ggc,
1099 new_ggc_zone, init_ggc_pch, ggc_pch_this_base, ggc_pch_read): Fix
1100 -Wc++-compat and/or -Wcast-qual warnings.
1102 2008-07-04 Alan Modra <amodra@bigpond.net.au>
1105 * config/rs6000/rs6000.md (call, call_value): Don't arrange for
1106 pic_offset_table_rtx to be marked as used here.
1107 (call_nonlocal_sysv, call_value_nonlocal_sysv): Add split for
1108 TARGET_SECURE_PLT to "use" pic_offset_table_rtx.
1109 (call_nonlocal_sysv_secure, call_value_nonlocal_sysv_secure): New insn.
1110 (sibcall_nonlocal_sysv, sibcall_value_nonlocal_sysv): Assert
1113 2008-07-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1115 * alloc-pool.c (hash_descriptor, eq_descriptor,
1116 alloc_pool_descriptor): Fix -Wc++-compat warnings.
1117 * bitmap.c (hash_descriptor, eq_descriptor, bitmap_descriptor):
1119 * ggc-common.c (hash_descriptor, eq_descriptor, hash_ptr, eq_ptr,
1120 loc_descriptor, ggc_prune_ptr, ggc_free_overhead,
1121 final_cmp_statistic, cmp_statistic, dump_ggc_loc_statistics):
1123 * varray.c (hash_descriptor, eq_descriptor, varray_descriptor):
1126 2008-07-03 Eric Botcazou <ebotcazou@adacore.com>
1128 * tree-flow.h (loop_only_exit_p): Declare.
1129 * tree-ssa-loop-niter.c (loop_only_exit_p): Make public.
1130 * tree-ssa-loop-ivopts.c (may_eliminate_iv): Reinstate direct check on
1131 the number of iterations if it is constant. Otherwise, if this is the
1132 only possible exit of the loop, use the conservative estimate on the
1133 number of iterations of the entire loop if available.
1135 2008-07-03 Richard Sandiford <rdsandiford@googlemail.com>
1137 * Makefile.in (libgcc.mvars): Add LIBGCC_SYNC and LIBGCC_SYNC_CFLAGS.
1138 * libgcc-std.ver (GCC_4.4.0): New version, inherited from GCC_4.3.0.
1139 Add synchronization functions.
1140 * config/sync.c: New file.
1141 * config/mips/t-libgcc-mips16 (LIBGCC_SYNC): Define.
1142 (LIBGCC_SYNC_CFLAGS): Likewise.
1144 2008-07-03 Uros Bizjak <ubizjak@gmail.com>
1147 * config/i386/i386.md (mode): Add TF to "mode" attribute.
1148 (*pushtf_sse): New insn pattern.
1149 (pushtf splitters): New splitters.
1151 2008-07-03 Michael Meissner <gnu@the-meissners.org>
1154 * predict.c (build_predict_expr): Use void_type_node for the tree
1155 type, instead of NULL_TREE.
1157 2008-07-03 H.J. Lu <hongjiu.lu@intel.com>
1159 * config/i386/i386.c (contains_aligned_value_p): Return true
1161 (ix86_data_alignment): Align TCmode to 128bits.
1162 (ix86_local_alignment): Likewise.
1164 2008-07-03 Andrew Haley <aph@redhat.com>
1167 * vec.h (VEC_TA): New.
1168 (DEF_VEC_I, DEF_VEC_P, DEF_VEC_ALLOC_I, DEF_VEC_ALLOC_P,
1169 DEF_VEC_O, DEF_VEC_ALLOC_O: Use VEC_TA.
1170 * c-common.c (C_COMMON_FIXED_TYPES_SAT): New macro.
1171 (C_COMMON_FIXED_MODE_TYPES_SAT): New macro.
1172 (C_COMMON_FIXED_TYPES): Remove first arg.
1173 (C_COMMON_FIXED_MODE_TYPES): Likewise.
1174 * tree.c (MAKE_FIXED_TYPE_NODE): Break into two macros,
1175 MAKE_FIXED_TYPE_NODE and MAKE_FIXED_TYPE_NODE_WIDTH in order
1176 not to use empty macro arguments.
1178 2008-07-02 Joseph Myers <joseph@codesourcery.com>
1180 * config/alpha/vms_tramp.asm, config/arm/crti.asm,
1181 config/arm/crtn.asm, config/bfin/crti.s, config/bfin/crtlibid.s,
1182 config/bfin/crtn.s, config/fr30/crti.asm, config/fr30/crtn.asm,
1183 config/frv/lib1funcs.asm, config/i386/sol2-c1.asm,
1184 config/i386/sol2-ci.asm, config/i386/sol2-cn.asm,
1185 config/i386/sol2-gc1.asm, config/ia64/crti.asm,
1186 config/ia64/crtn.asm, config/m68hc11/larith.asm,
1187 config/m68hc11/m68hc11-crt0.S, config/m68k/crti.s,
1188 config/m68k/crtn.s, config/mcore/crti.asm, config/mcore/crtn.asm,
1189 config/rs6000/crtresfpr.asm, config/rs6000/crtresgpr.asm,
1190 config/rs6000/crtresxfpr.asm, config/rs6000/crtresxgpr.asm,
1191 config/rs6000/crtsavfpr.asm, config/rs6000/crtsavgpr.asm,
1192 config/rs6000/crtsavres.asm, config/rs6000/e500crtres32gpr.asm,
1193 config/rs6000/e500crtres64gpr.asm,
1194 config/rs6000/e500crtres64gprctr.asm,
1195 config/rs6000/e500crtrest32gpr.asm,
1196 config/rs6000/e500crtrest64gpr.asm,
1197 config/rs6000/e500crtresx32gpr.asm,
1198 config/rs6000/e500crtresx64gpr.asm,
1199 config/rs6000/e500crtsav32gpr.asm,
1200 config/rs6000/e500crtsav64gpr.asm,
1201 config/rs6000/e500crtsav64gprctr.asm,
1202 config/rs6000/e500crtsavg32gpr.asm,
1203 config/rs6000/e500crtsavg64gpr.asm,
1204 config/rs6000/e500crtsavg64gprctr.asm, config/rs6000/eabi-ci.asm,
1205 config/rs6000/eabi-cn.asm, config/rs6000/eabi.asm,
1206 config/rs6000/sol-ci.asm, config/rs6000/sol-cn.asm,
1207 config/rs6000/tramp.asm, config/sparc/sol2-ci.asm,
1208 config/sparc/sol2-cn.asm: Remove .file directives.
1210 2008-07-02 Richard Sandiford <rdsandiford@googlemail.com>
1212 * resource.c (mark_referenced_resources): Look inside
1213 UNSPEC_VOLATILEs and ASM_INPUTs.
1215 2008-07-02 Ian Lance Taylor <iant@google.com>
1217 * rtlanal.c (add_reg_note): New function.
1218 * rtl.h (add_reg_note): Declare.
1219 * auto-inc-dec.c (attempt_change): Use add_reg_note.
1220 * bb-reorder.c (add_reg_crossing_jump_notes): Likewise.
1221 * builtins.c (expand_builtin_longjmp): Likewise.
1222 (expand_builtin_nonlocal_goto): Likewise.
1223 * calls.c (emit_call_1, expand_call): Likewise.
1224 * cfgexpand.c (add_reg_br_prob_note): Likewise.
1225 * cfglayout.c (fixup_reorder_chain): Likewise.
1226 * cfgrtl.c (force_nonfallthru_and_redirect): Likewise.
1227 (commit_one_edge_insertion): Likewise.
1228 * combine.c (move_deaths, distribute_notes): Likewise.
1229 * df-problems.c (df_set_note): Likewise.
1230 * emit-rtl.c (link_cc0_insns, try_split): Likewise.
1231 (set_unique_reg_note): Likewise.
1232 (emit_copy_of_insn_after): Likewise.
1233 * expr.c (expand_expr_real): Likewise.
1234 * gcse.c (add_label_notes): Likewise.
1235 * haifa-sched.c (create_check_block_twin): Likewise.
1236 * jump.c (mark_jump_label_1): Likewise.
1237 * loop-doloop.c (add_test, doloop_modify): Likewise.
1238 * loop-unswitch.c (compare_and_jump_seq): Likewise.
1239 * lower-subreg.c (move_eh_region_note): Likewise.
1240 * optabs.c (emit_libcall_block): Likewise.
1241 * predict.c (predict_insn): Likewise.
1242 (combine_predictions_for_insn): Likewise.
1243 * recog.c (peephole2_optimize): Likewise.
1244 * regmove.c (try_auto_increment): Likewise.
1245 * reg-stack.c (emit_pop_insn, move_for_stack_reg): Likewise.
1246 * reload.c (find_reloads): Likewise.
1247 * reload1.c (fixup_eh_region_note): Likewise.
1248 (reload_as_needed, add_auto_inc_notes, copy_eh_notes): Likewise.
1249 * reorg.c (delete_prior_computation): Likewise.
1250 (delete_computation, dbr_schedule): Likewise.
1251 * config/pa/pa.c (legitimize_pic_address): Likewise.
1252 * config/sh/sh.c (sh_reorg): Likewise.
1254 2008-07-02 H.J. Lu <hongjiu.lu@intel.com>
1257 * config/libgcc-glibc.ver: Add %exclude.
1258 * config/m32r/libgcc-glibc.ver: Likwise.
1259 * config/s390/libgcc-glibc.ver: Likwise.
1260 * config/sh/libgcc-glibc.ver: Likwise.
1261 * config/sparc/libgcc-sparc-glibc.ver: Likwise.
1263 * config/i386/libgcc-glibc.ver: New.
1265 * config/i386/libgcc-x86_64-glibc.ver: Removed.
1267 2008-07-02 H.J. Lu <hongjiu.lu@intel.com>
1269 * config.gcc: Remove i386/t-fprules-softfp64 soft-fp/t-softfp
1270 from tmake_file from i[34567]86-*-darwin*, x86_64-*-darwin*,
1271 i[34567]86-*-linux*, x86_64-*-linux*. Add
1272 i386/t-fprules-softfp and soft-fp/t-softfp to tmake_file for
1273 i[34567]86-*-darwin*, x86_64-*-darwin*, i[34567]86-*-linux*,
1274 x86_64-*-linux*. Add i386/t-linux to tmake_file for
1275 i[34567]86-*-linux*, x86_64-*-linux*.
1277 * libgcc-std.ver: Add empty GCC_4.4.0.
1279 * mkmap-symver.awk: Support multiple versions per symbol.
1281 * config/i386/i386.c (ix86_init_builtins): Always define
1282 __builtin_fabsq and __builtin_copysignq with fallbacks.
1283 (ix86_expand_builtin): Emit normal call for __builtin_fabsq
1284 and __builtin_copysignq if SSE2 isn't available.
1286 * config/i386/linux.h (LIBGCC2_HAS_TF_MODE): Defined.
1287 (LIBGCC2_TF_CEXT): Likwise.
1290 * config/i386/linux64.h (LIBGCC2_HAS_TF_MODE): Defined as 1.
1292 * config/i386/sfp-machine.h: Moved to libgcc.
1294 * config/i386/sfp-machine.h: New.
1295 * config/i386/t-linux: Likwise.
1297 * config/i386/t-darwin: Remove softfp_wrap_start and
1299 * config/i386/t-darwin64: Likewise.
1301 * config/i386/t-fprules-softfp64: Renamed to ...
1302 * config/i386/t-fprules-softfp: This.
1304 * config/i386/t-linux64: Remove SHLIB_MAPFILES, softfp_wrap_start
1305 and softfp_wrap_end.
1307 2008-07-02 Jason Merrill <jason@redhat.com>
1309 * tree.c (ctor_to_list): Use FOR_EACH_CONSTRUCTOR_ELT.
1311 * tree.c (ctor_to_list): New fn.
1312 * tree.h: Declare it.
1313 (CONSTRUCTOR_ELT): New macro.
1314 (CONSTRUCTOR_NELTS): New macro.
1316 2008-07-02 Richard Guenther <rguenther@suse.de>
1318 * tree-ssa-structalias.c (struct variable_info): Reorder
1319 to fill padding on 64bit hosts. Make collapsed_to an int.
1320 (get_varinfo_fc): Deal with that.
1321 (new_var_info): Likewise.
1322 (collapse_rest_of_var): Likewise.
1324 2008-07-02 Joshua Sumali <jsumali@redhat.com>
1326 * doc/install.texi (--enable-java-home): Document.
1327 (--enable-aot-compile-rpm): Likewise.
1328 (--with-arch-directory): Likewise.
1329 (--with-os-directory): Likewise.
1330 (--with-origin-name): Likewise.
1331 (--with-arch-suffix): Likewise.
1332 (--with-jvm-root-dir): Likewise.
1333 (--with-jvm-jar-dir): Likewise.
1334 (--with-python-dir): Likewise.
1336 2008-07-02 Richard Guenther <rguenther@suse.de>
1338 * tree-ssa-forwprop.c (can_propagate_from): Exclude loads
1339 from decls explicitly. Merge operand checking from tuples.
1341 2008-07-02 Martin Jambor <mjambor@suse.cz>
1343 * tree-switch-conversion.c: Included timevar.h which I forgot before.
1345 2008-07-02 Martin Jambor <mjambor@suse.cz>
1347 * tree-switch-conversion.c: Included timevar.h
1348 (pass_convert_switch): Added a timevar id (TV_TREE_SWITCH_CONVERSION).
1350 * timevar.def: Added TV_TREE_SWITCH_CONVERSION.
1352 2008-07-02 Martin Jambor <mjambor@suse.cz>
1354 * tree-switch-conversion.c: Corrected various comments and
1356 (build_constructors): Fixed minor formatting mistakes.
1358 * invoke.texi (Optimize Options): Corrected the
1359 switch-conversion-max-branch-ratio parameter.
1361 2008-07-02 Mark Shinwell <shinwell@codesourcery.com>
1363 * final.c (asm_insn_count): Return zero for an empty asm body.
1365 2008-07-02 Richard Guenther <rguenther@suse.de>
1367 * bitmap.h (bitmap_set_bit): Return bool.
1368 (bitmap_clear_bit): Likewise.
1369 * bitmap.c (bitmap_set_bit): Return if the bit changed. Only
1370 write to the bitmap if it would.
1371 (bitmap_clear_bit): Likewise.
1372 * tree-ssa-structalias.c (add_implicit_graph_edge): Use
1373 bitmap_set_bit return value.
1374 (add_pred_graph_edge): Likewise.
1375 (add_graph_edge): Likewise.
1376 (do_sd_constraint): Likewise.
1377 (do_ds_constraint): Likewise.
1379 2008-07-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1381 * config/alpha/alpha.c (alpha_need_linkage, alpha_use_linkage):
1382 Fix -Wc++-compat and/or -Wcast-qual warnings.
1383 * config/i386/netware.c (gen_stdcall_or_fastcall_decoration,
1384 gen_regparm_prefix): Likewise.
1385 * vmsdbgout.c (write_modbeg, lookup_filename,
1386 vmsdbgout_source_line, vmsdbgout_init): Likewise.
1388 2008-07-02 Danny Smith <dannysmith@users.sourceforge.net>
1390 * config/i386/mingw32.h (TARGET_USE_JCR_SECTION): Undef to let
1391 defaults.h definition apply.
1393 2008-07-01 Daniel Jacobowitz <dan@codesourcery.com>
1395 * function.c (assign_parm_remove_parallels): New.
1396 (assign_parm_setup_block_p): Do not return true for non-BLKmode
1398 (assign_parm_setup_block): Do not handle them.
1399 (assign_parm_setup_reg, assign_parm_setup_stack): Call
1400 assign_parm_remove_parallels.
1402 2008-07-01 Daniel Jacobowitz <dan@codesourcery.com>
1404 * c-typeck.c (convert_for_assignment): Use
1405 vector_targets_convertible_p.
1406 * c-common.c (vector_targets_convertible_p): New.
1407 * c-common.h (vector_targets_convertible_p): New prototype.
1408 * config/rs6000/rs6000.c (rs6000_is_opaque_type): Do not check
1409 opaque_p_V2SI_type_node.
1411 2008-07-01 Steve Ellcey <sje@cup.hp.com>
1413 * config/ia64/ia64.c (ia64_cannot_force_const_mem): Do not allow
1416 2008-07-01 Uros Bizjak <ubizjak@gmail.com>
1418 * config/i386/i386.c (ix86_build_signbit_mask): Generate TImode and
1419 TFmode constants via two element DImode vector for hosts with
1420 HOST_BITS_PER_WIDE_INT < 64.
1421 (ix86_init_builtins): Define __builtin_fabsq and __builtin_copysignq
1422 also for HOST_BITS_PER_WIDE_INT < 64.
1424 2008-07-01 Richard Guenther <rguenther@suse.de>
1426 PR tree-optimization/36666
1427 * tree-ssa-structalias.c (get_constraint_for_1): Declare.
1428 (get_constraint_exp_from_ssa_var): Split into ...
1429 (get_constraint_exp_for_temp): ... this ...
1430 (get_constraint_for_ssa_var): ... and that.
1431 Return constraint expressions for all touched sub-fields
1432 if the results address is not taken.
1433 (process_constraint): Remove assertion that aggregate
1434 assignments do not happen at this place.
1435 (get_constraint_for_component_ref): Add address_p argument.
1436 Return constraint expressions for all touched sub-fields
1437 if the results address is not taken.
1438 (do_deref): Use get_constraint_exp_for_temp.
1439 (get_constraint_for_1): Rename from ...
1440 (get_constraint_for): ... this. Add the old function as wrapper.
1441 (do_structure_copy): Use get_constraint_for_1.
1443 2008-07-01 Martin Jambor <mjambor@suse.cz>
1445 * Makefile.in (tree-switch-conversion.o): Add.
1446 (OBJS-common): Add tree-swtch-conversion.o.
1447 * passes.c (init_optimization_passes): Add pass_convert_switch.
1448 * tree-pass.h: (pass_convert_switch): Add.
1449 * tree-switch-conversion.c: New file.
1450 * gcc.dg/tree-ssa/cswtch.c: New testcase.
1451 * common.opt (ftree-cswtch): New option.
1452 * params.h (PARAM_SWITCH_CONVERSION_BRANCH_RATIO): New parameter.
1453 * params.def (PARAM_SWITCH_CONVERSION_BRANCH_RATIO): New parameter.
1454 * opts.c (decode_options): Set flag_tree_switch_conversion when
1455 optimization level is >= 2.
1456 * doc/invoke.texi (Optimize Options): Added description of
1457 -ftree-swtch-conversion and switch-conversion-max-branch-ratio.
1459 2008-06-30 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1461 * config/darwin-driver.c (darwin_default_min_version): Fix
1462 -Wc++-compat warnings.
1464 2008-06-30 Uros Bizjak <ubizjak@gmail.com>
1466 * config/i386/i386.md (*movti_rex64): Add "!" to "r" constraint
1469 2008-06-30 Kenneth Zadeck <zadeck@naturalbridge.com>
1471 * ifcvt.c (cond_move_process_if_block): Free vectors on false return.
1473 2008-06-30 Kenneth Zadeck <zadeck@naturalbridge.com>
1475 PR rtl-optimization/34744
1476 * df-scan.c (df_scan_free_ref_vec, df_scan_free_mws_vec): New macros.
1477 (df_scan_free_internal): Free data structures not
1478 allocated in storage pools.
1479 (df_mw_hardreg_chain_delete_eq_uses): Use df_scan_free_mws_vec.
1480 (df_refs_add_to_chains): Use df_scan_free_ref_vec and
1481 df_scan_free_mws_vec.
1482 * dse.c (dse_step6): Free offset_map_p and offset_map_n
1485 2008-06-30 H.J. Lu <hongjiu.lu@intel.com>
1487 * config/i386/i386.c (contains_aligned_value_p): Return true
1489 (ix86_function_arg_boundary): Return its natural boundary
1491 (return_in_memory_32): Don't check TDmode.
1492 (ix86_split_to_parts): Support splitting into 4 parts and
1493 support TFmode for 32bit target.
1494 (ix86_split_long_move): Support splitting into 4 parts.
1495 (bdesc_args): Enable IX86_BUILTIN_FABSQ and IX86_BUILTIN_COPYSIGNQ
1497 (ix86_init_mmx_sse_builtins): Move __float80 and __float128 to ...
1498 (ix86_init_builtins): Here.
1499 (ix86_scalar_mode_supported_p): Always return true for TFmode.
1500 (ix86_c_mode_for_suffix): Always return TFmode and XFmode for
1501 'q' and 'w', respectively.
1503 * config/i386/i386.md (movtf): Check TARGET_SSE2 instead of
1505 (movtf_internal): Likewise.
1506 (<code>tf2): Likewise.
1507 (*absnegtf2_sse): Likewise.
1508 (copysign<mode>3): Likewise.
1509 (copysign<mode>3_const): Likewise.
1510 (copysign<mode>3_var): Likewise.
1511 (define_split UNSPEC_COPYSIGN): Likewise.
1512 * config/i386/sse.md (*nandtf3): Likewise.
1513 (<code>tf3): Likewise.
1514 (*<code>tf3): Likewise.
1516 2008-06-30 Joey Ye <joey.ye@intel.com>
1517 H.J. Lu <hongjiu.lu@intel.com>
1519 * global.c (compute_regsets): Set frame_pointer_needed here.
1520 * reload1.c (init_elim_table): Don't set frame_pointer_needed here.
1522 2008-06-30 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
1524 * doc/install.texi (specific): Expand Windows build notes.
1526 2008-06-30 Ira Rosen <irar@il.ibm.com>
1528 PR tree-optimization/36648
1529 * tree-vect-transform.c (vect_do_peeling_for_loop_bound): Divide
1530 number of prolog iterations by step. Fix the comment.
1532 2008-06-30 Richard Guenther <rguenther@suse.de>
1535 * tree-ssa-structalias.c (handle_lhs_call): Add flags argument,
1536 handle calls from ECF_MALLOC functions.
1537 (handle_pure_call): ECF_MALLOC functions do not return
1539 (find_func_aliases): Handle all calls, adjust calls to handle_lhs_call.
1541 2008-06-29 Andreas Schwab <schwab@suse.de>
1543 * config/m68k/m68k.c (print_operand): Always print a float
1545 * config/m68k/m68k.h (ASM_OUTPUT_FLOAT_OPERAND)
1546 (ASM_OUTPUT_DOUBLE_OPERAND, ASM_OUTPUT_LONG_DOUBLE_OPERAND):
1549 * config/rs6000/x-linux64: Remove never used file.
1551 2008-06-29 Richard Guenther <rguenther@suse.de>
1553 * tree-ssa-structalias.h (compute_points_to_sets): Adjust
1555 (struct alias_info): Move ...
1556 * tree-ssa-alias.c: ... here.
1557 (update_alias_info): Declare.
1558 (compute_may_aliases): Call it.
1559 (update_alias_info): New function.
1560 * tree-ssa-structalias.c (update_alias_info): Move ...
1561 * tree-ssa-alias.c (update_alias_info_1): ... here.
1562 * tree-ssa-structalias.c (process_constraint_1): Remove
1563 unused from_call argument. Rename to ...
1564 (process_constraint): ... this. Delete old wrapper.
1565 (make_constraint_to): Adjust callers.
1566 (handle_const_call): Likewise.
1567 (handle_pure_call): Likewise.
1568 (init_base_vars): Likewise.
1569 (handle_lhs_call): Likewise. Remove unnecessary constraint.
1570 (find_func_aliases): We don't need structure copies for
1572 (make_constraint_from_anything): Remove.
1573 (create_variable_info_for): For globals make constraints
1574 from escaped, not from anything.
1575 (compute_points_to_sets): Do not call update_alias_info.
1576 (ipa_pta_execute): Use make_constraint_from.
1578 2008-06-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1580 * Makefile.in (CXX_COMPAT_WARN, cxx_compat_warn): Delete.
1581 (bitmap.o-warn, dominance.o-warn): New.
1582 * configure.ac (cxx_compat_warn): Delete.
1583 (loose_warn): Add -Wcast-qual and -Wc++-compat.
1584 * system.h: Remove #pragma diagnostic for -Wcast-qual and
1586 * configure: Regenerate.
1588 * optabs.c (libfunc_decl_hash, libfunc_decl_eq): Fix -Wcast-qual
1591 2008-06-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1593 * alloc-pool.c (create_alloc_pool): Fix -Wc++-compat warnings.
1594 * df-scan.c (df_notes_rescan): Likewise.
1595 * ggc-page.c (set_page_table_entry): Likewise.
1596 * intl.c (gcc_gettext_width): Likewise.
1597 * varasm.c (get_unnamed_section, get_noswitch_section,
1598 get_section): Likewise.
1600 2008-06-28 Andrew Jenner <andrew@codesourcery.com>
1602 * regrename.c (build_def_use): Don't copy RTX.
1604 2008-06-28 Sandra Loosemore <sandra@codesourcery.com>
1606 * doc/extend.texi (Variable Attributes): Use @ref instead of @xref.
1607 (Type Attributes): Fix nesting of @table and @subsection. Adjust
1608 punctuation. Use @ref instead of @xref.
1609 (Function Names): Remove stray @display/@end display.
1610 (C++ Attributes): Use @ref instead of @xref.
1611 (Deprecated Features): Fix punctuation around @xref.
1612 (Backwards Compatibility): Likewise.
1613 * doc/rtl.texi (Incdec): Remove stray @table/@end table.
1615 2008-06-28 Joseph Myers <joseph@codesourcery.com>
1617 * config/rs6000/predicates.md (easy_fp_constant): Reject TFmode
1618 constants for E500 double.
1620 2008-06-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1622 * doc/rtl.texi (const_vector): Document const_fixed as legitimate
1623 element type of const_vector.
1625 2008-06-28 Uros Bizjak <ubizjak@gmail.com>
1627 * config/i386/i386.md (addti3, adddi3, addsi3, addhi3, addqi3):
1628 Remove FLAGS_REG clobber from expander pattern.
1629 (subti3, subdi3, subsi3, subhi3, subqi3): Ditto.
1630 (anddi3, andsi3, andhi3, andqi3): Ditto.
1631 (iordi3, iorsi3, iorhi3, iorqi3): Ditto.
1632 (xordi3, xorsi3, xorhi3, xorqi3): Ditto.
1633 (negti2, negdi2, negsi2, neghi2, negqi2): Ditto.
1634 (ashlsi3, ashlhi3, ashlqi3): Ditto.
1635 (ashrsi3, ashrhi3, ashrqi3): Ditto.
1636 (lshrsi3, lshrhi3, lshrqi3): Ditto.
1637 (rotldi3, rotlsi3, rotlhi3, rotlqi3): Ditto.
1638 (rotrdi3, rotrsi3, rotrhi3, rotrqi3): Ditto.
1640 2008-06-28 Richard Guenther <rguenther@suse.de>
1642 * tree-ssa-structalias.c (callused_id, var_callused,
1643 callused_tree): Add.
1644 (handle_pure_call): New function.
1645 (find_func_aliases): Call it.
1646 (find_what_p_points_to): Handle the call-used set.
1647 (clobber_what_escaped): Likewise.
1648 (compute_call_used_vars): New function.
1649 (init_base_vars): Init the call-used variable.
1650 (do_sd_constraint): Do not propagate the solution from CALLUSED
1651 but use CALLUSED as a placeholder.
1652 (solve_graph): Likewise.
1653 * tree-flow-inline.h (gimple_call_used_vars): New function.
1654 * tree-flow.h (struct gimple_df): Add call_used_vars bitmap.
1655 (compute_call_used_vars): Declare.
1656 * tree-ssa-alias.c (set_initial_properties): Call
1657 compute_call_used_vars.
1658 (reset_alias_info): Clear call-used variables.
1659 (add_call_clobber_ops): Assert we are not called for const/pure
1660 functions. Remove handling of them.
1661 (add_call_read_ops): Handle pure functions by adding the
1662 call-used set of variables as VUSEs.
1663 * tree-ssa.c (init_tree_ssa): Allocate call-used bitmap.
1664 (delete_tree_ssa): Free it.
1665 * tree-dfa.c (remove_referenced_var): Clear the var from the
1668 2008-06-28 Kai Tietz <kai.tietz@onevision.com>
1670 * tree.c (build_varargs_function_type_list): New.
1671 (build_function_type_list_1): New.
1672 (build_function_type_list): Use build_function_type_list_1.
1673 * tree.h (build_varargs_function_type_list): New.
1675 2008-06-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1678 * config/spu/spu.c (spu_builtin_splats): Do not generate
1679 invalid CONST_VECTOR expressions.
1680 (spu_expand_vector_init): Likewise.
1682 2008-06-28 Richard Sandiford <rdsandiford@googlemail.com>
1684 * optabs.c (libfunc_decls): New variable.
1685 (libfunc_decl_hash, libfunc_decl_eq): New functions.
1686 (init_one_libfunc): Reuse decls and SYMBOL_REFs when asked
1687 for the same function twice.
1689 2008-06-27 Uros Bizjak <ubizjak@gmail.com>
1691 * config/i386/i386.md (ashlti3, ashrti3, lshrti3): Expand using
1692 ix86_expand_binary_operator directly.
1693 (*ashlti3_1): Rename from ashlti3_1. Use nonmemory_operand predicate
1695 (*ashrti3_1): Ditto.
1696 (*lshrti3_1): Ditto.
1697 (*ashlti3_2, *ashrti3_2, *lshrti3_2): Remove insn patterns.
1698 (ashlti, ashrti and lshrti splitters): Handle nonmemory operand 2
1699 using only one splitter. Conditionaly execute splitter before or
1700 after peephole2 pass.
1701 (ashlti, ashrti and lshrti peephole2): Define peephole2 patterns.
1702 (x86_shld): Rename from x86_shld_1. Compress operand 2 constraints.
1703 Use only one alternative in asm template.
1704 (x86_64_shld): Compress operand 2 constraints. Use only one alternative
1706 (*ashldi3_cmp_rex64): Use const_1_to_63_operand operand predicate and
1707 "J" operand constraint for operand 2.
1708 (*ashldi3_cconly_rex64): Ditto.
1709 (*ashrdi3_cmp_rex64): Ditto.
1710 (*ashrdi3_cconly_rex64): Ditto.
1711 (*lshrdi3_cmp_rex64): Ditto.
1712 (*lshrdi3_cconly_rex64): Ditto.
1713 * config/i386/predicates.md (const_1_to_63_operand): New predicate.
1714 * config/i386/i386.md (print_operand) ['s']: Print ", " using fputs.
1715 (split_ashr, split_ashl, split_lshr): Use gen_x86_shrd instead of
1718 2008-06-27 Jakub Jelinek <jakub@redhat.com>
1720 * gimplify.c (omp_is_private): Don't return true if decl is not
1721 already private on #pragma omp for or #pragma omp parallel for.
1724 * tree-cfg.c (struct move_stmt_d): Replace block field with
1725 orig_block and new_block fields.
1726 (move_stmt_r): Only set TREE_BLOCK to p->new_block if
1727 if it used to be NULL, p->orig_block or if p->orig_block is NULL.
1728 (move_block_to_fn): Replace vars_map and new_label_map arguments
1729 with struct move_stmt_d pointer.
1730 (replace_block_vars_by_duplicates): New function.
1731 (move_sese_region_to_fn): Add ORIG_BLOCK argument. Adjust
1732 move_block_to_fn caller. If ORIG_BLOCK is non-NULL, move over
1733 all subblocks of ORIG_BLOCK to the new function. Call
1734 replace_block_vars_by_duplicates.
1735 * tree-flow.h (move_sese_region_to_fn): Adjust prototype.
1736 * omp-low.c (expand_omp_taskreg): Set TREE_USED on DECL_INITIAL
1737 BLOCK of the new function. Adjust move_sese_region_to_fn caller.
1738 Prune vars with original DECL_CONTEXT from child_cfun->local_decls.
1739 (expand_omp): Temporarily set input_location to the location of
1740 region's controlling stmt.
1741 (lower_omp_sections, lower_omp_for): Add a BLOCK into outermost
1742 BIND_EXPR, push ctx->block_vars and gimplification vars into
1743 the BIND_EXPR and its block's BLOCK_VARS instead of directly
1745 (lower_omp_single): Set TREE_USED on the BIND_EXPR's BLOCK if
1746 there are any BLOCK_VARS.
1747 (lower_omp_taskreg): Set BLOCK on a BIND_EXPR containing the
1748 OMP_PARALLEL or OMP_TASK stmt.
1749 (lower_omp): Save and restore input_location around the lower_omp_1
1752 2008-06-27 Richard Guenther <rguenther@suse.de>
1754 PR tree-optimization/36400
1755 PR tree-optimization/36373
1756 PR tree-optimization/36344
1757 * tree-ssa-structalias.c (var_escaped, escaped_tree, escaped_id,
1758 var_nonlocal, nonlocal_tree, nonlocal_id): New globals
1759 (update_alias_info): Remove call clobbering code.
1760 (make_constraint_to): New helper function.
1761 (make_escape_constraint): Likewise.
1762 (handle_rhs_call): Use it on all pointer containing arguments.
1763 Also mark the static chain escaped.
1764 (handle_lhs_call): Make constraints from NONLOCAL and ESCAPED
1765 instead of ANYTHING.
1766 (make_constraint_from): New helper split out from ...
1767 (make_constraint_from_anything): ... here.
1768 (find_func_aliases): Add constraints for escape sites.
1769 (intra_create_variable_infos): Make constraints from NONLOCAL
1771 (find_what_p_points_to): Interpret NONLOCAL and ESCAPED the same
1773 (clobber_what_p_points_to): Remove.
1774 (clobber_what_escaped): New function.
1775 (init_base_vars): Init NONLOCAL and ESCAPED.
1776 (do_sd_constraint): Do not propagate the solution from ESCAPED
1777 but use ESCAPED as a placeholder.
1778 (solve_graph): Likewise.
1779 * tree-flow.h (clobber_what_p_points_to): Remove.
1780 (clobber_what_escaped): Declare.
1781 * tree-ssa-alias.c (set_initial_properties): Call it.
1782 Remove code clobbering escaped pointers.
1784 2008-06-27 Richard Sandiford <rdsandiford@googlemail.com>
1786 * function.c (allocate_struct_function): Only allocate a unique
1787 funcdef_no if the decl is nonzero.
1789 2008-06-27 Richard Sandiford <rdsandiford@googlemail.com>
1791 * config/mips/mips-protos.h (mips_split_const_insns): Declare.
1792 * config/mips/mips.c (mips_split_const_insns): New function.
1793 * config/mips/mips.md (move_type): New attribute.
1794 (mode): Move attribute definition earlier in file. Add "TI" and "TF".
1795 (dword_mode): New attribute.
1796 (type): Avoid long line. Map "move_type"s to "type"s,
1797 choosing "multi" for doubleword moves if appropriate.
1798 Swap MTC/MFC comments to match their declaration order.
1799 (extended_mips16): Default to "yes" if "move_type" is "sll0",
1800 "type" is "branch" or "jal" is "direct".
1801 (length): Handle "extended_mips16" first. Make the default
1802 "0" for "ghost" instructions. Set the length from "move_type".
1803 (truncdisi2, truncdihi2, truncdiqi2): Use "move_type" instead
1804 of "type", with "sll0" for the register alternative. Remove the
1805 "extended_mips16" attribute.
1806 (zero_extendsidi2, *clear_upper32): Use "move_type" instead
1807 of "type", with "shift_shift" for the register alternative.
1808 Remove the "length" attribute.
1809 (*extend<SHORT:mode><GPR:mode>2, *extendqihi2): Likewise.
1810 (*zero_extend<SHORT:mode><GPR:mode>2): Use "move_type" instead
1811 of "type", with "andi" for the register alternative.
1812 (*zero_extendqihi2): Likewise.
1813 (*zero_extend<SHORT:mode><GPR:mode>2_mips16e): Use a "move_type"
1814 of "andi" instead of a "type" of "arith".
1815 (*zero_extend<SHORT:mode><GPR:mode>2_mips16): Use "move_type"
1817 (*zero_extendqihi2_mips16, mov_<load>l, mov_<load>r, mov_<store>l)
1818 (mov_<store>r, *mov<mode>_ra): Likewise.
1819 (extendsidi2): Use "move_type" instead of "type", with "move"
1820 for the register alternative.
1821 (*extend<SHORT:mode><GPR:mode>2_mips16e): Use "move_type" instead
1822 of "type", with "signext" for the register alternative.
1823 (*extend<SHORT:mode><GPR:mode>2_se<SHORT:size>): Likewise.
1824 (*extendqihi2_mips16e, *extendqihi2_seb): Likewise.
1825 (fix_truncdfsi2_insn, fix_truncsfsi2_insn, fix_truncdfdi2)
1826 (fix_truncsfdi2, floatsidf2, floatdidf2, floatsisf2, floatdisf2)
1827 (floatdisf2, *branch_equality<mode>_mips16): Likewise.
1828 (unnamed branch insn): Likewise.
1829 (*movdi_gp32_fp64): Fold into...
1830 (*movdi_32bit): ...here.
1831 (*movdf_hardfloat_64bit, *movdf_hardfloat_32bit): Combine into...
1832 (*movdf_hardfloat): ...this new pattern.
1833 (*movdf_softfloat): Remove redundant FPR alternatives.
1834 (*movti, *movti_mips16, *movtf, *movtf_mips16): Add "mode" attributes.
1835 (*movv2sf_hardfloat_64bit, *movv2sf_hardfloat_32bit): Combine into...
1836 (*movv2sf): ...this new pattern. Use "DF" rather than "SF" for
1837 the "move" attribute.
1838 (*movdi_32bit): Use "move_type" instead of "type" and remove the
1839 "length" attribute. Use "fpload" and "fpstore" instead of "load"
1840 and "store" for COP loads and stores.
1841 (*movdi_32bit_mips16, *movdi_64bit, *movsi_internal, movcc)
1842 (*movhi_internal, *movhi_mips16, *movqi_internal, *movqi_mips16)
1843 (*movsf_hardfloat, *movsf_softfloat, *movsi_mips16, *movdf_hardfloat)
1844 (*movdf_softfloat, *movdf_mips16, *movti, *movti_mips16, *movtf)
1845 (*movtf_mips16, *movv2sf): Likewise.
1846 (mfhi<GPR:mode>_<HILO:mode>, mflo<GPR:mode>_<HILO:mode>)
1847 (load_low<mode>, load_high<mode>, store_word<mode>, mthc1<mode>)
1848 (mfhc1<mode>): Use "move_type" instead of "move".
1849 (*low<mode>_mips16): Use "extended_mips16" instead of "length".
1850 (loadgp_blockage): Remove the "length" attribute.
1851 (blockage, set_got_version, update_got_version): Likewise.
1852 (call_internal): Remove the "extended_mips16" attribute.
1853 (call_value_internal, call_value_multiple_internal): Likewise.
1854 * config/mips/loongson.md (mov<mode>_internal): Use "move_type"
1856 * config/mips/mips-dsp.md (mips_lbux, mips_lhx, mips_lwx): Remove
1857 the "length" attribute.
1859 2008-06-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1861 * c-format.c (handle_format_attribute): Fix -Wc++-compat and/or
1862 -Wcast-qual warnings.
1863 * c-pragma.c (dpm_eq, handle_pragma_push_macro,
1864 handle_pragma_pop_macro): Likewise.
1865 * collect2.c (resolve_lib_name): Likewise.
1866 * config/arc/arc.c (arc_init): Likewise.
1867 * config/arm/arm.c (neon_builtin_compare,
1868 locate_neon_builtin_icode): Likewise.
1869 * config/arm/pe.c (arm_mark_dllexport, arm_pe_unique_section): Likewise.
1870 * config/bfin/bfin.c (bfin_init_machine_status,
1871 bfin_optimize_loop): Likewise.
1872 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Likewise.
1873 * config/cris/cris.c (cris_init_expanders): Likewise.
1874 * config/darwin-c.c (frameworks_in_use, add_framework): Likewise.
1875 * config/darwin.c (machopic_indirection_eq,
1876 machopic_indirection_name, machopic_output_indirection): Likewise.
1877 * config/frv/frv.c (frv_init_machine_status, frv_compare_insns,
1878 frv_io_check_address, frv_io_handle_set, frv_io_handle_use_1,
1879 frv_optimize_membar): Likewise.
1880 * config/i386/cygwin.h (mingw_scan,
1881 GCC_DRIVER_HOST_INITIALIZATION): Likewise.
1882 * config/i386/cygwin1.c (mingw_scan): Likewise.
1883 * config/i386/i386.c (machopic_output_stub): Likewise.
1884 * config/i386/winnt.c (gen_stdcall_or_fastcall_suffix,
1885 i386_pe_unique_section): Likewise.
1886 * config/ia64/ia64.c (ia64_init_machine_status,
1887 ia64_h_i_d_extended, get_free_bundle_state, bundling, ia64_reorg):
1889 * config/iq2000/iq2000.c, iq2000_init_machine_status): Likewise.
1890 * config/m68hc11/m68hc11.c (m68hc11_encode_label): Likewise.
1891 * config/m68k/m68k.c (m68k_handle_option,
1892 m68k_sched_md_init_global): Likewise.
1893 * config/mcore/mcore.c (mcore_mark_dllexport, mcore_mark_dllimport,
1894 mcore_unique_section): Likewise.
1895 * config/mips/mips.c (mips_block_move_straight,
1896 mips16_rewrite_pool_refs, mips_sim_wait_regs_2, mips_sim_record_set):
1898 * config/mmix/mmix.c (mmix_init_machine_status,
1899 mmix_encode_section_info): Likewise.
1900 * config/pa/pa.c (pa_init_machine_status, hppa_encode_label): Likewise.
1901 * config/rs6000/rs6000.c (rs6000_init_machine_status,
1902 print_operand_address, output_toc, redefine_groups,
1903 rs6000_elf_encode_section_info, machopic_output_stub): Likewise.
1904 * config/s390/s390.c (s390_init_machine_status): Likewise.
1905 * config/score/score.c (score_block_move_straight,
1906 score_block_move_loop_body): Likewise.
1907 * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
1908 * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
1909 * emit-rtl.c (find_auto_inc): Likewise.
1910 * gcc.c (translate_options, process_command): Likewise.
1911 * reorg.c (dbr_schedule): Likewise.
1912 * sdbout.c (sdbout_start_source_file, sdbout_init): Likewise.
1913 * xcoffout.c (xcoffout_declare_function): Likewise.
1915 2008-06-27 Daniel Berlin <dberlin@dberlin.org>
1917 * tree-ssa-structalias.c (find_func_aliases): Trivial fix to get
1918 ipa-pta working again.
1920 2008-06-27 David Edelsohn <edelsohn@gnu.org>
1922 * config/rs6000/t-aix52: Append large data option to LDFLAGS for
1925 2008-06-27 Edmar Wienskoski <edmar@freescale.com>
1927 * config.gcc (powerpc*-*-*): Add new core e500mc.
1928 * config/rs6000/e500mc.md: New file.
1929 * config/rs6000/rs6000.c (processor_costs): Add new costs for
1931 (rs6000_override_options): Add e500mc case to
1932 processor_target_table. Altivec and Spe options not allowed
1933 with e500mc. Add isel instruction to e500mc by
1934 default. Initialize rs6000_cost for e500mc.
1935 (rs6000_issue_rate): Set issue rate for e500mc.
1936 * config/rs6000/rs6000.h (processor_type): Add
1937 PROCESSOR_PPCE500MC.
1938 (ASM_CPU_SPEC): Add e500mc.
1939 Set TARGET_ISEL to rs6000_isel.
1940 * config/rs6000/e500.h: Remove redefinition of TARGET_ISEL.
1941 (CHECK_E500_OPTIONS): Remove TARGET_ISEL.
1942 * config/rs6000/rs6000.md (define_attr "cpu"): Add ppce500mc.
1944 * doc/invoke.texi: Add e500mc to list of cpus.
1946 2008-06-27 Laurynas Biveinis <laurynas.biveinis@gmail.com>
1949 * c-lex.c (lex_charconst): Initialize unsignedp.
1951 2008-06-27 Olivier Hainque <hainque@adacore.com>
1953 * gimplify.c (gimplify_modify_expr_to_memset): Assert our
1954 documented assumptions.
1956 2008-06-26 H.J. Lu <hongjiu.lu@intel.com>
1958 * dwarf2out.c: Remove trailing white spaces. Break long line
1961 2008-06-26 Richard Sandiford <rdsandiford@googlemail.com>
1963 * libfuncs.h (LTI_synchronize): New libfunc_index.
1964 (synchronize_libfunc): Declare.
1965 * builtins.c (expand_builtin_synchronize): Consider using
1966 synchronize_libfunc before falling back on an asm blockage.
1967 * config/mips/mips.c: Include libfuncs.h
1968 (mips_init_libfuncs): Initialize synchronize_libfunc for TARGET_MIPS16.
1970 2008-06-26 Nathan Froyd <froydnj@codesourcery.com>
1972 * config/rs6000/rs6000.c (emit_allocate_stack): Add copy_r11
1973 parameter. Copy stack_reg to r11 where appropriate.
1974 (no_global_regs_above): Add gpr parameter.
1975 (rs6000_stack_info): Only add padding for SPE save area if we
1976 are saving SPE GPRs and CR.
1977 (saveres_routine_syms): New variable.
1978 (FIRST_SAVRES_REGISTER, LAST_SAVRES_REGISTER, N_SAVRES_REGISTERS):
1980 (rs6000_savres_routine_sym): New function.
1981 (rs6000_emit_stack_reset, rs6000_restore_saved_cr): New functions,
1983 (rs6000_emit_epilogue): ...here. Use rs6000_use_multiple_p and
1984 rs6000_savres_strategy. Restore GPRs out-of-line if appropriate.
1985 Tweak FPR out-of-line saving.
1986 (rs6000_make_savres_rtx): New function.
1987 (rs6000_use_multiple_p): New function.
1988 (rs6000_savres_strategy): New function.
1989 (rs6000_emit_prologue): Use rs6000_savres_strategy. Save GPRs
1990 out-of-line if appropriate.
1991 * config/rs6000/sysv4.h (FP_SAVE_INLINE): Save FPRs out-of-line
1992 if we are optimizing for size.
1993 (GP_SAVE_INLINE): Define.
1994 (SAVE_FP_SUFFIX, RESTORE_FP_SUFFIX): Only use _l on 64-bit targets.
1995 * config/rs6000/darwin.h (GP_SAVE_INLINE): Define.
1996 * config/rs6000/aix.h (GP_SAVE_INLINE): Define.
1997 * config/rs6000/rs6000.md (*save_gpregs_<mode>): New insn.
1998 (*save_fpregs_<mode>): Add use of r11.
1999 (*restore_gpregs_<mode>): New insn.
2000 (*return_and_restore_gpregs_<mode>): New insn.
2001 (*return_and_restore_fpregs_<mode>): Adjust to clobber LR and
2003 * config/rs6000/spe.md (*save_gpregs_spe): New insn.
2004 (*restore_gpregs_spe): New insn.
2005 (*return_and_restore_gpregs_spe): New insn.
2006 * config/rs6000/predicates.md (save_world_operation): Fix check.
2008 2008-06-26 Steven Bosscher <steven@gcc.gnu.org>
2010 * tree-into-ssa (insert_phi_nodes_for): 'var' must be a DECL at
2011 this point, so assert that.
2013 2008-06-26 Steven Bosscher <steven@gcc.gnu.org>
2015 * cfganal.c: Include vec.h and vecprim.h.
2016 (compute_idf): Import from...
2017 * tree-into-ssa (compute_idf): ...here.
2018 * basic-block.h (compute_idf): Export.
2020 2008-06-26 Joseph Myers <joseph@codesourcery.com>
2022 * c-decl.c (merge_decls): Use !current_function_decl to check for
2023 extern declaration of C99 inline function being at file scope.
2025 2008-06-25 John David Anglin <dave.anglin@gcc-cnrc.gc.ca>
2027 * config.gcc (hppa[12]*-*-hpux10*): Don't use fixproto.
2029 2008-06-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2031 * alias.c (record_alias_subset, init_alias_analysis): Fix
2032 -Wc++-compat and/or -Wcast-qual warnings.
2033 * attribs.c (lookup_attribute_spec): Likewise.
2034 * bb-reorder.c (find_traces, rotate_loop, find_traces_1_round,
2035 copy_bb, connect_traces,
2036 find_rarely_executed_basic_blocks_and_cr): Likewise.
2037 * bt-load.c (find_btr_def_group, add_btr_def, new_btr_user,
2038 note_btr_set, migrate_btr_defs): Likewise.
2039 * builtins.c (result_vector, expand_builtin_memcpy,
2040 expand_builtin_mempcpy_args, expand_builtin_strncpy,
2041 builtin_memset_read_str, expand_builtin_printf,
2042 fold_builtin_memchr, rewrite_call_expr, fold_builtin_printf):
2044 * caller-save.c (mark_set_regs): Likewise.
2045 * calls.c (expand_call, emit_library_call_value_1): Likewise.
2046 * cgraph.c (cgraph_edge): Likewise.
2047 * combine.c (likely_spilled_retval_1): Likewise.
2048 * coverage.c (htab_counts_entry_hash, htab_counts_entry_eq,
2049 htab_counts_entry_del, get_coverage_counts): Likewise.
2050 * cselib.c (new_elt_list, new_elt_loc_list, entry_and_rtx_equal_p,
2051 new_cselib_val): Likewise.
2052 * dbgcnt.c (dbg_cnt_process_opt): Likewise.
2053 * dbxout.c (dbxout_init, dbxout_type, output_used_types_helper):
2055 * df-core.c (df_compact_blocks): Likewise.
2056 * df-problems.c (df_grow_bb_info, df_chain_create): Likewise.
2057 * df-scan.c (df_grow_reg_info, df_ref_create,
2058 df_insn_create_insn_record, df_insn_rescan, df_notes_rescan,
2059 df_ref_compare, df_ref_create_structure, df_bb_refs_record,
2060 df_record_entry_block_defs, df_record_exit_block_uses,
2061 df_bb_verify): Likewise.
2062 * df.h (DF_REF_EXTRACT_WIDTH_CONST, DF_REF_EXTRACT_OFFSET_CONST,
2063 DF_REF_EXTRACT_MODE_CONST): New.
2064 * dominance.c (get_immediate_dominator, get_dominated_by,
2065 nearest_common_dominator, root_of_dom_tree,
2066 iterate_fix_dominators, first_dom_son, next_dom_son): Fix
2067 -Wc++-compat and/or -Wcast-qual warnings.
2068 * dse.c (clear_alias_set_lookup, get_group_info, gen_rtx_MEM,
2069 record_store, replace_read, check_mem_read_rtx, scan_insn,
2070 dse_step1, dse_record_singleton_alias_set): Likewise.
2071 * dwarf2asm.c (dw2_force_const_mem): Likewise.
2073 2008-06-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2075 * dwarf2out.c (new_cfi, queue_reg_save, dwarf2out_begin_prologue,
2076 dwarf2out_frame_init, new_loc_descr, new_die, lookup_decl_die,
2077 lookup_decl_loc, add_var_loc_to_decl, compute_section_prefix,
2078 assign_symbol_names, htab_cu_hash, htab_cu_eq, htab_cu_del,
2079 build_abbrev_table, new_loc_list, output_comp_unit, add_arange,
2080 add_ranges_num, add_ranges_by_labels, file_info_cmp,
2081 file_name_acquire, output_file_names, add_const_value_attribute,
2082 premark_used_types_helper, file_table_eq, file_table_hash,
2083 lookup_filename, dwarf2out_var_location, dwarf2out_source_line,
2084 dwarf2out_init, file_table_relative_p): Fix -Wc++-compat and/or
2085 -Wcast-qual warnings.
2086 * ebitmap.c (ebitmap_array_grow, ebitmap_array_init,
2087 ebitmap_alloc, ebitmap_ior, ebitmap_and_compl): Likewise.
2088 * emit-rtl.c (get_mem_attrs, get_reg_attrs, gen_rtvec,
2089 gen_reg_rtx, start_sequence, init_emit): Likewise.
2090 * et-forest.c (et_new_occ, et_new_tree): Likewise.
2091 * except.c (init_eh_for_function, gen_eh_region,
2092 remove_unreachable_regions, add_ehl_entry, duplicate_eh_regions_1,
2093 arh_to_landing_pad, arh_to_label, add_action_record,
2094 add_call_site, switch_to_exception_section): Likewise.
2095 * expmed.c (synth_mult): Likewise.
2096 * expr.c (gen_group_rtx, emit_group_load, emit_group_store,
2097 store_expr): Likewise.
2098 * final.c (shorten_branches, final_scan_insn, debug_queue_symbol):
2100 * function.c (assign_stack_temp_for_type,
2101 allocate_struct_function, match_asm_constraints_1): Likewise.
2102 * gcov-io.c (gcov_allocate): Likewise.
2103 * gcse.c (GNEW, GCNEW, GNEWVEC, GCNEWVEC, GRESIZEVEC, GNEWVAR,
2104 GCNEWVAR, GRESIZEVAR, GOBNEW, GOBNEWVAR): New.
2105 (gcse_main, alloc_gcse_mem, alloc_gcse_mem, alloc_reg_set_mem,
2106 record_one_set, insert_expr_in_table, insert_set_in_table,
2107 dump_hash_table, compute_hash_table_work, alloc_hash_table,
2108 pre_ldst_expr_hash, pre_ldst_expr_eq, find_rtx_in_ldst,
2109 reg_set_info, reg_clear_last_set): Fix -Wc++-compat and/or
2110 -Wcast-qual warnings.
2112 2008-06-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2114 * cse.c (approx_reg_cost_1, cse_insn): Fix -Wc++-compat and/or
2115 -Wcast-qual warnings.
2116 * gcc.c (process_command): Likewise.
2117 * genattrtab.c (oballoc): Use XOBNEW.
2118 (oballocvec): Define.
2119 (attr_hash_add_rtx, attr_hash_add_string, attr_string,
2120 get_attr_value, fill_attr, make_length_attrs, gen_attr, gen_insn,
2121 gen_delay, find_attr, gen_insn_reserv, gen_bypass_1): Fix
2122 -Wc++-compat and/or -Wcast-qual warnings.
2123 * genautomata.c (XCREATENODE, XCREATENODEVEC, XCREATENODEVAR,
2124 XCOPYNODE, XCOPYNODEVEC, XCOPYNODEVAR): New.
2125 (gen_cpu_unit, gen_query_cpu_unit, gen_bypass, gen_excl_set,
2126 gen_presence_absence_set, gen_automaton, gen_regexp_el,
2127 gen_regexp_repeat, gen_regexp_allof, gen_regexp_oneof,
2128 gen_regexp_sequence, gen_reserv, gen_insn_reserv, process_excls,
2129 add_excls, process_presence_absence_names,
2130 process_presence_absence_patterns, add_presence_absence,
2131 process_regexp, add_advance_cycle_insn_decl, get_free_alt_state,
2132 get_free_state, add_arc, get_free_automata_list_el,
2133 form_reserv_sets_list, copy_insn_regexp, transform_1, transform_2,
2134 transform_3, cache_presence, create_ainsns, create_automata,
2135 create_state_ainsn_table, dfa_insn_code_enlarge,
2136 output_trans_func, output_min_issue_delay_func,
2137 output_dead_lock_func, output_reset_func,
2138 output_get_cpu_unit_code_func, output_dfa_start_func,
2139 expand_automata): Likewise.
2140 * genextract.c (gen_insn): Likewise.
2141 * gengtype-lex.l: Likewise.
2142 * gengtype.c (read_input_list, adjust_field_type,
2143 process_gc_options): Likewise.
2144 * genoutput.c (note_constraint): Likewise.
2145 * genpreds.c (mangle, add_constraint): Likewise.
2146 * genrecog.c (process_define_predicate, new_decision,
2147 add_to_sequence): Likewise.
2148 * gensupport.c (record_insn_name): Likewise.
2150 2008-06-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2152 * config/i386/driver-i386.c (detect_caches_amd,
2153 detect_caches_intel, host_detect_local_cpu): Fix -Wc++-compat
2154 and/or -Wcast-qual warnings.
2155 *ggc-common.c (ggc_mark_roots, gt_pch_note_object,
2156 gt_pch_note_reorder, relocate_ptrs, write_pch_globals,
2157 gt_pch_save): Likewise.
2158 * ggc-page.c (push_depth, push_by_depth, alloc_anon, alloc_page,
2159 gt_ggc_m_S, clear_marks, ggc_pch_read): Likewise.
2160 * global.c (compute_regsets): Likewise.
2161 * graph.c (print_rtl_graph_with_bb, clean_graph_dump_file,
2162 finish_graph_dump_file): Likewise.
2163 * haifa-sched.c (schedule_block, extend_h_i_d, extend_ready,
2164 unlink_bb_notes): Likewise.
2165 * integrate.c (get_hard_reg_initial_val): Likewise.
2166 * ipa-prop.c (ipa_push_func_to_list): Likewise.
2167 * ipa-struct-reorg.c (gen_var_name, gen_cluster_name): Likewise.
2168 * local-alloc.c (update_equiv_regs): Likewise.
2169 * loop-invariant.c (check_invariant_table_size,
2170 hash_invariant_expr, eq_invariant_expr, find_or_insert_inv):
2172 * loop-iv.c (check_iv_ref_table_size, analyzed_for_bivness_p,
2173 altered_reg_used, mark_altered): Likewise.
2174 * loop-unroll.c (si_info_eq, ve_info_eq, allocate_basic_variable,
2175 insert_var_expansion_initialization,
2176 combine_var_copies_in_loop_exit, apply_opt_in_copies,
2177 release_var_copies): Likewise.
2178 * matrix-reorg.c (mat_acc_phi_hash, mat_acc_phi_eq, mtt_info_eq,
2179 analyze_matrix_decl, add_allocation_site, analyze_transpose,
2180 analyze_accesses_for_phi_node, check_var_notmodified_p,
2181 check_allocation_function, find_sites_in_func,
2182 record_all_accesses_in_func, transform_access_sites,
2183 transform_allocation_sites): Likewise.
2184 * omp-low.c (new_omp_region, create_omp_child_function_name,
2185 check_omp_nesting_restrictions, check_combined_parallel,
2186 lower_omp_2, diagnose_sb_1, diagnose_sb_2): Likewise.
2187 * optabs.c (no_conflict_move_test, gen_libfunc, gen_fp_libfunc,
2188 gen_intv_fp_libfunc, gen_interclass_conv_libfunc,
2189 gen_intraclass_conv_libfunc, set_optab_libfunc, set_conv_libfunc):
2191 * opts-common.c (prune_options): Likewise.
2192 * opts.c (add_input_filename, print_filtered_help,
2193 get_option_state): Likewise.
2194 * params.c (add_params): Likewise.
2195 * passes.c (set_pass_for_id, next_pass_1,
2196 do_per_function_toporder, pass_fini_dump_file): Likewise.
2197 * postreload.c (reload_cse_simplify_operands): Likewise.
2198 * predict.c (tree_predicted_by_p, tree_predict_edge,
2199 clear_bb_predictions, combine_predictions_for_bb): Likewise.
2201 2008-06-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2203 * ra.h (add_neighbor): Fix -Wc++-compat and/or -Wcast-qual
2205 * recog.c (check_asm_operands, validate_change_1): Likewise.
2206 * reg-stack.c (check_asm_stack_operands, subst_asm_stack_regs,
2207 subst_asm_stack_regs): Likewise.
2208 * regclass.c (regclass, som_hash, som_eq, record_subregs_of_mode,
2209 cannot_change_mode_set_regs, invalid_mode_change_p): Likewise.
2210 * regmove.c (reg_is_remote_constant_p): Likewise.
2211 * regrename.c (regrename_optimize, scan_rtx_reg,
2212 kill_clobbered_value, kill_set_value, kill_autoinc_value):
2214 * regstat.c (regstat_init_n_sets_and_refs, regstat_compute_ri,
2215 regstat_compute_calls_crossed): Likewise.
2216 * reload1.c (init_reload, new_insn_chain,
2217 has_nonexceptional_receiver, reload, copy_reloads,
2218 calculate_needs_all_insns, init_elim_table): Likewise.
2219 * rtl-factoring.c (compute_rtx_cost, fill_hash_bucket): Likewise.
2220 * rtl.c (shallow_copy_rtx_stat): Likewise.
2221 * rtlanal.c (parms_set): Likewise.
2222 * sbitmap.c (sbitmap_alloc, sbitmap_alloc_with_popcount,
2223 sbitmap_resize, sbitmap_vector_alloc): Likewise.
2224 * sched-ebb.c (earliest_block_with_similiar_load,
2225 add_deps_for_risky_insns): Likewise.
2226 * sched-rgn.c (find_rgns, gather_region_statistics, extend_rgns,
2227 schedule_region): Likewise.
2228 * see.c (eq_descriptor_pre_extension,
2229 hash_descriptor_pre_extension, hash_del_pre_extension,
2230 eq_descriptor_properties, hash_descriptor_properties,
2231 hash_del_properties, see_seek_pre_extension_expr,
2232 see_initialize_data_structures, see_print_register_properties,
2233 see_print_pre_extension_expr, see_delete_merged_def_extension,
2234 see_delete_unmerged_def_extension, see_emit_use_extension,
2235 see_pre_delete_extension, see_map_extension, see_commit_changes,
2236 see_analyze_merged_def_local_prop,
2237 see_analyze_merged_def_local_prop,
2238 see_analyze_unmerged_def_local_prop, see_analyze_use_local_prop,
2239 see_set_prop_merged_def, see_set_prop_unmerged_def,
2240 see_set_prop_unmerged_use, see_print_one_extension,
2241 see_merge_one_use_extension, see_merge_one_def_extension,
2242 see_store_reference_and_extension, see_update_uses_relevancy,
2243 see_update_defs_relevancy): Likewise.
2244 * statistics.c (hash_statistics_hash, hash_statistics_eq,
2245 hash_statistics_free, curr_statistics_hash): Likewise.
2246 * stmt.c (parse_output_constraint, decl_overlaps_hard_reg_set_p,
2247 expand_asm_operands, expand_return, case_bit_test_cmp,
2248 expand_case): Likewise.
2249 * stor-layout.c (start_record_layout): Likewise.
2250 * stringpool.c (ggc_alloc_string, gt_pch_n_S,
2251 gt_pch_save_stringpool): Likewise.
2252 * tree-data-ref.c (hash_stmt_vertex_info,
2253 have_similar_memory_accesses_1, ref_base_address_1): Likewise.
2254 * tree-ssa-phiopt.c (name_to_bb_hash): Likewise.
2256 2008-06-25 Uros Bizjak <ubizjak@gmail.com>
2259 * config/i386/i386.md : Change constraints of HImode and QImode
2260 immediate operands from "i" to "n". Change SImode "ni" constraint to
2261 "i" and SImode "rmi" constraint to "g". Remove all constraints
2262 from const0_operand and const1_operand predicated operands.
2263 (i): Change QImode and HImode attribute from "i" to "n".
2264 (*subqi_2): Change HImode operands to QImode.
2267 2008-06-25 Olivier Hainque <hainque@adacore.com>
2269 * Makefile.in (GTFILES_H): Use | instead of ; as separator in
2272 2008-06-25 Richard Guenther <rguenther@suse.de>
2274 * tree-ssa-structalias.c (fieldoff_compare): Make sure to
2275 not overflow the result type.
2277 2008-06-25 Richard Guenther <rguenther@suse.de>
2279 * tree-vn.c (vn_add): Handle TRUTH_*_EXPR.
2280 (vn_lookup): Likewise.
2282 2008-06-25 Richard Guenther <rguenther@suse.de>
2284 PR tree-optimization/35518
2285 * fold-const.c (fold_ternary): Strip trivial BIT_FIELD_REFs.
2286 * tree-sra.c (instantiate_element): Use fold_build3 to build
2288 (try_instantiate_multiple_fields): Likewise.
2290 2008-06-24 Andrew Pinski <andrew_pinski@playstation.sony.com>
2292 * config/rs6000/rs6000.md: Change all string instruction's clobber to
2295 2008-06-24 Andrew Pinski <andrew_pinski@playstation.sony.com>
2297 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Set
2298 use_backchain_to_restore_sp to true
2299 if the offset of the link register save area would go over the 32k - 1
2300 offset limit of the load
2303 2008-06-25 Hans-Peter Nilsson <hp@axis.com>
2305 * doc/invoke.texi (Optimize Options) <fstrict-aliasing>: Add
2306 anchor for the type-punning blurb. Cross-reference "Structures
2307 unions enumerations and bit-fields implementation". Provide a
2308 cast-through-pointer example. Make final sentence self-contained.
2309 * doc/implement-c.texi (Structures unions enumerations and
2310 bit-fields implementation): Cross-reference the type-punning blurb
2311 in the -fstrict-aliasing documentation.
2313 2008-06-24 Andrew Pinski <andrew_pinski@playstation.sony.com>
2316 * builtins.c (expand_builtin_nonlocal_goto): Stabilize the address of
2317 the memory instead of the memory itself for the save area.
2319 2008-06-24 Olivier Hainque <hainque@adacore.com>
2320 Nicolas Roche <roche@adacore.com>
2322 * gengtype.c (srcdir_len): size_t instead of int.
2323 (get_file_realbasename): New function. For F a filename, the real
2324 basename of F, with all the path components stripped.
2325 (get_file_srcdir_relative_path): New function. For F a filename, the
2326 relative path to F from $(srcdir).
2327 (get_file_basename): Rewrite using get_file_srcdir_relative_path and
2328 get_file_realbasename. Adjust the head comment.
2329 (get_prefix_langdir_index): New function. For F a filename, return the
2330 lang_dir_names[] relative index of the language directory that is
2332 (get_file_langdir): For F a filename, return the name of the language
2333 directory where F is located.
2334 (get_file_gtfilename): New function. The gt- output file name for an
2336 (get_output_file_with_visibility): Replace in-line computations with
2337 uses of get_file_gtfilename and get_prefix_langdir_index.
2338 * Makefile.in (GTFILES_H): Adjust to match what gengtype generates.
2340 2008-06-24 Jakub Jelinek <jakub@redhat.com>
2342 PR tree-optimization/36504
2343 * tree-ssa-loop-prefetch.c (gather_memory_references_ref): Skip
2344 references without base address.
2346 2008-06-23 Uros Bizjak <ubizjak@gmail.com>
2349 * calls.c (expand_call): Increase alignment for recursive functions.
2351 2008-06-23 Anatoly Sokolov <aesok@post.ru>
2353 * config/avr/avr.c (avr_function_value): Add new 'outgoing' argument.
2354 (TARGET_FUNCTION_VALUE): New define.
2355 * config/avr/avr-protos.h (avr_function_value): Remove declaration.
2356 * config/avr/avr.h (FUNCTION_VALUE): Remove.
2358 2008-06-23 Uros Bizjak <ubizjak@gmail.com>
2360 * config/i386/i386.md (fmodxf3): Change sequence of move instructions.
2361 (fmod<mode>3): Ditto.
2362 (remainderxf3): Ditto.
2363 (remainder<mode>3): Ditto.
2365 2008-06-23 Jakub Jelinek <jakub@redhat.com>
2368 * emit-rtl.c (set_reg_attrs_from_value): Do nothing if
2369 REG is a hard register.
2371 PR tree-optimization/36508
2372 * tree-ssa-pre.c (compute_antic): Allow num_iterations up to
2373 499, don't check it at all in release compilers.
2375 2008-06-23 Uros Bizjak <ubizjak@gmail.com>
2377 * config/i386/i386.md (*fop_<mode>_1_i387): Use SSE_FLOAT_MODE_P
2378 together with SSE_TARGET_MATH to disable insn pattern.
2379 (*fop_<MODEF:mode>_2_i387): Ditto.
2380 (*fop_<MODEF:mode>_3_i387): Ditto.
2382 2008-06-22 Andy Hutchinson <hutchinsonandy@aim.com>
2384 * config/avr/avr.h (SUPPORTS_INIT_PRIORITY): Define.
2386 2008-06-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
2389 * gimplify.c (gimplify_asm_expr): Check the return code of
2390 parse_output_constraint call, set function return and is_inout
2393 2008-06-22 Ian Lance Taylor <iant@google.com>
2395 * c-lex.c (narrowest_unsigned_type): Change itk to int.
2396 (narrowest_signed_type): Likewise.
2397 * c-typeck.c (c_common_type): Change local variable mclass to enum
2399 (parser_build_binary_op): Compare the TREE_CODE_CLASS with
2400 tcc_comparison, not the tree code itself.
2401 * c-common.c (def_fn_type): Pass int, not an enum, to va_arg.
2402 (c_expand_expr): Cast modifier to enum expand_modifier.
2403 * c-common.h (C_RID_CODE): Add casts.
2404 (C_SET_RID_CODE): Define.
2405 * c-parser.c (c_parse_init): Use C_SET_RID_CODE.
2406 (c_lex_one_token): Add cast to avoid warning.
2407 (c_parser_objc_type_name): Rename local typename to type_name.
2408 (check_no_duplicate_clause): Change code parameter to enum
2410 (c_parser_omp_var_list_parens): Change kind parameter to enum
2412 (c_parser_omp_flush): Pass OMP_CLAUSE_ERROR, not 0, to
2413 c_parser_omp_list_var_parens.
2414 (c_parser_omp_threadprivate): Likewise.
2415 * cp/lex.c (init_reswords): Use C_SET_RID_CODE.
2416 * cp/parser.c (cp_lexer_get_preprocessor_token): Likewise.
2417 * c-format.c (NO_FMT): Define.
2418 (printf_length_specs): Use NO_FMT.
2419 (asm_fprintf_length_specs): Likewise.
2420 (gcc_diag_length_specs): Likewise.
2421 (scanf_length_specs): Likewise.
2422 (strfmon_length_specs): Likewise.
2423 (gcc_gfc_length_specs): Likewise.
2424 (printf_flag_specs): Change 0 to STD_C89.
2425 (asm_fprintf_flag_specs): Likewise.
2426 (gcc_diag_flag_specs): Likewise.
2427 (gcc_cxxdiag_flag_specs): Likewise.
2428 (scanf_flag_specs): Likewise.
2429 (strftime_flag_specs): Likewise.
2430 (strfmon_flag_specs): Likewise.
2431 (print_char_table): Likewise.
2432 (asm_fprintf_char_table): Likewise.
2433 (gcc_diag_char_table): Likewise.
2434 (gcc_tdiag_char_table): Likewise.
2435 (gcc_cdiag_char_table): Likewise.
2436 (gcc_cxxdiag_char_table): Likewise.
2437 (gcc_gfc_char_table): Likewise.
2438 (scan_char_table): Likewise.
2439 (time_char_table): Likewis.
2440 (monetary_char_table): Likewise.
2441 * c-format.h (BADLEN): Likewise.
2443 2008-06-21 Ian Lance Taylor <iant@google.com>
2445 * tree.h (enum tree_code): Include all-tree.def, not tree.def.
2446 Define END_OF_BASE_TREE_CODES around inclusion.
2447 * tree.c (tree_code_type): New global array.
2448 (tree_code_length, tree_code_name): Likewise.
2449 * Makefile.in (TREE_H): Add all-tree.def, c-common.def, and
2451 (all-tree.def, s-alltree): New targets.
2452 (gencheck.h, s-gencheck): Remove.
2453 (tree.o): Depend upon all-tree.def.
2454 (build/gencheck.o): Remove gencheck.h dependency.
2455 (mostlyclean): Don't remove gencheck.h.
2456 * c-common.h (enum c_tree_code): Remove.
2457 * c-lang.c (tree_code_type): Remove.
2458 (tree_code_length, tree_code_name): Remove.
2459 * gencheck.c (tree_codes): Include all-tree.def, rather than
2460 tree.def, c-common.def, and gencheck.h. Undefined DEFTREECODE
2462 * tree-browser.c (tb_tree_codes): Include all-tree.def, rather
2464 * cp/cp-tree.h (enum cplus_tree_code): Remove.
2465 (operator_name_info): Size to MAX_TREE_CODES.
2466 (assignment_operator_name_info): Likewise.
2467 * cp/cp-lang.c (tree_code_type): Remove.
2468 (tree_code_length, tree_code_name): Remove.
2469 * cp/lex.c (operator_name_info): Size to MAX_TREE_CODES.
2470 (assignment_operator_name_info): Likewise.
2471 * cp/decl.c (grok_op_properties): Change LAST_CPLUS_TREE_CODE to
2473 * cp/mangle.c (write_expression): Likewise.
2474 * cp/Make-lang.in (CXX_TREE_H): Remove cp/cp-tree.def.
2475 * fortran/f95-lang.c (tree_code_type): Remove.
2476 (tree_code_length, tree_code_name): Remove.
2477 * java/java-tree.h (enum java_tree_code): Remove.
2478 * java/lang.c (tree_code_type): Remove.
2479 (tree_code_length, tree_code_name): Remove.
2480 * java/Make-lang.in (JAVA_TREE_H): Remove java/java-tree.def.
2481 * objc/objc-act.h (enum objc_tree_code): Remove.
2482 * objc/objc-lang.c (tree_code_type): Remove.
2483 (tree_code_length, tree_code_name): Remove.
2484 * objcp/objcp-lang.c (tree_code_type): Remove.
2485 (tree_code_length, tree_code_name): Remove.
2486 * ada/ada-tree.h (enum gnat_tree_code): Remove.
2487 * ada/Make-lang.in (ADA_TREE_H): Remove ada/ada-tre.def.
2488 * ada/misc.c (tree_code_type): Remove.
2489 (tree_code_length, tree_code_name): Remove.
2491 2008-06-21 Bernhard Fischer <aldot@gcc.gnu.org>
2493 * tree-ssa-pre.c (fini_antic): Bitmap_sets have to be freed before
2494 the grand_bitmap_obstack.
2496 2008-06-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2498 * ggc.h (GGC_RESIZEVAR): New, reorder macros.
2499 * tracer.c (tail_duplicate): Fix for -Wc++-compat.
2500 * tree-affine.c (aff_combination_expand, free_name_expansion): Likewise.
2501 * tree-cfg.c (replace_by_duplicate_decl, replace_ssa_name,
2502 move_stmt_r, new_label_mapper): Likewise.
2503 * tree-complex.c (cvc_lookup): Likewise.
2504 * tree-dfa.c (create_function_ann): Likewise.
2505 * tree-dump.c (dump_register): Likewise.
2506 * tree-if-conv.c (tree_if_conversion, add_to_predicate_list,
2507 find_phi_replacement_condition): Likewise.
2508 * tree-inline.c (copy_phis_for_bb, estimate_num_insns_1,
2509 tree_function_versioning): Likewise.
2510 * tree-into-ssa.c (cmp_dfsnum): Likewise.
2511 * tree-iterator.c (tsi_link_before, tsi_link_after): Likewise.
2512 * tree-nested.c (lookup_field_for_decl, lookup_tramp_for_decl,
2513 get_nonlocal_debug_decl, convert_nonlocal_reference,
2514 convert_nonlocal_omp_clauses, get_local_debug_decl,
2515 convert_local_reference, convert_local_omp_clauses,
2516 convert_nl_goto_reference, convert_nl_goto_receiver,
2517 convert_tramp_reference, convert_call_expr): Likewise.
2518 * tree-outof-ssa.c (contains_tree_r): Likewise.
2519 * tree-parloops.c (reduction_phi, initialize_reductions,
2520 eliminate_local_variables_1, add_field_for_reduction,
2521 add_field_for_name, create_phi_for_local_result,
2522 create_call_for_reduction_1, create_loads_for_reductions,
2523 create_stores_for_reduction, create_loads_and_stores_for_name):
2525 * tree-phinodes.c (allocate_phi_node): Likewise.
2526 * tree-predcom.c (order_drefs, execute_pred_commoning_cbck): Likewise.
2527 * tree-sra.c (sra_elt_hash, sra_elt_eq, lookup_element): Likewise.
2528 * tree-ssa-alias.c (get_mem_sym_stats_for): Likewise.
2529 * tree-ssa-coalesce.c (compare_pairs): Likewise.
2530 * tree-ssa-loop-im.c (mem_ref_in_stmt, memref_hash, memref_eq,
2531 memref_free, gather_mem_refs_stmt, vtoe_hash, vtoe_eq, vtoe_free,
2532 record_vop_access, get_vop_accesses, get_vop_stores): Likewise.
2533 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Likewise.
2534 * tree-ssa-sccvn.c (VN_INFO_GET, free_phi, free_reference,
2535 vn_nary_op_insert): Likewise.
2536 * tree-ssa.c (redirect_edge_var_map_add,
2537 redirect_edge_var_map_clear, redirect_edge_var_map_dup): Likewise.
2538 * tree-vectorizer.c (vectorize_loops): Likewise.
2539 * tree.c (make_node_stat, copy_node_stat, build_int_cst_wide,
2540 build_fixed, build_real, make_tree_binfo_stat, make_tree_vec_stat,
2541 tree_cons_stat, build1_stat, build_variant_type_copy,
2542 decl_init_priority_lookup, decl_fini_priority_lookup,
2543 decl_priority_info, decl_restrict_base_lookup,
2544 decl_restrict_base_insert, decl_debug_expr_lookup,
2545 decl_debug_expr_insert, decl_value_expr_lookup,
2546 decl_value_expr_insert, type_hash_eq, type_hash_lookup,
2547 type_hash_add, get_file_function_name, tree_check_failed,
2548 tree_not_check_failed, tree_range_check_failed,
2549 omp_clause_range_check_failed, build_omp_clause,
2550 build_vl_exp_stat): Likewise.
2551 * value-prof.c (gimple_histogram_value,
2552 gimple_duplicate_stmt_histograms): Likewise.
2553 * var-tracking.c (attrs_list_insert, attrs_list_copy,
2554 unshare_variable, variable_union_info_cmp_pos, variable_union,
2555 dataflow_set_different_1, dataflow_set_different_2,
2556 vt_find_locations, variable_was_changed, set_variable_part,
2557 emit_notes_for_differences_1, emit_notes_for_differences_2): Likewise.
2558 * varasm.c (prefix_name, emutls_decl, section_entry_eq,
2559 section_entry_hash, object_block_entry_eq,
2560 object_block_entry_hash, create_block_symbol,
2561 initialize_cold_section_name, default_function_rodata_section,
2562 strip_reg_name, set_user_assembler_name, const_desc_eq,
2563 build_constant_desc, output_constant_def, lookup_constant_def,
2564 const_desc_rtx_hash, const_desc_rtx_eq, const_rtx_hash_1,
2565 create_constant_pool, force_const_mem, compute_reloc_for_rtx_1,
2566 default_internal_label): Likewise.
2567 * varray.c (varray_init, varray_grow): Likewise.
2568 * vec.c (vec_gc_o_reserve_1, vec_heap_o_reserve_1): Likewise.
2570 2008-06-20 Uros Bizjak <ubizjak@gmail.com>
2572 * config/i386/i386.md (*jcc_fused_1): Handle all valid compare
2573 operators for "test" insn. Macroize insn using SWI mode macro.
2574 (*jcc_fused_2): Ditto.
2575 (*jcc_fused_3): Macroize insn using SWI mode macro.
2576 (*jcc_fused_4): Ditto.
2578 2008-06-20 Bernhard Fischer <aldot@gcc.gnu.org>
2580 * tree-ssa-pre.c: Fix typo in comment.
2581 (init_antic, fini_antic): Add explicit funtions for
2582 initializing and deinitializing ANTIC and AVAIL sets.
2583 (create_expression_by_pieces): Fix typo in comment.
2584 Remove redundant set of new_stuff and use NULL_TREE instead of NULL.
2585 (execute_pre): Eventually dump details about ANTIC_IN.
2587 2008-06-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2589 * collect2.c (main, add_to_list): Fix for -Wc++-compat.
2590 * gcc.c (translate_options, init_spec, store_arg, read_specs,
2591 add_to_obstack, file_at_path, find_a_file, execute,
2592 add_preprocessor_option, add_assembler_option, add_linker_option,
2593 process_command, insert_wrapper, do_option_spec, do_self_spec,
2594 spec_path, do_spec_1, is_directory, main, used_arg,
2595 getenv_spec_function): Likewise.
2596 * tlink.c (symbol_hash_lookup, file_hash_lookup,
2597 demangled_hash_lookup, symbol_push, file_push, frob_extension):
2600 2008-06-19 Kenneth Zadeck <zadeck@naturalbridge.com>
2602 * doc/rtl.texi: Updated subreg section.
2604 2008-06-19 Jakub Jelinek <jakub@redhat.com>
2607 * cgraphunit.c (cgraph_process_new_functions): Don't clear
2608 node->needed and node->reachable.
2609 * cgraphbuild.c (record_reference): Handle OMP_PARALLEL and OMP_TASK.
2610 * omp-low.c (delete_omp_context): Call finalize_task_copyfn.
2611 (expand_task_call): Don't call expand_task_copyfn.
2612 (expand_task_copyfn): Renamed to...
2613 (finalize_task_copyfn): ... this.
2615 2008-06-19 Jan Hubicka <jh@suse.cz>
2617 * builtins.c (expand_builtin_nonlocal_goto): Stabilize r_sp before
2618 clobbering framepointer.
2620 2008-06-19 Jan Hubicka <jh@suse.cz>
2622 * tree-optimize.c (execute_early_local_optimizations): Set
2623 cgraph_state only at first invocation.
2625 2008-06-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2627 * system.h (-Wc++-compat): Activate as a warning, no an error.
2629 2008-06-19 Uros Bizjak <ubizjak@gmail.com>
2631 * config/i386/i386.md (*jcc_fused_1): Use ASM_COMMENT_START
2632 instead of "#" in insn asm template.
2633 (*jcc_fused_2): Ditto.
2635 2008-06-19 Uros Bizjak <ubizjak@gmail.com>
2637 * config/i386/i386.h (ix86_tune_indices)
2638 [X86_TUNE_FUSE_CMP_AND_BRANCH]: New.
2639 (TARGET_FUSE_CMP_AND_BRANCH): New define.
2640 * config/i386/i386.md (*jcc_fused_1): New insn pattern
2641 (*jcc_fused_2): Ditto.
2642 * config/i386/i386.c (ix86_tune_features): Add m_CORE2 to
2643 X86_TUNE_FUSE_CMP_AND_BRANCH targets.
2644 (print operand): Handle 'E' and 'e' code.
2646 2008-06-19 Anatoly Sokolov <aesok@post.ru>
2648 * config/avr/avr.c (avr_mcu_t): Add attiny13a.
2649 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
2650 * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
2652 2008-06-19 Bernhard Fischer <aldot@gcc.gnu.org>
2654 * cgraphunit.c (cgraph_finalize_function): Remove redundant setting of
2656 (cgraph_expand_function): Use local copy of decl.
2657 (cgraph_expand_all_functions): Remove redundant initialization of
2659 (cgraph_optimize): Reword internal_error message.
2661 2008-06-19 Chung-Lin Tang <ctang@marvell.com>
2663 * arm-protos.h (arm_return_in_memory): Remove public
2664 arm_return_in_memory() prototype.
2665 * arm.c (arm_return_in_memory): Add static prototype, add target
2666 hook macro, change definition and comments.
2667 * arm.h (TARGET_RETURN_IN_MEMORY): Remove.
2669 2008-06-19 Ben Elliston <bje@au.ibm.com>
2671 * dfp.h, dfp.c, config/dfp-bit.h, config/dfp-bit.c, real.h,
2672 real.c: Remove references to IEEE 754R.
2673 * doc/install.texi (Configuration): IEEE 754R -> IEEE 754-2008.
2674 * doc/libgcc.texi (Decimal float library routines): Likewise.
2676 2008-06-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2678 * targhooks.h (struct gcc_target): New member unwind_word_mode.
2679 (default_unwind_word_mode): Add prototype.
2680 * targhooks.c (default_unwind_word_mode): New function.
2681 (default_eh_return_filter_mode): Return targetm.unwind_word_mode ()
2682 instead of word_mode.
2683 * target-def.h (TARGET_UNWIND_WORD_MODE): New macro.
2684 (TARGET_INITIALIZER): Use it.
2686 * c-common.c (handle_mode_attribute): Support "unwind_word"
2688 * unwind-generic.h (_Unwind_Word, _Unwind_Sword): Use it.
2690 * except.c (init_eh): Use targetm.unwind_word_mode () instead of
2691 word_mode to access SjLj_Function_Context member "data".
2692 (sjlj_emit_dispatch_table): Likewise. Also, perform type
2693 conversion from targetm.eh_return_filter_mode () to
2694 targetm.unwind_word_mode () if they differ.
2696 * builtin-types.def (BT_UNWINDWORD): New primitive type.
2697 (BT_FN_UNWINDWORD_PTR): New function type.
2698 (BT_FN_WORD_PTR): Remove.
2699 * builtins.def (BUILT_IN_EXTEND_POINTER): Use BT_FN_UNWINDWORD_PTR.
2700 * except.c (expand_builtin_extend_pointer): Convert pointer to
2701 targetm.unwind_word_mode () instead of word_mode.
2703 * config/spu/spu-protos.h (spu_eh_return_filter_mode): Remove.
2704 * config/spu/spu.c (spu_eh_return_filter_mode): Remove.
2705 (spu_unwind_word_mode): New function.
2706 (TARGET_EH_RETURN_FILTER_MODE): Do not define.
2707 (TARGET_UNWIND_WORD_MODE): Define.
2708 * config/spu/t-spu-elf (TARGET_LIBGCC2_CFLAGS): Remove -D__word__=SI.
2710 2008-06-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2712 * config/spu/spu.c (reg_align): Remove.
2713 (regno_aligned_for_load): Also accept ARG_POINTER_REGNUM.
2714 (spu_split_load): Use regno_aligned_for_load instead of reg_align.
2715 (spu_split_store): Likewise.
2717 2008-06-18 Bernhard Fischer <aldot@gcc.gnu.org>
2719 * gcc/tree-vn.c: Fix typo in comment.
2721 2008-06-18 Jan Hubicka <jh@suse.cz>
2723 * cgraphunit.c (cgraph_optimize): Output debug info when doing
2724 toplevel reorder too.
2726 2008-06-18 Jan Hubicka <jh@suse.cz>
2728 * c-opts.c (c_common_post_options): PCH is not compatible with
2730 * opts.c (handle_options): Enable unit-at-a-time at O0 along with
2731 -fno-toplevel-reorder by default now.
2733 2008-06-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2735 PR documentation/30739
2736 * doc/install.texi (Prerequisites): Document dependency on awk.
2738 2008-06-18 Uros Bizjak <ubizjak@gmail.com>
2739 Ian Lance Taylor <iant@google.com>
2741 PR rtl-optimization/35604
2742 * jump.c (redirect_exp_1): Skip the condition of an IF_THEN_ELSE. We
2743 only want to change jump destinations, not eventual label comparisons.
2745 2008-06-16 Jan Hubicka <jh@suse.cz>
2747 * cgraphunit.c (cgraph_expand_pending_functions): Give up at
2749 (cgraph_analyze_function): Likewise.
2751 2008-06-16 Jan Hubicka <jh@suse.cz>
2753 * cgraph.h (cgraph_mark_if_needed): New function.
2754 * cgraphunit.c (cgraph_mark_if_needed): New function.
2755 * c-decl.c (duplicate_decl): Use it.
2757 2008-06-16 Jan Hubicka <jh@suse.cz>
2759 * cgraph.c (cgraph_add_new_function): When in expansion state, do
2762 2008-06-16 Jan Hubicka <jh@suse.cz>
2764 * tree-outof-ssa.c (pass_out_of_ssa): Do not depend on PROP_alias.
2766 2008-06-16 Daniel Jacobowitz <dan@codesourcery.com>
2767 Kazu Hirata <kazu@codesourcery.com>
2768 Maxim Kuvyrkov <maxim@codesourcery.com
2770 * config.gcc (mips64el-st-linux-gnu): Use mips/st.h and mips/t-st.
2771 * config.host: Use driver-native.o and mips/x-native for mips*-linux*.
2772 * config/mips/linux.h (host_detect_local_cpu): Declare, add to
2773 EXTRA_SPEC_FUNCTIONS.
2774 (MARCH_MTUNE_NATIVE_SPECS, BASE_DRIVER_SELF_SPECS): New macros.
2775 (DRIVER_SELF_SPECS): Adjust.
2776 * config/mips/linux64.h (DRIVER_SELF_SPECS): Update.
2777 * config/mips/st.h, config/mips/t-st: New.
2778 * config/mips/driver-native.c, config/mips/x-native: New.
2779 * doc/invoke.texi (MIPS): Document 'native' value for -march and
2782 2008-06-18 Maxim Kuvyrkov <maxim@codesourcery.com>
2784 * config/mips/mips.h (ISA_HAS_CONDMOVE): Slice ISA_HAS_FP_CONDMOVE
2786 (ISA_HAS_FP_CONDMOVE): New macro.
2787 (ISA_HAS_FP_MADD4_MSUB4, ISA_HAS_FP_MADD3_MSUB3): New macros.
2788 (ISA_HAS_NMADD_NMSUB): Rename to ISA_HAS_NMADD4_NMSUB4.
2789 (ISA_HAS_NMADD3_NMSUB3): New macro.
2790 * config/mips/mips.c (mips_rtx_costs): Update.
2791 * config/mips/mips.md (MOVECC): Don't use FP conditional moves when
2792 compiling for ST Loongson 2E/2F.
2793 (madd<mode>): Rename to madd4<mode>. Update.
2794 (madd3<mode>): New pattern.
2795 (msub<mode>): Rename to msub4<mode>. Update.
2796 (msub3<mode>): New pattern.
2797 (nmadd<mode>): Rename to nmadd4<mode>. Update.
2798 (nmadd3<mode>): New pattern.
2799 (nmadd<mode>_fastmath): Rename to nmadd4<mode>_fastmath. Update.
2800 (nmadd3<mode>_fastmath): New pattern.
2801 (nmsub<mode>): Rename to nmsub4<mode>. Update.
2802 (nmsub3<mode>): New pattern.
2803 (nmsub<mode>_fastmath): Rename to nmsub4<mode>_fastmath. Update.
2804 (nmsub3<mode>_fastmath): New pattern.
2805 (mov<SCALARF:mode>_on_<MOVECC:mode>, mov<mode>cc): Update.
2807 2008-06-18 Steven Bosscher <steven@gcc.gnu.org>
2809 * df.h (struct df_ref): Replace 'insn' field with 'insn_info' field.
2810 (DF_REF_INSN_INFO): New.
2811 (DF_REF_INSN, DF_REF_INSN_UID): Rewrite macros using DF_REF_INSN_INFO.
2812 (DF_REF_IS_ARTIFICIAL): Artificial refs are now identified as refs
2813 with a NULL DF_REF_INSN_INFO.
2814 (DF_INSN_INFO_GET, DF_INSN_INFO_SET): Renamed from DF_INSN_GET and
2816 (DF_INSN_INFO_LUID, DF_INSN_INFO_DEFS, DF_INSN_INFO_USES,
2817 DF_INSN_INFO_EQ_USES): New.
2818 (DF_INSN_LUID, DF_INSN_DEFS, DF_INSN_USES, DF_INSN_EQ_USES,
2819 DF_INSN_UID_LUID, DF_INSN_UID_DEFS, DF_INSN_UID_USES,
2820 DF_INSN_UID_EQ_USES): Rewrite using DF_INSN_INFO_* macros.
2821 * df-core.c: Update comment for above changes.
2822 (df_insn_debug_regno): Use DF_INSN_INFO_GET instead of INSN_UID and
2823 DF_INSN_UID_* macros.
2824 (df_ref_debug): Check for NULL DF_REF_INSN_INFO.
2825 * df-scan.c (df_ref_record): Take a df_insn_info instead of an
2826 insn rtx. Update all callers.
2827 (df_def_record_1, df_defs_record, df_uses_record, df_get_call_refs,
2828 df_ref_create_structure, df_insn_refs_collect): Likewise.
2829 (df_ref_equal_p): Compare DF_REF_INSN_INFO pointers for the refs.
2830 * df-problems.c (df_chain_dump): Test for non-NULL DF_REF_INSN_INFO.
2831 (df_live_bb_local_compute): Retrieve DF_INSN_INFO, use DF_INSN_INFO_*
2832 macros to access the insn refs.
2833 (df_chain_top_dump, df_chain_bottom_dump, df_byte_lr_alloc): Likewise.
2834 * fwprop.c (use_killed_between): Use DF_REF_INSN accessor macro.
2835 (all_uses_available): Retrieve DF_INSN_INFO for def_insn, and use it
2836 for accessing the refs.
2837 (try_fwprop_subst): Likewise.
2838 * ddg.c (add_cross_iteration_register_deps): Use DF_REF_INSN macro.
2839 * web.c (union_defs): Retrieve DF_INSN_INFO for def_insn, and use it
2840 for accessing the refs.
2841 * loop-invariant.c (invariant_for_use): Use DF_REF_BB macro.
2842 (check_dependencies): Use DF_INSN_INFO_GET, use DF_INSN_INFO_* macros
2843 to look at the insn refs.
2844 (record_uses): Likewise.
2845 * dce.c (deletable_insn_p): Don't tolerate artificial DEFs in this
2847 (mark_artificial_uses): Don't mark_insn for artificial refs.
2848 (mark_reg_rependencies): Likewise.
2850 * doc/rtl.texi: Remove documentation of ADDRESSOF.
2852 2008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2854 * configure: Regenerate.
2856 2008-06-17 Eric B. Weddington <eric.weddington@atmel.com>
2858 * config/avr/avr.c (avr_mcu_t): Remove atmega32hvb.
2859 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
2860 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
2862 2008-06-17 Eric B. Weddington <eric.weddington@atmel.com>
2864 * config/avr/avr.c (avr_mcu_t): Add attiny167.
2865 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
2866 * gcc/config/avr/t-avr (MULTILIB_MATCHES): Likewise.
2868 2008-06-17 Eric B. Weddington <eric.weddington@atmel.com>
2870 * config/avr/avr.c (avr_mcu_t): Add atmega32u4.
2871 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
2872 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
2874 2008-06-17 Bernhard Fischer <aldot@gcc.gnu.org>
2876 * tree-ssa-sccvn.c: Fix format of comments.
2878 2008-06-17 Bernhard Fischer <aldot@gcc.gnu.org>
2880 * cgraph.c: Remove unneeded forward declarations of eq_node()
2883 2008-06-17 Steven Bosscher <steven@gcc.gnu.org>
2885 * see.c (see_analyse_one_def): Do not look for REG_LIBCALL and
2887 (see_update_relevancy): Likewise.
2888 * fwprop.c (try_fwprop_subst): Likewise.
2889 * rtlanal.c (noop_move_p): Likewise.
2890 * builtins.c (expand_buitlin_mathfn): Don't try to add REG_EQUAL
2891 notes to non-existing libcall blocks.
2892 * cse.c (cse_insn): Change prototype. Don't update libcall notes.
2894 (cse_extended_basic_block): Don't track libcall and no-conflict notes.
2895 (dead_libcall_p): Remove.
2896 (delete_trivially_dead_insns): Don't use it.
2897 * web.c (union_defs): Remove comment about keeping nops.
2898 * gcse.c (hash_scan_insn): Don't take libcall pointers.
2899 (compute_hash_table_work): Don't track libcall notes.
2900 (do_local_cprop): Don't take libcall pointers. Don't update
2902 (adjust_libcall_notes): Deleted.
2903 (local_cprop_pass): Remove stack for nested libcalls (which shouldn't
2904 ever have existed in the first place).
2905 (replace_store_insn): Don't try to remove libcall notes.
2906 * lower-subreg.c (move_libcall_note, move_retval_note): Deleted.
2907 (resolve_reg_notes): Don't call them.
2908 (resolve_simple_move): Likewise.
2909 (decompose_multiword_subregs): Remove block handling REG_RETVAL notes.
2910 Don't remove REG_RETVAL notes.
2911 * emit-rtl.c (try_split): Don't update libcall notes.
2912 (emit_copy_of_insn_after): Dito.
2913 * cselib.c (cselib_current_insn_in_libcall): Remove.
2914 (cselib_process_insn): Don't set/clear it.
2915 (new_elt_loc_list): Don't record it.
2916 (cselib_init): Don't initialize it.
2917 * cselib.c (struct elt_loc_list): Remove in_libcall field.
2918 * loop-invariant.c (find_invariant_insn): Don't look for libcall
2920 * sched-deps.c (sched_analyze_insn): Don't group libcall blocks.
2921 (sched_analyze): Don't set up deps->libcall_block_tail_insn.
2922 (init_deps): Don't initialize it.
2923 * sched-int.h (struct deps): Rremove libcall_block_tail_insn field.
2924 * combine.c (delete_noop_moves): Don't update libcall notes.
2925 (can_combine_p): Remove now pointless #if 0 block.
2926 (try_combine): Remove another obsolete #if 0 block.
2927 (distribute_notes): Don't distribute libcall notes.
2928 * reg-notes.def (REG_LIBCALL, REG_RETVAL): Remove.
2929 * dce.c (libcall_dead_p): Remove.
2930 (delete_unmarked_insns): Don't handle libcall blocks.
2931 (preserve_libcall_for_dce): Remove.
2932 (prescan_insns_for_dce): Don't special-case libcall block insns.
2933 * reload1 (reload): Don't handle libcall notes.
2934 * doc/rtl.texi (REG_LIBCALL, REG_RETVAL, REG_LIBCALL_ID): Remove
2937 2008-06-16 Eric B. Weddington <eric.weddington@atmel.com>
2939 * config/avr/avr.c (avr_mcu_t): Add atmega32c1.
2940 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
2941 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
2943 2008-06-16 Eric B. Weddington <eric.weddington@atmel.com>
2945 * config/avr/avr.c (avr_mcu_t): Add atmega32m1.
2946 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
2947 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
2949 2008-06-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2951 * Makefile.in (FLAGS_TO_PASS): Add $(datarootdir).
2953 2008-06-16 Ira Rosen <irar@il.ibm.com>
2955 PR tree-optimization/36493
2956 * tree-vect-transform.c (vect_create_data_ref_ptr): Remove TYPE from
2957 the arguments list. Use VECTYPE to create vector pointer.
2958 (vectorizable_store): Fail if accesses through a pointer to vectype
2959 do not alias the original memory reference operands.
2960 Call vect_create_data_ref_ptr without the removed argument.
2961 (vectorizable_load): Likewise.
2962 (vect_setup_realignment): Call vect_create_data_ref_ptr without the
2965 2008-06-015 Andy Hutchinson <hutchinsonandy@aim.com>
2968 * config/avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Add check for
2971 2008-06-15 Maxim Kuvyrkov <maxim@codesourcery.com>
2973 * config/mips/loongson2ef.md: New file.
2974 * config/mips/mips.md (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
2975 (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
2976 (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
2977 (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): New constants.
2978 (define_attr "cpu"): Rename loongson2e and loongson2f to loongson_2e
2980 (loongson2ef.md): New include.
2981 * config/mips/loongson.md (vec_pack_ssat_<mode>, vec_pack_usat_<mode>)
2982 (add<mode>3, paddd, ssadd<mode>3, usadd<mode>3)
2983 (loongson_and_not_<mode>, loongson_average_<mode>, loongson_eq_<mode>)
2984 (loongson_gt_<mode>, loongson_extract_halfword)
2985 (loongson_insert_halfword_0, loongson_insert_halfword_2)
2986 (loongson_insert_halfword_3, loongson_mult_add, smax<mode>3)
2987 (umax<mode>3, smin<mode>3, umin<mode>3, loongson_move_byte_mask)
2988 (umul<mode>3_highpart, smul<mode>3_highpart, loongson_smul_lowpart)
2989 (loongson_umul_word, loongson_pasubub, reduc_uplus_<mode>)
2990 (loongson_psadbh, loongson_pshufh, loongson_psll<mode>)
2991 (loongson_psra<mode>, loongson_psrl<mode>, sub<mode>3, psubd)
2992 (sssub<mode>3, ussub<mode>3, vec_interleave_high<mode>)
2993 (vec_interleave_low<mode>): Define type attribute.
2994 * config/mips/mips.c (mips_ls2): New static variable.
2995 (mips_issue_rate): Update to handle tuning for Loongson 2E/2F.
2996 (mips_ls2_init_dfa_post_cycle_insn, mips_init_dfa_post_cycle_insn)
2997 (sched_ls2_dfa_post_advance_cycle, mips_dfa_post_advance_cycle):
2998 Implement target scheduling hooks.
2999 (mips_multipass_dfa_lookahead): Update to handle tuning for
3001 (mips_sched_init): Initialize data for Loongson scheduling.
3002 (mips_ls2_variable_issue): New static function.
3003 (mips_variable_issue): Update to handle tuning for Loongson 2E/2F.
3005 (TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN)
3006 (TARGET_SCHED_DFA_POST_ADVANCE_CYCLE): Override target hooks.
3007 * config/mips/mips.h (TUNE_LOONGSON_2EF): New macros.
3008 (ISA_HAS_XFER_DELAY, ISA_HAS_FCMP_DELAY, ISA_HAS_HILO_INTERLOCKS):
3009 Handle ST Loongson 2E/2F cores.
3010 (CPU_UNITS_QUERY): Define macro to enable querying of DFA units.
3012 2008-06-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3014 * omp-low.c (extract_omp_for_data): Fix comment typo.
3017 2008-06-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3019 * doc/sourcebuild.texi (Config Fragments): Remove obsolete
3020 FIXME note about gcc/config.guess.
3021 * doc/options.texi (Option file format): Remove non-ASCII bytes.
3022 * doc/cpp.texi: Expand TABs, drop indentation outside examples.
3023 * doc/cppopts.texi: Likewise.
3024 * doc/extend.texi: Likewise.
3025 * doc/gcc.texi: Likewise.
3026 * doc/gccint.texi: Likewise.
3027 * doc/gcov.texi: Likewise.
3028 * doc/gty.texi: Likewise.
3029 * doc/hostconfig.texi: Likewise.
3030 * doc/install.texi: Likewise.
3031 * doc/invoke.texi: Likewise.
3032 * doc/loop.texi: Likewise.
3033 * doc/makefile.texi: Likewise.
3034 * doc/md.texi: Likewise.
3035 * doc/passes.texi: Likewise.
3036 * doc/tm.texi: Likewise.
3037 * doc/tree-ssa.texi: Likewise.
3038 * doc/trouble.texi: Likewise.
3040 2008-06-15 Mark Shinwell <shinwell@codesourcery.com>
3041 Nathan Sidwell <nathan@codesourcery.com>
3042 Maxim Kuvyrkov <maxim@codesourcery.com>
3043 Richard Sandiford <rdsandiford@googlemail.com>
3045 * config/mips/mips-modes.def: Add V8QI, V4HI and V2SI modes.
3046 * config/mips/mips-protos.h (mips_expand_vector_init): New.
3047 * config/mips/mips-ftypes.def: Add function types for Loongson-2E/2F
3049 * config/mips/mips.c (mips_split_doubleword_move): Handle new modes.
3050 (mips_hard_regno_mode_ok_p): Allow 64-bit vector modes for Loongson.
3051 (mips_vector_mode_supported_p): Add V2SImode, V4HImode and
3053 (LOONGSON_BUILTIN, LOONGSON_BUILTIN_ALIAS): New.
3054 (CODE_FOR_loongson_packsswh, CODE_FOR_loongson_packsshb,
3055 (CODE_FOR_loongson_packushb, CODE_FOR_loongson_paddw,
3056 (CODE_FOR_loongson_paddh, CODE_FOR_loongson_paddb,
3057 (CODE_FOR_loongson_paddsh, CODE_FOR_loongson_paddsb)
3058 (CODE_FOR_loongson_paddush, CODE_FOR_loongson_paddusb)
3059 (CODE_FOR_loongson_pmaxsh, CODE_FOR_loongson_pmaxub)
3060 (CODE_FOR_loongson_pminsh, CODE_FOR_loongson_pminub)
3061 (CODE_FOR_loongson_pmulhuh, CODE_FOR_loongson_pmulhh)
3062 (CODE_FOR_loongson_biadd, CODE_FOR_loongson_psubw)
3063 (CODE_FOR_loongson_psubh, CODE_FOR_loongson_psubb)
3064 (CODE_FOR_loongson_psubsh, CODE_FOR_loongson_psubsb)
3065 (CODE_FOR_loongson_psubush, CODE_FOR_loongson_psubusb)
3066 (CODE_FOR_loongson_punpckhbh, CODE_FOR_loongson_punpckhhw)
3067 (CODE_FOR_loongson_punpckhwd, CODE_FOR_loongson_punpcklbh)
3068 (CODE_FOR_loongson_punpcklhw, CODE_FOR_loongson_punpcklwd): New.
3069 (mips_builtins): Add Loongson builtins.
3070 (mips_loongson_2ef_bdesc): New.
3071 (mips_bdesc_arrays): Add mips_loongson_2ef_bdesc.
3072 (mips_builtin_vector_type): Handle unsigned versions of vector modes.
3073 (MIPS_ATYPE_UQI, MIPS_ATYPE_UDI, MIPS_ATYPE_V2SI, MIPS_ATYPE_UV2SI)
3074 (MIPS_ATYPE_V4HI, MIPS_ATYPE_UV4HI, MIPS_ATYPE_V8QI, MIPS_ATYPE_UV8QI):
3076 (mips_expand_vector_init): New.
3077 * config/mips/mips.h (HAVE_LOONGSON_VECTOR_MODES): New.
3078 (TARGET_CPU_CPP_BUILTINS): Define __mips_loongson_vector_rev
3080 * config/mips/mips.md: Add unspec numbers for Loongson
3081 builtins. Include loongson.md.
3082 (MOVE64): Include Loongson vector modes.
3083 (SPLITF): Include Loongson vector modes.
3084 (HALFMODE): Handle Loongson vector modes.
3085 * config/mips/loongson.md: New.
3086 * config/mips/loongson.h: New.
3087 * config.gcc: Add loongson.h header for mips*-*-* targets.
3088 * doc/extend.texi (MIPS Loongson Built-in Functions): New.
3090 2008-06-14 Joseph Myers <joseph@codesourcery.com>
3092 * config.gcc (arc-*-elf*, avr-*-*, fr30-*-elf, frv-*-elf,
3093 h8300-*-elf*, h8300-*-*, i[34567]86-*-elf*, x86_64-*-elf*,
3094 i[34567]86-*-aout*, i[34567]86-*-coff*, ia64*-*-elf*,
3095 iq2000*-*-elf*, m32r-*-elf*, m32rle-*-elf*, m32r-*-linux*,
3096 m32rle-*-linux*, m68hc11-*-*|m6811-*-*, m68hc12-*-*|m6812-*-*,
3097 m68k-*-coff*, mcore-*-elf, mcore-*-pe*, mipsisa64sr71k-*-elf*,
3098 mipsisa64sb1-*-elf* | mipsisa64sb1el-*-elf*, mips-*-elf* |
3099 mipsel-*-elf*, mips64-*-elf* | mips64el-*-elf*, mips64vr-*-elf* |
3100 mips64vrel-*-elf*, mips64orion-*-elf* | mips64orionel-*-elf*,
3101 mipstx39-*-elf* | mipstx39el-*-elf*, mn10300-*-*, pdp11-*-,
3102 powerpc-*-elf*, powerpcle-*-elf*, sh-*-elf* | sh[12346l]*-*-elf* |
3103 sh-*-symbianelf* | sh[12346l]*-*-symbianelf* | sh-*-linux* |
3104 sh[2346lbe]*-*-linux* | sh-*-netbsdelf* | shl*-*-netbsdelf* |
3105 sh5-*-netbsd* | sh5l*-*-netbsd* | sh64-*-netbsd* |
3106 sh64l*-*-netbsd*, sh-*-*, sparc-*-elf*, sparc64-*-elf*,
3107 v850e1-*-*, v850e-*-*, v850-*-*, xstormy16-*-elf, m32c-*-elf*):
3108 Remove use_fixproto=yes.
3109 (ia64*-*-hpux*): Remove comment about using fixproto.
3110 (m68k-*-uclinuxoldabi*, m68k-*-uclinux*): Remove use_fixproto=no.
3112 2008-06-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3114 * configure.ac: Update gthr-default.h lazily, to avoid unneeded
3116 * configure: Regenerate.
3118 2008-06-13 Eric Botcazou <ebotcazou@adacore.com>
3121 * builtins.c (get_memory_rtx): Test for the presence of DECL_SIZE_UNIT
3122 before evaluating it.
3124 2008-06-13 Jakub Jelinek <jakub@redhat.com>
3127 * c-decl.c (merge_decls): Don't clear DECL_EXTERNAL for
3128 nested inline functions.
3129 (start_decl, start_function): Don't invert DECL_EXTERNAL
3130 for nested inline functions.
3132 2008-06-13 Richard Sandiford <rdsandiford@googlemail.com>
3134 * config/mips/mips.md: Remove TARGET_DEBUG_D_MODE conditions from
3135 splits that must be made for correctness.
3137 2008-06-13 Richard Sandiford <rdsandiford@googlemail.com>
3139 * config/mips/mips.c (BUILTIN_AVAIL_NON_MIPS16): New macro.
3140 (AVAIL_NON_MIPS16): Likewise.
3141 (mips_builtin_description): Replace target_flags with a predicate.
3142 (paired_single, sb1_paired_single, mips3d, dsp, dspr2, dsp_32)
3143 (dspr2_32): New availability predicates.
3144 (MIPS_BUILTIN): New macro.
3145 (DIRECT_BUILTIN, CMP_SCALAR_BUILTINS, CMP_PS_BUILTINS)
3146 (CMP_4S_BUILTINS, MOVTF_BUILTINS, CMP_BUILTINS)
3147 (DIRECT_NO_TARGET_BUILTIN, BPOSGE_BUILTIN): Use it.
3148 Replace the TARGET_FLAGS parameters with AVAIL parameters.
3149 (mips_ps_bdesc, mips_sb1_bdesc, mips_dsp_bdesc)
3150 (mips_dsp_32only_bdesc): Merge into...
3151 (mips_builtins): ...this new array.
3152 (mips_bdesc_map, mips_bdesc_arrays): Delete.
3153 (mips_init_builtins): Update after above changes.
3154 (mips_expand_builtin_1): Merge into...
3155 (mips_expand_builtin): ...here and update after above changes.
3157 2008-06-12 Paul Brook <paul@codesourcery.com>
3159 * longlong.h (__arm__): Define count_leading_zeros.
3160 * config/arm/lib1funcs.asm (xxh, xxl, yyh, yyl): Define.
3161 (clzsi2, clzdi2): New functions.
3162 * config/arm/bpabi-v6m.S (xxh, xxl, yyh, yyl): Remove.
3163 * config/arm/bpabi.S (xxh, xxl, yyh, yyl): Remove.
3164 * config/arm/t-strongarm-elf (LIB1ASMFUNCS): Ditto.
3165 * config/arm/t-vxworks (LIB1ASMFUNCS): Ditto.
3166 * config/arm/t-pe (LIB1ASMFUNCS): Ditto.
3167 * config/arm/t-arm-elf (LIB1ASMFUNCS): Ditto.
3168 * config/arm/t-arm-coff (LIB1ASMFUNCS): Ditto.
3169 * config/arm/t-linux (LIB1ASMFUNCS): Ditto.
3170 * config/arm/t-symbian (LIB1ASMFUNCS): Ditto.
3171 * config/arm/t-wince-pe (LIB1ASMFUNCS): Ditto.
3173 2008-06-12 Kazu Hirata <kazu@codesourcery.com>
3175 * config/m68k/m68k.c (m68k_tune_flags): New.
3176 (override_options): Compute m68k_tune_flags.
3177 (MULL_COST, MULW_COST): Update for various variants of CFV2.
3178 * config/m68k/m68k.h (TUNE_MAC, TUNE_EMAC): New.
3180 2008-06-12 Jakub Jelinek <jakub@redhat.com>
3183 * omp-low.c (expand_omp_sections): Initialize l2 to avoid bogus warning.
3185 2008-06-12 Eric Botcazou <ebotcazou@adacore.com>
3187 * tree-inline.c (copy_body_r): Copy TREE_SIDE_EFFECTS along with
3188 TREE_THIS_VOLATILE on INDIRECT_REF nodes.
3190 2008-06-12 Eric Botcazou <ebotcazou@adacore.com>
3192 * expr.c (store_field): Do a block copy from BLKmode to BLKmode-like.
3193 (get_inner_reference): Use BLKmode for byte-aligned BLKmode bitfields.
3195 2008-06-12 Jakub Jelinek <jakub@redhat.com>
3198 * omp-low.c (expand_omp_sections): Handle #pragma omp sections with
3201 2008-06-12 Richard Guenther <rguenther@suse.de>
3203 PR tree-optimization/36345
3204 * tree-flow.h (struct ptr_info_def): Align escape_mask,
3205 add memory_tag_needed flag.
3206 (may_alias_p): Declare.
3207 * tree-ssa-alias.c (may_alias_p): Export.
3208 (set_initial_properties): Use memory_tag_needed flag.
3209 (update_reference_counts): Likewise.
3210 (reset_alias_info): Reset memory_tag_needed flag.
3211 (create_name_tags): Check memory_tag_needed flag.
3212 (dump_points_to_info_for): Dump it.
3213 * tree-ssa-structalias.c (struct variable_info): Remove
3214 directly_dereferenced flag.
3215 (new_var_info): Do not initialize it.
3216 (process_constraint_1): Do not set it.
3217 (update_alias_info): Set is_dereferenced flag.
3218 (set_uids_in_ptset): Use may_alias_p.
3219 (set_used_smts): Check memory_tag_needed flag.
3220 (find_what_p_points_to): Likewise. Pass is_dereferenced flag.
3221 * tree-ssa-alias.c (verify_flow_sensitive_alias_info): Check
3222 memory_tag_needed flag.
3223 * tree-ssa-alias-warnings.c (dsa_named_for): Try to recover
3226 2008-06-12 Kai Tietz <kai.tietz@onevision.com>
3228 * config/i386/i386.c (ix86_compute_frame_layout): Disable
3229 red zone for w64 abi.
3230 (ix86_expand_prologue): Likewise.
3231 (ix86_force_to_memory): Likewise.
3232 (ix86_free_from_memory): Likewise.
3234 2008-06-11 Edmar Wienskoski <edmar@freescale.com>
3237 * config/rs6000/rs6000.c (rs6000_override_options): Set
3238 rs6000_isel conditionally to the absence of comand line override.
3239 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS):
3240 Remove duplicate rs6000_isel setting.
3241 * config/rs6000/eabispe.h: Ditto.
3243 2008-06-11 Richard Guenther <rguenther@suse.de>
3245 * alias.c (get_alias_set): Use the element alias-set for arrays.
3246 (record_component_aliases): For arrays and vectors do nothing.
3247 * c-common.c (strict_aliasing_warning): Handle the cases
3248 of alias set zero explicitly.
3249 * Makefile.in (dfp.o-warn): Add -Wno-error.
3251 2008-06-11 Joseph Myers <joseph@codesourcery.com>
3253 * config.gcc (all_defaults): Add arch_32 arch_64 cpu_32 cpu_64
3255 (i[34567]86-*-* | x86_64-*-*): Add arch_32 arch_64 cpu_32 cpu_64
3256 tune_32 tune_64 to supported_defaults. Allow values not
3257 supporting 64-bit mode for arch_32, cpu_32 and tune_32 for
3258 x86_64. Do not override cpu_32 or cpu_64 values from target name.
3259 (i[34567]86-*-linux*, i[34567]86-*-solaris2.1[0-9]*): Only default
3260 with_cpu_64 to generic for 64-bit-supporting configurations, not
3261 with_cpu. Remove FIXMEs.
3262 * doc/install.texi (--with-cpu-32, --with-cpu-64, --with-arch-32,
3263 --with-arch-64, --with-tune-32, --with-tune-64): Document.
3264 * config/i386/i386.h (OPT_ARCH32, OPT_ARCH64): Define.
3265 (OPTION_DEFAULT_SPECS): Add tune_32, tune_64, cpu_32, cpu_64,
3266 arch_32 and arch_64.
3268 2008-06-11 Eric Botcazou <ebotcazou@adacore.com>
3269 Olivier Hainque <hainque@adacore.com>
3271 * builtins.c (get_memory_rtx): Accept byte-addressable bitfields.
3272 Use DECL_SIZE_UNIT to retrieve the size of the field.
3274 2008-06-11 Joseph Myers <joseph@codesourcery.com>
3276 * config/arm/arm.c (arm_init_neon_builtins): Move initialization
3277 with function calls after declarations. Lay out
3278 neon_float_type_node before further use.
3280 2008-06-11 Richard Guenther <rguenther@suse.de>
3282 * tree-flow.h (may_point_to_global_var): Declare.
3283 * tree-ssa-alias.c (may_point_to_global_var): New function.
3284 * tree-ssa-sink.c (is_hidden_global_store): Use it.
3286 2008-06-10 Kazu Hirata <kazu@codesourcery.com>
3288 * configure.ac: Teach that fido supports .debug_line.
3289 * configure: Regenerate.
3291 2008-06-10 Tom Tromey <tromey@redhat.com>
3293 * c-lex.c (fe_file_change): Pass SOURCE_LINE to start_source_file
3296 2008-06-10 Joseph Myers <joseph@codesourcery.com>
3298 * dfp.c (WORDS_BIGENDIAN): Define to 0 if not defined.
3299 (encode_decimal64, decode_decimal64, encode_decimal128,
3300 decode_decimal128): Reverse order of 32-bit parts of value if host
3301 and target endianness differ.
3303 2008-06-10 Vinodha Ramasamy <vinodha@google.com>
3305 * value_prob.c (tree_divmod_fixed_value_transform): Use gcov_type.
3306 Avoid division by 0.
3307 (tree_mod_pow2_value_transform): Likewise.
3308 (tree_ic_transform): Likewise.
3309 (tree_stringops_transform): Likewise.
3310 (tree_mod_subtract_transform): Likewise.
3311 * tree-inline-c (copy_bb): Corrected int type to gcov_type.
3312 (copy_edges_for_bb): Likewise.
3313 (initialize_cfun): Likewise.
3315 2008-06-10 Uros Bizjak <ubizjak@gmail.com>
3317 * config/i386/i386.md (*btdi_rex64): Change operand 1 predicate to
3318 nonmemory_operand. Add "N" operand constraint.
3320 (*jcc_btdi_mask_rex64): New instruction and split pattern.
3321 (*jcc_btsi_mask): Ditto.
3322 (*jcc_btsi_mask_1): Ditto.
3324 2008-06-10 Joseph Myers <joseph@codesourcery.com>
3326 * config/rs6000/rs6000.c (build_opaque_vector_type): Set
3327 TYPE_CANONICAL for copied element type.
3329 2008-06-10 Uros Bizjak <ubizjak@gmail.com>
3332 * config/i386/i386.c (ix86_tune_features) [TUNE_USE_BT]:
3333 Add m_CORE2 and m_GENERIC.
3334 * config/i386/predicates.md (bt_comparison_operator): New predicate.
3335 * config/i386/i386.md (*btdi_rex64): New instruction pattern.
3337 (*jcc_btdi_rex64): New instruction and split pattern.
3339 (*jcc_btsi_1): Ditto.
3340 (*btsq): Fix Intel asm dialect operand order.
3344 2008-06-09 Andy Hutchinson <hutchinsonandy@aim.com>
3347 * simplify-rtx.c (simplify_subreg): Add check for shift count
3350 2008-06-09 Richard Sandiford <rdsandiford@googlemail.com>
3352 * doc/md.texi: Synchronize with later constraints.md change.
3353 * longlong.h (umul_ppmm): Replace the MIPS asm implementation
3354 with a C implementation.
3355 * config/mips/mips.c (mips_legitimize_move): Remove MFHI and
3357 (mips_subword): Assume TImode for CONST_INTs if TARGET_64BIT.
3358 (mips_split_doubleword_move): Use special MTHI and MFHI instructions
3359 when moving to and from MD_REGNUM.
3360 (mips_output_move): Don't handle moves from GPRs to HI_REGNUM.
3361 Handle moves from LO_REGNUM to GPRs using MFLO, MACC or DMACC.
3362 Handle byte and halfword moves.
3363 (mips_hard_regno_mode_ok_p): Handle MD_REGS and DSP_ACC_REGS
3365 * config/mips/constraints.md (h): Turn into NO_REGS.
3366 (l, x): Update documentation.
3367 * config/mips/mips.md (UNSPEC_MFHILO): Delete.
3368 (UNSPEC_MFHI, UNSPEC_MTHI, UNSPEC_SET_HILO): New.
3369 (UNSPEC_TLS_LDM, UNSPEC_TLS_GET_TP): Renumber.
3370 (HILO): New mode iterator.
3372 (any_div): New code iterator.
3373 (u): Extend code attribute to div and udiv.
3374 (*add<mode>3_mips16, *movdi_64bit_mips16, *movsi_mips16): Use
3375 d_operand in the splitters. Remove redundant CONST_INT checks.
3376 (mulsi3_mult3, mul<mode>3_internal, mul<mode>3_r4000, *mul_acc_si)
3377 (*macc, *msac, *msac_using_macc, *macc2, *msac2, *mul_sub_si)
3378 (*muls): Remove "=h" clobbers. Adjust peephole2s and define_splits
3379 accordingly, using normal moves instead of unspecs to move LO into
3380 a GPR. Use d_operand and lo_operand instead of *_REG_P checks.
3381 (<u>mulsidi3): Handle expansion in C code.
3382 (<u>mulsidi3_32bit_internal): Rename to...
3383 (<u>mulsidi3_32bit): ...this.
3384 (<u>mulsidi3_32bit_r4000): Fix insn separator.
3385 (*<u>mulsidi3_64bit): Rename to...
3386 (<u>mulsidi3_64bit): ...this. Combine DImode "=h" and "=l" clobbers
3387 into a TImode "=x" clobber. In the split, use an UNSPEC_SET_HILO
3388 to set LO and HI to the multiplication result. Use a normal move
3389 for MFLO and an unspec for MFHI.
3390 (*<u>mulsidi3_64bit_parts): Replace with...
3391 (<u>mulsidi3_64bit_hilo): ...this new instruction.
3392 (<su>mulsi3_highpart): Extend to TARGET_FIX_R4000.
3393 (<su>mulsi3_highpart_internal): Turn into a define_insn_and_split
3394 and extend it to TARGET_FIX_R4000. Store the destination in a GPR
3395 instead of HI. Split the instruction into a separate multiplication
3396 and MFHI if !TARGET_FIX_R4000.
3397 (<su>muldi3_highpart): Likewise.
3398 (<su>mulsi3_highpart_mulhi_internal): Remove the first alternative
3399 and the "=h" clobber.
3400 (*<su>mulsi3_highpart_neg_mulhi_internal): Likewise.
3401 (<u>mulditi3): New expander.
3402 (<u>mulditi3_internal, <u>mulditi3_r4000): New patterns.
3403 (madsi): Remove "=h" clobber.
3404 (divmod<mode>4, udivmod<mode>4): Turn into define_insn_and_splits.
3405 Force the modulus result to be a GPR and split the instruction into
3406 a division followed by an MFHI after reload.
3407 (<u>divmod<GPR:mode>4_hilo_<HILO:mode>): New instruction.
3408 (*lea_high64): Use d_operand in the define_peephole2. Likewise
3409 the MIPS16 HIGH define_split.
3410 (*movdi_32bit, *movdi_gp32_fp64, *movdi_32bit_mips16): Change type
3411 of acc<->gpr moves to "multi".
3412 (*movdi_64bit): Replace the single "x" alternative with
3413 alternatives for moving into and out of "a".
3414 (*movhi_internal, *movqi_internal): Likewise. Use mips_output_move.
3415 (*movsi_internal): Extend the "d<-A" alternative to "d<-a".
3416 (*movdi_64bit_mips16, *movsi_mips16): Add d<-a alternatives.
3417 Use d_operand in the splitters. Remove redundant CONST_INT checks.
3418 (*movhi_mips16, *movqi_mips16): Likewise. Use mips_output_move.
3419 (movti): New expander.
3420 (*movti, *movti_mips16): New insns.
3421 (mfhilo_<mode>, *mfhilo_<mode>, *mfhilo_<mode>_macc): Delete.
3422 (mfhi<GPR:mode>_<HILO:mode>): New pattern.
3423 (mthi<GPR:mode>_<HILO:mode>): Likewise.
3424 * config/mips/predicates.md (fpr_operand): Delete.
3425 (d_operand): New predicate.
3427 2008-06-09 Michael Meissner <michael.meissner@amd.com>
3429 * config.gcc (i[34567]86-*-*): Put test in quotes to prevent
3430 failure on some Bourne shells.
3431 (x86_64-*-*): Ditto.
3433 2008-06-09 Kai Tietz <kai.tietz@onevision.com>
3435 * config/i386/cygming.h (TARGET_SUBTARGET64_DEFAULT): New.
3437 2008-06-09 Eric Botcazou <ebotcazou@libertysurf.fr>
3439 * doc/install.texi (*-*-solaris2*): Remove obsolete contents.
3440 (sparc-sun-solaris2*): Likewise.
3442 2008-06-09 Arnaud Charlet <charlet@adacore.com
3444 * doc/install.texi: Update requirements to build the Ada compiler.
3446 2008-06-08 Steven Bosscher <stevenb.gcc@gmail.com>
3448 * df-scan.c (struct df_scan_problem_data): Remove the
3449 mw_link_pool alloc pool.
3450 (df_scan_free_internal): Don't free it.
3451 (df_scan_alloc): Don't allocate it.
3452 * df.h (struct df_link): Update comment.
3454 2008-06-08 Nathan Sidwell <nathan@codesourcery.com>
3456 * except.h: Correct checks for when SJLJ exceptions must be used.
3458 2008-06-08 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
3460 * doc/invoke.texi (Wenum-compare): Mention that it is enabled by
3463 2008-06-08 Joseph Myers <joseph@codesourcery.com>
3465 PR tree-optimization/36218
3466 * configure.ac: Use LDFLAGS="${LDFLAGS_FOR_BUILD}" when running
3467 configure for the build system.
3468 (BUILD_LDFLAGS): Define.
3469 * configure: Regenerate.
3470 * Makefile.in (BUILD_LDFLAGS): Define to @BUILD_LDFLAGS@.
3472 2008-07-08 Anatoly Sokolov <aesok@post.ru>
3475 * config/avr/avr.h (HARD_REGNO_RENAME_OK): Define.
3476 * config/avr/avr.c (avr_hard_regno_rename_ok): New function.
3477 * config/avr/avr-protos.h (avr_hard_regno_rename_ok): New prototype.
3479 2008-06-07 Danny Smith <dannysmith@users.sourceforge.net>
3481 * config/i386/cygming.h (MAYBE_UWIN_CPP_BUILTINS): Remove.
3483 2008-06-07 Joseph Myers <joseph@codesourcery.com>
3485 * config.gcc (Obsolete configurations): Remove list of
3487 (Unsupported targets list): Add *-*-linux*aout*, *-*-linux*libc1*,
3488 *-*-solaris2.[0-6], *-*-solaris2.[0-6].*, *-*-sysv*. Remove other
3489 targets matched by those patterns.
3490 (strongarm*-*-*, ep9312*-*-*, xscale-*-*, parisc*-*-*,
3491 m680[012]0-*-*, *-*-linux*libc1*, *-*-linux*aout*,
3492 alpha*-*-unicosmk*, strongarm*-*-freebsd*, ep9312-*-elf,
3493 arm*-*-kaos*, cris-*-aout, parisc*64*-*-linux*, parisc*-*-linux*,
3494 hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-bsd*,
3495 i[34567]86-sequent-ptx4*, i[34567]86-sequent-sysv4*,
3496 i[34567]86-*-beoself*, i[34567]86-*-beos*, i[34567]86-*-sco3.2v5*,
3497 i[34567]86-*-sysv5*, i[34567]86-*-sysv4*, i[34567]86-*-uwin*,
3498 i[34567]86-*-kaos*, m68020-*-elf*, m68010-*-netbsdelf*,
3499 mips-wrs-windiss, mt-*-elf, powerpc-*-beos*, powerpc-*-chorusos*,
3500 powerpc-wrs-windiss*, powerpcle-*-sysv*, powerpc-*-kaos*,
3501 powerpcle-*-kaos*, sh*-*-kaos*, sparc-*-sysv4*, strongarm-*-elf*,
3502 strongarm-*-pe, strongarm-*-kaos*, vax-*-bsd*, vax-*-sysv*,
3503 vax-*-ultrix*, xscale-*-elf, xscale-*-coff,
3504 i[34567]86-*-linux*aout*, i[34567]86-*-linux*libc1): Remove.
3505 Make code for Solaris 7 and greater unconditional for Solaris.
3506 (ep9312-*-*, parisc1*, m680[012]0-*-*, parisc*-*-*, mt-*-*):
3507 Remove --with-* handling.
3508 * config/rs6000/sysv4.h (-mwindiss): Remove from all specs.
3509 (LIB_WINDISS_SPEC, CPP_OS_WINDISS_SPEC, STARTFILE_WINDISS_SPEC,
3510 ENDFILE_WINDISS_SPEC, LINK_START_WINDISS_SPEC,
3511 LINK_OS_WINDISS_SPEC): Remove.
3512 * config/rs6000/sysv4.opt (mwindiss): Remove.
3513 * configure.ac (strongarm*-*-*, xscale*-*-*): Remove.
3514 * configure: Regenerate.
3515 * doc/cpp.texi: Don't mention BeOS.
3516 * doc/extend.texi (interrupt): Don't mention MS1.
3517 * doc/install.texi: (i386-@var{any}-sysv, m68k-bull-sysv,
3518 m68k-hp-hpux, m68000-hp-hpux, m68000-att-sysv,
3519 alphaev5-cray-unicosmk*, xscale-*-*, i?86-*-linux*aout,
3520 i?86-*-sco3.2v5*, i?86-*-udk, m68k-hp-hpux, powerpc-*-sysv4,
3521 powerpc-*-sysv4, powerpcle-*-sysv4, *-*-sysv*, vax-dec-ultrix):
3523 * doc/invoke.texi (MT Options): Remove.
3524 (-mwindiss): Remove.
3525 (CRIS Options): Remove cris-axis-aout references.
3526 (HPPA Options): Don't mention hppa1.1-*-pro.
3527 * doc/md.texi: (MorphoTech family): Remove.
3528 * libgcc2.c: Don't handle UWIN.
3529 * config/alpha/t-unicosmk: Remove.
3530 * config/alpha/unicosmk.h: Remove.
3531 * config/arm/kaos-arm.h: Remove.
3532 * config/arm/kaos-strongarm.h: Remove.
3533 * config/arm/strongarm-coff.h: Remove.
3534 * config/arm/strongarm-elf.h: Remove.
3535 * config/arm/strongarm-pe.h: Remove.
3536 * config/arm/t-strongarm-pe: Remove.
3537 * config/arm/t-xscale-coff: Remove.
3538 * config/arm/t-xscale-elf: Remove.
3539 * config/arm/xscale-coff.h: Remove.
3540 * config/arm/xscale-elf.h: Remove.
3541 * config/chorus.h: Remove.
3542 * config/cris/aout.h: Remove.
3543 * config/cris/aout.opt: Remove.
3544 * config/cris/t-aout: Remove.
3545 * config/i386/beos-elf.h: Remove.
3546 * config/i386/kaos-i386.h: Remove.
3547 * config/i386/ptx4-i.h: Remove.
3548 * config/i386/sco5.h: Remove.
3549 * config/i386/sco5.opt: Remove.
3550 * config/i386/sysv4-cpp.h: Remove.
3551 * config/i386/sysv5.h: Remove.
3552 * config/i386/t-beos: Remove.
3553 * config/i386/t-sco5: Remove.
3554 * config/i386/t-uwin: Remove.
3555 * config/i386/uwin.asm: Remove.
3556 * config/i386/uwin.h: Remove.
3557 * config/kaos.h: Remove.
3558 * config/mips/windiss.h: Remove.
3559 * config/mt: Remove directory.
3560 * config/pa/pa-osf.h: Remove.
3561 * config/pa/pa-pro-end.h: Remove.
3562 * config/pa/t-pro: Remove.
3563 * config/ptx4.h: Remove.
3564 * config/rs6000/beos.h: Remove.
3565 * config/rs6000/kaos-ppc.h: Remove.
3566 * config/rs6000/t-beos: Remove.
3567 * config/rs6000/windiss.h: Remove.
3568 * config/sh/kaos-sh.h: Remove.
3569 * config/sol2-6.h: Remove.
3570 * config/sparc/sol26-sld.h: Remove.
3571 * config/sparc/sysv4-only.h: Remove.
3572 * config/vax/bsd.h: Remove.
3573 * config/vax/t-memfuncs: Remove.
3574 * config/vax/ultrix.h: Remove.
3575 * config/vax/vaxv.h: Remove.
3576 * config/windiss.h: Remove.
3578 2008-06-06 Uros Bizjak <ubizjak@gmail.com>
3580 PR rtl-optimization/36438
3581 * cse.c (fold_rtx) [ASHIFT, LSHIFTRT, ASHIFTRT]: Break out early
3582 for vector shifts with constant scalar shift operands.
3584 2008-06-06 Sandip Matte <sandip@rmicorp.com>
3586 * doc/invoke.texi: Document -march=xlr.
3587 * config/mips/xlr.md: New file.
3588 * config/mips/mips.md: Include it.
3590 * config/mips/mips.h (PROCESSOR_XLR): New processor_type.
3591 * config/mips/mips.c (mips_cpu_info_table): Add an XLR entry.
3592 (mips_rtx_cost_data): Likewise.
3594 2008-06-06 Nathan Froyd <froydnj@codesourcery.com>
3596 * config/rs6000/rs6000.c (rs6000_mode_dependent_address): Remove
3597 PRE_INC and PRE_DEC cases.
3599 2008-06-06 Jakub Jelinek <jakub@redhat.com>
3601 PR rtl-optimization/36419
3602 * except.c (expand_resx_expr): Call do_pending_stack_adjust () before
3603 the emitting jump insn.
3606 * gimplify.c (gimplify_expr) <case TRUTH_NOT_EXPR>: If *expr_p type
3607 is not bool, boolify the whole *expr_p and convert to the desired type.
3609 2008-06-06 Jakub Jelinek <jakub@redhat.com>
3611 * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP value to 200805.
3612 * langhooks.h (struct lang_hooks_for_decls): Add omp_finish_clause.
3613 Add omp_private_outer_ref hook, add another argument to
3614 omp_clause_default_ctor hook.
3615 * langhooks-def.h (LANG_HOOKS_OMP_FINISH_CLAUSE): Define.
3616 (LANG_HOOKS_OMP_PRIVATE_OUTER_REF): Define.
3617 (LANG_HOOKS_OMP_CLAUSE_DEFAULT_CTOR): Change to
3618 hook_tree_tree_tree_tree_null.
3619 (LANG_HOOKS_DECLS): Add LANG_HOOKS_OMP_FINISH_CLAUSE and
3620 LANG_HOOKS_OMP_PRIVATE_OUTER_REF.
3621 * hooks.c (hook_tree_tree_tree_tree_null): New function.
3622 * hooks.h (hook_tree_tree_tree_tree_null): New prototype.
3623 * tree.def (OMP_TASK): New tree code.
3624 * tree.h (OMP_TASK_COPYFN, OMP_TASK_ARG_SIZE, OMP_TASK_ARG_ALIGN,
3625 OMP_CLAUSE_PRIVATE_OUTER_REF, OMP_CLAUSE_LASTPRIVATE_STMT,
3626 OMP_CLAUSE_COLLAPSE_ITERVAR, OMP_CLAUSE_COLLAPSE_COUNT,
3627 OMP_TASKREG_CHECK, OMP_TASKREG_BODY, OMP_TASKREG_CLAUSES,
3628 OMP_TASKREG_FN, OMP_TASKREG_DATA_ARG, OMP_TASK_BODY,
3629 OMP_TASK_CLAUSES, OMP_TASK_FN, OMP_TASK_DATA_ARG,
3630 OMP_CLAUSE_COLLAPSE_EXPR): Define.
3631 (enum omp_clause_default_kind): Add OMP_CLAUSE_DEFAULT_FIRSTPRIVATE.
3632 (OMP_DIRECTIVE_P): Add OMP_TASK.
3633 (OMP_CLAUSE_COLLAPSE, OMP_CLAUSE_UNTIED): New clause codes.
3634 (OMP_CLAUSE_SCHEDULE_AUTO): New schedule kind.
3635 * tree.c (omp_clause_code_name): Add OMP_CLAUSE_COLLAPSE
3636 and OMP_CLAUSE_UNTIED entries.
3637 (omp_clause_num_ops): Likewise. Increase OMP_CLAUSE_LASTPRIVATE
3639 (walk_tree_1): Handle OMP_CLAUSE_COLLAPSE and OMP_CLAUSE_UNTIED.
3640 Walk OMP_CLAUSE_LASTPRIVATE_STMT.
3641 * tree-pretty-print.c (dump_omp_clause): Handle
3642 OMP_CLAUSE_SCHEDULE_AUTO, OMP_CLAUSE_UNTIED, OMP_CLAUSE_COLLAPSE,
3643 OMP_CLAUSE_DEFAULT_FIRSTPRIVATE.
3644 (dump_generic_node): Handle OMP_TASK and collapsed OMP_FOR loops.
3645 * c-omp.c (c_finish_omp_for): Allow pointer iterators. Remove
3646 warning about unsigned iterators. Change decl/init/cond/incr
3647 arguments to TREE_VECs, check arguments for all collapsed loops.
3648 (c_finish_omp_taskwait): New function.
3649 (c_split_parallel_clauses): Put OMP_CLAUSE_COLLAPSE clause to
3651 * c-parser.c (c_parser_omp_for_loop): Parse collapsed loops. Call
3652 default_function_array_conversion on init. Add par_clauses argument.
3653 If decl is present in parallel's lastprivate clause, change it to
3654 shared and add lastprivate clause for decl to OMP_FOR_CLAUSES.
3655 Add clauses argument, on success set OMP_FOR_CLAUSES to it. Look up
3656 collapse count in clauses.
3657 (c_parser_omp_for, c_parser_omp_parallel): Adjust
3658 c_parser_omp_for_loop callers.
3659 (OMP_FOR_CLAUSE_MASK): Add 1 << PRAGMA_OMP_CLAUSE_COLLAPSE.
3660 (c_parser_pragma): Handle PRAGMA_OMP_TASKWAIT.
3661 (c_parser_omp_clause_name): Handle collapse and untied clauses.
3662 (c_parser_omp_clause_collapse, c_parser_omp_clause_untied): New
3664 (c_parser_omp_clause_schedule): Handle schedule(auto).
3665 Include correct location in the error message.
3666 (c_parser_omp_all_clauses): Handle PRAGMA_OMP_CLAUSE_COLLAPSE
3667 and PRAGMA_OMP_CLAUSE_UNTIED.
3668 (OMP_TASK_CLAUSE_MASK): Define.
3669 (c_parser_omp_task, c_parser_omp_taskwait): New functions.
3670 (c_parser_omp_construct): Handle PRAGMA_OMP_TASK.
3671 * tree-nested.c (convert_nonlocal_omp_clauses,
3672 convert_local_omp_clauses): Handle OMP_CLAUSE_LASTPRIVATE_STMT,
3673 OMP_CLAUSE_REDUCTION_INIT, OMP_CLAUSE_REDUCTION_MERGE,
3674 OMP_CLAUSE_COLLAPSE and OMP_CLAUSE_UNTIED.
3675 Don't handle TREE_STATIC or DECL_EXTERNAL VAR_DECLs in
3677 (conver_nonlocal_reference, convert_local_reference,
3678 convert_call_expr): Handle OMP_TASK the same as OMP_PARALLEL. Use
3679 OMP_TASKREG_* macros rather than OMP_PARALLEL_*.
3680 (walk_omp_for): Adjust for OMP_FOR_{INIT,COND,INCR} changes.
3681 * tree-gimple.c (is_gimple_stmt): Handle OMP_TASK.
3682 * c-tree.h (c_begin_omp_task, c_finish_omp_task): New prototypes.
3683 * c-pragma.h (PRAGMA_OMP_TASK, PRAGMA_OMP_TASKWAIT): New.
3684 (PRAGMA_OMP_CLAUSE_COLLAPSE, PRAGMA_OMP_CLAUSE_UNTIED): New.
3685 * c-typeck.c (c_begin_omp_task, c_finish_omp_task): New functions.
3686 (c_finish_omp_clauses): Handle OMP_CLAUSE_COLLAPSE and
3688 * c-pragma.c (init_pragma): Init omp task and omp taskwait pragmas.
3689 * c-common.h (c_finish_omp_taskwait): New prototype.
3690 * gimple-low.c (lower_stmt): Handle OMP_TASK.
3691 * tree-parloops.c (create_parallel_loop): Create 1 entry
3692 vectors for OMP_FOR_{INIT,COND,INCR}.
3693 * tree-cfg.c (remove_useless_stmts_1): Handle OMP_* containers.
3694 (make_edges): Handle OMP_TASK.
3695 * tree-ssa-operands.c (get_expr_operands): Handle collapsed OMP_FOR
3696 loops, adjust for OMP_FOR_{INIT,COND,INCR} changes.
3697 * tree-inline.c (estimate_num_insns_1): Handle OMP_TASK.
3698 * builtin-types.def (BT_PTR_ULONGLONG, BT_PTR_FN_VOID_PTR_PTR,
3699 BT_FN_BOOL_ULONGLONGPTR_ULONGLONGPTR,
3700 BT_FN_BOOL_BOOL_ULL_ULL_ULL_ULLPTR_ULLPTR,
3701 BT_FN_BOOL_BOOL_ULL_ULL_ULL_ULL_ULLPTR_ULLPTR,
3702 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT): New.
3703 * omp-builtins.def (BUILT_IN_GOMP_TASK, BUILT_IN_GOMP_TASKWAIT,
3704 BUILT_IN_GOMP_LOOP_ULL_STATIC_START,
3705 BUILT_IN_GOMP_LOOP_ULL_DYNAMIC_START,
3706 BUILT_IN_GOMP_LOOP_ULL_GUIDED_START,
3707 BUILT_IN_GOMP_LOOP_ULL_RUNTIME_START,
3708 BUILT_IN_GOMP_LOOP_ULL_ORDERED_STATIC_START,
3709 BUILT_IN_GOMP_LOOP_ULL_ORDERED_DYNAMIC_START,
3710 BUILT_IN_GOMP_LOOP_ULL_ORDERED_GUIDED_START,
3711 BUILT_IN_GOMP_LOOP_ULL_ORDERED_RUNTIME_START,
3712 BUILT_IN_GOMP_LOOP_ULL_STATIC_NEXT,
3713 BUILT_IN_GOMP_LOOP_ULL_DYNAMIC_NEXT,
3714 BUILT_IN_GOMP_LOOP_ULL_GUIDED_NEXT,
3715 BUILT_IN_GOMP_LOOP_ULL_RUNTIME_NEXT,
3716 BUILT_IN_GOMP_LOOP_ULL_ORDERED_STATIC_NEXT,
3717 BUILT_IN_GOMP_LOOP_ULL_ORDERED_DYNAMIC_NEXT,
3718 BUILT_IN_GOMP_LOOP_ULL_ORDERED_GUIDED_NEXT,
3719 BUILT_IN_GOMP_LOOP_ULL_ORDERED_RUNTIME_NEXT): New builtins.
3720 * gimplify.c (gimplify_omp_for): Allow pointer type for decl,
3721 handle POINTER_PLUS_EXPR. If loop counter has been replaced and
3722 original iterator is present in lastprivate clause or if
3723 collapse > 1, set OMP_CLAUSE_LASTPRIVATE_STMT. Handle collapsed
3724 OMP_FOR loops, adjust for OMP_FOR_{INIT,COND,INCR} changes.
3725 (gimplify_expr): Handle OMP_SECTIONS_SWITCH and OMP_TASK.
3726 (enum gimplify_omp_var_data): Add GOVD_PRIVATE_OUTER_REF.
3727 (omp_notice_variable): Set GOVD_PRIVATE_OUTER_REF if needed,
3728 if it is set, lookup var in outer contexts too. Handle
3729 OMP_CLAUSE_DEFAULT_FIRSTPRIVATE. Handle vars that are supposed
3730 to be implicitly determined firstprivate for task regions.
3731 (gimplify_scan_omp_clauses): Set GOVD_PRIVATE_OUTER_REF if needed,
3732 if it is set, lookup var in outer contexts too. Set
3733 OMP_CLAUSE_PRIVATE_OUTER_REF if GOVD_PRIVATE_OUTER_REF is set.
3734 Handle OMP_CLAUSE_LASTPRIVATE_STMT, OMP_CLAUSE_COLLAPSE and
3735 OMP_CLAUSE_UNTIED. Take region_type as last argument
3736 instead of in_parallel and in_combined_parallel.
3737 (gimplify_omp_parallel, gimplify_omp_for, gimplify_omp_workshare):
3739 (gimplify_adjust_omp_clauses_1): Set OMP_CLAUSE_PRIVATE_OUTER_REF if
3740 GOVD_PRIVATE_OUTER_REF is set. Call omp_finish_clause langhook.
3741 (new_omp_context): Set default_kind to
3742 OMP_CLAUSE_DEFAULT_UNSPECIFIED for OMP_TASK regions.
3743 (omp_region_type): New enum.
3744 (struct gimplify_omp_ctx): Remove is_parallel and is_combined_parallel
3745 fields, add region_type.
3746 (new_omp_context): Take region_type as argument instead of is_parallel
3747 and is_combined_parallel.
3748 (gimple_add_tmp_var, omp_firstprivatize_variable, omp_notice_variable,
3749 omp_is_private, omp_check_private): Adjust ctx->is_parallel and
3750 ctx->is_combined_parallel checks.
3751 (gimplify_omp_task): New function.
3752 (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_COLLAPSE and
3754 * omp-low.c (extract_omp_for_data): Use schedule(static)
3755 for schedule(auto). Handle pointer and unsigned iterators.
3756 Compute fd->iter_type. Handle POINTER_PLUS_EXPR increments.
3757 Add loops argument. Extract data for collapsed OMP_FOR loops.
3758 (expand_parallel_call): Assert sched_kind isn't auto,
3759 map runtime schedule to index 3.
3760 (struct omp_for_data_loop): New type.
3761 (struct omp_for_data): Remove v, n1, n2, step, cond_code fields.
3762 Add loop, loops, collapse and iter_type fields.
3763 (workshare_safe_to_combine_p): Disallow combined for if
3764 iter_type is unsigned long long. Don't combine collapse > 1 loops
3765 unless all bounds and steps are constant. Adjust extract_omp_for_data
3767 (expand_omp_for_generic): Handle pointer, unsigned and long long
3768 iterators. Handle collapsed OMP_FOR loops. Adjust
3769 for struct omp_for_data changes. If libgomp function doesn't return
3770 boolean_type_node, add comparison of the return value with 0.
3771 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk): Handle
3772 pointer, unsigned and long long iterators. Adjust for struct
3773 omp_for_data changes.
3774 (expand_omp_for): Assert sched_kind isn't auto, map runtime schedule
3775 to index 3. Use GOMP_loop_ull*{start,next} if iter_type is
3776 unsigned long long. Allocate loops array, pass it to
3777 extract_omp_for_data. For collapse > 1 loops use always
3778 expand_omp_for_generic.
3779 (omp_context): Add sfield_map and srecord_type fields.
3780 (is_task_ctx, lookup_sfield): New functions.
3781 (use_pointer_for_field): Use is_task_ctx helper. Change first
3782 argument's type from const_tree to tree. Clarify comment.
3783 In OMP_TASK disallow copy-in/out sharing.
3784 (build_sender_ref): Call lookup_sfield instead of lookup_field.
3785 (install_var_field): Add mask argument. Populate both record_type
3786 and srecord_type if needed.
3787 (delete_omp_context): Destroy sfield_map, clear DECL_ABSTRACT_ORIGIN
3789 (fixup_child_record_type): Also remap FIELD_DECL's DECL_SIZE{,_UNIT}
3790 and DECL_FIELD_OFFSET.
3791 (scan_sharing_clauses): Adjust install_var_field callers. For
3792 firstprivate clauses on explicit tasks allocate the var by value in
3793 record_type unconditionally, rather than by reference.
3794 Handle OMP_CLAUSE_PRIVATE_OUTER_REF. Scan OMP_CLAUSE_LASTPRIVATE_STMT.
3795 Use is_taskreg_ctx instead of is_parallel_ctx.
3796 Handle OMP_CLAUSE_COLLAPSE and OMP_CLAUSE_UNTIED.
3797 (create_omp_child_function_name): Add task_copy argument, use
3798 *_omp_cpyfn* names if it is true.
3799 (create_omp_child_function): Add task_copy argument, if true create
3800 *_omp_cpyfn* helper function.
3801 (scan_omp_parallel): Adjust create_omp_child_function callers.
3802 Rename parallel_nesting_level to taskreg_nesting_level.
3803 (scan_omp_task): New function.
3804 (lower_rec_input_clauses): Don't run constructors for firstprivate
3805 explicit task vars which are initialized by *_omp_cpyfn*.
3806 Pass outer var ref to omp_clause_default_ctor hook if
3807 OMP_CLAUSE_PRIVATE_OUTER_REF or OMP_CLAUSE_LASTPRIVATE.
3808 Replace OMP_CLAUSE_REDUCTION_PLACEHOLDER decls in
3809 OMP_CLAUSE_REDUCTION_INIT.
3810 (lower_send_clauses): Clear DECL_ABSTRACT_ORIGIN if in task to
3811 avoid duplicate setting of fields. Handle
3812 OMP_CLAUSE_PRIVATE_OUTER_REF.
3813 (lower_send_shared_vars): Use srecord_type if non-NULL. Don't
3814 copy-out if TREE_READONLY, only copy-in.
3815 (expand_task_copyfn): New function.
3816 (expand_task_call): New function.
3817 (struct omp_taskcopy_context): New type.
3818 (task_copyfn_copy_decl, task_copyfn_remap_type, create_task_copyfn):
3820 (lower_omp_parallel): Rename to...
3821 (lower_omp_taskreg): ... this. Use OMP_TASKREG_* macros where needed.
3822 Call create_task_copyfn if srecord_type is needed. Adjust
3824 (task_shared_vars): New variable.
3825 (check_omp_nesting_restrictions): Warn if work-sharing,
3826 barrier, master or ordered region is closely nested inside OMP_TASK.
3827 Add warnings for barrier if closely nested inside of work-sharing,
3828 ordered, or master region.
3829 (scan_omp_1): Call check_omp_nesting_restrictions even for
3830 GOMP_barrier calls. Rename parallel_nesting_level to
3831 taskreg_nesting_level. Handle OMP_TASK.
3832 (lower_lastprivate_clauses): Even if some lastprivate is found on a
3833 work-sharing construct, continue looking for them on parent parallel
3835 (lower_omp_for_lastprivate): Add lastprivate clauses
3836 to the beginning of dlist rather than end. Adjust for struct
3837 omp_for_data changes.
3838 (lower_omp_for): Add rec input clauses before OMP_FOR_PRE_BODY,
3839 not after it. Handle collapsed OMP_FOR loops, adjust for
3840 OMP_FOR_{INIT,COND,INCR} changes, adjust extract_omp_for_data caller.
3841 (get_ws_args_for): Adjust extract_omp_for_data caller.
3842 (scan_omp_for): Handle collapsed OMP_FOR
3843 loops, adjust for OMP_FOR_{INIT,COND,INCR} changes.
3844 (lower_omp_single_simple): If libgomp function doesn't return
3845 boolean_type_node, add comparison of the return value with 0.
3846 (diagnose_sb_1, diagnose_sb_2): Handle collapsed OMP_FOR
3847 loops, adjust for OMP_FOR_{INIT,COND,INCR} changes. Handle OMP_TASK.
3848 (parallel_nesting_level): Rename to...
3849 (taskreg_nesting_level): ... this.
3850 (is_taskreg_ctx): New function.
3851 (build_outer_var_ref, omp_copy_decl): Use is_taskreg_ctx instead
3853 (execute_lower_omp): Rename parallel_nesting_level to
3854 taskreg_nesting_level.
3855 (expand_omp_parallel): Rename to...
3856 (expand_omp_taskreg): ... this. Use OMP_TASKREG_* macros where needed.
3857 Call omp_task_call for OMP_TASK regions.
3858 (expand_omp): Adjust caller, handle OMP_TASK.
3859 (lower_omp_1): Adjust lower_omp_taskreg caller, handle OMP_TASK.
3861 * bitmap.c (bitmap_default_obstack_depth): New variable.
3862 (bitmap_obstack_initialize, bitmap_obstack_release): Do nothing
3863 if argument is NULL and bitmap_default_obstack is already initialized.
3864 * ipa-struct-reorg.c (do_reorg_1): Call bitmap_obstack_release
3866 * matrix-reorg.c (matrix_reorg): Likewise.
3868 2008-06-06 Uros Bizjak <ubizjak@gmail.com>
3870 * config/i386/i386.md (*indirect_jump): Macroize using P
3871 mode iterator. Remove !TARGET_64BIT from insn constraints.
3872 (*tablejump_1): Ditto.
3873 (*indirect_jump_rex64): Remove insn pattern.
3874 (*tablejump_1_rex64): Ditto.
3875 (eh_return_<mode>): Macroize using P mode iterator from eh_return_di
3876 and eh_return_si insn patterns.
3878 2008-06-06 Richard Guenther <rguenther@suse.de>
3880 * tree-ssa-structalias.c (merge_smts_into): Remove.
3881 (find_what_p_points_to): Do not bother to compute the
3882 points-to set for pt_anything pointers.
3883 * tree-ssa-operands.c (get_addr_dereference_operands): No NMT
3884 for pt_anything pointers is ok.
3886 2008-06-06 Jan Hubicka <jh@suse.cz>
3888 * passes.c (execute_ipa_pass_list): Do not regenerate summaries.
3890 2008-06-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3892 * cgraph.c: Fix typos in comments.
3893 (cgraph_availability_names): Fix string typo.
3894 * fold-const.c: Fix typos in comments.
3895 (fold_binary): Fix typo in warning.
3896 * genautomata.c: Fix typos in comments.
3897 (check_presence_pattern_sets): Fix typo in local variable.
3898 (output_description): Fix typo in output.
3899 * ggc-zone.c (ggc_pch_finish): Fix typo in error message.
3900 * hwint.h: Likewise.
3901 * matrix-reorg.c (check_allocation_function): Likewise.
3902 * omega.c (smooth_weird_equations): Likewise.
3903 * auto-inc-dec.c: Fix typos in comments.
3904 * bb-reorder.c: Likewise.
3905 * builtins.c: Likewise.
3906 * c-common.c: Likewise.
3907 * c-cppbuiltin.c: Likewise.
3908 * c-parser.c: Likewise.
3909 * c-pretty-print.c: Likewise.
3910 * cfgcleanup.c: Likewise.
3911 * cfgexpand.c: Likewise.
3912 * cfghooks.c: Likewise.
3913 * cfglayout.c: Likewise.
3914 * cfgloopmanip.c: Likewise.
3915 * cgraphunit.c: Likewise.
3916 * coverage.c: Likewise.
3917 * dbxout.c: Likewise.
3918 * df-byte-scan.c: Likewise.
3919 * df-core.c: Likewise.
3920 * df-problems.c: Likewise.
3921 * df-scan.c: Likewise.
3923 * dominance.c: Likewise.
3924 * domwalk.c: Likewise.
3926 * dwarf2out.c: Likewise.
3927 * emit-rtl.c: Likewise.
3928 * et-forest.c: Likewise.
3929 * function.c: Likewise.
3930 * function.h: Likewise.
3932 * gcov-io.c: Likewise.
3935 * genattrtab.c: Likewise.
3936 * ggc-page.c: Likewise.
3937 * gimplify.c: Likewise.
3938 * gthr-lynx.h: Likewise.
3939 * haifa-sched.c: Likewise.
3940 * ipa-cp.c: Likewise.
3941 * ipa-inline.c: Likewise.
3942 * ipa-prop.h: Likewise.
3943 * ipa-pure-const.c: Likewise.
3944 * ipa-struct-reorg.c: Likewise.
3945 * ipa-struct-reorg.h: Likewise.
3946 * ipa-type-escape.c: Likewise.
3948 * loop-doloop.c: Likewise.
3949 * mips-tfile.c: Likewise.
3950 * mkmap-flat.awk: Likewise.
3951 * mkmap-symver.awk: Likewise.
3952 * modulo-sched.c: Likewise.
3953 * omp-low.c: Likewise.
3954 * optabs.c: Likewise.
3955 * optabs.h: Likewise.
3957 * passes.c: Likewise.
3958 * postreload-gcse.c: Likewise.
3959 * postreload.c: Likewise.
3960 * predict.c: Likewise.
3961 * pretty-print.h: Likewise.
3962 * profile.c: Likewise.
3963 * protoize.c: Likewise.
3964 * ra-conflict.c: Likewise.
3966 * recog.c: Likewise.
3967 * regclass.c: Likewise.
3969 * reload.c: Likewise.
3970 * rtl-error.c: Likewise.
3971 * rtlanal.c: Likewise.
3973 * sched-rgn.c: Likewise.
3976 * target.h: Likewise.
3977 * tree-dfa.c: Likewise.
3978 * tree-eh.c: Likewise.
3979 * tree-flow-inline.h: Likewise.
3980 * tree-inline.c: Likewise.
3981 * tree-into-ssa.c: Likewise.
3982 * tree-loop-distribution.c: Likewise.
3983 * tree-nested.c: Likewise.
3984 * tree-parloops.c: Likewise.
3985 * tree-pass.h: Likewise.
3986 * tree-pretty-print.c: Likewise.
3987 * tree-profile.c: Likewise.
3988 * tree-scalar-evolution.c: Likewise.
3989 * tree-sra.c: Likewise.
3990 * tree-ssa-alias-warnings.c: Likewise.
3991 * tree-ssa-ccp.c: Likewise.
3992 * tree-ssa-coalesce.c: Likewise.
3993 * tree-ssa-dom.c: Likewise.
3994 * tree-ssa-dse.c: Likewise.
3995 * tree-ssa-forwprop.c: Likewise.
3996 * tree-ssa-live.c: Likewise.
3997 * tree-ssa-live.h: Likewise.
3998 * tree-ssa-loop-im.c: Likewise.
3999 * tree-ssa-loop-ivopts.c: Likewise.
4000 * tree-ssa-loop-niter.c: Likewise.
4001 * tree-ssa-loop-prefetch.c: Likewise.
4002 * tree-ssa-phiopt.c: Likewise.
4003 * tree-ssa-phiprop.c: Likewise.
4004 * tree-ssa-sccvn.c: Likewise.
4005 * tree-ssa-ter.c: Likewise.
4006 * tree-ssa-threadupdate.c: Likewise.
4007 * tree-ssa.c: Likewise.
4008 * tree-vect-analyze.c: Likewise.
4009 * tree-vect-transform.c: Likewise.
4010 * tree-vectorizer.c: Likewise.
4011 * tree-vn.c: Likewise.
4012 * tree-vrp.c: Likewise.
4014 * tree.def: Likewise.
4016 * unwind-dw2-fde.c: Likewise.
4017 * unwind.inc: Likewise.
4018 * value-prof.c: Likewise.
4019 * vmsdbgout.c: Likewise.
4021 2008-06-05 David Edelsohn <edelsohn@gnu.org>
4023 * config/rs6000/xcoff.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Do not
4024 always place FP constants in the TOC for TARGET_POWERPC64.
4025 * config/rs6000/linux64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Same.
4027 2008-06-05 Joseph Myers <joseph@codesourcery.com>
4029 * config.gcc (powerpc-*-linux*spe*): Use t-dfprules.
4030 * config/rs6000/dfp.md (negdd2, absdd2, negtd2, abstd2): Do not
4031 enable for TARGET_E500_DOUBLE.
4032 (*movdd_softfloat32): Also enable for !TARGET_FPRS.
4033 * config/rs6000/rs6000.c (invalid_e500_subreg): Treat decimal
4034 floating-point modes like integer modes for E500 double.
4035 (rs6000_legitimate_offset_address_p): Likewise.
4036 (rs6000_legitimize_address): Likewise. Do not allow REG+REG
4037 addressing for DDmode for E500 double.
4038 (rs6000_hard_regno_nregs): Do not treat decimal floating-point
4039 modes as using 64-bits of registers for E500 double.
4040 (spe_build_register_parallel): Do not handle DDmode or TDmode.
4041 (rs6000_spe_function_arg): Do not handle DDmode or TDmode
4042 specially for E500 double.
4043 (function_arg): Do not call rs6000_spe_function_arg for DDmode or
4044 TDmode for E500 double.
4045 (rs6000_gimplify_va_arg): Only handle SDmode in registers
4046 specially if TARGET_HARD_FLOAT && TARGET_FPRS.
4047 (rs6000_split_multireg_move): Do not handle TDmode specially for
4049 (spe_func_has_64bit_regs_p): Do not treat DDmode or TDmode as
4050 using 64-bit registers for E500 double.
4051 (emit_frame_save): Do not handle DDmode specially for E500 double.
4052 (gen_frame_mem_offset): Likewise.
4053 (rs6000_function_value): Do not call spe_build_register_parallel
4054 for DDmode or TDmode.
4055 (rs6000_libcall_value): Likewise.
4056 * config/rs6000/rs6000.h (LOCAL_ALIGNMENT, MEMBER_TYPE_FORCES_BLK,
4057 DATA_ALIGNMENT, CLASS_MAX_NREGS): Do not handle DDmode specially
4060 2008-06-04 H.J. Lu <hongjiu.lu@intel.com>
4062 * config/i386/i386.c (setup_incoming_varargs_64): Fix a typo
4065 2008-06-04 Junjie Gu <jgu@tensilica.com>
4067 * config/xtensa/lib2funcs.S (__xtensa_nonlocal_goto): Use unsigned
4068 comparison for frame pointers.
4070 2008-06-04 Andy Hutchinson <hutchinsonandy@aim.com>
4073 * config/avr/avr.h (PUSH_ROUNDING): Remove.
4075 2008-06-04 Andy Hutchinson <hutchinsonandy@aim.com>
4078 * builtins.c (expand_builtin_signbit): Don't take lowpart when
4079 register is already smaller or equal to required mode.
4081 2008-06-04 Xinliang David Li <davidxl@google.com>
4083 * tree-call-cdce.c: New file.
4084 (cond_dead_built_in_calls): New static variable.
4085 (input_domain): New struct.
4086 (check_pow): New function.
4087 (check_builtin_call): Ditto.
4088 (check_target_format): Ditto.
4089 (is_call_dce_candidate): Ditto.
4090 (gen_one_condition): Ditto.
4091 (gen_conditions_for_domain): Ditto.
4092 (get_domain): Ditto.
4093 (gen_conditions_for_pow_cst_base): Ditto.
4094 (gen_conditions_for_pow_int_base): Ditto.
4095 (gen_conditions_for_pow): Ditto.
4096 (get_no_error_domain): Ditto.
4097 (gen_shrink_wrap_conditions): Ditto.
4098 (shrink_wrap_one_built_in_call): Ditto.
4099 (shink_wrap_conditional_dead_built_in_calls): Ditto.
4100 (tree_call_cdce): Ditto.
4101 (gate_call_cdce): Ditto.
4102 (pass_call_cdce): New gimple pass.
4103 * passes.c: (init_optimization_passes): New pass.
4104 * tree-pass.h: New pass declaration.
4105 * opts.c (decode_options): New flag setting.
4106 * common.opt: Add -ftree-builtin-call-dce flag.
4107 * Makefile.in: Add new source file.
4108 * tempvar.def: New tv_id.
4109 * doc/invoke.texi (-ftree-builtin-call-dce): New flag.
4111 2008-06-04 Richard Guenther <rguenther@suse.de>
4113 * tree-flow-inline.h (is_global_var): Do not check TREE_STATIC on MTAGs.
4114 (is_call_clobbered): Always check var_ann->call_clobbered.
4115 (mark_call_clobbered): Always set var_ann->call_clobbered.
4116 (clear_call_clobbered): Always clear var_ann->call_clobbered.
4117 * tree-ssa-alias.c (mark_non_addressable): Use clear_call_clobbered.
4118 (reset_alias_info): Clear call clobbering info on MTAGs and
4120 (set_pt_anything): Set pt_global_mem.
4121 (create_tag_raw): Adjust comment.
4122 (may_be_aliased): Do not check TREE_PUBLIC on MTAGs.
4124 2008-06-04 Joseph Myers <joseph@codesourcery.com>
4125 Maxim Kuvyrkov <maxim@codesourcery.com>
4127 * config/m68k/m68k.opt (mxgot): New option.
4128 * config/m68k/m68k.c (legitimize_pic_address): Handle -mxgot.
4129 (m68k_output_addr_const_extra): New.
4130 * config/m68k/m68k.h (OUTPUT_ADDR_CONST_EXTRA): New.
4131 * config/m68k/m68k-protos.h (m68k_output_addr_const_extra): Declare.
4132 * config/m68k/m68k.md (UNSPEC_GOTOFF): Define.
4133 * doc/invoke.texi (M680x0 Options): Document -mxgot.
4135 2008-06-04 Richard Guenther <rguenther@suse.de>
4137 * tree-ssa-structalias.c (handle_ptr_arith): Correctly handle
4138 negative or non-representable offsets.
4140 2008-06-03 H.J. Lu <hongjiu.lu@intel.com>
4142 * config/i386/i386.c (ix86_gen_leave): New.
4143 (ix86_gen_pop1): Likewise.
4144 (ix86_gen_add3): Likewise.
4145 (ix86_gen_sub3): Likewise.
4146 (ix86_gen_sub3_carry): Likewise.
4147 (ix86_gen_one_cmpl2): Likewise.
4148 (ix86_gen_monitor): Likewise.
4149 (override_options): Initialize ix86_gen_leave, ix86_gen_pop1,
4150 ix86_gen_add3, ix86_gen_sub3, ix86_gen_sub3_carry,
4151 ix86_gen_one_cmpl2 and ix86_gen_monitor.
4152 (ix86_file_end): Use mov%z0 instead of mov{q}/mov{l}.
4153 (output_set_got): Use mov%z0, pop%z0 and add%z0 instead of
4154 mov{q}/mov{l}, pop{q}/pop{l} and add{q}/add{l}.
4155 (ix86_expand_epilogue): Updated.
4156 (print_operand): Handle integer register operand for 'z'.
4157 (ix86_expand_strlensi_unroll_1): Likewise.
4158 (ix86_expand_strlen): Likewise.
4159 (ix86_expand_builtin): Likewise.
4160 (x86_output_mi_thunk): Use mov%z1 and add%z1 instead of
4161 mov{q}/mov{l} and add{q}/add{l}.
4163 2008-06-03 Kai Tietz <kai.tietz@onevision.com>
4165 * config/i386/i386.md (P): New mode iterator.
4166 (SFmode push_operand splitter): Macroize DImode and SImode pushes
4167 using P mode iterator.
4168 (DFmode push_operand splitter): Ditto.
4169 (XFmode push_operand splitter): Ditto.
4170 (DFmode float_extend SFmode push_operand splitter): Ditto.
4171 (XFmode float_extend SFmode push_operand splitter): Do not generate
4172 SImode pushes for 64bit target. Macroize Dimode and SImode
4173 pushes using P mode iterator.
4174 (XFmode float_extend DFmode push_operand splitter): Ditto.
4176 2008-06-03 Kai Tietz <kai.tietz@onevision.com>
4178 * config/i386/i386-protos.h (ix86_reg_parm_stack_space): New.
4179 * config/i386/i386.h (ix86_reg_parm_stack_space): Removed prototype.
4180 * config/i386/i386.c (ix86_reg_parm_stack_space): Changed
4182 (ix86_call_abi_override): Remove check for call_used_regs.
4184 2008-06-03 Richard Guenther <rguenther@suse.de>
4186 * tree-ssa-structalias.c (find_func_aliases): Add constraints
4187 for the lhs of calls if the return type contains pointers.
4189 2008-06-03 Kai Tietz <kai.tietz@onevision.com>
4191 * doc/tm.texi (OVERRIDE_ABI_FORMAT): New.
4192 * doc/extend.texi (ms_abi,sysv_abi): New attribute description.
4193 * function.c (allocate_struct_function): Use of OVERRIDE_ABI_FORMAT.
4194 * config/i386/cygming.h (TARGET_64BIT_MS_ABI): Make use
4195 of cfun and DEFAULT_ABI to deceide abi mode.
4197 (REG_PARM_STACK_SPACE): Removed.
4198 (OUTGOING_REG_PARM_STACK_SPACE): Removed.
4199 (STACK_BOUNDARY): Use default target to deceide stack boundary.
4200 * config/i386/i386-protos.h (ix86_cfun_abi): New.
4201 (ix86_function_abi): Likewise.
4202 (ix86_function_type_abi): Likewise.
4203 (ix86_call_abi_override): Likewise.
4204 * confid/i386/i386.md (SSE_REGPARM_MAX): Replaced by abi
4205 specific define X86_64_SSE_REGPARM_MAX/X64_SSE_REGPARM_MAX.
4206 * config/i386/i386.c (override_options): Replace TARGET_64BIT_MS_ABI.
4207 (X86_64_VARARGS_SIZE): Replace REGPARM_MAX and SSE_REGPARM_MAX by abi
4209 (X86_64_REGPARM_MAX): New.
4210 (X86_64_SSE_REGPARM_MAX): New.
4211 (X64_REGPARM_MAX): New.
4212 (X64_SSE_REGPARM_MAX): New.
4213 (X86_32_REGPARM_MAX): New.
4214 (X86_32_SSE_REGPARM_MAX): New.
4215 (ix86_handle_cconv_attribute): Replace TARGET_64BIT_MS_ABI.
4216 (ix86_function_regparm): Handle user calling abi.
4217 (ix86_function_arg_regno_p): Replace TARGET_64BIT_MS_ABI
4218 by DEFAULT_ABI versus SYSV_ABI check.
4219 (ix86_reg_parm_stack_space): New.
4220 (ix86_function_type_abi): New.
4221 (ix86_call_abi_override): New.
4222 (ix86_function_abi): New.
4223 (ix86_cfun_abi): New.
4224 (init_cumulative_args): Call abi specific initialization.
4225 (function_arg_advance): Remove TARGET_64BIT_MS_ABI.
4226 (function_arg_64): Extend SSE_REGPARM_MAX check.
4227 (function_arg (): Remove TARGET_64BIT_MS_ABI.
4228 (ix86_pass_by_reference): Likewise.
4229 (ix86_function_value_regno_p): Likewise.
4230 (function_value_64): Replace REGPARM_MAX, and SSE_REGPARM_MAX.
4231 (ix86_function_value_1): Replace TARGET_64BIT_MS_ABI.
4232 (return_in_memory_ms_64): Replace TARGET_64BIT_MS_ABI.
4233 (ix86_build_builtin_va_list): Replace TARGET_64BIT_MS_ABI.
4234 (setup_incoming_varargs_64): Adjust regparm for call abi.
4235 (ix86_setup_incoming_varargs): Replace TARGET_64BIT_MS_ABI.
4236 (ix86_va_start): Likewise.
4237 (ix86_gimplify_va_arg): Likewise.
4238 (ix86_expand_prologue): Likewise.
4239 (output_pic_addr_const): Likewise.
4240 (ix86_init_machine_status): Initialize call_abi by DEFAULT_ABI.
4241 (x86_this_parameter): Replace TARGET_64BIT_MS_ABI.
4242 (x86_output_mi_thunk): Likewise.
4243 (x86_function_profiler): Likewise.
4244 * config/i386/i386.h (TARGET_64BIT_MS_ABI): Use ix64_cfun_abi.
4245 (SYSV_ABI, MS_ABI): New constants.
4247 (init_regs): Add prototype of function in regclass.c file.
4248 (OVERRIDE_ABI_FORMAT): New.
4249 (CONDITIONAL_REGISTER_USAGE): Remove TARGET_64BIT_MS_ABI part.
4250 (REG_PARM_STACK_SPACE): Use ix86_reg_parm_stack_space.
4251 (OUTGOING_REG_PARM_STACK_SPACE): New.
4252 (ix86_reg_parm_stack_space): New prototype.
4253 (CUMULATIVE_ARGS): Add call_abi member.
4254 (machine_function): Add call_abi member.
4255 * config/i386/mingw32.h (EXTRA_OS_CPP_BUILTINS): Replace
4256 TARGET_64BIT_MS_ABI by DEFAULT_ABI compare to MS_ABI.
4258 2008-06-02 Andy Hutchinson <hutchinsonandy@aim.com>
4261 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Redefine.
4262 (avr_builtin_setjmp_frame_value): New function.
4263 * config/avr/avr.md (nonlocal_goto_receiver): Define.
4264 (nonlocal_goto): Define.
4266 2008-06-02 Richard Sandiford <rdsandiford@googlemail.com>
4268 * config/mips/mips.c (mips_emit_loadgp): Return early if
4269 there is nothing do to, otherwise emit a blockage if
4270 !TARGET_EXPLICIT_RELOCS || crtl->profile.
4271 * config/mips/mips.md (loadgp_blockage): Use SI rather than DI.
4273 2008-06-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4275 * configure.ac: Drop unneeded backslash ending up in config.in.
4276 * acinclude.m4: Likewise.
4277 * config.in: Regenerate.
4279 2008-05-26 Jan Hubicka <jh@suse.cz>
4281 * predict.c (maybe_hot_frequency_p): Break out of...
4282 (maybe_hot_bb_p): ... here.
4283 (maybe_hot_edge_p): New.
4284 * tree-ssa-coalesce.c (coalesce_cost_edge): Compute cost based on edge.
4285 * basic-block.h (maybe_hot_edge_p): Declare.
4287 2008-05-31 Uros Bizjak <ubizjak@gmail.com>
4289 * config/i386/i386.md (*cmpfp_<mode>): Enable for optimize_size.
4290 (*cmpfp_<mode>_cc): Ditto.
4291 (*fp_jcc_8<mode>_387): Ditto.
4292 (*fop_<MODEF:mode>_2_i387): Ditto.
4293 (*fop_<MODEF:mode>_3_i387): Ditto.
4294 (*fop_xf_2_i387): Ditto.
4295 (*fop_xf_3_i387): Ditto.
4297 2008-06-02 Tomas Bily <tbily@suse.cz>
4299 * tree-ssa-ifcombine.c (get_name_for_bit_test): Use CONVERT_EXPR_P.
4301 2008-06-01 Richard Sandiford <rdsandiford@googlemail.com>
4303 * config/mips/mips.c (mips_valid_offset_p): New function.
4304 (mips_valid_lo_sum_p): Likewise.
4305 (mips_classify_address): Use them.
4306 (mips_force_address): New function.
4307 (mips_legitimize_address): Use it.
4308 * config/mips/mips.md (MOVE128): New mode iterator.
4309 (movtf): Require TARGET_64BIT. Remove empty strings.
4310 (*movtf_internal): Rename to...
4311 (*movtf): ...this and require !TARGET_MIPS16. Use "m" instead
4312 of "R" and use {,fp}{load,store} attributes instead of "multi".
4313 Use a separate define_split.
4314 (*movtf_mips16): New pattern.
4316 2008-06-01 Richard Sandiford <rdsandiford@googlemail.com>
4318 * config/mips/mips-protos.h (mips_expand_before_return): Declare.
4319 * config/mips/mips.c (mips_expand_before_return): New function.
4320 (mips_expand_epilogue): Call it.
4321 * config/mips/mips.md (return): Turn into a define_expand.
4322 (*return): New insn.
4324 2008-06-01 Richard Sandiford <rdsandiford@googlemail.com>
4326 * rtl.h (emit_clobber, gen_clobber, emit_use, gen_use): Declare.
4327 * emit-rtl.c (emit_clobber, gen_clobber, emit_use, gen_use): New
4328 functions. Do not emit uses and clobbers of CONCATs; individually
4329 use and clobber their operands.
4330 * builtins.c (expand_builtin_setjmp_receiver): Use emit_clobber,
4331 gen_clobber, emit_use and gen_use.
4332 (expand_builtin_longjmp, expand_builtin_nonlocal_goto): Likewise.
4333 (expand_builtin_return): Likewise.
4334 * cfgbuild.c (count_basic_blocks): Likewise.
4335 * cfgrtl.c (rtl_flow_call_edges_add): Likewise.
4336 * explow.c (emit_stack_restore): Likewise.
4337 * expmed.c (extract_bit_field_1): Likewise.
4338 * expr.c (convert_move, emit_move_complex_parts): Likewise.
4339 (emit_move_multi_word, store_constructor): Likewise.
4340 * function.c (do_clobber_return_reg, do_use_return_reg): Likewise.
4341 (thread_prologue_and_epilogue_insns): Likewise.
4342 * lower-subreg.c (resolve_simple_move): Likewise.
4343 * optabs.c (widen_operand, expand_binop): Likewise.
4344 (expand_doubleword_bswap, emit_no_conflict_block): Likewise.
4345 * reload.c (find_reloads): Likewise.
4346 * reload1.c (eliminate_regs_in_insn): Likewise.
4347 * stmt.c (expand_nl_goto_receiver): Likewise.
4348 * config/alpha/alpha.md (builtin_longjmp): Likewise.
4349 * config/arc/arc.md (*movdi_insn, *movdf_insn): Likewise.
4350 * config/arm/arm.c (arm_load_pic_register): Likewise.
4351 (thumb1_expand_epilogue, thumb_set_return_address): Likewise.
4352 * config/arm/arm.md (untyped_return): Likewise.
4353 * config/arm/linux-elf.h (PROFILE_HOOK): Likewise.
4354 * config/avr/avr.c (expand_prologue): Likewise.
4355 * config/bfin/bfin.c (do_unlink): Likewise.
4356 * config/bfin/bfin.md (<optab>di3, adddi3, subdi3): Likewise.
4357 * config/cris/cris.c (cris_expand_prologue): Likewise.
4358 * config/darwin.c (machopic_indirect_data_reference): Likewise.
4359 (machopic_legitimize_pic_address): Likewise.
4360 * config/frv/frv.c (frv_frame_access, frv_expand_epilogue): Likewise.
4361 (frv_ifcvt_modify_insn, frv_expand_mdpackh_builtin): Likewise.
4362 * config/i386/i386.c (ix86_expand_vector_move_misalign): Likewise.
4363 (ix86_expand_convert_uns_didf_sse): Likewise.
4364 (ix86_expand_vector_init_general): Likewise.
4365 * config/ia64/ia64.md (eh_epilogue): Likewise.
4366 * config/iq2000/iq2000.c (iq2000_expand_epilogue): Likewise.
4367 * config/m32c/m32c.c (m32c_emit_eh_epilogue): Likewise.
4368 * config/m32r/m32r.c (m32r_reload_lr): Likewise.
4369 (config/iq2000/iq2000.c): Likewise.
4370 * config/mips/mips.md (fixuns_truncdfsi2): Likewise.
4371 (fixuns_truncdfdi2, fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
4372 (builtin_longjmp): Likewise.
4373 * config/mn10300/mn10300.md (call, call_value): Likewise.
4374 * config/pa/pa.md (nonlocal_goto, nonlocal_longjmp): Likewise.
4375 * config/pdp11/pdp11.md (abshi2): Likewise.
4376 * config/rs6000/rs6000.c (rs6000_emit_move): Likewise.
4377 * config/s390/s390.c (s390_emit_prologue): Likewise.
4378 * config/s390/s390.md (movmem_long, setmem_long): Likewise.
4379 (cmpmem_long, extendsidi2, zero_extendsidi2, udivmoddi4): Likewise.
4380 (builtin_setjmp_receiver, restore_stack_nonlocal): Likewise.
4381 * config/sh/sh.c (prepare_move_operands): Likewise.
4382 (output_stack_adjust, sh_expand_epilogue): Likewise.
4383 (sh_set_return_address, sh_expand_t_scc): Likewise.
4384 * config/sparc/sparc.c (load_pic_register): Likewise.
4385 * config/sparc/sparc.md (untyped_return, nonlocal_goto): Likewise.
4386 * config/spu/spu.c (spu_expand_epilogue): Likewise.
4387 * config/v850/v850.c (expand_epilogue): Likewise.
4389 2008-05-31 Anatoly Sokolov <aesok@post.ru>
4391 * config/avr/avr.md (UNSPECV_WRITE_SP_IRQ_ON): New constants.
4392 (UNSPECV_WRITE_SP_IRQ_OFF): (Ditto.).
4393 (movhi_sp_r_irq_off, movhi_sp_r_irq_on): New insn.
4394 * config/avr/avr.c (expand_prologue, expand_epilogue): Use
4395 movhi_sp_r_irq_off and movhi_sp_r_irq_on insns for writing to the
4396 stack pointer register.
4397 (output_movhi): Remove code for interrupt specific writing to the
4398 stack pointer register.
4400 2008-05-31 Richard Guenther <rguenther@suse.de>
4402 PR tree-optimization/34244
4403 * fold-const.c (tree_expr_nonnegative_warnv_p): Do not ask VRP.
4404 (tree_expr_nonzero_warnv_p): Likewise.
4405 * tree-vrp.c (vrp_expr_computes_nonnegative): Call
4406 ssa_name_nonnegative_p.
4407 (vrp_expr_computes_nonzero): Call ssa_name_nonzero_p.
4408 (extract_range_from_unary_expr): Use vrp_expr_computes_nonzero,
4409 not tree_expr_nonzero_warnv_p.
4411 PR tree-optimization/36262
4413 2007-11-29 Zdenek Dvorak <ook@ucw.cz>
4415 PR tree-optimization/34244
4416 * tree-vrp.c (adjust_range_with_scev): Clear scev cache.
4417 (record_numbers_of_iterations): New function.
4418 (execute_vrp): Cache the numbers of iterations of loops.
4419 * tree-scalar-evolution.c (scev_reset_except_niters):
4421 (scev_reset): Use scev_reset_except_niters.
4422 * tree-scalar-evolution.h (scev_reset_except_niters): Declare.
4424 2008-05-31 Bernd Schmidt <bernd.schmidt@analog.com>
4426 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
4427 __WORKAROUND_RETS when appropriate.
4429 2008-05-31 Uros Bizjak <ubizjak@gmail.com>
4431 * config/i386/i386.md (*fop_<mode>_comm_mixed): Macroize from
4432 *fop_sf_comm_mixed and *fop_df_comm_mixed insn patterns using MODEF
4434 (*fop_<mode>_comm_sse): Macroize from *fop_sf_comm_sse and
4435 *fop_df_comm_sse insn patterns using MODEF mode iterator.
4436 (*fop_<mode>_comm_i387): Macroize from *fop_sf_comm_i387 and
4437 *fop_df_comm_i387 insn patterns using MODEF mode iterator.
4438 (*fop_<mode>_1_mixed): Macroize from *fop_sf_1_mixed and
4439 *fop_df_1_mixed insn patterns using MODEF mode iterator.
4440 (*fop_<mode>_1_sse): Macroize from *fop_sf_1_sse and
4441 *fop_df_1_sse insn patterns using MODEF mode iterator.
4442 (*fop_<mode>_1_i387): Macroize from *fop_sf_1_i387 and
4443 *fop_df_1_i387 insn patterns using MODEF mode iterator.
4444 (*fop_<MODEF:mode>_2_i387): Macroize from *fop_sf_2<mode>_i387 and
4445 *fop_df_2<mode>_i387 insn patterns using MODEF mode iterator.
4446 (*fop_<MODEF:mode>_3_i387): Macroize from *fop_sf_3<mode>_i387 and
4447 *fop_df_3<mode>_i387 insn patterns using MODEF mode iterator.
4448 (*fop_xf_2_i387): Rename from *fop_xf_2<mode>_i387.
4449 (*fop_xf_3_i387): Rename from *fop_xf_3<mode>_i387.
4450 (*fop_xf_4_i387): Use <MODE> for mode attribute.
4451 (*fop_xf_5_i387): Ditto.
4452 (*fop_xf_6_i387): Ditto.
4454 2008-05-30 Richard Guenther <rguenther@suse.de>
4456 * builtins.c (build_string_literal): Avoid generating
4457 a non-gimple_val result.
4459 2008-05-30 DJ Delorie <dj@redhat.com>
4461 * exec-tool.in: Use an environment variable (private) instead of a
4462 file (shared) as a semaphore, so as to not break parallel builds.
4464 2008-05-30 Steven Bosscher <stevenb.gcc@gmail.com>
4466 * optabs.c (maybe_encapsulate_block): Remove.
4467 (emit_libcall_block): Adjust accordingly.
4468 * optabs.h (maybe_encapsulate_block): Remove prototype.
4470 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address):
4471 Don't use maybe_encapsulate_block.
4473 2008-05-30 Steven Bosscher <stevenb.gcc@gmail.com>
4475 * config/rs6000/rs6000.c (rs6000_legitimize_address,
4476 rs6000_legitimize_reload_address, rs6000_emit_move): Make sure an
4477 rtx is a SYMBOL_REF before calling get_pool_constant.
4479 2008-05-30 Eric Botcazou <ebotcazou@adacore.com>
4481 * fold-const.c (fold_unary) <CASE_CONVERT>: Add ??? comment.
4483 2008-05-30 Danny Smith <dannysmith@users.sourceforge.net>
4485 * incpath.c: Use HOST_LACKS_INODE_NUMBERS conditional
4486 rather than OS names to choose INO_T_EQ definition.
4487 (DIRS_EQ) [!INO_T_EQ]: Don't worry about case in comparison.
4488 (add_path) [!INO_T_EQ]: Use lrealpath to fill canonical_name field.
4490 2008-05-29 Daniel Franke <franke.daniel@gmail.com>
4493 * config/darwin-f.c: New.
4494 * config/t-darwin: Added rule to build darwin-f.o.
4495 * config.gcc: Defined new variable, fortran_target_objs.
4496 (*-*-darwin*): Set fortran_target_objs.
4497 * Makefile.in: Defined new variable FORTRAN_TARGET_OBJS.
4498 * configure.ac: Substitute fortran_target_objs, set FORTRAN_TARGET_OBJS.
4499 * configure: Regenerated.
4501 2008-05-29 H.J. Lu <hongjiu.lu@intel.com>
4504 * config/i386/i386.c (ix86_function_arg_boundary): Convert to
4505 canonical type if needed.
4507 2008-05-29 Eric Botcazou <ebotcazou@adacore.com>
4509 * tree-nested.c (check_for_nested_with_variably_modified): Fix typo.
4511 2008-05-29 Richard Guenther <rguenther@suse.de>
4513 PR tree-optimization/36343
4514 PR tree-optimization/36346
4515 PR tree-optimization/36347
4516 * tree-flow.h (clobber_what_p_points_to): Declare.
4517 * tree-ssa-structalias.c (set_uids_in_ptset): Whether the
4518 pointed-to variable is dereferenced is irrelevant to whether
4519 the pointer can access the pointed-to variable.
4520 (clobber_what_p_points_to): New function.
4521 * tree-ssa-alias.c (set_initial_properties): Use it.
4522 * tree-ssa.c (verify_flow_sensitive_alias_info): Adjust
4523 call clobber check for NMTs.
4525 2008-05-28 Seongbae Park <seongbae.park@gmail.com>
4527 * value-prof.c (tree_ic_transform): Use HOST_WIDEST_INT_PRINT_DEC
4528 for printing gcov_type.
4530 2008-05-28 Seongbae Park <seongbae.park@gmail.com>
4532 * tree-ssa-propagate.c (set_rhs): Preserve the histogram
4533 and the eh region information.
4534 * value-prof.c (gimple_move_stmt_histograms): New function.
4535 * value-prof.h (gimple_move_stmt_histograms): New function declaration.
4537 2008-05-28 Andreas Tobler <a.tobler@schweiz.org>
4539 * config/pa/pa.md: Remove extern frame_pointer_needed declaration.
4541 2008-05-28 Seongbae Park <seongbae.park@gmail.com>
4543 * value-prof.c (tree_ic_transform): Print counts.
4544 * tree-profile.c (tree_gen_ic_func_profiler):
4545 Clear __gcov_indreict_call_callee variable to avoid misattribution
4548 2008-05-28 Rafael Espindola <espindola@google.com>
4550 * see.c (see_def_extension_not_merged): Use copy_rtx_if_shared to avoid
4553 2008-05-28 Richard Guenther <rguenther@suse.de>
4555 PR tree-optimization/36339
4556 * tree-ssa-alias.c (set_initial_properties): Move pt_anything
4557 and clobbering code out of the loop.
4559 2008-05-28 Andreas Krebbel <krebbel1@de.ibm.com>
4561 * config/s390/constraints.md ('b', 'C', 'D', 'e'): New constraint
4564 * config/s390/s390.c (s390_compare_and_branch_condition_mask,
4565 s390_contiguous_bitmask_p, s390_symref_operand_p,
4566 s390_check_symref_alignment, s390_reload_larl_operand,
4567 s390_reload_symref_address): New functions.
4568 (s390_branch_condition_mnemonic): Support compare and branch
4570 (s390_mem_constraint): Avoid symrefs to accepted by the 'T'
4571 and 'W' constraints.
4572 (s390_secondary_reload): Add secondary reloads for unaligned
4573 symbol refs or symbol refs to floating point or QI/TI mode
4575 (legitimate_address_p): Accept symbol references as addresses.
4576 (s390_expand_insv): Use rotate and insert selected bits
4577 instruction for insv when building for z10.
4578 (print_operand_address): Handle symbol ref addresses.
4579 (print_operand): Output modifier 'c' added for signed byte values.
4580 (s390_encode_section_info): Mark symbol refs with
4581 SYMBOL_FLAG_NOT_NATURALLY_ALIGNED if appropriate.
4583 * config/s390/s390.md (SIL,RRS,RIS): New instruction formats added.
4584 (length attribute): RRF, RRR have 4 byte length.
4585 (FPALL, INTALL): New mode iterators added.
4586 (*tstdi_sign, *cmpdi_ccs_sign, *cmpsi_ccs_sign,
4587 *cmp<mode>_ccs, *cmpdi_ccu_zero, *cmpdi_ccu, *cmpsi_ccu, *cmphi_ccu,
4588 *movdi_64, *movsi_zarch, *movhi, movmem<mode>, *movmem_short,
4589 *extendsidi2, *extendhidi2_extimm, *extendhisi2_extimm,
4590 *zero_extendsidi2, adddi3, *adddi3_31z, *adddi3_31, addsi3,
4591 *add<mode>3, *add<mode>3_carry1_cc, *add<mode>3_carry2_cc,
4592 *add<mode>3_cc, *add<mode>3_imm_cc, *muldi3_sign, muldi3,
4593 *mulsi3_sign, mulsi3, mulsidi3): Patterns enhanced with z10
4595 (*cmphi_ccs_z10, *cmpdi_ccs_signhi_rl, *cmpsi_ccu_zerohi_rlsi,
4596 *cmp<GPR:mode>_ccu_zerohi_rldi, *cmp_and_br_signed_<mode>,
4597 *cmp_and_br_unsigned_<mode>, reload<INTALL:mode><P:mode>_tomem_z10,
4598 reload<INTALL:mode><P:mode>_toreg_z10,
4599 reload<FPALL:mode><P:mode>_tomem_z10,
4600 reload<FPALL:mode><P:mode>_toreg_z10,
4601 reload<P:mode>_larl_odd_addend_z10, *execute_rl, *insv<mode>_z10,
4602 *insv<mode>_z10_noshift, *insv<mode>_or_z10_noshift,
4603 *zero_extendhi<mode>2_z10, *cmp_and_trap_signed_int<mode>,
4604 *cmp_and_trap_unsigned_int<mode>, prefetch): New pattern or expander
4606 (movmem, clrmem, cmpmem): New splitters added.
4608 * config/s390/predicates.md (larl_operand): Use
4609 SYMBOL_REF_FLAGS (op) & SYMBOL_FLAG_ALIGN1 replaced with
4610 SYMBOL_REF_ALIGN1_P.
4611 (s390_signed_integer_comparison,
4612 s390_unsigned_integer_comparison): New predicates.
4614 * config/s390/s390-protos.h (s390_check_symref_alignment,
4615 s390_contiguous_bitmask_p, s390_reload_larl_operand,
4616 s390_reload_symref_address,
4617 s390_compare_and_branch_condition_mask): Prototypes added.
4619 * config/s390/s390.h (TARGET_MEM_CONSTRAINT,
4620 SYMBOL_REF_ALIGN1_P, SYMBOL_FLAG_NOT_NATURALLY_ALIGNED,
4621 SYMBOL_REF_NOT_NATURALLY_ALIGNED_P): Macro definition added.
4623 2008-05-28 Andreas Krebbel <krebbel1@de.ibm.com>
4625 * config/s390/s390.c (z10_cost): New cost function for z10.
4626 (s390_handle_arch_option, override_options): Support -march=z10 switch.
4627 (s390_issue_rate): Adjust issue rate for z10.
4628 * config/s390/s390.h (processor_type): Add PROCESSOR_2097_Z10.
4629 (processor_flags): Add PF_Z10.
4630 (TARGET_CPU_Z10, TARGET_Z10): New macro definitions.
4631 * config/s390/s390.md (cpu, cpu_facility attributes): Add z10.
4632 * gcc/config.gcc: Add z10.
4634 2008-05-28 Richard Guenther <rguenther@suse.de>
4636 PR tree-optimization/36291
4637 * tree-flow. h (struct gimple_df): Remove var_anns member.
4638 * tree-flow-inline.h (gimple_var_anns): Remove.
4639 (var_ann): Simplify.
4640 * tree-dfa.c (create_var_ann): Simplify.
4641 (remove_referenced_var): Clear alias info from var_anns of globals.
4642 * tree-ssa.c (init_tree_ssa): Do not allocate var_anns.
4643 (delete_tree_ssa): Clear alias info from var_anns of globals.
4644 Do not free var_anns.
4645 (var_ann_eq): Remove.
4646 (var_ann_hash): Likewise.
4648 2008-05-28 Mark Shinwell <shinwell@codesourcery.com>
4650 * config/mips/mips.c (mips_cpu_info_table): Add loongson2e
4651 and loongson2f entries.
4652 (mips_rtx_cost_data): Add entries for Loongson-2E/2F.
4653 * config/mips/mips.h (processor_type): Add Loongson-2E
4654 and Loongson-2F entries.
4655 (TARGET_LOONGSON_2E, TARGET_LOONGSON_2F, TARGET_LOONGSON_2EF): New.
4656 (MIPS_ISA_LEVEL_SPEC): Handle Loongson-2E/2F.
4657 * config/mips/mips.md (define_attr cpu): Add loongson2e and loongson2f.
4658 * doc/invoke.texi (MIPS Options): Document loongson2e
4659 and loongson2f processor names.
4661 2008-05-27 H.J. Lu <hongjiu.lu@intel.com>
4665 * config/i386/i386.c (ix86_function_arg_boundary): Use
4666 alignment of canonical type.
4667 (ix86_expand_vector_move): Check unaligned memory access for
4670 2008-05-27 H.J. Lu <hongjiu.lu@intel.com>
4672 * dwarf2out.c (current_fde): Change return type to dw_fde_ref.
4673 Moved to the front of file.
4675 2008-05-27 Xuepeng Guo <xuepeng.guo@intel.com>
4676 H.J. Lu <hongjiu.lu@intel.com>
4678 * dwarf2out.c (current_fde): New.
4680 (lookup_cfa:): Likewise.
4681 (dwarf2out_end_epilogue): Likewise.
4682 (dwarf2out_note_section_used): Likewise.
4684 2008-05-27 Michael Matz <matz@suse.de>
4687 * c.opt (Wenum-compare): New warning option.
4688 * doc/invoke.texi (Warning Options): Document -Wenum-compare.
4690 2008-05-27 Michael Matz <matz@suse.de>
4693 * tree-gimple.c (is_gimple_mem_rhs): Remove work-around for
4695 * tree-tailcall.c (find_tail_calls): Don't mark calls storing
4696 into memory as tail calls.
4698 2008-05-27 Richard Guenther <rguenther@suse.de>
4700 PR tree-optimization/36339
4701 * tree-ssa-alias.c (set_initial_properties): Escaped pt_anything
4702 pointers cause all addressable variables to be call clobbered.
4704 2008-05-27 Richard Guenther <rguenther@suse.de>
4706 PR tree-optimization/36245
4707 * tree-ssa-address.c (add_to_parts): Deal with non-pointer bases.
4709 2008-05-27 Andreas Krebbel <krebbel1@de.ibm.com>
4711 * config/s390/s390.md: Replace all occurences of the 'm'
4712 constraint with 'RT'.
4714 2008-05-27 Andreas Krebbel <krebbel1@de.ibm.com>
4716 * config/s390/s390.md ("cpu_facility", "enabled"): Attribute
4718 ("*movdi_64dfp", "*movdi_64extimm", "*movdi_64"): Merged into
4720 ("*anddi3_extimm", "*anddi3"): Merged into "*anddi3".
4721 ("*iordi3_extimm", "*iordi3"): Merged into "*iordi3".
4722 ("*xordi3_extimm", "*xordi3"): Merged into "*xordi3".
4724 2008-05-27 Andreas Krebbel <krebbel1@de.ibm.com>
4726 * reload.c: (find_reloads): Skip alternatives according to the
4727 "enabled" attribute. Constify the constraint variable.
4728 * recog.c (get_attr_enabled): Add default implementation.
4729 (extract_insn): Set the alternative_enabled_p array
4730 in the recog_data struct.
4731 (preprocess_constraints, constrain_operands): Skip
4732 alternatives according to the "enabled" attribute
4733 * recog.h (struct recog_data): New field alternative_enabled_p.
4734 (skip_alternative): New inline function.
4735 * regclass.c: (record_operand_costs): Check the "enabled" attribute.
4736 (record_reg_classes): Skip alternative according to the
4737 "enabled" attribute.
4739 * doc/md.texi: Add documention for the "enabled" attribute.
4741 2008-05-27 Andreas Krebbel <krebbel1@de.ibm.com>
4743 * defaults.h (TARGET_MEM_CONSTRAINT): New target macro added.
4744 * postreload.c (reload_cse_simplify_operands): Replace 'm'
4745 constraint with TARGET_MEM_CONSTRAINT.
4746 * recog.c (asm_operand_ok, preprocess_constraints,
4747 constrain_operands): Likewise.
4748 * regclass.c (record_reg_classes): Likewise.
4749 * reload.c (find_reloads, alternative_allows_const_pool_ref): Likewise.
4750 * reload1.c (maybe_fix_stack_asms): Likewise.
4751 * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
4752 * recog.h: Adjust comment.
4753 * genpreds.c (generic_constraint_letters): Remove 'm' constraint.
4754 * genoutput.c (note_constraint): Don't emit error for 'm' constraint.
4755 * doc/md.texi: Add a note to description of 'm' constraint.
4756 * doc/tm.texi: Document the new TARGET_MEM_CONSTRAINT macro.
4758 2008-05-27 Eric Botcazou <ebotcazou@adacore.com>
4760 * tree-sra.c (sra_type_can_be_decomposed_p) <RECORD_TYPE>: Make sure
4761 that the bitfield is of integral type before testing its precision.
4763 2008-05-27 Trevor Smigiel <trevor_smigiel@playstation.sony.com>
4764 Sa Liu <saliu@de.ibm.com>
4766 * config/spu/spu.c (spu_init_libfuncs): Add __multi3, __divti3,
4767 __modti3, __udivti3, __umodti3 and __udivmodti4.
4768 * config/spu/t-spu-elf (LIB2FUNCS_STATIC_EXTRA): Add files
4769 that implement TImode mul and div functions.
4770 * config/spu/multi3.c: New. Implement __multi3.
4771 * config/spu/divmodti4.c: New. Implement _udivmodti4 and others.
4772 * testsuite/gcc.target/spu/muldivti3.c: New. Test TImode mul and div
4775 2008-05-26 Steven Bosscher <stevenb.gcc@gmail.com>
4777 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Generate
4778 new tls_gd_* and tls_ld_* insns instead of an insn sequence.
4779 * config/rs6000/rs6000.md (TLSmode, tls_abi_suffix, tls_insn_suffix,
4780 tls_sysv_suffix): New mode and mode attribute iterators.
4781 (tls_gd_32, tls_gd_64, tls_ld_32, tls_ld_64): Remove.
4782 (lts_gd_aix*, tls_gd_sysv*, tls_ld_aix*, tls_ld_sysv*): New patterns.
4783 (tls_dtprel_*, tls_dtprel_ha_*, tls_dtprel_lo_*, tls_got_dtprel_*,
4784 tls_tprel_*, tls_tprel_ha_*, tls_tprel_lo_*, tls_got_tprel_*,
4785 tls_tls_*): Merge 32 bit and 64 bit variants using aforementioned
4788 2008-05-26 Eric Botcazou <ebotcazou@adacore.com>
4790 PR tree-optimization/36329
4791 * tree.h (CALL_CANNOT_INLINE_P): Add access check.
4792 * tree-gimple.h (CALL_STMT_CANNOT_INLINE_P): New macro.
4793 * cgraphbuild.c (initialize_inline_failed): Use the latter
4794 macro in lieu of the former.
4795 * ipa-inline.c (cgraph_mark_inline): Likewise.
4796 (cgraph_decide_inlining_of_small_function): Likewise.
4797 (cgraph_decide_inlining): Likewise.
4798 (cgraph_decide_inlining_incrementally): Likewise.
4800 2008-05-26 Tristan Gingold <gingold@adacore.com>
4801 Anatoly Sokolov <aesok@post.ru>
4803 * config/avr/avr.md ("call_prologue_saves"): Use hi8(gs())/lo8(gs())
4804 instead of pm_lo8/pm_hi8 to makes this call working on avr6.
4805 * config/avr/avr.c (expand_prologue): Tune "call_prologue"
4806 optimization for 'avr6' architecture.
4808 2008-05-26 Andy Hutchinson <hutchinsonandy@aim.com>
4811 * config/avr/avr.md (*addhi3_zero_extend2): Remove.
4813 2008-05-26 Richard Guenther <rguenther@suse.de>
4815 * tree-ssa-sccvn.c (expr_has_constants): Declare.
4816 (visit_reference_op_load): Initialize VN_INFO->has_constants properly.
4818 2008-05-26 H.J. Lu <hongjiu.lu@intel.com>
4821 * caller-save.c (insert_restore): Verify alignment of spill space.
4822 (insert_save): Likewise.
4823 * cfgexpand.c (LOCAL_ALIGNMENT): Removed.
4824 * defaults.h (LOCAL_ALIGNMENT): New. Provide default.
4825 (STACK_SLOT_ALIGNMENT): Likewise.
4826 * function.c (LOCAL_ALIGNMENT): Removed.
4827 (get_stack_local_alignment): New.
4828 (assign_stack_local): Use it. Set alignment on stack slot.
4829 (assign_stack_temp_for_type): Use get_stack_local_alignment.
4830 * config/i386/i386.h (LOCAL_ALIGNMENT): Updated.
4831 (STACK_SLOT_ALIGNMENT): New.
4832 * config/i386/i386.c (ix86_local_alignment): Handle caller-save
4833 stack slot in XFmode.
4835 * doc/tm.texi (STACK_SLOT_ALIGNMENT): New.
4837 2008-05-26 Kai Tietz <kai.tietz@onevision.com>
4840 * config/i386/i386.md (allocate_stack_worker_64): Make sure
4841 argument operand in rax isn't removed.
4843 2008-05-26 Richard Guenther <rguenther@suse.de>
4846 * fold-const.c (extract_muldiv_1): Use TYPE_OVERFLOW_WRAPS,
4847 not TYPE_UNSIGNED. Use TYPE_PRECISION instead of GET_MODE_SIZE.
4849 2008-05-26 Daniel Franke <franke.daniel@gmail.com>
4852 * c-cppbuiltin.c (define__GNUC__): Re-add definition of __GNUG__.
4854 2008-05-26 Dominique Dhumieres <dominiq@lps.ens.fr>
4856 * config/darwin-c.c: Include "incpath.h" instead of "c-incpath.h".
4857 * config/t-darwin: Use "incpath.h" instead of "c-incpath.h".
4859 2008-05-25 Eric Botcazou <ebotcazou@adacore.com>
4861 * tree-nested.c (convert_tramp_reference) <ADDR_EXPR>: Do not
4862 build a trampoline if we don't want one.
4863 * varasm.c (initializer_constant_valid_p) <ADDR_EXPR>: Do not
4864 return zero for nested functions if we don't want a trampoline.
4866 2008-05-26 Daniel Franke <franke.daniel@gmail.com>
4868 * doc/invoke.texi: Added f77, f77-cpp-input to list of file types.
4870 2008-05-26 Daniel Franke <franke.daniel@gmail.com>
4873 * c.opt: Removed undocumented option '-lang-fortran'.
4874 * c-common.h: Removed global variable 'lang_fortran'.
4875 * c-opts.c (c_common_handle_option): Removed code to handle
4876 option '-lang-fortran'. Updated includes.
4877 * c-cppbuiltin.c (c_cpp_builtins): Removed conditional
4878 definition of '__GFORTRAN__'.
4879 (define__GNUC__): Reimplemented to use BASEVER and
4880 cpp_define_formatted.
4881 (builtin_define_with_value_n): Removed.
4882 * c-incpath.h: Renamed to ...
4883 * incpath.h: ... this.
4884 * c-incpath.c: Renamed to ...
4885 * incpath.c: ... this. Updated includes.
4886 * fix-header.c: Updated includes.
4887 * Makefile.in: Replaced c-incpath.[ch] by incpath.[ch].
4888 (c-cppbuiltin.o): Added dependency on and definition of BASEVER.
4889 (OBJ-archive): Added cppdefault.o, incpath.o and prefix.o.
4891 2008-05-25 Eric Botcazou <ebotcazou@adacore.com>
4893 * tree.h: Update the table of flags used on tree nodes.
4894 (TREE_NO_TRAMPOLINE): New accessor for static_flag.
4895 (SAVE_EXPR_RESOLVED_P): Use automatically-built access check.
4896 (FORCED_LABEL): Add access check.
4897 (CALL_EXPR_RETURN_SLOT_OPT): Likewise.
4898 (ASM_INPUT_P): Likewise.
4899 (ASM_VOLATILE_P): Likewise.
4900 (EH_FILTER_MUST_NOT_THROW): Access static_flag directly.
4901 (OMP_SECTION_LAST): Access private_flag directly.
4902 (OMP_RETURN_NOWAIT): Likewise.
4903 (OMP_PARALLEL_COMBINED): Likewise.
4904 (OMP_CLAUSE_PRIVATE_DEBUG): Access public_flag directly.
4905 (OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE): Likewise.
4906 * tree-ssa-propagate.c (STMT_IN_SSA_EDGE_WORKLIST): Access
4907 deprecated_flag directly.
4909 2008-05-25 H.J. Lu <hongjiu.lu@intel.com>
4911 * final.c (frame_pointer_needed): Removed.
4912 * flags.h (frame_pointer_needed): Likewise.
4914 * function.h (rtl_data): Add frame_pointer_needed.
4915 (frame_pointer_needed): New.
4917 2008-05-25 Arthur Loiret <arthur.loiret@u-psud.fr>
4919 * config.gcc (sh2[lbe]*-*-linux*): Allow target.
4921 2008-05-25 Steven Bosscher <stevenb.gcc@gmail.com>
4923 * gcse.c (hash_scan_set): Do not pick up a REG_EQUAL value if
4926 2008-05-25 Alan Modra <amodra@bigpond.net.au>
4928 * c-common.c (strip_array_types): Move function to..
4930 (get_inner_array_type): Delete.
4931 * c-common.h (strip_array_types): Move declaration to..
4933 (get_inner_array_type): Delete.
4934 * config/i386/i386.c (x86_field_alignment): Use strip_array_types.
4935 * config/rs6000/aix.h (ADJUST_FIELD_ALIGN): Likewise.
4936 * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
4937 * config/pa/pa.c (emit_move_sequence): Likewise.
4939 2008-05-24 H.J. Lu <hongjiu.lu@intel.com>
4941 * config/i386/i386.md (*sse_prologue_save_insn): Set length
4944 2008-05-24 Andy Hutchinson <hutchinsonandy@aim.com>
4946 * function.c: Include target hook for nonlocal_goto frame value.
4948 2008-05-24 Richard Guenther <rguenther@suse.de>
4950 * tree-dfa.c (refs_may_alias_p): Re-instantiate case that a scalar
4951 variable can be only accessed through a pointer or a union.
4953 2008-05-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4955 * builtins.c (fold_builtin_fpclassify): Fix spelling of FP_INFINITE.
4956 * doc/extend.texi: Likewise.
4958 2008-05-23 DJ Delorie <dj@redhat.com>
4960 * config/m32c/jump.md (untyped_call): Add.
4962 * config/m32c/m32c.c (m32c_return_addr_rtx): Change pointer type
4964 (m32c_address_cost): Detail costs for indirect offsets.
4966 2008-05-23 Rafael Espindola <espindola@google.com>
4968 * see.c (see_get_extension_data): Don't use SUBREG_REG to test
4969 if a node is a SUBREG.
4970 (see_analyze_one_def): Don't use SUBREG_REG to test if a node
4973 2008-05-23 Paul Brook <paul@codesourcery.com>
4974 Carlos O'Donell <carlos@codesourcery.com>
4976 * doc/extend.texi: Clarify use of __attribute__((naked)).
4977 * doc/tm.texi: Document TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS.
4978 * target.h (gcc_target): Add allocate_stack_slots_for_args.
4979 * function.c (use_register_for_decl): Use
4980 targetm.calls.allocate_stack_slots_for_args.
4981 * target-def.h (TARGET_CALLS): Add TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS.
4982 * config/arm/arm.c (arm_allocate_stack_slots_for_args): New function.
4983 (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Define.
4985 2008-05-23 Eric Botcazou <ebotcazou@adacore.com>
4987 * expr.c (highest_pow2_factor) <BIT_AND_EXPR>: New case.
4989 2008-05-23 Steven Munroe <sjmunroe@us.ibm.com>
4991 * config/rs6000/darwin-ldouble.c (fmsub): Eliminate the full
4992 PACK/UNPACK between FP_SUB_Q and FD_TRUNC so that the result
4993 is only rounded once.
4995 2008-05-23 Richard Guenther <rguenther@suse.de>
4997 * tree-ssa-operands.c (mark_difference_for_renaming): Use bitmap_xor.
4999 2008-05-23 Uros Bizjak <ubizjak@gmail.com>
5000 Jakub Jelinek <jakub@redhat.com>
5003 * configure.ac: Handle --enable-cld.
5004 * configure: Regenerated.
5005 * config.gcc: Add USE_IX86_CLD to tm_defines for x86 targets.
5006 * config/i386/i386.h (struct machine_function): Add needs_cld field.
5007 (ix86_current_function_needs_cld): New define.
5008 * config/i386/i386.md (UNSPEC_CLD): New unspec volatile constant.
5009 (cld): New isns pattern.
5010 (strmov_singleop, rep_mov, strset_singleop, rep_stos, cmpstrnqi_nz_1,
5011 cmpstrnqi_1, strlenqi_1): Set ix86_current_function_needs_cld flag.
5012 * config/i386/i386.opt (mcld): New option.
5013 * config/i386/i386.c (ix86_expand_prologue): Emit cld insn if
5014 TARGET_CLD and ix86_current_function_needs_cld.
5015 (override_options): Use -mcld by default for 32-bit code if
5018 * doc/install.texi (Options specification): Document --enable-cld.
5019 * doc/invoke.texi (Machine Dependent Options)
5020 [i386 and x86-64 Options]: Add -mcld option.
5021 (Intel 386 and AMD x86-64 Options): Document -mcld option.
5023 2008-05-23 Kai Tietz <kai.tietz@onevison.com>
5024 * config/i386/i386.c (return_in_memory_32): Add ATTRIBUTE_UNUSED.
5025 (return_in_memory_64): Likewise.
5026 (return_in_memory_ms_64): Likewise.
5028 2008-05-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5030 * builtin-types.def (BT_FN_INT_INT_INT_INT_INT_INT_VAR): New.
5031 * builtins.c (fold_builtin_fpclassify): New.
5032 (fold_builtin_varargs): Handle BUILT_IN_FPCLASSIFY.
5033 * builtins.def (BUILT_IN_FPCLASSIFY): New.
5034 * c-common.c (handle_type_generic_attribute): Adjust to accept
5035 fixed arguments before an elipsis.
5036 (check_builtin_function_arguments): Handle BUILT_IN_FPCLASSIFY.
5037 * doc/extend.texi: Document __builtin_fpclassify.
5039 2008-05-22 Aldy Hernandez <aldyh@redhat.com>
5041 * omp-low.c (gate_expand_omp_ssa): Remove.
5042 (pass_expand_omp_ssa): Remove.
5043 (gate_expand_omp): Do not check for flag_openmp_ssa.
5044 * common.opt (-fopenmp-ssa): Remove.
5045 * passes.c (init_optimization_passes): Remove pass_expand_omp_ssa.
5047 2008-05-22 Kaz Kojima <kkojima@gcc.gnu.org>
5049 * config/sh/sh.opt (mfixed-range): New option.
5050 * config/sh/sh-protos.h (sh_fix_range): Declare.
5051 * config/sh/sh.c (sh_fix_range): New function.
5052 * config/sh/sh.h (sh_fixed_range_str): Declare.
5053 (OVERRIDE_OPTIONS): Call sh_fix_range if sh_fixed_range_str
5055 * doc/invoke.texi (SH Options): Document -mfixed-range.
5057 2008-05-22 Kai Tietz <kai.tietz@onevision.com>
5059 * config/i386/sol2-10.h (SUBTARGET_RETURN_IN_MEMORY): Undefine
5060 it before the redeclaration.
5062 2008-05-22 Anatoly Sokolov <aesok@post.ru>
5064 * config/avr/avr.c (get_sequence_length): Add new function.
5065 (expand_prologue, expand_epilogue): Remove duplicate code.
5067 2008-05-22 Rafael Espindola <espindola@google.com>
5069 * see.c (see_pre_insert_extensions): Use copy_rtx to avoid invalid rtx
5072 2008-05-22 H.J. Lu <hongjiu.lu@intel.com>
5074 * defaults.h (UNITS_PER_SIMD_WORD): Add scalar mode as argument.
5075 * doc/tm.texi (UNITS_PER_SIMD_WORD): Likewise.
5077 * tree-vect-analyze.c (vect_compute_data_ref_alignment): Replace
5078 UNITS_PER_SIMD_WORD with GET_MODE_SIZE (TYPE_MODE (vectype)).
5079 (vect_update_misalignment_for_peel): Likewise.
5080 (vector_alignment_reachable_p): Likewise.
5081 * tree-vect-transform.c (vectorizable_load): Likewise.
5082 * tree-vectorizer.c (vect_supportable_dr_alignment): Likewise.
5083 (get_vectype_for_scalar_type): Pass mode of scalar_type
5084 to UNITS_PER_SIMD_WORD.
5086 * config/arm/arm.h (UNITS_PER_SIMD_WORD): Updated.
5087 * config/i386/i386.h (UNITS_PER_SIMD_WORD): Likewise.
5088 * config/mips/mips.h (UNITS_PER_SIMD_WORD): Likewise.
5089 * config/rs6000/rs6000.h (UNITS_PER_SIMD_WORD): Likewise.
5090 * config/sparc/sparc.h (UNITS_PER_SIMD_WORD): Likewise.
5092 2008-05-22 Ira Rosen <irar@il.ibm.com>
5094 PR tree-optimization/36293
5095 * tree-vect-transform.c (vect_transform_strided_load): Don't check
5096 if the first load must be skipped because of a gap.
5098 2008-05-22 Richard Guenther <rguenther@suse.de>
5100 * tree-dfa.c (refs_may_alias_p): Exit early if possible. Handle
5101 more cases of offset disambiguation that is possible if
5102 strict-aliasing rules apply.
5103 * tree-ssa-loop-im.c (mem_refs_may_alias_p): Use refs_may_alias_p
5104 for basic offset and type-based disambiguation.
5106 2008-05-21 H.J. Lu <hongjiu.lu@intel.com>
5108 * config/i386/i386.c (ix86_expand_vector_init_one_var): Use
5109 ix86_expand_vector_set on V16QImode for SSE4.1.
5111 2008-05-21 Tom Tromey <tromey@redhat.com>
5113 * c.opt (Wimport): Mark as undocumented.
5114 * doc/invoke.texi (Option Summary): Don't mention -Wimport or
5116 (Warning Options): Likewise.
5117 * doc/cppopts.texi: Don't mention -Wimport.
5119 2008-05-21 Sebastian Pop <sebastian.pop@amd.com>
5121 PR tree-optimization/36287
5122 PR tree-optimization/36286
5123 * lambda-code.c (build_access_matrix): Do not use the loop->num
5124 for computing the number of induction variables: use the loop depth
5127 2008-05-21 Kai Tietz <kai.tietz@onevision.com>
5130 * config/i386/cygming.h (ASM_OUTPUT_LABELREF): Honor
5131 option -f(no-)leading-underscore.
5133 2008-05-21 H.J. Lu <hongjiu.lu@intel.com>
5135 * config/i386/i386.c (ix86_expand_vector_init_general): Use
5136 GET_MODE_NUNITS (mode).
5138 2008-05-21 Peter Bergner <bergner@vnet.ibm.com>
5140 * doc/invoke.texi: Add cpu_type's 464 and 464fp.
5141 (-mmulhw): Add 464 to description.
5142 (-mdlmzb): Likewise.
5143 * config.gcc: Handle --with-cpu=464 and --with-cpu=464fp.
5144 * config/rs6000/rs6000.c (processor_target_table): Add 464 and
5146 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add 464 and 464fp support.
5147 * config/rs6000/t-fprules (MULTILIB_MATCHES_FLOAT): Include -mcpu=464.
5148 * config/rs6000/rs6000.md: Update comments for 464.
5150 2008-05-21 Janis Johnson <janis187@us.ibm.com>
5152 * doc/sourcebuild.texi (Test Directives): Add dg-xfail-run-if.
5154 2008-05-21 H.J. Lu <hongjiu.lu@intel.com>
5156 * config/i386/sse.md (vec_extractv4sf): Removed.
5157 (vec_extractv2df): Likewise.
5158 (vec_extractv2di): Likewise.
5159 (vec_extractv4si): Likewise.
5160 (vec_extractv8hi): Likewise.
5161 (vec_extractv16qi): Likewise.
5162 (vec_extract<mode>): New.
5164 2008-05-21 H.J. Lu <hongjiu.lu@intel.com>
5166 * config/i386/sse.md (vec_setv4sf): Removed.
5167 (vec_setv2df): Likewise.
5168 (vec_setv2di): Likewise.
5169 (vec_setv4si): Likewise.
5170 (vec_setv8hi): Likewise.
5171 (vec_setv16qi): Likewise.
5172 (vec_set<mode>): New.
5174 2008-05-21 H.J. Lu <hongjiu.lu@intel.com>
5176 * config/i386/i386.c (ix86_expand_vector_init_general): Remove
5177 goto for vec_concat and vec_interleave.
5179 2008-05-21 H.J. Lu <hongjiu.lu@intel.com>
5181 * config/i386/sse.md (vec_initv4sf): Removed.
5182 (vec_initv2df): Likewise.
5183 (vec_initv2di): Likewise.
5184 (vec_initv4si): Likewise.
5185 (vec_initv8hi): Likewise.
5186 (vec_initv16qi): Likewise.
5187 (vec_init<mode>): New.
5189 2008-05-21 Joseph Myers <joseph@codesourcery.com>
5191 * collect2.c (find_a_file): Use IS_ABSOLUTE_PATH.
5193 2008-05-21 Tom Tromey <tromey@redhat.com>
5195 * ggc-zone.c (lookup_page_table_if_allocated): New function.
5196 (zone_find_object_offset): Likewise.
5197 (gt_ggc_m_S): Likewise.
5198 (highest_bit): Likewise.
5199 * ggc-page.c (gt_ggc_m_S): New function.
5200 * stringpool.c (string_stack): Remove.
5201 (init_stringpool): Update.
5202 (ggc_alloc_string): Use ggc_alloc.
5203 (maybe_delete_ident): New function.
5204 (ggc_purge_stringpool): Likewise.
5205 (gt_ggc_m_S): Remove.
5206 * ggc-common.c (ggc_protect_identifiers): New global.
5207 (ggc_mark_roots): Call ggc_purge_stringpool. Use
5208 ggc_protect_identifiers.
5209 * ggc.h (ggc_protect_identifiers): Declare.
5210 (gt_ggc_m_S): Update.
5211 (ggc_purge_stringpool): Declare.
5212 * toplev.c (compile_file): Set and reset ggc_protect_identifiers.
5213 * gengtype.c (write_types_process_field) <TYPE_STRING>: Remove
5215 (write_root): Cast gt_ggc_m_S to gt_pointer_walker.
5217 2008-05-21 David S. Miller <davem@davemloft.net>
5219 * config.gcc (sparc-*-linux*): Always include sparc/t-linux in
5222 2008-05-21 Eric Botcazou <ebotcazou@adacore.com>
5224 * cfgexpand.c (tree_expand_cfg): Zap the EH throw statement table
5227 2008-05-20 David Daney <ddaney@avtrex.com>
5229 * config/mips/mips.md (UNSPEC_SYNC_NEW_OP_12,
5230 UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE_12): New define_constants.
5231 (UNSPEC_SYNC_EXCHANGE, UNSPEC_MEMORY_BARRIER, UNSPEC_SET_GOT_VERSION,
5232 UNSPEC_UPDATE_GOT_VERSION): Renumber.
5233 (optab, insn): Add 'plus' and 'minus' to define_code_attr.
5234 (atomic_hiqi_op): New define_code_iterator.
5235 (sync_compare_and_swap<mode>): Call mips_expand_atomic_qihi instead of
5236 mips_expand_compare_and_swap_12.
5237 (compare_and_swap_12): Use MIPS_COMPARE_AND_SWAP_12 instead of
5238 MIPS_COMPARE_AND_SWAP_12_0. Pass argument to MIPS_COMPARE_AND_SWAP_12.
5239 (sync_<optab><mode>, sync_old_<optab><mode>,
5240 sync_new_<optab><mode>, sync_nand<mode>, sync_old_nand<mode>,
5241 sync_new_nand<mode>): New define_expands for HI and QI mode operands.
5242 (sync_<optab>_12, sync_old_<optab>_12, sync_new_<optab>_12,
5243 sync_nand_12, sync_old_nand_12, sync_new_nand_12): New insns.
5244 (sync_lock_test_and_set<mode>): New define_expand for HI and QI modes.
5245 (test_and_set_12): New insn.
5246 (sync_old_add<mode>, sync_new_add<mode>, sync_old_<optab><mode>,
5247 sync_new_<optab><mode>, sync_old_nand<mode>,
5248 sync_new_nand<mode>, sync_lock_test_and_set<mode>): Add early
5249 clobber to operand 0 for SI and DI mode insns.
5250 * config/mips/mips-protos.h (mips_gen_fn_6, mips_gen_fn_5,
5251 mips_gen_fn_4): New typedefs.
5252 (mips_gen_fn_ptrs): Define new union type.
5253 (mips_expand_compare_and_swap_12): Remove declaration.
5254 (mips_expand_atomic_qihi): Declare function.
5255 * config/mips/mips.c (mips_expand_compare_and_swap_12): Rename to...
5256 (mips_expand_atomic_qihi): ... this. Use new generator function
5258 * config/mips/mips.h (MIPS_COMPARE_AND_SWAP_12): Add OPS parameter.
5259 (MIPS_COMPARE_AND_SWAP_12_0): Delete macro.
5260 (MIPS_COMPARE_AND_SWAP_12_ZERO_OP, MIPS_COMPARE_AND_SWAP_12_NONZERO_OP,
5261 MIPS_SYNC_OP_12, MIPS_SYNC_OP_12_NOT_NOP,
5262 MIPS_SYNC_OP_12_NOT_NOT, MIPS_SYNC_OLD_OP_12,
5263 MIPS_SYNC_OLD_OP_12_NOT_NOP, MIPS_SYNC_OLD_OP_12_NOT_NOP_REG,
5264 MIPS_SYNC_OLD_OP_12_NOT_NOT, MIPS_SYNC_OLD_OP_12_NOT_NOT_REG,
5265 MIPS_SYNC_NEW_OP_12, MIPS_SYNC_NEW_OP_12_NOT_NOP,
5266 MIPS_SYNC_NEW_OP_12_NOT_NOT, MIPS_SYNC_EXCHANGE_12,
5267 MIPS_SYNC_EXCHANGE_12_ZERO_OP, MIPS_SYNC_EXCHANGE_12_NONZERO_OP):
5270 2008-05-20 H.J. Lu <hongjiu.lu@intel.com>
5272 * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): Add
5275 2008-05-20 Anatoly Sokolov <aesok@post.ru>
5277 * config/avr/avr.h (machine_function): Add 'is_OS_main' field.
5278 * config/avr/avr.c (avr_OS_main_function_p): Add new function.
5279 (avr_attribute_table): Add 'OS_main' function attribute.
5280 (avr_regs_to_save, expand_prologue, expand_epilogue): Handle
5281 functions with 'OS_main' attribute.
5283 2008-05-20 Richard Guenther <rguenther@suse.de>
5285 PR tree-optimization/35204
5286 * tree-ssa-sccvn.c (extract_and_process_scc_for_name): New
5287 helper, split out from ...
5288 (DFS): ... here. Make the DFS walk non-recursive.
5290 2008-05-20 Sebastian Pop <sebastian.pop@amd.com>
5291 Jan Sjodin <jan.sjodin@amd.com>
5293 PR tree-optimization/36181
5294 * tree-parloops.c (loop_has_vector_phi_nodes): New.
5295 (parallelize_loops): Don't parallelize when the loop has vector
5298 2008-05-20 Jan Sjodin <jan.sjodin@amd.com>
5299 Sebastian Pop <sebastian.pop@amd.com>
5301 * tree-loop-linear.c (gather_interchange_stats): Look in the access
5302 matrix, and never look at the tree representation of the memory
5304 (linear_transform_loops): Computes parameters and access matrices.
5305 * tree-data-ref.c (compute_data_dependences_for_loop): Returns false
5307 (access_matrix_get_index_for_parameter): New.
5308 * tree-data-ref.h (struct access_matrix): New.
5309 (AM_LOOP_NEST_NUM, AM_NB_INDUCTION_VARS, AM_PARAMETERS, AM_MATRIX,
5310 AM_NB_PARAMETERS, AM_CONST_COLUMN_INDEX, AM_NB_COLUMNS,
5311 AM_GET_SUBSCRIPT_ACCESS_VECTOR, AM_GET_ACCESS_MATRIX_ELEMENT,
5312 am_vector_index_for_loop): New.
5313 (struct data_reference): Add field access_matrix.
5314 (DR_ACCESS_MATRIX): New.
5315 (compute_data_dependences_for_loop): Update declaration.
5316 (lambda_collect_parameters, lambda_compute_access_matrices): Declared.
5317 * lambda.h (lambda_vector_vec_p): Declared.
5318 * lambda-code.c: Depend on pointer-set.h.
5319 (lambda_collect_parameters_from_af, lambda_collect_parameters,
5320 av_for_af_base, av_for_af, build_access_matrix,
5321 lambda_compute_access_matrices): New.
5322 * Makefile.in (lambda-code.o): Depend on pointer-set.h.
5324 2008-05-20 Joseph Myers <joseph@codesourcery.com>
5326 * doc/install.texi2html: Generate gcc-vers.texi in $DESTDIR not
5329 2008-05-20 Jan Sjodin <jan.sjodin@amd.com>
5330 Sebastian Pop <sebastian.pop@amd.com>
5332 PR tree-optimization/36206
5333 * tree-scalar-evolution.c: Remove enum INSERT_SUPERLOOP_CHRECS,
5335 (instantiate_scev_1): Rename flags to fold_conversions.
5336 Do not check for INSERT_SUPERLOOP_CHRECS, keep SSA_NAMEs defined
5337 outeside instantiation_loop.
5338 * tree-chrec.h (evolution_function_is_affine_in_loop): New.
5339 (evolution_function_is_affine_or_constant_p): Removed.
5340 * tree-data-ref.c (dr_analyze_indices): Replace resolve_mixers with
5342 (analyze_siv_subscript): Pass in the loop nest number.
5343 Call evolution_function_is_affine_in_loop instead of
5344 evolution_function_is_affine_p.
5345 (analyze_overlapping_iterations): Pass in the loop nest number.
5347 2008-05-20 Jan Sjodin <jan.sjodin@amd.com>
5348 Sebastian Pop <sebastian.pop@amd.com>
5350 PR tree-optimization/36206
5351 * tree-chrec.h (chrec_fold_op): New.
5352 * tree-data-ref.c (initialize_matrix_A): Traverse NOP_EXPR, PLUS_EXPR,
5355 2008-05-20 Nathan Sidwell <nathan@codesourcery.com>
5357 * c-incpath.c (INO_T_EQ): Do not define on non-inode systems.
5359 (remove_duplicates): Do not set inode on non-inode systems.
5362 2008-05-20 Sandra Loosemore <sandra@codesourcery.com>
5364 * config.gcc (tm_file): Update comments about relative pathnames.
5366 2008-05-20 Richard Guenther <rguenther@suse.de>
5368 * tree-ssa-reassoc.c (fini_reassoc): Use the statistics infrastructure.
5369 * tree-ssa-sccvn.c (process_scc): Likewise.
5370 * tree-ssa-sink.c (execute_sink_code): Likewise.
5371 * tree-ssa-threadupdate.c (thread_through_all_blocks): Likewise.
5372 * tree-vrp.c (process_assert_insertions): Likewise.
5373 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Likewise.
5374 (perform_tree_ssa_dce): Likewise.
5375 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Likewise.
5376 (dump_dominator_optimization_stats): Likewise.
5377 * tree-vectorizer.c (vectorize_loops): Likewise.
5379 2008-05-20 Richard Guenther <rguenther@suse.de>
5381 * tree-vn.c (vn_lookup_with_vuses): Do not use the alias oracle.
5383 2008-05-20 Kai Tietz <kai.tietz@onevision.com>
5385 * config/i386/i386-protos.h (ix86_return_in_memory): Removed.
5386 (ix86_i386elf_return_in_memory): Likewise.
5387 (ix86_i386interix_return_in_memory): Likewise.
5388 * config/i386/i386-interix.h (TARGET_RETURN_IN_MEMORY): Removed.
5389 (SUBTARGET_RETURN_IN_MEMORY): New.
5390 * config/i386/i386elf.h: Likewise.
5391 * config/i386/ptx4-i.h: Likewise.
5392 * config/i386/sol2-10.h: Likewise.
5393 * config/i386/sysv4.h: Likewise.
5394 * config/i386/vx-common.h: Likewise.
5395 * config/i386/i386.h (TARGET_RETURN_IN_MEMORY): Removed.
5396 * config/i386/i386.c (ix86_return_in_memory): Made static and
5397 make use of optional SUBTARGET_RETURN_IN_MEMORY macro.
5398 (ix86_i386elf_return_in_memory): Removed.
5399 (ix86_i386interix_return_in_memory): Removed.
5400 (TARGET_RETURN_IN_MEMORY): Declared within i386.c only.
5401 * target-def.h (TARGET_RETURN_IN_MEMORY): Remove protection #ifdef.
5403 2008-05-20 Alexandre Oliva <aoliva@redhat.com>
5405 * cselib.c (cselib_record_sets): Use correct mode for IF_THEN_ELSE.
5407 2008-05-19 Xinliang David Li <davidxl@google.com>
5409 * tree-ssa-dce.c: Revert patches of 2008-05-17 and 2008-05-18.
5411 * common.opt: Ditto.
5412 * doc/invoke.texi: Ditto.
5414 2008-05-19 Eric Botcazou <ebotcazou@adacore.com>
5416 * tree.c (substitute_in_expr) <tcc_vl_exp>: Fix thinko.
5417 (substitute_placeholder_in_expr) <tcc_vl_exp>: Minor tweak.
5419 2008-05-19 H.J. Lu <hongjiu.lu@intel.com>
5421 * config/i386/i386.c (ix86_expand_vector_init_concat): Change
5422 sizes of operand array from 8/4 to 4/2.
5423 (ix86_expand_vector_init_general): Change size of operand array
5424 from 32 to 16. Remove op0, op1 and half_mode.
5426 2008-05-19 H.J. Lu <hongjiu.lu@intel.com>
5428 * config/i386/i386.c (ix86_expand_vector_init_concat): New.
5429 (ix86_expand_vector_init_interleave): Likewise.
5430 (ix86_expand_vector_init_general): Use them. Assert
5431 word_mode == SImode when n_words == 4.
5433 2008-05-19 Uros Bizjak <ubizjak@gmail.com>
5435 * config/i386/i386.c (ix86_secondary_reload): New static function.
5436 (TARGET_SECONDARY_RELOAD): New define.
5437 * config/i386/i386.h (SECONDARY_OUTPUT_RELOAD_CLASS): Remove.
5438 * config/i386/i386.md (reload_outqi): Remove.
5440 2008-05-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5443 * builtins.c (mathfn_built_in_1): Renamed from mathfn_built_in.
5444 Add `implicit' parameter. Handle BUILT_IN_SIGNBIT.
5445 (mathfn_built_in): Rewrite in terms of mathfn_built_in_1.
5446 (fold_builtin_classify): Handle BUILT_IN_ISINF_SIGN.
5447 (fold_builtin_1): Likewise.
5448 * builtins.def (BUILT_IN_ISINF_SIGN): New.
5449 c-common.c (check_builtin_function_arguments): Handle
5450 BUILT_IN_ISINF_SIGN.
5451 * doc/extend.texi: Document __builtin_isinf_sign.
5452 * fold-const.c (operand_equal_p): Handle COND_EXPR.
5454 2008-05-18 Eric Botcazou <ebotcazou@adacore.com>
5456 * tree-ssa-dom.c (tree_ssa_dominator_optimize): If some blocks need
5457 EH cleanup at the end of the pass, search for those that have been
5458 turned into forwarder blocks and do the cleanup on their successor.
5460 2008-05-18 Richard Guenther <rguenther@suse.de>
5462 * tree-cfg.c (verify_gimple_expr): Allow conversions from
5463 pointers to sizetype and vice versa.
5465 2008-05-18 Xinliang David Li <davidxl@google.com>
5467 * gcc/tree-ssa-dce.c: Coding style fix.
5468 (check_pow): Documentation comment.
5469 (check_log): Documenation comment. Coding style fix.
5470 (is_unnecessary_except_errno_call): Ditto.
5471 (gen_conditions_for_pow): Ditto.
5472 (gen_conditions_for_log): Ditto.
5473 (gen_shrink_wrap_conditions): Ditto.
5474 (shrink_wrap_one_built_in_calls): Ditto.
5475 * gcc/doc/invoke.texi: Better documentation string.
5476 * ChangeLog: Fix wrong change log entries from
5477 May 17 checkin on function call DCE.
5479 2008-05-17 Kaz Kojima <kkojima@gcc.gnu.org>
5481 * config/sh/sh.c (sh_output_mi_thunk): Update the use of init_flow.
5483 2008-05-17 Kenneth Zadeck <zadeck@naturalbridge.com>
5485 * doc/rtl.texi (RTL_CONST_CALL_P, RTL_PURE_CALL_P): Fixed typos.
5486 * df-problems.c (simulation routines): Fixed block comment to
5487 properly say how to add forwards scanning functions.
5489 2008-05-17 Eric Botcazou <ebotcazou@adacore.com>
5491 * tree-inline.c (setup_one_parameter): Remove dead code.
5493 2008-05-17 Eric Botcazou <ebotcazou@adacore.com>
5495 * fold-const.c (fold_unary) <CASE_CONVERT>: Fold the cast into
5496 a BIT_AND_EXPR only for an INTEGER_TYPE.
5498 2008-05-17 Xinliang David Li <davidxl@google.com>
5500 * gcc/tree-ssa-dce.c (cond_dead_built_in_calls): New static variable.
5501 (check_pow, check_log, is_unnecessary_except_errno_call): New
5502 functions to check for eliminating math functions that are pure
5503 except for setting errno.
5504 (gen_conditions_for_pow, gen_conditionas_for_log): New functions to
5505 general condition expressions for shrink-wrapping pow/log calls.
5506 (gen_shrink_wrap_conditions): Ditto.
5507 (shrink_wrap_one_built_in_call): Ditto.
5508 (shrink_wrap_conditional_dead_built_in_calls): Ditto.
5509 (mark_operand_necessary): If debugging, output if OP is necessary.
5510 (eliminate_unnecessary_stmts): Eliminate pow, log calls that are
5512 * gcc/opts.c (decode_options): set flag_tree_builtin_dce to 1 when
5514 * gcc/common.opt: New user flag -ftree-builtin-dce.
5515 * gcc/doc/invoke.texi (-ftree-builtin-dce): New option.
5517 2008-05-16 David S. Miller <davem@davemloft.net>
5519 * config/sparc/linux.h (NO_PROFILE_COUNTERS): Undef before overriding.
5520 * config/sparc/linux64.h (NO_PROFILE_COUNTERS): Likewise.
5522 2008-05-16 Uros Bizjak <ubizjak@gmail.com>
5525 * config/i386/i386.h (SECONDARY_MEMORY_NEEDED_MODE): New define.
5527 2008-05-16 Kenneth Zadeck <zadeck@naturalbridge.com>
5529 * ifcvt.c (dead_or_predicable): Rename
5530 df_simulate_one_insn_backwards to df_simulate_one_insn.
5531 * recog.c (peephole2_optimize): Ditto.
5532 * rtl-factoring.c (collect_pattern_seqs, clear_regs_live_in_seq):
5534 * df.h: Rename df_simulate_one_insn_backwards to
5535 df_simulate_one_insn. and delete df_simulate_one_insn_forwards.
5536 * df-problems.c (df_simulate_artificial_refs_at_top) Reversed
5537 scanning of defs and uses.
5538 (df_simulate_one_insn_backwards): Renamed to df_simulate_one_insn.
5539 (df_simulate_one_insn_forwards): Removed.
5541 2008-05-16 Doug Kwan <dougkwan@google.com>
5543 * real.c (real_to_decimal, real_to_hexadecimal): Distinguish
5545 (real_from_string): Handle NaNs and Inf as approriate.
5547 2008-05-16 Nathan Froyd <froydnj@codesourcery.com>
5549 * doc/gty.texi (Source Files Containing Type Information): Note
5550 that headers should appear first in the gtfiles list.
5552 2008-05-16 Kenneth Zadeck <zadeck@naturalbridge.com>
5554 * tree.def (COND_EXEC): Properly documented this code.
5556 2008-05-16 Diego Novillo <dnovillo@google.com>
5558 * dwarf2asm.c (dw2_assemble_integer): Clarify comment.
5559 * tree-nested.c (get_trampoline_type): Set DECL_CONTEXT for
5562 2008-05-16 Kenneth Zadeck <zadeck@naturalbridge.com>
5564 * tree-ssa-dse (max_stmt_uid): Removed.
5565 (get_stmt_uid, dse_possible_dead_store_p, dse_optimize_stmt,
5566 tree_ssa_dse): Encapsulate all uses of stmt_ann->uid.
5567 * tree-ssa-sccvn.c (compare_ops, init_scc_vn): Ditto.
5568 * function.h (cfun.last_stmt_uid): New field.
5569 * tree-flow-inline.h (set_gimple_stmt_uid, gimple_stmt_uid,
5570 gimple_stmt_max_uid, set_gimple_stmt_max_uid, inc_gimple_stmt_max_uid):
5572 * tree-dfa.c (renumber_gimple_stmt_uids): New function.
5573 (create_stmt_ann): Initialize the ann->uid field.
5574 * tree-ssa-pre.c (compute_avail): Encapsulate the stmt_ann->uid
5576 * tree-flow.h (renumber_gimple_stmt_uids): New function.
5578 2008-05-16 Nathan Froyd <froydnj@codesourcery.com>
5580 * tree-flow.h (init_empty_tree_cfg_for_function): Declare.
5581 * tree-cfg.c (init_empty_tree_cfg_for_function): Define.
5582 (init_empty_tree_cfg): Call it.
5584 2008-05-16 Kenneth Zadeck <zadeck@naturalbridge.com>
5586 * cfg.c (init_flow): Add argument THE_FUN. Use it instead of cfun.
5589 2008-05-16 Kenneth Zadeck <zadeck@naturalbridge.com>
5591 * doc/invoke.text (-fdump-tree-*-verbose): New option.
5592 * tree-dump.c (dump_options): New verbose option.
5593 * tree-pretty-print.c (dump_phi_nodes, dump_generic_bb_buff):
5595 * tree-pass.h (TDF_VERBOSE): New dump flag.
5596 * print-tree.c (print_node): Added code to be able to print PHI_NODES.
5597 (tree-flow.h): Added include.
5598 * Makefile.in (print-tree.o): Added TREE_FLOW_H.
5600 2008-05-16 Bernd Schmidt <bernd.schmidt@analog.com>
5602 * config/bfin/bfin.c (bfin_discover_loops): Delete empty loops.
5604 From Jie Zhang <jie.zhang@analog.com>
5605 * config/bfin/t-bfin-elf (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
5606 MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Remove mcpu=bf532-0.3,
5607 mcpu=bf561-none and mcpu=bf561-0.2.
5608 * config/bfin/t-bfin-uclinux (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
5609 MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Likewise.
5610 * config/bfin/t-bfin-linux (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
5611 MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Likewise.
5612 * config/bfin/bfin-protos.h (enum bfin_cpu_type): Add BFIN_CPU_UNKNOWN.
5613 * config/bfin/elf.h (STARTFILE_SPEC): Use specific CRT for BF561.
5614 (LIB_SPEC): Use proper linker script for bf561. Error if no mcpu
5616 * config/bfin/bfin.c (bfin_cpu_type): Set to BFIN_CPU_UNKNOWN.
5617 (cputype_selected): Remove.
5618 (bfin_handle_option): Don't use cputype_selected.
5619 (override_options): When no mcpu option, enable all workarounds.
5620 Don't use bfin_workarounds.
5621 * config/bfin/bfin.h (DRIVER_SELF_SPECS): Don't set default
5623 (DEFAULT_CPU_TYPE): Don't define.
5625 2008-05-16 Richard Guenther <rguenther@suse.de>
5627 * tree-ssa-propagate.c (substitute_and_fold): Fix stmt walking
5628 on deletion of the last stmt.
5630 2008-05-15 H.J. Lu <hongjiu.lu@intel.com>
5632 * config/i386/i386.c (ix86_expand_vector_init_general): Optimize
5633 V8HImode for SSE2 and V16QImode for SSE4.1.
5635 2008-05-15 Kenneth Zadeck <zadeck@naturalbridge.com>
5637 * cgraph.h (compute_inline_parameters): Made public.
5638 * tree-pass.h (ipa_opt_pass): Removed function_generate_summary,
5639 variable_generate_summary, function_write_summary,
5640 variable_write_summary, variable_read_summary. Added generate_summary,
5641 write_summary, read_summary.
5642 * cgraphunit.c (cgraph_process_new_functions): Changed call from
5643 pass_ipa_inline.function_generate_summary, to
5644 compute_inline_parameters.
5645 * ipa-inline.c (compute_inline_parameters): Made public and added
5647 (compute_inline_parameters_for_current): New function.
5648 (pass_inline_param): Now calls compute_inline_parameters_for_current.
5649 (inline_generate_summary): Removed parameter and made to loop over
5651 (pass_ipa_inline): Updated for new IPA_PASS structure.
5652 * passes.c (execute_ipa_summary_passes): Now is called once per
5653 pass rather than once per node*pass.
5655 2008-05-15 Anatoly Sokolov <aesok@post.ru>
5657 * config/avr/avr.c (avr_base_arch_macro, avr_have_movw_lpmx_p,
5658 avr_have_mul_p, avr_asm_only_p): Remove variables.
5659 (avr_override_options): Remove initialization of removed variables.
5660 (avr_file_start): Convert removed variables to fields of
5661 'struct base_arch_s *avr_current_arch'.
5662 * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): (Ditto.).
5663 (AVR_HAVE_MUL): (Ditto.).
5664 (AVR_HAVE_MOVW): (Ditto.).
5665 (AVR_HAVE_LPMX): (Ditto.).
5666 (avr_base_arch_macro, avr_have_movw_lpmx_p, avr_have_mul_p,
5667 avr_asm_only_p): Remove declaration.
5669 2008-05-15 Diego Novillo <dnovillo@google.com>
5671 * config/arm/arm.c (arm_return_in_memory): Fix return type.
5672 * config/arm/arm-protos.h (arm_return_in_memory): Likewise.
5674 2008-05-15 Adam Nemet <anemet@caviumnetworks.com>
5677 * combine.c (check_conversion): Rename back to check_promoted_subreg.
5678 Don't call record_truncated_value from here.
5679 (record_truncated_value): Turn it into a for_each_rtx callback.
5680 (record_truncated_values): New function.
5681 (combine_instructions): Call note_uses with record_truncated_values.
5682 Change name of check_conversion to check_promoted_subreg.
5684 2008-05-15 Janis Johnson <janis187@us.ibm.com>
5686 * doc/sourcebuild.texi: Document support for torture tests.
5688 2008-05-15 Uros Bizjak <ubizjak@gmail.com>
5690 * config/i386/sse.md (*vec_concatv2sf_sse4_1): Add "m" constraint
5691 to alternative 4 of operand 2.
5693 2008-05-15 Richard Guenther <rguenther@suse.de>
5695 * tree-pass.h (current_pass): Declare.
5696 (get_pass_for_id): Likewise.
5697 * passes.c (passes_by_id, passes_by_id_size): New globals.
5698 (set_pass_for_id): New function.
5699 (get_pass_for_id): Likewise.
5700 (register_one_dump_file): Use set_pass_for_id to populate passes_by_id.
5701 (execute_function_todo): Flush per function statistics.
5702 * toplev.c (compile_file): Init statistics.
5703 (general_init): Do early statistics initialization.
5704 (finalize): Finish statistics.
5705 * statistics.h (statistics_early_init): Declare.
5706 (statistics_init): Likewise.
5707 (statistics_fini): Likewise.
5708 (statistics_fini_pass): Likewise.
5709 (statistics_counter_event): Likewise.
5710 (statistics_histogram_event): Likewise.
5711 * statistics.c: New file.
5712 * Makefile.in (OBJS-common): Add statistics.o.
5713 (statistics.o): Add dependencies.
5714 * doc/invoke.texi (-fdump-statistics): Document.
5716 * tree-ssa-pre.c (compute_antic): Use statistics_histogram_event.
5718 (execute_pre): Use statistics_counter_event.
5719 * tree-ssa-propagate.c (struct prop_stats_d): Add num_dce field.
5720 (substitute_and_fold): Increment it. Use statistics_counter_event.
5722 2008-05-15 Diego Novillo <dnovillo@google.com>
5724 http://gcc.gnu.org/ml/gcc-patches/2008-05/msg00893.html
5726 * treestruct.def (TS_STRUCT_FIELD_TAG): Remove.
5727 * tree-ssa-alias.c (new_type_alias): Remove references to
5728 sub-variables from comment.
5729 * tree-ssa-operands.c (swap_tree_operands): Likewise.
5731 2008-05-15 H.J. Lu <hongjiu.lu@intel.com>
5733 * config/i386/sse.md (*vec_concatv2sf_sse4_1): Set prefix_extra
5734 attribute to 1 only for insertps alternative.
5736 2008-05-15 Bernd Schmidt <bernd.schmidt@analog.com>
5738 * config/bfin/bfin.md (loadbytes): New pattern.
5739 * config/bfin/bfin.c (enum bfin_builtins): Add BFIN_BUILTIN_LOADBYTES.
5740 (bfin_init_builtins): Initialize it.
5741 (bdesc_1arg): Add it.
5743 2008-05-15 Sa Liu <saliu@de.ibm.com>
5745 * testsuite/gfortran.dg/c_kind_int128_test1.f03: New.
5746 * testsuite/gfortran.dg/c_kind_int128_test2.f03: New.
5747 * testsuite/lib/target-supports.exp: Add
5748 check_effective_target_fortran_integer_16.
5750 2008-05-15 Bernd Schmidt <bernd.schmidt@analog.com>
5752 * config/bfin/bfin.h (TARGET_RETURN_IN_MEMORY): Don't define here.
5753 * config/bfin/bfin-protos.h (bfin_return_in_memory): Don't declare.
5754 * config/bfin/bfin.c (bfin_return_in_memory): Now static. Return bool.
5755 (TARGET_RETURN_IN_MEMORY): Define.
5757 2008-05-15 Richard Guenther <rguenther@suse.de>
5760 * tree-ssa-alias.c (new_type_alias): Do not set TREE_READONLY.
5761 * tree-flow-inline.h (unmodifiable_var_p): Memory tags never
5762 represent unmodifiable vars.
5764 2008-05-15 Richard Guenther <rguenther@suse.de>
5766 * tree-dfa.c (refs_may_alias_p): Allow all kinds of
5767 INDIRECT_REF and TARGET_MEM_REF.
5768 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle
5771 2008-05-15 Uros Bizjak <ubizjak@gmail.com>
5772 H.J. Lu <hongjiu.lu@intel.com>
5774 * config/i386/sse.md (*vec_concatv2sf_sse4_1): New insn pattern.
5775 (*vec_concatv2si_sse4_1): Use vector_move_operand predicate
5776 for operand 2. Remove pinsr{q,d} with 0x0 immediate operand from
5777 insn alternatives. Add missing alternatives.
5778 (*vec_concatv2di_rex64_sse4_1): Likewise.
5779 (*vec_concatv2si_sse2): Use "x" register constraint instead of "Y2".
5780 (*vec_concatv2di_rex64_sse): Rename from *vec_concatv2di_rex64.
5783 2008-05-15 Richard Guenther <rguenther@suse.de>
5785 PR tree-optimization/36009
5786 PR tree-optimization/36204
5787 * tree-ssa-loop-im.c (tree-ssa-propagate.h): Include.
5788 (determine_invariantness_stmt): Record the loop a store is
5790 * Makefile.in (tree-ssa-loop-im.o): Add tree-ssa-propagate.h
5793 2008-05-15 Richard Guenther <rguenther@suse.de>
5795 PR tree-optimization/34330
5796 * tree-ssa-alias.c (get_smt_for): Only assert that accesses
5797 through the pointer will alias the SMT.
5799 2008-05-14 Andreas Tobler <a.tobler@schweiz.org>
5801 * config/sparc/sparc.h (NO_PROFILE_COUNTERS): Define as 0.
5803 2008-05-14 H.J. Lu <hongjiu.lu@intel.com>
5805 * config/i386/sse.md (*sse4_1_pinsrq): Make it 64bit only.
5807 2008-05-14 Michael Meissner <michael.meissner@amd.com>
5808 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
5810 * optabs.h (optab_index): Add OTI_vashl, OTI_vlshr, OTI_vashr,
5811 OTI_vrotl, OTI_vrotr to support vector/vector shifts.
5812 (vashl_optab): New optab for vector/vector shifts.
5813 (vashr_optab): Ditto.
5814 (vlshr_optab): Ditto.
5815 (vrotl_optab): Ditto.
5816 (vrotr_optab): Ditto.
5817 (optab_subtype): New enum for optab_for_tree_code call.
5818 (optab_for_tree_code): Add enum optab_subtype argument.
5820 * optabs.c (optab_for_tree_code): Take an additional argument to
5821 distinguish between a vector shift by a scalar and vector shift by
5822 a vector. Make lshr/ashr/ashl/rotl/rotr optabs just vector
5823 shifted by a scalar. Use vlshr/vashr/vashl/vrotl/vrotr for the
5824 vector shift by a vector.
5825 (expand_widen_pattern_expr): Pass additional argument to
5826 optab_for_tree_code.
5828 * genopinit.c (optabs): Add vashr_optab, vashl_optab, vlshr_optab,
5829 vrotl_optab, vrotr_optab.
5831 * expr.c (expand_expr_real_1): Update calls to
5832 optab_for_tree_code to distinguish between vector shifted by a
5833 scalar and vector shifted by a vector.
5834 * tree-vectorizer.c (supportable_widening_operation): Ditto.
5835 (supportable_narrowing_operation): Ditto.
5836 * tree-vect-analyze.c (vect_build_slp_tree): Ditto.
5837 * tree-vect-patterns.c (vect_pattern_recog_1): Ditto.
5838 * tree-vect-transform.c (vect_model_reduction_cost): Ditto.
5839 (vect_create_epilog_for_reduction): Ditto.
5840 (vectorizable_reduction): Ditto.
5841 (vectorizable_operation): Ditto.
5842 (vect_strided_store_supported): Ditto.
5843 (vect_strided_load_supported): Ditto.
5844 * tree-vect-generic.c (expand_vector_operations_1): Ditto.
5845 * expmed.c (expand_shift): Ditto.
5847 * doc/md.texi (ashl@var{m}3): Document that operand 2 is always a
5849 (ashr@var{m}3): Ditto.
5850 (vashl@var{m}3): Document new vector/vector shift standard name.
5851 (vashr@var{m}3): Ditto.
5852 (vlshr@var{m}3): Ditto.
5853 (vrotl@var{m}3): Ditto.
5854 (vrotr@var{m}3): Ditto.
5856 * config/i386/i386.md (PPERM_SRC): Move PPERM masks here from i386.c.
5857 (PPERM_INVERT): Ditto.
5858 (PPERM_REVERSE): Ditto.
5859 (PPERM_REV_INV): Ditto.
5860 (PPERM_ZERO): Ditto.
5861 (PPERM_ONES): Ditto.
5862 (PPERM_SIGN): Ditto.
5863 (PPERM_INV_SIGN): Ditto.
5864 (PPERM_SRC1): Ditto.
5865 (PPERM_SRC2): Ditto.
5867 * config/i386/sse.md (mulv2di3): Add SSE5 support.
5868 (sse5_pmacsdql_mem): New SSE5 define_and_split that temporarily
5869 allows a memory operand to be the value being added, and split it
5870 to improve vectorization.
5871 (sse5_pmacsdqh_mem): Ditto.
5872 (sse5_mulv2div2di3_low): SSE5 32-bit multiply and extend function.
5873 (sse5_mulv2div2di3_high): Ditto.
5874 (vec_pack_trunc_v8hi): Add SSE5 pperm support.
5875 (vec_pack_trunc_v4si): Ditto.
5876 (vec_pack_trunc_v2di): Ditto.
5877 (sse5_pcmov_<mode>): Remove code that tried to use use
5878 andps/andnps instead of pcmov.
5879 (vec_widen_smult_hi_v4si): If we have SSE5, use the pmacsdql and
5880 pmacsdqh instructions.
5881 (vec_widen_smult_lo_v4si): Ditto.
5883 * config/i386/i386.c (PPERM_SRC): Move PPERM masks to i386.md.
5884 (PPERM_INVERT): Ditto.
5885 (PPERM_REVERSE): Ditto.
5886 (PPERM_REV_INV): Ditto.
5887 (PPERM_ZERO): Ditto.
5888 (PPERM_ONES): Ditto.
5889 (PPERM_SIGN): Ditto.
5890 (PPERM_INV_SIGN): Ditto.
5891 (PPERM_SRC1): Ditto.
5892 (PPERM_SRC2): Ditto.
5893 (ix86_expand_sse_movcc): Move the SSE5 test after the if
5895 (ix86_expand_int_vcond): If SSE5 generate all possible integer
5897 (ix86_sse5_valid_op_p): Allow num_memory to be negative, which
5898 says ignore whether the last reference is a memory operand.
5900 2008-05-14 Michael Meissner <michael.meissner@amd.com>
5901 Paolo Bonzini <bonzini at gnu dot org>
5903 * config/rs6000/rs6000.c (bdesc_2arg): Change the names of vector
5906 * config/rs6000/altivec.md (vashl<mode>3): Rename from ashl<mode>3.
5907 (vlshr<mode>3): Rename from vlshr<mode>3.
5908 (vashr<mode>3): Rename from vashr<mode>3.
5909 (mulv4sf3): Change the names of vector shift patterns.
5913 * config/spu/spu.c (spu_initialize_trampoline): Rename vector
5916 * config/spu/spu-builtins.def (SI_SHLH): Rename vector shift insns.
5941 * config/spu/spu.md (v): New iterator macro to add v for vector types.
5942 (floatunssidf2_internal): Change vector/vector shift names.
5943 (floatunsdidf2_internal): Ditto.
5950 (vashl<mode>3): Rename from ashl<mode>3.
5951 (vashr<mode>3): Rename from ashr<mode>3.
5952 (vlshr<mode>3): Rename from lshr<mode>3.
5953 (vrotl<mode>3): Rename from rotl<mode>3.
5955 2008-05-14 Michael Meissner <michael.meissner@amd.com>
5958 * config/i386/sse.md (vec_widen_smult_hi_v4si): Delete, using unsigned
5959 multiply gives the wrong value when doing widening multiplies.
5960 (vec_widen_smult_lo_v4si): Ditto.
5962 2008-05-14 Kenneth Zadeck <zadeck@naturalbridge.com>
5964 * optabs.c (prepare_cmp_insn): Changed LCT_PURE_MAKE_BLOCK to
5965 LCT_PURE and LCT_CONST_MAKE_BLOCK to LCT_CONST in calls to
5966 emit_library_call_value.
5967 * builtins.c (expand_builtin_powi, expand_builtin_memcmp): Ditto.
5968 * tree.h (ECF_LIBCALL_BLOCK): Removed.
5969 * calls.c (initialize_argument_information, precompute_arguments,
5970 expand_call, emit_library_call_value_1): Remove ECF_LIBCALL_BLOCK.
5971 (precompute_arguments): Removed flags parameter.
5972 * rtl.h (LCT_CONST_MAKE_BLOCK, LCT_PURE_MAKE_BLOCK): Removed.
5974 2008-05-14 Richard Guenther <rguenther@suse.de>
5976 * tree-ssa-dse.c (dse_possible_dead_store_p): Remove dead code.
5977 Make sure to register the store if the use is a PHI_NODE.
5979 2008-05-14 Olivier Hainque <hainque@adacore.com>
5981 * expr.c (expand_expr_real_1) <normal_inner_ref>: Force op0 to
5982 memory if the component is to be referenced in BLKmode according
5983 to get_inner_reference.
5985 2008-05-14 Adam Nemet <anemet@caviumnetworks.com>
5987 * calls.c (emit_library_call_value_1): Restore code clearing
5988 ECF_LIBCALL_BLOCK to ensure that we only call end_sequence once.
5990 2008-05-14 Olivier Hainque <hainque@adacore.com>
5991 Nicolas Roche <roche@adacore.com>
5993 * configure.ac: Add support for a "gcc_subdir" variable in
5994 config-lang.in, to denote a subdirectory where the language/GCC
5995 integration files are to be found.
5996 * configure: Regenerate.
5998 2008-05-14 Ira Rosen <irar@il.ibm.com>
6000 PR tree-optimization/36098
6001 * tree-vect-analyze.c (vect_analyze_group_access): Set the gap
6002 value for the first load in the group in case of a gap.
6003 (vect_build_slp_tree): Check that there are no gaps in loads.
6005 2008-05-14 Kenneth Zadeck <zadeck@naturalbridge.com>
6007 * doc/rtl.texi: Removed reference to REG_NO_CONFLICT notes.
6008 * optabs.c (expand_binop, expand_absneg_bit, expand_unop,
6009 expand_copysign_bit, ): Change call to emit_no_conflict_block to
6010 emit_insn and remove unneeded code to construct extra args.
6011 (emit_no_conflict_block): Removed.
6012 * optabls.h: (emit_no_conflict_block): Removed.
6013 * cse.c (cse_extended_basic_block): Remove search for
6014 REG_NO_CONFLICT note.
6015 * global.c: Removed incorrect comment added in revision 117.
6016 * expr.c (convert_move): Change call to emit_no_conflict_block to
6018 * recog.c: Change comments so that they do not mention
6020 * local_alloc.c (combine_regs): Removed last parameter.
6021 (no_conflict_p): Removed.
6022 (block_alloc): Removed note, no_conflict_combined_regno and set
6023 local vars. Removed all code to process REG_NO_CONFLICT blocks.
6024 (combine_regs): Removed already_dead and code to look for
6025 REG_NO_CONFLICT notes.
6026 * lower_subreg (remove_retval_note): Removed code to look for
6027 REG_NO_CONFLICT block.
6028 (resolve_reg_notes): Removed REG_NO_CONFLICT case.
6029 (resolve_clobber): Remove code to process libcalls that have
6030 REG_NO_CONFLICT notes.
6031 * loop_invariant.c (find_invariant_insn): Removed REG_NO_CONFLICT
6033 * combine.c (can_combine_p, distribute_notes): Removed
6034 REG_NO_CONFLICT case.
6035 * config/cris/cris.md (movdi pattern): Changed emit_no_conflict_block
6037 * config/mn10300/mn10300.md (absdf2, negdf2 patterns): Ditto.
6038 * config/m68k/m68k.md (negdf2, negxf2, absdf2, absxf2 patterns):
6040 * reg-notes.def (NO_CONFLICT): Removed.
6042 2008-05-14 David S. Miller <davem@davemloft.net>
6044 * config/sparc/sparc.c (sparc_profile_hook): If
6045 NO_PROFILE_COUNTERS, don't generate and pass a label into mcount.
6046 * config/sparc/linux.h (NO_PROFILE_COUNTERS): Define as 1.
6047 * config/sparc/linux64.h (NO_PROFILE_COUNTERS): Likewise.
6049 2008-05-14 Andreas Krebbel <krebbel1@de.ibm.com>
6051 * cse.c (cse_cc_succs): Invoke delete_insn_and_edges.
6053 2008-05-13 Uros Bizjak <ubizjak@gmail.com>
6056 * config/i386/i386.c (ix86_expand_vector_init_general): Rearrange op0
6057 and op1 expansion before vector concat to have less live pseudos.
6059 2008-05-13 H.J. Lu <hongjiu.lu@intel.com>
6061 * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): Use
6062 ix86_expand_vector_set if supported.
6064 2008-05-13 Diego Novillo <dnovillo@google.com>
6065 Kenneth Zadeck <zadeck@naturalbridge.com>
6067 http://gcc.gnu.org/ml/gcc-patches/2008-05/msg00748.html
6069 * tree.h (init_phinodes, fini_phinodes, release_phi_node,
6070 phinodes_print_statistics, init_ssanames, fini_ssanames,
6071 make_ssa_name, duplicate_ssa_name, duplicate_ssa_name_ptr_info,
6072 release_ssa_name, release_defs, replace_ssa_name_symbol,
6073 ssanames_print_statistics): Move ...
6074 * tree-flow.h: ... here.
6075 * tree-ssanames.c (init_ssanames): Add arguments FN and SIZE.
6076 Use FN instead of cfun.
6077 (make_ssa_name_fn): Rename from make_ssa_name.
6078 (pass_release_ssa_names): Add TODO_dump_func to finish flags.
6079 * tree-flow-inline.h (make_ssa_name): Move from
6080 tree-ssanames.c. Convert to static inline. Call make_ssa_name_fn.
6081 * omp-low.c (expand_omp_parallel):
6082 * tree-flow-inline.h (redirect_edge_var_map_result):
6083 * tree-ssa.c (init_tree_ssa): Add argument FN.
6084 Use it instead of cfun. Update all users.
6086 2008-05-13 Tom Tromey <tromey@redhat.com>
6088 PR preprocessor/22168:
6089 * doc/cpp.texi (Top): Update menu.
6090 (Alternatives to Wrapper #ifndef): New node.
6091 (Other Directives): Document deprecation.
6092 (Obsolete Features): Remove menu.
6093 (Assertions): Merge node into Obsolete Features.
6094 (Obsolete once-only headers): Move earlier; rename to Alternatives
6096 * doc/cppopts.texi: Update.
6097 * c.opt (Wdeprecated): Enable for C and ObjC.
6098 * doc/invoke.texi (Option Summary): Move -Wno-deprecated.
6099 (C++ Dialect Options): Move -Wno-deprecated from here to...
6100 (Warning Options): ... here.
6102 2008-05-13 Richard Guenther <rguenther@suse.de>
6105 * fold-const.c (fold_sign_changed_comparison): Do not allow
6106 changes in pointer-ness.
6108 2008-05-12 Kaz Kojima <kkojima@gcc.gnu.org>
6111 * config/sh/sh.c (sh_expand_prologue): Don't clear
6112 RTX_FRAME_RELATED_P for push insns.
6114 2008-05-12 Andy Hutchinson <hutchinsonandy@aim.com>
6116 * config/avr/avr.h (MAX_OFILE_ALIGNMENT): Define.
6118 2008-05-12 Anatoly Sokolov <aesok@post.ru>
6120 * config/avr/avr.h (machine_function): Add 'is_leaf' field.
6121 * config/avr/avr.c (avr_regs_to_save): Compute 'machine->is_leaf'.
6122 Use 'machine->is_leaf' instead of 'leaf_func_p'.
6124 2008-05-12 H.J. Lu <hongjiu.lu@intel.com>
6126 * config/i386/sse.md (*sse_concatv4sf): Renamed to ...
6127 (*vec_concatv4sf_sse): This.
6128 (*sse2_concatv2si): Renamed to ...
6129 (*vec_concatv2si_sse2): This.
6130 (*sse1_concatv2si): Renamed to ...
6131 (*vec_concatv2si_sse): This.
6132 (*vec_concatv2di_rex): Renamed to ...
6133 (*vec_concatv2di_rex64): This.
6134 (*vec_concatv2si_sse4_1): New.
6135 (*vec_concatv2di_rex64_sse4_1): Likewise.
6137 2008-05-12 Uros Bizjak <ubizjak@gmail.com>
6139 PR rtl-optimization/36111
6140 * recog.c (validate_replace_rtx_1): Unshare new RTL expression
6141 that was created for swappable operands.
6143 2008-05-12 Samuel Tardieu <sam@rfc1149.net>
6146 * Makefile.in: Substitute GNATMAKE and GNATBIND.
6147 * configure.ac: Add call to ACX_PROG_GNAT.
6149 2008-05-11 Volker Reichelt <v.reichelt@netcologne.de>
6151 * optc-gen.awk: Fix comment typo.
6153 2008-05-11 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
6155 * pretty-print.c (pp_integer_with_precision): Use
6156 HOST_LONG_LONG_FORMAT.
6158 2008-05-10 Kenneth Zadeck <zadeck@naturalbridge.com>
6160 * gcse.c (store_killed_in_insn): Negated call to RTL_CONST_CALL_P.
6162 2008-05-10 H.J. Lu <hongjiu.lu@intel.com>
6164 * config/i386/i386.c (bdesc_ptest): Removed.
6165 (ix86_builtin_type): Add INT_FTYPE_V2DI_V2DI_PTEST.
6166 (bdesc_args): Add __builtin_ia32_ptestz128,
6167 __builtin_ia32_ptestc128 and __builtin_ia32_ptestnzc128.
6168 (ix86_init_mmx_sse_builtins): Updated.
6169 (ix86_expand_args_builtin): Handle INT_FTYPE_V2DI_V2DI_PTEST.
6170 (ix86_expand_builtin): Updated.
6172 2008-05-10 Richard Sandiford <rdsandiford@googlemail.com>
6174 * tree-cfg.c (valid_fixed_convert_types_p): New function.
6175 (verify_gimple_expr): Handle FIXED_CONVERT_EXPR.
6177 2008-05-10 Uros Bizjak <ubizjak@gmail.com>
6179 * value-prof.c (interesting_stringop_to_profile): Do not
6180 return early for BUILT_IN_MEMPCPY.
6182 2008-05-09 H.J. Lu <hongjiu.lu@intel.com>
6184 * calls.c (expand_call): Don't use callgraph to increase
6185 preferred_stack_boundary.
6187 * cgraph.h (cgraph_rtl_info): Use unsigned on
6188 preferred_incoming_stack_boundary.
6190 * final.c (rest_of_clean_state): Use unsigned on
6191 preferred_stack_boundary.
6193 2008-05-09 Tom Tromey <tromey@redhat.com>
6195 PR preprocessor/22231:
6196 * c-opts.c (sanitize_cpp_opts): Disallow -MG if compilation is
6199 2008-05-09 Uros Bizjak <ubizjak@gmail.com>
6201 PR tree-optimization/36129
6202 * tree-ssa-ccp.c: Include value-prof.h.
6203 (execute_fold_all_builtins): Call gimple_remove_stmt_histograms if
6204 built-in function was folded to a constant.
6205 * Makefile.in (tree-ssa-ccp.c): Depend on value-prof.h
6207 2008-05-09 Jan Sjodin <jan.sjodin@amd.com>
6208 Sebastian Pop <sebastian.pop@amd.com>
6210 * tree-scalar-evolution.c: Document instantiate_scev.
6211 (instantiate_parameters_1): Renamed instantiate_scev_1.
6212 Don't use the same loop for instantiation_loop and evolution_loop.
6213 (instantiate_scev): New.
6214 (instantiate_parameters): Moved...
6215 (resolve_mixers): Update call to instantiate_scev_1 to pass the
6216 same loop twice. Maintains the semantics for this function.
6217 * tree-scalar-evolution.h (instantiate_scev): Declare.
6218 (instantiate_parameters): ...here. Now static inline.
6219 * tree-data-ref.c (dr_analyze_indices): Call instantiate_scev
6220 instead of resolve_mixers.
6222 2008-05-09 Maxim Kuvyrkov <maxim@codesourcery.com>
6224 * rtl-factoring.c (collect_pattern_seqs): Fix typo.
6226 2008-05-09 Tomas Bily <tbily@suse.cz>
6228 * config/pa/pa.c (reloc_needed): Use CASE_CONVERT.
6229 * tree-cfg.c (verify_expr, verify_gimple_expr): Likewise.
6230 * tree-ssa-structalias.c (get_constraint_for): Likewise.
6231 * c-common.c (c_common_truthvalue_conversion): Likewise.
6232 * tree-object-size.c (compute_object_offset): Likewise.
6233 * tree-inline.c (estimate_num_insns_1): Likewise.
6234 * varasm.c (const_hash_1, compare_constant, copy_constant)
6235 (compute_reloc_for_constant, output_addressed_constants)
6236 (initializer_constant_valid_p): Likewise.
6237 * c-omp.c (check_omp_for_incr_expr): Likewise.
6238 * gimplify.c (gimplify_expr): Likewise.
6239 * c-typeck.c (c_finish_return): Likewise.
6240 * tree-vectorizer.c (supportable_widening_operation)
6241 (supportable_narrowing_operation): Likewise.
6242 * c-pretty-print.c (pp_c_cast_expression, pp_c_expression): Likewise.
6243 * matrix-reorg.c (can_calculate_expr_before_stmt): Likewise.
6244 * expr.c (highest_pow2_factor, expand_expr_real_1): Likewise.
6245 * dwarf2out.c (loc_descriptor_from_tree_1, add_bound_info)
6246 (descr_info_loc): Likewise.
6247 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Likewise.
6248 * fold-const.c (operand_equal_p, make_range, extract_muldiv_1)
6249 (fold_unary): Likewise.
6250 * builtins.c (get_pointer_alignment): Likewise.
6251 * tree-scalar-evolution.c (interpret_rhs_modify_stmt)
6252 (instantiate_parameters_1): Likewise.
6253 * tree.c (expr_align, stabilize_reference): Likewise.
6254 * tree-pretty-print.c (dump_generic_node, op_prio): Likewise.
6255 * tree-ssa-loop-niter.c (derive_constant_upper_bound): Likewise.
6256 * convert.c (strip_float_extensions): Use CONVERT_EXPR_P.
6257 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
6258 * config/alpha/alpha.c (va_list_skip_additions): Likewise.
6259 * c-common.c (c_alignof_expr, check_function_arguments_recurse):
6261 * tree-ssa.c (tree_ssa_useless_type_conversion): Likewise.
6262 * varasm.c (initializer_constant_valid_p, output_constant): Likewise.
6263 * tree-ssa-forwprop.c (get_prop_source_stmt, can_propagate_from)
6264 (forward_propagate_addr_expr_1, forward_propagate_addr_expr)
6265 (forward_propagate_comparison)
6266 (tree_ssa_forward_propagate_single_use_vars): Likewise.
6267 * cfgexpand.c (discover_nonconstant_array_refs_r): Likewise.
6268 * emit-rtl.c (component_ref_for_mem_expr)
6269 (set_mem_attributes_minus_bitpos): Likewise.
6270 * tree-ssa-phiopt.c (conditional_replacement): Likewise.
6271 * gimplify.c (gimplify_conversion, goa_lhs_expr_p, gimplify_expr):
6273 * c-typeck.c (default_function_array_conversion, build_indirect_ref)
6274 (build_function_call, pointer_diff, build_compound_expr)
6275 (c_finish_return): Likewise.
6276 * tree-vect-analyze.c (vect_determine_vectorization_factor): Likewise.
6277 * matrix-reorg.c (get_inner_of_cast_expr, may_flatten_matrices_1):
6279 * tree-ssa-ifcombine.c (recognize_single_bit_test): Likewise.
6280 * expr.c (is_aligning_offset): Likewise.
6281 * tree-ssa-alias.c (is_escape_site): Likewise.
6282 * tree-stdarg.c (va_list_counter_bump, check_va_list_escapes)
6283 (check_all_va_list_escapes): Likewise.
6284 * tree-ssa-loop-ivopts.c (determine_base_object)
6285 (determine_common_wider_type): Likewise.
6286 * dojump.c (do_jump): Likewise.
6287 * tree-ssa-sccvn.c (simplify_unary_expression): Likewise.
6288 * tree-gimple.c (is_gimple_cast): Likewise.
6289 * fold-const.c (decode_field_reference, )
6290 (fold_sign_changed_comparison, fold_unary, fold_comparison)
6291 (fold_binary): Likewise.
6292 * tree-ssa-alias-warnings.c (find_alias_site_helper)
6293 (already_warned_in_frontend_p): Likewise.
6294 * builtins.c (get_memory_rtx, fold_builtin_next_arg): Likewise.
6295 * tree.c (really_constant_p, get_unwidened): Likewise.
6296 * tree-ssa-loop-niter.c (expand_simple_operations): Likewise.
6297 * tree-ssa-loop-im.c (rewrite_bittest): Likewise.
6298 * tree-vrp.c (register_edge_assert_for_2, register_edge_assert_for_1):
6300 * tree.h (STRIP_NOPS, STRIP_SIGN_NOPS, STRIP_TYPE_NOPS): Use
6302 (CONVERT_EXPR_P): Define.
6303 (CASE_CONVERT): Define.
6305 2008-05-08 Kenneth Zadeck <zadeck@naturalbridge.com>
6308 * dce.c (deletable_insn_p): Do not delete calls if df_in_progress.
6309 (delete_unmarked_insns): When deleting a call, call
6310 delete_unreachable_blocks.
6311 * rtl.texi (RTL_CONST_CALL_P, RTL_PURE_CALL_P,
6312 RTL_CONST_OR_PURE_CALL_P, RTL_LOOPING_CONST_OR_PURE_CALL_P): Fixed doc.
6314 2008-05-08 Richard Guenther <rguenther@suse.de>
6316 * doc/invoke.texi (-fdump-tree-salias): Remove documentation.
6317 (-ftree-salias): Likewise.
6318 (salias-max-implicit-fields): Remove param documentation.
6319 (salias-max-array-elements): Likewise.
6320 * tree-pass.h (pass_create_structure_vars): Remove.
6321 * params.h (SALIAS_MAX_IMPLICIT_FIELDS): Remove.
6322 (SALIAS_MAX_ARRAY_ELEMENTS): Likewise.
6323 * tree-ssa-alias.c (create_structure_vars): Remove.
6324 (gate_structure_vars): Likewise.
6325 (pass_create_structure_vars): Likewise.
6326 (gate_build_alias): Likewise.
6327 (pass_build_alias): Adjust to run always and dump the function.
6328 * common.opt (ftree-salias): Hide.
6329 * passes.c (init_optimization_passes): Remove
6330 pass_create_structure_vars, adjust comment.
6331 * params.def (PARAM_SALIAS_MAX_IMPLICIT_FIELDS): Remove.
6332 (PARAM_SALIAS_MAX_ARRAY_ELEMENTS): Likewise.
6333 * opts.c (decode_options): Do not set flag_tree_salias.
6334 (common_handle_option): Add OPT_ftree_salias to the backward
6335 compatibility section.
6337 2008-05-08 Richard Guenther <rguenther@suse.de>
6339 * tree-flow-inline.h (var_can_have_subvars): Move ...
6340 * tree-ssa-structalias.c (var_can_have_subvars): ... here.
6341 * tree-flow.h (var_can_have_subvars): Remove.
6342 (push_fields_onto_fieldstack): Remove.
6343 (sort_fieldstack): Likewise.
6344 (struct fieldoff): Move ...
6345 * tree-ssa-structalias.c (struct fieldoff): ... here. Remove
6346 alias_set and base_for_components fields.
6347 (sort_fieldstack): Make static.
6348 (push_fields_onto_fieldstack): Likewise. Remove code that
6349 handles anything but RECORD_TYPEs. Remove alias_set and
6350 base_for_components handling.
6351 (create_variable_info_for): Adjust.
6353 2008-05-08 Seongbae Park <seongbae.park@gmail.com>
6355 * common.opt (Wframe-larger-than=): Shorten the help message
6357 * doc/invoke.texi (Wframe-larger-than=): Add more description.
6359 2008-05-08 Rafael Espindola <espindola@google.com>
6361 * tree-complex.c (expand_complex_div_wide): Don't create CONDs that
6363 * tree-gimple.c (is_gimple_condexpr): Check that the expression doesn't
6364 trap and that both operands are gimple values.
6365 (canonicalize_cond_expr_cond): Use is_gimple_condexpr.
6366 * gcc/tree-eh.c (tree_could_trap_p): Correctly detect if a comparison
6369 2008-05-08 Richard Sandiford <rsandifo@nildram.co.uk>
6371 * read-rtl.c (join_c_conditions): Return the first string if the
6372 two strings are equal.
6374 2008-05-08 Richard Sandiford <rsandifo@nildram.co.uk>
6376 * gensupport.h (pred_data): Add a "num_codes" field.
6377 (add_predicate_code): Declare.
6378 * gensupport.c (add_predicate_code): New function.
6379 (std_pred_table): Add an "allows_const_p" field.
6380 (std_preds): Set this field for predicates that allow RTX_CONST_OBJs.
6381 Remove the (incomplete) list of such codes from the codes field.
6382 (init_predicate_table): Use add_predicate_code. Add all
6383 RTX_CONST_OBJs if allows_const_p is true.
6384 * genrecog.c (process_define_predicate): Use add_predicate_code.
6386 2008-05-08 David Daney <ddaney@avtrex.com>
6387 Richard Sandiford <rsandifo@nildram.co.uk>
6389 * config/mips/mips.md (mips_expand_compare_and_swap_12): Handle
6390 special case of constant zero operands.
6391 * config/mips/mips.c (mips_expand_compare_and_swap_12): Zero extend
6392 old and new values. Special case constant zero values.
6393 * config/mips/mips.h (MIPS_COMPARE_AND_SWAP): Skip 'sync' if compare
6395 (MIPS_COMPARE_AND_SWAP_12): Handle constant zero operands.
6396 (MIPS_COMPARE_AND_SWAP_12_0): New macro.
6398 2008-05-08 Paolo Bonzini <bonzini@gnu.org>
6401 * simplify-rtx.c (simplify_plus_minus): Create CONST of
6402 similar RTX_CONST_OBJ before CONST_INT.
6404 2008-05-08 Steve Ellcey <sje@cup.hp.com>
6406 * stmt.c (expand_stack_restore): Change sa mode if needed.
6408 2008-05-08 Richard Guenther <rguenther@suse.de>
6410 * config/i386/i386-protos.h (ix86_return_in_memory): Adjust
6411 return type to bool.
6412 (ix86_sol10_return_in_memory): Likewise.
6413 (ix86_i386elf_return_in_memory): Likewise.
6414 (ix86_i386interix_return_in_memory): Likewise.
6415 * config/i386/i386.c (ix86_return_in_memory): Likewise.
6416 (ix86_sol10_return_in_memory): Likewise.
6417 (ix86_i386elf_return_in_memory): Likewise.
6418 (ix86_i386interix_return_in_memory): Likewise.
6420 2008-05-08 Kai Tietz <kai.tietz@onevision.com>
6423 * calls.c (compute_argument_block_size ): Add ATTRIBUTE_UNUSED to
6425 (emit_library_call_value_1): Add ATTRIBUTE_UNUSED to variable fndecl.
6426 * target-def.h: Check that TARGET_RETURN_IN_MEMORY isn't
6429 2008-05-08 Richard Guenther <rguenther@suse.de>
6431 * tree-data-ref.c (dr_analyze_alias): Do not set DR_SUBVARS.
6432 * tree-data-ref.h (struct dr_alias): Remove subvars field.
6433 (DR_SUBVARS): Remove.
6434 * tree-dfa.c (dump_subvars_for): Remove.
6435 (debug_subvars_for): Likewise.
6436 (dump_variable): Do not dump subvars.
6437 (remove_referenced_var): Do not remove subvars.
6438 * tree-flow-inline.h (clear_call_clobbered): SFTs no longer exist.
6439 (lookup_subvars_for_var): Remove.
6440 (get_subvars_for_var): Likewise.
6441 (get_subvars_at): Likewise.
6442 (get_first_overlapping_subvar): Likewise.
6443 (overlap_subvar): Likewise.
6444 * tree-flow.h (subvar_t): Remove.
6445 (struct var_ann_d): Remove subvars field.
6446 * tree-ssa-alias.c (mark_aliases_call_clobbered): Remove queued
6447 argument. Remove special handling of SFTs.
6448 (compute_tag_properties): Likewise.
6449 (set_initial_properties): Likewise.
6450 (compute_call_clobbered): Likewise.
6451 (count_mem_refs): Likewise.
6452 (compute_memory_partitions): Likewise.
6453 (compute_flow_insensitive_aliasing): Likewise.
6454 (setup_pointers_and_addressables): Likewise.
6455 (new_type_alias): Likewise.
6456 (struct used_part): Remove.
6457 (used_portions): Likewise.
6458 (struct used_part_map): Likewise.
6459 (used_part_map_eq): Likewise.
6460 (used_part_map_hash): Likewise.
6461 (free_used_part_map): Likewise.
6462 (up_lookup): Likewise.
6463 (up_insert): Likewise.
6464 (get_or_create_used_part_for): Likewise.
6465 (create_sft): Likewise.
6466 (create_overlap_variables_for): Likewise.
6467 (find_used_portions): Likewise.
6468 (create_structure_vars): Likewise.
6469 * tree.def (STRUCT_FIELD_TAG): Remove.
6470 * tree.h (MTAG_P): Adjust.
6471 (struct tree_memory_tag): Remove base_for_components and
6472 unpartitionable flags.
6473 (struct tree_struct_field_tag): Remove.
6474 (SFT_PARENT_VAR): Likewise.
6475 (SFT_OFFSET): Likewise.
6476 (SFT_SIZE): Likewise.
6477 (SFT_NONADDRESSABLE_P): Likewise.
6478 (SFT_ALIAS_SET): Likewise.
6479 (SFT_UNPARTITIONABLE_P): Likewise.
6480 (SFT_BASE_FOR_COMPONENTS_P): Likewise.
6481 (union tree_node): Remove sft field.
6482 * alias.c (get_alias_set): Remove special handling of SFTs.
6483 * print-tree.c (print_node): Remove handling of SFTs.
6484 * tree-dump.c (dequeue_and_dump): Likewise.
6485 * tree-into-ssa.c (mark_sym_for_renaming): Likewise.
6486 * tree-nrv.c (dest_safe_for_nrv_p): Remove special handling of SFTs.
6487 * tree-predcom.c (set_alias_info): Do not set subvars.
6488 * tree-pretty-print.c (dump_generic_node): Do not handle SFTs.
6489 * tree-ssa-loop-ivopts.c (get_ref_tag): Likewise.
6490 * tree-ssa-operands.c (access_can_touch_variable): Likewise.
6491 (add_vars_for_offset): Remove.
6492 (add_virtual_operand): Remove special handling of SFTs.
6493 (add_call_clobber_ops): Likewise.
6494 (add_call_read_ops): Likewise.
6495 (get_asm_expr_operands): Likewise.
6496 (get_modify_stmt_operands): Likewise.
6497 (get_expr_operands): Likewise.
6498 (add_to_addressable_set): Likewise.
6499 * tree-ssa.c (verify_ssa_name): Do not handle SFTs.
6500 * tree-tailcall.c (suitable_for_tail_opt_p): Likewise.
6501 * tree-vect-transform.c (vect_create_data_ref_ptr): Do not set subvars.
6502 * tree.c (init_ttree): Remove STRUCT_FIELD_TAG initialization.
6503 (tree_code_size): Remove STRUCT_FIELD_TAG handling.
6504 (tree_node_structure): Likewise.
6505 * tree-ssa-structalias.c (set_uids_in_ptset): Remove special
6507 (find_what_p_points_to): Likewise.
6509 2008-05-08 Sa Liu <saliu@de.ibm.com>
6511 * config/spu/spu.md: Fixed subti3 pattern.
6513 2008-05-08 Richard Guenther <rguenther@suse.de>
6516 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
6517 sure to create a representative for trailing arrays for PTA.
6519 2008-05-08 Richard Guenther <rguenther@suse.de>
6522 * fold-const.c (operand_equal_p): Two objects which types
6523 differ in pointerness are not equal.
6525 2008-05-08 Kai Tietz <kai.tietz@onevision.com>
6527 * calls.c (compute_argument_block_size): Add argument tree fndecl.
6528 (OUTGOING_REG_PARM_STACK_SPACE): Add function type argument.
6529 (emit_library_call_value_1): Add new variable fndecl initialized by
6530 NULL_TREE. It should be the decl type of orgfun, but this information
6531 seems not to be available here, so it uses the default calling abi.
6532 * config/arm/arm.c (arm_return_in_memory): Add fntype argumen.
6533 * config/arm/arm.h (RETURN_IN_MEMORY): Replace RETURN_IN_MEMORY
6534 by TARGET_RETURN_IN_MEMORY.
6535 * config/i386/i386-interix.h: Likewise.
6536 * config/i386/i386.h: Likewise.
6537 * config/i386/i386elf.h: Likewise.
6538 * config/i386/ptx4-i.h: Likewise.
6539 * config/i386/sol2-10.h: Likewise.
6540 * config/i386/sysv4.h: Likewise.
6541 * config/i386/vx-common.h: Likewise.
6542 * config/cris/cris.h: Removed #if 0 clause.
6543 * config/arm/arm-protos.h (arm_return_in_memory): Add fntype argument.
6544 * config/i386/i386-protos.h (ix86_return_in_memory): Add fntype
6546 (ix86_sol10_return_in_memory): Likewise.
6547 (ix86_i386elf_return_in_memory): New.
6548 (ix86_i386interix_return_in_memory): New.
6549 * config/mt/mt-protos.h (mt_return_in_memory): New.
6550 * config/mt/mt.c: Likewise.
6551 * config/mt/mt.h (OUTGOING_REG_PARM_STACK_SPACE): Add FNTYPE argument.
6552 (RETURN_IN_MEMORY): Replace by TARGET_RETURN_IN_MEMORY.
6553 * config/bfin/bfin.h: Likewise.
6554 * config/bfin/bfin-protos.h (bfin_return_in_memory): Add fntype
6556 * config/bfin/bfin.c: Likewise.
6557 * config/pa/pa.h (OUTGOING_REG_PARM_STACK_SPACE): Add FNTYPE argument.
6558 * config/alpha/unicosmk.h: Likewise.
6559 * config/i386/cygming.h: Likewise.
6560 * config/iq2000/iq2000.h: Likewise.
6561 * config/mips/mips.h: Likewise.
6562 * config/mn10300/mn10300.h: Likewise.
6563 * config/rs6000/rs6000.h: Likewise.
6564 * config/score/score.h: Likewise.
6565 * config/spu/spu.h: Likewise.
6566 * config/v850/v850.h: Likewise.
6567 * defaults.h: Likewise.
6568 * doc/tm.texi (OUTGOING_REG_PARM_STACK_SPACE): Adjust documentation.
6569 * expr.c (emit_block_move): Adjust use of
6570 OUTGOING_REG_PARM_STACK_SPACE.
6571 * function.c (STACK_DYNAMIC_OFFSET): Adjust use of
6572 OUTGOING_REG_PARM_STACK_SPACE.
6573 * targhooks.c (default_return_in_memory): Remove RETURN_IN_MEMORY.
6575 2008-05-08 Jakub Jelinek <jakub@redhat.com>
6577 * tree-parloops.c (create_parallel_loop): Set OMP_RETURN_NOWAIT
6578 on OMP_RETURN for OMP_FOR.
6581 * dwarf2out.c (dw_expand_expr, common_check): Removed.
6582 (fortran_common): New function.
6583 (gen_variable_die): Call fortran_common instead of common_check,
6584 adjust for it returning tree instead of rtx. Formatting.
6586 2008-05-07 Kenneth Zadeck <zadeck@naturalbridge.com>
6590 * see.c (see_copy_insn): Copy new pure const attributes for new call.
6591 * c-decl.c (merge_decls): Ditto.
6592 * postreload.c (record_opr_changes): Change CONST_OR_PURE_CALL_P
6593 to RTL_CONST_OR_PURE_CALL_P.
6594 * tree.c (define_local_buitin): Rename DECL_IS_PURE to DECL_PURE_P.
6595 Initialized DECL_LOOPING_CONST_PURE.
6596 (process_call_operands): Set tree_side_effects properly.
6597 * tree.h (TREE_READONLY_DECL_P): Removed.
6598 (DECL_IS_PURE): Renamed to DECL_PURE_P.
6599 (DECL_LOOPING_OR_CONST_P): New macro.
6600 (struct tree_function_decl): Added looping_const_or_pure_p.
6602 (ECF_LOOPING_OR_CONST_P): New macro.
6603 * rtlanal.c (pure_const_p): Removed.
6604 * builtins.c (expand_builtin): Rename DECL_IS_PURE to DECL_PURE_P.
6605 * reorg.c (delete_prior_computation) Changed CONST_OR_PURE_CALL_P
6606 to RTL_CONST_CALL_P.
6607 * ipa-pure-const.c (pure_const_state_e): Added looping field.
6608 (check_decl, check_tree, check_call, scan_function): Initialize
6610 (analyze_function): Rename DECL_IS_PURE to DECL_PURE_P.
6611 (static_execute): Set looping true for recursive functions.
6612 Undo setting state to IPA_NEITHER for recursive functions.
6614 * ifcvt.c (noce_can_store_speculate_p): Changed
6615 CONST_OR_PURE_CALL_P and pure_call_p to RTL_CONST_CALL_P or
6616 RTL_CONST_OR_PURE_CALL_P.
6617 * dse.c (scan_insn): Ditto.
6618 * local-alloc.c (validate_equiv_mem, memref_used_between_p): Ditto.
6619 * gcse.c (oprs_not_seen_p) Changed CONST_OR_PURE_CALL_P to
6620 RTL_CONST_OR_PURE_CALL_P.
6621 (store_killed_in_insn): Changed CONST_OR_PURE_CALL_P and
6622 pure_call_p to RTL_CONST_CALL_P.
6623 * gimplify.c (gimplify_call_expr): Clear side effects for
6624 non-looping pure and constant calls.
6625 * calls.c (emit_call_1): Set rtl flags from ecf flags.
6626 (flags_from_decl_or_type): Set ecf flags from decl flags.
6627 (initialize_argument_information): Turn off
6628 ECF_LOOPING_CONST_OR_PURE when turning off ECF_CONST.
6629 Change const to pure if callee_copies is true rather than just
6631 (expand_call): Turn off ECF_LOOPING_PURE_CONST_CALL and remove old
6632 way of marking pure calls.
6633 (emit_library_call_value_1): Turn off ECF_LOOPING_PURE_CONST_CALL.
6634 Remove hack that was supposed to fix pr7335 and remove old
6635 way of marking pure calls.
6636 * emit-rtl.c (emit_copy_of_insn_after): Copy RTL_CONST_CALL_P,
6637 RTL_PURE_CALL_P, RTL_LOOPING_CONST_OR_PURE_CALL_P.
6638 * cselib.c (cselib_process_insn): Changed CONST_OR_PURE_CALL_P to
6639 RTL_CONST_OR_PURE_CALL_P.
6640 * tree-ssa-pre.c (can_value_number_call): Fixed spacing.
6641 * loop-invariant.c (find_exits, find_invariant_bb): Changed
6642 CONST_OR_PURE_CALL_P to RTL_CONST_OR_PURE_CALL_P.
6643 * sched-deps.c (schedule_analyze): Ditto.
6644 * rtl.h (struct rtx_def): Use call field, unchanging field, and
6645 return_val field of calls to represent pure and const function info.
6646 (CONST_OR_PURE_CALL_P): Deleted macro.
6647 (RTL_CONST_CALL_P, RTL_PURE_CALL_P,
6648 RTL_LOOPING_CONST_OR_PURE_CALL_P, RTL_CONST_OR_PURE_P): New macros.
6649 * tree-inline.c (copy_body_r): Changed TREE_READONLY_DECL_P to
6651 * tree-optimize.c (execute_fixup_cfg): Added test for
6652 ECF_LOOPING_CONST_OR_PURE.
6653 * c-common.c (handle_pure_attribute): Changed DECL_IS_PURE to
6655 * tree-cfg.c (update_call_expr_flags): Do not clear tree side
6656 effects for looping pure or const calls.
6657 (verify_gimple_expr): Added verification code.
6658 * config/alpha/alpha.c (alpha_legitimize_address,
6659 alpha_emit_xfloating_libcall): Changed CONST_OR_PURE_CALL_P to
6661 * config/s390/s390.c (s390_emit_tls_call_insn): Ditto.
6662 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Ditto.
6663 * config/mips/mips.c (mips_call_tls_get_addr): Ditto.
6664 * cfgrtl.c (need_fake_edge_p): Changed CONST_OR_PURE_CALL_P to
6665 RTL_CONST_OR_PURE_CALL_P.
6666 * dce.c (deletable_insn_p): Allow non looping, non sibling, pure
6667 and const calls to be deleted.
6669 2008-05-07 Uros Bizjak <ubizjak@gmail.com>
6672 * config/i386/mmx.md (mmx_subv2sf3): New expander.
6673 (*mmx_subv2sf3): Rename from mmx_subv2sf3 insn pattern.
6674 (*mmx_eqv2sf3): Rename from mmx_eqv2sf3 insn pattern.
6675 (mmx_eqv2sf3): New expander. Use ix86_fixup_binary_operands_no_copy
6676 to handle nonimmediate operands.
6677 (*mmx_paddwd): Rename from mmx_paddwd insn pattern.
6678 (mmx_paddwd): New expander. Use ix86_fixup_binary_operands_no_copy
6679 to handle nonimmediate operands.
6680 (*mmx_pmulhrwv4hi3): Rename from mmx_pmulhrwv4hi3 insn pattern.
6681 (mmx_pmulhrwv4hi3): New expander. Use
6682 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
6683 (*sse2_umulv1siv1di3): Rename from sse2_umulv1siv1di3 insn pattern.
6684 (sse2_umulv1siv1di3): New expander. Use
6685 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
6686 (*mmx_eq<mode>3): Rename from mmx_eq<mode>3 insn pattern.
6687 (mmx_eq<mode>3): New expander. Use
6688 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
6689 (*mmx_uavgv8qi3): Rename from mmx_uavgv8qi3 insn pattern.
6690 (mmx_uavgv8qi3): New expander. Use
6691 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
6692 (*mmx_uavgv4hi3): Rename from mmx_uavgv4hi3 insn pattern.
6693 (mmx_uavgv4hi3): New expander. Use
6694 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
6696 * config/i386/sse.md
6697 (sse_movhlps_exp): New expander. Use ix86_fixup_binary_operands
6698 to handle nonimmediate operands.
6699 (sse_movlhps_exp): New expander. Use ix86_fixup_binary_operands
6700 to handle nonimmediate operands.
6701 (sse_loadhps_exp): New expander. Use ix86_fixup_binary_operands
6702 to handle nonimmediate operands.
6703 (sse_loadlps_exp): New expander. Use ix86_fixup_binary_operands
6704 to handle nonimmediate operands.
6705 (sse2_unpckhpd_exp): New expander. Use
6706 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
6707 (sse2_unpcklpd_exp): New expander. Use
6708 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
6709 (sse_loadhpd_exp): New expander. Use ix86_fixup_binary_operands
6710 to handle nonimmediate operands.
6711 (sse_loadlpd): New expander. Use ix86_fixup_binary_operands
6712 to handle nonimmediate operands.
6713 (*sse2_<plusminus_insn><mode>3): Rename from
6714 sse2_<plusminus_insn><mode>3 insn pattern.
6715 (sse2_<plusminus_insn><mode>3): New expander. Use
6716 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
6717 (*sse2_umulv2siv2di3): Rename from sse2_umulv2siv2di3 insn pattern.
6718 (sse2_umulv2siv2di3): New expander. Use
6719 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
6720 (*sse4_1_mulv2siv2di3): Rename from sse4_1_mulv2siv2di3 insn pattern.
6721 (sse4_1_mulv2siv2di3): New expander. Use
6722 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
6723 (*sse2_pmaddwd): Rename from sse2_pmaddwd insn pattern.
6724 (sse2_pmaddwd): New expander. Use
6725 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
6726 (*sse2_eq<mode>3): Rename from sse2_eq<mode>3 insn pattern.
6727 (sse2_eq<mode>3): New expander. Use
6728 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
6729 (*sse4_1_eqv2di3): Rename from sse4_1_eqv2di3 insn pattern.
6730 (sse4_1_eqv2di3): New expander. Use
6731 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
6732 (*sse2_uavgv16qi3): Rename from sse2_uavgv16qi3 insn pattern.
6733 (sse2_uavgv16qi3): New expander. Use
6734 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
6735 (*sse2_uavgv16qi3): Rename from sse2_uavgv16qi3 insn pattern.
6736 (sse2_uavgv16qi3): New expander. Use
6737 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
6738 (*sse2_uavgv8hi3): Rename from sse2_uavgv8hi3 insn pattern.
6739 (sse2_uavgv8hi3): New expander. Use
6740 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
6741 (*ssse3_pmulhrswv8hi3): Rename from ssse3_pmulhrswv8hi3 insn pattern.
6742 (ssse3_pmulhrswv8hi3): New expander. Use
6743 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
6744 (*ssse3_pmulhrswv4hi3): Rename from ssse3_pmulhrswv4hi3 insn pattern.
6745 (ssse3_pmulhrswv4hi3): New expander. Use
6746 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
6748 (<sse>_vm<plusminus_insn><mode>3): Do not use ix86_binary_operator_ok.
6749 (<sse>_vmmul<mode>3): Ditto.
6750 (divv4sf3): Do not use ix86_fixup_binary_operands_no_copy.
6752 (ssse3_pmaddubsw128): Use register_operand for operand 1.
6753 (ssse3_pmaddubsw): Ditto.
6755 * config/i386/i386.c (struct_builtin_description)
6756 [IX86_BUILTIN_LOADHPS]: Use CODE_FOR_sse_loadhps_exp.
6757 [IX86_BUILTIN_STOREHPS]: Use CODE_FOR_sse_loadlps_exp.
6758 [IX86_BUILTIN_LOADHPD]: Use CODE_FOR_sse2_loadhpd_exp.
6759 [IX86_BUILTIN_LOADLPD]: Use CODE_FOR_sse2_loadlpd_exp.
6760 [IX86_BUILTIN_MOVHLPS]: Use CODE_FOR_sse_movhlps_exp.
6761 [IX86_BUILTIN_MOVLHPS]: Use CODE_FOR_sse_movlhps_exp.
6762 [IX86_BUILTIN_UNPCKHPD]: Use FOR_sse2_unpckhpd_exp.
6763 [IX86_BUILTIN_UNPCKLPD]: Use FOR_sse2_unpcklpd_exp.
6764 (ix86_fixup_binary_operands): Assert that src1
6765 and src2 must have the same mode when swapped.
6766 (ix86_expand_binop_builtin): Do not use ix86_fixup_binary_operands
6767 and ix86_binary_operator_ok. Do not force operands in registers
6770 2008-05-07 Jan Hubicka <jh@suse.cz>
6772 * cgraph.c (dump_cgraph_node): Update.
6773 * cgraph.h (cgraph_local_info): Break out inline summary.
6774 * cgraphunit.c (cgraph_process_new_functions): Use inliner analysis
6776 * ipa-inline (inline_summary): New accestor function.
6777 (cgraph_clone_inlined_nodes, cgraph_check_inline_limits,
6778 cgraph_decide_inlining, compute_inline_parameters): Update.
6779 * ipa.c (cgraph_remove_unreachable_nodes): Remove statistics.
6781 2008-05-07 Maxim Kuvyrkov <maxim@codesourcery.com>
6783 Cleanup ColdFire scheduling support and add V4 pipeline model.
6785 * config/m68k/m68k.md (UNSPEC_TIE): New constant.
6786 (define_attr cpu): Add cfv4 value.
6787 (define_attr type, define_attr type1): Merge into a single 'type'
6788 attribute. Update all uses.
6789 (define_attr opx_type, define_attr opy_type, define_attr opx_access):
6790 Rearrange and update. Rename value 'reg' to 'Rn', add value 'FPn'.
6792 (define_attr opx_mem, define_attr opy_mem): Remove.
6793 (define_attr op_mem): Clean up, update comment.
6794 (define_attr size): Use specific values instead of general int.
6795 (define_attr guess, define_attr split): Remove. Update all uses.
6796 (movdf_internal, tstsi_internal, tsthi_internal, tstqi_internal,
6797 tst<mode>_68881, pushexthisi_const, movsi_const0_68000_10,
6798 movsi_const0_68040_60, movsi_const0, movsi_cf, movstrictqi_cf,
6799 zero_extendhisi2_cf, zero_extendqisi2_cfv4, cfv4_extendhisi2,
6800 68k_extendhisi2, extendqihi2, cfv4_extendqisi2, 68k_extendqisi2,
6801 floatsi<mode>2_68881, ftrunc<mode>2_68881, ftrunc<mode>2_cf,
6802 fix<mode>qi2_68881, fix<mode>hi2_68881, fix<mode>si2_68881,
6803 adddi_dishl32, addsi3_5200, add<mode>3_floatsi_68881,
6804 add<mode>3_floathi_68881, add<mode>3_floatqi_68881,
6805 add<mode>3_68881, add<mode>3_cf, subdi_dishl32, subsi3,
6806 sub<mode>3_floatsi_68881, sub<mode>3_floathi_68881,
6807 sub<mode>3_floatqi_68881, sub<mode>3_68881, sub<mode>3_cf,
6808 mulhi3, mulhisi3, mulhisisi3_s, mulsi3_68020, mulsi3_cf,
6809 umulhisi3, mulhisisi3_z, mul<mode>3_floatsi_68881,
6810 mul<mode>3_floathi_68881, mul<mode>3_floatqi_68881, fmul<mode>3_cf,
6811 div<mode>3_cf, sqrt<mode>2_cf, abs<mode>2_cf, clzsi2,
6812 one_cmplsi2_5200, subreghi1ashrdi_const32, ashrsi3, lshrsi3,
6813 bsetmemqi, bsetmemqi_ext, bclrmemqi, bclrmemqi_ext,
6814 beq, bne, bgt, blt, bordered, bunordered, buneq, bunge, bungt, bunle,
6815 bunlt, bltgt, tablejump_internal, call, non_symbolic_call_value,
6816 symbolic_call_value_jsr, symbolic_call_value_bsr, link):
6817 Update or set attributes.
6818 (stack_tie): New fake instruction.
6820 * config/m68k/m68k.h (TUNE_CFV4): New macro.
6821 (m68k_sched_attr_size): Update declaration.
6822 (m68k_sched_attr_type2): Remove.
6823 (m68k_sched_address_bypass_p, m68k_sched_indexed_address_bypass_p):
6824 Declare new bypass predicates.
6826 * config/m68k/m68k.c (m68k_sched_issue_rate,
6827 m68k_sched_first_cycle_multipass_dfa_lookahead): Declare hook
6829 (TARGET_SCHED_ISSUE_RATE,
6830 TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Override hooks.
6831 (override_options): Handle scheduling for ColdFire V4 core.
6832 (m68k_expand_prologue): Emit stack_tie.
6833 (enum attr_op_type): Split value 'OP_TYPE_REG' to 'OP_TYPE_RN' and
6834 'OP_TYPE_FPN'. Update all uses.
6835 (sched_guess_p): Remove.
6836 (sched_address_type): Handle symbolic addresses.
6837 (sched_get_operand): New static function.
6838 (sched_operand_type): Merge into sched_attr_op_type.
6839 (sched_attr_op_type): Handle FP registers, handle quick constants,
6841 (m68k_sched_attr_opx_type, m68k_sched_attr_opy_type): Update.
6842 (m68k_sched_attr_size): Update. Move logic to ...
6843 (sched_get_attr_size_int): New static function.
6844 (sched_get_opxy_mem_type): New static function.
6845 (m68k_sched_attr_op_mem): Update.
6846 (m68k_sched_attr_type2): Remove.
6847 (sched_cfv4_bypass_data): New static variable.
6848 (m68k_sched_adjust_cost): Handle ColdFire V4 bypass.
6849 (m68k_sched_issue_rate): Implement scheduler hook.
6850 (struct _sched_ib: enabled_p): New field.
6851 (m68k_sched_variable_issue): Update. Handle V4.
6852 (SCHED_DUMP_TODO, SCHED_DUMP_DONE, SCHED_DUMP_NOTHING,
6853 sched_dump_class_func_t, sched_dump_split_class,
6854 sched_dump_dfa_guess_unit_code, sched_dump_dfa_state,
6855 sched_dump_dfa_class, m68k_sched_dump): Remove.
6856 (m68k_sched_first_cycle_multipass_dfa_lookahead): Implement scheduler
6858 (m68k_sched_init_global): Remove statisctics dumping, introduce
6859 sanity check that all instructions have pipeline reservations. Handle
6861 (m68k_sched_dfa_pre_advance_cycle, m68k_sched_dfa_post_advance_cycle):
6862 Handle ColdFire V4 core.
6863 (sched_mem_operand_p, sched_get_reg_operand, sched_get_mem_operand):
6864 New static functions.
6865 (m68k_sched_address_bypass_p): New bypass predicate.
6866 (sched_get_indexed_address_scale): New static function.
6867 (m68k_sched_indexed_address_bypass_p): New bypass predicate.
6869 * cf.md: Update comments.
6870 (define_attr type2): Remove. Use 'type' attribute instead.
6872 (cf_ib): Rename to cfv123_ib. Update all uses.
6873 (cf_oep): Rename to cfv123_oep. Update all uses.
6874 (cf_chr): Rename to cfv123_chr. Update all uses.
6875 (cf_mem): Rename to cfv123_mem. Update all uses.
6876 (cf_mac): Move to more appropriate place.
6877 (cfv123_guess): New automaton and cpu_unit.
6878 (cfv123_*, cfv12_*, cfv1_*, cfv2_*, cfv3_*): Use type attribute.
6879 Update uses of 'size' attribute. Handle before reload scheduling.
6880 (cfv123_guess): New dummy reservation for unhandled instructions.
6881 (cfv4_*): Pipeline description of ColdFire V4 core.
6882 (ignore): New reservation to handle 'ignore' type.
6884 2008-05-07 Ian Lance Taylor <iant@google.com>
6887 * gimplify.c (find_single_pointer_decl_1): Don't look through
6889 (find_single_pointer_decl): Adjust comments.
6891 2008-05-07 Jakub Jelinek <jakub@redhat.com>
6894 * fold-const.c (fold_binary): Use STRIP_SIGN_NOPS instead of
6895 STRIP_NOPS on arguments even for MIN_EXPR and MAX_EXPR.
6898 * omp-low.c (expand_omp_atomic_pipeline): Load value using the
6899 integral type rather than floating point, then VIEW_CONVERT_EXPR
6900 to the floating point type.
6902 2008-05-07 Uros Bizjak <ubizjak@gmail.com>
6904 * config/i386/i386.c (ix86_expand_copysign): Force non-zero constant
6905 TFmode op0 to register.
6907 2008-05-07 Alan Modra <amodra@bigpond.net.au>
6909 * c-decl.c (grokdeclarator): Comment typo.
6911 2008-05-06 Aldy Hernandez <aldyh@redhat.com>
6913 * tree-flow.h: Remove prototype for computed_goto_p.
6914 * tree-cfg.c (computed_goto_p): Make static.
6916 2008-05-06 H.J. Lu <hongjiu.lu@intel.com>
6919 * config/i386/i386.c (contains_128bit_aligned_vector_p): Renamed to ...
6920 (contains_aligned_value_p): This. Handle _Decimal128.
6921 (ix86_function_arg_boundary): Only align _Decimal128 to its
6922 natural boundary and handle it properly.
6924 2008-05-06 Martin Jambor <mjambor@suse.cz>
6926 * ipa-cp.c (ipcp_method_orig_node): Renamed to ipcp_get_orig_node.
6927 (ipcp_method_is_cloned): Renamed to ipcp_node_is_clone
6928 (ipcp_method_set_orig_node): Removed.
6929 (ipcp_cval_get_cvalue_type): Removed.
6930 (ipcp_method_get_scale): Renamed to ipcp_get_node_scale.
6931 (ipcp_method_set_scale): Renamed to ipcp_set_node_scale.
6932 (ipcp_cval_set_cvalue_type): Removed.
6933 (ipcp_cval_get_cvalue): Removed.
6934 (ipcp_cval_set_cvalue): Removed.
6935 (ipcp_type_is_const): Renamed to ipcp_lat_is_const.
6936 (ipcp_cval_equal_cvalues): Renamed to ipcp_lats_are_equal
6937 (ipcp_lats_are_equal): Changed parameters to two ipcp_lattice's
6938 (ipcp_cval_meet): Renamed to ipa_lattice_meet
6939 (ipcp_cval_changed): Changed to use ipcp_lat_is_const
6940 (ipcp_method_cval): Renamed to ipcp_get_ith_lattice
6941 (ipcp_get_ith_lattice): Changed parameters.
6942 (ipcp_cval_compute): Renamed to ipcp_lattice_from_jfunc
6943 (ipcp_lattice_from_jfunc): Changed parameters.
6944 (ipcp_redirect): Local lattice pointer instead of lattice type variable.
6945 (ipcp_method_cval_print): Added temporary variable info.
6946 (ipcp_redirect): Removed already unused local variable caller.
6947 (ipcp_redirect): New temporary variable orig_callee_info
6948 (ipcp_redirect): Removed newly unused local variable callee.
6949 (ipcp_redirect): Removed (a bit confusing) local variable type.
6950 (ipcp_insert_stage): Added local variable info.
6951 (ipcp_cval_changed): Renamed to ipcp_lattice_changed, parameters
6953 (ipcp_formal_create): Removed.
6954 (ipcp_method_cval_set): Removed.
6955 (ipcp_propagate_stage): Renamed lattice variables.
6956 (ipcp_method_cval_set_cvalue_type): Removed.
6957 (ipcp_method_cval_print): Renamed to ipcp_print_all_lattices
6958 (ipcp_print_all_lattices): Changed printed strings to refer to
6959 lattices rather than cvals.
6960 (ipcp_method_cval_init): Renamed to ipcp_initialize_node_lattices
6961 (ipcp_propagate_const): Changed formal parameters.
6962 (build_const_val): Changed formal parameters.
6963 (ipcp_insert_stage): Removed useless variable cvalue
6964 (build_const_val): Changed formal parameters.
6965 (ipcp_method_compute_scale): Renamed to ipcp_compute_node_scale
6966 (ipcp_after_propagate): Renamed to ipcp_change_tops_to_bottom
6967 (ipcp_callsite_param_print): Renamed to ipcp_print_all_jump_functions
6968 (ipcp_profile_mt_count_print): Renamed to ipcp_print_func_profile_counts
6969 (ipcp_print_func_profile_counts): Changed string from "method" to
6971 (ipcp_profile_cs_count_print): Renamed to ipcp_print_call_profile_counts
6972 (ipcp_profile_edge_print): Renamed to ipcp_print_edge_profiles
6973 (ipcp_profile_bb_print): Renamed to ipcp_print_bb_profiles
6974 (ipcp_structures_print): Renamed to ipcp_print_all_structures
6975 (ipcp_profile_print): Renamed to ipcp_print_profile_data
6976 (ipcp_lat_is_const): Changed parameters and made inline.
6977 (ipcp_replace_map_create): Renamed to ipcp_create_replace_map
6978 (ipcp_redirect): Renamed to ipcp_need_redirect_p
6979 (ipcp_need_redirect_p): Calls ipcp_lat_is_const instead of using
6980 the predicate condition directly
6981 (ipcp_propagate_stage): Added local variable args. Removed local
6982 variable callee. (Both are mere code simplifications.)
6983 (ipcp_method_dont_insert_const): Renamed to
6984 ipcp_node_not_modifiable_p.
6985 (ipcp_node_not_modifiable_p): Made inline.
6986 (ipcp_cloned_create): Renamed to ipcp_init_cloned_node
6987 (ipcp_propagate_const): Renamed to ipcp_propagate_one_const
6988 (ipcp_print_all_lattices): Removed variable cvalue
6989 (ipcp_method_scale_print): Renamed to ipcp_function_scale_print
6992 2008-05-06 Olivier Hainque <hainque@adacore.com>
6994 * tree-sra.c (try_instantiate_multiple_fields): Early return
6995 if field has POINTER_TYPE.
6997 2008-05-06 Kai Tietz <kai.tietz@onevision.com>
6999 * config/i386/i386.c (output_set_got): Fix for x86_64 output_emit_asm
7000 by using 'q' specifier for instruction.
7001 (ix86_file_end): Replaced case TARGET_64BIT_MS_ABI by TARGET_64BIT.
7003 2008-05-06 Anatoly Sokolov <aesok@post.ru>
7005 * config/avr/avr.md (*sbrx_branch, *sbix_branch, *sbix_branch_tmp):
7006 Change mode of zero_extract from QImode to HImode.
7007 (sign bit tests peepholes): (Ditto.).
7009 2008-05-06 Uros Bizjak <ubizjak@gmail.com>
7011 * config/i386/mmx.md: Remove double backslashes from asm templates.
7012 (*mmx_addv2sf3): Rename from mmx_addv2sf3 insn pattern.
7013 (mmx_addv2sf3): New expander. Use ix86_fixup_binary_operands_no_copy
7014 to handle nonimmediate operands.
7015 (*mmx_mulv2sf3): Rename from mmx_mulv2sf3 insn pattern.
7016 (mmx_mulv2sf3): New expander. Use ix86_fixup_binary_operands_no_copy
7017 to handle nonimmediate operands.
7018 (*mmx_<code>v2sf3_finite): New insn pattern.
7019 (*mmx_<code>v2sf3): Rename from mmx_<code>v2sf3 insn pattern.
7020 (mmx_<code>v2sf3): New expander. Use
7021 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
7022 (mmx_<plusminus_insn><mode>3): New expander. Use
7023 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
7024 (*mmx_<plusminus_insn><mode>3): New insn pattern.
7025 (mmx_add<mode>3): Removed.
7026 (mmx_ssadd<mode>3): Ditto.
7027 (mmx_usadd<mode>3): Ditto.
7028 (mmx_sub<mode>3): Ditto.
7029 (mmx_sssub<mode>3): Ditto.
7030 (mmx_ussub<mode>3): Ditto.
7031 (*mmx_mulv4hi3): Rename from mmx_mulv4hi3 insn pattern.
7032 (mmx_mulv4hi3): New expander. Use ix86_fixup_binary_operands_no_copy
7033 to handle nonimmediate operands.
7034 (*mmx_smulv4hi3_highpart): Rename from mmx_smulv4hi3_highpart
7036 (mmx_smulv4hi3_highpart): New expander. Use
7037 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
7038 (*mmx_umulv4hi3_highpart): Rename from mmx_umulv4hi3_highpart
7040 (mmx_umulv4hi3_highpart): New expander. Use
7041 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
7042 (*mmx_<code>v4hi3): Rename from mmx_<code>v4hi3 insn pattern.
7043 (mmx_<code>v4hi3): New expander. Use
7044 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
7045 (*mmx_<code>v8qi3): Rename from mmx_<code>v8qi3 insn pattern.
7046 (mmx_<code>v8qi3): New expander. Use
7047 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
7048 (*mmx_<code><mode>3): Rename from mmx_<code><mode>3 insn pattern.
7049 (mmx_<code><mode>3): New expander. Use
7050 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
7052 2008-05-05 Jan Hubicka <jh@suse.cz>
7054 PR tree-optimization/36118
7055 * passes.c (pass_init_dump_file): Fix dump header.
7057 2008-05-05 Andrew Pinski <andrew_pinski@playstation.sony.com>
7060 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't create
7061 VCE for function decls.
7063 2008-05-05 H.J. Lu <hongjiu.lu@intel.com>
7065 * config/i386/sse.md (sse2_<plusminus_insn><mode>3): Fix a typo.
7067 2008-05-05 H.J. Lu <hongjiu.lu@intel.com>
7069 * config/i386/i386.md (sat_plusminus): New.
7070 (plusminus_insn): Likewise.
7071 (plusminus_mnemonic): Likewise.
7073 (comm): Add ss_plus, us_plus, ss_minus and us_minus.
7074 (*<addsub><mode>3_cc_overflow): Renamed to ...
7075 (*<plusminus_insn><mode>3_cc_overflow): This.
7076 (*<addsub>si3_zext_cc_overflow): Renamed to ...
7077 (*<plusminus_insn>si3_zext_cc_overflow): This.
7079 * config/i386/sse.md (<addsub><mode>3): Renamed to ...
7080 (<plusminus_insn><mode>3): This.
7081 (*<addsub><mode>3): Renamed to ...
7082 (*<plusminus_insn><mode>3): This.
7083 (<sse>_vm<addsub><mode>3): Renamed to ...
7084 (<sse>_vm<plusminus_insn><mode>3): This.
7085 (sse3_h<addsub>v4sf3): Renamed to ...
7086 (sse3_h<plusminus_insn>v4sf3): This.
7087 (sse3_h<addsub>v2df3): Renamed to ...
7088 (sse3_h<plusminus_insn>v2df3): This.
7089 (<plusminus_insn><mode>3): New.
7090 (*<plusminus_insn><mode>3): Likewise.
7091 (sse2_<plusminus_insn><mode>3): Likewise.
7092 (add<mode>): Removed.
7093 (*add<mode>3): Likewise.
7094 (sse2_ssadd<mode>3): Likewise.
7095 (sse2_usadd<mode>3): Likewise.
7096 (sub<mode>3): Likewise.
7097 (*sub<mode>3): Likewise.
7098 (sse2_sssub<mode>3): Likewise.
7099 (sse2_ussub<mode>3): Likewise.
7101 2008-05-05 Benjamin Kosnik <bkoz@redhat.com>
7103 * gthr-single.h: Add in required interface elements as per gthr.h.
7104 Add stub types for __gthread_key_t, __gthread_once_t. Add defines
7105 for __GTHREAD_ONCE_INIT, __GTHREAD_RECURSIVE_MUTEX_INIT.
7106 Generalize UNUSED macro.
7107 (__gthread_once): Add.
7108 (__gthread_key_create): Add.
7109 (__gthread_key_delete): Add.
7110 (__gthread_getspecific): Add.
7111 (__gthread_setspecific): Add.
7113 2008-05-05 Andrew Pinski <Andrew.Pinski@playstation.sony.com>
7115 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): If we have
7116 the same size types for the indirect reference on the rhs, then
7119 2008-05-05 Uros Bizjak <ubizjak@gmail.com>
7121 * config/i386/i386.md
7122 (*float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit): Use only
7123 one insn template instead of template series.
7124 (*xordi_1_rex64): Ditto.
7125 (*xordi_2_rex64): Ditto.
7127 2008-05-05 Ira Rosen <irar@il.ibm.com>
7129 PR tree-optimization/36119
7130 * tree-vect-transform.c (vectorizable_assignment): Set NCOPIES to 1
7133 2008-06-04 Jan Hubicka <jh@suse.cz>
7135 tree-optimization/36100
7136 * tree-pass.h (pass_O0_always_inline): Declare.
7137 * ipa-inline.c (inline_transform): Remove dead code.
7138 (cgraph_gate_O0_always_inline, cgraph_O0_always_inline,
7139 pass_O0_always_inline): New.
7140 * passes.c (init_optimization_passes): Add pass_O0_always_inline.
7142 2008-05-04 Kai Tietz <kai.tietz@onevision.com>
7144 * config/i386/i386.c (x86_output_mi_thunk): Use movq alternative
7145 mnemonic in this_param move for TARGET_64BIT.
7147 2008-05-04 Uros Bizjak <ubizjak@gmail.com>
7149 * config/i386/i386.md (*strmovsi_1): Simplify asm alternatives.
7150 (*strmovsi_rex_1): Ditto.
7151 (*strsetsi_1): Ditto.
7152 (*strsetsi_rex_1): Ditto.
7154 (add<mode>cc): Macroize expander from addqicc, addhicc, addsicc and
7155 adddicc expanders using SWI mode iterator.
7157 2008-05-04 H.J. Lu <hongjiu.lu@intel.com>
7160 * config/i386/i386.c (ix86_expand_special_args_builtin): Remove three
7163 2008-05-04 David S. Miller <davem@davemloft.net>
7165 * config.gcc (sparc*-*-*): Always set need_64bit_hwint to yes.
7166 (sparc*-*-linux*): Use linux.h in tm_file.
7167 (sparc-*-linux*): If 'enabled_targets' is 'all', build a bi-arch
7168 compiler defaulting to 32-bit.
7169 (sparc*-*-*): Remove explicit target settings of need_64bit_hwint,
7171 * config/sparc/linux.h: Remove definitions now obtained
7172 properly from linux.h
7173 * config/sparc/linux64.h: Likewise.
7174 (ASM_CPU_DEFAULT_SPEC): Change this to ASM_CPU64_DEFAULT_SPEC, we
7175 don't want this setting for 32-bit builds in a biarch compiler.
7176 * doc/install.texi: Add sparc-linux to list of targets
7177 supporting --enable-targets=all.
7179 2008-05-03 Andrew Pinski <pinskia@gmail.com>
7181 * Makefile.in (tree-ssa-phiprop.o): Fix dependencies.
7183 2008-05-03 H.J. Lu <hongjiu.lu@intel.com>
7185 * config/i386/i386.c (ix86_builtin_type): Move V4SI_FTYPE_V4SF
7186 after V4SI_FTYPE_V8HI.
7187 (ix86_init_mmx_sse_builtins): Move case V4HI_FTYPE_V4HI after
7188 case V4SI_FTYPE_V2DF.
7190 2008-05-03 Kenneth Zadeck <zadeck@naturalbridge.com>
7192 * doc/invoke.texi (max-flow-memory-locations): Removed.
7193 * params.def (PARAM_MAX_FLOW_MEMORY_LOCATIONS): Removed.
7195 2008-05-03 Richard Guenther <rguenther@suse.de>
7198 * opts.c (set_Wstrict_aliasing): Handle the turn-off case.
7200 2008-05-02 David S. Miller <davem@davemloft.net>
7202 * config.gcc (need_64bit_hwint): Document libcpp dependency.
7204 2008-05-02 Simon Baldwin <simonb@google.com>
7207 * c-common.h (warn_array_subscript_range): Removed.
7208 * c-common.c (warn_array_subscript_range): Ditto.
7209 * tree-vrp.c (check_array_ref): Revert to ignoring arrays with size 2.
7210 * c-typeck.c (build_array_ref): Remove warn_array_subscript_range.
7212 2008-05-02 H.J. Lu <hongjiu.lu@intel.com>
7214 * config/i386/i386.c (ix86_special_builtin_type): New.
7215 (bdesc_special_args): Likewise.
7216 (ix86_expand_special_args_builtin): Likewise.
7217 (ix86_init_mmx_sse_builtins): Updated.
7218 (ix86_expand_builtin): Updated.
7219 (ix86_expand_store_builtin): Removed.
7220 (ix86_expand_unop_builtin): Likewise.
7222 * config/i386/mm3dnow.h (__v2sf): Moved to ...
7223 * config/i386/mmintrin.h (__v2sf): Here.
7225 * config/i386/xmmintrin.h (_mm_loadh_pi): Replace __v2si with
7227 (_mm_loadl_pi): Likewise.
7228 (_mm_storeh_pi): Replace __v2si with __v2sf.
7229 (_mm_storel_pi): Likewise.
7231 * doc/extend.texi: Correct __builtin_ia32_loadhps,
7232 __builtin_ia32_loadlps, __builtin_ia32_storehps,
7233 __builtin_ia32_storelps, __builtin_ia32_loadhpd and
7234 __builtin_ia32_loadlpd.
7236 2008-05-02 H.J. Lu <hongjiu.lu@intel.com>
7238 * config/i386/i386.c (ix86_builtin_type): Add FLOAT_FTYPE_FLOAT,
7239 V4SF_FTYPE_V4SF_VEC_MERGE and V2DF_FTYPE_V2DF_VEC_MERGE.
7240 (bdesc_args): Updated. Add scalar SSE builtins with vec_merge.
7241 (ix86_init_mmx_sse_builtins): Updated.
7242 (ix86_expand_args_builtin): Likewise.
7243 (ix86_expand_builtin): Likewise.
7244 (ix86_expand_unop1_builtin): Renamed to ...
7245 (ix86_expand_unop_vec_merge_builtin): This.
7247 2008-05-01 Jan Hubicka <jh@suse.cz>
7250 * ipa-inline.c (inline_generate_summary): Make static.
7251 (inline_transform): Do not call inlining at -O0; make static.
7252 * passes.c (execute_todo): Add sanity check.
7253 (execute_one_ipa_transform_pass): Execute proper flags.
7255 2008-05-01 Eric Botcazou <ebotcazou@adacore.com>
7257 * tree.h (TYPE_NONALIASED_COMPONENT): Expand comment.
7258 (DECL_NONADDRESSABLE_P): Likewise.
7259 * alias.c (record_component_aliases): Fix comment.
7261 2008-05-01 Simon Baldwin <simonb@google.com>
7263 * c-common.h (warn_array_subscript_range): New function.
7264 * c-common.c (warn_array_subscript_range): Ditto.
7265 * tree-vrp.c (check_array_ref): Corrected code to agree with
7266 comment, ignoring only arrays of size 0 or size 1.
7267 * c-typeck.c (build_array_ref): Call warn_array_subscript_range.
7269 2008-05-01 H.J. Lu <hongjiu.lu@intel.com>
7271 * config/i386/i386.c (ix86_builtin_type): Replace
7272 DI_FTYPE_DI_DI_INT with V1DI2DI_FTYPE_V1DI_V1DI_INT.
7273 (bdesc_args): Updated.
7274 (ix86_init_mmx_sse_builtins): Likewise.
7275 (ix86_expand_args_builtin): Likewise.
7277 * config/i386/tmmintrin.h (_mm_alignr_pi8): Replace long long
7280 * doc/extend.texi: Correct __builtin_ia32_palignr.
7282 2008-05-01 H.J. Lu <hongjiu.lu@intel.com>
7285 * config/i386/i386.c (bdesc_crc32): Removed.
7286 (ix86_expand_crc32): Likewise.
7287 (ix86_builtin_type): Replace V2DI2TI_FTYPE_V2DI2TI_INT with
7288 V2DI2TI_FTYPE_V2DI_INT, V2DI2TI_FTYPE_V2DI2TI_V2DI2TI_INT with
7289 V2DI2TI_FTYPE_V2DI_V2DI_INT. Add UINT64_FTYPE_UINT64_UINT64,
7290 UINT_FTYPE_UINT_UINT, UINT_FTYPE_UINT_USHORT and
7291 UINT_FTYPE_UINT_UCHAR.
7292 (bdesc_args): Updated. Add crc32 builtins.
7293 (ix86_init_mmx_sse_builtins): Updated.
7294 (ix86_expand_args_builtin): Updated to support subreg.
7296 * doc/extend.texi: Correct __builtin_ia32_crc32di.
7298 2008-05-01 Jan Hubicka <jh@suse.cz>
7300 * tree-pass.h (opt_pass): Add IPA_PASS.
7301 (varpool_node, cgraph_node): Forward declare.
7302 (ipa_opt_pass): Define.
7303 (pass_ipa_inline): Turn into ipa_opt_pass.
7304 (pass_apply_inline): Remove.
7305 * ipa-inline.c (pass_ipa_inline): Turn into ipa_opt_pass.
7306 (apply_inline): Turn into ....
7307 (inline_transform): ... this one.
7308 (inline_generate_summary): New function.
7309 (pass_apply_inline): Remove.
7310 * function.h (ipa_opt_pass): Forward declare structure; typedef;
7312 (struct function): Add ipa_transforms_to_apply.
7313 * passes.c (register_one_dump_file): Work on IPA_PASS.
7314 (init_optimization_passes): Remove pass_inline_parameters and
7316 (pass_init_dump_file, pass_fini_dump_file): Break out from ....
7317 (execute_one_pass) ... here; apply transforms when possible.
7318 (add_ipa_transform_pass, execute_ipa_summary_asses,
7319 execute_one_ipa_transform_pass): New.
7320 (execute_ipa_pass_list): Update for IPA_PASS type.
7322 2008-05-01 H.J. Lu <hongjiu.lu@intel.com>
7324 * config/i386/i386.c (ix86_builtin_type): Add
7325 V2DI_FTYPE_V2DI_V16QI, V2DI_FTYPE_V2DI_UINT_UINT and
7326 V2DI_FTYPE_V2DI_V2DI_UINT_UINT.
7327 (bdesc_args): Add SSE4a builtins.
7328 (ix86_init_mmx_sse_builtins): Updated.
7329 (ix86_expand_args_builtin): Likewise.
7330 (ix86_expand_builtin): Likewise.
7332 2008-05-01 H.J. Lu <hongjiu.lu@intel.com>
7334 * config/i386/i386.c (ix86_builtin_type): Add
7335 V8HI_FTYPE_V8HI_V8HI_COUNT, V8HI_FTYPE_V8HI_SI_COUNT,
7336 V4SI_FTYPE_V4SI_V4SI_COUNT, V4SI_FTYPE_V4SI_SI_COUNT,
7337 V4HI_FTYPE_V4HI_V4HI_COUNT, V4HI_FTYPE_V4HI_SI_COUNT,
7338 V2DI_FTYPE_V2DI_V2DI_COUNT, V2DI_FTYPE_V2DI_SI_COUNT,
7339 V2SI_FTYPE_V2SI_V2SI_COUNT, V2SI_FTYPE_V2SI_SI_COUNT,
7340 V1DI_FTYPE_V1DI_V1DI_COUNT, V1DI_FTYPE_V1DI_SI_COUNT,
7341 V8HI_FTYPE_V8HI_INT, V4SI_FTYPE_V4SI_INT, V4HI_FTYPE_V4HI_INT,
7342 V2DI2TI_FTYPE_V2DI2TI_INT, V2DI2TI_FTYPE_V2DI2TI_V2DI2TI_INT
7343 and DI_FTYPE_DI_DI_INT.
7344 (bdesc_args): Add MMX/SSE shift, shuffle and palignr builtins.
7345 (ix86_init_mmx_sse_builtins): Updated.
7346 (ix86_expand_args_builtin): Likewise.
7347 (ix86_expand_builtin): Likewise.
7348 (ix86_expand_binop_imm_builtin): Removed.
7350 * doc/extend.texi: Correct __builtin_ia32_palignr128.
7352 2008-04-30 Richard Guenther <rguenther@suse.de>
7354 PR tree-optimization/32921
7355 * tree-ssa-loop-im.c (mem_refs_may_alias_p): Disambiguate with TBAA.
7357 2008-04-30 Richard Sandiford <rsandifo@nildram.co.uk>
7359 * config/arm/arm.c (arm_unwind_emit): Use
7360 crtl->all_throwers_are_sibcalls instead of
7361 cfun->all_throwers_are_sibcalls.
7362 (arm_output_fn_unwind): Likewise.
7363 * config/frv/frv.c (frv_stack_info): Use crtl->uses_pic_offset_table
7364 instead of cfun->uses_pic_offset_table.
7365 (frv_expand_prologue): Likewise.
7366 (frv_frame_pointer_required): Likewise.
7367 (frv_expand_fdpic_call): Likewise.
7368 (frv_emit_movsi): Likewise.
7369 * config/iq2000/iq2000.c (iq2000_expand_prologue): Use
7370 cfun->returns_pcc_struct instead of
7371 current_function_returns_pcc_struct.
7372 * config/m32c/m32c.c (need_to_save): Use crtl->calls_eh_return
7373 instead of cfun->calls_eh_return.
7374 (m32c_pushm_popm): Likewise.
7375 * config/xtensa/xtensa.h (cfun->calls_alloca): Remove bogus
7376 "extern" declaration.
7378 2008-04-30 Richard Guenther <rguenther@suse.de>
7380 PR tree-optimization/21636
7381 * tree-ssa-ccp.c (ccp_fold): Handle &p->x with p being a
7383 (evaluate_stmt): Print the likely value.
7384 (ccp_visit_stmt): Avoid excessive vertical spacing.
7386 2008-04-30 Rafael Espindola <espindola@google.com>
7388 * builtins.c (fold_call_expr): Return realret.
7389 * tree-ssa-threadedge.c
7390 (record_temporary_equivalences_from_stmts_at_dest): Ignore calls to
7391 __builtin_object_size.
7393 2008-04-30 Seongbae Park <seongbae.park@gmail.com>
7395 * gcc.c (wrapper_string): New variable.
7396 (insert_wrapper): New function.
7397 (execute): New option -wrapper.
7398 * doc/invoke.texi (Overall Options): New driver option -wrapper.
7400 2008-04-30 Nathan Froyd <froydnj@codesourcery.com>
7402 * config/rs6000/crtresgpr.asm, config/rs6000/crtresxgpr.asm,
7403 config/rs6000/crtsavgpr.asm, config/rs6000/crtresfpr.asm,
7404 config/rs6000/crtresxfpr.asm, config/rs6000/crtsavfpr.asm: Break out
7406 * config/rs6000/crtsavres.asm: ...here. Remove unneeded file.
7407 * config/rs6000/e500crtres32gpr.asm, config/rs6000/e500crtres64gpr.asm,
7408 config/rs6000/e500crtres64gprctr.asm,
7409 config/rs6000/e500crtrest32gpr.asm, config/rs6000/e500crtrest64gpr.asm,
7410 config/rs6000/e500crtresx32gpr.asm, config/rs6000/e500crtresx64gpr.asm,
7411 config/rs6000/e500crtsav32gpr.asm, config/rs6000/e500crtsav64gpr.asm,
7412 config/rs6000/e500crtsav64gprctr.asm,
7413 config/rs6000/e500crtsavg32gpr.asm, config/rs6000/e500crtsavg64gpr.asm,
7414 config/rs6000/e500crtsavg64gprctr.asm: New files.
7415 * config/rs6000/t-ppccomm: Add build rules for new files.
7416 (LIB2FUNCS_STATIC_EXTRA): Add new files.
7417 * config/rs6000/t-netbsd: Add build rules for new files.
7418 (LIB2FUNCS_STATIC_EXTRA): New variable.
7419 * config/rs6000/sysv4.h (ENDFILE_SPEC): Don't include crtsavres.o
7420 (CRTSAVRES_DEFAULT_SPEC): Likewise.
7421 * config/rs6000/netbsd.h (ENDFILE_SPEC): Likewise.
7423 2008-04-30 H.J. Lu <hongjiu.lu@intel.com>
7425 * config/i386/i386.c (ix86_builtin_type): Add
7426 FLOAT128_FTYPE_FLOAT128_FLOAT128, V16QI_FTYPE_V16QI_V16QI,
7427 V16QI_FTYPE_V8HI_V8HI, V8QI_FTYPE_V8QI_V8QI,
7428 V8QI_FTYPE_V4HI_V4HI, V8HI_FTYPE_V8HI_V8HI,
7429 V8HI_FTYPE_V16QI_V16QI, V8HI_FTYPE_V4SI_V4SI,
7430 V4SI_FTYPE_V4SI_V4SI, V4SI_FTYPE_V8HI_V8HI,
7431 V4SI_FTYPE_V4SF_V4SF, V4SI_FTYPE_V2DF_V2DF,
7432 V4HI_FTYPE_V4HI_V4HI, V4HI_FTYPE_V8QI_V8QI,
7433 V4HI_FTYPE_V2SI_V2SI, V4SF_FTYPE_V4SF_V4SF,
7434 V4SF_FTYPE_V4SF_V4SF_SWAP, V4SF_FTYPE_V4SF_V2SI,
7435 V4SF_FTYPE_V4SF_V2DF, V4SF_FTYPE_V4SF_DI,
7436 V4SF_FTYPE_V4SF_SI, V2DI_FTYPE_V2DI_V2DI,
7437 V2DI_FTYPE_V16QI_V16QI, V2DI_FTYPE_V4SI_V4SI,
7438 V2DI_FTYPE_V2DF_V2DF, V2SI_FTYPE_V2SI_V2SI,
7439 V2SI_FTYPE_V4HI_V4HI, V2SI_FTYPE_V2SF_V2SF,
7440 V2DF_FTYPE_V2DF_V2DF, V2DF_FTYPE_V2DF_V2DF_SWAP,
7441 V2DF_FTYPE_V2DF_V4SF, V2DF_FTYPE_V2DF_DI,
7442 V2DF_FTYPE_V2DF_SI, V2SF_FTYPE_V2SF_V2SF,
7443 V1DI_FTYPE_V1DI_V1DI, V1DI_FTYPE_V8QI_V8QI and
7444 V1DI_FTYPE_V2SI_V2SI.
7445 (bdesc_2arg): Moved to ...
7447 (ix86_init_mmx_sse_builtins): Updated.
7448 (ix86_expand_args_builtin): Updated. Take a pointer
7449 to const struct builtin_description. Handle comparison
7451 (ix86_expand_sse_compare): Take a new argument for swapping operands.
7452 (ix86_expand_builtin): Updated.
7454 * config/i386/sse.md (ssse3_pmaddubswv8hi3): Renamed to ...
7455 (ssse3_pmaddubsw128): This.
7456 (ssse3_pmaddubswv4hi3): Renamed to ...
7457 (ssse3_pmaddubsw): This.
7459 * doc/extend.texi (__builtin_ia32_packsswb128): Correct prototype.
7460 (__builtin_ia32_packssdw128): Likewise.
7461 (__builtin_ia32_packuswb128): Likewise.
7462 (__builtin_ia32_pmaddubsw): Likewise.
7463 (__builtin_ia32_pmaddubsw128): Likewise.
7465 2008-04-30 Richard Guenther <rguenther@suse.de>
7467 PR tree-optimization/14847
7468 * tree-ssa-ifcombine.c (get_name_for_bit_test): New helper function.
7469 (recognize_bits_test): Use it.
7470 (recognize_single_bit_test): Likewise.
7472 2008-04-30 Martin Jambor <mjambor@suse.cz>
7474 * ipa-cp.c (ipcp_init_stage): Calls ipa_set_called_with_variable_arg
7475 instead of setting number of formal parameters to zero.
7476 (ipcp_init_stage): Do not set the number of actual parameters to zero
7478 (ipcp_propagate_stage): Explicitly skipping all calls to nodes
7479 which are called with variable number of arguments.
7480 (ipcp_insert_stage): Explicitely skipping all nodes which are
7481 called with variable number of arguments.
7482 (ipcp_callsite_param_print): Skipps callsites to nodes with varaible
7483 number of parameters.
7485 * ipa-prop.h (struct ipa_node_params): Added flag
7486 called_with_var_arguments
7487 (ipa_set_param_count): Added. Changed sole setter to use it.
7488 (ipa_get_param_count): Added. All readers of param_count
7489 converted to use it instead.
7490 (ipa_set_called_with_variable_arg): Added.
7491 (ipa_is_called_with_var_arguments): Added.
7492 (ipa_get_ith_param): Added. All readers of param_decls converted
7494 (ipa_set_cs_argument_count): Added, sole writer to argument_count
7496 (ipa_get_cs_argument_count): Added, all readers of argument_count
7498 (ipa_get_ith_jump_func): Added. Accessors of jump values changed
7501 * ipa-prop.h (struct ipcp_formal): Renamed to ipcp_lattice
7502 (struct ipcp_lattice): Renamed cval_type to type
7503 (struct ipa_node_params): ipcp_cval renamed to ipcp_lattices
7505 * ipa-cp.c (ipcp_cval_get_cvalue): Changed return value to tree
7506 (ipcp_cval_set_cvalue): Changed type of parameter value to tree
7507 (ipcp_insert_stage): Changed the type of variable cvalue to tree
7508 (ipcp_replace_map_create): Changed the type of parameter cvalue to tree
7509 (build_const_val): Changed the type of parameter cvalue to tree
7510 (ipcp_propagate_const): Changed the type of parameter cvalue to tree
7511 (ipcp_method_cval_set_cvalue_type): Renamed parameter cval_type1 to type
7513 * ipa-prop.h (struct ipcp_formal): Replaced cvalue with tree called
7516 * ipa-prop.c (ipa_methodlist_init): Renamed to ipa_init_func_list
7517 (ipa_methodlist_not_empty): Removed, the sole user now checks directly
7518 (ipa_add_method): Renamed to ipa_push_func_to_list
7519 (ipa_remove_method): Renamed to ipa_pop_func_from_list
7520 (ipa_callsite_param_count): Removed.
7521 (ipa_callsite_param_count_set): Removed.
7522 (ipa_callsite_param): Removed.
7523 (ipa_callsite_callee): Removed.
7524 (ipa_callsite_compute_param): Renamed to ipa_compute_jump_functions
7525 (ipa_callsite_compute_count): Renamed to ipa_count_arguments
7526 (ipa_method_formal_count): Removed.
7527 (ipa_method_formal_count_set): Removed.
7528 (ipa_method_get_tree): Removed.
7529 (ipa_method_tree_map_create): Removed.
7530 (ipa_method_compute_tree_map): Renamed to ipa_create_param_decls_array
7531 (ipa_create_param_decls_array): Creates the array itself
7532 (ipa_create_param_decls_array): Temporary variable info instead of
7534 (ipa_method_formal_compute_count): Renamed to ipa_count_formal_params
7535 (ipa_method_compute_modify): Renamed to ipa_detect_param_modifications
7536 (get_type): Removed.
7537 (ipa_jf_get_info_type): Removed.
7538 (ipa_node_create): Renamed to ipa_create_node_params
7539 (ipa_free): Renamed to ipa_free_all_node_params
7540 (ipa_nodes_create): Renamed to ipa_create_all_node_params
7541 (ipa_edges_create): Renamed to ipa_create_all_edge_args
7542 (ipa_edges_free): Renamed to ipa_free_all_edge_args
7543 (ipa_nodes_free): Integrated into ipa_free_all_node_params and removed
7544 (ipa_free_all_node_params): Deallocation to jump_functions moved to
7545 ipa_free_all_edge_args
7546 (ipa_method_tree_print): Renamed to ipa_print_all_tree_maps
7547 (ipa_method_modify_print): Renamed to ipa_print_all_params_modified
7548 (ipa_create_methodlist_node): Removed.
7549 (ipa_methodlist_method): Removed.
7550 (ipa_methodlist_method_set): Removed.
7551 (ipa_methodlist_next_method): Removed.
7552 (ipa_methodlist_next_method_set): Removed.
7553 (ipa_method_is_modified): Removed.
7554 (ipa_method_modify_create): Removed.
7555 (ipa_method_modify_init): Temporary variable info instead of a few
7557 (ipa_detect_param_modifications): Temporary variable info instead of
7559 (ipa_compute_jump_functions): Temporary variable info instead of
7561 (ipa_method_modify_set): Removed.
7562 (ipa_method_tree_map): Renamed to ipa_get_param_decl_index
7563 (ipa_get_param_decl_index): Now accepts struct ipa_node_params rather
7564 than craph_node as the first parameter.
7565 (ipa_method_modify_stmt): Renamed to ipa_check_stmt_modifications
7566 (ipa_method_modify_init): Removed.
7567 (ipa_compute_jump_functions): Added a temp variable instead of
7568 repeatadly dereferencing the cgraph_edge.aux pointer
7569 (ipa_callsite_param_set_type): Removed.
7570 (ipa_compute_jump_functions): i renamed to index and moved to
7572 (ipa_callsite_param_set_info_type_formal): Removed.
7573 (ipa_callsite_param_set_info_type): Removed.
7574 (ipa_callsite_param_map_create): Removed.
7575 (ipa_callsite_tree): Removed.
7576 (ipa_callsite_caller): Removed.
7577 (ipa_pop_func_from_list): return_method removed to return_func
7579 * ipa-prop.h (enum cvalue_type): Renamed to ipa_lattice_type,
7580 prefixed all values with IPA_. Changed all users.
7581 (enum jump_func_type): Rnamed UNKNOWN_IPATYPE to IPA_UNKNOWN,
7582 CONST_IPATYPE to IPA_CONST, CONST_IPATYPE_REF to IPA_CONST_REF
7583 and FORMAL_IPATYPE IPA_PASS_THROUGH.
7584 (union parameter_info): Renamed to jump_func_value.
7585 (union jump_func_value): Renamed value to constant
7586 (struct ipa_jump_func): Renamed info_type to value
7587 (struct ipa_node): Renamed to ipa_node_params
7588 (struct ipa_node_params): Renamed ipa_arg_num to param_count
7589 (struct ipa_node_params): Renamed ipa_param_tree to param_decls
7590 (struct ipa_node_params): Renamed ipa_mod to modified_flags
7591 (struct ipa_edge): Renamed to ipa_edge_args
7592 (struct ipa_edge_args): Renamed ipa_param_num to argument_count
7593 (struct ipa_edge_args): Renamed ipa_param_map to jump_functions
7594 (struct ipa_methodlist): Renamed to ipa_func_list
7595 (struct ipa_func_list): method_p renamed to node, next_method
7597 (ipa_methodlist_p): Removed, switched all users to struct pointer
7598 (IS_VALID_TREE_MAP_INDEX): Renamed to IS_VALID_JUMP_FUNC_INDEX
7600 2008-04-30 Alan Modra <amodra@bigpond.net.au>
7602 * config/rs6000/rs6000.c (ALWAYS_RESTORE_ALTIVEC_BEFORE_POP): Define.
7603 (rs6000_emit_epilogue): Use backchain to restore only when we
7604 have a large frame. Make use of frame pointer to restore if we
7605 have one. Handle ALWAYS_RESTORE_ALTIVEC_BEFORE_POP.
7607 2008-04-29 Paolo Bonzini <bonzini@gnu.org>
7609 * config/avr/avr.md (*sbrx_branch, *sbix_branch, *sbix_branch_tmp):
7610 Add mode to zero_extract.
7611 (sign bit tests peepholes): (Ditto.).
7613 2008-04-29 H.J. Lu <hongjiu.lu@intel.com>
7615 * config/i386/i386.c (ix86_builtins): Replace Prescott New
7616 Instructions in comments with SSE3.
7617 (ix86_builtin_type): This. Add FLOAT128_FTYPE_FLOAT128,
7618 INT64_FTYPE_V4SF, INT64_FTYPE_V2DF, INT_FTYPE_V16QI,
7619 INT_FTYPE_V8QI, INT_FTYPE_V4SF, INT_FTYPE_V2DF,
7620 V16QI_FTYPE_V16QI, V8HI_FTYPE_V8HI, V8HI_FTYPE_V16QI,
7621 V8QI_FTYPE_V8QI, V4SI_FTYPE_V4SI, V4SI_FTYPE_V16QI,
7622 V4SI_FTYPE_V4SF, V4SI_FTYPE_V8HI, V4SI_FTYPE_V2DF,
7623 V4HI_FTYPE_V4HI, V4SF_FTYPE_V4SF, V4SF_FTYPE_V4SI,
7624 V4SF_FTYPE_V2DF, V2DI_FTYPE_V2DI, V2DI_FTYPE_V16QI,
7625 V2DI_FTYPE_V8HI, V2DI_FTYPE_V4SI, V2DF_FTYPE_V2DF,
7626 V2DF_FTYPE_V4SI, V2DF_FTYPE_V4SF, V2DF_FTYPE_V2SI,
7627 V2SI_FTYPE_V2SI, V2SI_FTYPE_V4SF, V2SI_FTYPE_V2SF,
7628 V2SI_FTYPE_V2DF, V2SF_FTYPE_V2SF and V2SF_FTYPE_V2SI.
7629 (bdesc_sse_args): Renamed to ...
7630 (bdesc_args): This. Add IX86_BUILTIN_PF2ID, IX86_BUILTIN_PFRCP,
7631 IX86_BUILTIN_PFRSQRT, IX86_BUILTIN_PI2FD, IX86_BUILTIN_PF2IW,
7632 IX86_BUILTIN_PSWAPDSI, IX86_BUILTIN_PSWAPDSF and
7634 (bdesc_1arg): Moved to ...
7636 (ix86_init_mmx_sse_builtins): Updated. Replace Prescott New
7637 Instructions in comments with SSE3.
7638 (ix86_expand_sse_operands_builtin): Renamed to ...
7639 (ix86_expand_args_builtin): This. Updated.
7640 (ix86_expand_unop1_builtin): Update comments.
7641 (ix86_expand_builtin): Updated.
7643 2008-04-29 Richard Guenther <rguenther@suse.de>
7645 PR tree-optimization/36078
7646 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely):
7647 Update virtual SSA form after cleaning up the CFG.
7649 2008-04-29 Richard Guenther <rguenther@suse.de>
7652 * fold-const.c (fold_binary): Fold (A + A) * C to A * 2*C.
7654 2008-04-29 Richard Guenther <rguenther@suse.de>
7656 * tree-ssa-alias.c (finalize_ref_all_pointers): Remove.
7657 (compute_may_aliases): Do not call finalize_ref_all_pointers.
7658 (compute_flow_insensitive_aliasing): Do not treat
7659 PTR_IS_REF_ALL pointers special.
7660 (get_smt_for): Likewise.
7661 (may_alias_p): Re-structure.
7662 (is_escape_site): A ref-all pointer conversion is not an escape site.
7663 * tree-ssa-structalias.c (find_what_p_points_to): Do not treat
7664 PTR_IS_REF_ALL pointers special.
7665 * tree-ssa-structalias.h (struct alias_info): Remove
7666 ref_all_symbol_mem_tag field.
7667 (PTR_IS_REF_ALL): Remove.
7669 2008-04-29 Richard Guenther <rguenther@suse.de>
7672 * fold-const.c (extract_muldiv_1): In combining division constants
7673 make sure to never overflow.
7675 2008-04-29 Nick Clifton <nickc@redhat.com>
7677 * doc/tm.texi (RETURN_ADDR_RTX): Fix typo.
7679 2008-04-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7682 * optc-gen.awk: Work around HP-UX/IA awk bug.
7684 2008-04-28 Danny Smith <dannysmith@users.sourceforge.net>
7686 * config/i386/cygming-crtend.c (register_frame_ctor): Revert my
7689 2008-04-28 Uros Bizjak <ubizjak@gmail.com>
7692 * config/i386/i386.md
7693 (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit):
7694 Change operand 1 predicate to nonimmediate_operand.
7696 2008-04-28 Jakub Jelinek <jakub@redhat.com>
7699 * dwarf2out.c (struct die_struct): Mark as chain_circular through
7701 * gengtype.c (walk_type, write_func_for_structure): Handle
7703 * doc/gty.texi: Document chain_circular.
7705 2008-04-28 Richard Guenther <rguenther@suse.de>
7707 PR tree-optimization/36066
7708 * tree-vrp.c (execute_vrp): Cleanup the CFG only after finalizing
7711 2008-04-28 Uros Bizjak <ubizjak@gmail.com>
7714 * config/i386/i386.md
7715 (floatdi<X87MODEF:mode>2_i387_with_xmm splitters):
7716 Use match_scratch instead of match_operand for operands 3 and 4.
7718 2008-04-27 Richard Guenther <rguenther@suse.de>
7720 PR tree-optimization/18754
7721 PR tree-optimization/34223
7722 * tree-pass.h (pass_complete_unrolli): Declare.
7723 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Print
7724 loop size before and after unconditionally of UL_NO_GROWTH in effect.
7725 Rewrite loop into loop closed SSA form if it is not already.
7726 (tree_unroll_loops_completely): Re-structure to iterate over
7727 innermost loops with intermediate CFG cleanups.
7728 Unroll outermost loops only if requested or the code does not grow
7730 * tree-ssa-loop.c (gate_tree_vectorize): Don't shortcut if no
7731 loops are available.
7732 (tree_vectorize): Instead do so here.
7733 (tree_complete_unroll): Also unroll outermost loops.
7734 (tree_complete_unroll_inner): New function.
7735 (gate_tree_complete_unroll_inner): Likewise.
7736 (pass_complete_unrolli): New pass.
7737 * tree-ssa-loop-manip.c (find_uses_to_rename_use): Only record
7738 uses outside of the loop.
7739 (tree_duplicate_loop_to_header_edge): Only verify loop-closed SSA
7740 form if it is available.
7741 * tree-flow.h (tree_unroll_loops_completely): Add extra parameter.
7742 * passes.c (init_optimization_passes): Schedule complete inner
7743 loop unrolling pass before the first CCP pass after final inlining.
7745 2008-04-27 Nathan Sidwell <nathan@codesourcery.com>
7747 * targhooks.h (default_emutls_var_fields,
7748 default_emutls_var_init): Declare.
7749 * tree.h (DECL_THREAD_LOCAL): Compare against TLS_MODEL_REAL.
7750 * target.h (struct gcc_target): Add struct emutls member.
7751 * target-def.h (TARGET_EMUTLS_GET_ADDRESS,
7752 TARGET_EMUTLS_REGISTER_COMMON, TARGET_EMUTLS_VAR_SECTION,
7753 TARGET_EMUTLS_TMPL_SECTION, TARGET_EMUTLS_VAR_PREFIX,
7754 TARGET_EMUTLS_TMPL_PREFIX, TARGET_EMUTLS_VAR_FIELDS,
7755 TARGET_EMUTLS_VAR_INIT, TARGET_EMUTLS_DEBUG_FORM_TLS_ADDRESS,
7756 TARGET_EMUTLS_VAR_ALIGN_FIXED, TARGET_EMUTLS): New.
7757 (TARGET_INITIALIZER): Add TARGET_EMUTLS.
7758 * builtins.def (BUILT_IN_EMUTLS_GET_ADDRESS,
7759 BUILT_IN_EMUTLS_REGISTER_COMMON): Get name from targetm structure.
7760 * dwarf2out.c (loc_descriptor_from_tree_1): Check if emutls can
7761 emit debug information.
7762 * coretypes.h (tls_model): Add TLS_MODEL_EMULATED, TLS_MODEL_REAL.
7763 * varasm.c: Include targhooks.h.
7764 (emutls_object_section, emutls_tmpl_section): New.
7765 (EMUTLS_VAR_PREFIX, EMUTLS_TMPL_PREFIX): Remove.
7766 (EMUTLS_SEPARATOR): New.
7768 (get_emutls_object_name): New.
7769 (default_emutls_var_fields): New, broken out of ...
7770 (get_emutls_object_type): ... here. Adjust to use target hooks.
7771 (get_emutls_init_templ_addr): Adjust to use target hooks.
7772 (emutls_decl): Adjust to use target hooks.
7773 (emutls_finish): Likewise.
7774 (default_emutls_var_init): New, broken out of ...
7775 (assemble_variable): ... here. Adjust to use target hooks.
7776 * output.h (enum section_category): Add SECCAT_EMUTLS_VAR,
7778 * c-common.c (handle_section_attribute): Prevent overriding
7779 sections for emulated tls with special sections.
7780 * config/i386/i386.c (x86_64_elf_select_section): Add
7781 SECCAT_EMUTLS_VAR and SECCAT_EMUTLS_TMPL.
7782 (x86_64_elf_unique_section): Likewise.
7783 * config/vxworks.c: Include tree.h.
7784 (vxworks_emutls_var_fields, vxworks_emutls_var_init): New.
7785 (vxworks_override_options): Set TLS scheme.
7786 * doc/tm.texi (Emulated TLS): New node.
7788 2008-04-26 Simon Baldwin <simonb@google.com>
7791 * builtins.c (c_strlen): Suppressed multiple warnings that can occur
7792 with propagated string constants.
7794 2008-04-26 Uros Bizjak <ubizjak@gmail.com>
7796 * config/i386/i386.md (fix_trunc<mode>_i387_fisttp_with_temp): Use 'X'
7797 constraint for operand 2 when operand 0 is memory operand.
7798 (fix_truncdi_i387_with_temp): : Use 'X' constraint for operand 4 when
7799 operand 0 is memory operand.
7800 (fix_trunc<mode>_i387_with_temp): Ditto.
7801 (*floatsi<mode>2_vector_mixed_with_temp): Use 'X' constraint for
7802 operand 2 when operand 1 is memory operand.
7803 (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_with_temp): Ditto.
7804 (*floatsi<mode>2_vector_sse_with_temp): Ditto.
7805 (*float<SSEMODEI24:mode><MODEF:mode>2_sse_with_temp): Ditto.
7806 (*float<SSEMODEI24:mode><X87MODEF:mode>2_i387_with_temp): Ditto.
7807 (floatdi<X87MODEF:mode>2_i387_with_xmm): Use 'X' constraint for
7808 operands 2,3 and 4 when operand 1 is memory operand.
7809 (fistdi2_with_temp): Use 'X' constraint for operand 2 when operand 0
7811 (fistdi2_floor_with_temp): Ditto.
7812 (fist<mode>2_floor_with_temp): Ditto.
7813 (fistdi2_ceil_with_temp): Ditto.
7814 (fist<mode>2_ceil_with_temp): Ditto.
7815 (*truncdfsf_fast_mixed): Merge alternatives 0 and 1.
7817 2008-04-26 David Daney <ddaney@avtrex.com>
7819 * config/mips/mips.md (UNSPEC_COMPARE_AND_SWAP_12): New
7821 (UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP, UNSPEC_SYNC_EXCHANGE,
7822 UNSPEC_MEMORY_BARRIER, UNSPEC_SET_GOT_VERSION,
7823 UNSPEC_UPDATE_GOT_VERSION): Renumber.
7824 (sync_compare_and_swap<mode>): New expand for QI and HI modes.
7825 (compare_and_swap_12): New insn.
7826 * config/mips/mips-protos.h (mips_expand_compare_and_swap_12): Declare.
7827 * config/mips/mips.c (mips_force_binary): New function.
7828 (mips_emit_int_order_test, mips_expand_synci_loop): Use it.
7829 (mips_expand_compare_and_swap_12): New function.
7830 * config/mips/mips.h (MIPS_COMPARE_AND_SWAP_12): New macro.
7832 2008-04-25 Jan Hubicka <jh@suse.cz>
7835 * cfgexpand.c (pass_expand): Turn into RTL pass.
7836 * passes.c (execute_one_pass): Do pass typechecking after execution.
7837 * tree-pass.h (pass_expand): Turn into RTL pass.
7839 * function.h (struct rtl_data): Move here fields
7840 accesses_prior_frames, calls_eh_return, saves_all_registers,
7841 has_nonlocal_goto, has_asm_statement, is_thunk,
7842 all_throwers_are_sibcalls, limit_stack, profile, uses_const_pool,
7843 uses_pic_offset_table, uses_eh_lsda, tail_call_emit,
7844 arg_pointer_save_area_init from struct function; turn into bool.
7845 (struct function): Move
7846 calls_eh_return, saves_all_registers, has_nonlocal_goto,
7847 has_asm_statement, is_thunk, all_throwers_are_sibcalls, limit_stack,
7848 profile, uses_const_pool, uses_pic_offset_table, uses_eh_lsda,
7849 tail_call_emit, arg_pointer_save_area_init
7850 into struct rtl_data. Remove recursive_call_emit and gimplified flags.
7851 (current_function_returns_struct, current_function_returns_pcc_struct,
7852 current_function_calls_setjmp, current_function_calls_alloca,
7853 current_function_accesses_prior_frames,
7854 current_function_calls_eh_return, current_function_is_thunk,
7855 current_function_stdarg, current_function_profile,
7856 current_function_limit_stack, current_function_uses_pic_offset_table,
7857 current_function_uses_const_pool, current_function_has_nonlocal_label,
7858 current_function_saves_all_registers,
7859 current_function_has_nonlocal_goto,
7860 current_function_has_asm_statement): Remove accesor macros.
7861 * ra-conflict.c (global_conflicts): Update.
7862 * tree-tailcall.c (suitable_for_tail_opt_p): Update.
7863 (suitable_for_tail_call_opt_p): Update.
7864 * builtins.c (expand_builtin_return_addr): Update.
7865 (expand_builtin_setjmp_setup): Update.
7866 (expand_builtin_nonlocal_goto): Update.
7867 * final.c (final_start_function): Update.
7868 (profile_function): Update.
7869 (leaf_function_p): Update.
7870 (only_leaf_regs_used): Update.
7871 * df-scan.c (df_get_exit_block_use_set): Update.
7872 * dojump.c (clear_pending_stack_adjust): Update.
7873 * tree-stdarg.c (gate_optimize_stdarg): Update.
7874 * gimple-low.c (lower_function_body): Update.
7875 * global.c (compute_regsets): Update.
7876 (global_alloc): Update.
7877 * dwarf2out.c (dwarf2out_begin_prologue): Update.
7878 * expr.c (expand_assignment): Update.
7879 * dse.c (dse_step0): Update.
7880 (dse_step1): Update.
7881 * c-decl.c (store_parm_decls): Update.
7882 * local-alloc.c (combine_regs): Update.
7883 (find_free_reg): Update.
7884 * function.c (assign_parms_augmented_arg_list): Update.
7885 (assign_parm_find_data_types): Update.
7886 (assign_parms): Update.
7887 (allocate_struct_function): Update.
7888 (expand_function_start): Update.
7889 (expand_function_end): Update.
7890 (get_arg_pointer_save_area): Update.
7891 (thread_prologue_and_epilogue_insns): Update.
7892 (rest_of_match_asm_constraints): Update.
7893 * stor-layout.c (variable_size): Update.
7894 * gcse.c (gcse_main): Update.
7895 (bypass_jumps): Update.
7896 * gimplify.c (gimplify_function_tree): Update.
7897 * calls.c (emit_call_1): Update.
7898 (expand_call): Update.
7899 * bt-load.c (compute_defs_uses_and_gen): Update.
7900 * except.c (sjlj_assign_call_site_values): Update.
7901 (sjlj_emit_function_enter): Update.
7902 (can_throw_external): Update.
7903 (set_nothrow_function_flags): Update.
7904 (expand_builtin_unwind_init): Update.
7905 (expand_eh_return): Update.
7906 (convert_to_eh_region_ranges): Update.
7907 (output_function_exception_table): Update.
7908 * emit-rtl.c (gen_tmp_stack_mem): Update.
7909 * cfgexpand.c (expand_used_vars): Update.
7910 (tree_expand_cfg): Update.
7911 * cfgcleanup.c (rest_of_handle_jump): Update.
7912 * explow.c (allocate_dynamic_stack_space): Update.
7913 * varasm.c (assemble_start_function): Update.
7914 (force_const_mem): Update.
7915 (mark_constant_pool): Update.
7916 * tree-optimize.c (tree_rest_of_compilation): Update.
7917 * stack-ptr-mod.c (notice_stack_pointer_modification): Update.
7918 * tree-cfg.c (notice_special_calls): Update.
7919 (is_ctrl_altering_stmt): Update.
7920 (tree_can_make_abnormal_goto): Update.
7921 (tree_purge_dead_abnormal_call_edges): Update.
7922 * config/alpha/predicates.md: Update.
7923 * config/alpha/alpha.c (alpha_sa_mask): Update.
7924 (alpha_sa_size): Update.
7925 (alpha_does_function_need_gp): Update.
7926 (alpha_expand_prologue): Update.
7927 (alpha_start_function): Update.
7928 (alpha_output_function_end_prologue): Update.
7929 (alpha_expand_epilogue): Update.
7930 * config/frv/frv.c (frv_stack_info): Update.
7931 (frv_expand_epilogue): Update.
7932 * config/s390/s390.c (s390_regs_ever_clobbered): Update.
7933 (s390_register_info): Update.
7934 (s390_frame_info): Update.
7935 (s390_init_frame_layout): Update.
7936 (s390_can_eliminate): Update.
7937 (save_gprs): Update.
7938 * config/spu/spu.c (spu_split_immediate): Update.
7939 (need_to_save_reg): Update.
7940 (spu_expand_prologue): Update.
7941 (spu_expand_epilogue): Update.
7942 * config/sparc/sparc.md: Update.
7943 * config/sparc/sparc.c (eligible_for_return_delay): Update.
7944 (sparc_tls_got): Update.
7945 (legitimize_pic_address): Update.
7946 (sparc_emit_call_insn): Update.
7947 (sparc_expand_prologue): Update.
7948 (output_return): Update.
7949 (print_operand): Update.
7950 (sparc_function_ok_for_sibcall): Update.
7951 * config/sparc/sparc.h (EXIT_IGNORE_STACK): Update.
7952 * config/m32r/m32r.md: Update.
7953 * config/m32r/m32r.c (MUST_SAVE_RETURN_ADDR): Update.
7954 (m32r_compute_frame_size): Update.
7955 (m32r_expand_prologue): Update.
7956 (m32r_expand_epilogue): Update.
7957 (m32r_legitimize_pic_address): Update.
7958 * config/m32r/m32r.h (FRAME_POINTER_REQUIRED): Update.
7959 * config/i386/linux.h (SUBTARGET_FRAME_POINTER_REQUIRED): Update.
7960 * config/i386/i386.c (ix86_frame_pointer_required): Update.
7962 (ix86_save_reg): Update.
7963 (ix86_compute_frame_layout): Update.
7964 (ix86_expand_prologue): Update.
7965 (ix86_expand_epilogue): Update.
7966 * config/sh/sh.c (output_stack_adjust): Update.
7967 (calc_live_regs): Update.
7968 (sh5_schedule_saves): Update.
7969 (sh_expand_prologue): Update.
7970 (sh_expand_epilogue): Update.
7971 (sh_setup_incoming_varargs): Update.
7972 (sh_allocate_initial_value): Update.
7973 (sh_get_pr_initial_val): Update.
7974 * config/sh/sh.h (SHMEDIA_REGS_STACK_ADJUST): Update.
7975 * config/sh/sh.md (label:): Update.
7976 * config/avr/avr.c (out_movhi_mr_r): Update.
7977 * config/crx/crx.h (enum): Update.
7978 * config/xtensa/xtensa.h (along): Update.
7979 * config/stormy16/stormy16.c Update.
7980 (xstormy16_compute_stack_layout): Update.
7981 * config/fr30/fr30.c (MUST_SAVE_RETURN_POINTER): Update.
7982 (fr30_expand_prologue): Update.
7983 * config/cris/cris.c (cris_conditional_register_usage): Update.
7984 (cris_reg_saved_in_regsave_area): Update.
7985 (cris_initial_frame_pointer_offset): Update.
7986 (cris_simple_epilogue): Update.
7987 (cris_expand_prologue): Update.
7988 (cris_expand_epilogue): Update.
7989 (cris_expand_pic_call_address): Update.
7990 (cris_asm_output_symbol_ref): Update.
7991 (cris_asm_output_label_ref): Update.
7992 * config/cris/cris.md Update.
7993 * config/iq2000/iq2000.c (compute_frame_size): Update.
7994 (iq2000_expand_epilogue): Update.
7995 * config/mt/mt.h (save_direction): Update.
7996 * config/mn10300/mn10300.c (mn10300_function_value): Update.
7997 * config/ia64/ia64.c (ia64_compute_frame_size): Update.
7998 (ia64_secondary_reload_class): Update.
7999 * config/m68k/m68k.c (m68k_save_reg): Update.
8000 (m68k_expand_prologue): Update.
8001 (m68k_expand_epilogue): Update.
8002 (legitimize_pic_address): Update.
8003 * config/rs6000/rs6000.c (rs6000_got_register): Update.
8004 (first_reg_to_save): Update.
8005 (first_altivec_reg_to_save): Update.
8006 (compute_vrsave_mask): Update.
8007 (compute_save_world_info): Update.
8008 (rs6000_stack_info): Update.
8009 (spe_func_has_64bit_regs_p): Update.
8010 (rs6000_ra_ever_killed): Update.
8011 (rs6000_emit_eh_reg_restore): Update.
8012 (rs6000_emit_allocate_stack): Update.
8013 (rs6000_emit_prologue): Update.
8014 (rs6000_emit_epilogue): Update.
8015 (rs6000_output_function_epilogue): Update.
8016 (output_profile_hook): Update.
8017 (rs6000_elf_declare_function_name): Update.
8018 * config/rs6000/rs6000.h (rs6000_args): Update.
8019 * config/rs6000/rs6000.md: Update.
8020 * config/mcore/mcore.c (mcore_expand_prolog): Update.
8021 * config/arc/arc.c (arc_output_function_epilogue): Update.
8022 * config/arc/arc.h (FRAME_POINTER_REQUIRED): Update.
8023 * config/darwin.c (machopic_function_base_name): Update.
8024 * config/score/score3.c (score3_compute_frame_size): Update.
8027 (score3_epilogue): Update.
8028 * config/score/score7.c (score7_compute_frame_size): Update.
8029 (score7_prologue): Update.
8030 (score7_epilogue): Update.
8031 * config/score/score.h (FRAME_POINTER_REQUIRED): Update.
8032 * config/arm/linux-elf.h (SUBTARGET_FRAME_POINTER_REQUIRED): Update.
8033 * config/arm/arm.c (use_return_insn): Update.
8034 (require_pic_register): Update.
8035 (arm_load_pic_register): Update.
8036 (arm_compute_save_reg0_reg12_mask): Update.
8037 (arm_compute_save_reg_mask): Update.
8038 (thumb1_compute_save_reg_mask): Update.
8039 (output_return_instruction): Update.
8040 (arm_output_function_prologue): Update.
8041 (arm_output_epilogue): Update.
8042 (arm_get_frame_offsets): Update.
8043 (arm_expand_prologue): Update.
8044 (thumb_pushpop): Update.
8045 (thumb_exit): Update.
8046 (thumb1_expand_prologue): Update.
8047 (thumb1_expand_epilogue): Update.
8048 (arm_unwind_emit): Update.
8049 (arm_output_fn_unwind): Update.
8050 * config/arm/arm.h (FRAME_POINTER_REQUIRED): Update.
8051 * config/arm/arm.md: Update.
8052 * config/pa/pa.md: Update.
8053 * config/pa/pa.c (legitimize_pic_address): Update.
8054 (compute_frame_size): Update.
8055 (hppa_expand_prologue): Update.
8056 (hppa_expand_epilogue): Update.
8057 (borx_reg_operand): Update.
8058 * config/pa/pa.h (FRAME_POINTER_REQUIRED): Update.
8059 (HARD_REGNO_RENAME_OK): Update.
8060 * config/mips/mips.c (mips_global_pointer): Update.
8061 (mips_save_reg_p): Update.
8062 (mips_compute_frame_info): Update.
8063 (mips_frame_pointer_required): Update.
8064 (mips_expand_prologue): Update.
8065 (mips_expand_epilogue): Update.
8066 (mips_can_use_return_insn): Update.
8067 (mips_reorg_process_insns): Update.
8068 * config/v850/v850.c (compute_register_save_size): Update.
8069 * config/mmix/mmix.h (FRAME_POINTER_REQUIRED): Update.
8070 * config/mmix/mmix.c (along): Update.
8071 (mmix_expand_epilogue): Update.
8072 * config/bfin/bfin.c (legitimize_pic_address): Update.
8073 (must_save_p): Update.
8074 (stack_frame_needed_p): Update.
8075 (add_to_reg): Update.
8076 (bfin_expand_prologue): Update.
8077 * stmt.c (expand_asm_operands): Update.
8078 * reload1.c (reload): Update.
8079 (init_elim_table): Update.
8081 2008-04-25 Bob Wilson <bob.wilson@acm.org>
8083 * optabs.c (expand_float): Fix REG_EQUAL for UNSIGNED_FLOAT libcall.
8085 2008-04-25 H.J. Lu <hongjiu.lu@intel.com>
8087 * config/i386/sse.md (mov<mode>): Replace SSEMODEI with SSEMODE.
8088 (*mov<mode>_internal): Likewise. Support V4SF and V2DF.
8089 (mov<mode>): Removed.
8090 (*movv4sf_internal): Likewise.
8091 (*movv2df_internal): Likewise.
8093 2008-04-25 Pompapathi V Gadad <Pompapathi.V.Gadad@nsc.com>
8095 * config.gcc (crx-*-elf): Remove deprecation.
8097 2008-04-25 Danny Smith <dannysmith@users.sourceforge.net>
8099 * config/i386/cygming-crtend.c (register_frame_ctor): Register
8100 __gcc_deregister_frame with atexit.
8101 (deregister_frame_dtor): Remove.
8103 2008-04-24 Nathan Froyd <froydnj@codesourcery.com>
8104 Nathan Sidwell <nathan@codesourcery.com>
8106 * config/rs6000/rs6000.opt (mspe): Remove Var property.
8108 * config/rs6000/rs6000.h (rs6000_spe): Declare.
8109 (rs6000_isel): Likewise.
8110 * config/rs6000/rs6000.c (rs6000_spe): New variable.
8111 (rs6000_isel): New variable.
8112 (rs6000_handle_option): Handle OPT_mspe and OPT_misel.
8114 2008-04-24 Jakub Jelinek <jakub@redhat.com>
8117 * c-common.c (handle_vector_size_attribute): Call
8118 lang_hooks.types.reconstruct_complex_type instead of
8119 reconstruct_complex_type.
8120 * config/rs6000/rs6000.c (rs6000_handle_altivec_attribute): Likewise.
8121 * config/spu/spu.c (spu_handle_vector_attribute): Likewise.
8122 * langhooks.h (struct lang_hooks_for_types): Add
8123 reconstruct_complex_type hook.
8124 * langhooks-def.h (LANG_HOOKS_RECONSTRUCT_COMPLEX_TYPE): Define.
8125 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add it.
8127 2008-04-24 Richard Guenther <rguenther@suse.de>
8129 * c-common.h (check_builtin_function_arguments): Declare.
8130 * c-common.c (validate_nargs): New function.
8131 (check_builtin_function_arguments): Likewise.
8132 * c-typeck.c (build_function_call): Call
8133 check_builtin_function_arguments.
8134 * builtins.c (fold_builtin_classify): Remove error reporting code.
8135 (fold_builtin_unordered_cmp): Likewise.
8136 (fold_builtin_1): Likewise.
8137 (fold_builtin_n): Likewise.
8139 2008-04-24 Jakub Jelinek <jakub@redhat.com>
8141 PR tree-optimization/36008
8142 * fold-const.c (try_move_mult_to_index): If s == NULL, divide
8143 the original op1, rather than delta by step.
8145 2008-04-22 Antoniu Pop <antoniu.pop@gmail.com>
8146 Sebastian Pop <sebastian.pop@amd.com>
8148 * tree-parloops.c (take_address_of, eliminate_local_variables_1,
8149 eliminate_local_variables_stmt, eliminate_local_variables,
8150 separate_decls_in_loop_name, separate_decls_in_loop_stmt,
8151 separate_decls_in_loop, gen_parallel_loop): Make them work on a region
8152 of code delimited by two edges in the CFG.
8153 (separate_decls_in_loop_name): Renamed separate_decls_in_region_name.
8154 (separate_decls_in_loop_stmt): Renamed separate_decls_in_region_stmt.
8155 (separate_decls_in_loop): Renamed separate_decls_in_region. Isolate
8156 the case of parallelisation of reductions.
8157 (expr_invariant_in_region_p): New.
8159 * tree-flow.h (gather_blocks_in_sese_region): Declared.
8160 * tree-cfg.c (gather_blocks_in_sese_region): Extern.
8162 2008-04-24 Ira Rosen <irar@il.ibm.com>
8163 Richard Guenther <rguenther@suse.de>
8165 PR tree-optimization/36034
8166 * tree-vect-analyze.c (vect_analyze_group_access): SLP is
8167 incapable of dealing with loads with gaps.
8169 2008-04-24 Rafael Espindola <espindola@google.com>
8171 * tree-flow.h (vrp_evaluate_conditional): Change signature.
8172 * tree-ssa-propagate.c (fold_predicate_in): Update call to
8173 vrp_evaluate_conditional.
8174 * tree-vrp.c (vrp_evaluate_conditional_warnv): Remove.
8175 (vrp_evaluate_conditional): Split the cond argument.
8176 (vrp_visit_cond_stmt): Use vrp_evaluate_conditional_warnv_with_ops.
8177 (simplify_stmt_for_jump_threading): Update call to
8178 vrp_evaluate_conditional.
8180 2008-04-24 Ira Rosen <irar@il.ibm.com>
8182 PR tree-optimization/35982
8183 * tree-vect-analyze.c (vect_check_interleaving): Check that the
8184 interleaved data-refs are of the same type.
8186 2008-04-24 Danny Smith <dannysmith@users.net>
8188 * c-format.c (check_format_info_main): Use strncmp rather than a
8189 magic prefix to handle multichar length specs.
8190 * config/i386/msformat-c.c (format_length_info ms_printf_length_specs):
8191 Don't prefix "I64" and "I32" with '\0'.
8193 2008-04-24 Jakub Jelinek <jakub@redhat.com>
8196 * config/i386/i386.c (init_cumulative_args): Don't pass anything
8197 in registers for -m32 only if stdarg_p (fntype).
8199 2008-04-24 Uros Bizjak <ubizjak@gmail.com>
8201 PR rtl-optimization/36006
8202 * expmed.c (store_fixed_bit_field): Copy op0 rtx before moving
8203 temp to op0 in order to avoid invalid rtx sharing.
8205 2008-04-23 Paolo Bonzini <bonzini@gnu.org>
8207 * tree-cfg.c (verify_expr): Check with is_gimple_address. Don't
8208 check TREE_INVARIANT.
8209 * tree-gimple.c (is_gimple_address): New.
8210 (is_gimple_invariant_address): Simplify using decl_address_invariant_p.
8211 * tree-gimple.h (is_gimple_address): New.
8212 * tree.h (decl_address_invariant_p): New.
8213 * tree.c (make_node_stat): Don't set TREE_INVARIANT.
8214 (build_string): Likewise.
8215 (decl_address_invariant_p): New, from is_gimple_invariant_address.
8216 (tree_invariant_p_1): Likewise.
8217 (save_expr): Use it.
8218 (tree_invariant_p): New.
8219 (skip_simple_arithmetic): Use it.
8220 (stabilize_reference_1): Use it.
8221 (recompute_tree_invariant_for_addr_expr): Don't update TREE_INVARIANT,
8223 (build1_stat): Drop code to compute TREE_INVARIANT.
8224 (build2_stat): Drop code to compute TREE_INVARIANT.
8225 (build3_stat): Drop code to compute TREE_INVARIANT.
8226 (build4_stat): Drop code to compute TREE_INVARIANT.
8227 (build5_stat): Drop code to compute TREE_INVARIANT.
8228 (build7_stat): Drop code to compute TREE_INVARIANT.
8229 (merge_dllimport_decl_attributes): Don't mention TREE_INVARIANT.
8230 * tree.h (struct tree_base): Remove invariant_flag.
8231 (TREE_INVARIANT): Remove.
8232 * builtins.c (build_string_literal): Don't set TREE_INVARIANT.
8233 (fold_builtin_expect): Check TREE_CONSTANT.
8234 * tree-ssa-ccp.c (fold_stmt_r): Adjust comment.
8235 * c-tree.h (c_expr_to_decl): Drop third parameter.
8236 * c-typeck.c (build_external_ref): Don't set TREE_INVARIANT.
8237 (build_c_cast): Don't set TREE_INVARIANT.
8238 (pop_init_level): Don't set TREE_INVARIANT.
8239 (c_objc_common_truthvalue_conversion): Don't set TREE_INVARIANT.
8240 * gimplify.c (gimplify_init_ctor_preeval): Add assertion, test
8242 (gimplify_init_constructor): Don't set TREE_INVARIANT.
8243 (gimplify_addr_expr): Adjust comment.
8244 * tree-mudflap.c (mf_build_string):
8245 * print-tree.c (print_node): Don't print TREE_INVARIANT.
8246 * tree-nested.c (convert_nonlocal_reference): Adjust comment.
8247 * c-common.c (fix_string_type): Don't set TREE_INVARIANT.
8248 * langhooks-def.h (lhd_expr_to_decl): Drop third parameter.
8249 * langhooks.c (lhd_expr_to_decl): Drop third parameter.
8250 * langhooks.h (struct lang_hooks): Drop third parameter from
8253 2008-04-23 Richard Guenther <rguenther@suse.de>
8255 PR tree-optimization/27799
8256 PR tree-optimization/32921
8257 PR tree-optimization/32624
8258 * tree-ssa-structalias.c (merge_smts_into): Only merge the
8259 SMTs aliases and the tag itself into the solution.
8260 * tree-ssa-alias.c (compute_flow_sensitive_aliasing): Do not
8261 merge the points-to solution back into the SMT aliases.
8262 (may_alias_p): Use alias_set_subset_of instead of
8263 aliases_conflict_p. A pointer which points to
8264 memory with alias set zero may access any variable.
8266 2008-04-23 Richard Guenther <rguenther@suse.de>
8268 * alias.c (alias_set_subset_of): Correctly handle asking
8269 if zero is a subset of an alias set with zero child.
8270 * tree-ssa-alias.c (have_common_aliases_p): Simplify logic.
8271 (compute_flow_insensitive_aliasing): Correctly walk all
8272 pointers. Do not unnecessarily union sets.
8274 2008-04-23 Richard Guenther <rguenther@suse.de>
8277 * c-common.c (handle_alloc_size_attribute): Use type_num_arguments.
8279 2008-04-22 Tomas Bily <tbily@suse.cz>
8281 * tree-cfg.c (verify_expr): Check for NON_LVALUE_EXPR as
8283 * tree-vrp.c (extract_range_from_unary_expr): Removed unused
8285 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
8286 * tree-ssa-structalias.c (get_constraint_for): Likewise.
8287 * tree-inline.c (estimate_num_insns_1): Likewise.
8288 * varasm.c (const_hash_1, compare_constant, copy_constant)
8289 (compute_reloc_for_constant, output_addressed_constants): Likewise.
8290 * emit-rtl.c (component_ref_for_mem_expr)
8291 (set_mem_attributes_minus_bitpos): Likewise.
8292 * expr.c (highest_pow2_factor, expand_expr_real_1, )
8293 (is_aligning_offset): Likewise.
8294 * dwarf2out.c (loc_descriptor_from_tree_1, add_bound_info): Likewise.
8295 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Likewise.
8296 * dojump.c (do_jump): Likewise.
8297 * builtins.c (get_pointer_alignment, get_memory_rtx)
8298 (integer_valued_real_p, fold_builtin_next_arg): Likewise.
8299 * tree-scalar-evolution.c (instantiate_parameters_1): Likewise.
8301 2008-04-23 Jakub Jelinek <jakub@redhat.com>
8303 PR rtl-optimization/36017
8304 * builtins.c (expand_errno_check): Clear CALL_EXPR_TAILCALL before
8305 expanding the library call.
8307 2008-04-22 Ian Lance Taylor <iant@google.com>
8309 * fold-const.c (pointer_may_wrap_p): Call int_size_in_bytes rather
8312 2008-04-22 Pat Haugen <pthaugen@us.ibm.com>
8314 * config/rs6000/rs6000.c (rs6000_register_move_cost): Increase cost
8315 of LR/CTR moves for Power6.
8317 2008-04-22 Kenneth Zadeck <zadeck@naturalbridge.com>
8320 * passes.c (init_optimization_passes): Remove
8321 pass_fast_rtl_byte_dce.
8323 2008-04-22 Uros Bizjak <ubizjak@gmail.com>
8326 * config/i386/xmmintrin.h (_mm_cvtpi16_ps): Rearrange calls to
8327 builtin functions to generate faster code.
8328 (_mm_cvtpu16_ps): Ditto.
8329 (_mm_cvtpi32x2_ps): Ditto.
8331 2008-04-22 Nick Clifton <nickc@redhat.com>
8333 * common.opt (ftree-loop-distribution): Add Optimization
8336 * config/frv/frv.c (frv_stack_info): Use crtl instead of cfun.
8337 (frv_expand_builtin_va_start): Likewise.
8339 * config/arm/arm.c (thumb_find_work_register): Fix location of
8340 argument register count.
8342 2008-04-22 Maxim Kuvyrkov <maxim@codesourcery.com>
8344 Support scheduling for ColdFire V1 and V3 microarchitecture.
8345 Improve scheduling of multiplication instructions.
8347 * config/m68k/m68k.md (cpu): Add cfv1 and cfv3. Rename cf_v2 to cfv1.
8348 (mac): New instruction attribute.
8349 * config/m68k/m68k.c (override_options): Handle cfv1, cfv3 and mac.
8350 (m68k_sched_mac): New variable.
8351 (m68k_sched_attr_type2, m68k_sched_md_init_global): Update.
8352 Handle cfv1 and cfv3.
8353 (max_insn_size): New static variable.
8354 (struct _sched_ib): New type.
8355 (sched_ib): New static variable.
8356 (sched_ib_size, sched_ib_filled, sched_ib_insn): Convert variables
8357 to fields of 'struct _sched_ib sched_ib'. Update all uses.
8358 (m68k_sched_variable_issue): Add modeling of cfv3 instruction buffer.
8360 (m68k_sched_md_init_global, m68k_sched_md_finish_global,
8361 m68k_sched_md_init, m68k_sched_md_finish): Handle cfv1 and cfv3. Init
8362 new variables. Update.
8363 (m68k_sched_dfa_pre_advance_cycle, m68k_sched_dfa_post_advance_cycle):
8364 Add modeling of cfv3 instruction buffer. Update.
8365 * config/m68k/m68k-protos.h (m68k_sched_mac): Declare.
8366 * config/m68k/m68k.h (TUNE_CFV3): New macro.
8367 * config/m68k/cf.md: Change substrings 'cf_v2' to 'cfv12' or 'cfv123'.
8368 (cf_* reservations): Rename to cfv12 or cfv123 to indicate cores
8369 a particular reservation applies to.
8370 (type2): Reorganize attribute values. Rename alu to alu_reg,
8371 alu_l to alu, move_l to omove. Join move to alu. Split mul
8373 (cf_ib_*): Simplify description of instruction buffer.
8374 (cf_ib_w0, cf_ib_w4, cf_ib_w5, cf_ib_w6): Remove.
8375 (cf_mem): Split into cf_mem1 and cf_mem2.
8376 (cf_v2_move_??): Rename to cfv12_alu_??.
8377 (cf_v2_move_l_??): Rename to cfv12_omove_??.
8378 (cf_v2_mul_??): Remove reservations.
8379 (cfv12_mul_l_??, cfv12_mul_w_??, cfv12_mac_w_??, cfv12_mac_l_??,
8380 cfv12_emac_??, cfv12_emac_w_i0): New reservations.
8381 (cfv12_rts, cfv12_call, cfv12_bcc, cfv12_bra, cfv12_jmp): Move to
8383 (cfv3_alu_10, cfv3_omove_10, cfv3_alu_i0, cfv3_omove_i0, cfv3_alu_01,
8384 cfv3_alu_0i, cfv3_alu_11, cfv3_omove_11, cfv3_alu_i1, cfv3_omove_i1,
8385 cfv3_alu_1i, cfv3_omove_1i, cfv3_pea_11, cfv3_pea_i1, cfv3_mul_w_10,
8386 cfv3_mul_l_10, cfv3_mul_w_i0, cfv3_mac_w_10, cfv3_mac_l_10,
8387 cfv3_mac_w_i0, cfv3_emac_10, cfv3_emac_w_i0, cfv3_rts, cfv3_call,
8388 cfv3_bcc, cfv3_bra, cfv3_jmp): New reservations.
8389 (cfv3_*_1, cfv3_*_2, cfv3_*_3): New instruction reservations that are
8390 expansions of the above reservations for instructions of sizes
8393 2008-04-22 Maxim Kuvyrkov <maxim@codesourcery.com>
8395 * rtl-factoring.c (collect_patterns_seqs): Handle CC0 targets.
8397 2008-04-21 Adam Nemet <anemet@caviumnetworks.com>
8399 * coverage.c: Include tree-pass.h.
8400 (coverage_counter_alloc): Print da_file_name to the dump file.
8402 2008-04-21 Kenneth Zadeck <zadeck@naturalbridge.com>
8404 * sbitmap.c (sbitmap_range_empty_p): New function.
8405 * sbitmap.h (sbitmap_range_empty_p): New function.
8406 * bitmap.h: Now includes obstack.h.
8408 2008-04-21 Richard Sandiford <rsandifo@nildram.co.uk>
8409 Kenneth Zadeck <zadeck@naturalbridge.com>
8411 * dbgcnt.def (ra_byte_scan): Added.
8412 * dbgcnt.c (dbg_cnt): Added code to print message to dump_file
8413 when the last hit happens for a counter.
8414 * timevar.def (TV_DF_BYTE_LR): New variable.
8415 * tree-pass.h (pass_fast_rtl_byte_dce): New pass.
8416 * passes.c (pass_fast_rtl_byte_dce): New pass.
8417 * fwprop.c (update_df): Added mode to call df_ref_create.
8418 Renamed DF_REF_WIDTH and DF_REF_OFFSET to DF_REF_EXTRACT_WIDTH and
8419 DF_REF_EXTRACT_OFFSET.
8420 * df.h (DF_BYTE_LR, DF_BYTE_LR_BB_INFO, DF_BYTE_LR_IN,
8421 DF_BYTE_LR_OUT, df_byte_lr): New macro.
8423 (df_ref_extract): Added mode field.
8424 (DF_REF_WIDTH, DF_REF_OFFSET) Renamed to DF_REF_EXTRACT_WIDTH and
8425 DF_REF_EXTRACT_OFFSET.
8426 (DF_REF_EXTRACT_MODE): New macro.
8427 (df_byte_lr_bb_info): New structure.
8428 (df_print_byte_regset, df_compute_accessed_bytes,
8429 df_byte_lr_add_problem, df_byte_lr_get_regno_start,
8430 df_byte_lr_get_regno_len, df_byte_lr_simulate_defs,
8431 df_byte_lr_simulate_uses,
8432 df_byte_lr_simulate_artificial_refs_at_top,
8433 df_byte_lr_simulate_artificial_refs_at_end,
8434 df_compute_accessed_bytes): New function.
8435 (df_ref_create): Add parameter.
8436 (df_byte_lr_get_bb_info): New inline function.
8437 * df-scan.c (df_ref_record, df_uses_record,
8438 df_ref_create_structure): Added mode parameter.
8439 (df_ref_create, df_notes_rescan, df_ref_record, df_def_record_1,
8440 df_defs_record, df_uses_record, df_get_conditional_uses,
8441 df_get_call_refs, df_insn_refs_collect, df_bb_refs_collect,
8442 df_entry_block_defs_collect, df_exit_block_uses_collect):
8443 Added mode parameter to calls to df_ref_record, df_uses_record,
8444 df_ref_create_structure.
8445 (df_ref_equal_p, df_ref_compare): Added test for modes.
8446 (df_ref_create_structure): Added code to set mode. Renamed
8447 DF_REF_WIDTH and DF_REF_OFFSET to DF_REF_EXTRACT_WIDTH and
8448 DF_REF_EXTRACT_OFFSET.
8449 * df-core.c (df_print_byte_regset): New function.
8450 * df-byte-scan.c: New file.
8451 * df-problems.c (df_rd_transfer_function): Removed unnecessary
8452 calls to BITMAP_FREE.
8453 (df_byte_lr_problem_data, df_problem problem_BYTE_LR): New structure.
8454 (df_byte_lr_get_regno_start, df_byte_lr_get_regno_len,
8455 df_byte_lr_set_bb_info, df_byte_lr_free_bb_info,
8456 df_byte_lr_check_regs, df_byte_lr_expand_bitmap,
8457 df_byte_lr_alloc, df_byte_lr_reset, df_byte_lr_bb_local_compute,
8458 df_byte_lr_local_compute, df_byte_lr_init,
8459 df_byte_lr_confluence_0, df_byte_lr_confluence_n,
8460 df_byte_lr_transfer_function, df_byte_lr_free,
8461 df_byte_lr_top_dump, df_byte_lr_bottom_dump,
8462 df_byte_lr_add_problem, df_byte_lr_simulate_defs,
8463 df_byte_lr_simulate_uses,
8464 df_byte_lr_simulate_artificial_refs_at_top,
8465 df_byte_lr_simulate_artificial_refs_at_end): New function.
8466 * dce.c (byte_dce_process_block): New function.
8467 (dce_process_block): au is now passed in rather than computed
8468 locally. Changed loops that look at artificial defs to not look
8469 for conditional or partial ones, because there never are any.
8470 (fast_dce): Now is able to drive byte_dce_process_block or
8471 dce_process_block depending on the kind of dce being done.
8472 (rest_of_handle_fast_dce): Add parameter to fast_dce.
8473 (rest_of_handle_fast_byte_dce): New function.
8474 (rtl_opt_pass pass_fast_rtl_byte_dce): New pass.
8475 * Makefile.in (df-byte-scan.o, debugcnt.o): Added dependencies.
8477 2008-04-21 Daniel Franke <franke.daniel@gmail.com>
8480 * gcc.h: Added fortran options that take arguments to
8481 DEFAULT_SWITCH_TAKES_ARG and DEFAULT_WORD_SWITCH_TAKES_ARG
8484 2008-04-20 Eric Botcazou <ebotcazou@adacore.com>
8486 * tree-sra.c (sra_walk_expr) <VIEW_CONVERT_EXPR>: Disable
8487 scalarization if on the LHS and not a full access.
8489 2008-04-20 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8491 * Makefile.in (s-gtyp-input): Remove tmp-gi.list before writing it.
8493 2008-04-18 Rafael Espindola <espindola@google.com>
8495 * tree-vrp.c (find_case_label_index): Fix the binary search.
8496 (find_case_label_range): New.
8497 (vrp_visit_switch_stmt): Use find_case_label_range.
8498 (simplify_switch_using_ranges): Use find_case_label_range.
8500 2008-04-18 Eric Botcazou <ebotcazou@adacore.com>
8502 * gimplify.c (gimplify_modify_expr_rhs) <COND_EXPR>: Gimplify the LHS
8503 using the is_gimple_lvalue predicate instead of is_gimple_min_lval.
8505 2008-04-18 Tom Tromey <tromey@redhat.com>
8508 * doc/cpp.texi (Implementation-defined behavior): Mention
8511 2008-04-18 Ian Lance Taylor <iant@google.com>
8513 * fold-const.c (pointer_may_wrap_p): New static function.
8514 (fold_comparison): Add another test for pointer overflow. Use
8515 pointer_may_wrap_p to disable some false positives.
8517 2008-04-18 Kris Van Hees <kris.van.hees@oracle.com>
8519 * c-common.c (CHAR16_TYPE, CHAR32_TYPE): New macros.
8520 (fname_as_string): Match updated cpp_interpret_string prototype.
8521 (fix_string_type): Support char16_t* and char32_t*.
8522 (c_common_nodes_and_builtins): Add char16_t and char32_t (and
8523 derivative) nodes. Register as builtin if C++0x.
8524 (c_parse_error): Support CPP_CHAR{16,32}.
8525 * c-common.h (RID_CHAR16, RID_CHAR32): New elements.
8526 (enum c_tree_index) <CTI_CHAR16_TYPE, CTI_SIGNED_CHAR16_TYPE,
8527 CTI_UNSIGNED_CHAR16_TYPE, CTI_CHAR32_TYPE, CTI_SIGNED_CHAR32_TYPE,
8528 CTI_UNSIGNED_CHAR32_TYPE, CTI_CHAR16_ARRAY_TYPE,
8529 CTI_CHAR32_ARRAY_TYPE>: New elements.
8530 (char16_type_node, signed_char16_type_node, unsigned_char16_type_node,
8531 char32_type_node, signed_char32_type_node, char16_array_type_node,
8532 char32_array_type_node): New defines.
8533 * c-lex.c (cb_ident): Match updated cpp_interpret_string prototype.
8534 (c_lex_with_flags): Support CPP_CHAR{16,32} and CPP_STRING{16,32}.
8535 (lex_string): Support CPP_STRING{16,32}, match updated
8536 cpp_interpret_string and cpp_interpret_string_notranslate prototypes.
8537 (lex_charconst): Support CPP_CHAR{16,32}.
8538 * c-parser.c (c_parser_postfix_expression): Support CPP_CHAR{16,32}
8539 and CPP_STRING{16,32}.
8541 2008-04-18 Paolo Bonzini <bonzini@gnu.org>
8544 * aclocal.m4: Regenerate.
8545 * configure: Regenerate.
8547 2008-04-18 Jan Hubicka <jh@suse.cz>
8549 * except.c (dw2_size_of_call_site_table,
8550 sjlj_size_of_call_site_table): Use vector API for call_site_record.
8552 * cgraphbuild.c (build_cgraph_edges): Update.
8553 * tree-pass.h: Update comment.
8554 * final.c (leaf_function_p): Update.
8555 (leaf_renumber_regs): Update.
8556 (rest_of_clean_state): Update.
8557 * omp-low.c (expand_omp_parallel): Update.
8558 * ipa-reference.c (analyze_function): Update.
8559 * reorg.c (find_end_label): Update.
8560 (optimize_skip): Update.
8561 (fill_simple_delay_slots): Update.
8562 (fill_simple_delay_slots): Update.
8563 (make_return_insns): Update.
8564 (dbr_schedule): Update.
8565 * gimple-low.c (record_vars_into): Update.
8566 * cfgbuild.c (make_edges): Update.
8567 * function.c (assign_stack_local): Update.
8568 (assign_parm_adjust_stack_rtl): Update.
8569 (locate_and_pad_parm): Update.
8570 (allocate_struct_function): Do not initialize stack_alignment_needed
8571 and preferred_stack_boundary here.
8572 (stack_protect_prologue): Update.
8573 (stack_protect_epilogue): Update.
8574 (expand_function_start): Initialize stack_alignment_needed,
8575 preferred_stack_boundary and max_jumptable_ents.
8576 (expand_function_end): Update.
8577 (free_after_compilation): Do not NULLify epilogue_delay_list.
8578 * function.h (struct rtl_data): Add stack_protect_guard,
8579 stack_alignment_needed,
8580 preferred_stack_boundary, epilogue_delay_list.
8581 (struct function): Remove value_histograms, stack_alignment_needed,
8582 preferred_stack_boundary, epilogue_delay_list, max_jumptable_ents,
8584 unexpanded_var_list, stack_protect_guard.
8585 (current_function_epilogue_delay_list): Remove.
8586 * ipa-type-escape.c (analyze_function): Update.
8587 * gimplify.c (pop_gimplify_context): Update comment.
8588 * calls.c (expand_call): Update.
8589 (emit_library_call_value_1): Update.
8590 * except.c (set_nothrow_function_flags): Update.
8591 * cfgexpand.c (get_decl_align_unit): Update.
8592 (create_stack_guard): Update.
8593 (estimated_stack_frame_size): Update.
8594 (expand_used_vars): Update.
8595 (tree_expand_cfg): Free histogram earliers, init expansion variables.
8596 * explow.c (allocate_dynamic_stack_space): Update.
8597 * tree-ssa-live.c (remove_unused_locals): Update.
8598 * varasm.c (mark_constant_pool): Update.
8599 * tree-inline.c (remap_decls): Update.
8600 (initialize_cfun): Update.
8601 (declare_return_variable): Update.
8602 (inline_forbidden_p): Update.
8603 (expand_call_inline): Update.
8604 (declare_inline_vars): Update.
8605 (tree_function_versioning): Update.
8606 * tree-flow.h (value_histograms): New.
8607 (VALUE_HISTOGRAMS): New macro.
8608 * basic-block.h (control_flow_graph): Add max_jumptable_ents,
8610 * tree-cfg.c (set_bb_for_stmt): Update.
8611 (replace_by_duplicate_decl): Update.
8612 (move_block_to_fn): Update.
8613 (new_label_mapper): Update.
8614 (dump_function_to_file): Update.
8615 * ipa-struct-reorg.c (build_data_structure): Update.
8616 * cfgrtl.c (print_rtl_with_bb): Update.
8617 * reload1.c (reload): Update.
8619 * config/i386/i386.c (setup_incoming_varargs_64,
8620 ix86_compute_frame_layout): Update.
8621 * config/arc/arc.c (arc_output_function_epilogue): Update.
8623 2008-04-18 Marius Strobl <marius@FreeBSD.org>
8625 * gthr-posix.h (__gthread_active_p): Use the Solaris implementation
8626 for FreeBSD as well.
8627 * gthr-posix95.h: Likewise.
8629 2008-04-17 Richard Sandiford <rsandifo@nildram.co.uk>
8631 PR rtl-optimization/35838
8632 * dse.c (find_shift_sequence): Use subreg_lowpart_offset to work
8633 out the byte offset of the first subreg.
8635 2008-04-17 Uros Bizjak <ubizjak@gmail.com>
8637 * config/i386/i386.md (addti3 splitter): Pass arrays of 3 operands
8638 to split_ti instead of three separate calls with single member arrays.
8639 (subti3 splitter): Ditto.
8640 (adddi3 splitter): Ditto with split_di.
8641 (subdi3 splitter): Ditto.
8642 (negti2 splitter): Pass arrays of 2 operands to split_ti instead of
8643 two separate calls with single member arrays. Swap match_dup
8644 operands 1 and 2 to better fit into the array.
8645 (negdi2 splitter): Ditto with split_di.
8646 (movdfcc splitter): Pass arrays of 2 operands to split_di instead of
8647 two separate calls with single member arrays. Swap match_dup operands
8648 6 and 7 to better fit into the array.
8650 2008-04-17 H.J. Lu <hongjiu.lu@intel.com>
8652 * config/i386/i386.c (sse_builtin_type): New.
8653 (bdesc_sse_args): Likewise.
8654 (bdesc_sse_3arg): Removed.
8655 (bdesc_2arg): Remove IX86_BUILTIN_AESKEYGENASSIST128.
8656 (bdesc_1arg): Remove IX86_BUILTIN_ROUNDPD and
8657 IX86_BUILTIN_ROUNDPS.
8658 (ix86_init_mmx_sse_builtins): Handle bdesc_sse_args. Remove
8659 bdesc_sse_3arg. Remove IX86_BUILTIN_ROUNDPD and
8660 IX86_BUILTIN_ROUNDPS.
8661 (ix86_expand_sse_4_operands_builtin): Removed.
8662 (ix86_expand_sse_operands_builtin): New.
8663 (ix86_expand_unop_builtin): Remove CODE_FOR_sse4_1_roundpd
8664 and CODE_FOR_sse4_1_roundps.
8665 (ix86_expand_builtin): Remove IX86_BUILTIN_AESKEYGENASSIST128.
8666 Handle bdesc_sse_args. Remove bdesc_sse_3arg.
8668 2008-04-17 Alan Modra <amodra@bigpond.net.au>
8671 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Restore vr and vrsave
8672 regs before frame pop when needed. If use_backchain_to_restore_sp
8673 then load backchain into a temp reg to restore vr and vrsave. Add
8674 code to restore vr after frame pop if possible.
8676 2008-04-17 Richard Guenther <rguenther@suse.de>
8678 * tree-vn.c (expressions_equal_p): Do not check type
8679 equality or compatibility before calling operand_equal_p.
8680 * fold-const.c (operand_equal_p): Check equivalence of
8681 integer constants before bailing out due to signedness or
8682 precision differences.
8683 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Ignore
8684 spurious differences in type qualification. Ignore types
8685 for COMPONENT_REFs at all.
8687 2008-04-17 Christian Bruel <christian.bruel@st.com>
8689 * config/sh/sh.c (expand_cbranchdi4): Use original operands for
8690 msw_skip comparison.
8692 2008-04-16 Jakub Jelinek <jakub@redhat.com>
8695 * tree-nrv.c (tree_nrv): Don't optimize if result_type is GIMPLE
8698 PR tree-optimization/35899
8699 * tree-inline.c (expand_call_inline): Use GIMPLE_STMT_OPERAND
8700 rather than TREE_OPERAND.
8702 2008-04-16 Uros Bizjak <ubizjak@gmail.com>
8705 * config/i386/i386.md (fmodxf3): Copy operand 1 and operand 2 into
8706 temporary registers. Change operand predicate to general_operand.
8707 (remainderxf3): Ditto.
8709 2008-04-16 Richard Guenther <rguenther@suse.de>
8711 * Makefile.in (tree-affine.o): Add $(FLAGS_H) dependency.
8712 * tree-affine.c (aff_combination_expand): Look through some
8715 2008-04-15 Doug Kwan <dougkwan@google.com>
8717 * dwarf2asm.c (dw2_assemble_integer): Cast to unsigned HOST_WIDE_INT
8719 * tree-pretty-print.c (dump_generic_node): Ditto.
8720 * final.c (output_addr_const): Ditto.
8721 * dwarf2out.c (output_cfi): Ditto.
8722 * c-pretty-print.c (pp_c_integer_constant): Ditto.
8723 * print-rtl.c (print_rtx): Ditto.
8724 * print-tree.c (print_node_brief, print_node): Ditto.
8725 * c-common.c (match_case_to_enum_1): Ditto.
8726 * sched-vis.c (print_value): Ditto.
8727 * config/i386/i386.c (print_operand): Cast to long unsigned int
8730 2008-04-15 Danny Smith <dannysmith@users.sourceforge.net>
8731 * libgcc2.c [L_trampoline]: Remove unnecessary prototype for
8732 MS Windows VirtualProtect function.
8734 2008-04-15 Jan Hubicka <jh@suse.cz>
8736 * gengtype.c (write_root): Param_is argument is OK.
8737 * expr.c (expand_expr_real_1): Update call of get_exception_*.
8738 * function.h: Include varray.h
8739 (rtl_eh): New stucture based on except.c one.
8740 (call_site_record): New forward declaration and vector type.
8741 * calls.c (emit_call_1): Do not call
8742 note_current_region_may_contain_throw.
8743 * except.c (eh_status): Remove cur_region, try_region since they are
8745 Move filter, exc_ptr, ttype_data, ehspec_data, action_record_data and
8746 exception_handler_label_map, ehr_stackadj, ehr_handler, ehr_label,
8747 sjlj_fc, sjlj_exit_after to rth_eh in function.h.
8748 Remove call_site_data_used, call_site_data_size.
8749 Turn call_site_record into vector in function.h.
8750 (note_current_region_may_contain_throw): Remove.
8751 (get_exception_pointer, get_exception_filter): Do not take struct
8752 function argument; update.
8753 (add_ehl_entry, find_exception_handler_labels, ehspec_filter_hash,
8754 add_ttypes_entry, add_ehspec_entry, assign_filter_values,
8755 build_post_landing_pads, dw2_build_landing_pads,
8756 sjlj_assign_call_site_values, sjlj_mark_call_sites,
8757 sjlj_emit_function_enter, sjlj_emit_function_enter,
8758 sjlj_emit_function_exit, sjlj_emit_dispatch_table,
8759 sjlj_build_landing_pads, finish_eh_generation,
8760 remove_exception_handler_label, remove_eh_handler,
8761 maybe_remove_eh_handler, add_reachable_handler,
8762 reachable_handlers, expand_builtin_eh_return, expand_eh_return,
8763 add_action_record, collect_one_action_chain, add_call_site,
8764 convert_to_eh_region_ranges, sjlj_size_of_call_site_table,
8765 sjlj_output_call_site_table, output_function_exception_table,
8766 * except.h (note_current_region_may_contain_throw): Remove
8767 (get_exception_pointer, get_exception_filter): Do not take struct
8769 * Makefile.in (GTFILES): Put varargs before struct function.
8771 2008-04-15 Eric Botcazou <ebotcazou@adacore.com>
8773 * tree-ssa-structalias.c (get_constraint_for_component_ref): Do not
8774 punt for STRING_CST.
8775 (get_constraint_for): Deal with STRING_CST here instead.
8777 2008-04-15 Richard Guenther <rguenther@suse.de>
8779 * tree-ssa-propagate.c (substitute_and_fold): Substitute
8780 statements in a basic-block with a backward walk. Do not
8781 substitute into dead statements but instead remove those.
8783 2008-04-15 Richard Guenther <rguenther@suse.de>
8785 * params.def (PARAM_MAX_FIELDS_FOR_FIELD_SENSITIVE): Set default
8786 to zero, thus disable creation of SFTs.
8788 2008-04-15 Eric Botcazou <ebotcazou@adacore.com>
8790 * tree-predcom.c (suitable_reference_p): Return false if the
8791 reference can throw.
8793 2008-04-15 Jakub Jelinek <jakub@redhat.com>
8796 * c-decl.c (finish_decl): If extern or static var has variable
8797 size, set TREE_TYPE (decl) to error_mark_node.
8799 2008-04-15 Rafael Espindola <espindola@google.com>
8801 * fold-const.c (tree_call_nonnegative_warnv_p): Remove local
8804 2008-04-15 Richard Guenther <rguenther@suse.de>
8806 * tree-ssa-sccvn.h (vn_reference_lookup): Adjust prototype.
8807 * tree-ssa-sccvn.c (vn_reference_lookup): New parameter maywalk.
8808 (visit_reference_op_load): Do walk vuse-vdef chains on
8809 vn_reference_lookup.
8810 (visit_reference_op_store): But do not here.
8811 * tree-vn.c (vn_lookup): Do not walk vuse-vdef chains on
8812 vn_reference_lookup.
8813 (vn_lookup_with_vuses): But do so here.
8815 2008-04-14 Ian Lance Taylor <iant@google.com>
8817 * fold-const.c (fold_overflow_warning): Remove assertion.
8819 2008-04-15 Ben Elliston <bje@au.ibm.com>
8821 * config/alpha/alpha.c (alpha_initialize_trampoline): Remove temp,
8822 temp1 local variables.
8824 2008-04-15 Zuxy Meng <zuxy.meng@gmail.com>
8827 * config/i386/winnt.c (i386_pe_section_type_flags): Mark
8828 ".text.unlikely" section as executable.
8830 2008-04-14 James E. Wilson <wilson@tuliptree.org>
8832 * config/ia64/ia64.c (rtx_needs_barrier): Handle
8833 UNSPEC_FR_SQRT_RECIP_APPROX_RES.
8834 * config/ia64/ia64.c (UNSPEC_FR_SQRT_RECIP_APPROX_RES): Define.
8835 (divsi3_internal, divdi3_internal_lat, divdi3_internal_thr,
8836 divsf3_internal_lat, sqrt_approx, sqrtsf2_internal_thr,
8837 divdf3_internal_lat, sqrtdf2_internal_thr, divxf3_internal_lat,
8838 divxf3_internal_thr, sqrtxf2_internal_thr, recip_approx): Use it.
8840 2008-04-14 Ian Lance Taylor <iant@google.com>
8842 * flags.h (POINTER_TYPE_OVERFLOW_UNDEFINED): Define.
8843 * fold-const.c (fold_comparison): If appropriate, test
8844 POINTER_TYPE_OVERFLOW_UNDEFINED, and issue an overflow warning.
8845 (fold_binary): Test POINTER_TYPE_OVERFLOW_UNDEFINED when
8846 reassociating a pointer type.
8847 * doc/invoke.texi (Optimize Options): Document that
8848 -fstrict-overflow applies to pointer wraparound.
8850 2008-04-13 Jan Hubicka <jh@suse.cz>
8852 * m32.c (m32c_pushm_popm): Use crtl->retrun_rtx.
8854 2008-04-12 Andrew Pinski <pinskia@gmail.com>
8856 * config/rs6000/rs6000.c (compute_save_world_info): Set lr_save_p if
8857 we are going to "save the world".
8859 2008-04-13 Hans-Peter Nilsson <hp@axis.com>
8861 * config/cris/cris.md ("*andhi_lowpart_non_v32", "*andhi_lowpart_v32")
8862 ("*andqi_lowpart_non_v32", "*andqi_lowpart_v32"): Use "+" for the
8863 operand 0 constraint, not "=".
8865 2008-04-11 James E. Wilson <wilson@tuliptree.org>
8867 * system.h: Change ASSERT_CHECKING to ENABLE_ASSERT_CHECKING.
8869 2008-04-11 H.J. Lu <hongjiu.lu@intel.com>
8871 * dse.c (record_store): Use HOST_BITS_PER_WIDE_INT instead
8872 of size of positions_needed * CHAR_BIT.
8874 2008-04-11 H.J. Lu <hongjiu.lu@intel.com>
8877 * dse.c (store_info): Change positions_needed to unsigned
8879 (lowpart_bitmask): New.
8880 (record_store): Cast to unsigned HOST_WIDE_INT for
8881 positions_needed. Assert width <= size of positions_needed *
8882 CHAR_BIT. Call lowpart_bitmask to initialize positions_needed.
8883 (check_mem_read_rtx): Use unsigned HOST_WIDE_INT on mask. Call
8884 lowpart_bitmask to set mask.
8886 2008-04-11 Bernd Schmidt <bernd.schmidt@analog.com>
8888 * config/bfin/constraints.md: New file.
8889 * config/bfin/bfin.md: Include it.
8890 (adddi3): Use satisfies_constraint functions instead of the old macros.
8891 * config/bfin/bfin.h (REG_CLASS_FROM_LETTER, CONSTRAINT_LEN,
8892 CONST_18UBIT_IMM_P, CONST_16BIT_IMM_P, CONST_16UBIT_IMM_P,
8893 CONST_7BIT_IMM_P, CONST_7NBIT_IMM_P, CONST_5UBIT_IMM_P,
8894 CONST_4BIT_IMM_P, CONST_4UBIT_IMM_P, CONST_3BIT_IMM_P,
8895 CONST_3UBIT_IMM_P, CONST_OK_FOR_K, CONST_OK_FOR_P, CONST_OK_FOR_M,
8896 CONST_OK_FOR_CONSTRAINT_P, CONST_DOUBLE_OK_FOR_LETTER,
8897 EXTRA_CONSTRAINT): Delete.
8898 * config/bfin/predicates.md (highbits_operand, reg_or_7bit_operand,
8899 reg_or_neg7bit_operand): Use satisfies_constraint functions instead
8901 * config/bfin/bfin.c: Include "tm-constrs.h".
8902 (bfin_secondary_reload, split_load_immediate, bfin_rtx_costs):
8903 Use satisfies_constraint functions instead of the old macros.
8904 * doc/md.texi (Blackfin Constraints): Update file name reference.
8906 2008-04-11 Richard Guenther <rguenther@suse.de>
8908 PR tree-optimization/35869
8909 * tree-vrp.c (execute_vrp): Move switch statement update after
8910 jump threading. Schedule another cfg cleanup run.
8912 2008-04-11 Volker Reichelt <v.reichelt@netcologne.de>
8915 * attribs.c (decl_attributes): Return early on errorneous node.
8917 2008-04-10 Oleg Ryjkov <olegr@google.com>
8919 * tree.h (struct tree_base): Added a new flag default_def_flag.
8920 (SSA_NAME_IS_DEFAULT_DEF): Changed to use the new flag.
8922 2008-04-11 Kaz Kojima <kkojima@gcc.gnu.org>
8924 * config.gcc (need_64bit_hwint): Need 64bit hwint for sh-*-*.
8926 2008-04-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8929 * pa.md: Define mode iterator P. Define mode attribute dwc.
8930 (dcacheflush): Update pattern to use iterator P and attribute dwc.
8931 (icacheflush): Likewise.
8932 * pa.h (INITIALIZE_TRAMPOLINE): Use dcacheflushsi/icacheflushsi if
8933 !TARGET_64BIT, and dcacheflushdi/icacheflushdi if TARGET_64BIT.
8935 2008-04-11 Ben Elliston <bje@au.ibm.com>
8937 * config/spu/spu.c (spu_init_builtins): Mark builtins as nothrow.
8939 2008-04-10 Rafael Espindola <espindola@google.com>
8941 * tree-vrp.c (extract_range_from_binary_expr): Don't handle
8942 TRUTH_ANDIF_EXPR or TRUTH_ORIF_EXPR.
8943 (extract_range_from_expr): The same.
8945 2008-04-10 Adam Nemet <anemet@caviumnetworks.com>
8947 * config/mips/mips.md (GPR2): New mode iterator.
8949 (*seq_<mode>, *seq_<mode>_mips16, *sne_<mode>, *sgt<u>_<mode>,
8950 *sgt<u>_<mode>_mips16, *sge<u>_<mode>, *slt<u>_<mode>,
8951 *slt<u>_<mode>_mips16 *sle<u>_<mode>, *sle<u>_<mode>_mips16):
8952 Rewrite these to take two modes, the mode of comparison and the
8953 mode of the destination.
8954 * config/mips/mips.c (mips_expand_scc): Instead of having
8955 paradoxical subreg as destination, expand "narrowing" scc if mode
8956 of comparison is SI and target is requested in DI mode.
8957 (mips_emit_int_order_test): Update comment. Make mode of
8958 comparison match CMP0 rather than TARGET. When creating inverse
8959 target use mode of TARGET.
8961 2008-04-10 Adam Nemet <anemet@caviumnetworks.com>
8963 * gcov-dump.c (tag_summary): Only print summaries for the first
8964 GCOV_COUNTERS_SUMMABLE counters.
8966 2008-04-10 Uros Bizjak <ubizjak@gmail.com>
8968 * config/i386/i386.md (absneg): New code iterator.
8969 (absnegprefix): New code attribute.
8970 (<code><mode>2): Macroize expander from abs<mode>2 and neg<mode>2
8971 patterns using absneg code iterator.
8972 (<code>tf2): Macroize expander from abstf2 and negtf2 patterns
8973 using absneg code iterator.
8974 (*<code><mode>2_1): Macroize insn pattern from *abs<mode>2_1 and
8975 *neg<mode>2 patterns using absneg code iterator.
8976 (*<code>extendsfdf2): Macroize insn pattern from *absextendsfdf2 and
8977 *negextendsfdf2 patterns using absneg code iterator.
8978 (*<code>extendsfxf2): Macroize insn pattern from *absextendsfxf2 and
8979 *negextendsfxf2 patterns using absneg code iterator.
8980 (*<code>extendsfdf2): Macroize insn pattern from *absextendsfdf2 and
8981 *negextendsfdf2 patterns using absneg code iterator.
8982 * config/i386/sse.md (<code><mode>2): Macroize expander from
8983 abs<mode>2 and neg<mode>2 patterns using absneg code iterator.
8985 2008-04-10 Andreas Krebbel <krebbel1@de.ibm.com>
8987 * config/s390/s390.h: Remove the remains of the recent search
8988 & replace action of current_function_outgoing_args_size.
8990 2008-04-10 Ira Rosen <irar@il.ibm.com>
8992 PR tree-optimization/35821
8993 * tree-vect-transform.c (vect_create_data_ref_ptr): Add check that
8994 NEW_STMT_LIST is not NULL.
8996 2008-04-09 David Edelsohn <edelsohn@gnu.org>
8999 * toplev.c (process_options): Remove -ffunction-sections debugging
9002 2008-04-09 Peter Bergner <bergner@vnet.ibm.com>
9004 PR middle-end/PR28690
9005 * explow.c (break_out_memory_refs): Use simplify_gen_binary rather
9006 than gen_rtx_fmt_ee to perform more canonicalizations.
9008 2008-04-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9011 * collect2.c (write_c_file): Don't wrap in "#ifdef __cplusplus".
9013 2008-04-09 Richard Guenther <rguenther@suse.de>
9015 * tree-cfg.c (verify_stmt): Print complete bogus stmt.
9016 (dump_function_to_file): Dump function arguments with types.
9018 2008-04-08 Richard Guenther <rguenther@suse.de>
9020 * fold-const.c (fold_widened_comparison): Do not allow
9021 sign-changes that change the result.
9023 2008-04-08 Janis Johnson <janis187@us.ibm.com>
9026 * config/rs6000/rs6000.c (rs6000_check_sdmode): Handle additional
9027 kinds of indirect references.
9029 2008-04-08 David Edelsohn <edelsohn@gnu.org>
9031 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Update
9032 GNU Fortran language string.
9034 2008-04-08 Rafael Espindola <espindola@google.com>
9036 * fold-canst.c (tree_call_nonnegative_warnv_p): New.
9037 (tree_invalid_nonnegative_warnv_p): Use tree_call_nonnegative_warnv_p.
9038 * tree.h (tree_call_nonnegative_warnv_p): New.
9040 2008-04-08 Jan Hubicka <jh@suse.cz>
9042 * function.c (free_after_compilation): Clear out regno_reg_rtx
9045 2008-04-08 Peter Bergner <bergner@vnet.ibm.com>
9048 2008-04-07 Peter Bergner <bergner@vnet.ibm.com>
9050 PR middle-end/PR28690
9051 * rtlanal.c: (commutative_operand_precedence): Give SYMBOL_REF's the
9052 same precedence as REG_POINTER and MEM_POINTER operands.
9054 2008-04-08 Richard Guenther <rguenther@suse.de>
9057 * tree-ssa-address.c (create_mem_ref): Use POINTER_PLUS_EXPR
9058 for adding index to base.
9060 2008-04-08 Kai Tietz <kai.tietz@onevision.com>
9062 * config/i386/mingw32.h (ENABLE_EXECUTE_STACK): New.
9063 (MINGW_ENABLE_EXECUTE_STACK): New.
9064 (IN_LIBGCC2): For libgcc include windows.h file for
9065 function declarations.
9067 2008-04-08 Hans-Peter Nilsson <hp@axis.com>
9069 * config/cris/cris.c (cris_address_cost): For a PLUS, swap tem1
9070 and tem2 if tem1 is not a REG or MULT.
9072 2008-04-08 Jan Hubicka <jh@suse.cz>
9074 * function.h (incomming_args): Break out of struct function.
9075 (function_subsections): Break out of struct function.
9076 (rtl_data): Add args, subsections fields. Break out outgoing_args_size,
9077 return_rtx and hard_reg_initial_vals from struct function.
9078 Kill inl_max_label_num.
9079 (current_function_pops_args, current_function_args_info,
9080 current_function_args_size, current_function_args_size,
9081 current_function_pretend_args_size,
9082 current_function_outgoing_args_size,
9083 current_function_internal_arg_pointer, current_function_return_rtx):
9084 Kill compatibility accestor macros.
9085 * builtins.c (expand_builtin_apply_args_1): Update.
9086 (expand_builtin_next_arg): Update.
9087 * df-scan.c (df_get_call_refs): Update.
9088 * dbxout.c (dbxout_function_end): Update.
9089 * dwarf2out.c (dwarf2out_switch_text_section): Update.
9090 (output_line_info): Update.
9091 (secname_for_decl): Update.
9092 (dwarf2out_var_location): Update.
9093 * function.c (free_after_compilation): Update.
9094 (assign_parm_find_stack_rtl): Update.
9095 (assign_parms): Update.
9096 (expand_dummy_function_end): Update.
9097 (expand_function_end): Update.
9098 * calls.c (mem_overlaps_already_clobbered_arg_p): Update.
9099 (expand_call): Update.
9100 (emit_library_call_value_1): Update.
9101 (store_one_arg): Update.
9102 * varasm.c (initialize_cold_section_name): Update.
9103 (unlikely_text_section): Update.
9104 (unlikely_text_section_p): Update.
9105 (assemble_start_function): Update.
9106 (assemble_end_function): Update.
9107 (default_section_type_flags): Update.
9108 (switch_to_section): Update.
9109 * integrate.c (set_decl_abstract_flags): Update.
9110 (get_hard_reg_initial_val): Update.
9111 (has_hard_reg_initial_val): Update.
9112 (allocate_initial_values): Update.
9113 * resource.c (init_resource_info): Update.
9114 * config/alpha/alpha.c (NUM_ARGS): Update.
9115 (direct_return): Update.
9116 (alpha_va_start): Update.
9117 (alpha_sa_size): Update.
9118 (alpha_initial_elimination_offset): Update.
9119 (alpha_expand_prologue): Update.
9120 (alpha_start_function): Update.
9121 (alpha_expand_epilogue): Update.
9122 (unicosmk_initial_elimination_offset):
9123 * config/alpha/alpha.md (call expander): Update.
9124 * config/s390/s390.c (s390_register_info): Update.
9125 (s390_register_info): Update.
9126 (s390_frame_info): Update.
9127 (s390_initial_elimination_offset): Update.
9128 (s390_build_builtin_va_list): Update.
9129 (s390_va_start): Update.
9130 * config/spu/spu.c (direct_return): Update.
9131 (spu_expand_prologue): Update.
9132 (spu_initial_elimination_offset): Update.
9133 (spu_build_builtin_va_list): Update.
9134 (spu_va_start): Update.
9135 * config/sparc/sparc.c (sparc_init_modes): Update.
9136 (sparc_compute_frame_size): Update.
9137 (function_value): Update.
9138 * config/m32r/m32r.c (m32r_compute_frame_size): Update.
9139 * config/i386/i386.md (return expander): Update.
9140 * config/i386/i386.c (ix86_va_start): Update.
9141 (ix86_can_use_return_insn_p): Update.
9142 (ix86_compute_frame_layout): Update.
9143 (ix86_expand_epilogue): Update.
9144 * config/sh/sh.c (output_stack_adjust): Update.
9145 (calc_live_regs): Update.
9146 (sh_expand_prologue): Update.
9147 (sh_builtin_saveregs): Update.
9148 (sh_va_start): Update.
9149 (initial_elimination_offset): Update.
9150 (sh_allocate_initial_value): Update.
9151 (sh_function_ok_for_sibcall): Update.
9152 (sh_get_pr_initial_val): Update.
9153 * config/sh/sh.md (return expander): Update.
9154 * config/avr/avr.c (frame_pointer_required_p): UPdate.
9155 * config/crx/crx.c (crx_compute_frame): UPdate.
9156 (crx_initial_elimination_offset): UPdate.
9157 * config/xtensa/xtensa.c (compute_frame_size): Update
9158 (xtensa_builtin_saveregs): Update.
9159 (xtensa_va_start): Update.
9160 (order_regs_for_local_alloc): Update.
9161 * config/stormy16/stormy16.c (xstormy16_compute_stack_layout): Update.
9162 (xstormy16_expand_builtin_va_start): Update.
9163 * config/fr30/fr30.c (fr30_compute_frame_size): Update.
9164 * config/m68hc11/m68hc11.md (return expanders): Update.
9165 * config/m68hc11/m68hc11.c (expand_prologue): Update.
9166 (expand_epilogue): Update.
9167 * config/cris/cris.c (cris_initial_frame_pointer_offset): Update.
9168 (cris_simple_epilogue): Update.
9169 (cris_expand_prologue): Update.
9170 (cris_expand_epilogue): Update.
9171 * config/iq2000/iq2000.c (iq2000_va_start): Update.
9172 (compute_frame_size): Update.
9173 * config/mt/mt.c (mt_compute_frame_size): Update.
9174 * config/mn10300/mn10300.c (expand_prologue): Update.
9175 (expand_epilogue): Update.
9176 (initial_offset): Update.
9177 (mn10300_builtin_saveregs):
9178 * config/mn10300/mn10300.md (return expander): Update.
9179 * config/ia64/ia64.c (ia64_compute_frame_size): Update.
9180 (ia64_initial_elimination_offset): Update.
9181 (ia64_initial_elimination_offset): Update.
9182 (ia64_expand_prologue): Update.
9183 * config/m68k/m68k.md (return expander): Update.
9184 * config/rs6000/rs6000.c (rs6000_va_start): Update.
9185 (rs6000_stack_info): Update.
9186 * config/mcore/mcore.c (layout_mcore_frame): Update.
9187 (mcore_expand_prolog): Update.
9188 * config/arc/arc.c (arc_compute_frame_size): Update.
9189 * config/score/score3.c (score3_compute_frame_size): Update.
9190 * config/score/score7.c (score7_compute_frame_size): Update.
9191 * config/arm/arm.c (use_return_insn): Update.
9192 (thumb_find_work_register): Update.
9193 (arm_compute_save_reg_mask): Update.
9194 (arm_output_function_prologue): Update.
9195 (arm_output_epilogue): Update.
9196 (arm_size_return_regs): Update.
9197 (arm_get_frame_offsets): Update.
9198 (arm_expand_prologue): Update.
9199 (thumb_exit): Update.
9200 (thumb_unexpanded_epilogue): Update.
9201 (thumb1_output_function_prologue): Update.
9202 * config/pa/pa.md (return expander): Update.
9203 * config/pa/pa.c (compute_frame_size): Update.
9204 (hppa_builtin_saveregs): Update.
9205 * config/mips/mips.c (mips_va_start): Update.
9206 (mips16_build_function_stub): Update.
9207 (mips_compute_frame_info): Update.
9208 (mips_restore_gp): Update.
9209 (mips_output_function_prologue): Update.
9210 (mips_expand_prologue): Update.
9211 * config/v850/v850.c (compute_frame_size): Update.
9212 (expand_prologue): * config/mmix/mmix.c (along): update.
9213 (mmix_initial_elimination_offset): update.
9214 (mmix_reorg): update.
9215 (mmix_use_simple_return): update.
9216 (mmix_expand_prologue): update.
9217 (mmix_expand_epilogue): Update.
9218 * config/bfin/bfin.c (bfin_initial_elimination_offset): Update.
9219 (emit_link_insn): Update.
9221 2008-04-08 Anatoly Sokolov <aesok@post.ru>
9223 * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): Define
9224 __AVR_HAVE_EIJMP_EICALL__ macro if device have EIJMP and EICALL
9226 * config/avr/avr.c (avr_mcu_types): Set AVR31 architecture for
9229 2008-04-07 Jan Hubicka <jh@suse.cz>
9231 * function.h (rtl): Rename to x_rtl.
9233 (return_label, naked_return_label, stack_slot_list, parm_birth_insn,
9234 frame_offset, stack_check_probe_note, arg_pointer_save_area,
9235 used_temp_slots avail_temp_slots, temp_slot_level,
9236 nonlocal_goto_handler_labels): Update accesstors.
9237 (rtl): New global variable.
9238 (struct function): Move some fileds to rtl_data.
9239 (get_arg_pointer_save_area): Update prototype.
9240 * builtins.c (expand_builtin_setjmp_receiver): Update call of
9241 get_arg_pointer_save_area.
9242 * expr.c (init_expr): Update
9243 * function.c (get_frame_size): Update
9244 (assign_stack_local): Update
9245 (expand_function_end): Update.
9246 (get_art_pointer_save_area): Update
9248 * emit-rtl.c (rtl): Declare.
9249 (regno_reg_rtx): Declare.
9250 (first_insn, last_insn, cur_insn_uid, last_location, first_label_num):
9252 (gen_reg_rtx): Update.
9253 * varasm.c (n_deferred_constatns): Update accestor.
9254 (init_varasm_status): Do not allocate varasm_status.
9255 (force_const_mem, get_pool_size, output_constant_pool): Update.
9256 * stmt.c (force_label_rtx): Do not use x_ prefixes.
9257 (expand_nl_goto_receiver): Update get_arg_pointer_save_area.
9258 * m32c/m32.c (m32c_leaf_function_p, m32c_function_needs_enter): Update.
9259 * sparc/sparc.h (INIT_EXPANDERS): Update.
9260 * ia64/ia64.h (INIT_EXPANDERS): Update.
9262 2008-04-07 James E. Wilson <wilson@tuliptree.org>
9264 * reload.c (push_secondary_reload): Add missing break to for loop.
9266 2008-04-07 Peter Bergner <bergner@vnet.ibm.com>
9268 PR middle-end/PR28690
9269 * rtlanal.c: Update copyright years.
9270 (commutative_operand_precedence): Give SYMBOL_REF's the same precedence
9271 as REG_POINTER and MEM_POINTER operands.
9272 * emit-rtl.c (gen_reg_rtx_and_attrs): New function.
9273 (set_reg_attrs_from_value): Call mark_reg_pointer as appropriate.
9274 * rtl.h (gen_reg_rtx_and_attrs): Add prototype for new function.
9275 * gcse.c: Update copyright years.
9276 (pre_delete): Call gen_reg_rtx_and_attrs.
9277 (hoist_code): Likewise.
9278 (build_store_vectors): Likewise.
9279 (delete_store): Likewise.
9280 * loop-invariant.c (move_invariant_reg): Likewise.
9281 Update copyright years.
9283 2008-04-07 Uros Bizjak <ubizjak@gmail.com>
9285 * config/i386/i386.md ("*sse_prologue_save_insn"): Use braced output
9286 control string instead of quoted.
9288 2008-04-07 Kenneth Zadeck <zadeck@naturalbridge.com>
9290 * doc/rtl.texi: Rewrite of subreg section.
9292 2008-04-07 Kai Tietz <kai.tietz@onevision.com>
9295 * config/i386/i386.c (legitimize_pic_address): Add treating
9296 of dllimport SYM_REF's.
9297 (legitimize_dllimport_symbol): Add prototype.
9299 2008-04-07 Eric Botcazou <ebotcazou@adacore.com>
9301 * fold-const.c (fold) <ARRAY_REF>: New case. Try to fold constant
9302 reference in constructor with non self-referential type.
9304 2008-04-07 Eric Botcazou <ebotcazou@adacore.com>
9306 Removal of Return with Depressed Stack Pointer support
9307 * tree.h (TYPE_RETURNS_STACK_DEPRESSED): Delete.
9308 (ECF_SP_DEPRESSED): Likewise.
9309 (ECF_LIBCALL_BLOCK, ECF_NOVOPS): Adjust.
9310 * calls.c (emit_call_1): Do not test ECF_SP_DEPRESSED.
9311 (flags_from_decl_or_type): Do not test TYPE_RETURNS_STACK_DEPRESSED.
9312 (expand_call): Do not test ECF_SP_DEPRESSED.
9313 * dse.c (dse_step0): Do not test TYPE_RETURNS_STACK_DEPRESSED.
9314 * function.c (keep_stack_depressed): Delete.
9315 (handle_epilogue_set): Likewise.
9316 (update_epilogue_consts): Likewise.
9317 (emit_equiv_load): Likewise.
9318 (thread_prologue_and_epilogue_insns): Remove support for Return with
9319 Depressed Stack Pointer.
9320 * print-tree.c (print_node): Do not test TYPE_RETURNS_STACK_DEPRESSED.
9322 2008-04-06 Richard Guenther <rguenther@suse.de>
9324 PR tree-optimization/35400
9325 * tree-vrp.c (vrp_evaluate_conditional): Only query value-range
9326 information from SSA_NAMEs.
9328 2008-04-06 Anatoly Sokolov <aesok@post.ru>
9330 * config/avr/avr.h (avr_mega_p): Remove declaration.
9331 (AVR_MEGA): Remove macro.
9332 * config/avr/avr.c (avr_mega_p): Remove variable.
9333 (avr_override_options): Remove inicializion of avr_mega_p.
9334 Use AVR_HAVE_JMP_CALL instead of AVR_MEGA.
9335 (print_operand): Use AVR_HAVE_JMP_CALL instead of AVR_MEGA.
9336 (avr_jump_mode): (Ditto.).
9337 (avr_output_progmem_section_asm_op): (Ditto.).
9338 (avr_asm_init_sections): (Ditto.).
9339 (avr_asm_init_sections): (Ditto.).
9340 (avr_rtx_costs): (Ditto.).
9341 * config/avr/avr.md: (Ditto.).
9342 * config/avr/avr.h: Use '__AVR_HAVE_JMP_CALL__' instead of
9345 2008-04-06 Richard Guenther <rguenther@suse.de>
9347 PR tree-optimization/35842
9348 * tree-ssa-address.c (fixed_address_object_p): Adjust to match
9349 is_gimple_invariant_address.
9351 2008-04-06 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
9353 * gcc.c (default_compilers): Sync Fortran extensions list with
9354 that in fortran/lang-specs.h.
9355 * doc/invoke.texi: Likewise.
9356 * dbxout.c (get_lang_number): Use "GNU Fortran" in "GNU F95".
9357 * dwarf2out.c (gen_compile_unit_die): Likewise.
9359 2008-04-06 Tom G. Christensen <tgc@jupiterrise.com>
9361 * gthr-posix95.h (__gthread_cond_wait_recursive): Add missing &.
9363 2008-04-05 Uros Bizjak <ubizjak@gmail.com>
9366 * config/i386/i386.c (ix86_function_regparm): Error if regparm(3)
9367 attribute is used for nested functions.
9369 2008-04-05 Jan Hubicka <jh@suse.cz>
9371 * emit-rtl.c (init_emit): xcalloc regno_pointer_align.
9373 * tree-dump.c (dump_enable_all): Remove prototype; do not accept
9375 (dump_files): Update.
9376 (enable_rtl_dump_file): Do not accept letter argument.
9377 * tree-pass.h (dump_file_info): Remove letter argument.
9378 * toplev.c (decode_d_option): Update -da handling.
9379 * toplev.h (enable_rtl_dump_file): Update prototype.
9380 * passes.c (register_one_dump_file): Do not accept IPA argument; work
9381 it out based on pass type.
9382 (register_dump_files_1): Likewise.
9383 (init_optimization_passes): Update register_one_dump_file calls.
9384 (execute_one_pass): Sanity check that IPA passes are called at IPA
9385 level and RTL passes at RTL level.
9386 (execute_pass_list): IPA pass can not be after or subpass of
9388 (execute_ipa_pass_list): Handle IPA subpasses of IPA subpasses and
9389 disallov RTL subpasses of IPA subpasses.
9391 2008-04-05 Ben Elliston <bje@au.ibm.com>
9393 * tree-cfg.c (need_fake_edge_p): Return false for calls to
9394 builtins that return exactly once and do not throw. Cache call to
9397 2008-04-04 Andy Hutchinson <hutchinsonandy@aim.com>
9399 PR rtl-optimization/34916
9401 * combine.c (create_log_links): Do not create duplicate LOG_LINKS
9402 between instruction pairs.
9404 2008-04-04 Naveen.H.S <naveen.hs@kpitcummins.com>
9406 * doc/invoke.texi: Document -mbitops for SH.
9407 * config/sh/constraints.md (K03, K12, Sbv, Sbw): New constraints.
9408 * config/sh/predicates.md (bitwise_memory_operand): New predicate.
9409 * config/sh/sh.c (print_operand): Add %t operand code.
9410 * config/sh/sh.h (GO_IF_LEGITIMATE_INDEX): Add condition for SH2A.
9411 * config/sh/sh.md (*iorsi3_compact): Fix condition for SH2A.
9412 (extendqisi2_compact): Add the alternative for SH2A 4-byte mov.b.
9413 (extendqihi2): Likewise.
9414 (movqi_i): Likewise.
9415 (insv): Use bset, bclr and bst instructions for SH2A if possible.
9416 (extv): Use bld instruction for SH2A if possible.
9418 (bclr_m2a, bclrmem_m2a, bset_m2a, bsetmem_m2a, bst_m2a, bld_m2a,
9419 bldsign_m2a, bld_reg, *bld_regqi, band_m2a, bandreg_m2a,
9420 bor_m2a, borreg_m2a, bxor_m2a, bxorreg_m2a): New insns.
9421 (bset.b, bclr.b): Define peepholes.
9422 * config/sh/sh.opt (mbitops): New option.
9424 2008-04-04 Janis Johnson <janis187@us.ibm.com>
9427 * config/rs6000/rs6000.c (rs6000_check_sdmode): Handle indirect ref
9428 and view convert expression.
9430 2008-04-04 Jakub Jelinek <jakub@redhat.com>
9433 * tree-cfg.c (remove_useless_stmts_1): Handle OMP_* containers.
9435 2008-04-04 H.J. Lu <hongjiu.lu@intel.com>
9437 * config.gcc (extra_headers): Add wmmintrin.h for x86 and x86-64.
9439 * config/i386/cpuid.h (bit_AES): New.
9440 (bit_PCLMUL): Likewise.
9442 * config/i386/i386.c (pta_flags): Add PTA_AES and PTA_PCLMUL.
9443 (override_options): Handle PTA_AES and PTA_PCLMUL. Enable
9444 SSE2 if AES or PCLMUL is enabled.
9445 (ix86_builtins): Add IX86_BUILTIN_AESENC128,
9446 IX86_BUILTIN_AESENCLAST128, IX86_BUILTIN_AESDEC128,
9447 IX86_BUILTIN_AESDECLAST128, IX86_BUILTIN_AESIMC128,
9448 IX86_BUILTIN_AESKEYGENASSIST128 and IX86_BUILTIN_PCLMULQDQ128.
9449 (bdesc_sse_3arg): Add IX86_BUILTIN_PCLMULQDQ128.
9450 (bdesc_2arg): Add IX86_BUILTIN_AESENC128,
9451 IX86_BUILTIN_AESENCLAST128, IX86_BUILTIN_AESDEC128,
9452 IX86_BUILTIN_AESDECLAST128 and IX86_BUILTIN_AESKEYGENASSIST128.
9453 (bdesc_1arg): Add IX86_BUILTIN_AESIMC128.
9454 (ix86_init_mmx_sse_builtins): Define __builtin_ia32_aesenc128,
9455 __builtin_ia32_aesenclast128, __builtin_ia32_aesdec128,
9456 __builtin_ia32_aesdeclast128,__builtin_ia32_aesimc128,
9457 __builtin_ia32_aeskeygenassist128 and
9458 __builtin_ia32_pclmulqdq128.
9459 * config/i386/i386.c (ix86_expand_binop_imm_builtin): New.
9460 (ix86_expand_builtin): Use it for IX86_BUILTIN_PSLLDQI128 and
9461 IX86_BUILTIN_PSRLDQI128. Handle IX86_BUILTIN_AESKEYGENASSIST128.
9463 * config/i386/i386.h (TARGET_AES): New.
9464 (TARGET_PCLMUL): Likewise.
9465 (TARGET_CPU_CPP_BUILTINS): Handle TARGET_AES and TARGET_PCLMUL.
9467 * config/i386/i386.md (UNSPEC_AESENC): New.
9468 (UNSPEC_AESENCLAST): Likewise.
9469 (UNSPEC_AESDEC): Likewise.
9470 (UNSPEC_AESDECLAST): Likewise.
9471 (UNSPEC_AESIMC): Likewise.
9472 (UNSPEC_AESKEYGENASSIST): Likewise.
9473 (UNSPEC_PCLMUL): Likewise.
9475 * config/i386/i386.opt (maes): New.
9476 (mpclmul): Likewise.
9478 * config/i386/sse.md (aesenc): New pattern.
9479 (aesenclast): Likewise.
9481 (aesdeclast): Likewise.
9483 (aeskeygenassist): Likewise.
9484 (pclmulqdq): Likewise.
9486 * config/i386/wmmintrin.h: New.
9488 * doc/extend.texi: Document AES and PCLMUL built-in function.
9490 * doc/invoke.texi: Document -maes and -mpclmul.
9492 2008-04-04 Paolo Bonzini <bonzini@gnu.org>
9494 * function.c (free_after_parsing): Replace with
9495 cxx_push_function_context from C++ front-end.
9496 (allocate_struct_function): Don't call langhook.
9497 * langhooks.h (struct lang_hooks_for_functions): Delete.
9498 (struct lang_hooks): Add back missing_noreturn_ok_p here, delete
9500 * langhooks-def.h (LANG_HOOKS_MISSING_NORETURN_OK_P): Add.
9501 (LANG_HOOKS_FUNCTION_INIT, LANG_HOOKS_FUNCTION_FINAL,
9502 LANG_HOOKS_FUNCTION_MISSING_NORETURN_OK_P,
9503 LANG_HOOKS_FUNCTION_INITIALIZER): Delete.
9504 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_MISSING_NORETURN_OK_P,
9505 remove LANG_HOOKS_FUNCTION_INITIALIZER.
9506 * tree-cfg.c: Adjust call to missing_noreturn_ok_p langhook.
9508 * c-objc-common.h (LANG_HOOKS_FUNCTION_MISSING_NORETURN_OK_P):
9509 Rename to LANG_HOOKS_MISSING_NORETURN_OK_P.
9511 2008-04-04 Jakub Jelinek <jakub@redhat.com>
9514 * c-pretty-print.c (pp_c_initializer_list): Handle CONSTRUCTOR
9517 2008-04-04 Richard Guenther <rguenther@suse.de>
9520 * fold-const.c (optimize_minmax_comparison): Use the correct
9521 type for the constant in the simplified comparison.
9523 2008-04-04 Zuxy Meng <zuxy.meng@gmail.com>
9525 * config/i386/driver-i386.c (describe_cache): Add l2_sizekb argument.
9526 Pass L2 size as "--param l2-cache-size" to the compiler.
9527 (decode_l2_cache): New function to decode L2 cache parameters using
9528 0x8000006 extended cpuid function.
9529 (detect_caches_amd): Determine parameters of L2 cache using
9530 decode_l2_caches function.
9531 (decode_caches_intel): Decode L2 cache parameters.
9532 (detect_caches_intel): Determine L2 cache parameters using
9533 decode_caches_intel and decode_l2_caches functions.
9535 2008-04-03 Bob Wilson <bob.wilson@acm.org>
9537 * config/xtensa/xtensa.c (xtensa_secondary_reload_class): Use a
9538 secondary input reload for subword loads from the constant pool.
9540 2008-04-03 Janis Johnson <janis187@us.ibm.com>
9543 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use integer
9544 constants of the appropriate size for runtime calculations.
9547 * dfp.c (decimal_from_decnumber): Retain trailing zeroes for
9548 decimal-float literal constant zero.
9550 2008-04-03 Jakub Jelinek <jakub@redhat.com>
9553 * c-parser.c (c_parser_omp_atomic): Call
9554 default_function_array_conversion on the RHS.
9557 * omp-low.c (scan_sharing_clauses) <case OMP_CLAUSE_SHARED>: Don't
9558 call is_variable_sized if decl has incomplete type.
9560 2008-04-03 H.J. Lu <hongjiu.lu@intel.com>
9562 * config/i386/i386-protos.h (ix86_aligned_p): Removed.
9564 2008-04-03 Adam Nemet <anemet@caviumnetworks.com>
9566 * config/mips/mips.md (any_gt, any_ge, any_lt, any_le): New code
9568 (u): Add attribute values for gt, gtu, ge, geu, lt, ltu, le and leu.
9569 (sgt<u>): Merge sgt and sgtu into new expander.
9570 (sgt, sgtu): Remove expanders.
9571 (*sgt<u>_<mode>): Merge *sgt_<mode> and *sgtu_<mode> into new pattern.
9572 (*sgt_<mode>, *sgtu_<mode>): Remove patterns.
9573 (*sgt<u>_<mode>_mips16): Merge *sgt_<mode>_mips16 and
9574 *sgtu_<mode>_mips16 into new pattern.
9575 (*sgt_<mode>_mips16, *sgtu_<mode>_mips16): Remove patterns.
9576 (sge<u>): Merge sge and sgeu into new expander.
9577 (sge, sgeu): Remove expanders.
9578 (*sge<u>_<mode>): Merge *sge_<mode> and second *sge_<mode> into
9580 (*sge_<mode>, second *sge_<mode>): Remove patterns.
9581 (slt<u>): Merge slt and sltu into new expander.
9582 (slt, sltu): Remove expanders.
9583 (*slt<u>_<mode>): Merge *slt_<mode> and *sltu_<mode> into new pattern.
9584 (*slt_<mode>, *sltu_<mode>): Remove patterns.
9585 (*slt<u>_<mode>_mips16): Merge *slt_<mode>_mips16 and
9586 *sltu_<mode>_mips16 into new pattern.
9587 (*slt_<mode>_mips16, *sltu_<mode>_mips16): Remove patterns.
9588 (sle<u>): Merge sle and sleu into new expander.
9589 (sle, sleu): Remove expanders.
9590 (*sle<u>_<mode>): Merge *sle_<mode> and *sleu_<mode> into new pattern.
9591 (*sle_<mode>, *sleu_<mode>): Remove patterns.
9592 (*sle<u>_<mode>_mips16): Merge *sle_<mode>_mips16 and
9593 *sleu_<mode>_mips16 into new pattern.
9594 (*sle_<mode>_mips16, *sleu_<mode>_mips16): Remove patterns.
9596 2008-04-03 Jan Hubicka <jh@suse.cz>
9598 PR tree-optimization/35795
9599 * alpha/alpha.c (alpha_output_mi_thunk_osf): Free after compilation.
9600 * sparc/sparc.c (sparc_output_mi_thunk): Likewise.
9601 * ia64/ia64.c (ia64_output_mi_thunk): Likewise.
9602 * m68k/m68k.c (m68k_output_mi_thunk): Likewise.
9603 * score/score3.c (score3_output_mi_thunk): Likewise.
9604 * score/score7.c (score7_output_mi_thunk): Likewise.
9605 * mips/mips.c (mips_output_mi_thunk): Likewise.
9607 2008-04-03 Richard Guenther <rguenther@suse.de>
9609 * tree-vrp.c (extract_range_from_unary_expr): Handle all
9610 conversions. Simplify code.
9612 2008-04-03 Kaz Kojima <kkojima@gcc.gnu.org>
9614 * config/sh/sh.c (sh_output_mi_thunk): Free cfun.
9616 2008-04-03 Tom Tromey <tromey@redhat.com>
9617 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9619 * config/m68k/t-uclinux (generated_files): Add sysroot-suffix.h.
9620 * config/bfin/t-bfin-linux (generated_files): Add
9621 linux-sysroot-suffix.h.
9622 * doc/install.texi (Prerequisites): Require make 3.80.
9623 * doc/sourcebuild.texi (Front End Directory): Document new
9625 * Makefile.in (generated_files): New variable.
9626 (ALL_HOST_OBJS): New variable.
9627 ($(ALL_HOST_OBJS)): New target.
9629 2008-04-03 Paolo Bonzini <bonzini@gnu.org>
9631 * tree-inline.c (copy_generic_body, copy_decl_no_change): Export.
9632 (remap_block): Call id->transform_lang_insert_block instead
9634 (optimize_inline_calls, unsave_expr_now, tree_function_versioning):
9635 Set id.transform_lang_insert_block to NULL.
9636 (clone_body): Move to cp/optimize.c
9637 * tree-inline.h (struct copy_body_data): Change
9638 transform_lang_insert_block to function pointer.
9639 (copy_generic_body, copy_decl_no_change): Export.
9640 * langhooks.h (struct lang_hooks_for_decls): Kill insert_block.
9641 * langhooks-def.h (LANG_HOOKS_INSERT_BLOCK): Kill.
9642 (LANG_HOOKS_DECLS): Remove LANG_HOOKS_INSERT_BLOCK.
9644 * c-tree.h (insert_block): Kill.
9645 * c-decl.c (insert_block): Kill.
9647 2008-04-03 Paolo Bonzini <bonzini@gnu.org>
9649 * c-objc-common.h (LANG_HOOKS_FUNCTION_ENTER_NESTED,
9650 LANG_HOOKS_FUNCTION_LEAVE_NESTED): Delete.
9651 * c-tree.h (c_push_function_context, c_pop_function_context): Remove
9653 * c-decl.c (c_push_function_context, c_pop_function_context): Remove
9654 argument, call {push,pop}_function_context from here.
9655 * c-parser.c: Use c_{push,pop}_function_context.
9657 * function.c (push_function_context_to): Move meat ...
9658 (push_function_context): ... here. Simplify.
9659 * function.c (pop_function_context_from): Move meat ...
9660 (pop_function_context): ... here. Simplify.
9661 * langhooks.h (struct lang_hooks_for_functions): Remove enter_nested,
9663 * langhooks-def.h (LANG_HOOKS_FUNCTION_ENTER_NESTED,
9664 LANG_HOOKS_FUNCTION_LEAVE_NESTED): Delete.
9665 (LANG_HOOKS_FUNCTION_INITIALIZER): Delete them from here.
9666 * tree.h (push_function_context_to, pop_function_context_from): Remove.
9668 2008-04-03 Ben Elliston <bje@au.ibm.com>
9670 * expmed.c (extract_force_align_mem_bit_field): Remove.
9672 2008-04-03 Richard Guenther <rguenther@suse.de>
9675 * expr.h (try_casesi): Adjust prototype.
9676 * expr.c (try_casesi): Take fallback label as extra parameter.
9677 Use that for gen_casesi if default_label is NULL.
9678 * stmt.c (expand_case): Pass fallback label to try_casesi,
9679 make sure to fill gaps with a fallback label if default_label
9682 2008-04-03 Dominique d'Humieres <dominiq@lps.ens.fr>
9685 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Free cfun.
9687 2008-04-03 Ben Elliston <bje@au.ibm.com>
9689 * expmed.c (extract_split_bit_field): Remove if (0) code.
9690 * tree-ssa-structalias.c (do_sd_constraint): Likewise.
9691 (do_ds_constraint): Likewise.
9693 2008-04-02 Joseph Myers <joseph@codesourcery.com>
9695 * doc/cppopts.texi (-dU): Document.
9696 * c-common.h (flag_dump_macros): Update comment.
9697 * c-opts.c (handle_OPT_d): Handle -dU.
9698 * c-ppoutput.c (macro_queue, define_queue, undef_queue,
9699 dump_queued_macros, cb_used_define, cb_used_undef): New.
9700 (init_pp_output): Handle -dU.
9701 (cb_line_change): Call dump_queued_macros.
9702 * toplev.c (decode_d_option): Accept -dU as preprocessor option.
9704 2008-04-02 Anatoly Sokolov <aesok@post.ru>
9706 * config/avr/predicates.md (io_address_operand): New predicate.
9707 * config/avr/avr-protos.h (avr_io_address_p): Remove declaration.
9708 * config/avr/avr.c (avr_io_address_p): Remove function.
9709 (out_movqi_r_mr): Use 'io_address_operand' predicate instead of
9710 'avr_io_address_p' function.
9711 (out_movhi_r_mr): (Ditto.).
9712 (out_movqi_mr_r): (Ditto.).
9713 (out_movhi_mr_r): (Ditto.).
9714 (avr_address_cost): (Ditto.).
9716 2008-04-02 Uros Bizjak <ubizjak@gmail.com>
9718 * config/i386/i386.md (*float<SSEMODEI24:mode><X87MODEF:mode>2_1):
9719 Emit gen_floatdi<X87MODEF:mode>2_i387_with_xmm for DImode values
9720 in 32bit mode when XMM registers are available to avoid store
9722 (floatdi<X87MODEF:mode>2_i387_with_xmm): New insn pattern and
9723 corresponding post-reload splitters.
9725 2008-04-02 H.J. Lu <hongjiu.lu@intel.com>
9727 * config/i386/i386.c (bdesc_sse_3arg): Add __builtin_ia32_shufps
9728 and __builtin_ia32_shufpd. Provide __builtin_ia32_roundsd and
9729 __builtin_ia32_roundss.
9730 (ix86_init_mmx_sse_builtins): Remove __builtin_ia32_shufps,
9731 __builtin_ia32_shufpd, __builtin_ia32_roundsd and
9732 __builtin_ia32_roundss.
9733 (ix86_expand_builtin): Don't handle IX86_BUILTIN_SHUFPS and
9734 IX86_BUILTIN_SHUFPD here.
9736 2008-04-02 H.J. Lu <hongjiu.lu@intel.com>
9738 * config/i386/i386.md (plogic): New.
9739 (plogicprefix): Likewise.
9741 * config/i386/mmx.md (mmx_<code><mode>3): New.
9742 (mmx_and<mode>3): Removed.
9743 (mmx_ior<mode>3): Likewise.
9744 (mmx_xor<mode>3): Likewise.
9746 * config/i386/sse.md (<code><mode>3): New.
9747 (*<code><mode>3): Likewise.
9748 (*<code><mode>3): Likewise.
9749 (<code><mode>3): Likewise.
9750 (*sse_<code><mode>3): Likewise.
9751 (*sse2_<code><mode>3): Likewise.
9752 (<code>tf3): Likewise.
9753 (*<code>tf3): Likewise.
9754 (and<mode>3): Likewise.
9755 (*and<mode>3): Likewise.
9756 (ior<mode>3): Removed.
9757 (*ior<mode>3): Likewise.
9758 (xor<mode>3): Likewise.
9759 (*xor<mode>3): Likewise.
9760 (*and<mode>3): Likewise.
9761 (*ior<mode>3): Likewise.
9762 (*xor<mode>3): Likewise.
9763 (and<mode>3): Likewise.
9764 (*sse_and<mode>3): Likewise.
9765 (*sse2_and<mode>3): Likewise.
9767 (*andtf3): Likewise.
9768 (ior<mode>3): Likewise.
9769 (*sse_ior<mode>3): Likewise.
9770 (*sse2_ior<mode>3): Likewise.
9772 (*iortf3): Likewise.
9773 (xor<mode>3): Likewise.
9774 (*sse_xor<mode>3): Likewise.
9775 (*sse2_xor<mode>3): Likewise.
9777 (*xortf3): Likewise.
9779 2008-04-02 Richard Guenther <rguenther@suse.de>
9781 PR tree-optimization/14495
9782 PR tree-optimization/34793
9783 * tree-vrp.c (struct switch_update): New structure.
9784 (to_remove_edges, to_update_switch_stmts): New VECs.
9785 (simplify_switch_using_ranges): New function. Remove not taken
9786 case labels and edges.
9787 (simplify_stmt_using_ranges): Call it.
9788 (identify_jump_threads): Mark edges we have queued for removal
9789 so we don't thread them.
9790 (execute_vrp): Remove edges queued for removal, update SWITCH_STMT
9792 * tree-cfg.c (group_case_labels): Deal with missing default label.
9793 (tree_verify_flow_info): Allow missing default label.
9794 * stmt.c (emit_case_bit_tests): Deal with NULL default_label.
9795 (emit_case_nodes): Likewise.
9796 (expand_case): Do not rely on the default label to be present.
9797 * expr.c (try_casesi): Deal with NULL default_label.
9798 (do_tablejump): Likewise.
9800 2008-04-02 Richard Guenther <rguenther@suse.de>
9802 PR tree-optimization/14495
9803 * tree-vrp.c (vrp_visit_cond_stmt): Do not handle
9804 SWITCH_EXPR here ...
9805 (vrp_visit_switch_stmt): ... but here (new function).
9806 (find_case_label_index): New helper function.
9807 (vrp_visit_stmt): Dispatch to vrp_visit_switch_stmt.
9809 2008-04-02 Paolo Bonzini <bonzini@gnu.org>
9811 * fwprop.c: Fix ISO-C99ism.
9813 2008-04-02 Paolo Bonzini <bonzini@gnu.org>
9816 * Makefile.in (objdir): Set it here.
9817 * configure.ac: Not here. Find dynamic linker characteristics.
9818 * exec-tool.in: Use them.
9819 * aclocal.m4: Regenerate.
9820 * configure: Regenerate.
9822 2008-04-02 Paolo Bonzini <bonzini@gnu.org>
9824 * expr.c (expand_var): Delete it.
9825 * expr.h (expand_var): Delete prototype.
9826 * function.c (expand_function_start): Use expand_decl instead.
9827 * cfgexpand.c (expand_one_static_var, expand_one_var): Don't call
9830 2008-04-02 Andy Hutchinson <hutchinsonamdy@aim.com>
9832 PR rtl-optimization/35542
9833 * fwprop.c (forward_propagate_and_simplify): Replace
9834 loc_reg_mentioned_in_p with reg_mentioned_p.
9836 2008-04-02 Paolo Bonzini <bonzini@gnu.org>
9838 PR rtl-optimization/35281
9839 * fwprop.c (PR_CAN_APPEAR, PR_HANDLE_MEM): New.
9840 (propagate_rtx_1): Handle PR_HANDLE_MEM.
9841 (propagate_rtx): Pass PR_HANDLE_MEM if appropriate.
9842 (varying_mem_p): Move above propagate_rtx.
9843 (all_uses_available_at): Do not check MEMs.
9845 2008-04-02 Rafael Espindola <espindola@google.com>
9847 * tree-vrp.c (extract_code_and_val_from_cond): Remove.
9848 (register_edge_assert_for_2): Split the cond argument.
9849 (register_edge_assert_for_1): Adjust for the change in
9850 register_edge_assert_for_2.
9851 (register_edge_assert_for): Split the cond argument.
9852 (find_switch_asserts): Adjust for the change in
9853 register_edge_assert_for.
9855 2008-04-02 Kai Tietz <kai.tietz@onevision.com>
9857 * config.gcc: Add for x86_64-*-mingw* the t-crtfm to tbuild.
9858 * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Add 8 byte
9859 offsets for 64-bit mingw.
9860 * config/i386/i386.c (ix86_pass_by_reference): Correct calling
9861 abi for x86_64-pc-mingw.
9863 2008-04-02 Richard Guenther <rguenther@suse.de>
9865 * tree-vrp.c (extract_range_from_assert): Make sure to not
9866 produce range min/max with TREE_OVERFOW set.
9867 If merging a anti-range and a range keep the anti-range if
9868 the range covers all values of the type.
9869 (register_edge_assert_for_2): Only allow sign-changing
9870 conversions in detecting canonical range checks. Also
9871 register an assert for the unsigned name if useful.
9873 PR tree-optimization/35787
9874 * tree-vrp.c (vrp_val_max): New function.
9875 (vrp_val_min): Likewise.
9876 (vrp_val_is_max): Move earlier, use vrp_val_{min,max}.
9877 (vrp_val_is_min): Likewise.
9878 (supports_overflow_infinity): Use vrp_val_{min,max}.
9879 (negative_overflow_infinity): Likewise.
9880 (positive_overflow_infinity): Likewise.
9881 (is_negative_overflow_infinity): Use vrp_val_is_{min,max}.
9882 (is_positive_overflow_infinity): Likewise.
9883 (is_overflow_infinity): Likewise.
9884 (avoid_overflow_infinity): Use vrp_val_{min,max} and
9885 vrp_val_is_{min,max}.
9886 (set_and_canonicalize_value_range): Canonicalize anti-ranges
9887 to ranges if possible. Avoid empty ranges.
9889 2008-04-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9892 * fold-const.c (get_pointer_modulus_and_residue): Return modulus 1 if
9893 the expression is a function address.
9895 2008-04-01 George Helffrich <george@gcc.gnu.org>
9897 PR fortran/35154, fortran/23057
9898 * dbxout.c: Emit .stabs debug info for Fortran COMMON block
9899 variables as base symbol name + offset using N_BCOMM/N_ECOMM.
9900 (is_fortran, dbxout_common_name, dbxout_common_check): New functions.
9901 (dbxout_symbol_location): Transform N_LCSYM to N_GSYM for storage
9903 (dbxout_syms): Check for COMMON-based symbol and wrap in
9904 N_BCOMM/N_ECOMM stab bracket, including as many symbols as possible
9905 in bracket for efficiency.
9907 * dwarf2out.c: Emit DWARF debug info for Fortran COMMON block
9908 using DW_TAG_common_block + member offset.
9909 (add_pubname_string): New function.
9910 (dw_expand_expr): New function to find block name and offset for
9912 (common_check): New function to check whether symbol in Fortran COMMON.
9913 (gen_variable_die): If COMMON, use DW_TAG_common_block.
9915 2008-04-01 Volker Reichelt <v.reichelt@netcologne.de>
9918 * c-format.c (init_dynamic_gfc_info): Ignore invalid locus type.
9920 2008-04-02 Ben Elliston <bje@au.ibm.com>
9922 * config/v850/v850.md (casesi): Remove if (0) code.
9923 * config/i386/uwin.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
9924 * config/alpha/alpha.c (alpha_initialize_trampoline): Likewise.
9926 2008-04-01 Uros Bizjak <ubizjak@gmail.com>
9928 * config/i386/i386.md (rex64suffix): New mode attribute.
9929 (floathi<mode>2): Disable expander for SSE math.
9930 (*floathi<mode>2_1): New insn insn_and_split pattern.
9931 (*floathi<mode>2_i387_with_temp): New macroized instruction pattern and
9932 corresponding post-reload splitters.
9933 (*floathi<mode>2_i387): New macroized insn pattern.
9934 (float<SSEMODEI24:mode><X87MODEF:mode>2): New macroized expander.
9935 (*float<SSEMODEI24:mode><X87MODEF:mode>2_1): New macroized
9936 insn_and_split pattern.
9937 (*floatsi<mode>2_vector_mixed_with_temp, *floatsi<mode>2_vector_mixed):
9938 New macroized instruction patterns and corresponding post-reload
9940 (*floatsi<mode>2_mixed_with_temp): New macroized instruction pattern
9941 and corresponding post-reload splitters.
9942 (*floatsi<mode>2_mixed_interunit, *floatsi<mode>2_mixed_nointerunit):
9943 New macroized instruction patterns.
9944 (*floatsi<mode>2_vector_sse_with_temp, *floatsi<mode>2_vector_sse): New
9945 macroized instruction patterns and corresponding post-reload splitters.
9946 (*floatsi<mode>2_sse_with_temp): New macroized instruction pattern and
9947 corresponding post-reload splitters.
9948 (*floatsi<mode>2_sse_interunit, *floatsi<mode>2_mixed_nointerunit):
9949 New macroized instruction patterns.
9950 (*floatsi<mode>2_i387_with_temp): New macroized instruction pattern and
9951 corresponding post-reload splitters.
9952 (*floatsi<mode>2_i387): New macroized instruction patterns.
9954 2008-04-01 H.J. Lu <hongjiu.lu@intel.com>
9956 * config/i386/i386.md (smaxmin): New.
9957 (umaxmin): Likewise.
9958 (maxminiprefix): Likewise.
9959 (maxminfprefix): Likewise.
9960 (<code><mode>3): Likewise.
9961 (smin<mode>3): Removed.
9962 (smax<mode>3): Likewise.
9964 * config/i386/mmx.md (mmx_<code>v2sf3): New.
9965 (mmx_<code>v4hi3): Likewise.
9966 (mmx_<code>v8qi3): Likewise.
9967 (mmx_smaxv2sf3): Removed.
9968 (mmx_sminv2sf3): Likewise.
9969 (mmx_umaxv8qi3): Likewise.
9970 (mmx_smaxv4hi3): Likewise.
9971 (mmx_uminv8qi3): Likewise.
9972 (mmx_sminv4hi3): Likewise.
9974 * config/i386/sse.md (<addsub><mode>3): New.
9975 (*<addsub><mode>3): Likewise.
9976 (<sse>_vm<addsub><mode>3): Likewise.
9977 (<maxmin><mode>3): Likewise.
9978 (*<maxmin><mode>3_finite): Likewise.
9979 (*<maxmin><mode>3): Likewise.
9980 (<sse>_vm<maxmin><mode>3): Likewise.
9981 (sse3_h<addsub>v4sf3): Likewise.
9982 (sse3_h<addsub>v2df3): Likewise.
9983 (<maxmin>v16qi3): Likewise.
9984 (*<maxmin>v16qi3): Likewise.
9985 (<maxmin>v8hi3): Likewise.
9986 (*<maxmin>v8hi3): Likewise.
9987 (*sse4_1_<maxmin><mode>3): Likewise.
9988 (*sse4_1_<maxmin><mode>3): Likewise.
9989 (add<mode>3): Removed.
9990 (*add<mode>3): Likewise.
9991 (<sse>_vmadd<mode>3): Likewise.
9992 (sub<mode>3): Likewise.
9993 (*sub<mode>3): Likewise.
9994 (<sse>_vmsub<mode>3): Likewise.
9995 (smin<mode>3): Likewise.
9996 (*smin<mode>3_finite): Likewise.
9997 (*smin<mode>3): Likewise.
9998 (<sse>_vmsmin<mode>3): Likewise.
9999 (smax<mode>3): Likewise.
10000 (*smax<mode>3_finite): Likewise.
10001 (*smax<mode>3): Likewise.
10002 (<sse>_vmsmax<mode>3): Likewise.
10003 (sse3_haddv4sf3): Likewise.
10004 (sse3_haddv2df3): Likewise.
10005 (sse3_hsubv4sf3): Likewise.
10006 (sse3_hsubv2df3): Likewise.
10007 (umaxv16qi3): Likewise.
10008 (*umaxv16qi3): Likewise.
10009 (smaxv8hi3): Likewise.
10010 (*smaxv8hi3): Likewise.
10011 (*sse4_1_smax<mode>3): Likewise.
10012 (*sse4_1_umax<mode>3): Likewise.
10013 (uminv16qi3): Likewise.
10014 (*uminv16qi3): Likewise.
10015 (sminv8hi3): Likewise.
10016 (*sminv8hi3): Likewise.
10017 (*sse4_1_smin<mode>3): Likewise.
10018 (*sse4_1_umin<mode>3): Likewise.
10020 2008-04-01 Rafael Espindola <espindola@google.com>
10022 * tree-cfg.c (verify_expr): remove in_phi.
10023 (verify_stmt): Don't call walk_tree with verify_expr. Use
10024 is_gimple_min_invariant instead of is_gimple_val.
10026 2008-04-01 Joseph Myers <joseph@codesourcery.com>
10028 * doc/include/gpl_v3.texi: Update for manpage generation.
10029 * doc/gcc.texi, doc/gccint.texi: Include gpl_v3.texi instead of
10031 * doc/sourcebuild.texi: Document gpl_v3.texi as well as gpl.texi.
10032 * Makefile.in (TEXI_GCC_FILES, TEXI_GCCINT_FILES): Include
10033 gpl_v3.texi instead of gpl.texi.
10036 2008-04-01 Jakub Jelinek <jakub@redhat.com>
10039 * c-pch.c (c_common_read_pch): On error close (fd) resp. fclose (f).
10041 2008-04-01 Rafael Espindola <espindola@google.com>
10043 * tree-vrp.c (extract_code_and_val_from_cond_with_ops): New.
10044 (extract_code_and_val_from_cond): Use
10045 extract_code_and_val_from_cond_with_ops.
10047 2008-04-01 Jan Hubicka <jh@suse.cz>
10049 * function.c (free_after_compilation): Free epilogue_delay_list.
10050 (prepare_function_start): Assert that previous compilation was freed.
10052 2008-04-01 Jan Hubicka <jh@suse.cz>
10053 Jim Wilson <wilson@tuliptree.org>
10054 Andreas Tobler <andreast@gcc.gnu.org>
10056 PR middle-end/35781
10057 * m32c/m32.c (m32c_leaf_function_p, m32c_function_needs_enter): Use
10058 rtl.emit instead cfun->emit.
10059 * sparc/sparc.h (INIT_EXPANDERS): Likewise.
10060 * ia64/ia64.h (INIT_EXPANDERS): Likewise.
10062 2008-04-01 Ben Elliston <bje@au.ibm.com>
10064 * doc/c-tree.texi (Function Basics): Fix grammatical error.
10066 2008-03-31 Seongbae Park <seongbae.park@gmail.com>
10068 * common.opt (fprofile-dir=, fprofile-use=, fprofile-generate=):
10070 (fprofile-use): Add var flag_profile_use
10071 * coverage.c (coverage_begin_output): Do not open a gcno file for
10072 output only if -ftest-coverage is set.
10073 Do not add getpwd() to gcda file path.
10074 (build_gcov_info): Check the new flag
10075 flag_profile_datafile_relative_path.
10076 (coverage_init): Use profile_data_prefix.
10077 Read profile counter only if flag_profile_use is set.
10078 * opts.c (common_handle_option): New option fprofile-use=,
10079 fprofile-dir=, fprofile-generate=.
10080 * toplev.c (profile_data_prefix): New variable definition.
10081 * toplev.h (profile_data_prefix): New declaration.
10082 * doc/invoke.tex (Option Summary, Optimization Options):
10085 2008-03-31 James E. Wilson <wilson@tuliptree.org>
10087 * varasm.c (output_constant_pool_1): In LABEL_REF check,
10088 use tmp consistently.
10091 * config/ia64/div.md (recip_approx_rf): Use UNSPEC not DIV.
10092 * config/ia64/ia64.c (rtx_needs_barrier): Handle
10093 UNSPEC_FR_RECIP_APPROX_RES.
10094 * config/ia64/ia64.md (UNSPEC_FR_RECIP_APPROX_RES): Define.
10096 2008-03-31 Volker Reichelt <v.reichelt@netcologne.de>
10099 * c-decl.c (store_parm_decls_oldstyle): Skip invalid parameters.
10101 2008-03-31 Andrew Pinski <andrew_pinski@playstation.sony.com>
10103 PR middle-end/30186
10104 * fold-const.c (fold_indirect_ref_1): Support accessing non first
10105 element of the vector via a pointer.
10107 2008-03-31 Ian Lance Taylor <iant@google.com>
10109 * tlink.c (scan_linker_output): Look for symbol name in single quotes.
10111 2008-03-31 Jan Hubicka <jh@suse.cz>
10113 * builtins.c (expand_builtin_setjmp_receiver): Update call of
10114 get_arg_pointer_save_area.
10115 * expr.c (init_expr): Just clear out rtl.expr.
10116 * function.c (free_after_compilation): Clear out whole RTL structure.
10117 (get_func_frame_size): Merge into ...
10118 (get_frame_size): ... this one.
10119 (assign_stack_local_1): Merge into ...
10120 (assign_stack_local): ... this one.
10121 (expand_function_end): Update call of get_arg_pointer_save_area.
10122 (get_art_pointer_save_area): Remove cfun argument.
10123 * function.h (emit_status): regno_pointer_align does not need length
10124 attribute. Move x_regno_reg_rtx to ...
10125 (regno_reg_rtx): ... new global array.
10126 (reg_rtx_no, seq_stack, REGNO_POINTER_ALIGN): Update accestors.
10127 (pending_stack_adjust, inhibit_defer_pop, saveregs_value,
10128 apply_args_value, forced_labels, stack_pointer_delta):
10130 (struct varasm_status): Move here from varasm.c
10131 (struct rtl_data): New. Move here some fields from struct function.
10132 (return_label, naked_return_label, stack_slot_list, parm_birth_insn,
10133 frame_offset, stack_check_probe_note, arg_pointer_save_area,
10134 used_temp_slots avail_temp_slots, temp_slot_level,
10135 nonlocal_goto_handler_labels): Update accesstors.
10136 (rtl): New global variable.
10137 (struct function): Move some fileds to rtl_data.
10138 (get_arg_pointer_save_area): Update prototype.
10139 * emit-rtl.c (rtl): Declare.
10140 (regno_reg_rtx): Declare.
10141 (first_insn, last_insn, cur_insn_uid, last_location, first_label_num):
10143 (gen_reg_rtx): Update.
10144 (init_virtual_regs): Do not tate emit_status argument.
10145 (init_emit): Do not allocate emit.
10146 * varasm.c (varasm_statuc): Move to function.h.
10147 (n_deferred_constatns): Update accestor.
10148 (init_varasm_status): Do not allocate varasm_status.
10149 (force_const_mem, get_pool_size, output_constant_pool): Update.
10150 * stmt.c (force_label_rtx): Do not use x_ prefixes.
10151 (expand_nl_goto_receiver): Update get_arg_pointer_save_area.
10153 2008-03-31 Zdenek Dvorak <ook@ucw.cz>
10155 PR rtl-optimization/35729
10156 * loop-invariant.c (check_maybe_invariant): Disallow volatile memory
10159 2008-03-31 H.J. Lu <hongjiu.lu@intel.com>
10162 * config/i386/i386.md (*movti_internal): Emit unaligned SSE
10163 load/store if memory is unaligned.
10164 (*movti_rex64): Likewise.
10166 * config/i386/predicates.md (misaligned_operand): New.
10168 2008-03-31 Andrew Pinski <pinskia@gmail.com>
10171 * tree-ssa-phiopt.c (conditional_replacement): Return early for
10174 2008-03-31 Jan Beulich <jbeulich@novell.com>
10176 * config/ia64/constraints.md: Add 'j' constraint.
10177 * config/ia64/ia64.md (movsi_internal): Add addp4 case.
10178 (movdi_internal): Likewise.
10180 2008-03-30 Volker Reichelt <v.reichelt@netcologne.de>
10183 * c-typeck.c (build_c_cast): Skip invalid fields in unions.
10185 2008-03-30 H.J. Lu <hongjiu.lu@intel.com>
10188 * config/i386/i386.c (ix86_expand_sse_4_operands_builtin): Issue
10189 proper error message for the third argument on blendpd and
10192 * config/i386/sse.md (blendbits): New.
10193 (sse4_1_blendp<ssemodesuffixf2c>): Use it.
10195 2008-03-30 Eric Botcazou <ebotcazou@adacore.com>
10197 * fold-const.c (fold_binary) <BIT_IOR_EXPR>: Add missing conversions.
10199 2008-03-30 Richard Guenther <rguenther@suse.de>
10201 PR middle-end/31023
10202 * fold-const.c (fold_sign_changed_comparison): Do leave
10203 conversions to base-types alone.
10205 2008-03-29 Andrew Pinski <andrew_pinski@playstation.sony.com>
10207 * config/rs6000/rs6000.c (rs6000_stack_info): Don't force saving of
10208 the link register if one altivec register is be saved.
10210 2008-03-30 Ben Elliston <bje@au.ibm.com>
10212 * final.c (final_scan_insn): Remove if (0) code.
10214 2008-03-28 Volker Reichelt <v.reichelt@netcologne.de>
10216 * c-parser.c (c_parser_next_token_is_keyword): Simplify.
10218 2008-03-28 H.J. Lu <hongjiu.lu@intel.com>
10220 * config/i386/sse.md (*and<mode>3): Pass <MODE>mode instead
10221 of V4SFmode to ix86_binary_operator_ok.
10223 2008-03-28 Uros Bizjak <ubizjak@gmail.com>
10225 * config/i386/i386.c (override_options): Initialize
10226 ix86_veclib_handler to ix86_veclibabi_svml when
10227 -mveclibabi=svml is used.
10228 (ix86_veclibabi_svml): New function for SVML ABI style
10229 vectorization support.
10230 * doc/invoke.texi (-mveclibabi) [svml]: Document new target option.
10232 2008-03-28 Rafael Espindola <espindola@google.com>
10234 * fold-const.c (tree_unary_nonnegative_warnv_p): Make it public.
10235 (tree_binary_nonnegative_warnv_p): Make it public.
10236 (tree_single_nonnegative_warnv_p): Make it public.
10237 (tree_invalid_nonnegative_warnv_p): Make it public.
10238 (tree_unary_nonzero_warnv_p): Make it public.
10239 (tree_binary_nonzero_warnv_p): Make it public
10240 (tree_single_nonzero_warnv_p): Make it public.
10241 * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops): New function.
10242 (extract_range_from_binary_expr): Split the expr argument.
10243 (extract_range_from_unary_expr): Split the expr argument.
10244 (extract_range_from_comparison): Split the expr argument.
10245 (extract_range_from_expr): Use the new aux functions.
10246 (vrp_evaluate_conditional_warnv): Use
10247 vrp_evaluate_conditional_warnv_with_ops.
10248 * tree.h (tree_unary_nonzero_warnv_p): Declare.
10249 (tree_binary_nonzero_warnv_p): Declare.
10250 (tree_single_nonzero_warnv_p): Declare.
10251 (tree_expr_nonzero_warnv_p): Declare.
10252 (tree_unary_nonnegative_warnv_p): Declare.
10253 (tree_binary_nonnegative_warnv_p): Declare.
10254 (tree_single_nonnegative_warnv_p): Declare.
10255 (tree_invalid_nonnegative_warnv_p): Declare.
10257 2008-03-28 Richard Guenther <rguenther@suse.de>
10259 PR tree-optimization/30317
10260 PR tree-optimization/30911
10261 PR tree-optimization/34793
10262 * tree-vrp.c (set_and_canonicalize_value_range): New function.
10263 (struct assert_locus_d): New member EXPR.
10264 (register_new_assert_for): Add EXPR parameter to support
10265 ASSERT_EXPR <name, expr OP limit>.
10266 (register_edge_assert_for_1): Adjust callers.
10267 (find_assert_locations): Likewise.
10268 (process_assert_insertions_for): Build condition from expression.
10269 (extract_range_from_assert): Handle ASSERT_EXPRs
10270 of the form ASSERT_EXPR <name, expr OP limit>.
10271 (register_edge_assert_for_2): New helper registering
10272 asserts for comparisons. Recognize range tests of the form
10273 (unsigned)i - CST1 OP CST2.
10274 (register_edge_assert_for_1): Use it.
10275 (register_edge_assert_for): Likewise.
10276 (needs_overflow_infinity): Integer sub-types
10277 do not need overflow infinities.
10278 (vrp_val_is_max): The extreme values of integer sub-types
10279 are those of the base type.
10280 (vrp_val_is_min): Likewise.
10281 * tree.def (ASSERT_EXPR): Document extra allowed conditional
10284 2008-03-28 Nick Clifton <nickc@redhat.com>
10287 * config/mn10300/mn10300.c (mn10300_secondary_reload_class):
10288 Return GENERAL_REGS for stack adjustment reloads.
10290 2008-03-28 Andrew Pinski <andrew_pinski@playstation.sony.com>
10293 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Create a
10294 const_vector when all the vectors are constant.
10296 2008-03-27 Bob Wilson <bob.wilson@acm.org>
10298 * config/xtensa/xtensa.c (gen_float_relational): Handle unordered
10300 * config/xtensa/xtensa.md (any_cond): Add unordered comparisons.
10301 (any_scc_sf): Add uneq, unlt, unle and unordered operators.
10303 (s<code>_sf): Use new scc_sf attribute for opcode names.
10305 2008-03-27 Tom Tromey <tromey@redhat.com>
10307 * doc/sourcebuild.texi, doc/install.texi, configure, aclocal.m4,
10308 configure.ac, Makefile.in, config/t-darwin, config/m32c/t-m32c,
10309 config/spu/t-spu-elf, config/i386/t-interix,
10310 config/i386/t-cygming, config/i386/x-i386, config/i386/t-cygwin,
10311 config/i386/x-darwin, config/i386/x-mingw32,
10312 config/i386/t-netware, config/i386/x-cygwin, config/i386/t-nwld,
10313 config/sh/t-sh, config/sh/t-symbian, config/x-linux,
10314 config/t-sol2, config/x-hpux, config/x-darwin, config/ia64/t-ia64,
10315 config/x-solaris, config/t-vxworks, config/m68k/t-uclinux,
10316 config/rs6000/x-rs6000, config/rs6000/x-darwin64,
10317 config/rs6000/x-darwin, config/rs6000/t-rs6000,
10318 config/score/t-score-elf, config/arm/t-strongarm-pe,
10319 config/arm/t-pe, config/arm/t-arm, config/arm/t-wince-pe,
10320 config/v850/t-v850, config/v850/t-v850e, config/bfin/t-bfin-linux:
10321 Revert automatic dependency patch.
10323 2008-03-27 H.J. Lu <hongjiu.lu@intel.com>
10326 * config/i386/i386.c (ix86_function_arg_boundary): Align
10327 decimal floating point to its natural boundary.
10329 2008-03-27 Richard Guenther <rguenther@suse.de>
10331 PR middle-end/35716
10332 * fold-const.c (fold_comparison): Restrict distinct decl
10333 comparison folding to VAR_DECLs and PARM_DECLs. Do not
10334 solely rely on operand_equal_p.
10336 2008-03-27 Richard Guenther <rguenther@suse.de>
10339 * c-common.c (handle_weak_attribute): Reject combination of
10342 2008-03-27 Richard Guenther <rguenther@suse.de>
10344 PR tree-optimization/32810
10345 * tree-ssa-ccp.c (get_symbol_constant_value): Strip useless
10346 conversions from DECL_INITIAL.
10347 (fold_const_aggregate_ref): Likewise from constructor elements.
10349 2008-03-27 Zdenek Dvorak <ook@ucw.cz>
10351 * tree-affine.h (aff_combination_expand): Declare.
10352 (get_inner_reference_aff): Likewise.
10353 * tree-affine.c (aff_combination_expand): Split out from
10354 tree_to_aff_combination_expand.
10355 (get_inner_reference_aff): New function.
10356 * tree-parloops.c (loop_parallel_p): Free vectorizer info.
10357 * tree-ssa-loop-im.c: Include tree-affine.h and pointer-set.h.
10358 (struct lim_aux_data): sm_done field removed.
10359 (mem_ref_loc_p, mem_ref_locs_p): New types.
10360 (struct mem_ref): Added id, stored, accesses_in_loop,
10361 indep_loop, dep_loop, indep_ref, dep_ref fields.
10362 Removed is_stored, locs and next fields.
10363 (memory_accesses): New variable.
10364 (movement_possibility): Do not allow moving statements
10365 that store to memory.
10366 (outermost_indep_loop, simple_mem_ref_in_stmt, mem_ref_in_stmt):
10368 (determine_max_movement): For statements with memory references,
10369 find the outermost loop in that the reference is independent.
10370 (move_computations_stmt): Mark the virtual operands for renaming.
10371 (memref_free, mem_ref_alloc, mem_ref_locs_alloc, mark_ref_stored,
10372 gather_mem_refs_stmt, gather_mem_refs_in_loops, vtoe_hash, vtoe_eq,
10373 vtoe_free, record_vop_access, get_vop_accesses, get_vop_stores,
10374 add_vop_ref_mapping, create_vop_ref_mapping_loop,
10375 create_vop_ref_mapping, analyze_memory_references,
10376 cannot_overlap_p, mem_refs_may_alias_p, rewrite_mem_ref_loc,
10377 get_all_locs_in_loop, ref_always_accessed_p,
10378 refs_independent_p, record_indep_loop, ref_indep_loop_p_1,
10379 ref_indep_loop_p, can_sm_ref_p, find_refs_for_sm,
10380 store_motion_loop, store_motion): New functions.
10381 (struct vop_to_refs_elt): New type.
10382 (record_mem_ref_loc, free_mem_ref_locs, rewrite_mem_refs,
10383 memref_hash, memref_eq, hoist_memory_references): Rewritten.
10384 (schedule_sm): Replaced by...
10385 (execute_sm): ... this.
10386 (determine_lsm_ref, hoist_memory_references,
10387 loop_suitable_for_sm, gather_mem_refs_stmt, gather_mem_refs,
10388 find_more_ref_vops, free_mem_ref, free_mem_refs,
10389 determine_lsm_loop, determine_lsm): Removed.
10390 (tree_ssa_lim_finalize): Free data structures used by store motion.
10391 (tree_ssa_lim): Call analyze_memory_references. Use
10392 store_motion instead of determine_lsm.
10394 2008-03-27 Paolo Bonzini <bonzini@gnu.org>
10396 * config.cc (m68hc11, m6811, m68hc12, m6812): Add usegas.h,
10397 rename tmake_file to m68hc11/t-m68hc11.
10398 (mcore): Set inhibit_libc to true.
10399 * config.host (alpha*-dec-*vms*): Set extra_programs.
10400 (interix3*): Don't use host_xmake_file.
10401 * configure.ac: Let config.gcc override inhibit_libc.
10402 * configure: Regenerate.
10404 * config/alpha/x-vms (EXTRA_PROGRAMS): Remove.
10405 * config/t-openbsd-thread: Remove commented out lines.
10407 * config/x-interix: Remove.
10409 * config/m68hc11/t-m68hc11-gas: Rename to...
10410 * config/m68hc11/t-m68hc11: ... this. Remove T_CPPFLAGS.
10412 * config/mcore/t-mcore: Remove T_CFLAGS.
10413 * config/mcore/t-mcore-pe: Likewise.
10415 2008-03-27 Paolo Bonzini <bonzini@gnu.org>
10417 * configure.ac: Replace custom __GNU_SOURCE test with
10418 AC_USE_SYSTEM_EXTENSIONS. Move it earlier.
10419 * aclocal.m4: Regenerate.
10420 * configure: Regenerate.
10421 * config.in: Regenerate.
10423 2008-03-27 Richard Guenther <rguenther@suse.de>
10425 * fold-const.c (target.h): Include.
10426 (fold_comparison): Fold comparison of addresses of decls
10427 that bind locally or of constants. Consolidate address folding code.
10428 * tree-vrp.c (operand_less_p): Deal with non-INTEGER_CST
10429 results from fold_binary_to_constant.
10430 (compare_values_warnv): Likewise.
10432 2008-03-27 Andrew Pinski <pinskia@gmail.com>
10434 PR middle-end/35429
10435 * fold-const.c (fold_truthop): Check for integeral types when folding
10436 a == 0 && b == 0 and a != 0 || b != 0 .
10438 2008-03-26 Eric Botcazou <ebotcazou@adacore.com>
10440 * tree.c (get_unwidened): Remove code fiddling with COMPONENT_REF.
10442 2008-03-26 Andreas Schwab <schwab@suse.de>
10444 * doc/invoke.texi: Fix use of @item vs. @itemx.
10446 2008-03-26 Tom Tromey <tromey@redhat.com>
10448 * Makefile.in (build/gensupport.o, build/print-rtl.o,
10449 build/read-rtl.o, build/rtl.o, build/gencondmd.o, build/genattr.o,
10450 build/genattrtab.o, build/genautomata.o, build/gencheck.o,
10451 build/gencodes.o, build/genconditions.o, build/genconfig.o,
10452 build/genconstants.o, build/genemit.o, build/genextract.o,
10453 build/genflags.o, build/genmddeps.o, build/genopinit.o,
10454 build/genoutput.o, build/genpeep.o, build/genrecog.o): Depend on
10457 2008-03-26 Richard Guenther <rguenther@suse.de>
10460 2008-03-26 Richard Guenther <rguenther@suse.de>
10462 * fold-const.c (target.h): Include.
10463 (fold_comparison): Fold comparison of addresses of two decls
10464 that bind locally. Consolidate address folding code.
10466 2008-03-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10468 * builtins.c (expand_builtin_pow, fold_builtin_cabs,
10469 fold_builtin_sqrt, fold_builtin_cbrt, fold_builtin_logarithm,
10470 fold_builtin_hypot, fold_builtin_pow): Remove uses of dconst3,
10471 dconstsqrt2, dconstthird, dconste and/or dconst10.
10472 * config/i386/i386.c (ix86_emit_swsqrtsf): Likewise.
10473 * emit-rtl.c (dconst3, dconst10, dconstm2, dconstthird,
10474 dconstsqrt2, dconste): Delete.
10475 (init_emit_once): Likewise. Simplify initializing dconstm1.
10477 * real.c (get_real_const): New.
10478 * real.h (dconst3, dconst10, dconstm2, dconstthird,
10479 dconstsqrt2, dconste): Delete.
10480 (real_value_const, get_real_const): New.
10482 2008-03-26 H.J. Lu <hongjiu.lu@intel.com>
10484 * config/i386/cygming.h (BIGGEST_ALIGNMENT): Removed.
10486 * config/i386/i386.c (ix86_function_arg_boundary): Check
10487 BIGGEST_ALIGNMENT instead of 128.
10488 (setup_incoming_varargs_64): Likewise.
10490 2008-03-26 Tom Tromey <tromey@redhat.com>
10492 * Makefile.in (DEPFILES): Add missing '/'.
10494 2008-03-26 Richard Guenther <rguenther@suse.de>
10496 * fold-const.c (target.h): Include.
10497 (fold_comparison): Fold comparison of addresses of two decls
10498 that bind locally. Consolidate address folding code.
10500 2008-03-26 Nick Clifton <nickc@redhat.com>
10503 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p): Do
10504 not allow INT+INT as a legitimate addressing mode.
10506 2008-03-26 Richard Guenther <rguenther@suse.de>
10508 * tree-flow.h (widen_bitfield): Remove declaration.
10509 * tree-ssa-ccp.c (visit_assignment): Remove unneeded code.
10510 (widen_bitfield): Remove function.
10511 * tree-ssa-dom.c (record_equivalences_from_stmt): Remove unneeded
10514 2008-03-25 Andrew Pinski <andrew_pinski@playstation.sony.com>
10517 * config/rs6000/rs6000-c.c (rs6000_builtin_type_compatible): Handle
10520 2008-03-25 Richard Sandiford <rsandifo@nildram.co.uk>
10522 PR rtl-optimization/35232
10523 * reload1.c (reg_reloaded_call_part_clobbered): Clarify comment.
10524 (forget_old_reloads_1, forget_marked_reloads): Don't clear
10525 reg_reloaded_call_part_clobbered here.
10526 (reload_regs_reach_end_p): New function.
10527 (reload_reg_rtx_for_input): New variable.
10528 (reload_reg_rtx_for_output): Likewise.
10529 (emit_input_reload_insns): Use reloadreg rather than rl->reg_rtx
10530 when reassigning a pseudo register. Load reloadreg from
10531 reload_reg_rtx_for_input, moving the mode and register
10533 (do_input_reload): ...here. Use the mode-adjusted reg_rtx
10534 instead of the original when deciding whether an input reload
10535 would be a no-op or whether an output reload can be deleted.
10536 (emit_output_reload_insns): Use the mode-adjusted reg_rtx
10537 when setting up new_spill_reg_store. Load it from
10538 reload_reg_rtx_for_output, moving the mode and register
10540 (do_output_reload): ...here. Use the mode-adjusted reg_rtx
10541 instead of the original when deciding whether an output reload
10542 would be a no-op. Do the same when modifying insn notes.
10543 Use rtx_equal_p instead of == to compare the registers.
10544 (inherit_piecemeal_p): Take a mode and two register numbers
10546 (emit_reload_insns): Clear new_spill_reg_store for every hard
10547 register in the reload register. Remove spill registers
10548 from reg_reloaded_valid before considering whether to record
10549 inheritance information for them. Use reload_reg_rtx_for_output
10550 instead of reg_rtx when recording output reloads. Use
10551 reload_reg_rtx_for_input instead of reg_rtx when recording
10552 input reloads. Set or clear reg_reloaded_call_part_clobbered
10553 at the same time as setting reg_reloaded_valid.
10554 (delete_output_reload): Add a new_reload_reg parameter and use it
10555 instead of rld[j].reg_rtx.
10556 (emit_input_reload_insns, do_input_reload, do_output_reload): Adjust
10559 2008-03-25 Tom Tromey <tromey@redhat.com>
10561 * Makefile.in (build/gensupport.o): Depend on insn-modes.h.
10562 (build/genattr.o): Likewise.
10563 (build/genattrtab.o): Likewise.
10564 (build/gencodes.o): Likewise.
10565 (build/genconfig.o): Likewise.
10566 (build/genconstants.o): Likewise.
10567 (build/genemit.o): Likewise.
10568 (build/genextract.o): Likewise.
10569 (build/genflags.o): Likewise.
10571 2008-03-25 Bob Wilson <bob.wilson@acm.org>
10573 * config/xtensa/xtensa.c (xtensa_va_start): Use build_int_cst
10574 instead of size_int for integer types.
10575 (xtensa_gimplify_va_arg_expr): Likewise. Convert index to sizetype
10576 to match type of MINUS_EXPR.
10578 2008-03-25 Tom Tromey <tromey@redhat.com>
10580 * configure: Rebuilt.
10581 * configure.ac (BUILD_DEPMODE): Extract CCDEPMODE from temporary
10584 2008-03-25 Tom Tromey <tromey@redhat.com>
10586 * config/x-solaris (host-solaris.o): Update.
10587 * config/x-linux (host-linux.o): Update.
10588 * config/x-hpux (host-hpux.o): Update.
10589 * config/x-darwin (host-darwin.o): Update.
10590 * config/v850/t-v850e (v850-c.o): Update.
10591 * config/v850/t-v850 (v850-c.o): Update.
10592 * config/t-vxworks (vxworks.o): Update.
10593 * config/t-sol2 (sol2-c.o, sol2.o): Update.
10594 * config/t-darwin (darwin.o, darwin-c.o, darwin-driver.o): Update.
10595 * config/spu/t-spu-elf (spu-c.o): Update.
10597 * config/sh/t-symbian (sh-c.o): Update.
10598 (symbian.o): Update.
10599 * config/sh/t-sh (sh-c.o): Update.
10600 * config/score/t-score-elf (score7.o, score3.o): Update.
10601 * config/rs6000/x-rs6000 (driver-rs6000.o): Update.
10602 * config/rs6000/x-darwin64 (host-ppc64-darwin.o): Update.
10603 * config/rs6000/x-darwin (host-ppc-darwin.o): Update.
10604 * config/rs6000/t-rs6000 (rs6000-c.o): Update.
10605 (rs6000.o): Remove.
10606 * config/m68k/t-uclinux (generated_files): Add sysroot-suffix.h.
10607 * config/m32c/t-m32c (m32c-pragma.o): Update.
10608 * config/ia64/t-ia64 (ia64-c.o): Update.
10609 * config/i386/x-mingw32 (host-mingw32.o): Update.
10610 * config/i386/x-i386 (driver-i386.o): Update.
10611 * config/i386/x-darwin (host-i386-darwin.o): Update.
10612 * config/i386/x-cygwin (host-cygwin.o): Update.
10613 * config/i386/t-nwld (nwld.o): Update.
10614 * config/i386/t-netware (netware.o): Update.
10615 * config/i386/t-interix (winnt.o): Update.
10616 * config/i386/t-cygwin (cygwin1.o, cygwin2.o): Update.
10617 * config/i386/t-cygming (winnt.o, winnt-cxx.o, winnt-stubs.o,
10618 msformat-c.o): Update.
10619 * config/bfin/t-bfin-linux (generated_files): Add
10620 linux-sysroot-suffix.h.
10621 * config/arm/t-wince-pe (pe.o): Update.
10622 * config/arm/t-strongarm-pe (pe.o): Update.
10623 * config/arm/t-pe (pe.o): Update.
10624 * config/arm/t-arm (arm-c.o): Update.
10625 * doc/install.texi (Prerequisites): Require make 3.80.
10626 * Makefile.in: Remove .o targets.
10627 (CCDEPMODE, DEPDIR, depcomp, BUILD_DEPMODE): New variables.
10628 (OBSTACK_H, FIBHEAP_H, PARTITION_H, MD5_H, BCONFIG_H): Remove.
10629 (simple_generated_h, simple_generated_c): Move earlier.
10630 (generated_files): New variable.
10631 (TARGET_H, MACHMODE_H, HOOKS_H, HOSTHOOKS_DEF_H, LANGHOOKS_DEF_H,
10632 TARGET_DEF_H, RTL_BASE_H, RTL_H, PARAMS_H, BUILTINS_DEF, TREE_H,
10633 BASIC_BLOCK_H, GCOV_IO_H, COVERAGE_H, DEMANGLE_H, RECOG_H,
10634 ALIAS_H, EMIT_RTL_H, FLAGS_H, FUNCTION_H, EXPR_H, OPTABS_H,
10635 REGS_H, RA_H, RESOURCE_H, SCHED_INT_H, INTEGRATE_H, CFGLAYOUT_H,
10636 CFGLOOP_H, IPA_UTILS_H, IPA_REFERENCE_H, IPA_TYPE_ESCAPE_H,
10637 CGRAPH_H, DF_H, RESOURCE_H, DDG_H, GCC_H, GGC_H, TIMEVAR_H,
10638 INSN_ATTR_H, C_COMMON_H, C_PRAGMA_H, C_TREE_H, SYSTEM_H,
10639 PREDICT_H, DECNUM_H, MKDEPS_H, SYMTAB_H, TREE_DUMP_H,
10640 TREE_GIMPLE_H, TREE_FLOW_H, TREE_SSA_LIVE_H, PRETTY_PRINT_H,
10641 DIAGNOSTIC_H, C_PRETTY_PRINT_H, SCEV_H, LAMBDA_H, TREE_DATA_REF_H,
10642 VARRAY_H, TREE_INLINE_H, REAL_H, DBGCNT_H, EBIMAP_H): Remove.
10644 (COMPILE.base, COMPILE): New variables.
10645 (%.o): New pattern rule.
10646 (ALL_HOST_OBJS): New variable.
10647 (xgcc$(exeext), cpp$(exeext)): Remove extra version.o.
10648 (dummy-checksum.o, cc1-checksum.o): Remove.
10649 (DRIVER_SHLIB): New variable.
10650 (DRIVER_DEFINES): Use it.
10651 (gencondmd.c): Move out of build/.
10652 (s-conditions): Update.
10653 (BUILDCOMPILE.base, BUILDCOMPILE): New variables.
10654 (ALL_BUILD_OBJS): Likewise.
10655 (build/%.o): Use BUILDCOMPILE.
10656 (build/ggc-none.o, build/ggc-none.o, build/min-insn-modes.o,
10657 build/print-rtl.o, build/read-rtl.o, build/rtl.o, build/vec.o,
10658 build/gencondmd.o, build/genattrtab.o, build/genautomata.o,
10659 build/gencheck.o, build/gencodes.o, build/genconditions.o,
10660 build/genconfig.o, build/genconstants.o, build/genemit.o,
10661 build/genextract.o, build/genflags.o, build/genmddeps.o,
10662 build/genopinit.o, build/genoutput.o, build/genpeep.o,
10663 build/genpreds.o, build/genrecog.o, build/gcov-iov.o,
10664 build/gen-protos.o, build/scan.o, build/fix-header.o,
10665 build/scan-decls.o): Simplify.
10666 (collect2.o, c-opts.o, gcc.o, gccspec.o, gcc-options.o,
10667 cppdefault.o, protoize.o, unprotoize.o, intl.o, version.o,
10668 prefix.o, toplev.o): Reduce to variable setting.
10669 (libbackend.o): Use COMPILE. Remove most dependencies. Move later.
10670 ($(out_object_file), gcc-options.o): New targets.
10671 ($(ALL_HOST_OBJS)): New target. Include dependency files.
10672 * configure: Rebuilt.
10673 * configure.ac: Call ZW_CREATE_DEPDIR, ZW_PROG_COMPILER_DEPENDENCIES.
10674 * doc/sourcebuild.texi (Front End Directory): Document new variable.
10676 2008-03-25 Douglas Gregor <doug.gregor@gmail.com>
10678 * c-common.c (c_sizeof_or_alignof_type): If we're not allowed to
10679 complain when we hit an error, return ERROR_MARK_NODE.
10681 2008-03-25 Naveen.H.S <naveen.hs@kpitcummins.com>
10683 * config/sh/constraints.md (Pso, Psz): New constraints.
10684 * config/sh/sh.c (print_operand): Add %V and %W operand codes.
10685 * config/sh/sh.md (*andsi3_bclr, *iorsi3_bset): New insns.
10687 2008-03-25 Naveen.H.S <naveen.hs@kpitcummins.com>
10689 * config/sh/sh.c (sh_expand_t_scc): Emit movrt for SH2A if possible.
10690 * config/sh/sh.md (xorsi3_movrt, movrt): New insns.
10692 2008-03-25 Naveen.H.S <naveen.hs@kpitcummins.com>
10694 * config/sh/sh.md (prefetch): Add condition for SH2A target.
10695 (prefetch_sh2a): New.
10697 2008-03-25 Jayant Sonar <Jayant.sonar@kpitcummins.com>
10698 Naveen.H.S <naveen.hs@kpitcummins.com>
10700 * config/sh/constraints.md (I28): New constraint.
10701 * config/sh/sh.c (broken_move): Add support for movi20s.
10702 * config/sh/sh.md (movsi_ie): Add the alternative for movi20s.
10704 2008-03-25 Anil Paranjape <anil.paranjape@kpitcummins.com>
10705 Jayant Sonar <Jayant.sonar@kpitcummins.com>
10706 Naveen.H.S <naveen.hs@kpitcummins.com>
10708 * config/sh/sh.c (SH_ATTRIBUTES): Define.
10709 (SYMBOL_FLAG_FUNCVEC_FUNCTION): Define.
10710 (print_operand): Handle resbank in %@ operand code.
10711 (sh_encode_section_info): New.
10712 (push_regs): Add conditions for resbank.
10713 (sh_expand_epilogue): Likewise.
10714 (sh_insert_attributes): Likewise.
10715 (sh_attribute_table): Likewise.
10716 (sh_handle_resbank_handler_attribute): New.
10717 (sh2a_handle_function_vector_handler_attribute): New.
10718 (sh2a_is_function_vector_call): New.
10719 (sh2a_get_function_vector_number): New.
10720 (sh2a_function_vector_p): New.
10721 (sh_cfun_resbank_handler_p): New.
10722 * config/sh/sh.md (calli): Emit jsr/n if possible.
10723 (calli_tbr_rel): New.
10724 (calli_pcrel): Emit jsr/n if possible.
10725 (return_i): Emit rts/n if possible.
10726 (call_valuei_tbr_rel): New.
10727 (call_valuei_pcrel): Add condition for SH2A target.
10728 (call_value): Likewise.
10729 * config/sh/sh-protos.h (sh_cfun_resbank_handler_p): Declare.
10730 (sh2a_get_function_vector_number): Likewise.
10731 (sh2a_is_function_vector_call): Likewise.
10732 * doc/extend.texi: Document TBR relative addressing of SH2A.
10733 (resbank): Add description for SH2A.
10735 2008-03-24 Richard Guenther <rguenther@suse.de>
10738 * gimplify.c (gimplify_modify_expr): For frontend type-correct
10739 pointer assignments change conversions according to middle-end rules.
10740 (gimplify_modify_expr_rhs): Deal with NULL TARGET_EXPR_INITIAL.
10741 * configure.ac: Include type checking in yes.
10742 * configure: Regenerate.
10744 2008-03-24 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
10746 * diagnostic.c (diagnostic_count_diagnostic): Delete.
10747 (diagnostic_report_diagnostic): Update. Handle ICEs here.
10749 2008-03-24 Nathan Sidwell <nathan@codesourcery.com>
10751 * gthr-vxworks.h (UNUSED): Define.
10753 2008-03-23 H.J. Lu <hongjiu.lu@intel.com>
10755 * config/i386/i386.h (STATIC_CHAIN_REGNUM): Use R10_REG and CX_REG.
10757 2008-03-23 Zuxy Meng <zuxy.meng@gmail.com>
10759 * doc/extend.texi (Function Attributes): Add missing comma in the
10760 example of the "alloc_size" attribute.
10762 2008-03-23 Uros Bizjak <ubizjak@gmail.com>
10765 2008-03-05 H.J. Lu <hongjiu.lu@intel.com>
10767 * config/i386/i386-modes.def: Use 4 byte alignment on DI for
10770 2008-03-19 Uros Bizjak <ubizjak@gmail.com>
10773 * stor-layout.c (update_alignment_for_field): Set minimum alignment
10774 of the underlying type of a MS bitfield layout to the natural
10775 alignment of the type.
10777 2008-03-22 Uros Bizjak <ubizjak@gmail.com>
10779 * config/i386/i386.c (assign_386_stack_local): Align DImode slots
10780 to their natural alignment to avoid store forwarding stalls.
10782 2008-03-22 Richard Guenther <rguenther@suse.de>
10784 * tree-cfg.c (verify_expr): Recurse again for invariant addresses.
10785 For PHI nodes verify the address is invariant.
10786 * tree-ssa-ccp.c (ccp_decl_initial_min_invariant): Remove.
10787 (get_symbol_constant_value): Use is_gimple_min_invariant.
10788 (maybe_fold_stmt_indirect): Likewise.
10790 2008-03-22 Richard Sandiford <rsandifo@nildram.co.uk>
10792 PR rtl-optimization/33927
10793 * Makefile.in (dse.o): Depend on $(TM_P_H).
10794 * expr.h (extract_low_bits): Declare.
10795 * expmed.c (extract_low_bits): New function.
10796 * rtlhooks.c (gen_lowpart_general): Generalize SUBREG handling.
10797 * dse.c: Include tm_p.h.
10798 (find_shift_sequence): Remove the read_reg argument and return the
10799 read value. Emit the instructions instead of returning them.
10800 Iterate on new_mode rather than calculating it each time.
10801 Check MODES_TIEABLE_P. Use simplify_gen_subreg to convert the
10802 source to NEW_MODE and extract_low_bits to convert the shifted
10803 value to READ_MODE.
10804 (replace_read): Allow the load and store to have different mode
10805 classes. Use extract_low_bits when SHIFT == 0. Create the shift
10806 or extraction instructions before trying the replacement. Update
10807 dump-file code accordingly, avoiding use of REGNO (store_info->rhs).
10809 2008-03-22 Uros Bizjak <ubizjak@gmail.com>
10811 * config/i386/i386.c (assign_386_stack_local): Align DImode slots
10812 to their natural alignment to avoid store forwarding stalls.
10814 2008-03-21 Andrew Pinski <andrew_pinski@playstation.sony.com>
10817 * config/rs6000/rs6000.md (floatdidf2): Discouraging fprs and
10818 encouraging but not allowing gprs for input;
10819 change the input constraint to !f#r.
10820 (fix_truncdfdi2): Discouraging fprs and encouraging but not allowing
10822 change the output constraint to !f#r.
10824 2008-03-21 Uros Bizjak <ubizjak@gmail.com>
10827 * config/i386/i386.md ("*floatunssi<mode2>_1"): New pattern with
10828 corresponding post-reload splitters.
10829 ("floatunssi<mode>2"): Expand to unsigned_float x87 insn pattern
10830 when x87 FP math is selected.
10831 * config/i386/i386-protos.h (ix86_expand_convert_uns_sixf_sse):
10832 New function prototype.
10833 * config/i386/i386.c (ix86_expand_convert_uns_sixf_sse): New
10834 unreachable function to ease macroization of insn patterns.
10836 2008-03-21 Martin Jambor <mjambor@suse.cz>
10838 * tree-data-ref.c (dump_data_dependence_relation): Avoid data
10839 reference dumps if ddr is NULL or dependence is unknown.
10841 2008-03-20 Kaz Kojima <kkojima@gcc.gnu.org>
10843 * config/sh/linux-atomic.asm (ATOMIC_TEST_AND_SET): Take
10844 unsigned extension into account.
10845 (ATOMIC_COMPARE_AND_SWAP): Likewise.
10846 (ATOMIC_FETCH_AND_OP, ATOMIC_FETCH_AND_COMBOP): Likewise.
10847 Do computations on a scratch register.
10849 2008-03-21 Richard Guenther <rguenther@suse.de>
10851 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
10852 Use is_gimple_min_invariant instead of TREE_INVARIANT.
10853 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Likewise.
10854 * tree-ssa-dom.c (record_equality): Likewise.
10855 * tree-inline.c (copy_body_r): Likewise.
10856 * tree-ssa-pre.c (make_values_for_stmt): Remove test for
10859 2008-03-20 Kaz Kojima <kkojima@gcc.gnu.org>
10861 * config/sh/sh.c (split_branches): Pass zero to redirect_jump
10862 as 'delete_unused' argument.
10864 2008-03-20 Richard Guenther <rguenther@suse.de>
10866 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Remove
10867 special casing of constant qualifiers.
10868 * tree-ssa.c (useless_type_conversion_p_1): Instead do not
10869 care about them in general.
10870 * tree-ssa-ccp.c (ccp_fold): Addresses are constant or not
10871 regardless of their type.
10872 (fold_stmt_r): Forcefully fold *& if we end up with that.
10874 2008-03-20 Paul Brook <paul@codesourcery.com>
10876 * config.gcc (arm*-*-uclinux*): Remove duplicate arm/uclinux-elf.h.
10877 * config/arm/uclinux-eabi.h (SUBTARGET_EXTRA_LINK_SPEC): Add extra
10879 * config/arm/bpabi.h (SUBTARGET_EXTRA_LINK_SPEC): Provide default
10881 (LINK_SPEC): Use SUBTARGET_EXTRA_LINK_SPEC.
10882 * config/arm/unwind-arm.h (_Unwind_decode_target2): Add uClinux.
10884 2008-03-20 Volker Reichelt <v.reichelt@netcologne.de>
10886 * common.opt (Wmudflap): New option.
10887 * tree-mudflap.c (mf_xform_derefs_1): Guard warning by OPT_Wmudflap.
10888 (mx_register_decls): Likewise.
10889 (mudflap_finish_file): Likewise.
10890 * doc/invoke.texi: Document -Wno-mudflap.
10892 2008-03-20 Kai Tietz <kai.tietz@onevision.com>
10894 * c-format.c (replace_format_name_to_system_name): New.
10895 (cmp_attribs): New.
10896 (convert_format_name_to_system_name): New.
10897 (decode_format_attr): Add use of convert_format_name_to_system_name.
10898 (format_types_orig): Add gnu_ prefix to names.
10899 (check_format_info_main): Special treating of \0 escaped names for
10900 supporting multi-character format specifiers as I32, I64.
10901 (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): Use of user defined attributes.
10902 (gnu_target_overrides_format_attributes): New.
10903 * c-format.h: Add structure target_ovr_attr to hold
10904 system specific formatter names.
10905 * config.gcc: Add for x86&x86_64 cygwin and mingw32 targets the
10906 msformat-c.o file to c_target_objs and cxx_target_objs.
10907 * config/i386/mingw32.h (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): New.
10908 (TARGET_OVERRIDES_FORMAT_ATTRIBUTES_COUNT): New.
10909 (TARGET_N_FORMAT_TYPES): New.
10910 * config/i386/msformat-c.c: New.
10911 * config/i386/t-cygming: Add build rule for msformat-c.o.
10912 * doc/extend.texi: Add new format names gnu_* and ms_* and
10914 * doc/tm.texi: (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): New.
10916 2008-03-20 Ira Rosen <irar@il.ibm.com>
10918 * doc/invoke.texi (-O3): Add -ftree-vectorize to the list of
10919 optimizations turned on under -O3.
10920 (ftree-vectorize): Add that the flag is turned on with -O3.
10922 2008-03-20 Ben Elliston <bje@au.ibm.com>
10924 * regmove.c (try_auto_increment): Fix spelling error in comment.
10925 * final.c (final_scan_insn): Likewise.
10927 2008-03-20 Uros Bizjak <ubizjak@gmail.com>
10930 * config/i386/mmx.md (*mov<mode>_internal_rex64"): Adjust register
10931 allocator preferences for "y" and "r" class registers.
10932 ("*mov<mode>_internal"): Ditto.
10933 ("*movv2sf_internal_rex64"): Ditto.
10934 ("*movv2sf_internal"): Ditto.
10936 2008-03-19 Michael Matz <matz@suse.de>
10938 PR middle-end/35616
10939 * calls.c (expand_call): Check overlap of arguments with call
10940 address for sibcalls.
10942 2008-03-19 Uros Bizjak <ubizjak@gmail.com>
10945 * stor-layout.c (update_alignment_for_field): Set minimum alignment
10946 of the underlying type of a MS bitfield layout to the natural
10947 alignment of the type.
10949 2008-03-19 Jan Hubicka <jh@suse.cz>
10952 * toplev.c (decode_d_option): Handle all CPP flags.
10953 * tree-vrp.c: Update tree_pass descriptors.
10954 * regrename.c: Update tree_pass descriptors.
10955 * fwprop.c: Update tree_pass descriptors.
10956 * doc/invoke.texi: Remove documentation of dropped -d? flags.
10957 * tree-into-ssa.c: Update tree_pass descriptors.
10958 * tree-dump.c: Update tree_pass descriptors.
10959 * tree-complex.c: Update tree_pass descriptors.
10960 * tree-dump.h: Update tree_pass descriptors.
10961 * see.c: Update tree_pass descriptors.
10962 * cgraphbuild.c: Update tree_pass descriptors.
10963 * tracer.c: Update tree_pass descriptors.
10964 * tree-loop-distribution.c: Update tree_pass descriptors.
10965 * cgraph.c: Update tree_pass descriptors.
10966 * postreload-gcse.c: Update tree_pass descriptors.
10967 * postreload.c: Update tree_pass descriptors.
10968 * tree-ssa-loop-ch.c: Update tree_pass descriptors.
10969 * tree-tailcall.c: Update tree_pass descriptors.
10970 * tree-pass.h (tree_opt_pass): Rename to ...
10971 (opt_pass) ... this one; add "type" field and remove letter field.
10972 (gimple_opt_pass, rtl_opt_pass, simple_ipa_opt_pass): New.
10973 (execute_pass_list, execute_ipa_pass_list, all_passes, all_ipa_passes,
10974 all_lowering_passes): Update declaration.
10975 * ipa-cp.c: Update tree_pass descriptors.
10976 * final.c: Update tree_pass descriptors.
10977 * omp-low.c: Update tree_pass descriptors.
10978 * tree-ssa-dse.c: Update tree_pass descriptors.
10979 * ipa-reference.c: Update tree_pass descriptors.
10980 * tree-ssa-uncprop.c: Update tree_pass descriptors.
10981 * auto-inc-dec.c: Update tree_pass descriptors.
10982 * reorg.c: Update tree_pass descriptors.
10983 * cgraphunit.c: Update tree_pass descriptors.
10984 * tree-ssa-copyrename.c: Update tree_pass descriptors.
10985 * tree-ssa-ccp.c: Update tree_pass descriptors.
10986 * df-core.c: Update tree_pass descriptors.
10987 * mode-switching.c: Update tree_pass descriptors.
10988 * tree-nomudflap.c: Update tree_pass descriptors.
10989 * modulo-sched.c: Update tree_pass descriptors.
10990 * ipa-pure-const.c: Update tree_pass descriptors.
10991 * cse.c: Update tree_pass descriptors.
10992 * web.c: Update tree_pass descriptors.
10993 * tree-stdarg.c: Update tree_pass descriptors.
10994 * tree-ssa-math-opts.c: Update tree_pass descriptors.
10995 * tree-ssa-dom.c: Update tree_pass descriptors.
10996 * tree-nrv.c: Update tree_pass descriptors.
10997 * tree-ssa-alias.c: Update tree_pass descriptors.
10998 * loop-init.c: Update tree_pass descriptors.
10999 * gimple-low.c: Update tree_pass descriptors.
11000 * ipa-inline.c: Update tree_pass descriptors.
11001 * tree-ssa-sink.c: Update tree_pass descriptors.
11002 * global.c: Update tree_pass descriptors.
11003 * ifcvt.c: Update tree_pass descriptors.
11004 * jump.c: Update tree_pass descriptors.
11005 * predict.c: Update tree_pass descriptors.
11006 * tree-ssa-loop.c: Update tree_pass descriptors.
11007 * recog.c: Update tree_pass descriptors.
11008 * dse.c: Update tree_pass descriptors.
11009 * tree-ssa-ifcombine.c: Update tree_pass descriptors.
11010 * tree-eh.c: Update tree_pass descriptors.
11011 * regmove.c: Update tree_pass descriptors.
11013 * function.c: Update tree_pass descriptors.
11014 * tree-vectorizer.c: Update tree_pass descriptors.
11015 * gcse.c: Update tree_pass descriptors.
11016 * ipa-type-escape.c: Update tree_pass descriptors.
11017 * tree-if-conv.c: Update tree_pass descriptors.
11018 * init-regs.c: Update tree_pass descriptors.
11019 * ipa.c: Update tree_pass descriptors.
11020 * tree-ssa-phiopt.c: Update tree_pass descriptors.
11021 * rtl-factoring.c: Update tree_pass descriptors.
11022 * lower-subreg.c: Update tree_pass descriptors.
11023 * bt-load.c: Update tree_pass descriptors.
11024 * tree-dfa.c: Update tree_pass descriptors.
11025 * except.c: Update tree_pass descriptors.
11026 * emit-rtl.c: Update tree_pass descriptors.
11027 * cfgexpand.c: Update tree_pass descriptors.
11028 * tree-cfgcleanup.c: Update tree_pass descriptors.
11029 * cfgcleanup.c: Update tree_pass descriptors.
11030 * tree-ssa-pre.c: Update tree_pass descriptors.
11031 * tree-sra.c: Update tree_pass descriptors.
11032 * tree-mudflap.c: Update tree_pass descriptors.
11033 * tree-ssa-copy.c: Update tree_pass descriptors.
11034 * cfglayout.c: Update tree_pass descriptors.
11035 * tree-ssa-forwprop.c: Update tree_pass descriptors.
11036 * tree-ssa-dce.c: Update tree_pass descriptors.
11037 * tree-ssa.c: Update tree_pass descriptors.
11038 * regclass.c: Update tree_pass descriptors.
11039 * integrate.c: Update tree_pass descriptors.
11040 * tree-optimize.c: Update tree_pass descriptors.
11041 * tree-ssa-phiprop.c: Update tree_pass descriptors.
11042 * tree-object-size.c: Update tree_pass descriptors.
11043 * combine.c: Update tree_pass descriptors.
11044 * tree-outof-ssa.c: Update tree_pass descriptors.
11045 * bb-reorder.c: Update tree_pass descriptors.
11046 * stack-ptr-mod.c: Update tree_pass descriptors.
11047 * var-tracking.c: Update tree_pass descriptors.
11048 * tree-profile.c: Update tree_pass descriptors.
11049 * tree-vect-generic.c: Update tree_pass descriptors.
11050 * reg-stack.c: Update tree_pass descriptors.
11051 * sched-rgn.c: Update tree_pass descriptors.
11052 * tree-ssa-structalias.c: Update tree_pass descriptors.
11053 * tree-cfg.c: Update tree_pass descriptors.
11054 * passes.c (current_pass): Update declaration.
11055 (finish_optimization_passes): Update.
11056 (all_passes, all_ipa_passes, all_lowering_passes): Update declaration.
11057 (register_one_dump_file, register_dump_files_1, next_pass_1):
11059 (init_optimization_passes): Update handling of new types.
11060 (execute_one_pass, execute_pass_list, execute_ipa_pass_list): Update.
11061 * ipa-struct-reorg.c: Update tree_pass descriptors.
11062 * tree-ssa-reassoc.c: Update tree_pass descriptors.
11063 * combine-stack-adj.c: Update tree_pass descriptors.
11064 * cfgrtl.c: Update tree_pass descriptors.
11065 * dce.c: Update tree_pass descriptors.
11066 * tree-ssanames.c: Update tree_pass descriptors.
11068 2008-03-19 Richard Guenther <rguenther@suse.de>
11070 PR middle-end/35609
11071 * tree-ssa.c (walk_data): New structure.
11072 (warn_uninitialized_var): If not always_executed warn with "maybe"
11074 (execute_early_warn_uninitialized): Compute post-dominators.
11075 Initialize always_executed before processing each basic block.
11077 2008-03-18 Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz>
11080 * config/i386/i386.c (x86_this_parameter): Calculate correct location
11081 of "this" pointer when "regparm = N" or "fastcall" is in effect.
11083 2008-03-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11085 * doc/include/texinfo.tex: Update to version 2008-03-17.10.
11087 2008-03-18 Paolo Bonzini <bonzini@gnu.org>
11089 * expr.c (store_expr): Assume lang_hooks.reduce_bit_field_operations
11091 (expand_expr_real_1) <REDUCE_BIT_FIELD>: Don't look at ignore.
11092 (expand_expr_real_1): Assume lang_hooks.reduce_bit_field_operations
11093 is true. Add "&& !ignore" condition to reduce_bit_field. Modify
11094 target after ignore has been set, and move there also the commputation
11095 of subtarget and original_target.
11096 * langhooks-def.h (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): Delete.
11097 (LANG_HOOKS_INITIALIZER): Remove it.
11098 * langhooks.h (struct lang_hooks): Remove reduce_bit_field_operations.
11100 2008-03-18 Richard Guenther <rguenther@suse.de>
11102 * tree-ssa-sccvn.c (visit_reference_op_load): If the lookup
11103 found an expression with constants, note that in the VN for the lhs.
11104 * tree-ssa-pre.c (eliminate): Visit COND_EXPR statements and
11105 fold them to constants if possible. Run cleanup_cfg if done so.
11106 (execute_pre): Return todo.
11107 (do_pre): Likewise.
11108 (execute_fre): Likewise.
11109 * tree-ssa-forwprop.c (can_propagate_from): Allow propagation
11111 (get_prop_source_stmt): Look through pointer conversions.
11113 2008-03-18 Jan Hubicka <jh@suse.cz>
11115 * tree-pretty-print.c: Include predict.h.
11116 (dump_generic_node): Dump predictor.
11117 * tree.h (PREDICT_EXPR_OUTCOME, PREDICT_EXPR_PREDICTION): Update.
11118 * tree-gimple.c (is_gimple_stmt): Add PREDICT_EXPR.
11119 * gimple-low.c (lower_stmt): Likewise.
11120 * expr.c (expand_expr_real): Likewise.
11121 * predict.c (tree_bb_level_predictions): Use PREDICT_EXPRs and remove
11123 (build_predict_expr, build_predict_expr): New.
11124 * predict.h (predictor_name, build_predict_expr): Update.
11125 * c-typeck.c (c_finish_bc_stmt): Add prediction.
11126 * gimplify.c (gimplify_expr): Add PREDICT_EXPR.
11127 * predict.def (PRED_CONTINUE): Update hitrate.
11128 * tree.def (PREDICT_EXPR): Define.
11129 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Mark PREDICT_EXPR;
11130 do not handle BIND_EXPR.
11131 * tree-inline.c (estimate_num_insns_1): PREDICT_EXPR is free.
11132 * tree-cfg.c (verify_gimple_stmt): PREDICT_EXPR is valid.
11133 * tree-ssa-operands.c (get_expr_operands): PREDICT_EXPR takes no
11136 2008-03-18 Michael Matz <matz@suse.de>
11138 * gcov-io.h (__gcov_merge_ior, __gcov_fork): Mark hidden.
11140 2008-03-18 Richard Guenther <rguenther@suse.de>
11142 * tree-gimple.h (is_gimple_invariant_address): Declare.
11143 (is_gimple_constant): Likewise.
11144 * tree-gimple.c (is_gimple_constant): New function.
11145 (is_gimple_invariant_address): Likewise.
11146 (is_gimple_min_invariant): Implement in terms of is_gimple_constant
11147 and is_gimple_invariant_address.
11148 * tree-ssa-loop-niter.c (expand_simple_operations): Revert
11150 * tree-data-ref.c (get_references_in_stmt): A SSA_NAME is not
11151 an addressable base.
11153 2008-03-18 Jakub Jelinek <jakub@redhat.com>
11155 PR middle-end/35611
11156 * gimplify.c (gimplify_expr): Gimplify second operand of
11159 2008-03-17 Richard Guenther <rguenther@suse.de>
11161 PR tree-optimization/19637
11162 * fold-const.c (fold_unary): Remove restrictions of removing
11163 intermediate pointer-conversions (P2)(P1)P0.
11164 * tree-ssa-ccp.c (maybe_fold_stmt_addition): Recover from
11165 conversion to void pointer.
11166 (get_maxval_strlen): Handle addresses of the form &(*p)[0].
11168 2008-03-16 James E. Wilson <wilson@tuliptree.org>
11171 * dbxout.c (dbxout_expand_expr, case VAR_DECL): Return NULL for
11172 emulated thread local variables.
11174 2008-03-16 Richard Guenther <rguenther@suse.de>
11176 PR middle-end/35607
11177 * tree-ssa-loop-niter.c (expand_simple_operations): Do not
11178 expand TREE_INVARIANT operations that are not gimple invariant.
11180 2008-03-16 Hans-Peter Nilsson <hp@axis.com>
11182 * doc/extend.texi (Alignment): Say that the ABI controls
11183 the __alignof__ for non-strict-alignment targets rather
11184 than being a recommendation.
11186 2008-03-15 Paul Brook <paul@codesourcery.com>
11188 * config/arm/arm.c (arm_unwind_emit): Suppress unused unwinding
11190 (arm_output_fn_unwind): Mark functions that can not be unwound.
11192 2008-03-15 Paul Brook <paul@codesourcery.com>
11194 * config/arm/arm.c (arm_rtx_costs_1): Add costs for ARMv6 value
11195 extension instructions.
11197 2008-03-15 Richard Guenther <rguenther@suse.de>
11199 * tree-ssa-ccp.c (ccp_fold): Also read from constant values
11200 and fold constant aggregate refs.
11201 (fold_const_aggregate_ref): Handle string constants
11202 and constructors in ARRAY_REFs. Handle INDIRECT_REF.
11203 (evaluate_stmt): Simplify now that ccp_fold folds constant
11206 2008-03-15 Paul Brook <paul@codesourcery.com>
11208 * config/arm/arm.md (insv): Use gen_insv_t2 and gen_insv_zero.
11209 (extzv): Use gen_extzv_t2.
11210 (insv_t2, insv_zero, extv, extzv_t2): New patterns.
11212 2008-03-15 Richard Guenther <rguenther@suse.de>
11214 * tree-ssa-ccp.c (get_symbol_constant_value): Export.
11215 (fold_const_aggregate_ref): Likewise.
11216 (get_value): Return NULL if we don't have any values.
11217 (ccp_finalize): Set const_val to NULL after freeing it.
11218 * tree-flow.h (get_symbol_constant_value): Declare.
11219 (fold_const_aggregate_ref): Likewise.
11220 * tree-ssa-sccvn.c (try_to_simplify): Use them.
11222 2008-03-15 Richard Guenther <rguenther@suse.de>
11224 PR middle-end/35593
11225 * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Make sure
11226 to not produce negative array indices if not allowed. Add
11227 parameter to indicate that.
11228 (maybe_fold_offset_to_component_ref): Allow negative array
11229 indices only for the first member of a structure.
11230 (maybe_fold_offset_to_reference): Allow negative array indices.
11231 (maybe_fold_stmt_addition): Likewise.
11233 2008-03-15 Bjoern Haase <bjoern.m.haase@web.de>
11234 Anatoly Sokolov <aesok@post.ru>
11236 * config/avr/avr.c (avr_arch_types): Add avr6 entry.
11237 (avr_arch): Add ARCH_AVR6.
11238 (avr_mcu_types): Add 'atmega2560' and 'atmega2561' entry.
11239 (initial_elimination_offset): Initialize and use 'avr_pc_size'
11240 instead of fixed value 2.
11241 (print_operand_address): Use gs() asm specifier instead of pm().
11242 (avr_assemble_integer): (Ditto.).
11243 (avr_output_addr_vec_elt): (Ditto.).
11244 (print_operand): Handle "!" code.
11245 * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): Add
11246 __AVR_3_BYTE_PC__, __AVR_2_BYTE_PC__ and __AVR_HAVE_JMP_CALL__.
11247 (AVR_HAVE_EIJMP_EICALL): Define.
11248 (AVR_3_BYTE_PC): Redefine.
11249 (AVR_2_BYTE_PC): (Ditto.).
11250 (PRINT_OPERAND_PUNCT_VALID_P): Add '!' code.
11251 (LINK_SPEC): Add atmega2560 and atmega2561.
11252 (CRT_BINUTILS_SPEC): Add atmega2560 (crtm2560.o) and atmega2561
11254 * config/avr/avr.md (call_insn): Use eicall instead of icall
11255 for 3 byte PC devices.
11256 (call_value_insn): (Ditto.).
11257 (*tablejump_enh): Use eijmp instead of ijmp for 3 byte PC devices.
11258 (indirect_jump): Use only for for 2 byte PC devices.
11259 (*tablejump): (Ditto.).
11260 (*indirect_jump_avr6): Add insn.
11261 (*tablejump_rjmp): Don't use for 3 byte PC devices.
11262 * config/avr/libgcc.S (__prologue_saves__): Use eijmp
11263 instead of ijmp for 3 byte PC devices.
11264 (__tablejump2__): (Ditto.).
11265 * config/avr/t-avr (MULITLIB_OPTIONS): Add avr6 architecture.
11266 (MULITLIB_DIRNAMES): (Ditto.).
11267 (MULTILIB_MATCHES): Add atmega2560 and atmega2561 to list.
11269 2008-03-15 Uros Bizjak <ubizjak@gmail.com>
11271 * config/i386/mmx.md ("sse2_umulv1siv2di3"): Rename from
11272 "sse2_umulsidi3". Use V1DI mode for operand 0.
11273 ("mmx_psadbw"): Use V1DI mode for operand 0.
11274 * config/i386/i386-modes.def (V1SI): New vector mode.
11275 * config/i386/i386.c (struct builtin_description)
11276 [IX86_BUILTIN_PMULUDQ]: Use CODE_FOR_sse2_umulv1siv1di3.
11277 (v1di_ftype_v8qi_v8qi): Rename from di_ftype_v8qi_v8qi.
11278 (v1di_ftype_v2si_v2si): Rename from di_ftype_v2si_v2si.
11279 (ix86_init_mmx_sse_builtins) [__builtin_ia32_psadbw]: Use
11280 v1di_ftype_v8qi_v8qi type.
11281 [__builtin_ia32_pmuludq]: Use v1di_ftype_v2si_v2si type.
11283 * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psadbw,
11284 __builtin_ia32_pmuludq]: Fix the mode of return value.
11286 2008-03-15 Richard Guenther <rguenther@suse.de>
11288 PR middle-end/35595
11289 * tree-ssa-pre.c (bitmap_find_leader): Handle expression
11292 2008-03-14 Bob Wilson <bob.wilson@acm.org>
11294 * doc/invoke.texi (Option Summary, Xtensa Options): Document
11295 -mserialize-volatile and -mno-serialize-volatile Xtensa options.
11296 * config/xtensa/xtensa.c (print_operand): Do not emit MEMW instructions
11297 unless TARGET_SERIALIZE_VOLATILE is enabled.
11298 * config/xtensa/xtensa.md (*lsiu, *ssiu): Likewise.
11299 * config/xtensa/xtensa.h (TARGET_DEFAULT): Add MASK_SERIALIZE_VOLATILE.
11300 * config/xtensa/xtensa.opt (mserialize_volatile): New option.
11302 2008-03-14 Richard Guenther <rguenther@suse.de>
11304 PR tree-optimization/34172
11305 * tree-flow.h (refs_may_alias_p): Declare.
11306 (get_single_def_stmt): Likewise.
11307 (get_single_def_stmt_from_phi): Likewise.
11308 (get_single_def_stmt_with_phi): Likewise.
11309 * tree-dfa.c (refs_may_alias_p): New function.
11310 (get_single_def_stmt): Likewise.
11311 (get_single_def_stmt_from_phi): Likewise.
11312 (get_single_def_stmt_with_phi): Likewise.
11313 * tree-ssa-sccvn.c (get_def_ref_stmt_vuses): New function.
11314 (vn_reference_lookup_1): New helper function.
11315 (vn_reference_lookup): Walk the virtual use-def chain to
11316 continue searching for a match if the def does not alias the
11317 reference we are looking for.
11319 2008-03-14 David Edelsohn <edelsohn@gnu.org>
11321 * doc/install.texi (Binaries): Remove UCLA archive. Add HVCC
11322 archive and Perzl. Update The Written Word listing.
11324 2008-03-14 Richard Guenther <rguenther@suse.de>
11326 PR tree-optimization/34043
11327 PR tree-optimization/33989
11328 * tree-ssa-pre.c (execute_pre): Allow SCCVN to do insertion
11330 (bitmap_find_leader): Use extra argument to verify dominance
11331 relationship inside a basic-block.
11332 (can_PRE_operation): Add VIEW_CONVERT_EXPR.
11333 (find_leader_in_sets): Adjust.
11334 (create_component_ref_by_pieces): Take extra argument for
11335 dominance check, handle lookup failures.
11336 (find_or_generate_expression): Likewise.
11337 (create_expression_by_pieces): Likewise.
11338 (insert_into_preds_of_block): Adjust.
11339 (create_value_expr_from): If asked for, verify all operands
11340 are in the blocks AVAIL_OUT set.
11341 (make_values_for_stmt): Check for SSA_NAMEs that are life
11342 over an abnormal edge.
11343 (compute_avail): Remove such check.
11344 (do_SCCVN_insertion): New function.
11345 (eliminate): If we do not find a leader suitable for replacement
11346 insert a replacement expression from SCCVN if available.
11347 * tree-ssa-sccvn.h (run_scc_vn): Update prototype.
11348 (struct vn_ssa_aux): Add needs_insertion flag.
11349 * tree-ssa-sccvn.c (may_insert): New global flag.
11350 (copy_reference_ops_from_ref): Value-number union member access
11351 based on its size, not type and member if insertion is allowed.
11352 (visit_reference_op_load): For a weak match from union type
11353 punning lookup a view-converted value and insert a SSA_NAME
11354 for that value if that is not found.
11355 (visit_use): Make dumps shorter. Do not disallow value numbering
11356 SSA_NAMEs that are life over an abnormal edge to constants.
11357 (free_scc_vn): Release inserted SSA_NAMEs.
11358 (run_scc_vn): New flag to specify whether insertion is allowed.
11359 Process SSA_NAMEs in forward order.
11360 * tree-ssa-loop-im.c (for_each_index): Handle invariant
11361 ADDR_EXPRs inside VIEW_CONVERT_EXPR.
11362 * fold-const.c (fold_unary): Fold VIEW_CONVERT_EXPRs from/to
11363 pointer type to/from integral types that do not change the
11364 precision to regular conversions.
11366 2008-03-13 Uros Bizjak <ubizjak@gmail.com>
11368 * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psll?,
11369 __builtin_ia32_psrl?, __builtin_ia32_psra?, __builtin_ia32_psll?i,
11370 __builtin_ia32_psrl?i, __builtin_ia32_psra?i, __builtin_ia32_psll?128,
11371 __builtin_ia32_psrl?128, __builtin_ia32_psra?128]: Fix the mode of
11372 input arguments and the mode of return value. Built-in functions
11373 that operate on whole 64-bit MMX register now use V1DI mode.
11375 2008-03-13 Alon Dayan <alond@il.ibm.com>
11376 Olga Golovanevsky <olga@il.ibm.com>
11378 PR tree-optimization/35041
11379 * ipa-struct-reorg.c (find_pos_in_stmt_1): Add another option
11380 to locate the right position in a statement.
11382 2008-03-13 Uros Bizjak <ubizjak@gmail.com>
11386 * config/i386/xmmintrin.h: Change all static inline functions to
11387 extern inline and add __gnu_inline__ attribute.
11388 * config/i386/bmintrin.h: Ditto.
11389 * config/i386/smmintrin.h: Ditto.
11390 * config/i386/tmmintrin.h: Ditto.
11391 * config/i386/mmintrin-common.h: Ditto.
11392 * config/i386/ammintrin.h: Ditto.
11393 * config/i386/emmintrin.h: Ditto.
11394 * config/i386/pmmintrin.h: Ditto.
11395 * config/i386/mmintrin.h: Ditto.
11396 * config/i386/mm3dnow.h: Ditto.
11398 2008-03-13 Jakub Jelinek <jakub@redhat.com>
11400 PR middle-end/35185
11401 * omp-low.c (lower_regimplify, init_tmp_var, save_tmp_var): Removed.
11402 (lower_omp_2): New function.
11403 (lower_omp_1, lower_omp): Rewritten.
11405 2008-03-13 Danny Smith <dannysmith@users.sourceforge.net>
11408 * doc/extend.texi (Structure-Packing Pragmas): Replace "Win32"
11409 with the phrase "Microsoft Windows compilers".
11410 (Push/Pop Macro Pragmas): New subsection. Document
11411 #pragma push_macro and pragma pop_macro.
11413 2008-03-12 Paul Brook <paul@codesourcery.com>
11415 * config/arm/arm.c (output_move_double): Prefer LDRD to LDM.
11417 2008-03-12 Paul Brook <paul@codesourcery.com>
11419 * config/arm/thumb2.md: Extend peephole to cover 3-arg subs.
11420 (thumb2_alusi3_short): Exclude PLUS and MINUS.
11421 (thumb2_addsi_shortim): Rename ...
11422 (thumb2_addsi_short): ... to this. Allow register operands.
11423 (thumb2_subsi_short): New pattern.
11424 (thumb2_one_cmplsi2_short,
11425 thumb2_negsi2_short): New patterns and peepholes.
11427 2008-03-12 Paul Brook <paul@codesourcery.com>
11429 * config/arm/arm.c (arm_size_rtx_costs): Use ARM costs for Thumb-2.
11431 2008-03-12 Uros Bizjak <ubizjak@gmail.com>
11433 * config/i386/i386.md (int_cond): New code iterator.
11435 ("s<code>"): Macroize expander from seq, sne, sgt, sgtu, slt, sltu,
11436 sge, sgeu, sle and sleu expanders usign int_cond code iterator.
11437 ("s<code>"): Macroize expander from sunordered, sordered, suneq, sunge,
11438 sungt, sunle, sunlt and sltgt expanders usign fp_cond code iterator.
11439 ("b<code>"): Macroize expander from beq, bne, bgt, bgtu, blt, bltu,
11440 bge, bgeu, ble and bleu expanders usign int_cond code iterator.
11441 ("b<code>"): Macroize expander from bunordered, bordered, buneq, bunge,
11442 bungt, bunle, bunlt and bltgt expanders usign fp_cond code iterator.
11444 2008-03-12 Paul Brook <paul@codesourcery.com>
11446 * config/arm/arm.c (use_return_insn): Use offsets->saved_regs_mask
11447 instead of {arm,thumb}_compute_save_reg_mask.
11448 (output_return_instruction): Ditto.
11449 (thumb_unexpanded_epilogue): Ditto.
11450 (thumb1_expand_prologue): Ditto.
11451 (thumb1_output_function_prologue): Ditto.
11452 (arm_set_return_address): Ditto.
11453 (thumb_set_return_address): Ditto.
11454 (arm_get_frame_offsets): Set offsets->saved_regs_mask. Push extra
11455 regs to achieve stack alignment.
11456 (thumb1_compute_save_reg_mask): Fix compiler warning.
11457 (arm_output_epilogue): Use offsets->saved_regs_mask.
11458 Adjust stack pointer by poping call clobered registers.
11459 (arm_expand_prologue): Use offsets->saved_regs_mask.
11460 Adjust stack pointer by pushing extra registers.
11461 * config/arm.h (arm_stack_offsets): Add saved_regs_mask.
11463 2008-03-12 Paolo Bonzini <bonzini@gnu.org>
11466 * fold-const.c (fold_unary) <NOP_EXPR>: Distribute a narrowing
11467 conversion to the operands of a multiplication.
11469 2008-03-12 Richard Guenther <rguenther@suse.de>
11471 * Makefile.in (OBJS-common): Add tree-ssa-phiprop.o
11472 (tree-ssa-phiprop.o): Copy dependencies from tree-ssa-forwprop.o.
11473 * timevar.def (TV_TREE_PHIPROP): Add.
11474 * tree-ssa-phiprop.c: Split from tree-ssa-forwprop.c, added
11475 pass description. Use TV_TREE_PHIPROP.
11476 * tree-ssa-forwprop.c: Remove phiprop code.
11478 2008-03-12 Jakub Jelinek <jakub@redhat.com>
11480 PR middle-end/35549
11481 * omp-low.c (maybe_lookup_decl): Constify first argument.
11482 (use_pointer_for_field): Change last argument from bool to
11483 omp_context *. Disallow shared copy-in/out in nested
11484 parallel if decl is shared in outer parallel too.
11485 (build_outer_var_ref, scan_sharing_clauses,
11486 lower_rec_input_clauses, lower_copyprivate_clauses,
11487 lower_send_clauses, lower_send_shared_vars): Adjust callers.
11489 2008-03-12 Victor Kaplansky <victork@il.ibm.com>
11490 Ira Rosen <irar@il.ibm.com>
11492 * tree-vectorizer.c (free_stmt_vec_info): New function.
11493 (destroy_loop_vec_info): Move code to free_stmt_vec_info().
11494 Call free_stmt_vec_info(). Free LOOP_VINFO_STRIDED_STORES..
11495 * tree-vectorizer.h (free_stmt_vec_info): Declare.
11496 * tree-vect-transform.c (vectorizable_conversion): Free
11497 vec_oprnds0 if it was allocated.
11498 (vect_permute_store_chain): Remove unused VECs.
11499 (vectorizable_store): Free VECs that are allocated in the..
11501 (vect_transform_strided_load, vectorizable_load): Likewise.
11502 (vect_remove_stores): Simplify the code.
11503 (vect_transform_loop): Move code to vect_remove_stores().
11504 Call vect_remove_stores() and free_stmt_vec_info().
11506 2008-03-11 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11508 * pa.h (TARGET_LONG_PIC_SDIFF_CALL): Conditionalize define on
11509 TARGET_HPUX. Revise comment.
11510 (TARGET_LONG_PIC_PCREL_CALL): Revise comment.
11511 * pa.c (output_call): Update for revised TARGET_LONG_PIC_SDIFF_CALL.
11512 Use sr4 variant of `be' instruction when not generating PIC code.
11513 (attr_length_call): Adjust for above change.
11515 2008-03-11 Andrew Pinski <andrew_pinski@playstation.sony.com>
11517 * ipa-reference.c (static_execute): Remove module_statics_const and
11518 associated setting code.
11520 2008-03-11 Uros Bizjak <ubizjak@gmail.com>
11523 * config/i386/i386.md (paritysi2, paritydi2): Use register_operand
11524 predicate for operand 1.
11525 (paritysi2_cmp): Use register_operand predicate for operand 2.
11526 Use earlyclobber modifier for operand 1. Remove support for
11528 (paritydi2_cmp): Use register_operand predicate for operand 3.
11529 Use earlyclobber modifier for operand 1. Remove support for
11532 2008-03-11 Paul Brook <paul@codesourcery.com>
11533 Vladimir Prus <vladimir@codesourcery.com>
11535 * config/arm/arm.c (use_return_insn): Check TARGET_APCS_FRAME.
11536 (arm_compute_save_reg0_reg12_mask): Always
11537 check if register 11 must be saved. Always safe hard frame pointer
11538 when frame_pointer_needeed.
11539 (arm_compute_save_reg_mask): Save IP and PC
11540 only with apcs frames.
11541 (arm_output_epilogue): Adjust Thumb2 codepath to
11542 be also invoked and work for ARM non-apcs frames.
11543 (arm_expand_prologue): Don't bother saving IP
11544 for non-apcs frame, since it's not clobbered by
11545 prologue code. Implement non-apcs frame
11548 2008-03-11 Paolo Bonzini <bonzini@gnu.org>
11550 PR rtl-optimization/35281
11551 * expr.c (convert_move): Use a new pseudo for the intermediate
11552 from_mode->word_mode result.
11554 2008-03-11 Paolo Bonzini <bonzini@gnu.org>
11556 * langhooks-def.h (LANG_HOOKS_CLEAR_BINDING_STACK): Delete.
11557 * langhooks.h (struct lang_hooks): Delete clear_binding_stack member.
11558 * toplev.c (compile_file): Don't call it.
11560 2008-03-11 Uros Bizjak <ubizjak@gmail.com>
11562 PR middle-end/35526
11563 * expr.c (store_expr): Call emit_block_move if the mode
11564 of "temp" RTX is BLKmode.
11566 2008-03-11 Andrew Pinski <andrew_pinski@playstation.sony.com>
11567 Richard Guenther <rguenther@suse.de>
11569 PR tree-optimization/31358
11570 * tree-ssa-loop-manip.c (create_iv): Call force_gimple_operand for
11571 the step with a NULL_TREE.
11572 * tree-ssa-loop-ivopts.c (find_bivs): Convert the step
11573 to sizetype if type is a pointer type.
11574 (add_candidate_1): Don't convert the base and step to
11575 the generic type if the orginal type is a pointer type.
11576 (add_iv_value_candidates): Use sizetype for the step
11577 if type is a pointer type.
11578 (cand_value_at): Likewise.
11579 * tree-ssa-address.c (add_to_parts): Use POINTER_PLUS_EXPR
11581 * tree-affine.c (tree_to_aff_combination <POINTER_PLUS_EXPR>):
11582 Don't convert the tem affine to the type.
11583 (add_elt_to_tree): Use sizetype for the step if a pointer.
11584 Use POINTER_PLUS_EXPR for pointers.
11585 (aff_combination_to_tree): Use sizetype for the step if a
11588 2008-03-10 Vladimir Makarov <vmakarov@redhat.com>
11590 * config/i386/sse.md (ssse3_pmaddubswv8hi3, ssse3_pmaddubswv4hi3):
11591 Remove commutativity hint.
11593 2008-03-10 Jakub Jelinek <jakub@redhat.com>
11597 * c-parser.c (c_parser_omp_threadprivate): Don't add vars with
11598 errorneous type. Check that v is a VAR_DECL.
11600 PR middle-end/35099
11601 * tree-cfg.c (new_label_mapper): Update cfun->last_label_uid.
11603 2008-03-10 H.J. Lu <hongjiu.lu@intel.com>
11605 PR tree-optimization/35494
11606 * tree-ssa-ccp.c (get_symbol_constant_value): Check if value
11607 may be overriden at link and run time.
11609 2008-03-10 Richard Guenther <rguenther@suse.de>
11611 PR tree-optimization/34677
11612 * tree-ssa-pre.c (modify_expr_node_pool): Remove.
11613 (poolify_tree): Likewise.
11614 (modify_expr_template): Likewise.
11615 (poolify_modify_stmt): Likewise.
11616 (insert_fake_stores): Handle all component-ref style stores
11617 in addition to INDIRECT_REF. Also handle complex types.
11618 Do not poolify the inserted load.
11619 (realify_fake_stores): Do not rebuild the tree but only
11620 make it a SSA_NAME copy.
11621 (init_pre): Remove initialzation of modify_expr_template.
11622 Do not allocate modify_expr_node_pool.
11623 (fini_pre): Do not free modify_expr_node_pool.
11625 2008-03-10 Paul Brook <paul@codesourcery.com>
11627 * config/arm/arm.md (UNSPEC_STACK_ALIGN, UNSPEC_PIC_OFFSET): Renumber
11628 to avoid conflicts.
11630 2008-03-10 Paul Brook <paul@codesourcery.com>
11631 Mark Shinwell <shinwell@codesourcery.com>
11633 * config/arm/cortex-r4.md: New.
11634 * config/arm/thumb2.md (divsi3, udivsi3): Annotate with
11636 * config/arm/arm.md: Include cortex-r4.md.
11637 (insn): Add smmls, sdiv and udiv values.
11638 (generic_sched): Don't use generic scheduling for Cortex-R4.
11639 (arm_issue_rate): New function.
11640 (TARGET_SCHED_ISSUE_RATE): Define.
11642 2008-03-10 Sebastian Pop <sebastian.pop@amd.com>
11644 * doc/invoke.texi (-ftree-loop-distribution): Add an example.
11646 2008-03-10 Richard Guenther <rguenther@suse.de>
11648 * tree-ssa-pre.c (get_sccvn_value): Simplify.
11649 (compute_avail): Do not add stmt uses to AVAIL_OUT.
11651 2008-03-10 Paolo Bonzini <bonzini@gnu.org>
11653 * langhooks-def.h (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS):
11654 Set default to true.
11656 2008-03-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11658 * c.opt (Wsynth): Deprecate.
11659 * doc/invoke.texi (Option Summary, Warning Options): Document
11660 -Wno-format-contains-nul.
11662 2008-03-09 Uros Bizjak <ubizjak@gmail.com>
11665 * config/i386/i386.c (ix86_constant_alignment): Compute alignment using
11666 ALIGN_MODE_128 for VECTOR_CST and INTEGER_CST in addition to REAL_CST.
11668 2008-03-09 Ira Rosen <irar@il.ibm.com>
11670 * config/rs6000/rs6000.c (builtin_description): Rename vector
11671 left shift operations.
11672 * config/rs6000/altivec.md (UNSPEC_VSL): Remove.
11673 (altivec_vsl<VI_char>): Rename to ...
11674 (ashl<mode>3): ... new name.
11675 (mulv4sf3, mulv4si3, negv4sf2): Replace gen_altivec_vslw with
11677 (absv4sf2): Convert to use ashift:V4SI instead of UNSPEC_VSL.
11679 2008-03-08 Richard Guenther <rguenther@suse.de>
11681 * coverage.h (tree_coverage_counter_addr): Declare.
11682 * coverage.c (tree_coverage_counter_addr): New function.
11683 * tree-profile.c (tree_gen_edge_profiler): Unshare counter
11684 before using again.
11685 (tree_gen_pow2_profiler): Use tree_coverage_counter_addr.
11686 (tree_gen_one_value_profiler): Likewise.
11687 (tree_gen_ic_profiler): Likewise.
11688 (tree_gen_average_profiler): Likewise.
11689 (tree_gen_ior_profiler): Likewise.
11691 2008-03-08 Richard Guenther <rguenther@suse.de>
11693 * tree-ssa-sccvn.h (vn_binary_op_lookup): Remove.
11694 (vn_binary_op_insert): Likewise.
11695 (vn_unary_op_lookup): Likewise.
11696 (vn_unary_op_insert): Likewise.
11697 (vn_nary_op_lookup): Declare.
11698 (vn_nary_op_insert): Likewise.
11699 * tree-ssa-sccvn.c (struct vn_tables_s): Merge unary
11700 and binary hashes, use a single obstack for unary_op_pool
11701 and binary_op_pool.
11702 (struct vn_binary_op_s, struct vn_unary_op_s): Replace with
11703 a single struct vn_nary_op_s. Store tree code length and
11704 a variable number of operands.
11705 (struct vn_reference_op_struct): Remove unused op2.
11706 (vn_reference_op_eq): Do not compare op2.
11707 (vn_reference_op_compute_hash): Do not compute hash of op2.
11708 (vn_unary_op_hash, vn_binary_op_hash): Replace with vn_nary_op_hash.
11709 (vn_unary_op_compute_hash, vn_binary_op_compute_hash): Replace
11710 with vn_nary_op_compute_hash.
11711 (vn_unary_op_eq, vn_binary_op_eq): Replace with vn_nary_op_eq.
11712 (vn_unary_op_lookup, vn_binary_op_lookup): Replace with
11714 (vn_unary_op_insert, vn_binary_op_insert): Replace with
11716 (visit_unary_op): Call nary functions.
11717 (visit_binary_op): Likewise.
11718 (process_scc): Adjust for struct vn_tables_s changes.
11719 (allocate_vn_table): Likewise.
11720 (free_vn_table): Likewise.
11721 * tree-vn.c (vn_add): Call nary functions.
11722 (vn_lookup): Likewise.
11724 2008-03-08 Jakub Jelinek <jakub@redhat.com>
11727 * config/rs6000/rs6000.c (rs6000_expand_compare_and_swapqhi): Shift
11728 wdst back after sync_compare_and_swapqhi_internal.
11730 2008-03-08 Uros Bizjak <ubizjak@gmail.com>
11733 * config/i386/i386-modes.def (V1DI): New vector mode.
11734 * config/i386/i386.h (VALID_MMX_REG_MODE): Add V1DImode.
11735 * config/i386/mmx.md (MMXMODEI8): New mode iterator.
11736 (MMXMODE248): Ditto.
11737 (MMXMODE): Add V1DI mode.
11738 (mmxvecsize): Change DI mode to V1DI mode.
11739 ("mov<mode>): Use MMXMODEI8 mode iterator.
11740 ("*mov<mode>_internal_rex64"): Ditto.
11741 ("*mov<mode>_internal"): Ditto.
11742 ("mmx_add<mode>3"): Ditto. Handle V1DImode for TARGET_SSE2.
11743 ("mmx_sub<mode>3"): Ditto.
11744 ("mmx_adddi3"): Remove insn pattern.
11745 ("mmx_subdi3"): Ditto.
11746 ("mmx_ashr<mode>3"): Use SImode and "yN" constraint for operand 2.
11747 ("mmx_lshr<mode>3"): Ditto. Use MMXMODE248 mode iterator.
11748 ("mmx_ashl<mode>3"): Ditto.
11749 ("mmx_lshrdi3"): Remove insn pattern.
11750 ("mmx_ashldi3"): Ditto.
11751 * config/i386/i386.c (classify_argument): Handle V1DImode.
11752 (function_arg_advance_32): Ditto.
11753 (function_arg_32): Ditto.
11754 (struct builtin_description) [IX86_BUILTIN_PADDQ]: Use
11755 mmx_addv1di3 insn pattern.
11756 [IX86_BUILTIN_PSUBQ]: Use mmx_subv1di3 insn pattern.
11757 [IX86_BUILTIN_PSLL?, IX86_BUILTIN_PSRL?, IX86_BUILTIN_PSRA?,
11758 IX86_BUILTIN_PSLL?I, IX86_BUILTIN_PSRL?I, IX86_BUILTIN_PSRA?I,
11759 IX86_BUILTIN_PSLL?I128, IX86_BUILTIN_PSRL?I128, IX86_BUILTIN_PSRA?I128]:
11760 Remove definitions of built-in functions.
11761 (V1DI_type_node): New node.
11762 (v1di_ftype_v1di_int): Ditto.
11763 (v1di_ftype_v1di_v1di): Ditto.
11764 (v2si_ftype_v2si_si): Ditto.
11765 (v4hi_ftype_v4hi_di): Remove node.
11766 (v2si_ftype_v2si_di): Ditto.
11767 (ix86_init_mmx_sse_builtins): Handle V1DImode.
11768 (__builtin_ia32_psll?, __builtin_ia32_psrl?, __builtin_ia32_psra?):
11769 Redefine builtins using def_builtin_const with *_ftype_*_int node.
11770 (__builtin_ia32_psll?i, __builtin_ia32_psrl?i, __builtin_ia32_psra?i):
11771 Add new builtins using def_builtin_const.
11772 (ix86_expand_builtin) [IX86_BUILTIN_PSLL?, IX86_BUILTIN_PSRL?,
11773 IX86_BUILTIN_PSRA?, IX86_BUILTIN_PSLL?I, IX86_BUILTIN_PSRL?I,
11774 IX86_BUILTIN_PSRA?I]: Handle builtin definitions.
11775 * config/i386/mmintrin.h (__v1di): New typedef.
11776 (_mm_add_si64): Cast arguments to __v1di type.
11777 (_mm_sub_si64): Ditto.
11778 (_mm_sll_pi16): Cast __count to __v4hi type.
11779 (_mm_sll_pi32): Cast __count to __v2si type.
11780 (_mm_sll_si64): Cast arguments to __v1di type.
11781 (_mm_srl_pi16): Cast __count to __v4hi type.
11782 (_mm_srl_pi32): Cast __count to __v2si type.
11783 (_mm_srl_si64): Cast arguments to __v1di type.
11784 (_mm_sra_pi16): Cast __count to __v4hi type.
11785 (_mm_sra_pi32): Cast __count to __v2si type.
11786 (_mm_slli_pi16): Use __builtin_ia32_psllwi.
11787 (_mm_slli_pi32): Use __builtin_ia32_pslldi.
11788 (_mm_slli_si64): Use __builtin_ia32_psllqi. Cast __m to __v1di type.
11789 (_mm_srli_pi16): Use __builtin_ia32_psrlwi.
11790 (_mm_srli_pi32): Use __builtin_ia32_psrldi.
11791 (_mm_srli_si64): Use __builtin_ia32_psrlqi. Cast __m to __v1di type.
11792 (_mm_srai_pi16): Use __builtin_ia32_psrawi.
11793 (_mm_srai_pi32): Use __builtin_ia32_psradi.
11794 * config/i386/i386.md (UNSPEC_NOP): Remove unspec definition.
11795 * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psll?,
11796 __builtin_ia32_psrl?, __builtin_ia32_psra?, __builtin_ia32_psll?i,
11797 __builtin_ia32_psrl?i, __builtin_ia32_psra?i]: Add new builtins.
11799 2008-03-07 Joseph Myers <joseph@codesourcery.com>
11801 * doc/include/texinfo.tex: Update to version 2008-03-07.10.
11803 2008-03-07 Peter Bergner <bergner@vnet.ibm.com>
11806 * config/rs6000/rs6000.c (rs6000_legitimize_address): Don't generate
11807 reg+const addressing for Altivec modes. Don't generate reg+reg
11808 addressing for TFmode or TDmode quantities.
11810 2008-03-07 Paolo Bonzini <bonzini@gnu.org>
11812 * c-common.c (vector_types_convertible_p): Call langhook
11813 instead of comptypes.
11815 2008-03-06 Andrew Pinski <andrew_pinski@playstation.sony.com>
11818 * tree-ssa-ccp.c (get_symbol_constant_value): Handle
11819 integral and scalar float variables which have a
11822 2008-03-06 Nathan Froyd <froydnj@codesourcery.com>
11824 * dwarf2out.c (dwarf2out_frame_debug_expr): Consult the
11825 dwarf_register_span hook when emitting unwind information for
11826 register-to-memory saves.
11827 * config/rs6000/rs6000.c (spe_synthesize_frame): Delete.
11828 (rs6000_frame_related): Remove call to spe_synthesize_frame.
11830 2008-03-06 Jakub Jelinek <jakub@redhat.com>
11832 * gimplify.c (goa_lhs_expr_p): Allow different ADDR_EXPR nodes
11833 for the same VAR_DECL.
11835 2008-03-06 Tom Tromey <tromey@redhat.com>
11837 * treelang: Delete.
11838 * doc/standards.texi (Standards): Don't mention treelang.
11839 * doc/invoke.texi (Overall Options): Don't mention treelang.
11840 * doc/install.texi (Prerequisites): Don't mention bison or
11842 (Configuration): Don't mention treelang.
11843 (Building): Likewise.
11844 * doc/frontends.texi (G++ and GCC): Don't mention treelang.
11846 2008-03-06 Paolo Bonzini <bonzini@gnu.org>
11848 * simplify-rtx.c (simplify_subreg): Remove useless shifts from
11849 word-extractions out of a multi-word object.
11851 2008-03-06 Richard Guenther <rguenther@suse.de>
11853 * tree.def (BIT_FIELD_REF): Constrain result type and its precision.
11854 * tree-cfg.c (verify_expr): Verify BIT_FIELD_REF constraints on
11855 result type and precision.
11856 * expr.c (get_inner_reference): Set unsignedp based on the result
11857 type of BIT_FIELD_REF.
11858 * tree.h (BIT_FIELD_REF_UNSIGNED): Remove.
11859 * tree-sra.c (instantiate_element): Do not set BIT_FIELD_REF_UNSIGNED.
11860 (try_instantiate_multiple_fields): Likewise. Use the correct type
11862 (sra_build_assignment): Likewise.
11863 (sra_build_elt_assignment): Likewise.
11864 (sra_explode_bitfield_assignment): Likewise.
11865 * print-tree.c (print_node): Do not check BIT_FIELD_REF_UNSIGNED.
11866 * tree-vect-transform.c (vect_create_epilog_for_reduction): Do not
11867 set BIT_FIELD_REF_UNSIGNED.
11868 (vectorizable_load): Likewise.
11870 2008-03-06 Andreas Krebbel <krebbel1@de.ibm.com>
11872 * cse.c (cse_extended_basic_block): Invalidate artificial defs
11875 2008-03-06 Richard Guenther <rguenther@suse.de>
11877 * alias.c (struct alias_set_entry): Move has_zero_child field
11878 to pack with alias_set.
11880 2008-03-05 H.J. Lu <hongjiu.lu@intel.com>
11882 * config/i386/i386-modes.def: Use 4 byte alignment on DI for
11885 2008-03-05 Ian Lance Taylor <iant@google.com>
11887 * alias.h (alias_set_type): Change from HOST_WIDE_INT to int.
11889 2008-03-05 Kenneth Zadeck <zadeck@naturalbridge.com>
11891 * fwprop.c (update_df): Support width and offset parameters of
11893 * ra-conflict.c (mark_reg_store, clear_reg_in_live,
11894 global_conflicts): Change DF_REF_EXTRACT to either
11895 DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT. Change
11896 DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
11897 * df-scan.c (df_ref_record, df_defs_record,
11898 df_ref_create_structure, df_def_record_1, df_uses_record,
11899 df_get_conditional_uses, df_get_call_refs, df_insn_refs_collect,
11900 df_bb_refs_collect, df_entry_block_defs_collect,
11901 df_exit_block_uses_collect): Support new width and offset fields.
11902 (ref_extract_pool): New storage pool.
11903 (df_free_ref): New function.
11904 (df_reg_chain_unlink, df_free_collection_rec,
11905 df_sort_and_compress_refs): Call df_free_ref.
11906 (df_ref_equal_p, df_ref_compare): Compare offset and width fields
11908 (df_ref_create_structure): Allocate df_ref_extract if offset and
11909 width fields are used.
11910 (df_def_record_1): Get offset and width from ZERO_EXTRACT.
11911 (df_uses_record): Get offset and width from ZERO_EXTRACT
11913 * global.c (build_insn_chain): Change DF_REF_EXTRACT to either
11914 DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT. Change
11915 DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
11916 * df.h (df_ref_flags): Change DF_REF_EXTRACT to either
11917 DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT. Change
11918 DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
11919 (df_ref_extract): New structure.
11920 (DF_REF_WIDTH, DF_REF_OFFSET): New macros.
11921 (df_ref_create): Add width and offset parameters.
11923 2008-03-05 Richard Guenther <rguenther@suse.de>
11925 * tree-ssa-structalias.c (get_constraint_for_component_ref):
11926 Use ranges_overlap_p.
11927 (offset_overlaps_with_access): Rename
11928 to ranges_overlap_p and move ...
11929 * tree-flow-inline.h (ranges_overlap_p): ... here.
11931 * tree.h (get_inner_reference, handled_component_p): Update
11934 * tree.h (record_component_aliases, get_alias_set,
11935 alias_sets_conflict_p, alias_sets_must_conflict_p,
11936 objects_must_conflict_p): Move declarations ...
11937 * alias.h (record_component_aliases, get_alias_set,
11938 alias_sets_conflict_p, alias_sets_must_conflict_p,
11939 objects_must_conflict_p): ... here.
11940 Include coretypes.h.
11941 * Makefile.in (ALIAS_H): Add coretypes.h dependency.
11943 2008-03-05 Aldy Hernandez <aldyh@redhat.com>
11945 * cfg.c: Include tree-flow.h.
11946 (remove_edge_raw): Call redirect_edge_var_map_clear.
11947 (redirect_edge_succ_nodup): Call redirect_edge_var_map_dup.
11948 * tree-flow-inline.h (redirect_edge_var_map_def): New.
11949 (redirect_edge_var_map_result): New.
11950 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Replace
11951 PENDING_STMT use with redirect_edge_var_map_*.
11952 * tree-ssa.c (edge_var_maps): New definition.
11953 (redirect_edge_var_map_add): New.
11954 (redirect_edge_var_map_clear): New.
11955 (redirect_edge_var_map_dup): New.
11956 (redirect_edge_var_map_vector): New.
11957 (redirect_edge_var_map_destroy): New.
11958 (ssa_redirect_edge): Replace PENDING_STMT use with
11959 redirect_edge_var_map_*.
11960 (flush_pending_stmts): Same.
11961 (delete_tree_ssa): Destroy edge var map.
11962 * tree-flow.h (struct _edge_var_map): New.
11963 Define edge_var_map vector type.
11964 Declare redirect_edge_var_map_* prototypes.
11965 * Makefile.in (cfg.o): Depend on TREE_FLOW_H.
11966 * tree-cfg.c (reinstall_phi_args): Replace
11967 PENDING_STMT use with redirect_edge_var_map_*.
11969 2008-03-05 Richard Guenther <rguenther@suse.de>
11971 PR tree-optimization/35472
11972 * tree-ssa-dse.c (dse_optimize_stmt): Do not delete a store
11973 whose single use_stmt has a overlapping set of loaded and
11974 stored symbols as that use_stmt might be a noop assignment then.
11976 2008-03-05 Joel Sherrill <joel.sherrill@oarcorp.com>
11978 * gthr-rtems.h: Implement __gthread_mutex_destroy.
11980 2008-03-05 Richard Guenther <rguenther@suse.de>
11983 * tree.def (BIT_FIELD_REF): Document that operands 1 and 2
11984 should be constants.
11985 * tree-cfg.c (verify_expr): Verify it.
11986 * fold-const.c (fold_truthop): Remove code generating
11987 BIT_FIELD_REFs of structure bases.
11988 (fold_binary): Likewise.
11989 (fold_ternary): Position and size of BIT_FIELD_REFs are
11990 always host integers.
11991 (make_bit_field_ref): Remove.
11992 (optimize_bit_field_compare): Remove.
11993 (all_ones_mask_p): Remove.
11995 2008-03-05 Gabor Loki <loki@gcc.gnu.org>
11998 * rtl-factoring.c (clear_regs_live_in_seq): Fix backward steps.
11999 (split_block_and_df_analyze): New. Split basic block and rebuild
12001 (block_label_after): Use SPLIT_BLOCK_AND_DF_ANALYZE instead of
12003 (split_pattern_seq): Likewise.
12004 (erase_matching_seqs): Likewise.
12005 (split_pattern_seq): Skip return insn in case of REG_NORETURN note.
12007 2008-03-04 Geoff Keating <geoffk@apple.com>
12009 * fold-const.c (tree_single_nonnegative_warnv_p): Fix mixed
12010 declaration and code.
12011 (tree_invalid_nonnegative_warnv_p): Likewise.
12013 2008-03-05 Serge Belyshev <belyshev@depni.sinp.msu.ru>
12015 * doc/install.texi (Testing): Correct quoting for the RUNTESTFLAGS
12016 examples. Truncate option-names then causing overfull hbox.
12018 2008-03-04 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12021 * configure.ac (CONFIG_SJLJ_EXCEPTIONS): Force SJLJ exceptions
12023 * configure: Rebuilt.
12025 2008-03-04 Rafael Espindola <espindola@google.com>
12027 * fold-const.c (tree_simple_nonnegative_warnv_p): New.
12028 (tree_unary_nonnegative_warnv_p): New.
12029 (tree_binary_nonnegative_warnv_p): New.
12030 (tree_single_nonnegative_warnv_p): New.
12031 (tree_invalid_nonnegative_warnv_p): New.
12032 (tree_expr_nonnegative_warnv_p): Redefine in term of the new functions.
12034 2008-03-04 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
12037 * opts.c (handle_option): Postpone 'unknown option' errors only for
12040 2008-03-04 H.J. Lu <hongjiu.lu@intel.com>
12043 * config/i386/smmintrin.h (SIDD_XXX): Renamed to ...
12046 2008-03-04 Rafael Espindola <espindola@google.com>
12048 * fold-const.c (tree_unary_nonzero_warnv_p): New.
12049 (tree_binary_nonzero_warnv_p): New.
12050 (tree_single_nonzero_warnv_p): New.
12051 (tree_expr_nonzero_warnv_p): Redefine using the new functions.
12053 2008-03-04 Uros Bizjak <ubizjak@gmail.com>
12055 PR middle-end/35456
12056 * fold-const.c (fold_cond_expr_with_comparison): Prevent
12057 transformations for modes that have signed zeros.
12058 * ifcvt.c (noce_try_abs): Ditto.
12060 2008-03-04 Joseph Myers <joseph@codesourcery.com>
12062 * config/i386/i386.c (override_options): Force
12063 -maccumulate-outgoing-args on if TARGET_STACK_PROBE.
12065 2008-03-04 Jan Hubicka <jh@suse.cz>
12068 * ipa-inline.c (cgraph_decide_inlining_of_small_function): Fix typo
12071 2008-03-04 Danny Smith <dannysmith@users.sourceforge.net>
12073 * config/i386/i386.md (allocate_stack_worker_32): Use __chkstk
12074 label to probe the stack.
12076 2008-03-04 Danny Smith <dannysmith@users.sourceforge.net>
12078 * gthr-win32.h [__GTHREAD_HIDE_WIN32API]
12079 (__gthr_win32_mutex_destroy): Declare.
12080 [__GTHREAD_HIDE_WIN32API] (__gthread_mutex_destroy): Use
12081 __gthr_win32_mutex_destroy.
12082 * config/i386/gthr-win32.c (__gthr_win32_mutex_destroy): Define.
12084 2008-03-03 Jan Hubicka <jh@suse.cz>
12087 * ipa-inline.c (cgraph_decide_inlining_of_small_function): Be more
12088 aggressive on inlining cold calls.
12090 2008-03-03 Richard Guenther <rguenther@suse.de>
12092 * tree-ssa-sccvn.c (visit_reference_op_store): Do not insert
12093 struct copies into the expression table.
12094 (simplify_unary_expression): Handle VIEW_CONVERT_EXPR.
12095 (try_to_simplify): Likewise.
12096 * fold-const.c (fold_unary): Fold VIEW_CONVERT_EXPR of
12097 integral and pointer arguments which do not change the
12098 precision to NOP_EXPRs.
12099 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Adjust
12100 VIEW_CONVERT_EXPR case.
12102 2008-03-02 Sebastian Pop <sebastian.pop@amd.com>
12104 * tree-scalar-evolution.c (instantiate_parameters_1): An SSA_NAME
12105 defined in a loop at depth 0 is invariant.
12106 * tree-chrec.c (evolution_function_is_invariant_rec_p): Ditto.
12107 * tree-ssa-loop-ivopts.c (expr_invariant_in_loop_p): Should never
12108 be called at loop depth 0.
12110 2008-03-02 Jakub Jelinek <jakub@redhat.com>
12113 * gcc.c (process_command): Update copyright notice dates.
12114 * gcov.c (print_version): Likewise.
12115 * gcov-dump.c (print_version): Likewise.
12116 * mips-tfile.c (main): Likewise.
12117 * mips-tdump.c (main): Likewise.
12119 2008-03-02 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
12122 * c-common.c (flag_permissive): Delete.
12123 (constant_expression_warnings): Check flags first.
12124 (constant_expression_error): New.
12125 * c-common.h (flag_permissive): Delete.
12126 (constant_expression_error): Declare.
12127 * flags.h (flag_permissive): Declare. Update description.
12128 * diagnostic.c (pedwarn): Update.
12130 * diagnostic.h: (pedantic_error_kind): Rename as pedantic_warning_kind.
12131 (permissive_error_kind): New.
12132 * toplev.c (flag_permissive): Define. Update description.
12133 * toplev.h (permissive_error_kind): Declare.
12134 * c-errors.c (pedwarn_c99): Use pedantic_warning_kind.
12135 (pedwarn_c90): Use pedantic_warning_kind.
12136 * c-opts.c (c_common_post_options): flag_permissive does not affect
12137 flag_pedantic_errors.
12139 2008-03-02 Joseph Myers <joseph@codesourcery.com>
12141 * libgcc2.c (__addvSI3, __addvsi3, __addvDI3, __subvSI3,
12142 __subvsi3, __subvDI3, __negvSI2, __negvsi2, __negvDI2, __absvSI2,
12143 __absvsi2, __absvDI2): Use unsigned arithmetic.
12145 2008-03-02 Andi Kleen <ak@suse.de>
12146 Richard Guenther <rguenther@suse.de>
12148 * struct-equiv.c: Remove file.
12149 * cfg_cleanup.c (condjump_equiv_p): Remove.
12150 * Makefile.in (OBJS-common): Remove struct-equiv.o.
12151 (struct-equiv.o): Remove rule.
12152 * basic-block.h (struct_equiv_checkpoint, STRUCT_EQUIV_*,
12153 insns_match_p, struct_equiv_block_eq, struct_equiv_init,
12154 rtx_equiv_p, condjump_equiv_p): Remove prototypes.
12156 2008-03-01 Alexandre Oliva <aoliva@redhat.com>
12158 * ifcvt.c (noce_process_if_block): Try to handle only the then
12159 block if the else block exists but isn't suitable.
12161 2008-03-01 Janne Blomqvist <jb@gcc.gnu.org>
12164 * gthr-posix.h (__gthread_mutex_destroy): Remove extra declarations.
12165 * gthr-posix95.h (__gthread_mutex_destroy): Likewise. Note this fixes
12166 regression from previous patch.
12168 2008-03-01 Janne Blomqvist <jb@gcc.gnu.org>
12171 * gthr.h: Add __gthread_mutex_destroy as a function that must be
12173 * gthr-vxworks.h (__gthread_mutex_destroy): Null implementation.
12174 * gthr-single.h (__gthread_mutex_destroy): Likewise.
12175 * gthr-rtems.h (__gthread_mutex_destroy): Likewise.
12176 * gthr-mipssde.h (__gthread_mutex_destroy): Likewise.
12177 * gthr-nks.h (__gthread_mutex_destroy): Likewise.
12178 * gthr-solaris.h (__gthread_mutex_destroy): Call mutex_destroy.
12179 * gthr-win32.h (__GTHREAD_MUTEX_DESTROY_FUNCTION): Remove.
12180 (__gthread_mutex_destroy_function): Rename to
12181 __gthread_mutex_destroy.
12182 * gthr-dce.h (__gthread_mutex_destroy): Call
12183 pthread_mutex_destroy.
12184 * gthr-tpf.h (__gthread_mutex_destroy): Likewise.
12185 * gthr-posix.h (__gthread_mutex_destroy): Likewise.
12186 * gthr-posix95.h (__gthread_mutex_destroy): Likewise.
12188 2008-03-01 Alexandre Oliva <aoliva@redhat.com>
12190 * df-scan.c (df_ref_chain_change_bb): Simplify.
12191 (df_insn_change_bb): Add new_bb argument. Simplify. Call
12192 set_block_for_insn if there's any change.
12193 * df.h ((df_insn_change_bb): Fix prototype.
12194 * cfgrtl.c (update_bb_for_insn_chain): Pass bb to
12195 df_insn_change_bb, don't call set_block_for_insn.
12196 * emit-rtl.c (reorder_insns): Likewise.
12197 * haifa-sched.c (move_insn): Likewise.
12199 2008-03-01 Alexandre Oliva <aoliva@redhat.com>
12201 * rtlanal.c (loc_mentioned_in_p): Test XVECEXPs correctly.
12203 2008-03-01 Alexandre Oliva <aoliva@redhat.com>
12205 * tree-flow-inline.h (next_readonly_imm_use): Return
12206 NULL_USE_OPERAND_P after the end.
12208 2008-03-01 Richard Guenther <rguenther@suse.de>
12210 PR tree-optimization/35411
12211 * tree-sra.c (sra_build_assignment): Split conversion to
12212 final type to a separate statement if we are not assigning
12215 2008-02-29 Francois-Xavier Coudert <coudert@clipper.ens.fr>
12217 * fold-const.c (fold_convertible_p): Correct the logic to follow
12218 that in fold_convert().
12220 2008-02-29 Douglas Gregor <doug.gregor@gmail.com>
12223 * tree-inline.c (build_duplicate_type): When we make a
12224 duplicate type, make it unique in the canonical types system.
12226 2008-02-29 Tom Tromey <tromey@redhat.com>
12228 * toplev.c (input_file_stack, input_file_stack_tick, fs_p,
12229 input_file_stack_history, input_file_stack_restored): Remove.
12230 (push_srcloc, pop_srcloc, restore_input_file_stack): Likewise.
12231 * input.h (struct file_stack): Remove.
12232 (push_srcloc, pop_srcloc, restore_input_file_stack): Likewise.
12233 (input_file_stack, input_file_stack_tick, INPUT_FILE_STACK_BITS):
12235 * diagnostic.h (struct diagnostic_context) <last_module>: Change
12237 (diagnostic_last_module_changed): Add 'map' argument.
12238 (diagnostic_set_last_function): Likewise.
12239 * diagnostic.c (undiagnostic_report_current_module): Iterate using
12240 line map, not input_file_stack.
12241 * c-lex.c (fe_file_change): Don't use push_srcloc or pop_srcloc.
12243 2008-02-29 Paul Brook <paul@codesourcery.com>
12245 * config/arm/arm.md (arm_addsi3): Add r/k/n alternative.
12247 2008-02-29 Paul Brook <paul@codesourcery.com>
12249 * config/arm/ieee754-df.S (muldf3): Use RET macros.
12251 2008-02-29 Richard Guenther <rguenther@suse.de>
12253 * tree-ssa-pre.c (get_sccvn_value): Create missing VNs via
12255 * tree-ssa-sccnv.c (visit_reference_op_store): Use the rhs
12256 value for comparing for a store match.
12257 (simplify_unary_expression): Do nothing for SSA_NAMEs.
12258 (try_to_simplify): Do not do a full-blown reference lookup.
12260 2008-02-29 Kaz Kojima <kkojima@gcc.gnu.org>
12262 * config/sh/sh.c (sh_scalar_mode_supported_p): New function.
12263 (TARGET_SCALAR_MODE_SUPPORTED_P): Define.
12265 * config/sh/sh.h (OVERRIDE_OPTIONS): Don't warn for profiling.
12267 2008-02-29 Sebastian Pop <sebastian.pop@amd.com>
12269 * tree-loop-linear.c (try_interchange_loops): Compare memory access
12270 strides against cache sizes.
12272 2008-02-29 Kaz Kojima <kkojima@gcc.gnu.org>
12274 * config/sh/sh.c (sh_secondary_reload): Handle loading a float
12277 2008-02-28 Richard Sandiford <rsandifo@nildram.co.uk>
12279 * simplify-rtx.c (simplify_unary_operation_1): Extend the handling
12280 of SUBREG_PROMOTED_VAR_P to cope with cases where the extended value
12281 is smaller than the original promoted value.
12282 (simplify_subreg): If OP is a SUBREG, try to preserve its
12283 SUBREG_PROMOTED_VAR_P information.
12285 2008-02-28 Steven Bosscher <stevenb.gcc@gmail.com>
12287 * tree-ssa-sccvn (vn_ssa_aux_obstack): New obstack.
12288 (VN_INFO_GET): Allocate new objects on the obstack.
12289 (init_scc_vn): Initialize the obstack. Use XDELETE instead of free
12290 for rpo_numbers_temp, for consistency.
12291 (free_scc_vn): Free the obstack.
12293 2008-02-28 Sebastian Pop <sebastian.pop@amd.com>
12295 * doc/invoke.texi: Document -ftree-loop-distribution.
12296 * tree-loop-distribution.c: New.
12297 * tree-pass.h (pass_loop_distribution): New.
12298 * graphds.h (struct graph): Add htab_t indices.
12299 * timevar.def (TV_TREE_LOOP_DISTRIBUTION): New.
12300 * tree-vectorizer.c (rename_variables_in_loop): Extern.
12301 (slpeel_tree_duplicate_loop_to_edge_cfg): Init PENDING_STMT to NULL.
12302 * tree-vectorizer.h (tree_duplicate_loop_on_edge): Declared.
12303 * tree-data-ref.c (debug_data_dependence_relations): New.
12304 (dump_data_dependence_relation): Also print data references.
12305 (free_data_ref): Extern.
12306 (same_access_functions): Moved...
12307 (find_vertex_for_stmt): Renamed rdg_vertex_for_stmt.
12308 (dump_rdg_vertex, debug_rdg_vertex, dump_rdg_component,
12309 debug_rdg_component, dump_rdg, debug_rdg, dot_rdg_1, dot_rdg,
12310 struct rdg_vertex_info, rdg_vertex_for_stmt): New.
12311 (create_rdg_edge_for_ddr, create_rdg_vertices): Cleaned up.
12312 (stmts_from_loop): Skip LABEL_EXPR.
12313 (hash_stmt_vertex_info, eq_stmt_vertex_info, hash_stmt_vertex_del):
12315 (build_rdg): Initialize rdg->indices htab.
12316 (free_rdg, stores_from_loop, ref_base_address,
12317 rdg_defs_used_in_other_loops_p, have_similar_memory_accesses,
12318 have_similar_memory_accesses_1, ref_base_address_1,
12319 remove_similar_memory_refs): New.
12320 * tree-data-ref.h: Depend on tree-chrec.h.
12321 (debug_data_dependence_relations, free_data_ref): Declared.
12322 (same_access_functions): ... here.
12323 (ddr_is_anti_dependent, ddrs_have_anti_deps, ddr_dependence_level):
12325 (struct rdg_vertex): Add has_mem_write and has_mem_reads.
12326 (RDGV_HAS_MEM_WRITE, RDGV_HAS_MEM_READS, RDG_STMT,
12327 RDG_MEM_WRITE_STMT, RDG_MEM_READS_STMT): New.
12328 (dump_rdg_vertex, debug_rdg_vertex, dump_rdg_component,
12329 debug_rdg_component, dump_rdg, debug_rdg, dot_rdg,
12330 rdg_vertex_for_stmt): Declared.
12331 (struct rdg_edge): Add level.
12333 (free_rdg, stores_from_loop, remove_similar_memory_refs,
12334 rdg_defs_used_in_other_loops_p, have_similar_memory_accesses):
12336 (rdg_has_similar_memory_accesses): New.
12337 * tree-vect-analyze.c: Remove unused static decls.
12338 * lambda.h (dependence_level): New.
12339 * common.opt (ftree-loop-distribution): New.
12340 * tree-flow.h (mark_virtual_ops_in_bb,
12341 slpeel_tree_duplicate_loop_to_edge_cfg,
12342 rename_variables_in_loop): Declared.
12343 * Makefile.in (TREE_DATA_REF_H): Depend on tree-chrec.h.
12344 (OBJS-common): Add tree-loop-distribution.o.
12345 (tree-loop-distribution.o): New rule.
12346 * tree-cfg.c (mark_virtual_ops_in_bb): New.
12347 (mark_virtual_ops_in_region): Use mark_virtual_ops_in_bb.
12348 * passes.c (init_optimization_passes): Schedule pass_loop_distribution.
12350 2008-02-28 Joseph Myers <joseph@codesourcery.com>
12353 * tree.c (handle_dll_attribute): Disallow TYPE_DECLs for types
12354 other than structures and unions.
12356 2008-02-28 Richard Guenther <rguenther@suse.de>
12359 2008-02-26 Richard Guenther <rguenther@suse.de>
12361 * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
12362 * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
12363 (lookup_decl_from_uid): Declare.
12364 (remove_decl_from_map): Likewise.
12365 * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
12366 * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
12367 (decl_for_uid_map): New global hashtable mapping DECL_UID
12369 (init_ttree): Allocate it.
12370 (insert_decl_to_uid_decl_map): New helper function.
12371 (make_node_stat): Insert new decls into the map.
12372 (copy_node_stat): Likewise.
12373 (lookup_decl_from_uid): New function.
12374 (remove_decl_from_map): Likewise.
12375 (print_decl_for_uid_map_statistics): New helper.
12376 (dump_tree_statistics): Call it.
12378 * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
12379 (referenced_var_iterator): Adjust.
12380 (FOR_EACH_REFERENCED_VAR): Adjust.
12381 (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
12382 (num_referenced_vars): Adjust.
12383 * tree-flow-inline.h (gimple_referenced_vars): Adjust.
12384 (first_referenced_var): Remove.
12385 (end_referenced_vars_p): Likewise.
12386 (next_referenced_var): Likewise.
12387 (referenced_var_iterator_set): New helper function.
12388 * tree-dfa.c (referenced_var_lookup): Adjust.
12389 (referenced_var_check_and_insert): Likewise.
12390 (remove_referenced_var): Likewise.
12391 * tree-ssa.c (verify_flow_insensitive_alias_info): Use
12392 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
12393 (verify_call_clobbering): Likewise.
12394 (verify_memory_partitions): Likewise.
12395 (init_tree_ssa): Allocate bitmap instead of hashtable for
12397 (delete_tree_ssa): Adjust.
12398 * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
12399 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
12400 (compute_tag_properties): Likewise.
12401 (set_initial_properties): Likewise.
12402 (find_partition_for): Likewise.
12403 (update_reference_counts): Likewise.
12404 (dump_may_aliases_for): Likewise.
12405 * tree-ssa-operands.c (add_virtual_operand): Likewise.
12406 (add_call_clobber_ops): Likewise.
12407 (add_call_read_ops): Likewise.
12408 (get_asm_expr_operands): Likewise.
12409 * tree-into-ssa.c (dump_decl_set): Likewise.
12410 (update_ssa): Likewise.
12411 * tree-sra.c (scan_function): Likewise.
12412 (decide_instantiations): Likewise.
12413 (scalarize_parms): Likewise.
12414 * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
12415 (dsa_named_for): Likewise.
12416 * tree-ssa-structalias.c (update_alias_info): Likewise.
12417 (merge_smts_into): Likewise.
12419 2008-02-27 David Daney <ddaney@avtrex.com>
12422 * config/mips/iris.h (MIPS_DEBUGGING_INFO): Define.
12423 * config/mips/openbsd.h (MIPS_DEBUGGING_INFO): Same.
12424 * config/mips/sde.h (MIPS_DEBUGGING_INFO): Remove undef.
12425 * config/mips/vxworks.h (MIPS_DEBUGGING_INFO): Same.
12426 * config/mips/mips.h (MIPS_DEBUGGING_INFO): Remove define.
12428 2008-02-27 Uros Bizjak <ubizjak@gmail.com>
12431 * config/darwin-ppc-ldouble-patch.def (BUILT_IN_NANL): Add.
12432 (BUILT_IN_NEXTTOWARD): Remove.
12433 (BUILT_IN_NEXTTOWARDF): Ditto.
12434 * config/darwin.c (darwin_patch_builtin): Use ACONCAT instead of
12435 alloca/strcpy/strcat. Remove commented-out code. Fix whitespace.
12437 2008-02-27 Tom Tromey <tromey@redhat.com>
12439 * tree-dump.c (dequeue_and_dump) <FUNCTION_DECL>: Check
12440 DECL_SAVED_TREE, not DECL_LANG_SPECIFIC, when dumping body.
12442 2008-02-27 Jan Beulich <jbeulich@novell.com>
12444 * c-decl.c (merge_decls): Use DECL_USER_ALIGN() on olddecl to
12445 update the respective field on newdecl.
12447 2008-02-27 Revital Eres <eres@il.ibm.com>
12449 PR rtl-optimization/34999
12450 * bb-reorder.c (add_labels_and_missing_jumps): Do not handle
12451 crossing edges that ends with a call insn.
12452 (fix_up_fall_thru_edges): Handle crossing edges that ends with a
12453 call insn and clear the EDGE_CROSSING flag of the crossing edge
12454 when fixing fallthru edges.
12456 2008-02-27 Richard Guenther <rguenther@suse.de>
12458 PR middle-end/35390
12459 * fold-const.c (fold_unary): Return the correct argument,
12460 converted to the result type.
12462 2008-02-27 Richard Guenther <rguenther@suse.de>
12464 PR middle-end/34971
12465 * expr.c (expand_expr_real_1): Assert on rotates that operate
12467 * fold-const.c (fold_binary): Use the types precision, not the
12468 bitsize of the mode if folding rotate expressions. Build rotates
12469 only for full modes.
12471 2008-02-27 Jakub Jelinek <jakub@redhat.com>
12473 * c-ppoutput.c (scan_translation_unit): Handle CPP_PRAGMA
12474 and CPP_PRAGMA_EOL.
12475 * c-pragma.c (pragma_ns_name): New typedef.
12476 (registered_pp_pragmas): New variable.
12477 (c_pp_lookup_pragma): New function.
12478 (c_register_pragma_1): If flag_preprocess_only, do nothing
12479 for non-expanded pragmas, for expanded ones push pragma's
12480 namespace and name into registered_pp_pragmas vector.
12481 (c_invoke_pragma_handler): Register OpenMP pragmas even when
12482 flag_preprocess_only, don't register GCC pch_preprocess
12483 pragma if flag_preprocess_only.
12484 * c-opts.c (c_common_init): Call init_pragma even if
12485 flag_preprocess_only.
12486 * c-pragma.c (c_pp_lookup_pragma): New prototype.
12487 * config/darwin.h (DARWIN_REGISTER_TARGET_PRAGMAS): Don't call
12488 cpp_register_pragma if flag_preprocess_only.
12490 2008-02-26 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12493 * c-parser.c (c_parser_translation_unit): Warn for empty
12494 translation unit, not empty source file.
12496 2008-02-26 Paul Brook <paul@codesourcery.com>
12498 * config/arm/arm.c (thumb_set_frame_pointer): Ensure SP is first
12499 operand for Thumb-2.
12500 * config/arm/arm.h (reg_class): Add CORE_REGS.
12501 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Ditto.
12502 (BASE_REG_CLASS): Use CORE_REGS.
12503 (PREFERRED_RELOAD_CLASS): Add STACK_REG.
12504 (REGNO_MODE_OK_FOR_REG_BASE_P): Use REGNO_MODE_OK_FOR_BASE_P.
12505 (REGNO_OK_FOR_INDEX_P): Exclude SP.
12506 (ARM_REG_OK_FOR_INDEX_P): Always define. Use
12507 ARM_REGNO_OK_FOR_INDEX_P.
12508 (ARM_PRINT_OPERAND_ADDRESS): Swap operands for [reg, sp].
12509 * config/arm/arm.md (arm_addsi3, thumb1_addsi3, arm_subsi3_insn,
12510 arm_movsi_insn, thumb1_movsi_insni, stack_tie): Add "k" alternatives.
12511 (ldm/stm peepholes): Ditto.
12512 * config/arm/thumb2.md (thumb2_movdi): Add "k" alternatives.
12513 * config/arm/vfp.md (arm_movsi_vfp, thumb2_movsi_vfp): Ditto.
12514 * config/arm/iwmmxt.md (iwmmxt_movsi_insn): Ditto.
12515 * config/arm/constraints.md: Enable "k" constraint on ARM.
12517 2008-02-27 Ben Elliston <bje@au.ibm.com>
12519 * config/rs6000/rs6000.c: Annotate cache line size field in all
12520 instances of struct processor_costs.
12522 2008-02-26 David Edelsohn <edelsohn@gnu.org>
12524 * dbgcnt.def (cfg_cleanup, cprop1, cprop2, dce_fast, dce_ud, dse1,
12525 dse2, gcse, if_conversion, if_after_combine, if_after_reload,
12526 jump_bypass): New counters.
12527 * cfgcleanup.c (cleanup_cfg): Add dbg_cnt.
12528 * dce.c (gate_ud_dce): Same.
12529 (gate_fast_dce): Same.
12530 * dse.c (gate_dse1): New function.
12531 (gate_dse2): New function.
12532 (gate_dse): Merge results of new gate functions.
12533 * gcse.c (gcse_main): Bracket cprop1 and cprop2 with dbg_cnt.
12534 (gate_handle_jump_bypass): Add dbg_cnt.
12535 (gate_handle_gcse): Add dbg_cnt.
12536 * ifcvt.c (gate_handle_if_conversion): Same.
12537 (gate_handle_if_after_combine): Same.
12538 (gate_handle_if_after_reload): Same.
12539 * Makefile.in: Add DBGCNT_H to cfgcleanup.o and ifcvt.o.
12541 2008-02-26 Edmar Wienskoski <edmar@freescale.com>
12543 * config/rs6000/rs6000.c (processor_costs): Update e300 cache
12545 * doc/invoke.texi: Add e300c2 and e300c3 to list of cpus.
12547 2008-02-26 Jason Merrill <jason@redhat.com>
12550 * attribs.c (decl_attributes): Leave ATTR_FLAG_TYPE_IN_PLACE
12551 alone if it's the naming decl for the type's main variant.
12553 2008-02-26 Tom Tromey <tromey@redhat.com>
12555 * system.h (USE_MAPPED_LOCATION): Poison.
12556 * Makefile.in (GTFILES): Put CPP_ID_DATA_H first.
12557 * tree-cfg.c (make_cond_expr_edges): Remove old location code.
12558 (make_goto_expr_edges): Likewise.
12559 (remove_bb): Likewise.
12560 (execute_warn_function_return): Likewise.
12561 * basic-block.h (struct edge_def) <goto_locus>: Change type to
12563 * c-common.c (fname_decl): Remove old location code.
12564 * tree-vect-transform.c (vect_finish_stmt_generation): Remove old
12566 * rtl.h (ASM_OPERANDS_SOURCE_LOCATION): Remove old-location
12568 (ASM_INPUT_SOURCE_LOCATION): Likewise.
12569 (gen_rtx_ASM_INPUT): Likewise.
12570 (gen_rtx_ASM_INPUT_loc): Likewise.
12571 (get_rtx_asm_OPERANDS): Remove.
12572 * cfglayout.c (insn_locators_alloc): Remove old location code.
12573 (set_curr_insn_source_location): Likewise.
12574 (curr_insn_locator): Likewise.
12575 * print-tree.c (print_node): Remove old location code.
12576 * tree-mudflap.c (mf_varname_tree): Remove old location code.
12577 (mf_file_function_line_tree): Remove test of USE_MAPPED_LOCATION.
12578 * cfgexpand.c (expand_gimple_cond_expr): Don't use
12579 location_from_locus.
12580 (construct_exit_block): Remove old location code.
12581 * emit-rtl.c (force_next_line_note): Remove old location code.
12582 * profile.c (branch_prob): Remove old location code.
12583 * tree-vectorizer.h (LOC, UNKNOWN_LOC, EXPR_LOC, LOC_FILE,
12584 LOC_LINE): Remove old-location variants.
12585 * langhooks.c (lhd_print_error_function): Remove old location
12587 * configure, config.in: Rebuilt.
12588 * configure.ac (--enable-mapped-location): Remove.
12589 * c-decl.c (c_init_decl_processing): Remove old location code.
12590 (finish_function): Likewise.
12591 * recog.c (decode_asm_operands): Remove old location code.
12592 * c-pch.c (c_common_read_pch): Remove old location code.
12593 * rtl.def (ASM_INPUT, ASM_OPERANDS): Remove old location
12595 * gimple-low.c (lower_function_body): Remove old location code.
12596 * toplev.c (unknown_location): Remove.
12597 (push_srcloc): Remove old-location variant.
12598 (process_options): Remove old location code.
12599 (lang_dependent_init): Likewise.
12600 * input.h (UNKNOWN_LOCATION): Move definition.
12601 (location_t): Undeprecate.
12602 (source_locus): Remove.
12603 (location_from_locus): Remove.
12604 (struct location_s): Remove.
12605 Remove all old-location code.
12606 (input_line, input_filename): Remove.
12607 * final.c (final_scan_insn): Remove old location code.
12608 * diagnostic.c (diagnostic_build_prefix): Remove
12609 USE_MAPPED_LOCATION test.
12610 * tree.h (gimple_stmt) <locus>: Now a location_t.
12611 (tree_exp) <locus>: Likewise.
12612 (DECL_IS_BUILTIN): Remove old-location variant.
12613 (annotate_with_file_line, annotate_with_locus): Likewise.
12614 (expr_locus, set_expr_locus): Update.
12615 * tree.c (build1_stat): Remove old location code.
12616 (last_annotated_node): Remove.
12617 (annotate_with_file_line): Remove old-location variant.
12618 (annotate_with_locus): Likewise.
12619 (expr_location): Remove old location code.
12620 (set_expr_location): Likewise.
12621 (expr_has_location): Likewise.
12622 (expr_locus): Likewise.
12623 (set_expr_locus): Likewise.
12624 (expr_filename): Don't use location_from_locus.
12625 (expr_lineno): Likewise.
12626 * rtl-error.c (location_for_asm): Remove old location code.
12627 * c-lex.c (cb_line_change): Remove old location code.
12628 (fe_file_change): Likewise.
12629 (cb_def_pragma): Likewise.
12630 (c_lex_with_flags): Likewise.
12631 * gengtype.c (do_typedef): Don't special-case location types.
12632 (define_location_structures): Remove.
12633 (main): Don't call define_location_structures.
12634 * tree-pretty-print.c (dump_implicit_edges): Remove old location
12637 2008-02-26 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
12640 * builtins.def (BUILT_IN_STDARG_START): Remove.
12641 * builtins.c (expand_builtin): Remove BUILT_IN_STDARG_START.
12642 * tree-stdarg.c (execute_optimize_stdarg): Likewise.
12643 * tree-inline.c (inline_forbidden_p_1): Likewise.
12645 2008-02-26 Richard Guenther <rguenther@suse.de>
12647 * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
12648 * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
12649 (lookup_decl_from_uid): Declare.
12650 (remove_decl_from_map): Likewise.
12651 * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
12652 * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
12653 (decl_for_uid_map): New global hashtable mapping DECL_UID
12655 (init_ttree): Allocate it.
12656 (insert_decl_to_uid_decl_map): New helper function.
12657 (make_node_stat): Insert new decls into the map.
12658 (copy_node_stat): Likewise.
12659 (lookup_decl_from_uid): New function.
12660 (remove_decl_from_map): Likewise.
12661 (print_decl_for_uid_map_statistics): New helper.
12662 (dump_tree_statistics): Call it.
12664 * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
12665 (referenced_var_iterator): Adjust.
12666 (FOR_EACH_REFERENCED_VAR): Adjust.
12667 (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
12668 (num_referenced_vars): Adjust.
12669 * tree-flow-inline.h (gimple_referenced_vars): Adjust.
12670 (first_referenced_var): Remove.
12671 (end_referenced_vars_p): Likewise.
12672 (next_referenced_var): Likewise.
12673 (referenced_var_iterator_set): New helper function.
12674 * tree-dfa.c (referenced_var_lookup): Adjust.
12675 (referenced_var_check_and_insert): Likewise.
12676 (remove_referenced_var): Likewise.
12677 * tree-ssa.c (verify_flow_insensitive_alias_info): Use
12678 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
12679 (verify_call_clobbering): Likewise.
12680 (verify_memory_partitions): Likewise.
12681 (init_tree_ssa): Allocate bitmap instead of hashtable for
12683 (delete_tree_ssa): Adjust.
12684 * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
12685 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
12686 (compute_tag_properties): Likewise.
12687 (set_initial_properties): Likewise.
12688 (find_partition_for): Likewise.
12689 (update_reference_counts): Likewise.
12690 (dump_may_aliases_for): Likewise.
12691 * tree-ssa-operands.c (add_virtual_operand): Likewise.
12692 (add_call_clobber_ops): Likewise.
12693 (add_call_read_ops): Likewise.
12694 (get_asm_expr_operands): Likewise.
12695 * tree-into-ssa.c (dump_decl_set): Likewise.
12696 (update_ssa): Likewise.
12697 * tree-sra.c (scan_function): Likewise.
12698 (decide_instantiations): Likewise.
12699 (scalarize_parms): Likewise.
12700 * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
12701 (dsa_named_for): Likewise.
12702 * tree-ssa-structalias.c (update_alias_info): Likewise.
12703 (merge_smts_into): Likewise.
12705 2008-02-26 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
12708 * doc/invoke.texi (-Wall): Add -Wvolatile-register-var.
12709 * c-opts.c (c_common_handle_option): Wall enables
12710 Wvolatile-register-var.
12711 * common.opt: Move Wvolatile-register-var to...
12714 2008-02-26 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
12716 * common.opt (Wlarger-than=): New.
12717 * doc/invoke.texi (Warning Options): Replace -Wlarger-than- with
12719 * opts.c (common_handle_option): Handle -Wlarger-than=.
12720 * optc-gen.awk: Likewise.
12721 * opth-gen.awk: Likewise.
12722 * stor-layout.c (layout_decl): Use -Wlarger-than= for warning.
12723 * tree-optimize.c (tree_rest_of_compilation): Likewise.
12725 2008-02-26 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
12727 * c-common.c (match_case_to_enum_1): Add appropriate
12728 OPT_W* parameter to warning.
12729 (c_do_switch_warnings): Likewise.
12730 * c-typeck.c (warning_init): Add one more parameter following
12731 'warning' function.
12732 (push_init_level): Update call to warning_init.
12733 (pop_init_level): Likewise.
12734 (add_pending_init): Likewise.
12735 (output_init_element: Likewise.
12737 2008-02-26 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
12740 * toplev.c (toplev_main): If there are warnings or error, print
12741 errors for ignored options.
12742 * opts.c (ignored_options): New static variable.
12743 (postpone_unknown_option_error): New.
12744 (print_ignored_options): New.
12745 (handle_option): Postpone errors for unknown -Wno-* options.
12746 * opts.h (print_ignored_options): Declare.
12748 2008-02-25 Richard Sandiford <rsandifo@nildram.co.uk>
12750 * config/mips/mips.md (loadgp_blockage, blockage): Change type
12753 2008-02-25 Richard Guenther <rguenther@suse.de>
12756 2008-02-25 Richard Guenther <rguenther@suse.de>
12758 * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
12759 * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
12760 (lookup_decl_from_uid): Declare.
12761 * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
12762 * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
12763 (decl_for_uid_map): New global hashtable mapping DECL_UID
12765 (init_ttree): Allocate it.
12766 (insert_decl_to_uid_decl_map): New helper function.
12767 (make_node_stat): Insert new decls into the map.
12768 (copy_node_stat): Likewise.
12769 (lookup_decl_from_uid): New function.
12770 (print_decl_for_uid_map_statistics): New helper.
12771 (dump_tree_statistics): Call it.
12773 * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
12774 (referenced_var_iterator): Adjust.
12775 (FOR_EACH_REFERENCED_VAR): Adjust.
12776 (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
12777 (num_referenced_vars): Adjust.
12778 * tree-flow-inline.h (gimple_referenced_vars): Adjust.
12779 (first_referenced_var): Remove.
12780 (end_referenced_vars_p): Likewise.
12781 (next_referenced_var): Likewise.
12782 (referenced_var_iterator_set): New helper function.
12783 * tree-dfa.c (referenced_var_lookup): Adjust.
12784 (referenced_var_check_and_insert): Likewise.
12785 (remove_referenced_var): Likewise.
12786 * tree-ssa.c (verify_flow_insensitive_alias_info): Use
12787 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
12788 (verify_call_clobbering): Likewise.
12789 (verify_memory_partitions): Likewise.
12790 (init_tree_ssa): Allocate bitmap instead of hashtable for
12792 (delete_tree_ssa): Adjust.
12793 * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
12794 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
12795 (compute_tag_properties): Likewise.
12796 (set_initial_properties): Likewise.
12797 (find_partition_for): Likewise.
12798 (update_reference_counts): Likewise.
12799 (dump_may_aliases_for): Likewise.
12800 * tree-ssa-operands.c (add_virtual_operand): Likewise.
12801 (add_call_clobber_ops): Likewise.
12802 (add_call_read_ops): Likewise.
12803 (get_asm_expr_operands): Likewise.
12804 * tree-into-ssa.c (dump_decl_set): Likewise.
12805 (update_ssa): Likewise.
12806 * tree-sra.c (scan_function): Likewise.
12807 (decide_instantiations): Likewise.
12808 (scalarize_parms): Likewise.
12809 * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
12810 (dsa_named_for): Likewise.
12811 * tree-ssa-structalias.c (update_alias_info): Likewise.
12812 (merge_smts_into): Likewise.
12814 2008-02-25 Janne Blomqvist <jb@gcc.gnu.org>
12817 * doc/invoke.texi (-fcx-limited-range): Document new option.
12818 * toplev.c (process_options): Handle -fcx-fortran-rules.
12819 * common.opt: Add documentation for -fcx-fortran-rules.
12821 2008-02-25 Janne Blomqvist <jb@gcc.gnu.org>
12824 * doc/invoke.texi (-fcx-limited-range): Correct to be in line with
12825 actual behaviour and C99.
12827 2008-02-26 Ben Elliston <bje@au.ibm.com>
12829 * config/rs6000/rs6000.h (ASM_CPU_POWER5_SPEC): Define.
12830 (ASM_CPU_POWER6_SPEC): Likewise.
12831 (ASM_CPU_SPEC): Pass %(asm_cpu_power5) for -mcpu=power5.
12832 Likewise, pass %(asm_cpu_power6) for -mcpu=power6.
12833 (EXTRA_SPECS): Add asm_cpu_power5, asm_cpu_power6 spec strings.
12835 2008-02-25 Richard Guenther <rguenther@suse.de>
12837 * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
12838 * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
12839 (lookup_decl_from_uid): Declare.
12840 * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
12841 * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
12842 (decl_for_uid_map): New global hashtable mapping DECL_UID
12844 (init_ttree): Allocate it.
12845 (insert_decl_to_uid_decl_map): New helper function.
12846 (make_node_stat): Insert new decls into the map.
12847 (copy_node_stat): Likewise.
12848 (lookup_decl_from_uid): New function.
12849 (print_decl_for_uid_map_statistics): New helper.
12850 (dump_tree_statistics): Call it.
12852 * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
12853 (referenced_var_iterator): Adjust.
12854 (FOR_EACH_REFERENCED_VAR): Adjust.
12855 (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
12856 (num_referenced_vars): Adjust.
12857 * tree-flow-inline.h (gimple_referenced_vars): Adjust.
12858 (first_referenced_var): Remove.
12859 (end_referenced_vars_p): Likewise.
12860 (next_referenced_var): Likewise.
12861 (referenced_var_iterator_set): New helper function.
12862 * tree-dfa.c (referenced_var_lookup): Adjust.
12863 (referenced_var_check_and_insert): Likewise.
12864 (remove_referenced_var): Likewise.
12865 * tree-ssa.c (verify_flow_insensitive_alias_info): Use
12866 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
12867 (verify_call_clobbering): Likewise.
12868 (verify_memory_partitions): Likewise.
12869 (init_tree_ssa): Allocate bitmap instead of hashtable for
12871 (delete_tree_ssa): Adjust.
12872 * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
12873 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
12874 (compute_tag_properties): Likewise.
12875 (set_initial_properties): Likewise.
12876 (find_partition_for): Likewise.
12877 (update_reference_counts): Likewise.
12878 (dump_may_aliases_for): Likewise.
12879 * tree-ssa-operands.c (add_virtual_operand): Likewise.
12880 (add_call_clobber_ops): Likewise.
12881 (add_call_read_ops): Likewise.
12882 (get_asm_expr_operands): Likewise.
12883 * tree-into-ssa.c (dump_decl_set): Likewise.
12884 (update_ssa): Likewise.
12885 * tree-sra.c (scan_function): Likewise.
12886 (decide_instantiations): Likewise.
12887 (scalarize_parms): Likewise.
12888 * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
12889 (dsa_named_for): Likewise.
12890 * tree-ssa-structalias.c (update_alias_info): Likewise.
12891 (merge_smts_into): Likewise.
12893 2008-02-25 Andreas Krebbel <krebbel1@de.ibm.com>
12896 * cse.c (cse_insn): Avoid creation of overlapping MEMs.
12897 * alias.c (nonoverlapping_memrefs_p): Export for use in other modules.
12898 * alias.h (nonoverlapping_memrefs_p): Likewise.
12900 2008-02-25 Jan Beulich <jbeulich@novell.com>
12902 * Makefile.in: Also prefix uses of crt0.o and mcrt0.o with $(T).
12903 * config/i386/netware-libgcc.exp: Add __bswap?i2,
12904 __emultls_get_address, __emultls_register_common,
12905 __floatundi?f, and _Unwind_GetIPInfo.
12906 * config/i386/netware.c (gen_stdcall_or_fastcall_decoration):
12907 Sync with config/i386/winnt.c:gen_stdcall_or_fastcall_suffix().
12908 (gen_regparm_prefix): Likewise.
12909 (i386_nlm_encode_section_info): Sync with
12910 config/i386/winnt.c:i386_pe_encode_section_info().
12911 (i386_nlm_maybe_mangle_decl_assembler_name): New.
12912 i386_nlm_mangle_decl_assembler_name): New.
12913 (netware_override_options): New.
12914 * config/i386/netware.h (netware_override_options): Declare.
12915 (OVERRIDE_OPTIONS): Re-define to netware_override_options.
12916 (i386_nlm_mangle_decl_assembler_name): Declare.
12917 (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Define.
12919 2008-02-25 Ben Elliston <bje@au.ibm.com>
12922 * c-decl.c (grokdeclarator): Remove unused local variables
12923 `typedef_type' and `type_as_written'.
12925 (find_rarely_executed_basic_blocks_and_crossing_edges): Remove
12926 unused local variable `has_hot_blocks'.
12927 (fix_crossing_conditional_branches): Remove unused local variable
12930 2008-02-25 Uros Bizjak <ubizjak@gmail.com>
12932 PR middle-end/19984
12933 * builtins.def (BUILT_IN_NAN): Define as c99 builtin
12934 using DEF_C99_BUILTIN.
12935 (BUILT_IN_NANF): Ditto.
12936 (BUILT_IN_NANL): Ditto.
12938 2008-02-25 Ayal Zaks <zaks@il.ibm.com>
12939 Revital Eres <eres@il.ibm.com>
12941 * modulo-sched.c (calculate_must_precede_follow): Address TODO
12942 regarding the order of two dependent insns in the same row.
12944 2008-02-25 Eric Botcazou <ebotcazou@adacore.com>
12946 * stor-layout.c (layout_decl): Do not bump the alignment of a
12947 bit-field to more than byte alignment if it is packed.
12949 2008-02-24 David Edelsohn <edelsohn@gnu.org>
12951 * config/rs6000/rs6000.c (processor_costs): Add cache costs for
12954 2008-02-24 Diego Novillo <dnovillo@google.com>
12956 http://gcc.gnu.org/ml/gcc-patches/2008-02/msg01094.html
12959 * tree-vrp.c (vrp_evaluate_conditional): With
12960 -Wtype-limits, emit a warning when comparing against a
12961 constant outside the natural range of OP0's type.
12962 * c.opt (Wtype-limits): Move ...
12963 * common.opt (Wtype-limits): ... here.
12965 2008-02-24 Edmar Wienskoski <edmar@freescale.com>
12967 * config.gcc (powerpc*-*-*): Add new cores e300c2 and e300c3.
12968 * config/rs6000/e300c2c3.md: New file.
12969 * config/rs6000/rs6000.c (processor_costs): Add new costs for
12971 (rs6000_override_options): Add e300c2 and e300c3 cases to
12972 processor_target_table. Do not allow usage of Altivec or Spe
12973 with e300 cores. Initialize rs6000_cost for e300c2 and e300c3.
12974 (rs6000_issue_rate): Set issue rate for e300c2 and e300c3.
12975 * config/rs6000/rs6000.h (processor_type): Add
12976 PROCESSOR_PPCE300C2 and PROCESSOR_PPCE300C3.
12977 (ASM_CPU_SPEC): Add e300c2 and e300c3.
12978 * config/rs6000/rs6000.md (define_attr "cpu"): Add ppce300c2
12979 and ppce300c3. Include e300c2c3.md.
12981 2008-02-23 David Edelsohn <edelsohn@gnu.org>
12983 * config/rs6000/rs6000.h (CONSTANT_ALIGNMENT): Use STRICT_ALIGNMENT
12984 instead of TARGET_STRICT_ALIGN.
12986 2008-02-23 Joseph Myers <joseph@codesourcery.com>
12988 * explow.c (memory_address): Assert that the generated address is
12991 2008-02-23 Francois-Xavier Coudert <coudert@clipper.ens.fr>
12994 * config/darwin-protos.h: Add darwin_patch_builtins prototype.
12995 * config/darwin-ppc-ldouble-patch.def: New file.
12996 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): New macro.
12997 * config/rs6000/rs6000.c (rs6000_init_builtins): Call
12998 SUBTARGET_INIT_BUILTINS if defined.
12999 * config/darwin.c (darwin_patch_builtin, darwin_patch_builtins):
13002 2008-02-23 Andrew Pinski <andrew_pinski@playstation.sony.com>
13005 * simplify-rtx.c (simplify_binary_operation_1): Add simplification
13006 of (and X (ior (not X) Y) and (and (ior (not X) Y) X).
13008 2008-02-23 Andrew Pinski <andrew_pinski@playstation.sony.com>
13011 * c-pch.c (c_common_valid_pch): Make the "too short to be a PCH
13012 file" warning condtional on -Winvalid-PCH.
13014 2008-02-23 Daniel Jacobowitz <dan@codesourcery.com>
13016 * expmed.c (extract_bit_field): Always use adjust_address for MEM.
13018 2008-02-23 Uros Bizjak <ubizjak@gmail.com>
13022 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use "!y" to
13023 prevent reload from using MMX registers.
13024 (*mov<mode>_internal): Ditto.
13025 (*movv2sf_internal_rex64): Ditto.
13026 (*movv2sf_internal): Ditto.
13028 2008-02-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13030 PR documentation/31569
13031 * doc/install.texi2html: Use makeinfo --no-number-sections.
13033 2008-02-22 Nathan Froyd <froydnj@codesourcery.com>
13035 * config/rs6000/rs6000.c (rs6000_legitimize_address): Check to
13036 ensure that we can address an entire entity > 8 bytes. Don't
13037 generate reg+reg addressing for such data.
13039 2008-02-22 Nathan Froyd <froydnj@codesourcery.com>
13041 * config/rs6000/rs6000.h (CONSTANT_ALIGNMENT): Don't overalign
13042 strings when optimizing for size, unless the target cares about
13045 2008-02-22 Tom Tromey <tromey@redhat.com>
13047 * regclass.c (current_pass): Remove declaration.
13049 2008-02-22 Anatoly Sokolov <aesok@post.ru>
13051 * config/avr/libgcc.S (__RAMPZ__): Define.
13052 (__do_copy_data): Add for devices with 128KB code memory.
13054 2008-02-22 Nathan Froyd <froydnj@codesourcery.com>
13056 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS):
13058 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Likewise.
13060 2008-02-22 Hans-Peter Nilsson <hp@axis.com>
13062 * config/cris/cris.h (REG_CLASS_FROM_LETTER): Recognize 'b' for
13065 2008-02-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13068 * c-typeck.c (build_binary_op): Warn about floating point
13069 comparisons if FLOAT_TYPE_P, not only for REAL_TYPE.
13071 2008-02-21 Janis Johnson <janis187@us.ibm.com>
13074 * config/rs6000/rs6000.c (rs6000_altivec_abi): Clarify comment.
13075 (rs6000_explicit_options): Split abi into spe_abi and altivec_abi,
13077 (rs6000_override_options): Set altivec_abi as default, not override,
13078 for 64-bit GNU/Linux; for 32-bit GNU/Linux default to altivec_abi for
13079 TARGET_ALTIVEC; default to TARGET_ALTIVEC_VRSAVE when AltiVec ABI
13080 is used; use new member spe_abi.
13081 (rs6000_handle_option): Set rs6000_explicit_options.vrsave; use
13082 spe_abi and altivec_abi.
13084 2008-02-22 Tomas Bily <tbily@suse.cz>
13086 * tree-vectorizer.c (vect_is_simple_reduction): Fix comment typo.
13088 2008-02-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13091 * config.build (build_file_translate): Set to `CMD //c' only if
13093 * Makefile.in (build_file_translate): Improve comment.
13095 2008-02-21 Jan Hubicka <jh@suse.cz>
13097 * predict.def (PRED_TREE_OPCODE_POSITIVE, PRED_TREE_OPCODE_NONEQUAL,
13098 PRED_TREE_OPCODE_POSITIVE, PRED_TREE_OPCODE_NONEQUAL, PRED_CALL,
13099 PRED_TREE_EARLY_RETURN, PRED_NULL_RETURN): Update.
13101 2008-02-21 Michael Matz <matz@suse.de>
13104 * config/i386/i386.c (ix86_expand_branch): Add missing breaks.
13106 2008-02-21 Uros Bizjak <ubizjak@gmail.com>
13108 * config/i386/i386.md (mov<mode>cc): Macroize expander from movsfcc,
13109 movdfcc and movxfcc using X87MODEF mode iterator and SSE_FLOAT_MODE_P
13110 as insn constraint.
13111 * config/i386/sse.md (<sse>_movup<ssemodesuffixf2c>): Macroize insn
13112 from sse_movups adn sse2_movupd using SSEMODEF2P mode iterator and
13113 SSE_VEC_FLOAT_MODE_P as insn constraint.
13114 (<sse>_movmskp<ssemodesuffixf2c>): Ditto from similar patterns.
13115 (sse4a_movnt<mode>): Macroize insn from sse4a_movntsf and
13116 sse4a_movntdf using MODEF mode iterator.
13117 (sse4a_vmmovnt<mode>): Macroize insn form sse4a_vmmovntv2df and
13118 sse4a_vmmovntv4sf using SSEMODEF2P mode iterator.
13119 (sse4_1_blendp<ssemodesuffixf2c>): Ditto from similar patterns.
13120 (sse4_1_blendvp<ssemodesuffixf2c>): Ditto.
13121 (sse4_1_dpp<ssemodesuffixf2c>): Ditto.
13122 (sse4_1_roundp<ssemodesuffixf2c>): Ditto.
13123 (sse4_1_rounds<ssemodesuffixf2c>): Ditto.
13125 2008-02-21 Richard Guenther <rguenther@suse.de>
13127 * tree.def (PAREN_EXPR): New tree code.
13128 * fold-const.c (fold_unary): Remove PAREN_EXPR around constants
13130 * tree-pretty-print.c (dump_generic_node): Handle PAREN_EXPR.
13131 * expr.c (expand_expr_real_1): Likewise.
13132 * tree-inline.c (estimate_num_insns_1): Likewise.
13133 * tree-complex.c (expand_complex_move): Likewise.
13134 * tree-vectorizer.c (vect_is_simple_use): Treat PAREN_EXPR (x)
13137 2008-02-20 Kaz Kojima <kkojima@gcc.gnu.org>
13140 * config/sh/sh.c (find_barrier): Don't go past 'from' argument.
13142 2008-02-20 Kaz Kojima <kkojima@gcc.gnu.org>
13145 * config/sh/sh.md (jump_compact): Disable for crossing jumps.
13147 * config/sh/sh.c (find_barrier): Don't go past
13148 NOTE_INSN_SWITCH_TEXT_SECTIONS note.
13150 2008-02-20 DJ Delorie <dj@redhat.com>
13152 * config/h8300/h8300.md (insv): Force source operand to be a register.
13154 * config/h8300/h8300.c (h8300_expand_epilogue): Emit return insn
13155 as a jump, not as a plain insn.
13157 2008-02-20 Seongbae Park <seongbae.park@gmail.com>
13159 * doc/invoke.texi (Warning Options): Add new option
13160 -Wframe-larger-than=.
13161 (-Wframe-larger-than): Document.
13163 * flags.h (warn_frame_larger_than, frame_larger_than_size):
13164 Add declarations for new option variables.
13166 * final.c (final_start_function): Check the frame size
13167 before emission and issue a Wframe-larger-than warning.
13169 * opts.c (warn_frame_larger_than, frame_larger_than_size):
13170 Add definitions for new option variables.
13171 (common_handle_option): Handle new option OPT_Wframe_larger_than_.
13173 * common.opt (Wframe-larger-than=): New option.
13175 2008-02-20 Uros Bizjak <ubizjak@gmail.com>
13177 * config/i386/sse.md (<sse>_vmmul<mode>3): Fix typo in asm template.
13178 (<sse>_div<mode>3): Ditto.
13179 (<sse>_vmdiv<mode>3): Ditto.
13180 (<sse>_vmsqrt<mode>2): Ditto.
13181 (*smax<mode>3): Ditto.
13182 (sse5_frcz<mode>2): Ditto.
13183 (sse5_vmfrcz<mode>2): Ditto. Use TARGET_SSE5 instead of TARGET_ROUND
13184 as insn constraint.
13186 2008-02-20 Richard Guenther <rguenther@suse.de>
13188 PR middle-end/35265
13189 * builtins.c (validate_arg): If we want an INTEGER_TYPE,
13190 be happy with INTEGRAL_TYPE_P.
13192 2008-02-20 Richard Guenther <rguenther@suse.de>
13194 * fold-const.c (split_tree): Associate floatig-point expressions
13195 if flag_associative_math is set.
13197 2008-02-20 Richard Guenther <rguenther@suse.de>
13199 * tree.h (fold_real_zero_addition_p): Declare.
13200 * fold-const.c (fold_real_zero_addition_p): Export.
13201 * tree-ssa-reassoc.c (eliminate_using_constants): Also handle
13202 floating-point operations with zero and one.
13204 2008-02-20 Paolo Bonzini <bonzini@gnu.org>
13206 * doc/install.texi: Correct references to CFLAGS, replacing them
13207 with BOOT_CFLAGS. Document flags used during bootstrap for
13210 2008-02-20 Uros Bizjak <ubizjak@gmail.com>
13212 * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): New define.
13213 * config/i386/i386.md (*sse_setcc<mode>): Macroize from *sse_setccsf
13214 and *sse_setccdf using MODEF mode iterator and SSE_FLOAT_MODE_P as
13216 (smin<mode>3): Ditto from similar patterns.
13217 (smax<mode>3): Ditto.
13218 (*ieee_smin<mode>3): Ditto.
13219 (*ieee_smax<mode>3): Ditto.
13220 * config/i386/sse.md (sse): New mode attribute.
13221 (mov<mode>): Macroize expander from movv4sf and movv2df using
13222 SSEMODEF2P mode iterator.
13223 (<sse>_movnt<mode>): Ditto from similar patterns. Use
13224 SSE_VEC_FLOAT_MODE_P as insn constraint.
13225 (storent<mode>): Ditto.
13226 (storent<mode>): Macroize expander from storentsf and storentdf using
13227 MODEF mode iterator.
13228 (neg<mode>2): Macroize from negv4sf2 and negv2df2 using SSEMODEF2P
13229 mode iterator and SSE_VEC_FLOAT_MODE_P as insn constraint.
13230 (abs<mode>2): Ditto from similar patterns.
13231 (add<mode>3, *add<mode>3, <sse>_vmadd<mode>3): Ditto.
13232 (sub<mode>3, *sub<mode>3, <sse>_vmsub<mode>3): Ditto.
13233 (<sse>_div<mode>3, <sse>_vmdiv<mode>3): Ditto.
13234 (<sse>_vmsqrt<mode>2): Ditto.
13235 (smin<mode>3, *smin<mode>3_finite, *smin<mode>3)
13236 (<sse>_vmsmin<mode>3, *ieee_smin<mode>3): Ditto.
13237 (smax<mode>3, *smax<mode>3_finite, *smax<mode>3)
13238 (<sse>_vmsmax<mode>3, *ieee_smax<mode>3): Ditto.
13239 (<sse>_maskcmp<mode>3): Macroize from sse_maskcmpv4sf3,
13240 sse_maskcmpsf3, sse2_maskcmpv2df3 and sse2_maskcmpdf3 using SSEMODEF4
13241 mode iterator. Use SSE_FLOAT_MODE_P with SSE_VEC_FLOAT_MODE_P as
13243 (<sse>_comi): Macroize from sse_comi and sse2_comi using MODEF mode
13244 iterator and SSE_FLOAT_MODE_P as insn constraint.
13245 (<sse>_ucomi): Ditto from similar patterns.
13246 (<sse>_vmmaskcmp<mode>3): Macroize from sse_vmmaskcmpv4sf3 and
13247 sse2_vmmaskcmpv2df3 using SSEMODEF2P mode iterator and
13248 SSE_VEC_FLOAT_MODE_P as insn constraint.
13249 (vcond<mode>): Ditto from similar patterns.
13250 (and<mode>3, *and<mode>3): Ditto.
13251 (<sse>_nand<mode>3): Ditto.
13252 (ior<mode>3, *ior<mode>3): Ditto.
13253 (xor<mode>3, *xor<mode>3): Ditto.
13254 (*and<mode>3): Macroize from *andsf3 and *anddf3 using MODEF mode
13255 iterator and SSE_FLOAT_MODE_P as insn constraint.
13256 (*nand<mode>3): Ditto from similar patterns.
13257 (*ior<mode>3): Ditto.
13258 (*xor<mode>3): Ditto.
13260 2008-02-20 Ira Rosen <irar@il.ibm.com>
13262 * config/spu/spu.md (vec_unpacku_hi_v8hi, vec_unpacku_lo_v8hi,
13263 vec_unpacks_hi_v8hi, vec_unpacks_lo_v8hi, vec_unpacku_hi_v16qi,
13264 vec_unpacku_lo_v16qi, vec_unpacks_lo_v16qi): Implement.
13266 2008-02-19 Jan Hubicka <jh@suse.cz>
13268 * predict.c (tree_bb_level_predictions): Remove variable next
13269 mistakely introduced by previous commit.
13271 2008-02-19 Jan Hubicka <jh@suse.cz>
13273 * predict.c (predict_paths_leading_to): Rewrite.
13274 (predict_paths_for_bb): New.
13275 (tree_bb_level_predictions): Update call of predict_paths_leading_to.
13277 2008-02-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13280 * Makefile.in (build_file_translate): New.
13281 (gcc-vers.texi): Use it for translating $(abs_srcdir).
13282 * config.build (build_file_translate): Set to `CMD //c' on MinGW.
13283 * configure.ac (build_file_translate): Substitute it.
13284 * configure: Regenerate.
13286 2008-02-19 Jan Hubicka <jh@suse.cz>
13288 PR rtl-optimization/34408
13289 * see.c (see_def_extension_not_merged): Copy subreg so we don't have
13292 2008-02-19 Jan Hubicka <jh@suse.cz>
13294 PR middle-end/28779
13295 * tree-inline.c (estimate_num_insns_1): Fix counting of cost of
13298 2008-02-19 H.J. Lu <hongjiu.lu@intel.com>
13301 * config/i386/i386-modes.def: Revert the last DI alignment
13302 change until Ada people can look into it.
13304 2008-02-19 Nick Clifton <nickc@redhat.com>
13306 * opts.c (print_specific_help): Fix typo in --help text.
13308 2008-02-19 Jakub Jelinek <jakub@redhat.com>
13311 * config/i386/cpuid.h (__cpuid, __get_cpuid_max): Use special
13312 32-bit inline asm without asm alternatives for host GCC < 3.0.
13314 2008-02-19 Richard Guenther <rguenther@suse.de>
13316 PR tree-optimization/34989
13317 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Re-structure.
13318 Allow propagation to INDIRECT_REF if we can simplify only.
13320 2008-02-19 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
13322 * c-common.c (warn_for_collisions_1): Use appropriate option when
13325 2008-02-19 Nick Clifton <nickc@redhat.com>
13328 * opts.c (undocumented_msg): Leave blank unless checking is enabled.
13329 (handle_options): Fix indentation.
13330 (print_filtered_help): If no language-specific options were
13331 displayed tell the user how to list all the options supported by
13332 the language's front-end.
13333 (print_specific_help): Fix indentation and remove duplicate line.
13334 (common_handle_option): Handle the -v option.
13335 For --help enable the display of undocumented options if the -v
13336 switch has been included on the command line.
13337 For --help= check for overlaps in the arguments between the option
13338 classes and the language names and issue a warning when they
13339 cannot be disambiguated.
13340 * c.opt (v): Pass on to the common option handler.
13342 2008-02-19 Revital Eres <eres@il.ibm.com>
13344 * modulo-sched.c (sms_schedule): Change dump message when
13345 create_ddg function fails.
13346 (try_scheduling_node_in_cycle): Rename row to cycle.
13347 (print_partial_schedule): Rename CYCLE to ROW.
13349 2008-02-19 Christian Bruel <christian.bruel@st.com>
13350 Zdenek Dvorak <ook@ucw.cz>
13352 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Check step alignment.
13354 2008-02-19 Uros Bizjak <ubizjak@gmail.com>
13357 * config/i386/i386.md (*x86_movsicc_0_m1_se): New insn pattern.
13358 (*x86_movdicc_0_m1_se): Ditto.
13360 2008-02-19 Uros Bizjak <ubizjak@gmail.com>
13362 * config/i386/sfp-machine.h (__gcc_CMPtype): New typedef.
13363 (CMPtype): Define as __gcc_CMPtype.
13364 * config/rs6000/sfp-machine.h (__gcc_CMPtype): New typedef.
13365 (CMPtype): Define as __gcc_CMPtype.
13367 2008-02-19 Hans-Peter Nilsson <hp@axis.com>
13369 Support valgrind 3.3 for --enable-checking=valgrind.
13370 * system.h: Consolidate ENABLE_VALGRIND_CHECKING-dependent defines
13372 [!VALGRIND_MAKE_MEM_NOACCESS]: Define as VALGRIND_MAKE_NOACCESS.
13373 [!VALGRIND_MAKE_MEM_DEFINED]: Define as VALGRIND_MAKE_READABLE.
13374 [!VALGRIND_MAKE_MEM_UNDEFINED]: Define as VALGRIND_MAKE_WRITABLE.
13375 * ggc-common.c: Remove ENABLE_VALGRIND_CHECKING-dependent defines.
13376 Replace use of VALGRIND_MAKE_READABLE, VALGRIND_MAKE_WRITABLE, and
13377 VALGRIND_MAKE_NOACCESS with VALGRIND_MAKE_MEM_DEFINED,
13378 VALGRIND_MAKE_MEM_UNDEFINED, and VALGRIND_MAKE_MEM_NOACCESS
13380 * ggc-zone.c: Similar.
13381 * ggc-page.c: Similar.
13383 2008-02-19 Paul Brook <paul@codesourcery.com>
13386 * config/arm/ieee754-df.S: Fix do_it typo.
13387 * config/arm/ieee754-sf.S: Fix do_it typo.
13389 2008-02-18 H.J. Lu <hongjiu.lu@intel.com>
13392 * config/i386/i386.c (OPTION_MASK_ISA_MMX_SET): New.
13393 (OPTION_MASK_ISA_3DNOW_SET): Likewise.
13394 (OPTION_MASK_ISA_SSE_SET): Likewise.
13395 (OPTION_MASK_ISA_SSE2_SET): Likewise.
13396 (OPTION_MASK_ISA_SSE3_SET): Likewise.
13397 (OPTION_MASK_ISA_SSSE3_SET): Likewise.
13398 (OPTION_MASK_ISA_SSE4_1_SET): Likewise.
13399 (OPTION_MASK_ISA_SSE4_2_SET): Likewise.
13400 (OPTION_MASK_ISA_SSE4_SET): Likewise.
13401 (OPTION_MASK_ISA_SSE4A_SET): Likewise.
13402 (OPTION_MASK_ISA_SSE5_SET): Likewise.
13403 (OPTION_MASK_ISA_3DNOW_A_UNSET): Likewise.
13404 (OPTION_MASK_ISA_MMX_UNSET): Updated.
13405 (OPTION_MASK_ISA_3DNOW_UNSET): Updated.
13406 (OPTION_MASK_ISA_SSE_UNSET): Likewise.
13407 (OPTION_MASK_ISA_SSE3_UNSET): Likewise.
13408 (OPTION_MASK_ISA_SSSE3_UNSET): Likewise.
13409 (OPTION_MASK_ISA_SSE4_1_UNSET): Likewise.
13410 (OPTION_MASK_ISA_SSE4_2_UNSET): Likewise.
13411 (OPTION_MASK_ISA_SSE4A_UNSET): Likewise.
13412 (OPTION_MASK_ISA_SSE5_UNSET): Likewise.
13413 (OPTION_MASK_ISA_SSE4): Removed.
13414 (ix86_handle_option): Turn on bits in ix86_isa_flags and
13415 ix86_isa_flags_explicit with OPTION_MASK_ISA_XXX_SET for -mXXX.
13416 (override_options): Don't turn on implied SSE/MMX bits in
13419 2008-02-18 H.J. Lu <hongjiu.lu@intel.com>
13421 * config/i386/i386-modes.def: Use 4 byte alignment on DI for
13424 2008-02-18 Joey Ye <joey.ye@intel.com>
13426 PR middle-end/34921
13427 * tree-nested.c (insert_field_into_struct): Set type alignment
13428 to field alignment if the former is less than the latter.
13430 2008-02-18 Jakub Jelinek <jakub@redhat.com>
13432 * BASE-VER: Set to 4.4.0.
13434 2008-02-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13436 * doc/c-tree.texi: Use @dots{} and @enddots{} where appropriate.
13437 * doc/cfg.texi: Likewise.
13438 * doc/extend.texi: Likewise.
13439 * doc/gty.texi: Likewise.
13440 * doc/invoke.texi: Likewise.
13441 * doc/loop.texi: Likewise.
13442 * doc/md.texi: Likewise.
13443 * doc/passes.texi: Likewise.
13444 * doc/rtl.texi: Likewise.
13445 * doc/sourcebuild.texi: Likewise.
13446 * doc/tm.texi: Likewise.
13447 * doc/tree-ssa.texi: Likewise.
13449 2008-02-17 Richard Guenther <rguenther@suse.de>
13451 PR middle-end/35227
13452 * tree-complex.c (init_parameter_lattice_values): Handle parameters
13453 without default definition.
13455 2008-02-17 Richard Guenther <rguenther@suse.de>
13457 PR tree-optimization/35231
13458 * tree-vrp.c (register_edge_assert_for): Do not assume A == 0
13461 2008-02-17 Uros Bizjak <ubizjak@gmail.com>
13464 2008-02-15 Uros Bizjak <ubizjak@gmail.com>
13465 * config/i386/sfp-machine.h (CMPtype): Define as typedef using
13466 libgcc_cmp_return mode.
13468 2008-02-16 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
13471 * doc/invoke.texi (-std): Clarify description of -std= and -ansi.
13473 2008-02-16 Ralf Corsepius <ralf.corsepius@rtems.org>
13475 * config/m68k/t-rtems (M68K_MLIB_CPU): Add 5208, 5307, 5407, 5475
13478 2008-02-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13480 * doc/c-tree.texi: Use `@.' where appropriate.
13481 * doc/extend.texi: Likewise.
13482 * doc/install.texi: Likewise.
13483 * doc/invoke.texi: Likewise.
13484 * doc/loop.texi: Likewise.
13485 * doc/makefile.texi: Likewise.
13486 * doc/md.texi: Likewise.
13487 * doc/passes.texi: Likewise.
13488 * doc/standards.texi: Likewise.
13489 * doc/tm.texi: Likewise.
13491 2008-02-15 Jakub Jelinek <jakub@redhat.com>
13493 PR middle-end/35196
13494 * omp-low.c (expand_omp_for_generic): Don't initialize fd->v
13496 (expand_omp_for_static_nochunk): Initialize fd->v in seq_start_bb
13497 rather than in entry_bb.
13499 2008-02-15 Uros Bizjak <ubizjak@gmail.com>
13501 * config/i386/sfp-machine.h (CMPtype): Define as typedef using
13502 libgcc_cmp_return mode.
13504 2008-02-15 Jakub Jelinek <jakub@redhat.com>
13506 PR middle-end/35130
13507 * tree-nested.c (convert_call_expr): Put FRAME.* vars into
13508 OMP_CLAUSE_SHARED rather than OMP_CLAUSE_FIRSTPRIVATE clause.
13510 2008-02-15 Richard Guenther <rguenther@suse.de>
13511 Zdenek Dvorak <ook@ucw.cz>
13513 PR tree-optimization/35164
13514 * tree-flow.h (stmt_references_abnormal_ssa_name): Declare.
13515 * tree-dfa.c (stmt_references_abnormal_ssa_name): New function.
13516 * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_vars):
13517 Only propagate addresses which do not have abnormal SSA_NAMEs
13520 2008-02-15 Joseph Myers <joseph@codesourcery.com>
13523 * config/m68k/m68k.h (DWARF_CIE_DATA_ALIGNMENT): Define.
13525 2008-02-15 Jan Hubicka <jh@suse.cz>
13527 PR middle-end/35149
13528 * ipa.c (cgraph_remove_unreachable_nodes): Clear local.inlinable flag.
13530 2008-02-15 Uros Bizjak <ubizjak@gmail.com>
13532 PR middle-end/34621
13533 * function.c (pad_to_arg_alignment): Remove test for STACK_BOUNDARY
13534 when calculating alignment_pad.
13536 2008-02-15 Uros Bizjak <ubizjak@gmail.com>
13538 * config/i386/i386.h (CLEAR_RATIO): Use MIN macro.
13539 (WIDEST_HARDWARE_FP_SIZE): Use LONG_DOUBLE_TYPE_SIZE define.
13540 * config/i386/darwin.h (PREFERRED_STACK_BOUNDARY): Use MAX macro
13541 and STACK_BOUNDARY define.
13543 2008-02-14 Danny Smith <dannysmith@users.sourceforge.net>
13545 PR preprocessor/35061
13546 * c-pragma.c (handle_pragma_pop_macro): Check that
13547 pushed_macro_table has been allocated.
13549 2008-02-14 Eric Botcazou <ebotcazou@adacore.com>
13551 PR middle-end/35136
13552 * gimplify.c (force_gimple_operand_bsi): Revert 2008-02-12 change.
13553 (force_gimple_operand): Likewise.
13554 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Add new cases
13555 for TARGET_MEM_REF and CONVERT_EXPR/NON_LVALUE_EXPR/NOP_EXPR.
13556 Also recurse on the operand for regular VIEW_CONVERT_EXPRs.
13557 (find_interesting_uses_address): Check addressability and alignment
13558 of the base expression only after substituting bases of IVs into it.
13560 2008-02-14 Michael Matz <matz@suse.de>
13563 * function.c (instantiate_virtual_regs_in_insn): Reload address
13564 before falling back to reloading the whole operand.
13566 2008-02-14 Andreas Krebbel <krebbel1@de.ibm.com>
13568 * config/s390/s390.c (s390_mainpool_start): Emit the pool
13569 before the first section switch note.
13571 2008-02-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13573 * doc/bugreport.texi: Update copyright years.
13574 * doc/c-tree.texi: Likewise.
13575 * doc/cfg.texi: Likewise.
13576 * doc/cpp.texi: Likewise.
13577 * doc/cppinternals.texi: Likewise.
13578 * doc/fragments.texi: Likewise.
13579 * doc/frontends.texi: Likewise.
13580 * doc/gcc.texi: Likewise.
13581 * doc/gty.texi: Likewise.
13582 * doc/hostconfig.texi: Likewise.
13583 * doc/implement-c.texi: Likewise.
13584 * doc/libgcc.texi: Likewise.
13585 * doc/loop.texi: Likewise.
13586 * doc/makefile.texi: Likewise.
13587 * doc/options.texi: Likewise.
13588 * doc/passes.texi: Likewise.
13589 * doc/rtl.texi: Likewise.
13590 * doc/sourcebuild.texi: Likewise.
13591 * doc/standards.texi: Likewise.
13592 * doc/tree-ssa.texi: Likewise.
13593 * doc/trouble.texi: Likewise.
13595 * doc/extend.texi: Use @: or add comma where appropriate.
13596 * doc/invoke.texi: Likewise.
13597 * doc/tm.texi: Likewise.
13599 2008-02-14 Alan Modra <amodra@bigpond.net.au>
13602 * config/rs6000/rs6000.md (restore_stack_block): Force operands[1]
13605 2008-02-14 Jesper Nilsson <jesper.nilsson@axis.com>
13607 * doc/md.texi (clz, ctz): Add reference.
13608 * doc/rtl.texi (clz, ctz): Likewise.
13610 2008-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13613 * Makefile.in (gcc-vers.texi): Use abs_srcdir for the value of
13616 2008-02-13 Andreas Krebbel <krebbel1@de.ibm.com>
13618 * config/s390/s390.c (struct constant_pool): New field
13619 emit_pool_after added.
13620 (s390_mainpool_start): Set the emit_pool_after flag according
13621 to the section switch notes.
13622 (s390_mainpool_finish): Consider emit_pool_after when emitting
13623 the literal pool at the end of the function.
13624 (s390_chunkify_start): Force literal pool splits at section
13627 2008-02-13 Michael Matz <matz@suse.de>
13630 * var-tracking.c (clobber_variable_part): Correctly traverse the
13633 2008-02-13 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
13636 * doc/invoke.texi (Debugging Options): Remove -fdump-tree-inlined.
13637 Add -fdump-ipa-inline.
13638 * tree-dump.c (dump_files): Remove tree-inlined dump.
13639 * tree-pass.h (tree_dump_index): Remove TDI_inlined.
13641 2008-02-12 Richard Guenther <rguenther@suse.de>
13643 PR tree-optimization/35171
13644 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Deal with
13647 2008-02-12 Richard Guenther <rguenther@suse.de>
13649 PR middle-end/35163
13650 * fold-const.c (fold_widened_comparison): Use get_unwidened in
13651 value-preserving mode. Disallow final truncation.
13653 2008-02-12 Eric Botcazou <ebotcazou@adacore.com>
13655 PR middle-end/35136
13656 * gimplify.c (force_gimple_operand_bsi): Move SSA renaming
13657 code from here to...
13658 (force_gimple_operand): ...here.
13660 2008-02-12 Jakub Jelinek <jakub@redhat.com>
13663 * tree-sra.c (sra_build_assignment): fold_convert SRC if copying
13664 non-compatible pointers.
13665 (generate_element_copy): If SRC and DST are RECORD_TYPEs with
13666 different FIELD_DECLs, try harder by comparing field offsets, sizes
13669 PR inline-asm/35160
13670 * function.c (match_asm_constraints_1): Don't replace the same input
13673 2008-02-12 Anatoly Sokolov <aesok@post.ru>
13675 * config/avr/avr.h (AVR_HAVE_RAMPZ): Define.
13676 * config/avr/avr.c (expand_prologue): Save RAMPZ register.
13677 (expand_epilogue): Restore RAMPZ register.
13678 * config/avr/avr.md (RAMPZ_ADDR): New constant.
13680 2008-02-11 Kai Tietz <kai.tietz@onevision.com>
13682 * config/i386/cygwin.asm: (__alloca): Correct calling
13683 convention and alignment.
13684 (__chkstk): Force 8 byte stack alignment.
13686 2008-02-11 Uros Bizjak <ubizjak@gmail.com>
13687 Richard Guenther <rguenther@suse.de>
13689 PR tree-optimization/33992
13690 * tree-ssa-loop-im.c (rewrite_bittest): Fixup the type of
13691 the zero we compare against.
13693 2008-02-10 Danny Smith <dannysmith@users.sourceforge.net>
13695 PR libfortran/35063
13696 * gthr-win32.h (__gthread_mutex_destroy_function): New function
13697 to CloseHandle after unlocking to prevent accumulation of handle
13700 2008-02-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13702 PR middle_end/34150
13703 * pa.c (legitimize_pic_address): Add REG_EQUAL note on sets with a
13704 pic_label_operand source. Similarly, add a REG_LABEL_OPERAND note
13705 and update LABEL_NUSES during and after reload.
13707 2008-02-08 Steven Bosscher <stevenb.gcc@gmail.com>
13709 PR middle-end/34627
13710 * combine.c (simplify_if_then_else): Make sure the comparison is
13711 against const0_rtx when simplifying to (abs x) or (neg (abs X)).
13713 2008-02-08 Richard Sandiford <rsandifo@nildram.co.uk>
13716 * double-int.h: Don't include gmp.h for GENERATOR_FILEs.
13717 (mpz_set_double_int, mpz_get_double_int): Hide from GENERATOR_FILEs.
13718 * real.h: Don't include gmp.h or mpfr.h for GENERATOR_FILEs.
13719 (real_from_mpfr, mpfr_from_real): Hide from GENERATOR_FILEs.
13720 * tree.h (get_type_static_bounds): Likewise.
13722 2008-02-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13724 * doc/invoke.texi (Option Summary, C++ Dialect Options)
13725 (Objective-C and Objective-C++ Dialect Options, Warning Options):
13726 Make -Wfoo language annotations match what the compiler outputs.
13728 2008-02-08 Sa Liu <saliu@de.ibm.com>
13730 * config/spu/spu-builtins.def: Fixed wrong parameter type in spu
13731 intrinsics spu_convts, spu_convtu, spu_convtf.
13733 2008-02-08 Hans-Peter Nilsson <hp@axis.com>
13735 * doc/extend.texi (Function Attributes) <noinline>: Mention
13736 asm ("") as method to keep calls.
13738 2008-02-07 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
13741 * doc/options.texi (Options): Replace references to opts.sh with
13743 * opts-common.c: Likewise.
13744 * optc-gen.awk: Likewise.
13746 2008-02-07 Andreas Krebbel <krebbel1@de.ibm.com>
13748 * config/s390/s390.h (FUNCTION_ARG_REGNO_P): Fix fprs for 64 bit.
13750 2008-02-07 Richard Henderson <rth@redhat.com>
13753 * config/alpha/alpha.c (alpha_emit_xfloating_compare): Use an
13754 EXPR_LIST for the REG_EQUAL instead of a comparison with a
13757 2008-02-07 Uros Bizjak <ubizjak@gmail.com>
13759 PR tree-optimization/35085
13760 * tree-ssa-reassoc.c (rewrite_expr_tree): Enable destructive update
13761 for operand entry oe2 in addition to operand entry oe3 in order to
13762 expose more opportunities for vectorizer sum reduction.
13764 2008-02-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13767 * Makefile.in (LIBS): Remove $(GMPLIBS).
13768 (cc1-dummy, cc1): Add $(GMPLIBS).
13770 2008-02-06 Jan Hubicka <jh@suse.cz>
13773 * i386.md (moddf_integer): Do not produce partial memory stalls for
13774 targets where it hurts.
13776 2008-02-06 Uros Bizjak <ubizjak@gmail.com>
13779 * optabs.c (expand_float): Do not check for decimal modes when
13780 expanding unsigned integer through signed conversion.
13782 2008-02-06 Nick Clifton <nickc@redhat.com>
13784 * config/stormy16/stormy16.md (eqbranchsi): Replace a match_dup
13785 inside the clobber with a match_operand and duplicated operand
13786 number in the constraint.
13787 (ineqbranchsi): Delete redundant comment.
13789 2008-02-06 Ralf Corsepius <ralf.corsepius@rtems.org>
13791 * config/arm/rtems-elf.h (TARGET_OS_CPP_BUILTINS): Add
13792 builtin_define ("__USE_INIT_FINI__").
13793 * config/h8300/t-rtems (MULTILIB_OPTION,MULTILIB_DIRNAMES): Add
13795 * gthr-rtems.h: Remove __GTHREAD_MUTEX_INIT.
13797 2008-02-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13799 PR documentation/30330
13800 * doc/invoke.texi (C++ Dialect Options)
13801 (Objective-C and Objective-C++ Dialect Options, Warning Options):
13802 For each warning option -Wfoo that allows -Wno-foo, ensure both
13803 -Wfoo and -Wno-foo are listed in the option index. Fix index
13804 entry of -Wswitch-default, index -Wnormalized= including the
13805 `=', and -Wlarger-than-@var{len} including @var{len}.
13807 2008-02-05 Uros Bizjak <ubizjak@gmail.com>
13809 * config/i386/i386.md (floatunssisf2): Use
13810 ix86_expand_convert_uns_sisf_sse also for TARGET_SSE.
13811 (floatunssi<mode>2): Rename from floatunssisf2 and floatunssidf2.
13812 Macroize expander using MODEF mode iterator.
13814 2008-02-05 Diego Novillo <dnovillo@google.com>
13816 http://gcc.gnu.org/ml/gcc-patches/2008-02/msg00140.html
13819 * tree-vrp.c (vrp_evaluate_conditional): Revert fix for PR 33738.
13821 2008-02-05 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13824 * toplev.c (print_version): Honor `indent' for GMP/MPFR warnings.
13826 2008-02-05 H.J. Lu <hongjiu.lu@intel.com>
13829 * config/i386/i386.c (ix86_function_sseregparm): Add an arg
13830 to indicate if a message should be generated.
13831 (init_cumulative_args): Updated.
13832 (function_value_32): Likewise.
13834 2008-02-05 Joseph Myers <joseph@codesourcery.com>
13836 * doc/include/texinfo.tex: Update to version 2008-02-04.16.
13838 2008-02-05 Uros Bizjak <ubizjak@gmail.com>
13841 * config/i386/i386.md (floatunsisf2): Enable for TARGET_SSE_MATH only.
13842 Call ix86_expand_convert_uns_sisf_sse for TARGET_SSE2.
13844 2008-02-04 Diego Novillo <dnovillo@google.com>
13846 http://gcc.gnu.org/ml/gcc-patches/2008-02/msg00110.html
13849 * tree-vrp.c (vrp_evaluate_conditional): With
13850 -Wtype-limits, emit a warning when comparing against a
13851 constant outside the natural range of OP0's type.
13853 2008-02-04 Richard Guenther <rguenther@suse.de>
13855 PR middle-end/33631
13856 * expr.c (count_type_elements): Give for unions instead of
13859 2008-02-04 Richard Guenther <rguenther@suse.de>
13861 PR middle-end/35043
13862 * gimplify.c (gimplify_init_ctor_eval): Convert array indices
13863 to TYPE_DOMAINs base type instead of using bitsizetype here.
13865 2008-02-03 Jason Merrill <jason@redhat.com>
13867 * print-tree.c (print_node) [CONSTRUCTOR]: Print elements.
13869 2008-02-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13872 * doc/invoke.texi (C++ Dialect Options, Optimize Options)
13873 (HPPA Options, i386 and x86-64 Options, IA-64 Options)
13874 (RS/6000 and PowerPC Options): Fix typos and markup.
13875 * doc/passes.texi (Tree-SSA passes): Likewise.
13877 2008-02-02 Michael Matz <matz@suse.de>
13880 * postreload-gcse.c (record_last_reg_set_info_regno): Renamed
13881 from record_last_reg_set_info.
13882 (record_last_reg_set_info): Take an RTX argument, iterate over all
13883 constituent hardregs.
13884 (record_last_set_info, record_opr_changes): Change calls to
13885 new signature or to record_last_reg_set_info_regno.
13887 2008-02-02 Gerald Pfeifer <gerald@pfeifer.com>
13889 * doc/extend.texi (X86 Built-in Functions): Fix grammar.
13891 2008-02-01 Hans-Peter Nilsson <hp@axis.com>
13893 PR rtl-optimization/34773
13894 * reg-notes.def (EQUAL): Mention significance of combination of
13895 REG_EQUAL and REG_RETVAL.
13896 * fwprop.c (try_fwprop_subst): Don't add REG_EQUAL to an
13897 insn that has a REG_RETVAL.
13899 2008-02-01 Roger Sayle <roger@eyesopen.com>
13902 * configure.ac (--enable-fixed-point): Disable unless explicitly
13904 * configure: Regenerate.
13906 2008-02-01 Richard Guenther <rguenther@suse.de>
13909 * invoke.texi (-finline-limit): Remove no longer true parts
13910 of the documentation. Note that there is no default value.
13912 2008-02-01 Andrew Pinski <pinskia@gmail.com>
13913 Mark Mitchell <mark@codesourcery.com>
13914 Ben Elliston <bje@au.ibm.com>
13917 * doc/extend.texi (Other Builtins): Document.
13919 2008-01-31 Tom Browder <tom.browder@gmail.com>
13921 * doc/c-tree.texi (Types): Fix grammar.
13922 (Expression trees): Ditto.
13923 * doc/passes.texi (Tree-SSA passes): Ditto.
13925 * doc/configterms.texi (Configure Terms): Fix typo.
13926 * doc/cpp.texi (Common Predefined Macros): Ditto.
13927 * doc/md.texi (Machine Constraints): Ditto.
13929 * doc/makefile.texi (Makefile): Add comma.
13931 2008-01-31 Tom Browder <tom.browder@gmail.com>
13932 Gerald Pfeifer <gerald@pfeifer.com>
13934 * doc/sourcebuild.texi (Front End): Remove references to CVS
13935 and CVSROOT/modules.
13936 (Texinfo Manuals): Replace reference to CVS by one to SVN.
13937 (Back End): Remove reference to CVS.
13939 2008-01-31 Richard Sandiford <rsandifo@nildram.co.uk>
13942 * config/mips/mips.c (gen_load_const_gp): New function, taking a
13944 (mips16_gp_pseudo_reg): ...here.
13945 * config/mips/mips.md (load_const_gp): Replace with...
13946 (load_const_gp_<mode>): ...this :P-based insn.
13948 2008-01-31 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
13950 * doc/invoke.texi (-ansi): Mention explicitly corresponding -std=
13951 options. Minor fixes.
13952 (-std): Move reference to standards closer to where language
13953 standards are first mentioned.
13955 2008-01-31 Richard Sandiford <rsandifo@nildram.co.uk>
13957 PR rtl-optimization/34995
13958 * reload.c (alternative_allows_const_pool_ref): Take an rtx
13959 parameter and return a bool. If the rtx parameter is nonnull,
13960 check that it satisfies an EXTRA_MEMORY_CONSTRAINT.
13961 (find_reloads): Update call accordingly. Pass the new operand
13962 if it needed no address reloads, otherwise pass null.
13964 2008-01-30 Richard Henderson <rth@redhat.com>
13967 * tree.c (build_type_attribute_qual_variant): Skip TYPE_DOMAIN
13968 for unbounded arrays.
13970 2008-01-30 Silvius Rus <rus@google.com>
13972 * config/i386/xmmintrin.h (_mm_prefetch): Add const to first arg.
13974 2008-01-30 Jan Hubicka <jh@suse.cz>
13977 * i386.c (init_cumulative_args): Use real function declaration when
13980 2008-01-30 Richard Sandiford <rsandifo@nildram.co.uk>
13982 PR rtl-optimization/34998
13983 * global.c (build_insn_chain): Treat non-subreg_lowpart
13984 SUBREGs of pseudos as clobbering all the words covered by the
13985 SUBREG, not just all the bytes.
13986 * ra-conflict.c (clear_reg_in_live): Likewise. Take the
13987 original df_ref rather than an extract parameter.
13988 (global_conflicts): Update call accordingly.
13990 2008-01-30 Andreas Krebbel <krebbel1@de.ibm.com>
13992 * config/s390/fixdfdi.h (__fixunstfdi, __fixtfdi): Rearrange
13993 the overflow check to make it easier to read.
13994 (__fixtfdi): Change the type of the ll member in union
13995 long_double to UDItype_x.
13997 2008-01-30 Jakub Jelinek <jakub@redhat.com>
13999 PR middle-end/34969
14000 * cgraph.h (cgraph_update_edges_for_call_stmt): New prototype.
14001 * cgraph.c (cgraph_update_edges_for_call_stmt): New function.
14002 * tree-inline.c (fold_marked_statements): Call
14003 cgraph_update_edges_for_call_stmt if folding a call statement.
14004 * cgraphunit.c (verify_cgraph_node): Set cfun to this_cfun for
14005 debug_generic_stmt calls, reset it back afterwards.
14008 * c-decl.c (start_decl): Don't pedwarn about TREE_READONLY
14010 * c-typeck.c (build_external_ref): Don't pedwarn about
14011 static vars in current function's scope.
14013 2008-01-29 Joseph Myers <joseph@codesourcery.com>
14015 * config.gcc (i[34567]86-*-nto-qnx*): Remove deprecation.
14017 2008-01-29 Bernhard Fischer <aldot@gcc.gnu.org>
14020 * ipa-struct-reorg.c: Fix spelling.
14021 * params.def: Ditto.
14023 2008-01-29 Richard Guenther <rguenther@suse.de>
14025 PR middle-end/35006
14026 * tree-inline.h (struct copy_body_data): Add remapping_type_depth
14028 * tree-inline.c (remap_type): Increment remapping_type_depth
14029 around remapping types.
14030 (copy_body_r): Only add referenced variables if they are referenced
14031 from code, not types.
14033 2008-01-29 Douglas Gregor <doug.gregor@gmail.com>
14044 * c-pretty-print.c (pp_c_type_qualifier_list): Don't try to print
14045 qualifiers for an ERROR_MARK_NODE or a NULL_TREE.
14047 2008-01-28 Andy Hutchinson <hutchinsonandy@netscape.net>
14050 * config/avr/avr.c (expand_prologue): Use correct QI mode frame
14051 pointer for tiny stack.
14053 2008-01-28 Bernhard Fischer <aldot@gcc.gnu.org>
14055 * doc/tree-ssa.texi: Add cindex PHI nodes and improve wording.
14057 2008-01-28 Bernhard Fischer <aldot@gcc.gnu.org>
14059 * config/vx-common.h: Fix typo in comment.
14061 2008-01-28 Ian Lance Taylor <iant@google.com>
14065 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
14066 coalesce pointers if they have different DECL_NO_TBAA_P values.
14067 * tree-ssa-copy.c (may_propagate_copy): Don't propagate copies
14068 between variables with different DECL_NO_TBAA_P values.
14070 2008-01-28 Nathan Froyd <froydnj@codesourcery.com>
14073 * config/rs6000/rs6000.c (small_data_operand): Vectors and floats
14074 are not legitimate small data references on SPE targets.
14076 2008-01-28 David Daney <ddaney@avtrex.com>
14078 * doc/install.texi (mips-*-*): Recommend binutils 2.18.
14080 2008-01-28 David Daney <ddaney@avtrex.com>
14082 * doc/install.texi (--disable-libgcj-bc): Reword documentation.
14084 2008-01-27 Joseph Myers <joseph@codesourcery.com>
14086 * config.gcc (strongarm*-*, ep9312*-*, xscale*-*, parisc*-*,
14087 m680[012]0-*, *-*-beos*, *-*-kaos*, *-*-linux*aout*,
14088 *-*-linux*libc1*, *-*-solaris2.[0-6], *-*-solaris2.[0-6].*,
14089 *-*-sysv*, *-*-windiss*, alpha*-*-unicosmk*, cris-*-aout,
14090 hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-bsd*,
14091 i[34567]86-sequent-ptx4*, i[34567]86-*-nto-qnx*,
14092 i[34567]86-*-sco3.2v5*, i[34567]86-*-uwin*, powerpc-*-chorusos*,
14093 vax-*-bsd*, vax-*-ultrix*): Mark obsolete.
14095 2008-01-27 Bernhard Fischer <aldot@gcc.gnu.org>
14097 * basic-block.h (condjump_equiv_p): Fix comment.
14099 2008-01-27 Bernhard Fischer <aldot@gcc.gnu.org>
14101 * tree-pretty-print.c (print_generic_decl, print_generic_stmt,
14102 print_generic_stmt_indented): Fix comment.
14104 2008-01-27 Bernhard Fischer <aldot@gcc.gnu.org>
14106 * configure.ac (__stack_chk_fail): Add detecion for availability
14107 of SSP in uClibc by checking if __UCLIBC_HAS_SSP__ is defined.
14108 * configure: Regenerate.
14110 2008-01-26 Maxim Kuvyrkov <maxim@codesourcery.com>
14112 PR middle-end/34688
14113 * final.c (output_addr_const): Handle TRUNCATE.
14115 2008-01-26 Zdenek Dvorak <ook@ucw.cz>
14118 * tree-ssa-loop-ivopts.c (comp_cost): New type.
14119 (zero_cost, infinite_cost): New constants.
14120 (struct cost_pair): Change type of cost to comp_cost.
14121 (struct iv_ca): Change type of cand_use_cost and cost to comp_cost.
14122 (new_cost, add_costs, sub_costs, compare_costs, infinite_cost_p):
14124 (set_use_iv_cost, force_expr_to_var_cost, force_var_cost,
14125 split_address_cost, ptr_difference_cost, difference_cost,
14126 get_computation_cost_at, get_computation_cost,
14127 determine_use_iv_cost_generic, determine_use_iv_cost_address,
14128 determine_use_iv_cost_condition, determine_use_iv_costs,
14129 cheaper_cost_pair, iv_ca_recount_cost, iv_ca_set_no_cp,
14130 iv_ca_set_cp, iv_ca_cost, iv_ca_new, iv_ca_dump, iv_ca_extend,
14131 iv_ca_narrow, iv_ca_prune, try_improve_iv_set, find_optimal_iv_set):
14132 Change type of cost to comp_cost.
14133 (determine_iv_cost): Increase cost of non-original ivs, instead
14134 of decreasing the cost of original ones.
14135 (get_address_cost): Indicate the complexity of the addressing mode
14137 (try_add_cand_for): Prefer using ivs not specific to some object.
14138 * tree-flow.h (force_expr_to_var_cost): Declaration removed.
14140 2008-01-26 Peter Bergner <bergner@vnet.ibm.com>
14141 Janis Johnson <janis187@us.ibm.com>
14144 * doc/tm.texi (TARGET_EXPAND_TO_RTL_HOOK): Document.
14145 (TARGET_INSTANTIATE_DECLS): Likewise.
14146 * target.h (expand_to_rtl_hook): New target hook.
14147 (instantiate_decls): Likewise.
14148 * function.c (instantiate_decl): Make non-static. Rename to...
14149 (instantiate_decl_rtl): ... this.
14150 (instantiate_expr): Use instantiate_decl_rtl.
14151 (instantiate_decls_1): Likewise.
14152 (instantiate_decls): Likewise.
14153 (instantiate_virtual_regs: Call new instantiate_decls taget hook.
14154 * function.h (instantiate_decl_rtl): Add prototype.
14155 * cfgexpand.c (target.h): New include.
14156 (tree_expand_cfg): Call new expand_to_rtl_hook target hook.
14157 * target-def.h (TARGET_EXPAND_TO_RTL_HOOK): New define.
14158 (TARGET_INSTANTIATE_DECLS): Likewise.
14159 (TARGET_INITIALIZER): New target hooks added.
14160 * config/rs6000/rs6000-protos.h (rs6000_secondary_memory_needed_rtx):
14162 * config/rs6000/rs6000.c (tree-flow.h): New include.
14163 (machine_function): Add sdmode_stack_slot field.
14164 (rs6000_alloc_sdmode_stack_slot): New function.
14165 (rs6000_instantiate_decls): Likewise.
14166 (rs6000_secondary_memory_needed_rtx): Likewise.
14167 (rs6000_check_sdmode): Likewise.
14168 (TARGET_EXPAND_TO_RTL_HOOK): Target macro defined.
14169 (TARGET_INSTANTIATE_DECLS): Likewise.
14170 (rs6000_hard_regno_mode_ok): Allow SDmode.
14171 (num_insns_constant): Likewise. Handle _Decimal32 constants.
14172 (rs6000_emit_move): Handle SDmode.
14173 (function_arg_advance): Likewise.
14174 (function_arg): Likewise.
14175 (rs6000_gimplify_va_arg): Likewise. Add special handling of
14176 SDmode var args for 32-bit compiles.
14177 (rs6000_secondary_reload_class): Handle SDmode.
14178 (rs6000_output_function_epilogue): Likewise.
14179 (rs6000_function_value): Simplify if statement.
14180 (rs6000_libcall_value): Likewise.
14181 * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Handle SDmode.
14182 (SECONDARY_MEMORY_NEEDED_RTX): Add define.
14183 * config/rs6000/dfp.md (movsd): New define_expand and splitter.
14184 (movsd_hardfloat): New define_insn.
14185 (movsd_softfloat): Likewise.
14186 (movsd_store): Likewise.
14187 (movsd_load): Likewise.
14188 (extendsddd2): Likewise.
14189 (extendsdtd2): Likewise.
14190 (truncddsd2): Likewise.
14191 (movdd_hardfloat64): Fixup comment.
14192 (UNSPEC_MOVSD_LOAD): New constant.
14193 (UNSPEC_MOVSD_STORE): Likewise.
14195 2008-01-26 Jakub Jelinek <jakub@redhat.com>
14198 * c-pretty-print.c (pp_c_exclusive_or_expression): Handle
14200 (pp_c_logical_and_expression): Handle TRUTH_AND_EXPR.
14201 (pp_c_logical_or_expression): Handle TRUTH_OR_EXPR.
14202 (pp_c_expression): Handle TRUTH_AND_EXPR, TRUTH_OR_EXPR
14203 and TRUTH_XOR_EXPR.
14205 2008-01-26 David Edelsohn <edelsohn@gnu.org>
14208 * config.gcc: Separate AIX 5.3 from AIX 6.1.
14209 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
14210 __LONGDOUBLE128 too.
14211 * config/rs6000/aix61.h: New file.
14213 2008-01-26 Richard Sandiford <rsandifo@nildram.co.uk>
14215 PR rtl-optimization/34959
14216 * optabs.c (expand_unop): In libcall notes, give ffs, clz, ctz,
14217 popcount and parity rtxes the same mode as their operand.
14218 Truncate or extend the result to the return value's mode
14221 2008-01-26 Richard Sandiford <rsandifo@nildram.co.uk>
14224 * config/mips/mips-protos.h (mips_expand_call): Return an rtx.
14225 * config/mips/mips.h (FIRST_PSEUDO_REGISTER): Rename FAKE_CALL_REGNO
14226 to GOT_VERSION_REGNUM.
14227 (CALL_REALLY_USED_REGISTERS): Set the GOT_VERSION_REGNUM entry to 0.
14228 (EPILOGUE_USES): Include GOT_VERSION_REGNUM if TARGET_USE_GOT.
14229 * config/mips/mips.c (mips_emit_call_insn): New function.
14230 (mips_call_tls_get_addr): Call mips_expand_call directly.
14231 (mips16_copy_fpr_return_value): Use mips_emit_call_insn rather than
14233 (mips16_build_call_stub): Likewise. Return the call insn or null.
14234 (mips_expand_call): Update the call to mips16_build_call_stub
14235 accordingly and a remove redundant condition. Assert that MIPS16
14236 stubs do not use lazy binding. Use mips_emit_call_insn and return
14238 (mips_extra_live_on_entry): Include GOT_VERSION_REGNUM if
14240 (mips_hard_regno_mode_ok_p): Allow SImode for GOT_VERSION_REGNUM.
14241 (mips_avoid_hazard): Remove hazard_set handling.
14242 * config/mips/mips.md (UNSPEC_EH_RECEIVER): Rename to...
14243 (UNSPEC_RESTORE_GP): ...this.
14244 (UNSPEC_SET_GOT_VERSION, UNSPEC_UPDATE_GOT_VERSION): New constants.
14245 (FAKE_CALL_REGNO): Rename to...
14246 (GOT_VERSION_REGNUM): ...this.
14247 (type): Add "ghost" value. Add an associated insn reservation.
14248 (hazard_set): Remove.
14249 (exception_receiver): Rename to...
14250 (restore_gp): ...this and update the unspec identifier accordingly.
14251 (exception_receiver, nonlocal_got_receiver): New expanders.
14252 (load_call<mode>): Use GOT_VERSION_REGNUM. Don't set
14253 FAKE_CALL_REGNO. Remove hazard_set attribute.
14254 (set_got_version, update_got_version): New patterns.
14256 2008-01-26 Danny Smith <dannysmith@users.sourceforge.net>
14259 * config/i386/cygming.h (ASM_OUTPUT_LABELREF): Define.
14261 2008-01-25 Joseph Myers <joseph@codesourcery.com>
14264 * doc/install.texi2html: Generate gcc-vers.texi.
14266 2008-01-25 DJ Delorie <dj@redhat.com>
14268 * config/m32c/m32c.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
14270 2008-01-25 Joseph Myers <joseph@codesourcery.com>
14272 * config/c4x: Remove directory.
14273 * config.gcc (crx-*, mt-*): Mark obsolete.
14274 (c4x-*, tic4x-*, c4x-*-rtems*, tic4x-*-rtems*, c4x-*, tic4x-*,
14275 h8300-*-rtemscoff*, ns32k-*-netbsdelf*, ns32k-*-netbsd*,
14276 sh-*-rtemscoff*): Remove cases.
14277 * defaults.h (C4X_FLOAT_FORMAT): Remove.
14278 * real.c (encode_c4x_single, decode_c4x_single,
14279 encode_c4x_extended, decode_c4x_extended, c4x_single_format,
14280 c4x_extended_format): Remove.
14281 * real.h (c4x_single_format, c4x_extended_format): Remove.
14282 * doc/extend.texi (interrupt, naked): Remove mention of attributes
14284 (Pragmas): Remove comment about c4x pragmas.
14285 * doc/install.texi (c4x): Remove target-specific instructions.
14286 * doc/invoke.texi (TMS320C3x/C4x Options): Remove.
14287 * doc/md.texi (Machine Constraints): Remove C4x documentation.
14288 * doc/tm.texi (MEMBER_TYPE_FORCES_BLK, c_register_pragma): Do not
14289 refer to C4x source files as examples.
14290 (C4X_FLOAT_FORMAT): Remove documentation.
14292 2008-01-25 Bernd Schmidt <bernd.schmidt@analog.com>
14294 * config/bfin/bfin.c (override_options): Reorder tests so that
14295 flag_pic gets enabled for -msep-data.
14297 2008-01-25 Richard Guenther <rguenther@suse.de>
14299 PR middle-end/32244
14300 * expr.c (expand_expr_real_1): Reduce result of LSHIFT_EXPR
14301 to its bitfield precision if required.
14303 2008-01-25 Jakub Jelinek <jakub@redhat.com>
14305 PR middle-end/33880
14306 * tree-nested.c (walk_omp_for): New function.
14307 (convert_nonlocal_reference, convert_local_reference): Call
14308 walk_omp_for on OMP_FOR.
14309 (convert_call_expr): Call walk_body on OMP_FOR's
14310 OMP_FOR_PRE_INIT_BODY.
14312 2008-01-25 Richard Guenther <rguenther@suse.de>
14314 PR tree-optimization/34966
14315 * tree-ssa-math-opts.c (execute_cse_sincos_1): For all but
14316 default defs and PHI_NODEs we have to insert after the
14317 defining statement.
14319 2008-01-24 Nick Clifton <nickc@redhat.com>
14321 * config/stormy16/stormy16-lib2.c (MIN_UNITS_PER_WORD):
14322 Provide a default definition.
14323 (LIBGCC2_UNITS_PER_WORD): Likewise.
14325 * config/stormy16/stormy16.c: Include df.h for the prototype
14326 for df_regs_ever_live_p.
14327 (xstormy16_expand_builtin_va_start): Convert the stack offset
14328 into a component_ref and then use POINTER_PLUS_EXPR to add it
14329 to the incoming_virtual_args_rtx.
14330 (xstormy16_gimplify_va_arg_expr): Rename to
14331 xstormy16_gimplify_va_arg_expr.
14332 Use POINTER_PLUS_EXPR when performing pointer arithmetic.
14333 (TARGET_GIMPLIFY_VA_ARG_EXPR): Use renamed
14334 xstormy16_gimplify_va_arg_expr.
14335 Fix up some formatting issues.
14337 * config/stormy16/stormy16.c: (xstormy16_carry_plus_operand):
14338 Move to predicates.md.
14339 (xs_hi_general_operand): Likewise.
14340 (xs_hi_nonmemory_operand): Likewise.
14341 * config/stormy16/predicates.md:
14342 (xstormy16_carry_plus_operand): New predicate.
14343 (xs_hi_general_operand): New predicate.
14344 (xs_hi_nonmemory_operand): New predicate.
14345 * config/stormy16/stormy16-protos.h:
14346 (xstormy16_carry_plus_operand): Delete prototype.
14347 (xs_hi_general_operand): Likewise.
14348 (xs_hi_nonmemory_operand): Likewise.
14350 * config/storm16/stormy16.md (addhi3): Remove earlyclobber
14351 modifiers as they are no longer needed and they can trigger
14352 reload spill failures.
14354 * config/storm16/stormy16.md (ineqbranchsi): Replace match_dup
14355 with a match_operand in order to help reload.
14357 * config/storm16/stormy16.md (movhi_internal): Replace 'r'
14358 constraint with 'e' for the 8th alternative as this version of
14359 the mov.w instruction only accepts the lower 8 registers.
14361 2008-01-25 Uros Bizjak <ubizjak@gmail.com>
14364 * simplifx-rtx.c (simplify_const_binary_operation) [VEC_CONCAT]:
14365 Consider only CONST_INT, CONST_DOUBLE and CONST_FIXED as constant
14368 2008-01-25 Jakub Jelinek <jakub@redhat.com>
14370 PR middle-end/33333
14371 * gimplify.c (gimplify_omp_for): Gimplify OMP_FOR_PRE_BODY.
14373 2008-01-25 Golovanevsky Olga <olga@il.ibm.com>
14375 * ipa-struct-reorg.c (remove_str_allocs_in_func, remove_str_allocs):
14377 (remove_structure): Update allocations list before removing structure.
14379 2008-01-25 Golovanevsky Olga <olga@il.ibm.com>
14381 * ipa-struct-reorg.c (is_safe_cond_expr,
14382 create_new_stmts_for_cond_expr): Use integer_zerop function,
14383 that recognize not only zero-pointer, but zero-integer too.
14385 2008-01-25 Ben Elliston <bje@au.ibm.com>
14388 * fixproto: Escape "." in sed expression that strips leading "./".
14390 2008-01-24 H.J. Lu <hongjiu.lu@intel.com>
14393 * gcc.c (SWITCH_OK): Removed.
14394 (SWITCH_LIVE): Changed to bit.
14395 (SWITCH_FALSE): Likewise.
14396 (SWITCH_IGNORE): Likewise.
14397 (switchstr): Change live_cond to unsigned int.
14398 (process_command): Replace SWITCH_OK with 0.
14399 (do_self_spec): Likewise.
14400 (set_collect_gcc_options): Check the SWITCH_IGNORE bit.
14401 (give_switch): Likewise.
14402 (used_arg): Likewise.
14403 (do_spec_1): Set the SWITCH_IGNORE bit.
14404 (check_live_switch): Check both SWITCH_LIVE and SWITCH_FALSE
14405 bits. Set the SWITCH_LIVE bit.
14407 2008-01-24 Andreas Krebbel <krebbel1@de.ibm.com>
14409 * config/s390/s390.h (MOVE_RATIO): Define new target macro.
14411 2008-01-24 Richard Sandiford <rsandifo@nildram.co.uk>
14413 PR tree-optimization/34472
14414 * ipa-struct-reorg.c (safe_cond_expr_check): Change the DATA
14415 parameter to a "bool *" and set *DATA to false if there is
14416 an unsafe access. Do not delete the structure here.
14417 (check_cond_exprs): Delete it here instead.
14418 (check_cond_exprs, exclude_cold_structs): Do not increase
14419 I when removing a structure.
14421 2008-01-24 Uros Bizjak <ubizjak@gmail.com>
14424 * config/i386/i386.c (ix86_expand_vector_init): Consider only
14425 CONST_INT, CONST_DOUBLE and CONST_FIXED as constant vector elements.
14427 2008-01-24 Jakub Jakub Jelinek <jakub@redhat.com>
14429 PR middle-end/34934
14430 * tree-stdarg.c (reachable_at_most_once): Use VEC vector instead of
14431 a fixed vector for stack.
14433 2008-01-24 Ben Elliston <bje@au.ibm.com>
14436 * doc/gcc.texi (Software development): Add a direntry for g++.
14438 2008-01-23 Hans-Peter Nilsson <hp@axis.com>
14440 * config/cris/cris.h (CC1PLUS_SPEC, OPTIMIZATION_OPTIONS): Drop
14441 stale and straggling -fforce-addr comments above.
14443 * config/cris/cris.h (CRIS_SUBTARGET_VERSION, TARGET_VERSION): Don't
14445 * config/cris/linux.h (CRIS_SUBTARGET_VERSION): Don't define.
14446 * config/cris/aout.h (CRIS_SUBTARGET_VERSION): Don't define.
14448 2008-01-23 Michael Matz <matz@suse.de>
14451 * dwarf2out.c (force_type_die): Use modified_type_die instead of
14454 2008-01-23 Andreas Krebbel <krebbel1@de.ibm.com>
14456 * ipa-struct-reorg.c (create_new_malloc): Use pointer type as
14457 malloc result type.
14459 2008-01-23 Anatoly Sokolov <aesok@post.ru>
14461 * config/avr/avr.c (avr_current_arch): New variable.
14462 (avr_arch_types): Add 'avr31' and 'avr51' entries.
14463 (avr_arch): Add 'ARCH_AVR31' and 'ARCH_AVR51'.
14464 (avr_mcu_types): Add 'avr31' and 'avr51' architectures.
14465 (avr_override_options): Init 'avr_current_arch'.
14466 (base_arch_s): Move from here...
14467 * config/avr/avr.h (base_arch_s): ... here. Add new members
14468 'have_elpm', 'have_elpmx', 'have_eijmp_eicall', 'reserved'. Rename
14469 'mega' to 'have_jmp_call'.
14470 (TARGET_CPU_CPP_BUILTINS): Define "__AVR_HAVE_JMP_CALL__",
14471 "__AVR_HAVE_RAMPZ__", "__AVR_HAVE_ELPM__" and "__AVR_HAVE_ELPMX__"
14473 (LINK_SPEC, CRT_BINUTILS_SPECS, ASM_SPEC): Add 'avr31' and 'avr51'
14475 * config/avr/t-avr (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
14476 MULTILIB_MATCHES): (Ditto.).
14478 2008-01-23 Richard Guenther <rguenther@suse.de>
14480 PR middle-end/31529
14481 * cgraphunit.c (cgraph_reset_node): Always mark the node
14482 not reachable if it is not queued already.
14484 2008-01-23 Bernd Schmidt <bernd.schmidt@analog.com>
14486 * config/bfin/bfin-protos.h (WA_RETS, ENABLE_WA_RETS): New macros.
14487 * config/bfin/bfin.c (bfin_cpus): Add WA_RETS everywhere.
14488 (cputype_selected): New static variable.
14489 (bfin_handle_option): Set it if -mcpu is used.
14490 (override_option): Select default set of workarounds if no cpu type
14491 selected on the command line.
14492 (workaround_rts_anomaly): Only run if ENABLE_WA_RETS.
14494 From Michael Frysinger <michael.frysinger@analog.com>
14495 * config/bfin/bfin-protos.h (enum bfin_cpu_type): Add
14496 BFIN_CPU_BF547, BFIN_CPU_BF523, BFIN_CPU_BF524, and BFIN_CPU_BF526.
14498 * config/bfin/elf.h (LIB_SPEC): Use proper linker script
14499 for bf547, bf523, bf524, and bf526.
14500 * config/bfin/bfin.c (bfin_cpus[]): Add bf547, bf523, bf524, and
14502 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
14503 __ADSPBF523__ for bf523, __ADSPBF524__ for bf524,
14504 __ADSPBF526__ for bf526, __ADSPBF52x__ for all three, as well as
14505 __ADSPBF547__ and __ADSPBF54x__ for bf547.
14506 * doc/invoke.texi (Blackfin Options): Document that
14507 -mcpu now accept bf547, bf523, bf524, and bf526.
14509 2008-01-22 Eric Botcazou <ebotcazou@adacore.com>
14511 PR rtl-optimization/34628
14512 * combine.c (try_combine): Stop and undo after the first combination
14513 if an autoincrement side-effect on the first insn has effectively
14516 2008-01-22 David Edelsohn <edelsohn@gnu.org>
14519 * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
14520 Offset addresses are not valid for Altivec or paired float modes.
14522 2008-01-22 Jakub Jelinek <jakub@redhat.com>
14525 * c-parser.c (c_parser_omp_for_loop): Don't call c_finish_omp_for
14526 if DECL_INITIAL (decl) is error_mark_node.
14529 * c-common.c (handle_vector_size_attribute): Only allow
14530 integral, scalar float and fixed point types. Handle OFFSET_TYPE
14531 the same way as pointer, array etc. types.
14532 * tree.c (reconstruct_complex_type): Handle OFFSET_TYPE.
14535 * tree.c (build_type_attribute_qual_variant): Call
14536 build_qualified_type if attributes are equal, but quals are not.
14538 2008-01-22 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
14541 * doc/invoke.texi (-Wall): -Wall enables -Wstrict-overflow=1.
14542 * flags.h (warn_strict_aliasing): Remove.
14543 (warn_strict_overflow): Remove.
14544 * opts.c (warn_strict_aliasing): Remove.
14545 (warn_strict_overflow): Remove.
14546 * c-opts.c (c_common_handle_option): -Wall only sets
14547 -Wstrict-aliasing or -Wstrict-overflow if they are uninitialized.
14548 (c_common_post_options): Give default values to -Wstrict-aliasing
14549 and -Wstrict-overflow if they are uninitialized.
14550 * common.opt (Wstrict-aliasing): Specify Var and Init.
14551 (Wstrict-overflow): Likewise.
14553 2008-01-22 Kenneth Zadeck <zadeck@naturalbridge.com>
14555 PR rtl-optimization/26854
14556 PR rtl-optimization/34400
14557 PR rtl-optimization/34884
14558 * ddg.c (create_ddg_dep_from_intra_loop_link): Use
14560 * df.h (df_changeable_flags.DF_RD_NO_TRIM): Deleted
14561 (df_rd_bb_info.expanded_lr_out): Deleted
14562 * loop_invariant.c (find_defs): Deleted DF_RD_NO_TRIM flag.
14563 * loop_iv.c (iv_analysis_loop_init): Ditto. * df-problems.c
14564 (df_rd_free_bb_info, df_rd_alloc, df_rd_confluence_n,
14565 df_rd_bb_local_compute, df_rd_transfer_function, df_rd_free):
14566 Removed code to allocate, initialize or free expanded_lr_out.
14567 (df_rd_bb_local_compute_process_def): Restructured to make more
14569 (df_rd_confluence_n): Removed code to no apply invalidate_by_call
14570 sets if the sets are being trimmed.
14572 2008-01-22 H.J. Lu <hongjiu.lu@intel.com>
14575 * configure.ac (ld_vers): Support GNU linker version xx.xx.*
14576 (as_vers): Likewise.
14577 * configure: Regenerated.
14579 2008-01-22 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
14581 PR middle-end/33092
14582 * tree-pass.h (pass_build_alias): New pass.
14583 * tree-ssa-alias.c (gate_build_alias): New.
14584 (pass_build_alias): New.
14585 * passes.c (init_optimization_passes): Add pass_build_alias after
14586 pass_create_structure_vars.
14588 2008-01-22 Wolfgang Gellerich <gellerich@de.ibm.com>
14590 * config/s390/s390.h (S390_TDC_POSITIVE_NORMALIZED_NUMBER):
14591 Renamed to S390_TDC_POSITIVE_NORMALIZED_BFP_NUMBER.
14592 (S390_TDC_NEGATIVE_NORMALIZED_NUMBER): Renamed to
14593 S390_TDC_NEGATIVE_NORMALIZED_BFP_NUMBER.
14594 (S390_TDC_POSITIVE_DENORMALIZED_NUMBER): Renamed to
14595 S390_TDC_POSITIVE_DENORMALIZED_BFP_NUMBER.
14596 (S390_TDC_NEGATIVE_DENORMALIZED_NUMBER): Renamed to
14597 S390_TDC_NEGATIVE_DENORMALIZED_BFP_NUMBER.
14598 (S390_TDC_POSITIVE_NORMALIZED_BFP_NUMBER): New constant.
14599 (S390_TDC_NEGATIVE_NORMALIZED_BFP_NUMBER): New constant.
14600 (S390_TDC_POSITIVE_DENORMALIZED_BFP_NUMBER): New constant.
14601 (S390_TDC_NEGATIVE_DENORMALIZED_BFP_NUMBER): New constant.
14602 * config/s390/s390.md (FP_ALL): New mode iterator.
14603 (_d): New mode attribute.
14604 ("*signbit<mode>2>"): Changed mode of first operand.
14605 ("isinf<mode>2"): Changed mode of first operand.
14606 ("*TDC_insn"): Adaptation for DFP modes.
14608 2008-01-22 Ben Elliston <bje@au.ibm.com>
14610 * tree.c (check_qualified_type): Improve function description.
14612 2008-01-21 Jason Merrill <jason@redhat.com>
14615 * tree.h (TRY_CATCH_IS_CLEANUP): New macro.
14616 * tree-eh.c (honor_protect_cleanup_actions): Strip TRY_CATCH_EXPR
14619 2008-01-21 DJ Delorie <dj@redhat.com>
14621 * doc/tm.texi (HARD_REGNO_NREGS): Note that this macro must not
14624 2008-01-21 Richard Guenther <rguenther@suse.de>
14626 PR middle-end/34856
14627 * tree-cfg.c (verify_expr): Allow all invariant expressions
14628 instead of just constant class ones as reference argument.
14629 * tree-ssa-loop-im.c (for_each_index): Handle CONSTRUCTOR
14630 like any other constant.
14631 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
14633 2008-01-21 H.J. Lu <hongjiu.lu@intel.com>
14635 * regmove.c (fixup_match_1): Update call crossed frequencies.
14637 2008-01-21 Richard Guenther <rguenther@suse.de>
14640 * tree-inline.c (setup_one_parameter): Deal with mismatched
14641 types using a VIEW_CONVERT_EXPR.
14643 2008-01-21 Alon Dayan <alond@il.ibm.com>
14644 Olga Golovanevsky <olga@il.ibm.com>
14646 PR tree-optimization/34701
14647 * ipa-struct-reorg.c (gen_size): Fix the malloc parameter calculation
14648 when the structure size is not a power of 2.
14650 2008-01-20 Kenneth Zadeck <zadeck@naturalbridge.com>
14652 * doc/install.texi: Add doc for --enable-checking=df.
14654 2008-01-20 Kaz Kojima <kkojima@gcc.gnu.org>
14656 PR rtl-optimization/34808
14657 * emit-rtl.c (try_split): Handle REG_RETVAL notes.
14659 2008-01-20 Richard Sandiford <rsandifo@nildram.co.uk>
14661 * global.c (find_reg): Only compute EH_RETURN_DATA_REGNO once per
14664 2008-01-19 Kenneth Zadeck <zadeck@naturalbridge.com>
14666 PR rtl-optimization/26854
14667 PR rtl-optimization/34400
14668 * ddg.c (create_ddg_dep_from_intra_loop_link): Do not use
14670 * df.h (df_changeable_flags.DF_RD_NO_TRIM): New.
14671 (df_rd_bb_info.expanded_lr_out): New.
14672 * loop_invariant.c (find_defs): Added DF_RD_NO_TRIM flag.
14673 * loop_iv.c (iv_analysis_loop_init): Ditto.
14674 * df-problems.c (df_rd_free_bb_info, df_rd_alloc, df_rd_confluence_n,
14675 df_rd_bb_local_compute, df_rd_transfer_function, df_rd_free):
14676 Added code to allocate, initialize or free expanded_lr_out.
14677 (df_rd_bb_local_compute_process_def): Restructured to make
14678 more understandable.
14679 (df_rd_confluence_n): Add code to do nothing with fake edges and
14680 code to no apply invalidate_by_call sets if the sets are being trimmed.
14681 (df_lr_local_finalize): Renamed to df_lr_finalize.
14682 (df_live_local_finalize): Renamed to df_live_finalize.
14684 2008-01-20 Richard Sandiford <rsandifo@nildram.co.uk>
14687 * config/mips/mips.md (div<mode>3): Use <recip_condition> when
14688 deciding whether to use reciprocal instructions.
14690 2008-01-19 Uros Bizjak <ubizjak@gmail.com>
14692 * dwarf2out.c (dwarf2out_switch_text_section): Do not call
14693 dwarf2out_note_section_used if cold_text_section is NULL.
14695 2008-01-19 Jakub Jelinek <jakub@redhat.com>
14697 PR gcov-profile/34610
14698 * tree-cfg.c (make_edges): Mark both outgoing edges from
14699 OMP_CONTINUE and from OMP_FOR as EDGE_ABNORMAL.
14700 * omp-low.c (expand_omp_for): Clear EDGE_ABNORMAL bits
14701 from OMP_FOR and OMP_CONTINUE outgoing edges.
14703 * tree-profile.c (tree_profiling): Return early if
14704 cfun->after_tree_profile != 0. Set cfun->after_tree_profile
14706 * omp-low.c (expand_omp_parallel): Copy after_tree_profile
14707 from cfun to child_cfun.
14708 * function.h (struct function): Add after_tree_profile bit.
14710 2008-01-19 Anatoly Sokolov <aesok@post.ru>
14712 * config/avr/avr.S (_exit): Disable interrupt.
14714 2008-01-18 Kenneth Zadeck <zadeck@naturalbridge.com>
14715 Steven Bosscher <stevenb.gcc@gmail.com>
14717 PR rtl-optimization/26854
14718 PR rtl-optimization/34400
14719 * df-problems.c (df_live_scratch): New scratch bitmap.
14720 (df_live_alloc): Allocate df_live_scratch when doing df_live.
14721 (df_live_reset): Clear the proper bitmaps.
14722 (df_live_bb_local_compute): Only process the artificial defs once
14723 since the order is not important.
14724 (df_live_init): Init the df_live sets only with the variables
14725 found live by df_lr.
14726 (df_live_transfer_function): Use the df_lr sets to prune the
14727 df_live sets as they are being computed.
14728 (df_live_free): Free df_live_scratch.
14730 2008-01-18 Ian Lance Taylor <iant@google.com>
14732 * common.opt: Add fmerge-debug-strings.
14733 * dwarf2out.c (DEBUG_STR_SECTION_FLAGS): Test
14734 flag_merge_debug_strings rather than flag_merge_constants.
14735 * doc/invoke.texi (Option Summary): Mention
14736 -fmerge-debug-strings.
14737 (Debugging Options): Document -fmerge-debug-strings.
14739 2008-01-18 Ian Lance Taylor <iant@google.com>
14742 * tree.h (DECL_IS_OPERATOR_NEW): Define.
14743 (struct tree_function_decl): Add new field operator_new_flag.
14744 * tree-inline.c (expand_call_inline): When inlining a call to
14745 operator new, force the return value to go into a variable, and
14746 set DECL_NO_TBAA_P on that variable.
14747 * c-decl.c (merge_decls): Merge DECL_IS_OPERATOR_NEW flag.
14749 2008-01-18 Uros Bizjak <ubizjak@gmail.com>
14752 * dwarf2out.c (dwarf2out_switch_text_section): Do not guard with
14753 DWARF2_DEBUGGING_INFO.
14754 (dwarf2out_note_section_used): Ditto. Add prototype.
14755 (have_multiple_function_sections, text_section_used,
14756 cold_text_section_used, *cold_text_sections): Move declarations
14759 2008-01-17 Bob Wilson <bob.wilson@acm.org>
14761 * config/xtensa/unwind-dw2-xtensa.h (_Unwind_FrameState): Remove pc
14762 field and add signal_ra.
14763 * config/xtensa/unwind-dw2-xtensa.c (uw_frame_state_for): Remove
14764 assignments to frame state pc. Move end of stack check after
14765 MD_FALLBACK_FRAME_STATE_FOR.
14766 (uw_update_context_1): Use frame state signal_regs if set, instead
14767 of checking signal_frame flag.
14768 (uw_update_context): Use frame state signal_ra if set.
14769 * config/xtensa/linux.h (MD_UNWIND_SUPPORT): Define.
14770 * config/xtensa/linux-unwind.h: New file.
14772 2008-01-18 Bernhard Fischer <aldot@gcc.gnu.org>
14774 * modulo-sched.c (get_sched_window): Fix comment typo.
14776 2008-01-17 Andrew MacLeod <amacleod@redhat.com>
14778 PR tree-optimization/34648
14779 * tree-ssa-sccvn.c (visit_use): Expressions which can throw are varying.
14781 2008-01-17 Anatoly Sokolov <aesok@post.ru>
14783 * config/avr/avr.h (LINK_SPEC): Support -mrelax and -mpmem-wrap-around.
14784 * config/avr/avr.opt (mrelax, mpmem-wrap-around): Add.
14786 2008-01-17 Seongbae Park <seongbae.park@gmail.com>
14788 PR rtl-optimization/34400
14789 * df-core.c (df_worklist_dataflow_overeager,
14790 df_worklist_dataflow_doublequeue): New functions.
14791 (df_worklist_dataflow): Two different worklist solvers.
14792 * params.def (PARAM_DF_DOUBLE_QUEUE_THRESHOLD_FACTOR):
14795 2008-01-16 Sebastian Pop <sebastian.pop@amd.com>
14798 * doc/invoke.texi: Document the dependence on pthread for fopenmp
14799 and ftree-parallelize-loops.
14801 2008-01-17 Mircea Namolaru <namolaru@il.ibm.com>
14803 PR rtl-optimization/34826
14804 * loop-doloop (doloop_modify): Update the REG_BR_PROB note.
14806 2008-01-17 Andreas Krebbel <krebbel1@de.ibm.com>
14808 * global.c (find_reg): Mark the eh regs as used if necessary.
14809 * ra-conflict.c (global_conflicts): Set no_eh_reg flag.
14810 * ra.h (struct allocno): no_eh_reg field added. Changed
14811 no_stack_reg type to bitfield.
14813 2008-01-17 Eric Botcazou <ebotcazou@adacore.com>
14815 * tree.c (substitute_in_expr): Add missing 'break'.
14817 2008-01-17 Richard Guenther <rguenther@suse.de>
14819 PR tree-optimization/34825
14820 * tree-ssa-math-opts.c (is_division_by): Do not recognize
14821 x / x as division to handle.
14823 2008-01-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
14825 * pa64-hpux.h (LIB_SPEC): Add "-lpthread" in shared links if "-mt" or
14826 "-pthread" is specified.
14827 * pa-hpux11.h (LIB_SPEC): Likewise.
14829 2008-01-16 Janis Johnson <janis187@us.ibm.com>
14830 Peter Bergner <bergner@vnet.ibm.com>
14832 PR rtl-optimization/33796
14833 * sparseset.c (sparseset_alloc): Use xcalloc rather than xmalloc.
14835 2008-01-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
14837 PR libgfortran/34699
14838 * pa-hpux.h (LINK_SPEC): Only search /lib/pa1.1 and /usr/lib/pa1.1 on
14840 * pa-hpux10.h (LINK_SPEC): Likewise.
14841 * pa-hpux11.h (LINK_SPEC): Don't search /lib/pa1.1 and /usr/lib/pa1.1.
14843 2008-01-16 Richard Guenther <rguenther@suse.de>
14845 PR middle-end/32628
14846 * fold-const.c (fold_convert_const_int_from_int): Do not
14847 set overflow if that occured only because of a sign extension
14848 change when converting from/to a sizetype with the same
14849 precision and signedness.
14851 2008-01-16 Uros Bizjak <ubizjak@gmail.com>
14854 * dwarf2out.c (output_call_frame_info): Move output of FDE initial
14855 location address to the correct place. Update copyright year.
14857 2008-01-16 Sebastian Pop <sebastian.pop@amd.com>
14859 * lambda-code.c (lambda_transform_legal_p): Handle the case of
14860 no dependences in the dependence_relations vector.
14862 2008-01-16 Jan Hubicka <jh@suse.cz>
14864 PR rtl-optimization/31396
14865 * regstat.c (regstat_bb_compute_ri): Compute FREQ_CALLS_CROSSED.
14866 * cfg.c (dump_reg_info): Print it.
14867 * regs.h (struct reg_info_t): add freq_calls_crossed.
14868 (REG_FREQ_CALLS_CROSSED): New macro.
14869 * global.c (global_alloc): Compute freq_calls_crossed for allocno.
14870 (find_reg): Update call of CALLER_SAVE_PROFITABLE.
14871 * regmove.c (optimize_reg_copy_1, optimize_reg_copy_2, fixup_match_2,
14872 regmove_optimize): Update call crossed frequencies.
14873 * local-alloc.c (struct qty): Add freq_calls_crossed.
14874 (alloc_qty): Copute freq_calls_crossed.
14875 (update_equiv_regs, combine_regs): Update REG_FREQ_CALLS_CROSSED.
14876 (find_free_reg): Update call of CALLER_SAVE_PROFITABLE.
14877 * ra.h (struct allocno): Add freq_calls_crossed.
14879 2008-01-16 Sebastian Pop <sebastian.pop@amd.com>
14881 * gcc.c (LINK_COMMAND_SPEC): Add includes and link options for
14882 libgomp when compiling with ftree-parallelize-loops.
14883 (GOMP_SELF_SPECS): Add -pthread for ftree-parallelize-loops.
14885 2008-01-16 Richard Guenther <rguenther@suse.de>
14887 PR tree-optimization/34769
14888 * tree-data-ref.c (initialize_matrix_A): Revert fix for PR34458.
14889 * tree.c (int_cst_value): Instead make this function more
14890 permissive in what it accepts as valid input. Document this
14891 function always sign-extends the value.
14893 2008-01-16 Jakub Jelinek <jakub@redhat.com>
14894 Richard Guenther <rguenther@suse.de>
14897 * gimplify.c (fold_indirect_ref_rhs): Rename to ...
14898 (gimple_fold_indirect_ref_rhs): ... this.
14899 (gimple_fold_indirect_ref): New function with foldings
14900 that preserve lvalueness.
14901 (gimplify_modify_expr_rhs): Call gimple_fold_indirect_ref_rhs.
14902 * tree-flow.h (gimple_fold_indirect_ref): Declare.
14903 * tree-inline.c (copy_body_r): Use gimple_fold_indirect_ref
14904 to fold an INDIRECT_REF, fall back to the old use of
14905 fold_indirect_ref_1.
14907 2008-01-16 Sebastian Pop <sebastian.pop@amd.com>
14909 * tree-data-ref.c (subscript_dependence_tester_1): Call
14910 free_conflict_function.
14911 (compute_self_dependence): Same.
14913 2008-01-16 Uros Bizjak <ubizjak@gmail.com>
14916 * debug.h (dwarf2out_switch_text_section): Move declaration from ...
14917 * dwarf2out.c (dwarf2out_switch_text_section): ... here. Make
14919 * final.c (final_scan_insn) [NOTE_INSN_SWITCH_TEXT_SECTIONS]:
14920 Depending on dwarf2out_do_frame, call dwarf2out_switch_text_section
14921 for DWARF2_UNWIND_INFO targets.
14923 2008-01-16 Richard Guenther <rguenther@suse.de>
14926 * c-typeck.c (common_pointer_type): Do not merge inconsistent
14927 type qualifiers for function types.
14929 2008-01-15 Jerry DeLisle <jvdelisle@gcc.gnu.org>
14931 * tree-parloops.c (gen_parallel_loop): Fix ommision of declaration for
14932 loop_iterator li from previous commit.
14934 2008-01-15 Sebastian Pop <sebastian.pop@amd.com>
14936 * tree-parloops.c (gen_parallel_loop): Free loop bound estimations.
14938 2008-01-12 Sebastian Pop <sebastian.pop@amd.com>
14940 * tree-parloops.c (loop_has_blocks_with_irreducible_flag): New.
14941 (parallelize_loops): Don't parallelize irreducible components.
14943 2008-01-14 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
14946 * c-opts (c_common_post_options): Do not enable CPP
14947 flag_pedantic_errors by default.
14949 2008-01-14 Eric Botcazou <ebotcazou@adacore.com>
14951 PR rtl-optimization/31944
14952 * cse.c (remove_pseudo_from_table): New function.
14953 (merge_equiv_classes): Use above function to remove pseudo-registers.
14954 (invalidate): Likewise.
14956 2008-01-13 Richard Guenther <rguenther@suse.de>
14958 PR middle-end/34601
14959 * emit-rtl.c (set_reg_attrs_for_decl_rtl): Use DECL_MODE
14960 instead of TYPE_MODE to deal with calls from expand_one_error_var.
14962 2008-01-13 Uros Bizjak <ubizjak@gmail.com>
14964 * gcse.c (cprop_jump): Call validate_unshare_change instead of
14965 validate_change to unshare the source of the PC set.
14967 2008-01-12 Jan Hubicka <jh@suse.cz>
14969 PR middle-end/32135
14970 * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Do not construct
14971 references above array bounds. This might trigger bounds checks for
14972 pointers to arrays.
14974 2008-01-12 Sebastian Pop <sebastian.pop@amd.com>
14976 * tree-ssa-ter.c (free_temp_expr_table): Free num_in_part and
14977 new_replaceable_dependencies.
14979 2008-01-12 Doug Kwan <dougkwan@google.com>
14981 * c-decl.c: (grokdeclarator): Use OPT_Wignored_qualifiers
14982 instead of OPT_Wreturn_type in warning due to ignored return type
14984 * c-opt.c (c_common_post_option): Add -Wignored-qualifiers to
14985 options included in -Wextra.
14986 * c.opt: New option -Wignored_qualifiers.
14987 * doc/invoke.texi (Warning Options, -Wextra): Add new option
14988 -Wignore_qualifiers.
14989 (-Wignored-qualifiers): Document.
14990 (-Wreturn-type): Remove description of functionality now handled
14991 by -Wignored-qualifiers.
14993 2008-01-12 Eric Botcazou <ebotcazou@adacore.com>
14996 * fold-const.c (fold_unary) <VIEW_CONVERT_EXPR>: Fold an existing
14997 NOP_EXPR if it is between integral types with the same precision.
14999 2008-01-12 Jan Hubicka <jh@suse.cz>
15002 * invoke.texi (max-inline-recursive-depth): Fix default value.
15004 2008-01-12 Zdenek Dvorak <ook@ucw.cz>
15006 * tree-parloops.c (transform_to_exit_first_loop): Cast nit to the
15009 2008-01-11 Bob Wilson <bob.wilson@acm.org>
15011 * config/xtensa/xtensa.c (override_options): Set flag_shlib.
15013 2008-01-11 James E. Wilson <wilson@specifix.com>
15016 * config/vax/elf.h (FRAME_POINTER_CFA_OFFSET): Define.
15018 2008-01-11 Anatoly Sokolov <aesok@post.ru>
15020 * config/avr/avr.c (expand_prologue, expand_epilogue): Don't
15021 save/restore frame pointer register and don't use 'call-prologues'
15022 optimization in function with "OS_task" attribute.
15024 2008-01-11 Eric Botcazou <ebotcazou@adacore.com>
15026 PR middle-end/31309
15027 * expr.c (copy_blkmode_from_reg): Use a mode suited to the size
15028 when copying to memory.
15030 2008-01-11 Steven Bosscher <stevenb.gcc@gmail.com>
15032 PR rtl-optimization/30905
15033 * cfgcleanup.c: Include dce.h
15034 (crossjumps_occured): New global variable.
15035 (try_crossjump_bb): Exit loop after finding a fallthru edge.
15036 If something changed, set crossjumps_occured to true.
15037 (try_optimize_cfg): Clear crossjumps_occured at the beginning.
15038 Don't add/remove fake edges to exit here...
15039 (cleanup_cfg): ...but do it here, when crossjumping.
15040 Run a fast DCE when successful crossjumps occured in the latest
15041 iteration of try_optimize_cfg.
15043 2008-01-11 Richard Guenther <rguenther@suse.de>
15045 * tree-ssa-sccvn.c (struct vn_binary_op_s): Move hashcode near opcode.
15046 (struct vn_unary_op_s): Likewise.
15047 (vn_reference_insert): Free old reference on hash collision.
15049 2008-01-10 Raksit Ashok <raksit@google.com>
15051 PR rtl-optimization/27971
15052 * combine.c (find_split_point): Split PLUS expressions which are
15053 inside a MEM rtx, and whose first operand is complex.
15055 2008-01-10 DJ Delorie <dj@redhat.com>
15057 * config/m32c/m32c.c (m32c_hard_regno_nregs_1): Renamed from...
15058 (m32c_hard_regno_nregs): ...this, which is now a wrapper.
15059 (m32c_hard_regno_ok): Call the underlying function.
15061 2008-01-10 Richard Guenther <rguenther@suse.de>
15063 PR middle-end/34683
15064 * tree-cfg.c (tree_merge_blocks): Do not go through the
15065 full-blown folding and stmt updating path if we just deal
15066 with virtual operands.
15067 * tree-ssa-copy.c (may_propagate_copy): Do not short-cut
15068 test for abnormal SSA_NAMEs.
15070 2008-01-10 Andreas Krebbel <krebbel1@de.ibm.com>
15072 PR middle-end/34641
15073 * reload.c (push_reload): Add assertions. All constants from
15074 reg_equiv_constant should have been used for replacing the respective
15076 (find_reloads_address): Invoke find_reloads_address_part for
15077 constant taken from the reg_equiv_constant array.
15079 2008-01-10 Steven Bosscher <stevenb.gcc@gmail.com>
15081 * tree-ssa-sccvn.h (struct vn_ssa_aux): Make the most accessed
15082 field (valnum) the first in the struct. Replace bools with
15085 2008-01-10 Richard Guenther <rguenther@suse.de>
15087 PR tree-optimization/34651
15088 * tree-sra.c (sra_build_assignment): Sanitize. Use the correct
15089 types and ordering for masking and converting.
15091 2008-01-09 Sebastian Pop <sebastian.pop@amd.com>
15093 PR tree-optimization/34017
15094 * lambda-code.c (lambda_loopnest_to_gcc_loopnest): Generate code
15095 also for PHI_NODE expressions.
15097 2008-01-09 Jan Hubicka <jh@suse.cz>
15099 PR tree-optimization/34708
15100 * tree-inline.c (estimate_num_insns_1): Compute cost of SWITCH_EXPR
15101 based on number of case labels.
15102 (init_inline_once): Remove switch_cost.
15103 * tree-inline.h (eni_weights_d): Remove switch_cost.
15105 2008-01-09 Richard Guenther <rguenther@suse.de>
15106 Andrew Pinski <andrew_pinski@playstation.sony.com>
15108 PR middle-end/30132
15109 * gimplify.c (gimplify_cond_expr): Do not create an addressable
15110 temporary if an rvalue is ok or an lvalue is not required.
15112 2008-01-09 Richard Guenther <rguenther@suse.de>
15114 PR middle-end/34458
15115 * tree-data-ref.c (initialize_matrix_A): Use tree_low_cst,
15116 adjust return type.
15118 2008-01-09 Richard Guenther <rguenther@suse.de>
15120 PR middle-end/34679
15121 * tree.c (host_integerp): Check for sizetype only if the
15122 type is an integer type.
15124 2008-01-09 Steven Bosscher <stevenb.gcc@gmail.com>
15127 * opts.c (decode_options): Disable inlining of functions called
15128 once if not in unit-at-a-time mode.
15130 2008-01-09 Alexandre Oliva <aoliva@redhat.com>
15132 * Makefile.in (dse.o): Remove duplicate $(RECOG_H) dependency.
15134 2008-01-08 Richard Guenther <rguenther@suse.de>
15136 PR middle-end/31863
15137 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Bail
15138 out early if the result will be unused.
15140 2008-01-08 Uros Bizjak <ubizjak@gmail.com>
15145 2008-01-05 Uros Bizjak <ubizjak@gmail.com>
15146 * config/i386/i386.c (ix86_builtin_reciprocal): Remove check
15149 2008-01-08 Jan Sjodin <jan.sjodin@amd.com>
15151 * config/i386/i386.c (k8_cost, amdfam10_cost): Branch costs
15152 for vectorization tuned.
15154 2008-01-08 Richard Guenther <rguenther@suse.de>
15156 PR tree-optimization/34683
15157 * tree-ssa-operands.c (operand_build_cmp): Export.
15158 * tree-ssa-operands.h (operand_build_cmp): Declare.
15159 * tree-vn.c (vuses_compare): Remove.
15160 (sort_vuses): Use operand_build_cmp.
15161 (sort_vuses_heap): Likewise.
15162 * tree-ssa-sccvn.c (vuses_to_vec): Use VEC_reserve, not VEC_alloc
15163 to re-use old VEC if available. Do not sort already sorted VUSEs.
15164 (vdefs_to_vec): Do not sort already sorted VDEFs.
15166 2008-01-08 Jakub Jelinek <jakub@redhat.com>
15168 PR middle-end/34694
15169 * omp-low.c (copy_var_decl): Copy also DECL_SOURCE_LOCATION.
15171 2008-01-08 Uros Bizjak <ubizjak@gmail.com>
15174 * doc/invoke.texi (i386 and x86-64 Options) [mrecip]: Document
15175 limitations of reciprocal sequences on x86 targets.
15177 2008-01-08 Richard Guenther <rguenther@suse.de>
15179 PR tree-optimization/34683
15180 * tree-flow-inline.h (var_ann): Remove overzealous asserts.
15182 2008-01-07 Jakub Jelinek <jakub@redhat.com>
15185 * config/darwin.c (darwin_mergeable_string_section): Don't use
15186 .cstring if int_size_in_bytes != TREE_STRING_LENGTH.
15188 2008-01-07 Uros Bizjak <ubizjak@gmail.com>
15191 * config/i386/i386.md (neg<mode>2): Rename from negsf2, negdf2 and
15192 negxf2. Macroize expander using X87MODEF mode iterator. Change
15193 predicates of op0 and op1 to register_operand.
15194 (abs<mode>2): Rename from abssf2, absdf2 and negxf2. Macroize
15195 expander using X87MODEF mode iterator. Change predicates of
15196 op0 and op1 to register_operand.
15197 ("*absneg<mode>2_mixed", "*absneg<mode>2_sse"): Rename from
15198 corresponding patterns and macroize using MODEF macro. Change
15199 predicates of op0 and op1 to register_operand and remove
15200 "m" constraint. Disparage "r" alternative with "!".
15201 ("*absneg<mode>2_i387"): Rename from corresponding patterns and
15202 macroize using X87MODEF macro. Change predicates of op0 and op1
15203 to register_operand and remove "m" constraint. Disparage "r"
15204 alternative with "!".
15205 (absneg splitter with memory operands): Remove.
15206 ("*neg<mode>2_1", "*abs<mode>2_1"): Rename from corresponding
15207 patterns and macroize using X87MODEF mode iterator.
15208 * config/i386/sse.md (negv4sf2, absv4sf2, neg2vdf2, absv2df2):
15209 Change predicate of op1 to register_operand.
15210 * config/i386/i386.c (ix86_expand_fp_absneg_operator): Remove support
15211 for memory operands.
15213 2008-01-07 Nathan Froyd <froydnj@codesourcery.com>
15215 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add clause for mcpu=8548.
15217 2008-01-07 Richard Guenther <rguenther@suse.de>
15219 * basic-block.h (struct edge_def): Pair dest_idx with goto_locus
15222 2008-01-07 Richard Guenther <rguenther@suse.de>
15224 PR tree-optimization/34683
15225 * tree-ssa-sccvn.c (vuses_to_vec): Pre-allocate the vector of
15226 VOPs of the needed size to save memory. Use VEC_quick_push
15227 to save compile-time.
15228 (vdefs_to_vec): Likewise.
15230 2008-01-07 Sa Liu <saliu@de.ibm.com>
15232 * config/spu/spu.md (divdf3): Genetate inline code for double
15233 division. The implementation doesn't handle INF or NAN, therefore it
15234 only applies when -ffinite-math-only is given.
15236 2008-01-06 Paolo Carlini <pcarlini@suse.de>
15239 * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_RTTI, if appropriate.
15240 * doc/cpp.texi ([Common Predefined Macros]): Document.
15242 2008-01-06 Uros Bizjak <ubizjak@gmail.com>
15244 * config/i386/i386.c (ix86_emit_swsqrtsf): Use negative constants in
15245 order to use commutative addition instead of subtraction.
15247 2008-01-06 Andrew Pinski <andrew_pinski@playstation.sony.com>
15248 Mircea Namolaru <namolaru@il.ibm.com>
15249 Vladimir Yanovsky <yanov@il.ibm.com>
15250 Revital Eres <eres@il.ibm.com>
15252 PR tree-optimization/34263
15253 * tree-outof-ssa.c (process_single_block_loop_latch,
15254 contains_tree_r): New functions.
15255 (analyze_edges_for_bb): Call process_single_block_loop_latch
15256 function to empty single-basic-block latch block if possible.
15258 2008-01-05 Uros Bizjak <ubizjak@gmail.com>
15260 * config/i386/i386.c (ix86_builtin_reciprocal): Remove check
15262 (ix86_emit_swsqrtsf): Do not filter out infinity for rsqrt expansion.
15264 2008-01-05 Richard Sandiford <rsandifo@nildram.co.uk>
15266 * c-omp.c (check_omp_for_incr_expr): Handle CONVERT_EXPR.
15268 2008-01-05 Richard Sandiford <rsandifo@nildram.co.uk>
15270 * config/mips/mips.c (mips_in_small_data_p): Reinstate size > 0 check.
15272 2008-01-05 Jakub Jelinek <jakub@redhat.com>
15274 PR tree-optimization/34618
15275 * tree-outof-ssa.c (create_temp): Copy over DECL_GIMPLE_REG_P
15278 2008-01-05 Uros Bizjak <ubizjak@gmail.com>
15281 * config/i386/i386.c (ix86_emit_swsqrtsf): Swap input operands
15282 in the call to gen_rtx_NE. Remove unneeded VECTOR_MODE_P check.
15283 Update copyright year.
15285 * config/i386/i386.md (rsqrtsf2): Enable for TARGET_SSE_MATH.
15286 Update copyright year.
15287 * config/i386/sse.md (rsqrtv4sf2): Ditto. Unconditionally expand
15290 2008-01-05 Zhouyi Zhou <zhouzhouyi@FreeBSD.org>
15292 * tree-vrp.c (find_conditional_asserts): Remove redundant check that
15293 edge does not point to current bb before changing need_assert.
15295 2008-01-04 Richard Guenther <rguenther@suse.de>
15297 PR middle-end/34029
15298 * tree-cfg.c (verify_expr): Do not look inside ADDR_EXPRs
15299 for verifying purposes if they are is_gimple_min_invariant.
15301 2008-01-04 Aldy Hernandez <aldyh@redhat.com>
15303 PR tree-optimization/34448
15304 PR tree-optimization/34465
15305 * gimplify.c (gimplify_init_constructor): Add new parameter
15306 notify_temp_creation. Use it.
15307 (gimplify_modify_expr_rhs): Take volatiles into account when
15308 optimizing constructors.
15309 Do not optimize constructors if gimplify_init_constructor will dump to
15311 * gcc.dg/tree-ssa/pr32901.c: Tests const volatiles.
15312 * gcc.c-torture/compile/pr34448.c: New.
15314 2008-01-04 Jakub Jelinek <jakub@redhat.com>
15316 PR gcov-profile/34609
15317 * tree-inline.c (declare_return_variable): Set TREE_ADDRESSABLE on
15318 return_slot if result is TREE_ADDRESSABLE.
15320 2008-01-04 Richard Sandiford <rsandifo@nildram.co.uk>
15322 * config/mips/mips.md (sqrt_condition): Tweak comment.
15323 (recip_condition): Likewise. Require TARGET_FLOAT64 for DFmode.
15325 2008-01-03 Tom Tromey <tromey@redhat.com>
15328 * c-common.c (c_type_hash): Handle VLAs.
15330 2008-01-03 Jan Hubicka <jh@suse.cz>
15332 PR tree-optimization/31081
15333 * tree-inline.c (remap_ssa_name): Initialize uninitialized SSA vars to
15334 0 when inlining and not inlining to first basic block.
15335 (remap_decl): When var is initialized to 0, don't set default_def.
15336 (expand_call_inline): Set entry_bb.
15337 * tree-inline.h (copy_body_data): Add entry_bb.
15339 2008-01-03 Jakub Jelinek <jakub@redhat.com>
15342 * cgraphunit.c (cgraph_build_static_cdtor): set_cfun back to NULL
15345 PR tree-optimization/29484
15346 * tree-inline.c (inline_forbidden_p_2): New function.
15347 (inline_forbidden_p): Disallow inlining if some static var
15348 has an address of a local LABEL_DECL in its initializer.
15349 * doc/extend.texi (Labels as Values): Document &&foo behaviour
15352 2008-01-03 Sebastian Pop <sebastian.pop@amd.com>
15354 PR tree-optimization/34635
15355 * tree-data-ref.c (add_other_self_distances): Make sure that the
15356 evolution step is constant.
15358 2008-01-03 Jakub Jelinek <jakub@redhat.com>
15360 PR middle-end/34608
15361 * omp-low.c (expand_omp_parallel): Purge dead EH edges in the child fn.
15363 2008-01-02 Richard Sandiford <rsandifo@nildram.co.uk>
15365 * tree-sra.c (scalarize_init): Insert the generate_element_init
15366 statements after the generate_element_zero statements.
15368 2008-01-02 Richard Guenther <rguenther@suse.de>
15370 PR middle-end/34093
15371 PR middle-end/31976
15372 * tree-ssa-operands.c (ssa_operand_alloc): Also allocate a buffer
15373 for very large number of operands instead of ICEing.
15375 2008-01-02 Arthur Norman <acn1@cam.ac.uk>
15378 * config/i386/i386.c (ix86_expand_prologue): Save red-zone
15379 while stack probing.
15381 2008-01-01 Douglas Gregor <doug.gregor@gmail.com>
15383 * c-opts.c (sanitize_cpp_opts): Don't warn about "long long" when
15386 2008-01-01 Volker Reichelt <v.reichelt@netcologne.de>
15388 PR libmudflap/26442
15389 * tree-mudflap.c (mx_register_decls): Guard warning by
15390 !DECL_ARTIFICIAL check.
15392 2008-01-01 Jakub Jelinek <jakub@redhat.com>
15394 * config/i386/sse.md (sse5_pperm, sse5_pperm_pack_v2di_v4si,
15395 sse5_pperm_pack_v4si_v8hi, sse5_pperm_pack_v8hi_v16qi,
15396 sse5_perm<mode>): Fix constraints.