1 2008-07-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3 * cfg.c (dump_reg_info): Avoid C++ keywords.
4 * dwarf2asm.c (dw2_force_const_mem,
5 dw2_asm_output_encoded_addr_rtx): Likewise.
6 * except.c (gen_eh_region, add_action_record, output_ttype):
8 * expmed.c (expand_shift): Likewise.
9 * global.c (find_reg): Likewise.
10 * graph.c (draw_edge): Likewise.
11 * local-alloc.c (reg_meets_class_p, find_free_reg): Likewise.
12 * optabs.c (expand_binop, expand_twoval_unop, expand_twoval_binop,
13 widen_clz, widen_bswap, expand_parity, expand_unop,
14 emit_cmp_and_jump_insn_1): Likewise.
15 * postreload.c (reload_cse_simplify_operands): Likewise.
16 * ra.h (add_neighbor): Likewise.
17 * reg-stack.c (remove_regno_note, change_stack): Likewise.
18 * regclass.c (memory_move_secondary_cost, dump_regclass, regclass,
19 record_reg_classes, copy_cost, record_address_regs,
20 invalid_mode_change_p): Likewise.
21 * regrename.c (regrename_optimize, scan_rtx_reg,
22 dump_def_use_chain, find_oldest_value_reg,
23 replace_oldest_value_reg, copyprop_hardreg_forward_1): Likewise.
25 2008-07-16 David Edelsohn <edelsohn@gnu.org>
27 * config/rs6000/rs6000.c (processor_target_table): Remove duplicate
28 MASK_POWERPC64 for power4 in previous commit.
30 2008-07-16 Olivier Hainque <hainque@adacore.com>
32 * collect2.c (scan_prog_file, COFF version): Use CONST_CAST
33 instead of bare conversion to cast const-ness away.
35 2008-07-16 Anatoly Sokolov <aesok@post.ru>
37 * config/xtensa/xtensa.h (FUNCTION_OUTGOING_VALUE,
38 XTENSA_FUNCTION_VALUE, XTENSA_FUNCTION_VALUE): Remove.
39 * config/xtensa/xtensa.c (xtensa_function_value): New function.
40 (TARGET_FUNCTION_VALUE): Define.
42 2008-07-16 David Edelsohn <edelsohn@gnu.org>
44 * config/rs6000/rs6000.c (processor_target_table): Add
45 MASK_PPC_GPOPT for power4, power5, power5+, power6, and power6x.
47 2008-07-16 Joseph Myers <joseph@codesourcery.com>
50 * config/m32c/m32c.c (BIG_FB_ADJ): Move definition earlier.
51 (m32c_legitimate_address_p): Handle "++rii" addresses created by
52 m32c_legitimize_reload_address.
54 2007-07-16 Rafael Avila de Espindola <espindola@google.com>
56 * c-decl.c (merge_decls): Keep DECL_SOURCE_LOCATION and
57 DECL_IN_SYSTEM_HEADER in sync.
59 2008-07-15 Daniel Berlin <dberlin@dberlin.org>
61 * tree-ssa-sccvn.c (expressions_equal_p): Check type equality.
62 * tree-ssa-pre.c (pre_expr_eq): Ditto
63 (get_constant_for_value_id): Take a type as an argument.
64 (fully_constant_expression): Pass in type.
65 (find_or_generate_expression): Short circuit constant case.
66 (create_expression_by_pieces): Remove special casing of
68 (do_regular_insertion): Short circuit constant case.
69 (do_partial_partial_insertion): Ditto.
71 2008-07-15 Kaz Kojima <kkojima@gcc.gnu.org>
74 * config/sh/sh.md (symGOT_load): Don't add REG_EQUAL note.
76 2008-07-15 Bob Wilson <bob.wilson@acm.org>
78 * config/xtensa/libgcc-xtensa.ver: New file.
79 * config/xtensa/t-linux (SHLIB_MAPFILES): Append libgcc-xtensa.ver.
81 2008-07-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
83 * df-problems.c (df_set_note): Avoid C++ keywords.
84 * df-scan.c (df_ref_change_reg_with_loc_1): Likewise.
85 * dse.c (record_store, remove_useless_values): Likewise.
86 * emit-rtl.c (gen_reg_rtx, update_reg_offset, gen_rtx_REG_offset,
87 gen_reg_rtx_offset, operand_subword, change_address_1,
88 change_address, adjust_address_1, offset_address,
89 widen_memory_access, emit_copy_of_insn_after): Likewise.
90 * explow.c (round_push, allocate_dynamic_stack_space): Likewise.
91 * fwprop.c (should_replace_address, propagate_rtx_1,
92 propagate_rtx, try_fwprop_subst, forward_propagate_and_simplify):
94 * gcse.c (cprop_jump, find_implicit_sets, bypass_block,
95 gcse_emit_move_after, update_ld_motion_stores): Likewise.
96 * lcm.c (compute_insert_delete, pre_edge_lcm,
97 compute_rev_insert_delete, pre_edge_rev_lcm): Likewise.
98 * lower-subreg.c (resolve_reg_notes): Likewise.
99 * mode-switching.c (optimize_mode_switching): Likewise.
101 2008-07-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
103 * bt-load.c (add_btr_def, migrate_btr_def,
104 branch_target_load_optimize): Avoid C++ keywords.
105 * caller-save.c (insert_restore, insert_save, insert_one_insn):
107 * combine.c (subst, simplify_set, make_extraction,
108 make_compound_operation, known_cond, simplify_shift_const_1):
110 * cse.c (make_regs_eqv, merge_equiv_classes, validate_canon_reg,
111 fold_rtx, equiv_constant, cse_insn, cse_process_notes_1):
114 2008-07-15 Richard Guenther <rguenther@suse.de>
117 * c-common.c (strict_aliasing_warning): Do not warn for
118 TYPE_REF_CAN_ALIAS_ALL pointers.
119 (c_common_get_alias_set): may_alias types are not special.
120 * tree.c (build_pointer_type_for_mode): Look up the may_alias
121 attribute and set can_ref_all accordingly.
122 (build_reference_type_for_mode): Likewise.
123 * doc/extend.texi (may_alias): Clarify.
125 2008-07-15 Kaz Kojima <kkojima@gcc.gnu.org>
128 * config/sh/sh.h (GO_IF_LEGITIMATE_ADDRESS): Allow
129 (plus (plus (reg) (const_int)) (const_int)) when reload_in_progress.
131 2008-07-15 Andrew Pinski <andrew_pinski@playstation.sony.com>
134 * config/rs6000/rs6000.c (print_operand <case 'y'>): Don't use
135 gcc_assert, instead call output_operand_lossage.
137 2008-07-15 Kai Tietz <kai.tietz@onevision.com>
139 * builtins.c (std_canonical_va_list): Treat structure based
142 2008-07-15 Ben Elliston <bje@au.ibm.com>
144 * emit-rtl.c (set_mem_attributes_minus_bitpos): Improve comment.
146 2007-07-14 Rafael Avila de Espindola <espindola@google.com>
148 * c-decl.c (diagnose_mismatched_decls): Don't warn if TREE_NO_WARNING
151 2008-07-14 Jan Hubicka <jh@suse.cz>
153 * i386.md (sse5 cmov pattern): Update call of ix86_sse5_valid_op_p
154 * sse.md (sse5 patterns): Update call of ix86_sse5_valid_op_p;
155 fix predicates and constraints.
156 * i386.c (ix86_sse5_valid_op_p): Add commutative parameter.
157 * i386-protos.h (ix86_sse5_valid_op_p): Update declaration.
159 2008-07-14 Doug Kwan <dougkwan@google.com>
161 * config.gcc (arm*-*-eabi*): Include arm/eabi.h and use
162 additional option file arm/eabi.opt.
163 * config/arm/eabi.h (File): New configuration file for EABI targets.
164 * config/arm/elf.h (SUBTARGET_EXTRA_SPECS): Add
165 SUBSUBTARGET_EXTRA_SPECS.
166 (SUBSUBTARGET_EXTRA_SPECS): Provide empty default.
167 * config/arm/unknown-elf.h (UNKNOWN_ELF_STARTFILE_SPEC): Renamed
168 from STARTFILE_SPEC so that it can be referenced in an override.
169 (STARTFILE_SPEC): Use UNKNOWN_ELF_STARTFILE_SPEC.
170 (UNKNOWN_ELF_ENDFILE_SPEC): Renamed from ENDFILE_SPEC so that it
171 can be referenced in an override.
172 (ENDFILE_SPEC): Use UNKNOWN_ELF_ENDFILE_SPEC.
173 * config/arm/bpabi.h (BPABI_LINK_SPEC): Renamed from LINK_SPEC
174 so that it can be referenced in an override.
175 (LINK_SPEC): Use BPABI_LINK_SPEC.
176 * config/arm/eabi.opt (File): New.
178 2008-07-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
180 * Makefile.in (TARGET_DEF_H): Add targhooks.h.
181 (FIXED_VALUE_H): New variable.
182 (RTL_BASE_H): Use $(INPUT_H) and $(FIXED_VALUE_H) instead of
183 input.h, fixed-value.h.
184 (TREE_H): Use $(INPUT_H), add $(SYMTAB_H).
185 (BASIC_BLOCK_H): Use $(BITMAP_H).
186 (FUNCTION_H): Add varray.h.
187 (IPA_REFERENCE_H): Use $(BITMAP_H).
188 (CGRAPH_H): Add $(BASIC_BLOCK_H).
189 (DF_H): Use $(BITMAP_H).
190 (GGC_H): Add statistics.h.
192 (INSN_ATTR_H): Use it.
193 (SYSTEM_H): Add safe-ctype.h, filenames.h.
195 (SYMTAB_H): Add $(OBSTACK_H).
196 (CPP_INTERNAL_H): New.
197 (TREE_DUMP_H): Add tree-pass.h.
198 (TREE_FLOW_H): Use $(BITMAP_H)
199 (PRETTY_PRINT_H): Use $(INPUT_H).
200 (EBITMAP_H): Rename from typo-ed EBIMAP_H.
203 (many object files): Fix lots of header dependencies throughout.
205 2008-07-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
207 * Makefile.in (write_entries_to_file, write_entries_to_file_split):
209 (s-gtyp-input): Use them to write tmp-gi.list.
210 (echo_to_gi.list): Remove.
212 2008-07-14 Richard Guenther <rguenther@suse.de>
214 * tree-ssa-sccvn.c (pre_info): Remove.
215 (switch_to_PRE_table): Likewise.
216 (free_scc_vn): Do not clear SSA_NAME_VALUE.
217 Do not free pre_info.
218 (set_hashtable_value_ids): Do not create value-ids for the
220 (run_scc_vn): Remove double test. Remove bogus special-case
221 in value-number printing.
222 * tree-ssa-sccvn.h (switch_to_PRE_table): Remove.
223 * tree-ssa-ccp.c (get_symbol_constant_value): Do not look at
225 * tree-flow-inline.h (get_value_handle): Remove.
226 * tree-flow.h (get_value_handle): Remove.
228 2008-07-14 Martin Jambor <mjambor@suse.cz>
230 * tree-switch-conversion.c (gen_inbound_check): Make sure the type
231 in which we generate arithmetics is not a subrange.
233 2008-07-14 Martin Jambor <mjambor@suse.cz>
235 * Makefile.in (IPA_PROP_H): Added ipa-prop.h to IPA_PROP_H variable.
237 2008-07-14 Richard Guenther <rguenther@suse.de>
239 * tree-ssa-pre.c (insert_into_preds_of_block): Do not call
242 2008-07-14 Andreas Krebbel <krebbel1@de.ibm.com>
245 * config/s390/s390.c: (s390_secondary_reload): Add a secondary
246 reload for symbol refs moved to r0 with -fPIC.
247 (legitimize_pic_address): Use the target register as temporary
249 (emit_symbolic_move): Adjust comment.
250 * config/s390/s390.md (reloadsi_PIC_addr, reloaddi_PIC_addr):
253 2008-07-14 Ben Elliston <bje@au.ibm.com>
255 * c-common.h (C_CPP_HASHNODE): New macro.
256 * coretypes.h (struct cpp_token): Forward declare.
257 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
258 the context-sensitive keyword method.
259 * config/rs6000/rs6000-c.c (__vector_keyword, vector_keyword,
260 __pixel_keyword, pixel_keyword, __bool_keyword, bool_keyword,
261 expand_bool_pixel): New.
262 (altivec_categorize_keyword): New function.
263 (init_vector_keywords): New function.
264 (rs6000_macro_to_expand): Likewise.
265 (rs6000_cpu_cpp_builtins): Enable context-sensitive macros if not
266 compiling an ISO C dialect.
268 2008-07-13 Daniel Berlin <dberlin@dberlin.org>
270 * tree-ssa-pre.c (fully_constant_expression): Add fold_convert
272 (create_expression_by_pieces): Fix typo.
273 (do_regular_insertion): Use debug counter here too.
275 2008-07-14 Hans-Peter Nilsson <hp@axis.com>
278 * config/cris/cris.h (CRIS_CONST_OK_FOR_LETTER_P): Renamed from
279 CONST_OK_FOR_LETTER_P. All port-local users changed.
280 (CONST_OK_FOR_CONSTRAINT_P): Define; implement Kc as old K,
281 implement Kp matching power-of-two.
282 (CONSTRAINT_LEN): Define to match.
283 * config/cris/cris.md: Replace all use of constraint K with Kc.
284 ("*btst*): Use Kp for operand 0 of last alternative.
286 2008-07-13 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
289 * tree-call-cdce.c (check_target_format): Accept MIPS single, double
292 2008-07-13 Jan Hubicka <jh@suse.cz>
294 * tree.c (decl_assembler_name_equal): Expect assembler name of decl
297 2008-07-13 Richard Guenther <rguenther@suse.de>
300 * langhooks.c (lhd_print_error_function): Deal with recursive
303 2008-07-12 Jan Hubicka <jh@suse.cz>
305 * cgraph.c (assembler_name_hash): New static var.
306 (hash_node_by_assembler_name, eq_assembler_name): New.
307 (cgraph_node_for_asm): Use hashtable.
308 (cgraph_remove_node): Maintain hashtable.
309 (change_decl_assembler_name): Sanity check that names are not changing
310 after aliasing was processed.
311 * cgraph.h (varpoon_node): Add next GGC marker.
312 * tree.c (decl_assembler_name_equal): Constify.
313 (decl_assembler_name_hash): New.
314 * tree.h (decl_assembler_name_equal): Constify.
315 (decl_assembler_name_hash): Update.
317 2008-07-12 David Daney <ddaney@avtrex.com>
319 * config/mips/driver-native.c (host_detect_local_cpu): Handle
322 2008-07-12 Richard Sandiford <rdsandiford@googlemail.com>
324 * doc/md.texi: Document the MIPS "v" constraint.
325 * config/mips/mips.h (reg_class): Revert last change.
326 (REG_CLASS_NAMES): Likewise.
327 (REG_CLASS_CONTENTS): Likewise.
328 * config/mips/mips.c (mips_regno_to_class): Likewise.
329 * config/mips/constraints.md (v): Likewise, but add documentation.
330 Add a comment to say that this constraint should not be used in
333 2008-07-11 DJ Delorie <dj@redhat.com>
335 * config/h8300/h8300.md (length): Fix branch offset limit.
337 2008-07-11 Anatoly Sokolov <aesok@post.ru>
339 * config/avr/avr-protos.h (avr_peep2_scratch_safe): Remove prototype.
340 * config/avr/avr.c (avr_peep2_scratch_safe): Remove.
341 (avr_hard_regno_scratch_ok): New function.
342 (TARGET_HARD_REGNO_SCRATCH_OK): Define.
343 * config/avr/avr.md (all peepholes that request a scratch register):
344 Remove avr_peep2_scratch_safe use.
346 2008-07-11 Tom Tromey <tromey@redhat.com>
347 Ian Lance Taylor <iant@google.com>
349 * c-common.h (enum rid): Add RID_CXX_COMPAT_WARN.
350 (struct c_common_resword): Define.
351 (D_CONLY, D_CXXONLY, D_C99, D_CXX0X, D_EXT, D_EXT89): Define.
352 (D_ASM, D_OBJC, D_CXX_OBJC, D_CXXWARN): Define.
353 (c_common_reswords, num_c_common_reswords): Declare.
354 * c-common.c (c_common_reswords): New global const array.
355 (num_c_common_reswords): New const int.
356 * c-parser.c (struct resword, reswords): Don't define.
357 (D_C89, D_EXT, D_EXT89, D_OBJC): Don't define.
358 (c_parse_init): Clarify mask code. Use c_common_reswords rather
359 than reswords. If warning about C++ keywords, give them a special
361 (c_lex_one_token): Warn about C++ keywords. Call
362 objc_is_reserved_word rather than OBJC_IS_AT_KEYWORD.
363 (c_parser_external_declaration): Look for RID_xxx rather than
364 RID_AT_xxx, for ObjC++ keywords which are also C++ keywords.
365 (c_parser_statement_after_labels): Likewise.
366 (c_parser_objc_class_instance_variables): Likewise.
367 (c_parser_objc_class_declaration): Likewise.
368 (c_parser_objc_try_catch_statement): Likewise.
369 * c-decl.c (c_print_identifier): Ignore RID_CXX_COMPAT_WARN.
370 (declspecs_add_type): Likewise.
372 2008-07-11 Angelo Graziosi <angelo.graziosi@alice.it>
374 * ggc-page.c (alloc_page):
375 Substituting xmalloc, xcalloc with
376 XNEWVEC and XCNEWVAR macros which add the
379 2008-07-11 Richard Guenther <rguenther@suse.de>
381 PR tree-optimization/36765
382 * tree-ssa-alias.c (compute_flow_insensitive_aliasing): Add
383 aliases from HEAP vars to SMTs.
385 2008-07-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
387 * Makefile.in (LOOSE_WARN, STRICT_WARN): Update comments.
388 * configure.ac (loose_warn): Move -Wc++-compat from here...
389 (strict_warn): ...to here.
390 * configure: Regenerate.
392 2008-07-10 Joseph Myers <joseph@codesourcery.com>
394 * config.gcc (arm-*-coff*, armel-*-coff*, h8300-*-*,
395 i[34567]86-*-aout*, i[34567]86-*-coff*, m68k-*-aout*,
396 m68k-*-coff*, sh-*-*, mips-sgi-irix[56]*, pdp11-*-bsd,
397 rs6000-ibm-aix4.[12]*, powerpc-ibm-aix4.[12]*): Deprecate targets,
398 excluding more specific h8300-*-* and sh-*-* targets.
400 2008-07-10 Daniel Berlin <dberlin@dberlin.org>
402 * tree-ssa-pre.c (create_expression_by_pieces): Add fold_convert
405 (execute_pre): Call loop_optimizer_finalize in early exit.
407 2008-07-10 Jakub Jelinek <jakub@redhat.com>
410 * omp-low.c (lower_omp_2): If task_shared_vars, test all DECL_P
411 uids in the bitmap, not just VAR_DECL uids.
413 PR rtl-optimization/36419
414 * combine-stack-adj.c (adjust_frame_related_expr): New function.
415 (combine_stack_adjustments_for_block): Call it if needed. Delete
417 * dwarf2out.c (dwarf2out_frame_debug_expr): Adjust
418 DW_CFA_GNU_args_size if CSA pass merged some adjustments into
419 prologue sp adjustment.
421 2008-07-10 Peter Maydell <pmaydell@chiark.greenend.org.uk>
424 * opts.c (print_ignored_options): Report postponed diagnostics for
425 unknown -Wno-* options as warnings, not errors.
426 (postpone_unknown_option_error): Renamed to...
427 (postpone_unknown_option_warning): ... this.
429 2008-07-09 Doug Kwan <dougkwan@google.com>
432 2008-07-08 Doug Kwan <dougkwan@google.com>
434 * config/arm/arm.opt (mandroid): New option.
435 * config/arm/bpabi.h (ANDROID_LINK_SPEC): New macro.
436 (LINK_SPEC): Enable Android specific behaviour when -mandroid is used.
438 (CC1PLUS_SPEC): Same.
440 (STARTFILE_SPEC): Same.
441 (ENDFILE_SPEC): Same.
442 (TARGET_BPABI_CPP_BUILTINS): Define __ANDROID__ when -mandroid is
445 2008-07-09 Richard Sandiford <rdsandiford@googlemail.com>
448 * config/mips/mips.h (reg_class): Remove V1_REG.
449 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update accordingly.
450 * config/mips/mips.c (mips_regno_to_class): Map $3 to M16_NA_REGS
452 (mips_get_tp): New function.
453 (mips_legitimize_tls_address): Use it.
454 * config/mips/constraints.md (v): Delete.
455 * config/mips/mips.md (TLS_GET_TP_REGNUM): New constant.
456 (tls_get_tp_<mode>): Allow any GPR destination and clobber $3.
457 After reload, split into a move and ...
458 (*tls_get_tp_<mode>_split): ...this new instruction.
460 2008-07-09 David Daney <ddaney@avtrex.com>
462 * config/mips/driver-native.c: Include coretypes.h and tm.h.
464 2008-07-09 Jakub Jelinek <jakub@redhat.com>
466 * gimplify.c (struct gimplify_ctx): Move to tree-gimple.h.
467 (push_gimplify_context): Don't allocate temp_htab nor c itself here.
469 (pop_gimplify_context): Check c->temp_htab instead of optimize whether
470 htab_delete should be called. Don't free c.
471 (lookup_tmp_var): Create temp_htab lazily.
472 (gimplify_scan_omp_clauses, gimplify_omp_parallel, gimplify_omp_task,
473 gimplify_body, force_gimple_operand): Adjust push_gimplify_context
475 * omp-low.c (lower_omp_sections, lower_omp_single, lower_omp_master,
476 lower_omp_ordered, lower_omp_critical, lower_omp_for,
477 create_task_copyfn, lower_omp_taskreg, execute_lower_omp):
478 * tree-ssa-ccp.c (convert_to_gimple_builtin): Likewise.
479 * tree-sra.c (generate_element_init): Likewise.
480 * tree-mudflap.c (execute_mudflap_function_ops,
481 execute_mudflap_function_decls): Likewise.
482 * tree-inline.c (setup_one_parameter, optimize_inline_calls): Likewise.
483 * tree-gimple.h (struct gimplify_ctx): New type.
484 (push_gimplify_context): Adjust prototype.
486 2008-07-09 Daniel Berlin <dberlin@dberlin.org>
488 * tree-ssa-pre.c (phi_translate_1): Update placement of
491 2008-07-09 Anatoly Sokolov <aesok@post.ru>
493 * target.h (struct gcc_target): Add hard_regno_scratch_ok field.
494 * target-def.h (TARGET_HARD_REGNO_SCRATCH_OK): New.
495 (TARGET_INITIALIZER): Use TARGET_HARD_REGNO_SCRATCH_OK.
496 * targhooks.c (default_hard_regno_scratch_ok): New function.
497 * targhooks.h (default_hard_regno_scratch_ok): Declare function.
498 * doc/tm.texi: Document TARGET_HARD_REGNO_SCRATCH_OK hook.
499 * recog.c: Include "target.h".
500 (peep2_find_free_register): Add check for global regs. Add target
502 * Makefile.in (recog.o): Depend on target.h.
504 2008-07-09 Kaz Kojima <kkojima@gcc.gnu.org>
506 * config/sh/sh.c (sh_canonical_va_list_type): New.
507 (TARGET_CANONICAL_VA_LIST_TYPE): Define.
509 2008-07-09 Raksit Ashok <raksit@google.com>
511 * doc/invoke.texi (Option Summary): Mention new option
512 -Wdisallowed-function-list=...
513 (Warning Options): Document -Wdisallowed-function-list=...
514 * common.opt (Wdisallowed-function-list=): New flag.
515 * flags.h (warn_disallowed_functions): External definition of new
516 boolean warning flag.
517 (warn_if_disallowed_function_p): Declare new function.
518 * opts.c (warning_disallowed_functions): New static variable.
519 (warn_disallowed_functions): New boolean warning flag.
520 (warn_if_disallowed_function_p): New function.
521 (add_comma_separated_to_vector): Rename
522 add_instrument_functions_exclude_list to this.
523 (common_handle_option): Handle new option. Rename calls to
524 add_instrument_functions_exclude_list into calls to
525 add_comma_separated_to_vector.
526 * c-parser.c (c_parser_postfix_expression_after_primary): New warning
527 based on flag warn_disallowed_functions.
529 2008-07-09 Christian Bruel <christian.bruel@st.com>
531 * final.c (get_attr_length_1): Call get_attr_length_1 with fallback_fn
532 instead of get_attr_length.
534 2008-07-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
536 * genattrtab.c (insert_right_side, evaluate_eq_attr): Avoid C++
538 * genemit.c (gen_insn): Likewise.
539 * gengtype.c (note_def_vec): Likewise.
540 * gengtype.h (note_def_vec): Likewise.
541 * genoutput.c (struct data, output_insn_data, process_template,
542 gen_expand, gen_split, note_constraint): Likewise.
543 * genrecog.c (new_decision, add_to_sequence, factor_tests,
544 make_insn_sequence): Likewise.
545 * gensupport.c (record_insn_name): Likewise.
547 2008-07-08 Doug Kwan <dougkwan@google.com>
549 * config/arm/arm.opt (mandroid): New option.
550 * config/arm/bpabi.h (ANDROID_LINK_SPEC): New macro.
551 (LINK_SPEC): Enable Android specific behaviour when -mandroid is used.
553 (CC1PLUS_SPEC): Same.
555 (STARTFILE_SPEC): Same.
556 (ENDFILE_SPEC): Same.
557 (TARGET_BPABI_CPP_BUILTINS): Define __ANDROID__ when -mandroid is
560 2008-07-08 Raksit Ashok <raksit@google.com>
562 * expr.c (emit_block_move_via_movmem): Fix expected_align parameter.
563 (set_storage_via_setmem): Fix expected_align parameter.
564 * doc/invoke.texi (i386 and x86-64 Options): Add a couple of options
565 missing from the list.
566 * doc/md.texi (movmem): Explicitly state that expected alignment is
567 to be expressed in bytes.
568 (setmem): Explicitly state that expected alignment is to be expressed
571 2008-07-08 Joseph Myers <joseph@codesourcery.com>
573 * reload.c (find_reloads_subreg_address): Do not require validity
574 of address in original mode before reloading address.
576 2008-07-07 Tianwei Sheng <tianweis@google.com>
578 * df-core.c (df_remove_problem): Adjust the access to avoid out of
581 2008-07-08 Jakub Jelinek <jakub@redhat.com>
583 * tree-sra.c (sra_build_assignment): Handle CONVERT_EXPR_P
586 2008-07-05 Daniel Berlin <dberlin@dberlin.org>
588 Fix PR tree-optimization/23455
589 Fix PR tree-optimization/35286
590 Fix PR tree-optimization/35287
591 * Makefile.in (OBJS-common): Remove tree-vn.o.
593 * dbgcnt.def: Add treepre_insert debug counter.
594 * gcc/tree-flow.h (add_to_value): Updated for other changes.
595 (debug_value_expressions): Ditto.
596 (print_value_expressions): Ditto.
597 * tree-pretty-print.c (dump_generic_node): Updated for
598 VALUE_HANDLE removal.
599 * tree-ssa-dom.c (record_equality): Ditto.
600 (cprop_operand): Ditto.
601 (lookup_avail_expr): Ditto.
602 * tree-ssa-threadedge.c
603 (record_temporary_equivalences_from_stmts_at_dest): Ditto.
604 (simplify_control_stmt_condition): Ditto.
605 * tree.c (tree_code_size): Ditto.
606 (tree_node_structure): Ditto.
607 (iterative_hash_expr): Ditto.
609 * tree.h (VALUE_HANDLE_ID): Ditto.
610 (VALUE_HANDLE_EXPR_SET): Ditto.
611 (struct tree_value_handle): Ditto.
612 (union tree_node): Ditto.
613 * treestruct.def: Ditto.
614 * tree-vn.c: Removed.
615 * tree-ssa-pre.c: Rewritten entirely.
616 * tree-ssa-sccvn.c (constant_to_value_id): New hashtable.
617 (constant_value_ids): Ditto.
618 (vn_nary_op_t): Moved to header.
620 (vn_reference_op_t): Ditto
621 (vn_reference_t): Ditto.
622 (next_value_id): New variable.
623 (VN_INFO): Add an assert.
624 (vn_constant_eq): New function.
625 (vn_constant_hash): Ditto.
626 (get_or_alloc_constant_value_id): Ditto.
627 (value_id_constant_p): Ditto.
628 (vn_reference_compute_hash): De-staticify.
629 (copy_reference_ops_from_ref): Don't use get_callee_fndecl.
630 Disable some code with a FIXME.
631 Remove VALUE_HANDLE use.
632 (valueize_refs): Update opcode if it changes from ssa name to
634 (vn_reference_lookup_1): Add new argument.
635 (vn_reference_lookup): Ditto.
636 (vn_reference_lookup_pieces): New function.
637 (vn_reference_insert): Add return type. Modify to deal with value
639 (vn_reference_insert_pieces): New function.
640 (vn_nary_op_compute_hash): De-staticify.
641 (vn_nary_op_eq): Ditto.
642 (vn_nary_op_lookup_pieces): New function.
643 (vn_nary_op_lookup): Add new argument.
644 (vn_nary_op_insert_pieces): New function.
645 (vn_nary_op_insert): Add return type. Modify to deal with value
647 (vn_phi_insert): Ditto.
648 (visit_unary_op): Update for callee changes.
649 (visit_binary_op): Ditto.
650 (visit_reference_op_load): Ditto.
651 (visit_reference_op_store): Ditto.
652 (init_scc_vn): Init next_value_id, constant_to_value_id and
654 (free_scc_vn): Free them.
655 (set_hashtable_value_ids): New function.
656 (run_scc_vn): Use it.
657 (get_max_value_id): New function.
658 (get_next_value_id): Ditto.
659 (expressions_equal_p): Moved from tree-vn.c
661 (sort_vuses_heap): Ditto.
662 * tree-ssa-sccvn.h: Structures moved from tree-ssa-sccvn.c (noted
664 * tree.c (iterative_hash_hashval_t): Made non-static
665 * tree.h (iterative_hash_hashval_t): Declare it.
667 2008-07-08 Martin Jambor <mjambor@suse.cz>
669 * ipa-cp.c (ipcp_init_cloned_node): Call ipa_check_create_node_params
670 instead of ipa_create_node_params.
671 (ipcp_driver): Allocate infos with ipa_check_create_node_params and
672 ipa_check_create_edge_args, free them with
673 free_all_ipa_structures_after_ipa_cp, call ipa_register_cgraph_hooks.
675 * ipa-prop.c: Include flags.h and tree-inline.h.
676 (ipa_node_params_vector): New variable.
677 (ipa_edge_args_vector): New variable.
678 (edge_removal_hook_holder): New variable.
679 (node_removal_hook_holder): New variable.
680 (edge_duplication_hook_holder): New variable.
681 (node_duplication_hook_holder): New variable.
682 (ipa_detect_param_modifications): Check for presence of modified flags.
683 (ipa_compute_jump_functions): Check for presence of jump functions.
684 (ipa_free_edge_args_substructures): New function.
685 (ipa_create_node_params): Removed.
686 (ipa_free_all_edge_args): Changed to deallocate the on-the-side vector.
687 (ipa_free_node_params_substructures): New function.
688 (ipa_free_all_node_params): Changed to deallocate the on-the-side
690 (ipa_edge_removal_hook): New function.
691 (ipa_node_removal_hook): New function.
692 (duplicate_array): New function.
693 (ipa_edge_duplication_hook): New function.
694 (ipa_node_duplication_hook): New function.
695 (ipa_register_cgraph_hooks): New function.
696 (ipa_unregister_cgraph_hooks): New function.
697 (free_all_ipa_structures_after_ipa_cp): New function.
699 * ipa-prop.h: Include vec.h.
700 (ipa_node_params_t): New typedef with vector types for it.
701 (ipa_edge_args_t): New typedef with vector types for it.
702 (IPA_NODE_REF): Changed to access an on-the-side vector.
703 (IPA_EDGE_REF): Changed to access an on-the-side vector.
704 (ipa_check_create_node_params): New function.
705 (ipa_check_create_edge_args): New function.
707 * Makefile.in (IPA_PROP_H): New variable for ipa-prop.h. Converted
710 2008-07-07 Tom Tromey <tromey@redhat.com>
712 * configure, config.in: Rebuilt.
713 * configure.ac: Don't check for scandir or alphasort.
715 2008-07-07 Joseph Myers <joseph@codesourcery.com>
717 * config/arm/arm.c (arm_init_neon_builtins): Register built-in
718 types immediately after creating them.
720 2008-07-07 Joseph Myers <joseph@codesourcery.com>
722 * config/arm/aout.h (DOLLARS_IN_IDENTIFIERS): Remove.
724 2008-07-07 Fernando Pereira <fernando@cs.ucla.edu>
726 * tree-ssa-structalias.c (compute_points_to_sets): Add call to
727 dump_constraint_graph.
728 (dump_constraint_edge): New function.
729 (dump_constraint_graph): New function.
730 (debug_constraint_graph): New function.
731 (dump_constraint): Removed useless comparison.
732 * tree-ssa-structalias.h (dump_constraint_edge): Declare.
733 (dump_constraint_graph): Declare.
734 (debug_constraint_graph): Declare.
735 * tree-dump.c (struct dump_option_value_info): Declare
738 2008-07-07 Kai Tietz <kai.tietz@onevision.com>
740 * config/i386/i386.c (is_va_list_char_pointer): New.
741 (ix86_va_start): Replace compare with ms_va_list_type_node
742 by is_va_list_char_pointer.
743 (ix86_gimplify_va_arg): Likewise.
745 2008-07-07 Martin Jambor <mjambor@suse.cz>
747 * cgraph.c (cgraph_edge_max_uid): New variable.
748 (struct cgraph_edge_hook_list): New type.
749 (struct cgraph_node_hook_list): New type.
750 (struct cgraph_2edge_hook_list): New type.
751 (struct cgraph_2node_hook_list): New type.
752 (first_cgraph_edge_removal_hook): New variable.
753 (first_cgraph_node_removal_hook): New variable.
754 (first_cgraph_edge_duplicated_hook): New variable.
755 (first_cgraph_node_duplicated_hook): New variable.
756 (cgraph_add_edge_removal_hook): New function.
757 (cgraph_remove_edge_removal_hook): New function.
758 (cgraph_call_edge_removal_hooks): New function.
759 (cgraph_add_node_removal_hook): New function.
760 (cgraph_remove_node_removal_hook): New function.
761 (cgraph_call_node_removal_hooks): New function.
762 (cgraph_add_edge_duplication_hook): New function.
763 (cgraph_remove_edge_duplication_hook): New function.
764 (cgraph_call_edge_duplication_hooks): New function.
765 (cgraph_add_node_duplication_hook): New function.
766 (cgraph_remove_node_duplication_hook): New function.
767 (cgraph_call_node_duplication_hooks): New function.
768 (cgraph_create_edge): Assign to edge uid.
769 (cgraph_remove_edge): Call edge removal hooks.
770 (cgraph_node_remove_callees): Call edge removal hooks.
771 (cgraph_node_remove_callers): Call edge removal hooks.
772 (cgraph_remove_node): Call node removal hooks.
773 (cgraph_clone_edge): Call edge duplication hooks.
774 (cgraph_clone_node): Call node duplication hooks.
776 * cgraph.h (cgraph_edge): New field uid.
777 (cgraph_edge_hook): New type.
778 (cgraph_node_hook): New type.
779 (cgraph_2edge_hook): New type.
780 (cgraph_2node_hook): New type.
782 2008-07-07 Andreas Tobler <a.tobler@schweiz.org>
784 * config.in: Regenerate.
786 2008-07-07 Vladimir Prus <vladimir@codesourcery.com>
788 * gcc.c (print_sysroot): New.
789 (option_map, display_help, process_command): Handle the
790 -print-sysroot option.
791 (main): Print the sysroot if requested.
792 * doc/invoke.texi (Debugging Options): Document -print-sysroot.
794 2008-07-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
797 * unwind-pe.h (size_of_encoded_value): add attribute unused.
799 2008-07-07 Daniel Jacobowitz <dan@codesourcery.com>
801 * function.c (assign_parm_remove_parallels): Check mode of
803 (assign_parm_setup_block_p): Also check mode of entry_parm.
805 2008-07-07 Richard Guenther <rguenther@suse.de>
807 * tree-ssa-structalias.h (set_used_smts): Remove.
808 * tree-ssa-structalias.c (used_smts): Likewise.
809 (set_used_smts): Likewise.
810 * tree-ssa-alias.c (compute_flow_sensitive_aliasing): Remove
811 call to set_used_smts.
813 2008-07-07 Richard Guenther <rguenther@suse.de>
815 * tree-ssa-structalias.c (struct variable_info): Add is_full_var flag.
816 (new_var_info): Set it to false.
817 (solution_set_add): Correctly handle pointers outside a var and
819 (type_safe): Treat variables with is_full_var properly.
820 (do_sd_constraint): Likewise.
821 (do_ds_constraint): Likewise.
822 (process_constraint): Remove zeroing offset for !use_field_sensitive.
823 (get_constraint_for_ptr_offset): New function.
824 (get_constraint_for_component_ref): For addresses at least include
825 the last field of the variable. Handle is_full_vars properly.
826 (get_constraint_for_1): Factor common code, handle POINTER_PLUS_EXPR.
827 (handle_ptr_arith): Remove.
828 (find_func_aliases): Simplify assignment handling.
829 (create_function_info_for): For parameter and result varinfos set
831 (create_variable_info_for): Set is_full_var flag whenever we
832 just created a single varinfo for a decl.
833 (init_alias_vars): Initialize use_field_sensitive from
834 max-fields-for-field-sensitive parameter.
836 2008-07-07 Richard Guenther <rguenther@suse.de>
838 PR tree-optimization/36713
839 * tree-flow-inline.h (is_call_used): New function.
840 * tree-nrv.c (dest_safe_for_nrv_p): Use it.
841 * tree-tailcall.c (suitable_for_tail_opt_p): Likewise.
842 * tree-outof-ssa.c (create_temp): Set call-used flag if required.
844 2008-07-07 Maxim Kuvyrkov <maxim@codesourcery.com>
846 * config/m68k/m68k.c (m68k_return_in_memory): Fix arguments types.
848 2008-07-07 Mark Shinwell <shinwell@codesourcery.com>
850 * config/m68k/lb1sf68.asm: Add PIC macros for Linux targets.
852 2008-07-07 Maxim Kuvyrkov <maxim@codesourcery.com>
853 Nathan Sidwell <nathan@codesourcery.com>
855 * config.gcc (m68k-*-linux*): Add with_arch. Add sysroot-suffix.h
856 to tm_file. Add m68k/t-floatlib, m68k/t-linux & m68k/t-mlibs to
858 * config/m68k/t-linux: New.
859 * doc/install.texi: Document m68k-*-linux is now multilibbed by
862 2008-07-07 Nathan Sidwell <nathan@codesourcery.com>
864 * config/m68k/t-cf (MULTILIB_EXTRA_OPTS): Add no-mac.
865 * config/m68k/m68k-devices.def: Remove multilibs that only differ
868 2008-07-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
870 * gcc.c (execute): Fix -Wc++-compat warning.
872 2008-07-06 H.J. Lu <hongjiu.lu@intel.com>
875 * config/ia64/ia64.c (ia64_split_tmode): Fix typo in TImode
876 constant for little endian.
878 2008-07-06 Richard Sandiford <rdsandiford@googlemail.com>
880 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Check
881 mips_base_mips16 instead of TARGET_MIPS16.
882 (mips_base_mips16): Declare.
883 * config/mips/mips.c (mips_base_mips16): Make global.
884 (was_mips16_p): Remove GTY marker.
885 (was_mips16_pch_p): New variable.
886 (mips_set_mips16_mode): Check both was_mips16_p and was_mips16_pch_p.
887 (mips_override_options): Force to non-MIPS16 mode initially.
888 Do not complain about MIPS16 PIC incompatibilities here.
889 Only allow -mgpopt if -mexplicit-relocs is in force for
892 2008-07-06 Andreas Tobler <a.tobler@schweiz.org>
894 * configure.ac: Check for caddr_t, define to char * if not defined.
895 * configure: Regenerate.
896 * ggc-common.c (mmap_gt_pch_get_address): Fix -Wc++-compat warnings.
897 (mmap_gt_pch_use_address): Likewise.
898 * config/host-solaris.c (sol_gt_pch_use_address): Likewise.
900 2008-07-06 Richard Guenther <rguenther@suse.de>
902 * tree-ssa-structalias.c (struct variable_info): Remove has_union.
903 (new_var_info): Deal with it.
904 (solution_set_add): Likewise.
905 (bitpos_of_field): Make signed, fix.
906 (struct fieldoff): Remove type and decl fields. Make size field
907 unsigned HOST_WIDE_INT. Add has_unknown_size and may_have_pointers
909 (fieldoff_compare): Deal with it.
910 (push_fields_onto_fieldstack): Remove has_union argument, glob
911 adjacent non-pointer fields together.
912 (create_function_info_for): Do not set has_union.
913 (create_variable_info_for): Simplify.
915 2008-07-06 Kai Tietz <kai.tietz@onevision.com>
917 * config.gcc (extra_headers): Add cross-stdarg.h for target
918 x86_64-*-* and i?86-*-*.
919 * config/i386/cross-stdarg.h: New.
920 * builtins.c (std_fn_abi_va_list): New.
921 (std_canonical_va_list_type): New.
922 (stabilize_va_list): Replace va_list_type_node use by
923 mtarget.canonical_va_list_type.
924 (gimplify_va_arg_expr): Likewise.
925 (expand_builtin_va_copy): Replace va_list_type_node use by
926 mtarget.fn_abi_va_list.
927 * tree-sra.c (is_va_list_type): New helper.
928 (decl_can_be_decomposed_p): Replace
929 va_list_type_node use by is_va_list_type.
930 * tree-ssa-ccp.c (optimize_stdarg_builtin): Likewise.
931 * tree-stdarg.c (execute_optimize_stdarg): Likewise.
932 * c-common.c (c_common_nodes_and_builtins): Use TARGET_ENUM_VA_LIST.
933 * config/i386/i386-protos.h (ix86_get_valist_type): New.
934 (ix86_enum_va_list): New.
935 * config/i386/i386.c (sysv_va_list_type_node): New.
936 (ms_va_list_type_node): New.
937 (ix86_function_type_abi): Remove sorry.
938 (ix86_build_builtin_va_list_abi): New.
939 (ix86_build_builtin_va_list): Call ix86_build_builtin_va_list_abi
941 (ix86_va_start): Replace va_list_type_node by sysv_va_list_type_node.
942 (ix86_init_builtins_va_builtins_abi): New.
943 (ix86_init_builtins): Use ix86_init_builtins_va_builtins_abi
945 (ix86_handle_abi_attribute): New.
946 (attribute_spec): Add sysv_abi and ms_abi.
947 (ix86_fn_abi_va_list): New.
948 (ix86_canonical_va_list_type): New.
949 (ix86_enum_va_list): New.
950 (TARGET_FN_ABI_VA_LIST): New.
951 (TARGET_CANONICAL_VA_LIST_TYPE): New.
952 * config/i386/i386.h (TARGET_ENUM_VA_LIST): New.
953 * doc/tm.texi (TARGET_FN_ABI_VA_LIST): New.
954 (TARGET_CANONICAL_VA_LIST_TYPE): New.
955 (TARGET_ENUM_VA_LIST): New.
956 * expr.h (std_fn_abi_va_list): New.
957 (std_canonical_va_list_type): New.
958 * target-def.h (TARGET_FN_ABI_VA_LIST): New.
959 (TARGET_CANONICAL_VA_LIST_TYPE): New.
960 (TARGET_INITIALIZER): Add TARGET_FN_ABI_VA_LIST and
961 TARGET_CANONICAL_VA_LIST_TYPE.
962 * target.h (struct gcc_target): Add fn_abi_va_list hook
963 and canonical_va_list_type hook.
965 2008-07-05 Andrew Pinski <andrew_pinski@playstation.sony.com>
967 * fold-const.c (fold_convert_const): Treat OFFSET_TYPE the same as
968 integral and pointer types.
970 2008-07-04 Roger Sayle <roger@eyesopen.com>
972 * config/rs6000/host-darwin.c (darwin_rs6000_extra_siganls): Cast
973 the "void*" result of xmalloc to "char*" to fix bootstrap breakage.
975 2008-07-04 Kaz Kojima <kkojima@gcc.gnu.org>
978 * config/sh/sh.h (OVERRIDE_OPTIONS): Disable -fschedule-insns
981 2008-07-04 Jakub Jelinek <jakub@redhat.com>
983 * tree-switch-conversion.c (build_one_array, gen_def_assigns): Use
984 build_gimple_modify_stmt.
985 (build_arrays, gen_inbound_check): Likewise. Force RHS to be
986 gimple operand. Use fold_build* instead of build*.
988 2008-07-04 Richard Guenther <rguenther@suse.de>
990 * tree-ssa-structalias.c (lookup_vi_for_tree): Declare.
991 (do_sd_constraint): Handle a dereference of ESCAPED and CALLUSED
992 properly to compute the reachability set if we do field-sensitive PTA.
993 * invoke.texi (max-fields-for-field-sensitive): Document default.
994 * opts.c (decode_options): Set max-fields-for-field-sensitive to
995 100 for optimize >= 2.
997 2008-07-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
999 * ggc-zone.c (lookup_page_table_if_allocated,
1000 set_page_table_entry, zone_find_object_size, alloc_small_page,
1001 alloc_large_page, ggc_free, gt_ggc_m_S, ggc_marked_p, init_ggc,
1002 new_ggc_zone, init_ggc_pch, ggc_pch_this_base, ggc_pch_read): Fix
1003 -Wc++-compat and/or -Wcast-qual warnings.
1005 2008-07-04 Alan Modra <amodra@bigpond.net.au>
1008 * config/rs6000/rs6000.md (call, call_value): Don't arrange for
1009 pic_offset_table_rtx to be marked as used here.
1010 (call_nonlocal_sysv, call_value_nonlocal_sysv): Add split for
1011 TARGET_SECURE_PLT to "use" pic_offset_table_rtx.
1012 (call_nonlocal_sysv_secure, call_value_nonlocal_sysv_secure): New insn.
1013 (sibcall_nonlocal_sysv, sibcall_value_nonlocal_sysv): Assert
1016 2008-07-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1018 * alloc-pool.c (hash_descriptor, eq_descriptor,
1019 alloc_pool_descriptor): Fix -Wc++-compat warnings.
1020 * bitmap.c (hash_descriptor, eq_descriptor, bitmap_descriptor):
1022 * ggc-common.c (hash_descriptor, eq_descriptor, hash_ptr, eq_ptr,
1023 loc_descriptor, ggc_prune_ptr, ggc_free_overhead,
1024 final_cmp_statistic, cmp_statistic, dump_ggc_loc_statistics):
1026 * varray.c (hash_descriptor, eq_descriptor, varray_descriptor):
1029 2008-07-03 Eric Botcazou <ebotcazou@adacore.com>
1031 * tree-flow.h (loop_only_exit_p): Declare.
1032 * tree-ssa-loop-niter.c (loop_only_exit_p): Make public.
1033 * tree-ssa-loop-ivopts.c (may_eliminate_iv): Reinstate direct check on
1034 the number of iterations if it is constant. Otherwise, if this is the
1035 only possible exit of the loop, use the conservative estimate on the
1036 number of iterations of the entire loop if available.
1038 2008-07-03 Richard Sandiford <rdsandiford@googlemail.com>
1040 * Makefile.in (libgcc.mvars): Add LIBGCC_SYNC and LIBGCC_SYNC_CFLAGS.
1041 * libgcc-std.ver (GCC_4.4.0): New version, inherited from GCC_4.3.0.
1042 Add synchronization functions.
1043 * config/sync.c: New file.
1044 * config/mips/t-libgcc-mips16 (LIBGCC_SYNC): Define.
1045 (LIBGCC_SYNC_CFLAGS): Likewise.
1047 2008-07-03 Uros Bizjak <ubizjak@gmail.com>
1050 * config/i386/i386.md (mode): Add TF to "mode" attribute.
1051 (*pushtf_sse): New insn pattern.
1052 (pushtf splitters): New splitters.
1054 2008-07-03 Michael Meissner <gnu@the-meissners.org>
1057 * predict.c (build_predict_expr): Use void_type_node for the tree
1058 type, instead of NULL_TREE.
1060 2008-07-03 H.J. Lu <hongjiu.lu@intel.com>
1062 * config/i386/i386.c (contains_aligned_value_p): Return true
1064 (ix86_data_alignment): Align TCmode to 128bits.
1065 (ix86_local_alignment): Likewise.
1067 2008-07-03 Andrew Haley <aph@redhat.com>
1070 * vec.h (VEC_TA): New.
1071 (DEF_VEC_I, DEF_VEC_P, DEF_VEC_ALLOC_I, DEF_VEC_ALLOC_P,
1072 DEF_VEC_O, DEF_VEC_ALLOC_O: Use VEC_TA.
1073 * c-common.c (C_COMMON_FIXED_TYPES_SAT): New macro.
1074 (C_COMMON_FIXED_MODE_TYPES_SAT): New macro.
1075 (C_COMMON_FIXED_TYPES): Remove first arg.
1076 (C_COMMON_FIXED_MODE_TYPES): Likewise.
1077 * tree.c (MAKE_FIXED_TYPE_NODE): Break into two macros,
1078 MAKE_FIXED_TYPE_NODE and MAKE_FIXED_TYPE_NODE_WIDTH in order
1079 not to use empty macro arguments.
1081 2008-07-02 Joseph Myers <joseph@codesourcery.com>
1083 * config/alpha/vms_tramp.asm, config/arm/crti.asm,
1084 config/arm/crtn.asm, config/bfin/crti.s, config/bfin/crtlibid.s,
1085 config/bfin/crtn.s, config/fr30/crti.asm, config/fr30/crtn.asm,
1086 config/frv/lib1funcs.asm, config/i386/sol2-c1.asm,
1087 config/i386/sol2-ci.asm, config/i386/sol2-cn.asm,
1088 config/i386/sol2-gc1.asm, config/ia64/crti.asm,
1089 config/ia64/crtn.asm, config/m68hc11/larith.asm,
1090 config/m68hc11/m68hc11-crt0.S, config/m68k/crti.s,
1091 config/m68k/crtn.s, config/mcore/crti.asm, config/mcore/crtn.asm,
1092 config/rs6000/crtresfpr.asm, config/rs6000/crtresgpr.asm,
1093 config/rs6000/crtresxfpr.asm, config/rs6000/crtresxgpr.asm,
1094 config/rs6000/crtsavfpr.asm, config/rs6000/crtsavgpr.asm,
1095 config/rs6000/crtsavres.asm, config/rs6000/e500crtres32gpr.asm,
1096 config/rs6000/e500crtres64gpr.asm,
1097 config/rs6000/e500crtres64gprctr.asm,
1098 config/rs6000/e500crtrest32gpr.asm,
1099 config/rs6000/e500crtrest64gpr.asm,
1100 config/rs6000/e500crtresx32gpr.asm,
1101 config/rs6000/e500crtresx64gpr.asm,
1102 config/rs6000/e500crtsav32gpr.asm,
1103 config/rs6000/e500crtsav64gpr.asm,
1104 config/rs6000/e500crtsav64gprctr.asm,
1105 config/rs6000/e500crtsavg32gpr.asm,
1106 config/rs6000/e500crtsavg64gpr.asm,
1107 config/rs6000/e500crtsavg64gprctr.asm, config/rs6000/eabi-ci.asm,
1108 config/rs6000/eabi-cn.asm, config/rs6000/eabi.asm,
1109 config/rs6000/sol-ci.asm, config/rs6000/sol-cn.asm,
1110 config/rs6000/tramp.asm, config/sparc/sol2-ci.asm,
1111 config/sparc/sol2-cn.asm: Remove .file directives.
1113 2008-07-02 Richard Sandiford <rdsandiford@googlemail.com>
1115 * resource.c (mark_referenced_resources): Look inside
1116 UNSPEC_VOLATILEs and ASM_INPUTs.
1118 2008-07-02 Ian Lance Taylor <iant@google.com>
1120 * rtlanal.c (add_reg_note): New function.
1121 * rtl.h (add_reg_note): Declare.
1122 * auto-inc-dec.c (attempt_change): Use add_reg_note.
1123 * bb-reorder.c (add_reg_crossing_jump_notes): Likewise.
1124 * builtins.c (expand_builtin_longjmp): Likewise.
1125 (expand_builtin_nonlocal_goto): Likewise.
1126 * calls.c (emit_call_1, expand_call): Likewise.
1127 * cfgexpand.c (add_reg_br_prob_note): Likewise.
1128 * cfglayout.c (fixup_reorder_chain): Likewise.
1129 * cfgrtl.c (force_nonfallthru_and_redirect): Likewise.
1130 (commit_one_edge_insertion): Likewise.
1131 * combine.c (move_deaths, distribute_notes): Likewise.
1132 * df-problems.c (df_set_note): Likewise.
1133 * emit-rtl.c (link_cc0_insns, try_split): Likewise.
1134 (set_unique_reg_note): Likewise.
1135 (emit_copy_of_insn_after): Likewise.
1136 * expr.c (expand_expr_real): Likewise.
1137 * gcse.c (add_label_notes): Likewise.
1138 * haifa-sched.c (create_check_block_twin): Likewise.
1139 * jump.c (mark_jump_label_1): Likewise.
1140 * loop-doloop.c (add_test, doloop_modify): Likewise.
1141 * loop-unswitch.c (compare_and_jump_seq): Likewise.
1142 * lower-subreg.c (move_eh_region_note): Likewise.
1143 * optabs.c (emit_libcall_block): Likewise.
1144 * predict.c (predict_insn): Likewise.
1145 (combine_predictions_for_insn): Likewise.
1146 * recog.c (peephole2_optimize): Likewise.
1147 * regmove.c (try_auto_increment): Likewise.
1148 * reg-stack.c (emit_pop_insn, move_for_stack_reg): Likewise.
1149 * reload.c (find_reloads): Likewise.
1150 * reload1.c (fixup_eh_region_note): Likewise.
1151 (reload_as_needed, add_auto_inc_notes, copy_eh_notes): Likewise.
1152 * reorg.c (delete_prior_computation): Likewise.
1153 (delete_computation, dbr_schedule): Likewise.
1154 * config/pa/pa.c (legitimize_pic_address): Likewise.
1155 * config/sh/sh.c (sh_reorg): Likewise.
1157 2008-07-02 H.J. Lu <hongjiu.lu@intel.com>
1160 * config/libgcc-glibc.ver: Add %exclude.
1161 * config/m32r/libgcc-glibc.ver: Likwise.
1162 * config/s390/libgcc-glibc.ver: Likwise.
1163 * config/sh/libgcc-glibc.ver: Likwise.
1164 * config/sparc/libgcc-sparc-glibc.ver: Likwise.
1166 * config/i386/libgcc-glibc.ver: New.
1168 * config/i386/libgcc-x86_64-glibc.ver: Removed.
1170 2008-07-02 H.J. Lu <hongjiu.lu@intel.com>
1172 * config.gcc: Remove i386/t-fprules-softfp64 soft-fp/t-softfp
1173 from tmake_file from i[34567]86-*-darwin*, x86_64-*-darwin*,
1174 i[34567]86-*-linux*, x86_64-*-linux*. Add
1175 i386/t-fprules-softfp and soft-fp/t-softfp to tmake_file for
1176 i[34567]86-*-darwin*, x86_64-*-darwin*, i[34567]86-*-linux*,
1177 x86_64-*-linux*. Add i386/t-linux to tmake_file for
1178 i[34567]86-*-linux*, x86_64-*-linux*.
1180 * libgcc-std.ver: Add empty GCC_4.4.0.
1182 * mkmap-symver.awk: Support multiple versions per symbol.
1184 * config/i386/i386.c (ix86_init_builtins): Always define
1185 __builtin_fabsq and __builtin_copysignq with fallbacks.
1186 (ix86_expand_builtin): Emit normal call for __builtin_fabsq
1187 and __builtin_copysignq if SSE2 isn't available.
1189 * config/i386/linux.h (LIBGCC2_HAS_TF_MODE): Defined.
1190 (LIBGCC2_TF_CEXT): Likwise.
1193 * config/i386/linux64.h (LIBGCC2_HAS_TF_MODE): Defined as 1.
1195 * config/i386/sfp-machine.h: Moved to libgcc.
1197 * config/i386/sfp-machine.h: New.
1198 * config/i386/t-linux: Likwise.
1200 * config/i386/t-darwin: Remove softfp_wrap_start and
1202 * config/i386/t-darwin64: Likewise.
1204 * config/i386/t-fprules-softfp64: Renamed to ...
1205 * config/i386/t-fprules-softfp: This.
1207 * config/i386/t-linux64: Remove SHLIB_MAPFILES, softfp_wrap_start
1208 and softfp_wrap_end.
1210 2008-07-02 Jason Merrill <jason@redhat.com>
1212 * tree.c (ctor_to_list): Use FOR_EACH_CONSTRUCTOR_ELT.
1214 * tree.c (ctor_to_list): New fn.
1215 * tree.h: Declare it.
1216 (CONSTRUCTOR_ELT): New macro.
1217 (CONSTRUCTOR_NELTS): New macro.
1219 2008-07-02 Richard Guenther <rguenther@suse.de>
1221 * tree-ssa-structalias.c (struct variable_info): Reorder
1222 to fill padding on 64bit hosts. Make collapsed_to an int.
1223 (get_varinfo_fc): Deal with that.
1224 (new_var_info): Likewise.
1225 (collapse_rest_of_var): Likewise.
1227 2008-07-02 Joshua Sumali <jsumali@redhat.com>
1229 * doc/install.texi (--enable-java-home): Document.
1230 (--enable-aot-compile-rpm): Likewise.
1231 (--with-arch-directory): Likewise.
1232 (--with-os-directory): Likewise.
1233 (--with-origin-name): Likewise.
1234 (--with-arch-suffix): Likewise.
1235 (--with-jvm-root-dir): Likewise.
1236 (--with-jvm-jar-dir): Likewise.
1237 (--with-python-dir): Likewise.
1239 2008-07-02 Richard Guenther <rguenther@suse.de>
1241 * tree-ssa-forwprop.c (can_propagate_from): Exclude loads
1242 from decls explicitly. Merge operand checking from tuples.
1244 2008-07-02 Martin Jambor <mjambor@suse.cz>
1246 * tree-switch-conversion.c: Included timevar.h which I forgot before.
1248 2008-07-02 Martin Jambor <mjambor@suse.cz>
1250 * tree-switch-conversion.c: Included timevar.h
1251 (pass_convert_switch): Added a timevar id (TV_TREE_SWITCH_CONVERSION).
1253 * timevar.def: Added TV_TREE_SWITCH_CONVERSION.
1255 2008-07-02 Martin Jambor <mjambor@suse.cz>
1257 * tree-switch-conversion.c: Corrected various comments and
1259 (build_constructors): Fixed minor formatting mistakes.
1261 * invoke.texi (Optimize Options): Corrected the
1262 switch-conversion-max-branch-ratio parameter.
1264 2008-07-02 Mark Shinwell <shinwell@codesourcery.com>
1266 * final.c (asm_insn_count): Return zero for an empty asm body.
1268 2008-07-02 Richard Guenther <rguenther@suse.de>
1270 * bitmap.h (bitmap_set_bit): Return bool.
1271 (bitmap_clear_bit): Likewise.
1272 * bitmap.c (bitmap_set_bit): Return if the bit changed. Only
1273 write to the bitmap if it would.
1274 (bitmap_clear_bit): Likewise.
1275 * tree-ssa-structalias.c (add_implicit_graph_edge): Use
1276 bitmap_set_bit return value.
1277 (add_pred_graph_edge): Likewise.
1278 (add_graph_edge): Likewise.
1279 (do_sd_constraint): Likewise.
1280 (do_ds_constraint): Likewise.
1282 2008-07-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1284 * config/alpha/alpha.c (alpha_need_linkage, alpha_use_linkage):
1285 Fix -Wc++-compat and/or -Wcast-qual warnings.
1286 * config/i386/netware.c (gen_stdcall_or_fastcall_decoration,
1287 gen_regparm_prefix): Likewise.
1288 * vmsdbgout.c (write_modbeg, lookup_filename,
1289 vmsdbgout_source_line, vmsdbgout_init): Likewise.
1291 2008-07-02 Danny Smith <dannysmith@users.sourceforge.net>
1293 * config/i386/mingw32.h (TARGET_USE_JCR_SECTION): Undef to let
1294 defaults.h definition apply.
1296 2008-07-01 Daniel Jacobowitz <dan@codesourcery.com>
1298 * function.c (assign_parm_remove_parallels): New.
1299 (assign_parm_setup_block_p): Do not return true for non-BLKmode
1301 (assign_parm_setup_block): Do not handle them.
1302 (assign_parm_setup_reg, assign_parm_setup_stack): Call
1303 assign_parm_remove_parallels.
1305 2008-07-01 Daniel Jacobowitz <dan@codesourcery.com>
1307 * c-typeck.c (convert_for_assignment): Use
1308 vector_targets_convertible_p.
1309 * c-common.c (vector_targets_convertible_p): New.
1310 * c-common.h (vector_targets_convertible_p): New prototype.
1311 * config/rs6000/rs6000.c (rs6000_is_opaque_type): Do not check
1312 opaque_p_V2SI_type_node.
1314 2008-07-01 Steve Ellcey <sje@cup.hp.com>
1316 * config/ia64/ia64.c (ia64_cannot_force_const_mem): Do not allow
1319 2008-07-01 Uros Bizjak <ubizjak@gmail.com>
1321 * config/i386/i386.c (ix86_build_signbit_mask): Generate TImode and
1322 TFmode constants via two element DImode vector for hosts with
1323 HOST_BITS_PER_WIDE_INT < 64.
1324 (ix86_init_builtins): Define __builtin_fabsq and __builtin_copysignq
1325 also for HOST_BITS_PER_WIDE_INT < 64.
1327 2008-07-01 Richard Guenther <rguenther@suse.de>
1329 PR tree-optimization/36666
1330 * tree-ssa-structalias.c (get_constraint_for_1): Declare.
1331 (get_constraint_exp_from_ssa_var): Split into ...
1332 (get_constraint_exp_for_temp): ... this ...
1333 (get_constraint_for_ssa_var): ... and that.
1334 Return constraint expressions for all touched sub-fields
1335 if the results address is not taken.
1336 (process_constraint): Remove assertion that aggregate
1337 assignments do not happen at this place.
1338 (get_constraint_for_component_ref): Add address_p argument.
1339 Return constraint expressions for all touched sub-fields
1340 if the results address is not taken.
1341 (do_deref): Use get_constraint_exp_for_temp.
1342 (get_constraint_for_1): Rename from ...
1343 (get_constraint_for): ... this. Add the old function as wrapper.
1344 (do_structure_copy): Use get_constraint_for_1.
1346 2008-07-01 Martin Jambor <mjambor@suse.cz>
1348 * Makefile.in (tree-switch-conversion.o): Add.
1349 (OBJS-common): Add tree-swtch-conversion.o.
1350 * passes.c (init_optimization_passes): Add pass_convert_switch.
1351 * tree-pass.h: (pass_convert_switch): Add.
1352 * tree-switch-conversion.c: New file.
1353 * gcc.dg/tree-ssa/cswtch.c: New testcase.
1354 * common.opt (ftree-cswtch): New option.
1355 * params.h (PARAM_SWITCH_CONVERSION_BRANCH_RATIO): New parameter.
1356 * params.def (PARAM_SWITCH_CONVERSION_BRANCH_RATIO): New parameter.
1357 * opts.c (decode_options): Set flag_tree_switch_conversion when
1358 optimization level is >= 2.
1359 * doc/invoke.texi (Optimize Options): Added description of
1360 -ftree-swtch-conversion and switch-conversion-max-branch-ratio.
1362 2008-06-30 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1364 * config/darwin-driver.c (darwin_default_min_version): Fix
1365 -Wc++-compat warnings.
1367 2008-06-30 Uros Bizjak <ubizjak@gmail.com>
1369 * config/i386/i386.md (*movti_rex64): Add "!" to "r" constraint
1372 2008-06-30 Kenneth Zadeck <zadeck@naturalbridge.com>
1374 * ifcvt.c (cond_move_process_if_block): Free vectors on false return.
1376 2008-06-30 Kenneth Zadeck <zadeck@naturalbridge.com>
1378 PR rtl-optimization/34744
1379 * df-scan.c (df_scan_free_ref_vec, df_scan_free_mws_vec): New macros.
1380 (df_scan_free_internal): Free data structures not
1381 allocated in storage pools.
1382 (df_mw_hardreg_chain_delete_eq_uses): Use df_scan_free_mws_vec.
1383 (df_refs_add_to_chains): Use df_scan_free_ref_vec and
1384 df_scan_free_mws_vec.
1385 * dse.c (dse_step6): Free offset_map_p and offset_map_n
1388 2008-06-30 H.J. Lu <hongjiu.lu@intel.com>
1390 * config/i386/i386.c (contains_aligned_value_p): Return true
1392 (ix86_function_arg_boundary): Return its natural boundary
1394 (return_in_memory_32): Don't check TDmode.
1395 (ix86_split_to_parts): Support splitting into 4 parts and
1396 support TFmode for 32bit target.
1397 (ix86_split_long_move): Support splitting into 4 parts.
1398 (bdesc_args): Enable IX86_BUILTIN_FABSQ and IX86_BUILTIN_COPYSIGNQ
1400 (ix86_init_mmx_sse_builtins): Move __float80 and __float128 to ...
1401 (ix86_init_builtins): Here.
1402 (ix86_scalar_mode_supported_p): Always return true for TFmode.
1403 (ix86_c_mode_for_suffix): Always return TFmode and XFmode for
1404 'q' and 'w', respectively.
1406 * config/i386/i386.md (movtf): Check TARGET_SSE2 instead of
1408 (movtf_internal): Likewise.
1409 (<code>tf2): Likewise.
1410 (*absnegtf2_sse): Likewise.
1411 (copysign<mode>3): Likewise.
1412 (copysign<mode>3_const): Likewise.
1413 (copysign<mode>3_var): Likewise.
1414 (define_split UNSPEC_COPYSIGN): Likewise.
1415 * config/i386/sse.md (*nandtf3): Likewise.
1416 (<code>tf3): Likewise.
1417 (*<code>tf3): Likewise.
1419 2008-06-30 Joey Ye <joey.ye@intel.com>
1420 H.J. Lu <hongjiu.lu@intel.com>
1422 * global.c (compute_regsets): Set frame_pointer_needed here.
1423 * reload1.c (init_elim_table): Don't set frame_pointer_needed here.
1425 2008-06-30 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
1427 * doc/install.texi (specific): Expand Windows build notes.
1429 2008-06-30 Ira Rosen <irar@il.ibm.com>
1431 PR tree-optimization/36648
1432 * tree-vect-transform.c (vect_do_peeling_for_loop_bound): Divide
1433 number of prolog iterations by step. Fix the comment.
1435 2008-06-30 Richard Guenther <rguenther@suse.de>
1438 * tree-ssa-structalias.c (handle_lhs_call): Add flags argument,
1439 handle calls from ECF_MALLOC functions.
1440 (handle_pure_call): ECF_MALLOC functions do not return
1442 (find_func_aliases): Handle all calls, adjust calls to handle_lhs_call.
1444 2008-06-29 Andreas Schwab <schwab@suse.de>
1446 * config/m68k/m68k.c (print_operand): Always print a float
1448 * config/m68k/m68k.h (ASM_OUTPUT_FLOAT_OPERAND)
1449 (ASM_OUTPUT_DOUBLE_OPERAND, ASM_OUTPUT_LONG_DOUBLE_OPERAND):
1452 * config/rs6000/x-linux64: Remove never used file.
1454 2008-06-29 Richard Guenther <rguenther@suse.de>
1456 * tree-ssa-structalias.h (compute_points_to_sets): Adjust
1458 (struct alias_info): Move ...
1459 * tree-ssa-alias.c: ... here.
1460 (update_alias_info): Declare.
1461 (compute_may_aliases): Call it.
1462 (update_alias_info): New function.
1463 * tree-ssa-structalias.c (update_alias_info): Move ...
1464 * tree-ssa-alias.c (update_alias_info_1): ... here.
1465 * tree-ssa-structalias.c (process_constraint_1): Remove
1466 unused from_call argument. Rename to ...
1467 (process_constraint): ... this. Delete old wrapper.
1468 (make_constraint_to): Adjust callers.
1469 (handle_const_call): Likewise.
1470 (handle_pure_call): Likewise.
1471 (init_base_vars): Likewise.
1472 (handle_lhs_call): Likewise. Remove unnecessary constraint.
1473 (find_func_aliases): We don't need structure copies for
1475 (make_constraint_from_anything): Remove.
1476 (create_variable_info_for): For globals make constraints
1477 from escaped, not from anything.
1478 (compute_points_to_sets): Do not call update_alias_info.
1479 (ipa_pta_execute): Use make_constraint_from.
1481 2008-06-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1483 * Makefile.in (CXX_COMPAT_WARN, cxx_compat_warn): Delete.
1484 (bitmap.o-warn, dominance.o-warn): New.
1485 * configure.ac (cxx_compat_warn): Delete.
1486 (loose_warn): Add -Wcast-qual and -Wc++-compat.
1487 * system.h: Remove #pragma diagnostic for -Wcast-qual and
1489 * configure: Regenerate.
1491 * optabs.c (libfunc_decl_hash, libfunc_decl_eq): Fix -Wcast-qual
1494 2008-06-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1496 * alloc-pool.c (create_alloc_pool): Fix -Wc++-compat warnings.
1497 * df-scan.c (df_notes_rescan): Likewise.
1498 * ggc-page.c (set_page_table_entry): Likewise.
1499 * intl.c (gcc_gettext_width): Likewise.
1500 * varasm.c (get_unnamed_section, get_noswitch_section,
1501 get_section): Likewise.
1503 2008-06-28 Andrew Jenner <andrew@codesourcery.com>
1505 * regrename.c (build_def_use): Don't copy RTX.
1507 2008-06-28 Sandra Loosemore <sandra@codesourcery.com>
1509 * doc/extend.texi (Variable Attributes): Use @ref instead of @xref.
1510 (Type Attributes): Fix nesting of @table and @subsection. Adjust
1511 punctuation. Use @ref instead of @xref.
1512 (Function Names): Remove stray @display/@end display.
1513 (C++ Attributes): Use @ref instead of @xref.
1514 (Deprecated Features): Fix punctuation around @xref.
1515 (Backwards Compatibility): Likewise.
1516 * doc/rtl.texi (Incdec): Remove stray @table/@end table.
1518 2008-06-28 Joseph Myers <joseph@codesourcery.com>
1520 * config/rs6000/predicates.md (easy_fp_constant): Reject TFmode
1521 constants for E500 double.
1523 2008-06-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1525 * doc/rtl.texi (const_vector): Document const_fixed as legitimate
1526 element type of const_vector.
1528 2008-06-28 Uros Bizjak <ubizjak@gmail.com>
1530 * config/i386/i386.md (addti3, adddi3, addsi3, addhi3, addqi3):
1531 Remove FLAGS_REG clobber from expander pattern.
1532 (subti3, subdi3, subsi3, subhi3, subqi3): Ditto.
1533 (anddi3, andsi3, andhi3, andqi3): Ditto.
1534 (iordi3, iorsi3, iorhi3, iorqi3): Ditto.
1535 (xordi3, xorsi3, xorhi3, xorqi3): Ditto.
1536 (negti2, negdi2, negsi2, neghi2, negqi2): Ditto.
1537 (ashlsi3, ashlhi3, ashlqi3): Ditto.
1538 (ashrsi3, ashrhi3, ashrqi3): Ditto.
1539 (lshrsi3, lshrhi3, lshrqi3): Ditto.
1540 (rotldi3, rotlsi3, rotlhi3, rotlqi3): Ditto.
1541 (rotrdi3, rotrsi3, rotrhi3, rotrqi3): Ditto.
1543 2008-06-28 Richard Guenther <rguenther@suse.de>
1545 * tree-ssa-structalias.c (callused_id, var_callused,
1546 callused_tree): Add.
1547 (handle_pure_call): New function.
1548 (find_func_aliases): Call it.
1549 (find_what_p_points_to): Handle the call-used set.
1550 (clobber_what_escaped): Likewise.
1551 (compute_call_used_vars): New function.
1552 (init_base_vars): Init the call-used variable.
1553 (do_sd_constraint): Do not propagate the solution from CALLUSED
1554 but use CALLUSED as a placeholder.
1555 (solve_graph): Likewise.
1556 * tree-flow-inline.h (gimple_call_used_vars): New function.
1557 * tree-flow.h (struct gimple_df): Add call_used_vars bitmap.
1558 (compute_call_used_vars): Declare.
1559 * tree-ssa-alias.c (set_initial_properties): Call
1560 compute_call_used_vars.
1561 (reset_alias_info): Clear call-used variables.
1562 (add_call_clobber_ops): Assert we are not called for const/pure
1563 functions. Remove handling of them.
1564 (add_call_read_ops): Handle pure functions by adding the
1565 call-used set of variables as VUSEs.
1566 * tree-ssa.c (init_tree_ssa): Allocate call-used bitmap.
1567 (delete_tree_ssa): Free it.
1568 * tree-dfa.c (remove_referenced_var): Clear the var from the
1571 2008-06-28 Kai Tietz <kai.tietz@onevision.com>
1573 * tree.c (build_varargs_function_type_list): New.
1574 (build_function_type_list_1): New.
1575 (build_function_type_list): Use build_function_type_list_1.
1576 * tree.h (build_varargs_function_type_list): New.
1578 2008-06-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1581 * config/spu/spu.c (spu_builtin_splats): Do not generate
1582 invalid CONST_VECTOR expressions.
1583 (spu_expand_vector_init): Likewise.
1585 2008-06-28 Richard Sandiford <rdsandiford@googlemail.com>
1587 * optabs.c (libfunc_decls): New variable.
1588 (libfunc_decl_hash, libfunc_decl_eq): New functions.
1589 (init_one_libfunc): Reuse decls and SYMBOL_REFs when asked
1590 for the same function twice.
1592 2008-06-27 Uros Bizjak <ubizjak@gmail.com>
1594 * config/i386/i386.md (ashlti3, ashrti3, lshrti3): Expand using
1595 ix86_expand_binary_operator directly.
1596 (*ashlti3_1): Rename from ashlti3_1. Use nonmemory_operand predicate
1598 (*ashrti3_1): Ditto.
1599 (*lshrti3_1): Ditto.
1600 (*ashlti3_2, *ashrti3_2, *lshrti3_2): Remove insn patterns.
1601 (ashlti, ashrti and lshrti splitters): Handle nonmemory operand 2
1602 using only one splitter. Conditionaly execute splitter before or
1603 after peephole2 pass.
1604 (ashlti, ashrti and lshrti peephole2): Define peephole2 patterns.
1605 (x86_shld): Rename from x86_shld_1. Compress operand 2 constraints.
1606 Use only one alternative in asm template.
1607 (x86_64_shld): Compress operand 2 constraints. Use only one alternative
1609 (*ashldi3_cmp_rex64): Use const_1_to_63_operand operand predicate and
1610 "J" operand constraint for operand 2.
1611 (*ashldi3_cconly_rex64): Ditto.
1612 (*ashrdi3_cmp_rex64): Ditto.
1613 (*ashrdi3_cconly_rex64): Ditto.
1614 (*lshrdi3_cmp_rex64): Ditto.
1615 (*lshrdi3_cconly_rex64): Ditto.
1616 * config/i386/predicates.md (const_1_to_63_operand): New predicate.
1617 * config/i386/i386.md (print_operand) ['s']: Print ", " using fputs.
1618 (split_ashr, split_ashl, split_lshr): Use gen_x86_shrd instead of
1621 2008-06-27 Jakub Jelinek <jakub@redhat.com>
1623 * gimplify.c (omp_is_private): Don't return true if decl is not
1624 already private on #pragma omp for or #pragma omp parallel for.
1627 * tree-cfg.c (struct move_stmt_d): Replace block field with
1628 orig_block and new_block fields.
1629 (move_stmt_r): Only set TREE_BLOCK to p->new_block if
1630 if it used to be NULL, p->orig_block or if p->orig_block is NULL.
1631 (move_block_to_fn): Replace vars_map and new_label_map arguments
1632 with struct move_stmt_d pointer.
1633 (replace_block_vars_by_duplicates): New function.
1634 (move_sese_region_to_fn): Add ORIG_BLOCK argument. Adjust
1635 move_block_to_fn caller. If ORIG_BLOCK is non-NULL, move over
1636 all subblocks of ORIG_BLOCK to the new function. Call
1637 replace_block_vars_by_duplicates.
1638 * tree-flow.h (move_sese_region_to_fn): Adjust prototype.
1639 * omp-low.c (expand_omp_taskreg): Set TREE_USED on DECL_INITIAL
1640 BLOCK of the new function. Adjust move_sese_region_to_fn caller.
1641 Prune vars with original DECL_CONTEXT from child_cfun->local_decls.
1642 (expand_omp): Temporarily set input_location to the location of
1643 region's controlling stmt.
1644 (lower_omp_sections, lower_omp_for): Add a BLOCK into outermost
1645 BIND_EXPR, push ctx->block_vars and gimplification vars into
1646 the BIND_EXPR and its block's BLOCK_VARS instead of directly
1648 (lower_omp_single): Set TREE_USED on the BIND_EXPR's BLOCK if
1649 there are any BLOCK_VARS.
1650 (lower_omp_taskreg): Set BLOCK on a BIND_EXPR containing the
1651 OMP_PARALLEL or OMP_TASK stmt.
1652 (lower_omp): Save and restore input_location around the lower_omp_1
1655 2008-06-27 Richard Guenther <rguenther@suse.de>
1657 PR tree-optimization/36400
1658 PR tree-optimization/36373
1659 PR tree-optimization/36344
1660 * tree-ssa-structalias.c (var_escaped, escaped_tree, escaped_id,
1661 var_nonlocal, nonlocal_tree, nonlocal_id): New globals
1662 (update_alias_info): Remove call clobbering code.
1663 (make_constraint_to): New helper function.
1664 (make_escape_constraint): Likewise.
1665 (handle_rhs_call): Use it on all pointer containing arguments.
1666 Also mark the static chain escaped.
1667 (handle_lhs_call): Make constraints from NONLOCAL and ESCAPED
1668 instead of ANYTHING.
1669 (make_constraint_from): New helper split out from ...
1670 (make_constraint_from_anything): ... here.
1671 (find_func_aliases): Add constraints for escape sites.
1672 (intra_create_variable_infos): Make constraints from NONLOCAL
1674 (find_what_p_points_to): Interpret NONLOCAL and ESCAPED the same
1676 (clobber_what_p_points_to): Remove.
1677 (clobber_what_escaped): New function.
1678 (init_base_vars): Init NONLOCAL and ESCAPED.
1679 (do_sd_constraint): Do not propagate the solution from ESCAPED
1680 but use ESCAPED as a placeholder.
1681 (solve_graph): Likewise.
1682 * tree-flow.h (clobber_what_p_points_to): Remove.
1683 (clobber_what_escaped): Declare.
1684 * tree-ssa-alias.c (set_initial_properties): Call it.
1685 Remove code clobbering escaped pointers.
1687 2008-06-27 Richard Sandiford <rdsandiford@googlemail.com>
1689 * function.c (allocate_struct_function): Only allocate a unique
1690 funcdef_no if the decl is nonzero.
1692 2008-06-27 Richard Sandiford <rdsandiford@googlemail.com>
1694 * config/mips/mips-protos.h (mips_split_const_insns): Declare.
1695 * config/mips/mips.c (mips_split_const_insns): New function.
1696 * config/mips/mips.md (move_type): New attribute.
1697 (mode): Move attribute definition earlier in file. Add "TI" and "TF".
1698 (dword_mode): New attribute.
1699 (type): Avoid long line. Map "move_type"s to "type"s,
1700 choosing "multi" for doubleword moves if appropriate.
1701 Swap MTC/MFC comments to match their declaration order.
1702 (extended_mips16): Default to "yes" if "move_type" is "sll0",
1703 "type" is "branch" or "jal" is "direct".
1704 (length): Handle "extended_mips16" first. Make the default
1705 "0" for "ghost" instructions. Set the length from "move_type".
1706 (truncdisi2, truncdihi2, truncdiqi2): Use "move_type" instead
1707 of "type", with "sll0" for the register alternative. Remove the
1708 "extended_mips16" attribute.
1709 (zero_extendsidi2, *clear_upper32): Use "move_type" instead
1710 of "type", with "shift_shift" for the register alternative.
1711 Remove the "length" attribute.
1712 (*extend<SHORT:mode><GPR:mode>2, *extendqihi2): Likewise.
1713 (*zero_extend<SHORT:mode><GPR:mode>2): Use "move_type" instead
1714 of "type", with "andi" for the register alternative.
1715 (*zero_extendqihi2): Likewise.
1716 (*zero_extend<SHORT:mode><GPR:mode>2_mips16e): Use a "move_type"
1717 of "andi" instead of a "type" of "arith".
1718 (*zero_extend<SHORT:mode><GPR:mode>2_mips16): Use "move_type"
1720 (*zero_extendqihi2_mips16, mov_<load>l, mov_<load>r, mov_<store>l)
1721 (mov_<store>r, *mov<mode>_ra): Likewise.
1722 (extendsidi2): Use "move_type" instead of "type", with "move"
1723 for the register alternative.
1724 (*extend<SHORT:mode><GPR:mode>2_mips16e): Use "move_type" instead
1725 of "type", with "signext" for the register alternative.
1726 (*extend<SHORT:mode><GPR:mode>2_se<SHORT:size>): Likewise.
1727 (*extendqihi2_mips16e, *extendqihi2_seb): Likewise.
1728 (fix_truncdfsi2_insn, fix_truncsfsi2_insn, fix_truncdfdi2)
1729 (fix_truncsfdi2, floatsidf2, floatdidf2, floatsisf2, floatdisf2)
1730 (floatdisf2, *branch_equality<mode>_mips16): Likewise.
1731 (unnamed branch insn): Likewise.
1732 (*movdi_gp32_fp64): Fold into...
1733 (*movdi_32bit): ...here.
1734 (*movdf_hardfloat_64bit, *movdf_hardfloat_32bit): Combine into...
1735 (*movdf_hardfloat): ...this new pattern.
1736 (*movdf_softfloat): Remove redundant FPR alternatives.
1737 (*movti, *movti_mips16, *movtf, *movtf_mips16): Add "mode" attributes.
1738 (*movv2sf_hardfloat_64bit, *movv2sf_hardfloat_32bit): Combine into...
1739 (*movv2sf): ...this new pattern. Use "DF" rather than "SF" for
1740 the "move" attribute.
1741 (*movdi_32bit): Use "move_type" instead of "type" and remove the
1742 "length" attribute. Use "fpload" and "fpstore" instead of "load"
1743 and "store" for COP loads and stores.
1744 (*movdi_32bit_mips16, *movdi_64bit, *movsi_internal, movcc)
1745 (*movhi_internal, *movhi_mips16, *movqi_internal, *movqi_mips16)
1746 (*movsf_hardfloat, *movsf_softfloat, *movsi_mips16, *movdf_hardfloat)
1747 (*movdf_softfloat, *movdf_mips16, *movti, *movti_mips16, *movtf)
1748 (*movtf_mips16, *movv2sf): Likewise.
1749 (mfhi<GPR:mode>_<HILO:mode>, mflo<GPR:mode>_<HILO:mode>)
1750 (load_low<mode>, load_high<mode>, store_word<mode>, mthc1<mode>)
1751 (mfhc1<mode>): Use "move_type" instead of "move".
1752 (*low<mode>_mips16): Use "extended_mips16" instead of "length".
1753 (loadgp_blockage): Remove the "length" attribute.
1754 (blockage, set_got_version, update_got_version): Likewise.
1755 (call_internal): Remove the "extended_mips16" attribute.
1756 (call_value_internal, call_value_multiple_internal): Likewise.
1757 * config/mips/loongson.md (mov<mode>_internal): Use "move_type"
1759 * config/mips/mips-dsp.md (mips_lbux, mips_lhx, mips_lwx): Remove
1760 the "length" attribute.
1762 2008-06-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1764 * c-format.c (handle_format_attribute): Fix -Wc++-compat and/or
1765 -Wcast-qual warnings.
1766 * c-pragma.c (dpm_eq, handle_pragma_push_macro,
1767 handle_pragma_pop_macro): Likewise.
1768 * collect2.c (resolve_lib_name): Likewise.
1769 * config/arc/arc.c (arc_init): Likewise.
1770 * config/arm/arm.c (neon_builtin_compare,
1771 locate_neon_builtin_icode): Likewise.
1772 * config/arm/pe.c (arm_mark_dllexport, arm_pe_unique_section): Likewise.
1773 * config/bfin/bfin.c (bfin_init_machine_status,
1774 bfin_optimize_loop): Likewise.
1775 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Likewise.
1776 * config/cris/cris.c (cris_init_expanders): Likewise.
1777 * config/darwin-c.c (frameworks_in_use, add_framework): Likewise.
1778 * config/darwin.c (machopic_indirection_eq,
1779 machopic_indirection_name, machopic_output_indirection): Likewise.
1780 * config/frv/frv.c (frv_init_machine_status, frv_compare_insns,
1781 frv_io_check_address, frv_io_handle_set, frv_io_handle_use_1,
1782 frv_optimize_membar): Likewise.
1783 * config/i386/cygwin.h (mingw_scan,
1784 GCC_DRIVER_HOST_INITIALIZATION): Likewise.
1785 * config/i386/cygwin1.c (mingw_scan): Likewise.
1786 * config/i386/i386.c (machopic_output_stub): Likewise.
1787 * config/i386/winnt.c (gen_stdcall_or_fastcall_suffix,
1788 i386_pe_unique_section): Likewise.
1789 * config/ia64/ia64.c (ia64_init_machine_status,
1790 ia64_h_i_d_extended, get_free_bundle_state, bundling, ia64_reorg):
1792 * config/iq2000/iq2000.c, iq2000_init_machine_status): Likewise.
1793 * config/m68hc11/m68hc11.c (m68hc11_encode_label): Likewise.
1794 * config/m68k/m68k.c (m68k_handle_option,
1795 m68k_sched_md_init_global): Likewise.
1796 * config/mcore/mcore.c (mcore_mark_dllexport, mcore_mark_dllimport,
1797 mcore_unique_section): Likewise.
1798 * config/mips/mips.c (mips_block_move_straight,
1799 mips16_rewrite_pool_refs, mips_sim_wait_regs_2, mips_sim_record_set):
1801 * config/mmix/mmix.c (mmix_init_machine_status,
1802 mmix_encode_section_info): Likewise.
1803 * config/pa/pa.c (pa_init_machine_status, hppa_encode_label): Likewise.
1804 * config/rs6000/rs6000.c (rs6000_init_machine_status,
1805 print_operand_address, output_toc, redefine_groups,
1806 rs6000_elf_encode_section_info, machopic_output_stub): Likewise.
1807 * config/s390/s390.c (s390_init_machine_status): Likewise.
1808 * config/score/score.c (score_block_move_straight,
1809 score_block_move_loop_body): Likewise.
1810 * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
1811 * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
1812 * emit-rtl.c (find_auto_inc): Likewise.
1813 * gcc.c (translate_options, process_command): Likewise.
1814 * reorg.c (dbr_schedule): Likewise.
1815 * sdbout.c (sdbout_start_source_file, sdbout_init): Likewise.
1816 * xcoffout.c (xcoffout_declare_function): Likewise.
1818 2008-06-27 Daniel Berlin <dberlin@dberlin.org>
1820 * tree-ssa-structalias.c (find_func_aliases): Trivial fix to get
1821 ipa-pta working again.
1823 2008-06-27 David Edelsohn <edelsohn@gnu.org>
1825 * config/rs6000/t-aix52: Append large data option to LDFLAGS for
1828 2008-06-27 Edmar Wienskoski <edmar@freescale.com>
1830 * config.gcc (powerpc*-*-*): Add new core e500mc.
1831 * config/rs6000/e500mc.md: New file.
1832 * config/rs6000/rs6000.c (processor_costs): Add new costs for
1834 (rs6000_override_options): Add e500mc case to
1835 processor_target_table. Altivec and Spe options not allowed
1836 with e500mc. Add isel instruction to e500mc by
1837 default. Initialize rs6000_cost for e500mc.
1838 (rs6000_issue_rate): Set issue rate for e500mc.
1839 * config/rs6000/rs6000.h (processor_type): Add
1840 PROCESSOR_PPCE500MC.
1841 (ASM_CPU_SPEC): Add e500mc.
1842 Set TARGET_ISEL to rs6000_isel.
1843 * config/rs6000/e500.h: Remove redefinition of TARGET_ISEL.
1844 (CHECK_E500_OPTIONS): Remove TARGET_ISEL.
1845 * config/rs6000/rs6000.md (define_attr "cpu"): Add ppce500mc.
1847 * doc/invoke.texi: Add e500mc to list of cpus.
1849 2008-06-27 Laurynas Biveinis <laurynas.biveinis@gmail.com>
1852 * c-lex.c (lex_charconst): Initialize unsignedp.
1854 2008-06-27 Olivier Hainque <hainque@adacore.com>
1856 * gimplify.c (gimplify_modify_expr_to_memset): Assert our
1857 documented assumptions.
1859 2008-06-26 H.J. Lu <hongjiu.lu@intel.com>
1861 * dwarf2out.c: Remove trailing white spaces. Break long line
1864 2008-06-26 Richard Sandiford <rdsandiford@googlemail.com>
1866 * libfuncs.h (LTI_synchronize): New libfunc_index.
1867 (synchronize_libfunc): Declare.
1868 * builtins.c (expand_builtin_synchronize): Consider using
1869 synchronize_libfunc before falling back on an asm blockage.
1870 * config/mips/mips.c: Include libfuncs.h
1871 (mips_init_libfuncs): Initialize synchronize_libfunc for TARGET_MIPS16.
1873 2008-06-26 Nathan Froyd <froydnj@codesourcery.com>
1875 * config/rs6000/rs6000.c (emit_allocate_stack): Add copy_r11
1876 parameter. Copy stack_reg to r11 where appropriate.
1877 (no_global_regs_above): Add gpr parameter.
1878 (rs6000_stack_info): Only add padding for SPE save area if we
1879 are saving SPE GPRs and CR.
1880 (saveres_routine_syms): New variable.
1881 (FIRST_SAVRES_REGISTER, LAST_SAVRES_REGISTER, N_SAVRES_REGISTERS):
1883 (rs6000_savres_routine_sym): New function.
1884 (rs6000_emit_stack_reset, rs6000_restore_saved_cr): New functions,
1886 (rs6000_emit_epilogue): ...here. Use rs6000_use_multiple_p and
1887 rs6000_savres_strategy. Restore GPRs out-of-line if appropriate.
1888 Tweak FPR out-of-line saving.
1889 (rs6000_make_savres_rtx): New function.
1890 (rs6000_use_multiple_p): New function.
1891 (rs6000_savres_strategy): New function.
1892 (rs6000_emit_prologue): Use rs6000_savres_strategy. Save GPRs
1893 out-of-line if appropriate.
1894 * config/rs6000/sysv4.h (FP_SAVE_INLINE): Save FPRs out-of-line
1895 if we are optimizing for size.
1896 (GP_SAVE_INLINE): Define.
1897 (SAVE_FP_SUFFIX, RESTORE_FP_SUFFIX): Only use _l on 64-bit targets.
1898 * config/rs6000/darwin.h (GP_SAVE_INLINE): Define.
1899 * config/rs6000/aix.h (GP_SAVE_INLINE): Define.
1900 * config/rs6000/rs6000.md (*save_gpregs_<mode>): New insn.
1901 (*save_fpregs_<mode>): Add use of r11.
1902 (*restore_gpregs_<mode>): New insn.
1903 (*return_and_restore_gpregs_<mode>): New insn.
1904 (*return_and_restore_fpregs_<mode>): Adjust to clobber LR and
1906 * config/rs6000/spe.md (*save_gpregs_spe): New insn.
1907 (*restore_gpregs_spe): New insn.
1908 (*return_and_restore_gpregs_spe): New insn.
1909 * config/rs6000/predicates.md (save_world_operation): Fix check.
1911 2008-06-26 Steven Bosscher <steven@gcc.gnu.org>
1913 * tree-into-ssa (insert_phi_nodes_for): 'var' must be a DECL at
1914 this point, so assert that.
1916 2008-06-26 Steven Bosscher <steven@gcc.gnu.org>
1918 * cfganal.c: Include vec.h and vecprim.h.
1919 (compute_idf): Import from...
1920 * tree-into-ssa (compute_idf): ...here.
1921 * basic-block.h (compute_idf): Export.
1923 2008-06-26 Joseph Myers <joseph@codesourcery.com>
1925 * c-decl.c (merge_decls): Use !current_function_decl to check for
1926 extern declaration of C99 inline function being at file scope.
1928 2008-06-25 John David Anglin <dave.anglin@gcc-cnrc.gc.ca>
1930 * config.gcc (hppa[12]*-*-hpux10*): Don't use fixproto.
1932 2008-06-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1934 * alias.c (record_alias_subset, init_alias_analysis): Fix
1935 -Wc++-compat and/or -Wcast-qual warnings.
1936 * attribs.c (lookup_attribute_spec): Likewise.
1937 * bb-reorder.c (find_traces, rotate_loop, find_traces_1_round,
1938 copy_bb, connect_traces,
1939 find_rarely_executed_basic_blocks_and_cr): Likewise.
1940 * bt-load.c (find_btr_def_group, add_btr_def, new_btr_user,
1941 note_btr_set, migrate_btr_defs): Likewise.
1942 * builtins.c (result_vector, expand_builtin_memcpy,
1943 expand_builtin_mempcpy_args, expand_builtin_strncpy,
1944 builtin_memset_read_str, expand_builtin_printf,
1945 fold_builtin_memchr, rewrite_call_expr, fold_builtin_printf):
1947 * caller-save.c (mark_set_regs): Likewise.
1948 * calls.c (expand_call, emit_library_call_value_1): Likewise.
1949 * cgraph.c (cgraph_edge): Likewise.
1950 * combine.c (likely_spilled_retval_1): Likewise.
1951 * coverage.c (htab_counts_entry_hash, htab_counts_entry_eq,
1952 htab_counts_entry_del, get_coverage_counts): Likewise.
1953 * cselib.c (new_elt_list, new_elt_loc_list, entry_and_rtx_equal_p,
1954 new_cselib_val): Likewise.
1955 * dbgcnt.c (dbg_cnt_process_opt): Likewise.
1956 * dbxout.c (dbxout_init, dbxout_type, output_used_types_helper):
1958 * df-core.c (df_compact_blocks): Likewise.
1959 * df-problems.c (df_grow_bb_info, df_chain_create): Likewise.
1960 * df-scan.c (df_grow_reg_info, df_ref_create,
1961 df_insn_create_insn_record, df_insn_rescan, df_notes_rescan,
1962 df_ref_compare, df_ref_create_structure, df_bb_refs_record,
1963 df_record_entry_block_defs, df_record_exit_block_uses,
1964 df_bb_verify): Likewise.
1965 * df.h (DF_REF_EXTRACT_WIDTH_CONST, DF_REF_EXTRACT_OFFSET_CONST,
1966 DF_REF_EXTRACT_MODE_CONST): New.
1967 * dominance.c (get_immediate_dominator, get_dominated_by,
1968 nearest_common_dominator, root_of_dom_tree,
1969 iterate_fix_dominators, first_dom_son, next_dom_son): Fix
1970 -Wc++-compat and/or -Wcast-qual warnings.
1971 * dse.c (clear_alias_set_lookup, get_group_info, gen_rtx_MEM,
1972 record_store, replace_read, check_mem_read_rtx, scan_insn,
1973 dse_step1, dse_record_singleton_alias_set): Likewise.
1974 * dwarf2asm.c (dw2_force_const_mem): Likewise.
1976 2008-06-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1978 * dwarf2out.c (new_cfi, queue_reg_save, dwarf2out_begin_prologue,
1979 dwarf2out_frame_init, new_loc_descr, new_die, lookup_decl_die,
1980 lookup_decl_loc, add_var_loc_to_decl, compute_section_prefix,
1981 assign_symbol_names, htab_cu_hash, htab_cu_eq, htab_cu_del,
1982 build_abbrev_table, new_loc_list, output_comp_unit, add_arange,
1983 add_ranges_num, add_ranges_by_labels, file_info_cmp,
1984 file_name_acquire, output_file_names, add_const_value_attribute,
1985 premark_used_types_helper, file_table_eq, file_table_hash,
1986 lookup_filename, dwarf2out_var_location, dwarf2out_source_line,
1987 dwarf2out_init, file_table_relative_p): Fix -Wc++-compat and/or
1988 -Wcast-qual warnings.
1989 * ebitmap.c (ebitmap_array_grow, ebitmap_array_init,
1990 ebitmap_alloc, ebitmap_ior, ebitmap_and_compl): Likewise.
1991 * emit-rtl.c (get_mem_attrs, get_reg_attrs, gen_rtvec,
1992 gen_reg_rtx, start_sequence, init_emit): Likewise.
1993 * et-forest.c (et_new_occ, et_new_tree): Likewise.
1994 * except.c (init_eh_for_function, gen_eh_region,
1995 remove_unreachable_regions, add_ehl_entry, duplicate_eh_regions_1,
1996 arh_to_landing_pad, arh_to_label, add_action_record,
1997 add_call_site, switch_to_exception_section): Likewise.
1998 * expmed.c (synth_mult): Likewise.
1999 * expr.c (gen_group_rtx, emit_group_load, emit_group_store,
2000 store_expr): Likewise.
2001 * final.c (shorten_branches, final_scan_insn, debug_queue_symbol):
2003 * function.c (assign_stack_temp_for_type,
2004 allocate_struct_function, match_asm_constraints_1): Likewise.
2005 * gcov-io.c (gcov_allocate): Likewise.
2006 * gcse.c (GNEW, GCNEW, GNEWVEC, GCNEWVEC, GRESIZEVEC, GNEWVAR,
2007 GCNEWVAR, GRESIZEVAR, GOBNEW, GOBNEWVAR): New.
2008 (gcse_main, alloc_gcse_mem, alloc_gcse_mem, alloc_reg_set_mem,
2009 record_one_set, insert_expr_in_table, insert_set_in_table,
2010 dump_hash_table, compute_hash_table_work, alloc_hash_table,
2011 pre_ldst_expr_hash, pre_ldst_expr_eq, find_rtx_in_ldst,
2012 reg_set_info, reg_clear_last_set): Fix -Wc++-compat and/or
2013 -Wcast-qual warnings.
2015 2008-06-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2017 * cse.c (approx_reg_cost_1, cse_insn): Fix -Wc++-compat and/or
2018 -Wcast-qual warnings.
2019 * gcc.c (process_command): Likewise.
2020 * genattrtab.c (oballoc): Use XOBNEW.
2021 (oballocvec): Define.
2022 (attr_hash_add_rtx, attr_hash_add_string, attr_string,
2023 get_attr_value, fill_attr, make_length_attrs, gen_attr, gen_insn,
2024 gen_delay, find_attr, gen_insn_reserv, gen_bypass_1): Fix
2025 -Wc++-compat and/or -Wcast-qual warnings.
2026 * genautomata.c (XCREATENODE, XCREATENODEVEC, XCREATENODEVAR,
2027 XCOPYNODE, XCOPYNODEVEC, XCOPYNODEVAR): New.
2028 (gen_cpu_unit, gen_query_cpu_unit, gen_bypass, gen_excl_set,
2029 gen_presence_absence_set, gen_automaton, gen_regexp_el,
2030 gen_regexp_repeat, gen_regexp_allof, gen_regexp_oneof,
2031 gen_regexp_sequence, gen_reserv, gen_insn_reserv, process_excls,
2032 add_excls, process_presence_absence_names,
2033 process_presence_absence_patterns, add_presence_absence,
2034 process_regexp, add_advance_cycle_insn_decl, get_free_alt_state,
2035 get_free_state, add_arc, get_free_automata_list_el,
2036 form_reserv_sets_list, copy_insn_regexp, transform_1, transform_2,
2037 transform_3, cache_presence, create_ainsns, create_automata,
2038 create_state_ainsn_table, dfa_insn_code_enlarge,
2039 output_trans_func, output_min_issue_delay_func,
2040 output_dead_lock_func, output_reset_func,
2041 output_get_cpu_unit_code_func, output_dfa_start_func,
2042 expand_automata): Likewise.
2043 * genextract.c (gen_insn): Likewise.
2044 * gengtype-lex.l: Likewise.
2045 * gengtype.c (read_input_list, adjust_field_type,
2046 process_gc_options): Likewise.
2047 * genoutput.c (note_constraint): Likewise.
2048 * genpreds.c (mangle, add_constraint): Likewise.
2049 * genrecog.c (process_define_predicate, new_decision,
2050 add_to_sequence): Likewise.
2051 * gensupport.c (record_insn_name): Likewise.
2053 2008-06-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2055 * config/i386/driver-i386.c (detect_caches_amd,
2056 detect_caches_intel, host_detect_local_cpu): Fix -Wc++-compat
2057 and/or -Wcast-qual warnings.
2058 *ggc-common.c (ggc_mark_roots, gt_pch_note_object,
2059 gt_pch_note_reorder, relocate_ptrs, write_pch_globals,
2060 gt_pch_save): Likewise.
2061 * ggc-page.c (push_depth, push_by_depth, alloc_anon, alloc_page,
2062 gt_ggc_m_S, clear_marks, ggc_pch_read): Likewise.
2063 * global.c (compute_regsets): Likewise.
2064 * graph.c (print_rtl_graph_with_bb, clean_graph_dump_file,
2065 finish_graph_dump_file): Likewise.
2066 * haifa-sched.c (schedule_block, extend_h_i_d, extend_ready,
2067 unlink_bb_notes): Likewise.
2068 * integrate.c (get_hard_reg_initial_val): Likewise.
2069 * ipa-prop.c (ipa_push_func_to_list): Likewise.
2070 * ipa-struct-reorg.c (gen_var_name, gen_cluster_name): Likewise.
2071 * local-alloc.c (update_equiv_regs): Likewise.
2072 * loop-invariant.c (check_invariant_table_size,
2073 hash_invariant_expr, eq_invariant_expr, find_or_insert_inv):
2075 * loop-iv.c (check_iv_ref_table_size, analyzed_for_bivness_p,
2076 altered_reg_used, mark_altered): Likewise.
2077 * loop-unroll.c (si_info_eq, ve_info_eq, allocate_basic_variable,
2078 insert_var_expansion_initialization,
2079 combine_var_copies_in_loop_exit, apply_opt_in_copies,
2080 release_var_copies): Likewise.
2081 * matrix-reorg.c (mat_acc_phi_hash, mat_acc_phi_eq, mtt_info_eq,
2082 analyze_matrix_decl, add_allocation_site, analyze_transpose,
2083 analyze_accesses_for_phi_node, check_var_notmodified_p,
2084 check_allocation_function, find_sites_in_func,
2085 record_all_accesses_in_func, transform_access_sites,
2086 transform_allocation_sites): Likewise.
2087 * omp-low.c (new_omp_region, create_omp_child_function_name,
2088 check_omp_nesting_restrictions, check_combined_parallel,
2089 lower_omp_2, diagnose_sb_1, diagnose_sb_2): Likewise.
2090 * optabs.c (no_conflict_move_test, gen_libfunc, gen_fp_libfunc,
2091 gen_intv_fp_libfunc, gen_interclass_conv_libfunc,
2092 gen_intraclass_conv_libfunc, set_optab_libfunc, set_conv_libfunc):
2094 * opts-common.c (prune_options): Likewise.
2095 * opts.c (add_input_filename, print_filtered_help,
2096 get_option_state): Likewise.
2097 * params.c (add_params): Likewise.
2098 * passes.c (set_pass_for_id, next_pass_1,
2099 do_per_function_toporder, pass_fini_dump_file): Likewise.
2100 * postreload.c (reload_cse_simplify_operands): Likewise.
2101 * predict.c (tree_predicted_by_p, tree_predict_edge,
2102 clear_bb_predictions, combine_predictions_for_bb): Likewise.
2104 2008-06-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2106 * ra.h (add_neighbor): Fix -Wc++-compat and/or -Wcast-qual
2108 * recog.c (check_asm_operands, validate_change_1): Likewise.
2109 * reg-stack.c (check_asm_stack_operands, subst_asm_stack_regs,
2110 subst_asm_stack_regs): Likewise.
2111 * regclass.c (regclass, som_hash, som_eq, record_subregs_of_mode,
2112 cannot_change_mode_set_regs, invalid_mode_change_p): Likewise.
2113 * regmove.c (reg_is_remote_constant_p): Likewise.
2114 * regrename.c (regrename_optimize, scan_rtx_reg,
2115 kill_clobbered_value, kill_set_value, kill_autoinc_value):
2117 * regstat.c (regstat_init_n_sets_and_refs, regstat_compute_ri,
2118 regstat_compute_calls_crossed): Likewise.
2119 * reload1.c (init_reload, new_insn_chain,
2120 has_nonexceptional_receiver, reload, copy_reloads,
2121 calculate_needs_all_insns, init_elim_table): Likewise.
2122 * rtl-factoring.c (compute_rtx_cost, fill_hash_bucket): Likewise.
2123 * rtl.c (shallow_copy_rtx_stat): Likewise.
2124 * rtlanal.c (parms_set): Likewise.
2125 * sbitmap.c (sbitmap_alloc, sbitmap_alloc_with_popcount,
2126 sbitmap_resize, sbitmap_vector_alloc): Likewise.
2127 * sched-ebb.c (earliest_block_with_similiar_load,
2128 add_deps_for_risky_insns): Likewise.
2129 * sched-rgn.c (find_rgns, gather_region_statistics, extend_rgns,
2130 schedule_region): Likewise.
2131 * see.c (eq_descriptor_pre_extension,
2132 hash_descriptor_pre_extension, hash_del_pre_extension,
2133 eq_descriptor_properties, hash_descriptor_properties,
2134 hash_del_properties, see_seek_pre_extension_expr,
2135 see_initialize_data_structures, see_print_register_properties,
2136 see_print_pre_extension_expr, see_delete_merged_def_extension,
2137 see_delete_unmerged_def_extension, see_emit_use_extension,
2138 see_pre_delete_extension, see_map_extension, see_commit_changes,
2139 see_analyze_merged_def_local_prop,
2140 see_analyze_merged_def_local_prop,
2141 see_analyze_unmerged_def_local_prop, see_analyze_use_local_prop,
2142 see_set_prop_merged_def, see_set_prop_unmerged_def,
2143 see_set_prop_unmerged_use, see_print_one_extension,
2144 see_merge_one_use_extension, see_merge_one_def_extension,
2145 see_store_reference_and_extension, see_update_uses_relevancy,
2146 see_update_defs_relevancy): Likewise.
2147 * statistics.c (hash_statistics_hash, hash_statistics_eq,
2148 hash_statistics_free, curr_statistics_hash): Likewise.
2149 * stmt.c (parse_output_constraint, decl_overlaps_hard_reg_set_p,
2150 expand_asm_operands, expand_return, case_bit_test_cmp,
2151 expand_case): Likewise.
2152 * stor-layout.c (start_record_layout): Likewise.
2153 * stringpool.c (ggc_alloc_string, gt_pch_n_S,
2154 gt_pch_save_stringpool): Likewise.
2155 * tree-data-ref.c (hash_stmt_vertex_info,
2156 have_similar_memory_accesses_1, ref_base_address_1): Likewise.
2157 * tree-ssa-phiopt.c (name_to_bb_hash): Likewise.
2159 2008-06-25 Uros Bizjak <ubizjak@gmail.com>
2162 * config/i386/i386.md : Change constraints of HImode and QImode
2163 immediate operands from "i" to "n". Change SImode "ni" constraint to
2164 "i" and SImode "rmi" constraint to "g". Remove all constraints
2165 from const0_operand and const1_operand predicated operands.
2166 (i): Change QImode and HImode attribute from "i" to "n".
2167 (*subqi_2): Change HImode operands to QImode.
2170 2008-06-25 Olivier Hainque <hainque@adacore.com>
2172 * Makefile.in (GTFILES_H): Use | instead of ; as separator in
2175 2008-06-25 Richard Guenther <rguenther@suse.de>
2177 * tree-ssa-structalias.c (fieldoff_compare): Make sure to
2178 not overflow the result type.
2180 2008-06-25 Richard Guenther <rguenther@suse.de>
2182 * tree-vn.c (vn_add): Handle TRUTH_*_EXPR.
2183 (vn_lookup): Likewise.
2185 2008-06-25 Richard Guenther <rguenther@suse.de>
2187 PR tree-optimization/35518
2188 * fold-const.c (fold_ternary): Strip trivial BIT_FIELD_REFs.
2189 * tree-sra.c (instantiate_element): Use fold_build3 to build
2191 (try_instantiate_multiple_fields): Likewise.
2193 2008-06-24 Andrew Pinski <andrew_pinski@playstation.sony.com>
2195 * config/rs6000/rs6000.md: Change all string instruction's clobber to
2198 2008-06-24 Andrew Pinski <andrew_pinski@playstation.sony.com>
2200 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Set
2201 use_backchain_to_restore_sp to true
2202 if the offset of the link register save area would go over the 32k - 1
2203 offset limit of the load
2206 2008-06-25 Hans-Peter Nilsson <hp@axis.com>
2208 * doc/invoke.texi (Optimize Options) <fstrict-aliasing>: Add
2209 anchor for the type-punning blurb. Cross-reference "Structures
2210 unions enumerations and bit-fields implementation". Provide a
2211 cast-through-pointer example. Make final sentence self-contained.
2212 * doc/implement-c.texi (Structures unions enumerations and
2213 bit-fields implementation): Cross-reference the type-punning blurb
2214 in the -fstrict-aliasing documentation.
2216 2008-06-24 Andrew Pinski <andrew_pinski@playstation.sony.com>
2219 * builtins.c (expand_builtin_nonlocal_goto): Stabilize the address of
2220 the memory instead of the memory itself for the save area.
2222 2008-06-24 Olivier Hainque <hainque@adacore.com>
2223 Nicolas Roche <roche@adacore.com>
2225 * gengtype.c (srcdir_len): size_t instead of int.
2226 (get_file_realbasename): New function. For F a filename, the real
2227 basename of F, with all the path components stripped.
2228 (get_file_srcdir_relative_path): New function. For F a filename, the
2229 relative path to F from $(srcdir).
2230 (get_file_basename): Rewrite using get_file_srcdir_relative_path and
2231 get_file_realbasename. Adjust the head comment.
2232 (get_prefix_langdir_index): New function. For F a filename, return the
2233 lang_dir_names[] relative index of the language directory that is
2235 (get_file_langdir): For F a filename, return the name of the language
2236 directory where F is located.
2237 (get_file_gtfilename): New function. The gt- output file name for an
2239 (get_output_file_with_visibility): Replace in-line computations with
2240 uses of get_file_gtfilename and get_prefix_langdir_index.
2241 * Makefile.in (GTFILES_H): Adjust to match what gengtype generates.
2243 2008-06-24 Jakub Jelinek <jakub@redhat.com>
2245 PR tree-optimization/36504
2246 * tree-ssa-loop-prefetch.c (gather_memory_references_ref): Skip
2247 references without base address.
2249 2008-06-23 Uros Bizjak <ubizjak@gmail.com>
2252 * calls.c (expand_call): Increase alignment for recursive functions.
2254 2008-06-23 Anatoly Sokolov <aesok@post.ru>
2256 * config/avr/avr.c (avr_function_value): Add new 'outgoing' argument.
2257 (TARGET_FUNCTION_VALUE): New define.
2258 * config/avr/avr-protos.h (avr_function_value): Remove declaration.
2259 * config/avr/avr.h (FUNCTION_VALUE): Remove.
2261 2008-06-23 Uros Bizjak <ubizjak@gmail.com>
2263 * config/i386/i386.md (fmodxf3): Change sequence of move instructions.
2264 (fmod<mode>3): Ditto.
2265 (remainderxf3): Ditto.
2266 (remainder<mode>3): Ditto.
2268 2008-06-23 Jakub Jelinek <jakub@redhat.com>
2271 * emit-rtl.c (set_reg_attrs_from_value): Do nothing if
2272 REG is a hard register.
2274 PR tree-optimization/36508
2275 * tree-ssa-pre.c (compute_antic): Allow num_iterations up to
2276 499, don't check it at all in release compilers.
2278 2008-06-23 Uros Bizjak <ubizjak@gmail.com>
2280 * config/i386/i386.md (*fop_<mode>_1_i387): Use SSE_FLOAT_MODE_P
2281 together with SSE_TARGET_MATH to disable insn pattern.
2282 (*fop_<MODEF:mode>_2_i387): Ditto.
2283 (*fop_<MODEF:mode>_3_i387): Ditto.
2285 2008-06-22 Andy Hutchinson <hutchinsonandy@aim.com>
2287 * config/avr/avr.h (SUPPORTS_INIT_PRIORITY): Define.
2289 2008-06-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
2292 * gimplify.c (gimplify_asm_expr): Check the return code of
2293 parse_output_constraint call, set function return and is_inout
2296 2008-06-22 Ian Lance Taylor <iant@google.com>
2298 * c-lex.c (narrowest_unsigned_type): Change itk to int.
2299 (narrowest_signed_type): Likewise.
2300 * c-typeck.c (c_common_type): Change local variable mclass to enum
2302 (parser_build_binary_op): Compare the TREE_CODE_CLASS with
2303 tcc_comparison, not the tree code itself.
2304 * c-common.c (def_fn_type): Pass int, not an enum, to va_arg.
2305 (c_expand_expr): Cast modifier to enum expand_modifier.
2306 * c-common.h (C_RID_CODE): Add casts.
2307 (C_SET_RID_CODE): Define.
2308 * c-parser.c (c_parse_init): Use C_SET_RID_CODE.
2309 (c_lex_one_token): Add cast to avoid warning.
2310 (c_parser_objc_type_name): Rename local typename to type_name.
2311 (check_no_duplicate_clause): Change code parameter to enum
2313 (c_parser_omp_var_list_parens): Change kind parameter to enum
2315 (c_parser_omp_flush): Pass OMP_CLAUSE_ERROR, not 0, to
2316 c_parser_omp_list_var_parens.
2317 (c_parser_omp_threadprivate): Likewise.
2318 * cp/lex.c (init_reswords): Use C_SET_RID_CODE.
2319 * cp/parser.c (cp_lexer_get_preprocessor_token): Likewise.
2320 * c-format.c (NO_FMT): Define.
2321 (printf_length_specs): Use NO_FMT.
2322 (asm_fprintf_length_specs): Likewise.
2323 (gcc_diag_length_specs): Likewise.
2324 (scanf_length_specs): Likewise.
2325 (strfmon_length_specs): Likewise.
2326 (gcc_gfc_length_specs): Likewise.
2327 (printf_flag_specs): Change 0 to STD_C89.
2328 (asm_fprintf_flag_specs): Likewise.
2329 (gcc_diag_flag_specs): Likewise.
2330 (gcc_cxxdiag_flag_specs): Likewise.
2331 (scanf_flag_specs): Likewise.
2332 (strftime_flag_specs): Likewise.
2333 (strfmon_flag_specs): Likewise.
2334 (print_char_table): Likewise.
2335 (asm_fprintf_char_table): Likewise.
2336 (gcc_diag_char_table): Likewise.
2337 (gcc_tdiag_char_table): Likewise.
2338 (gcc_cdiag_char_table): Likewise.
2339 (gcc_cxxdiag_char_table): Likewise.
2340 (gcc_gfc_char_table): Likewise.
2341 (scan_char_table): Likewise.
2342 (time_char_table): Likewis.
2343 (monetary_char_table): Likewise.
2344 * c-format.h (BADLEN): Likewise.
2346 2008-06-21 Ian Lance Taylor <iant@google.com>
2348 * tree.h (enum tree_code): Include all-tree.def, not tree.def.
2349 Define END_OF_BASE_TREE_CODES around inclusion.
2350 * tree.c (tree_code_type): New global array.
2351 (tree_code_length, tree_code_name): Likewise.
2352 * Makefile.in (TREE_H): Add all-tree.def, c-common.def, and
2354 (all-tree.def, s-alltree): New targets.
2355 (gencheck.h, s-gencheck): Remove.
2356 (tree.o): Depend upon all-tree.def.
2357 (build/gencheck.o): Remove gencheck.h dependency.
2358 (mostlyclean): Don't remove gencheck.h.
2359 * c-common.h (enum c_tree_code): Remove.
2360 * c-lang.c (tree_code_type): Remove.
2361 (tree_code_length, tree_code_name): Remove.
2362 * gencheck.c (tree_codes): Include all-tree.def, rather than
2363 tree.def, c-common.def, and gencheck.h. Undefined DEFTREECODE
2365 * tree-browser.c (tb_tree_codes): Include all-tree.def, rather
2367 * cp/cp-tree.h (enum cplus_tree_code): Remove.
2368 (operator_name_info): Size to MAX_TREE_CODES.
2369 (assignment_operator_name_info): Likewise.
2370 * cp/cp-lang.c (tree_code_type): Remove.
2371 (tree_code_length, tree_code_name): Remove.
2372 * cp/lex.c (operator_name_info): Size to MAX_TREE_CODES.
2373 (assignment_operator_name_info): Likewise.
2374 * cp/decl.c (grok_op_properties): Change LAST_CPLUS_TREE_CODE to
2376 * cp/mangle.c (write_expression): Likewise.
2377 * cp/Make-lang.in (CXX_TREE_H): Remove cp/cp-tree.def.
2378 * fortran/f95-lang.c (tree_code_type): Remove.
2379 (tree_code_length, tree_code_name): Remove.
2380 * java/java-tree.h (enum java_tree_code): Remove.
2381 * java/lang.c (tree_code_type): Remove.
2382 (tree_code_length, tree_code_name): Remove.
2383 * java/Make-lang.in (JAVA_TREE_H): Remove java/java-tree.def.
2384 * objc/objc-act.h (enum objc_tree_code): Remove.
2385 * objc/objc-lang.c (tree_code_type): Remove.
2386 (tree_code_length, tree_code_name): Remove.
2387 * objcp/objcp-lang.c (tree_code_type): Remove.
2388 (tree_code_length, tree_code_name): Remove.
2389 * ada/ada-tree.h (enum gnat_tree_code): Remove.
2390 * ada/Make-lang.in (ADA_TREE_H): Remove ada/ada-tre.def.
2391 * ada/misc.c (tree_code_type): Remove.
2392 (tree_code_length, tree_code_name): Remove.
2394 2008-06-21 Bernhard Fischer <aldot@gcc.gnu.org>
2396 * tree-ssa-pre.c (fini_antic): Bitmap_sets have to be freed before
2397 the grand_bitmap_obstack.
2399 2008-06-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2401 * ggc.h (GGC_RESIZEVAR): New, reorder macros.
2402 * tracer.c (tail_duplicate): Fix for -Wc++-compat.
2403 * tree-affine.c (aff_combination_expand, free_name_expansion): Likewise.
2404 * tree-cfg.c (replace_by_duplicate_decl, replace_ssa_name,
2405 move_stmt_r, new_label_mapper): Likewise.
2406 * tree-complex.c (cvc_lookup): Likewise.
2407 * tree-dfa.c (create_function_ann): Likewise.
2408 * tree-dump.c (dump_register): Likewise.
2409 * tree-if-conv.c (tree_if_conversion, add_to_predicate_list,
2410 find_phi_replacement_condition): Likewise.
2411 * tree-inline.c (copy_phis_for_bb, estimate_num_insns_1,
2412 tree_function_versioning): Likewise.
2413 * tree-into-ssa.c (cmp_dfsnum): Likewise.
2414 * tree-iterator.c (tsi_link_before, tsi_link_after): Likewise.
2415 * tree-nested.c (lookup_field_for_decl, lookup_tramp_for_decl,
2416 get_nonlocal_debug_decl, convert_nonlocal_reference,
2417 convert_nonlocal_omp_clauses, get_local_debug_decl,
2418 convert_local_reference, convert_local_omp_clauses,
2419 convert_nl_goto_reference, convert_nl_goto_receiver,
2420 convert_tramp_reference, convert_call_expr): Likewise.
2421 * tree-outof-ssa.c (contains_tree_r): Likewise.
2422 * tree-parloops.c (reduction_phi, initialize_reductions,
2423 eliminate_local_variables_1, add_field_for_reduction,
2424 add_field_for_name, create_phi_for_local_result,
2425 create_call_for_reduction_1, create_loads_for_reductions,
2426 create_stores_for_reduction, create_loads_and_stores_for_name):
2428 * tree-phinodes.c (allocate_phi_node): Likewise.
2429 * tree-predcom.c (order_drefs, execute_pred_commoning_cbck): Likewise.
2430 * tree-sra.c (sra_elt_hash, sra_elt_eq, lookup_element): Likewise.
2431 * tree-ssa-alias.c (get_mem_sym_stats_for): Likewise.
2432 * tree-ssa-coalesce.c (compare_pairs): Likewise.
2433 * tree-ssa-loop-im.c (mem_ref_in_stmt, memref_hash, memref_eq,
2434 memref_free, gather_mem_refs_stmt, vtoe_hash, vtoe_eq, vtoe_free,
2435 record_vop_access, get_vop_accesses, get_vop_stores): Likewise.
2436 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Likewise.
2437 * tree-ssa-sccvn.c (VN_INFO_GET, free_phi, free_reference,
2438 vn_nary_op_insert): Likewise.
2439 * tree-ssa.c (redirect_edge_var_map_add,
2440 redirect_edge_var_map_clear, redirect_edge_var_map_dup): Likewise.
2441 * tree-vectorizer.c (vectorize_loops): Likewise.
2442 * tree.c (make_node_stat, copy_node_stat, build_int_cst_wide,
2443 build_fixed, build_real, make_tree_binfo_stat, make_tree_vec_stat,
2444 tree_cons_stat, build1_stat, build_variant_type_copy,
2445 decl_init_priority_lookup, decl_fini_priority_lookup,
2446 decl_priority_info, decl_restrict_base_lookup,
2447 decl_restrict_base_insert, decl_debug_expr_lookup,
2448 decl_debug_expr_insert, decl_value_expr_lookup,
2449 decl_value_expr_insert, type_hash_eq, type_hash_lookup,
2450 type_hash_add, get_file_function_name, tree_check_failed,
2451 tree_not_check_failed, tree_range_check_failed,
2452 omp_clause_range_check_failed, build_omp_clause,
2453 build_vl_exp_stat): Likewise.
2454 * value-prof.c (gimple_histogram_value,
2455 gimple_duplicate_stmt_histograms): Likewise.
2456 * var-tracking.c (attrs_list_insert, attrs_list_copy,
2457 unshare_variable, variable_union_info_cmp_pos, variable_union,
2458 dataflow_set_different_1, dataflow_set_different_2,
2459 vt_find_locations, variable_was_changed, set_variable_part,
2460 emit_notes_for_differences_1, emit_notes_for_differences_2): Likewise.
2461 * varasm.c (prefix_name, emutls_decl, section_entry_eq,
2462 section_entry_hash, object_block_entry_eq,
2463 object_block_entry_hash, create_block_symbol,
2464 initialize_cold_section_name, default_function_rodata_section,
2465 strip_reg_name, set_user_assembler_name, const_desc_eq,
2466 build_constant_desc, output_constant_def, lookup_constant_def,
2467 const_desc_rtx_hash, const_desc_rtx_eq, const_rtx_hash_1,
2468 create_constant_pool, force_const_mem, compute_reloc_for_rtx_1,
2469 default_internal_label): Likewise.
2470 * varray.c (varray_init, varray_grow): Likewise.
2471 * vec.c (vec_gc_o_reserve_1, vec_heap_o_reserve_1): Likewise.
2473 2008-06-20 Uros Bizjak <ubizjak@gmail.com>
2475 * config/i386/i386.md (*jcc_fused_1): Handle all valid compare
2476 operators for "test" insn. Macroize insn using SWI mode macro.
2477 (*jcc_fused_2): Ditto.
2478 (*jcc_fused_3): Macroize insn using SWI mode macro.
2479 (*jcc_fused_4): Ditto.
2481 2008-06-20 Bernhard Fischer <aldot@gcc.gnu.org>
2483 * tree-ssa-pre.c: Fix typo in comment.
2484 (init_antic, fini_antic): Add explicit funtions for
2485 initializing and deinitializing ANTIC and AVAIL sets.
2486 (create_expression_by_pieces): Fix typo in comment.
2487 Remove redundant set of new_stuff and use NULL_TREE instead of NULL.
2488 (execute_pre): Eventually dump details about ANTIC_IN.
2490 2008-06-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2492 * collect2.c (main, add_to_list): Fix for -Wc++-compat.
2493 * gcc.c (translate_options, init_spec, store_arg, read_specs,
2494 add_to_obstack, file_at_path, find_a_file, execute,
2495 add_preprocessor_option, add_assembler_option, add_linker_option,
2496 process_command, insert_wrapper, do_option_spec, do_self_spec,
2497 spec_path, do_spec_1, is_directory, main, used_arg,
2498 getenv_spec_function): Likewise.
2499 * tlink.c (symbol_hash_lookup, file_hash_lookup,
2500 demangled_hash_lookup, symbol_push, file_push, frob_extension):
2503 2008-06-19 Kenneth Zadeck <zadeck@naturalbridge.com>
2505 * doc/rtl.texi: Updated subreg section.
2507 2008-06-19 Jakub Jelinek <jakub@redhat.com>
2510 * cgraphunit.c (cgraph_process_new_functions): Don't clear
2511 node->needed and node->reachable.
2512 * cgraphbuild.c (record_reference): Handle OMP_PARALLEL and OMP_TASK.
2513 * omp-low.c (delete_omp_context): Call finalize_task_copyfn.
2514 (expand_task_call): Don't call expand_task_copyfn.
2515 (expand_task_copyfn): Renamed to...
2516 (finalize_task_copyfn): ... this.
2518 2008-06-19 Jan Hubicka <jh@suse.cz>
2520 * builtins.c (expand_builtin_nonlocal_goto): Stabilize r_sp before
2521 clobbering framepointer.
2523 2008-06-19 Jan Hubicka <jh@suse.cz>
2525 * tree-optimize.c (execute_early_local_optimizations): Set
2526 cgraph_state only at first invocation.
2528 2008-06-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2530 * system.h (-Wc++-compat): Activate as a warning, no an error.
2532 2008-06-19 Uros Bizjak <ubizjak@gmail.com>
2534 * config/i386/i386.md (*jcc_fused_1): Use ASM_COMMENT_START
2535 instead of "#" in insn asm template.
2536 (*jcc_fused_2): Ditto.
2538 2008-06-19 Uros Bizjak <ubizjak@gmail.com>
2540 * config/i386/i386.h (ix86_tune_indices)
2541 [X86_TUNE_FUSE_CMP_AND_BRANCH]: New.
2542 (TARGET_FUSE_CMP_AND_BRANCH): New define.
2543 * config/i386/i386.md (*jcc_fused_1): New insn pattern
2544 (*jcc_fused_2): Ditto.
2545 * config/i386/i386.c (ix86_tune_features): Add m_CORE2 to
2546 X86_TUNE_FUSE_CMP_AND_BRANCH targets.
2547 (print operand): Handle 'E' and 'e' code.
2549 2008-06-19 Anatoly Sokolov <aesok@post.ru>
2551 * config/avr/avr.c (avr_mcu_t): Add attiny13a.
2552 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
2553 * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
2555 2008-06-19 Bernhard Fischer <aldot@gcc.gnu.org>
2557 * cgraphunit.c (cgraph_finalize_function): Remove redundant setting of
2559 (cgraph_expand_function): Use local copy of decl.
2560 (cgraph_expand_all_functions): Remove redundant initialization of
2562 (cgraph_optimize): Reword internal_error message.
2564 2008-06-19 Chung-Lin Tang <ctang@marvell.com>
2566 * arm-protos.h (arm_return_in_memory): Remove public
2567 arm_return_in_memory() prototype.
2568 * arm.c (arm_return_in_memory): Add static prototype, add target
2569 hook macro, change definition and comments.
2570 * arm.h (TARGET_RETURN_IN_MEMORY): Remove.
2572 2008-06-19 Ben Elliston <bje@au.ibm.com>
2574 * dfp.h, dfp.c, config/dfp-bit.h, config/dfp-bit.c, real.h,
2575 real.c: Remove references to IEEE 754R.
2576 * doc/install.texi (Configuration): IEEE 754R -> IEEE 754-2008.
2577 * doc/libgcc.texi (Decimal float library routines): Likewise.
2579 2008-06-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2581 * targhooks.h (struct gcc_target): New member unwind_word_mode.
2582 (default_unwind_word_mode): Add prototype.
2583 * targhooks.c (default_unwind_word_mode): New function.
2584 (default_eh_return_filter_mode): Return targetm.unwind_word_mode ()
2585 instead of word_mode.
2586 * target-def.h (TARGET_UNWIND_WORD_MODE): New macro.
2587 (TARGET_INITIALIZER): Use it.
2589 * c-common.c (handle_mode_attribute): Support "unwind_word"
2591 * unwind-generic.h (_Unwind_Word, _Unwind_Sword): Use it.
2593 * except.c (init_eh): Use targetm.unwind_word_mode () instead of
2594 word_mode to access SjLj_Function_Context member "data".
2595 (sjlj_emit_dispatch_table): Likewise. Also, perform type
2596 conversion from targetm.eh_return_filter_mode () to
2597 targetm.unwind_word_mode () if they differ.
2599 * builtin-types.def (BT_UNWINDWORD): New primitive type.
2600 (BT_FN_UNWINDWORD_PTR): New function type.
2601 (BT_FN_WORD_PTR): Remove.
2602 * builtins.def (BUILT_IN_EXTEND_POINTER): Use BT_FN_UNWINDWORD_PTR.
2603 * except.c (expand_builtin_extend_pointer): Convert pointer to
2604 targetm.unwind_word_mode () instead of word_mode.
2606 * config/spu/spu-protos.h (spu_eh_return_filter_mode): Remove.
2607 * config/spu/spu.c (spu_eh_return_filter_mode): Remove.
2608 (spu_unwind_word_mode): New function.
2609 (TARGET_EH_RETURN_FILTER_MODE): Do not define.
2610 (TARGET_UNWIND_WORD_MODE): Define.
2611 * config/spu/t-spu-elf (TARGET_LIBGCC2_CFLAGS): Remove -D__word__=SI.
2613 2008-06-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2615 * config/spu/spu.c (reg_align): Remove.
2616 (regno_aligned_for_load): Also accept ARG_POINTER_REGNUM.
2617 (spu_split_load): Use regno_aligned_for_load instead of reg_align.
2618 (spu_split_store): Likewise.
2620 2008-06-18 Bernhard Fischer <aldot@gcc.gnu.org>
2622 * gcc/tree-vn.c: Fix typo in comment.
2624 2008-06-18 Jan Hubicka <jh@suse.cz>
2626 * cgraphunit.c (cgraph_optimize): Output debug info when doing
2627 toplevel reorder too.
2629 2008-06-18 Jan Hubicka <jh@suse.cz>
2631 * c-opts.c (c_common_post_options): PCH is not compatible with
2633 * opts.c (handle_options): Enable unit-at-a-time at O0 along with
2634 -fno-toplevel-reorder by default now.
2636 2008-06-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2638 PR documentation/30739
2639 * doc/install.texi (Prerequisites): Document dependency on awk.
2641 2008-06-18 Uros Bizjak <ubizjak@gmail.com>
2642 Ian Lance Taylor <iant@google.com>
2644 PR rtl-optimization/35604
2645 * jump.c (redirect_exp_1): Skip the condition of an IF_THEN_ELSE. We
2646 only want to change jump destinations, not eventual label comparisons.
2648 2008-06-16 Jan Hubicka <jh@suse.cz>
2650 * cgraphunit.c (cgraph_expand_pending_functions): Give up at
2652 (cgraph_analyze_function): Likewise.
2654 2008-06-16 Jan Hubicka <jh@suse.cz>
2656 * cgraph.h (cgraph_mark_if_needed): New function.
2657 * cgraphunit.c (cgraph_mark_if_needed): New function.
2658 * c-decl.c (duplicate_decl): Use it.
2660 2008-06-16 Jan Hubicka <jh@suse.cz>
2662 * cgraph.c (cgraph_add_new_function): When in expansion state, do
2665 2008-06-16 Jan Hubicka <jh@suse.cz>
2667 * tree-outof-ssa.c (pass_out_of_ssa): Do not depend on PROP_alias.
2669 2008-06-16 Daniel Jacobowitz <dan@codesourcery.com>
2670 Kazu Hirata <kazu@codesourcery.com>
2671 Maxim Kuvyrkov <maxim@codesourcery.com
2673 * config.gcc (mips64el-st-linux-gnu): Use mips/st.h and mips/t-st.
2674 * config.host: Use driver-native.o and mips/x-native for mips*-linux*.
2675 * config/mips/linux.h (host_detect_local_cpu): Declare, add to
2676 EXTRA_SPEC_FUNCTIONS.
2677 (MARCH_MTUNE_NATIVE_SPECS, BASE_DRIVER_SELF_SPECS): New macros.
2678 (DRIVER_SELF_SPECS): Adjust.
2679 * config/mips/linux64.h (DRIVER_SELF_SPECS): Update.
2680 * config/mips/st.h, config/mips/t-st: New.
2681 * config/mips/driver-native.c, config/mips/x-native: New.
2682 * doc/invoke.texi (MIPS): Document 'native' value for -march and
2685 2008-06-18 Maxim Kuvyrkov <maxim@codesourcery.com>
2687 * config/mips/mips.h (ISA_HAS_CONDMOVE): Slice ISA_HAS_FP_CONDMOVE
2689 (ISA_HAS_FP_CONDMOVE): New macro.
2690 (ISA_HAS_FP_MADD4_MSUB4, ISA_HAS_FP_MADD3_MSUB3): New macros.
2691 (ISA_HAS_NMADD_NMSUB): Rename to ISA_HAS_NMADD4_NMSUB4.
2692 (ISA_HAS_NMADD3_NMSUB3): New macro.
2693 * config/mips/mips.c (mips_rtx_costs): Update.
2694 * config/mips/mips.md (MOVECC): Don't use FP conditional moves when
2695 compiling for ST Loongson 2E/2F.
2696 (madd<mode>): Rename to madd4<mode>. Update.
2697 (madd3<mode>): New pattern.
2698 (msub<mode>): Rename to msub4<mode>. Update.
2699 (msub3<mode>): New pattern.
2700 (nmadd<mode>): Rename to nmadd4<mode>. Update.
2701 (nmadd3<mode>): New pattern.
2702 (nmadd<mode>_fastmath): Rename to nmadd4<mode>_fastmath. Update.
2703 (nmadd3<mode>_fastmath): New pattern.
2704 (nmsub<mode>): Rename to nmsub4<mode>. Update.
2705 (nmsub3<mode>): New pattern.
2706 (nmsub<mode>_fastmath): Rename to nmsub4<mode>_fastmath. Update.
2707 (nmsub3<mode>_fastmath): New pattern.
2708 (mov<SCALARF:mode>_on_<MOVECC:mode>, mov<mode>cc): Update.
2710 2008-06-18 Steven Bosscher <steven@gcc.gnu.org>
2712 * df.h (struct df_ref): Replace 'insn' field with 'insn_info' field.
2713 (DF_REF_INSN_INFO): New.
2714 (DF_REF_INSN, DF_REF_INSN_UID): Rewrite macros using DF_REF_INSN_INFO.
2715 (DF_REF_IS_ARTIFICIAL): Artificial refs are now identified as refs
2716 with a NULL DF_REF_INSN_INFO.
2717 (DF_INSN_INFO_GET, DF_INSN_INFO_SET): Renamed from DF_INSN_GET and
2719 (DF_INSN_INFO_LUID, DF_INSN_INFO_DEFS, DF_INSN_INFO_USES,
2720 DF_INSN_INFO_EQ_USES): New.
2721 (DF_INSN_LUID, DF_INSN_DEFS, DF_INSN_USES, DF_INSN_EQ_USES,
2722 DF_INSN_UID_LUID, DF_INSN_UID_DEFS, DF_INSN_UID_USES,
2723 DF_INSN_UID_EQ_USES): Rewrite using DF_INSN_INFO_* macros.
2724 * df-core.c: Update comment for above changes.
2725 (df_insn_debug_regno): Use DF_INSN_INFO_GET instead of INSN_UID and
2726 DF_INSN_UID_* macros.
2727 (df_ref_debug): Check for NULL DF_REF_INSN_INFO.
2728 * df-scan.c (df_ref_record): Take a df_insn_info instead of an
2729 insn rtx. Update all callers.
2730 (df_def_record_1, df_defs_record, df_uses_record, df_get_call_refs,
2731 df_ref_create_structure, df_insn_refs_collect): Likewise.
2732 (df_ref_equal_p): Compare DF_REF_INSN_INFO pointers for the refs.
2733 * df-problems.c (df_chain_dump): Test for non-NULL DF_REF_INSN_INFO.
2734 (df_live_bb_local_compute): Retrieve DF_INSN_INFO, use DF_INSN_INFO_*
2735 macros to access the insn refs.
2736 (df_chain_top_dump, df_chain_bottom_dump, df_byte_lr_alloc): Likewise.
2737 * fwprop.c (use_killed_between): Use DF_REF_INSN accessor macro.
2738 (all_uses_available): Retrieve DF_INSN_INFO for def_insn, and use it
2739 for accessing the refs.
2740 (try_fwprop_subst): Likewise.
2741 * ddg.c (add_cross_iteration_register_deps): Use DF_REF_INSN macro.
2742 * web.c (union_defs): Retrieve DF_INSN_INFO for def_insn, and use it
2743 for accessing the refs.
2744 * loop-invariant.c (invariant_for_use): Use DF_REF_BB macro.
2745 (check_dependencies): Use DF_INSN_INFO_GET, use DF_INSN_INFO_* macros
2746 to look at the insn refs.
2747 (record_uses): Likewise.
2748 * dce.c (deletable_insn_p): Don't tolerate artificial DEFs in this
2750 (mark_artificial_uses): Don't mark_insn for artificial refs.
2751 (mark_reg_rependencies): Likewise.
2753 * doc/rtl.texi: Remove documentation of ADDRESSOF.
2755 2008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2757 * configure: Regenerate.
2759 2008-06-17 Eric B. Weddington <eric.weddington@atmel.com>
2761 * config/avr/avr.c (avr_mcu_t): Remove atmega32hvb.
2762 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
2763 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
2765 2008-06-17 Eric B. Weddington <eric.weddington@atmel.com>
2767 * config/avr/avr.c (avr_mcu_t): Add attiny167.
2768 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
2769 * gcc/config/avr/t-avr (MULTILIB_MATCHES): Likewise.
2771 2008-06-17 Eric B. Weddington <eric.weddington@atmel.com>
2773 * config/avr/avr.c (avr_mcu_t): Add atmega32u4.
2774 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
2775 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
2777 2008-06-17 Bernhard Fischer <aldot@gcc.gnu.org>
2779 * tree-ssa-sccvn.c: Fix format of comments.
2781 2008-06-17 Bernhard Fischer <aldot@gcc.gnu.org>
2783 * cgraph.c: Remove unneeded forward declarations of eq_node()
2786 2008-06-17 Steven Bosscher <steven@gcc.gnu.org>
2788 * see.c (see_analyse_one_def): Do not look for REG_LIBCALL and
2790 (see_update_relevancy): Likewise.
2791 * fwprop.c (try_fwprop_subst): Likewise.
2792 * rtlanal.c (noop_move_p): Likewise.
2793 * builtins.c (expand_buitlin_mathfn): Don't try to add REG_EQUAL
2794 notes to non-existing libcall blocks.
2795 * cse.c (cse_insn): Change prototype. Don't update libcall notes.
2797 (cse_extended_basic_block): Don't track libcall and no-conflict notes.
2798 (dead_libcall_p): Remove.
2799 (delete_trivially_dead_insns): Don't use it.
2800 * web.c (union_defs): Remove comment about keeping nops.
2801 * gcse.c (hash_scan_insn): Don't take libcall pointers.
2802 (compute_hash_table_work): Don't track libcall notes.
2803 (do_local_cprop): Don't take libcall pointers. Don't update
2805 (adjust_libcall_notes): Deleted.
2806 (local_cprop_pass): Remove stack for nested libcalls (which shouldn't
2807 ever have existed in the first place).
2808 (replace_store_insn): Don't try to remove libcall notes.
2809 * lower-subreg.c (move_libcall_note, move_retval_note): Deleted.
2810 (resolve_reg_notes): Don't call them.
2811 (resolve_simple_move): Likewise.
2812 (decompose_multiword_subregs): Remove block handling REG_RETVAL notes.
2813 Don't remove REG_RETVAL notes.
2814 * emit-rtl.c (try_split): Don't update libcall notes.
2815 (emit_copy_of_insn_after): Dito.
2816 * cselib.c (cselib_current_insn_in_libcall): Remove.
2817 (cselib_process_insn): Don't set/clear it.
2818 (new_elt_loc_list): Don't record it.
2819 (cselib_init): Don't initialize it.
2820 * cselib.c (struct elt_loc_list): Remove in_libcall field.
2821 * loop-invariant.c (find_invariant_insn): Don't look for libcall
2823 * sched-deps.c (sched_analyze_insn): Don't group libcall blocks.
2824 (sched_analyze): Don't set up deps->libcall_block_tail_insn.
2825 (init_deps): Don't initialize it.
2826 * sched-int.h (struct deps): Rremove libcall_block_tail_insn field.
2827 * combine.c (delete_noop_moves): Don't update libcall notes.
2828 (can_combine_p): Remove now pointless #if 0 block.
2829 (try_combine): Remove another obsolete #if 0 block.
2830 (distribute_notes): Don't distribute libcall notes.
2831 * reg-notes.def (REG_LIBCALL, REG_RETVAL): Remove.
2832 * dce.c (libcall_dead_p): Remove.
2833 (delete_unmarked_insns): Don't handle libcall blocks.
2834 (preserve_libcall_for_dce): Remove.
2835 (prescan_insns_for_dce): Don't special-case libcall block insns.
2836 * reload1 (reload): Don't handle libcall notes.
2837 * doc/rtl.texi (REG_LIBCALL, REG_RETVAL, REG_LIBCALL_ID): Remove
2840 2008-06-16 Eric B. Weddington <eric.weddington@atmel.com>
2842 * config/avr/avr.c (avr_mcu_t): Add atmega32c1.
2843 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
2844 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
2846 2008-06-16 Eric B. Weddington <eric.weddington@atmel.com>
2848 * config/avr/avr.c (avr_mcu_t): Add atmega32m1.
2849 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
2850 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
2852 2008-06-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2854 * Makefile.in (FLAGS_TO_PASS): Add $(datarootdir).
2856 2008-06-16 Ira Rosen <irar@il.ibm.com>
2858 PR tree-optimization/36493
2859 * tree-vect-transform.c (vect_create_data_ref_ptr): Remove TYPE from
2860 the arguments list. Use VECTYPE to create vector pointer.
2861 (vectorizable_store): Fail if accesses through a pointer to vectype
2862 do not alias the original memory reference operands.
2863 Call vect_create_data_ref_ptr without the removed argument.
2864 (vectorizable_load): Likewise.
2865 (vect_setup_realignment): Call vect_create_data_ref_ptr without the
2868 2008-06-015 Andy Hutchinson <hutchinsonandy@aim.com>
2871 * config/avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Add check for
2874 2008-06-15 Maxim Kuvyrkov <maxim@codesourcery.com>
2876 * config/mips/loongson2ef.md: New file.
2877 * config/mips/mips.md (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
2878 (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
2879 (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
2880 (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): New constants.
2881 (define_attr "cpu"): Rename loongson2e and loongson2f to loongson_2e
2883 (loongson2ef.md): New include.
2884 * config/mips/loongson.md (vec_pack_ssat_<mode>, vec_pack_usat_<mode>)
2885 (add<mode>3, paddd, ssadd<mode>3, usadd<mode>3)
2886 (loongson_and_not_<mode>, loongson_average_<mode>, loongson_eq_<mode>)
2887 (loongson_gt_<mode>, loongson_extract_halfword)
2888 (loongson_insert_halfword_0, loongson_insert_halfword_2)
2889 (loongson_insert_halfword_3, loongson_mult_add, smax<mode>3)
2890 (umax<mode>3, smin<mode>3, umin<mode>3, loongson_move_byte_mask)
2891 (umul<mode>3_highpart, smul<mode>3_highpart, loongson_smul_lowpart)
2892 (loongson_umul_word, loongson_pasubub, reduc_uplus_<mode>)
2893 (loongson_psadbh, loongson_pshufh, loongson_psll<mode>)
2894 (loongson_psra<mode>, loongson_psrl<mode>, sub<mode>3, psubd)
2895 (sssub<mode>3, ussub<mode>3, vec_interleave_high<mode>)
2896 (vec_interleave_low<mode>): Define type attribute.
2897 * config/mips/mips.c (mips_ls2): New static variable.
2898 (mips_issue_rate): Update to handle tuning for Loongson 2E/2F.
2899 (mips_ls2_init_dfa_post_cycle_insn, mips_init_dfa_post_cycle_insn)
2900 (sched_ls2_dfa_post_advance_cycle, mips_dfa_post_advance_cycle):
2901 Implement target scheduling hooks.
2902 (mips_multipass_dfa_lookahead): Update to handle tuning for
2904 (mips_sched_init): Initialize data for Loongson scheduling.
2905 (mips_ls2_variable_issue): New static function.
2906 (mips_variable_issue): Update to handle tuning for Loongson 2E/2F.
2908 (TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN)
2909 (TARGET_SCHED_DFA_POST_ADVANCE_CYCLE): Override target hooks.
2910 * config/mips/mips.h (TUNE_LOONGSON_2EF): New macros.
2911 (ISA_HAS_XFER_DELAY, ISA_HAS_FCMP_DELAY, ISA_HAS_HILO_INTERLOCKS):
2912 Handle ST Loongson 2E/2F cores.
2913 (CPU_UNITS_QUERY): Define macro to enable querying of DFA units.
2915 2008-06-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2917 * omp-low.c (extract_omp_for_data): Fix comment typo.
2920 2008-06-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2922 * doc/sourcebuild.texi (Config Fragments): Remove obsolete
2923 FIXME note about gcc/config.guess.
2924 * doc/options.texi (Option file format): Remove non-ASCII bytes.
2925 * doc/cpp.texi: Expand TABs, drop indentation outside examples.
2926 * doc/cppopts.texi: Likewise.
2927 * doc/extend.texi: Likewise.
2928 * doc/gcc.texi: Likewise.
2929 * doc/gccint.texi: Likewise.
2930 * doc/gcov.texi: Likewise.
2931 * doc/gty.texi: Likewise.
2932 * doc/hostconfig.texi: Likewise.
2933 * doc/install.texi: Likewise.
2934 * doc/invoke.texi: Likewise.
2935 * doc/loop.texi: Likewise.
2936 * doc/makefile.texi: Likewise.
2937 * doc/md.texi: Likewise.
2938 * doc/passes.texi: Likewise.
2939 * doc/tm.texi: Likewise.
2940 * doc/tree-ssa.texi: Likewise.
2941 * doc/trouble.texi: Likewise.
2943 2008-06-15 Mark Shinwell <shinwell@codesourcery.com>
2944 Nathan Sidwell <nathan@codesourcery.com>
2945 Maxim Kuvyrkov <maxim@codesourcery.com>
2946 Richard Sandiford <rdsandiford@googlemail.com>
2948 * config/mips/mips-modes.def: Add V8QI, V4HI and V2SI modes.
2949 * config/mips/mips-protos.h (mips_expand_vector_init): New.
2950 * config/mips/mips-ftypes.def: Add function types for Loongson-2E/2F
2952 * config/mips/mips.c (mips_split_doubleword_move): Handle new modes.
2953 (mips_hard_regno_mode_ok_p): Allow 64-bit vector modes for Loongson.
2954 (mips_vector_mode_supported_p): Add V2SImode, V4HImode and
2956 (LOONGSON_BUILTIN, LOONGSON_BUILTIN_ALIAS): New.
2957 (CODE_FOR_loongson_packsswh, CODE_FOR_loongson_packsshb,
2958 (CODE_FOR_loongson_packushb, CODE_FOR_loongson_paddw,
2959 (CODE_FOR_loongson_paddh, CODE_FOR_loongson_paddb,
2960 (CODE_FOR_loongson_paddsh, CODE_FOR_loongson_paddsb)
2961 (CODE_FOR_loongson_paddush, CODE_FOR_loongson_paddusb)
2962 (CODE_FOR_loongson_pmaxsh, CODE_FOR_loongson_pmaxub)
2963 (CODE_FOR_loongson_pminsh, CODE_FOR_loongson_pminub)
2964 (CODE_FOR_loongson_pmulhuh, CODE_FOR_loongson_pmulhh)
2965 (CODE_FOR_loongson_biadd, CODE_FOR_loongson_psubw)
2966 (CODE_FOR_loongson_psubh, CODE_FOR_loongson_psubb)
2967 (CODE_FOR_loongson_psubsh, CODE_FOR_loongson_psubsb)
2968 (CODE_FOR_loongson_psubush, CODE_FOR_loongson_psubusb)
2969 (CODE_FOR_loongson_punpckhbh, CODE_FOR_loongson_punpckhhw)
2970 (CODE_FOR_loongson_punpckhwd, CODE_FOR_loongson_punpcklbh)
2971 (CODE_FOR_loongson_punpcklhw, CODE_FOR_loongson_punpcklwd): New.
2972 (mips_builtins): Add Loongson builtins.
2973 (mips_loongson_2ef_bdesc): New.
2974 (mips_bdesc_arrays): Add mips_loongson_2ef_bdesc.
2975 (mips_builtin_vector_type): Handle unsigned versions of vector modes.
2976 (MIPS_ATYPE_UQI, MIPS_ATYPE_UDI, MIPS_ATYPE_V2SI, MIPS_ATYPE_UV2SI)
2977 (MIPS_ATYPE_V4HI, MIPS_ATYPE_UV4HI, MIPS_ATYPE_V8QI, MIPS_ATYPE_UV8QI):
2979 (mips_expand_vector_init): New.
2980 * config/mips/mips.h (HAVE_LOONGSON_VECTOR_MODES): New.
2981 (TARGET_CPU_CPP_BUILTINS): Define __mips_loongson_vector_rev
2983 * config/mips/mips.md: Add unspec numbers for Loongson
2984 builtins. Include loongson.md.
2985 (MOVE64): Include Loongson vector modes.
2986 (SPLITF): Include Loongson vector modes.
2987 (HALFMODE): Handle Loongson vector modes.
2988 * config/mips/loongson.md: New.
2989 * config/mips/loongson.h: New.
2990 * config.gcc: Add loongson.h header for mips*-*-* targets.
2991 * doc/extend.texi (MIPS Loongson Built-in Functions): New.
2993 2008-06-14 Joseph Myers <joseph@codesourcery.com>
2995 * config.gcc (arc-*-elf*, avr-*-*, fr30-*-elf, frv-*-elf,
2996 h8300-*-elf*, h8300-*-*, i[34567]86-*-elf*, x86_64-*-elf*,
2997 i[34567]86-*-aout*, i[34567]86-*-coff*, ia64*-*-elf*,
2998 iq2000*-*-elf*, m32r-*-elf*, m32rle-*-elf*, m32r-*-linux*,
2999 m32rle-*-linux*, m68hc11-*-*|m6811-*-*, m68hc12-*-*|m6812-*-*,
3000 m68k-*-coff*, mcore-*-elf, mcore-*-pe*, mipsisa64sr71k-*-elf*,
3001 mipsisa64sb1-*-elf* | mipsisa64sb1el-*-elf*, mips-*-elf* |
3002 mipsel-*-elf*, mips64-*-elf* | mips64el-*-elf*, mips64vr-*-elf* |
3003 mips64vrel-*-elf*, mips64orion-*-elf* | mips64orionel-*-elf*,
3004 mipstx39-*-elf* | mipstx39el-*-elf*, mn10300-*-*, pdp11-*-,
3005 powerpc-*-elf*, powerpcle-*-elf*, sh-*-elf* | sh[12346l]*-*-elf* |
3006 sh-*-symbianelf* | sh[12346l]*-*-symbianelf* | sh-*-linux* |
3007 sh[2346lbe]*-*-linux* | sh-*-netbsdelf* | shl*-*-netbsdelf* |
3008 sh5-*-netbsd* | sh5l*-*-netbsd* | sh64-*-netbsd* |
3009 sh64l*-*-netbsd*, sh-*-*, sparc-*-elf*, sparc64-*-elf*,
3010 v850e1-*-*, v850e-*-*, v850-*-*, xstormy16-*-elf, m32c-*-elf*):
3011 Remove use_fixproto=yes.
3012 (ia64*-*-hpux*): Remove comment about using fixproto.
3013 (m68k-*-uclinuxoldabi*, m68k-*-uclinux*): Remove use_fixproto=no.
3015 2008-06-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3017 * configure.ac: Update gthr-default.h lazily, to avoid unneeded
3019 * configure: Regenerate.
3021 2008-06-13 Eric Botcazou <ebotcazou@adacore.com>
3024 * builtins.c (get_memory_rtx): Test for the presence of DECL_SIZE_UNIT
3025 before evaluating it.
3027 2008-06-13 Jakub Jelinek <jakub@redhat.com>
3030 * c-decl.c (merge_decls): Don't clear DECL_EXTERNAL for
3031 nested inline functions.
3032 (start_decl, start_function): Don't invert DECL_EXTERNAL
3033 for nested inline functions.
3035 2008-06-13 Richard Sandiford <rdsandiford@googlemail.com>
3037 * config/mips/mips.md: Remove TARGET_DEBUG_D_MODE conditions from
3038 splits that must be made for correctness.
3040 2008-06-13 Richard Sandiford <rdsandiford@googlemail.com>
3042 * config/mips/mips.c (BUILTIN_AVAIL_NON_MIPS16): New macro.
3043 (AVAIL_NON_MIPS16): Likewise.
3044 (mips_builtin_description): Replace target_flags with a predicate.
3045 (paired_single, sb1_paired_single, mips3d, dsp, dspr2, dsp_32)
3046 (dspr2_32): New availability predicates.
3047 (MIPS_BUILTIN): New macro.
3048 (DIRECT_BUILTIN, CMP_SCALAR_BUILTINS, CMP_PS_BUILTINS)
3049 (CMP_4S_BUILTINS, MOVTF_BUILTINS, CMP_BUILTINS)
3050 (DIRECT_NO_TARGET_BUILTIN, BPOSGE_BUILTIN): Use it.
3051 Replace the TARGET_FLAGS parameters with AVAIL parameters.
3052 (mips_ps_bdesc, mips_sb1_bdesc, mips_dsp_bdesc)
3053 (mips_dsp_32only_bdesc): Merge into...
3054 (mips_builtins): ...this new array.
3055 (mips_bdesc_map, mips_bdesc_arrays): Delete.
3056 (mips_init_builtins): Update after above changes.
3057 (mips_expand_builtin_1): Merge into...
3058 (mips_expand_builtin): ...here and update after above changes.
3060 2008-06-12 Paul Brook <paul@codesourcery.com>
3062 * longlong.h (__arm__): Define count_leading_zeros.
3063 * config/arm/lib1funcs.asm (xxh, xxl, yyh, yyl): Define.
3064 (clzsi2, clzdi2): New functions.
3065 * config/arm/bpabi-v6m.S (xxh, xxl, yyh, yyl): Remove.
3066 * config/arm/bpabi.S (xxh, xxl, yyh, yyl): Remove.
3067 * config/arm/t-strongarm-elf (LIB1ASMFUNCS): Ditto.
3068 * config/arm/t-vxworks (LIB1ASMFUNCS): Ditto.
3069 * config/arm/t-pe (LIB1ASMFUNCS): Ditto.
3070 * config/arm/t-arm-elf (LIB1ASMFUNCS): Ditto.
3071 * config/arm/t-arm-coff (LIB1ASMFUNCS): Ditto.
3072 * config/arm/t-linux (LIB1ASMFUNCS): Ditto.
3073 * config/arm/t-symbian (LIB1ASMFUNCS): Ditto.
3074 * config/arm/t-wince-pe (LIB1ASMFUNCS): Ditto.
3076 2008-06-12 Kazu Hirata <kazu@codesourcery.com>
3078 * config/m68k/m68k.c (m68k_tune_flags): New.
3079 (override_options): Compute m68k_tune_flags.
3080 (MULL_COST, MULW_COST): Update for various variants of CFV2.
3081 * config/m68k/m68k.h (TUNE_MAC, TUNE_EMAC): New.
3083 2008-06-12 Jakub Jelinek <jakub@redhat.com>
3086 * omp-low.c (expand_omp_sections): Initialize l2 to avoid bogus warning.
3088 2008-06-12 Eric Botcazou <ebotcazou@adacore.com>
3090 * tree-inline.c (copy_body_r): Copy TREE_SIDE_EFFECTS along with
3091 TREE_THIS_VOLATILE on INDIRECT_REF nodes.
3093 2008-06-12 Eric Botcazou <ebotcazou@adacore.com>
3095 * expr.c (store_field): Do a block copy from BLKmode to BLKmode-like.
3096 (get_inner_reference): Use BLKmode for byte-aligned BLKmode bitfields.
3098 2008-06-12 Jakub Jelinek <jakub@redhat.com>
3101 * omp-low.c (expand_omp_sections): Handle #pragma omp sections with
3104 2008-06-12 Richard Guenther <rguenther@suse.de>
3106 PR tree-optimization/36345
3107 * tree-flow.h (struct ptr_info_def): Align escape_mask,
3108 add memory_tag_needed flag.
3109 (may_alias_p): Declare.
3110 * tree-ssa-alias.c (may_alias_p): Export.
3111 (set_initial_properties): Use memory_tag_needed flag.
3112 (update_reference_counts): Likewise.
3113 (reset_alias_info): Reset memory_tag_needed flag.
3114 (create_name_tags): Check memory_tag_needed flag.
3115 (dump_points_to_info_for): Dump it.
3116 * tree-ssa-structalias.c (struct variable_info): Remove
3117 directly_dereferenced flag.
3118 (new_var_info): Do not initialize it.
3119 (process_constraint_1): Do not set it.
3120 (update_alias_info): Set is_dereferenced flag.
3121 (set_uids_in_ptset): Use may_alias_p.
3122 (set_used_smts): Check memory_tag_needed flag.
3123 (find_what_p_points_to): Likewise. Pass is_dereferenced flag.
3124 * tree-ssa-alias.c (verify_flow_sensitive_alias_info): Check
3125 memory_tag_needed flag.
3126 * tree-ssa-alias-warnings.c (dsa_named_for): Try to recover
3129 2008-06-12 Kai Tietz <kai.tietz@onevision.com>
3131 * config/i386/i386.c (ix86_compute_frame_layout): Disable
3132 red zone for w64 abi.
3133 (ix86_expand_prologue): Likewise.
3134 (ix86_force_to_memory): Likewise.
3135 (ix86_free_from_memory): Likewise.
3137 2008-06-11 Edmar Wienskoski <edmar@freescale.com>
3140 * config/rs6000/rs6000.c (rs6000_override_options): Set
3141 rs6000_isel conditionally to the absence of comand line override.
3142 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS):
3143 Remove duplicate rs6000_isel setting.
3144 * config/rs6000/eabispe.h: Ditto.
3146 2008-06-11 Richard Guenther <rguenther@suse.de>
3148 * alias.c (get_alias_set): Use the element alias-set for arrays.
3149 (record_component_aliases): For arrays and vectors do nothing.
3150 * c-common.c (strict_aliasing_warning): Handle the cases
3151 of alias set zero explicitly.
3152 * Makefile.in (dfp.o-warn): Add -Wno-error.
3154 2008-06-11 Joseph Myers <joseph@codesourcery.com>
3156 * config.gcc (all_defaults): Add arch_32 arch_64 cpu_32 cpu_64
3158 (i[34567]86-*-* | x86_64-*-*): Add arch_32 arch_64 cpu_32 cpu_64
3159 tune_32 tune_64 to supported_defaults. Allow values not
3160 supporting 64-bit mode for arch_32, cpu_32 and tune_32 for
3161 x86_64. Do not override cpu_32 or cpu_64 values from target name.
3162 (i[34567]86-*-linux*, i[34567]86-*-solaris2.1[0-9]*): Only default
3163 with_cpu_64 to generic for 64-bit-supporting configurations, not
3164 with_cpu. Remove FIXMEs.
3165 * doc/install.texi (--with-cpu-32, --with-cpu-64, --with-arch-32,
3166 --with-arch-64, --with-tune-32, --with-tune-64): Document.
3167 * config/i386/i386.h (OPT_ARCH32, OPT_ARCH64): Define.
3168 (OPTION_DEFAULT_SPECS): Add tune_32, tune_64, cpu_32, cpu_64,
3169 arch_32 and arch_64.
3171 2008-06-11 Eric Botcazou <ebotcazou@adacore.com>
3172 Olivier Hainque <hainque@adacore.com>
3174 * builtins.c (get_memory_rtx): Accept byte-addressable bitfields.
3175 Use DECL_SIZE_UNIT to retrieve the size of the field.
3177 2008-06-11 Joseph Myers <joseph@codesourcery.com>
3179 * config/arm/arm.c (arm_init_neon_builtins): Move initialization
3180 with function calls after declarations. Lay out
3181 neon_float_type_node before further use.
3183 2008-06-11 Richard Guenther <rguenther@suse.de>
3185 * tree-flow.h (may_point_to_global_var): Declare.
3186 * tree-ssa-alias.c (may_point_to_global_var): New function.
3187 * tree-ssa-sink.c (is_hidden_global_store): Use it.
3189 2008-06-10 Kazu Hirata <kazu@codesourcery.com>
3191 * configure.ac: Teach that fido supports .debug_line.
3192 * configure: Regenerate.
3194 2008-06-10 Tom Tromey <tromey@redhat.com>
3196 * c-lex.c (fe_file_change): Pass SOURCE_LINE to start_source_file
3199 2008-06-10 Joseph Myers <joseph@codesourcery.com>
3201 * dfp.c (WORDS_BIGENDIAN): Define to 0 if not defined.
3202 (encode_decimal64, decode_decimal64, encode_decimal128,
3203 decode_decimal128): Reverse order of 32-bit parts of value if host
3204 and target endianness differ.
3206 2008-06-10 Vinodha Ramasamy <vinodha@google.com>
3208 * value_prob.c (tree_divmod_fixed_value_transform): Use gcov_type.
3209 Avoid division by 0.
3210 (tree_mod_pow2_value_transform): Likewise.
3211 (tree_ic_transform): Likewise.
3212 (tree_stringops_transform): Likewise.
3213 (tree_mod_subtract_transform): Likewise.
3214 * tree-inline-c (copy_bb): Corrected int type to gcov_type.
3215 (copy_edges_for_bb): Likewise.
3216 (initialize_cfun): Likewise.
3218 2008-06-10 Uros Bizjak <ubizjak@gmail.com>
3220 * config/i386/i386.md (*btdi_rex64): Change operand 1 predicate to
3221 nonmemory_operand. Add "N" operand constraint.
3223 (*jcc_btdi_mask_rex64): New instruction and split pattern.
3224 (*jcc_btsi_mask): Ditto.
3225 (*jcc_btsi_mask_1): Ditto.
3227 2008-06-10 Joseph Myers <joseph@codesourcery.com>
3229 * config/rs6000/rs6000.c (build_opaque_vector_type): Set
3230 TYPE_CANONICAL for copied element type.
3232 2008-06-10 Uros Bizjak <ubizjak@gmail.com>
3235 * config/i386/i386.c (ix86_tune_features) [TUNE_USE_BT]:
3236 Add m_CORE2 and m_GENERIC.
3237 * config/i386/predicates.md (bt_comparison_operator): New predicate.
3238 * config/i386/i386.md (*btdi_rex64): New instruction pattern.
3240 (*jcc_btdi_rex64): New instruction and split pattern.
3242 (*jcc_btsi_1): Ditto.
3243 (*btsq): Fix Intel asm dialect operand order.
3247 2008-06-09 Andy Hutchinson <hutchinsonandy@aim.com>
3250 * simplify-rtx.c (simplify_subreg): Add check for shift count
3253 2008-06-09 Richard Sandiford <rdsandiford@googlemail.com>
3255 * doc/md.texi: Synchronize with later constraints.md change.
3256 * longlong.h (umul_ppmm): Replace the MIPS asm implementation
3257 with a C implementation.
3258 * config/mips/mips.c (mips_legitimize_move): Remove MFHI and
3260 (mips_subword): Assume TImode for CONST_INTs if TARGET_64BIT.
3261 (mips_split_doubleword_move): Use special MTHI and MFHI instructions
3262 when moving to and from MD_REGNUM.
3263 (mips_output_move): Don't handle moves from GPRs to HI_REGNUM.
3264 Handle moves from LO_REGNUM to GPRs using MFLO, MACC or DMACC.
3265 Handle byte and halfword moves.
3266 (mips_hard_regno_mode_ok_p): Handle MD_REGS and DSP_ACC_REGS
3268 * config/mips/constraints.md (h): Turn into NO_REGS.
3269 (l, x): Update documentation.
3270 * config/mips/mips.md (UNSPEC_MFHILO): Delete.
3271 (UNSPEC_MFHI, UNSPEC_MTHI, UNSPEC_SET_HILO): New.
3272 (UNSPEC_TLS_LDM, UNSPEC_TLS_GET_TP): Renumber.
3273 (HILO): New mode iterator.
3275 (any_div): New code iterator.
3276 (u): Extend code attribute to div and udiv.
3277 (*add<mode>3_mips16, *movdi_64bit_mips16, *movsi_mips16): Use
3278 d_operand in the splitters. Remove redundant CONST_INT checks.
3279 (mulsi3_mult3, mul<mode>3_internal, mul<mode>3_r4000, *mul_acc_si)
3280 (*macc, *msac, *msac_using_macc, *macc2, *msac2, *mul_sub_si)
3281 (*muls): Remove "=h" clobbers. Adjust peephole2s and define_splits
3282 accordingly, using normal moves instead of unspecs to move LO into
3283 a GPR. Use d_operand and lo_operand instead of *_REG_P checks.
3284 (<u>mulsidi3): Handle expansion in C code.
3285 (<u>mulsidi3_32bit_internal): Rename to...
3286 (<u>mulsidi3_32bit): ...this.
3287 (<u>mulsidi3_32bit_r4000): Fix insn separator.
3288 (*<u>mulsidi3_64bit): Rename to...
3289 (<u>mulsidi3_64bit): ...this. Combine DImode "=h" and "=l" clobbers
3290 into a TImode "=x" clobber. In the split, use an UNSPEC_SET_HILO
3291 to set LO and HI to the multiplication result. Use a normal move
3292 for MFLO and an unspec for MFHI.
3293 (*<u>mulsidi3_64bit_parts): Replace with...
3294 (<u>mulsidi3_64bit_hilo): ...this new instruction.
3295 (<su>mulsi3_highpart): Extend to TARGET_FIX_R4000.
3296 (<su>mulsi3_highpart_internal): Turn into a define_insn_and_split
3297 and extend it to TARGET_FIX_R4000. Store the destination in a GPR
3298 instead of HI. Split the instruction into a separate multiplication
3299 and MFHI if !TARGET_FIX_R4000.
3300 (<su>muldi3_highpart): Likewise.
3301 (<su>mulsi3_highpart_mulhi_internal): Remove the first alternative
3302 and the "=h" clobber.
3303 (*<su>mulsi3_highpart_neg_mulhi_internal): Likewise.
3304 (<u>mulditi3): New expander.
3305 (<u>mulditi3_internal, <u>mulditi3_r4000): New patterns.
3306 (madsi): Remove "=h" clobber.
3307 (divmod<mode>4, udivmod<mode>4): Turn into define_insn_and_splits.
3308 Force the modulus result to be a GPR and split the instruction into
3309 a division followed by an MFHI after reload.
3310 (<u>divmod<GPR:mode>4_hilo_<HILO:mode>): New instruction.
3311 (*lea_high64): Use d_operand in the define_peephole2. Likewise
3312 the MIPS16 HIGH define_split.
3313 (*movdi_32bit, *movdi_gp32_fp64, *movdi_32bit_mips16): Change type
3314 of acc<->gpr moves to "multi".
3315 (*movdi_64bit): Replace the single "x" alternative with
3316 alternatives for moving into and out of "a".
3317 (*movhi_internal, *movqi_internal): Likewise. Use mips_output_move.
3318 (*movsi_internal): Extend the "d<-A" alternative to "d<-a".
3319 (*movdi_64bit_mips16, *movsi_mips16): Add d<-a alternatives.
3320 Use d_operand in the splitters. Remove redundant CONST_INT checks.
3321 (*movhi_mips16, *movqi_mips16): Likewise. Use mips_output_move.
3322 (movti): New expander.
3323 (*movti, *movti_mips16): New insns.
3324 (mfhilo_<mode>, *mfhilo_<mode>, *mfhilo_<mode>_macc): Delete.
3325 (mfhi<GPR:mode>_<HILO:mode>): New pattern.
3326 (mthi<GPR:mode>_<HILO:mode>): Likewise.
3327 * config/mips/predicates.md (fpr_operand): Delete.
3328 (d_operand): New predicate.
3330 2008-06-09 Michael Meissner <michael.meissner@amd.com>
3332 * config.gcc (i[34567]86-*-*): Put test in quotes to prevent
3333 failure on some Bourne shells.
3334 (x86_64-*-*): Ditto.
3336 2008-06-09 Kai Tietz <kai.tietz@onevision.com>
3338 * config/i386/cygming.h (TARGET_SUBTARGET64_DEFAULT): New.
3340 2008-06-09 Eric Botcazou <ebotcazou@libertysurf.fr>
3342 * doc/install.texi (*-*-solaris2*): Remove obsolete contents.
3343 (sparc-sun-solaris2*): Likewise.
3345 2008-06-09 Arnaud Charlet <charlet@adacore.com
3347 * doc/install.texi: Update requirements to build the Ada compiler.
3349 2008-06-08 Steven Bosscher <stevenb.gcc@gmail.com>
3351 * df-scan.c (struct df_scan_problem_data): Remove the
3352 mw_link_pool alloc pool.
3353 (df_scan_free_internal): Don't free it.
3354 (df_scan_alloc): Don't allocate it.
3355 * df.h (struct df_link): Update comment.
3357 2008-06-08 Nathan Sidwell <nathan@codesourcery.com>
3359 * except.h: Correct checks for when SJLJ exceptions must be used.
3361 2008-06-08 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
3363 * doc/invoke.texi (Wenum-compare): Mention that it is enabled by
3366 2008-06-08 Joseph Myers <joseph@codesourcery.com>
3368 PR tree-optimization/36218
3369 * configure.ac: Use LDFLAGS="${LDFLAGS_FOR_BUILD}" when running
3370 configure for the build system.
3371 (BUILD_LDFLAGS): Define.
3372 * configure: Regenerate.
3373 * Makefile.in (BUILD_LDFLAGS): Define to @BUILD_LDFLAGS@.
3375 2008-07-08 Anatoly Sokolov <aesok@post.ru>
3378 * config/avr/avr.h (HARD_REGNO_RENAME_OK): Define.
3379 * config/avr/avr.c (avr_hard_regno_rename_ok): New function.
3380 * config/avr/avr-protos.h (avr_hard_regno_rename_ok): New prototype.
3382 2008-06-07 Danny Smith <dannysmith@users.sourceforge.net>
3384 * config/i386/cygming.h (MAYBE_UWIN_CPP_BUILTINS): Remove.
3386 2008-06-07 Joseph Myers <joseph@codesourcery.com>
3388 * config.gcc (Obsolete configurations): Remove list of
3390 (Unsupported targets list): Add *-*-linux*aout*, *-*-linux*libc1*,
3391 *-*-solaris2.[0-6], *-*-solaris2.[0-6].*, *-*-sysv*. Remove other
3392 targets matched by those patterns.
3393 (strongarm*-*-*, ep9312*-*-*, xscale-*-*, parisc*-*-*,
3394 m680[012]0-*-*, *-*-linux*libc1*, *-*-linux*aout*,
3395 alpha*-*-unicosmk*, strongarm*-*-freebsd*, ep9312-*-elf,
3396 arm*-*-kaos*, cris-*-aout, parisc*64*-*-linux*, parisc*-*-linux*,
3397 hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-bsd*,
3398 i[34567]86-sequent-ptx4*, i[34567]86-sequent-sysv4*,
3399 i[34567]86-*-beoself*, i[34567]86-*-beos*, i[34567]86-*-sco3.2v5*,
3400 i[34567]86-*-sysv5*, i[34567]86-*-sysv4*, i[34567]86-*-uwin*,
3401 i[34567]86-*-kaos*, m68020-*-elf*, m68010-*-netbsdelf*,
3402 mips-wrs-windiss, mt-*-elf, powerpc-*-beos*, powerpc-*-chorusos*,
3403 powerpc-wrs-windiss*, powerpcle-*-sysv*, powerpc-*-kaos*,
3404 powerpcle-*-kaos*, sh*-*-kaos*, sparc-*-sysv4*, strongarm-*-elf*,
3405 strongarm-*-pe, strongarm-*-kaos*, vax-*-bsd*, vax-*-sysv*,
3406 vax-*-ultrix*, xscale-*-elf, xscale-*-coff,
3407 i[34567]86-*-linux*aout*, i[34567]86-*-linux*libc1): Remove.
3408 Make code for Solaris 7 and greater unconditional for Solaris.
3409 (ep9312-*-*, parisc1*, m680[012]0-*-*, parisc*-*-*, mt-*-*):
3410 Remove --with-* handling.
3411 * config/rs6000/sysv4.h (-mwindiss): Remove from all specs.
3412 (LIB_WINDISS_SPEC, CPP_OS_WINDISS_SPEC, STARTFILE_WINDISS_SPEC,
3413 ENDFILE_WINDISS_SPEC, LINK_START_WINDISS_SPEC,
3414 LINK_OS_WINDISS_SPEC): Remove.
3415 * config/rs6000/sysv4.opt (mwindiss): Remove.
3416 * configure.ac (strongarm*-*-*, xscale*-*-*): Remove.
3417 * configure: Regenerate.
3418 * doc/cpp.texi: Don't mention BeOS.
3419 * doc/extend.texi (interrupt): Don't mention MS1.
3420 * doc/install.texi: (i386-@var{any}-sysv, m68k-bull-sysv,
3421 m68k-hp-hpux, m68000-hp-hpux, m68000-att-sysv,
3422 alphaev5-cray-unicosmk*, xscale-*-*, i?86-*-linux*aout,
3423 i?86-*-sco3.2v5*, i?86-*-udk, m68k-hp-hpux, powerpc-*-sysv4,
3424 powerpc-*-sysv4, powerpcle-*-sysv4, *-*-sysv*, vax-dec-ultrix):
3426 * doc/invoke.texi (MT Options): Remove.
3427 (-mwindiss): Remove.
3428 (CRIS Options): Remove cris-axis-aout references.
3429 (HPPA Options): Don't mention hppa1.1-*-pro.
3430 * doc/md.texi: (MorphoTech family): Remove.
3431 * libgcc2.c: Don't handle UWIN.
3432 * config/alpha/t-unicosmk: Remove.
3433 * config/alpha/unicosmk.h: Remove.
3434 * config/arm/kaos-arm.h: Remove.
3435 * config/arm/kaos-strongarm.h: Remove.
3436 * config/arm/strongarm-coff.h: Remove.
3437 * config/arm/strongarm-elf.h: Remove.
3438 * config/arm/strongarm-pe.h: Remove.
3439 * config/arm/t-strongarm-pe: Remove.
3440 * config/arm/t-xscale-coff: Remove.
3441 * config/arm/t-xscale-elf: Remove.
3442 * config/arm/xscale-coff.h: Remove.
3443 * config/arm/xscale-elf.h: Remove.
3444 * config/chorus.h: Remove.
3445 * config/cris/aout.h: Remove.
3446 * config/cris/aout.opt: Remove.
3447 * config/cris/t-aout: Remove.
3448 * config/i386/beos-elf.h: Remove.
3449 * config/i386/kaos-i386.h: Remove.
3450 * config/i386/ptx4-i.h: Remove.
3451 * config/i386/sco5.h: Remove.
3452 * config/i386/sco5.opt: Remove.
3453 * config/i386/sysv4-cpp.h: Remove.
3454 * config/i386/sysv5.h: Remove.
3455 * config/i386/t-beos: Remove.
3456 * config/i386/t-sco5: Remove.
3457 * config/i386/t-uwin: Remove.
3458 * config/i386/uwin.asm: Remove.
3459 * config/i386/uwin.h: Remove.
3460 * config/kaos.h: Remove.
3461 * config/mips/windiss.h: Remove.
3462 * config/mt: Remove directory.
3463 * config/pa/pa-osf.h: Remove.
3464 * config/pa/pa-pro-end.h: Remove.
3465 * config/pa/t-pro: Remove.
3466 * config/ptx4.h: Remove.
3467 * config/rs6000/beos.h: Remove.
3468 * config/rs6000/kaos-ppc.h: Remove.
3469 * config/rs6000/t-beos: Remove.
3470 * config/rs6000/windiss.h: Remove.
3471 * config/sh/kaos-sh.h: Remove.
3472 * config/sol2-6.h: Remove.
3473 * config/sparc/sol26-sld.h: Remove.
3474 * config/sparc/sysv4-only.h: Remove.
3475 * config/vax/bsd.h: Remove.
3476 * config/vax/t-memfuncs: Remove.
3477 * config/vax/ultrix.h: Remove.
3478 * config/vax/vaxv.h: Remove.
3479 * config/windiss.h: Remove.
3481 2008-06-06 Uros Bizjak <ubizjak@gmail.com>
3483 PR rtl-optimization/36438
3484 * cse.c (fold_rtx) [ASHIFT, LSHIFTRT, ASHIFTRT]: Break out early
3485 for vector shifts with constant scalar shift operands.
3487 2008-06-06 Sandip Matte <sandip@rmicorp.com>
3489 * doc/invoke.texi: Document -march=xlr.
3490 * config/mips/xlr.md: New file.
3491 * config/mips/mips.md: Include it.
3493 * config/mips/mips.h (PROCESSOR_XLR): New processor_type.
3494 * config/mips/mips.c (mips_cpu_info_table): Add an XLR entry.
3495 (mips_rtx_cost_data): Likewise.
3497 2008-06-06 Nathan Froyd <froydnj@codesourcery.com>
3499 * config/rs6000/rs6000.c (rs6000_mode_dependent_address): Remove
3500 PRE_INC and PRE_DEC cases.
3502 2008-06-06 Jakub Jelinek <jakub@redhat.com>
3504 PR rtl-optimization/36419
3505 * except.c (expand_resx_expr): Call do_pending_stack_adjust () before
3506 the emitting jump insn.
3509 * gimplify.c (gimplify_expr) <case TRUTH_NOT_EXPR>: If *expr_p type
3510 is not bool, boolify the whole *expr_p and convert to the desired type.
3512 2008-06-06 Jakub Jelinek <jakub@redhat.com>
3514 * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP value to 200805.
3515 * langhooks.h (struct lang_hooks_for_decls): Add omp_finish_clause.
3516 Add omp_private_outer_ref hook, add another argument to
3517 omp_clause_default_ctor hook.
3518 * langhooks-def.h (LANG_HOOKS_OMP_FINISH_CLAUSE): Define.
3519 (LANG_HOOKS_OMP_PRIVATE_OUTER_REF): Define.
3520 (LANG_HOOKS_OMP_CLAUSE_DEFAULT_CTOR): Change to
3521 hook_tree_tree_tree_tree_null.
3522 (LANG_HOOKS_DECLS): Add LANG_HOOKS_OMP_FINISH_CLAUSE and
3523 LANG_HOOKS_OMP_PRIVATE_OUTER_REF.
3524 * hooks.c (hook_tree_tree_tree_tree_null): New function.
3525 * hooks.h (hook_tree_tree_tree_tree_null): New prototype.
3526 * tree.def (OMP_TASK): New tree code.
3527 * tree.h (OMP_TASK_COPYFN, OMP_TASK_ARG_SIZE, OMP_TASK_ARG_ALIGN,
3528 OMP_CLAUSE_PRIVATE_OUTER_REF, OMP_CLAUSE_LASTPRIVATE_STMT,
3529 OMP_CLAUSE_COLLAPSE_ITERVAR, OMP_CLAUSE_COLLAPSE_COUNT,
3530 OMP_TASKREG_CHECK, OMP_TASKREG_BODY, OMP_TASKREG_CLAUSES,
3531 OMP_TASKREG_FN, OMP_TASKREG_DATA_ARG, OMP_TASK_BODY,
3532 OMP_TASK_CLAUSES, OMP_TASK_FN, OMP_TASK_DATA_ARG,
3533 OMP_CLAUSE_COLLAPSE_EXPR): Define.
3534 (enum omp_clause_default_kind): Add OMP_CLAUSE_DEFAULT_FIRSTPRIVATE.
3535 (OMP_DIRECTIVE_P): Add OMP_TASK.
3536 (OMP_CLAUSE_COLLAPSE, OMP_CLAUSE_UNTIED): New clause codes.
3537 (OMP_CLAUSE_SCHEDULE_AUTO): New schedule kind.
3538 * tree.c (omp_clause_code_name): Add OMP_CLAUSE_COLLAPSE
3539 and OMP_CLAUSE_UNTIED entries.
3540 (omp_clause_num_ops): Likewise. Increase OMP_CLAUSE_LASTPRIVATE
3542 (walk_tree_1): Handle OMP_CLAUSE_COLLAPSE and OMP_CLAUSE_UNTIED.
3543 Walk OMP_CLAUSE_LASTPRIVATE_STMT.
3544 * tree-pretty-print.c (dump_omp_clause): Handle
3545 OMP_CLAUSE_SCHEDULE_AUTO, OMP_CLAUSE_UNTIED, OMP_CLAUSE_COLLAPSE,
3546 OMP_CLAUSE_DEFAULT_FIRSTPRIVATE.
3547 (dump_generic_node): Handle OMP_TASK and collapsed OMP_FOR loops.
3548 * c-omp.c (c_finish_omp_for): Allow pointer iterators. Remove
3549 warning about unsigned iterators. Change decl/init/cond/incr
3550 arguments to TREE_VECs, check arguments for all collapsed loops.
3551 (c_finish_omp_taskwait): New function.
3552 (c_split_parallel_clauses): Put OMP_CLAUSE_COLLAPSE clause to
3554 * c-parser.c (c_parser_omp_for_loop): Parse collapsed loops. Call
3555 default_function_array_conversion on init. Add par_clauses argument.
3556 If decl is present in parallel's lastprivate clause, change it to
3557 shared and add lastprivate clause for decl to OMP_FOR_CLAUSES.
3558 Add clauses argument, on success set OMP_FOR_CLAUSES to it. Look up
3559 collapse count in clauses.
3560 (c_parser_omp_for, c_parser_omp_parallel): Adjust
3561 c_parser_omp_for_loop callers.
3562 (OMP_FOR_CLAUSE_MASK): Add 1 << PRAGMA_OMP_CLAUSE_COLLAPSE.
3563 (c_parser_pragma): Handle PRAGMA_OMP_TASKWAIT.
3564 (c_parser_omp_clause_name): Handle collapse and untied clauses.
3565 (c_parser_omp_clause_collapse, c_parser_omp_clause_untied): New
3567 (c_parser_omp_clause_schedule): Handle schedule(auto).
3568 Include correct location in the error message.
3569 (c_parser_omp_all_clauses): Handle PRAGMA_OMP_CLAUSE_COLLAPSE
3570 and PRAGMA_OMP_CLAUSE_UNTIED.
3571 (OMP_TASK_CLAUSE_MASK): Define.
3572 (c_parser_omp_task, c_parser_omp_taskwait): New functions.
3573 (c_parser_omp_construct): Handle PRAGMA_OMP_TASK.
3574 * tree-nested.c (convert_nonlocal_omp_clauses,
3575 convert_local_omp_clauses): Handle OMP_CLAUSE_LASTPRIVATE_STMT,
3576 OMP_CLAUSE_REDUCTION_INIT, OMP_CLAUSE_REDUCTION_MERGE,
3577 OMP_CLAUSE_COLLAPSE and OMP_CLAUSE_UNTIED.
3578 Don't handle TREE_STATIC or DECL_EXTERNAL VAR_DECLs in
3580 (conver_nonlocal_reference, convert_local_reference,
3581 convert_call_expr): Handle OMP_TASK the same as OMP_PARALLEL. Use
3582 OMP_TASKREG_* macros rather than OMP_PARALLEL_*.
3583 (walk_omp_for): Adjust for OMP_FOR_{INIT,COND,INCR} changes.
3584 * tree-gimple.c (is_gimple_stmt): Handle OMP_TASK.
3585 * c-tree.h (c_begin_omp_task, c_finish_omp_task): New prototypes.
3586 * c-pragma.h (PRAGMA_OMP_TASK, PRAGMA_OMP_TASKWAIT): New.
3587 (PRAGMA_OMP_CLAUSE_COLLAPSE, PRAGMA_OMP_CLAUSE_UNTIED): New.
3588 * c-typeck.c (c_begin_omp_task, c_finish_omp_task): New functions.
3589 (c_finish_omp_clauses): Handle OMP_CLAUSE_COLLAPSE and
3591 * c-pragma.c (init_pragma): Init omp task and omp taskwait pragmas.
3592 * c-common.h (c_finish_omp_taskwait): New prototype.
3593 * gimple-low.c (lower_stmt): Handle OMP_TASK.
3594 * tree-parloops.c (create_parallel_loop): Create 1 entry
3595 vectors for OMP_FOR_{INIT,COND,INCR}.
3596 * tree-cfg.c (remove_useless_stmts_1): Handle OMP_* containers.
3597 (make_edges): Handle OMP_TASK.
3598 * tree-ssa-operands.c (get_expr_operands): Handle collapsed OMP_FOR
3599 loops, adjust for OMP_FOR_{INIT,COND,INCR} changes.
3600 * tree-inline.c (estimate_num_insns_1): Handle OMP_TASK.
3601 * builtin-types.def (BT_PTR_ULONGLONG, BT_PTR_FN_VOID_PTR_PTR,
3602 BT_FN_BOOL_ULONGLONGPTR_ULONGLONGPTR,
3603 BT_FN_BOOL_BOOL_ULL_ULL_ULL_ULLPTR_ULLPTR,
3604 BT_FN_BOOL_BOOL_ULL_ULL_ULL_ULL_ULLPTR_ULLPTR,
3605 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT): New.
3606 * omp-builtins.def (BUILT_IN_GOMP_TASK, BUILT_IN_GOMP_TASKWAIT,
3607 BUILT_IN_GOMP_LOOP_ULL_STATIC_START,
3608 BUILT_IN_GOMP_LOOP_ULL_DYNAMIC_START,
3609 BUILT_IN_GOMP_LOOP_ULL_GUIDED_START,
3610 BUILT_IN_GOMP_LOOP_ULL_RUNTIME_START,
3611 BUILT_IN_GOMP_LOOP_ULL_ORDERED_STATIC_START,
3612 BUILT_IN_GOMP_LOOP_ULL_ORDERED_DYNAMIC_START,
3613 BUILT_IN_GOMP_LOOP_ULL_ORDERED_GUIDED_START,
3614 BUILT_IN_GOMP_LOOP_ULL_ORDERED_RUNTIME_START,
3615 BUILT_IN_GOMP_LOOP_ULL_STATIC_NEXT,
3616 BUILT_IN_GOMP_LOOP_ULL_DYNAMIC_NEXT,
3617 BUILT_IN_GOMP_LOOP_ULL_GUIDED_NEXT,
3618 BUILT_IN_GOMP_LOOP_ULL_RUNTIME_NEXT,
3619 BUILT_IN_GOMP_LOOP_ULL_ORDERED_STATIC_NEXT,
3620 BUILT_IN_GOMP_LOOP_ULL_ORDERED_DYNAMIC_NEXT,
3621 BUILT_IN_GOMP_LOOP_ULL_ORDERED_GUIDED_NEXT,
3622 BUILT_IN_GOMP_LOOP_ULL_ORDERED_RUNTIME_NEXT): New builtins.
3623 * gimplify.c (gimplify_omp_for): Allow pointer type for decl,
3624 handle POINTER_PLUS_EXPR. If loop counter has been replaced and
3625 original iterator is present in lastprivate clause or if
3626 collapse > 1, set OMP_CLAUSE_LASTPRIVATE_STMT. Handle collapsed
3627 OMP_FOR loops, adjust for OMP_FOR_{INIT,COND,INCR} changes.
3628 (gimplify_expr): Handle OMP_SECTIONS_SWITCH and OMP_TASK.
3629 (enum gimplify_omp_var_data): Add GOVD_PRIVATE_OUTER_REF.
3630 (omp_notice_variable): Set GOVD_PRIVATE_OUTER_REF if needed,
3631 if it is set, lookup var in outer contexts too. Handle
3632 OMP_CLAUSE_DEFAULT_FIRSTPRIVATE. Handle vars that are supposed
3633 to be implicitly determined firstprivate for task regions.
3634 (gimplify_scan_omp_clauses): Set GOVD_PRIVATE_OUTER_REF if needed,
3635 if it is set, lookup var in outer contexts too. Set
3636 OMP_CLAUSE_PRIVATE_OUTER_REF if GOVD_PRIVATE_OUTER_REF is set.
3637 Handle OMP_CLAUSE_LASTPRIVATE_STMT, OMP_CLAUSE_COLLAPSE and
3638 OMP_CLAUSE_UNTIED. Take region_type as last argument
3639 instead of in_parallel and in_combined_parallel.
3640 (gimplify_omp_parallel, gimplify_omp_for, gimplify_omp_workshare):
3642 (gimplify_adjust_omp_clauses_1): Set OMP_CLAUSE_PRIVATE_OUTER_REF if
3643 GOVD_PRIVATE_OUTER_REF is set. Call omp_finish_clause langhook.
3644 (new_omp_context): Set default_kind to
3645 OMP_CLAUSE_DEFAULT_UNSPECIFIED for OMP_TASK regions.
3646 (omp_region_type): New enum.
3647 (struct gimplify_omp_ctx): Remove is_parallel and is_combined_parallel
3648 fields, add region_type.
3649 (new_omp_context): Take region_type as argument instead of is_parallel
3650 and is_combined_parallel.
3651 (gimple_add_tmp_var, omp_firstprivatize_variable, omp_notice_variable,
3652 omp_is_private, omp_check_private): Adjust ctx->is_parallel and
3653 ctx->is_combined_parallel checks.
3654 (gimplify_omp_task): New function.
3655 (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_COLLAPSE and
3657 * omp-low.c (extract_omp_for_data): Use schedule(static)
3658 for schedule(auto). Handle pointer and unsigned iterators.
3659 Compute fd->iter_type. Handle POINTER_PLUS_EXPR increments.
3660 Add loops argument. Extract data for collapsed OMP_FOR loops.
3661 (expand_parallel_call): Assert sched_kind isn't auto,
3662 map runtime schedule to index 3.
3663 (struct omp_for_data_loop): New type.
3664 (struct omp_for_data): Remove v, n1, n2, step, cond_code fields.
3665 Add loop, loops, collapse and iter_type fields.
3666 (workshare_safe_to_combine_p): Disallow combined for if
3667 iter_type is unsigned long long. Don't combine collapse > 1 loops
3668 unless all bounds and steps are constant. Adjust extract_omp_for_data
3670 (expand_omp_for_generic): Handle pointer, unsigned and long long
3671 iterators. Handle collapsed OMP_FOR loops. Adjust
3672 for struct omp_for_data changes. If libgomp function doesn't return
3673 boolean_type_node, add comparison of the return value with 0.
3674 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk): Handle
3675 pointer, unsigned and long long iterators. Adjust for struct
3676 omp_for_data changes.
3677 (expand_omp_for): Assert sched_kind isn't auto, map runtime schedule
3678 to index 3. Use GOMP_loop_ull*{start,next} if iter_type is
3679 unsigned long long. Allocate loops array, pass it to
3680 extract_omp_for_data. For collapse > 1 loops use always
3681 expand_omp_for_generic.
3682 (omp_context): Add sfield_map and srecord_type fields.
3683 (is_task_ctx, lookup_sfield): New functions.
3684 (use_pointer_for_field): Use is_task_ctx helper. Change first
3685 argument's type from const_tree to tree. Clarify comment.
3686 In OMP_TASK disallow copy-in/out sharing.
3687 (build_sender_ref): Call lookup_sfield instead of lookup_field.
3688 (install_var_field): Add mask argument. Populate both record_type
3689 and srecord_type if needed.
3690 (delete_omp_context): Destroy sfield_map, clear DECL_ABSTRACT_ORIGIN
3692 (fixup_child_record_type): Also remap FIELD_DECL's DECL_SIZE{,_UNIT}
3693 and DECL_FIELD_OFFSET.
3694 (scan_sharing_clauses): Adjust install_var_field callers. For
3695 firstprivate clauses on explicit tasks allocate the var by value in
3696 record_type unconditionally, rather than by reference.
3697 Handle OMP_CLAUSE_PRIVATE_OUTER_REF. Scan OMP_CLAUSE_LASTPRIVATE_STMT.
3698 Use is_taskreg_ctx instead of is_parallel_ctx.
3699 Handle OMP_CLAUSE_COLLAPSE and OMP_CLAUSE_UNTIED.
3700 (create_omp_child_function_name): Add task_copy argument, use
3701 *_omp_cpyfn* names if it is true.
3702 (create_omp_child_function): Add task_copy argument, if true create
3703 *_omp_cpyfn* helper function.
3704 (scan_omp_parallel): Adjust create_omp_child_function callers.
3705 Rename parallel_nesting_level to taskreg_nesting_level.
3706 (scan_omp_task): New function.
3707 (lower_rec_input_clauses): Don't run constructors for firstprivate
3708 explicit task vars which are initialized by *_omp_cpyfn*.
3709 Pass outer var ref to omp_clause_default_ctor hook if
3710 OMP_CLAUSE_PRIVATE_OUTER_REF or OMP_CLAUSE_LASTPRIVATE.
3711 Replace OMP_CLAUSE_REDUCTION_PLACEHOLDER decls in
3712 OMP_CLAUSE_REDUCTION_INIT.
3713 (lower_send_clauses): Clear DECL_ABSTRACT_ORIGIN if in task to
3714 avoid duplicate setting of fields. Handle
3715 OMP_CLAUSE_PRIVATE_OUTER_REF.
3716 (lower_send_shared_vars): Use srecord_type if non-NULL. Don't
3717 copy-out if TREE_READONLY, only copy-in.
3718 (expand_task_copyfn): New function.
3719 (expand_task_call): New function.
3720 (struct omp_taskcopy_context): New type.
3721 (task_copyfn_copy_decl, task_copyfn_remap_type, create_task_copyfn):
3723 (lower_omp_parallel): Rename to...
3724 (lower_omp_taskreg): ... this. Use OMP_TASKREG_* macros where needed.
3725 Call create_task_copyfn if srecord_type is needed. Adjust
3727 (task_shared_vars): New variable.
3728 (check_omp_nesting_restrictions): Warn if work-sharing,
3729 barrier, master or ordered region is closely nested inside OMP_TASK.
3730 Add warnings for barrier if closely nested inside of work-sharing,
3731 ordered, or master region.
3732 (scan_omp_1): Call check_omp_nesting_restrictions even for
3733 GOMP_barrier calls. Rename parallel_nesting_level to
3734 taskreg_nesting_level. Handle OMP_TASK.
3735 (lower_lastprivate_clauses): Even if some lastprivate is found on a
3736 work-sharing construct, continue looking for them on parent parallel
3738 (lower_omp_for_lastprivate): Add lastprivate clauses
3739 to the beginning of dlist rather than end. Adjust for struct
3740 omp_for_data changes.
3741 (lower_omp_for): Add rec input clauses before OMP_FOR_PRE_BODY,
3742 not after it. Handle collapsed OMP_FOR loops, adjust for
3743 OMP_FOR_{INIT,COND,INCR} changes, adjust extract_omp_for_data caller.
3744 (get_ws_args_for): Adjust extract_omp_for_data caller.
3745 (scan_omp_for): Handle collapsed OMP_FOR
3746 loops, adjust for OMP_FOR_{INIT,COND,INCR} changes.
3747 (lower_omp_single_simple): If libgomp function doesn't return
3748 boolean_type_node, add comparison of the return value with 0.
3749 (diagnose_sb_1, diagnose_sb_2): Handle collapsed OMP_FOR
3750 loops, adjust for OMP_FOR_{INIT,COND,INCR} changes. Handle OMP_TASK.
3751 (parallel_nesting_level): Rename to...
3752 (taskreg_nesting_level): ... this.
3753 (is_taskreg_ctx): New function.
3754 (build_outer_var_ref, omp_copy_decl): Use is_taskreg_ctx instead
3756 (execute_lower_omp): Rename parallel_nesting_level to
3757 taskreg_nesting_level.
3758 (expand_omp_parallel): Rename to...
3759 (expand_omp_taskreg): ... this. Use OMP_TASKREG_* macros where needed.
3760 Call omp_task_call for OMP_TASK regions.
3761 (expand_omp): Adjust caller, handle OMP_TASK.
3762 (lower_omp_1): Adjust lower_omp_taskreg caller, handle OMP_TASK.
3764 * bitmap.c (bitmap_default_obstack_depth): New variable.
3765 (bitmap_obstack_initialize, bitmap_obstack_release): Do nothing
3766 if argument is NULL and bitmap_default_obstack is already initialized.
3767 * ipa-struct-reorg.c (do_reorg_1): Call bitmap_obstack_release
3769 * matrix-reorg.c (matrix_reorg): Likewise.
3771 2008-06-06 Uros Bizjak <ubizjak@gmail.com>
3773 * config/i386/i386.md (*indirect_jump): Macroize using P
3774 mode iterator. Remove !TARGET_64BIT from insn constraints.
3775 (*tablejump_1): Ditto.
3776 (*indirect_jump_rex64): Remove insn pattern.
3777 (*tablejump_1_rex64): Ditto.
3778 (eh_return_<mode>): Macroize using P mode iterator from eh_return_di
3779 and eh_return_si insn patterns.
3781 2008-06-06 Richard Guenther <rguenther@suse.de>
3783 * tree-ssa-structalias.c (merge_smts_into): Remove.
3784 (find_what_p_points_to): Do not bother to compute the
3785 points-to set for pt_anything pointers.
3786 * tree-ssa-operands.c (get_addr_dereference_operands): No NMT
3787 for pt_anything pointers is ok.
3789 2008-06-06 Jan Hubicka <jh@suse.cz>
3791 * passes.c (execute_ipa_pass_list): Do not regenerate summaries.
3793 2008-06-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3795 * cgraph.c: Fix typos in comments.
3796 (cgraph_availability_names): Fix string typo.
3797 * fold-const.c: Fix typos in comments.
3798 (fold_binary): Fix typo in warning.
3799 * genautomata.c: Fix typos in comments.
3800 (check_presence_pattern_sets): Fix typo in local variable.
3801 (output_description): Fix typo in output.
3802 * ggc-zone.c (ggc_pch_finish): Fix typo in error message.
3803 * hwint.h: Likewise.
3804 * matrix-reorg.c (check_allocation_function): Likewise.
3805 * omega.c (smooth_weird_equations): Likewise.
3806 * auto-inc-dec.c: Fix typos in comments.
3807 * bb-reorder.c: Likewise.
3808 * builtins.c: Likewise.
3809 * c-common.c: Likewise.
3810 * c-cppbuiltin.c: Likewise.
3811 * c-parser.c: Likewise.
3812 * c-pretty-print.c: Likewise.
3813 * cfgcleanup.c: Likewise.
3814 * cfgexpand.c: Likewise.
3815 * cfghooks.c: Likewise.
3816 * cfglayout.c: Likewise.
3817 * cfgloopmanip.c: Likewise.
3818 * cgraphunit.c: Likewise.
3819 * coverage.c: Likewise.
3820 * dbxout.c: Likewise.
3821 * df-byte-scan.c: Likewise.
3822 * df-core.c: Likewise.
3823 * df-problems.c: Likewise.
3824 * df-scan.c: Likewise.
3826 * dominance.c: Likewise.
3827 * domwalk.c: Likewise.
3829 * dwarf2out.c: Likewise.
3830 * emit-rtl.c: Likewise.
3831 * et-forest.c: Likewise.
3832 * function.c: Likewise.
3833 * function.h: Likewise.
3835 * gcov-io.c: Likewise.
3838 * genattrtab.c: Likewise.
3839 * ggc-page.c: Likewise.
3840 * gimplify.c: Likewise.
3841 * gthr-lynx.h: Likewise.
3842 * haifa-sched.c: Likewise.
3843 * ipa-cp.c: Likewise.
3844 * ipa-inline.c: Likewise.
3845 * ipa-prop.h: Likewise.
3846 * ipa-pure-const.c: Likewise.
3847 * ipa-struct-reorg.c: Likewise.
3848 * ipa-struct-reorg.h: Likewise.
3849 * ipa-type-escape.c: Likewise.
3851 * loop-doloop.c: Likewise.
3852 * mips-tfile.c: Likewise.
3853 * mkmap-flat.awk: Likewise.
3854 * mkmap-symver.awk: Likewise.
3855 * modulo-sched.c: Likewise.
3856 * omp-low.c: Likewise.
3857 * optabs.c: Likewise.
3858 * optabs.h: Likewise.
3860 * passes.c: Likewise.
3861 * postreload-gcse.c: Likewise.
3862 * postreload.c: Likewise.
3863 * predict.c: Likewise.
3864 * pretty-print.h: Likewise.
3865 * profile.c: Likewise.
3866 * protoize.c: Likewise.
3867 * ra-conflict.c: Likewise.
3869 * recog.c: Likewise.
3870 * regclass.c: Likewise.
3872 * reload.c: Likewise.
3873 * rtl-error.c: Likewise.
3874 * rtlanal.c: Likewise.
3876 * sched-rgn.c: Likewise.
3879 * target.h: Likewise.
3880 * tree-dfa.c: Likewise.
3881 * tree-eh.c: Likewise.
3882 * tree-flow-inline.h: Likewise.
3883 * tree-inline.c: Likewise.
3884 * tree-into-ssa.c: Likewise.
3885 * tree-loop-distribution.c: Likewise.
3886 * tree-nested.c: Likewise.
3887 * tree-parloops.c: Likewise.
3888 * tree-pass.h: Likewise.
3889 * tree-pretty-print.c: Likewise.
3890 * tree-profile.c: Likewise.
3891 * tree-scalar-evolution.c: Likewise.
3892 * tree-sra.c: Likewise.
3893 * tree-ssa-alias-warnings.c: Likewise.
3894 * tree-ssa-ccp.c: Likewise.
3895 * tree-ssa-coalesce.c: Likewise.
3896 * tree-ssa-dom.c: Likewise.
3897 * tree-ssa-dse.c: Likewise.
3898 * tree-ssa-forwprop.c: Likewise.
3899 * tree-ssa-live.c: Likewise.
3900 * tree-ssa-live.h: Likewise.
3901 * tree-ssa-loop-im.c: Likewise.
3902 * tree-ssa-loop-ivopts.c: Likewise.
3903 * tree-ssa-loop-niter.c: Likewise.
3904 * tree-ssa-loop-prefetch.c: Likewise.
3905 * tree-ssa-phiopt.c: Likewise.
3906 * tree-ssa-phiprop.c: Likewise.
3907 * tree-ssa-sccvn.c: Likewise.
3908 * tree-ssa-ter.c: Likewise.
3909 * tree-ssa-threadupdate.c: Likewise.
3910 * tree-ssa.c: Likewise.
3911 * tree-vect-analyze.c: Likewise.
3912 * tree-vect-transform.c: Likewise.
3913 * tree-vectorizer.c: Likewise.
3914 * tree-vn.c: Likewise.
3915 * tree-vrp.c: Likewise.
3917 * tree.def: Likewise.
3919 * unwind-dw2-fde.c: Likewise.
3920 * unwind.inc: Likewise.
3921 * value-prof.c: Likewise.
3922 * vmsdbgout.c: Likewise.
3924 2008-06-05 David Edelsohn <edelsohn@gnu.org>
3926 * config/rs6000/xcoff.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Do not
3927 always place FP constants in the TOC for TARGET_POWERPC64.
3928 * config/rs6000/linux64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Same.
3930 2008-06-05 Joseph Myers <joseph@codesourcery.com>
3932 * config.gcc (powerpc-*-linux*spe*): Use t-dfprules.
3933 * config/rs6000/dfp.md (negdd2, absdd2, negtd2, abstd2): Do not
3934 enable for TARGET_E500_DOUBLE.
3935 (*movdd_softfloat32): Also enable for !TARGET_FPRS.
3936 * config/rs6000/rs6000.c (invalid_e500_subreg): Treat decimal
3937 floating-point modes like integer modes for E500 double.
3938 (rs6000_legitimate_offset_address_p): Likewise.
3939 (rs6000_legitimize_address): Likewise. Do not allow REG+REG
3940 addressing for DDmode for E500 double.
3941 (rs6000_hard_regno_nregs): Do not treat decimal floating-point
3942 modes as using 64-bits of registers for E500 double.
3943 (spe_build_register_parallel): Do not handle DDmode or TDmode.
3944 (rs6000_spe_function_arg): Do not handle DDmode or TDmode
3945 specially for E500 double.
3946 (function_arg): Do not call rs6000_spe_function_arg for DDmode or
3947 TDmode for E500 double.
3948 (rs6000_gimplify_va_arg): Only handle SDmode in registers
3949 specially if TARGET_HARD_FLOAT && TARGET_FPRS.
3950 (rs6000_split_multireg_move): Do not handle TDmode specially for
3952 (spe_func_has_64bit_regs_p): Do not treat DDmode or TDmode as
3953 using 64-bit registers for E500 double.
3954 (emit_frame_save): Do not handle DDmode specially for E500 double.
3955 (gen_frame_mem_offset): Likewise.
3956 (rs6000_function_value): Do not call spe_build_register_parallel
3957 for DDmode or TDmode.
3958 (rs6000_libcall_value): Likewise.
3959 * config/rs6000/rs6000.h (LOCAL_ALIGNMENT, MEMBER_TYPE_FORCES_BLK,
3960 DATA_ALIGNMENT, CLASS_MAX_NREGS): Do not handle DDmode specially
3963 2008-06-04 H.J. Lu <hongjiu.lu@intel.com>
3965 * config/i386/i386.c (setup_incoming_varargs_64): Fix a typo
3968 2008-06-04 Junjie Gu <jgu@tensilica.com>
3970 * config/xtensa/lib2funcs.S (__xtensa_nonlocal_goto): Use unsigned
3971 comparison for frame pointers.
3973 2008-06-04 Andy Hutchinson <hutchinsonandy@aim.com>
3976 * config/avr/avr.h (PUSH_ROUNDING): Remove.
3978 2008-06-04 Andy Hutchinson <hutchinsonandy@aim.com>
3981 * builtins.c (expand_builtin_signbit): Don't take lowpart when
3982 register is already smaller or equal to required mode.
3984 2008-06-04 Xinliang David Li <davidxl@google.com>
3986 * tree-call-cdce.c: New file.
3987 (cond_dead_built_in_calls): New static variable.
3988 (input_domain): New struct.
3989 (check_pow): New function.
3990 (check_builtin_call): Ditto.
3991 (check_target_format): Ditto.
3992 (is_call_dce_candidate): Ditto.
3993 (gen_one_condition): Ditto.
3994 (gen_conditions_for_domain): Ditto.
3995 (get_domain): Ditto.
3996 (gen_conditions_for_pow_cst_base): Ditto.
3997 (gen_conditions_for_pow_int_base): Ditto.
3998 (gen_conditions_for_pow): Ditto.
3999 (get_no_error_domain): Ditto.
4000 (gen_shrink_wrap_conditions): Ditto.
4001 (shrink_wrap_one_built_in_call): Ditto.
4002 (shink_wrap_conditional_dead_built_in_calls): Ditto.
4003 (tree_call_cdce): Ditto.
4004 (gate_call_cdce): Ditto.
4005 (pass_call_cdce): New gimple pass.
4006 * passes.c: (init_optimization_passes): New pass.
4007 * tree-pass.h: New pass declaration.
4008 * opts.c (decode_options): New flag setting.
4009 * common.opt: Add -ftree-builtin-call-dce flag.
4010 * Makefile.in: Add new source file.
4011 * tempvar.def: New tv_id.
4012 * doc/invoke.texi (-ftree-builtin-call-dce): New flag.
4014 2008-06-04 Richard Guenther <rguenther@suse.de>
4016 * tree-flow-inline.h (is_global_var): Do not check TREE_STATIC on MTAGs.
4017 (is_call_clobbered): Always check var_ann->call_clobbered.
4018 (mark_call_clobbered): Always set var_ann->call_clobbered.
4019 (clear_call_clobbered): Always clear var_ann->call_clobbered.
4020 * tree-ssa-alias.c (mark_non_addressable): Use clear_call_clobbered.
4021 (reset_alias_info): Clear call clobbering info on MTAGs and
4023 (set_pt_anything): Set pt_global_mem.
4024 (create_tag_raw): Adjust comment.
4025 (may_be_aliased): Do not check TREE_PUBLIC on MTAGs.
4027 2008-06-04 Joseph Myers <joseph@codesourcery.com>
4028 Maxim Kuvyrkov <maxim@codesourcery.com>
4030 * config/m68k/m68k.opt (mxgot): New option.
4031 * config/m68k/m68k.c (legitimize_pic_address): Handle -mxgot.
4032 (m68k_output_addr_const_extra): New.
4033 * config/m68k/m68k.h (OUTPUT_ADDR_CONST_EXTRA): New.
4034 * config/m68k/m68k-protos.h (m68k_output_addr_const_extra): Declare.
4035 * config/m68k/m68k.md (UNSPEC_GOTOFF): Define.
4036 * doc/invoke.texi (M680x0 Options): Document -mxgot.
4038 2008-06-04 Richard Guenther <rguenther@suse.de>
4040 * tree-ssa-structalias.c (handle_ptr_arith): Correctly handle
4041 negative or non-representable offsets.
4043 2008-06-03 H.J. Lu <hongjiu.lu@intel.com>
4045 * config/i386/i386.c (ix86_gen_leave): New.
4046 (ix86_gen_pop1): Likewise.
4047 (ix86_gen_add3): Likewise.
4048 (ix86_gen_sub3): Likewise.
4049 (ix86_gen_sub3_carry): Likewise.
4050 (ix86_gen_one_cmpl2): Likewise.
4051 (ix86_gen_monitor): Likewise.
4052 (override_options): Initialize ix86_gen_leave, ix86_gen_pop1,
4053 ix86_gen_add3, ix86_gen_sub3, ix86_gen_sub3_carry,
4054 ix86_gen_one_cmpl2 and ix86_gen_monitor.
4055 (ix86_file_end): Use mov%z0 instead of mov{q}/mov{l}.
4056 (output_set_got): Use mov%z0, pop%z0 and add%z0 instead of
4057 mov{q}/mov{l}, pop{q}/pop{l} and add{q}/add{l}.
4058 (ix86_expand_epilogue): Updated.
4059 (print_operand): Handle integer register operand for 'z'.
4060 (ix86_expand_strlensi_unroll_1): Likewise.
4061 (ix86_expand_strlen): Likewise.
4062 (ix86_expand_builtin): Likewise.
4063 (x86_output_mi_thunk): Use mov%z1 and add%z1 instead of
4064 mov{q}/mov{l} and add{q}/add{l}.
4066 2008-06-03 Kai Tietz <kai.tietz@onevision.com>
4068 * config/i386/i386.md (P): New mode iterator.
4069 (SFmode push_operand splitter): Macroize DImode and SImode pushes
4070 using P mode iterator.
4071 (DFmode push_operand splitter): Ditto.
4072 (XFmode push_operand splitter): Ditto.
4073 (DFmode float_extend SFmode push_operand splitter): Ditto.
4074 (XFmode float_extend SFmode push_operand splitter): Do not generate
4075 SImode pushes for 64bit target. Macroize Dimode and SImode
4076 pushes using P mode iterator.
4077 (XFmode float_extend DFmode push_operand splitter): Ditto.
4079 2008-06-03 Kai Tietz <kai.tietz@onevision.com>
4081 * config/i386/i386-protos.h (ix86_reg_parm_stack_space): New.
4082 * config/i386/i386.h (ix86_reg_parm_stack_space): Removed prototype.
4083 * config/i386/i386.c (ix86_reg_parm_stack_space): Changed
4085 (ix86_call_abi_override): Remove check for call_used_regs.
4087 2008-06-03 Richard Guenther <rguenther@suse.de>
4089 * tree-ssa-structalias.c (find_func_aliases): Add constraints
4090 for the lhs of calls if the return type contains pointers.
4092 2008-06-03 Kai Tietz <kai.tietz@onevision.com>
4094 * doc/tm.texi (OVERRIDE_ABI_FORMAT): New.
4095 * doc/extend.texi (ms_abi,sysv_abi): New attribute description.
4096 * function.c (allocate_struct_function): Use of OVERRIDE_ABI_FORMAT.
4097 * config/i386/cygming.h (TARGET_64BIT_MS_ABI): Make use
4098 of cfun and DEFAULT_ABI to deceide abi mode.
4100 (REG_PARM_STACK_SPACE): Removed.
4101 (OUTGOING_REG_PARM_STACK_SPACE): Removed.
4102 (STACK_BOUNDARY): Use default target to deceide stack boundary.
4103 * config/i386/i386-protos.h (ix86_cfun_abi): New.
4104 (ix86_function_abi): Likewise.
4105 (ix86_function_type_abi): Likewise.
4106 (ix86_call_abi_override): Likewise.
4107 * confid/i386/i386.md (SSE_REGPARM_MAX): Replaced by abi
4108 specific define X86_64_SSE_REGPARM_MAX/X64_SSE_REGPARM_MAX.
4109 * config/i386/i386.c (override_options): Replace TARGET_64BIT_MS_ABI.
4110 (X86_64_VARARGS_SIZE): Replace REGPARM_MAX and SSE_REGPARM_MAX by abi
4112 (X86_64_REGPARM_MAX): New.
4113 (X86_64_SSE_REGPARM_MAX): New.
4114 (X64_REGPARM_MAX): New.
4115 (X64_SSE_REGPARM_MAX): New.
4116 (X86_32_REGPARM_MAX): New.
4117 (X86_32_SSE_REGPARM_MAX): New.
4118 (ix86_handle_cconv_attribute): Replace TARGET_64BIT_MS_ABI.
4119 (ix86_function_regparm): Handle user calling abi.
4120 (ix86_function_arg_regno_p): Replace TARGET_64BIT_MS_ABI
4121 by DEFAULT_ABI versus SYSV_ABI check.
4122 (ix86_reg_parm_stack_space): New.
4123 (ix86_function_type_abi): New.
4124 (ix86_call_abi_override): New.
4125 (ix86_function_abi): New.
4126 (ix86_cfun_abi): New.
4127 (init_cumulative_args): Call abi specific initialization.
4128 (function_arg_advance): Remove TARGET_64BIT_MS_ABI.
4129 (function_arg_64): Extend SSE_REGPARM_MAX check.
4130 (function_arg (): Remove TARGET_64BIT_MS_ABI.
4131 (ix86_pass_by_reference): Likewise.
4132 (ix86_function_value_regno_p): Likewise.
4133 (function_value_64): Replace REGPARM_MAX, and SSE_REGPARM_MAX.
4134 (ix86_function_value_1): Replace TARGET_64BIT_MS_ABI.
4135 (return_in_memory_ms_64): Replace TARGET_64BIT_MS_ABI.
4136 (ix86_build_builtin_va_list): Replace TARGET_64BIT_MS_ABI.
4137 (setup_incoming_varargs_64): Adjust regparm for call abi.
4138 (ix86_setup_incoming_varargs): Replace TARGET_64BIT_MS_ABI.
4139 (ix86_va_start): Likewise.
4140 (ix86_gimplify_va_arg): Likewise.
4141 (ix86_expand_prologue): Likewise.
4142 (output_pic_addr_const): Likewise.
4143 (ix86_init_machine_status): Initialize call_abi by DEFAULT_ABI.
4144 (x86_this_parameter): Replace TARGET_64BIT_MS_ABI.
4145 (x86_output_mi_thunk): Likewise.
4146 (x86_function_profiler): Likewise.
4147 * config/i386/i386.h (TARGET_64BIT_MS_ABI): Use ix64_cfun_abi.
4148 (SYSV_ABI, MS_ABI): New constants.
4150 (init_regs): Add prototype of function in regclass.c file.
4151 (OVERRIDE_ABI_FORMAT): New.
4152 (CONDITIONAL_REGISTER_USAGE): Remove TARGET_64BIT_MS_ABI part.
4153 (REG_PARM_STACK_SPACE): Use ix86_reg_parm_stack_space.
4154 (OUTGOING_REG_PARM_STACK_SPACE): New.
4155 (ix86_reg_parm_stack_space): New prototype.
4156 (CUMULATIVE_ARGS): Add call_abi member.
4157 (machine_function): Add call_abi member.
4158 * config/i386/mingw32.h (EXTRA_OS_CPP_BUILTINS): Replace
4159 TARGET_64BIT_MS_ABI by DEFAULT_ABI compare to MS_ABI.
4161 2008-06-02 Andy Hutchinson <hutchinsonandy@aim.com>
4164 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Redefine.
4165 (avr_builtin_setjmp_frame_value): New function.
4166 * config/avr/avr.md (nonlocal_goto_receiver): Define.
4167 (nonlocal_goto): Define.
4169 2008-06-02 Richard Sandiford <rdsandiford@googlemail.com>
4171 * config/mips/mips.c (mips_emit_loadgp): Return early if
4172 there is nothing do to, otherwise emit a blockage if
4173 !TARGET_EXPLICIT_RELOCS || crtl->profile.
4174 * config/mips/mips.md (loadgp_blockage): Use SI rather than DI.
4176 2008-06-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4178 * configure.ac: Drop unneeded backslash ending up in config.in.
4179 * acinclude.m4: Likewise.
4180 * config.in: Regenerate.
4182 2008-05-26 Jan Hubicka <jh@suse.cz>
4184 * predict.c (maybe_hot_frequency_p): Break out of...
4185 (maybe_hot_bb_p): ... here.
4186 (maybe_hot_edge_p): New.
4187 * tree-ssa-coalesce.c (coalesce_cost_edge): Compute cost based on edge.
4188 * basic-block.h (maybe_hot_edge_p): Declare.
4190 2008-05-31 Uros Bizjak <ubizjak@gmail.com>
4192 * config/i386/i386.md (*cmpfp_<mode>): Enable for optimize_size.
4193 (*cmpfp_<mode>_cc): Ditto.
4194 (*fp_jcc_8<mode>_387): Ditto.
4195 (*fop_<MODEF:mode>_2_i387): Ditto.
4196 (*fop_<MODEF:mode>_3_i387): Ditto.
4197 (*fop_xf_2_i387): Ditto.
4198 (*fop_xf_3_i387): Ditto.
4200 2008-06-02 Tomas Bily <tbily@suse.cz>
4202 * tree-ssa-ifcombine.c (get_name_for_bit_test): Use CONVERT_EXPR_P.
4204 2008-06-01 Richard Sandiford <rdsandiford@googlemail.com>
4206 * config/mips/mips.c (mips_valid_offset_p): New function.
4207 (mips_valid_lo_sum_p): Likewise.
4208 (mips_classify_address): Use them.
4209 (mips_force_address): New function.
4210 (mips_legitimize_address): Use it.
4211 * config/mips/mips.md (MOVE128): New mode iterator.
4212 (movtf): Require TARGET_64BIT. Remove empty strings.
4213 (*movtf_internal): Rename to...
4214 (*movtf): ...this and require !TARGET_MIPS16. Use "m" instead
4215 of "R" and use {,fp}{load,store} attributes instead of "multi".
4216 Use a separate define_split.
4217 (*movtf_mips16): New pattern.
4219 2008-06-01 Richard Sandiford <rdsandiford@googlemail.com>
4221 * config/mips/mips-protos.h (mips_expand_before_return): Declare.
4222 * config/mips/mips.c (mips_expand_before_return): New function.
4223 (mips_expand_epilogue): Call it.
4224 * config/mips/mips.md (return): Turn into a define_expand.
4225 (*return): New insn.
4227 2008-06-01 Richard Sandiford <rdsandiford@googlemail.com>
4229 * rtl.h (emit_clobber, gen_clobber, emit_use, gen_use): Declare.
4230 * emit-rtl.c (emit_clobber, gen_clobber, emit_use, gen_use): New
4231 functions. Do not emit uses and clobbers of CONCATs; individually
4232 use and clobber their operands.
4233 * builtins.c (expand_builtin_setjmp_receiver): Use emit_clobber,
4234 gen_clobber, emit_use and gen_use.
4235 (expand_builtin_longjmp, expand_builtin_nonlocal_goto): Likewise.
4236 (expand_builtin_return): Likewise.
4237 * cfgbuild.c (count_basic_blocks): Likewise.
4238 * cfgrtl.c (rtl_flow_call_edges_add): Likewise.
4239 * explow.c (emit_stack_restore): Likewise.
4240 * expmed.c (extract_bit_field_1): Likewise.
4241 * expr.c (convert_move, emit_move_complex_parts): Likewise.
4242 (emit_move_multi_word, store_constructor): Likewise.
4243 * function.c (do_clobber_return_reg, do_use_return_reg): Likewise.
4244 (thread_prologue_and_epilogue_insns): Likewise.
4245 * lower-subreg.c (resolve_simple_move): Likewise.
4246 * optabs.c (widen_operand, expand_binop): Likewise.
4247 (expand_doubleword_bswap, emit_no_conflict_block): Likewise.
4248 * reload.c (find_reloads): Likewise.
4249 * reload1.c (eliminate_regs_in_insn): Likewise.
4250 * stmt.c (expand_nl_goto_receiver): Likewise.
4251 * config/alpha/alpha.md (builtin_longjmp): Likewise.
4252 * config/arc/arc.md (*movdi_insn, *movdf_insn): Likewise.
4253 * config/arm/arm.c (arm_load_pic_register): Likewise.
4254 (thumb1_expand_epilogue, thumb_set_return_address): Likewise.
4255 * config/arm/arm.md (untyped_return): Likewise.
4256 * config/arm/linux-elf.h (PROFILE_HOOK): Likewise.
4257 * config/avr/avr.c (expand_prologue): Likewise.
4258 * config/bfin/bfin.c (do_unlink): Likewise.
4259 * config/bfin/bfin.md (<optab>di3, adddi3, subdi3): Likewise.
4260 * config/cris/cris.c (cris_expand_prologue): Likewise.
4261 * config/darwin.c (machopic_indirect_data_reference): Likewise.
4262 (machopic_legitimize_pic_address): Likewise.
4263 * config/frv/frv.c (frv_frame_access, frv_expand_epilogue): Likewise.
4264 (frv_ifcvt_modify_insn, frv_expand_mdpackh_builtin): Likewise.
4265 * config/i386/i386.c (ix86_expand_vector_move_misalign): Likewise.
4266 (ix86_expand_convert_uns_didf_sse): Likewise.
4267 (ix86_expand_vector_init_general): Likewise.
4268 * config/ia64/ia64.md (eh_epilogue): Likewise.
4269 * config/iq2000/iq2000.c (iq2000_expand_epilogue): Likewise.
4270 * config/m32c/m32c.c (m32c_emit_eh_epilogue): Likewise.
4271 * config/m32r/m32r.c (m32r_reload_lr): Likewise.
4272 (config/iq2000/iq2000.c): Likewise.
4273 * config/mips/mips.md (fixuns_truncdfsi2): Likewise.
4274 (fixuns_truncdfdi2, fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
4275 (builtin_longjmp): Likewise.
4276 * config/mn10300/mn10300.md (call, call_value): Likewise.
4277 * config/pa/pa.md (nonlocal_goto, nonlocal_longjmp): Likewise.
4278 * config/pdp11/pdp11.md (abshi2): Likewise.
4279 * config/rs6000/rs6000.c (rs6000_emit_move): Likewise.
4280 * config/s390/s390.c (s390_emit_prologue): Likewise.
4281 * config/s390/s390.md (movmem_long, setmem_long): Likewise.
4282 (cmpmem_long, extendsidi2, zero_extendsidi2, udivmoddi4): Likewise.
4283 (builtin_setjmp_receiver, restore_stack_nonlocal): Likewise.
4284 * config/sh/sh.c (prepare_move_operands): Likewise.
4285 (output_stack_adjust, sh_expand_epilogue): Likewise.
4286 (sh_set_return_address, sh_expand_t_scc): Likewise.
4287 * config/sparc/sparc.c (load_pic_register): Likewise.
4288 * config/sparc/sparc.md (untyped_return, nonlocal_goto): Likewise.
4289 * config/spu/spu.c (spu_expand_epilogue): Likewise.
4290 * config/v850/v850.c (expand_epilogue): Likewise.
4292 2008-05-31 Anatoly Sokolov <aesok@post.ru>
4294 * config/avr/avr.md (UNSPECV_WRITE_SP_IRQ_ON): New constants.
4295 (UNSPECV_WRITE_SP_IRQ_OFF): (Ditto.).
4296 (movhi_sp_r_irq_off, movhi_sp_r_irq_on): New insn.
4297 * config/avr/avr.c (expand_prologue, expand_epilogue): Use
4298 movhi_sp_r_irq_off and movhi_sp_r_irq_on insns for writing to the
4299 stack pointer register.
4300 (output_movhi): Remove code for interrupt specific writing to the
4301 stack pointer register.
4303 2008-05-31 Richard Guenther <rguenther@suse.de>
4305 PR tree-optimization/34244
4306 * fold-const.c (tree_expr_nonnegative_warnv_p): Do not ask VRP.
4307 (tree_expr_nonzero_warnv_p): Likewise.
4308 * tree-vrp.c (vrp_expr_computes_nonnegative): Call
4309 ssa_name_nonnegative_p.
4310 (vrp_expr_computes_nonzero): Call ssa_name_nonzero_p.
4311 (extract_range_from_unary_expr): Use vrp_expr_computes_nonzero,
4312 not tree_expr_nonzero_warnv_p.
4314 PR tree-optimization/36262
4316 2007-11-29 Zdenek Dvorak <ook@ucw.cz>
4318 PR tree-optimization/34244
4319 * tree-vrp.c (adjust_range_with_scev): Clear scev cache.
4320 (record_numbers_of_iterations): New function.
4321 (execute_vrp): Cache the numbers of iterations of loops.
4322 * tree-scalar-evolution.c (scev_reset_except_niters):
4324 (scev_reset): Use scev_reset_except_niters.
4325 * tree-scalar-evolution.h (scev_reset_except_niters): Declare.
4327 2008-05-31 Bernd Schmidt <bernd.schmidt@analog.com>
4329 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
4330 __WORKAROUND_RETS when appropriate.
4332 2008-05-31 Uros Bizjak <ubizjak@gmail.com>
4334 * config/i386/i386.md (*fop_<mode>_comm_mixed): Macroize from
4335 *fop_sf_comm_mixed and *fop_df_comm_mixed insn patterns using MODEF
4337 (*fop_<mode>_comm_sse): Macroize from *fop_sf_comm_sse and
4338 *fop_df_comm_sse insn patterns using MODEF mode iterator.
4339 (*fop_<mode>_comm_i387): Macroize from *fop_sf_comm_i387 and
4340 *fop_df_comm_i387 insn patterns using MODEF mode iterator.
4341 (*fop_<mode>_1_mixed): Macroize from *fop_sf_1_mixed and
4342 *fop_df_1_mixed insn patterns using MODEF mode iterator.
4343 (*fop_<mode>_1_sse): Macroize from *fop_sf_1_sse and
4344 *fop_df_1_sse insn patterns using MODEF mode iterator.
4345 (*fop_<mode>_1_i387): Macroize from *fop_sf_1_i387 and
4346 *fop_df_1_i387 insn patterns using MODEF mode iterator.
4347 (*fop_<MODEF:mode>_2_i387): Macroize from *fop_sf_2<mode>_i387 and
4348 *fop_df_2<mode>_i387 insn patterns using MODEF mode iterator.
4349 (*fop_<MODEF:mode>_3_i387): Macroize from *fop_sf_3<mode>_i387 and
4350 *fop_df_3<mode>_i387 insn patterns using MODEF mode iterator.
4351 (*fop_xf_2_i387): Rename from *fop_xf_2<mode>_i387.
4352 (*fop_xf_3_i387): Rename from *fop_xf_3<mode>_i387.
4353 (*fop_xf_4_i387): Use <MODE> for mode attribute.
4354 (*fop_xf_5_i387): Ditto.
4355 (*fop_xf_6_i387): Ditto.
4357 2008-05-30 Richard Guenther <rguenther@suse.de>
4359 * builtins.c (build_string_literal): Avoid generating
4360 a non-gimple_val result.
4362 2008-05-30 DJ Delorie <dj@redhat.com>
4364 * exec-tool.in: Use an environment variable (private) instead of a
4365 file (shared) as a semaphore, so as to not break parallel builds.
4367 2008-05-30 Steven Bosscher <stevenb.gcc@gmail.com>
4369 * optabs.c (maybe_encapsulate_block): Remove.
4370 (emit_libcall_block): Adjust accordingly.
4371 * optabs.h (maybe_encapsulate_block): Remove prototype.
4373 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address):
4374 Don't use maybe_encapsulate_block.
4376 2008-05-30 Steven Bosscher <stevenb.gcc@gmail.com>
4378 * config/rs6000/rs6000.c (rs6000_legitimize_address,
4379 rs6000_legitimize_reload_address, rs6000_emit_move): Make sure an
4380 rtx is a SYMBOL_REF before calling get_pool_constant.
4382 2008-05-30 Eric Botcazou <ebotcazou@adacore.com>
4384 * fold-const.c (fold_unary) <CASE_CONVERT>: Add ??? comment.
4386 2008-05-30 Danny Smith <dannysmith@users.sourceforge.net>
4388 * incpath.c: Use HOST_LACKS_INODE_NUMBERS conditional
4389 rather than OS names to choose INO_T_EQ definition.
4390 (DIRS_EQ) [!INO_T_EQ]: Don't worry about case in comparison.
4391 (add_path) [!INO_T_EQ]: Use lrealpath to fill canonical_name field.
4393 2008-05-29 Daniel Franke <franke.daniel@gmail.com>
4396 * config/darwin-f.c: New.
4397 * config/t-darwin: Added rule to build darwin-f.o.
4398 * config.gcc: Defined new variable, fortran_target_objs.
4399 (*-*-darwin*): Set fortran_target_objs.
4400 * Makefile.in: Defined new variable FORTRAN_TARGET_OBJS.
4401 * configure.ac: Substitute fortran_target_objs, set FORTRAN_TARGET_OBJS.
4402 * configure: Regenerated.
4404 2008-05-29 H.J. Lu <hongjiu.lu@intel.com>
4407 * config/i386/i386.c (ix86_function_arg_boundary): Convert to
4408 canonical type if needed.
4410 2008-05-29 Eric Botcazou <ebotcazou@adacore.com>
4412 * tree-nested.c (check_for_nested_with_variably_modified): Fix typo.
4414 2008-05-29 Richard Guenther <rguenther@suse.de>
4416 PR tree-optimization/36343
4417 PR tree-optimization/36346
4418 PR tree-optimization/36347
4419 * tree-flow.h (clobber_what_p_points_to): Declare.
4420 * tree-ssa-structalias.c (set_uids_in_ptset): Whether the
4421 pointed-to variable is dereferenced is irrelevant to whether
4422 the pointer can access the pointed-to variable.
4423 (clobber_what_p_points_to): New function.
4424 * tree-ssa-alias.c (set_initial_properties): Use it.
4425 * tree-ssa.c (verify_flow_sensitive_alias_info): Adjust
4426 call clobber check for NMTs.
4428 2008-05-28 Seongbae Park <seongbae.park@gmail.com>
4430 * value-prof.c (tree_ic_transform): Use HOST_WIDEST_INT_PRINT_DEC
4431 for printing gcov_type.
4433 2008-05-28 Seongbae Park <seongbae.park@gmail.com>
4435 * tree-ssa-propagate.c (set_rhs): Preserve the histogram
4436 and the eh region information.
4437 * value-prof.c (gimple_move_stmt_histograms): New function.
4438 * value-prof.h (gimple_move_stmt_histograms): New function declaration.
4440 2008-05-28 Andreas Tobler <a.tobler@schweiz.org>
4442 * config/pa/pa.md: Remove extern frame_pointer_needed declaration.
4444 2008-05-28 Seongbae Park <seongbae.park@gmail.com>
4446 * value-prof.c (tree_ic_transform): Print counts.
4447 * tree-profile.c (tree_gen_ic_func_profiler):
4448 Clear __gcov_indreict_call_callee variable to avoid misattribution
4451 2008-05-28 Rafael Espindola <espindola@google.com>
4453 * see.c (see_def_extension_not_merged): Use copy_rtx_if_shared to avoid
4456 2008-05-28 Richard Guenther <rguenther@suse.de>
4458 PR tree-optimization/36339
4459 * tree-ssa-alias.c (set_initial_properties): Move pt_anything
4460 and clobbering code out of the loop.
4462 2008-05-28 Andreas Krebbel <krebbel1@de.ibm.com>
4464 * config/s390/constraints.md ('b', 'C', 'D', 'e'): New constraint
4467 * config/s390/s390.c (s390_compare_and_branch_condition_mask,
4468 s390_contiguous_bitmask_p, s390_symref_operand_p,
4469 s390_check_symref_alignment, s390_reload_larl_operand,
4470 s390_reload_symref_address): New functions.
4471 (s390_branch_condition_mnemonic): Support compare and branch
4473 (s390_mem_constraint): Avoid symrefs to accepted by the 'T'
4474 and 'W' constraints.
4475 (s390_secondary_reload): Add secondary reloads for unaligned
4476 symbol refs or symbol refs to floating point or QI/TI mode
4478 (legitimate_address_p): Accept symbol references as addresses.
4479 (s390_expand_insv): Use rotate and insert selected bits
4480 instruction for insv when building for z10.
4481 (print_operand_address): Handle symbol ref addresses.
4482 (print_operand): Output modifier 'c' added for signed byte values.
4483 (s390_encode_section_info): Mark symbol refs with
4484 SYMBOL_FLAG_NOT_NATURALLY_ALIGNED if appropriate.
4486 * config/s390/s390.md (SIL,RRS,RIS): New instruction formats added.
4487 (length attribute): RRF, RRR have 4 byte length.
4488 (FPALL, INTALL): New mode iterators added.
4489 (*tstdi_sign, *cmpdi_ccs_sign, *cmpsi_ccs_sign,
4490 *cmp<mode>_ccs, *cmpdi_ccu_zero, *cmpdi_ccu, *cmpsi_ccu, *cmphi_ccu,
4491 *movdi_64, *movsi_zarch, *movhi, movmem<mode>, *movmem_short,
4492 *extendsidi2, *extendhidi2_extimm, *extendhisi2_extimm,
4493 *zero_extendsidi2, adddi3, *adddi3_31z, *adddi3_31, addsi3,
4494 *add<mode>3, *add<mode>3_carry1_cc, *add<mode>3_carry2_cc,
4495 *add<mode>3_cc, *add<mode>3_imm_cc, *muldi3_sign, muldi3,
4496 *mulsi3_sign, mulsi3, mulsidi3): Patterns enhanced with z10
4498 (*cmphi_ccs_z10, *cmpdi_ccs_signhi_rl, *cmpsi_ccu_zerohi_rlsi,
4499 *cmp<GPR:mode>_ccu_zerohi_rldi, *cmp_and_br_signed_<mode>,
4500 *cmp_and_br_unsigned_<mode>, reload<INTALL:mode><P:mode>_tomem_z10,
4501 reload<INTALL:mode><P:mode>_toreg_z10,
4502 reload<FPALL:mode><P:mode>_tomem_z10,
4503 reload<FPALL:mode><P:mode>_toreg_z10,
4504 reload<P:mode>_larl_odd_addend_z10, *execute_rl, *insv<mode>_z10,
4505 *insv<mode>_z10_noshift, *insv<mode>_or_z10_noshift,
4506 *zero_extendhi<mode>2_z10, *cmp_and_trap_signed_int<mode>,
4507 *cmp_and_trap_unsigned_int<mode>, prefetch): New pattern or expander
4509 (movmem, clrmem, cmpmem): New splitters added.
4511 * config/s390/predicates.md (larl_operand): Use
4512 SYMBOL_REF_FLAGS (op) & SYMBOL_FLAG_ALIGN1 replaced with
4513 SYMBOL_REF_ALIGN1_P.
4514 (s390_signed_integer_comparison,
4515 s390_unsigned_integer_comparison): New predicates.
4517 * config/s390/s390-protos.h (s390_check_symref_alignment,
4518 s390_contiguous_bitmask_p, s390_reload_larl_operand,
4519 s390_reload_symref_address,
4520 s390_compare_and_branch_condition_mask): Prototypes added.
4522 * config/s390/s390.h (TARGET_MEM_CONSTRAINT,
4523 SYMBOL_REF_ALIGN1_P, SYMBOL_FLAG_NOT_NATURALLY_ALIGNED,
4524 SYMBOL_REF_NOT_NATURALLY_ALIGNED_P): Macro definition added.
4526 2008-05-28 Andreas Krebbel <krebbel1@de.ibm.com>
4528 * config/s390/s390.c (z10_cost): New cost function for z10.
4529 (s390_handle_arch_option, override_options): Support -march=z10 switch.
4530 (s390_issue_rate): Adjust issue rate for z10.
4531 * config/s390/s390.h (processor_type): Add PROCESSOR_2097_Z10.
4532 (processor_flags): Add PF_Z10.
4533 (TARGET_CPU_Z10, TARGET_Z10): New macro definitions.
4534 * config/s390/s390.md (cpu, cpu_facility attributes): Add z10.
4535 * gcc/config.gcc: Add z10.
4537 2008-05-28 Richard Guenther <rguenther@suse.de>
4539 PR tree-optimization/36291
4540 * tree-flow. h (struct gimple_df): Remove var_anns member.
4541 * tree-flow-inline.h (gimple_var_anns): Remove.
4542 (var_ann): Simplify.
4543 * tree-dfa.c (create_var_ann): Simplify.
4544 (remove_referenced_var): Clear alias info from var_anns of globals.
4545 * tree-ssa.c (init_tree_ssa): Do not allocate var_anns.
4546 (delete_tree_ssa): Clear alias info from var_anns of globals.
4547 Do not free var_anns.
4548 (var_ann_eq): Remove.
4549 (var_ann_hash): Likewise.
4551 2008-05-28 Mark Shinwell <shinwell@codesourcery.com>
4553 * config/mips/mips.c (mips_cpu_info_table): Add loongson2e
4554 and loongson2f entries.
4555 (mips_rtx_cost_data): Add entries for Loongson-2E/2F.
4556 * config/mips/mips.h (processor_type): Add Loongson-2E
4557 and Loongson-2F entries.
4558 (TARGET_LOONGSON_2E, TARGET_LOONGSON_2F, TARGET_LOONGSON_2EF): New.
4559 (MIPS_ISA_LEVEL_SPEC): Handle Loongson-2E/2F.
4560 * config/mips/mips.md (define_attr cpu): Add loongson2e and loongson2f.
4561 * doc/invoke.texi (MIPS Options): Document loongson2e
4562 and loongson2f processor names.
4564 2008-05-27 H.J. Lu <hongjiu.lu@intel.com>
4568 * config/i386/i386.c (ix86_function_arg_boundary): Use
4569 alignment of canonical type.
4570 (ix86_expand_vector_move): Check unaligned memory access for
4573 2008-05-27 H.J. Lu <hongjiu.lu@intel.com>
4575 * dwarf2out.c (current_fde): Change return type to dw_fde_ref.
4576 Moved to the front of file.
4578 2008-05-27 Xuepeng Guo <xuepeng.guo@intel.com>
4579 H.J. Lu <hongjiu.lu@intel.com>
4581 * dwarf2out.c (current_fde): New.
4583 (lookup_cfa:): Likewise.
4584 (dwarf2out_end_epilogue): Likewise.
4585 (dwarf2out_note_section_used): Likewise.
4587 2008-05-27 Michael Matz <matz@suse.de>
4590 * c.opt (Wenum-compare): New warning option.
4591 * doc/invoke.texi (Warning Options): Document -Wenum-compare.
4593 2008-05-27 Michael Matz <matz@suse.de>
4596 * tree-gimple.c (is_gimple_mem_rhs): Remove work-around for
4598 * tree-tailcall.c (find_tail_calls): Don't mark calls storing
4599 into memory as tail calls.
4601 2008-05-27 Richard Guenther <rguenther@suse.de>
4603 PR tree-optimization/36339
4604 * tree-ssa-alias.c (set_initial_properties): Escaped pt_anything
4605 pointers cause all addressable variables to be call clobbered.
4607 2008-05-27 Richard Guenther <rguenther@suse.de>
4609 PR tree-optimization/36245
4610 * tree-ssa-address.c (add_to_parts): Deal with non-pointer bases.
4612 2008-05-27 Andreas Krebbel <krebbel1@de.ibm.com>
4614 * config/s390/s390.md: Replace all occurences of the 'm'
4615 constraint with 'RT'.
4617 2008-05-27 Andreas Krebbel <krebbel1@de.ibm.com>
4619 * config/s390/s390.md ("cpu_facility", "enabled"): Attribute
4621 ("*movdi_64dfp", "*movdi_64extimm", "*movdi_64"): Merged into
4623 ("*anddi3_extimm", "*anddi3"): Merged into "*anddi3".
4624 ("*iordi3_extimm", "*iordi3"): Merged into "*iordi3".
4625 ("*xordi3_extimm", "*xordi3"): Merged into "*xordi3".
4627 2008-05-27 Andreas Krebbel <krebbel1@de.ibm.com>
4629 * reload.c: (find_reloads): Skip alternatives according to the
4630 "enabled" attribute. Constify the constraint variable.
4631 * recog.c (get_attr_enabled): Add default implementation.
4632 (extract_insn): Set the alternative_enabled_p array
4633 in the recog_data struct.
4634 (preprocess_constraints, constrain_operands): Skip
4635 alternatives according to the "enabled" attribute
4636 * recog.h (struct recog_data): New field alternative_enabled_p.
4637 (skip_alternative): New inline function.
4638 * regclass.c: (record_operand_costs): Check the "enabled" attribute.
4639 (record_reg_classes): Skip alternative according to the
4640 "enabled" attribute.
4642 * doc/md.texi: Add documention for the "enabled" attribute.
4644 2008-05-27 Andreas Krebbel <krebbel1@de.ibm.com>
4646 * defaults.h (TARGET_MEM_CONSTRAINT): New target macro added.
4647 * postreload.c (reload_cse_simplify_operands): Replace 'm'
4648 constraint with TARGET_MEM_CONSTRAINT.
4649 * recog.c (asm_operand_ok, preprocess_constraints,
4650 constrain_operands): Likewise.
4651 * regclass.c (record_reg_classes): Likewise.
4652 * reload.c (find_reloads, alternative_allows_const_pool_ref): Likewise.
4653 * reload1.c (maybe_fix_stack_asms): Likewise.
4654 * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
4655 * recog.h: Adjust comment.
4656 * genpreds.c (generic_constraint_letters): Remove 'm' constraint.
4657 * genoutput.c (note_constraint): Don't emit error for 'm' constraint.
4658 * doc/md.texi: Add a note to description of 'm' constraint.
4659 * doc/tm.texi: Document the new TARGET_MEM_CONSTRAINT macro.
4661 2008-05-27 Eric Botcazou <ebotcazou@adacore.com>
4663 * tree-sra.c (sra_type_can_be_decomposed_p) <RECORD_TYPE>: Make sure
4664 that the bitfield is of integral type before testing its precision.
4666 2008-05-27 Trevor Smigiel <trevor_smigiel@playstation.sony.com>
4667 Sa Liu <saliu@de.ibm.com>
4669 * config/spu/spu.c (spu_init_libfuncs): Add __multi3, __divti3,
4670 __modti3, __udivti3, __umodti3 and __udivmodti4.
4671 * config/spu/t-spu-elf (LIB2FUNCS_STATIC_EXTRA): Add files
4672 that implement TImode mul and div functions.
4673 * config/spu/multi3.c: New. Implement __multi3.
4674 * config/spu/divmodti4.c: New. Implement _udivmodti4 and others.
4675 * testsuite/gcc.target/spu/muldivti3.c: New. Test TImode mul and div
4678 2008-05-26 Steven Bosscher <stevenb.gcc@gmail.com>
4680 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Generate
4681 new tls_gd_* and tls_ld_* insns instead of an insn sequence.
4682 * config/rs6000/rs6000.md (TLSmode, tls_abi_suffix, tls_insn_suffix,
4683 tls_sysv_suffix): New mode and mode attribute iterators.
4684 (tls_gd_32, tls_gd_64, tls_ld_32, tls_ld_64): Remove.
4685 (lts_gd_aix*, tls_gd_sysv*, tls_ld_aix*, tls_ld_sysv*): New patterns.
4686 (tls_dtprel_*, tls_dtprel_ha_*, tls_dtprel_lo_*, tls_got_dtprel_*,
4687 tls_tprel_*, tls_tprel_ha_*, tls_tprel_lo_*, tls_got_tprel_*,
4688 tls_tls_*): Merge 32 bit and 64 bit variants using aforementioned
4691 2008-05-26 Eric Botcazou <ebotcazou@adacore.com>
4693 PR tree-optimization/36329
4694 * tree.h (CALL_CANNOT_INLINE_P): Add access check.
4695 * tree-gimple.h (CALL_STMT_CANNOT_INLINE_P): New macro.
4696 * cgraphbuild.c (initialize_inline_failed): Use the latter
4697 macro in lieu of the former.
4698 * ipa-inline.c (cgraph_mark_inline): Likewise.
4699 (cgraph_decide_inlining_of_small_function): Likewise.
4700 (cgraph_decide_inlining): Likewise.
4701 (cgraph_decide_inlining_incrementally): Likewise.
4703 2008-05-26 Tristan Gingold <gingold@adacore.com>
4704 Anatoly Sokolov <aesok@post.ru>
4706 * config/avr/avr.md ("call_prologue_saves"): Use hi8(gs())/lo8(gs())
4707 instead of pm_lo8/pm_hi8 to makes this call working on avr6.
4708 * config/avr/avr.c (expand_prologue): Tune "call_prologue"
4709 optimization for 'avr6' architecture.
4711 2008-05-26 Andy Hutchinson <hutchinsonandy@aim.com>
4714 * config/avr/avr.md (*addhi3_zero_extend2): Remove.
4716 2008-05-26 Richard Guenther <rguenther@suse.de>
4718 * tree-ssa-sccvn.c (expr_has_constants): Declare.
4719 (visit_reference_op_load): Initialize VN_INFO->has_constants properly.
4721 2008-05-26 H.J. Lu <hongjiu.lu@intel.com>
4724 * caller-save.c (insert_restore): Verify alignment of spill space.
4725 (insert_save): Likewise.
4726 * cfgexpand.c (LOCAL_ALIGNMENT): Removed.
4727 * defaults.h (LOCAL_ALIGNMENT): New. Provide default.
4728 (STACK_SLOT_ALIGNMENT): Likewise.
4729 * function.c (LOCAL_ALIGNMENT): Removed.
4730 (get_stack_local_alignment): New.
4731 (assign_stack_local): Use it. Set alignment on stack slot.
4732 (assign_stack_temp_for_type): Use get_stack_local_alignment.
4733 * config/i386/i386.h (LOCAL_ALIGNMENT): Updated.
4734 (STACK_SLOT_ALIGNMENT): New.
4735 * config/i386/i386.c (ix86_local_alignment): Handle caller-save
4736 stack slot in XFmode.
4738 * doc/tm.texi (STACK_SLOT_ALIGNMENT): New.
4740 2008-05-26 Kai Tietz <kai.tietz@onevision.com>
4743 * config/i386/i386.md (allocate_stack_worker_64): Make sure
4744 argument operand in rax isn't removed.
4746 2008-05-26 Richard Guenther <rguenther@suse.de>
4749 * fold-const.c (extract_muldiv_1): Use TYPE_OVERFLOW_WRAPS,
4750 not TYPE_UNSIGNED. Use TYPE_PRECISION instead of GET_MODE_SIZE.
4752 2008-05-26 Daniel Franke <franke.daniel@gmail.com>
4755 * c-cppbuiltin.c (define__GNUC__): Re-add definition of __GNUG__.
4757 2008-05-26 Dominique Dhumieres <dominiq@lps.ens.fr>
4759 * config/darwin-c.c: Include "incpath.h" instead of "c-incpath.h".
4760 * config/t-darwin: Use "incpath.h" instead of "c-incpath.h".
4762 2008-05-25 Eric Botcazou <ebotcazou@adacore.com>
4764 * tree-nested.c (convert_tramp_reference) <ADDR_EXPR>: Do not
4765 build a trampoline if we don't want one.
4766 * varasm.c (initializer_constant_valid_p) <ADDR_EXPR>: Do not
4767 return zero for nested functions if we don't want a trampoline.
4769 2008-05-26 Daniel Franke <franke.daniel@gmail.com>
4771 * doc/invoke.texi: Added f77, f77-cpp-input to list of file types.
4773 2008-05-26 Daniel Franke <franke.daniel@gmail.com>
4776 * c.opt: Removed undocumented option '-lang-fortran'.
4777 * c-common.h: Removed global variable 'lang_fortran'.
4778 * c-opts.c (c_common_handle_option): Removed code to handle
4779 option '-lang-fortran'. Updated includes.
4780 * c-cppbuiltin.c (c_cpp_builtins): Removed conditional
4781 definition of '__GFORTRAN__'.
4782 (define__GNUC__): Reimplemented to use BASEVER and
4783 cpp_define_formatted.
4784 (builtin_define_with_value_n): Removed.
4785 * c-incpath.h: Renamed to ...
4786 * incpath.h: ... this.
4787 * c-incpath.c: Renamed to ...
4788 * incpath.c: ... this. Updated includes.
4789 * fix-header.c: Updated includes.
4790 * Makefile.in: Replaced c-incpath.[ch] by incpath.[ch].
4791 (c-cppbuiltin.o): Added dependency on and definition of BASEVER.
4792 (OBJ-archive): Added cppdefault.o, incpath.o and prefix.o.
4794 2008-05-25 Eric Botcazou <ebotcazou@adacore.com>
4796 * tree.h: Update the table of flags used on tree nodes.
4797 (TREE_NO_TRAMPOLINE): New accessor for static_flag.
4798 (SAVE_EXPR_RESOLVED_P): Use automatically-built access check.
4799 (FORCED_LABEL): Add access check.
4800 (CALL_EXPR_RETURN_SLOT_OPT): Likewise.
4801 (ASM_INPUT_P): Likewise.
4802 (ASM_VOLATILE_P): Likewise.
4803 (EH_FILTER_MUST_NOT_THROW): Access static_flag directly.
4804 (OMP_SECTION_LAST): Access private_flag directly.
4805 (OMP_RETURN_NOWAIT): Likewise.
4806 (OMP_PARALLEL_COMBINED): Likewise.
4807 (OMP_CLAUSE_PRIVATE_DEBUG): Access public_flag directly.
4808 (OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE): Likewise.
4809 * tree-ssa-propagate.c (STMT_IN_SSA_EDGE_WORKLIST): Access
4810 deprecated_flag directly.
4812 2008-05-25 H.J. Lu <hongjiu.lu@intel.com>
4814 * final.c (frame_pointer_needed): Removed.
4815 * flags.h (frame_pointer_needed): Likewise.
4817 * function.h (rtl_data): Add frame_pointer_needed.
4818 (frame_pointer_needed): New.
4820 2008-05-25 Arthur Loiret <arthur.loiret@u-psud.fr>
4822 * config.gcc (sh2[lbe]*-*-linux*): Allow target.
4824 2008-05-25 Steven Bosscher <stevenb.gcc@gmail.com>
4826 * gcse.c (hash_scan_set): Do not pick up a REG_EQUAL value if
4829 2008-05-25 Alan Modra <amodra@bigpond.net.au>
4831 * c-common.c (strip_array_types): Move function to..
4833 (get_inner_array_type): Delete.
4834 * c-common.h (strip_array_types): Move declaration to..
4836 (get_inner_array_type): Delete.
4837 * config/i386/i386.c (x86_field_alignment): Use strip_array_types.
4838 * config/rs6000/aix.h (ADJUST_FIELD_ALIGN): Likewise.
4839 * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
4840 * config/pa/pa.c (emit_move_sequence): Likewise.
4842 2008-05-24 H.J. Lu <hongjiu.lu@intel.com>
4844 * config/i386/i386.md (*sse_prologue_save_insn): Set length
4847 2008-05-24 Andy Hutchinson <hutchinsonandy@aim.com>
4849 * function.c: Include target hook for nonlocal_goto frame value.
4851 2008-05-24 Richard Guenther <rguenther@suse.de>
4853 * tree-dfa.c (refs_may_alias_p): Re-instantiate case that a scalar
4854 variable can be only accessed through a pointer or a union.
4856 2008-05-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4858 * builtins.c (fold_builtin_fpclassify): Fix spelling of FP_INFINITE.
4859 * doc/extend.texi: Likewise.
4861 2008-05-23 DJ Delorie <dj@redhat.com>
4863 * config/m32c/jump.md (untyped_call): Add.
4865 * config/m32c/m32c.c (m32c_return_addr_rtx): Change pointer type
4867 (m32c_address_cost): Detail costs for indirect offsets.
4869 2008-05-23 Rafael Espindola <espindola@google.com>
4871 * see.c (see_get_extension_data): Don't use SUBREG_REG to test
4872 if a node is a SUBREG.
4873 (see_analyze_one_def): Don't use SUBREG_REG to test if a node
4876 2008-05-23 Paul Brook <paul@codesourcery.com>
4877 Carlos O'Donell <carlos@codesourcery.com>
4879 * doc/extend.texi: Clarify use of __attribute__((naked)).
4880 * doc/tm.texi: Document TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS.
4881 * target.h (gcc_target): Add allocate_stack_slots_for_args.
4882 * function.c (use_register_for_decl): Use
4883 targetm.calls.allocate_stack_slots_for_args.
4884 * target-def.h (TARGET_CALLS): Add TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS.
4885 * config/arm/arm.c (arm_allocate_stack_slots_for_args): New function.
4886 (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Define.
4888 2008-05-23 Eric Botcazou <ebotcazou@adacore.com>
4890 * expr.c (highest_pow2_factor) <BIT_AND_EXPR>: New case.
4892 2008-05-23 Steven Munroe <sjmunroe@us.ibm.com>
4894 * config/rs6000/darwin-ldouble.c (fmsub): Eliminate the full
4895 PACK/UNPACK between FP_SUB_Q and FD_TRUNC so that the result
4896 is only rounded once.
4898 2008-05-23 Richard Guenther <rguenther@suse.de>
4900 * tree-ssa-operands.c (mark_difference_for_renaming): Use bitmap_xor.
4902 2008-05-23 Uros Bizjak <ubizjak@gmail.com>
4903 Jakub Jelinek <jakub@redhat.com>
4906 * configure.ac: Handle --enable-cld.
4907 * configure: Regenerated.
4908 * config.gcc: Add USE_IX86_CLD to tm_defines for x86 targets.
4909 * config/i386/i386.h (struct machine_function): Add needs_cld field.
4910 (ix86_current_function_needs_cld): New define.
4911 * config/i386/i386.md (UNSPEC_CLD): New unspec volatile constant.
4912 (cld): New isns pattern.
4913 (strmov_singleop, rep_mov, strset_singleop, rep_stos, cmpstrnqi_nz_1,
4914 cmpstrnqi_1, strlenqi_1): Set ix86_current_function_needs_cld flag.
4915 * config/i386/i386.opt (mcld): New option.
4916 * config/i386/i386.c (ix86_expand_prologue): Emit cld insn if
4917 TARGET_CLD and ix86_current_function_needs_cld.
4918 (override_options): Use -mcld by default for 32-bit code if
4921 * doc/install.texi (Options specification): Document --enable-cld.
4922 * doc/invoke.texi (Machine Dependent Options)
4923 [i386 and x86-64 Options]: Add -mcld option.
4924 (Intel 386 and AMD x86-64 Options): Document -mcld option.
4926 2008-05-23 Kai Tietz <kai.tietz@onevison.com>
4927 * config/i386/i386.c (return_in_memory_32): Add ATTRIBUTE_UNUSED.
4928 (return_in_memory_64): Likewise.
4929 (return_in_memory_ms_64): Likewise.
4931 2008-05-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4933 * builtin-types.def (BT_FN_INT_INT_INT_INT_INT_INT_VAR): New.
4934 * builtins.c (fold_builtin_fpclassify): New.
4935 (fold_builtin_varargs): Handle BUILT_IN_FPCLASSIFY.
4936 * builtins.def (BUILT_IN_FPCLASSIFY): New.
4937 * c-common.c (handle_type_generic_attribute): Adjust to accept
4938 fixed arguments before an elipsis.
4939 (check_builtin_function_arguments): Handle BUILT_IN_FPCLASSIFY.
4940 * doc/extend.texi: Document __builtin_fpclassify.
4942 2008-05-22 Aldy Hernandez <aldyh@redhat.com>
4944 * omp-low.c (gate_expand_omp_ssa): Remove.
4945 (pass_expand_omp_ssa): Remove.
4946 (gate_expand_omp): Do not check for flag_openmp_ssa.
4947 * common.opt (-fopenmp-ssa): Remove.
4948 * passes.c (init_optimization_passes): Remove pass_expand_omp_ssa.
4950 2008-05-22 Kaz Kojima <kkojima@gcc.gnu.org>
4952 * config/sh/sh.opt (mfixed-range): New option.
4953 * config/sh/sh-protos.h (sh_fix_range): Declare.
4954 * config/sh/sh.c (sh_fix_range): New function.
4955 * config/sh/sh.h (sh_fixed_range_str): Declare.
4956 (OVERRIDE_OPTIONS): Call sh_fix_range if sh_fixed_range_str
4958 * doc/invoke.texi (SH Options): Document -mfixed-range.
4960 2008-05-22 Kai Tietz <kai.tietz@onevision.com>
4962 * config/i386/sol2-10.h (SUBTARGET_RETURN_IN_MEMORY): Undefine
4963 it before the redeclaration.
4965 2008-05-22 Anatoly Sokolov <aesok@post.ru>
4967 * config/avr/avr.c (get_sequence_length): Add new function.
4968 (expand_prologue, expand_epilogue): Remove duplicate code.
4970 2008-05-22 Rafael Espindola <espindola@google.com>
4972 * see.c (see_pre_insert_extensions): Use copy_rtx to avoid invalid rtx
4975 2008-05-22 H.J. Lu <hongjiu.lu@intel.com>
4977 * defaults.h (UNITS_PER_SIMD_WORD): Add scalar mode as argument.
4978 * doc/tm.texi (UNITS_PER_SIMD_WORD): Likewise.
4980 * tree-vect-analyze.c (vect_compute_data_ref_alignment): Replace
4981 UNITS_PER_SIMD_WORD with GET_MODE_SIZE (TYPE_MODE (vectype)).
4982 (vect_update_misalignment_for_peel): Likewise.
4983 (vector_alignment_reachable_p): Likewise.
4984 * tree-vect-transform.c (vectorizable_load): Likewise.
4985 * tree-vectorizer.c (vect_supportable_dr_alignment): Likewise.
4986 (get_vectype_for_scalar_type): Pass mode of scalar_type
4987 to UNITS_PER_SIMD_WORD.
4989 * config/arm/arm.h (UNITS_PER_SIMD_WORD): Updated.
4990 * config/i386/i386.h (UNITS_PER_SIMD_WORD): Likewise.
4991 * config/mips/mips.h (UNITS_PER_SIMD_WORD): Likewise.
4992 * config/rs6000/rs6000.h (UNITS_PER_SIMD_WORD): Likewise.
4993 * config/sparc/sparc.h (UNITS_PER_SIMD_WORD): Likewise.
4995 2008-05-22 Ira Rosen <irar@il.ibm.com>
4997 PR tree-optimization/36293
4998 * tree-vect-transform.c (vect_transform_strided_load): Don't check
4999 if the first load must be skipped because of a gap.
5001 2008-05-22 Richard Guenther <rguenther@suse.de>
5003 * tree-dfa.c (refs_may_alias_p): Exit early if possible. Handle
5004 more cases of offset disambiguation that is possible if
5005 strict-aliasing rules apply.
5006 * tree-ssa-loop-im.c (mem_refs_may_alias_p): Use refs_may_alias_p
5007 for basic offset and type-based disambiguation.
5009 2008-05-21 H.J. Lu <hongjiu.lu@intel.com>
5011 * config/i386/i386.c (ix86_expand_vector_init_one_var): Use
5012 ix86_expand_vector_set on V16QImode for SSE4.1.
5014 2008-05-21 Tom Tromey <tromey@redhat.com>
5016 * c.opt (Wimport): Mark as undocumented.
5017 * doc/invoke.texi (Option Summary): Don't mention -Wimport or
5019 (Warning Options): Likewise.
5020 * doc/cppopts.texi: Don't mention -Wimport.
5022 2008-05-21 Sebastian Pop <sebastian.pop@amd.com>
5024 PR tree-optimization/36287
5025 PR tree-optimization/36286
5026 * lambda-code.c (build_access_matrix): Do not use the loop->num
5027 for computing the number of induction variables: use the loop depth
5030 2008-05-21 Kai Tietz <kai.tietz@onevision.com>
5033 * config/i386/cygming.h (ASM_OUTPUT_LABELREF): Honor
5034 option -f(no-)leading-underscore.
5036 2008-05-21 H.J. Lu <hongjiu.lu@intel.com>
5038 * config/i386/i386.c (ix86_expand_vector_init_general): Use
5039 GET_MODE_NUNITS (mode).
5041 2008-05-21 Peter Bergner <bergner@vnet.ibm.com>
5043 * doc/invoke.texi: Add cpu_type's 464 and 464fp.
5044 (-mmulhw): Add 464 to description.
5045 (-mdlmzb): Likewise.
5046 * config.gcc: Handle --with-cpu=464 and --with-cpu=464fp.
5047 * config/rs6000/rs6000.c (processor_target_table): Add 464 and
5049 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add 464 and 464fp support.
5050 * config/rs6000/t-fprules (MULTILIB_MATCHES_FLOAT): Include -mcpu=464.
5051 * config/rs6000/rs6000.md: Update comments for 464.
5053 2008-05-21 Janis Johnson <janis187@us.ibm.com>
5055 * doc/sourcebuild.texi (Test Directives): Add dg-xfail-run-if.
5057 2008-05-21 H.J. Lu <hongjiu.lu@intel.com>
5059 * config/i386/sse.md (vec_extractv4sf): Removed.
5060 (vec_extractv2df): Likewise.
5061 (vec_extractv2di): Likewise.
5062 (vec_extractv4si): Likewise.
5063 (vec_extractv8hi): Likewise.
5064 (vec_extractv16qi): Likewise.
5065 (vec_extract<mode>): New.
5067 2008-05-21 H.J. Lu <hongjiu.lu@intel.com>
5069 * config/i386/sse.md (vec_setv4sf): Removed.
5070 (vec_setv2df): Likewise.
5071 (vec_setv2di): Likewise.
5072 (vec_setv4si): Likewise.
5073 (vec_setv8hi): Likewise.
5074 (vec_setv16qi): Likewise.
5075 (vec_set<mode>): New.
5077 2008-05-21 H.J. Lu <hongjiu.lu@intel.com>
5079 * config/i386/i386.c (ix86_expand_vector_init_general): Remove
5080 goto for vec_concat and vec_interleave.
5082 2008-05-21 H.J. Lu <hongjiu.lu@intel.com>
5084 * config/i386/sse.md (vec_initv4sf): Removed.
5085 (vec_initv2df): Likewise.
5086 (vec_initv2di): Likewise.
5087 (vec_initv4si): Likewise.
5088 (vec_initv8hi): Likewise.
5089 (vec_initv16qi): Likewise.
5090 (vec_init<mode>): New.
5092 2008-05-21 Joseph Myers <joseph@codesourcery.com>
5094 * collect2.c (find_a_file): Use IS_ABSOLUTE_PATH.
5096 2008-05-21 Tom Tromey <tromey@redhat.com>
5098 * ggc-zone.c (lookup_page_table_if_allocated): New function.
5099 (zone_find_object_offset): Likewise.
5100 (gt_ggc_m_S): Likewise.
5101 (highest_bit): Likewise.
5102 * ggc-page.c (gt_ggc_m_S): New function.
5103 * stringpool.c (string_stack): Remove.
5104 (init_stringpool): Update.
5105 (ggc_alloc_string): Use ggc_alloc.
5106 (maybe_delete_ident): New function.
5107 (ggc_purge_stringpool): Likewise.
5108 (gt_ggc_m_S): Remove.
5109 * ggc-common.c (ggc_protect_identifiers): New global.
5110 (ggc_mark_roots): Call ggc_purge_stringpool. Use
5111 ggc_protect_identifiers.
5112 * ggc.h (ggc_protect_identifiers): Declare.
5113 (gt_ggc_m_S): Update.
5114 (ggc_purge_stringpool): Declare.
5115 * toplev.c (compile_file): Set and reset ggc_protect_identifiers.
5116 * gengtype.c (write_types_process_field) <TYPE_STRING>: Remove
5118 (write_root): Cast gt_ggc_m_S to gt_pointer_walker.
5120 2008-05-21 David S. Miller <davem@davemloft.net>
5122 * config.gcc (sparc-*-linux*): Always include sparc/t-linux in
5125 2008-05-21 Eric Botcazou <ebotcazou@adacore.com>
5127 * cfgexpand.c (tree_expand_cfg): Zap the EH throw statement table
5130 2008-05-20 David Daney <ddaney@avtrex.com>
5132 * config/mips/mips.md (UNSPEC_SYNC_NEW_OP_12,
5133 UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE_12): New define_constants.
5134 (UNSPEC_SYNC_EXCHANGE, UNSPEC_MEMORY_BARRIER, UNSPEC_SET_GOT_VERSION,
5135 UNSPEC_UPDATE_GOT_VERSION): Renumber.
5136 (optab, insn): Add 'plus' and 'minus' to define_code_attr.
5137 (atomic_hiqi_op): New define_code_iterator.
5138 (sync_compare_and_swap<mode>): Call mips_expand_atomic_qihi instead of
5139 mips_expand_compare_and_swap_12.
5140 (compare_and_swap_12): Use MIPS_COMPARE_AND_SWAP_12 instead of
5141 MIPS_COMPARE_AND_SWAP_12_0. Pass argument to MIPS_COMPARE_AND_SWAP_12.
5142 (sync_<optab><mode>, sync_old_<optab><mode>,
5143 sync_new_<optab><mode>, sync_nand<mode>, sync_old_nand<mode>,
5144 sync_new_nand<mode>): New define_expands for HI and QI mode operands.
5145 (sync_<optab>_12, sync_old_<optab>_12, sync_new_<optab>_12,
5146 sync_nand_12, sync_old_nand_12, sync_new_nand_12): New insns.
5147 (sync_lock_test_and_set<mode>): New define_expand for HI and QI modes.
5148 (test_and_set_12): New insn.
5149 (sync_old_add<mode>, sync_new_add<mode>, sync_old_<optab><mode>,
5150 sync_new_<optab><mode>, sync_old_nand<mode>,
5151 sync_new_nand<mode>, sync_lock_test_and_set<mode>): Add early
5152 clobber to operand 0 for SI and DI mode insns.
5153 * config/mips/mips-protos.h (mips_gen_fn_6, mips_gen_fn_5,
5154 mips_gen_fn_4): New typedefs.
5155 (mips_gen_fn_ptrs): Define new union type.
5156 (mips_expand_compare_and_swap_12): Remove declaration.
5157 (mips_expand_atomic_qihi): Declare function.
5158 * config/mips/mips.c (mips_expand_compare_and_swap_12): Rename to...
5159 (mips_expand_atomic_qihi): ... this. Use new generator function
5161 * config/mips/mips.h (MIPS_COMPARE_AND_SWAP_12): Add OPS parameter.
5162 (MIPS_COMPARE_AND_SWAP_12_0): Delete macro.
5163 (MIPS_COMPARE_AND_SWAP_12_ZERO_OP, MIPS_COMPARE_AND_SWAP_12_NONZERO_OP,
5164 MIPS_SYNC_OP_12, MIPS_SYNC_OP_12_NOT_NOP,
5165 MIPS_SYNC_OP_12_NOT_NOT, MIPS_SYNC_OLD_OP_12,
5166 MIPS_SYNC_OLD_OP_12_NOT_NOP, MIPS_SYNC_OLD_OP_12_NOT_NOP_REG,
5167 MIPS_SYNC_OLD_OP_12_NOT_NOT, MIPS_SYNC_OLD_OP_12_NOT_NOT_REG,
5168 MIPS_SYNC_NEW_OP_12, MIPS_SYNC_NEW_OP_12_NOT_NOP,
5169 MIPS_SYNC_NEW_OP_12_NOT_NOT, MIPS_SYNC_EXCHANGE_12,
5170 MIPS_SYNC_EXCHANGE_12_ZERO_OP, MIPS_SYNC_EXCHANGE_12_NONZERO_OP):
5173 2008-05-20 H.J. Lu <hongjiu.lu@intel.com>
5175 * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): Add
5178 2008-05-20 Anatoly Sokolov <aesok@post.ru>
5180 * config/avr/avr.h (machine_function): Add 'is_OS_main' field.
5181 * config/avr/avr.c (avr_OS_main_function_p): Add new function.
5182 (avr_attribute_table): Add 'OS_main' function attribute.
5183 (avr_regs_to_save, expand_prologue, expand_epilogue): Handle
5184 functions with 'OS_main' attribute.
5186 2008-05-20 Richard Guenther <rguenther@suse.de>
5188 PR tree-optimization/35204
5189 * tree-ssa-sccvn.c (extract_and_process_scc_for_name): New
5190 helper, split out from ...
5191 (DFS): ... here. Make the DFS walk non-recursive.
5193 2008-05-20 Sebastian Pop <sebastian.pop@amd.com>
5194 Jan Sjodin <jan.sjodin@amd.com>
5196 PR tree-optimization/36181
5197 * tree-parloops.c (loop_has_vector_phi_nodes): New.
5198 (parallelize_loops): Don't parallelize when the loop has vector
5201 2008-05-20 Jan Sjodin <jan.sjodin@amd.com>
5202 Sebastian Pop <sebastian.pop@amd.com>
5204 * tree-loop-linear.c (gather_interchange_stats): Look in the access
5205 matrix, and never look at the tree representation of the memory
5207 (linear_transform_loops): Computes parameters and access matrices.
5208 * tree-data-ref.c (compute_data_dependences_for_loop): Returns false
5210 (access_matrix_get_index_for_parameter): New.
5211 * tree-data-ref.h (struct access_matrix): New.
5212 (AM_LOOP_NEST_NUM, AM_NB_INDUCTION_VARS, AM_PARAMETERS, AM_MATRIX,
5213 AM_NB_PARAMETERS, AM_CONST_COLUMN_INDEX, AM_NB_COLUMNS,
5214 AM_GET_SUBSCRIPT_ACCESS_VECTOR, AM_GET_ACCESS_MATRIX_ELEMENT,
5215 am_vector_index_for_loop): New.
5216 (struct data_reference): Add field access_matrix.
5217 (DR_ACCESS_MATRIX): New.
5218 (compute_data_dependences_for_loop): Update declaration.
5219 (lambda_collect_parameters, lambda_compute_access_matrices): Declared.
5220 * lambda.h (lambda_vector_vec_p): Declared.
5221 * lambda-code.c: Depend on pointer-set.h.
5222 (lambda_collect_parameters_from_af, lambda_collect_parameters,
5223 av_for_af_base, av_for_af, build_access_matrix,
5224 lambda_compute_access_matrices): New.
5225 * Makefile.in (lambda-code.o): Depend on pointer-set.h.
5227 2008-05-20 Joseph Myers <joseph@codesourcery.com>
5229 * doc/install.texi2html: Generate gcc-vers.texi in $DESTDIR not
5232 2008-05-20 Jan Sjodin <jan.sjodin@amd.com>
5233 Sebastian Pop <sebastian.pop@amd.com>
5235 PR tree-optimization/36206
5236 * tree-scalar-evolution.c: Remove enum INSERT_SUPERLOOP_CHRECS,
5238 (instantiate_scev_1): Rename flags to fold_conversions.
5239 Do not check for INSERT_SUPERLOOP_CHRECS, keep SSA_NAMEs defined
5240 outeside instantiation_loop.
5241 * tree-chrec.h (evolution_function_is_affine_in_loop): New.
5242 (evolution_function_is_affine_or_constant_p): Removed.
5243 * tree-data-ref.c (dr_analyze_indices): Replace resolve_mixers with
5245 (analyze_siv_subscript): Pass in the loop nest number.
5246 Call evolution_function_is_affine_in_loop instead of
5247 evolution_function_is_affine_p.
5248 (analyze_overlapping_iterations): Pass in the loop nest number.
5250 2008-05-20 Jan Sjodin <jan.sjodin@amd.com>
5251 Sebastian Pop <sebastian.pop@amd.com>
5253 PR tree-optimization/36206
5254 * tree-chrec.h (chrec_fold_op): New.
5255 * tree-data-ref.c (initialize_matrix_A): Traverse NOP_EXPR, PLUS_EXPR,
5258 2008-05-20 Nathan Sidwell <nathan@codesourcery.com>
5260 * c-incpath.c (INO_T_EQ): Do not define on non-inode systems.
5262 (remove_duplicates): Do not set inode on non-inode systems.
5265 2008-05-20 Sandra Loosemore <sandra@codesourcery.com>
5267 * config.gcc (tm_file): Update comments about relative pathnames.
5269 2008-05-20 Richard Guenther <rguenther@suse.de>
5271 * tree-ssa-reassoc.c (fini_reassoc): Use the statistics infrastructure.
5272 * tree-ssa-sccvn.c (process_scc): Likewise.
5273 * tree-ssa-sink.c (execute_sink_code): Likewise.
5274 * tree-ssa-threadupdate.c (thread_through_all_blocks): Likewise.
5275 * tree-vrp.c (process_assert_insertions): Likewise.
5276 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Likewise.
5277 (perform_tree_ssa_dce): Likewise.
5278 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Likewise.
5279 (dump_dominator_optimization_stats): Likewise.
5280 * tree-vectorizer.c (vectorize_loops): Likewise.
5282 2008-05-20 Richard Guenther <rguenther@suse.de>
5284 * tree-vn.c (vn_lookup_with_vuses): Do not use the alias oracle.
5286 2008-05-20 Kai Tietz <kai.tietz@onevision.com>
5288 * config/i386/i386-protos.h (ix86_return_in_memory): Removed.
5289 (ix86_i386elf_return_in_memory): Likewise.
5290 (ix86_i386interix_return_in_memory): Likewise.
5291 * config/i386/i386-interix.h (TARGET_RETURN_IN_MEMORY): Removed.
5292 (SUBTARGET_RETURN_IN_MEMORY): New.
5293 * config/i386/i386elf.h: Likewise.
5294 * config/i386/ptx4-i.h: Likewise.
5295 * config/i386/sol2-10.h: Likewise.
5296 * config/i386/sysv4.h: Likewise.
5297 * config/i386/vx-common.h: Likewise.
5298 * config/i386/i386.h (TARGET_RETURN_IN_MEMORY): Removed.
5299 * config/i386/i386.c (ix86_return_in_memory): Made static and
5300 make use of optional SUBTARGET_RETURN_IN_MEMORY macro.
5301 (ix86_i386elf_return_in_memory): Removed.
5302 (ix86_i386interix_return_in_memory): Removed.
5303 (TARGET_RETURN_IN_MEMORY): Declared within i386.c only.
5304 * target-def.h (TARGET_RETURN_IN_MEMORY): Remove protection #ifdef.
5306 2008-05-20 Alexandre Oliva <aoliva@redhat.com>
5308 * cselib.c (cselib_record_sets): Use correct mode for IF_THEN_ELSE.
5310 2008-05-19 Xinliang David Li <davidxl@google.com>
5312 * tree-ssa-dce.c: Revert patches of 2008-05-17 and 2008-05-18.
5314 * common.opt: Ditto.
5315 * doc/invoke.texi: Ditto.
5317 2008-05-19 Eric Botcazou <ebotcazou@adacore.com>
5319 * tree.c (substitute_in_expr) <tcc_vl_exp>: Fix thinko.
5320 (substitute_placeholder_in_expr) <tcc_vl_exp>: Minor tweak.
5322 2008-05-19 H.J. Lu <hongjiu.lu@intel.com>
5324 * config/i386/i386.c (ix86_expand_vector_init_concat): Change
5325 sizes of operand array from 8/4 to 4/2.
5326 (ix86_expand_vector_init_general): Change size of operand array
5327 from 32 to 16. Remove op0, op1 and half_mode.
5329 2008-05-19 H.J. Lu <hongjiu.lu@intel.com>
5331 * config/i386/i386.c (ix86_expand_vector_init_concat): New.
5332 (ix86_expand_vector_init_interleave): Likewise.
5333 (ix86_expand_vector_init_general): Use them. Assert
5334 word_mode == SImode when n_words == 4.
5336 2008-05-19 Uros Bizjak <ubizjak@gmail.com>
5338 * config/i386/i386.c (ix86_secondary_reload): New static function.
5339 (TARGET_SECONDARY_RELOAD): New define.
5340 * config/i386/i386.h (SECONDARY_OUTPUT_RELOAD_CLASS): Remove.
5341 * config/i386/i386.md (reload_outqi): Remove.
5343 2008-05-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5346 * builtins.c (mathfn_built_in_1): Renamed from mathfn_built_in.
5347 Add `implicit' parameter. Handle BUILT_IN_SIGNBIT.
5348 (mathfn_built_in): Rewrite in terms of mathfn_built_in_1.
5349 (fold_builtin_classify): Handle BUILT_IN_ISINF_SIGN.
5350 (fold_builtin_1): Likewise.
5351 * builtins.def (BUILT_IN_ISINF_SIGN): New.
5352 c-common.c (check_builtin_function_arguments): Handle
5353 BUILT_IN_ISINF_SIGN.
5354 * doc/extend.texi: Document __builtin_isinf_sign.
5355 * fold-const.c (operand_equal_p): Handle COND_EXPR.
5357 2008-05-18 Eric Botcazou <ebotcazou@adacore.com>
5359 * tree-ssa-dom.c (tree_ssa_dominator_optimize): If some blocks need
5360 EH cleanup at the end of the pass, search for those that have been
5361 turned into forwarder blocks and do the cleanup on their successor.
5363 2008-05-18 Richard Guenther <rguenther@suse.de>
5365 * tree-cfg.c (verify_gimple_expr): Allow conversions from
5366 pointers to sizetype and vice versa.
5368 2008-05-18 Xinliang David Li <davidxl@google.com>
5370 * gcc/tree-ssa-dce.c: Coding style fix.
5371 (check_pow): Documentation comment.
5372 (check_log): Documenation comment. Coding style fix.
5373 (is_unnecessary_except_errno_call): Ditto.
5374 (gen_conditions_for_pow): Ditto.
5375 (gen_conditions_for_log): Ditto.
5376 (gen_shrink_wrap_conditions): Ditto.
5377 (shrink_wrap_one_built_in_calls): Ditto.
5378 * gcc/doc/invoke.texi: Better documentation string.
5379 * ChangeLog: Fix wrong change log entries from
5380 May 17 checkin on function call DCE.
5382 2008-05-17 Kaz Kojima <kkojima@gcc.gnu.org>
5384 * config/sh/sh.c (sh_output_mi_thunk): Update the use of init_flow.
5386 2008-05-17 Kenneth Zadeck <zadeck@naturalbridge.com>
5388 * doc/rtl.texi (RTL_CONST_CALL_P, RTL_PURE_CALL_P): Fixed typos.
5389 * df-problems.c (simulation routines): Fixed block comment to
5390 properly say how to add forwards scanning functions.
5392 2008-05-17 Eric Botcazou <ebotcazou@adacore.com>
5394 * tree-inline.c (setup_one_parameter): Remove dead code.
5396 2008-05-17 Eric Botcazou <ebotcazou@adacore.com>
5398 * fold-const.c (fold_unary) <CASE_CONVERT>: Fold the cast into
5399 a BIT_AND_EXPR only for an INTEGER_TYPE.
5401 2008-05-17 Xinliang David Li <davidxl@google.com>
5403 * gcc/tree-ssa-dce.c (cond_dead_built_in_calls): New static variable.
5404 (check_pow, check_log, is_unnecessary_except_errno_call): New
5405 functions to check for eliminating math functions that are pure
5406 except for setting errno.
5407 (gen_conditions_for_pow, gen_conditionas_for_log): New functions to
5408 general condition expressions for shrink-wrapping pow/log calls.
5409 (gen_shrink_wrap_conditions): Ditto.
5410 (shrink_wrap_one_built_in_call): Ditto.
5411 (shrink_wrap_conditional_dead_built_in_calls): Ditto.
5412 (mark_operand_necessary): If debugging, output if OP is necessary.
5413 (eliminate_unnecessary_stmts): Eliminate pow, log calls that are
5415 * gcc/opts.c (decode_options): set flag_tree_builtin_dce to 1 when
5417 * gcc/common.opt: New user flag -ftree-builtin-dce.
5418 * gcc/doc/invoke.texi (-ftree-builtin-dce): New option.
5420 2008-05-16 David S. Miller <davem@davemloft.net>
5422 * config/sparc/linux.h (NO_PROFILE_COUNTERS): Undef before overriding.
5423 * config/sparc/linux64.h (NO_PROFILE_COUNTERS): Likewise.
5425 2008-05-16 Uros Bizjak <ubizjak@gmail.com>
5428 * config/i386/i386.h (SECONDARY_MEMORY_NEEDED_MODE): New define.
5430 2008-05-16 Kenneth Zadeck <zadeck@naturalbridge.com>
5432 * ifcvt.c (dead_or_predicable): Rename
5433 df_simulate_one_insn_backwards to df_simulate_one_insn.
5434 * recog.c (peephole2_optimize): Ditto.
5435 * rtl-factoring.c (collect_pattern_seqs, clear_regs_live_in_seq):
5437 * df.h: Rename df_simulate_one_insn_backwards to
5438 df_simulate_one_insn. and delete df_simulate_one_insn_forwards.
5439 * df-problems.c (df_simulate_artificial_refs_at_top) Reversed
5440 scanning of defs and uses.
5441 (df_simulate_one_insn_backwards): Renamed to df_simulate_one_insn.
5442 (df_simulate_one_insn_forwards): Removed.
5444 2008-05-16 Doug Kwan <dougkwan@google.com>
5446 * real.c (real_to_decimal, real_to_hexadecimal): Distinguish
5448 (real_from_string): Handle NaNs and Inf as approriate.
5450 2008-05-16 Nathan Froyd <froydnj@codesourcery.com>
5452 * doc/gty.texi (Source Files Containing Type Information): Note
5453 that headers should appear first in the gtfiles list.
5455 2008-05-16 Kenneth Zadeck <zadeck@naturalbridge.com>
5457 * tree.def (COND_EXEC): Properly documented this code.
5459 2008-05-16 Diego Novillo <dnovillo@google.com>
5461 * dwarf2asm.c (dw2_assemble_integer): Clarify comment.
5462 * tree-nested.c (get_trampoline_type): Set DECL_CONTEXT for
5465 2008-05-16 Kenneth Zadeck <zadeck@naturalbridge.com>
5467 * tree-ssa-dse (max_stmt_uid): Removed.
5468 (get_stmt_uid, dse_possible_dead_store_p, dse_optimize_stmt,
5469 tree_ssa_dse): Encapsulate all uses of stmt_ann->uid.
5470 * tree-ssa-sccvn.c (compare_ops, init_scc_vn): Ditto.
5471 * function.h (cfun.last_stmt_uid): New field.
5472 * tree-flow-inline.h (set_gimple_stmt_uid, gimple_stmt_uid,
5473 gimple_stmt_max_uid, set_gimple_stmt_max_uid, inc_gimple_stmt_max_uid):
5475 * tree-dfa.c (renumber_gimple_stmt_uids): New function.
5476 (create_stmt_ann): Initialize the ann->uid field.
5477 * tree-ssa-pre.c (compute_avail): Encapsulate the stmt_ann->uid
5479 * tree-flow.h (renumber_gimple_stmt_uids): New function.
5481 2008-05-16 Nathan Froyd <froydnj@codesourcery.com>
5483 * tree-flow.h (init_empty_tree_cfg_for_function): Declare.
5484 * tree-cfg.c (init_empty_tree_cfg_for_function): Define.
5485 (init_empty_tree_cfg): Call it.
5487 2008-05-16 Kenneth Zadeck <zadeck@naturalbridge.com>
5489 * cfg.c (init_flow): Add argument THE_FUN. Use it instead of cfun.
5492 2008-05-16 Kenneth Zadeck <zadeck@naturalbridge.com>
5494 * doc/invoke.text (-fdump-tree-*-verbose): New option.
5495 * tree-dump.c (dump_options): New verbose option.
5496 * tree-pretty-print.c (dump_phi_nodes, dump_generic_bb_buff):
5498 * tree-pass.h (TDF_VERBOSE): New dump flag.
5499 * print-tree.c (print_node): Added code to be able to print PHI_NODES.
5500 (tree-flow.h): Added include.
5501 * Makefile.in (print-tree.o): Added TREE_FLOW_H.
5503 2008-05-16 Bernd Schmidt <bernd.schmidt@analog.com>
5505 * config/bfin/bfin.c (bfin_discover_loops): Delete empty loops.
5507 From Jie Zhang <jie.zhang@analog.com>
5508 * config/bfin/t-bfin-elf (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
5509 MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Remove mcpu=bf532-0.3,
5510 mcpu=bf561-none and mcpu=bf561-0.2.
5511 * config/bfin/t-bfin-uclinux (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
5512 MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Likewise.
5513 * config/bfin/t-bfin-linux (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
5514 MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Likewise.
5515 * config/bfin/bfin-protos.h (enum bfin_cpu_type): Add BFIN_CPU_UNKNOWN.
5516 * config/bfin/elf.h (STARTFILE_SPEC): Use specific CRT for BF561.
5517 (LIB_SPEC): Use proper linker script for bf561. Error if no mcpu
5519 * config/bfin/bfin.c (bfin_cpu_type): Set to BFIN_CPU_UNKNOWN.
5520 (cputype_selected): Remove.
5521 (bfin_handle_option): Don't use cputype_selected.
5522 (override_options): When no mcpu option, enable all workarounds.
5523 Don't use bfin_workarounds.
5524 * config/bfin/bfin.h (DRIVER_SELF_SPECS): Don't set default
5526 (DEFAULT_CPU_TYPE): Don't define.
5528 2008-05-16 Richard Guenther <rguenther@suse.de>
5530 * tree-ssa-propagate.c (substitute_and_fold): Fix stmt walking
5531 on deletion of the last stmt.
5533 2008-05-15 H.J. Lu <hongjiu.lu@intel.com>
5535 * config/i386/i386.c (ix86_expand_vector_init_general): Optimize
5536 V8HImode for SSE2 and V16QImode for SSE4.1.
5538 2008-05-15 Kenneth Zadeck <zadeck@naturalbridge.com>
5540 * cgraph.h (compute_inline_parameters): Made public.
5541 * tree-pass.h (ipa_opt_pass): Removed function_generate_summary,
5542 variable_generate_summary, function_write_summary,
5543 variable_write_summary, variable_read_summary. Added generate_summary,
5544 write_summary, read_summary.
5545 * cgraphunit.c (cgraph_process_new_functions): Changed call from
5546 pass_ipa_inline.function_generate_summary, to
5547 compute_inline_parameters.
5548 * ipa-inline.c (compute_inline_parameters): Made public and added
5550 (compute_inline_parameters_for_current): New function.
5551 (pass_inline_param): Now calls compute_inline_parameters_for_current.
5552 (inline_generate_summary): Removed parameter and made to loop over
5554 (pass_ipa_inline): Updated for new IPA_PASS structure.
5555 * passes.c (execute_ipa_summary_passes): Now is called once per
5556 pass rather than once per node*pass.
5558 2008-05-15 Anatoly Sokolov <aesok@post.ru>
5560 * config/avr/avr.c (avr_base_arch_macro, avr_have_movw_lpmx_p,
5561 avr_have_mul_p, avr_asm_only_p): Remove variables.
5562 (avr_override_options): Remove initialization of removed variables.
5563 (avr_file_start): Convert removed variables to fields of
5564 'struct base_arch_s *avr_current_arch'.
5565 * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): (Ditto.).
5566 (AVR_HAVE_MUL): (Ditto.).
5567 (AVR_HAVE_MOVW): (Ditto.).
5568 (AVR_HAVE_LPMX): (Ditto.).
5569 (avr_base_arch_macro, avr_have_movw_lpmx_p, avr_have_mul_p,
5570 avr_asm_only_p): Remove declaration.
5572 2008-05-15 Diego Novillo <dnovillo@google.com>
5574 * config/arm/arm.c (arm_return_in_memory): Fix return type.
5575 * config/arm/arm-protos.h (arm_return_in_memory): Likewise.
5577 2008-05-15 Adam Nemet <anemet@caviumnetworks.com>
5580 * combine.c (check_conversion): Rename back to check_promoted_subreg.
5581 Don't call record_truncated_value from here.
5582 (record_truncated_value): Turn it into a for_each_rtx callback.
5583 (record_truncated_values): New function.
5584 (combine_instructions): Call note_uses with record_truncated_values.
5585 Change name of check_conversion to check_promoted_subreg.
5587 2008-05-15 Janis Johnson <janis187@us.ibm.com>
5589 * doc/sourcebuild.texi: Document support for torture tests.
5591 2008-05-15 Uros Bizjak <ubizjak@gmail.com>
5593 * config/i386/sse.md (*vec_concatv2sf_sse4_1): Add "m" constraint
5594 to alternative 4 of operand 2.
5596 2008-05-15 Richard Guenther <rguenther@suse.de>
5598 * tree-pass.h (current_pass): Declare.
5599 (get_pass_for_id): Likewise.
5600 * passes.c (passes_by_id, passes_by_id_size): New globals.
5601 (set_pass_for_id): New function.
5602 (get_pass_for_id): Likewise.
5603 (register_one_dump_file): Use set_pass_for_id to populate passes_by_id.
5604 (execute_function_todo): Flush per function statistics.
5605 * toplev.c (compile_file): Init statistics.
5606 (general_init): Do early statistics initialization.
5607 (finalize): Finish statistics.
5608 * statistics.h (statistics_early_init): Declare.
5609 (statistics_init): Likewise.
5610 (statistics_fini): Likewise.
5611 (statistics_fini_pass): Likewise.
5612 (statistics_counter_event): Likewise.
5613 (statistics_histogram_event): Likewise.
5614 * statistics.c: New file.
5615 * Makefile.in (OBJS-common): Add statistics.o.
5616 (statistics.o): Add dependencies.
5617 * doc/invoke.texi (-fdump-statistics): Document.
5619 * tree-ssa-pre.c (compute_antic): Use statistics_histogram_event.
5621 (execute_pre): Use statistics_counter_event.
5622 * tree-ssa-propagate.c (struct prop_stats_d): Add num_dce field.
5623 (substitute_and_fold): Increment it. Use statistics_counter_event.
5625 2008-05-15 Diego Novillo <dnovillo@google.com>
5627 http://gcc.gnu.org/ml/gcc-patches/2008-05/msg00893.html
5629 * treestruct.def (TS_STRUCT_FIELD_TAG): Remove.
5630 * tree-ssa-alias.c (new_type_alias): Remove references to
5631 sub-variables from comment.
5632 * tree-ssa-operands.c (swap_tree_operands): Likewise.
5634 2008-05-15 H.J. Lu <hongjiu.lu@intel.com>
5636 * config/i386/sse.md (*vec_concatv2sf_sse4_1): Set prefix_extra
5637 attribute to 1 only for insertps alternative.
5639 2008-05-15 Bernd Schmidt <bernd.schmidt@analog.com>
5641 * config/bfin/bfin.md (loadbytes): New pattern.
5642 * config/bfin/bfin.c (enum bfin_builtins): Add BFIN_BUILTIN_LOADBYTES.
5643 (bfin_init_builtins): Initialize it.
5644 (bdesc_1arg): Add it.
5646 2008-05-15 Sa Liu <saliu@de.ibm.com>
5648 * testsuite/gfortran.dg/c_kind_int128_test1.f03: New.
5649 * testsuite/gfortran.dg/c_kind_int128_test2.f03: New.
5650 * testsuite/lib/target-supports.exp: Add
5651 check_effective_target_fortran_integer_16.
5653 2008-05-15 Bernd Schmidt <bernd.schmidt@analog.com>
5655 * config/bfin/bfin.h (TARGET_RETURN_IN_MEMORY): Don't define here.
5656 * config/bfin/bfin-protos.h (bfin_return_in_memory): Don't declare.
5657 * config/bfin/bfin.c (bfin_return_in_memory): Now static. Return bool.
5658 (TARGET_RETURN_IN_MEMORY): Define.
5660 2008-05-15 Richard Guenther <rguenther@suse.de>
5663 * tree-ssa-alias.c (new_type_alias): Do not set TREE_READONLY.
5664 * tree-flow-inline.h (unmodifiable_var_p): Memory tags never
5665 represent unmodifiable vars.
5667 2008-05-15 Richard Guenther <rguenther@suse.de>
5669 * tree-dfa.c (refs_may_alias_p): Allow all kinds of
5670 INDIRECT_REF and TARGET_MEM_REF.
5671 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle
5674 2008-05-15 Uros Bizjak <ubizjak@gmail.com>
5675 H.J. Lu <hongjiu.lu@intel.com>
5677 * config/i386/sse.md (*vec_concatv2sf_sse4_1): New insn pattern.
5678 (*vec_concatv2si_sse4_1): Use vector_move_operand predicate
5679 for operand 2. Remove pinsr{q,d} with 0x0 immediate operand from
5680 insn alternatives. Add missing alternatives.
5681 (*vec_concatv2di_rex64_sse4_1): Likewise.
5682 (*vec_concatv2si_sse2): Use "x" register constraint instead of "Y2".
5683 (*vec_concatv2di_rex64_sse): Rename from *vec_concatv2di_rex64.
5686 2008-05-15 Richard Guenther <rguenther@suse.de>
5688 PR tree-optimization/36009
5689 PR tree-optimization/36204
5690 * tree-ssa-loop-im.c (tree-ssa-propagate.h): Include.
5691 (determine_invariantness_stmt): Record the loop a store is
5693 * Makefile.in (tree-ssa-loop-im.o): Add tree-ssa-propagate.h
5696 2008-05-15 Richard Guenther <rguenther@suse.de>
5698 PR tree-optimization/34330
5699 * tree-ssa-alias.c (get_smt_for): Only assert that accesses
5700 through the pointer will alias the SMT.
5702 2008-05-14 Andreas Tobler <a.tobler@schweiz.org>
5704 * config/sparc/sparc.h (NO_PROFILE_COUNTERS): Define as 0.
5706 2008-05-14 H.J. Lu <hongjiu.lu@intel.com>
5708 * config/i386/sse.md (*sse4_1_pinsrq): Make it 64bit only.
5710 2008-05-14 Michael Meissner <michael.meissner@amd.com>
5711 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
5713 * optabs.h (optab_index): Add OTI_vashl, OTI_vlshr, OTI_vashr,
5714 OTI_vrotl, OTI_vrotr to support vector/vector shifts.
5715 (vashl_optab): New optab for vector/vector shifts.
5716 (vashr_optab): Ditto.
5717 (vlshr_optab): Ditto.
5718 (vrotl_optab): Ditto.
5719 (vrotr_optab): Ditto.
5720 (optab_subtype): New enum for optab_for_tree_code call.
5721 (optab_for_tree_code): Add enum optab_subtype argument.
5723 * optabs.c (optab_for_tree_code): Take an additional argument to
5724 distinguish between a vector shift by a scalar and vector shift by
5725 a vector. Make lshr/ashr/ashl/rotl/rotr optabs just vector
5726 shifted by a scalar. Use vlshr/vashr/vashl/vrotl/vrotr for the
5727 vector shift by a vector.
5728 (expand_widen_pattern_expr): Pass additional argument to
5729 optab_for_tree_code.
5731 * genopinit.c (optabs): Add vashr_optab, vashl_optab, vlshr_optab,
5732 vrotl_optab, vrotr_optab.
5734 * expr.c (expand_expr_real_1): Update calls to
5735 optab_for_tree_code to distinguish between vector shifted by a
5736 scalar and vector shifted by a vector.
5737 * tree-vectorizer.c (supportable_widening_operation): Ditto.
5738 (supportable_narrowing_operation): Ditto.
5739 * tree-vect-analyze.c (vect_build_slp_tree): Ditto.
5740 * tree-vect-patterns.c (vect_pattern_recog_1): Ditto.
5741 * tree-vect-transform.c (vect_model_reduction_cost): Ditto.
5742 (vect_create_epilog_for_reduction): Ditto.
5743 (vectorizable_reduction): Ditto.
5744 (vectorizable_operation): Ditto.
5745 (vect_strided_store_supported): Ditto.
5746 (vect_strided_load_supported): Ditto.
5747 * tree-vect-generic.c (expand_vector_operations_1): Ditto.
5748 * expmed.c (expand_shift): Ditto.
5750 * doc/md.texi (ashl@var{m}3): Document that operand 2 is always a
5752 (ashr@var{m}3): Ditto.
5753 (vashl@var{m}3): Document new vector/vector shift standard name.
5754 (vashr@var{m}3): Ditto.
5755 (vlshr@var{m}3): Ditto.
5756 (vrotl@var{m}3): Ditto.
5757 (vrotr@var{m}3): Ditto.
5759 * config/i386/i386.md (PPERM_SRC): Move PPERM masks here from i386.c.
5760 (PPERM_INVERT): Ditto.
5761 (PPERM_REVERSE): Ditto.
5762 (PPERM_REV_INV): Ditto.
5763 (PPERM_ZERO): Ditto.
5764 (PPERM_ONES): Ditto.
5765 (PPERM_SIGN): Ditto.
5766 (PPERM_INV_SIGN): Ditto.
5767 (PPERM_SRC1): Ditto.
5768 (PPERM_SRC2): Ditto.
5770 * config/i386/sse.md (mulv2di3): Add SSE5 support.
5771 (sse5_pmacsdql_mem): New SSE5 define_and_split that temporarily
5772 allows a memory operand to be the value being added, and split it
5773 to improve vectorization.
5774 (sse5_pmacsdqh_mem): Ditto.
5775 (sse5_mulv2div2di3_low): SSE5 32-bit multiply and extend function.
5776 (sse5_mulv2div2di3_high): Ditto.
5777 (vec_pack_trunc_v8hi): Add SSE5 pperm support.
5778 (vec_pack_trunc_v4si): Ditto.
5779 (vec_pack_trunc_v2di): Ditto.
5780 (sse5_pcmov_<mode>): Remove code that tried to use use
5781 andps/andnps instead of pcmov.
5782 (vec_widen_smult_hi_v4si): If we have SSE5, use the pmacsdql and
5783 pmacsdqh instructions.
5784 (vec_widen_smult_lo_v4si): Ditto.
5786 * config/i386/i386.c (PPERM_SRC): Move PPERM masks to i386.md.
5787 (PPERM_INVERT): Ditto.
5788 (PPERM_REVERSE): Ditto.
5789 (PPERM_REV_INV): Ditto.
5790 (PPERM_ZERO): Ditto.
5791 (PPERM_ONES): Ditto.
5792 (PPERM_SIGN): Ditto.
5793 (PPERM_INV_SIGN): Ditto.
5794 (PPERM_SRC1): Ditto.
5795 (PPERM_SRC2): Ditto.
5796 (ix86_expand_sse_movcc): Move the SSE5 test after the if
5798 (ix86_expand_int_vcond): If SSE5 generate all possible integer
5800 (ix86_sse5_valid_op_p): Allow num_memory to be negative, which
5801 says ignore whether the last reference is a memory operand.
5803 2008-05-14 Michael Meissner <michael.meissner@amd.com>
5804 Paolo Bonzini <bonzini at gnu dot org>
5806 * config/rs6000/rs6000.c (bdesc_2arg): Change the names of vector
5809 * config/rs6000/altivec.md (vashl<mode>3): Rename from ashl<mode>3.
5810 (vlshr<mode>3): Rename from vlshr<mode>3.
5811 (vashr<mode>3): Rename from vashr<mode>3.
5812 (mulv4sf3): Change the names of vector shift patterns.
5816 * config/spu/spu.c (spu_initialize_trampoline): Rename vector
5819 * config/spu/spu-builtins.def (SI_SHLH): Rename vector shift insns.
5844 * config/spu/spu.md (v): New iterator macro to add v for vector types.
5845 (floatunssidf2_internal): Change vector/vector shift names.
5846 (floatunsdidf2_internal): Ditto.
5853 (vashl<mode>3): Rename from ashl<mode>3.
5854 (vashr<mode>3): Rename from ashr<mode>3.
5855 (vlshr<mode>3): Rename from lshr<mode>3.
5856 (vrotl<mode>3): Rename from rotl<mode>3.
5858 2008-05-14 Michael Meissner <michael.meissner@amd.com>
5861 * config/i386/sse.md (vec_widen_smult_hi_v4si): Delete, using unsigned
5862 multiply gives the wrong value when doing widening multiplies.
5863 (vec_widen_smult_lo_v4si): Ditto.
5865 2008-05-14 Kenneth Zadeck <zadeck@naturalbridge.com>
5867 * optabs.c (prepare_cmp_insn): Changed LCT_PURE_MAKE_BLOCK to
5868 LCT_PURE and LCT_CONST_MAKE_BLOCK to LCT_CONST in calls to
5869 emit_library_call_value.
5870 * builtins.c (expand_builtin_powi, expand_builtin_memcmp): Ditto.
5871 * tree.h (ECF_LIBCALL_BLOCK): Removed.
5872 * calls.c (initialize_argument_information, precompute_arguments,
5873 expand_call, emit_library_call_value_1): Remove ECF_LIBCALL_BLOCK.
5874 (precompute_arguments): Removed flags parameter.
5875 * rtl.h (LCT_CONST_MAKE_BLOCK, LCT_PURE_MAKE_BLOCK): Removed.
5877 2008-05-14 Richard Guenther <rguenther@suse.de>
5879 * tree-ssa-dse.c (dse_possible_dead_store_p): Remove dead code.
5880 Make sure to register the store if the use is a PHI_NODE.
5882 2008-05-14 Olivier Hainque <hainque@adacore.com>
5884 * expr.c (expand_expr_real_1) <normal_inner_ref>: Force op0 to
5885 memory if the component is to be referenced in BLKmode according
5886 to get_inner_reference.
5888 2008-05-14 Adam Nemet <anemet@caviumnetworks.com>
5890 * calls.c (emit_library_call_value_1): Restore code clearing
5891 ECF_LIBCALL_BLOCK to ensure that we only call end_sequence once.
5893 2008-05-14 Olivier Hainque <hainque@adacore.com>
5894 Nicolas Roche <roche@adacore.com>
5896 * configure.ac: Add support for a "gcc_subdir" variable in
5897 config-lang.in, to denote a subdirectory where the language/GCC
5898 integration files are to be found.
5899 * configure: Regenerate.
5901 2008-05-14 Ira Rosen <irar@il.ibm.com>
5903 PR tree-optimization/36098
5904 * tree-vect-analyze.c (vect_analyze_group_access): Set the gap
5905 value for the first load in the group in case of a gap.
5906 (vect_build_slp_tree): Check that there are no gaps in loads.
5908 2008-05-14 Kenneth Zadeck <zadeck@naturalbridge.com>
5910 * doc/rtl.texi: Removed reference to REG_NO_CONFLICT notes.
5911 * optabs.c (expand_binop, expand_absneg_bit, expand_unop,
5912 expand_copysign_bit, ): Change call to emit_no_conflict_block to
5913 emit_insn and remove unneeded code to construct extra args.
5914 (emit_no_conflict_block): Removed.
5915 * optabls.h: (emit_no_conflict_block): Removed.
5916 * cse.c (cse_extended_basic_block): Remove search for
5917 REG_NO_CONFLICT note.
5918 * global.c: Removed incorrect comment added in revision 117.
5919 * expr.c (convert_move): Change call to emit_no_conflict_block to
5921 * recog.c: Change comments so that they do not mention
5923 * local_alloc.c (combine_regs): Removed last parameter.
5924 (no_conflict_p): Removed.
5925 (block_alloc): Removed note, no_conflict_combined_regno and set
5926 local vars. Removed all code to process REG_NO_CONFLICT blocks.
5927 (combine_regs): Removed already_dead and code to look for
5928 REG_NO_CONFLICT notes.
5929 * lower_subreg (remove_retval_note): Removed code to look for
5930 REG_NO_CONFLICT block.
5931 (resolve_reg_notes): Removed REG_NO_CONFLICT case.
5932 (resolve_clobber): Remove code to process libcalls that have
5933 REG_NO_CONFLICT notes.
5934 * loop_invariant.c (find_invariant_insn): Removed REG_NO_CONFLICT
5936 * combine.c (can_combine_p, distribute_notes): Removed
5937 REG_NO_CONFLICT case.
5938 * config/cris/cris.md (movdi pattern): Changed emit_no_conflict_block
5940 * config/mn10300/mn10300.md (absdf2, negdf2 patterns): Ditto.
5941 * config/m68k/m68k.md (negdf2, negxf2, absdf2, absxf2 patterns):
5943 * reg-notes.def (NO_CONFLICT): Removed.
5945 2008-05-14 David S. Miller <davem@davemloft.net>
5947 * config/sparc/sparc.c (sparc_profile_hook): If
5948 NO_PROFILE_COUNTERS, don't generate and pass a label into mcount.
5949 * config/sparc/linux.h (NO_PROFILE_COUNTERS): Define as 1.
5950 * config/sparc/linux64.h (NO_PROFILE_COUNTERS): Likewise.
5952 2008-05-14 Andreas Krebbel <krebbel1@de.ibm.com>
5954 * cse.c (cse_cc_succs): Invoke delete_insn_and_edges.
5956 2008-05-13 Uros Bizjak <ubizjak@gmail.com>
5959 * config/i386/i386.c (ix86_expand_vector_init_general): Rearrange op0
5960 and op1 expansion before vector concat to have less live pseudos.
5962 2008-05-13 H.J. Lu <hongjiu.lu@intel.com>
5964 * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): Use
5965 ix86_expand_vector_set if supported.
5967 2008-05-13 Diego Novillo <dnovillo@google.com>
5968 Kenneth Zadeck <zadeck@naturalbridge.com>
5970 http://gcc.gnu.org/ml/gcc-patches/2008-05/msg00748.html
5972 * tree.h (init_phinodes, fini_phinodes, release_phi_node,
5973 phinodes_print_statistics, init_ssanames, fini_ssanames,
5974 make_ssa_name, duplicate_ssa_name, duplicate_ssa_name_ptr_info,
5975 release_ssa_name, release_defs, replace_ssa_name_symbol,
5976 ssanames_print_statistics): Move ...
5977 * tree-flow.h: ... here.
5978 * tree-ssanames.c (init_ssanames): Add arguments FN and SIZE.
5979 Use FN instead of cfun.
5980 (make_ssa_name_fn): Rename from make_ssa_name.
5981 (pass_release_ssa_names): Add TODO_dump_func to finish flags.
5982 * tree-flow-inline.h (make_ssa_name): Move from
5983 tree-ssanames.c. Convert to static inline. Call make_ssa_name_fn.
5984 * omp-low.c (expand_omp_parallel):
5985 * tree-flow-inline.h (redirect_edge_var_map_result):
5986 * tree-ssa.c (init_tree_ssa): Add argument FN.
5987 Use it instead of cfun. Update all users.
5989 2008-05-13 Tom Tromey <tromey@redhat.com>
5991 PR preprocessor/22168:
5992 * doc/cpp.texi (Top): Update menu.
5993 (Alternatives to Wrapper #ifndef): New node.
5994 (Other Directives): Document deprecation.
5995 (Obsolete Features): Remove menu.
5996 (Assertions): Merge node into Obsolete Features.
5997 (Obsolete once-only headers): Move earlier; rename to Alternatives
5999 * doc/cppopts.texi: Update.
6000 * c.opt (Wdeprecated): Enable for C and ObjC.
6001 * doc/invoke.texi (Option Summary): Move -Wno-deprecated.
6002 (C++ Dialect Options): Move -Wno-deprecated from here to...
6003 (Warning Options): ... here.
6005 2008-05-13 Richard Guenther <rguenther@suse.de>
6008 * fold-const.c (fold_sign_changed_comparison): Do not allow
6009 changes in pointer-ness.
6011 2008-05-12 Kaz Kojima <kkojima@gcc.gnu.org>
6014 * config/sh/sh.c (sh_expand_prologue): Don't clear
6015 RTX_FRAME_RELATED_P for push insns.
6017 2008-05-12 Andy Hutchinson <hutchinsonandy@aim.com>
6019 * config/avr/avr.h (MAX_OFILE_ALIGNMENT): Define.
6021 2008-05-12 Anatoly Sokolov <aesok@post.ru>
6023 * config/avr/avr.h (machine_function): Add 'is_leaf' field.
6024 * config/avr/avr.c (avr_regs_to_save): Compute 'machine->is_leaf'.
6025 Use 'machine->is_leaf' instead of 'leaf_func_p'.
6027 2008-05-12 H.J. Lu <hongjiu.lu@intel.com>
6029 * config/i386/sse.md (*sse_concatv4sf): Renamed to ...
6030 (*vec_concatv4sf_sse): This.
6031 (*sse2_concatv2si): Renamed to ...
6032 (*vec_concatv2si_sse2): This.
6033 (*sse1_concatv2si): Renamed to ...
6034 (*vec_concatv2si_sse): This.
6035 (*vec_concatv2di_rex): Renamed to ...
6036 (*vec_concatv2di_rex64): This.
6037 (*vec_concatv2si_sse4_1): New.
6038 (*vec_concatv2di_rex64_sse4_1): Likewise.
6040 2008-05-12 Uros Bizjak <ubizjak@gmail.com>
6042 PR rtl-optimization/36111
6043 * recog.c (validate_replace_rtx_1): Unshare new RTL expression
6044 that was created for swappable operands.
6046 2008-05-12 Samuel Tardieu <sam@rfc1149.net>
6049 * Makefile.in: Substitute GNATMAKE and GNATBIND.
6050 * configure.ac: Add call to ACX_PROG_GNAT.
6052 2008-05-11 Volker Reichelt <v.reichelt@netcologne.de>
6054 * optc-gen.awk: Fix comment typo.
6056 2008-05-11 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
6058 * pretty-print.c (pp_integer_with_precision): Use
6059 HOST_LONG_LONG_FORMAT.
6061 2008-05-10 Kenneth Zadeck <zadeck@naturalbridge.com>
6063 * gcse.c (store_killed_in_insn): Negated call to RTL_CONST_CALL_P.
6065 2008-05-10 H.J. Lu <hongjiu.lu@intel.com>
6067 * config/i386/i386.c (bdesc_ptest): Removed.
6068 (ix86_builtin_type): Add INT_FTYPE_V2DI_V2DI_PTEST.
6069 (bdesc_args): Add __builtin_ia32_ptestz128,
6070 __builtin_ia32_ptestc128 and __builtin_ia32_ptestnzc128.
6071 (ix86_init_mmx_sse_builtins): Updated.
6072 (ix86_expand_args_builtin): Handle INT_FTYPE_V2DI_V2DI_PTEST.
6073 (ix86_expand_builtin): Updated.
6075 2008-05-10 Richard Sandiford <rdsandiford@googlemail.com>
6077 * tree-cfg.c (valid_fixed_convert_types_p): New function.
6078 (verify_gimple_expr): Handle FIXED_CONVERT_EXPR.
6080 2008-05-10 Uros Bizjak <ubizjak@gmail.com>
6082 * value-prof.c (interesting_stringop_to_profile): Do not
6083 return early for BUILT_IN_MEMPCPY.
6085 2008-05-09 H.J. Lu <hongjiu.lu@intel.com>
6087 * calls.c (expand_call): Don't use callgraph to increase
6088 preferred_stack_boundary.
6090 * cgraph.h (cgraph_rtl_info): Use unsigned on
6091 preferred_incoming_stack_boundary.
6093 * final.c (rest_of_clean_state): Use unsigned on
6094 preferred_stack_boundary.
6096 2008-05-09 Tom Tromey <tromey@redhat.com>
6098 PR preprocessor/22231:
6099 * c-opts.c (sanitize_cpp_opts): Disallow -MG if compilation is
6102 2008-05-09 Uros Bizjak <ubizjak@gmail.com>
6104 PR tree-optimization/36129
6105 * tree-ssa-ccp.c: Include value-prof.h.
6106 (execute_fold_all_builtins): Call gimple_remove_stmt_histograms if
6107 built-in function was folded to a constant.
6108 * Makefile.in (tree-ssa-ccp.c): Depend on value-prof.h
6110 2008-05-09 Jan Sjodin <jan.sjodin@amd.com>
6111 Sebastian Pop <sebastian.pop@amd.com>
6113 * tree-scalar-evolution.c: Document instantiate_scev.
6114 (instantiate_parameters_1): Renamed instantiate_scev_1.
6115 Don't use the same loop for instantiation_loop and evolution_loop.
6116 (instantiate_scev): New.
6117 (instantiate_parameters): Moved...
6118 (resolve_mixers): Update call to instantiate_scev_1 to pass the
6119 same loop twice. Maintains the semantics for this function.
6120 * tree-scalar-evolution.h (instantiate_scev): Declare.
6121 (instantiate_parameters): ...here. Now static inline.
6122 * tree-data-ref.c (dr_analyze_indices): Call instantiate_scev
6123 instead of resolve_mixers.
6125 2008-05-09 Maxim Kuvyrkov <maxim@codesourcery.com>
6127 * rtl-factoring.c (collect_pattern_seqs): Fix typo.
6129 2008-05-09 Tomas Bily <tbily@suse.cz>
6131 * config/pa/pa.c (reloc_needed): Use CASE_CONVERT.
6132 * tree-cfg.c (verify_expr, verify_gimple_expr): Likewise.
6133 * tree-ssa-structalias.c (get_constraint_for): Likewise.
6134 * c-common.c (c_common_truthvalue_conversion): Likewise.
6135 * tree-object-size.c (compute_object_offset): Likewise.
6136 * tree-inline.c (estimate_num_insns_1): Likewise.
6137 * varasm.c (const_hash_1, compare_constant, copy_constant)
6138 (compute_reloc_for_constant, output_addressed_constants)
6139 (initializer_constant_valid_p): Likewise.
6140 * c-omp.c (check_omp_for_incr_expr): Likewise.
6141 * gimplify.c (gimplify_expr): Likewise.
6142 * c-typeck.c (c_finish_return): Likewise.
6143 * tree-vectorizer.c (supportable_widening_operation)
6144 (supportable_narrowing_operation): Likewise.
6145 * c-pretty-print.c (pp_c_cast_expression, pp_c_expression): Likewise.
6146 * matrix-reorg.c (can_calculate_expr_before_stmt): Likewise.
6147 * expr.c (highest_pow2_factor, expand_expr_real_1): Likewise.
6148 * dwarf2out.c (loc_descriptor_from_tree_1, add_bound_info)
6149 (descr_info_loc): Likewise.
6150 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Likewise.
6151 * fold-const.c (operand_equal_p, make_range, extract_muldiv_1)
6152 (fold_unary): Likewise.
6153 * builtins.c (get_pointer_alignment): Likewise.
6154 * tree-scalar-evolution.c (interpret_rhs_modify_stmt)
6155 (instantiate_parameters_1): Likewise.
6156 * tree.c (expr_align, stabilize_reference): Likewise.
6157 * tree-pretty-print.c (dump_generic_node, op_prio): Likewise.
6158 * tree-ssa-loop-niter.c (derive_constant_upper_bound): Likewise.
6159 * convert.c (strip_float_extensions): Use CONVERT_EXPR_P.
6160 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
6161 * config/alpha/alpha.c (va_list_skip_additions): Likewise.
6162 * c-common.c (c_alignof_expr, check_function_arguments_recurse):
6164 * tree-ssa.c (tree_ssa_useless_type_conversion): Likewise.
6165 * varasm.c (initializer_constant_valid_p, output_constant): Likewise.
6166 * tree-ssa-forwprop.c (get_prop_source_stmt, can_propagate_from)
6167 (forward_propagate_addr_expr_1, forward_propagate_addr_expr)
6168 (forward_propagate_comparison)
6169 (tree_ssa_forward_propagate_single_use_vars): Likewise.
6170 * cfgexpand.c (discover_nonconstant_array_refs_r): Likewise.
6171 * emit-rtl.c (component_ref_for_mem_expr)
6172 (set_mem_attributes_minus_bitpos): Likewise.
6173 * tree-ssa-phiopt.c (conditional_replacement): Likewise.
6174 * gimplify.c (gimplify_conversion, goa_lhs_expr_p, gimplify_expr):
6176 * c-typeck.c (default_function_array_conversion, build_indirect_ref)
6177 (build_function_call, pointer_diff, build_compound_expr)
6178 (c_finish_return): Likewise.
6179 * tree-vect-analyze.c (vect_determine_vectorization_factor): Likewise.
6180 * matrix-reorg.c (get_inner_of_cast_expr, may_flatten_matrices_1):
6182 * tree-ssa-ifcombine.c (recognize_single_bit_test): Likewise.
6183 * expr.c (is_aligning_offset): Likewise.
6184 * tree-ssa-alias.c (is_escape_site): Likewise.
6185 * tree-stdarg.c (va_list_counter_bump, check_va_list_escapes)
6186 (check_all_va_list_escapes): Likewise.
6187 * tree-ssa-loop-ivopts.c (determine_base_object)
6188 (determine_common_wider_type): Likewise.
6189 * dojump.c (do_jump): Likewise.
6190 * tree-ssa-sccvn.c (simplify_unary_expression): Likewise.
6191 * tree-gimple.c (is_gimple_cast): Likewise.
6192 * fold-const.c (decode_field_reference, )
6193 (fold_sign_changed_comparison, fold_unary, fold_comparison)
6194 (fold_binary): Likewise.
6195 * tree-ssa-alias-warnings.c (find_alias_site_helper)
6196 (already_warned_in_frontend_p): Likewise.
6197 * builtins.c (get_memory_rtx, fold_builtin_next_arg): Likewise.
6198 * tree.c (really_constant_p, get_unwidened): Likewise.
6199 * tree-ssa-loop-niter.c (expand_simple_operations): Likewise.
6200 * tree-ssa-loop-im.c (rewrite_bittest): Likewise.
6201 * tree-vrp.c (register_edge_assert_for_2, register_edge_assert_for_1):
6203 * tree.h (STRIP_NOPS, STRIP_SIGN_NOPS, STRIP_TYPE_NOPS): Use
6205 (CONVERT_EXPR_P): Define.
6206 (CASE_CONVERT): Define.
6208 2008-05-08 Kenneth Zadeck <zadeck@naturalbridge.com>
6211 * dce.c (deletable_insn_p): Do not delete calls if df_in_progress.
6212 (delete_unmarked_insns): When deleting a call, call
6213 delete_unreachable_blocks.
6214 * rtl.texi (RTL_CONST_CALL_P, RTL_PURE_CALL_P,
6215 RTL_CONST_OR_PURE_CALL_P, RTL_LOOPING_CONST_OR_PURE_CALL_P): Fixed doc.
6217 2008-05-08 Richard Guenther <rguenther@suse.de>
6219 * doc/invoke.texi (-fdump-tree-salias): Remove documentation.
6220 (-ftree-salias): Likewise.
6221 (salias-max-implicit-fields): Remove param documentation.
6222 (salias-max-array-elements): Likewise.
6223 * tree-pass.h (pass_create_structure_vars): Remove.
6224 * params.h (SALIAS_MAX_IMPLICIT_FIELDS): Remove.
6225 (SALIAS_MAX_ARRAY_ELEMENTS): Likewise.
6226 * tree-ssa-alias.c (create_structure_vars): Remove.
6227 (gate_structure_vars): Likewise.
6228 (pass_create_structure_vars): Likewise.
6229 (gate_build_alias): Likewise.
6230 (pass_build_alias): Adjust to run always and dump the function.
6231 * common.opt (ftree-salias): Hide.
6232 * passes.c (init_optimization_passes): Remove
6233 pass_create_structure_vars, adjust comment.
6234 * params.def (PARAM_SALIAS_MAX_IMPLICIT_FIELDS): Remove.
6235 (PARAM_SALIAS_MAX_ARRAY_ELEMENTS): Likewise.
6236 * opts.c (decode_options): Do not set flag_tree_salias.
6237 (common_handle_option): Add OPT_ftree_salias to the backward
6238 compatibility section.
6240 2008-05-08 Richard Guenther <rguenther@suse.de>
6242 * tree-flow-inline.h (var_can_have_subvars): Move ...
6243 * tree-ssa-structalias.c (var_can_have_subvars): ... here.
6244 * tree-flow.h (var_can_have_subvars): Remove.
6245 (push_fields_onto_fieldstack): Remove.
6246 (sort_fieldstack): Likewise.
6247 (struct fieldoff): Move ...
6248 * tree-ssa-structalias.c (struct fieldoff): ... here. Remove
6249 alias_set and base_for_components fields.
6250 (sort_fieldstack): Make static.
6251 (push_fields_onto_fieldstack): Likewise. Remove code that
6252 handles anything but RECORD_TYPEs. Remove alias_set and
6253 base_for_components handling.
6254 (create_variable_info_for): Adjust.
6256 2008-05-08 Seongbae Park <seongbae.park@gmail.com>
6258 * common.opt (Wframe-larger-than=): Shorten the help message
6260 * doc/invoke.texi (Wframe-larger-than=): Add more description.
6262 2008-05-08 Rafael Espindola <espindola@google.com>
6264 * tree-complex.c (expand_complex_div_wide): Don't create CONDs that
6266 * tree-gimple.c (is_gimple_condexpr): Check that the expression doesn't
6267 trap and that both operands are gimple values.
6268 (canonicalize_cond_expr_cond): Use is_gimple_condexpr.
6269 * gcc/tree-eh.c (tree_could_trap_p): Correctly detect if a comparison
6272 2008-05-08 Richard Sandiford <rsandifo@nildram.co.uk>
6274 * read-rtl.c (join_c_conditions): Return the first string if the
6275 two strings are equal.
6277 2008-05-08 Richard Sandiford <rsandifo@nildram.co.uk>
6279 * gensupport.h (pred_data): Add a "num_codes" field.
6280 (add_predicate_code): Declare.
6281 * gensupport.c (add_predicate_code): New function.
6282 (std_pred_table): Add an "allows_const_p" field.
6283 (std_preds): Set this field for predicates that allow RTX_CONST_OBJs.
6284 Remove the (incomplete) list of such codes from the codes field.
6285 (init_predicate_table): Use add_predicate_code. Add all
6286 RTX_CONST_OBJs if allows_const_p is true.
6287 * genrecog.c (process_define_predicate): Use add_predicate_code.
6289 2008-05-08 David Daney <ddaney@avtrex.com>
6290 Richard Sandiford <rsandifo@nildram.co.uk>
6292 * config/mips/mips.md (mips_expand_compare_and_swap_12): Handle
6293 special case of constant zero operands.
6294 * config/mips/mips.c (mips_expand_compare_and_swap_12): Zero extend
6295 old and new values. Special case constant zero values.
6296 * config/mips/mips.h (MIPS_COMPARE_AND_SWAP): Skip 'sync' if compare
6298 (MIPS_COMPARE_AND_SWAP_12): Handle constant zero operands.
6299 (MIPS_COMPARE_AND_SWAP_12_0): New macro.
6301 2008-05-08 Paolo Bonzini <bonzini@gnu.org>
6304 * simplify-rtx.c (simplify_plus_minus): Create CONST of
6305 similar RTX_CONST_OBJ before CONST_INT.
6307 2008-05-08 Steve Ellcey <sje@cup.hp.com>
6309 * stmt.c (expand_stack_restore): Change sa mode if needed.
6311 2008-05-08 Richard Guenther <rguenther@suse.de>
6313 * config/i386/i386-protos.h (ix86_return_in_memory): Adjust
6314 return type to bool.
6315 (ix86_sol10_return_in_memory): Likewise.
6316 (ix86_i386elf_return_in_memory): Likewise.
6317 (ix86_i386interix_return_in_memory): Likewise.
6318 * config/i386/i386.c (ix86_return_in_memory): Likewise.
6319 (ix86_sol10_return_in_memory): Likewise.
6320 (ix86_i386elf_return_in_memory): Likewise.
6321 (ix86_i386interix_return_in_memory): Likewise.
6323 2008-05-08 Kai Tietz <kai.tietz@onevision.com>
6326 * calls.c (compute_argument_block_size ): Add ATTRIBUTE_UNUSED to
6328 (emit_library_call_value_1): Add ATTRIBUTE_UNUSED to variable fndecl.
6329 * target-def.h: Check that TARGET_RETURN_IN_MEMORY isn't
6332 2008-05-08 Richard Guenther <rguenther@suse.de>
6334 * tree-data-ref.c (dr_analyze_alias): Do not set DR_SUBVARS.
6335 * tree-data-ref.h (struct dr_alias): Remove subvars field.
6336 (DR_SUBVARS): Remove.
6337 * tree-dfa.c (dump_subvars_for): Remove.
6338 (debug_subvars_for): Likewise.
6339 (dump_variable): Do not dump subvars.
6340 (remove_referenced_var): Do not remove subvars.
6341 * tree-flow-inline.h (clear_call_clobbered): SFTs no longer exist.
6342 (lookup_subvars_for_var): Remove.
6343 (get_subvars_for_var): Likewise.
6344 (get_subvars_at): Likewise.
6345 (get_first_overlapping_subvar): Likewise.
6346 (overlap_subvar): Likewise.
6347 * tree-flow.h (subvar_t): Remove.
6348 (struct var_ann_d): Remove subvars field.
6349 * tree-ssa-alias.c (mark_aliases_call_clobbered): Remove queued
6350 argument. Remove special handling of SFTs.
6351 (compute_tag_properties): Likewise.
6352 (set_initial_properties): Likewise.
6353 (compute_call_clobbered): Likewise.
6354 (count_mem_refs): Likewise.
6355 (compute_memory_partitions): Likewise.
6356 (compute_flow_insensitive_aliasing): Likewise.
6357 (setup_pointers_and_addressables): Likewise.
6358 (new_type_alias): Likewise.
6359 (struct used_part): Remove.
6360 (used_portions): Likewise.
6361 (struct used_part_map): Likewise.
6362 (used_part_map_eq): Likewise.
6363 (used_part_map_hash): Likewise.
6364 (free_used_part_map): Likewise.
6365 (up_lookup): Likewise.
6366 (up_insert): Likewise.
6367 (get_or_create_used_part_for): Likewise.
6368 (create_sft): Likewise.
6369 (create_overlap_variables_for): Likewise.
6370 (find_used_portions): Likewise.
6371 (create_structure_vars): Likewise.
6372 * tree.def (STRUCT_FIELD_TAG): Remove.
6373 * tree.h (MTAG_P): Adjust.
6374 (struct tree_memory_tag): Remove base_for_components and
6375 unpartitionable flags.
6376 (struct tree_struct_field_tag): Remove.
6377 (SFT_PARENT_VAR): Likewise.
6378 (SFT_OFFSET): Likewise.
6379 (SFT_SIZE): Likewise.
6380 (SFT_NONADDRESSABLE_P): Likewise.
6381 (SFT_ALIAS_SET): Likewise.
6382 (SFT_UNPARTITIONABLE_P): Likewise.
6383 (SFT_BASE_FOR_COMPONENTS_P): Likewise.
6384 (union tree_node): Remove sft field.
6385 * alias.c (get_alias_set): Remove special handling of SFTs.
6386 * print-tree.c (print_node): Remove handling of SFTs.
6387 * tree-dump.c (dequeue_and_dump): Likewise.
6388 * tree-into-ssa.c (mark_sym_for_renaming): Likewise.
6389 * tree-nrv.c (dest_safe_for_nrv_p): Remove special handling of SFTs.
6390 * tree-predcom.c (set_alias_info): Do not set subvars.
6391 * tree-pretty-print.c (dump_generic_node): Do not handle SFTs.
6392 * tree-ssa-loop-ivopts.c (get_ref_tag): Likewise.
6393 * tree-ssa-operands.c (access_can_touch_variable): Likewise.
6394 (add_vars_for_offset): Remove.
6395 (add_virtual_operand): Remove special handling of SFTs.
6396 (add_call_clobber_ops): Likewise.
6397 (add_call_read_ops): Likewise.
6398 (get_asm_expr_operands): Likewise.
6399 (get_modify_stmt_operands): Likewise.
6400 (get_expr_operands): Likewise.
6401 (add_to_addressable_set): Likewise.
6402 * tree-ssa.c (verify_ssa_name): Do not handle SFTs.
6403 * tree-tailcall.c (suitable_for_tail_opt_p): Likewise.
6404 * tree-vect-transform.c (vect_create_data_ref_ptr): Do not set subvars.
6405 * tree.c (init_ttree): Remove STRUCT_FIELD_TAG initialization.
6406 (tree_code_size): Remove STRUCT_FIELD_TAG handling.
6407 (tree_node_structure): Likewise.
6408 * tree-ssa-structalias.c (set_uids_in_ptset): Remove special
6410 (find_what_p_points_to): Likewise.
6412 2008-05-08 Sa Liu <saliu@de.ibm.com>
6414 * config/spu/spu.md: Fixed subti3 pattern.
6416 2008-05-08 Richard Guenther <rguenther@suse.de>
6419 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
6420 sure to create a representative for trailing arrays for PTA.
6422 2008-05-08 Richard Guenther <rguenther@suse.de>
6425 * fold-const.c (operand_equal_p): Two objects which types
6426 differ in pointerness are not equal.
6428 2008-05-08 Kai Tietz <kai.tietz@onevision.com>
6430 * calls.c (compute_argument_block_size): Add argument tree fndecl.
6431 (OUTGOING_REG_PARM_STACK_SPACE): Add function type argument.
6432 (emit_library_call_value_1): Add new variable fndecl initialized by
6433 NULL_TREE. It should be the decl type of orgfun, but this information
6434 seems not to be available here, so it uses the default calling abi.
6435 * config/arm/arm.c (arm_return_in_memory): Add fntype argumen.
6436 * config/arm/arm.h (RETURN_IN_MEMORY): Replace RETURN_IN_MEMORY
6437 by TARGET_RETURN_IN_MEMORY.
6438 * config/i386/i386-interix.h: Likewise.
6439 * config/i386/i386.h: Likewise.
6440 * config/i386/i386elf.h: Likewise.
6441 * config/i386/ptx4-i.h: Likewise.
6442 * config/i386/sol2-10.h: Likewise.
6443 * config/i386/sysv4.h: Likewise.
6444 * config/i386/vx-common.h: Likewise.
6445 * config/cris/cris.h: Removed #if 0 clause.
6446 * config/arm/arm-protos.h (arm_return_in_memory): Add fntype argument.
6447 * config/i386/i386-protos.h (ix86_return_in_memory): Add fntype
6449 (ix86_sol10_return_in_memory): Likewise.
6450 (ix86_i386elf_return_in_memory): New.
6451 (ix86_i386interix_return_in_memory): New.
6452 * config/mt/mt-protos.h (mt_return_in_memory): New.
6453 * config/mt/mt.c: Likewise.
6454 * config/mt/mt.h (OUTGOING_REG_PARM_STACK_SPACE): Add FNTYPE argument.
6455 (RETURN_IN_MEMORY): Replace by TARGET_RETURN_IN_MEMORY.
6456 * config/bfin/bfin.h: Likewise.
6457 * config/bfin/bfin-protos.h (bfin_return_in_memory): Add fntype
6459 * config/bfin/bfin.c: Likewise.
6460 * config/pa/pa.h (OUTGOING_REG_PARM_STACK_SPACE): Add FNTYPE argument.
6461 * config/alpha/unicosmk.h: Likewise.
6462 * config/i386/cygming.h: Likewise.
6463 * config/iq2000/iq2000.h: Likewise.
6464 * config/mips/mips.h: Likewise.
6465 * config/mn10300/mn10300.h: Likewise.
6466 * config/rs6000/rs6000.h: Likewise.
6467 * config/score/score.h: Likewise.
6468 * config/spu/spu.h: Likewise.
6469 * config/v850/v850.h: Likewise.
6470 * defaults.h: Likewise.
6471 * doc/tm.texi (OUTGOING_REG_PARM_STACK_SPACE): Adjust documentation.
6472 * expr.c (emit_block_move): Adjust use of
6473 OUTGOING_REG_PARM_STACK_SPACE.
6474 * function.c (STACK_DYNAMIC_OFFSET): Adjust use of
6475 OUTGOING_REG_PARM_STACK_SPACE.
6476 * targhooks.c (default_return_in_memory): Remove RETURN_IN_MEMORY.
6478 2008-05-08 Jakub Jelinek <jakub@redhat.com>
6480 * tree-parloops.c (create_parallel_loop): Set OMP_RETURN_NOWAIT
6481 on OMP_RETURN for OMP_FOR.
6484 * dwarf2out.c (dw_expand_expr, common_check): Removed.
6485 (fortran_common): New function.
6486 (gen_variable_die): Call fortran_common instead of common_check,
6487 adjust for it returning tree instead of rtx. Formatting.
6489 2008-05-07 Kenneth Zadeck <zadeck@naturalbridge.com>
6493 * see.c (see_copy_insn): Copy new pure const attributes for new call.
6494 * c-decl.c (merge_decls): Ditto.
6495 * postreload.c (record_opr_changes): Change CONST_OR_PURE_CALL_P
6496 to RTL_CONST_OR_PURE_CALL_P.
6497 * tree.c (define_local_buitin): Rename DECL_IS_PURE to DECL_PURE_P.
6498 Initialized DECL_LOOPING_CONST_PURE.
6499 (process_call_operands): Set tree_side_effects properly.
6500 * tree.h (TREE_READONLY_DECL_P): Removed.
6501 (DECL_IS_PURE): Renamed to DECL_PURE_P.
6502 (DECL_LOOPING_OR_CONST_P): New macro.
6503 (struct tree_function_decl): Added looping_const_or_pure_p.
6505 (ECF_LOOPING_OR_CONST_P): New macro.
6506 * rtlanal.c (pure_const_p): Removed.
6507 * builtins.c (expand_builtin): Rename DECL_IS_PURE to DECL_PURE_P.
6508 * reorg.c (delete_prior_computation) Changed CONST_OR_PURE_CALL_P
6509 to RTL_CONST_CALL_P.
6510 * ipa-pure-const.c (pure_const_state_e): Added looping field.
6511 (check_decl, check_tree, check_call, scan_function): Initialize
6513 (analyze_function): Rename DECL_IS_PURE to DECL_PURE_P.
6514 (static_execute): Set looping true for recursive functions.
6515 Undo setting state to IPA_NEITHER for recursive functions.
6517 * ifcvt.c (noce_can_store_speculate_p): Changed
6518 CONST_OR_PURE_CALL_P and pure_call_p to RTL_CONST_CALL_P or
6519 RTL_CONST_OR_PURE_CALL_P.
6520 * dse.c (scan_insn): Ditto.
6521 * local-alloc.c (validate_equiv_mem, memref_used_between_p): Ditto.
6522 * gcse.c (oprs_not_seen_p) Changed CONST_OR_PURE_CALL_P to
6523 RTL_CONST_OR_PURE_CALL_P.
6524 (store_killed_in_insn): Changed CONST_OR_PURE_CALL_P and
6525 pure_call_p to RTL_CONST_CALL_P.
6526 * gimplify.c (gimplify_call_expr): Clear side effects for
6527 non-looping pure and constant calls.
6528 * calls.c (emit_call_1): Set rtl flags from ecf flags.
6529 (flags_from_decl_or_type): Set ecf flags from decl flags.
6530 (initialize_argument_information): Turn off
6531 ECF_LOOPING_CONST_OR_PURE when turning off ECF_CONST.
6532 Change const to pure if callee_copies is true rather than just
6534 (expand_call): Turn off ECF_LOOPING_PURE_CONST_CALL and remove old
6535 way of marking pure calls.
6536 (emit_library_call_value_1): Turn off ECF_LOOPING_PURE_CONST_CALL.
6537 Remove hack that was supposed to fix pr7335 and remove old
6538 way of marking pure calls.
6539 * emit-rtl.c (emit_copy_of_insn_after): Copy RTL_CONST_CALL_P,
6540 RTL_PURE_CALL_P, RTL_LOOPING_CONST_OR_PURE_CALL_P.
6541 * cselib.c (cselib_process_insn): Changed CONST_OR_PURE_CALL_P to
6542 RTL_CONST_OR_PURE_CALL_P.
6543 * tree-ssa-pre.c (can_value_number_call): Fixed spacing.
6544 * loop-invariant.c (find_exits, find_invariant_bb): Changed
6545 CONST_OR_PURE_CALL_P to RTL_CONST_OR_PURE_CALL_P.
6546 * sched-deps.c (schedule_analyze): Ditto.
6547 * rtl.h (struct rtx_def): Use call field, unchanging field, and
6548 return_val field of calls to represent pure and const function info.
6549 (CONST_OR_PURE_CALL_P): Deleted macro.
6550 (RTL_CONST_CALL_P, RTL_PURE_CALL_P,
6551 RTL_LOOPING_CONST_OR_PURE_CALL_P, RTL_CONST_OR_PURE_P): New macros.
6552 * tree-inline.c (copy_body_r): Changed TREE_READONLY_DECL_P to
6554 * tree-optimize.c (execute_fixup_cfg): Added test for
6555 ECF_LOOPING_CONST_OR_PURE.
6556 * c-common.c (handle_pure_attribute): Changed DECL_IS_PURE to
6558 * tree-cfg.c (update_call_expr_flags): Do not clear tree side
6559 effects for looping pure or const calls.
6560 (verify_gimple_expr): Added verification code.
6561 * config/alpha/alpha.c (alpha_legitimize_address,
6562 alpha_emit_xfloating_libcall): Changed CONST_OR_PURE_CALL_P to
6564 * config/s390/s390.c (s390_emit_tls_call_insn): Ditto.
6565 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Ditto.
6566 * config/mips/mips.c (mips_call_tls_get_addr): Ditto.
6567 * cfgrtl.c (need_fake_edge_p): Changed CONST_OR_PURE_CALL_P to
6568 RTL_CONST_OR_PURE_CALL_P.
6569 * dce.c (deletable_insn_p): Allow non looping, non sibling, pure
6570 and const calls to be deleted.
6572 2008-05-07 Uros Bizjak <ubizjak@gmail.com>
6575 * config/i386/mmx.md (mmx_subv2sf3): New expander.
6576 (*mmx_subv2sf3): Rename from mmx_subv2sf3 insn pattern.
6577 (*mmx_eqv2sf3): Rename from mmx_eqv2sf3 insn pattern.
6578 (mmx_eqv2sf3): New expander. Use ix86_fixup_binary_operands_no_copy
6579 to handle nonimmediate operands.
6580 (*mmx_paddwd): Rename from mmx_paddwd insn pattern.
6581 (mmx_paddwd): New expander. Use ix86_fixup_binary_operands_no_copy
6582 to handle nonimmediate operands.
6583 (*mmx_pmulhrwv4hi3): Rename from mmx_pmulhrwv4hi3 insn pattern.
6584 (mmx_pmulhrwv4hi3): New expander. Use
6585 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
6586 (*sse2_umulv1siv1di3): Rename from sse2_umulv1siv1di3 insn pattern.
6587 (sse2_umulv1siv1di3): New expander. Use
6588 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
6589 (*mmx_eq<mode>3): Rename from mmx_eq<mode>3 insn pattern.
6590 (mmx_eq<mode>3): New expander. Use
6591 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
6592 (*mmx_uavgv8qi3): Rename from mmx_uavgv8qi3 insn pattern.
6593 (mmx_uavgv8qi3): New expander. Use
6594 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
6595 (*mmx_uavgv4hi3): Rename from mmx_uavgv4hi3 insn pattern.
6596 (mmx_uavgv4hi3): New expander. Use
6597 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
6599 * config/i386/sse.md
6600 (sse_movhlps_exp): New expander. Use ix86_fixup_binary_operands
6601 to handle nonimmediate operands.
6602 (sse_movlhps_exp): New expander. Use ix86_fixup_binary_operands
6603 to handle nonimmediate operands.
6604 (sse_loadhps_exp): New expander. Use ix86_fixup_binary_operands
6605 to handle nonimmediate operands.
6606 (sse_loadlps_exp): New expander. Use ix86_fixup_binary_operands
6607 to handle nonimmediate operands.
6608 (sse2_unpckhpd_exp): New expander. Use
6609 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
6610 (sse2_unpcklpd_exp): New expander. Use
6611 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
6612 (sse_loadhpd_exp): New expander. Use ix86_fixup_binary_operands
6613 to handle nonimmediate operands.
6614 (sse_loadlpd): New expander. Use ix86_fixup_binary_operands
6615 to handle nonimmediate operands.
6616 (*sse2_<plusminus_insn><mode>3): Rename from
6617 sse2_<plusminus_insn><mode>3 insn pattern.
6618 (sse2_<plusminus_insn><mode>3): New expander. Use
6619 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
6620 (*sse2_umulv2siv2di3): Rename from sse2_umulv2siv2di3 insn pattern.
6621 (sse2_umulv2siv2di3): New expander. Use
6622 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
6623 (*sse4_1_mulv2siv2di3): Rename from sse4_1_mulv2siv2di3 insn pattern.
6624 (sse4_1_mulv2siv2di3): New expander. Use
6625 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
6626 (*sse2_pmaddwd): Rename from sse2_pmaddwd insn pattern.
6627 (sse2_pmaddwd): New expander. Use
6628 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
6629 (*sse2_eq<mode>3): Rename from sse2_eq<mode>3 insn pattern.
6630 (sse2_eq<mode>3): New expander. Use
6631 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
6632 (*sse4_1_eqv2di3): Rename from sse4_1_eqv2di3 insn pattern.
6633 (sse4_1_eqv2di3): New expander. Use
6634 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
6635 (*sse2_uavgv16qi3): Rename from sse2_uavgv16qi3 insn pattern.
6636 (sse2_uavgv16qi3): New expander. Use
6637 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
6638 (*sse2_uavgv16qi3): Rename from sse2_uavgv16qi3 insn pattern.
6639 (sse2_uavgv16qi3): New expander. Use
6640 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
6641 (*sse2_uavgv8hi3): Rename from sse2_uavgv8hi3 insn pattern.
6642 (sse2_uavgv8hi3): New expander. Use
6643 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
6644 (*ssse3_pmulhrswv8hi3): Rename from ssse3_pmulhrswv8hi3 insn pattern.
6645 (ssse3_pmulhrswv8hi3): New expander. Use
6646 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
6647 (*ssse3_pmulhrswv4hi3): Rename from ssse3_pmulhrswv4hi3 insn pattern.
6648 (ssse3_pmulhrswv4hi3): New expander. Use
6649 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
6651 (<sse>_vm<plusminus_insn><mode>3): Do not use ix86_binary_operator_ok.
6652 (<sse>_vmmul<mode>3): Ditto.
6653 (divv4sf3): Do not use ix86_fixup_binary_operands_no_copy.
6655 (ssse3_pmaddubsw128): Use register_operand for operand 1.
6656 (ssse3_pmaddubsw): Ditto.
6658 * config/i386/i386.c (struct_builtin_description)
6659 [IX86_BUILTIN_LOADHPS]: Use CODE_FOR_sse_loadhps_exp.
6660 [IX86_BUILTIN_STOREHPS]: Use CODE_FOR_sse_loadlps_exp.
6661 [IX86_BUILTIN_LOADHPD]: Use CODE_FOR_sse2_loadhpd_exp.
6662 [IX86_BUILTIN_LOADLPD]: Use CODE_FOR_sse2_loadlpd_exp.
6663 [IX86_BUILTIN_MOVHLPS]: Use CODE_FOR_sse_movhlps_exp.
6664 [IX86_BUILTIN_MOVLHPS]: Use CODE_FOR_sse_movlhps_exp.
6665 [IX86_BUILTIN_UNPCKHPD]: Use FOR_sse2_unpckhpd_exp.
6666 [IX86_BUILTIN_UNPCKLPD]: Use FOR_sse2_unpcklpd_exp.
6667 (ix86_fixup_binary_operands): Assert that src1
6668 and src2 must have the same mode when swapped.
6669 (ix86_expand_binop_builtin): Do not use ix86_fixup_binary_operands
6670 and ix86_binary_operator_ok. Do not force operands in registers
6673 2008-05-07 Jan Hubicka <jh@suse.cz>
6675 * cgraph.c (dump_cgraph_node): Update.
6676 * cgraph.h (cgraph_local_info): Break out inline summary.
6677 * cgraphunit.c (cgraph_process_new_functions): Use inliner analysis
6679 * ipa-inline (inline_summary): New accestor function.
6680 (cgraph_clone_inlined_nodes, cgraph_check_inline_limits,
6681 cgraph_decide_inlining, compute_inline_parameters): Update.
6682 * ipa.c (cgraph_remove_unreachable_nodes): Remove statistics.
6684 2008-05-07 Maxim Kuvyrkov <maxim@codesourcery.com>
6686 Cleanup ColdFire scheduling support and add V4 pipeline model.
6688 * config/m68k/m68k.md (UNSPEC_TIE): New constant.
6689 (define_attr cpu): Add cfv4 value.
6690 (define_attr type, define_attr type1): Merge into a single 'type'
6691 attribute. Update all uses.
6692 (define_attr opx_type, define_attr opy_type, define_attr opx_access):
6693 Rearrange and update. Rename value 'reg' to 'Rn', add value 'FPn'.
6695 (define_attr opx_mem, define_attr opy_mem): Remove.
6696 (define_attr op_mem): Clean up, update comment.
6697 (define_attr size): Use specific values instead of general int.
6698 (define_attr guess, define_attr split): Remove. Update all uses.
6699 (movdf_internal, tstsi_internal, tsthi_internal, tstqi_internal,
6700 tst<mode>_68881, pushexthisi_const, movsi_const0_68000_10,
6701 movsi_const0_68040_60, movsi_const0, movsi_cf, movstrictqi_cf,
6702 zero_extendhisi2_cf, zero_extendqisi2_cfv4, cfv4_extendhisi2,
6703 68k_extendhisi2, extendqihi2, cfv4_extendqisi2, 68k_extendqisi2,
6704 floatsi<mode>2_68881, ftrunc<mode>2_68881, ftrunc<mode>2_cf,
6705 fix<mode>qi2_68881, fix<mode>hi2_68881, fix<mode>si2_68881,
6706 adddi_dishl32, addsi3_5200, add<mode>3_floatsi_68881,
6707 add<mode>3_floathi_68881, add<mode>3_floatqi_68881,
6708 add<mode>3_68881, add<mode>3_cf, subdi_dishl32, subsi3,
6709 sub<mode>3_floatsi_68881, sub<mode>3_floathi_68881,
6710 sub<mode>3_floatqi_68881, sub<mode>3_68881, sub<mode>3_cf,
6711 mulhi3, mulhisi3, mulhisisi3_s, mulsi3_68020, mulsi3_cf,
6712 umulhisi3, mulhisisi3_z, mul<mode>3_floatsi_68881,
6713 mul<mode>3_floathi_68881, mul<mode>3_floatqi_68881, fmul<mode>3_cf,
6714 div<mode>3_cf, sqrt<mode>2_cf, abs<mode>2_cf, clzsi2,
6715 one_cmplsi2_5200, subreghi1ashrdi_const32, ashrsi3, lshrsi3,
6716 bsetmemqi, bsetmemqi_ext, bclrmemqi, bclrmemqi_ext,
6717 beq, bne, bgt, blt, bordered, bunordered, buneq, bunge, bungt, bunle,
6718 bunlt, bltgt, tablejump_internal, call, non_symbolic_call_value,
6719 symbolic_call_value_jsr, symbolic_call_value_bsr, link):
6720 Update or set attributes.
6721 (stack_tie): New fake instruction.
6723 * config/m68k/m68k.h (TUNE_CFV4): New macro.
6724 (m68k_sched_attr_size): Update declaration.
6725 (m68k_sched_attr_type2): Remove.
6726 (m68k_sched_address_bypass_p, m68k_sched_indexed_address_bypass_p):
6727 Declare new bypass predicates.
6729 * config/m68k/m68k.c (m68k_sched_issue_rate,
6730 m68k_sched_first_cycle_multipass_dfa_lookahead): Declare hook
6732 (TARGET_SCHED_ISSUE_RATE,
6733 TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Override hooks.
6734 (override_options): Handle scheduling for ColdFire V4 core.
6735 (m68k_expand_prologue): Emit stack_tie.
6736 (enum attr_op_type): Split value 'OP_TYPE_REG' to 'OP_TYPE_RN' and
6737 'OP_TYPE_FPN'. Update all uses.
6738 (sched_guess_p): Remove.
6739 (sched_address_type): Handle symbolic addresses.
6740 (sched_get_operand): New static function.
6741 (sched_operand_type): Merge into sched_attr_op_type.
6742 (sched_attr_op_type): Handle FP registers, handle quick constants,
6744 (m68k_sched_attr_opx_type, m68k_sched_attr_opy_type): Update.
6745 (m68k_sched_attr_size): Update. Move logic to ...
6746 (sched_get_attr_size_int): New static function.
6747 (sched_get_opxy_mem_type): New static function.
6748 (m68k_sched_attr_op_mem): Update.
6749 (m68k_sched_attr_type2): Remove.
6750 (sched_cfv4_bypass_data): New static variable.
6751 (m68k_sched_adjust_cost): Handle ColdFire V4 bypass.
6752 (m68k_sched_issue_rate): Implement scheduler hook.
6753 (struct _sched_ib: enabled_p): New field.
6754 (m68k_sched_variable_issue): Update. Handle V4.
6755 (SCHED_DUMP_TODO, SCHED_DUMP_DONE, SCHED_DUMP_NOTHING,
6756 sched_dump_class_func_t, sched_dump_split_class,
6757 sched_dump_dfa_guess_unit_code, sched_dump_dfa_state,
6758 sched_dump_dfa_class, m68k_sched_dump): Remove.
6759 (m68k_sched_first_cycle_multipass_dfa_lookahead): Implement scheduler
6761 (m68k_sched_init_global): Remove statisctics dumping, introduce
6762 sanity check that all instructions have pipeline reservations. Handle
6764 (m68k_sched_dfa_pre_advance_cycle, m68k_sched_dfa_post_advance_cycle):
6765 Handle ColdFire V4 core.
6766 (sched_mem_operand_p, sched_get_reg_operand, sched_get_mem_operand):
6767 New static functions.
6768 (m68k_sched_address_bypass_p): New bypass predicate.
6769 (sched_get_indexed_address_scale): New static function.
6770 (m68k_sched_indexed_address_bypass_p): New bypass predicate.
6772 * cf.md: Update comments.
6773 (define_attr type2): Remove. Use 'type' attribute instead.
6775 (cf_ib): Rename to cfv123_ib. Update all uses.
6776 (cf_oep): Rename to cfv123_oep. Update all uses.
6777 (cf_chr): Rename to cfv123_chr. Update all uses.
6778 (cf_mem): Rename to cfv123_mem. Update all uses.
6779 (cf_mac): Move to more appropriate place.
6780 (cfv123_guess): New automaton and cpu_unit.
6781 (cfv123_*, cfv12_*, cfv1_*, cfv2_*, cfv3_*): Use type attribute.
6782 Update uses of 'size' attribute. Handle before reload scheduling.
6783 (cfv123_guess): New dummy reservation for unhandled instructions.
6784 (cfv4_*): Pipeline description of ColdFire V4 core.
6785 (ignore): New reservation to handle 'ignore' type.
6787 2008-05-07 Ian Lance Taylor <iant@google.com>
6790 * gimplify.c (find_single_pointer_decl_1): Don't look through
6792 (find_single_pointer_decl): Adjust comments.
6794 2008-05-07 Jakub Jelinek <jakub@redhat.com>
6797 * fold-const.c (fold_binary): Use STRIP_SIGN_NOPS instead of
6798 STRIP_NOPS on arguments even for MIN_EXPR and MAX_EXPR.
6801 * omp-low.c (expand_omp_atomic_pipeline): Load value using the
6802 integral type rather than floating point, then VIEW_CONVERT_EXPR
6803 to the floating point type.
6805 2008-05-07 Uros Bizjak <ubizjak@gmail.com>
6807 * config/i386/i386.c (ix86_expand_copysign): Force non-zero constant
6808 TFmode op0 to register.
6810 2008-05-07 Alan Modra <amodra@bigpond.net.au>
6812 * c-decl.c (grokdeclarator): Comment typo.
6814 2008-05-06 Aldy Hernandez <aldyh@redhat.com>
6816 * tree-flow.h: Remove prototype for computed_goto_p.
6817 * tree-cfg.c (computed_goto_p): Make static.
6819 2008-05-06 H.J. Lu <hongjiu.lu@intel.com>
6822 * config/i386/i386.c (contains_128bit_aligned_vector_p): Renamed to ...
6823 (contains_aligned_value_p): This. Handle _Decimal128.
6824 (ix86_function_arg_boundary): Only align _Decimal128 to its
6825 natural boundary and handle it properly.
6827 2008-05-06 Martin Jambor <mjambor@suse.cz>
6829 * ipa-cp.c (ipcp_method_orig_node): Renamed to ipcp_get_orig_node.
6830 (ipcp_method_is_cloned): Renamed to ipcp_node_is_clone
6831 (ipcp_method_set_orig_node): Removed.
6832 (ipcp_cval_get_cvalue_type): Removed.
6833 (ipcp_method_get_scale): Renamed to ipcp_get_node_scale.
6834 (ipcp_method_set_scale): Renamed to ipcp_set_node_scale.
6835 (ipcp_cval_set_cvalue_type): Removed.
6836 (ipcp_cval_get_cvalue): Removed.
6837 (ipcp_cval_set_cvalue): Removed.
6838 (ipcp_type_is_const): Renamed to ipcp_lat_is_const.
6839 (ipcp_cval_equal_cvalues): Renamed to ipcp_lats_are_equal
6840 (ipcp_lats_are_equal): Changed parameters to two ipcp_lattice's
6841 (ipcp_cval_meet): Renamed to ipa_lattice_meet
6842 (ipcp_cval_changed): Changed to use ipcp_lat_is_const
6843 (ipcp_method_cval): Renamed to ipcp_get_ith_lattice
6844 (ipcp_get_ith_lattice): Changed parameters.
6845 (ipcp_cval_compute): Renamed to ipcp_lattice_from_jfunc
6846 (ipcp_lattice_from_jfunc): Changed parameters.
6847 (ipcp_redirect): Local lattice pointer instead of lattice type variable.
6848 (ipcp_method_cval_print): Added temporary variable info.
6849 (ipcp_redirect): Removed already unused local variable caller.
6850 (ipcp_redirect): New temporary variable orig_callee_info
6851 (ipcp_redirect): Removed newly unused local variable callee.
6852 (ipcp_redirect): Removed (a bit confusing) local variable type.
6853 (ipcp_insert_stage): Added local variable info.
6854 (ipcp_cval_changed): Renamed to ipcp_lattice_changed, parameters
6856 (ipcp_formal_create): Removed.
6857 (ipcp_method_cval_set): Removed.
6858 (ipcp_propagate_stage): Renamed lattice variables.
6859 (ipcp_method_cval_set_cvalue_type): Removed.
6860 (ipcp_method_cval_print): Renamed to ipcp_print_all_lattices
6861 (ipcp_print_all_lattices): Changed printed strings to refer to
6862 lattices rather than cvals.
6863 (ipcp_method_cval_init): Renamed to ipcp_initialize_node_lattices
6864 (ipcp_propagate_const): Changed formal parameters.
6865 (build_const_val): Changed formal parameters.
6866 (ipcp_insert_stage): Removed useless variable cvalue
6867 (build_const_val): Changed formal parameters.
6868 (ipcp_method_compute_scale): Renamed to ipcp_compute_node_scale
6869 (ipcp_after_propagate): Renamed to ipcp_change_tops_to_bottom
6870 (ipcp_callsite_param_print): Renamed to ipcp_print_all_jump_functions
6871 (ipcp_profile_mt_count_print): Renamed to ipcp_print_func_profile_counts
6872 (ipcp_print_func_profile_counts): Changed string from "method" to
6874 (ipcp_profile_cs_count_print): Renamed to ipcp_print_call_profile_counts
6875 (ipcp_profile_edge_print): Renamed to ipcp_print_edge_profiles
6876 (ipcp_profile_bb_print): Renamed to ipcp_print_bb_profiles
6877 (ipcp_structures_print): Renamed to ipcp_print_all_structures
6878 (ipcp_profile_print): Renamed to ipcp_print_profile_data
6879 (ipcp_lat_is_const): Changed parameters and made inline.
6880 (ipcp_replace_map_create): Renamed to ipcp_create_replace_map
6881 (ipcp_redirect): Renamed to ipcp_need_redirect_p
6882 (ipcp_need_redirect_p): Calls ipcp_lat_is_const instead of using
6883 the predicate condition directly
6884 (ipcp_propagate_stage): Added local variable args. Removed local
6885 variable callee. (Both are mere code simplifications.)
6886 (ipcp_method_dont_insert_const): Renamed to
6887 ipcp_node_not_modifiable_p.
6888 (ipcp_node_not_modifiable_p): Made inline.
6889 (ipcp_cloned_create): Renamed to ipcp_init_cloned_node
6890 (ipcp_propagate_const): Renamed to ipcp_propagate_one_const
6891 (ipcp_print_all_lattices): Removed variable cvalue
6892 (ipcp_method_scale_print): Renamed to ipcp_function_scale_print
6895 2008-05-06 Olivier Hainque <hainque@adacore.com>
6897 * tree-sra.c (try_instantiate_multiple_fields): Early return
6898 if field has POINTER_TYPE.
6900 2008-05-06 Kai Tietz <kai.tietz@onevision.com>
6902 * config/i386/i386.c (output_set_got): Fix for x86_64 output_emit_asm
6903 by using 'q' specifier for instruction.
6904 (ix86_file_end): Replaced case TARGET_64BIT_MS_ABI by TARGET_64BIT.
6906 2008-05-06 Anatoly Sokolov <aesok@post.ru>
6908 * config/avr/avr.md (*sbrx_branch, *sbix_branch, *sbix_branch_tmp):
6909 Change mode of zero_extract from QImode to HImode.
6910 (sign bit tests peepholes): (Ditto.).
6912 2008-05-06 Uros Bizjak <ubizjak@gmail.com>
6914 * config/i386/mmx.md: Remove double backslashes from asm templates.
6915 (*mmx_addv2sf3): Rename from mmx_addv2sf3 insn pattern.
6916 (mmx_addv2sf3): New expander. Use ix86_fixup_binary_operands_no_copy
6917 to handle nonimmediate operands.
6918 (*mmx_mulv2sf3): Rename from mmx_mulv2sf3 insn pattern.
6919 (mmx_mulv2sf3): New expander. Use ix86_fixup_binary_operands_no_copy
6920 to handle nonimmediate operands.
6921 (*mmx_<code>v2sf3_finite): New insn pattern.
6922 (*mmx_<code>v2sf3): Rename from mmx_<code>v2sf3 insn pattern.
6923 (mmx_<code>v2sf3): New expander. Use
6924 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
6925 (mmx_<plusminus_insn><mode>3): New expander. Use
6926 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
6927 (*mmx_<plusminus_insn><mode>3): New insn pattern.
6928 (mmx_add<mode>3): Removed.
6929 (mmx_ssadd<mode>3): Ditto.
6930 (mmx_usadd<mode>3): Ditto.
6931 (mmx_sub<mode>3): Ditto.
6932 (mmx_sssub<mode>3): Ditto.
6933 (mmx_ussub<mode>3): Ditto.
6934 (*mmx_mulv4hi3): Rename from mmx_mulv4hi3 insn pattern.
6935 (mmx_mulv4hi3): New expander. Use ix86_fixup_binary_operands_no_copy
6936 to handle nonimmediate operands.
6937 (*mmx_smulv4hi3_highpart): Rename from mmx_smulv4hi3_highpart
6939 (mmx_smulv4hi3_highpart): New expander. Use
6940 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
6941 (*mmx_umulv4hi3_highpart): Rename from mmx_umulv4hi3_highpart
6943 (mmx_umulv4hi3_highpart): New expander. Use
6944 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
6945 (*mmx_<code>v4hi3): Rename from mmx_<code>v4hi3 insn pattern.
6946 (mmx_<code>v4hi3): New expander. Use
6947 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
6948 (*mmx_<code>v8qi3): Rename from mmx_<code>v8qi3 insn pattern.
6949 (mmx_<code>v8qi3): New expander. Use
6950 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
6951 (*mmx_<code><mode>3): Rename from mmx_<code><mode>3 insn pattern.
6952 (mmx_<code><mode>3): New expander. Use
6953 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
6955 2008-05-05 Jan Hubicka <jh@suse.cz>
6957 PR tree-optimization/36118
6958 * passes.c (pass_init_dump_file): Fix dump header.
6960 2008-05-05 Andrew Pinski <andrew_pinski@playstation.sony.com>
6963 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't create
6964 VCE for function decls.
6966 2008-05-05 H.J. Lu <hongjiu.lu@intel.com>
6968 * config/i386/sse.md (sse2_<plusminus_insn><mode>3): Fix a typo.
6970 2008-05-05 H.J. Lu <hongjiu.lu@intel.com>
6972 * config/i386/i386.md (sat_plusminus): New.
6973 (plusminus_insn): Likewise.
6974 (plusminus_mnemonic): Likewise.
6976 (comm): Add ss_plus, us_plus, ss_minus and us_minus.
6977 (*<addsub><mode>3_cc_overflow): Renamed to ...
6978 (*<plusminus_insn><mode>3_cc_overflow): This.
6979 (*<addsub>si3_zext_cc_overflow): Renamed to ...
6980 (*<plusminus_insn>si3_zext_cc_overflow): This.
6982 * config/i386/sse.md (<addsub><mode>3): Renamed to ...
6983 (<plusminus_insn><mode>3): This.
6984 (*<addsub><mode>3): Renamed to ...
6985 (*<plusminus_insn><mode>3): This.
6986 (<sse>_vm<addsub><mode>3): Renamed to ...
6987 (<sse>_vm<plusminus_insn><mode>3): This.
6988 (sse3_h<addsub>v4sf3): Renamed to ...
6989 (sse3_h<plusminus_insn>v4sf3): This.
6990 (sse3_h<addsub>v2df3): Renamed to ...
6991 (sse3_h<plusminus_insn>v2df3): This.
6992 (<plusminus_insn><mode>3): New.
6993 (*<plusminus_insn><mode>3): Likewise.
6994 (sse2_<plusminus_insn><mode>3): Likewise.
6995 (add<mode>): Removed.
6996 (*add<mode>3): Likewise.
6997 (sse2_ssadd<mode>3): Likewise.
6998 (sse2_usadd<mode>3): Likewise.
6999 (sub<mode>3): Likewise.
7000 (*sub<mode>3): Likewise.
7001 (sse2_sssub<mode>3): Likewise.
7002 (sse2_ussub<mode>3): Likewise.
7004 2008-05-05 Benjamin Kosnik <bkoz@redhat.com>
7006 * gthr-single.h: Add in required interface elements as per gthr.h.
7007 Add stub types for __gthread_key_t, __gthread_once_t. Add defines
7008 for __GTHREAD_ONCE_INIT, __GTHREAD_RECURSIVE_MUTEX_INIT.
7009 Generalize UNUSED macro.
7010 (__gthread_once): Add.
7011 (__gthread_key_create): Add.
7012 (__gthread_key_delete): Add.
7013 (__gthread_getspecific): Add.
7014 (__gthread_setspecific): Add.
7016 2008-05-05 Andrew Pinski <Andrew.Pinski@playstation.sony.com>
7018 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): If we have
7019 the same size types for the indirect reference on the rhs, then
7022 2008-05-05 Uros Bizjak <ubizjak@gmail.com>
7024 * config/i386/i386.md
7025 (*float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit): Use only
7026 one insn template instead of template series.
7027 (*xordi_1_rex64): Ditto.
7028 (*xordi_2_rex64): Ditto.
7030 2008-05-05 Ira Rosen <irar@il.ibm.com>
7032 PR tree-optimization/36119
7033 * tree-vect-transform.c (vectorizable_assignment): Set NCOPIES to 1
7036 2008-06-04 Jan Hubicka <jh@suse.cz>
7038 tree-optimization/36100
7039 * tree-pass.h (pass_O0_always_inline): Declare.
7040 * ipa-inline.c (inline_transform): Remove dead code.
7041 (cgraph_gate_O0_always_inline, cgraph_O0_always_inline,
7042 pass_O0_always_inline): New.
7043 * passes.c (init_optimization_passes): Add pass_O0_always_inline.
7045 2008-05-04 Kai Tietz <kai.tietz@onevision.com>
7047 * config/i386/i386.c (x86_output_mi_thunk): Use movq alternative
7048 mnemonic in this_param move for TARGET_64BIT.
7050 2008-05-04 Uros Bizjak <ubizjak@gmail.com>
7052 * config/i386/i386.md (*strmovsi_1): Simplify asm alternatives.
7053 (*strmovsi_rex_1): Ditto.
7054 (*strsetsi_1): Ditto.
7055 (*strsetsi_rex_1): Ditto.
7057 (add<mode>cc): Macroize expander from addqicc, addhicc, addsicc and
7058 adddicc expanders using SWI mode iterator.
7060 2008-05-04 H.J. Lu <hongjiu.lu@intel.com>
7063 * config/i386/i386.c (ix86_expand_special_args_builtin): Remove three
7066 2008-05-04 David S. Miller <davem@davemloft.net>
7068 * config.gcc (sparc*-*-*): Always set need_64bit_hwint to yes.
7069 (sparc*-*-linux*): Use linux.h in tm_file.
7070 (sparc-*-linux*): If 'enabled_targets' is 'all', build a bi-arch
7071 compiler defaulting to 32-bit.
7072 (sparc*-*-*): Remove explicit target settings of need_64bit_hwint,
7074 * config/sparc/linux.h: Remove definitions now obtained
7075 properly from linux.h
7076 * config/sparc/linux64.h: Likewise.
7077 (ASM_CPU_DEFAULT_SPEC): Change this to ASM_CPU64_DEFAULT_SPEC, we
7078 don't want this setting for 32-bit builds in a biarch compiler.
7079 * doc/install.texi: Add sparc-linux to list of targets
7080 supporting --enable-targets=all.
7082 2008-05-03 Andrew Pinski <pinskia@gmail.com>
7084 * Makefile.in (tree-ssa-phiprop.o): Fix dependencies.
7086 2008-05-03 H.J. Lu <hongjiu.lu@intel.com>
7088 * config/i386/i386.c (ix86_builtin_type): Move V4SI_FTYPE_V4SF
7089 after V4SI_FTYPE_V8HI.
7090 (ix86_init_mmx_sse_builtins): Move case V4HI_FTYPE_V4HI after
7091 case V4SI_FTYPE_V2DF.
7093 2008-05-03 Kenneth Zadeck <zadeck@naturalbridge.com>
7095 * doc/invoke.texi (max-flow-memory-locations): Removed.
7096 * params.def (PARAM_MAX_FLOW_MEMORY_LOCATIONS): Removed.
7098 2008-05-03 Richard Guenther <rguenther@suse.de>
7101 * opts.c (set_Wstrict_aliasing): Handle the turn-off case.
7103 2008-05-02 David S. Miller <davem@davemloft.net>
7105 * config.gcc (need_64bit_hwint): Document libcpp dependency.
7107 2008-05-02 Simon Baldwin <simonb@google.com>
7110 * c-common.h (warn_array_subscript_range): Removed.
7111 * c-common.c (warn_array_subscript_range): Ditto.
7112 * tree-vrp.c (check_array_ref): Revert to ignoring arrays with size 2.
7113 * c-typeck.c (build_array_ref): Remove warn_array_subscript_range.
7115 2008-05-02 H.J. Lu <hongjiu.lu@intel.com>
7117 * config/i386/i386.c (ix86_special_builtin_type): New.
7118 (bdesc_special_args): Likewise.
7119 (ix86_expand_special_args_builtin): Likewise.
7120 (ix86_init_mmx_sse_builtins): Updated.
7121 (ix86_expand_builtin): Updated.
7122 (ix86_expand_store_builtin): Removed.
7123 (ix86_expand_unop_builtin): Likewise.
7125 * config/i386/mm3dnow.h (__v2sf): Moved to ...
7126 * config/i386/mmintrin.h (__v2sf): Here.
7128 * config/i386/xmmintrin.h (_mm_loadh_pi): Replace __v2si with
7130 (_mm_loadl_pi): Likewise.
7131 (_mm_storeh_pi): Replace __v2si with __v2sf.
7132 (_mm_storel_pi): Likewise.
7134 * doc/extend.texi: Correct __builtin_ia32_loadhps,
7135 __builtin_ia32_loadlps, __builtin_ia32_storehps,
7136 __builtin_ia32_storelps, __builtin_ia32_loadhpd and
7137 __builtin_ia32_loadlpd.
7139 2008-05-02 H.J. Lu <hongjiu.lu@intel.com>
7141 * config/i386/i386.c (ix86_builtin_type): Add FLOAT_FTYPE_FLOAT,
7142 V4SF_FTYPE_V4SF_VEC_MERGE and V2DF_FTYPE_V2DF_VEC_MERGE.
7143 (bdesc_args): Updated. Add scalar SSE builtins with vec_merge.
7144 (ix86_init_mmx_sse_builtins): Updated.
7145 (ix86_expand_args_builtin): Likewise.
7146 (ix86_expand_builtin): Likewise.
7147 (ix86_expand_unop1_builtin): Renamed to ...
7148 (ix86_expand_unop_vec_merge_builtin): This.
7150 2008-05-01 Jan Hubicka <jh@suse.cz>
7153 * ipa-inline.c (inline_generate_summary): Make static.
7154 (inline_transform): Do not call inlining at -O0; make static.
7155 * passes.c (execute_todo): Add sanity check.
7156 (execute_one_ipa_transform_pass): Execute proper flags.
7158 2008-05-01 Eric Botcazou <ebotcazou@adacore.com>
7160 * tree.h (TYPE_NONALIASED_COMPONENT): Expand comment.
7161 (DECL_NONADDRESSABLE_P): Likewise.
7162 * alias.c (record_component_aliases): Fix comment.
7164 2008-05-01 Simon Baldwin <simonb@google.com>
7166 * c-common.h (warn_array_subscript_range): New function.
7167 * c-common.c (warn_array_subscript_range): Ditto.
7168 * tree-vrp.c (check_array_ref): Corrected code to agree with
7169 comment, ignoring only arrays of size 0 or size 1.
7170 * c-typeck.c (build_array_ref): Call warn_array_subscript_range.
7172 2008-05-01 H.J. Lu <hongjiu.lu@intel.com>
7174 * config/i386/i386.c (ix86_builtin_type): Replace
7175 DI_FTYPE_DI_DI_INT with V1DI2DI_FTYPE_V1DI_V1DI_INT.
7176 (bdesc_args): Updated.
7177 (ix86_init_mmx_sse_builtins): Likewise.
7178 (ix86_expand_args_builtin): Likewise.
7180 * config/i386/tmmintrin.h (_mm_alignr_pi8): Replace long long
7183 * doc/extend.texi: Correct __builtin_ia32_palignr.
7185 2008-05-01 H.J. Lu <hongjiu.lu@intel.com>
7188 * config/i386/i386.c (bdesc_crc32): Removed.
7189 (ix86_expand_crc32): Likewise.
7190 (ix86_builtin_type): Replace V2DI2TI_FTYPE_V2DI2TI_INT with
7191 V2DI2TI_FTYPE_V2DI_INT, V2DI2TI_FTYPE_V2DI2TI_V2DI2TI_INT with
7192 V2DI2TI_FTYPE_V2DI_V2DI_INT. Add UINT64_FTYPE_UINT64_UINT64,
7193 UINT_FTYPE_UINT_UINT, UINT_FTYPE_UINT_USHORT and
7194 UINT_FTYPE_UINT_UCHAR.
7195 (bdesc_args): Updated. Add crc32 builtins.
7196 (ix86_init_mmx_sse_builtins): Updated.
7197 (ix86_expand_args_builtin): Updated to support subreg.
7199 * doc/extend.texi: Correct __builtin_ia32_crc32di.
7201 2008-05-01 Jan Hubicka <jh@suse.cz>
7203 * tree-pass.h (opt_pass): Add IPA_PASS.
7204 (varpool_node, cgraph_node): Forward declare.
7205 (ipa_opt_pass): Define.
7206 (pass_ipa_inline): Turn into ipa_opt_pass.
7207 (pass_apply_inline): Remove.
7208 * ipa-inline.c (pass_ipa_inline): Turn into ipa_opt_pass.
7209 (apply_inline): Turn into ....
7210 (inline_transform): ... this one.
7211 (inline_generate_summary): New function.
7212 (pass_apply_inline): Remove.
7213 * function.h (ipa_opt_pass): Forward declare structure; typedef;
7215 (struct function): Add ipa_transforms_to_apply.
7216 * passes.c (register_one_dump_file): Work on IPA_PASS.
7217 (init_optimization_passes): Remove pass_inline_parameters and
7219 (pass_init_dump_file, pass_fini_dump_file): Break out from ....
7220 (execute_one_pass) ... here; apply transforms when possible.
7221 (add_ipa_transform_pass, execute_ipa_summary_asses,
7222 execute_one_ipa_transform_pass): New.
7223 (execute_ipa_pass_list): Update for IPA_PASS type.
7225 2008-05-01 H.J. Lu <hongjiu.lu@intel.com>
7227 * config/i386/i386.c (ix86_builtin_type): Add
7228 V2DI_FTYPE_V2DI_V16QI, V2DI_FTYPE_V2DI_UINT_UINT and
7229 V2DI_FTYPE_V2DI_V2DI_UINT_UINT.
7230 (bdesc_args): Add SSE4a builtins.
7231 (ix86_init_mmx_sse_builtins): Updated.
7232 (ix86_expand_args_builtin): Likewise.
7233 (ix86_expand_builtin): Likewise.
7235 2008-05-01 H.J. Lu <hongjiu.lu@intel.com>
7237 * config/i386/i386.c (ix86_builtin_type): Add
7238 V8HI_FTYPE_V8HI_V8HI_COUNT, V8HI_FTYPE_V8HI_SI_COUNT,
7239 V4SI_FTYPE_V4SI_V4SI_COUNT, V4SI_FTYPE_V4SI_SI_COUNT,
7240 V4HI_FTYPE_V4HI_V4HI_COUNT, V4HI_FTYPE_V4HI_SI_COUNT,
7241 V2DI_FTYPE_V2DI_V2DI_COUNT, V2DI_FTYPE_V2DI_SI_COUNT,
7242 V2SI_FTYPE_V2SI_V2SI_COUNT, V2SI_FTYPE_V2SI_SI_COUNT,
7243 V1DI_FTYPE_V1DI_V1DI_COUNT, V1DI_FTYPE_V1DI_SI_COUNT,
7244 V8HI_FTYPE_V8HI_INT, V4SI_FTYPE_V4SI_INT, V4HI_FTYPE_V4HI_INT,
7245 V2DI2TI_FTYPE_V2DI2TI_INT, V2DI2TI_FTYPE_V2DI2TI_V2DI2TI_INT
7246 and DI_FTYPE_DI_DI_INT.
7247 (bdesc_args): Add MMX/SSE shift, shuffle and palignr builtins.
7248 (ix86_init_mmx_sse_builtins): Updated.
7249 (ix86_expand_args_builtin): Likewise.
7250 (ix86_expand_builtin): Likewise.
7251 (ix86_expand_binop_imm_builtin): Removed.
7253 * doc/extend.texi: Correct __builtin_ia32_palignr128.
7255 2008-04-30 Richard Guenther <rguenther@suse.de>
7257 PR tree-optimization/32921
7258 * tree-ssa-loop-im.c (mem_refs_may_alias_p): Disambiguate with TBAA.
7260 2008-04-30 Richard Sandiford <rsandifo@nildram.co.uk>
7262 * config/arm/arm.c (arm_unwind_emit): Use
7263 crtl->all_throwers_are_sibcalls instead of
7264 cfun->all_throwers_are_sibcalls.
7265 (arm_output_fn_unwind): Likewise.
7266 * config/frv/frv.c (frv_stack_info): Use crtl->uses_pic_offset_table
7267 instead of cfun->uses_pic_offset_table.
7268 (frv_expand_prologue): Likewise.
7269 (frv_frame_pointer_required): Likewise.
7270 (frv_expand_fdpic_call): Likewise.
7271 (frv_emit_movsi): Likewise.
7272 * config/iq2000/iq2000.c (iq2000_expand_prologue): Use
7273 cfun->returns_pcc_struct instead of
7274 current_function_returns_pcc_struct.
7275 * config/m32c/m32c.c (need_to_save): Use crtl->calls_eh_return
7276 instead of cfun->calls_eh_return.
7277 (m32c_pushm_popm): Likewise.
7278 * config/xtensa/xtensa.h (cfun->calls_alloca): Remove bogus
7279 "extern" declaration.
7281 2008-04-30 Richard Guenther <rguenther@suse.de>
7283 PR tree-optimization/21636
7284 * tree-ssa-ccp.c (ccp_fold): Handle &p->x with p being a
7286 (evaluate_stmt): Print the likely value.
7287 (ccp_visit_stmt): Avoid excessive vertical spacing.
7289 2008-04-30 Rafael Espindola <espindola@google.com>
7291 * builtins.c (fold_call_expr): Return realret.
7292 * tree-ssa-threadedge.c
7293 (record_temporary_equivalences_from_stmts_at_dest): Ignore calls to
7294 __builtin_object_size.
7296 2008-04-30 Seongbae Park <seongbae.park@gmail.com>
7298 * gcc.c (wrapper_string): New variable.
7299 (insert_wrapper): New function.
7300 (execute): New option -wrapper.
7301 * doc/invoke.texi (Overall Options): New driver option -wrapper.
7303 2008-04-30 Nathan Froyd <froydnj@codesourcery.com>
7305 * config/rs6000/crtresgpr.asm, config/rs6000/crtresxgpr.asm,
7306 config/rs6000/crtsavgpr.asm, config/rs6000/crtresfpr.asm,
7307 config/rs6000/crtresxfpr.asm, config/rs6000/crtsavfpr.asm: Break out
7309 * config/rs6000/crtsavres.asm: ...here. Remove unneeded file.
7310 * config/rs6000/e500crtres32gpr.asm, config/rs6000/e500crtres64gpr.asm,
7311 config/rs6000/e500crtres64gprctr.asm,
7312 config/rs6000/e500crtrest32gpr.asm, config/rs6000/e500crtrest64gpr.asm,
7313 config/rs6000/e500crtresx32gpr.asm, config/rs6000/e500crtresx64gpr.asm,
7314 config/rs6000/e500crtsav32gpr.asm, config/rs6000/e500crtsav64gpr.asm,
7315 config/rs6000/e500crtsav64gprctr.asm,
7316 config/rs6000/e500crtsavg32gpr.asm, config/rs6000/e500crtsavg64gpr.asm,
7317 config/rs6000/e500crtsavg64gprctr.asm: New files.
7318 * config/rs6000/t-ppccomm: Add build rules for new files.
7319 (LIB2FUNCS_STATIC_EXTRA): Add new files.
7320 * config/rs6000/t-netbsd: Add build rules for new files.
7321 (LIB2FUNCS_STATIC_EXTRA): New variable.
7322 * config/rs6000/sysv4.h (ENDFILE_SPEC): Don't include crtsavres.o
7323 (CRTSAVRES_DEFAULT_SPEC): Likewise.
7324 * config/rs6000/netbsd.h (ENDFILE_SPEC): Likewise.
7326 2008-04-30 H.J. Lu <hongjiu.lu@intel.com>
7328 * config/i386/i386.c (ix86_builtin_type): Add
7329 FLOAT128_FTYPE_FLOAT128_FLOAT128, V16QI_FTYPE_V16QI_V16QI,
7330 V16QI_FTYPE_V8HI_V8HI, V8QI_FTYPE_V8QI_V8QI,
7331 V8QI_FTYPE_V4HI_V4HI, V8HI_FTYPE_V8HI_V8HI,
7332 V8HI_FTYPE_V16QI_V16QI, V8HI_FTYPE_V4SI_V4SI,
7333 V4SI_FTYPE_V4SI_V4SI, V4SI_FTYPE_V8HI_V8HI,
7334 V4SI_FTYPE_V4SF_V4SF, V4SI_FTYPE_V2DF_V2DF,
7335 V4HI_FTYPE_V4HI_V4HI, V4HI_FTYPE_V8QI_V8QI,
7336 V4HI_FTYPE_V2SI_V2SI, V4SF_FTYPE_V4SF_V4SF,
7337 V4SF_FTYPE_V4SF_V4SF_SWAP, V4SF_FTYPE_V4SF_V2SI,
7338 V4SF_FTYPE_V4SF_V2DF, V4SF_FTYPE_V4SF_DI,
7339 V4SF_FTYPE_V4SF_SI, V2DI_FTYPE_V2DI_V2DI,
7340 V2DI_FTYPE_V16QI_V16QI, V2DI_FTYPE_V4SI_V4SI,
7341 V2DI_FTYPE_V2DF_V2DF, V2SI_FTYPE_V2SI_V2SI,
7342 V2SI_FTYPE_V4HI_V4HI, V2SI_FTYPE_V2SF_V2SF,
7343 V2DF_FTYPE_V2DF_V2DF, V2DF_FTYPE_V2DF_V2DF_SWAP,
7344 V2DF_FTYPE_V2DF_V4SF, V2DF_FTYPE_V2DF_DI,
7345 V2DF_FTYPE_V2DF_SI, V2SF_FTYPE_V2SF_V2SF,
7346 V1DI_FTYPE_V1DI_V1DI, V1DI_FTYPE_V8QI_V8QI and
7347 V1DI_FTYPE_V2SI_V2SI.
7348 (bdesc_2arg): Moved to ...
7350 (ix86_init_mmx_sse_builtins): Updated.
7351 (ix86_expand_args_builtin): Updated. Take a pointer
7352 to const struct builtin_description. Handle comparison
7354 (ix86_expand_sse_compare): Take a new argument for swapping operands.
7355 (ix86_expand_builtin): Updated.
7357 * config/i386/sse.md (ssse3_pmaddubswv8hi3): Renamed to ...
7358 (ssse3_pmaddubsw128): This.
7359 (ssse3_pmaddubswv4hi3): Renamed to ...
7360 (ssse3_pmaddubsw): This.
7362 * doc/extend.texi (__builtin_ia32_packsswb128): Correct prototype.
7363 (__builtin_ia32_packssdw128): Likewise.
7364 (__builtin_ia32_packuswb128): Likewise.
7365 (__builtin_ia32_pmaddubsw): Likewise.
7366 (__builtin_ia32_pmaddubsw128): Likewise.
7368 2008-04-30 Richard Guenther <rguenther@suse.de>
7370 PR tree-optimization/14847
7371 * tree-ssa-ifcombine.c (get_name_for_bit_test): New helper function.
7372 (recognize_bits_test): Use it.
7373 (recognize_single_bit_test): Likewise.
7375 2008-04-30 Martin Jambor <mjambor@suse.cz>
7377 * ipa-cp.c (ipcp_init_stage): Calls ipa_set_called_with_variable_arg
7378 instead of setting number of formal parameters to zero.
7379 (ipcp_init_stage): Do not set the number of actual parameters to zero
7381 (ipcp_propagate_stage): Explicitly skipping all calls to nodes
7382 which are called with variable number of arguments.
7383 (ipcp_insert_stage): Explicitely skipping all nodes which are
7384 called with variable number of arguments.
7385 (ipcp_callsite_param_print): Skipps callsites to nodes with varaible
7386 number of parameters.
7388 * ipa-prop.h (struct ipa_node_params): Added flag
7389 called_with_var_arguments
7390 (ipa_set_param_count): Added. Changed sole setter to use it.
7391 (ipa_get_param_count): Added. All readers of param_count
7392 converted to use it instead.
7393 (ipa_set_called_with_variable_arg): Added.
7394 (ipa_is_called_with_var_arguments): Added.
7395 (ipa_get_ith_param): Added. All readers of param_decls converted
7397 (ipa_set_cs_argument_count): Added, sole writer to argument_count
7399 (ipa_get_cs_argument_count): Added, all readers of argument_count
7401 (ipa_get_ith_jump_func): Added. Accessors of jump values changed
7404 * ipa-prop.h (struct ipcp_formal): Renamed to ipcp_lattice
7405 (struct ipcp_lattice): Renamed cval_type to type
7406 (struct ipa_node_params): ipcp_cval renamed to ipcp_lattices
7408 * ipa-cp.c (ipcp_cval_get_cvalue): Changed return value to tree
7409 (ipcp_cval_set_cvalue): Changed type of parameter value to tree
7410 (ipcp_insert_stage): Changed the type of variable cvalue to tree
7411 (ipcp_replace_map_create): Changed the type of parameter cvalue to tree
7412 (build_const_val): Changed the type of parameter cvalue to tree
7413 (ipcp_propagate_const): Changed the type of parameter cvalue to tree
7414 (ipcp_method_cval_set_cvalue_type): Renamed parameter cval_type1 to type
7416 * ipa-prop.h (struct ipcp_formal): Replaced cvalue with tree called
7419 * ipa-prop.c (ipa_methodlist_init): Renamed to ipa_init_func_list
7420 (ipa_methodlist_not_empty): Removed, the sole user now checks directly
7421 (ipa_add_method): Renamed to ipa_push_func_to_list
7422 (ipa_remove_method): Renamed to ipa_pop_func_from_list
7423 (ipa_callsite_param_count): Removed.
7424 (ipa_callsite_param_count_set): Removed.
7425 (ipa_callsite_param): Removed.
7426 (ipa_callsite_callee): Removed.
7427 (ipa_callsite_compute_param): Renamed to ipa_compute_jump_functions
7428 (ipa_callsite_compute_count): Renamed to ipa_count_arguments
7429 (ipa_method_formal_count): Removed.
7430 (ipa_method_formal_count_set): Removed.
7431 (ipa_method_get_tree): Removed.
7432 (ipa_method_tree_map_create): Removed.
7433 (ipa_method_compute_tree_map): Renamed to ipa_create_param_decls_array
7434 (ipa_create_param_decls_array): Creates the array itself
7435 (ipa_create_param_decls_array): Temporary variable info instead of
7437 (ipa_method_formal_compute_count): Renamed to ipa_count_formal_params
7438 (ipa_method_compute_modify): Renamed to ipa_detect_param_modifications
7439 (get_type): Removed.
7440 (ipa_jf_get_info_type): Removed.
7441 (ipa_node_create): Renamed to ipa_create_node_params
7442 (ipa_free): Renamed to ipa_free_all_node_params
7443 (ipa_nodes_create): Renamed to ipa_create_all_node_params
7444 (ipa_edges_create): Renamed to ipa_create_all_edge_args
7445 (ipa_edges_free): Renamed to ipa_free_all_edge_args
7446 (ipa_nodes_free): Integrated into ipa_free_all_node_params and removed
7447 (ipa_free_all_node_params): Deallocation to jump_functions moved to
7448 ipa_free_all_edge_args
7449 (ipa_method_tree_print): Renamed to ipa_print_all_tree_maps
7450 (ipa_method_modify_print): Renamed to ipa_print_all_params_modified
7451 (ipa_create_methodlist_node): Removed.
7452 (ipa_methodlist_method): Removed.
7453 (ipa_methodlist_method_set): Removed.
7454 (ipa_methodlist_next_method): Removed.
7455 (ipa_methodlist_next_method_set): Removed.
7456 (ipa_method_is_modified): Removed.
7457 (ipa_method_modify_create): Removed.
7458 (ipa_method_modify_init): Temporary variable info instead of a few
7460 (ipa_detect_param_modifications): Temporary variable info instead of
7462 (ipa_compute_jump_functions): Temporary variable info instead of
7464 (ipa_method_modify_set): Removed.
7465 (ipa_method_tree_map): Renamed to ipa_get_param_decl_index
7466 (ipa_get_param_decl_index): Now accepts struct ipa_node_params rather
7467 than craph_node as the first parameter.
7468 (ipa_method_modify_stmt): Renamed to ipa_check_stmt_modifications
7469 (ipa_method_modify_init): Removed.
7470 (ipa_compute_jump_functions): Added a temp variable instead of
7471 repeatadly dereferencing the cgraph_edge.aux pointer
7472 (ipa_callsite_param_set_type): Removed.
7473 (ipa_compute_jump_functions): i renamed to index and moved to
7475 (ipa_callsite_param_set_info_type_formal): Removed.
7476 (ipa_callsite_param_set_info_type): Removed.
7477 (ipa_callsite_param_map_create): Removed.
7478 (ipa_callsite_tree): Removed.
7479 (ipa_callsite_caller): Removed.
7480 (ipa_pop_func_from_list): return_method removed to return_func
7482 * ipa-prop.h (enum cvalue_type): Renamed to ipa_lattice_type,
7483 prefixed all values with IPA_. Changed all users.
7484 (enum jump_func_type): Rnamed UNKNOWN_IPATYPE to IPA_UNKNOWN,
7485 CONST_IPATYPE to IPA_CONST, CONST_IPATYPE_REF to IPA_CONST_REF
7486 and FORMAL_IPATYPE IPA_PASS_THROUGH.
7487 (union parameter_info): Renamed to jump_func_value.
7488 (union jump_func_value): Renamed value to constant
7489 (struct ipa_jump_func): Renamed info_type to value
7490 (struct ipa_node): Renamed to ipa_node_params
7491 (struct ipa_node_params): Renamed ipa_arg_num to param_count
7492 (struct ipa_node_params): Renamed ipa_param_tree to param_decls
7493 (struct ipa_node_params): Renamed ipa_mod to modified_flags
7494 (struct ipa_edge): Renamed to ipa_edge_args
7495 (struct ipa_edge_args): Renamed ipa_param_num to argument_count
7496 (struct ipa_edge_args): Renamed ipa_param_map to jump_functions
7497 (struct ipa_methodlist): Renamed to ipa_func_list
7498 (struct ipa_func_list): method_p renamed to node, next_method
7500 (ipa_methodlist_p): Removed, switched all users to struct pointer
7501 (IS_VALID_TREE_MAP_INDEX): Renamed to IS_VALID_JUMP_FUNC_INDEX
7503 2008-04-30 Alan Modra <amodra@bigpond.net.au>
7505 * config/rs6000/rs6000.c (ALWAYS_RESTORE_ALTIVEC_BEFORE_POP): Define.
7506 (rs6000_emit_epilogue): Use backchain to restore only when we
7507 have a large frame. Make use of frame pointer to restore if we
7508 have one. Handle ALWAYS_RESTORE_ALTIVEC_BEFORE_POP.
7510 2008-04-29 Paolo Bonzini <bonzini@gnu.org>
7512 * config/avr/avr.md (*sbrx_branch, *sbix_branch, *sbix_branch_tmp):
7513 Add mode to zero_extract.
7514 (sign bit tests peepholes): (Ditto.).
7516 2008-04-29 H.J. Lu <hongjiu.lu@intel.com>
7518 * config/i386/i386.c (ix86_builtins): Replace Prescott New
7519 Instructions in comments with SSE3.
7520 (ix86_builtin_type): This. Add FLOAT128_FTYPE_FLOAT128,
7521 INT64_FTYPE_V4SF, INT64_FTYPE_V2DF, INT_FTYPE_V16QI,
7522 INT_FTYPE_V8QI, INT_FTYPE_V4SF, INT_FTYPE_V2DF,
7523 V16QI_FTYPE_V16QI, V8HI_FTYPE_V8HI, V8HI_FTYPE_V16QI,
7524 V8QI_FTYPE_V8QI, V4SI_FTYPE_V4SI, V4SI_FTYPE_V16QI,
7525 V4SI_FTYPE_V4SF, V4SI_FTYPE_V8HI, V4SI_FTYPE_V2DF,
7526 V4HI_FTYPE_V4HI, V4SF_FTYPE_V4SF, V4SF_FTYPE_V4SI,
7527 V4SF_FTYPE_V2DF, V2DI_FTYPE_V2DI, V2DI_FTYPE_V16QI,
7528 V2DI_FTYPE_V8HI, V2DI_FTYPE_V4SI, V2DF_FTYPE_V2DF,
7529 V2DF_FTYPE_V4SI, V2DF_FTYPE_V4SF, V2DF_FTYPE_V2SI,
7530 V2SI_FTYPE_V2SI, V2SI_FTYPE_V4SF, V2SI_FTYPE_V2SF,
7531 V2SI_FTYPE_V2DF, V2SF_FTYPE_V2SF and V2SF_FTYPE_V2SI.
7532 (bdesc_sse_args): Renamed to ...
7533 (bdesc_args): This. Add IX86_BUILTIN_PF2ID, IX86_BUILTIN_PFRCP,
7534 IX86_BUILTIN_PFRSQRT, IX86_BUILTIN_PI2FD, IX86_BUILTIN_PF2IW,
7535 IX86_BUILTIN_PSWAPDSI, IX86_BUILTIN_PSWAPDSF and
7537 (bdesc_1arg): Moved to ...
7539 (ix86_init_mmx_sse_builtins): Updated. Replace Prescott New
7540 Instructions in comments with SSE3.
7541 (ix86_expand_sse_operands_builtin): Renamed to ...
7542 (ix86_expand_args_builtin): This. Updated.
7543 (ix86_expand_unop1_builtin): Update comments.
7544 (ix86_expand_builtin): Updated.
7546 2008-04-29 Richard Guenther <rguenther@suse.de>
7548 PR tree-optimization/36078
7549 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely):
7550 Update virtual SSA form after cleaning up the CFG.
7552 2008-04-29 Richard Guenther <rguenther@suse.de>
7555 * fold-const.c (fold_binary): Fold (A + A) * C to A * 2*C.
7557 2008-04-29 Richard Guenther <rguenther@suse.de>
7559 * tree-ssa-alias.c (finalize_ref_all_pointers): Remove.
7560 (compute_may_aliases): Do not call finalize_ref_all_pointers.
7561 (compute_flow_insensitive_aliasing): Do not treat
7562 PTR_IS_REF_ALL pointers special.
7563 (get_smt_for): Likewise.
7564 (may_alias_p): Re-structure.
7565 (is_escape_site): A ref-all pointer conversion is not an escape site.
7566 * tree-ssa-structalias.c (find_what_p_points_to): Do not treat
7567 PTR_IS_REF_ALL pointers special.
7568 * tree-ssa-structalias.h (struct alias_info): Remove
7569 ref_all_symbol_mem_tag field.
7570 (PTR_IS_REF_ALL): Remove.
7572 2008-04-29 Richard Guenther <rguenther@suse.de>
7575 * fold-const.c (extract_muldiv_1): In combining division constants
7576 make sure to never overflow.
7578 2008-04-29 Nick Clifton <nickc@redhat.com>
7580 * doc/tm.texi (RETURN_ADDR_RTX): Fix typo.
7582 2008-04-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7585 * optc-gen.awk: Work around HP-UX/IA awk bug.
7587 2008-04-28 Danny Smith <dannysmith@users.sourceforge.net>
7589 * config/i386/cygming-crtend.c (register_frame_ctor): Revert my
7592 2008-04-28 Uros Bizjak <ubizjak@gmail.com>
7595 * config/i386/i386.md
7596 (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit):
7597 Change operand 1 predicate to nonimmediate_operand.
7599 2008-04-28 Jakub Jelinek <jakub@redhat.com>
7602 * dwarf2out.c (struct die_struct): Mark as chain_circular through
7604 * gengtype.c (walk_type, write_func_for_structure): Handle
7606 * doc/gty.texi: Document chain_circular.
7608 2008-04-28 Richard Guenther <rguenther@suse.de>
7610 PR tree-optimization/36066
7611 * tree-vrp.c (execute_vrp): Cleanup the CFG only after finalizing
7614 2008-04-28 Uros Bizjak <ubizjak@gmail.com>
7617 * config/i386/i386.md
7618 (floatdi<X87MODEF:mode>2_i387_with_xmm splitters):
7619 Use match_scratch instead of match_operand for operands 3 and 4.
7621 2008-04-27 Richard Guenther <rguenther@suse.de>
7623 PR tree-optimization/18754
7624 PR tree-optimization/34223
7625 * tree-pass.h (pass_complete_unrolli): Declare.
7626 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Print
7627 loop size before and after unconditionally of UL_NO_GROWTH in effect.
7628 Rewrite loop into loop closed SSA form if it is not already.
7629 (tree_unroll_loops_completely): Re-structure to iterate over
7630 innermost loops with intermediate CFG cleanups.
7631 Unroll outermost loops only if requested or the code does not grow
7633 * tree-ssa-loop.c (gate_tree_vectorize): Don't shortcut if no
7634 loops are available.
7635 (tree_vectorize): Instead do so here.
7636 (tree_complete_unroll): Also unroll outermost loops.
7637 (tree_complete_unroll_inner): New function.
7638 (gate_tree_complete_unroll_inner): Likewise.
7639 (pass_complete_unrolli): New pass.
7640 * tree-ssa-loop-manip.c (find_uses_to_rename_use): Only record
7641 uses outside of the loop.
7642 (tree_duplicate_loop_to_header_edge): Only verify loop-closed SSA
7643 form if it is available.
7644 * tree-flow.h (tree_unroll_loops_completely): Add extra parameter.
7645 * passes.c (init_optimization_passes): Schedule complete inner
7646 loop unrolling pass before the first CCP pass after final inlining.
7648 2008-04-27 Nathan Sidwell <nathan@codesourcery.com>
7650 * targhooks.h (default_emutls_var_fields,
7651 default_emutls_var_init): Declare.
7652 * tree.h (DECL_THREAD_LOCAL): Compare against TLS_MODEL_REAL.
7653 * target.h (struct gcc_target): Add struct emutls member.
7654 * target-def.h (TARGET_EMUTLS_GET_ADDRESS,
7655 TARGET_EMUTLS_REGISTER_COMMON, TARGET_EMUTLS_VAR_SECTION,
7656 TARGET_EMUTLS_TMPL_SECTION, TARGET_EMUTLS_VAR_PREFIX,
7657 TARGET_EMUTLS_TMPL_PREFIX, TARGET_EMUTLS_VAR_FIELDS,
7658 TARGET_EMUTLS_VAR_INIT, TARGET_EMUTLS_DEBUG_FORM_TLS_ADDRESS,
7659 TARGET_EMUTLS_VAR_ALIGN_FIXED, TARGET_EMUTLS): New.
7660 (TARGET_INITIALIZER): Add TARGET_EMUTLS.
7661 * builtins.def (BUILT_IN_EMUTLS_GET_ADDRESS,
7662 BUILT_IN_EMUTLS_REGISTER_COMMON): Get name from targetm structure.
7663 * dwarf2out.c (loc_descriptor_from_tree_1): Check if emutls can
7664 emit debug information.
7665 * coretypes.h (tls_model): Add TLS_MODEL_EMULATED, TLS_MODEL_REAL.
7666 * varasm.c: Include targhooks.h.
7667 (emutls_object_section, emutls_tmpl_section): New.
7668 (EMUTLS_VAR_PREFIX, EMUTLS_TMPL_PREFIX): Remove.
7669 (EMUTLS_SEPARATOR): New.
7671 (get_emutls_object_name): New.
7672 (default_emutls_var_fields): New, broken out of ...
7673 (get_emutls_object_type): ... here. Adjust to use target hooks.
7674 (get_emutls_init_templ_addr): Adjust to use target hooks.
7675 (emutls_decl): Adjust to use target hooks.
7676 (emutls_finish): Likewise.
7677 (default_emutls_var_init): New, broken out of ...
7678 (assemble_variable): ... here. Adjust to use target hooks.
7679 * output.h (enum section_category): Add SECCAT_EMUTLS_VAR,
7681 * c-common.c (handle_section_attribute): Prevent overriding
7682 sections for emulated tls with special sections.
7683 * config/i386/i386.c (x86_64_elf_select_section): Add
7684 SECCAT_EMUTLS_VAR and SECCAT_EMUTLS_TMPL.
7685 (x86_64_elf_unique_section): Likewise.
7686 * config/vxworks.c: Include tree.h.
7687 (vxworks_emutls_var_fields, vxworks_emutls_var_init): New.
7688 (vxworks_override_options): Set TLS scheme.
7689 * doc/tm.texi (Emulated TLS): New node.
7691 2008-04-26 Simon Baldwin <simonb@google.com>
7694 * builtins.c (c_strlen): Suppressed multiple warnings that can occur
7695 with propagated string constants.
7697 2008-04-26 Uros Bizjak <ubizjak@gmail.com>
7699 * config/i386/i386.md (fix_trunc<mode>_i387_fisttp_with_temp): Use 'X'
7700 constraint for operand 2 when operand 0 is memory operand.
7701 (fix_truncdi_i387_with_temp): : Use 'X' constraint for operand 4 when
7702 operand 0 is memory operand.
7703 (fix_trunc<mode>_i387_with_temp): Ditto.
7704 (*floatsi<mode>2_vector_mixed_with_temp): Use 'X' constraint for
7705 operand 2 when operand 1 is memory operand.
7706 (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_with_temp): Ditto.
7707 (*floatsi<mode>2_vector_sse_with_temp): Ditto.
7708 (*float<SSEMODEI24:mode><MODEF:mode>2_sse_with_temp): Ditto.
7709 (*float<SSEMODEI24:mode><X87MODEF:mode>2_i387_with_temp): Ditto.
7710 (floatdi<X87MODEF:mode>2_i387_with_xmm): Use 'X' constraint for
7711 operands 2,3 and 4 when operand 1 is memory operand.
7712 (fistdi2_with_temp): Use 'X' constraint for operand 2 when operand 0
7714 (fistdi2_floor_with_temp): Ditto.
7715 (fist<mode>2_floor_with_temp): Ditto.
7716 (fistdi2_ceil_with_temp): Ditto.
7717 (fist<mode>2_ceil_with_temp): Ditto.
7718 (*truncdfsf_fast_mixed): Merge alternatives 0 and 1.
7720 2008-04-26 David Daney <ddaney@avtrex.com>
7722 * config/mips/mips.md (UNSPEC_COMPARE_AND_SWAP_12): New
7724 (UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP, UNSPEC_SYNC_EXCHANGE,
7725 UNSPEC_MEMORY_BARRIER, UNSPEC_SET_GOT_VERSION,
7726 UNSPEC_UPDATE_GOT_VERSION): Renumber.
7727 (sync_compare_and_swap<mode>): New expand for QI and HI modes.
7728 (compare_and_swap_12): New insn.
7729 * config/mips/mips-protos.h (mips_expand_compare_and_swap_12): Declare.
7730 * config/mips/mips.c (mips_force_binary): New function.
7731 (mips_emit_int_order_test, mips_expand_synci_loop): Use it.
7732 (mips_expand_compare_and_swap_12): New function.
7733 * config/mips/mips.h (MIPS_COMPARE_AND_SWAP_12): New macro.
7735 2008-04-25 Jan Hubicka <jh@suse.cz>
7738 * cfgexpand.c (pass_expand): Turn into RTL pass.
7739 * passes.c (execute_one_pass): Do pass typechecking after execution.
7740 * tree-pass.h (pass_expand): Turn into RTL pass.
7742 * function.h (struct rtl_data): Move here fields
7743 accesses_prior_frames, calls_eh_return, saves_all_registers,
7744 has_nonlocal_goto, has_asm_statement, is_thunk,
7745 all_throwers_are_sibcalls, limit_stack, profile, uses_const_pool,
7746 uses_pic_offset_table, uses_eh_lsda, tail_call_emit,
7747 arg_pointer_save_area_init from struct function; turn into bool.
7748 (struct function): Move
7749 calls_eh_return, saves_all_registers, has_nonlocal_goto,
7750 has_asm_statement, is_thunk, all_throwers_are_sibcalls, limit_stack,
7751 profile, uses_const_pool, uses_pic_offset_table, uses_eh_lsda,
7752 tail_call_emit, arg_pointer_save_area_init
7753 into struct rtl_data. Remove recursive_call_emit and gimplified flags.
7754 (current_function_returns_struct, current_function_returns_pcc_struct,
7755 current_function_calls_setjmp, current_function_calls_alloca,
7756 current_function_accesses_prior_frames,
7757 current_function_calls_eh_return, current_function_is_thunk,
7758 current_function_stdarg, current_function_profile,
7759 current_function_limit_stack, current_function_uses_pic_offset_table,
7760 current_function_uses_const_pool, current_function_has_nonlocal_label,
7761 current_function_saves_all_registers,
7762 current_function_has_nonlocal_goto,
7763 current_function_has_asm_statement): Remove accesor macros.
7764 * ra-conflict.c (global_conflicts): Update.
7765 * tree-tailcall.c (suitable_for_tail_opt_p): Update.
7766 (suitable_for_tail_call_opt_p): Update.
7767 * builtins.c (expand_builtin_return_addr): Update.
7768 (expand_builtin_setjmp_setup): Update.
7769 (expand_builtin_nonlocal_goto): Update.
7770 * final.c (final_start_function): Update.
7771 (profile_function): Update.
7772 (leaf_function_p): Update.
7773 (only_leaf_regs_used): Update.
7774 * df-scan.c (df_get_exit_block_use_set): Update.
7775 * dojump.c (clear_pending_stack_adjust): Update.
7776 * tree-stdarg.c (gate_optimize_stdarg): Update.
7777 * gimple-low.c (lower_function_body): Update.
7778 * global.c (compute_regsets): Update.
7779 (global_alloc): Update.
7780 * dwarf2out.c (dwarf2out_begin_prologue): Update.
7781 * expr.c (expand_assignment): Update.
7782 * dse.c (dse_step0): Update.
7783 (dse_step1): Update.
7784 * c-decl.c (store_parm_decls): Update.
7785 * local-alloc.c (combine_regs): Update.
7786 (find_free_reg): Update.
7787 * function.c (assign_parms_augmented_arg_list): Update.
7788 (assign_parm_find_data_types): Update.
7789 (assign_parms): Update.
7790 (allocate_struct_function): Update.
7791 (expand_function_start): Update.
7792 (expand_function_end): Update.
7793 (get_arg_pointer_save_area): Update.
7794 (thread_prologue_and_epilogue_insns): Update.
7795 (rest_of_match_asm_constraints): Update.
7796 * stor-layout.c (variable_size): Update.
7797 * gcse.c (gcse_main): Update.
7798 (bypass_jumps): Update.
7799 * gimplify.c (gimplify_function_tree): Update.
7800 * calls.c (emit_call_1): Update.
7801 (expand_call): Update.
7802 * bt-load.c (compute_defs_uses_and_gen): Update.
7803 * except.c (sjlj_assign_call_site_values): Update.
7804 (sjlj_emit_function_enter): Update.
7805 (can_throw_external): Update.
7806 (set_nothrow_function_flags): Update.
7807 (expand_builtin_unwind_init): Update.
7808 (expand_eh_return): Update.
7809 (convert_to_eh_region_ranges): Update.
7810 (output_function_exception_table): Update.
7811 * emit-rtl.c (gen_tmp_stack_mem): Update.
7812 * cfgexpand.c (expand_used_vars): Update.
7813 (tree_expand_cfg): Update.
7814 * cfgcleanup.c (rest_of_handle_jump): Update.
7815 * explow.c (allocate_dynamic_stack_space): Update.
7816 * varasm.c (assemble_start_function): Update.
7817 (force_const_mem): Update.
7818 (mark_constant_pool): Update.
7819 * tree-optimize.c (tree_rest_of_compilation): Update.
7820 * stack-ptr-mod.c (notice_stack_pointer_modification): Update.
7821 * tree-cfg.c (notice_special_calls): Update.
7822 (is_ctrl_altering_stmt): Update.
7823 (tree_can_make_abnormal_goto): Update.
7824 (tree_purge_dead_abnormal_call_edges): Update.
7825 * config/alpha/predicates.md: Update.
7826 * config/alpha/alpha.c (alpha_sa_mask): Update.
7827 (alpha_sa_size): Update.
7828 (alpha_does_function_need_gp): Update.
7829 (alpha_expand_prologue): Update.
7830 (alpha_start_function): Update.
7831 (alpha_output_function_end_prologue): Update.
7832 (alpha_expand_epilogue): Update.
7833 * config/frv/frv.c (frv_stack_info): Update.
7834 (frv_expand_epilogue): Update.
7835 * config/s390/s390.c (s390_regs_ever_clobbered): Update.
7836 (s390_register_info): Update.
7837 (s390_frame_info): Update.
7838 (s390_init_frame_layout): Update.
7839 (s390_can_eliminate): Update.
7840 (save_gprs): Update.
7841 * config/spu/spu.c (spu_split_immediate): Update.
7842 (need_to_save_reg): Update.
7843 (spu_expand_prologue): Update.
7844 (spu_expand_epilogue): Update.
7845 * config/sparc/sparc.md: Update.
7846 * config/sparc/sparc.c (eligible_for_return_delay): Update.
7847 (sparc_tls_got): Update.
7848 (legitimize_pic_address): Update.
7849 (sparc_emit_call_insn): Update.
7850 (sparc_expand_prologue): Update.
7851 (output_return): Update.
7852 (print_operand): Update.
7853 (sparc_function_ok_for_sibcall): Update.
7854 * config/sparc/sparc.h (EXIT_IGNORE_STACK): Update.
7855 * config/m32r/m32r.md: Update.
7856 * config/m32r/m32r.c (MUST_SAVE_RETURN_ADDR): Update.
7857 (m32r_compute_frame_size): Update.
7858 (m32r_expand_prologue): Update.
7859 (m32r_expand_epilogue): Update.
7860 (m32r_legitimize_pic_address): Update.
7861 * config/m32r/m32r.h (FRAME_POINTER_REQUIRED): Update.
7862 * config/i386/linux.h (SUBTARGET_FRAME_POINTER_REQUIRED): Update.
7863 * config/i386/i386.c (ix86_frame_pointer_required): Update.
7865 (ix86_save_reg): Update.
7866 (ix86_compute_frame_layout): Update.
7867 (ix86_expand_prologue): Update.
7868 (ix86_expand_epilogue): Update.
7869 * config/sh/sh.c (output_stack_adjust): Update.
7870 (calc_live_regs): Update.
7871 (sh5_schedule_saves): Update.
7872 (sh_expand_prologue): Update.
7873 (sh_expand_epilogue): Update.
7874 (sh_setup_incoming_varargs): Update.
7875 (sh_allocate_initial_value): Update.
7876 (sh_get_pr_initial_val): Update.
7877 * config/sh/sh.h (SHMEDIA_REGS_STACK_ADJUST): Update.
7878 * config/sh/sh.md (label:): Update.
7879 * config/avr/avr.c (out_movhi_mr_r): Update.
7880 * config/crx/crx.h (enum): Update.
7881 * config/xtensa/xtensa.h (along): Update.
7882 * config/stormy16/stormy16.c Update.
7883 (xstormy16_compute_stack_layout): Update.
7884 * config/fr30/fr30.c (MUST_SAVE_RETURN_POINTER): Update.
7885 (fr30_expand_prologue): Update.
7886 * config/cris/cris.c (cris_conditional_register_usage): Update.
7887 (cris_reg_saved_in_regsave_area): Update.
7888 (cris_initial_frame_pointer_offset): Update.
7889 (cris_simple_epilogue): Update.
7890 (cris_expand_prologue): Update.
7891 (cris_expand_epilogue): Update.
7892 (cris_expand_pic_call_address): Update.
7893 (cris_asm_output_symbol_ref): Update.
7894 (cris_asm_output_label_ref): Update.
7895 * config/cris/cris.md Update.
7896 * config/iq2000/iq2000.c (compute_frame_size): Update.
7897 (iq2000_expand_epilogue): Update.
7898 * config/mt/mt.h (save_direction): Update.
7899 * config/mn10300/mn10300.c (mn10300_function_value): Update.
7900 * config/ia64/ia64.c (ia64_compute_frame_size): Update.
7901 (ia64_secondary_reload_class): Update.
7902 * config/m68k/m68k.c (m68k_save_reg): Update.
7903 (m68k_expand_prologue): Update.
7904 (m68k_expand_epilogue): Update.
7905 (legitimize_pic_address): Update.
7906 * config/rs6000/rs6000.c (rs6000_got_register): Update.
7907 (first_reg_to_save): Update.
7908 (first_altivec_reg_to_save): Update.
7909 (compute_vrsave_mask): Update.
7910 (compute_save_world_info): Update.
7911 (rs6000_stack_info): Update.
7912 (spe_func_has_64bit_regs_p): Update.
7913 (rs6000_ra_ever_killed): Update.
7914 (rs6000_emit_eh_reg_restore): Update.
7915 (rs6000_emit_allocate_stack): Update.
7916 (rs6000_emit_prologue): Update.
7917 (rs6000_emit_epilogue): Update.
7918 (rs6000_output_function_epilogue): Update.
7919 (output_profile_hook): Update.
7920 (rs6000_elf_declare_function_name): Update.
7921 * config/rs6000/rs6000.h (rs6000_args): Update.
7922 * config/rs6000/rs6000.md: Update.
7923 * config/mcore/mcore.c (mcore_expand_prolog): Update.
7924 * config/arc/arc.c (arc_output_function_epilogue): Update.
7925 * config/arc/arc.h (FRAME_POINTER_REQUIRED): Update.
7926 * config/darwin.c (machopic_function_base_name): Update.
7927 * config/score/score3.c (score3_compute_frame_size): Update.
7930 (score3_epilogue): Update.
7931 * config/score/score7.c (score7_compute_frame_size): Update.
7932 (score7_prologue): Update.
7933 (score7_epilogue): Update.
7934 * config/score/score.h (FRAME_POINTER_REQUIRED): Update.
7935 * config/arm/linux-elf.h (SUBTARGET_FRAME_POINTER_REQUIRED): Update.
7936 * config/arm/arm.c (use_return_insn): Update.
7937 (require_pic_register): Update.
7938 (arm_load_pic_register): Update.
7939 (arm_compute_save_reg0_reg12_mask): Update.
7940 (arm_compute_save_reg_mask): Update.
7941 (thumb1_compute_save_reg_mask): Update.
7942 (output_return_instruction): Update.
7943 (arm_output_function_prologue): Update.
7944 (arm_output_epilogue): Update.
7945 (arm_get_frame_offsets): Update.
7946 (arm_expand_prologue): Update.
7947 (thumb_pushpop): Update.
7948 (thumb_exit): Update.
7949 (thumb1_expand_prologue): Update.
7950 (thumb1_expand_epilogue): Update.
7951 (arm_unwind_emit): Update.
7952 (arm_output_fn_unwind): Update.
7953 * config/arm/arm.h (FRAME_POINTER_REQUIRED): Update.
7954 * config/arm/arm.md: Update.
7955 * config/pa/pa.md: Update.
7956 * config/pa/pa.c (legitimize_pic_address): Update.
7957 (compute_frame_size): Update.
7958 (hppa_expand_prologue): Update.
7959 (hppa_expand_epilogue): Update.
7960 (borx_reg_operand): Update.
7961 * config/pa/pa.h (FRAME_POINTER_REQUIRED): Update.
7962 (HARD_REGNO_RENAME_OK): Update.
7963 * config/mips/mips.c (mips_global_pointer): Update.
7964 (mips_save_reg_p): Update.
7965 (mips_compute_frame_info): Update.
7966 (mips_frame_pointer_required): Update.
7967 (mips_expand_prologue): Update.
7968 (mips_expand_epilogue): Update.
7969 (mips_can_use_return_insn): Update.
7970 (mips_reorg_process_insns): Update.
7971 * config/v850/v850.c (compute_register_save_size): Update.
7972 * config/mmix/mmix.h (FRAME_POINTER_REQUIRED): Update.
7973 * config/mmix/mmix.c (along): Update.
7974 (mmix_expand_epilogue): Update.
7975 * config/bfin/bfin.c (legitimize_pic_address): Update.
7976 (must_save_p): Update.
7977 (stack_frame_needed_p): Update.
7978 (add_to_reg): Update.
7979 (bfin_expand_prologue): Update.
7980 * stmt.c (expand_asm_operands): Update.
7981 * reload1.c (reload): Update.
7982 (init_elim_table): Update.
7984 2008-04-25 Bob Wilson <bob.wilson@acm.org>
7986 * optabs.c (expand_float): Fix REG_EQUAL for UNSIGNED_FLOAT libcall.
7988 2008-04-25 H.J. Lu <hongjiu.lu@intel.com>
7990 * config/i386/sse.md (mov<mode>): Replace SSEMODEI with SSEMODE.
7991 (*mov<mode>_internal): Likewise. Support V4SF and V2DF.
7992 (mov<mode>): Removed.
7993 (*movv4sf_internal): Likewise.
7994 (*movv2df_internal): Likewise.
7996 2008-04-25 Pompapathi V Gadad <Pompapathi.V.Gadad@nsc.com>
7998 * config.gcc (crx-*-elf): Remove deprecation.
8000 2008-04-25 Danny Smith <dannysmith@users.sourceforge.net>
8002 * config/i386/cygming-crtend.c (register_frame_ctor): Register
8003 __gcc_deregister_frame with atexit.
8004 (deregister_frame_dtor): Remove.
8006 2008-04-24 Nathan Froyd <froydnj@codesourcery.com>
8007 Nathan Sidwell <nathan@codesourcery.com>
8009 * config/rs6000/rs6000.opt (mspe): Remove Var property.
8011 * config/rs6000/rs6000.h (rs6000_spe): Declare.
8012 (rs6000_isel): Likewise.
8013 * config/rs6000/rs6000.c (rs6000_spe): New variable.
8014 (rs6000_isel): New variable.
8015 (rs6000_handle_option): Handle OPT_mspe and OPT_misel.
8017 2008-04-24 Jakub Jelinek <jakub@redhat.com>
8020 * c-common.c (handle_vector_size_attribute): Call
8021 lang_hooks.types.reconstruct_complex_type instead of
8022 reconstruct_complex_type.
8023 * config/rs6000/rs6000.c (rs6000_handle_altivec_attribute): Likewise.
8024 * config/spu/spu.c (spu_handle_vector_attribute): Likewise.
8025 * langhooks.h (struct lang_hooks_for_types): Add
8026 reconstruct_complex_type hook.
8027 * langhooks-def.h (LANG_HOOKS_RECONSTRUCT_COMPLEX_TYPE): Define.
8028 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add it.
8030 2008-04-24 Richard Guenther <rguenther@suse.de>
8032 * c-common.h (check_builtin_function_arguments): Declare.
8033 * c-common.c (validate_nargs): New function.
8034 (check_builtin_function_arguments): Likewise.
8035 * c-typeck.c (build_function_call): Call
8036 check_builtin_function_arguments.
8037 * builtins.c (fold_builtin_classify): Remove error reporting code.
8038 (fold_builtin_unordered_cmp): Likewise.
8039 (fold_builtin_1): Likewise.
8040 (fold_builtin_n): Likewise.
8042 2008-04-24 Jakub Jelinek <jakub@redhat.com>
8044 PR tree-optimization/36008
8045 * fold-const.c (try_move_mult_to_index): If s == NULL, divide
8046 the original op1, rather than delta by step.
8048 2008-04-22 Antoniu Pop <antoniu.pop@gmail.com>
8049 Sebastian Pop <sebastian.pop@amd.com>
8051 * tree-parloops.c (take_address_of, eliminate_local_variables_1,
8052 eliminate_local_variables_stmt, eliminate_local_variables,
8053 separate_decls_in_loop_name, separate_decls_in_loop_stmt,
8054 separate_decls_in_loop, gen_parallel_loop): Make them work on a region
8055 of code delimited by two edges in the CFG.
8056 (separate_decls_in_loop_name): Renamed separate_decls_in_region_name.
8057 (separate_decls_in_loop_stmt): Renamed separate_decls_in_region_stmt.
8058 (separate_decls_in_loop): Renamed separate_decls_in_region. Isolate
8059 the case of parallelisation of reductions.
8060 (expr_invariant_in_region_p): New.
8062 * tree-flow.h (gather_blocks_in_sese_region): Declared.
8063 * tree-cfg.c (gather_blocks_in_sese_region): Extern.
8065 2008-04-24 Ira Rosen <irar@il.ibm.com>
8066 Richard Guenther <rguenther@suse.de>
8068 PR tree-optimization/36034
8069 * tree-vect-analyze.c (vect_analyze_group_access): SLP is
8070 incapable of dealing with loads with gaps.
8072 2008-04-24 Rafael Espindola <espindola@google.com>
8074 * tree-flow.h (vrp_evaluate_conditional): Change signature.
8075 * tree-ssa-propagate.c (fold_predicate_in): Update call to
8076 vrp_evaluate_conditional.
8077 * tree-vrp.c (vrp_evaluate_conditional_warnv): Remove.
8078 (vrp_evaluate_conditional): Split the cond argument.
8079 (vrp_visit_cond_stmt): Use vrp_evaluate_conditional_warnv_with_ops.
8080 (simplify_stmt_for_jump_threading): Update call to
8081 vrp_evaluate_conditional.
8083 2008-04-24 Ira Rosen <irar@il.ibm.com>
8085 PR tree-optimization/35982
8086 * tree-vect-analyze.c (vect_check_interleaving): Check that the
8087 interleaved data-refs are of the same type.
8089 2008-04-24 Danny Smith <dannysmith@users.net>
8091 * c-format.c (check_format_info_main): Use strncmp rather than a
8092 magic prefix to handle multichar length specs.
8093 * config/i386/msformat-c.c (format_length_info ms_printf_length_specs):
8094 Don't prefix "I64" and "I32" with '\0'.
8096 2008-04-24 Jakub Jelinek <jakub@redhat.com>
8099 * config/i386/i386.c (init_cumulative_args): Don't pass anything
8100 in registers for -m32 only if stdarg_p (fntype).
8102 2008-04-24 Uros Bizjak <ubizjak@gmail.com>
8104 PR rtl-optimization/36006
8105 * expmed.c (store_fixed_bit_field): Copy op0 rtx before moving
8106 temp to op0 in order to avoid invalid rtx sharing.
8108 2008-04-23 Paolo Bonzini <bonzini@gnu.org>
8110 * tree-cfg.c (verify_expr): Check with is_gimple_address. Don't
8111 check TREE_INVARIANT.
8112 * tree-gimple.c (is_gimple_address): New.
8113 (is_gimple_invariant_address): Simplify using decl_address_invariant_p.
8114 * tree-gimple.h (is_gimple_address): New.
8115 * tree.h (decl_address_invariant_p): New.
8116 * tree.c (make_node_stat): Don't set TREE_INVARIANT.
8117 (build_string): Likewise.
8118 (decl_address_invariant_p): New, from is_gimple_invariant_address.
8119 (tree_invariant_p_1): Likewise.
8120 (save_expr): Use it.
8121 (tree_invariant_p): New.
8122 (skip_simple_arithmetic): Use it.
8123 (stabilize_reference_1): Use it.
8124 (recompute_tree_invariant_for_addr_expr): Don't update TREE_INVARIANT,
8126 (build1_stat): Drop code to compute TREE_INVARIANT.
8127 (build2_stat): Drop code to compute TREE_INVARIANT.
8128 (build3_stat): Drop code to compute TREE_INVARIANT.
8129 (build4_stat): Drop code to compute TREE_INVARIANT.
8130 (build5_stat): Drop code to compute TREE_INVARIANT.
8131 (build7_stat): Drop code to compute TREE_INVARIANT.
8132 (merge_dllimport_decl_attributes): Don't mention TREE_INVARIANT.
8133 * tree.h (struct tree_base): Remove invariant_flag.
8134 (TREE_INVARIANT): Remove.
8135 * builtins.c (build_string_literal): Don't set TREE_INVARIANT.
8136 (fold_builtin_expect): Check TREE_CONSTANT.
8137 * tree-ssa-ccp.c (fold_stmt_r): Adjust comment.
8138 * c-tree.h (c_expr_to_decl): Drop third parameter.
8139 * c-typeck.c (build_external_ref): Don't set TREE_INVARIANT.
8140 (build_c_cast): Don't set TREE_INVARIANT.
8141 (pop_init_level): Don't set TREE_INVARIANT.
8142 (c_objc_common_truthvalue_conversion): Don't set TREE_INVARIANT.
8143 * gimplify.c (gimplify_init_ctor_preeval): Add assertion, test
8145 (gimplify_init_constructor): Don't set TREE_INVARIANT.
8146 (gimplify_addr_expr): Adjust comment.
8147 * tree-mudflap.c (mf_build_string):
8148 * print-tree.c (print_node): Don't print TREE_INVARIANT.
8149 * tree-nested.c (convert_nonlocal_reference): Adjust comment.
8150 * c-common.c (fix_string_type): Don't set TREE_INVARIANT.
8151 * langhooks-def.h (lhd_expr_to_decl): Drop third parameter.
8152 * langhooks.c (lhd_expr_to_decl): Drop third parameter.
8153 * langhooks.h (struct lang_hooks): Drop third parameter from
8156 2008-04-23 Richard Guenther <rguenther@suse.de>
8158 PR tree-optimization/27799
8159 PR tree-optimization/32921
8160 PR tree-optimization/32624
8161 * tree-ssa-structalias.c (merge_smts_into): Only merge the
8162 SMTs aliases and the tag itself into the solution.
8163 * tree-ssa-alias.c (compute_flow_sensitive_aliasing): Do not
8164 merge the points-to solution back into the SMT aliases.
8165 (may_alias_p): Use alias_set_subset_of instead of
8166 aliases_conflict_p. A pointer which points to
8167 memory with alias set zero may access any variable.
8169 2008-04-23 Richard Guenther <rguenther@suse.de>
8171 * alias.c (alias_set_subset_of): Correctly handle asking
8172 if zero is a subset of an alias set with zero child.
8173 * tree-ssa-alias.c (have_common_aliases_p): Simplify logic.
8174 (compute_flow_insensitive_aliasing): Correctly walk all
8175 pointers. Do not unnecessarily union sets.
8177 2008-04-23 Richard Guenther <rguenther@suse.de>
8180 * c-common.c (handle_alloc_size_attribute): Use type_num_arguments.
8182 2008-04-22 Tomas Bily <tbily@suse.cz>
8184 * tree-cfg.c (verify_expr): Check for NON_LVALUE_EXPR as
8186 * tree-vrp.c (extract_range_from_unary_expr): Removed unused
8188 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
8189 * tree-ssa-structalias.c (get_constraint_for): Likewise.
8190 * tree-inline.c (estimate_num_insns_1): Likewise.
8191 * varasm.c (const_hash_1, compare_constant, copy_constant)
8192 (compute_reloc_for_constant, output_addressed_constants): Likewise.
8193 * emit-rtl.c (component_ref_for_mem_expr)
8194 (set_mem_attributes_minus_bitpos): Likewise.
8195 * expr.c (highest_pow2_factor, expand_expr_real_1, )
8196 (is_aligning_offset): Likewise.
8197 * dwarf2out.c (loc_descriptor_from_tree_1, add_bound_info): Likewise.
8198 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Likewise.
8199 * dojump.c (do_jump): Likewise.
8200 * builtins.c (get_pointer_alignment, get_memory_rtx)
8201 (integer_valued_real_p, fold_builtin_next_arg): Likewise.
8202 * tree-scalar-evolution.c (instantiate_parameters_1): Likewise.
8204 2008-04-23 Jakub Jelinek <jakub@redhat.com>
8206 PR rtl-optimization/36017
8207 * builtins.c (expand_errno_check): Clear CALL_EXPR_TAILCALL before
8208 expanding the library call.
8210 2008-04-22 Ian Lance Taylor <iant@google.com>
8212 * fold-const.c (pointer_may_wrap_p): Call int_size_in_bytes rather
8215 2008-04-22 Pat Haugen <pthaugen@us.ibm.com>
8217 * config/rs6000/rs6000.c (rs6000_register_move_cost): Increase cost
8218 of LR/CTR moves for Power6.
8220 2008-04-22 Kenneth Zadeck <zadeck@naturalbridge.com>
8223 * passes.c (init_optimization_passes): Remove
8224 pass_fast_rtl_byte_dce.
8226 2008-04-22 Uros Bizjak <ubizjak@gmail.com>
8229 * config/i386/xmmintrin.h (_mm_cvtpi16_ps): Rearrange calls to
8230 builtin functions to generate faster code.
8231 (_mm_cvtpu16_ps): Ditto.
8232 (_mm_cvtpi32x2_ps): Ditto.
8234 2008-04-22 Nick Clifton <nickc@redhat.com>
8236 * common.opt (ftree-loop-distribution): Add Optimization
8239 * config/frv/frv.c (frv_stack_info): Use crtl instead of cfun.
8240 (frv_expand_builtin_va_start): Likewise.
8242 * config/arm/arm.c (thumb_find_work_register): Fix location of
8243 argument register count.
8245 2008-04-22 Maxim Kuvyrkov <maxim@codesourcery.com>
8247 Support scheduling for ColdFire V1 and V3 microarchitecture.
8248 Improve scheduling of multiplication instructions.
8250 * config/m68k/m68k.md (cpu): Add cfv1 and cfv3. Rename cf_v2 to cfv1.
8251 (mac): New instruction attribute.
8252 * config/m68k/m68k.c (override_options): Handle cfv1, cfv3 and mac.
8253 (m68k_sched_mac): New variable.
8254 (m68k_sched_attr_type2, m68k_sched_md_init_global): Update.
8255 Handle cfv1 and cfv3.
8256 (max_insn_size): New static variable.
8257 (struct _sched_ib): New type.
8258 (sched_ib): New static variable.
8259 (sched_ib_size, sched_ib_filled, sched_ib_insn): Convert variables
8260 to fields of 'struct _sched_ib sched_ib'. Update all uses.
8261 (m68k_sched_variable_issue): Add modeling of cfv3 instruction buffer.
8263 (m68k_sched_md_init_global, m68k_sched_md_finish_global,
8264 m68k_sched_md_init, m68k_sched_md_finish): Handle cfv1 and cfv3. Init
8265 new variables. Update.
8266 (m68k_sched_dfa_pre_advance_cycle, m68k_sched_dfa_post_advance_cycle):
8267 Add modeling of cfv3 instruction buffer. Update.
8268 * config/m68k/m68k-protos.h (m68k_sched_mac): Declare.
8269 * config/m68k/m68k.h (TUNE_CFV3): New macro.
8270 * config/m68k/cf.md: Change substrings 'cf_v2' to 'cfv12' or 'cfv123'.
8271 (cf_* reservations): Rename to cfv12 or cfv123 to indicate cores
8272 a particular reservation applies to.
8273 (type2): Reorganize attribute values. Rename alu to alu_reg,
8274 alu_l to alu, move_l to omove. Join move to alu. Split mul
8276 (cf_ib_*): Simplify description of instruction buffer.
8277 (cf_ib_w0, cf_ib_w4, cf_ib_w5, cf_ib_w6): Remove.
8278 (cf_mem): Split into cf_mem1 and cf_mem2.
8279 (cf_v2_move_??): Rename to cfv12_alu_??.
8280 (cf_v2_move_l_??): Rename to cfv12_omove_??.
8281 (cf_v2_mul_??): Remove reservations.
8282 (cfv12_mul_l_??, cfv12_mul_w_??, cfv12_mac_w_??, cfv12_mac_l_??,
8283 cfv12_emac_??, cfv12_emac_w_i0): New reservations.
8284 (cfv12_rts, cfv12_call, cfv12_bcc, cfv12_bra, cfv12_jmp): Move to
8286 (cfv3_alu_10, cfv3_omove_10, cfv3_alu_i0, cfv3_omove_i0, cfv3_alu_01,
8287 cfv3_alu_0i, cfv3_alu_11, cfv3_omove_11, cfv3_alu_i1, cfv3_omove_i1,
8288 cfv3_alu_1i, cfv3_omove_1i, cfv3_pea_11, cfv3_pea_i1, cfv3_mul_w_10,
8289 cfv3_mul_l_10, cfv3_mul_w_i0, cfv3_mac_w_10, cfv3_mac_l_10,
8290 cfv3_mac_w_i0, cfv3_emac_10, cfv3_emac_w_i0, cfv3_rts, cfv3_call,
8291 cfv3_bcc, cfv3_bra, cfv3_jmp): New reservations.
8292 (cfv3_*_1, cfv3_*_2, cfv3_*_3): New instruction reservations that are
8293 expansions of the above reservations for instructions of sizes
8296 2008-04-22 Maxim Kuvyrkov <maxim@codesourcery.com>
8298 * rtl-factoring.c (collect_patterns_seqs): Handle CC0 targets.
8300 2008-04-21 Adam Nemet <anemet@caviumnetworks.com>
8302 * coverage.c: Include tree-pass.h.
8303 (coverage_counter_alloc): Print da_file_name to the dump file.
8305 2008-04-21 Kenneth Zadeck <zadeck@naturalbridge.com>
8307 * sbitmap.c (sbitmap_range_empty_p): New function.
8308 * sbitmap.h (sbitmap_range_empty_p): New function.
8309 * bitmap.h: Now includes obstack.h.
8311 2008-04-21 Richard Sandiford <rsandifo@nildram.co.uk>
8312 Kenneth Zadeck <zadeck@naturalbridge.com>
8314 * dbgcnt.def (ra_byte_scan): Added.
8315 * dbgcnt.c (dbg_cnt): Added code to print message to dump_file
8316 when the last hit happens for a counter.
8317 * timevar.def (TV_DF_BYTE_LR): New variable.
8318 * tree-pass.h (pass_fast_rtl_byte_dce): New pass.
8319 * passes.c (pass_fast_rtl_byte_dce): New pass.
8320 * fwprop.c (update_df): Added mode to call df_ref_create.
8321 Renamed DF_REF_WIDTH and DF_REF_OFFSET to DF_REF_EXTRACT_WIDTH and
8322 DF_REF_EXTRACT_OFFSET.
8323 * df.h (DF_BYTE_LR, DF_BYTE_LR_BB_INFO, DF_BYTE_LR_IN,
8324 DF_BYTE_LR_OUT, df_byte_lr): New macro.
8326 (df_ref_extract): Added mode field.
8327 (DF_REF_WIDTH, DF_REF_OFFSET) Renamed to DF_REF_EXTRACT_WIDTH and
8328 DF_REF_EXTRACT_OFFSET.
8329 (DF_REF_EXTRACT_MODE): New macro.
8330 (df_byte_lr_bb_info): New structure.
8331 (df_print_byte_regset, df_compute_accessed_bytes,
8332 df_byte_lr_add_problem, df_byte_lr_get_regno_start,
8333 df_byte_lr_get_regno_len, df_byte_lr_simulate_defs,
8334 df_byte_lr_simulate_uses,
8335 df_byte_lr_simulate_artificial_refs_at_top,
8336 df_byte_lr_simulate_artificial_refs_at_end,
8337 df_compute_accessed_bytes): New function.
8338 (df_ref_create): Add parameter.
8339 (df_byte_lr_get_bb_info): New inline function.
8340 * df-scan.c (df_ref_record, df_uses_record,
8341 df_ref_create_structure): Added mode parameter.
8342 (df_ref_create, df_notes_rescan, df_ref_record, df_def_record_1,
8343 df_defs_record, df_uses_record, df_get_conditional_uses,
8344 df_get_call_refs, df_insn_refs_collect, df_bb_refs_collect,
8345 df_entry_block_defs_collect, df_exit_block_uses_collect):
8346 Added mode parameter to calls to df_ref_record, df_uses_record,
8347 df_ref_create_structure.
8348 (df_ref_equal_p, df_ref_compare): Added test for modes.
8349 (df_ref_create_structure): Added code to set mode. Renamed
8350 DF_REF_WIDTH and DF_REF_OFFSET to DF_REF_EXTRACT_WIDTH and
8351 DF_REF_EXTRACT_OFFSET.
8352 * df-core.c (df_print_byte_regset): New function.
8353 * df-byte-scan.c: New file.
8354 * df-problems.c (df_rd_transfer_function): Removed unnecessary
8355 calls to BITMAP_FREE.
8356 (df_byte_lr_problem_data, df_problem problem_BYTE_LR): New structure.
8357 (df_byte_lr_get_regno_start, df_byte_lr_get_regno_len,
8358 df_byte_lr_set_bb_info, df_byte_lr_free_bb_info,
8359 df_byte_lr_check_regs, df_byte_lr_expand_bitmap,
8360 df_byte_lr_alloc, df_byte_lr_reset, df_byte_lr_bb_local_compute,
8361 df_byte_lr_local_compute, df_byte_lr_init,
8362 df_byte_lr_confluence_0, df_byte_lr_confluence_n,
8363 df_byte_lr_transfer_function, df_byte_lr_free,
8364 df_byte_lr_top_dump, df_byte_lr_bottom_dump,
8365 df_byte_lr_add_problem, df_byte_lr_simulate_defs,
8366 df_byte_lr_simulate_uses,
8367 df_byte_lr_simulate_artificial_refs_at_top,
8368 df_byte_lr_simulate_artificial_refs_at_end): New function.
8369 * dce.c (byte_dce_process_block): New function.
8370 (dce_process_block): au is now passed in rather than computed
8371 locally. Changed loops that look at artificial defs to not look
8372 for conditional or partial ones, because there never are any.
8373 (fast_dce): Now is able to drive byte_dce_process_block or
8374 dce_process_block depending on the kind of dce being done.
8375 (rest_of_handle_fast_dce): Add parameter to fast_dce.
8376 (rest_of_handle_fast_byte_dce): New function.
8377 (rtl_opt_pass pass_fast_rtl_byte_dce): New pass.
8378 * Makefile.in (df-byte-scan.o, debugcnt.o): Added dependencies.
8380 2008-04-21 Daniel Franke <franke.daniel@gmail.com>
8383 * gcc.h: Added fortran options that take arguments to
8384 DEFAULT_SWITCH_TAKES_ARG and DEFAULT_WORD_SWITCH_TAKES_ARG
8387 2008-04-20 Eric Botcazou <ebotcazou@adacore.com>
8389 * tree-sra.c (sra_walk_expr) <VIEW_CONVERT_EXPR>: Disable
8390 scalarization if on the LHS and not a full access.
8392 2008-04-20 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8394 * Makefile.in (s-gtyp-input): Remove tmp-gi.list before writing it.
8396 2008-04-18 Rafael Espindola <espindola@google.com>
8398 * tree-vrp.c (find_case_label_index): Fix the binary search.
8399 (find_case_label_range): New.
8400 (vrp_visit_switch_stmt): Use find_case_label_range.
8401 (simplify_switch_using_ranges): Use find_case_label_range.
8403 2008-04-18 Eric Botcazou <ebotcazou@adacore.com>
8405 * gimplify.c (gimplify_modify_expr_rhs) <COND_EXPR>: Gimplify the LHS
8406 using the is_gimple_lvalue predicate instead of is_gimple_min_lval.
8408 2008-04-18 Tom Tromey <tromey@redhat.com>
8411 * doc/cpp.texi (Implementation-defined behavior): Mention
8414 2008-04-18 Ian Lance Taylor <iant@google.com>
8416 * fold-const.c (pointer_may_wrap_p): New static function.
8417 (fold_comparison): Add another test for pointer overflow. Use
8418 pointer_may_wrap_p to disable some false positives.
8420 2008-04-18 Kris Van Hees <kris.van.hees@oracle.com>
8422 * c-common.c (CHAR16_TYPE, CHAR32_TYPE): New macros.
8423 (fname_as_string): Match updated cpp_interpret_string prototype.
8424 (fix_string_type): Support char16_t* and char32_t*.
8425 (c_common_nodes_and_builtins): Add char16_t and char32_t (and
8426 derivative) nodes. Register as builtin if C++0x.
8427 (c_parse_error): Support CPP_CHAR{16,32}.
8428 * c-common.h (RID_CHAR16, RID_CHAR32): New elements.
8429 (enum c_tree_index) <CTI_CHAR16_TYPE, CTI_SIGNED_CHAR16_TYPE,
8430 CTI_UNSIGNED_CHAR16_TYPE, CTI_CHAR32_TYPE, CTI_SIGNED_CHAR32_TYPE,
8431 CTI_UNSIGNED_CHAR32_TYPE, CTI_CHAR16_ARRAY_TYPE,
8432 CTI_CHAR32_ARRAY_TYPE>: New elements.
8433 (char16_type_node, signed_char16_type_node, unsigned_char16_type_node,
8434 char32_type_node, signed_char32_type_node, char16_array_type_node,
8435 char32_array_type_node): New defines.
8436 * c-lex.c (cb_ident): Match updated cpp_interpret_string prototype.
8437 (c_lex_with_flags): Support CPP_CHAR{16,32} and CPP_STRING{16,32}.
8438 (lex_string): Support CPP_STRING{16,32}, match updated
8439 cpp_interpret_string and cpp_interpret_string_notranslate prototypes.
8440 (lex_charconst): Support CPP_CHAR{16,32}.
8441 * c-parser.c (c_parser_postfix_expression): Support CPP_CHAR{16,32}
8442 and CPP_STRING{16,32}.
8444 2008-04-18 Paolo Bonzini <bonzini@gnu.org>
8447 * aclocal.m4: Regenerate.
8448 * configure: Regenerate.
8450 2008-04-18 Jan Hubicka <jh@suse.cz>
8452 * except.c (dw2_size_of_call_site_table,
8453 sjlj_size_of_call_site_table): Use vector API for call_site_record.
8455 * cgraphbuild.c (build_cgraph_edges): Update.
8456 * tree-pass.h: Update comment.
8457 * final.c (leaf_function_p): Update.
8458 (leaf_renumber_regs): Update.
8459 (rest_of_clean_state): Update.
8460 * omp-low.c (expand_omp_parallel): Update.
8461 * ipa-reference.c (analyze_function): Update.
8462 * reorg.c (find_end_label): Update.
8463 (optimize_skip): Update.
8464 (fill_simple_delay_slots): Update.
8465 (fill_simple_delay_slots): Update.
8466 (make_return_insns): Update.
8467 (dbr_schedule): Update.
8468 * gimple-low.c (record_vars_into): Update.
8469 * cfgbuild.c (make_edges): Update.
8470 * function.c (assign_stack_local): Update.
8471 (assign_parm_adjust_stack_rtl): Update.
8472 (locate_and_pad_parm): Update.
8473 (allocate_struct_function): Do not initialize stack_alignment_needed
8474 and preferred_stack_boundary here.
8475 (stack_protect_prologue): Update.
8476 (stack_protect_epilogue): Update.
8477 (expand_function_start): Initialize stack_alignment_needed,
8478 preferred_stack_boundary and max_jumptable_ents.
8479 (expand_function_end): Update.
8480 (free_after_compilation): Do not NULLify epilogue_delay_list.
8481 * function.h (struct rtl_data): Add stack_protect_guard,
8482 stack_alignment_needed,
8483 preferred_stack_boundary, epilogue_delay_list.
8484 (struct function): Remove value_histograms, stack_alignment_needed,
8485 preferred_stack_boundary, epilogue_delay_list, max_jumptable_ents,
8487 unexpanded_var_list, stack_protect_guard.
8488 (current_function_epilogue_delay_list): Remove.
8489 * ipa-type-escape.c (analyze_function): Update.
8490 * gimplify.c (pop_gimplify_context): Update comment.
8491 * calls.c (expand_call): Update.
8492 (emit_library_call_value_1): Update.
8493 * except.c (set_nothrow_function_flags): Update.
8494 * cfgexpand.c (get_decl_align_unit): Update.
8495 (create_stack_guard): Update.
8496 (estimated_stack_frame_size): Update.
8497 (expand_used_vars): Update.
8498 (tree_expand_cfg): Free histogram earliers, init expansion variables.
8499 * explow.c (allocate_dynamic_stack_space): Update.
8500 * tree-ssa-live.c (remove_unused_locals): Update.
8501 * varasm.c (mark_constant_pool): Update.
8502 * tree-inline.c (remap_decls): Update.
8503 (initialize_cfun): Update.
8504 (declare_return_variable): Update.
8505 (inline_forbidden_p): Update.
8506 (expand_call_inline): Update.
8507 (declare_inline_vars): Update.
8508 (tree_function_versioning): Update.
8509 * tree-flow.h (value_histograms): New.
8510 (VALUE_HISTOGRAMS): New macro.
8511 * basic-block.h (control_flow_graph): Add max_jumptable_ents,
8513 * tree-cfg.c (set_bb_for_stmt): Update.
8514 (replace_by_duplicate_decl): Update.
8515 (move_block_to_fn): Update.
8516 (new_label_mapper): Update.
8517 (dump_function_to_file): Update.
8518 * ipa-struct-reorg.c (build_data_structure): Update.
8519 * cfgrtl.c (print_rtl_with_bb): Update.
8520 * reload1.c (reload): Update.
8522 * config/i386/i386.c (setup_incoming_varargs_64,
8523 ix86_compute_frame_layout): Update.
8524 * config/arc/arc.c (arc_output_function_epilogue): Update.
8526 2008-04-18 Marius Strobl <marius@FreeBSD.org>
8528 * gthr-posix.h (__gthread_active_p): Use the Solaris implementation
8529 for FreeBSD as well.
8530 * gthr-posix95.h: Likewise.
8532 2008-04-17 Richard Sandiford <rsandifo@nildram.co.uk>
8534 PR rtl-optimization/35838
8535 * dse.c (find_shift_sequence): Use subreg_lowpart_offset to work
8536 out the byte offset of the first subreg.
8538 2008-04-17 Uros Bizjak <ubizjak@gmail.com>
8540 * config/i386/i386.md (addti3 splitter): Pass arrays of 3 operands
8541 to split_ti instead of three separate calls with single member arrays.
8542 (subti3 splitter): Ditto.
8543 (adddi3 splitter): Ditto with split_di.
8544 (subdi3 splitter): Ditto.
8545 (negti2 splitter): Pass arrays of 2 operands to split_ti instead of
8546 two separate calls with single member arrays. Swap match_dup
8547 operands 1 and 2 to better fit into the array.
8548 (negdi2 splitter): Ditto with split_di.
8549 (movdfcc splitter): Pass arrays of 2 operands to split_di instead of
8550 two separate calls with single member arrays. Swap match_dup operands
8551 6 and 7 to better fit into the array.
8553 2008-04-17 H.J. Lu <hongjiu.lu@intel.com>
8555 * config/i386/i386.c (sse_builtin_type): New.
8556 (bdesc_sse_args): Likewise.
8557 (bdesc_sse_3arg): Removed.
8558 (bdesc_2arg): Remove IX86_BUILTIN_AESKEYGENASSIST128.
8559 (bdesc_1arg): Remove IX86_BUILTIN_ROUNDPD and
8560 IX86_BUILTIN_ROUNDPS.
8561 (ix86_init_mmx_sse_builtins): Handle bdesc_sse_args. Remove
8562 bdesc_sse_3arg. Remove IX86_BUILTIN_ROUNDPD and
8563 IX86_BUILTIN_ROUNDPS.
8564 (ix86_expand_sse_4_operands_builtin): Removed.
8565 (ix86_expand_sse_operands_builtin): New.
8566 (ix86_expand_unop_builtin): Remove CODE_FOR_sse4_1_roundpd
8567 and CODE_FOR_sse4_1_roundps.
8568 (ix86_expand_builtin): Remove IX86_BUILTIN_AESKEYGENASSIST128.
8569 Handle bdesc_sse_args. Remove bdesc_sse_3arg.
8571 2008-04-17 Alan Modra <amodra@bigpond.net.au>
8574 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Restore vr and vrsave
8575 regs before frame pop when needed. If use_backchain_to_restore_sp
8576 then load backchain into a temp reg to restore vr and vrsave. Add
8577 code to restore vr after frame pop if possible.
8579 2008-04-17 Richard Guenther <rguenther@suse.de>
8581 * tree-vn.c (expressions_equal_p): Do not check type
8582 equality or compatibility before calling operand_equal_p.
8583 * fold-const.c (operand_equal_p): Check equivalence of
8584 integer constants before bailing out due to signedness or
8585 precision differences.
8586 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Ignore
8587 spurious differences in type qualification. Ignore types
8588 for COMPONENT_REFs at all.
8590 2008-04-17 Christian Bruel <christian.bruel@st.com>
8592 * config/sh/sh.c (expand_cbranchdi4): Use original operands for
8593 msw_skip comparison.
8595 2008-04-16 Jakub Jelinek <jakub@redhat.com>
8598 * tree-nrv.c (tree_nrv): Don't optimize if result_type is GIMPLE
8601 PR tree-optimization/35899
8602 * tree-inline.c (expand_call_inline): Use GIMPLE_STMT_OPERAND
8603 rather than TREE_OPERAND.
8605 2008-04-16 Uros Bizjak <ubizjak@gmail.com>
8608 * config/i386/i386.md (fmodxf3): Copy operand 1 and operand 2 into
8609 temporary registers. Change operand predicate to general_operand.
8610 (remainderxf3): Ditto.
8612 2008-04-16 Richard Guenther <rguenther@suse.de>
8614 * Makefile.in (tree-affine.o): Add $(FLAGS_H) dependency.
8615 * tree-affine.c (aff_combination_expand): Look through some
8618 2008-04-15 Doug Kwan <dougkwan@google.com>
8620 * dwarf2asm.c (dw2_assemble_integer): Cast to unsigned HOST_WIDE_INT
8622 * tree-pretty-print.c (dump_generic_node): Ditto.
8623 * final.c (output_addr_const): Ditto.
8624 * dwarf2out.c (output_cfi): Ditto.
8625 * c-pretty-print.c (pp_c_integer_constant): Ditto.
8626 * print-rtl.c (print_rtx): Ditto.
8627 * print-tree.c (print_node_brief, print_node): Ditto.
8628 * c-common.c (match_case_to_enum_1): Ditto.
8629 * sched-vis.c (print_value): Ditto.
8630 * config/i386/i386.c (print_operand): Cast to long unsigned int
8633 2008-04-15 Danny Smith <dannysmith@users.sourceforge.net>
8634 * libgcc2.c [L_trampoline]: Remove unnecessary prototype for
8635 MS Windows VirtualProtect function.
8637 2008-04-15 Jan Hubicka <jh@suse.cz>
8639 * gengtype.c (write_root): Param_is argument is OK.
8640 * expr.c (expand_expr_real_1): Update call of get_exception_*.
8641 * function.h: Include varray.h
8642 (rtl_eh): New stucture based on except.c one.
8643 (call_site_record): New forward declaration and vector type.
8644 * calls.c (emit_call_1): Do not call
8645 note_current_region_may_contain_throw.
8646 * except.c (eh_status): Remove cur_region, try_region since they are
8648 Move filter, exc_ptr, ttype_data, ehspec_data, action_record_data and
8649 exception_handler_label_map, ehr_stackadj, ehr_handler, ehr_label,
8650 sjlj_fc, sjlj_exit_after to rth_eh in function.h.
8651 Remove call_site_data_used, call_site_data_size.
8652 Turn call_site_record into vector in function.h.
8653 (note_current_region_may_contain_throw): Remove.
8654 (get_exception_pointer, get_exception_filter): Do not take struct
8655 function argument; update.
8656 (add_ehl_entry, find_exception_handler_labels, ehspec_filter_hash,
8657 add_ttypes_entry, add_ehspec_entry, assign_filter_values,
8658 build_post_landing_pads, dw2_build_landing_pads,
8659 sjlj_assign_call_site_values, sjlj_mark_call_sites,
8660 sjlj_emit_function_enter, sjlj_emit_function_enter,
8661 sjlj_emit_function_exit, sjlj_emit_dispatch_table,
8662 sjlj_build_landing_pads, finish_eh_generation,
8663 remove_exception_handler_label, remove_eh_handler,
8664 maybe_remove_eh_handler, add_reachable_handler,
8665 reachable_handlers, expand_builtin_eh_return, expand_eh_return,
8666 add_action_record, collect_one_action_chain, add_call_site,
8667 convert_to_eh_region_ranges, sjlj_size_of_call_site_table,
8668 sjlj_output_call_site_table, output_function_exception_table,
8669 * except.h (note_current_region_may_contain_throw): Remove
8670 (get_exception_pointer, get_exception_filter): Do not take struct
8672 * Makefile.in (GTFILES): Put varargs before struct function.
8674 2008-04-15 Eric Botcazou <ebotcazou@adacore.com>
8676 * tree-ssa-structalias.c (get_constraint_for_component_ref): Do not
8677 punt for STRING_CST.
8678 (get_constraint_for): Deal with STRING_CST here instead.
8680 2008-04-15 Richard Guenther <rguenther@suse.de>
8682 * tree-ssa-propagate.c (substitute_and_fold): Substitute
8683 statements in a basic-block with a backward walk. Do not
8684 substitute into dead statements but instead remove those.
8686 2008-04-15 Richard Guenther <rguenther@suse.de>
8688 * params.def (PARAM_MAX_FIELDS_FOR_FIELD_SENSITIVE): Set default
8689 to zero, thus disable creation of SFTs.
8691 2008-04-15 Eric Botcazou <ebotcazou@adacore.com>
8693 * tree-predcom.c (suitable_reference_p): Return false if the
8694 reference can throw.
8696 2008-04-15 Jakub Jelinek <jakub@redhat.com>
8699 * c-decl.c (finish_decl): If extern or static var has variable
8700 size, set TREE_TYPE (decl) to error_mark_node.
8702 2008-04-15 Rafael Espindola <espindola@google.com>
8704 * fold-const.c (tree_call_nonnegative_warnv_p): Remove local
8707 2008-04-15 Richard Guenther <rguenther@suse.de>
8709 * tree-ssa-sccvn.h (vn_reference_lookup): Adjust prototype.
8710 * tree-ssa-sccvn.c (vn_reference_lookup): New parameter maywalk.
8711 (visit_reference_op_load): Do walk vuse-vdef chains on
8712 vn_reference_lookup.
8713 (visit_reference_op_store): But do not here.
8714 * tree-vn.c (vn_lookup): Do not walk vuse-vdef chains on
8715 vn_reference_lookup.
8716 (vn_lookup_with_vuses): But do so here.
8718 2008-04-14 Ian Lance Taylor <iant@google.com>
8720 * fold-const.c (fold_overflow_warning): Remove assertion.
8722 2008-04-15 Ben Elliston <bje@au.ibm.com>
8724 * config/alpha/alpha.c (alpha_initialize_trampoline): Remove temp,
8725 temp1 local variables.
8727 2008-04-15 Zuxy Meng <zuxy.meng@gmail.com>
8730 * config/i386/winnt.c (i386_pe_section_type_flags): Mark
8731 ".text.unlikely" section as executable.
8733 2008-04-14 James E. Wilson <wilson@tuliptree.org>
8735 * config/ia64/ia64.c (rtx_needs_barrier): Handle
8736 UNSPEC_FR_SQRT_RECIP_APPROX_RES.
8737 * config/ia64/ia64.c (UNSPEC_FR_SQRT_RECIP_APPROX_RES): Define.
8738 (divsi3_internal, divdi3_internal_lat, divdi3_internal_thr,
8739 divsf3_internal_lat, sqrt_approx, sqrtsf2_internal_thr,
8740 divdf3_internal_lat, sqrtdf2_internal_thr, divxf3_internal_lat,
8741 divxf3_internal_thr, sqrtxf2_internal_thr, recip_approx): Use it.
8743 2008-04-14 Ian Lance Taylor <iant@google.com>
8745 * flags.h (POINTER_TYPE_OVERFLOW_UNDEFINED): Define.
8746 * fold-const.c (fold_comparison): If appropriate, test
8747 POINTER_TYPE_OVERFLOW_UNDEFINED, and issue an overflow warning.
8748 (fold_binary): Test POINTER_TYPE_OVERFLOW_UNDEFINED when
8749 reassociating a pointer type.
8750 * doc/invoke.texi (Optimize Options): Document that
8751 -fstrict-overflow applies to pointer wraparound.
8753 2008-04-13 Jan Hubicka <jh@suse.cz>
8755 * m32.c (m32c_pushm_popm): Use crtl->retrun_rtx.
8757 2008-04-12 Andrew Pinski <pinskia@gmail.com>
8759 * config/rs6000/rs6000.c (compute_save_world_info): Set lr_save_p if
8760 we are going to "save the world".
8762 2008-04-13 Hans-Peter Nilsson <hp@axis.com>
8764 * config/cris/cris.md ("*andhi_lowpart_non_v32", "*andhi_lowpart_v32")
8765 ("*andqi_lowpart_non_v32", "*andqi_lowpart_v32"): Use "+" for the
8766 operand 0 constraint, not "=".
8768 2008-04-11 James E. Wilson <wilson@tuliptree.org>
8770 * system.h: Change ASSERT_CHECKING to ENABLE_ASSERT_CHECKING.
8772 2008-04-11 H.J. Lu <hongjiu.lu@intel.com>
8774 * dse.c (record_store): Use HOST_BITS_PER_WIDE_INT instead
8775 of size of positions_needed * CHAR_BIT.
8777 2008-04-11 H.J. Lu <hongjiu.lu@intel.com>
8780 * dse.c (store_info): Change positions_needed to unsigned
8782 (lowpart_bitmask): New.
8783 (record_store): Cast to unsigned HOST_WIDE_INT for
8784 positions_needed. Assert width <= size of positions_needed *
8785 CHAR_BIT. Call lowpart_bitmask to initialize positions_needed.
8786 (check_mem_read_rtx): Use unsigned HOST_WIDE_INT on mask. Call
8787 lowpart_bitmask to set mask.
8789 2008-04-11 Bernd Schmidt <bernd.schmidt@analog.com>
8791 * config/bfin/constraints.md: New file.
8792 * config/bfin/bfin.md: Include it.
8793 (adddi3): Use satisfies_constraint functions instead of the old macros.
8794 * config/bfin/bfin.h (REG_CLASS_FROM_LETTER, CONSTRAINT_LEN,
8795 CONST_18UBIT_IMM_P, CONST_16BIT_IMM_P, CONST_16UBIT_IMM_P,
8796 CONST_7BIT_IMM_P, CONST_7NBIT_IMM_P, CONST_5UBIT_IMM_P,
8797 CONST_4BIT_IMM_P, CONST_4UBIT_IMM_P, CONST_3BIT_IMM_P,
8798 CONST_3UBIT_IMM_P, CONST_OK_FOR_K, CONST_OK_FOR_P, CONST_OK_FOR_M,
8799 CONST_OK_FOR_CONSTRAINT_P, CONST_DOUBLE_OK_FOR_LETTER,
8800 EXTRA_CONSTRAINT): Delete.
8801 * config/bfin/predicates.md (highbits_operand, reg_or_7bit_operand,
8802 reg_or_neg7bit_operand): Use satisfies_constraint functions instead
8804 * config/bfin/bfin.c: Include "tm-constrs.h".
8805 (bfin_secondary_reload, split_load_immediate, bfin_rtx_costs):
8806 Use satisfies_constraint functions instead of the old macros.
8807 * doc/md.texi (Blackfin Constraints): Update file name reference.
8809 2008-04-11 Richard Guenther <rguenther@suse.de>
8811 PR tree-optimization/35869
8812 * tree-vrp.c (execute_vrp): Move switch statement update after
8813 jump threading. Schedule another cfg cleanup run.
8815 2008-04-11 Volker Reichelt <v.reichelt@netcologne.de>
8818 * attribs.c (decl_attributes): Return early on errorneous node.
8820 2008-04-10 Oleg Ryjkov <olegr@google.com>
8822 * tree.h (struct tree_base): Added a new flag default_def_flag.
8823 (SSA_NAME_IS_DEFAULT_DEF): Changed to use the new flag.
8825 2008-04-11 Kaz Kojima <kkojima@gcc.gnu.org>
8827 * config.gcc (need_64bit_hwint): Need 64bit hwint for sh-*-*.
8829 2008-04-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8832 * pa.md: Define mode iterator P. Define mode attribute dwc.
8833 (dcacheflush): Update pattern to use iterator P and attribute dwc.
8834 (icacheflush): Likewise.
8835 * pa.h (INITIALIZE_TRAMPOLINE): Use dcacheflushsi/icacheflushsi if
8836 !TARGET_64BIT, and dcacheflushdi/icacheflushdi if TARGET_64BIT.
8838 2008-04-11 Ben Elliston <bje@au.ibm.com>
8840 * config/spu/spu.c (spu_init_builtins): Mark builtins as nothrow.
8842 2008-04-10 Rafael Espindola <espindola@google.com>
8844 * tree-vrp.c (extract_range_from_binary_expr): Don't handle
8845 TRUTH_ANDIF_EXPR or TRUTH_ORIF_EXPR.
8846 (extract_range_from_expr): The same.
8848 2008-04-10 Adam Nemet <anemet@caviumnetworks.com>
8850 * config/mips/mips.md (GPR2): New mode iterator.
8852 (*seq_<mode>, *seq_<mode>_mips16, *sne_<mode>, *sgt<u>_<mode>,
8853 *sgt<u>_<mode>_mips16, *sge<u>_<mode>, *slt<u>_<mode>,
8854 *slt<u>_<mode>_mips16 *sle<u>_<mode>, *sle<u>_<mode>_mips16):
8855 Rewrite these to take two modes, the mode of comparison and the
8856 mode of the destination.
8857 * config/mips/mips.c (mips_expand_scc): Instead of having
8858 paradoxical subreg as destination, expand "narrowing" scc if mode
8859 of comparison is SI and target is requested in DI mode.
8860 (mips_emit_int_order_test): Update comment. Make mode of
8861 comparison match CMP0 rather than TARGET. When creating inverse
8862 target use mode of TARGET.
8864 2008-04-10 Adam Nemet <anemet@caviumnetworks.com>
8866 * gcov-dump.c (tag_summary): Only print summaries for the first
8867 GCOV_COUNTERS_SUMMABLE counters.
8869 2008-04-10 Uros Bizjak <ubizjak@gmail.com>
8871 * config/i386/i386.md (absneg): New code iterator.
8872 (absnegprefix): New code attribute.
8873 (<code><mode>2): Macroize expander from abs<mode>2 and neg<mode>2
8874 patterns using absneg code iterator.
8875 (<code>tf2): Macroize expander from abstf2 and negtf2 patterns
8876 using absneg code iterator.
8877 (*<code><mode>2_1): Macroize insn pattern from *abs<mode>2_1 and
8878 *neg<mode>2 patterns using absneg code iterator.
8879 (*<code>extendsfdf2): Macroize insn pattern from *absextendsfdf2 and
8880 *negextendsfdf2 patterns using absneg code iterator.
8881 (*<code>extendsfxf2): Macroize insn pattern from *absextendsfxf2 and
8882 *negextendsfxf2 patterns using absneg code iterator.
8883 (*<code>extendsfdf2): Macroize insn pattern from *absextendsfdf2 and
8884 *negextendsfdf2 patterns using absneg code iterator.
8885 * config/i386/sse.md (<code><mode>2): Macroize expander from
8886 abs<mode>2 and neg<mode>2 patterns using absneg code iterator.
8888 2008-04-10 Andreas Krebbel <krebbel1@de.ibm.com>
8890 * config/s390/s390.h: Remove the remains of the recent search
8891 & replace action of current_function_outgoing_args_size.
8893 2008-04-10 Ira Rosen <irar@il.ibm.com>
8895 PR tree-optimization/35821
8896 * tree-vect-transform.c (vect_create_data_ref_ptr): Add check that
8897 NEW_STMT_LIST is not NULL.
8899 2008-04-09 David Edelsohn <edelsohn@gnu.org>
8902 * toplev.c (process_options): Remove -ffunction-sections debugging
8905 2008-04-09 Peter Bergner <bergner@vnet.ibm.com>
8907 PR middle-end/PR28690
8908 * explow.c (break_out_memory_refs): Use simplify_gen_binary rather
8909 than gen_rtx_fmt_ee to perform more canonicalizations.
8911 2008-04-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8914 * collect2.c (write_c_file): Don't wrap in "#ifdef __cplusplus".
8916 2008-04-09 Richard Guenther <rguenther@suse.de>
8918 * tree-cfg.c (verify_stmt): Print complete bogus stmt.
8919 (dump_function_to_file): Dump function arguments with types.
8921 2008-04-08 Richard Guenther <rguenther@suse.de>
8923 * fold-const.c (fold_widened_comparison): Do not allow
8924 sign-changes that change the result.
8926 2008-04-08 Janis Johnson <janis187@us.ibm.com>
8929 * config/rs6000/rs6000.c (rs6000_check_sdmode): Handle additional
8930 kinds of indirect references.
8932 2008-04-08 David Edelsohn <edelsohn@gnu.org>
8934 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Update
8935 GNU Fortran language string.
8937 2008-04-08 Rafael Espindola <espindola@google.com>
8939 * fold-canst.c (tree_call_nonnegative_warnv_p): New.
8940 (tree_invalid_nonnegative_warnv_p): Use tree_call_nonnegative_warnv_p.
8941 * tree.h (tree_call_nonnegative_warnv_p): New.
8943 2008-04-08 Jan Hubicka <jh@suse.cz>
8945 * function.c (free_after_compilation): Clear out regno_reg_rtx
8948 2008-04-08 Peter Bergner <bergner@vnet.ibm.com>
8951 2008-04-07 Peter Bergner <bergner@vnet.ibm.com>
8953 PR middle-end/PR28690
8954 * rtlanal.c: (commutative_operand_precedence): Give SYMBOL_REF's the
8955 same precedence as REG_POINTER and MEM_POINTER operands.
8957 2008-04-08 Richard Guenther <rguenther@suse.de>
8960 * tree-ssa-address.c (create_mem_ref): Use POINTER_PLUS_EXPR
8961 for adding index to base.
8963 2008-04-08 Kai Tietz <kai.tietz@onevision.com>
8965 * config/i386/mingw32.h (ENABLE_EXECUTE_STACK): New.
8966 (MINGW_ENABLE_EXECUTE_STACK): New.
8967 (IN_LIBGCC2): For libgcc include windows.h file for
8968 function declarations.
8970 2008-04-08 Hans-Peter Nilsson <hp@axis.com>
8972 * config/cris/cris.c (cris_address_cost): For a PLUS, swap tem1
8973 and tem2 if tem1 is not a REG or MULT.
8975 2008-04-08 Jan Hubicka <jh@suse.cz>
8977 * function.h (incomming_args): Break out of struct function.
8978 (function_subsections): Break out of struct function.
8979 (rtl_data): Add args, subsections fields. Break out outgoing_args_size,
8980 return_rtx and hard_reg_initial_vals from struct function.
8981 Kill inl_max_label_num.
8982 (current_function_pops_args, current_function_args_info,
8983 current_function_args_size, current_function_args_size,
8984 current_function_pretend_args_size,
8985 current_function_outgoing_args_size,
8986 current_function_internal_arg_pointer, current_function_return_rtx):
8987 Kill compatibility accestor macros.
8988 * builtins.c (expand_builtin_apply_args_1): Update.
8989 (expand_builtin_next_arg): Update.
8990 * df-scan.c (df_get_call_refs): Update.
8991 * dbxout.c (dbxout_function_end): Update.
8992 * dwarf2out.c (dwarf2out_switch_text_section): Update.
8993 (output_line_info): Update.
8994 (secname_for_decl): Update.
8995 (dwarf2out_var_location): Update.
8996 * function.c (free_after_compilation): Update.
8997 (assign_parm_find_stack_rtl): Update.
8998 (assign_parms): Update.
8999 (expand_dummy_function_end): Update.
9000 (expand_function_end): Update.
9001 * calls.c (mem_overlaps_already_clobbered_arg_p): Update.
9002 (expand_call): Update.
9003 (emit_library_call_value_1): Update.
9004 (store_one_arg): Update.
9005 * varasm.c (initialize_cold_section_name): Update.
9006 (unlikely_text_section): Update.
9007 (unlikely_text_section_p): Update.
9008 (assemble_start_function): Update.
9009 (assemble_end_function): Update.
9010 (default_section_type_flags): Update.
9011 (switch_to_section): Update.
9012 * integrate.c (set_decl_abstract_flags): Update.
9013 (get_hard_reg_initial_val): Update.
9014 (has_hard_reg_initial_val): Update.
9015 (allocate_initial_values): Update.
9016 * resource.c (init_resource_info): Update.
9017 * config/alpha/alpha.c (NUM_ARGS): Update.
9018 (direct_return): Update.
9019 (alpha_va_start): Update.
9020 (alpha_sa_size): Update.
9021 (alpha_initial_elimination_offset): Update.
9022 (alpha_expand_prologue): Update.
9023 (alpha_start_function): Update.
9024 (alpha_expand_epilogue): Update.
9025 (unicosmk_initial_elimination_offset):
9026 * config/alpha/alpha.md (call expander): Update.
9027 * config/s390/s390.c (s390_register_info): Update.
9028 (s390_register_info): Update.
9029 (s390_frame_info): Update.
9030 (s390_initial_elimination_offset): Update.
9031 (s390_build_builtin_va_list): Update.
9032 (s390_va_start): Update.
9033 * config/spu/spu.c (direct_return): Update.
9034 (spu_expand_prologue): Update.
9035 (spu_initial_elimination_offset): Update.
9036 (spu_build_builtin_va_list): Update.
9037 (spu_va_start): Update.
9038 * config/sparc/sparc.c (sparc_init_modes): Update.
9039 (sparc_compute_frame_size): Update.
9040 (function_value): Update.
9041 * config/m32r/m32r.c (m32r_compute_frame_size): Update.
9042 * config/i386/i386.md (return expander): Update.
9043 * config/i386/i386.c (ix86_va_start): Update.
9044 (ix86_can_use_return_insn_p): Update.
9045 (ix86_compute_frame_layout): Update.
9046 (ix86_expand_epilogue): Update.
9047 * config/sh/sh.c (output_stack_adjust): Update.
9048 (calc_live_regs): Update.
9049 (sh_expand_prologue): Update.
9050 (sh_builtin_saveregs): Update.
9051 (sh_va_start): Update.
9052 (initial_elimination_offset): Update.
9053 (sh_allocate_initial_value): Update.
9054 (sh_function_ok_for_sibcall): Update.
9055 (sh_get_pr_initial_val): Update.
9056 * config/sh/sh.md (return expander): Update.
9057 * config/avr/avr.c (frame_pointer_required_p): UPdate.
9058 * config/crx/crx.c (crx_compute_frame): UPdate.
9059 (crx_initial_elimination_offset): UPdate.
9060 * config/xtensa/xtensa.c (compute_frame_size): Update
9061 (xtensa_builtin_saveregs): Update.
9062 (xtensa_va_start): Update.
9063 (order_regs_for_local_alloc): Update.
9064 * config/stormy16/stormy16.c (xstormy16_compute_stack_layout): Update.
9065 (xstormy16_expand_builtin_va_start): Update.
9066 * config/fr30/fr30.c (fr30_compute_frame_size): Update.
9067 * config/m68hc11/m68hc11.md (return expanders): Update.
9068 * config/m68hc11/m68hc11.c (expand_prologue): Update.
9069 (expand_epilogue): Update.
9070 * config/cris/cris.c (cris_initial_frame_pointer_offset): Update.
9071 (cris_simple_epilogue): Update.
9072 (cris_expand_prologue): Update.
9073 (cris_expand_epilogue): Update.
9074 * config/iq2000/iq2000.c (iq2000_va_start): Update.
9075 (compute_frame_size): Update.
9076 * config/mt/mt.c (mt_compute_frame_size): Update.
9077 * config/mn10300/mn10300.c (expand_prologue): Update.
9078 (expand_epilogue): Update.
9079 (initial_offset): Update.
9080 (mn10300_builtin_saveregs):
9081 * config/mn10300/mn10300.md (return expander): Update.
9082 * config/ia64/ia64.c (ia64_compute_frame_size): Update.
9083 (ia64_initial_elimination_offset): Update.
9084 (ia64_initial_elimination_offset): Update.
9085 (ia64_expand_prologue): Update.
9086 * config/m68k/m68k.md (return expander): Update.
9087 * config/rs6000/rs6000.c (rs6000_va_start): Update.
9088 (rs6000_stack_info): Update.
9089 * config/mcore/mcore.c (layout_mcore_frame): Update.
9090 (mcore_expand_prolog): Update.
9091 * config/arc/arc.c (arc_compute_frame_size): Update.
9092 * config/score/score3.c (score3_compute_frame_size): Update.
9093 * config/score/score7.c (score7_compute_frame_size): Update.
9094 * config/arm/arm.c (use_return_insn): Update.
9095 (thumb_find_work_register): Update.
9096 (arm_compute_save_reg_mask): Update.
9097 (arm_output_function_prologue): Update.
9098 (arm_output_epilogue): Update.
9099 (arm_size_return_regs): Update.
9100 (arm_get_frame_offsets): Update.
9101 (arm_expand_prologue): Update.
9102 (thumb_exit): Update.
9103 (thumb_unexpanded_epilogue): Update.
9104 (thumb1_output_function_prologue): Update.
9105 * config/pa/pa.md (return expander): Update.
9106 * config/pa/pa.c (compute_frame_size): Update.
9107 (hppa_builtin_saveregs): Update.
9108 * config/mips/mips.c (mips_va_start): Update.
9109 (mips16_build_function_stub): Update.
9110 (mips_compute_frame_info): Update.
9111 (mips_restore_gp): Update.
9112 (mips_output_function_prologue): Update.
9113 (mips_expand_prologue): Update.
9114 * config/v850/v850.c (compute_frame_size): Update.
9115 (expand_prologue): * config/mmix/mmix.c (along): update.
9116 (mmix_initial_elimination_offset): update.
9117 (mmix_reorg): update.
9118 (mmix_use_simple_return): update.
9119 (mmix_expand_prologue): update.
9120 (mmix_expand_epilogue): Update.
9121 * config/bfin/bfin.c (bfin_initial_elimination_offset): Update.
9122 (emit_link_insn): Update.
9124 2008-04-08 Anatoly Sokolov <aesok@post.ru>
9126 * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): Define
9127 __AVR_HAVE_EIJMP_EICALL__ macro if device have EIJMP and EICALL
9129 * config/avr/avr.c (avr_mcu_types): Set AVR31 architecture for
9132 2008-04-07 Jan Hubicka <jh@suse.cz>
9134 * function.h (rtl): Rename to x_rtl.
9136 (return_label, naked_return_label, stack_slot_list, parm_birth_insn,
9137 frame_offset, stack_check_probe_note, arg_pointer_save_area,
9138 used_temp_slots avail_temp_slots, temp_slot_level,
9139 nonlocal_goto_handler_labels): Update accesstors.
9140 (rtl): New global variable.
9141 (struct function): Move some fileds to rtl_data.
9142 (get_arg_pointer_save_area): Update prototype.
9143 * builtins.c (expand_builtin_setjmp_receiver): Update call of
9144 get_arg_pointer_save_area.
9145 * expr.c (init_expr): Update
9146 * function.c (get_frame_size): Update
9147 (assign_stack_local): Update
9148 (expand_function_end): Update.
9149 (get_art_pointer_save_area): Update
9151 * emit-rtl.c (rtl): Declare.
9152 (regno_reg_rtx): Declare.
9153 (first_insn, last_insn, cur_insn_uid, last_location, first_label_num):
9155 (gen_reg_rtx): Update.
9156 * varasm.c (n_deferred_constatns): Update accestor.
9157 (init_varasm_status): Do not allocate varasm_status.
9158 (force_const_mem, get_pool_size, output_constant_pool): Update.
9159 * stmt.c (force_label_rtx): Do not use x_ prefixes.
9160 (expand_nl_goto_receiver): Update get_arg_pointer_save_area.
9161 * m32c/m32.c (m32c_leaf_function_p, m32c_function_needs_enter): Update.
9162 * sparc/sparc.h (INIT_EXPANDERS): Update.
9163 * ia64/ia64.h (INIT_EXPANDERS): Update.
9165 2008-04-07 James E. Wilson <wilson@tuliptree.org>
9167 * reload.c (push_secondary_reload): Add missing break to for loop.
9169 2008-04-07 Peter Bergner <bergner@vnet.ibm.com>
9171 PR middle-end/PR28690
9172 * rtlanal.c: Update copyright years.
9173 (commutative_operand_precedence): Give SYMBOL_REF's the same precedence
9174 as REG_POINTER and MEM_POINTER operands.
9175 * emit-rtl.c (gen_reg_rtx_and_attrs): New function.
9176 (set_reg_attrs_from_value): Call mark_reg_pointer as appropriate.
9177 * rtl.h (gen_reg_rtx_and_attrs): Add prototype for new function.
9178 * gcse.c: Update copyright years.
9179 (pre_delete): Call gen_reg_rtx_and_attrs.
9180 (hoist_code): Likewise.
9181 (build_store_vectors): Likewise.
9182 (delete_store): Likewise.
9183 * loop-invariant.c (move_invariant_reg): Likewise.
9184 Update copyright years.
9186 2008-04-07 Uros Bizjak <ubizjak@gmail.com>
9188 * config/i386/i386.md ("*sse_prologue_save_insn"): Use braced output
9189 control string instead of quoted.
9191 2008-04-07 Kenneth Zadeck <zadeck@naturalbridge.com>
9193 * doc/rtl.texi: Rewrite of subreg section.
9195 2008-04-07 Kai Tietz <kai.tietz@onevision.com>
9198 * config/i386/i386.c (legitimize_pic_address): Add treating
9199 of dllimport SYM_REF's.
9200 (legitimize_dllimport_symbol): Add prototype.
9202 2008-04-07 Eric Botcazou <ebotcazou@adacore.com>
9204 * fold-const.c (fold) <ARRAY_REF>: New case. Try to fold constant
9205 reference in constructor with non self-referential type.
9207 2008-04-07 Eric Botcazou <ebotcazou@adacore.com>
9209 Removal of Return with Depressed Stack Pointer support
9210 * tree.h (TYPE_RETURNS_STACK_DEPRESSED): Delete.
9211 (ECF_SP_DEPRESSED): Likewise.
9212 (ECF_LIBCALL_BLOCK, ECF_NOVOPS): Adjust.
9213 * calls.c (emit_call_1): Do not test ECF_SP_DEPRESSED.
9214 (flags_from_decl_or_type): Do not test TYPE_RETURNS_STACK_DEPRESSED.
9215 (expand_call): Do not test ECF_SP_DEPRESSED.
9216 * dse.c (dse_step0): Do not test TYPE_RETURNS_STACK_DEPRESSED.
9217 * function.c (keep_stack_depressed): Delete.
9218 (handle_epilogue_set): Likewise.
9219 (update_epilogue_consts): Likewise.
9220 (emit_equiv_load): Likewise.
9221 (thread_prologue_and_epilogue_insns): Remove support for Return with
9222 Depressed Stack Pointer.
9223 * print-tree.c (print_node): Do not test TYPE_RETURNS_STACK_DEPRESSED.
9225 2008-04-06 Richard Guenther <rguenther@suse.de>
9227 PR tree-optimization/35400
9228 * tree-vrp.c (vrp_evaluate_conditional): Only query value-range
9229 information from SSA_NAMEs.
9231 2008-04-06 Anatoly Sokolov <aesok@post.ru>
9233 * config/avr/avr.h (avr_mega_p): Remove declaration.
9234 (AVR_MEGA): Remove macro.
9235 * config/avr/avr.c (avr_mega_p): Remove variable.
9236 (avr_override_options): Remove inicializion of avr_mega_p.
9237 Use AVR_HAVE_JMP_CALL instead of AVR_MEGA.
9238 (print_operand): Use AVR_HAVE_JMP_CALL instead of AVR_MEGA.
9239 (avr_jump_mode): (Ditto.).
9240 (avr_output_progmem_section_asm_op): (Ditto.).
9241 (avr_asm_init_sections): (Ditto.).
9242 (avr_asm_init_sections): (Ditto.).
9243 (avr_rtx_costs): (Ditto.).
9244 * config/avr/avr.md: (Ditto.).
9245 * config/avr/avr.h: Use '__AVR_HAVE_JMP_CALL__' instead of
9248 2008-04-06 Richard Guenther <rguenther@suse.de>
9250 PR tree-optimization/35842
9251 * tree-ssa-address.c (fixed_address_object_p): Adjust to match
9252 is_gimple_invariant_address.
9254 2008-04-06 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
9256 * gcc.c (default_compilers): Sync Fortran extensions list with
9257 that in fortran/lang-specs.h.
9258 * doc/invoke.texi: Likewise.
9259 * dbxout.c (get_lang_number): Use "GNU Fortran" in "GNU F95".
9260 * dwarf2out.c (gen_compile_unit_die): Likewise.
9262 2008-04-06 Tom G. Christensen <tgc@jupiterrise.com>
9264 * gthr-posix95.h (__gthread_cond_wait_recursive): Add missing &.
9266 2008-04-05 Uros Bizjak <ubizjak@gmail.com>
9269 * config/i386/i386.c (ix86_function_regparm): Error if regparm(3)
9270 attribute is used for nested functions.
9272 2008-04-05 Jan Hubicka <jh@suse.cz>
9274 * emit-rtl.c (init_emit): xcalloc regno_pointer_align.
9276 * tree-dump.c (dump_enable_all): Remove prototype; do not accept
9278 (dump_files): Update.
9279 (enable_rtl_dump_file): Do not accept letter argument.
9280 * tree-pass.h (dump_file_info): Remove letter argument.
9281 * toplev.c (decode_d_option): Update -da handling.
9282 * toplev.h (enable_rtl_dump_file): Update prototype.
9283 * passes.c (register_one_dump_file): Do not accept IPA argument; work
9284 it out based on pass type.
9285 (register_dump_files_1): Likewise.
9286 (init_optimization_passes): Update register_one_dump_file calls.
9287 (execute_one_pass): Sanity check that IPA passes are called at IPA
9288 level and RTL passes at RTL level.
9289 (execute_pass_list): IPA pass can not be after or subpass of
9291 (execute_ipa_pass_list): Handle IPA subpasses of IPA subpasses and
9292 disallov RTL subpasses of IPA subpasses.
9294 2008-04-05 Ben Elliston <bje@au.ibm.com>
9296 * tree-cfg.c (need_fake_edge_p): Return false for calls to
9297 builtins that return exactly once and do not throw. Cache call to
9300 2008-04-04 Andy Hutchinson <hutchinsonandy@aim.com>
9302 PR rtl-optimization/34916
9304 * combine.c (create_log_links): Do not create duplicate LOG_LINKS
9305 between instruction pairs.
9307 2008-04-04 Naveen.H.S <naveen.hs@kpitcummins.com>
9309 * doc/invoke.texi: Document -mbitops for SH.
9310 * config/sh/constraints.md (K03, K12, Sbv, Sbw): New constraints.
9311 * config/sh/predicates.md (bitwise_memory_operand): New predicate.
9312 * config/sh/sh.c (print_operand): Add %t operand code.
9313 * config/sh/sh.h (GO_IF_LEGITIMATE_INDEX): Add condition for SH2A.
9314 * config/sh/sh.md (*iorsi3_compact): Fix condition for SH2A.
9315 (extendqisi2_compact): Add the alternative for SH2A 4-byte mov.b.
9316 (extendqihi2): Likewise.
9317 (movqi_i): Likewise.
9318 (insv): Use bset, bclr and bst instructions for SH2A if possible.
9319 (extv): Use bld instruction for SH2A if possible.
9321 (bclr_m2a, bclrmem_m2a, bset_m2a, bsetmem_m2a, bst_m2a, bld_m2a,
9322 bldsign_m2a, bld_reg, *bld_regqi, band_m2a, bandreg_m2a,
9323 bor_m2a, borreg_m2a, bxor_m2a, bxorreg_m2a): New insns.
9324 (bset.b, bclr.b): Define peepholes.
9325 * config/sh/sh.opt (mbitops): New option.
9327 2008-04-04 Janis Johnson <janis187@us.ibm.com>
9330 * config/rs6000/rs6000.c (rs6000_check_sdmode): Handle indirect ref
9331 and view convert expression.
9333 2008-04-04 Jakub Jelinek <jakub@redhat.com>
9336 * tree-cfg.c (remove_useless_stmts_1): Handle OMP_* containers.
9338 2008-04-04 H.J. Lu <hongjiu.lu@intel.com>
9340 * config.gcc (extra_headers): Add wmmintrin.h for x86 and x86-64.
9342 * config/i386/cpuid.h (bit_AES): New.
9343 (bit_PCLMUL): Likewise.
9345 * config/i386/i386.c (pta_flags): Add PTA_AES and PTA_PCLMUL.
9346 (override_options): Handle PTA_AES and PTA_PCLMUL. Enable
9347 SSE2 if AES or PCLMUL is enabled.
9348 (ix86_builtins): Add IX86_BUILTIN_AESENC128,
9349 IX86_BUILTIN_AESENCLAST128, IX86_BUILTIN_AESDEC128,
9350 IX86_BUILTIN_AESDECLAST128, IX86_BUILTIN_AESIMC128,
9351 IX86_BUILTIN_AESKEYGENASSIST128 and IX86_BUILTIN_PCLMULQDQ128.
9352 (bdesc_sse_3arg): Add IX86_BUILTIN_PCLMULQDQ128.
9353 (bdesc_2arg): Add IX86_BUILTIN_AESENC128,
9354 IX86_BUILTIN_AESENCLAST128, IX86_BUILTIN_AESDEC128,
9355 IX86_BUILTIN_AESDECLAST128 and IX86_BUILTIN_AESKEYGENASSIST128.
9356 (bdesc_1arg): Add IX86_BUILTIN_AESIMC128.
9357 (ix86_init_mmx_sse_builtins): Define __builtin_ia32_aesenc128,
9358 __builtin_ia32_aesenclast128, __builtin_ia32_aesdec128,
9359 __builtin_ia32_aesdeclast128,__builtin_ia32_aesimc128,
9360 __builtin_ia32_aeskeygenassist128 and
9361 __builtin_ia32_pclmulqdq128.
9362 * config/i386/i386.c (ix86_expand_binop_imm_builtin): New.
9363 (ix86_expand_builtin): Use it for IX86_BUILTIN_PSLLDQI128 and
9364 IX86_BUILTIN_PSRLDQI128. Handle IX86_BUILTIN_AESKEYGENASSIST128.
9366 * config/i386/i386.h (TARGET_AES): New.
9367 (TARGET_PCLMUL): Likewise.
9368 (TARGET_CPU_CPP_BUILTINS): Handle TARGET_AES and TARGET_PCLMUL.
9370 * config/i386/i386.md (UNSPEC_AESENC): New.
9371 (UNSPEC_AESENCLAST): Likewise.
9372 (UNSPEC_AESDEC): Likewise.
9373 (UNSPEC_AESDECLAST): Likewise.
9374 (UNSPEC_AESIMC): Likewise.
9375 (UNSPEC_AESKEYGENASSIST): Likewise.
9376 (UNSPEC_PCLMUL): Likewise.
9378 * config/i386/i386.opt (maes): New.
9379 (mpclmul): Likewise.
9381 * config/i386/sse.md (aesenc): New pattern.
9382 (aesenclast): Likewise.
9384 (aesdeclast): Likewise.
9386 (aeskeygenassist): Likewise.
9387 (pclmulqdq): Likewise.
9389 * config/i386/wmmintrin.h: New.
9391 * doc/extend.texi: Document AES and PCLMUL built-in function.
9393 * doc/invoke.texi: Document -maes and -mpclmul.
9395 2008-04-04 Paolo Bonzini <bonzini@gnu.org>
9397 * function.c (free_after_parsing): Replace with
9398 cxx_push_function_context from C++ front-end.
9399 (allocate_struct_function): Don't call langhook.
9400 * langhooks.h (struct lang_hooks_for_functions): Delete.
9401 (struct lang_hooks): Add back missing_noreturn_ok_p here, delete
9403 * langhooks-def.h (LANG_HOOKS_MISSING_NORETURN_OK_P): Add.
9404 (LANG_HOOKS_FUNCTION_INIT, LANG_HOOKS_FUNCTION_FINAL,
9405 LANG_HOOKS_FUNCTION_MISSING_NORETURN_OK_P,
9406 LANG_HOOKS_FUNCTION_INITIALIZER): Delete.
9407 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_MISSING_NORETURN_OK_P,
9408 remove LANG_HOOKS_FUNCTION_INITIALIZER.
9409 * tree-cfg.c: Adjust call to missing_noreturn_ok_p langhook.
9411 * c-objc-common.h (LANG_HOOKS_FUNCTION_MISSING_NORETURN_OK_P):
9412 Rename to LANG_HOOKS_MISSING_NORETURN_OK_P.
9414 2008-04-04 Jakub Jelinek <jakub@redhat.com>
9417 * c-pretty-print.c (pp_c_initializer_list): Handle CONSTRUCTOR
9420 2008-04-04 Richard Guenther <rguenther@suse.de>
9423 * fold-const.c (optimize_minmax_comparison): Use the correct
9424 type for the constant in the simplified comparison.
9426 2008-04-04 Zuxy Meng <zuxy.meng@gmail.com>
9428 * config/i386/driver-i386.c (describe_cache): Add l2_sizekb argument.
9429 Pass L2 size as "--param l2-cache-size" to the compiler.
9430 (decode_l2_cache): New function to decode L2 cache parameters using
9431 0x8000006 extended cpuid function.
9432 (detect_caches_amd): Determine parameters of L2 cache using
9433 decode_l2_caches function.
9434 (decode_caches_intel): Decode L2 cache parameters.
9435 (detect_caches_intel): Determine L2 cache parameters using
9436 decode_caches_intel and decode_l2_caches functions.
9438 2008-04-03 Bob Wilson <bob.wilson@acm.org>
9440 * config/xtensa/xtensa.c (xtensa_secondary_reload_class): Use a
9441 secondary input reload for subword loads from the constant pool.
9443 2008-04-03 Janis Johnson <janis187@us.ibm.com>
9446 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use integer
9447 constants of the appropriate size for runtime calculations.
9450 * dfp.c (decimal_from_decnumber): Retain trailing zeroes for
9451 decimal-float literal constant zero.
9453 2008-04-03 Jakub Jelinek <jakub@redhat.com>
9456 * c-parser.c (c_parser_omp_atomic): Call
9457 default_function_array_conversion on the RHS.
9460 * omp-low.c (scan_sharing_clauses) <case OMP_CLAUSE_SHARED>: Don't
9461 call is_variable_sized if decl has incomplete type.
9463 2008-04-03 H.J. Lu <hongjiu.lu@intel.com>
9465 * config/i386/i386-protos.h (ix86_aligned_p): Removed.
9467 2008-04-03 Adam Nemet <anemet@caviumnetworks.com>
9469 * config/mips/mips.md (any_gt, any_ge, any_lt, any_le): New code
9471 (u): Add attribute values for gt, gtu, ge, geu, lt, ltu, le and leu.
9472 (sgt<u>): Merge sgt and sgtu into new expander.
9473 (sgt, sgtu): Remove expanders.
9474 (*sgt<u>_<mode>): Merge *sgt_<mode> and *sgtu_<mode> into new pattern.
9475 (*sgt_<mode>, *sgtu_<mode>): Remove patterns.
9476 (*sgt<u>_<mode>_mips16): Merge *sgt_<mode>_mips16 and
9477 *sgtu_<mode>_mips16 into new pattern.
9478 (*sgt_<mode>_mips16, *sgtu_<mode>_mips16): Remove patterns.
9479 (sge<u>): Merge sge and sgeu into new expander.
9480 (sge, sgeu): Remove expanders.
9481 (*sge<u>_<mode>): Merge *sge_<mode> and second *sge_<mode> into
9483 (*sge_<mode>, second *sge_<mode>): Remove patterns.
9484 (slt<u>): Merge slt and sltu into new expander.
9485 (slt, sltu): Remove expanders.
9486 (*slt<u>_<mode>): Merge *slt_<mode> and *sltu_<mode> into new pattern.
9487 (*slt_<mode>, *sltu_<mode>): Remove patterns.
9488 (*slt<u>_<mode>_mips16): Merge *slt_<mode>_mips16 and
9489 *sltu_<mode>_mips16 into new pattern.
9490 (*slt_<mode>_mips16, *sltu_<mode>_mips16): Remove patterns.
9491 (sle<u>): Merge sle and sleu into new expander.
9492 (sle, sleu): Remove expanders.
9493 (*sle<u>_<mode>): Merge *sle_<mode> and *sleu_<mode> into new pattern.
9494 (*sle_<mode>, *sleu_<mode>): Remove patterns.
9495 (*sle<u>_<mode>_mips16): Merge *sle_<mode>_mips16 and
9496 *sleu_<mode>_mips16 into new pattern.
9497 (*sle_<mode>_mips16, *sleu_<mode>_mips16): Remove patterns.
9499 2008-04-03 Jan Hubicka <jh@suse.cz>
9501 PR tree-optimization/35795
9502 * alpha/alpha.c (alpha_output_mi_thunk_osf): Free after compilation.
9503 * sparc/sparc.c (sparc_output_mi_thunk): Likewise.
9504 * ia64/ia64.c (ia64_output_mi_thunk): Likewise.
9505 * m68k/m68k.c (m68k_output_mi_thunk): Likewise.
9506 * score/score3.c (score3_output_mi_thunk): Likewise.
9507 * score/score7.c (score7_output_mi_thunk): Likewise.
9508 * mips/mips.c (mips_output_mi_thunk): Likewise.
9510 2008-04-03 Richard Guenther <rguenther@suse.de>
9512 * tree-vrp.c (extract_range_from_unary_expr): Handle all
9513 conversions. Simplify code.
9515 2008-04-03 Kaz Kojima <kkojima@gcc.gnu.org>
9517 * config/sh/sh.c (sh_output_mi_thunk): Free cfun.
9519 2008-04-03 Tom Tromey <tromey@redhat.com>
9520 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9522 * config/m68k/t-uclinux (generated_files): Add sysroot-suffix.h.
9523 * config/bfin/t-bfin-linux (generated_files): Add
9524 linux-sysroot-suffix.h.
9525 * doc/install.texi (Prerequisites): Require make 3.80.
9526 * doc/sourcebuild.texi (Front End Directory): Document new
9528 * Makefile.in (generated_files): New variable.
9529 (ALL_HOST_OBJS): New variable.
9530 ($(ALL_HOST_OBJS)): New target.
9532 2008-04-03 Paolo Bonzini <bonzini@gnu.org>
9534 * tree-inline.c (copy_generic_body, copy_decl_no_change): Export.
9535 (remap_block): Call id->transform_lang_insert_block instead
9537 (optimize_inline_calls, unsave_expr_now, tree_function_versioning):
9538 Set id.transform_lang_insert_block to NULL.
9539 (clone_body): Move to cp/optimize.c
9540 * tree-inline.h (struct copy_body_data): Change
9541 transform_lang_insert_block to function pointer.
9542 (copy_generic_body, copy_decl_no_change): Export.
9543 * langhooks.h (struct lang_hooks_for_decls): Kill insert_block.
9544 * langhooks-def.h (LANG_HOOKS_INSERT_BLOCK): Kill.
9545 (LANG_HOOKS_DECLS): Remove LANG_HOOKS_INSERT_BLOCK.
9547 * c-tree.h (insert_block): Kill.
9548 * c-decl.c (insert_block): Kill.
9550 2008-04-03 Paolo Bonzini <bonzini@gnu.org>
9552 * c-objc-common.h (LANG_HOOKS_FUNCTION_ENTER_NESTED,
9553 LANG_HOOKS_FUNCTION_LEAVE_NESTED): Delete.
9554 * c-tree.h (c_push_function_context, c_pop_function_context): Remove
9556 * c-decl.c (c_push_function_context, c_pop_function_context): Remove
9557 argument, call {push,pop}_function_context from here.
9558 * c-parser.c: Use c_{push,pop}_function_context.
9560 * function.c (push_function_context_to): Move meat ...
9561 (push_function_context): ... here. Simplify.
9562 * function.c (pop_function_context_from): Move meat ...
9563 (pop_function_context): ... here. Simplify.
9564 * langhooks.h (struct lang_hooks_for_functions): Remove enter_nested,
9566 * langhooks-def.h (LANG_HOOKS_FUNCTION_ENTER_NESTED,
9567 LANG_HOOKS_FUNCTION_LEAVE_NESTED): Delete.
9568 (LANG_HOOKS_FUNCTION_INITIALIZER): Delete them from here.
9569 * tree.h (push_function_context_to, pop_function_context_from): Remove.
9571 2008-04-03 Ben Elliston <bje@au.ibm.com>
9573 * expmed.c (extract_force_align_mem_bit_field): Remove.
9575 2008-04-03 Richard Guenther <rguenther@suse.de>
9578 * expr.h (try_casesi): Adjust prototype.
9579 * expr.c (try_casesi): Take fallback label as extra parameter.
9580 Use that for gen_casesi if default_label is NULL.
9581 * stmt.c (expand_case): Pass fallback label to try_casesi,
9582 make sure to fill gaps with a fallback label if default_label
9585 2008-04-03 Dominique d'Humieres <dominiq@lps.ens.fr>
9588 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Free cfun.
9590 2008-04-03 Ben Elliston <bje@au.ibm.com>
9592 * expmed.c (extract_split_bit_field): Remove if (0) code.
9593 * tree-ssa-structalias.c (do_sd_constraint): Likewise.
9594 (do_ds_constraint): Likewise.
9596 2008-04-02 Joseph Myers <joseph@codesourcery.com>
9598 * doc/cppopts.texi (-dU): Document.
9599 * c-common.h (flag_dump_macros): Update comment.
9600 * c-opts.c (handle_OPT_d): Handle -dU.
9601 * c-ppoutput.c (macro_queue, define_queue, undef_queue,
9602 dump_queued_macros, cb_used_define, cb_used_undef): New.
9603 (init_pp_output): Handle -dU.
9604 (cb_line_change): Call dump_queued_macros.
9605 * toplev.c (decode_d_option): Accept -dU as preprocessor option.
9607 2008-04-02 Anatoly Sokolov <aesok@post.ru>
9609 * config/avr/predicates.md (io_address_operand): New predicate.
9610 * config/avr/avr-protos.h (avr_io_address_p): Remove declaration.
9611 * config/avr/avr.c (avr_io_address_p): Remove function.
9612 (out_movqi_r_mr): Use 'io_address_operand' predicate instead of
9613 'avr_io_address_p' function.
9614 (out_movhi_r_mr): (Ditto.).
9615 (out_movqi_mr_r): (Ditto.).
9616 (out_movhi_mr_r): (Ditto.).
9617 (avr_address_cost): (Ditto.).
9619 2008-04-02 Uros Bizjak <ubizjak@gmail.com>
9621 * config/i386/i386.md (*float<SSEMODEI24:mode><X87MODEF:mode>2_1):
9622 Emit gen_floatdi<X87MODEF:mode>2_i387_with_xmm for DImode values
9623 in 32bit mode when XMM registers are available to avoid store
9625 (floatdi<X87MODEF:mode>2_i387_with_xmm): New insn pattern and
9626 corresponding post-reload splitters.
9628 2008-04-02 H.J. Lu <hongjiu.lu@intel.com>
9630 * config/i386/i386.c (bdesc_sse_3arg): Add __builtin_ia32_shufps
9631 and __builtin_ia32_shufpd. Provide __builtin_ia32_roundsd and
9632 __builtin_ia32_roundss.
9633 (ix86_init_mmx_sse_builtins): Remove __builtin_ia32_shufps,
9634 __builtin_ia32_shufpd, __builtin_ia32_roundsd and
9635 __builtin_ia32_roundss.
9636 (ix86_expand_builtin): Don't handle IX86_BUILTIN_SHUFPS and
9637 IX86_BUILTIN_SHUFPD here.
9639 2008-04-02 H.J. Lu <hongjiu.lu@intel.com>
9641 * config/i386/i386.md (plogic): New.
9642 (plogicprefix): Likewise.
9644 * config/i386/mmx.md (mmx_<code><mode>3): New.
9645 (mmx_and<mode>3): Removed.
9646 (mmx_ior<mode>3): Likewise.
9647 (mmx_xor<mode>3): Likewise.
9649 * config/i386/sse.md (<code><mode>3): New.
9650 (*<code><mode>3): Likewise.
9651 (*<code><mode>3): Likewise.
9652 (<code><mode>3): Likewise.
9653 (*sse_<code><mode>3): Likewise.
9654 (*sse2_<code><mode>3): Likewise.
9655 (<code>tf3): Likewise.
9656 (*<code>tf3): Likewise.
9657 (and<mode>3): Likewise.
9658 (*and<mode>3): Likewise.
9659 (ior<mode>3): Removed.
9660 (*ior<mode>3): Likewise.
9661 (xor<mode>3): Likewise.
9662 (*xor<mode>3): Likewise.
9663 (*and<mode>3): Likewise.
9664 (*ior<mode>3): Likewise.
9665 (*xor<mode>3): Likewise.
9666 (and<mode>3): Likewise.
9667 (*sse_and<mode>3): Likewise.
9668 (*sse2_and<mode>3): Likewise.
9670 (*andtf3): Likewise.
9671 (ior<mode>3): Likewise.
9672 (*sse_ior<mode>3): Likewise.
9673 (*sse2_ior<mode>3): Likewise.
9675 (*iortf3): Likewise.
9676 (xor<mode>3): Likewise.
9677 (*sse_xor<mode>3): Likewise.
9678 (*sse2_xor<mode>3): Likewise.
9680 (*xortf3): Likewise.
9682 2008-04-02 Richard Guenther <rguenther@suse.de>
9684 PR tree-optimization/14495
9685 PR tree-optimization/34793
9686 * tree-vrp.c (struct switch_update): New structure.
9687 (to_remove_edges, to_update_switch_stmts): New VECs.
9688 (simplify_switch_using_ranges): New function. Remove not taken
9689 case labels and edges.
9690 (simplify_stmt_using_ranges): Call it.
9691 (identify_jump_threads): Mark edges we have queued for removal
9692 so we don't thread them.
9693 (execute_vrp): Remove edges queued for removal, update SWITCH_STMT
9695 * tree-cfg.c (group_case_labels): Deal with missing default label.
9696 (tree_verify_flow_info): Allow missing default label.
9697 * stmt.c (emit_case_bit_tests): Deal with NULL default_label.
9698 (emit_case_nodes): Likewise.
9699 (expand_case): Do not rely on the default label to be present.
9700 * expr.c (try_casesi): Deal with NULL default_label.
9701 (do_tablejump): Likewise.
9703 2008-04-02 Richard Guenther <rguenther@suse.de>
9705 PR tree-optimization/14495
9706 * tree-vrp.c (vrp_visit_cond_stmt): Do not handle
9707 SWITCH_EXPR here ...
9708 (vrp_visit_switch_stmt): ... but here (new function).
9709 (find_case_label_index): New helper function.
9710 (vrp_visit_stmt): Dispatch to vrp_visit_switch_stmt.
9712 2008-04-02 Paolo Bonzini <bonzini@gnu.org>
9714 * fwprop.c: Fix ISO-C99ism.
9716 2008-04-02 Paolo Bonzini <bonzini@gnu.org>
9719 * Makefile.in (objdir): Set it here.
9720 * configure.ac: Not here. Find dynamic linker characteristics.
9721 * exec-tool.in: Use them.
9722 * aclocal.m4: Regenerate.
9723 * configure: Regenerate.
9725 2008-04-02 Paolo Bonzini <bonzini@gnu.org>
9727 * expr.c (expand_var): Delete it.
9728 * expr.h (expand_var): Delete prototype.
9729 * function.c (expand_function_start): Use expand_decl instead.
9730 * cfgexpand.c (expand_one_static_var, expand_one_var): Don't call
9733 2008-04-02 Andy Hutchinson <hutchinsonamdy@aim.com>
9735 PR rtl-optimization/35542
9736 * fwprop.c (forward_propagate_and_simplify): Replace
9737 loc_reg_mentioned_in_p with reg_mentioned_p.
9739 2008-04-02 Paolo Bonzini <bonzini@gnu.org>
9741 PR rtl-optimization/35281
9742 * fwprop.c (PR_CAN_APPEAR, PR_HANDLE_MEM): New.
9743 (propagate_rtx_1): Handle PR_HANDLE_MEM.
9744 (propagate_rtx): Pass PR_HANDLE_MEM if appropriate.
9745 (varying_mem_p): Move above propagate_rtx.
9746 (all_uses_available_at): Do not check MEMs.
9748 2008-04-02 Rafael Espindola <espindola@google.com>
9750 * tree-vrp.c (extract_code_and_val_from_cond): Remove.
9751 (register_edge_assert_for_2): Split the cond argument.
9752 (register_edge_assert_for_1): Adjust for the change in
9753 register_edge_assert_for_2.
9754 (register_edge_assert_for): Split the cond argument.
9755 (find_switch_asserts): Adjust for the change in
9756 register_edge_assert_for.
9758 2008-04-02 Kai Tietz <kai.tietz@onevision.com>
9760 * config.gcc: Add for x86_64-*-mingw* the t-crtfm to tbuild.
9761 * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Add 8 byte
9762 offsets for 64-bit mingw.
9763 * config/i386/i386.c (ix86_pass_by_reference): Correct calling
9764 abi for x86_64-pc-mingw.
9766 2008-04-02 Richard Guenther <rguenther@suse.de>
9768 * tree-vrp.c (extract_range_from_assert): Make sure to not
9769 produce range min/max with TREE_OVERFOW set.
9770 If merging a anti-range and a range keep the anti-range if
9771 the range covers all values of the type.
9772 (register_edge_assert_for_2): Only allow sign-changing
9773 conversions in detecting canonical range checks. Also
9774 register an assert for the unsigned name if useful.
9776 PR tree-optimization/35787
9777 * tree-vrp.c (vrp_val_max): New function.
9778 (vrp_val_min): Likewise.
9779 (vrp_val_is_max): Move earlier, use vrp_val_{min,max}.
9780 (vrp_val_is_min): Likewise.
9781 (supports_overflow_infinity): Use vrp_val_{min,max}.
9782 (negative_overflow_infinity): Likewise.
9783 (positive_overflow_infinity): Likewise.
9784 (is_negative_overflow_infinity): Use vrp_val_is_{min,max}.
9785 (is_positive_overflow_infinity): Likewise.
9786 (is_overflow_infinity): Likewise.
9787 (avoid_overflow_infinity): Use vrp_val_{min,max} and
9788 vrp_val_is_{min,max}.
9789 (set_and_canonicalize_value_range): Canonicalize anti-ranges
9790 to ranges if possible. Avoid empty ranges.
9792 2008-04-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9795 * fold-const.c (get_pointer_modulus_and_residue): Return modulus 1 if
9796 the expression is a function address.
9798 2008-04-01 George Helffrich <george@gcc.gnu.org>
9800 PR fortran/35154, fortran/23057
9801 * dbxout.c: Emit .stabs debug info for Fortran COMMON block
9802 variables as base symbol name + offset using N_BCOMM/N_ECOMM.
9803 (is_fortran, dbxout_common_name, dbxout_common_check): New functions.
9804 (dbxout_symbol_location): Transform N_LCSYM to N_GSYM for storage
9806 (dbxout_syms): Check for COMMON-based symbol and wrap in
9807 N_BCOMM/N_ECOMM stab bracket, including as many symbols as possible
9808 in bracket for efficiency.
9810 * dwarf2out.c: Emit DWARF debug info for Fortran COMMON block
9811 using DW_TAG_common_block + member offset.
9812 (add_pubname_string): New function.
9813 (dw_expand_expr): New function to find block name and offset for
9815 (common_check): New function to check whether symbol in Fortran COMMON.
9816 (gen_variable_die): If COMMON, use DW_TAG_common_block.
9818 2008-04-01 Volker Reichelt <v.reichelt@netcologne.de>
9821 * c-format.c (init_dynamic_gfc_info): Ignore invalid locus type.
9823 2008-04-02 Ben Elliston <bje@au.ibm.com>
9825 * config/v850/v850.md (casesi): Remove if (0) code.
9826 * config/i386/uwin.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
9827 * config/alpha/alpha.c (alpha_initialize_trampoline): Likewise.
9829 2008-04-01 Uros Bizjak <ubizjak@gmail.com>
9831 * config/i386/i386.md (rex64suffix): New mode attribute.
9832 (floathi<mode>2): Disable expander for SSE math.
9833 (*floathi<mode>2_1): New insn insn_and_split pattern.
9834 (*floathi<mode>2_i387_with_temp): New macroized instruction pattern and
9835 corresponding post-reload splitters.
9836 (*floathi<mode>2_i387): New macroized insn pattern.
9837 (float<SSEMODEI24:mode><X87MODEF:mode>2): New macroized expander.
9838 (*float<SSEMODEI24:mode><X87MODEF:mode>2_1): New macroized
9839 insn_and_split pattern.
9840 (*floatsi<mode>2_vector_mixed_with_temp, *floatsi<mode>2_vector_mixed):
9841 New macroized instruction patterns and corresponding post-reload
9843 (*floatsi<mode>2_mixed_with_temp): New macroized instruction pattern
9844 and corresponding post-reload splitters.
9845 (*floatsi<mode>2_mixed_interunit, *floatsi<mode>2_mixed_nointerunit):
9846 New macroized instruction patterns.
9847 (*floatsi<mode>2_vector_sse_with_temp, *floatsi<mode>2_vector_sse): New
9848 macroized instruction patterns and corresponding post-reload splitters.
9849 (*floatsi<mode>2_sse_with_temp): New macroized instruction pattern and
9850 corresponding post-reload splitters.
9851 (*floatsi<mode>2_sse_interunit, *floatsi<mode>2_mixed_nointerunit):
9852 New macroized instruction patterns.
9853 (*floatsi<mode>2_i387_with_temp): New macroized instruction pattern and
9854 corresponding post-reload splitters.
9855 (*floatsi<mode>2_i387): New macroized instruction patterns.
9857 2008-04-01 H.J. Lu <hongjiu.lu@intel.com>
9859 * config/i386/i386.md (smaxmin): New.
9860 (umaxmin): Likewise.
9861 (maxminiprefix): Likewise.
9862 (maxminfprefix): Likewise.
9863 (<code><mode>3): Likewise.
9864 (smin<mode>3): Removed.
9865 (smax<mode>3): Likewise.
9867 * config/i386/mmx.md (mmx_<code>v2sf3): New.
9868 (mmx_<code>v4hi3): Likewise.
9869 (mmx_<code>v8qi3): Likewise.
9870 (mmx_smaxv2sf3): Removed.
9871 (mmx_sminv2sf3): Likewise.
9872 (mmx_umaxv8qi3): Likewise.
9873 (mmx_smaxv4hi3): Likewise.
9874 (mmx_uminv8qi3): Likewise.
9875 (mmx_sminv4hi3): Likewise.
9877 * config/i386/sse.md (<addsub><mode>3): New.
9878 (*<addsub><mode>3): Likewise.
9879 (<sse>_vm<addsub><mode>3): Likewise.
9880 (<maxmin><mode>3): Likewise.
9881 (*<maxmin><mode>3_finite): Likewise.
9882 (*<maxmin><mode>3): Likewise.
9883 (<sse>_vm<maxmin><mode>3): Likewise.
9884 (sse3_h<addsub>v4sf3): Likewise.
9885 (sse3_h<addsub>v2df3): Likewise.
9886 (<maxmin>v16qi3): Likewise.
9887 (*<maxmin>v16qi3): Likewise.
9888 (<maxmin>v8hi3): Likewise.
9889 (*<maxmin>v8hi3): Likewise.
9890 (*sse4_1_<maxmin><mode>3): Likewise.
9891 (*sse4_1_<maxmin><mode>3): Likewise.
9892 (add<mode>3): Removed.
9893 (*add<mode>3): Likewise.
9894 (<sse>_vmadd<mode>3): Likewise.
9895 (sub<mode>3): Likewise.
9896 (*sub<mode>3): Likewise.
9897 (<sse>_vmsub<mode>3): Likewise.
9898 (smin<mode>3): Likewise.
9899 (*smin<mode>3_finite): Likewise.
9900 (*smin<mode>3): Likewise.
9901 (<sse>_vmsmin<mode>3): Likewise.
9902 (smax<mode>3): Likewise.
9903 (*smax<mode>3_finite): Likewise.
9904 (*smax<mode>3): Likewise.
9905 (<sse>_vmsmax<mode>3): Likewise.
9906 (sse3_haddv4sf3): Likewise.
9907 (sse3_haddv2df3): Likewise.
9908 (sse3_hsubv4sf3): Likewise.
9909 (sse3_hsubv2df3): Likewise.
9910 (umaxv16qi3): Likewise.
9911 (*umaxv16qi3): Likewise.
9912 (smaxv8hi3): Likewise.
9913 (*smaxv8hi3): Likewise.
9914 (*sse4_1_smax<mode>3): Likewise.
9915 (*sse4_1_umax<mode>3): Likewise.
9916 (uminv16qi3): Likewise.
9917 (*uminv16qi3): Likewise.
9918 (sminv8hi3): Likewise.
9919 (*sminv8hi3): Likewise.
9920 (*sse4_1_smin<mode>3): Likewise.
9921 (*sse4_1_umin<mode>3): Likewise.
9923 2008-04-01 Rafael Espindola <espindola@google.com>
9925 * tree-cfg.c (verify_expr): remove in_phi.
9926 (verify_stmt): Don't call walk_tree with verify_expr. Use
9927 is_gimple_min_invariant instead of is_gimple_val.
9929 2008-04-01 Joseph Myers <joseph@codesourcery.com>
9931 * doc/include/gpl_v3.texi: Update for manpage generation.
9932 * doc/gcc.texi, doc/gccint.texi: Include gpl_v3.texi instead of
9934 * doc/sourcebuild.texi: Document gpl_v3.texi as well as gpl.texi.
9935 * Makefile.in (TEXI_GCC_FILES, TEXI_GCCINT_FILES): Include
9936 gpl_v3.texi instead of gpl.texi.
9939 2008-04-01 Jakub Jelinek <jakub@redhat.com>
9942 * c-pch.c (c_common_read_pch): On error close (fd) resp. fclose (f).
9944 2008-04-01 Rafael Espindola <espindola@google.com>
9946 * tree-vrp.c (extract_code_and_val_from_cond_with_ops): New.
9947 (extract_code_and_val_from_cond): Use
9948 extract_code_and_val_from_cond_with_ops.
9950 2008-04-01 Jan Hubicka <jh@suse.cz>
9952 * function.c (free_after_compilation): Free epilogue_delay_list.
9953 (prepare_function_start): Assert that previous compilation was freed.
9955 2008-04-01 Jan Hubicka <jh@suse.cz>
9956 Jim Wilson <wilson@tuliptree.org>
9957 Andreas Tobler <andreast@gcc.gnu.org>
9960 * m32c/m32.c (m32c_leaf_function_p, m32c_function_needs_enter): Use
9961 rtl.emit instead cfun->emit.
9962 * sparc/sparc.h (INIT_EXPANDERS): Likewise.
9963 * ia64/ia64.h (INIT_EXPANDERS): Likewise.
9965 2008-04-01 Ben Elliston <bje@au.ibm.com>
9967 * doc/c-tree.texi (Function Basics): Fix grammatical error.
9969 2008-03-31 Seongbae Park <seongbae.park@gmail.com>
9971 * common.opt (fprofile-dir=, fprofile-use=, fprofile-generate=):
9973 (fprofile-use): Add var flag_profile_use
9974 * coverage.c (coverage_begin_output): Do not open a gcno file for
9975 output only if -ftest-coverage is set.
9976 Do not add getpwd() to gcda file path.
9977 (build_gcov_info): Check the new flag
9978 flag_profile_datafile_relative_path.
9979 (coverage_init): Use profile_data_prefix.
9980 Read profile counter only if flag_profile_use is set.
9981 * opts.c (common_handle_option): New option fprofile-use=,
9982 fprofile-dir=, fprofile-generate=.
9983 * toplev.c (profile_data_prefix): New variable definition.
9984 * toplev.h (profile_data_prefix): New declaration.
9985 * doc/invoke.tex (Option Summary, Optimization Options):
9988 2008-03-31 James E. Wilson <wilson@tuliptree.org>
9990 * varasm.c (output_constant_pool_1): In LABEL_REF check,
9991 use tmp consistently.
9994 * config/ia64/div.md (recip_approx_rf): Use UNSPEC not DIV.
9995 * config/ia64/ia64.c (rtx_needs_barrier): Handle
9996 UNSPEC_FR_RECIP_APPROX_RES.
9997 * config/ia64/ia64.md (UNSPEC_FR_RECIP_APPROX_RES): Define.
9999 2008-03-31 Volker Reichelt <v.reichelt@netcologne.de>
10002 * c-decl.c (store_parm_decls_oldstyle): Skip invalid parameters.
10004 2008-03-31 Andrew Pinski <andrew_pinski@playstation.sony.com>
10006 PR middle-end/30186
10007 * fold-const.c (fold_indirect_ref_1): Support accessing non first
10008 element of the vector via a pointer.
10010 2008-03-31 Ian Lance Taylor <iant@google.com>
10012 * tlink.c (scan_linker_output): Look for symbol name in single quotes.
10014 2008-03-31 Jan Hubicka <jh@suse.cz>
10016 * builtins.c (expand_builtin_setjmp_receiver): Update call of
10017 get_arg_pointer_save_area.
10018 * expr.c (init_expr): Just clear out rtl.expr.
10019 * function.c (free_after_compilation): Clear out whole RTL structure.
10020 (get_func_frame_size): Merge into ...
10021 (get_frame_size): ... this one.
10022 (assign_stack_local_1): Merge into ...
10023 (assign_stack_local): ... this one.
10024 (expand_function_end): Update call of get_arg_pointer_save_area.
10025 (get_art_pointer_save_area): Remove cfun argument.
10026 * function.h (emit_status): regno_pointer_align does not need length
10027 attribute. Move x_regno_reg_rtx to ...
10028 (regno_reg_rtx): ... new global array.
10029 (reg_rtx_no, seq_stack, REGNO_POINTER_ALIGN): Update accestors.
10030 (pending_stack_adjust, inhibit_defer_pop, saveregs_value,
10031 apply_args_value, forced_labels, stack_pointer_delta):
10033 (struct varasm_status): Move here from varasm.c
10034 (struct rtl_data): New. Move here some fields from struct function.
10035 (return_label, naked_return_label, stack_slot_list, parm_birth_insn,
10036 frame_offset, stack_check_probe_note, arg_pointer_save_area,
10037 used_temp_slots avail_temp_slots, temp_slot_level,
10038 nonlocal_goto_handler_labels): Update accesstors.
10039 (rtl): New global variable.
10040 (struct function): Move some fileds to rtl_data.
10041 (get_arg_pointer_save_area): Update prototype.
10042 * emit-rtl.c (rtl): Declare.
10043 (regno_reg_rtx): Declare.
10044 (first_insn, last_insn, cur_insn_uid, last_location, first_label_num):
10046 (gen_reg_rtx): Update.
10047 (init_virtual_regs): Do not tate emit_status argument.
10048 (init_emit): Do not allocate emit.
10049 * varasm.c (varasm_statuc): Move to function.h.
10050 (n_deferred_constatns): Update accestor.
10051 (init_varasm_status): Do not allocate varasm_status.
10052 (force_const_mem, get_pool_size, output_constant_pool): Update.
10053 * stmt.c (force_label_rtx): Do not use x_ prefixes.
10054 (expand_nl_goto_receiver): Update get_arg_pointer_save_area.
10056 2008-03-31 Zdenek Dvorak <ook@ucw.cz>
10058 PR rtl-optimization/35729
10059 * loop-invariant.c (check_maybe_invariant): Disallow volatile memory
10062 2008-03-31 H.J. Lu <hongjiu.lu@intel.com>
10065 * config/i386/i386.md (*movti_internal): Emit unaligned SSE
10066 load/store if memory is unaligned.
10067 (*movti_rex64): Likewise.
10069 * config/i386/predicates.md (misaligned_operand): New.
10071 2008-03-31 Andrew Pinski <pinskia@gmail.com>
10074 * tree-ssa-phiopt.c (conditional_replacement): Return early for
10077 2008-03-31 Jan Beulich <jbeulich@novell.com>
10079 * config/ia64/constraints.md: Add 'j' constraint.
10080 * config/ia64/ia64.md (movsi_internal): Add addp4 case.
10081 (movdi_internal): Likewise.
10083 2008-03-30 Volker Reichelt <v.reichelt@netcologne.de>
10086 * c-typeck.c (build_c_cast): Skip invalid fields in unions.
10088 2008-03-30 H.J. Lu <hongjiu.lu@intel.com>
10091 * config/i386/i386.c (ix86_expand_sse_4_operands_builtin): Issue
10092 proper error message for the third argument on blendpd and
10095 * config/i386/sse.md (blendbits): New.
10096 (sse4_1_blendp<ssemodesuffixf2c>): Use it.
10098 2008-03-30 Eric Botcazou <ebotcazou@adacore.com>
10100 * fold-const.c (fold_binary) <BIT_IOR_EXPR>: Add missing conversions.
10102 2008-03-30 Richard Guenther <rguenther@suse.de>
10104 PR middle-end/31023
10105 * fold-const.c (fold_sign_changed_comparison): Do leave
10106 conversions to base-types alone.
10108 2008-03-29 Andrew Pinski <andrew_pinski@playstation.sony.com>
10110 * config/rs6000/rs6000.c (rs6000_stack_info): Don't force saving of
10111 the link register if one altivec register is be saved.
10113 2008-03-30 Ben Elliston <bje@au.ibm.com>
10115 * final.c (final_scan_insn): Remove if (0) code.
10117 2008-03-28 Volker Reichelt <v.reichelt@netcologne.de>
10119 * c-parser.c (c_parser_next_token_is_keyword): Simplify.
10121 2008-03-28 H.J. Lu <hongjiu.lu@intel.com>
10123 * config/i386/sse.md (*and<mode>3): Pass <MODE>mode instead
10124 of V4SFmode to ix86_binary_operator_ok.
10126 2008-03-28 Uros Bizjak <ubizjak@gmail.com>
10128 * config/i386/i386.c (override_options): Initialize
10129 ix86_veclib_handler to ix86_veclibabi_svml when
10130 -mveclibabi=svml is used.
10131 (ix86_veclibabi_svml): New function for SVML ABI style
10132 vectorization support.
10133 * doc/invoke.texi (-mveclibabi) [svml]: Document new target option.
10135 2008-03-28 Rafael Espindola <espindola@google.com>
10137 * fold-const.c (tree_unary_nonnegative_warnv_p): Make it public.
10138 (tree_binary_nonnegative_warnv_p): Make it public.
10139 (tree_single_nonnegative_warnv_p): Make it public.
10140 (tree_invalid_nonnegative_warnv_p): Make it public.
10141 (tree_unary_nonzero_warnv_p): Make it public.
10142 (tree_binary_nonzero_warnv_p): Make it public
10143 (tree_single_nonzero_warnv_p): Make it public.
10144 * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops): New function.
10145 (extract_range_from_binary_expr): Split the expr argument.
10146 (extract_range_from_unary_expr): Split the expr argument.
10147 (extract_range_from_comparison): Split the expr argument.
10148 (extract_range_from_expr): Use the new aux functions.
10149 (vrp_evaluate_conditional_warnv): Use
10150 vrp_evaluate_conditional_warnv_with_ops.
10151 * tree.h (tree_unary_nonzero_warnv_p): Declare.
10152 (tree_binary_nonzero_warnv_p): Declare.
10153 (tree_single_nonzero_warnv_p): Declare.
10154 (tree_expr_nonzero_warnv_p): Declare.
10155 (tree_unary_nonnegative_warnv_p): Declare.
10156 (tree_binary_nonnegative_warnv_p): Declare.
10157 (tree_single_nonnegative_warnv_p): Declare.
10158 (tree_invalid_nonnegative_warnv_p): Declare.
10160 2008-03-28 Richard Guenther <rguenther@suse.de>
10162 PR tree-optimization/30317
10163 PR tree-optimization/30911
10164 PR tree-optimization/34793
10165 * tree-vrp.c (set_and_canonicalize_value_range): New function.
10166 (struct assert_locus_d): New member EXPR.
10167 (register_new_assert_for): Add EXPR parameter to support
10168 ASSERT_EXPR <name, expr OP limit>.
10169 (register_edge_assert_for_1): Adjust callers.
10170 (find_assert_locations): Likewise.
10171 (process_assert_insertions_for): Build condition from expression.
10172 (extract_range_from_assert): Handle ASSERT_EXPRs
10173 of the form ASSERT_EXPR <name, expr OP limit>.
10174 (register_edge_assert_for_2): New helper registering
10175 asserts for comparisons. Recognize range tests of the form
10176 (unsigned)i - CST1 OP CST2.
10177 (register_edge_assert_for_1): Use it.
10178 (register_edge_assert_for): Likewise.
10179 (needs_overflow_infinity): Integer sub-types
10180 do not need overflow infinities.
10181 (vrp_val_is_max): The extreme values of integer sub-types
10182 are those of the base type.
10183 (vrp_val_is_min): Likewise.
10184 * tree.def (ASSERT_EXPR): Document extra allowed conditional
10187 2008-03-28 Nick Clifton <nickc@redhat.com>
10190 * config/mn10300/mn10300.c (mn10300_secondary_reload_class):
10191 Return GENERAL_REGS for stack adjustment reloads.
10193 2008-03-28 Andrew Pinski <andrew_pinski@playstation.sony.com>
10196 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Create a
10197 const_vector when all the vectors are constant.
10199 2008-03-27 Bob Wilson <bob.wilson@acm.org>
10201 * config/xtensa/xtensa.c (gen_float_relational): Handle unordered
10203 * config/xtensa/xtensa.md (any_cond): Add unordered comparisons.
10204 (any_scc_sf): Add uneq, unlt, unle and unordered operators.
10206 (s<code>_sf): Use new scc_sf attribute for opcode names.
10208 2008-03-27 Tom Tromey <tromey@redhat.com>
10210 * doc/sourcebuild.texi, doc/install.texi, configure, aclocal.m4,
10211 configure.ac, Makefile.in, config/t-darwin, config/m32c/t-m32c,
10212 config/spu/t-spu-elf, config/i386/t-interix,
10213 config/i386/t-cygming, config/i386/x-i386, config/i386/t-cygwin,
10214 config/i386/x-darwin, config/i386/x-mingw32,
10215 config/i386/t-netware, config/i386/x-cygwin, config/i386/t-nwld,
10216 config/sh/t-sh, config/sh/t-symbian, config/x-linux,
10217 config/t-sol2, config/x-hpux, config/x-darwin, config/ia64/t-ia64,
10218 config/x-solaris, config/t-vxworks, config/m68k/t-uclinux,
10219 config/rs6000/x-rs6000, config/rs6000/x-darwin64,
10220 config/rs6000/x-darwin, config/rs6000/t-rs6000,
10221 config/score/t-score-elf, config/arm/t-strongarm-pe,
10222 config/arm/t-pe, config/arm/t-arm, config/arm/t-wince-pe,
10223 config/v850/t-v850, config/v850/t-v850e, config/bfin/t-bfin-linux:
10224 Revert automatic dependency patch.
10226 2008-03-27 H.J. Lu <hongjiu.lu@intel.com>
10229 * config/i386/i386.c (ix86_function_arg_boundary): Align
10230 decimal floating point to its natural boundary.
10232 2008-03-27 Richard Guenther <rguenther@suse.de>
10234 PR middle-end/35716
10235 * fold-const.c (fold_comparison): Restrict distinct decl
10236 comparison folding to VAR_DECLs and PARM_DECLs. Do not
10237 solely rely on operand_equal_p.
10239 2008-03-27 Richard Guenther <rguenther@suse.de>
10242 * c-common.c (handle_weak_attribute): Reject combination of
10245 2008-03-27 Richard Guenther <rguenther@suse.de>
10247 PR tree-optimization/32810
10248 * tree-ssa-ccp.c (get_symbol_constant_value): Strip useless
10249 conversions from DECL_INITIAL.
10250 (fold_const_aggregate_ref): Likewise from constructor elements.
10252 2008-03-27 Zdenek Dvorak <ook@ucw.cz>
10254 * tree-affine.h (aff_combination_expand): Declare.
10255 (get_inner_reference_aff): Likewise.
10256 * tree-affine.c (aff_combination_expand): Split out from
10257 tree_to_aff_combination_expand.
10258 (get_inner_reference_aff): New function.
10259 * tree-parloops.c (loop_parallel_p): Free vectorizer info.
10260 * tree-ssa-loop-im.c: Include tree-affine.h and pointer-set.h.
10261 (struct lim_aux_data): sm_done field removed.
10262 (mem_ref_loc_p, mem_ref_locs_p): New types.
10263 (struct mem_ref): Added id, stored, accesses_in_loop,
10264 indep_loop, dep_loop, indep_ref, dep_ref fields.
10265 Removed is_stored, locs and next fields.
10266 (memory_accesses): New variable.
10267 (movement_possibility): Do not allow moving statements
10268 that store to memory.
10269 (outermost_indep_loop, simple_mem_ref_in_stmt, mem_ref_in_stmt):
10271 (determine_max_movement): For statements with memory references,
10272 find the outermost loop in that the reference is independent.
10273 (move_computations_stmt): Mark the virtual operands for renaming.
10274 (memref_free, mem_ref_alloc, mem_ref_locs_alloc, mark_ref_stored,
10275 gather_mem_refs_stmt, gather_mem_refs_in_loops, vtoe_hash, vtoe_eq,
10276 vtoe_free, record_vop_access, get_vop_accesses, get_vop_stores,
10277 add_vop_ref_mapping, create_vop_ref_mapping_loop,
10278 create_vop_ref_mapping, analyze_memory_references,
10279 cannot_overlap_p, mem_refs_may_alias_p, rewrite_mem_ref_loc,
10280 get_all_locs_in_loop, ref_always_accessed_p,
10281 refs_independent_p, record_indep_loop, ref_indep_loop_p_1,
10282 ref_indep_loop_p, can_sm_ref_p, find_refs_for_sm,
10283 store_motion_loop, store_motion): New functions.
10284 (struct vop_to_refs_elt): New type.
10285 (record_mem_ref_loc, free_mem_ref_locs, rewrite_mem_refs,
10286 memref_hash, memref_eq, hoist_memory_references): Rewritten.
10287 (schedule_sm): Replaced by...
10288 (execute_sm): ... this.
10289 (determine_lsm_ref, hoist_memory_references,
10290 loop_suitable_for_sm, gather_mem_refs_stmt, gather_mem_refs,
10291 find_more_ref_vops, free_mem_ref, free_mem_refs,
10292 determine_lsm_loop, determine_lsm): Removed.
10293 (tree_ssa_lim_finalize): Free data structures used by store motion.
10294 (tree_ssa_lim): Call analyze_memory_references. Use
10295 store_motion instead of determine_lsm.
10297 2008-03-27 Paolo Bonzini <bonzini@gnu.org>
10299 * config.cc (m68hc11, m6811, m68hc12, m6812): Add usegas.h,
10300 rename tmake_file to m68hc11/t-m68hc11.
10301 (mcore): Set inhibit_libc to true.
10302 * config.host (alpha*-dec-*vms*): Set extra_programs.
10303 (interix3*): Don't use host_xmake_file.
10304 * configure.ac: Let config.gcc override inhibit_libc.
10305 * configure: Regenerate.
10307 * config/alpha/x-vms (EXTRA_PROGRAMS): Remove.
10308 * config/t-openbsd-thread: Remove commented out lines.
10310 * config/x-interix: Remove.
10312 * config/m68hc11/t-m68hc11-gas: Rename to...
10313 * config/m68hc11/t-m68hc11: ... this. Remove T_CPPFLAGS.
10315 * config/mcore/t-mcore: Remove T_CFLAGS.
10316 * config/mcore/t-mcore-pe: Likewise.
10318 2008-03-27 Paolo Bonzini <bonzini@gnu.org>
10320 * configure.ac: Replace custom __GNU_SOURCE test with
10321 AC_USE_SYSTEM_EXTENSIONS. Move it earlier.
10322 * aclocal.m4: Regenerate.
10323 * configure: Regenerate.
10324 * config.in: Regenerate.
10326 2008-03-27 Richard Guenther <rguenther@suse.de>
10328 * fold-const.c (target.h): Include.
10329 (fold_comparison): Fold comparison of addresses of decls
10330 that bind locally or of constants. Consolidate address folding code.
10331 * tree-vrp.c (operand_less_p): Deal with non-INTEGER_CST
10332 results from fold_binary_to_constant.
10333 (compare_values_warnv): Likewise.
10335 2008-03-27 Andrew Pinski <pinskia@gmail.com>
10337 PR middle-end/35429
10338 * fold-const.c (fold_truthop): Check for integeral types when folding
10339 a == 0 && b == 0 and a != 0 || b != 0 .
10341 2008-03-26 Eric Botcazou <ebotcazou@adacore.com>
10343 * tree.c (get_unwidened): Remove code fiddling with COMPONENT_REF.
10345 2008-03-26 Andreas Schwab <schwab@suse.de>
10347 * doc/invoke.texi: Fix use of @item vs. @itemx.
10349 2008-03-26 Tom Tromey <tromey@redhat.com>
10351 * Makefile.in (build/gensupport.o, build/print-rtl.o,
10352 build/read-rtl.o, build/rtl.o, build/gencondmd.o, build/genattr.o,
10353 build/genattrtab.o, build/genautomata.o, build/gencheck.o,
10354 build/gencodes.o, build/genconditions.o, build/genconfig.o,
10355 build/genconstants.o, build/genemit.o, build/genextract.o,
10356 build/genflags.o, build/genmddeps.o, build/genopinit.o,
10357 build/genoutput.o, build/genpeep.o, build/genrecog.o): Depend on
10360 2008-03-26 Richard Guenther <rguenther@suse.de>
10363 2008-03-26 Richard Guenther <rguenther@suse.de>
10365 * fold-const.c (target.h): Include.
10366 (fold_comparison): Fold comparison of addresses of two decls
10367 that bind locally. Consolidate address folding code.
10369 2008-03-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10371 * builtins.c (expand_builtin_pow, fold_builtin_cabs,
10372 fold_builtin_sqrt, fold_builtin_cbrt, fold_builtin_logarithm,
10373 fold_builtin_hypot, fold_builtin_pow): Remove uses of dconst3,
10374 dconstsqrt2, dconstthird, dconste and/or dconst10.
10375 * config/i386/i386.c (ix86_emit_swsqrtsf): Likewise.
10376 * emit-rtl.c (dconst3, dconst10, dconstm2, dconstthird,
10377 dconstsqrt2, dconste): Delete.
10378 (init_emit_once): Likewise. Simplify initializing dconstm1.
10380 * real.c (get_real_const): New.
10381 * real.h (dconst3, dconst10, dconstm2, dconstthird,
10382 dconstsqrt2, dconste): Delete.
10383 (real_value_const, get_real_const): New.
10385 2008-03-26 H.J. Lu <hongjiu.lu@intel.com>
10387 * config/i386/cygming.h (BIGGEST_ALIGNMENT): Removed.
10389 * config/i386/i386.c (ix86_function_arg_boundary): Check
10390 BIGGEST_ALIGNMENT instead of 128.
10391 (setup_incoming_varargs_64): Likewise.
10393 2008-03-26 Tom Tromey <tromey@redhat.com>
10395 * Makefile.in (DEPFILES): Add missing '/'.
10397 2008-03-26 Richard Guenther <rguenther@suse.de>
10399 * fold-const.c (target.h): Include.
10400 (fold_comparison): Fold comparison of addresses of two decls
10401 that bind locally. Consolidate address folding code.
10403 2008-03-26 Nick Clifton <nickc@redhat.com>
10406 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p): Do
10407 not allow INT+INT as a legitimate addressing mode.
10409 2008-03-26 Richard Guenther <rguenther@suse.de>
10411 * tree-flow.h (widen_bitfield): Remove declaration.
10412 * tree-ssa-ccp.c (visit_assignment): Remove unneeded code.
10413 (widen_bitfield): Remove function.
10414 * tree-ssa-dom.c (record_equivalences_from_stmt): Remove unneeded
10417 2008-03-25 Andrew Pinski <andrew_pinski@playstation.sony.com>
10420 * config/rs6000/rs6000-c.c (rs6000_builtin_type_compatible): Handle
10423 2008-03-25 Richard Sandiford <rsandifo@nildram.co.uk>
10425 PR rtl-optimization/35232
10426 * reload1.c (reg_reloaded_call_part_clobbered): Clarify comment.
10427 (forget_old_reloads_1, forget_marked_reloads): Don't clear
10428 reg_reloaded_call_part_clobbered here.
10429 (reload_regs_reach_end_p): New function.
10430 (reload_reg_rtx_for_input): New variable.
10431 (reload_reg_rtx_for_output): Likewise.
10432 (emit_input_reload_insns): Use reloadreg rather than rl->reg_rtx
10433 when reassigning a pseudo register. Load reloadreg from
10434 reload_reg_rtx_for_input, moving the mode and register
10436 (do_input_reload): ...here. Use the mode-adjusted reg_rtx
10437 instead of the original when deciding whether an input reload
10438 would be a no-op or whether an output reload can be deleted.
10439 (emit_output_reload_insns): Use the mode-adjusted reg_rtx
10440 when setting up new_spill_reg_store. Load it from
10441 reload_reg_rtx_for_output, moving the mode and register
10443 (do_output_reload): ...here. Use the mode-adjusted reg_rtx
10444 instead of the original when deciding whether an output reload
10445 would be a no-op. Do the same when modifying insn notes.
10446 Use rtx_equal_p instead of == to compare the registers.
10447 (inherit_piecemeal_p): Take a mode and two register numbers
10449 (emit_reload_insns): Clear new_spill_reg_store for every hard
10450 register in the reload register. Remove spill registers
10451 from reg_reloaded_valid before considering whether to record
10452 inheritance information for them. Use reload_reg_rtx_for_output
10453 instead of reg_rtx when recording output reloads. Use
10454 reload_reg_rtx_for_input instead of reg_rtx when recording
10455 input reloads. Set or clear reg_reloaded_call_part_clobbered
10456 at the same time as setting reg_reloaded_valid.
10457 (delete_output_reload): Add a new_reload_reg parameter and use it
10458 instead of rld[j].reg_rtx.
10459 (emit_input_reload_insns, do_input_reload, do_output_reload): Adjust
10462 2008-03-25 Tom Tromey <tromey@redhat.com>
10464 * Makefile.in (build/gensupport.o): Depend on insn-modes.h.
10465 (build/genattr.o): Likewise.
10466 (build/genattrtab.o): Likewise.
10467 (build/gencodes.o): Likewise.
10468 (build/genconfig.o): Likewise.
10469 (build/genconstants.o): Likewise.
10470 (build/genemit.o): Likewise.
10471 (build/genextract.o): Likewise.
10472 (build/genflags.o): Likewise.
10474 2008-03-25 Bob Wilson <bob.wilson@acm.org>
10476 * config/xtensa/xtensa.c (xtensa_va_start): Use build_int_cst
10477 instead of size_int for integer types.
10478 (xtensa_gimplify_va_arg_expr): Likewise. Convert index to sizetype
10479 to match type of MINUS_EXPR.
10481 2008-03-25 Tom Tromey <tromey@redhat.com>
10483 * configure: Rebuilt.
10484 * configure.ac (BUILD_DEPMODE): Extract CCDEPMODE from temporary
10487 2008-03-25 Tom Tromey <tromey@redhat.com>
10489 * config/x-solaris (host-solaris.o): Update.
10490 * config/x-linux (host-linux.o): Update.
10491 * config/x-hpux (host-hpux.o): Update.
10492 * config/x-darwin (host-darwin.o): Update.
10493 * config/v850/t-v850e (v850-c.o): Update.
10494 * config/v850/t-v850 (v850-c.o): Update.
10495 * config/t-vxworks (vxworks.o): Update.
10496 * config/t-sol2 (sol2-c.o, sol2.o): Update.
10497 * config/t-darwin (darwin.o, darwin-c.o, darwin-driver.o): Update.
10498 * config/spu/t-spu-elf (spu-c.o): Update.
10500 * config/sh/t-symbian (sh-c.o): Update.
10501 (symbian.o): Update.
10502 * config/sh/t-sh (sh-c.o): Update.
10503 * config/score/t-score-elf (score7.o, score3.o): Update.
10504 * config/rs6000/x-rs6000 (driver-rs6000.o): Update.
10505 * config/rs6000/x-darwin64 (host-ppc64-darwin.o): Update.
10506 * config/rs6000/x-darwin (host-ppc-darwin.o): Update.
10507 * config/rs6000/t-rs6000 (rs6000-c.o): Update.
10508 (rs6000.o): Remove.
10509 * config/m68k/t-uclinux (generated_files): Add sysroot-suffix.h.
10510 * config/m32c/t-m32c (m32c-pragma.o): Update.
10511 * config/ia64/t-ia64 (ia64-c.o): Update.
10512 * config/i386/x-mingw32 (host-mingw32.o): Update.
10513 * config/i386/x-i386 (driver-i386.o): Update.
10514 * config/i386/x-darwin (host-i386-darwin.o): Update.
10515 * config/i386/x-cygwin (host-cygwin.o): Update.
10516 * config/i386/t-nwld (nwld.o): Update.
10517 * config/i386/t-netware (netware.o): Update.
10518 * config/i386/t-interix (winnt.o): Update.
10519 * config/i386/t-cygwin (cygwin1.o, cygwin2.o): Update.
10520 * config/i386/t-cygming (winnt.o, winnt-cxx.o, winnt-stubs.o,
10521 msformat-c.o): Update.
10522 * config/bfin/t-bfin-linux (generated_files): Add
10523 linux-sysroot-suffix.h.
10524 * config/arm/t-wince-pe (pe.o): Update.
10525 * config/arm/t-strongarm-pe (pe.o): Update.
10526 * config/arm/t-pe (pe.o): Update.
10527 * config/arm/t-arm (arm-c.o): Update.
10528 * doc/install.texi (Prerequisites): Require make 3.80.
10529 * Makefile.in: Remove .o targets.
10530 (CCDEPMODE, DEPDIR, depcomp, BUILD_DEPMODE): New variables.
10531 (OBSTACK_H, FIBHEAP_H, PARTITION_H, MD5_H, BCONFIG_H): Remove.
10532 (simple_generated_h, simple_generated_c): Move earlier.
10533 (generated_files): New variable.
10534 (TARGET_H, MACHMODE_H, HOOKS_H, HOSTHOOKS_DEF_H, LANGHOOKS_DEF_H,
10535 TARGET_DEF_H, RTL_BASE_H, RTL_H, PARAMS_H, BUILTINS_DEF, TREE_H,
10536 BASIC_BLOCK_H, GCOV_IO_H, COVERAGE_H, DEMANGLE_H, RECOG_H,
10537 ALIAS_H, EMIT_RTL_H, FLAGS_H, FUNCTION_H, EXPR_H, OPTABS_H,
10538 REGS_H, RA_H, RESOURCE_H, SCHED_INT_H, INTEGRATE_H, CFGLAYOUT_H,
10539 CFGLOOP_H, IPA_UTILS_H, IPA_REFERENCE_H, IPA_TYPE_ESCAPE_H,
10540 CGRAPH_H, DF_H, RESOURCE_H, DDG_H, GCC_H, GGC_H, TIMEVAR_H,
10541 INSN_ATTR_H, C_COMMON_H, C_PRAGMA_H, C_TREE_H, SYSTEM_H,
10542 PREDICT_H, DECNUM_H, MKDEPS_H, SYMTAB_H, TREE_DUMP_H,
10543 TREE_GIMPLE_H, TREE_FLOW_H, TREE_SSA_LIVE_H, PRETTY_PRINT_H,
10544 DIAGNOSTIC_H, C_PRETTY_PRINT_H, SCEV_H, LAMBDA_H, TREE_DATA_REF_H,
10545 VARRAY_H, TREE_INLINE_H, REAL_H, DBGCNT_H, EBIMAP_H): Remove.
10547 (COMPILE.base, COMPILE): New variables.
10548 (%.o): New pattern rule.
10549 (ALL_HOST_OBJS): New variable.
10550 (xgcc$(exeext), cpp$(exeext)): Remove extra version.o.
10551 (dummy-checksum.o, cc1-checksum.o): Remove.
10552 (DRIVER_SHLIB): New variable.
10553 (DRIVER_DEFINES): Use it.
10554 (gencondmd.c): Move out of build/.
10555 (s-conditions): Update.
10556 (BUILDCOMPILE.base, BUILDCOMPILE): New variables.
10557 (ALL_BUILD_OBJS): Likewise.
10558 (build/%.o): Use BUILDCOMPILE.
10559 (build/ggc-none.o, build/ggc-none.o, build/min-insn-modes.o,
10560 build/print-rtl.o, build/read-rtl.o, build/rtl.o, build/vec.o,
10561 build/gencondmd.o, build/genattrtab.o, build/genautomata.o,
10562 build/gencheck.o, build/gencodes.o, build/genconditions.o,
10563 build/genconfig.o, build/genconstants.o, build/genemit.o,
10564 build/genextract.o, build/genflags.o, build/genmddeps.o,
10565 build/genopinit.o, build/genoutput.o, build/genpeep.o,
10566 build/genpreds.o, build/genrecog.o, build/gcov-iov.o,
10567 build/gen-protos.o, build/scan.o, build/fix-header.o,
10568 build/scan-decls.o): Simplify.
10569 (collect2.o, c-opts.o, gcc.o, gccspec.o, gcc-options.o,
10570 cppdefault.o, protoize.o, unprotoize.o, intl.o, version.o,
10571 prefix.o, toplev.o): Reduce to variable setting.
10572 (libbackend.o): Use COMPILE. Remove most dependencies. Move later.
10573 ($(out_object_file), gcc-options.o): New targets.
10574 ($(ALL_HOST_OBJS)): New target. Include dependency files.
10575 * configure: Rebuilt.
10576 * configure.ac: Call ZW_CREATE_DEPDIR, ZW_PROG_COMPILER_DEPENDENCIES.
10577 * doc/sourcebuild.texi (Front End Directory): Document new variable.
10579 2008-03-25 Douglas Gregor <doug.gregor@gmail.com>
10581 * c-common.c (c_sizeof_or_alignof_type): If we're not allowed to
10582 complain when we hit an error, return ERROR_MARK_NODE.
10584 2008-03-25 Naveen.H.S <naveen.hs@kpitcummins.com>
10586 * config/sh/constraints.md (Pso, Psz): New constraints.
10587 * config/sh/sh.c (print_operand): Add %V and %W operand codes.
10588 * config/sh/sh.md (*andsi3_bclr, *iorsi3_bset): New insns.
10590 2008-03-25 Naveen.H.S <naveen.hs@kpitcummins.com>
10592 * config/sh/sh.c (sh_expand_t_scc): Emit movrt for SH2A if possible.
10593 * config/sh/sh.md (xorsi3_movrt, movrt): New insns.
10595 2008-03-25 Naveen.H.S <naveen.hs@kpitcummins.com>
10597 * config/sh/sh.md (prefetch): Add condition for SH2A target.
10598 (prefetch_sh2a): New.
10600 2008-03-25 Jayant Sonar <Jayant.sonar@kpitcummins.com>
10601 Naveen.H.S <naveen.hs@kpitcummins.com>
10603 * config/sh/constraints.md (I28): New constraint.
10604 * config/sh/sh.c (broken_move): Add support for movi20s.
10605 * config/sh/sh.md (movsi_ie): Add the alternative for movi20s.
10607 2008-03-25 Anil Paranjape <anil.paranjape@kpitcummins.com>
10608 Jayant Sonar <Jayant.sonar@kpitcummins.com>
10609 Naveen.H.S <naveen.hs@kpitcummins.com>
10611 * config/sh/sh.c (SH_ATTRIBUTES): Define.
10612 (SYMBOL_FLAG_FUNCVEC_FUNCTION): Define.
10613 (print_operand): Handle resbank in %@ operand code.
10614 (sh_encode_section_info): New.
10615 (push_regs): Add conditions for resbank.
10616 (sh_expand_epilogue): Likewise.
10617 (sh_insert_attributes): Likewise.
10618 (sh_attribute_table): Likewise.
10619 (sh_handle_resbank_handler_attribute): New.
10620 (sh2a_handle_function_vector_handler_attribute): New.
10621 (sh2a_is_function_vector_call): New.
10622 (sh2a_get_function_vector_number): New.
10623 (sh2a_function_vector_p): New.
10624 (sh_cfun_resbank_handler_p): New.
10625 * config/sh/sh.md (calli): Emit jsr/n if possible.
10626 (calli_tbr_rel): New.
10627 (calli_pcrel): Emit jsr/n if possible.
10628 (return_i): Emit rts/n if possible.
10629 (call_valuei_tbr_rel): New.
10630 (call_valuei_pcrel): Add condition for SH2A target.
10631 (call_value): Likewise.
10632 * config/sh/sh-protos.h (sh_cfun_resbank_handler_p): Declare.
10633 (sh2a_get_function_vector_number): Likewise.
10634 (sh2a_is_function_vector_call): Likewise.
10635 * doc/extend.texi: Document TBR relative addressing of SH2A.
10636 (resbank): Add description for SH2A.
10638 2008-03-24 Richard Guenther <rguenther@suse.de>
10641 * gimplify.c (gimplify_modify_expr): For frontend type-correct
10642 pointer assignments change conversions according to middle-end rules.
10643 (gimplify_modify_expr_rhs): Deal with NULL TARGET_EXPR_INITIAL.
10644 * configure.ac: Include type checking in yes.
10645 * configure: Regenerate.
10647 2008-03-24 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
10649 * diagnostic.c (diagnostic_count_diagnostic): Delete.
10650 (diagnostic_report_diagnostic): Update. Handle ICEs here.
10652 2008-03-24 Nathan Sidwell <nathan@codesourcery.com>
10654 * gthr-vxworks.h (UNUSED): Define.
10656 2008-03-23 H.J. Lu <hongjiu.lu@intel.com>
10658 * config/i386/i386.h (STATIC_CHAIN_REGNUM): Use R10_REG and CX_REG.
10660 2008-03-23 Zuxy Meng <zuxy.meng@gmail.com>
10662 * doc/extend.texi (Function Attributes): Add missing comma in the
10663 example of the "alloc_size" attribute.
10665 2008-03-23 Uros Bizjak <ubizjak@gmail.com>
10668 2008-03-05 H.J. Lu <hongjiu.lu@intel.com>
10670 * config/i386/i386-modes.def: Use 4 byte alignment on DI for
10673 2008-03-19 Uros Bizjak <ubizjak@gmail.com>
10676 * stor-layout.c (update_alignment_for_field): Set minimum alignment
10677 of the underlying type of a MS bitfield layout to the natural
10678 alignment of the type.
10680 2008-03-22 Uros Bizjak <ubizjak@gmail.com>
10682 * config/i386/i386.c (assign_386_stack_local): Align DImode slots
10683 to their natural alignment to avoid store forwarding stalls.
10685 2008-03-22 Richard Guenther <rguenther@suse.de>
10687 * tree-cfg.c (verify_expr): Recurse again for invariant addresses.
10688 For PHI nodes verify the address is invariant.
10689 * tree-ssa-ccp.c (ccp_decl_initial_min_invariant): Remove.
10690 (get_symbol_constant_value): Use is_gimple_min_invariant.
10691 (maybe_fold_stmt_indirect): Likewise.
10693 2008-03-22 Richard Sandiford <rsandifo@nildram.co.uk>
10695 PR rtl-optimization/33927
10696 * Makefile.in (dse.o): Depend on $(TM_P_H).
10697 * expr.h (extract_low_bits): Declare.
10698 * expmed.c (extract_low_bits): New function.
10699 * rtlhooks.c (gen_lowpart_general): Generalize SUBREG handling.
10700 * dse.c: Include tm_p.h.
10701 (find_shift_sequence): Remove the read_reg argument and return the
10702 read value. Emit the instructions instead of returning them.
10703 Iterate on new_mode rather than calculating it each time.
10704 Check MODES_TIEABLE_P. Use simplify_gen_subreg to convert the
10705 source to NEW_MODE and extract_low_bits to convert the shifted
10706 value to READ_MODE.
10707 (replace_read): Allow the load and store to have different mode
10708 classes. Use extract_low_bits when SHIFT == 0. Create the shift
10709 or extraction instructions before trying the replacement. Update
10710 dump-file code accordingly, avoiding use of REGNO (store_info->rhs).
10712 2008-03-22 Uros Bizjak <ubizjak@gmail.com>
10714 * config/i386/i386.c (assign_386_stack_local): Align DImode slots
10715 to their natural alignment to avoid store forwarding stalls.
10717 2008-03-21 Andrew Pinski <andrew_pinski@playstation.sony.com>
10720 * config/rs6000/rs6000.md (floatdidf2): Discouraging fprs and
10721 encouraging but not allowing gprs for input;
10722 change the input constraint to !f#r.
10723 (fix_truncdfdi2): Discouraging fprs and encouraging but not allowing
10725 change the output constraint to !f#r.
10727 2008-03-21 Uros Bizjak <ubizjak@gmail.com>
10730 * config/i386/i386.md ("*floatunssi<mode2>_1"): New pattern with
10731 corresponding post-reload splitters.
10732 ("floatunssi<mode>2"): Expand to unsigned_float x87 insn pattern
10733 when x87 FP math is selected.
10734 * config/i386/i386-protos.h (ix86_expand_convert_uns_sixf_sse):
10735 New function prototype.
10736 * config/i386/i386.c (ix86_expand_convert_uns_sixf_sse): New
10737 unreachable function to ease macroization of insn patterns.
10739 2008-03-21 Martin Jambor <mjambor@suse.cz>
10741 * tree-data-ref.c (dump_data_dependence_relation): Avoid data
10742 reference dumps if ddr is NULL or dependence is unknown.
10744 2008-03-20 Kaz Kojima <kkojima@gcc.gnu.org>
10746 * config/sh/linux-atomic.asm (ATOMIC_TEST_AND_SET): Take
10747 unsigned extension into account.
10748 (ATOMIC_COMPARE_AND_SWAP): Likewise.
10749 (ATOMIC_FETCH_AND_OP, ATOMIC_FETCH_AND_COMBOP): Likewise.
10750 Do computations on a scratch register.
10752 2008-03-21 Richard Guenther <rguenther@suse.de>
10754 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
10755 Use is_gimple_min_invariant instead of TREE_INVARIANT.
10756 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Likewise.
10757 * tree-ssa-dom.c (record_equality): Likewise.
10758 * tree-inline.c (copy_body_r): Likewise.
10759 * tree-ssa-pre.c (make_values_for_stmt): Remove test for
10762 2008-03-20 Kaz Kojima <kkojima@gcc.gnu.org>
10764 * config/sh/sh.c (split_branches): Pass zero to redirect_jump
10765 as 'delete_unused' argument.
10767 2008-03-20 Richard Guenther <rguenther@suse.de>
10769 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Remove
10770 special casing of constant qualifiers.
10771 * tree-ssa.c (useless_type_conversion_p_1): Instead do not
10772 care about them in general.
10773 * tree-ssa-ccp.c (ccp_fold): Addresses are constant or not
10774 regardless of their type.
10775 (fold_stmt_r): Forcefully fold *& if we end up with that.
10777 2008-03-20 Paul Brook <paul@codesourcery.com>
10779 * config.gcc (arm*-*-uclinux*): Remove duplicate arm/uclinux-elf.h.
10780 * config/arm/uclinux-eabi.h (SUBTARGET_EXTRA_LINK_SPEC): Add extra
10782 * config/arm/bpabi.h (SUBTARGET_EXTRA_LINK_SPEC): Provide default
10784 (LINK_SPEC): Use SUBTARGET_EXTRA_LINK_SPEC.
10785 * config/arm/unwind-arm.h (_Unwind_decode_target2): Add uClinux.
10787 2008-03-20 Volker Reichelt <v.reichelt@netcologne.de>
10789 * common.opt (Wmudflap): New option.
10790 * tree-mudflap.c (mf_xform_derefs_1): Guard warning by OPT_Wmudflap.
10791 (mx_register_decls): Likewise.
10792 (mudflap_finish_file): Likewise.
10793 * doc/invoke.texi: Document -Wno-mudflap.
10795 2008-03-20 Kai Tietz <kai.tietz@onevision.com>
10797 * c-format.c (replace_format_name_to_system_name): New.
10798 (cmp_attribs): New.
10799 (convert_format_name_to_system_name): New.
10800 (decode_format_attr): Add use of convert_format_name_to_system_name.
10801 (format_types_orig): Add gnu_ prefix to names.
10802 (check_format_info_main): Special treating of \0 escaped names for
10803 supporting multi-character format specifiers as I32, I64.
10804 (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): Use of user defined attributes.
10805 (gnu_target_overrides_format_attributes): New.
10806 * c-format.h: Add structure target_ovr_attr to hold
10807 system specific formatter names.
10808 * config.gcc: Add for x86&x86_64 cygwin and mingw32 targets the
10809 msformat-c.o file to c_target_objs and cxx_target_objs.
10810 * config/i386/mingw32.h (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): New.
10811 (TARGET_OVERRIDES_FORMAT_ATTRIBUTES_COUNT): New.
10812 (TARGET_N_FORMAT_TYPES): New.
10813 * config/i386/msformat-c.c: New.
10814 * config/i386/t-cygming: Add build rule for msformat-c.o.
10815 * doc/extend.texi: Add new format names gnu_* and ms_* and
10817 * doc/tm.texi: (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): New.
10819 2008-03-20 Ira Rosen <irar@il.ibm.com>
10821 * doc/invoke.texi (-O3): Add -ftree-vectorize to the list of
10822 optimizations turned on under -O3.
10823 (ftree-vectorize): Add that the flag is turned on with -O3.
10825 2008-03-20 Ben Elliston <bje@au.ibm.com>
10827 * regmove.c (try_auto_increment): Fix spelling error in comment.
10828 * final.c (final_scan_insn): Likewise.
10830 2008-03-20 Uros Bizjak <ubizjak@gmail.com>
10833 * config/i386/mmx.md (*mov<mode>_internal_rex64"): Adjust register
10834 allocator preferences for "y" and "r" class registers.
10835 ("*mov<mode>_internal"): Ditto.
10836 ("*movv2sf_internal_rex64"): Ditto.
10837 ("*movv2sf_internal"): Ditto.
10839 2008-03-19 Michael Matz <matz@suse.de>
10841 PR middle-end/35616
10842 * calls.c (expand_call): Check overlap of arguments with call
10843 address for sibcalls.
10845 2008-03-19 Uros Bizjak <ubizjak@gmail.com>
10848 * stor-layout.c (update_alignment_for_field): Set minimum alignment
10849 of the underlying type of a MS bitfield layout to the natural
10850 alignment of the type.
10852 2008-03-19 Jan Hubicka <jh@suse.cz>
10855 * toplev.c (decode_d_option): Handle all CPP flags.
10856 * tree-vrp.c: Update tree_pass descriptors.
10857 * regrename.c: Update tree_pass descriptors.
10858 * fwprop.c: Update tree_pass descriptors.
10859 * doc/invoke.texi: Remove documentation of dropped -d? flags.
10860 * tree-into-ssa.c: Update tree_pass descriptors.
10861 * tree-dump.c: Update tree_pass descriptors.
10862 * tree-complex.c: Update tree_pass descriptors.
10863 * tree-dump.h: Update tree_pass descriptors.
10864 * see.c: Update tree_pass descriptors.
10865 * cgraphbuild.c: Update tree_pass descriptors.
10866 * tracer.c: Update tree_pass descriptors.
10867 * tree-loop-distribution.c: Update tree_pass descriptors.
10868 * cgraph.c: Update tree_pass descriptors.
10869 * postreload-gcse.c: Update tree_pass descriptors.
10870 * postreload.c: Update tree_pass descriptors.
10871 * tree-ssa-loop-ch.c: Update tree_pass descriptors.
10872 * tree-tailcall.c: Update tree_pass descriptors.
10873 * tree-pass.h (tree_opt_pass): Rename to ...
10874 (opt_pass) ... this one; add "type" field and remove letter field.
10875 (gimple_opt_pass, rtl_opt_pass, simple_ipa_opt_pass): New.
10876 (execute_pass_list, execute_ipa_pass_list, all_passes, all_ipa_passes,
10877 all_lowering_passes): Update declaration.
10878 * ipa-cp.c: Update tree_pass descriptors.
10879 * final.c: Update tree_pass descriptors.
10880 * omp-low.c: Update tree_pass descriptors.
10881 * tree-ssa-dse.c: Update tree_pass descriptors.
10882 * ipa-reference.c: Update tree_pass descriptors.
10883 * tree-ssa-uncprop.c: Update tree_pass descriptors.
10884 * auto-inc-dec.c: Update tree_pass descriptors.
10885 * reorg.c: Update tree_pass descriptors.
10886 * cgraphunit.c: Update tree_pass descriptors.
10887 * tree-ssa-copyrename.c: Update tree_pass descriptors.
10888 * tree-ssa-ccp.c: Update tree_pass descriptors.
10889 * df-core.c: Update tree_pass descriptors.
10890 * mode-switching.c: Update tree_pass descriptors.
10891 * tree-nomudflap.c: Update tree_pass descriptors.
10892 * modulo-sched.c: Update tree_pass descriptors.
10893 * ipa-pure-const.c: Update tree_pass descriptors.
10894 * cse.c: Update tree_pass descriptors.
10895 * web.c: Update tree_pass descriptors.
10896 * tree-stdarg.c: Update tree_pass descriptors.
10897 * tree-ssa-math-opts.c: Update tree_pass descriptors.
10898 * tree-ssa-dom.c: Update tree_pass descriptors.
10899 * tree-nrv.c: Update tree_pass descriptors.
10900 * tree-ssa-alias.c: Update tree_pass descriptors.
10901 * loop-init.c: Update tree_pass descriptors.
10902 * gimple-low.c: Update tree_pass descriptors.
10903 * ipa-inline.c: Update tree_pass descriptors.
10904 * tree-ssa-sink.c: Update tree_pass descriptors.
10905 * global.c: Update tree_pass descriptors.
10906 * ifcvt.c: Update tree_pass descriptors.
10907 * jump.c: Update tree_pass descriptors.
10908 * predict.c: Update tree_pass descriptors.
10909 * tree-ssa-loop.c: Update tree_pass descriptors.
10910 * recog.c: Update tree_pass descriptors.
10911 * dse.c: Update tree_pass descriptors.
10912 * tree-ssa-ifcombine.c: Update tree_pass descriptors.
10913 * tree-eh.c: Update tree_pass descriptors.
10914 * regmove.c: Update tree_pass descriptors.
10916 * function.c: Update tree_pass descriptors.
10917 * tree-vectorizer.c: Update tree_pass descriptors.
10918 * gcse.c: Update tree_pass descriptors.
10919 * ipa-type-escape.c: Update tree_pass descriptors.
10920 * tree-if-conv.c: Update tree_pass descriptors.
10921 * init-regs.c: Update tree_pass descriptors.
10922 * ipa.c: Update tree_pass descriptors.
10923 * tree-ssa-phiopt.c: Update tree_pass descriptors.
10924 * rtl-factoring.c: Update tree_pass descriptors.
10925 * lower-subreg.c: Update tree_pass descriptors.
10926 * bt-load.c: Update tree_pass descriptors.
10927 * tree-dfa.c: Update tree_pass descriptors.
10928 * except.c: Update tree_pass descriptors.
10929 * emit-rtl.c: Update tree_pass descriptors.
10930 * cfgexpand.c: Update tree_pass descriptors.
10931 * tree-cfgcleanup.c: Update tree_pass descriptors.
10932 * cfgcleanup.c: Update tree_pass descriptors.
10933 * tree-ssa-pre.c: Update tree_pass descriptors.
10934 * tree-sra.c: Update tree_pass descriptors.
10935 * tree-mudflap.c: Update tree_pass descriptors.
10936 * tree-ssa-copy.c: Update tree_pass descriptors.
10937 * cfglayout.c: Update tree_pass descriptors.
10938 * tree-ssa-forwprop.c: Update tree_pass descriptors.
10939 * tree-ssa-dce.c: Update tree_pass descriptors.
10940 * tree-ssa.c: Update tree_pass descriptors.
10941 * regclass.c: Update tree_pass descriptors.
10942 * integrate.c: Update tree_pass descriptors.
10943 * tree-optimize.c: Update tree_pass descriptors.
10944 * tree-ssa-phiprop.c: Update tree_pass descriptors.
10945 * tree-object-size.c: Update tree_pass descriptors.
10946 * combine.c: Update tree_pass descriptors.
10947 * tree-outof-ssa.c: Update tree_pass descriptors.
10948 * bb-reorder.c: Update tree_pass descriptors.
10949 * stack-ptr-mod.c: Update tree_pass descriptors.
10950 * var-tracking.c: Update tree_pass descriptors.
10951 * tree-profile.c: Update tree_pass descriptors.
10952 * tree-vect-generic.c: Update tree_pass descriptors.
10953 * reg-stack.c: Update tree_pass descriptors.
10954 * sched-rgn.c: Update tree_pass descriptors.
10955 * tree-ssa-structalias.c: Update tree_pass descriptors.
10956 * tree-cfg.c: Update tree_pass descriptors.
10957 * passes.c (current_pass): Update declaration.
10958 (finish_optimization_passes): Update.
10959 (all_passes, all_ipa_passes, all_lowering_passes): Update declaration.
10960 (register_one_dump_file, register_dump_files_1, next_pass_1):
10962 (init_optimization_passes): Update handling of new types.
10963 (execute_one_pass, execute_pass_list, execute_ipa_pass_list): Update.
10964 * ipa-struct-reorg.c: Update tree_pass descriptors.
10965 * tree-ssa-reassoc.c: Update tree_pass descriptors.
10966 * combine-stack-adj.c: Update tree_pass descriptors.
10967 * cfgrtl.c: Update tree_pass descriptors.
10968 * dce.c: Update tree_pass descriptors.
10969 * tree-ssanames.c: Update tree_pass descriptors.
10971 2008-03-19 Richard Guenther <rguenther@suse.de>
10973 PR middle-end/35609
10974 * tree-ssa.c (walk_data): New structure.
10975 (warn_uninitialized_var): If not always_executed warn with "maybe"
10977 (execute_early_warn_uninitialized): Compute post-dominators.
10978 Initialize always_executed before processing each basic block.
10980 2008-03-18 Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz>
10983 * config/i386/i386.c (x86_this_parameter): Calculate correct location
10984 of "this" pointer when "regparm = N" or "fastcall" is in effect.
10986 2008-03-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10988 * doc/include/texinfo.tex: Update to version 2008-03-17.10.
10990 2008-03-18 Paolo Bonzini <bonzini@gnu.org>
10992 * expr.c (store_expr): Assume lang_hooks.reduce_bit_field_operations
10994 (expand_expr_real_1) <REDUCE_BIT_FIELD>: Don't look at ignore.
10995 (expand_expr_real_1): Assume lang_hooks.reduce_bit_field_operations
10996 is true. Add "&& !ignore" condition to reduce_bit_field. Modify
10997 target after ignore has been set, and move there also the commputation
10998 of subtarget and original_target.
10999 * langhooks-def.h (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): Delete.
11000 (LANG_HOOKS_INITIALIZER): Remove it.
11001 * langhooks.h (struct lang_hooks): Remove reduce_bit_field_operations.
11003 2008-03-18 Richard Guenther <rguenther@suse.de>
11005 * tree-ssa-sccvn.c (visit_reference_op_load): If the lookup
11006 found an expression with constants, note that in the VN for the lhs.
11007 * tree-ssa-pre.c (eliminate): Visit COND_EXPR statements and
11008 fold them to constants if possible. Run cleanup_cfg if done so.
11009 (execute_pre): Return todo.
11010 (do_pre): Likewise.
11011 (execute_fre): Likewise.
11012 * tree-ssa-forwprop.c (can_propagate_from): Allow propagation
11014 (get_prop_source_stmt): Look through pointer conversions.
11016 2008-03-18 Jan Hubicka <jh@suse.cz>
11018 * tree-pretty-print.c: Include predict.h.
11019 (dump_generic_node): Dump predictor.
11020 * tree.h (PREDICT_EXPR_OUTCOME, PREDICT_EXPR_PREDICTION): Update.
11021 * tree-gimple.c (is_gimple_stmt): Add PREDICT_EXPR.
11022 * gimple-low.c (lower_stmt): Likewise.
11023 * expr.c (expand_expr_real): Likewise.
11024 * predict.c (tree_bb_level_predictions): Use PREDICT_EXPRs and remove
11026 (build_predict_expr, build_predict_expr): New.
11027 * predict.h (predictor_name, build_predict_expr): Update.
11028 * c-typeck.c (c_finish_bc_stmt): Add prediction.
11029 * gimplify.c (gimplify_expr): Add PREDICT_EXPR.
11030 * predict.def (PRED_CONTINUE): Update hitrate.
11031 * tree.def (PREDICT_EXPR): Define.
11032 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Mark PREDICT_EXPR;
11033 do not handle BIND_EXPR.
11034 * tree-inline.c (estimate_num_insns_1): PREDICT_EXPR is free.
11035 * tree-cfg.c (verify_gimple_stmt): PREDICT_EXPR is valid.
11036 * tree-ssa-operands.c (get_expr_operands): PREDICT_EXPR takes no
11039 2008-03-18 Michael Matz <matz@suse.de>
11041 * gcov-io.h (__gcov_merge_ior, __gcov_fork): Mark hidden.
11043 2008-03-18 Richard Guenther <rguenther@suse.de>
11045 * tree-gimple.h (is_gimple_invariant_address): Declare.
11046 (is_gimple_constant): Likewise.
11047 * tree-gimple.c (is_gimple_constant): New function.
11048 (is_gimple_invariant_address): Likewise.
11049 (is_gimple_min_invariant): Implement in terms of is_gimple_constant
11050 and is_gimple_invariant_address.
11051 * tree-ssa-loop-niter.c (expand_simple_operations): Revert
11053 * tree-data-ref.c (get_references_in_stmt): A SSA_NAME is not
11054 an addressable base.
11056 2008-03-18 Jakub Jelinek <jakub@redhat.com>
11058 PR middle-end/35611
11059 * gimplify.c (gimplify_expr): Gimplify second operand of
11062 2008-03-17 Richard Guenther <rguenther@suse.de>
11064 PR tree-optimization/19637
11065 * fold-const.c (fold_unary): Remove restrictions of removing
11066 intermediate pointer-conversions (P2)(P1)P0.
11067 * tree-ssa-ccp.c (maybe_fold_stmt_addition): Recover from
11068 conversion to void pointer.
11069 (get_maxval_strlen): Handle addresses of the form &(*p)[0].
11071 2008-03-16 James E. Wilson <wilson@tuliptree.org>
11074 * dbxout.c (dbxout_expand_expr, case VAR_DECL): Return NULL for
11075 emulated thread local variables.
11077 2008-03-16 Richard Guenther <rguenther@suse.de>
11079 PR middle-end/35607
11080 * tree-ssa-loop-niter.c (expand_simple_operations): Do not
11081 expand TREE_INVARIANT operations that are not gimple invariant.
11083 2008-03-16 Hans-Peter Nilsson <hp@axis.com>
11085 * doc/extend.texi (Alignment): Say that the ABI controls
11086 the __alignof__ for non-strict-alignment targets rather
11087 than being a recommendation.
11089 2008-03-15 Paul Brook <paul@codesourcery.com>
11091 * config/arm/arm.c (arm_unwind_emit): Suppress unused unwinding
11093 (arm_output_fn_unwind): Mark functions that can not be unwound.
11095 2008-03-15 Paul Brook <paul@codesourcery.com>
11097 * config/arm/arm.c (arm_rtx_costs_1): Add costs for ARMv6 value
11098 extension instructions.
11100 2008-03-15 Richard Guenther <rguenther@suse.de>
11102 * tree-ssa-ccp.c (ccp_fold): Also read from constant values
11103 and fold constant aggregate refs.
11104 (fold_const_aggregate_ref): Handle string constants
11105 and constructors in ARRAY_REFs. Handle INDIRECT_REF.
11106 (evaluate_stmt): Simplify now that ccp_fold folds constant
11109 2008-03-15 Paul Brook <paul@codesourcery.com>
11111 * config/arm/arm.md (insv): Use gen_insv_t2 and gen_insv_zero.
11112 (extzv): Use gen_extzv_t2.
11113 (insv_t2, insv_zero, extv, extzv_t2): New patterns.
11115 2008-03-15 Richard Guenther <rguenther@suse.de>
11117 * tree-ssa-ccp.c (get_symbol_constant_value): Export.
11118 (fold_const_aggregate_ref): Likewise.
11119 (get_value): Return NULL if we don't have any values.
11120 (ccp_finalize): Set const_val to NULL after freeing it.
11121 * tree-flow.h (get_symbol_constant_value): Declare.
11122 (fold_const_aggregate_ref): Likewise.
11123 * tree-ssa-sccvn.c (try_to_simplify): Use them.
11125 2008-03-15 Richard Guenther <rguenther@suse.de>
11127 PR middle-end/35593
11128 * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Make sure
11129 to not produce negative array indices if not allowed. Add
11130 parameter to indicate that.
11131 (maybe_fold_offset_to_component_ref): Allow negative array
11132 indices only for the first member of a structure.
11133 (maybe_fold_offset_to_reference): Allow negative array indices.
11134 (maybe_fold_stmt_addition): Likewise.
11136 2008-03-15 Bjoern Haase <bjoern.m.haase@web.de>
11137 Anatoly Sokolov <aesok@post.ru>
11139 * config/avr/avr.c (avr_arch_types): Add avr6 entry.
11140 (avr_arch): Add ARCH_AVR6.
11141 (avr_mcu_types): Add 'atmega2560' and 'atmega2561' entry.
11142 (initial_elimination_offset): Initialize and use 'avr_pc_size'
11143 instead of fixed value 2.
11144 (print_operand_address): Use gs() asm specifier instead of pm().
11145 (avr_assemble_integer): (Ditto.).
11146 (avr_output_addr_vec_elt): (Ditto.).
11147 (print_operand): Handle "!" code.
11148 * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): Add
11149 __AVR_3_BYTE_PC__, __AVR_2_BYTE_PC__ and __AVR_HAVE_JMP_CALL__.
11150 (AVR_HAVE_EIJMP_EICALL): Define.
11151 (AVR_3_BYTE_PC): Redefine.
11152 (AVR_2_BYTE_PC): (Ditto.).
11153 (PRINT_OPERAND_PUNCT_VALID_P): Add '!' code.
11154 (LINK_SPEC): Add atmega2560 and atmega2561.
11155 (CRT_BINUTILS_SPEC): Add atmega2560 (crtm2560.o) and atmega2561
11157 * config/avr/avr.md (call_insn): Use eicall instead of icall
11158 for 3 byte PC devices.
11159 (call_value_insn): (Ditto.).
11160 (*tablejump_enh): Use eijmp instead of ijmp for 3 byte PC devices.
11161 (indirect_jump): Use only for for 2 byte PC devices.
11162 (*tablejump): (Ditto.).
11163 (*indirect_jump_avr6): Add insn.
11164 (*tablejump_rjmp): Don't use for 3 byte PC devices.
11165 * config/avr/libgcc.S (__prologue_saves__): Use eijmp
11166 instead of ijmp for 3 byte PC devices.
11167 (__tablejump2__): (Ditto.).
11168 * config/avr/t-avr (MULITLIB_OPTIONS): Add avr6 architecture.
11169 (MULITLIB_DIRNAMES): (Ditto.).
11170 (MULTILIB_MATCHES): Add atmega2560 and atmega2561 to list.
11172 2008-03-15 Uros Bizjak <ubizjak@gmail.com>
11174 * config/i386/mmx.md ("sse2_umulv1siv2di3"): Rename from
11175 "sse2_umulsidi3". Use V1DI mode for operand 0.
11176 ("mmx_psadbw"): Use V1DI mode for operand 0.
11177 * config/i386/i386-modes.def (V1SI): New vector mode.
11178 * config/i386/i386.c (struct builtin_description)
11179 [IX86_BUILTIN_PMULUDQ]: Use CODE_FOR_sse2_umulv1siv1di3.
11180 (v1di_ftype_v8qi_v8qi): Rename from di_ftype_v8qi_v8qi.
11181 (v1di_ftype_v2si_v2si): Rename from di_ftype_v2si_v2si.
11182 (ix86_init_mmx_sse_builtins) [__builtin_ia32_psadbw]: Use
11183 v1di_ftype_v8qi_v8qi type.
11184 [__builtin_ia32_pmuludq]: Use v1di_ftype_v2si_v2si type.
11186 * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psadbw,
11187 __builtin_ia32_pmuludq]: Fix the mode of return value.
11189 2008-03-15 Richard Guenther <rguenther@suse.de>
11191 PR middle-end/35595
11192 * tree-ssa-pre.c (bitmap_find_leader): Handle expression
11195 2008-03-14 Bob Wilson <bob.wilson@acm.org>
11197 * doc/invoke.texi (Option Summary, Xtensa Options): Document
11198 -mserialize-volatile and -mno-serialize-volatile Xtensa options.
11199 * config/xtensa/xtensa.c (print_operand): Do not emit MEMW instructions
11200 unless TARGET_SERIALIZE_VOLATILE is enabled.
11201 * config/xtensa/xtensa.md (*lsiu, *ssiu): Likewise.
11202 * config/xtensa/xtensa.h (TARGET_DEFAULT): Add MASK_SERIALIZE_VOLATILE.
11203 * config/xtensa/xtensa.opt (mserialize_volatile): New option.
11205 2008-03-14 Richard Guenther <rguenther@suse.de>
11207 PR tree-optimization/34172
11208 * tree-flow.h (refs_may_alias_p): Declare.
11209 (get_single_def_stmt): Likewise.
11210 (get_single_def_stmt_from_phi): Likewise.
11211 (get_single_def_stmt_with_phi): Likewise.
11212 * tree-dfa.c (refs_may_alias_p): New function.
11213 (get_single_def_stmt): Likewise.
11214 (get_single_def_stmt_from_phi): Likewise.
11215 (get_single_def_stmt_with_phi): Likewise.
11216 * tree-ssa-sccvn.c (get_def_ref_stmt_vuses): New function.
11217 (vn_reference_lookup_1): New helper function.
11218 (vn_reference_lookup): Walk the virtual use-def chain to
11219 continue searching for a match if the def does not alias the
11220 reference we are looking for.
11222 2008-03-14 David Edelsohn <edelsohn@gnu.org>
11224 * doc/install.texi (Binaries): Remove UCLA archive. Add HVCC
11225 archive and Perzl. Update The Written Word listing.
11227 2008-03-14 Richard Guenther <rguenther@suse.de>
11229 PR tree-optimization/34043
11230 PR tree-optimization/33989
11231 * tree-ssa-pre.c (execute_pre): Allow SCCVN to do insertion
11233 (bitmap_find_leader): Use extra argument to verify dominance
11234 relationship inside a basic-block.
11235 (can_PRE_operation): Add VIEW_CONVERT_EXPR.
11236 (find_leader_in_sets): Adjust.
11237 (create_component_ref_by_pieces): Take extra argument for
11238 dominance check, handle lookup failures.
11239 (find_or_generate_expression): Likewise.
11240 (create_expression_by_pieces): Likewise.
11241 (insert_into_preds_of_block): Adjust.
11242 (create_value_expr_from): If asked for, verify all operands
11243 are in the blocks AVAIL_OUT set.
11244 (make_values_for_stmt): Check for SSA_NAMEs that are life
11245 over an abnormal edge.
11246 (compute_avail): Remove such check.
11247 (do_SCCVN_insertion): New function.
11248 (eliminate): If we do not find a leader suitable for replacement
11249 insert a replacement expression from SCCVN if available.
11250 * tree-ssa-sccvn.h (run_scc_vn): Update prototype.
11251 (struct vn_ssa_aux): Add needs_insertion flag.
11252 * tree-ssa-sccvn.c (may_insert): New global flag.
11253 (copy_reference_ops_from_ref): Value-number union member access
11254 based on its size, not type and member if insertion is allowed.
11255 (visit_reference_op_load): For a weak match from union type
11256 punning lookup a view-converted value and insert a SSA_NAME
11257 for that value if that is not found.
11258 (visit_use): Make dumps shorter. Do not disallow value numbering
11259 SSA_NAMEs that are life over an abnormal edge to constants.
11260 (free_scc_vn): Release inserted SSA_NAMEs.
11261 (run_scc_vn): New flag to specify whether insertion is allowed.
11262 Process SSA_NAMEs in forward order.
11263 * tree-ssa-loop-im.c (for_each_index): Handle invariant
11264 ADDR_EXPRs inside VIEW_CONVERT_EXPR.
11265 * fold-const.c (fold_unary): Fold VIEW_CONVERT_EXPRs from/to
11266 pointer type to/from integral types that do not change the
11267 precision to regular conversions.
11269 2008-03-13 Uros Bizjak <ubizjak@gmail.com>
11271 * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psll?,
11272 __builtin_ia32_psrl?, __builtin_ia32_psra?, __builtin_ia32_psll?i,
11273 __builtin_ia32_psrl?i, __builtin_ia32_psra?i, __builtin_ia32_psll?128,
11274 __builtin_ia32_psrl?128, __builtin_ia32_psra?128]: Fix the mode of
11275 input arguments and the mode of return value. Built-in functions
11276 that operate on whole 64-bit MMX register now use V1DI mode.
11278 2008-03-13 Alon Dayan <alond@il.ibm.com>
11279 Olga Golovanevsky <olga@il.ibm.com>
11281 PR tree-optimization/35041
11282 * ipa-struct-reorg.c (find_pos_in_stmt_1): Add another option
11283 to locate the right position in a statement.
11285 2008-03-13 Uros Bizjak <ubizjak@gmail.com>
11289 * config/i386/xmmintrin.h: Change all static inline functions to
11290 extern inline and add __gnu_inline__ attribute.
11291 * config/i386/bmintrin.h: Ditto.
11292 * config/i386/smmintrin.h: Ditto.
11293 * config/i386/tmmintrin.h: Ditto.
11294 * config/i386/mmintrin-common.h: Ditto.
11295 * config/i386/ammintrin.h: Ditto.
11296 * config/i386/emmintrin.h: Ditto.
11297 * config/i386/pmmintrin.h: Ditto.
11298 * config/i386/mmintrin.h: Ditto.
11299 * config/i386/mm3dnow.h: Ditto.
11301 2008-03-13 Jakub Jelinek <jakub@redhat.com>
11303 PR middle-end/35185
11304 * omp-low.c (lower_regimplify, init_tmp_var, save_tmp_var): Removed.
11305 (lower_omp_2): New function.
11306 (lower_omp_1, lower_omp): Rewritten.
11308 2008-03-13 Danny Smith <dannysmith@users.sourceforge.net>
11311 * doc/extend.texi (Structure-Packing Pragmas): Replace "Win32"
11312 with the phrase "Microsoft Windows compilers".
11313 (Push/Pop Macro Pragmas): New subsection. Document
11314 #pragma push_macro and pragma pop_macro.
11316 2008-03-12 Paul Brook <paul@codesourcery.com>
11318 * config/arm/arm.c (output_move_double): Prefer LDRD to LDM.
11320 2008-03-12 Paul Brook <paul@codesourcery.com>
11322 * config/arm/thumb2.md: Extend peephole to cover 3-arg subs.
11323 (thumb2_alusi3_short): Exclude PLUS and MINUS.
11324 (thumb2_addsi_shortim): Rename ...
11325 (thumb2_addsi_short): ... to this. Allow register operands.
11326 (thumb2_subsi_short): New pattern.
11327 (thumb2_one_cmplsi2_short,
11328 thumb2_negsi2_short): New patterns and peepholes.
11330 2008-03-12 Paul Brook <paul@codesourcery.com>
11332 * config/arm/arm.c (arm_size_rtx_costs): Use ARM costs for Thumb-2.
11334 2008-03-12 Uros Bizjak <ubizjak@gmail.com>
11336 * config/i386/i386.md (int_cond): New code iterator.
11338 ("s<code>"): Macroize expander from seq, sne, sgt, sgtu, slt, sltu,
11339 sge, sgeu, sle and sleu expanders usign int_cond code iterator.
11340 ("s<code>"): Macroize expander from sunordered, sordered, suneq, sunge,
11341 sungt, sunle, sunlt and sltgt expanders usign fp_cond code iterator.
11342 ("b<code>"): Macroize expander from beq, bne, bgt, bgtu, blt, bltu,
11343 bge, bgeu, ble and bleu expanders usign int_cond code iterator.
11344 ("b<code>"): Macroize expander from bunordered, bordered, buneq, bunge,
11345 bungt, bunle, bunlt and bltgt expanders usign fp_cond code iterator.
11347 2008-03-12 Paul Brook <paul@codesourcery.com>
11349 * config/arm/arm.c (use_return_insn): Use offsets->saved_regs_mask
11350 instead of {arm,thumb}_compute_save_reg_mask.
11351 (output_return_instruction): Ditto.
11352 (thumb_unexpanded_epilogue): Ditto.
11353 (thumb1_expand_prologue): Ditto.
11354 (thumb1_output_function_prologue): Ditto.
11355 (arm_set_return_address): Ditto.
11356 (thumb_set_return_address): Ditto.
11357 (arm_get_frame_offsets): Set offsets->saved_regs_mask. Push extra
11358 regs to achieve stack alignment.
11359 (thumb1_compute_save_reg_mask): Fix compiler warning.
11360 (arm_output_epilogue): Use offsets->saved_regs_mask.
11361 Adjust stack pointer by poping call clobered registers.
11362 (arm_expand_prologue): Use offsets->saved_regs_mask.
11363 Adjust stack pointer by pushing extra registers.
11364 * config/arm.h (arm_stack_offsets): Add saved_regs_mask.
11366 2008-03-12 Paolo Bonzini <bonzini@gnu.org>
11369 * fold-const.c (fold_unary) <NOP_EXPR>: Distribute a narrowing
11370 conversion to the operands of a multiplication.
11372 2008-03-12 Richard Guenther <rguenther@suse.de>
11374 * Makefile.in (OBJS-common): Add tree-ssa-phiprop.o
11375 (tree-ssa-phiprop.o): Copy dependencies from tree-ssa-forwprop.o.
11376 * timevar.def (TV_TREE_PHIPROP): Add.
11377 * tree-ssa-phiprop.c: Split from tree-ssa-forwprop.c, added
11378 pass description. Use TV_TREE_PHIPROP.
11379 * tree-ssa-forwprop.c: Remove phiprop code.
11381 2008-03-12 Jakub Jelinek <jakub@redhat.com>
11383 PR middle-end/35549
11384 * omp-low.c (maybe_lookup_decl): Constify first argument.
11385 (use_pointer_for_field): Change last argument from bool to
11386 omp_context *. Disallow shared copy-in/out in nested
11387 parallel if decl is shared in outer parallel too.
11388 (build_outer_var_ref, scan_sharing_clauses,
11389 lower_rec_input_clauses, lower_copyprivate_clauses,
11390 lower_send_clauses, lower_send_shared_vars): Adjust callers.
11392 2008-03-12 Victor Kaplansky <victork@il.ibm.com>
11393 Ira Rosen <irar@il.ibm.com>
11395 * tree-vectorizer.c (free_stmt_vec_info): New function.
11396 (destroy_loop_vec_info): Move code to free_stmt_vec_info().
11397 Call free_stmt_vec_info(). Free LOOP_VINFO_STRIDED_STORES..
11398 * tree-vectorizer.h (free_stmt_vec_info): Declare.
11399 * tree-vect-transform.c (vectorizable_conversion): Free
11400 vec_oprnds0 if it was allocated.
11401 (vect_permute_store_chain): Remove unused VECs.
11402 (vectorizable_store): Free VECs that are allocated in the..
11404 (vect_transform_strided_load, vectorizable_load): Likewise.
11405 (vect_remove_stores): Simplify the code.
11406 (vect_transform_loop): Move code to vect_remove_stores().
11407 Call vect_remove_stores() and free_stmt_vec_info().
11409 2008-03-11 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11411 * pa.h (TARGET_LONG_PIC_SDIFF_CALL): Conditionalize define on
11412 TARGET_HPUX. Revise comment.
11413 (TARGET_LONG_PIC_PCREL_CALL): Revise comment.
11414 * pa.c (output_call): Update for revised TARGET_LONG_PIC_SDIFF_CALL.
11415 Use sr4 variant of `be' instruction when not generating PIC code.
11416 (attr_length_call): Adjust for above change.
11418 2008-03-11 Andrew Pinski <andrew_pinski@playstation.sony.com>
11420 * ipa-reference.c (static_execute): Remove module_statics_const and
11421 associated setting code.
11423 2008-03-11 Uros Bizjak <ubizjak@gmail.com>
11426 * config/i386/i386.md (paritysi2, paritydi2): Use register_operand
11427 predicate for operand 1.
11428 (paritysi2_cmp): Use register_operand predicate for operand 2.
11429 Use earlyclobber modifier for operand 1. Remove support for
11431 (paritydi2_cmp): Use register_operand predicate for operand 3.
11432 Use earlyclobber modifier for operand 1. Remove support for
11435 2008-03-11 Paul Brook <paul@codesourcery.com>
11436 Vladimir Prus <vladimir@codesourcery.com>
11438 * config/arm/arm.c (use_return_insn): Check TARGET_APCS_FRAME.
11439 (arm_compute_save_reg0_reg12_mask): Always
11440 check if register 11 must be saved. Always safe hard frame pointer
11441 when frame_pointer_needeed.
11442 (arm_compute_save_reg_mask): Save IP and PC
11443 only with apcs frames.
11444 (arm_output_epilogue): Adjust Thumb2 codepath to
11445 be also invoked and work for ARM non-apcs frames.
11446 (arm_expand_prologue): Don't bother saving IP
11447 for non-apcs frame, since it's not clobbered by
11448 prologue code. Implement non-apcs frame
11451 2008-03-11 Paolo Bonzini <bonzini@gnu.org>
11453 PR rtl-optimization/35281
11454 * expr.c (convert_move): Use a new pseudo for the intermediate
11455 from_mode->word_mode result.
11457 2008-03-11 Paolo Bonzini <bonzini@gnu.org>
11459 * langhooks-def.h (LANG_HOOKS_CLEAR_BINDING_STACK): Delete.
11460 * langhooks.h (struct lang_hooks): Delete clear_binding_stack member.
11461 * toplev.c (compile_file): Don't call it.
11463 2008-03-11 Uros Bizjak <ubizjak@gmail.com>
11465 PR middle-end/35526
11466 * expr.c (store_expr): Call emit_block_move if the mode
11467 of "temp" RTX is BLKmode.
11469 2008-03-11 Andrew Pinski <andrew_pinski@playstation.sony.com>
11470 Richard Guenther <rguenther@suse.de>
11472 PR tree-optimization/31358
11473 * tree-ssa-loop-manip.c (create_iv): Call force_gimple_operand for
11474 the step with a NULL_TREE.
11475 * tree-ssa-loop-ivopts.c (find_bivs): Convert the step
11476 to sizetype if type is a pointer type.
11477 (add_candidate_1): Don't convert the base and step to
11478 the generic type if the orginal type is a pointer type.
11479 (add_iv_value_candidates): Use sizetype for the step
11480 if type is a pointer type.
11481 (cand_value_at): Likewise.
11482 * tree-ssa-address.c (add_to_parts): Use POINTER_PLUS_EXPR
11484 * tree-affine.c (tree_to_aff_combination <POINTER_PLUS_EXPR>):
11485 Don't convert the tem affine to the type.
11486 (add_elt_to_tree): Use sizetype for the step if a pointer.
11487 Use POINTER_PLUS_EXPR for pointers.
11488 (aff_combination_to_tree): Use sizetype for the step if a
11491 2008-03-10 Vladimir Makarov <vmakarov@redhat.com>
11493 * config/i386/sse.md (ssse3_pmaddubswv8hi3, ssse3_pmaddubswv4hi3):
11494 Remove commutativity hint.
11496 2008-03-10 Jakub Jelinek <jakub@redhat.com>
11500 * c-parser.c (c_parser_omp_threadprivate): Don't add vars with
11501 errorneous type. Check that v is a VAR_DECL.
11503 PR middle-end/35099
11504 * tree-cfg.c (new_label_mapper): Update cfun->last_label_uid.
11506 2008-03-10 H.J. Lu <hongjiu.lu@intel.com>
11508 PR tree-optimization/35494
11509 * tree-ssa-ccp.c (get_symbol_constant_value): Check if value
11510 may be overriden at link and run time.
11512 2008-03-10 Richard Guenther <rguenther@suse.de>
11514 PR tree-optimization/34677
11515 * tree-ssa-pre.c (modify_expr_node_pool): Remove.
11516 (poolify_tree): Likewise.
11517 (modify_expr_template): Likewise.
11518 (poolify_modify_stmt): Likewise.
11519 (insert_fake_stores): Handle all component-ref style stores
11520 in addition to INDIRECT_REF. Also handle complex types.
11521 Do not poolify the inserted load.
11522 (realify_fake_stores): Do not rebuild the tree but only
11523 make it a SSA_NAME copy.
11524 (init_pre): Remove initialzation of modify_expr_template.
11525 Do not allocate modify_expr_node_pool.
11526 (fini_pre): Do not free modify_expr_node_pool.
11528 2008-03-10 Paul Brook <paul@codesourcery.com>
11530 * config/arm/arm.md (UNSPEC_STACK_ALIGN, UNSPEC_PIC_OFFSET): Renumber
11531 to avoid conflicts.
11533 2008-03-10 Paul Brook <paul@codesourcery.com>
11534 Mark Shinwell <shinwell@codesourcery.com>
11536 * config/arm/cortex-r4.md: New.
11537 * config/arm/thumb2.md (divsi3, udivsi3): Annotate with
11539 * config/arm/arm.md: Include cortex-r4.md.
11540 (insn): Add smmls, sdiv and udiv values.
11541 (generic_sched): Don't use generic scheduling for Cortex-R4.
11542 (arm_issue_rate): New function.
11543 (TARGET_SCHED_ISSUE_RATE): Define.
11545 2008-03-10 Sebastian Pop <sebastian.pop@amd.com>
11547 * doc/invoke.texi (-ftree-loop-distribution): Add an example.
11549 2008-03-10 Richard Guenther <rguenther@suse.de>
11551 * tree-ssa-pre.c (get_sccvn_value): Simplify.
11552 (compute_avail): Do not add stmt uses to AVAIL_OUT.
11554 2008-03-10 Paolo Bonzini <bonzini@gnu.org>
11556 * langhooks-def.h (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS):
11557 Set default to true.
11559 2008-03-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11561 * c.opt (Wsynth): Deprecate.
11562 * doc/invoke.texi (Option Summary, Warning Options): Document
11563 -Wno-format-contains-nul.
11565 2008-03-09 Uros Bizjak <ubizjak@gmail.com>
11568 * config/i386/i386.c (ix86_constant_alignment): Compute alignment using
11569 ALIGN_MODE_128 for VECTOR_CST and INTEGER_CST in addition to REAL_CST.
11571 2008-03-09 Ira Rosen <irar@il.ibm.com>
11573 * config/rs6000/rs6000.c (builtin_description): Rename vector
11574 left shift operations.
11575 * config/rs6000/altivec.md (UNSPEC_VSL): Remove.
11576 (altivec_vsl<VI_char>): Rename to ...
11577 (ashl<mode>3): ... new name.
11578 (mulv4sf3, mulv4si3, negv4sf2): Replace gen_altivec_vslw with
11580 (absv4sf2): Convert to use ashift:V4SI instead of UNSPEC_VSL.
11582 2008-03-08 Richard Guenther <rguenther@suse.de>
11584 * coverage.h (tree_coverage_counter_addr): Declare.
11585 * coverage.c (tree_coverage_counter_addr): New function.
11586 * tree-profile.c (tree_gen_edge_profiler): Unshare counter
11587 before using again.
11588 (tree_gen_pow2_profiler): Use tree_coverage_counter_addr.
11589 (tree_gen_one_value_profiler): Likewise.
11590 (tree_gen_ic_profiler): Likewise.
11591 (tree_gen_average_profiler): Likewise.
11592 (tree_gen_ior_profiler): Likewise.
11594 2008-03-08 Richard Guenther <rguenther@suse.de>
11596 * tree-ssa-sccvn.h (vn_binary_op_lookup): Remove.
11597 (vn_binary_op_insert): Likewise.
11598 (vn_unary_op_lookup): Likewise.
11599 (vn_unary_op_insert): Likewise.
11600 (vn_nary_op_lookup): Declare.
11601 (vn_nary_op_insert): Likewise.
11602 * tree-ssa-sccvn.c (struct vn_tables_s): Merge unary
11603 and binary hashes, use a single obstack for unary_op_pool
11604 and binary_op_pool.
11605 (struct vn_binary_op_s, struct vn_unary_op_s): Replace with
11606 a single struct vn_nary_op_s. Store tree code length and
11607 a variable number of operands.
11608 (struct vn_reference_op_struct): Remove unused op2.
11609 (vn_reference_op_eq): Do not compare op2.
11610 (vn_reference_op_compute_hash): Do not compute hash of op2.
11611 (vn_unary_op_hash, vn_binary_op_hash): Replace with vn_nary_op_hash.
11612 (vn_unary_op_compute_hash, vn_binary_op_compute_hash): Replace
11613 with vn_nary_op_compute_hash.
11614 (vn_unary_op_eq, vn_binary_op_eq): Replace with vn_nary_op_eq.
11615 (vn_unary_op_lookup, vn_binary_op_lookup): Replace with
11617 (vn_unary_op_insert, vn_binary_op_insert): Replace with
11619 (visit_unary_op): Call nary functions.
11620 (visit_binary_op): Likewise.
11621 (process_scc): Adjust for struct vn_tables_s changes.
11622 (allocate_vn_table): Likewise.
11623 (free_vn_table): Likewise.
11624 * tree-vn.c (vn_add): Call nary functions.
11625 (vn_lookup): Likewise.
11627 2008-03-08 Jakub Jelinek <jakub@redhat.com>
11630 * config/rs6000/rs6000.c (rs6000_expand_compare_and_swapqhi): Shift
11631 wdst back after sync_compare_and_swapqhi_internal.
11633 2008-03-08 Uros Bizjak <ubizjak@gmail.com>
11636 * config/i386/i386-modes.def (V1DI): New vector mode.
11637 * config/i386/i386.h (VALID_MMX_REG_MODE): Add V1DImode.
11638 * config/i386/mmx.md (MMXMODEI8): New mode iterator.
11639 (MMXMODE248): Ditto.
11640 (MMXMODE): Add V1DI mode.
11641 (mmxvecsize): Change DI mode to V1DI mode.
11642 ("mov<mode>): Use MMXMODEI8 mode iterator.
11643 ("*mov<mode>_internal_rex64"): Ditto.
11644 ("*mov<mode>_internal"): Ditto.
11645 ("mmx_add<mode>3"): Ditto. Handle V1DImode for TARGET_SSE2.
11646 ("mmx_sub<mode>3"): Ditto.
11647 ("mmx_adddi3"): Remove insn pattern.
11648 ("mmx_subdi3"): Ditto.
11649 ("mmx_ashr<mode>3"): Use SImode and "yN" constraint for operand 2.
11650 ("mmx_lshr<mode>3"): Ditto. Use MMXMODE248 mode iterator.
11651 ("mmx_ashl<mode>3"): Ditto.
11652 ("mmx_lshrdi3"): Remove insn pattern.
11653 ("mmx_ashldi3"): Ditto.
11654 * config/i386/i386.c (classify_argument): Handle V1DImode.
11655 (function_arg_advance_32): Ditto.
11656 (function_arg_32): Ditto.
11657 (struct builtin_description) [IX86_BUILTIN_PADDQ]: Use
11658 mmx_addv1di3 insn pattern.
11659 [IX86_BUILTIN_PSUBQ]: Use mmx_subv1di3 insn pattern.
11660 [IX86_BUILTIN_PSLL?, IX86_BUILTIN_PSRL?, IX86_BUILTIN_PSRA?,
11661 IX86_BUILTIN_PSLL?I, IX86_BUILTIN_PSRL?I, IX86_BUILTIN_PSRA?I,
11662 IX86_BUILTIN_PSLL?I128, IX86_BUILTIN_PSRL?I128, IX86_BUILTIN_PSRA?I128]:
11663 Remove definitions of built-in functions.
11664 (V1DI_type_node): New node.
11665 (v1di_ftype_v1di_int): Ditto.
11666 (v1di_ftype_v1di_v1di): Ditto.
11667 (v2si_ftype_v2si_si): Ditto.
11668 (v4hi_ftype_v4hi_di): Remove node.
11669 (v2si_ftype_v2si_di): Ditto.
11670 (ix86_init_mmx_sse_builtins): Handle V1DImode.
11671 (__builtin_ia32_psll?, __builtin_ia32_psrl?, __builtin_ia32_psra?):
11672 Redefine builtins using def_builtin_const with *_ftype_*_int node.
11673 (__builtin_ia32_psll?i, __builtin_ia32_psrl?i, __builtin_ia32_psra?i):
11674 Add new builtins using def_builtin_const.
11675 (ix86_expand_builtin) [IX86_BUILTIN_PSLL?, IX86_BUILTIN_PSRL?,
11676 IX86_BUILTIN_PSRA?, IX86_BUILTIN_PSLL?I, IX86_BUILTIN_PSRL?I,
11677 IX86_BUILTIN_PSRA?I]: Handle builtin definitions.
11678 * config/i386/mmintrin.h (__v1di): New typedef.
11679 (_mm_add_si64): Cast arguments to __v1di type.
11680 (_mm_sub_si64): Ditto.
11681 (_mm_sll_pi16): Cast __count to __v4hi type.
11682 (_mm_sll_pi32): Cast __count to __v2si type.
11683 (_mm_sll_si64): Cast arguments to __v1di type.
11684 (_mm_srl_pi16): Cast __count to __v4hi type.
11685 (_mm_srl_pi32): Cast __count to __v2si type.
11686 (_mm_srl_si64): Cast arguments to __v1di type.
11687 (_mm_sra_pi16): Cast __count to __v4hi type.
11688 (_mm_sra_pi32): Cast __count to __v2si type.
11689 (_mm_slli_pi16): Use __builtin_ia32_psllwi.
11690 (_mm_slli_pi32): Use __builtin_ia32_pslldi.
11691 (_mm_slli_si64): Use __builtin_ia32_psllqi. Cast __m to __v1di type.
11692 (_mm_srli_pi16): Use __builtin_ia32_psrlwi.
11693 (_mm_srli_pi32): Use __builtin_ia32_psrldi.
11694 (_mm_srli_si64): Use __builtin_ia32_psrlqi. Cast __m to __v1di type.
11695 (_mm_srai_pi16): Use __builtin_ia32_psrawi.
11696 (_mm_srai_pi32): Use __builtin_ia32_psradi.
11697 * config/i386/i386.md (UNSPEC_NOP): Remove unspec definition.
11698 * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psll?,
11699 __builtin_ia32_psrl?, __builtin_ia32_psra?, __builtin_ia32_psll?i,
11700 __builtin_ia32_psrl?i, __builtin_ia32_psra?i]: Add new builtins.
11702 2008-03-07 Joseph Myers <joseph@codesourcery.com>
11704 * doc/include/texinfo.tex: Update to version 2008-03-07.10.
11706 2008-03-07 Peter Bergner <bergner@vnet.ibm.com>
11709 * config/rs6000/rs6000.c (rs6000_legitimize_address): Don't generate
11710 reg+const addressing for Altivec modes. Don't generate reg+reg
11711 addressing for TFmode or TDmode quantities.
11713 2008-03-07 Paolo Bonzini <bonzini@gnu.org>
11715 * c-common.c (vector_types_convertible_p): Call langhook
11716 instead of comptypes.
11718 2008-03-06 Andrew Pinski <andrew_pinski@playstation.sony.com>
11721 * tree-ssa-ccp.c (get_symbol_constant_value): Handle
11722 integral and scalar float variables which have a
11725 2008-03-06 Nathan Froyd <froydnj@codesourcery.com>
11727 * dwarf2out.c (dwarf2out_frame_debug_expr): Consult the
11728 dwarf_register_span hook when emitting unwind information for
11729 register-to-memory saves.
11730 * config/rs6000/rs6000.c (spe_synthesize_frame): Delete.
11731 (rs6000_frame_related): Remove call to spe_synthesize_frame.
11733 2008-03-06 Jakub Jelinek <jakub@redhat.com>
11735 * gimplify.c (goa_lhs_expr_p): Allow different ADDR_EXPR nodes
11736 for the same VAR_DECL.
11738 2008-03-06 Tom Tromey <tromey@redhat.com>
11740 * treelang: Delete.
11741 * doc/standards.texi (Standards): Don't mention treelang.
11742 * doc/invoke.texi (Overall Options): Don't mention treelang.
11743 * doc/install.texi (Prerequisites): Don't mention bison or
11745 (Configuration): Don't mention treelang.
11746 (Building): Likewise.
11747 * doc/frontends.texi (G++ and GCC): Don't mention treelang.
11749 2008-03-06 Paolo Bonzini <bonzini@gnu.org>
11751 * simplify-rtx.c (simplify_subreg): Remove useless shifts from
11752 word-extractions out of a multi-word object.
11754 2008-03-06 Richard Guenther <rguenther@suse.de>
11756 * tree.def (BIT_FIELD_REF): Constrain result type and its precision.
11757 * tree-cfg.c (verify_expr): Verify BIT_FIELD_REF constraints on
11758 result type and precision.
11759 * expr.c (get_inner_reference): Set unsignedp based on the result
11760 type of BIT_FIELD_REF.
11761 * tree.h (BIT_FIELD_REF_UNSIGNED): Remove.
11762 * tree-sra.c (instantiate_element): Do not set BIT_FIELD_REF_UNSIGNED.
11763 (try_instantiate_multiple_fields): Likewise. Use the correct type
11765 (sra_build_assignment): Likewise.
11766 (sra_build_elt_assignment): Likewise.
11767 (sra_explode_bitfield_assignment): Likewise.
11768 * print-tree.c (print_node): Do not check BIT_FIELD_REF_UNSIGNED.
11769 * tree-vect-transform.c (vect_create_epilog_for_reduction): Do not
11770 set BIT_FIELD_REF_UNSIGNED.
11771 (vectorizable_load): Likewise.
11773 2008-03-06 Andreas Krebbel <krebbel1@de.ibm.com>
11775 * cse.c (cse_extended_basic_block): Invalidate artificial defs
11778 2008-03-06 Richard Guenther <rguenther@suse.de>
11780 * alias.c (struct alias_set_entry): Move has_zero_child field
11781 to pack with alias_set.
11783 2008-03-05 H.J. Lu <hongjiu.lu@intel.com>
11785 * config/i386/i386-modes.def: Use 4 byte alignment on DI for
11788 2008-03-05 Ian Lance Taylor <iant@google.com>
11790 * alias.h (alias_set_type): Change from HOST_WIDE_INT to int.
11792 2008-03-05 Kenneth Zadeck <zadeck@naturalbridge.com>
11794 * fwprop.c (update_df): Support width and offset parameters of
11796 * ra-conflict.c (mark_reg_store, clear_reg_in_live,
11797 global_conflicts): Change DF_REF_EXTRACT to either
11798 DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT. Change
11799 DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
11800 * df-scan.c (df_ref_record, df_defs_record,
11801 df_ref_create_structure, df_def_record_1, df_uses_record,
11802 df_get_conditional_uses, df_get_call_refs, df_insn_refs_collect,
11803 df_bb_refs_collect, df_entry_block_defs_collect,
11804 df_exit_block_uses_collect): Support new width and offset fields.
11805 (ref_extract_pool): New storage pool.
11806 (df_free_ref): New function.
11807 (df_reg_chain_unlink, df_free_collection_rec,
11808 df_sort_and_compress_refs): Call df_free_ref.
11809 (df_ref_equal_p, df_ref_compare): Compare offset and width fields
11811 (df_ref_create_structure): Allocate df_ref_extract if offset and
11812 width fields are used.
11813 (df_def_record_1): Get offset and width from ZERO_EXTRACT.
11814 (df_uses_record): Get offset and width from ZERO_EXTRACT
11816 * global.c (build_insn_chain): Change DF_REF_EXTRACT to either
11817 DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT. Change
11818 DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
11819 * df.h (df_ref_flags): Change DF_REF_EXTRACT to either
11820 DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT. Change
11821 DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
11822 (df_ref_extract): New structure.
11823 (DF_REF_WIDTH, DF_REF_OFFSET): New macros.
11824 (df_ref_create): Add width and offset parameters.
11826 2008-03-05 Richard Guenther <rguenther@suse.de>
11828 * tree-ssa-structalias.c (get_constraint_for_component_ref):
11829 Use ranges_overlap_p.
11830 (offset_overlaps_with_access): Rename
11831 to ranges_overlap_p and move ...
11832 * tree-flow-inline.h (ranges_overlap_p): ... here.
11834 * tree.h (get_inner_reference, handled_component_p): Update
11837 * tree.h (record_component_aliases, get_alias_set,
11838 alias_sets_conflict_p, alias_sets_must_conflict_p,
11839 objects_must_conflict_p): Move declarations ...
11840 * alias.h (record_component_aliases, get_alias_set,
11841 alias_sets_conflict_p, alias_sets_must_conflict_p,
11842 objects_must_conflict_p): ... here.
11843 Include coretypes.h.
11844 * Makefile.in (ALIAS_H): Add coretypes.h dependency.
11846 2008-03-05 Aldy Hernandez <aldyh@redhat.com>
11848 * cfg.c: Include tree-flow.h.
11849 (remove_edge_raw): Call redirect_edge_var_map_clear.
11850 (redirect_edge_succ_nodup): Call redirect_edge_var_map_dup.
11851 * tree-flow-inline.h (redirect_edge_var_map_def): New.
11852 (redirect_edge_var_map_result): New.
11853 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Replace
11854 PENDING_STMT use with redirect_edge_var_map_*.
11855 * tree-ssa.c (edge_var_maps): New definition.
11856 (redirect_edge_var_map_add): New.
11857 (redirect_edge_var_map_clear): New.
11858 (redirect_edge_var_map_dup): New.
11859 (redirect_edge_var_map_vector): New.
11860 (redirect_edge_var_map_destroy): New.
11861 (ssa_redirect_edge): Replace PENDING_STMT use with
11862 redirect_edge_var_map_*.
11863 (flush_pending_stmts): Same.
11864 (delete_tree_ssa): Destroy edge var map.
11865 * tree-flow.h (struct _edge_var_map): New.
11866 Define edge_var_map vector type.
11867 Declare redirect_edge_var_map_* prototypes.
11868 * Makefile.in (cfg.o): Depend on TREE_FLOW_H.
11869 * tree-cfg.c (reinstall_phi_args): Replace
11870 PENDING_STMT use with redirect_edge_var_map_*.
11872 2008-03-05 Richard Guenther <rguenther@suse.de>
11874 PR tree-optimization/35472
11875 * tree-ssa-dse.c (dse_optimize_stmt): Do not delete a store
11876 whose single use_stmt has a overlapping set of loaded and
11877 stored symbols as that use_stmt might be a noop assignment then.
11879 2008-03-05 Joel Sherrill <joel.sherrill@oarcorp.com>
11881 * gthr-rtems.h: Implement __gthread_mutex_destroy.
11883 2008-03-05 Richard Guenther <rguenther@suse.de>
11886 * tree.def (BIT_FIELD_REF): Document that operands 1 and 2
11887 should be constants.
11888 * tree-cfg.c (verify_expr): Verify it.
11889 * fold-const.c (fold_truthop): Remove code generating
11890 BIT_FIELD_REFs of structure bases.
11891 (fold_binary): Likewise.
11892 (fold_ternary): Position and size of BIT_FIELD_REFs are
11893 always host integers.
11894 (make_bit_field_ref): Remove.
11895 (optimize_bit_field_compare): Remove.
11896 (all_ones_mask_p): Remove.
11898 2008-03-05 Gabor Loki <loki@gcc.gnu.org>
11901 * rtl-factoring.c (clear_regs_live_in_seq): Fix backward steps.
11902 (split_block_and_df_analyze): New. Split basic block and rebuild
11904 (block_label_after): Use SPLIT_BLOCK_AND_DF_ANALYZE instead of
11906 (split_pattern_seq): Likewise.
11907 (erase_matching_seqs): Likewise.
11908 (split_pattern_seq): Skip return insn in case of REG_NORETURN note.
11910 2008-03-04 Geoff Keating <geoffk@apple.com>
11912 * fold-const.c (tree_single_nonnegative_warnv_p): Fix mixed
11913 declaration and code.
11914 (tree_invalid_nonnegative_warnv_p): Likewise.
11916 2008-03-05 Serge Belyshev <belyshev@depni.sinp.msu.ru>
11918 * doc/install.texi (Testing): Correct quoting for the RUNTESTFLAGS
11919 examples. Truncate option-names then causing overfull hbox.
11921 2008-03-04 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11924 * configure.ac (CONFIG_SJLJ_EXCEPTIONS): Force SJLJ exceptions
11926 * configure: Rebuilt.
11928 2008-03-04 Rafael Espindola <espindola@google.com>
11930 * fold-const.c (tree_simple_nonnegative_warnv_p): New.
11931 (tree_unary_nonnegative_warnv_p): New.
11932 (tree_binary_nonnegative_warnv_p): New.
11933 (tree_single_nonnegative_warnv_p): New.
11934 (tree_invalid_nonnegative_warnv_p): New.
11935 (tree_expr_nonnegative_warnv_p): Redefine in term of the new functions.
11937 2008-03-04 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
11940 * opts.c (handle_option): Postpone 'unknown option' errors only for
11943 2008-03-04 H.J. Lu <hongjiu.lu@intel.com>
11946 * config/i386/smmintrin.h (SIDD_XXX): Renamed to ...
11949 2008-03-04 Rafael Espindola <espindola@google.com>
11951 * fold-const.c (tree_unary_nonzero_warnv_p): New.
11952 (tree_binary_nonzero_warnv_p): New.
11953 (tree_single_nonzero_warnv_p): New.
11954 (tree_expr_nonzero_warnv_p): Redefine using the new functions.
11956 2008-03-04 Uros Bizjak <ubizjak@gmail.com>
11958 PR middle-end/35456
11959 * fold-const.c (fold_cond_expr_with_comparison): Prevent
11960 transformations for modes that have signed zeros.
11961 * ifcvt.c (noce_try_abs): Ditto.
11963 2008-03-04 Joseph Myers <joseph@codesourcery.com>
11965 * config/i386/i386.c (override_options): Force
11966 -maccumulate-outgoing-args on if TARGET_STACK_PROBE.
11968 2008-03-04 Jan Hubicka <jh@suse.cz>
11971 * ipa-inline.c (cgraph_decide_inlining_of_small_function): Fix typo
11974 2008-03-04 Danny Smith <dannysmith@users.sourceforge.net>
11976 * config/i386/i386.md (allocate_stack_worker_32): Use __chkstk
11977 label to probe the stack.
11979 2008-03-04 Danny Smith <dannysmith@users.sourceforge.net>
11981 * gthr-win32.h [__GTHREAD_HIDE_WIN32API]
11982 (__gthr_win32_mutex_destroy): Declare.
11983 [__GTHREAD_HIDE_WIN32API] (__gthread_mutex_destroy): Use
11984 __gthr_win32_mutex_destroy.
11985 * config/i386/gthr-win32.c (__gthr_win32_mutex_destroy): Define.
11987 2008-03-03 Jan Hubicka <jh@suse.cz>
11990 * ipa-inline.c (cgraph_decide_inlining_of_small_function): Be more
11991 aggressive on inlining cold calls.
11993 2008-03-03 Richard Guenther <rguenther@suse.de>
11995 * tree-ssa-sccvn.c (visit_reference_op_store): Do not insert
11996 struct copies into the expression table.
11997 (simplify_unary_expression): Handle VIEW_CONVERT_EXPR.
11998 (try_to_simplify): Likewise.
11999 * fold-const.c (fold_unary): Fold VIEW_CONVERT_EXPR of
12000 integral and pointer arguments which do not change the
12001 precision to NOP_EXPRs.
12002 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Adjust
12003 VIEW_CONVERT_EXPR case.
12005 2008-03-02 Sebastian Pop <sebastian.pop@amd.com>
12007 * tree-scalar-evolution.c (instantiate_parameters_1): An SSA_NAME
12008 defined in a loop at depth 0 is invariant.
12009 * tree-chrec.c (evolution_function_is_invariant_rec_p): Ditto.
12010 * tree-ssa-loop-ivopts.c (expr_invariant_in_loop_p): Should never
12011 be called at loop depth 0.
12013 2008-03-02 Jakub Jelinek <jakub@redhat.com>
12016 * gcc.c (process_command): Update copyright notice dates.
12017 * gcov.c (print_version): Likewise.
12018 * gcov-dump.c (print_version): Likewise.
12019 * mips-tfile.c (main): Likewise.
12020 * mips-tdump.c (main): Likewise.
12022 2008-03-02 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
12025 * c-common.c (flag_permissive): Delete.
12026 (constant_expression_warnings): Check flags first.
12027 (constant_expression_error): New.
12028 * c-common.h (flag_permissive): Delete.
12029 (constant_expression_error): Declare.
12030 * flags.h (flag_permissive): Declare. Update description.
12031 * diagnostic.c (pedwarn): Update.
12033 * diagnostic.h: (pedantic_error_kind): Rename as pedantic_warning_kind.
12034 (permissive_error_kind): New.
12035 * toplev.c (flag_permissive): Define. Update description.
12036 * toplev.h (permissive_error_kind): Declare.
12037 * c-errors.c (pedwarn_c99): Use pedantic_warning_kind.
12038 (pedwarn_c90): Use pedantic_warning_kind.
12039 * c-opts.c (c_common_post_options): flag_permissive does not affect
12040 flag_pedantic_errors.
12042 2008-03-02 Joseph Myers <joseph@codesourcery.com>
12044 * libgcc2.c (__addvSI3, __addvsi3, __addvDI3, __subvSI3,
12045 __subvsi3, __subvDI3, __negvSI2, __negvsi2, __negvDI2, __absvSI2,
12046 __absvsi2, __absvDI2): Use unsigned arithmetic.
12048 2008-03-02 Andi Kleen <ak@suse.de>
12049 Richard Guenther <rguenther@suse.de>
12051 * struct-equiv.c: Remove file.
12052 * cfg_cleanup.c (condjump_equiv_p): Remove.
12053 * Makefile.in (OBJS-common): Remove struct-equiv.o.
12054 (struct-equiv.o): Remove rule.
12055 * basic-block.h (struct_equiv_checkpoint, STRUCT_EQUIV_*,
12056 insns_match_p, struct_equiv_block_eq, struct_equiv_init,
12057 rtx_equiv_p, condjump_equiv_p): Remove prototypes.
12059 2008-03-01 Alexandre Oliva <aoliva@redhat.com>
12061 * ifcvt.c (noce_process_if_block): Try to handle only the then
12062 block if the else block exists but isn't suitable.
12064 2008-03-01 Janne Blomqvist <jb@gcc.gnu.org>
12067 * gthr-posix.h (__gthread_mutex_destroy): Remove extra declarations.
12068 * gthr-posix95.h (__gthread_mutex_destroy): Likewise. Note this fixes
12069 regression from previous patch.
12071 2008-03-01 Janne Blomqvist <jb@gcc.gnu.org>
12074 * gthr.h: Add __gthread_mutex_destroy as a function that must be
12076 * gthr-vxworks.h (__gthread_mutex_destroy): Null implementation.
12077 * gthr-single.h (__gthread_mutex_destroy): Likewise.
12078 * gthr-rtems.h (__gthread_mutex_destroy): Likewise.
12079 * gthr-mipssde.h (__gthread_mutex_destroy): Likewise.
12080 * gthr-nks.h (__gthread_mutex_destroy): Likewise.
12081 * gthr-solaris.h (__gthread_mutex_destroy): Call mutex_destroy.
12082 * gthr-win32.h (__GTHREAD_MUTEX_DESTROY_FUNCTION): Remove.
12083 (__gthread_mutex_destroy_function): Rename to
12084 __gthread_mutex_destroy.
12085 * gthr-dce.h (__gthread_mutex_destroy): Call
12086 pthread_mutex_destroy.
12087 * gthr-tpf.h (__gthread_mutex_destroy): Likewise.
12088 * gthr-posix.h (__gthread_mutex_destroy): Likewise.
12089 * gthr-posix95.h (__gthread_mutex_destroy): Likewise.
12091 2008-03-01 Alexandre Oliva <aoliva@redhat.com>
12093 * df-scan.c (df_ref_chain_change_bb): Simplify.
12094 (df_insn_change_bb): Add new_bb argument. Simplify. Call
12095 set_block_for_insn if there's any change.
12096 * df.h ((df_insn_change_bb): Fix prototype.
12097 * cfgrtl.c (update_bb_for_insn_chain): Pass bb to
12098 df_insn_change_bb, don't call set_block_for_insn.
12099 * emit-rtl.c (reorder_insns): Likewise.
12100 * haifa-sched.c (move_insn): Likewise.
12102 2008-03-01 Alexandre Oliva <aoliva@redhat.com>
12104 * rtlanal.c (loc_mentioned_in_p): Test XVECEXPs correctly.
12106 2008-03-01 Alexandre Oliva <aoliva@redhat.com>
12108 * tree-flow-inline.h (next_readonly_imm_use): Return
12109 NULL_USE_OPERAND_P after the end.
12111 2008-03-01 Richard Guenther <rguenther@suse.de>
12113 PR tree-optimization/35411
12114 * tree-sra.c (sra_build_assignment): Split conversion to
12115 final type to a separate statement if we are not assigning
12118 2008-02-29 Francois-Xavier Coudert <coudert@clipper.ens.fr>
12120 * fold-const.c (fold_convertible_p): Correct the logic to follow
12121 that in fold_convert().
12123 2008-02-29 Douglas Gregor <doug.gregor@gmail.com>
12126 * tree-inline.c (build_duplicate_type): When we make a
12127 duplicate type, make it unique in the canonical types system.
12129 2008-02-29 Tom Tromey <tromey@redhat.com>
12131 * toplev.c (input_file_stack, input_file_stack_tick, fs_p,
12132 input_file_stack_history, input_file_stack_restored): Remove.
12133 (push_srcloc, pop_srcloc, restore_input_file_stack): Likewise.
12134 * input.h (struct file_stack): Remove.
12135 (push_srcloc, pop_srcloc, restore_input_file_stack): Likewise.
12136 (input_file_stack, input_file_stack_tick, INPUT_FILE_STACK_BITS):
12138 * diagnostic.h (struct diagnostic_context) <last_module>: Change
12140 (diagnostic_last_module_changed): Add 'map' argument.
12141 (diagnostic_set_last_function): Likewise.
12142 * diagnostic.c (undiagnostic_report_current_module): Iterate using
12143 line map, not input_file_stack.
12144 * c-lex.c (fe_file_change): Don't use push_srcloc or pop_srcloc.
12146 2008-02-29 Paul Brook <paul@codesourcery.com>
12148 * config/arm/arm.md (arm_addsi3): Add r/k/n alternative.
12150 2008-02-29 Paul Brook <paul@codesourcery.com>
12152 * config/arm/ieee754-df.S (muldf3): Use RET macros.
12154 2008-02-29 Richard Guenther <rguenther@suse.de>
12156 * tree-ssa-pre.c (get_sccvn_value): Create missing VNs via
12158 * tree-ssa-sccnv.c (visit_reference_op_store): Use the rhs
12159 value for comparing for a store match.
12160 (simplify_unary_expression): Do nothing for SSA_NAMEs.
12161 (try_to_simplify): Do not do a full-blown reference lookup.
12163 2008-02-29 Kaz Kojima <kkojima@gcc.gnu.org>
12165 * config/sh/sh.c (sh_scalar_mode_supported_p): New function.
12166 (TARGET_SCALAR_MODE_SUPPORTED_P): Define.
12168 * config/sh/sh.h (OVERRIDE_OPTIONS): Don't warn for profiling.
12170 2008-02-29 Sebastian Pop <sebastian.pop@amd.com>
12172 * tree-loop-linear.c (try_interchange_loops): Compare memory access
12173 strides against cache sizes.
12175 2008-02-29 Kaz Kojima <kkojima@gcc.gnu.org>
12177 * config/sh/sh.c (sh_secondary_reload): Handle loading a float
12180 2008-02-28 Richard Sandiford <rsandifo@nildram.co.uk>
12182 * simplify-rtx.c (simplify_unary_operation_1): Extend the handling
12183 of SUBREG_PROMOTED_VAR_P to cope with cases where the extended value
12184 is smaller than the original promoted value.
12185 (simplify_subreg): If OP is a SUBREG, try to preserve its
12186 SUBREG_PROMOTED_VAR_P information.
12188 2008-02-28 Steven Bosscher <stevenb.gcc@gmail.com>
12190 * tree-ssa-sccvn (vn_ssa_aux_obstack): New obstack.
12191 (VN_INFO_GET): Allocate new objects on the obstack.
12192 (init_scc_vn): Initialize the obstack. Use XDELETE instead of free
12193 for rpo_numbers_temp, for consistency.
12194 (free_scc_vn): Free the obstack.
12196 2008-02-28 Sebastian Pop <sebastian.pop@amd.com>
12198 * doc/invoke.texi: Document -ftree-loop-distribution.
12199 * tree-loop-distribution.c: New.
12200 * tree-pass.h (pass_loop_distribution): New.
12201 * graphds.h (struct graph): Add htab_t indices.
12202 * timevar.def (TV_TREE_LOOP_DISTRIBUTION): New.
12203 * tree-vectorizer.c (rename_variables_in_loop): Extern.
12204 (slpeel_tree_duplicate_loop_to_edge_cfg): Init PENDING_STMT to NULL.
12205 * tree-vectorizer.h (tree_duplicate_loop_on_edge): Declared.
12206 * tree-data-ref.c (debug_data_dependence_relations): New.
12207 (dump_data_dependence_relation): Also print data references.
12208 (free_data_ref): Extern.
12209 (same_access_functions): Moved...
12210 (find_vertex_for_stmt): Renamed rdg_vertex_for_stmt.
12211 (dump_rdg_vertex, debug_rdg_vertex, dump_rdg_component,
12212 debug_rdg_component, dump_rdg, debug_rdg, dot_rdg_1, dot_rdg,
12213 struct rdg_vertex_info, rdg_vertex_for_stmt): New.
12214 (create_rdg_edge_for_ddr, create_rdg_vertices): Cleaned up.
12215 (stmts_from_loop): Skip LABEL_EXPR.
12216 (hash_stmt_vertex_info, eq_stmt_vertex_info, hash_stmt_vertex_del):
12218 (build_rdg): Initialize rdg->indices htab.
12219 (free_rdg, stores_from_loop, ref_base_address,
12220 rdg_defs_used_in_other_loops_p, have_similar_memory_accesses,
12221 have_similar_memory_accesses_1, ref_base_address_1,
12222 remove_similar_memory_refs): New.
12223 * tree-data-ref.h: Depend on tree-chrec.h.
12224 (debug_data_dependence_relations, free_data_ref): Declared.
12225 (same_access_functions): ... here.
12226 (ddr_is_anti_dependent, ddrs_have_anti_deps, ddr_dependence_level):
12228 (struct rdg_vertex): Add has_mem_write and has_mem_reads.
12229 (RDGV_HAS_MEM_WRITE, RDGV_HAS_MEM_READS, RDG_STMT,
12230 RDG_MEM_WRITE_STMT, RDG_MEM_READS_STMT): New.
12231 (dump_rdg_vertex, debug_rdg_vertex, dump_rdg_component,
12232 debug_rdg_component, dump_rdg, debug_rdg, dot_rdg,
12233 rdg_vertex_for_stmt): Declared.
12234 (struct rdg_edge): Add level.
12236 (free_rdg, stores_from_loop, remove_similar_memory_refs,
12237 rdg_defs_used_in_other_loops_p, have_similar_memory_accesses):
12239 (rdg_has_similar_memory_accesses): New.
12240 * tree-vect-analyze.c: Remove unused static decls.
12241 * lambda.h (dependence_level): New.
12242 * common.opt (ftree-loop-distribution): New.
12243 * tree-flow.h (mark_virtual_ops_in_bb,
12244 slpeel_tree_duplicate_loop_to_edge_cfg,
12245 rename_variables_in_loop): Declared.
12246 * Makefile.in (TREE_DATA_REF_H): Depend on tree-chrec.h.
12247 (OBJS-common): Add tree-loop-distribution.o.
12248 (tree-loop-distribution.o): New rule.
12249 * tree-cfg.c (mark_virtual_ops_in_bb): New.
12250 (mark_virtual_ops_in_region): Use mark_virtual_ops_in_bb.
12251 * passes.c (init_optimization_passes): Schedule pass_loop_distribution.
12253 2008-02-28 Joseph Myers <joseph@codesourcery.com>
12256 * tree.c (handle_dll_attribute): Disallow TYPE_DECLs for types
12257 other than structures and unions.
12259 2008-02-28 Richard Guenther <rguenther@suse.de>
12262 2008-02-26 Richard Guenther <rguenther@suse.de>
12264 * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
12265 * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
12266 (lookup_decl_from_uid): Declare.
12267 (remove_decl_from_map): Likewise.
12268 * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
12269 * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
12270 (decl_for_uid_map): New global hashtable mapping DECL_UID
12272 (init_ttree): Allocate it.
12273 (insert_decl_to_uid_decl_map): New helper function.
12274 (make_node_stat): Insert new decls into the map.
12275 (copy_node_stat): Likewise.
12276 (lookup_decl_from_uid): New function.
12277 (remove_decl_from_map): Likewise.
12278 (print_decl_for_uid_map_statistics): New helper.
12279 (dump_tree_statistics): Call it.
12281 * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
12282 (referenced_var_iterator): Adjust.
12283 (FOR_EACH_REFERENCED_VAR): Adjust.
12284 (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
12285 (num_referenced_vars): Adjust.
12286 * tree-flow-inline.h (gimple_referenced_vars): Adjust.
12287 (first_referenced_var): Remove.
12288 (end_referenced_vars_p): Likewise.
12289 (next_referenced_var): Likewise.
12290 (referenced_var_iterator_set): New helper function.
12291 * tree-dfa.c (referenced_var_lookup): Adjust.
12292 (referenced_var_check_and_insert): Likewise.
12293 (remove_referenced_var): Likewise.
12294 * tree-ssa.c (verify_flow_insensitive_alias_info): Use
12295 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
12296 (verify_call_clobbering): Likewise.
12297 (verify_memory_partitions): Likewise.
12298 (init_tree_ssa): Allocate bitmap instead of hashtable for
12300 (delete_tree_ssa): Adjust.
12301 * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
12302 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
12303 (compute_tag_properties): Likewise.
12304 (set_initial_properties): Likewise.
12305 (find_partition_for): Likewise.
12306 (update_reference_counts): Likewise.
12307 (dump_may_aliases_for): Likewise.
12308 * tree-ssa-operands.c (add_virtual_operand): Likewise.
12309 (add_call_clobber_ops): Likewise.
12310 (add_call_read_ops): Likewise.
12311 (get_asm_expr_operands): Likewise.
12312 * tree-into-ssa.c (dump_decl_set): Likewise.
12313 (update_ssa): Likewise.
12314 * tree-sra.c (scan_function): Likewise.
12315 (decide_instantiations): Likewise.
12316 (scalarize_parms): Likewise.
12317 * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
12318 (dsa_named_for): Likewise.
12319 * tree-ssa-structalias.c (update_alias_info): Likewise.
12320 (merge_smts_into): Likewise.
12322 2008-02-27 David Daney <ddaney@avtrex.com>
12325 * config/mips/iris.h (MIPS_DEBUGGING_INFO): Define.
12326 * config/mips/openbsd.h (MIPS_DEBUGGING_INFO): Same.
12327 * config/mips/sde.h (MIPS_DEBUGGING_INFO): Remove undef.
12328 * config/mips/vxworks.h (MIPS_DEBUGGING_INFO): Same.
12329 * config/mips/mips.h (MIPS_DEBUGGING_INFO): Remove define.
12331 2008-02-27 Uros Bizjak <ubizjak@gmail.com>
12334 * config/darwin-ppc-ldouble-patch.def (BUILT_IN_NANL): Add.
12335 (BUILT_IN_NEXTTOWARD): Remove.
12336 (BUILT_IN_NEXTTOWARDF): Ditto.
12337 * config/darwin.c (darwin_patch_builtin): Use ACONCAT instead of
12338 alloca/strcpy/strcat. Remove commented-out code. Fix whitespace.
12340 2008-02-27 Tom Tromey <tromey@redhat.com>
12342 * tree-dump.c (dequeue_and_dump) <FUNCTION_DECL>: Check
12343 DECL_SAVED_TREE, not DECL_LANG_SPECIFIC, when dumping body.
12345 2008-02-27 Jan Beulich <jbeulich@novell.com>
12347 * c-decl.c (merge_decls): Use DECL_USER_ALIGN() on olddecl to
12348 update the respective field on newdecl.
12350 2008-02-27 Revital Eres <eres@il.ibm.com>
12352 PR rtl-optimization/34999
12353 * bb-reorder.c (add_labels_and_missing_jumps): Do not handle
12354 crossing edges that ends with a call insn.
12355 (fix_up_fall_thru_edges): Handle crossing edges that ends with a
12356 call insn and clear the EDGE_CROSSING flag of the crossing edge
12357 when fixing fallthru edges.
12359 2008-02-27 Richard Guenther <rguenther@suse.de>
12361 PR middle-end/35390
12362 * fold-const.c (fold_unary): Return the correct argument,
12363 converted to the result type.
12365 2008-02-27 Richard Guenther <rguenther@suse.de>
12367 PR middle-end/34971
12368 * expr.c (expand_expr_real_1): Assert on rotates that operate
12370 * fold-const.c (fold_binary): Use the types precision, not the
12371 bitsize of the mode if folding rotate expressions. Build rotates
12372 only for full modes.
12374 2008-02-27 Jakub Jelinek <jakub@redhat.com>
12376 * c-ppoutput.c (scan_translation_unit): Handle CPP_PRAGMA
12377 and CPP_PRAGMA_EOL.
12378 * c-pragma.c (pragma_ns_name): New typedef.
12379 (registered_pp_pragmas): New variable.
12380 (c_pp_lookup_pragma): New function.
12381 (c_register_pragma_1): If flag_preprocess_only, do nothing
12382 for non-expanded pragmas, for expanded ones push pragma's
12383 namespace and name into registered_pp_pragmas vector.
12384 (c_invoke_pragma_handler): Register OpenMP pragmas even when
12385 flag_preprocess_only, don't register GCC pch_preprocess
12386 pragma if flag_preprocess_only.
12387 * c-opts.c (c_common_init): Call init_pragma even if
12388 flag_preprocess_only.
12389 * c-pragma.c (c_pp_lookup_pragma): New prototype.
12390 * config/darwin.h (DARWIN_REGISTER_TARGET_PRAGMAS): Don't call
12391 cpp_register_pragma if flag_preprocess_only.
12393 2008-02-26 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12396 * c-parser.c (c_parser_translation_unit): Warn for empty
12397 translation unit, not empty source file.
12399 2008-02-26 Paul Brook <paul@codesourcery.com>
12401 * config/arm/arm.c (thumb_set_frame_pointer): Ensure SP is first
12402 operand for Thumb-2.
12403 * config/arm/arm.h (reg_class): Add CORE_REGS.
12404 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Ditto.
12405 (BASE_REG_CLASS): Use CORE_REGS.
12406 (PREFERRED_RELOAD_CLASS): Add STACK_REG.
12407 (REGNO_MODE_OK_FOR_REG_BASE_P): Use REGNO_MODE_OK_FOR_BASE_P.
12408 (REGNO_OK_FOR_INDEX_P): Exclude SP.
12409 (ARM_REG_OK_FOR_INDEX_P): Always define. Use
12410 ARM_REGNO_OK_FOR_INDEX_P.
12411 (ARM_PRINT_OPERAND_ADDRESS): Swap operands for [reg, sp].
12412 * config/arm/arm.md (arm_addsi3, thumb1_addsi3, arm_subsi3_insn,
12413 arm_movsi_insn, thumb1_movsi_insni, stack_tie): Add "k" alternatives.
12414 (ldm/stm peepholes): Ditto.
12415 * config/arm/thumb2.md (thumb2_movdi): Add "k" alternatives.
12416 * config/arm/vfp.md (arm_movsi_vfp, thumb2_movsi_vfp): Ditto.
12417 * config/arm/iwmmxt.md (iwmmxt_movsi_insn): Ditto.
12418 * config/arm/constraints.md: Enable "k" constraint on ARM.
12420 2008-02-27 Ben Elliston <bje@au.ibm.com>
12422 * config/rs6000/rs6000.c: Annotate cache line size field in all
12423 instances of struct processor_costs.
12425 2008-02-26 David Edelsohn <edelsohn@gnu.org>
12427 * dbgcnt.def (cfg_cleanup, cprop1, cprop2, dce_fast, dce_ud, dse1,
12428 dse2, gcse, if_conversion, if_after_combine, if_after_reload,
12429 jump_bypass): New counters.
12430 * cfgcleanup.c (cleanup_cfg): Add dbg_cnt.
12431 * dce.c (gate_ud_dce): Same.
12432 (gate_fast_dce): Same.
12433 * dse.c (gate_dse1): New function.
12434 (gate_dse2): New function.
12435 (gate_dse): Merge results of new gate functions.
12436 * gcse.c (gcse_main): Bracket cprop1 and cprop2 with dbg_cnt.
12437 (gate_handle_jump_bypass): Add dbg_cnt.
12438 (gate_handle_gcse): Add dbg_cnt.
12439 * ifcvt.c (gate_handle_if_conversion): Same.
12440 (gate_handle_if_after_combine): Same.
12441 (gate_handle_if_after_reload): Same.
12442 * Makefile.in: Add DBGCNT_H to cfgcleanup.o and ifcvt.o.
12444 2008-02-26 Edmar Wienskoski <edmar@freescale.com>
12446 * config/rs6000/rs6000.c (processor_costs): Update e300 cache
12448 * doc/invoke.texi: Add e300c2 and e300c3 to list of cpus.
12450 2008-02-26 Jason Merrill <jason@redhat.com>
12453 * attribs.c (decl_attributes): Leave ATTR_FLAG_TYPE_IN_PLACE
12454 alone if it's the naming decl for the type's main variant.
12456 2008-02-26 Tom Tromey <tromey@redhat.com>
12458 * system.h (USE_MAPPED_LOCATION): Poison.
12459 * Makefile.in (GTFILES): Put CPP_ID_DATA_H first.
12460 * tree-cfg.c (make_cond_expr_edges): Remove old location code.
12461 (make_goto_expr_edges): Likewise.
12462 (remove_bb): Likewise.
12463 (execute_warn_function_return): Likewise.
12464 * basic-block.h (struct edge_def) <goto_locus>: Change type to
12466 * c-common.c (fname_decl): Remove old location code.
12467 * tree-vect-transform.c (vect_finish_stmt_generation): Remove old
12469 * rtl.h (ASM_OPERANDS_SOURCE_LOCATION): Remove old-location
12471 (ASM_INPUT_SOURCE_LOCATION): Likewise.
12472 (gen_rtx_ASM_INPUT): Likewise.
12473 (gen_rtx_ASM_INPUT_loc): Likewise.
12474 (get_rtx_asm_OPERANDS): Remove.
12475 * cfglayout.c (insn_locators_alloc): Remove old location code.
12476 (set_curr_insn_source_location): Likewise.
12477 (curr_insn_locator): Likewise.
12478 * print-tree.c (print_node): Remove old location code.
12479 * tree-mudflap.c (mf_varname_tree): Remove old location code.
12480 (mf_file_function_line_tree): Remove test of USE_MAPPED_LOCATION.
12481 * cfgexpand.c (expand_gimple_cond_expr): Don't use
12482 location_from_locus.
12483 (construct_exit_block): Remove old location code.
12484 * emit-rtl.c (force_next_line_note): Remove old location code.
12485 * profile.c (branch_prob): Remove old location code.
12486 * tree-vectorizer.h (LOC, UNKNOWN_LOC, EXPR_LOC, LOC_FILE,
12487 LOC_LINE): Remove old-location variants.
12488 * langhooks.c (lhd_print_error_function): Remove old location
12490 * configure, config.in: Rebuilt.
12491 * configure.ac (--enable-mapped-location): Remove.
12492 * c-decl.c (c_init_decl_processing): Remove old location code.
12493 (finish_function): Likewise.
12494 * recog.c (decode_asm_operands): Remove old location code.
12495 * c-pch.c (c_common_read_pch): Remove old location code.
12496 * rtl.def (ASM_INPUT, ASM_OPERANDS): Remove old location
12498 * gimple-low.c (lower_function_body): Remove old location code.
12499 * toplev.c (unknown_location): Remove.
12500 (push_srcloc): Remove old-location variant.
12501 (process_options): Remove old location code.
12502 (lang_dependent_init): Likewise.
12503 * input.h (UNKNOWN_LOCATION): Move definition.
12504 (location_t): Undeprecate.
12505 (source_locus): Remove.
12506 (location_from_locus): Remove.
12507 (struct location_s): Remove.
12508 Remove all old-location code.
12509 (input_line, input_filename): Remove.
12510 * final.c (final_scan_insn): Remove old location code.
12511 * diagnostic.c (diagnostic_build_prefix): Remove
12512 USE_MAPPED_LOCATION test.
12513 * tree.h (gimple_stmt) <locus>: Now a location_t.
12514 (tree_exp) <locus>: Likewise.
12515 (DECL_IS_BUILTIN): Remove old-location variant.
12516 (annotate_with_file_line, annotate_with_locus): Likewise.
12517 (expr_locus, set_expr_locus): Update.
12518 * tree.c (build1_stat): Remove old location code.
12519 (last_annotated_node): Remove.
12520 (annotate_with_file_line): Remove old-location variant.
12521 (annotate_with_locus): Likewise.
12522 (expr_location): Remove old location code.
12523 (set_expr_location): Likewise.
12524 (expr_has_location): Likewise.
12525 (expr_locus): Likewise.
12526 (set_expr_locus): Likewise.
12527 (expr_filename): Don't use location_from_locus.
12528 (expr_lineno): Likewise.
12529 * rtl-error.c (location_for_asm): Remove old location code.
12530 * c-lex.c (cb_line_change): Remove old location code.
12531 (fe_file_change): Likewise.
12532 (cb_def_pragma): Likewise.
12533 (c_lex_with_flags): Likewise.
12534 * gengtype.c (do_typedef): Don't special-case location types.
12535 (define_location_structures): Remove.
12536 (main): Don't call define_location_structures.
12537 * tree-pretty-print.c (dump_implicit_edges): Remove old location
12540 2008-02-26 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
12543 * builtins.def (BUILT_IN_STDARG_START): Remove.
12544 * builtins.c (expand_builtin): Remove BUILT_IN_STDARG_START.
12545 * tree-stdarg.c (execute_optimize_stdarg): Likewise.
12546 * tree-inline.c (inline_forbidden_p_1): Likewise.
12548 2008-02-26 Richard Guenther <rguenther@suse.de>
12550 * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
12551 * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
12552 (lookup_decl_from_uid): Declare.
12553 (remove_decl_from_map): Likewise.
12554 * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
12555 * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
12556 (decl_for_uid_map): New global hashtable mapping DECL_UID
12558 (init_ttree): Allocate it.
12559 (insert_decl_to_uid_decl_map): New helper function.
12560 (make_node_stat): Insert new decls into the map.
12561 (copy_node_stat): Likewise.
12562 (lookup_decl_from_uid): New function.
12563 (remove_decl_from_map): Likewise.
12564 (print_decl_for_uid_map_statistics): New helper.
12565 (dump_tree_statistics): Call it.
12567 * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
12568 (referenced_var_iterator): Adjust.
12569 (FOR_EACH_REFERENCED_VAR): Adjust.
12570 (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
12571 (num_referenced_vars): Adjust.
12572 * tree-flow-inline.h (gimple_referenced_vars): Adjust.
12573 (first_referenced_var): Remove.
12574 (end_referenced_vars_p): Likewise.
12575 (next_referenced_var): Likewise.
12576 (referenced_var_iterator_set): New helper function.
12577 * tree-dfa.c (referenced_var_lookup): Adjust.
12578 (referenced_var_check_and_insert): Likewise.
12579 (remove_referenced_var): Likewise.
12580 * tree-ssa.c (verify_flow_insensitive_alias_info): Use
12581 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
12582 (verify_call_clobbering): Likewise.
12583 (verify_memory_partitions): Likewise.
12584 (init_tree_ssa): Allocate bitmap instead of hashtable for
12586 (delete_tree_ssa): Adjust.
12587 * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
12588 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
12589 (compute_tag_properties): Likewise.
12590 (set_initial_properties): Likewise.
12591 (find_partition_for): Likewise.
12592 (update_reference_counts): Likewise.
12593 (dump_may_aliases_for): Likewise.
12594 * tree-ssa-operands.c (add_virtual_operand): Likewise.
12595 (add_call_clobber_ops): Likewise.
12596 (add_call_read_ops): Likewise.
12597 (get_asm_expr_operands): Likewise.
12598 * tree-into-ssa.c (dump_decl_set): Likewise.
12599 (update_ssa): Likewise.
12600 * tree-sra.c (scan_function): Likewise.
12601 (decide_instantiations): Likewise.
12602 (scalarize_parms): Likewise.
12603 * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
12604 (dsa_named_for): Likewise.
12605 * tree-ssa-structalias.c (update_alias_info): Likewise.
12606 (merge_smts_into): Likewise.
12608 2008-02-26 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
12611 * doc/invoke.texi (-Wall): Add -Wvolatile-register-var.
12612 * c-opts.c (c_common_handle_option): Wall enables
12613 Wvolatile-register-var.
12614 * common.opt: Move Wvolatile-register-var to...
12617 2008-02-26 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
12619 * common.opt (Wlarger-than=): New.
12620 * doc/invoke.texi (Warning Options): Replace -Wlarger-than- with
12622 * opts.c (common_handle_option): Handle -Wlarger-than=.
12623 * optc-gen.awk: Likewise.
12624 * opth-gen.awk: Likewise.
12625 * stor-layout.c (layout_decl): Use -Wlarger-than= for warning.
12626 * tree-optimize.c (tree_rest_of_compilation): Likewise.
12628 2008-02-26 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
12630 * c-common.c (match_case_to_enum_1): Add appropriate
12631 OPT_W* parameter to warning.
12632 (c_do_switch_warnings): Likewise.
12633 * c-typeck.c (warning_init): Add one more parameter following
12634 'warning' function.
12635 (push_init_level): Update call to warning_init.
12636 (pop_init_level): Likewise.
12637 (add_pending_init): Likewise.
12638 (output_init_element: Likewise.
12640 2008-02-26 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
12643 * toplev.c (toplev_main): If there are warnings or error, print
12644 errors for ignored options.
12645 * opts.c (ignored_options): New static variable.
12646 (postpone_unknown_option_error): New.
12647 (print_ignored_options): New.
12648 (handle_option): Postpone errors for unknown -Wno-* options.
12649 * opts.h (print_ignored_options): Declare.
12651 2008-02-25 Richard Sandiford <rsandifo@nildram.co.uk>
12653 * config/mips/mips.md (loadgp_blockage, blockage): Change type
12656 2008-02-25 Richard Guenther <rguenther@suse.de>
12659 2008-02-25 Richard Guenther <rguenther@suse.de>
12661 * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
12662 * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
12663 (lookup_decl_from_uid): Declare.
12664 * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
12665 * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
12666 (decl_for_uid_map): New global hashtable mapping DECL_UID
12668 (init_ttree): Allocate it.
12669 (insert_decl_to_uid_decl_map): New helper function.
12670 (make_node_stat): Insert new decls into the map.
12671 (copy_node_stat): Likewise.
12672 (lookup_decl_from_uid): New function.
12673 (print_decl_for_uid_map_statistics): New helper.
12674 (dump_tree_statistics): Call it.
12676 * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
12677 (referenced_var_iterator): Adjust.
12678 (FOR_EACH_REFERENCED_VAR): Adjust.
12679 (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
12680 (num_referenced_vars): Adjust.
12681 * tree-flow-inline.h (gimple_referenced_vars): Adjust.
12682 (first_referenced_var): Remove.
12683 (end_referenced_vars_p): Likewise.
12684 (next_referenced_var): Likewise.
12685 (referenced_var_iterator_set): New helper function.
12686 * tree-dfa.c (referenced_var_lookup): Adjust.
12687 (referenced_var_check_and_insert): Likewise.
12688 (remove_referenced_var): Likewise.
12689 * tree-ssa.c (verify_flow_insensitive_alias_info): Use
12690 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
12691 (verify_call_clobbering): Likewise.
12692 (verify_memory_partitions): Likewise.
12693 (init_tree_ssa): Allocate bitmap instead of hashtable for
12695 (delete_tree_ssa): Adjust.
12696 * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
12697 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
12698 (compute_tag_properties): Likewise.
12699 (set_initial_properties): Likewise.
12700 (find_partition_for): Likewise.
12701 (update_reference_counts): Likewise.
12702 (dump_may_aliases_for): Likewise.
12703 * tree-ssa-operands.c (add_virtual_operand): Likewise.
12704 (add_call_clobber_ops): Likewise.
12705 (add_call_read_ops): Likewise.
12706 (get_asm_expr_operands): Likewise.
12707 * tree-into-ssa.c (dump_decl_set): Likewise.
12708 (update_ssa): Likewise.
12709 * tree-sra.c (scan_function): Likewise.
12710 (decide_instantiations): Likewise.
12711 (scalarize_parms): Likewise.
12712 * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
12713 (dsa_named_for): Likewise.
12714 * tree-ssa-structalias.c (update_alias_info): Likewise.
12715 (merge_smts_into): Likewise.
12717 2008-02-25 Janne Blomqvist <jb@gcc.gnu.org>
12720 * doc/invoke.texi (-fcx-limited-range): Document new option.
12721 * toplev.c (process_options): Handle -fcx-fortran-rules.
12722 * common.opt: Add documentation for -fcx-fortran-rules.
12724 2008-02-25 Janne Blomqvist <jb@gcc.gnu.org>
12727 * doc/invoke.texi (-fcx-limited-range): Correct to be in line with
12728 actual behaviour and C99.
12730 2008-02-26 Ben Elliston <bje@au.ibm.com>
12732 * config/rs6000/rs6000.h (ASM_CPU_POWER5_SPEC): Define.
12733 (ASM_CPU_POWER6_SPEC): Likewise.
12734 (ASM_CPU_SPEC): Pass %(asm_cpu_power5) for -mcpu=power5.
12735 Likewise, pass %(asm_cpu_power6) for -mcpu=power6.
12736 (EXTRA_SPECS): Add asm_cpu_power5, asm_cpu_power6 spec strings.
12738 2008-02-25 Richard Guenther <rguenther@suse.de>
12740 * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
12741 * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
12742 (lookup_decl_from_uid): Declare.
12743 * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
12744 * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
12745 (decl_for_uid_map): New global hashtable mapping DECL_UID
12747 (init_ttree): Allocate it.
12748 (insert_decl_to_uid_decl_map): New helper function.
12749 (make_node_stat): Insert new decls into the map.
12750 (copy_node_stat): Likewise.
12751 (lookup_decl_from_uid): New function.
12752 (print_decl_for_uid_map_statistics): New helper.
12753 (dump_tree_statistics): Call it.
12755 * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
12756 (referenced_var_iterator): Adjust.
12757 (FOR_EACH_REFERENCED_VAR): Adjust.
12758 (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
12759 (num_referenced_vars): Adjust.
12760 * tree-flow-inline.h (gimple_referenced_vars): Adjust.
12761 (first_referenced_var): Remove.
12762 (end_referenced_vars_p): Likewise.
12763 (next_referenced_var): Likewise.
12764 (referenced_var_iterator_set): New helper function.
12765 * tree-dfa.c (referenced_var_lookup): Adjust.
12766 (referenced_var_check_and_insert): Likewise.
12767 (remove_referenced_var): Likewise.
12768 * tree-ssa.c (verify_flow_insensitive_alias_info): Use
12769 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
12770 (verify_call_clobbering): Likewise.
12771 (verify_memory_partitions): Likewise.
12772 (init_tree_ssa): Allocate bitmap instead of hashtable for
12774 (delete_tree_ssa): Adjust.
12775 * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
12776 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
12777 (compute_tag_properties): Likewise.
12778 (set_initial_properties): Likewise.
12779 (find_partition_for): Likewise.
12780 (update_reference_counts): Likewise.
12781 (dump_may_aliases_for): Likewise.
12782 * tree-ssa-operands.c (add_virtual_operand): Likewise.
12783 (add_call_clobber_ops): Likewise.
12784 (add_call_read_ops): Likewise.
12785 (get_asm_expr_operands): Likewise.
12786 * tree-into-ssa.c (dump_decl_set): Likewise.
12787 (update_ssa): Likewise.
12788 * tree-sra.c (scan_function): Likewise.
12789 (decide_instantiations): Likewise.
12790 (scalarize_parms): Likewise.
12791 * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
12792 (dsa_named_for): Likewise.
12793 * tree-ssa-structalias.c (update_alias_info): Likewise.
12794 (merge_smts_into): Likewise.
12796 2008-02-25 Andreas Krebbel <krebbel1@de.ibm.com>
12799 * cse.c (cse_insn): Avoid creation of overlapping MEMs.
12800 * alias.c (nonoverlapping_memrefs_p): Export for use in other modules.
12801 * alias.h (nonoverlapping_memrefs_p): Likewise.
12803 2008-02-25 Jan Beulich <jbeulich@novell.com>
12805 * Makefile.in: Also prefix uses of crt0.o and mcrt0.o with $(T).
12806 * config/i386/netware-libgcc.exp: Add __bswap?i2,
12807 __emultls_get_address, __emultls_register_common,
12808 __floatundi?f, and _Unwind_GetIPInfo.
12809 * config/i386/netware.c (gen_stdcall_or_fastcall_decoration):
12810 Sync with config/i386/winnt.c:gen_stdcall_or_fastcall_suffix().
12811 (gen_regparm_prefix): Likewise.
12812 (i386_nlm_encode_section_info): Sync with
12813 config/i386/winnt.c:i386_pe_encode_section_info().
12814 (i386_nlm_maybe_mangle_decl_assembler_name): New.
12815 i386_nlm_mangle_decl_assembler_name): New.
12816 (netware_override_options): New.
12817 * config/i386/netware.h (netware_override_options): Declare.
12818 (OVERRIDE_OPTIONS): Re-define to netware_override_options.
12819 (i386_nlm_mangle_decl_assembler_name): Declare.
12820 (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Define.
12822 2008-02-25 Ben Elliston <bje@au.ibm.com>
12825 * c-decl.c (grokdeclarator): Remove unused local variables
12826 `typedef_type' and `type_as_written'.
12828 (find_rarely_executed_basic_blocks_and_crossing_edges): Remove
12829 unused local variable `has_hot_blocks'.
12830 (fix_crossing_conditional_branches): Remove unused local variable
12833 2008-02-25 Uros Bizjak <ubizjak@gmail.com>
12835 PR middle-end/19984
12836 * builtins.def (BUILT_IN_NAN): Define as c99 builtin
12837 using DEF_C99_BUILTIN.
12838 (BUILT_IN_NANF): Ditto.
12839 (BUILT_IN_NANL): Ditto.
12841 2008-02-25 Ayal Zaks <zaks@il.ibm.com>
12842 Revital Eres <eres@il.ibm.com>
12844 * modulo-sched.c (calculate_must_precede_follow): Address TODO
12845 regarding the order of two dependent insns in the same row.
12847 2008-02-25 Eric Botcazou <ebotcazou@adacore.com>
12849 * stor-layout.c (layout_decl): Do not bump the alignment of a
12850 bit-field to more than byte alignment if it is packed.
12852 2008-02-24 David Edelsohn <edelsohn@gnu.org>
12854 * config/rs6000/rs6000.c (processor_costs): Add cache costs for
12857 2008-02-24 Diego Novillo <dnovillo@google.com>
12859 http://gcc.gnu.org/ml/gcc-patches/2008-02/msg01094.html
12862 * tree-vrp.c (vrp_evaluate_conditional): With
12863 -Wtype-limits, emit a warning when comparing against a
12864 constant outside the natural range of OP0's type.
12865 * c.opt (Wtype-limits): Move ...
12866 * common.opt (Wtype-limits): ... here.
12868 2008-02-24 Edmar Wienskoski <edmar@freescale.com>
12870 * config.gcc (powerpc*-*-*): Add new cores e300c2 and e300c3.
12871 * config/rs6000/e300c2c3.md: New file.
12872 * config/rs6000/rs6000.c (processor_costs): Add new costs for
12874 (rs6000_override_options): Add e300c2 and e300c3 cases to
12875 processor_target_table. Do not allow usage of Altivec or Spe
12876 with e300 cores. Initialize rs6000_cost for e300c2 and e300c3.
12877 (rs6000_issue_rate): Set issue rate for e300c2 and e300c3.
12878 * config/rs6000/rs6000.h (processor_type): Add
12879 PROCESSOR_PPCE300C2 and PROCESSOR_PPCE300C3.
12880 (ASM_CPU_SPEC): Add e300c2 and e300c3.
12881 * config/rs6000/rs6000.md (define_attr "cpu"): Add ppce300c2
12882 and ppce300c3. Include e300c2c3.md.
12884 2008-02-23 David Edelsohn <edelsohn@gnu.org>
12886 * config/rs6000/rs6000.h (CONSTANT_ALIGNMENT): Use STRICT_ALIGNMENT
12887 instead of TARGET_STRICT_ALIGN.
12889 2008-02-23 Joseph Myers <joseph@codesourcery.com>
12891 * explow.c (memory_address): Assert that the generated address is
12894 2008-02-23 Francois-Xavier Coudert <coudert@clipper.ens.fr>
12897 * config/darwin-protos.h: Add darwin_patch_builtins prototype.
12898 * config/darwin-ppc-ldouble-patch.def: New file.
12899 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): New macro.
12900 * config/rs6000/rs6000.c (rs6000_init_builtins): Call
12901 SUBTARGET_INIT_BUILTINS if defined.
12902 * config/darwin.c (darwin_patch_builtin, darwin_patch_builtins):
12905 2008-02-23 Andrew Pinski <andrew_pinski@playstation.sony.com>
12908 * simplify-rtx.c (simplify_binary_operation_1): Add simplification
12909 of (and X (ior (not X) Y) and (and (ior (not X) Y) X).
12911 2008-02-23 Andrew Pinski <andrew_pinski@playstation.sony.com>
12914 * c-pch.c (c_common_valid_pch): Make the "too short to be a PCH
12915 file" warning condtional on -Winvalid-PCH.
12917 2008-02-23 Daniel Jacobowitz <dan@codesourcery.com>
12919 * expmed.c (extract_bit_field): Always use adjust_address for MEM.
12921 2008-02-23 Uros Bizjak <ubizjak@gmail.com>
12925 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use "!y" to
12926 prevent reload from using MMX registers.
12927 (*mov<mode>_internal): Ditto.
12928 (*movv2sf_internal_rex64): Ditto.
12929 (*movv2sf_internal): Ditto.
12931 2008-02-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12933 PR documentation/31569
12934 * doc/install.texi2html: Use makeinfo --no-number-sections.
12936 2008-02-22 Nathan Froyd <froydnj@codesourcery.com>
12938 * config/rs6000/rs6000.c (rs6000_legitimize_address): Check to
12939 ensure that we can address an entire entity > 8 bytes. Don't
12940 generate reg+reg addressing for such data.
12942 2008-02-22 Nathan Froyd <froydnj@codesourcery.com>
12944 * config/rs6000/rs6000.h (CONSTANT_ALIGNMENT): Don't overalign
12945 strings when optimizing for size, unless the target cares about
12948 2008-02-22 Tom Tromey <tromey@redhat.com>
12950 * regclass.c (current_pass): Remove declaration.
12952 2008-02-22 Anatoly Sokolov <aesok@post.ru>
12954 * config/avr/libgcc.S (__RAMPZ__): Define.
12955 (__do_copy_data): Add for devices with 128KB code memory.
12957 2008-02-22 Nathan Froyd <froydnj@codesourcery.com>
12959 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS):
12961 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Likewise.
12963 2008-02-22 Hans-Peter Nilsson <hp@axis.com>
12965 * config/cris/cris.h (REG_CLASS_FROM_LETTER): Recognize 'b' for
12968 2008-02-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12971 * c-typeck.c (build_binary_op): Warn about floating point
12972 comparisons if FLOAT_TYPE_P, not only for REAL_TYPE.
12974 2008-02-21 Janis Johnson <janis187@us.ibm.com>
12977 * config/rs6000/rs6000.c (rs6000_altivec_abi): Clarify comment.
12978 (rs6000_explicit_options): Split abi into spe_abi and altivec_abi,
12980 (rs6000_override_options): Set altivec_abi as default, not override,
12981 for 64-bit GNU/Linux; for 32-bit GNU/Linux default to altivec_abi for
12982 TARGET_ALTIVEC; default to TARGET_ALTIVEC_VRSAVE when AltiVec ABI
12983 is used; use new member spe_abi.
12984 (rs6000_handle_option): Set rs6000_explicit_options.vrsave; use
12985 spe_abi and altivec_abi.
12987 2008-02-22 Tomas Bily <tbily@suse.cz>
12989 * tree-vectorizer.c (vect_is_simple_reduction): Fix comment typo.
12991 2008-02-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12994 * config.build (build_file_translate): Set to `CMD //c' only if
12996 * Makefile.in (build_file_translate): Improve comment.
12998 2008-02-21 Jan Hubicka <jh@suse.cz>
13000 * predict.def (PRED_TREE_OPCODE_POSITIVE, PRED_TREE_OPCODE_NONEQUAL,
13001 PRED_TREE_OPCODE_POSITIVE, PRED_TREE_OPCODE_NONEQUAL, PRED_CALL,
13002 PRED_TREE_EARLY_RETURN, PRED_NULL_RETURN): Update.
13004 2008-02-21 Michael Matz <matz@suse.de>
13007 * config/i386/i386.c (ix86_expand_branch): Add missing breaks.
13009 2008-02-21 Uros Bizjak <ubizjak@gmail.com>
13011 * config/i386/i386.md (mov<mode>cc): Macroize expander from movsfcc,
13012 movdfcc and movxfcc using X87MODEF mode iterator and SSE_FLOAT_MODE_P
13013 as insn constraint.
13014 * config/i386/sse.md (<sse>_movup<ssemodesuffixf2c>): Macroize insn
13015 from sse_movups adn sse2_movupd using SSEMODEF2P mode iterator and
13016 SSE_VEC_FLOAT_MODE_P as insn constraint.
13017 (<sse>_movmskp<ssemodesuffixf2c>): Ditto from similar patterns.
13018 (sse4a_movnt<mode>): Macroize insn from sse4a_movntsf and
13019 sse4a_movntdf using MODEF mode iterator.
13020 (sse4a_vmmovnt<mode>): Macroize insn form sse4a_vmmovntv2df and
13021 sse4a_vmmovntv4sf using SSEMODEF2P mode iterator.
13022 (sse4_1_blendp<ssemodesuffixf2c>): Ditto from similar patterns.
13023 (sse4_1_blendvp<ssemodesuffixf2c>): Ditto.
13024 (sse4_1_dpp<ssemodesuffixf2c>): Ditto.
13025 (sse4_1_roundp<ssemodesuffixf2c>): Ditto.
13026 (sse4_1_rounds<ssemodesuffixf2c>): Ditto.
13028 2008-02-21 Richard Guenther <rguenther@suse.de>
13030 * tree.def (PAREN_EXPR): New tree code.
13031 * fold-const.c (fold_unary): Remove PAREN_EXPR around constants
13033 * tree-pretty-print.c (dump_generic_node): Handle PAREN_EXPR.
13034 * expr.c (expand_expr_real_1): Likewise.
13035 * tree-inline.c (estimate_num_insns_1): Likewise.
13036 * tree-complex.c (expand_complex_move): Likewise.
13037 * tree-vectorizer.c (vect_is_simple_use): Treat PAREN_EXPR (x)
13040 2008-02-20 Kaz Kojima <kkojima@gcc.gnu.org>
13043 * config/sh/sh.c (find_barrier): Don't go past 'from' argument.
13045 2008-02-20 Kaz Kojima <kkojima@gcc.gnu.org>
13048 * config/sh/sh.md (jump_compact): Disable for crossing jumps.
13050 * config/sh/sh.c (find_barrier): Don't go past
13051 NOTE_INSN_SWITCH_TEXT_SECTIONS note.
13053 2008-02-20 DJ Delorie <dj@redhat.com>
13055 * config/h8300/h8300.md (insv): Force source operand to be a register.
13057 * config/h8300/h8300.c (h8300_expand_epilogue): Emit return insn
13058 as a jump, not as a plain insn.
13060 2008-02-20 Seongbae Park <seongbae.park@gmail.com>
13062 * doc/invoke.texi (Warning Options): Add new option
13063 -Wframe-larger-than=.
13064 (-Wframe-larger-than): Document.
13066 * flags.h (warn_frame_larger_than, frame_larger_than_size):
13067 Add declarations for new option variables.
13069 * final.c (final_start_function): Check the frame size
13070 before emission and issue a Wframe-larger-than warning.
13072 * opts.c (warn_frame_larger_than, frame_larger_than_size):
13073 Add definitions for new option variables.
13074 (common_handle_option): Handle new option OPT_Wframe_larger_than_.
13076 * common.opt (Wframe-larger-than=): New option.
13078 2008-02-20 Uros Bizjak <ubizjak@gmail.com>
13080 * config/i386/sse.md (<sse>_vmmul<mode>3): Fix typo in asm template.
13081 (<sse>_div<mode>3): Ditto.
13082 (<sse>_vmdiv<mode>3): Ditto.
13083 (<sse>_vmsqrt<mode>2): Ditto.
13084 (*smax<mode>3): Ditto.
13085 (sse5_frcz<mode>2): Ditto.
13086 (sse5_vmfrcz<mode>2): Ditto. Use TARGET_SSE5 instead of TARGET_ROUND
13087 as insn constraint.
13089 2008-02-20 Richard Guenther <rguenther@suse.de>
13091 PR middle-end/35265
13092 * builtins.c (validate_arg): If we want an INTEGER_TYPE,
13093 be happy with INTEGRAL_TYPE_P.
13095 2008-02-20 Richard Guenther <rguenther@suse.de>
13097 * fold-const.c (split_tree): Associate floatig-point expressions
13098 if flag_associative_math is set.
13100 2008-02-20 Richard Guenther <rguenther@suse.de>
13102 * tree.h (fold_real_zero_addition_p): Declare.
13103 * fold-const.c (fold_real_zero_addition_p): Export.
13104 * tree-ssa-reassoc.c (eliminate_using_constants): Also handle
13105 floating-point operations with zero and one.
13107 2008-02-20 Paolo Bonzini <bonzini@gnu.org>
13109 * doc/install.texi: Correct references to CFLAGS, replacing them
13110 with BOOT_CFLAGS. Document flags used during bootstrap for
13113 2008-02-20 Uros Bizjak <ubizjak@gmail.com>
13115 * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): New define.
13116 * config/i386/i386.md (*sse_setcc<mode>): Macroize from *sse_setccsf
13117 and *sse_setccdf using MODEF mode iterator and SSE_FLOAT_MODE_P as
13119 (smin<mode>3): Ditto from similar patterns.
13120 (smax<mode>3): Ditto.
13121 (*ieee_smin<mode>3): Ditto.
13122 (*ieee_smax<mode>3): Ditto.
13123 * config/i386/sse.md (sse): New mode attribute.
13124 (mov<mode>): Macroize expander from movv4sf and movv2df using
13125 SSEMODEF2P mode iterator.
13126 (<sse>_movnt<mode>): Ditto from similar patterns. Use
13127 SSE_VEC_FLOAT_MODE_P as insn constraint.
13128 (storent<mode>): Ditto.
13129 (storent<mode>): Macroize expander from storentsf and storentdf using
13130 MODEF mode iterator.
13131 (neg<mode>2): Macroize from negv4sf2 and negv2df2 using SSEMODEF2P
13132 mode iterator and SSE_VEC_FLOAT_MODE_P as insn constraint.
13133 (abs<mode>2): Ditto from similar patterns.
13134 (add<mode>3, *add<mode>3, <sse>_vmadd<mode>3): Ditto.
13135 (sub<mode>3, *sub<mode>3, <sse>_vmsub<mode>3): Ditto.
13136 (<sse>_div<mode>3, <sse>_vmdiv<mode>3): Ditto.
13137 (<sse>_vmsqrt<mode>2): Ditto.
13138 (smin<mode>3, *smin<mode>3_finite, *smin<mode>3)
13139 (<sse>_vmsmin<mode>3, *ieee_smin<mode>3): Ditto.
13140 (smax<mode>3, *smax<mode>3_finite, *smax<mode>3)
13141 (<sse>_vmsmax<mode>3, *ieee_smax<mode>3): Ditto.
13142 (<sse>_maskcmp<mode>3): Macroize from sse_maskcmpv4sf3,
13143 sse_maskcmpsf3, sse2_maskcmpv2df3 and sse2_maskcmpdf3 using SSEMODEF4
13144 mode iterator. Use SSE_FLOAT_MODE_P with SSE_VEC_FLOAT_MODE_P as
13146 (<sse>_comi): Macroize from sse_comi and sse2_comi using MODEF mode
13147 iterator and SSE_FLOAT_MODE_P as insn constraint.
13148 (<sse>_ucomi): Ditto from similar patterns.
13149 (<sse>_vmmaskcmp<mode>3): Macroize from sse_vmmaskcmpv4sf3 and
13150 sse2_vmmaskcmpv2df3 using SSEMODEF2P mode iterator and
13151 SSE_VEC_FLOAT_MODE_P as insn constraint.
13152 (vcond<mode>): Ditto from similar patterns.
13153 (and<mode>3, *and<mode>3): Ditto.
13154 (<sse>_nand<mode>3): Ditto.
13155 (ior<mode>3, *ior<mode>3): Ditto.
13156 (xor<mode>3, *xor<mode>3): Ditto.
13157 (*and<mode>3): Macroize from *andsf3 and *anddf3 using MODEF mode
13158 iterator and SSE_FLOAT_MODE_P as insn constraint.
13159 (*nand<mode>3): Ditto from similar patterns.
13160 (*ior<mode>3): Ditto.
13161 (*xor<mode>3): Ditto.
13163 2008-02-20 Ira Rosen <irar@il.ibm.com>
13165 * config/spu/spu.md (vec_unpacku_hi_v8hi, vec_unpacku_lo_v8hi,
13166 vec_unpacks_hi_v8hi, vec_unpacks_lo_v8hi, vec_unpacku_hi_v16qi,
13167 vec_unpacku_lo_v16qi, vec_unpacks_lo_v16qi): Implement.
13169 2008-02-19 Jan Hubicka <jh@suse.cz>
13171 * predict.c (tree_bb_level_predictions): Remove variable next
13172 mistakely introduced by previous commit.
13174 2008-02-19 Jan Hubicka <jh@suse.cz>
13176 * predict.c (predict_paths_leading_to): Rewrite.
13177 (predict_paths_for_bb): New.
13178 (tree_bb_level_predictions): Update call of predict_paths_leading_to.
13180 2008-02-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13183 * Makefile.in (build_file_translate): New.
13184 (gcc-vers.texi): Use it for translating $(abs_srcdir).
13185 * config.build (build_file_translate): Set to `CMD //c' on MinGW.
13186 * configure.ac (build_file_translate): Substitute it.
13187 * configure: Regenerate.
13189 2008-02-19 Jan Hubicka <jh@suse.cz>
13191 PR rtl-optimization/34408
13192 * see.c (see_def_extension_not_merged): Copy subreg so we don't have
13195 2008-02-19 Jan Hubicka <jh@suse.cz>
13197 PR middle-end/28779
13198 * tree-inline.c (estimate_num_insns_1): Fix counting of cost of
13201 2008-02-19 H.J. Lu <hongjiu.lu@intel.com>
13204 * config/i386/i386-modes.def: Revert the last DI alignment
13205 change until Ada people can look into it.
13207 2008-02-19 Nick Clifton <nickc@redhat.com>
13209 * opts.c (print_specific_help): Fix typo in --help text.
13211 2008-02-19 Jakub Jelinek <jakub@redhat.com>
13214 * config/i386/cpuid.h (__cpuid, __get_cpuid_max): Use special
13215 32-bit inline asm without asm alternatives for host GCC < 3.0.
13217 2008-02-19 Richard Guenther <rguenther@suse.de>
13219 PR tree-optimization/34989
13220 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Re-structure.
13221 Allow propagation to INDIRECT_REF if we can simplify only.
13223 2008-02-19 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
13225 * c-common.c (warn_for_collisions_1): Use appropriate option when
13228 2008-02-19 Nick Clifton <nickc@redhat.com>
13231 * opts.c (undocumented_msg): Leave blank unless checking is enabled.
13232 (handle_options): Fix indentation.
13233 (print_filtered_help): If no language-specific options were
13234 displayed tell the user how to list all the options supported by
13235 the language's front-end.
13236 (print_specific_help): Fix indentation and remove duplicate line.
13237 (common_handle_option): Handle the -v option.
13238 For --help enable the display of undocumented options if the -v
13239 switch has been included on the command line.
13240 For --help= check for overlaps in the arguments between the option
13241 classes and the language names and issue a warning when they
13242 cannot be disambiguated.
13243 * c.opt (v): Pass on to the common option handler.
13245 2008-02-19 Revital Eres <eres@il.ibm.com>
13247 * modulo-sched.c (sms_schedule): Change dump message when
13248 create_ddg function fails.
13249 (try_scheduling_node_in_cycle): Rename row to cycle.
13250 (print_partial_schedule): Rename CYCLE to ROW.
13252 2008-02-19 Christian Bruel <christian.bruel@st.com>
13253 Zdenek Dvorak <ook@ucw.cz>
13255 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Check step alignment.
13257 2008-02-19 Uros Bizjak <ubizjak@gmail.com>
13260 * config/i386/i386.md (*x86_movsicc_0_m1_se): New insn pattern.
13261 (*x86_movdicc_0_m1_se): Ditto.
13263 2008-02-19 Uros Bizjak <ubizjak@gmail.com>
13265 * config/i386/sfp-machine.h (__gcc_CMPtype): New typedef.
13266 (CMPtype): Define as __gcc_CMPtype.
13267 * config/rs6000/sfp-machine.h (__gcc_CMPtype): New typedef.
13268 (CMPtype): Define as __gcc_CMPtype.
13270 2008-02-19 Hans-Peter Nilsson <hp@axis.com>
13272 Support valgrind 3.3 for --enable-checking=valgrind.
13273 * system.h: Consolidate ENABLE_VALGRIND_CHECKING-dependent defines
13275 [!VALGRIND_MAKE_MEM_NOACCESS]: Define as VALGRIND_MAKE_NOACCESS.
13276 [!VALGRIND_MAKE_MEM_DEFINED]: Define as VALGRIND_MAKE_READABLE.
13277 [!VALGRIND_MAKE_MEM_UNDEFINED]: Define as VALGRIND_MAKE_WRITABLE.
13278 * ggc-common.c: Remove ENABLE_VALGRIND_CHECKING-dependent defines.
13279 Replace use of VALGRIND_MAKE_READABLE, VALGRIND_MAKE_WRITABLE, and
13280 VALGRIND_MAKE_NOACCESS with VALGRIND_MAKE_MEM_DEFINED,
13281 VALGRIND_MAKE_MEM_UNDEFINED, and VALGRIND_MAKE_MEM_NOACCESS
13283 * ggc-zone.c: Similar.
13284 * ggc-page.c: Similar.
13286 2008-02-19 Paul Brook <paul@codesourcery.com>
13289 * config/arm/ieee754-df.S: Fix do_it typo.
13290 * config/arm/ieee754-sf.S: Fix do_it typo.
13292 2008-02-18 H.J. Lu <hongjiu.lu@intel.com>
13295 * config/i386/i386.c (OPTION_MASK_ISA_MMX_SET): New.
13296 (OPTION_MASK_ISA_3DNOW_SET): Likewise.
13297 (OPTION_MASK_ISA_SSE_SET): Likewise.
13298 (OPTION_MASK_ISA_SSE2_SET): Likewise.
13299 (OPTION_MASK_ISA_SSE3_SET): Likewise.
13300 (OPTION_MASK_ISA_SSSE3_SET): Likewise.
13301 (OPTION_MASK_ISA_SSE4_1_SET): Likewise.
13302 (OPTION_MASK_ISA_SSE4_2_SET): Likewise.
13303 (OPTION_MASK_ISA_SSE4_SET): Likewise.
13304 (OPTION_MASK_ISA_SSE4A_SET): Likewise.
13305 (OPTION_MASK_ISA_SSE5_SET): Likewise.
13306 (OPTION_MASK_ISA_3DNOW_A_UNSET): Likewise.
13307 (OPTION_MASK_ISA_MMX_UNSET): Updated.
13308 (OPTION_MASK_ISA_3DNOW_UNSET): Updated.
13309 (OPTION_MASK_ISA_SSE_UNSET): Likewise.
13310 (OPTION_MASK_ISA_SSE3_UNSET): Likewise.
13311 (OPTION_MASK_ISA_SSSE3_UNSET): Likewise.
13312 (OPTION_MASK_ISA_SSE4_1_UNSET): Likewise.
13313 (OPTION_MASK_ISA_SSE4_2_UNSET): Likewise.
13314 (OPTION_MASK_ISA_SSE4A_UNSET): Likewise.
13315 (OPTION_MASK_ISA_SSE5_UNSET): Likewise.
13316 (OPTION_MASK_ISA_SSE4): Removed.
13317 (ix86_handle_option): Turn on bits in ix86_isa_flags and
13318 ix86_isa_flags_explicit with OPTION_MASK_ISA_XXX_SET for -mXXX.
13319 (override_options): Don't turn on implied SSE/MMX bits in
13322 2008-02-18 H.J. Lu <hongjiu.lu@intel.com>
13324 * config/i386/i386-modes.def: Use 4 byte alignment on DI for
13327 2008-02-18 Joey Ye <joey.ye@intel.com>
13329 PR middle-end/34921
13330 * tree-nested.c (insert_field_into_struct): Set type alignment
13331 to field alignment if the former is less than the latter.
13333 2008-02-18 Jakub Jelinek <jakub@redhat.com>
13335 * BASE-VER: Set to 4.4.0.
13337 2008-02-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13339 * doc/c-tree.texi: Use @dots{} and @enddots{} where appropriate.
13340 * doc/cfg.texi: Likewise.
13341 * doc/extend.texi: Likewise.
13342 * doc/gty.texi: Likewise.
13343 * doc/invoke.texi: Likewise.
13344 * doc/loop.texi: Likewise.
13345 * doc/md.texi: Likewise.
13346 * doc/passes.texi: Likewise.
13347 * doc/rtl.texi: Likewise.
13348 * doc/sourcebuild.texi: Likewise.
13349 * doc/tm.texi: Likewise.
13350 * doc/tree-ssa.texi: Likewise.
13352 2008-02-17 Richard Guenther <rguenther@suse.de>
13354 PR middle-end/35227
13355 * tree-complex.c (init_parameter_lattice_values): Handle parameters
13356 without default definition.
13358 2008-02-17 Richard Guenther <rguenther@suse.de>
13360 PR tree-optimization/35231
13361 * tree-vrp.c (register_edge_assert_for): Do not assume A == 0
13364 2008-02-17 Uros Bizjak <ubizjak@gmail.com>
13367 2008-02-15 Uros Bizjak <ubizjak@gmail.com>
13368 * config/i386/sfp-machine.h (CMPtype): Define as typedef using
13369 libgcc_cmp_return mode.
13371 2008-02-16 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
13374 * doc/invoke.texi (-std): Clarify description of -std= and -ansi.
13376 2008-02-16 Ralf Corsepius <ralf.corsepius@rtems.org>
13378 * config/m68k/t-rtems (M68K_MLIB_CPU): Add 5208, 5307, 5407, 5475
13381 2008-02-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13383 * doc/c-tree.texi: Use `@.' where appropriate.
13384 * doc/extend.texi: Likewise.
13385 * doc/install.texi: Likewise.
13386 * doc/invoke.texi: Likewise.
13387 * doc/loop.texi: Likewise.
13388 * doc/makefile.texi: Likewise.
13389 * doc/md.texi: Likewise.
13390 * doc/passes.texi: Likewise.
13391 * doc/standards.texi: Likewise.
13392 * doc/tm.texi: Likewise.
13394 2008-02-15 Jakub Jelinek <jakub@redhat.com>
13396 PR middle-end/35196
13397 * omp-low.c (expand_omp_for_generic): Don't initialize fd->v
13399 (expand_omp_for_static_nochunk): Initialize fd->v in seq_start_bb
13400 rather than in entry_bb.
13402 2008-02-15 Uros Bizjak <ubizjak@gmail.com>
13404 * config/i386/sfp-machine.h (CMPtype): Define as typedef using
13405 libgcc_cmp_return mode.
13407 2008-02-15 Jakub Jelinek <jakub@redhat.com>
13409 PR middle-end/35130
13410 * tree-nested.c (convert_call_expr): Put FRAME.* vars into
13411 OMP_CLAUSE_SHARED rather than OMP_CLAUSE_FIRSTPRIVATE clause.
13413 2008-02-15 Richard Guenther <rguenther@suse.de>
13414 Zdenek Dvorak <ook@ucw.cz>
13416 PR tree-optimization/35164
13417 * tree-flow.h (stmt_references_abnormal_ssa_name): Declare.
13418 * tree-dfa.c (stmt_references_abnormal_ssa_name): New function.
13419 * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_vars):
13420 Only propagate addresses which do not have abnormal SSA_NAMEs
13423 2008-02-15 Joseph Myers <joseph@codesourcery.com>
13426 * config/m68k/m68k.h (DWARF_CIE_DATA_ALIGNMENT): Define.
13428 2008-02-15 Jan Hubicka <jh@suse.cz>
13430 PR middle-end/35149
13431 * ipa.c (cgraph_remove_unreachable_nodes): Clear local.inlinable flag.
13433 2008-02-15 Uros Bizjak <ubizjak@gmail.com>
13435 PR middle-end/34621
13436 * function.c (pad_to_arg_alignment): Remove test for STACK_BOUNDARY
13437 when calculating alignment_pad.
13439 2008-02-15 Uros Bizjak <ubizjak@gmail.com>
13441 * config/i386/i386.h (CLEAR_RATIO): Use MIN macro.
13442 (WIDEST_HARDWARE_FP_SIZE): Use LONG_DOUBLE_TYPE_SIZE define.
13443 * config/i386/darwin.h (PREFERRED_STACK_BOUNDARY): Use MAX macro
13444 and STACK_BOUNDARY define.
13446 2008-02-14 Danny Smith <dannysmith@users.sourceforge.net>
13448 PR preprocessor/35061
13449 * c-pragma.c (handle_pragma_pop_macro): Check that
13450 pushed_macro_table has been allocated.
13452 2008-02-14 Eric Botcazou <ebotcazou@adacore.com>
13454 PR middle-end/35136
13455 * gimplify.c (force_gimple_operand_bsi): Revert 2008-02-12 change.
13456 (force_gimple_operand): Likewise.
13457 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Add new cases
13458 for TARGET_MEM_REF and CONVERT_EXPR/NON_LVALUE_EXPR/NOP_EXPR.
13459 Also recurse on the operand for regular VIEW_CONVERT_EXPRs.
13460 (find_interesting_uses_address): Check addressability and alignment
13461 of the base expression only after substituting bases of IVs into it.
13463 2008-02-14 Michael Matz <matz@suse.de>
13466 * function.c (instantiate_virtual_regs_in_insn): Reload address
13467 before falling back to reloading the whole operand.
13469 2008-02-14 Andreas Krebbel <krebbel1@de.ibm.com>
13471 * config/s390/s390.c (s390_mainpool_start): Emit the pool
13472 before the first section switch note.
13474 2008-02-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13476 * doc/bugreport.texi: Update copyright years.
13477 * doc/c-tree.texi: Likewise.
13478 * doc/cfg.texi: Likewise.
13479 * doc/cpp.texi: Likewise.
13480 * doc/cppinternals.texi: Likewise.
13481 * doc/fragments.texi: Likewise.
13482 * doc/frontends.texi: Likewise.
13483 * doc/gcc.texi: Likewise.
13484 * doc/gty.texi: Likewise.
13485 * doc/hostconfig.texi: Likewise.
13486 * doc/implement-c.texi: Likewise.
13487 * doc/libgcc.texi: Likewise.
13488 * doc/loop.texi: Likewise.
13489 * doc/makefile.texi: Likewise.
13490 * doc/options.texi: Likewise.
13491 * doc/passes.texi: Likewise.
13492 * doc/rtl.texi: Likewise.
13493 * doc/sourcebuild.texi: Likewise.
13494 * doc/standards.texi: Likewise.
13495 * doc/tree-ssa.texi: Likewise.
13496 * doc/trouble.texi: Likewise.
13498 * doc/extend.texi: Use @: or add comma where appropriate.
13499 * doc/invoke.texi: Likewise.
13500 * doc/tm.texi: Likewise.
13502 2008-02-14 Alan Modra <amodra@bigpond.net.au>
13505 * config/rs6000/rs6000.md (restore_stack_block): Force operands[1]
13508 2008-02-14 Jesper Nilsson <jesper.nilsson@axis.com>
13510 * doc/md.texi (clz, ctz): Add reference.
13511 * doc/rtl.texi (clz, ctz): Likewise.
13513 2008-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13516 * Makefile.in (gcc-vers.texi): Use abs_srcdir for the value of
13519 2008-02-13 Andreas Krebbel <krebbel1@de.ibm.com>
13521 * config/s390/s390.c (struct constant_pool): New field
13522 emit_pool_after added.
13523 (s390_mainpool_start): Set the emit_pool_after flag according
13524 to the section switch notes.
13525 (s390_mainpool_finish): Consider emit_pool_after when emitting
13526 the literal pool at the end of the function.
13527 (s390_chunkify_start): Force literal pool splits at section
13530 2008-02-13 Michael Matz <matz@suse.de>
13533 * var-tracking.c (clobber_variable_part): Correctly traverse the
13536 2008-02-13 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
13539 * doc/invoke.texi (Debugging Options): Remove -fdump-tree-inlined.
13540 Add -fdump-ipa-inline.
13541 * tree-dump.c (dump_files): Remove tree-inlined dump.
13542 * tree-pass.h (tree_dump_index): Remove TDI_inlined.
13544 2008-02-12 Richard Guenther <rguenther@suse.de>
13546 PR tree-optimization/35171
13547 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Deal with
13550 2008-02-12 Richard Guenther <rguenther@suse.de>
13552 PR middle-end/35163
13553 * fold-const.c (fold_widened_comparison): Use get_unwidened in
13554 value-preserving mode. Disallow final truncation.
13556 2008-02-12 Eric Botcazou <ebotcazou@adacore.com>
13558 PR middle-end/35136
13559 * gimplify.c (force_gimple_operand_bsi): Move SSA renaming
13560 code from here to...
13561 (force_gimple_operand): ...here.
13563 2008-02-12 Jakub Jelinek <jakub@redhat.com>
13566 * tree-sra.c (sra_build_assignment): fold_convert SRC if copying
13567 non-compatible pointers.
13568 (generate_element_copy): If SRC and DST are RECORD_TYPEs with
13569 different FIELD_DECLs, try harder by comparing field offsets, sizes
13572 PR inline-asm/35160
13573 * function.c (match_asm_constraints_1): Don't replace the same input
13576 2008-02-12 Anatoly Sokolov <aesok@post.ru>
13578 * config/avr/avr.h (AVR_HAVE_RAMPZ): Define.
13579 * config/avr/avr.c (expand_prologue): Save RAMPZ register.
13580 (expand_epilogue): Restore RAMPZ register.
13581 * config/avr/avr.md (RAMPZ_ADDR): New constant.
13583 2008-02-11 Kai Tietz <kai.tietz@onevision.com>
13585 * config/i386/cygwin.asm: (__alloca): Correct calling
13586 convention and alignment.
13587 (__chkstk): Force 8 byte stack alignment.
13589 2008-02-11 Uros Bizjak <ubizjak@gmail.com>
13590 Richard Guenther <rguenther@suse.de>
13592 PR tree-optimization/33992
13593 * tree-ssa-loop-im.c (rewrite_bittest): Fixup the type of
13594 the zero we compare against.
13596 2008-02-10 Danny Smith <dannysmith@users.sourceforge.net>
13598 PR libfortran/35063
13599 * gthr-win32.h (__gthread_mutex_destroy_function): New function
13600 to CloseHandle after unlocking to prevent accumulation of handle
13603 2008-02-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13605 PR middle_end/34150
13606 * pa.c (legitimize_pic_address): Add REG_EQUAL note on sets with a
13607 pic_label_operand source. Similarly, add a REG_LABEL_OPERAND note
13608 and update LABEL_NUSES during and after reload.
13610 2008-02-08 Steven Bosscher <stevenb.gcc@gmail.com>
13612 PR middle-end/34627
13613 * combine.c (simplify_if_then_else): Make sure the comparison is
13614 against const0_rtx when simplifying to (abs x) or (neg (abs X)).
13616 2008-02-08 Richard Sandiford <rsandifo@nildram.co.uk>
13619 * double-int.h: Don't include gmp.h for GENERATOR_FILEs.
13620 (mpz_set_double_int, mpz_get_double_int): Hide from GENERATOR_FILEs.
13621 * real.h: Don't include gmp.h or mpfr.h for GENERATOR_FILEs.
13622 (real_from_mpfr, mpfr_from_real): Hide from GENERATOR_FILEs.
13623 * tree.h (get_type_static_bounds): Likewise.
13625 2008-02-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13627 * doc/invoke.texi (Option Summary, C++ Dialect Options)
13628 (Objective-C and Objective-C++ Dialect Options, Warning Options):
13629 Make -Wfoo language annotations match what the compiler outputs.
13631 2008-02-08 Sa Liu <saliu@de.ibm.com>
13633 * config/spu/spu-builtins.def: Fixed wrong parameter type in spu
13634 intrinsics spu_convts, spu_convtu, spu_convtf.
13636 2008-02-08 Hans-Peter Nilsson <hp@axis.com>
13638 * doc/extend.texi (Function Attributes) <noinline>: Mention
13639 asm ("") as method to keep calls.
13641 2008-02-07 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
13644 * doc/options.texi (Options): Replace references to opts.sh with
13646 * opts-common.c: Likewise.
13647 * optc-gen.awk: Likewise.
13649 2008-02-07 Andreas Krebbel <krebbel1@de.ibm.com>
13651 * config/s390/s390.h (FUNCTION_ARG_REGNO_P): Fix fprs for 64 bit.
13653 2008-02-07 Richard Henderson <rth@redhat.com>
13656 * config/alpha/alpha.c (alpha_emit_xfloating_compare): Use an
13657 EXPR_LIST for the REG_EQUAL instead of a comparison with a
13660 2008-02-07 Uros Bizjak <ubizjak@gmail.com>
13662 PR tree-optimization/35085
13663 * tree-ssa-reassoc.c (rewrite_expr_tree): Enable destructive update
13664 for operand entry oe2 in addition to operand entry oe3 in order to
13665 expose more opportunities for vectorizer sum reduction.
13667 2008-02-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13670 * Makefile.in (LIBS): Remove $(GMPLIBS).
13671 (cc1-dummy, cc1): Add $(GMPLIBS).
13673 2008-02-06 Jan Hubicka <jh@suse.cz>
13676 * i386.md (moddf_integer): Do not produce partial memory stalls for
13677 targets where it hurts.
13679 2008-02-06 Uros Bizjak <ubizjak@gmail.com>
13682 * optabs.c (expand_float): Do not check for decimal modes when
13683 expanding unsigned integer through signed conversion.
13685 2008-02-06 Nick Clifton <nickc@redhat.com>
13687 * config/stormy16/stormy16.md (eqbranchsi): Replace a match_dup
13688 inside the clobber with a match_operand and duplicated operand
13689 number in the constraint.
13690 (ineqbranchsi): Delete redundant comment.
13692 2008-02-06 Ralf Corsepius <ralf.corsepius@rtems.org>
13694 * config/arm/rtems-elf.h (TARGET_OS_CPP_BUILTINS): Add
13695 builtin_define ("__USE_INIT_FINI__").
13696 * config/h8300/t-rtems (MULTILIB_OPTION,MULTILIB_DIRNAMES): Add
13698 * gthr-rtems.h: Remove __GTHREAD_MUTEX_INIT.
13700 2008-02-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13702 PR documentation/30330
13703 * doc/invoke.texi (C++ Dialect Options)
13704 (Objective-C and Objective-C++ Dialect Options, Warning Options):
13705 For each warning option -Wfoo that allows -Wno-foo, ensure both
13706 -Wfoo and -Wno-foo are listed in the option index. Fix index
13707 entry of -Wswitch-default, index -Wnormalized= including the
13708 `=', and -Wlarger-than-@var{len} including @var{len}.
13710 2008-02-05 Uros Bizjak <ubizjak@gmail.com>
13712 * config/i386/i386.md (floatunssisf2): Use
13713 ix86_expand_convert_uns_sisf_sse also for TARGET_SSE.
13714 (floatunssi<mode>2): Rename from floatunssisf2 and floatunssidf2.
13715 Macroize expander using MODEF mode iterator.
13717 2008-02-05 Diego Novillo <dnovillo@google.com>
13719 http://gcc.gnu.org/ml/gcc-patches/2008-02/msg00140.html
13722 * tree-vrp.c (vrp_evaluate_conditional): Revert fix for PR 33738.
13724 2008-02-05 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13727 * toplev.c (print_version): Honor `indent' for GMP/MPFR warnings.
13729 2008-02-05 H.J. Lu <hongjiu.lu@intel.com>
13732 * config/i386/i386.c (ix86_function_sseregparm): Add an arg
13733 to indicate if a message should be generated.
13734 (init_cumulative_args): Updated.
13735 (function_value_32): Likewise.
13737 2008-02-05 Joseph Myers <joseph@codesourcery.com>
13739 * doc/include/texinfo.tex: Update to version 2008-02-04.16.
13741 2008-02-05 Uros Bizjak <ubizjak@gmail.com>
13744 * config/i386/i386.md (floatunsisf2): Enable for TARGET_SSE_MATH only.
13745 Call ix86_expand_convert_uns_sisf_sse for TARGET_SSE2.
13747 2008-02-04 Diego Novillo <dnovillo@google.com>
13749 http://gcc.gnu.org/ml/gcc-patches/2008-02/msg00110.html
13752 * tree-vrp.c (vrp_evaluate_conditional): With
13753 -Wtype-limits, emit a warning when comparing against a
13754 constant outside the natural range of OP0's type.
13756 2008-02-04 Richard Guenther <rguenther@suse.de>
13758 PR middle-end/33631
13759 * expr.c (count_type_elements): Give for unions instead of
13762 2008-02-04 Richard Guenther <rguenther@suse.de>
13764 PR middle-end/35043
13765 * gimplify.c (gimplify_init_ctor_eval): Convert array indices
13766 to TYPE_DOMAINs base type instead of using bitsizetype here.
13768 2008-02-03 Jason Merrill <jason@redhat.com>
13770 * print-tree.c (print_node) [CONSTRUCTOR]: Print elements.
13772 2008-02-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13775 * doc/invoke.texi (C++ Dialect Options, Optimize Options)
13776 (HPPA Options, i386 and x86-64 Options, IA-64 Options)
13777 (RS/6000 and PowerPC Options): Fix typos and markup.
13778 * doc/passes.texi (Tree-SSA passes): Likewise.
13780 2008-02-02 Michael Matz <matz@suse.de>
13783 * postreload-gcse.c (record_last_reg_set_info_regno): Renamed
13784 from record_last_reg_set_info.
13785 (record_last_reg_set_info): Take an RTX argument, iterate over all
13786 constituent hardregs.
13787 (record_last_set_info, record_opr_changes): Change calls to
13788 new signature or to record_last_reg_set_info_regno.
13790 2008-02-02 Gerald Pfeifer <gerald@pfeifer.com>
13792 * doc/extend.texi (X86 Built-in Functions): Fix grammar.
13794 2008-02-01 Hans-Peter Nilsson <hp@axis.com>
13796 PR rtl-optimization/34773
13797 * reg-notes.def (EQUAL): Mention significance of combination of
13798 REG_EQUAL and REG_RETVAL.
13799 * fwprop.c (try_fwprop_subst): Don't add REG_EQUAL to an
13800 insn that has a REG_RETVAL.
13802 2008-02-01 Roger Sayle <roger@eyesopen.com>
13805 * configure.ac (--enable-fixed-point): Disable unless explicitly
13807 * configure: Regenerate.
13809 2008-02-01 Richard Guenther <rguenther@suse.de>
13812 * invoke.texi (-finline-limit): Remove no longer true parts
13813 of the documentation. Note that there is no default value.
13815 2008-02-01 Andrew Pinski <pinskia@gmail.com>
13816 Mark Mitchell <mark@codesourcery.com>
13817 Ben Elliston <bje@au.ibm.com>
13820 * doc/extend.texi (Other Builtins): Document.
13822 2008-01-31 Tom Browder <tom.browder@gmail.com>
13824 * doc/c-tree.texi (Types): Fix grammar.
13825 (Expression trees): Ditto.
13826 * doc/passes.texi (Tree-SSA passes): Ditto.
13828 * doc/configterms.texi (Configure Terms): Fix typo.
13829 * doc/cpp.texi (Common Predefined Macros): Ditto.
13830 * doc/md.texi (Machine Constraints): Ditto.
13832 * doc/makefile.texi (Makefile): Add comma.
13834 2008-01-31 Tom Browder <tom.browder@gmail.com>
13835 Gerald Pfeifer <gerald@pfeifer.com>
13837 * doc/sourcebuild.texi (Front End): Remove references to CVS
13838 and CVSROOT/modules.
13839 (Texinfo Manuals): Replace reference to CVS by one to SVN.
13840 (Back End): Remove reference to CVS.
13842 2008-01-31 Richard Sandiford <rsandifo@nildram.co.uk>
13845 * config/mips/mips.c (gen_load_const_gp): New function, taking a
13847 (mips16_gp_pseudo_reg): ...here.
13848 * config/mips/mips.md (load_const_gp): Replace with...
13849 (load_const_gp_<mode>): ...this :P-based insn.
13851 2008-01-31 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
13853 * doc/invoke.texi (-ansi): Mention explicitly corresponding -std=
13854 options. Minor fixes.
13855 (-std): Move reference to standards closer to where language
13856 standards are first mentioned.
13858 2008-01-31 Richard Sandiford <rsandifo@nildram.co.uk>
13860 PR rtl-optimization/34995
13861 * reload.c (alternative_allows_const_pool_ref): Take an rtx
13862 parameter and return a bool. If the rtx parameter is nonnull,
13863 check that it satisfies an EXTRA_MEMORY_CONSTRAINT.
13864 (find_reloads): Update call accordingly. Pass the new operand
13865 if it needed no address reloads, otherwise pass null.
13867 2008-01-30 Richard Henderson <rth@redhat.com>
13870 * tree.c (build_type_attribute_qual_variant): Skip TYPE_DOMAIN
13871 for unbounded arrays.
13873 2008-01-30 Silvius Rus <rus@google.com>
13875 * config/i386/xmmintrin.h (_mm_prefetch): Add const to first arg.
13877 2008-01-30 Jan Hubicka <jh@suse.cz>
13880 * i386.c (init_cumulative_args): Use real function declaration when
13883 2008-01-30 Richard Sandiford <rsandifo@nildram.co.uk>
13885 PR rtl-optimization/34998
13886 * global.c (build_insn_chain): Treat non-subreg_lowpart
13887 SUBREGs of pseudos as clobbering all the words covered by the
13888 SUBREG, not just all the bytes.
13889 * ra-conflict.c (clear_reg_in_live): Likewise. Take the
13890 original df_ref rather than an extract parameter.
13891 (global_conflicts): Update call accordingly.
13893 2008-01-30 Andreas Krebbel <krebbel1@de.ibm.com>
13895 * config/s390/fixdfdi.h (__fixunstfdi, __fixtfdi): Rearrange
13896 the overflow check to make it easier to read.
13897 (__fixtfdi): Change the type of the ll member in union
13898 long_double to UDItype_x.
13900 2008-01-30 Jakub Jelinek <jakub@redhat.com>
13902 PR middle-end/34969
13903 * cgraph.h (cgraph_update_edges_for_call_stmt): New prototype.
13904 * cgraph.c (cgraph_update_edges_for_call_stmt): New function.
13905 * tree-inline.c (fold_marked_statements): Call
13906 cgraph_update_edges_for_call_stmt if folding a call statement.
13907 * cgraphunit.c (verify_cgraph_node): Set cfun to this_cfun for
13908 debug_generic_stmt calls, reset it back afterwards.
13911 * c-decl.c (start_decl): Don't pedwarn about TREE_READONLY
13913 * c-typeck.c (build_external_ref): Don't pedwarn about
13914 static vars in current function's scope.
13916 2008-01-29 Joseph Myers <joseph@codesourcery.com>
13918 * config.gcc (i[34567]86-*-nto-qnx*): Remove deprecation.
13920 2008-01-29 Bernhard Fischer <aldot@gcc.gnu.org>
13923 * ipa-struct-reorg.c: Fix spelling.
13924 * params.def: Ditto.
13926 2008-01-29 Richard Guenther <rguenther@suse.de>
13928 PR middle-end/35006
13929 * tree-inline.h (struct copy_body_data): Add remapping_type_depth
13931 * tree-inline.c (remap_type): Increment remapping_type_depth
13932 around remapping types.
13933 (copy_body_r): Only add referenced variables if they are referenced
13934 from code, not types.
13936 2008-01-29 Douglas Gregor <doug.gregor@gmail.com>
13947 * c-pretty-print.c (pp_c_type_qualifier_list): Don't try to print
13948 qualifiers for an ERROR_MARK_NODE or a NULL_TREE.
13950 2008-01-28 Andy Hutchinson <hutchinsonandy@netscape.net>
13953 * config/avr/avr.c (expand_prologue): Use correct QI mode frame
13954 pointer for tiny stack.
13956 2008-01-28 Bernhard Fischer <aldot@gcc.gnu.org>
13958 * doc/tree-ssa.texi: Add cindex PHI nodes and improve wording.
13960 2008-01-28 Bernhard Fischer <aldot@gcc.gnu.org>
13962 * config/vx-common.h: Fix typo in comment.
13964 2008-01-28 Ian Lance Taylor <iant@google.com>
13968 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
13969 coalesce pointers if they have different DECL_NO_TBAA_P values.
13970 * tree-ssa-copy.c (may_propagate_copy): Don't propagate copies
13971 between variables with different DECL_NO_TBAA_P values.
13973 2008-01-28 Nathan Froyd <froydnj@codesourcery.com>
13976 * config/rs6000/rs6000.c (small_data_operand): Vectors and floats
13977 are not legitimate small data references on SPE targets.
13979 2008-01-28 David Daney <ddaney@avtrex.com>
13981 * doc/install.texi (mips-*-*): Recommend binutils 2.18.
13983 2008-01-28 David Daney <ddaney@avtrex.com>
13985 * doc/install.texi (--disable-libgcj-bc): Reword documentation.
13987 2008-01-27 Joseph Myers <joseph@codesourcery.com>
13989 * config.gcc (strongarm*-*, ep9312*-*, xscale*-*, parisc*-*,
13990 m680[012]0-*, *-*-beos*, *-*-kaos*, *-*-linux*aout*,
13991 *-*-linux*libc1*, *-*-solaris2.[0-6], *-*-solaris2.[0-6].*,
13992 *-*-sysv*, *-*-windiss*, alpha*-*-unicosmk*, cris-*-aout,
13993 hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-bsd*,
13994 i[34567]86-sequent-ptx4*, i[34567]86-*-nto-qnx*,
13995 i[34567]86-*-sco3.2v5*, i[34567]86-*-uwin*, powerpc-*-chorusos*,
13996 vax-*-bsd*, vax-*-ultrix*): Mark obsolete.
13998 2008-01-27 Bernhard Fischer <aldot@gcc.gnu.org>
14000 * basic-block.h (condjump_equiv_p): Fix comment.
14002 2008-01-27 Bernhard Fischer <aldot@gcc.gnu.org>
14004 * tree-pretty-print.c (print_generic_decl, print_generic_stmt,
14005 print_generic_stmt_indented): Fix comment.
14007 2008-01-27 Bernhard Fischer <aldot@gcc.gnu.org>
14009 * configure.ac (__stack_chk_fail): Add detecion for availability
14010 of SSP in uClibc by checking if __UCLIBC_HAS_SSP__ is defined.
14011 * configure: Regenerate.
14013 2008-01-26 Maxim Kuvyrkov <maxim@codesourcery.com>
14015 PR middle-end/34688
14016 * final.c (output_addr_const): Handle TRUNCATE.
14018 2008-01-26 Zdenek Dvorak <ook@ucw.cz>
14021 * tree-ssa-loop-ivopts.c (comp_cost): New type.
14022 (zero_cost, infinite_cost): New constants.
14023 (struct cost_pair): Change type of cost to comp_cost.
14024 (struct iv_ca): Change type of cand_use_cost and cost to comp_cost.
14025 (new_cost, add_costs, sub_costs, compare_costs, infinite_cost_p):
14027 (set_use_iv_cost, force_expr_to_var_cost, force_var_cost,
14028 split_address_cost, ptr_difference_cost, difference_cost,
14029 get_computation_cost_at, get_computation_cost,
14030 determine_use_iv_cost_generic, determine_use_iv_cost_address,
14031 determine_use_iv_cost_condition, determine_use_iv_costs,
14032 cheaper_cost_pair, iv_ca_recount_cost, iv_ca_set_no_cp,
14033 iv_ca_set_cp, iv_ca_cost, iv_ca_new, iv_ca_dump, iv_ca_extend,
14034 iv_ca_narrow, iv_ca_prune, try_improve_iv_set, find_optimal_iv_set):
14035 Change type of cost to comp_cost.
14036 (determine_iv_cost): Increase cost of non-original ivs, instead
14037 of decreasing the cost of original ones.
14038 (get_address_cost): Indicate the complexity of the addressing mode
14040 (try_add_cand_for): Prefer using ivs not specific to some object.
14041 * tree-flow.h (force_expr_to_var_cost): Declaration removed.
14043 2008-01-26 Peter Bergner <bergner@vnet.ibm.com>
14044 Janis Johnson <janis187@us.ibm.com>
14047 * doc/tm.texi (TARGET_EXPAND_TO_RTL_HOOK): Document.
14048 (TARGET_INSTANTIATE_DECLS): Likewise.
14049 * target.h (expand_to_rtl_hook): New target hook.
14050 (instantiate_decls): Likewise.
14051 * function.c (instantiate_decl): Make non-static. Rename to...
14052 (instantiate_decl_rtl): ... this.
14053 (instantiate_expr): Use instantiate_decl_rtl.
14054 (instantiate_decls_1): Likewise.
14055 (instantiate_decls): Likewise.
14056 (instantiate_virtual_regs: Call new instantiate_decls taget hook.
14057 * function.h (instantiate_decl_rtl): Add prototype.
14058 * cfgexpand.c (target.h): New include.
14059 (tree_expand_cfg): Call new expand_to_rtl_hook target hook.
14060 * target-def.h (TARGET_EXPAND_TO_RTL_HOOK): New define.
14061 (TARGET_INSTANTIATE_DECLS): Likewise.
14062 (TARGET_INITIALIZER): New target hooks added.
14063 * config/rs6000/rs6000-protos.h (rs6000_secondary_memory_needed_rtx):
14065 * config/rs6000/rs6000.c (tree-flow.h): New include.
14066 (machine_function): Add sdmode_stack_slot field.
14067 (rs6000_alloc_sdmode_stack_slot): New function.
14068 (rs6000_instantiate_decls): Likewise.
14069 (rs6000_secondary_memory_needed_rtx): Likewise.
14070 (rs6000_check_sdmode): Likewise.
14071 (TARGET_EXPAND_TO_RTL_HOOK): Target macro defined.
14072 (TARGET_INSTANTIATE_DECLS): Likewise.
14073 (rs6000_hard_regno_mode_ok): Allow SDmode.
14074 (num_insns_constant): Likewise. Handle _Decimal32 constants.
14075 (rs6000_emit_move): Handle SDmode.
14076 (function_arg_advance): Likewise.
14077 (function_arg): Likewise.
14078 (rs6000_gimplify_va_arg): Likewise. Add special handling of
14079 SDmode var args for 32-bit compiles.
14080 (rs6000_secondary_reload_class): Handle SDmode.
14081 (rs6000_output_function_epilogue): Likewise.
14082 (rs6000_function_value): Simplify if statement.
14083 (rs6000_libcall_value): Likewise.
14084 * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Handle SDmode.
14085 (SECONDARY_MEMORY_NEEDED_RTX): Add define.
14086 * config/rs6000/dfp.md (movsd): New define_expand and splitter.
14087 (movsd_hardfloat): New define_insn.
14088 (movsd_softfloat): Likewise.
14089 (movsd_store): Likewise.
14090 (movsd_load): Likewise.
14091 (extendsddd2): Likewise.
14092 (extendsdtd2): Likewise.
14093 (truncddsd2): Likewise.
14094 (movdd_hardfloat64): Fixup comment.
14095 (UNSPEC_MOVSD_LOAD): New constant.
14096 (UNSPEC_MOVSD_STORE): Likewise.
14098 2008-01-26 Jakub Jelinek <jakub@redhat.com>
14101 * c-pretty-print.c (pp_c_exclusive_or_expression): Handle
14103 (pp_c_logical_and_expression): Handle TRUTH_AND_EXPR.
14104 (pp_c_logical_or_expression): Handle TRUTH_OR_EXPR.
14105 (pp_c_expression): Handle TRUTH_AND_EXPR, TRUTH_OR_EXPR
14106 and TRUTH_XOR_EXPR.
14108 2008-01-26 David Edelsohn <edelsohn@gnu.org>
14111 * config.gcc: Separate AIX 5.3 from AIX 6.1.
14112 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
14113 __LONGDOUBLE128 too.
14114 * config/rs6000/aix61.h: New file.
14116 2008-01-26 Richard Sandiford <rsandifo@nildram.co.uk>
14118 PR rtl-optimization/34959
14119 * optabs.c (expand_unop): In libcall notes, give ffs, clz, ctz,
14120 popcount and parity rtxes the same mode as their operand.
14121 Truncate or extend the result to the return value's mode
14124 2008-01-26 Richard Sandiford <rsandifo@nildram.co.uk>
14127 * config/mips/mips-protos.h (mips_expand_call): Return an rtx.
14128 * config/mips/mips.h (FIRST_PSEUDO_REGISTER): Rename FAKE_CALL_REGNO
14129 to GOT_VERSION_REGNUM.
14130 (CALL_REALLY_USED_REGISTERS): Set the GOT_VERSION_REGNUM entry to 0.
14131 (EPILOGUE_USES): Include GOT_VERSION_REGNUM if TARGET_USE_GOT.
14132 * config/mips/mips.c (mips_emit_call_insn): New function.
14133 (mips_call_tls_get_addr): Call mips_expand_call directly.
14134 (mips16_copy_fpr_return_value): Use mips_emit_call_insn rather than
14136 (mips16_build_call_stub): Likewise. Return the call insn or null.
14137 (mips_expand_call): Update the call to mips16_build_call_stub
14138 accordingly and a remove redundant condition. Assert that MIPS16
14139 stubs do not use lazy binding. Use mips_emit_call_insn and return
14141 (mips_extra_live_on_entry): Include GOT_VERSION_REGNUM if
14143 (mips_hard_regno_mode_ok_p): Allow SImode for GOT_VERSION_REGNUM.
14144 (mips_avoid_hazard): Remove hazard_set handling.
14145 * config/mips/mips.md (UNSPEC_EH_RECEIVER): Rename to...
14146 (UNSPEC_RESTORE_GP): ...this.
14147 (UNSPEC_SET_GOT_VERSION, UNSPEC_UPDATE_GOT_VERSION): New constants.
14148 (FAKE_CALL_REGNO): Rename to...
14149 (GOT_VERSION_REGNUM): ...this.
14150 (type): Add "ghost" value. Add an associated insn reservation.
14151 (hazard_set): Remove.
14152 (exception_receiver): Rename to...
14153 (restore_gp): ...this and update the unspec identifier accordingly.
14154 (exception_receiver, nonlocal_got_receiver): New expanders.
14155 (load_call<mode>): Use GOT_VERSION_REGNUM. Don't set
14156 FAKE_CALL_REGNO. Remove hazard_set attribute.
14157 (set_got_version, update_got_version): New patterns.
14159 2008-01-26 Danny Smith <dannysmith@users.sourceforge.net>
14162 * config/i386/cygming.h (ASM_OUTPUT_LABELREF): Define.
14164 2008-01-25 Joseph Myers <joseph@codesourcery.com>
14167 * doc/install.texi2html: Generate gcc-vers.texi.
14169 2008-01-25 DJ Delorie <dj@redhat.com>
14171 * config/m32c/m32c.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
14173 2008-01-25 Joseph Myers <joseph@codesourcery.com>
14175 * config/c4x: Remove directory.
14176 * config.gcc (crx-*, mt-*): Mark obsolete.
14177 (c4x-*, tic4x-*, c4x-*-rtems*, tic4x-*-rtems*, c4x-*, tic4x-*,
14178 h8300-*-rtemscoff*, ns32k-*-netbsdelf*, ns32k-*-netbsd*,
14179 sh-*-rtemscoff*): Remove cases.
14180 * defaults.h (C4X_FLOAT_FORMAT): Remove.
14181 * real.c (encode_c4x_single, decode_c4x_single,
14182 encode_c4x_extended, decode_c4x_extended, c4x_single_format,
14183 c4x_extended_format): Remove.
14184 * real.h (c4x_single_format, c4x_extended_format): Remove.
14185 * doc/extend.texi (interrupt, naked): Remove mention of attributes
14187 (Pragmas): Remove comment about c4x pragmas.
14188 * doc/install.texi (c4x): Remove target-specific instructions.
14189 * doc/invoke.texi (TMS320C3x/C4x Options): Remove.
14190 * doc/md.texi (Machine Constraints): Remove C4x documentation.
14191 * doc/tm.texi (MEMBER_TYPE_FORCES_BLK, c_register_pragma): Do not
14192 refer to C4x source files as examples.
14193 (C4X_FLOAT_FORMAT): Remove documentation.
14195 2008-01-25 Bernd Schmidt <bernd.schmidt@analog.com>
14197 * config/bfin/bfin.c (override_options): Reorder tests so that
14198 flag_pic gets enabled for -msep-data.
14200 2008-01-25 Richard Guenther <rguenther@suse.de>
14202 PR middle-end/32244
14203 * expr.c (expand_expr_real_1): Reduce result of LSHIFT_EXPR
14204 to its bitfield precision if required.
14206 2008-01-25 Jakub Jelinek <jakub@redhat.com>
14208 PR middle-end/33880
14209 * tree-nested.c (walk_omp_for): New function.
14210 (convert_nonlocal_reference, convert_local_reference): Call
14211 walk_omp_for on OMP_FOR.
14212 (convert_call_expr): Call walk_body on OMP_FOR's
14213 OMP_FOR_PRE_INIT_BODY.
14215 2008-01-25 Richard Guenther <rguenther@suse.de>
14217 PR tree-optimization/34966
14218 * tree-ssa-math-opts.c (execute_cse_sincos_1): For all but
14219 default defs and PHI_NODEs we have to insert after the
14220 defining statement.
14222 2008-01-24 Nick Clifton <nickc@redhat.com>
14224 * config/stormy16/stormy16-lib2.c (MIN_UNITS_PER_WORD):
14225 Provide a default definition.
14226 (LIBGCC2_UNITS_PER_WORD): Likewise.
14228 * config/stormy16/stormy16.c: Include df.h for the prototype
14229 for df_regs_ever_live_p.
14230 (xstormy16_expand_builtin_va_start): Convert the stack offset
14231 into a component_ref and then use POINTER_PLUS_EXPR to add it
14232 to the incoming_virtual_args_rtx.
14233 (xstormy16_gimplify_va_arg_expr): Rename to
14234 xstormy16_gimplify_va_arg_expr.
14235 Use POINTER_PLUS_EXPR when performing pointer arithmetic.
14236 (TARGET_GIMPLIFY_VA_ARG_EXPR): Use renamed
14237 xstormy16_gimplify_va_arg_expr.
14238 Fix up some formatting issues.
14240 * config/stormy16/stormy16.c: (xstormy16_carry_plus_operand):
14241 Move to predicates.md.
14242 (xs_hi_general_operand): Likewise.
14243 (xs_hi_nonmemory_operand): Likewise.
14244 * config/stormy16/predicates.md:
14245 (xstormy16_carry_plus_operand): New predicate.
14246 (xs_hi_general_operand): New predicate.
14247 (xs_hi_nonmemory_operand): New predicate.
14248 * config/stormy16/stormy16-protos.h:
14249 (xstormy16_carry_plus_operand): Delete prototype.
14250 (xs_hi_general_operand): Likewise.
14251 (xs_hi_nonmemory_operand): Likewise.
14253 * config/storm16/stormy16.md (addhi3): Remove earlyclobber
14254 modifiers as they are no longer needed and they can trigger
14255 reload spill failures.
14257 * config/storm16/stormy16.md (ineqbranchsi): Replace match_dup
14258 with a match_operand in order to help reload.
14260 * config/storm16/stormy16.md (movhi_internal): Replace 'r'
14261 constraint with 'e' for the 8th alternative as this version of
14262 the mov.w instruction only accepts the lower 8 registers.
14264 2008-01-25 Uros Bizjak <ubizjak@gmail.com>
14267 * simplifx-rtx.c (simplify_const_binary_operation) [VEC_CONCAT]:
14268 Consider only CONST_INT, CONST_DOUBLE and CONST_FIXED as constant
14271 2008-01-25 Jakub Jelinek <jakub@redhat.com>
14273 PR middle-end/33333
14274 * gimplify.c (gimplify_omp_for): Gimplify OMP_FOR_PRE_BODY.
14276 2008-01-25 Golovanevsky Olga <olga@il.ibm.com>
14278 * ipa-struct-reorg.c (remove_str_allocs_in_func, remove_str_allocs):
14280 (remove_structure): Update allocations list before removing structure.
14282 2008-01-25 Golovanevsky Olga <olga@il.ibm.com>
14284 * ipa-struct-reorg.c (is_safe_cond_expr,
14285 create_new_stmts_for_cond_expr): Use integer_zerop function,
14286 that recognize not only zero-pointer, but zero-integer too.
14288 2008-01-25 Ben Elliston <bje@au.ibm.com>
14291 * fixproto: Escape "." in sed expression that strips leading "./".
14293 2008-01-24 H.J. Lu <hongjiu.lu@intel.com>
14296 * gcc.c (SWITCH_OK): Removed.
14297 (SWITCH_LIVE): Changed to bit.
14298 (SWITCH_FALSE): Likewise.
14299 (SWITCH_IGNORE): Likewise.
14300 (switchstr): Change live_cond to unsigned int.
14301 (process_command): Replace SWITCH_OK with 0.
14302 (do_self_spec): Likewise.
14303 (set_collect_gcc_options): Check the SWITCH_IGNORE bit.
14304 (give_switch): Likewise.
14305 (used_arg): Likewise.
14306 (do_spec_1): Set the SWITCH_IGNORE bit.
14307 (check_live_switch): Check both SWITCH_LIVE and SWITCH_FALSE
14308 bits. Set the SWITCH_LIVE bit.
14310 2008-01-24 Andreas Krebbel <krebbel1@de.ibm.com>
14312 * config/s390/s390.h (MOVE_RATIO): Define new target macro.
14314 2008-01-24 Richard Sandiford <rsandifo@nildram.co.uk>
14316 PR tree-optimization/34472
14317 * ipa-struct-reorg.c (safe_cond_expr_check): Change the DATA
14318 parameter to a "bool *" and set *DATA to false if there is
14319 an unsafe access. Do not delete the structure here.
14320 (check_cond_exprs): Delete it here instead.
14321 (check_cond_exprs, exclude_cold_structs): Do not increase
14322 I when removing a structure.
14324 2008-01-24 Uros Bizjak <ubizjak@gmail.com>
14327 * config/i386/i386.c (ix86_expand_vector_init): Consider only
14328 CONST_INT, CONST_DOUBLE and CONST_FIXED as constant vector elements.
14330 2008-01-24 Jakub Jakub Jelinek <jakub@redhat.com>
14332 PR middle-end/34934
14333 * tree-stdarg.c (reachable_at_most_once): Use VEC vector instead of
14334 a fixed vector for stack.
14336 2008-01-24 Ben Elliston <bje@au.ibm.com>
14339 * doc/gcc.texi (Software development): Add a direntry for g++.
14341 2008-01-23 Hans-Peter Nilsson <hp@axis.com>
14343 * config/cris/cris.h (CC1PLUS_SPEC, OPTIMIZATION_OPTIONS): Drop
14344 stale and straggling -fforce-addr comments above.
14346 * config/cris/cris.h (CRIS_SUBTARGET_VERSION, TARGET_VERSION): Don't
14348 * config/cris/linux.h (CRIS_SUBTARGET_VERSION): Don't define.
14349 * config/cris/aout.h (CRIS_SUBTARGET_VERSION): Don't define.
14351 2008-01-23 Michael Matz <matz@suse.de>
14354 * dwarf2out.c (force_type_die): Use modified_type_die instead of
14357 2008-01-23 Andreas Krebbel <krebbel1@de.ibm.com>
14359 * ipa-struct-reorg.c (create_new_malloc): Use pointer type as
14360 malloc result type.
14362 2008-01-23 Anatoly Sokolov <aesok@post.ru>
14364 * config/avr/avr.c (avr_current_arch): New variable.
14365 (avr_arch_types): Add 'avr31' and 'avr51' entries.
14366 (avr_arch): Add 'ARCH_AVR31' and 'ARCH_AVR51'.
14367 (avr_mcu_types): Add 'avr31' and 'avr51' architectures.
14368 (avr_override_options): Init 'avr_current_arch'.
14369 (base_arch_s): Move from here...
14370 * config/avr/avr.h (base_arch_s): ... here. Add new members
14371 'have_elpm', 'have_elpmx', 'have_eijmp_eicall', 'reserved'. Rename
14372 'mega' to 'have_jmp_call'.
14373 (TARGET_CPU_CPP_BUILTINS): Define "__AVR_HAVE_JMP_CALL__",
14374 "__AVR_HAVE_RAMPZ__", "__AVR_HAVE_ELPM__" and "__AVR_HAVE_ELPMX__"
14376 (LINK_SPEC, CRT_BINUTILS_SPECS, ASM_SPEC): Add 'avr31' and 'avr51'
14378 * config/avr/t-avr (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
14379 MULTILIB_MATCHES): (Ditto.).
14381 2008-01-23 Richard Guenther <rguenther@suse.de>
14383 PR middle-end/31529
14384 * cgraphunit.c (cgraph_reset_node): Always mark the node
14385 not reachable if it is not queued already.
14387 2008-01-23 Bernd Schmidt <bernd.schmidt@analog.com>
14389 * config/bfin/bfin-protos.h (WA_RETS, ENABLE_WA_RETS): New macros.
14390 * config/bfin/bfin.c (bfin_cpus): Add WA_RETS everywhere.
14391 (cputype_selected): New static variable.
14392 (bfin_handle_option): Set it if -mcpu is used.
14393 (override_option): Select default set of workarounds if no cpu type
14394 selected on the command line.
14395 (workaround_rts_anomaly): Only run if ENABLE_WA_RETS.
14397 From Michael Frysinger <michael.frysinger@analog.com>
14398 * config/bfin/bfin-protos.h (enum bfin_cpu_type): Add
14399 BFIN_CPU_BF547, BFIN_CPU_BF523, BFIN_CPU_BF524, and BFIN_CPU_BF526.
14401 * config/bfin/elf.h (LIB_SPEC): Use proper linker script
14402 for bf547, bf523, bf524, and bf526.
14403 * config/bfin/bfin.c (bfin_cpus[]): Add bf547, bf523, bf524, and
14405 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
14406 __ADSPBF523__ for bf523, __ADSPBF524__ for bf524,
14407 __ADSPBF526__ for bf526, __ADSPBF52x__ for all three, as well as
14408 __ADSPBF547__ and __ADSPBF54x__ for bf547.
14409 * doc/invoke.texi (Blackfin Options): Document that
14410 -mcpu now accept bf547, bf523, bf524, and bf526.
14412 2008-01-22 Eric Botcazou <ebotcazou@adacore.com>
14414 PR rtl-optimization/34628
14415 * combine.c (try_combine): Stop and undo after the first combination
14416 if an autoincrement side-effect on the first insn has effectively
14419 2008-01-22 David Edelsohn <edelsohn@gnu.org>
14422 * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
14423 Offset addresses are not valid for Altivec or paired float modes.
14425 2008-01-22 Jakub Jelinek <jakub@redhat.com>
14428 * c-parser.c (c_parser_omp_for_loop): Don't call c_finish_omp_for
14429 if DECL_INITIAL (decl) is error_mark_node.
14432 * c-common.c (handle_vector_size_attribute): Only allow
14433 integral, scalar float and fixed point types. Handle OFFSET_TYPE
14434 the same way as pointer, array etc. types.
14435 * tree.c (reconstruct_complex_type): Handle OFFSET_TYPE.
14438 * tree.c (build_type_attribute_qual_variant): Call
14439 build_qualified_type if attributes are equal, but quals are not.
14441 2008-01-22 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
14444 * doc/invoke.texi (-Wall): -Wall enables -Wstrict-overflow=1.
14445 * flags.h (warn_strict_aliasing): Remove.
14446 (warn_strict_overflow): Remove.
14447 * opts.c (warn_strict_aliasing): Remove.
14448 (warn_strict_overflow): Remove.
14449 * c-opts.c (c_common_handle_option): -Wall only sets
14450 -Wstrict-aliasing or -Wstrict-overflow if they are uninitialized.
14451 (c_common_post_options): Give default values to -Wstrict-aliasing
14452 and -Wstrict-overflow if they are uninitialized.
14453 * common.opt (Wstrict-aliasing): Specify Var and Init.
14454 (Wstrict-overflow): Likewise.
14456 2008-01-22 Kenneth Zadeck <zadeck@naturalbridge.com>
14458 PR rtl-optimization/26854
14459 PR rtl-optimization/34400
14460 PR rtl-optimization/34884
14461 * ddg.c (create_ddg_dep_from_intra_loop_link): Use
14463 * df.h (df_changeable_flags.DF_RD_NO_TRIM): Deleted
14464 (df_rd_bb_info.expanded_lr_out): Deleted
14465 * loop_invariant.c (find_defs): Deleted DF_RD_NO_TRIM flag.
14466 * loop_iv.c (iv_analysis_loop_init): Ditto. * df-problems.c
14467 (df_rd_free_bb_info, df_rd_alloc, df_rd_confluence_n,
14468 df_rd_bb_local_compute, df_rd_transfer_function, df_rd_free):
14469 Removed code to allocate, initialize or free expanded_lr_out.
14470 (df_rd_bb_local_compute_process_def): Restructured to make more
14472 (df_rd_confluence_n): Removed code to no apply invalidate_by_call
14473 sets if the sets are being trimmed.
14475 2008-01-22 H.J. Lu <hongjiu.lu@intel.com>
14478 * configure.ac (ld_vers): Support GNU linker version xx.xx.*
14479 (as_vers): Likewise.
14480 * configure: Regenerated.
14482 2008-01-22 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
14484 PR middle-end/33092
14485 * tree-pass.h (pass_build_alias): New pass.
14486 * tree-ssa-alias.c (gate_build_alias): New.
14487 (pass_build_alias): New.
14488 * passes.c (init_optimization_passes): Add pass_build_alias after
14489 pass_create_structure_vars.
14491 2008-01-22 Wolfgang Gellerich <gellerich@de.ibm.com>
14493 * config/s390/s390.h (S390_TDC_POSITIVE_NORMALIZED_NUMBER):
14494 Renamed to S390_TDC_POSITIVE_NORMALIZED_BFP_NUMBER.
14495 (S390_TDC_NEGATIVE_NORMALIZED_NUMBER): Renamed to
14496 S390_TDC_NEGATIVE_NORMALIZED_BFP_NUMBER.
14497 (S390_TDC_POSITIVE_DENORMALIZED_NUMBER): Renamed to
14498 S390_TDC_POSITIVE_DENORMALIZED_BFP_NUMBER.
14499 (S390_TDC_NEGATIVE_DENORMALIZED_NUMBER): Renamed to
14500 S390_TDC_NEGATIVE_DENORMALIZED_BFP_NUMBER.
14501 (S390_TDC_POSITIVE_NORMALIZED_BFP_NUMBER): New constant.
14502 (S390_TDC_NEGATIVE_NORMALIZED_BFP_NUMBER): New constant.
14503 (S390_TDC_POSITIVE_DENORMALIZED_BFP_NUMBER): New constant.
14504 (S390_TDC_NEGATIVE_DENORMALIZED_BFP_NUMBER): New constant.
14505 * config/s390/s390.md (FP_ALL): New mode iterator.
14506 (_d): New mode attribute.
14507 ("*signbit<mode>2>"): Changed mode of first operand.
14508 ("isinf<mode>2"): Changed mode of first operand.
14509 ("*TDC_insn"): Adaptation for DFP modes.
14511 2008-01-22 Ben Elliston <bje@au.ibm.com>
14513 * tree.c (check_qualified_type): Improve function description.
14515 2008-01-21 Jason Merrill <jason@redhat.com>
14518 * tree.h (TRY_CATCH_IS_CLEANUP): New macro.
14519 * tree-eh.c (honor_protect_cleanup_actions): Strip TRY_CATCH_EXPR
14522 2008-01-21 DJ Delorie <dj@redhat.com>
14524 * doc/tm.texi (HARD_REGNO_NREGS): Note that this macro must not
14527 2008-01-21 Richard Guenther <rguenther@suse.de>
14529 PR middle-end/34856
14530 * tree-cfg.c (verify_expr): Allow all invariant expressions
14531 instead of just constant class ones as reference argument.
14532 * tree-ssa-loop-im.c (for_each_index): Handle CONSTRUCTOR
14533 like any other constant.
14534 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
14536 2008-01-21 H.J. Lu <hongjiu.lu@intel.com>
14538 * regmove.c (fixup_match_1): Update call crossed frequencies.
14540 2008-01-21 Richard Guenther <rguenther@suse.de>
14543 * tree-inline.c (setup_one_parameter): Deal with mismatched
14544 types using a VIEW_CONVERT_EXPR.
14546 2008-01-21 Alon Dayan <alond@il.ibm.com>
14547 Olga Golovanevsky <olga@il.ibm.com>
14549 PR tree-optimization/34701
14550 * ipa-struct-reorg.c (gen_size): Fix the malloc parameter calculation
14551 when the structure size is not a power of 2.
14553 2008-01-20 Kenneth Zadeck <zadeck@naturalbridge.com>
14555 * doc/install.texi: Add doc for --enable-checking=df.
14557 2008-01-20 Kaz Kojima <kkojima@gcc.gnu.org>
14559 PR rtl-optimization/34808
14560 * emit-rtl.c (try_split): Handle REG_RETVAL notes.
14562 2008-01-20 Richard Sandiford <rsandifo@nildram.co.uk>
14564 * global.c (find_reg): Only compute EH_RETURN_DATA_REGNO once per
14567 2008-01-19 Kenneth Zadeck <zadeck@naturalbridge.com>
14569 PR rtl-optimization/26854
14570 PR rtl-optimization/34400
14571 * ddg.c (create_ddg_dep_from_intra_loop_link): Do not use
14573 * df.h (df_changeable_flags.DF_RD_NO_TRIM): New.
14574 (df_rd_bb_info.expanded_lr_out): New.
14575 * loop_invariant.c (find_defs): Added DF_RD_NO_TRIM flag.
14576 * loop_iv.c (iv_analysis_loop_init): Ditto.
14577 * df-problems.c (df_rd_free_bb_info, df_rd_alloc, df_rd_confluence_n,
14578 df_rd_bb_local_compute, df_rd_transfer_function, df_rd_free):
14579 Added code to allocate, initialize or free expanded_lr_out.
14580 (df_rd_bb_local_compute_process_def): Restructured to make
14581 more understandable.
14582 (df_rd_confluence_n): Add code to do nothing with fake edges and
14583 code to no apply invalidate_by_call sets if the sets are being trimmed.
14584 (df_lr_local_finalize): Renamed to df_lr_finalize.
14585 (df_live_local_finalize): Renamed to df_live_finalize.
14587 2008-01-20 Richard Sandiford <rsandifo@nildram.co.uk>
14590 * config/mips/mips.md (div<mode>3): Use <recip_condition> when
14591 deciding whether to use reciprocal instructions.
14593 2008-01-19 Uros Bizjak <ubizjak@gmail.com>
14595 * dwarf2out.c (dwarf2out_switch_text_section): Do not call
14596 dwarf2out_note_section_used if cold_text_section is NULL.
14598 2008-01-19 Jakub Jelinek <jakub@redhat.com>
14600 PR gcov-profile/34610
14601 * tree-cfg.c (make_edges): Mark both outgoing edges from
14602 OMP_CONTINUE and from OMP_FOR as EDGE_ABNORMAL.
14603 * omp-low.c (expand_omp_for): Clear EDGE_ABNORMAL bits
14604 from OMP_FOR and OMP_CONTINUE outgoing edges.
14606 * tree-profile.c (tree_profiling): Return early if
14607 cfun->after_tree_profile != 0. Set cfun->after_tree_profile
14609 * omp-low.c (expand_omp_parallel): Copy after_tree_profile
14610 from cfun to child_cfun.
14611 * function.h (struct function): Add after_tree_profile bit.
14613 2008-01-19 Anatoly Sokolov <aesok@post.ru>
14615 * config/avr/avr.S (_exit): Disable interrupt.
14617 2008-01-18 Kenneth Zadeck <zadeck@naturalbridge.com>
14618 Steven Bosscher <stevenb.gcc@gmail.com>
14620 PR rtl-optimization/26854
14621 PR rtl-optimization/34400
14622 * df-problems.c (df_live_scratch): New scratch bitmap.
14623 (df_live_alloc): Allocate df_live_scratch when doing df_live.
14624 (df_live_reset): Clear the proper bitmaps.
14625 (df_live_bb_local_compute): Only process the artificial defs once
14626 since the order is not important.
14627 (df_live_init): Init the df_live sets only with the variables
14628 found live by df_lr.
14629 (df_live_transfer_function): Use the df_lr sets to prune the
14630 df_live sets as they are being computed.
14631 (df_live_free): Free df_live_scratch.
14633 2008-01-18 Ian Lance Taylor <iant@google.com>
14635 * common.opt: Add fmerge-debug-strings.
14636 * dwarf2out.c (DEBUG_STR_SECTION_FLAGS): Test
14637 flag_merge_debug_strings rather than flag_merge_constants.
14638 * doc/invoke.texi (Option Summary): Mention
14639 -fmerge-debug-strings.
14640 (Debugging Options): Document -fmerge-debug-strings.
14642 2008-01-18 Ian Lance Taylor <iant@google.com>
14645 * tree.h (DECL_IS_OPERATOR_NEW): Define.
14646 (struct tree_function_decl): Add new field operator_new_flag.
14647 * tree-inline.c (expand_call_inline): When inlining a call to
14648 operator new, force the return value to go into a variable, and
14649 set DECL_NO_TBAA_P on that variable.
14650 * c-decl.c (merge_decls): Merge DECL_IS_OPERATOR_NEW flag.
14652 2008-01-18 Uros Bizjak <ubizjak@gmail.com>
14655 * dwarf2out.c (dwarf2out_switch_text_section): Do not guard with
14656 DWARF2_DEBUGGING_INFO.
14657 (dwarf2out_note_section_used): Ditto. Add prototype.
14658 (have_multiple_function_sections, text_section_used,
14659 cold_text_section_used, *cold_text_sections): Move declarations
14662 2008-01-17 Bob Wilson <bob.wilson@acm.org>
14664 * config/xtensa/unwind-dw2-xtensa.h (_Unwind_FrameState): Remove pc
14665 field and add signal_ra.
14666 * config/xtensa/unwind-dw2-xtensa.c (uw_frame_state_for): Remove
14667 assignments to frame state pc. Move end of stack check after
14668 MD_FALLBACK_FRAME_STATE_FOR.
14669 (uw_update_context_1): Use frame state signal_regs if set, instead
14670 of checking signal_frame flag.
14671 (uw_update_context): Use frame state signal_ra if set.
14672 * config/xtensa/linux.h (MD_UNWIND_SUPPORT): Define.
14673 * config/xtensa/linux-unwind.h: New file.
14675 2008-01-18 Bernhard Fischer <aldot@gcc.gnu.org>
14677 * modulo-sched.c (get_sched_window): Fix comment typo.
14679 2008-01-17 Andrew MacLeod <amacleod@redhat.com>
14681 PR tree-optimization/34648
14682 * tree-ssa-sccvn.c (visit_use): Expressions which can throw are varying.
14684 2008-01-17 Anatoly Sokolov <aesok@post.ru>
14686 * config/avr/avr.h (LINK_SPEC): Support -mrelax and -mpmem-wrap-around.
14687 * config/avr/avr.opt (mrelax, mpmem-wrap-around): Add.
14689 2008-01-17 Seongbae Park <seongbae.park@gmail.com>
14691 PR rtl-optimization/34400
14692 * df-core.c (df_worklist_dataflow_overeager,
14693 df_worklist_dataflow_doublequeue): New functions.
14694 (df_worklist_dataflow): Two different worklist solvers.
14695 * params.def (PARAM_DF_DOUBLE_QUEUE_THRESHOLD_FACTOR):
14698 2008-01-16 Sebastian Pop <sebastian.pop@amd.com>
14701 * doc/invoke.texi: Document the dependence on pthread for fopenmp
14702 and ftree-parallelize-loops.
14704 2008-01-17 Mircea Namolaru <namolaru@il.ibm.com>
14706 PR rtl-optimization/34826
14707 * loop-doloop (doloop_modify): Update the REG_BR_PROB note.
14709 2008-01-17 Andreas Krebbel <krebbel1@de.ibm.com>
14711 * global.c (find_reg): Mark the eh regs as used if necessary.
14712 * ra-conflict.c (global_conflicts): Set no_eh_reg flag.
14713 * ra.h (struct allocno): no_eh_reg field added. Changed
14714 no_stack_reg type to bitfield.
14716 2008-01-17 Eric Botcazou <ebotcazou@adacore.com>
14718 * tree.c (substitute_in_expr): Add missing 'break'.
14720 2008-01-17 Richard Guenther <rguenther@suse.de>
14722 PR tree-optimization/34825
14723 * tree-ssa-math-opts.c (is_division_by): Do not recognize
14724 x / x as division to handle.
14726 2008-01-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
14728 * pa64-hpux.h (LIB_SPEC): Add "-lpthread" in shared links if "-mt" or
14729 "-pthread" is specified.
14730 * pa-hpux11.h (LIB_SPEC): Likewise.
14732 2008-01-16 Janis Johnson <janis187@us.ibm.com>
14733 Peter Bergner <bergner@vnet.ibm.com>
14735 PR rtl-optimization/33796
14736 * sparseset.c (sparseset_alloc): Use xcalloc rather than xmalloc.
14738 2008-01-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
14740 PR libgfortran/34699
14741 * pa-hpux.h (LINK_SPEC): Only search /lib/pa1.1 and /usr/lib/pa1.1 on
14743 * pa-hpux10.h (LINK_SPEC): Likewise.
14744 * pa-hpux11.h (LINK_SPEC): Don't search /lib/pa1.1 and /usr/lib/pa1.1.
14746 2008-01-16 Richard Guenther <rguenther@suse.de>
14748 PR middle-end/32628
14749 * fold-const.c (fold_convert_const_int_from_int): Do not
14750 set overflow if that occured only because of a sign extension
14751 change when converting from/to a sizetype with the same
14752 precision and signedness.
14754 2008-01-16 Uros Bizjak <ubizjak@gmail.com>
14757 * dwarf2out.c (output_call_frame_info): Move output of FDE initial
14758 location address to the correct place. Update copyright year.
14760 2008-01-16 Sebastian Pop <sebastian.pop@amd.com>
14762 * lambda-code.c (lambda_transform_legal_p): Handle the case of
14763 no dependences in the dependence_relations vector.
14765 2008-01-16 Jan Hubicka <jh@suse.cz>
14767 PR rtl-optimization/31396
14768 * regstat.c (regstat_bb_compute_ri): Compute FREQ_CALLS_CROSSED.
14769 * cfg.c (dump_reg_info): Print it.
14770 * regs.h (struct reg_info_t): add freq_calls_crossed.
14771 (REG_FREQ_CALLS_CROSSED): New macro.
14772 * global.c (global_alloc): Compute freq_calls_crossed for allocno.
14773 (find_reg): Update call of CALLER_SAVE_PROFITABLE.
14774 * regmove.c (optimize_reg_copy_1, optimize_reg_copy_2, fixup_match_2,
14775 regmove_optimize): Update call crossed frequencies.
14776 * local-alloc.c (struct qty): Add freq_calls_crossed.
14777 (alloc_qty): Copute freq_calls_crossed.
14778 (update_equiv_regs, combine_regs): Update REG_FREQ_CALLS_CROSSED.
14779 (find_free_reg): Update call of CALLER_SAVE_PROFITABLE.
14780 * ra.h (struct allocno): Add freq_calls_crossed.
14782 2008-01-16 Sebastian Pop <sebastian.pop@amd.com>
14784 * gcc.c (LINK_COMMAND_SPEC): Add includes and link options for
14785 libgomp when compiling with ftree-parallelize-loops.
14786 (GOMP_SELF_SPECS): Add -pthread for ftree-parallelize-loops.
14788 2008-01-16 Richard Guenther <rguenther@suse.de>
14790 PR tree-optimization/34769
14791 * tree-data-ref.c (initialize_matrix_A): Revert fix for PR34458.
14792 * tree.c (int_cst_value): Instead make this function more
14793 permissive in what it accepts as valid input. Document this
14794 function always sign-extends the value.
14796 2008-01-16 Jakub Jelinek <jakub@redhat.com>
14797 Richard Guenther <rguenther@suse.de>
14800 * gimplify.c (fold_indirect_ref_rhs): Rename to ...
14801 (gimple_fold_indirect_ref_rhs): ... this.
14802 (gimple_fold_indirect_ref): New function with foldings
14803 that preserve lvalueness.
14804 (gimplify_modify_expr_rhs): Call gimple_fold_indirect_ref_rhs.
14805 * tree-flow.h (gimple_fold_indirect_ref): Declare.
14806 * tree-inline.c (copy_body_r): Use gimple_fold_indirect_ref
14807 to fold an INDIRECT_REF, fall back to the old use of
14808 fold_indirect_ref_1.
14810 2008-01-16 Sebastian Pop <sebastian.pop@amd.com>
14812 * tree-data-ref.c (subscript_dependence_tester_1): Call
14813 free_conflict_function.
14814 (compute_self_dependence): Same.
14816 2008-01-16 Uros Bizjak <ubizjak@gmail.com>
14819 * debug.h (dwarf2out_switch_text_section): Move declaration from ...
14820 * dwarf2out.c (dwarf2out_switch_text_section): ... here. Make
14822 * final.c (final_scan_insn) [NOTE_INSN_SWITCH_TEXT_SECTIONS]:
14823 Depending on dwarf2out_do_frame, call dwarf2out_switch_text_section
14824 for DWARF2_UNWIND_INFO targets.
14826 2008-01-16 Richard Guenther <rguenther@suse.de>
14829 * c-typeck.c (common_pointer_type): Do not merge inconsistent
14830 type qualifiers for function types.
14832 2008-01-15 Jerry DeLisle <jvdelisle@gcc.gnu.org>
14834 * tree-parloops.c (gen_parallel_loop): Fix ommision of declaration for
14835 loop_iterator li from previous commit.
14837 2008-01-15 Sebastian Pop <sebastian.pop@amd.com>
14839 * tree-parloops.c (gen_parallel_loop): Free loop bound estimations.
14841 2008-01-12 Sebastian Pop <sebastian.pop@amd.com>
14843 * tree-parloops.c (loop_has_blocks_with_irreducible_flag): New.
14844 (parallelize_loops): Don't parallelize irreducible components.
14846 2008-01-14 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
14849 * c-opts (c_common_post_options): Do not enable CPP
14850 flag_pedantic_errors by default.
14852 2008-01-14 Eric Botcazou <ebotcazou@adacore.com>
14854 PR rtl-optimization/31944
14855 * cse.c (remove_pseudo_from_table): New function.
14856 (merge_equiv_classes): Use above function to remove pseudo-registers.
14857 (invalidate): Likewise.
14859 2008-01-13 Richard Guenther <rguenther@suse.de>
14861 PR middle-end/34601
14862 * emit-rtl.c (set_reg_attrs_for_decl_rtl): Use DECL_MODE
14863 instead of TYPE_MODE to deal with calls from expand_one_error_var.
14865 2008-01-13 Uros Bizjak <ubizjak@gmail.com>
14867 * gcse.c (cprop_jump): Call validate_unshare_change instead of
14868 validate_change to unshare the source of the PC set.
14870 2008-01-12 Jan Hubicka <jh@suse.cz>
14872 PR middle-end/32135
14873 * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Do not construct
14874 references above array bounds. This might trigger bounds checks for
14875 pointers to arrays.
14877 2008-01-12 Sebastian Pop <sebastian.pop@amd.com>
14879 * tree-ssa-ter.c (free_temp_expr_table): Free num_in_part and
14880 new_replaceable_dependencies.
14882 2008-01-12 Doug Kwan <dougkwan@google.com>
14884 * c-decl.c: (grokdeclarator): Use OPT_Wignored_qualifiers
14885 instead of OPT_Wreturn_type in warning due to ignored return type
14887 * c-opt.c (c_common_post_option): Add -Wignored-qualifiers to
14888 options included in -Wextra.
14889 * c.opt: New option -Wignored_qualifiers.
14890 * doc/invoke.texi (Warning Options, -Wextra): Add new option
14891 -Wignore_qualifiers.
14892 (-Wignored-qualifiers): Document.
14893 (-Wreturn-type): Remove description of functionality now handled
14894 by -Wignored-qualifiers.
14896 2008-01-12 Eric Botcazou <ebotcazou@adacore.com>
14899 * fold-const.c (fold_unary) <VIEW_CONVERT_EXPR>: Fold an existing
14900 NOP_EXPR if it is between integral types with the same precision.
14902 2008-01-12 Jan Hubicka <jh@suse.cz>
14905 * invoke.texi (max-inline-recursive-depth): Fix default value.
14907 2008-01-12 Zdenek Dvorak <ook@ucw.cz>
14909 * tree-parloops.c (transform_to_exit_first_loop): Cast nit to the
14912 2008-01-11 Bob Wilson <bob.wilson@acm.org>
14914 * config/xtensa/xtensa.c (override_options): Set flag_shlib.
14916 2008-01-11 James E. Wilson <wilson@specifix.com>
14919 * config/vax/elf.h (FRAME_POINTER_CFA_OFFSET): Define.
14921 2008-01-11 Anatoly Sokolov <aesok@post.ru>
14923 * config/avr/avr.c (expand_prologue, expand_epilogue): Don't
14924 save/restore frame pointer register and don't use 'call-prologues'
14925 optimization in function with "OS_task" attribute.
14927 2008-01-11 Eric Botcazou <ebotcazou@adacore.com>
14929 PR middle-end/31309
14930 * expr.c (copy_blkmode_from_reg): Use a mode suited to the size
14931 when copying to memory.
14933 2008-01-11 Steven Bosscher <stevenb.gcc@gmail.com>
14935 PR rtl-optimization/30905
14936 * cfgcleanup.c: Include dce.h
14937 (crossjumps_occured): New global variable.
14938 (try_crossjump_bb): Exit loop after finding a fallthru edge.
14939 If something changed, set crossjumps_occured to true.
14940 (try_optimize_cfg): Clear crossjumps_occured at the beginning.
14941 Don't add/remove fake edges to exit here...
14942 (cleanup_cfg): ...but do it here, when crossjumping.
14943 Run a fast DCE when successful crossjumps occured in the latest
14944 iteration of try_optimize_cfg.
14946 2008-01-11 Richard Guenther <rguenther@suse.de>
14948 * tree-ssa-sccvn.c (struct vn_binary_op_s): Move hashcode near opcode.
14949 (struct vn_unary_op_s): Likewise.
14950 (vn_reference_insert): Free old reference on hash collision.
14952 2008-01-10 Raksit Ashok <raksit@google.com>
14954 PR rtl-optimization/27971
14955 * combine.c (find_split_point): Split PLUS expressions which are
14956 inside a MEM rtx, and whose first operand is complex.
14958 2008-01-10 DJ Delorie <dj@redhat.com>
14960 * config/m32c/m32c.c (m32c_hard_regno_nregs_1): Renamed from...
14961 (m32c_hard_regno_nregs): ...this, which is now a wrapper.
14962 (m32c_hard_regno_ok): Call the underlying function.
14964 2008-01-10 Richard Guenther <rguenther@suse.de>
14966 PR middle-end/34683
14967 * tree-cfg.c (tree_merge_blocks): Do not go through the
14968 full-blown folding and stmt updating path if we just deal
14969 with virtual operands.
14970 * tree-ssa-copy.c (may_propagate_copy): Do not short-cut
14971 test for abnormal SSA_NAMEs.
14973 2008-01-10 Andreas Krebbel <krebbel1@de.ibm.com>
14975 PR middle-end/34641
14976 * reload.c (push_reload): Add assertions. All constants from
14977 reg_equiv_constant should have been used for replacing the respective
14979 (find_reloads_address): Invoke find_reloads_address_part for
14980 constant taken from the reg_equiv_constant array.
14982 2008-01-10 Steven Bosscher <stevenb.gcc@gmail.com>
14984 * tree-ssa-sccvn.h (struct vn_ssa_aux): Make the most accessed
14985 field (valnum) the first in the struct. Replace bools with
14988 2008-01-10 Richard Guenther <rguenther@suse.de>
14990 PR tree-optimization/34651
14991 * tree-sra.c (sra_build_assignment): Sanitize. Use the correct
14992 types and ordering for masking and converting.
14994 2008-01-09 Sebastian Pop <sebastian.pop@amd.com>
14996 PR tree-optimization/34017
14997 * lambda-code.c (lambda_loopnest_to_gcc_loopnest): Generate code
14998 also for PHI_NODE expressions.
15000 2008-01-09 Jan Hubicka <jh@suse.cz>
15002 PR tree-optimization/34708
15003 * tree-inline.c (estimate_num_insns_1): Compute cost of SWITCH_EXPR
15004 based on number of case labels.
15005 (init_inline_once): Remove switch_cost.
15006 * tree-inline.h (eni_weights_d): Remove switch_cost.
15008 2008-01-09 Richard Guenther <rguenther@suse.de>
15009 Andrew Pinski <andrew_pinski@playstation.sony.com>
15011 PR middle-end/30132
15012 * gimplify.c (gimplify_cond_expr): Do not create an addressable
15013 temporary if an rvalue is ok or an lvalue is not required.
15015 2008-01-09 Richard Guenther <rguenther@suse.de>
15017 PR middle-end/34458
15018 * tree-data-ref.c (initialize_matrix_A): Use tree_low_cst,
15019 adjust return type.
15021 2008-01-09 Richard Guenther <rguenther@suse.de>
15023 PR middle-end/34679
15024 * tree.c (host_integerp): Check for sizetype only if the
15025 type is an integer type.
15027 2008-01-09 Steven Bosscher <stevenb.gcc@gmail.com>
15030 * opts.c (decode_options): Disable inlining of functions called
15031 once if not in unit-at-a-time mode.
15033 2008-01-09 Alexandre Oliva <aoliva@redhat.com>
15035 * Makefile.in (dse.o): Remove duplicate $(RECOG_H) dependency.
15037 2008-01-08 Richard Guenther <rguenther@suse.de>
15039 PR middle-end/31863
15040 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Bail
15041 out early if the result will be unused.
15043 2008-01-08 Uros Bizjak <ubizjak@gmail.com>
15048 2008-01-05 Uros Bizjak <ubizjak@gmail.com>
15049 * config/i386/i386.c (ix86_builtin_reciprocal): Remove check
15052 2008-01-08 Jan Sjodin <jan.sjodin@amd.com>
15054 * config/i386/i386.c (k8_cost, amdfam10_cost): Branch costs
15055 for vectorization tuned.
15057 2008-01-08 Richard Guenther <rguenther@suse.de>
15059 PR tree-optimization/34683
15060 * tree-ssa-operands.c (operand_build_cmp): Export.
15061 * tree-ssa-operands.h (operand_build_cmp): Declare.
15062 * tree-vn.c (vuses_compare): Remove.
15063 (sort_vuses): Use operand_build_cmp.
15064 (sort_vuses_heap): Likewise.
15065 * tree-ssa-sccvn.c (vuses_to_vec): Use VEC_reserve, not VEC_alloc
15066 to re-use old VEC if available. Do not sort already sorted VUSEs.
15067 (vdefs_to_vec): Do not sort already sorted VDEFs.
15069 2008-01-08 Jakub Jelinek <jakub@redhat.com>
15071 PR middle-end/34694
15072 * omp-low.c (copy_var_decl): Copy also DECL_SOURCE_LOCATION.
15074 2008-01-08 Uros Bizjak <ubizjak@gmail.com>
15077 * doc/invoke.texi (i386 and x86-64 Options) [mrecip]: Document
15078 limitations of reciprocal sequences on x86 targets.
15080 2008-01-08 Richard Guenther <rguenther@suse.de>
15082 PR tree-optimization/34683
15083 * tree-flow-inline.h (var_ann): Remove overzealous asserts.
15085 2008-01-07 Jakub Jelinek <jakub@redhat.com>
15088 * config/darwin.c (darwin_mergeable_string_section): Don't use
15089 .cstring if int_size_in_bytes != TREE_STRING_LENGTH.
15091 2008-01-07 Uros Bizjak <ubizjak@gmail.com>
15094 * config/i386/i386.md (neg<mode>2): Rename from negsf2, negdf2 and
15095 negxf2. Macroize expander using X87MODEF mode iterator. Change
15096 predicates of op0 and op1 to register_operand.
15097 (abs<mode>2): Rename from abssf2, absdf2 and negxf2. Macroize
15098 expander using X87MODEF mode iterator. Change predicates of
15099 op0 and op1 to register_operand.
15100 ("*absneg<mode>2_mixed", "*absneg<mode>2_sse"): Rename from
15101 corresponding patterns and macroize using MODEF macro. Change
15102 predicates of op0 and op1 to register_operand and remove
15103 "m" constraint. Disparage "r" alternative with "!".
15104 ("*absneg<mode>2_i387"): Rename from corresponding patterns and
15105 macroize using X87MODEF macro. Change predicates of op0 and op1
15106 to register_operand and remove "m" constraint. Disparage "r"
15107 alternative with "!".
15108 (absneg splitter with memory operands): Remove.
15109 ("*neg<mode>2_1", "*abs<mode>2_1"): Rename from corresponding
15110 patterns and macroize using X87MODEF mode iterator.
15111 * config/i386/sse.md (negv4sf2, absv4sf2, neg2vdf2, absv2df2):
15112 Change predicate of op1 to register_operand.
15113 * config/i386/i386.c (ix86_expand_fp_absneg_operator): Remove support
15114 for memory operands.
15116 2008-01-07 Nathan Froyd <froydnj@codesourcery.com>
15118 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add clause for mcpu=8548.
15120 2008-01-07 Richard Guenther <rguenther@suse.de>
15122 * basic-block.h (struct edge_def): Pair dest_idx with goto_locus
15125 2008-01-07 Richard Guenther <rguenther@suse.de>
15127 PR tree-optimization/34683
15128 * tree-ssa-sccvn.c (vuses_to_vec): Pre-allocate the vector of
15129 VOPs of the needed size to save memory. Use VEC_quick_push
15130 to save compile-time.
15131 (vdefs_to_vec): Likewise.
15133 2008-01-07 Sa Liu <saliu@de.ibm.com>
15135 * config/spu/spu.md (divdf3): Genetate inline code for double
15136 division. The implementation doesn't handle INF or NAN, therefore it
15137 only applies when -ffinite-math-only is given.
15139 2008-01-06 Paolo Carlini <pcarlini@suse.de>
15142 * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_RTTI, if appropriate.
15143 * doc/cpp.texi ([Common Predefined Macros]): Document.
15145 2008-01-06 Uros Bizjak <ubizjak@gmail.com>
15147 * config/i386/i386.c (ix86_emit_swsqrtsf): Use negative constants in
15148 order to use commutative addition instead of subtraction.
15150 2008-01-06 Andrew Pinski <andrew_pinski@playstation.sony.com>
15151 Mircea Namolaru <namolaru@il.ibm.com>
15152 Vladimir Yanovsky <yanov@il.ibm.com>
15153 Revital Eres <eres@il.ibm.com>
15155 PR tree-optimization/34263
15156 * tree-outof-ssa.c (process_single_block_loop_latch,
15157 contains_tree_r): New functions.
15158 (analyze_edges_for_bb): Call process_single_block_loop_latch
15159 function to empty single-basic-block latch block if possible.
15161 2008-01-05 Uros Bizjak <ubizjak@gmail.com>
15163 * config/i386/i386.c (ix86_builtin_reciprocal): Remove check
15165 (ix86_emit_swsqrtsf): Do not filter out infinity for rsqrt expansion.
15167 2008-01-05 Richard Sandiford <rsandifo@nildram.co.uk>
15169 * c-omp.c (check_omp_for_incr_expr): Handle CONVERT_EXPR.
15171 2008-01-05 Richard Sandiford <rsandifo@nildram.co.uk>
15173 * config/mips/mips.c (mips_in_small_data_p): Reinstate size > 0 check.
15175 2008-01-05 Jakub Jelinek <jakub@redhat.com>
15177 PR tree-optimization/34618
15178 * tree-outof-ssa.c (create_temp): Copy over DECL_GIMPLE_REG_P
15181 2008-01-05 Uros Bizjak <ubizjak@gmail.com>
15184 * config/i386/i386.c (ix86_emit_swsqrtsf): Swap input operands
15185 in the call to gen_rtx_NE. Remove unneeded VECTOR_MODE_P check.
15186 Update copyright year.
15188 * config/i386/i386.md (rsqrtsf2): Enable for TARGET_SSE_MATH.
15189 Update copyright year.
15190 * config/i386/sse.md (rsqrtv4sf2): Ditto. Unconditionally expand
15193 2008-01-05 Zhouyi Zhou <zhouzhouyi@FreeBSD.org>
15195 * tree-vrp.c (find_conditional_asserts): Remove redundant check that
15196 edge does not point to current bb before changing need_assert.
15198 2008-01-04 Richard Guenther <rguenther@suse.de>
15200 PR middle-end/34029
15201 * tree-cfg.c (verify_expr): Do not look inside ADDR_EXPRs
15202 for verifying purposes if they are is_gimple_min_invariant.
15204 2008-01-04 Aldy Hernandez <aldyh@redhat.com>
15206 PR tree-optimization/34448
15207 PR tree-optimization/34465
15208 * gimplify.c (gimplify_init_constructor): Add new parameter
15209 notify_temp_creation. Use it.
15210 (gimplify_modify_expr_rhs): Take volatiles into account when
15211 optimizing constructors.
15212 Do not optimize constructors if gimplify_init_constructor will dump to
15214 * gcc.dg/tree-ssa/pr32901.c: Tests const volatiles.
15215 * gcc.c-torture/compile/pr34448.c: New.
15217 2008-01-04 Jakub Jelinek <jakub@redhat.com>
15219 PR gcov-profile/34609
15220 * tree-inline.c (declare_return_variable): Set TREE_ADDRESSABLE on
15221 return_slot if result is TREE_ADDRESSABLE.
15223 2008-01-04 Richard Sandiford <rsandifo@nildram.co.uk>
15225 * config/mips/mips.md (sqrt_condition): Tweak comment.
15226 (recip_condition): Likewise. Require TARGET_FLOAT64 for DFmode.
15228 2008-01-03 Tom Tromey <tromey@redhat.com>
15231 * c-common.c (c_type_hash): Handle VLAs.
15233 2008-01-03 Jan Hubicka <jh@suse.cz>
15235 PR tree-optimization/31081
15236 * tree-inline.c (remap_ssa_name): Initialize uninitialized SSA vars to
15237 0 when inlining and not inlining to first basic block.
15238 (remap_decl): When var is initialized to 0, don't set default_def.
15239 (expand_call_inline): Set entry_bb.
15240 * tree-inline.h (copy_body_data): Add entry_bb.
15242 2008-01-03 Jakub Jelinek <jakub@redhat.com>
15245 * cgraphunit.c (cgraph_build_static_cdtor): set_cfun back to NULL
15248 PR tree-optimization/29484
15249 * tree-inline.c (inline_forbidden_p_2): New function.
15250 (inline_forbidden_p): Disallow inlining if some static var
15251 has an address of a local LABEL_DECL in its initializer.
15252 * doc/extend.texi (Labels as Values): Document &&foo behaviour
15255 2008-01-03 Sebastian Pop <sebastian.pop@amd.com>
15257 PR tree-optimization/34635
15258 * tree-data-ref.c (add_other_self_distances): Make sure that the
15259 evolution step is constant.
15261 2008-01-03 Jakub Jelinek <jakub@redhat.com>
15263 PR middle-end/34608
15264 * omp-low.c (expand_omp_parallel): Purge dead EH edges in the child fn.
15266 2008-01-02 Richard Sandiford <rsandifo@nildram.co.uk>
15268 * tree-sra.c (scalarize_init): Insert the generate_element_init
15269 statements after the generate_element_zero statements.
15271 2008-01-02 Richard Guenther <rguenther@suse.de>
15273 PR middle-end/34093
15274 PR middle-end/31976
15275 * tree-ssa-operands.c (ssa_operand_alloc): Also allocate a buffer
15276 for very large number of operands instead of ICEing.
15278 2008-01-02 Arthur Norman <acn1@cam.ac.uk>
15281 * config/i386/i386.c (ix86_expand_prologue): Save red-zone
15282 while stack probing.
15284 2008-01-01 Douglas Gregor <doug.gregor@gmail.com>
15286 * c-opts.c (sanitize_cpp_opts): Don't warn about "long long" when
15289 2008-01-01 Volker Reichelt <v.reichelt@netcologne.de>
15291 PR libmudflap/26442
15292 * tree-mudflap.c (mx_register_decls): Guard warning by
15293 !DECL_ARTIFICIAL check.
15295 2008-01-01 Jakub Jelinek <jakub@redhat.com>
15297 * config/i386/sse.md (sse5_pperm, sse5_pperm_pack_v2di_v4si,
15298 sse5_pperm_pack_v4si_v8hi, sse5_pperm_pack_v8hi_v16qi,
15299 sse5_perm<mode>): Fix constraints.