1 2011-05-25 Andrey Belevantsev <abel@ispras.ru>
3 PR rtl-optimization/49014
4 * config/i386/athlon.md (athlon_ssecomi): Change type to ssecomi.
6 2011-05-25 Jakub Jelinek <jakub@redhat.com>
9 * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
11 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
13 PR rtl-optimization/48757
14 * ira-build.c (loop_with_eh_edge_p): Rename to
15 loop_with_complex_edge_p, check edges on complexity, make function
17 (mark_loops_for_removal): Make call of loop_with_complex_edge_p
20 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
22 * config/sparc/sparc.c (sparc_option_override): If not set by the user,
23 force flag_ira_share_save_slots to 0.
25 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
27 * var-tracking.c (compute_cfa_pointer): Adjust head comment.
28 (vt_initialize): Set PROLOGUE_BB unconditionally.
29 Add block comment about CFA_BASE_RTX machinery.
30 Reset FP_CFA_OFFSET to -1 on all invalid paths.
31 Call vt_init_cfa_base only if FP_CFA_OFFSET isn't equal to -1.
33 2011-05-24 Nicola Pero <nicola.pero@meta-innovation.com>
36 * c-parser.c (c_parser_objc_class_instance_variables): More robust
37 parsing of syntax error in ObjC instance variable lists. In
38 particular, avoid an infinite loop if there is a stray ']'.
39 Updated error message.
41 2011-05-24 Ian Lance Taylor <iant@google.com>
43 * godump.c (go_define): Don't accept a string immediately after
46 2011-05-24 Ian Lance Taylor <iant@google.com>
48 * godump.c (struct godump_container): Add invalid_hash field.
49 (go_format_type): Return false if type is found in invalid_hash.
50 (go_output_typedef): Add invalid type to invalid_hash.
51 (go_finish): Create and delete invalid_hash.
53 2011-05-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
55 PR tree-optimization/46728
56 * tree-ssa-math-opts.c (powi_table): New.
57 (powi_lookup_cost): New.
59 (powi_as_mults_1): New.
61 (gimple_expand_builtin_powi): New.
62 (execute_cse_sincos): Add switch case for BUILT_IN_POWI.
63 (gate_cse_sincos): Remove sincos/cexp restriction.
65 2011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
68 * config.gcc (alpha*-dec-osf5.1*): Only build mips-tfile,
70 * mips-tfile.c: Remove CROSS_DIRECTORY_STRUCTURE handling.
71 * mips-tdump.c: Likewise.
73 2011-05-24 H.J. Lu <hongjiu.lu@intel.com>
76 * config/i386/driver-i386.c (host_detect_local_cpu): Always
77 add -mno-XXX. Handle FMA.
79 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
81 PR rtl-optimization/48633
82 * ira-build.c (loop_with_eh_edge_p): New function.
83 (mark_loops_for_removal): Use it.
85 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
87 PR rtl-optimization/48971
88 * ira.c (setup_pressure_classes): Don't check register move cost
89 for classes with one registers. Don't add pressure class if there
90 is a pressure class with the same available hard registers.
91 Check contains_reg_of_mode. Fix a typo in collecting
92 temp_hard_regset. Ignore hard registers not belonging to a class.
94 2011-05-24 Uros Bizjak <ubizjak@gmail.com>
97 * config/i386/sse.md (sse2_loadhpd): Remove shufpd alternative.
99 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
100 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
102 PR gcov-profile/48845
103 * config/sol2.h (LIB_SPEC): Link TLS support for tree profiling.
105 2011-05-24 Richard Guenther <rguenther@suse.de>
107 * gimple.c (compare_type_names_p): Remove for_completion_p arg.
108 (gimple_compatible_complete_and_incomplete_subtype_p): Remove.
109 (gimple_types_compatible_p_1): Adjust.
110 (iterative_hash_canonical_type): Do not bother about complete vs.
112 (gimple_canonical_types_compatible_p): Likewise.
114 2011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
116 * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Remove.
118 2011-05-24 Richard Guenther <rguenther@suse.de>
121 * gimple.c (gimple_register_canonical_type): Revert
123 * alias.c (get_alias_set): Only assert that TYPE_CANONICAL
124 does not for a tree for the case where it matters. Cache
125 pointer-type alias-sets.
127 2011-05-24 Joseph Myers <joseph@codesourcery.com>
129 * Makefile.in (GCC_OBJS): Remove opts-common.o and options.o.
130 (OBJS): Remove options.o, opts-common.o and prefix.o.
131 (OBJS-libcommon-target): New.
132 (ALL_HOST_BACKEND_OBJS): Include $(OBJS-libcommon-target).
133 (BACKEND): Include libcommon-target.a.
134 (MOSTLYCLEANFILES): Include libcommon-target.a.
135 (libcommon-target.a): New.
136 (xgcc$(exeext), cpp$(exeext)): Use libcommon-target.a instead of
139 2011-05-23 Joseph Myers <joseph@codesourcery.com>
141 * optc-save-gen.awk: New. Based on optc-gen.awk. Don't generate
142 parts of output shared with the driver.
143 * optc-gen.awk: Don't generate parts of output not shared with the
145 * opth-gen.awk: Remove GCC_DRIVER conditionals.
146 * doc/options.texi (SourcerInclude): Mention options-save.c.
147 * Makefile.in (GCC_OBJS): Use options.o instead of gcc-options.o.
148 (OBJS): Add options-save.o.
149 (options-save.c, options-save.o): New.
150 (options.o): Update dependencies.
151 (gcc-options.o): Remove.
152 (mostlyclean): Remove options-save.c.
154 2011-05-23 Jakub Jelinek <jakub@redhat.com>
157 * dbxout.c: Include cgraph.h.
158 (dbxout_expand_expr): If a VAR_DECL is TREE_STATIC, not written
159 and without value expr, return NULL if no varpool node exists for
160 it or if it is not needed.
161 * Makefile.in (dbxout.o): Depend on $(CGRAPH_H).
164 * c-decl.c (start_decl): Convert expr to void_type_node.
166 2011-05-23 Richard Sandiford <rdsandiford@googlemail.com>
168 PR rtl-optimization/48826
169 * emit-rtl.c (try_split): When splitting a call that is followed
170 by a NOTE_INSN_CALL_ARG_LOCATION, move the note after the new call.
172 2011-05-23 Jakub Jelinek <jakub@redhat.com>
174 * cfgexpand.c (expand_debug_expr): For unused non-addressable
175 parameters passed in memory prefer using DECL_INCOMING_RTL over
176 the pseudos it will be copied into.
178 2011-05-23 H.J. Lu <hongjiu.lu@intel.com>
181 * config/i386/i386.c (ix86_option_override_internal): Save the
182 initial options after checking vzeroupper.
184 2011-05-23 David Li <davidxl@google.com>
186 PR tree-optimization/48988
187 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds):
188 Initialize has_valid_pred for each pred chain.
190 2011-05-23 Richard Guenther <rguenther@suse.de>
192 * gimple.c (gimple_types_compatible_p_1): Always compare type names.
193 (iterative_hash_gimple_type): Always hash type names.
195 2011-05-23 Nathan Froyd <froydnj@codesourcery.com>
197 * c-typeck.c (build_function_call_vec): Tweak call to
198 check_function_arguments.
200 2011-05-23 Richard Guenther <rguenther@suse.de>
202 PR tree-optimization/49115
203 * tree-ssa-alias.c (stmt_kills_ref_p_1): If the assignment
204 is not necessarily carried out, do not claim it kills the ref.
205 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
207 2011-05-23 Richard Guenther <rguenther@suse.de>
210 * builtins.c (fold_builtin_memory_op): Be less restrictive about
211 what pointer types we accept for folding.
213 2011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
215 * gthr-gnat.c: Remove.
216 * gthr-gnat.h: Remove.
217 * Makefile.in (LIB2ADDEH): Remove $(srcdir)/gthr-gnat.c.
218 * config/t-freebsd (LIB2ADDEH): Likewise.
219 * config/t-linux (LIB2ADDEH): Likewise.
220 * config/t-sol2 (LIB2ADDEH): Likewise.
221 * config/ia64/t-vms (LIB2ADDEH): Likewise.
222 * configure.ac (target_thread_file): Remove gnat handling.
223 * configure: Regenerate.
224 * doc/install.texi (Configuration, --enable-threads): Remove gnat.
226 2011-05-23 Tristan Gingold <gingold@adacore.com>
227 Eric Botcazou <ebotcazou@adacore.com>
229 * gcov.c (create_file_names): If no object directory is specified,
230 keep the directory of the file.
232 2011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
234 * configure.ac (enable_threads): Remove irix; add lynx, tpf; sort list.
235 * configure: Regenerate.
237 2011-05-23 Jakub Jelinek <jakub@redhat.com>
240 * expr.c (expand_expr_real_2) <case LT_EXPR>: If do_store_flag
241 failed and the comparison has a single bit signed type, use
242 constm1_rtx instead of const1_rtx for true value.
243 (do_store_flag): If ops->type is single bit signed type, disable
244 signel bit test optimization and pass -1 instead of 1 as last
245 parameter to emit_store_flag_force.
247 2011-05-23 Tom de Vries <tom@codesourcery.com>
250 * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith): New
252 (infer_loop_bounds_from_undefined): Use new function.
254 2011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
256 * config/mips/mips.h (SUBTARGET_ASM_OPTIMIZING_SPEC): Delete.
257 (ASM_SPEC): Add a -O* option here. Pass -O0 for -noasmopt,
258 -O1 for -fno-delayed-branch, -O2 if optimization is enabled,
260 (EXTRA_SPECS): Remove subtarget_asm_optimizing_spec.
262 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
264 * cfgcleanup.c (try_forward_edges): Do not update BB_FORWARDER_BLOCK.
265 (try_optimize_cfg): Update BB_FORWARDER_BLOCK if try_forward_edges
268 2011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
270 * config/mips/mips.c (mips_default_arch): Honor MIPS_ISA_DEFAULT.
272 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
274 * config/sparc/sparc.c (sparc_delegitimize_address): Handle
275 UNSPEC_MOVE_PIC pattern.
277 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
279 * config.gcc (sparc-*-elf*): Add sparc/t-crtin.
280 (sparc-*-rtems*): Likewise.
281 (sparc64-*-elf*): Likewise.
282 (sparc64-*-rtems*): Likewise.
283 (sparc*-*-solaris2*): Likewise. Remove crti.o crtn.o extra parts.
284 * config/sparc/t-crtin: New file.
285 * config/sparc/t-sol2 (crti.o): Delete rule.
287 * config/sparc/t-linux64 (EXTRA_MULTILIB_PARTS): Delete.
288 * config/sparc/t-sol2-64 (EXTRA_MULTILIB_PARTS): Likewise.
289 * config/sparc/sp64-elf.h (STARTFILE_SPEC): Tidy and add crti.o.
290 (ENDFILE_SPEC): Add crtn.o.
292 2011-05-22 Tom de Vries <tom@codesourcery.com>
295 * fold-const.c (fold_checksum_tree): Guard TREE_CHAIN use with
296 CODE_CONTAINS_STRUCT (TS_COMMON).
298 2011-05-22 Jakub Jelinek <jakub@redhat.com>
301 * expmed.c (extract_fixed_bit_field): Test whether target can be used
302 only after deciding which mode to use.
304 2011-05-22 Tom de Vries <tom@codesourcery.com>
307 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Fix const test
308 for call to get_shiftadd_cost.
310 2011-05-22 Uros Bizjak <ubizjak@gmail.com>
313 * config/i386/cpuid.h (bit_MMXEXT): New define.
315 2011-05-22 Nick Clifton <nickc@redhat.com>
317 * config/stormy16/stormy16.c (xstormy16_init_builtins): prevent
318 initialisation of non-existant args[2] element. Use args[] array
319 not arg[] array to pass arguments to build_function_type_list.
321 2011-05-22 Ira Rosen <ira.rosen@linaro.org>
323 PR tree-optimization/49087
324 * tree-vect-loop.c (vect_is_slp_reduction): Fail if LHS has no uses.
326 2011-05-21 Jason Merrill <jason@redhat.com>
329 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Check for
330 static storage duration.
332 2011-05-21 Eric Botcazou <ebotcazou@adacore.com>
334 * config/sparc/sparc.md (setjmp): Handle PIC mode and use the hard
337 2011-05-21 Eric Botcazou <ebotcazou@adacore.com>
339 * config/sparc/sparc.c (eligible_for_return_delay): Do not return
340 false if there are call-saved registers here...
341 (sparc_can_use_return_insn_p): ...but here instead.
342 (save_or_restore_regs): Fix thinko.
343 (sparc_expand_prologue): Use current_function_is_leaf.
344 (sparc_frame_pointer_required): Likewise.
346 2011-05-21 Nick Clifton <nickc@redhat.com>
349 * config/rx/rx.c (rx_memory_move_cost): Note unused parameters.
351 2011-05-21 Nicola Pero <nicola.pero@meta-innovation.com>
353 * gengtype.c (walk_type): Implemented "atomic" GTY option.
354 * doc/gty.texi (GTY Options): Document "atomic" GTY option.
356 2011-05-21 Joseph Myers <joseph@codesourcery.com>
358 * opt-read.awk: New. Split out of optc-gen.awk and opth-gen.awk.
359 * optc-gen.awk: Move common code to opt-read.awk.
360 * opth-gen.awk: Likewise.
361 * Makefile.in (options.c, s-options-h): Update to use opt-read.awk.
363 2011-05-20 Nathan Froyd <froydnj@codesourcery.com>
365 * godump.c (go_format_type): Don't use TYPE_ARG_TYPES.
367 2011-05-20 Tom de Vries <tom@codesourcery.com>
370 * tree-ssa-loop-ivopts.c: Include expmed.h.
371 (get_shiftadd_cost): New function.
372 (force_expr_to_var_cost): Declare forward. Use get_shiftadd_cost.
374 2011-05-20 Jakub Jelinek <jakub@redhat.com>
377 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL
378 for PHI args that are SSA_NAME_IS_DEFAULT_DEF.
380 2011-05-20 Joseph Myers <joseph@codesourcery.com>
382 * Makefile.in: Update comment referring to $(OBJS-common).
384 2011-05-20 Ian Lance Taylor <iant@google.com>
386 * godump.c (go_output_typedef): Put enum constants in the macro
387 hash table to avoid duplicate Go const definitions.
389 2011-05-20 Joseph Myers <joseph@codesourcery.com>
391 * Makefile.in (LIBDEPS): Add libcommon.a.
393 (GCC_OBJS): Remove diagnostic.o, pretty-print.o and input.o.
394 (OBJS-common): Remove diagnostic.o, input.o, intl.o,
395 pretty-print.o and version.o.
396 (OBJS-libcommon): New.
397 (ALL_HOST_BACKEND_OBJS): Add $(OBJS-libcommon).
398 (BACKEND): Add libcommon.a.
399 (MOSTLYCLEANFILES): Likewise.
401 (xgcc$(exeext)): Don't explicitly use version.o and intl.o.
402 (cpp$(exeext)): Likewise.
403 (COLLECT2_OBJS): Remove intl.o, version.o, diagnostic.o,
404 pretty-print.o and input.o.
405 (lto-wrapper$(exeext)): Don't explicitly use intl.o.
406 (lto-wrapper.o): Depend on $(DIAGNOSTIC_H).
408 (mips-tfile): Don't explicitly use version.o.
409 (mips-tdump): Likewise.
410 (gcov.o): Depend on $(DIAGNOSTIC_H).
411 (gcov-dump.o): Depend on intl.h and $(DIAGNOSTIC_H).
412 (GCOV_OBJS): Remove intl.o, version.o and errors.o.
413 (GCOV_DUMP_OBJS): Remove version.o and errors.o.
414 * gcov-dump.c: Include intl.h and diagnostic.h.
415 (main): Initialize diagnostics.
416 * gcov.c: Include diagnostic.h.
418 (main): Initialize diagnostics.
419 * lto-wrapper.c: Include diagnostic.h.
420 (main): Initialize diagnostics.
422 2011-05-20 Michael Matz <matz@suse.de>
424 * Makefile.in (OBJS-common, OBJS-md, OBJS-archive): Merge into OBJS.
426 2011-05-20 Michael Matz <matz@suse.de>
427 Richard Guenther <rguenther@suse.de>
429 * lto-streamer.c (lto_record_common_node): Don't track seen nodes,
430 use lto_streamer_cache_append directly instead of returning a VEC.
431 (preload_common_node): Remove.
432 (lto_get_common_nodes): Rename to lto_preload_common_nodes, don't
434 (lto_streamer_cache_create): Call lto_preload_common_nodes.
436 2011-05-20 Richard Guenther <rguenther@suse.de>
438 PR tree-optimization/49079
439 * tree-dfa.c (get_ref_base_and_extent): Handle view-converting
440 MEM_REFs correctly for the trailing array access detection.
441 Special case constants the same way as decls for overall size
444 2011-05-20 Uros Bizjak <ubizjak@gmail.com>
446 * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Fix macro
449 2011-05-20 Jakub Jelinek <jakub@redhat.com>
451 PR tree-optimization/49073
452 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL if
453 PHI argument is SSA_NAME, whose def_stmt is dominated by the PHI.
454 * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Calculate dominators.
456 2011-05-20 Richard Guenther <rguenther@suse.de>
459 * gimple.c (gimple_register_canonical_type): Compute TYPE_CANONICAL
460 of pointer types the same way the middle-end does.
462 2011-05-20 Richard Guenther <rguenther@suse.de>
464 * gimple.c (gimple_register_type_1): Do not fiddle with main-variant
465 or pointer-to chains. Delay all fixup to uniquify_nodes.
467 2011-05-19 Quentin Neill <quentin.neill@amd.com>
469 * config/i386/sse.md (fma4_fmsubadd): Use <ssemodesuffix>.
470 (fma4_fmaddsub): Likewise
472 2011-05-19 Jan Hubicka <jh@suse.cz>
474 * gimple.c (gtc_visited, gtc_ob, type_pair_hash, type_pair_eq): Remove.
475 (GIMPLE_TYPE_PAIR_SIZE): New macro.
476 (type_pair_cache): New static var.
477 (lookup_type_pair): Use fixed sized custom hash; make inline.
478 (gtc_visit, gimple_types_compatible_p, gimple_register_type_1): Update
479 calls of lookup_type_pair.
480 (print_gimple_types_stats): Remove cache stats.
481 (free_gimple_type_tables): Free type_pair_cache instead of gtc_visited
484 2011-05-19 Uros Bizjak <ubizjak@gmail.com>
486 * config/i386/i386.c (option_override_internal): Enable TARGET_CMOVE
487 when TARGET_RDRND is active.
488 (ix86_expand_builtin) <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>:
489 Generate dummy SImode target register when target is NULL.
491 2011-05-19 Joseph Myers <joseph@codesourcery.com>
493 * config/arm/arm-fpus.def: New.
494 * config/arm/genopt.sh: Generate Enum and EnumValue entries from
496 * config/arm/arm-tables.opt: Regenerate.
497 * config/arm/arm.c (all_fpus): Move contents to arm-fpus.def.
498 (arm_option_override): Don't decode FPU name to string here.
499 * config/arm/arm.opt (mfpu=): Use Enum.
500 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt, arm.o):
503 2011-05-19 Joseph Myers <joseph@codesourcery.com>
505 * collect2.c: Include diagnostic.h.
506 (fatal_perror, fatal, error, fancy_abort): Remove.
507 (main): Set progname. Call xmalloc_set_program_name and
508 diagnostic_initialize.
509 (maybe_run_lto_and_relink, main, collect_execute, scan_prog_file,
510 scan_libraries, resolve_lib_name): Call fatal_error instead of
511 fatal and fatal_perror.
512 * collect2.h (error, fatal, fatal_perror): Don't declare.
513 * tlink.c: Include diagnostic-core.h.
514 (recompile_files): Call fatal_error instead of fatal_perror.
515 * Makefile.in (COLLECT2_OBJS): Include diagnostic.o,
516 pretty-print.o and input.o.
517 (collect2.o, tlink.o): Update dependencies.
519 2011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
521 * config/i386/i386.md (tls_initial_exec_64_sun): Add semicolon.
523 2011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
526 * configure.ac (gcc_cv_as_comdat_group_group): Check for Sun as
527 COMDAT group syntax, both SPARC and x86 variants.
528 (HAVE_COMDAT_GROUP): Also define if gcc_cv_as_comdat_group_group.
529 * configure: Regenerate.
530 * config/sol2.h (TARGET_SOLARIS): Define.
531 (PUSHSECTION_FORMAT): Remove.
532 (SECTION_NAME_FORMAT): Define.
533 * config/sol2.c: Include hashtab.h.
534 (solaris_output_init_fini): Replace PUSHSECTION_FORMAT by its
535 expansion, using SECTION_NAME_FORMAT.
536 (solaris_comdat_htab): New variable.
537 (struct comdat_entry): Define.
538 (comdat_hash): New function.
539 (comdat_eq): New function.
540 (solaris_elf_asm_comdat_section): New function.
541 (solaris_define_comdat_signature): New function.
542 (solaris_code_end): New function.
543 * config/sol2-protos.h (solaris_elf_asm_comdat_section): Declare.
544 (solaris_code_end): Declare.
545 * config/t-sol2 (sol2.o): Add $HASHTAB_H dependency.
546 * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Call
548 (i386_solaris_elf_named_section): Wrap in TARGET_SOLARIS.
549 Remove ATTRIBUTE_UNUSED.
550 [!USE_GAS]: Call solaris_elf_asm_comdat_section for
551 SECTION_LINKONCE sections if HAVE_COMDAT_GROUP.
552 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Likewise.
553 * config/i386/sol2-10.h (TARGET_ASM_NAMED_SECTION): Moved ...
554 * config/i386/sol2.h (TARGET_ASM_NAMED_SECTION): ... here.
555 * config/sparc/sol2.h (TARGET_ASM_CODE_END): Redefine.
556 (PUSHSECTION_FORMAT): Remove.
557 (SECTION_NAME_FORMAT): Redefine.
559 2011-05-19 Kai Tietz <ktietz@redhat.com>
561 * tree-cfg.c (verify_gimple_assign_binary): Barf on
562 TRUTH_AND_EXPR, TRUTH_OR_EXPR, and TRUTH_XOR_EXPR.
563 (gimplify_expr): Move TRUTH_AND|OR|XOR_EXPR to its binary form.
565 2011-05-19 Anatoly Sokolov <aesok@post.ru>
566 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
568 * config/t-sol2 (sol2.o): Add $(TARGET_H) dependency.
570 2011-05-19 Richard Guenther <rguenther@suse.de>
573 * tree-object-size.c (addr_object_size): If the pointed-to
574 variable is a decl use DECL_SIZE_UNIT instead of TYPE_SIZE_UNIT.
576 2011-05-19 Richard Guenther <rguenther@suse.de>
578 * gimple.c (gimple_types_compatible_p_1): Compare names of
579 the types themselves.
580 (iterative_hash_gimple_type): And hash them that way.
581 (gimple_register_type_1): If we register a main variant properly
582 initialize the leader to ourselves.
584 2011-05-19 Tom de Vries <tom@codesourcery.com>
587 * tree-ssa-loop-ivopts.c (get_expr_id): Factored new function out of
588 get_loop_invariant_expr_id.
589 (get_loop_invariant_expr_id): Use get_expr_id.
590 (parm_decl_cost): New function.
591 (determine_use_iv_cost_condition): Use get_expr_id and parm_decl_cost.
592 Improve bound cost estimation. Use different inv_expr_id for elim and
595 2011-05-19 Tom de Vries <tom@codesourcery.com>
598 * tree-ssa-loop-ivopts.c (determine_iv_cost): Prevent
601 2011-05-18 H.J. Lu <hongjiu.lu@intel.com>
604 * config/i386/sse.md (avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>):
605 Properly handle load cast.
607 2011-05-18 Jakub Jelinek <jakub@redhat.com>
609 PR tree-optimization/49039
610 * tree-vrp.c (extract_range_from_binary_expr): For
611 MIN_EXPR <~[a, b], ~[c, d]> and MAX_EXPR <~[a, b], ~[c, d]>
612 return ~[MAX_EXPR <a, c>, MIN_EXPR <b, d>].
614 2011-05-18 Tom de Vries <tom@codesourcery.com>
617 * tree-ssa-loop-ivopts.c (computation_cost): Prevent cost of 0.
619 2011-05-18 Uros Bizjak <ubizjak@gmail.com>
621 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Split asm template.
622 (*tls_global_dynamic_64): Ditto.
623 (*tls_local_dynamic_base_32_gnu): Ditto.
624 (*tls_local_dynamic_base_64): Ditto.
625 (tls_initial_exec_64_sun): Ditto.
627 2011-05-18 Stuart Henderson <shenders@gcc.gnu.org>
629 * doc/invoke.texi (Blackfin Options): -mcpu accepts bf592.
630 * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
632 * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
633 * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
634 * config/bfin/bfin.c (bfin_cpus): Add bf592.
635 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
636 __ADSPBF592__ and __ADSPBF59x__ for BFIN_CPU_BF592.
637 * config/bfin/bfin-opts.h (bfin_cpu_type): Add BFIN_CPU_BF592.
638 * config/bfin/elf.h (LIB_SPEC): Add bf592.
640 2011-05-18 Joseph Myers <joseph@codesourcery.com>
642 * config/arm/arm-opts.h (enum arm_fp16_format_type, enum
643 arm_abi_type, enum float_abi_type, enum arm_tp_type): Move from arm.h.
644 * config/arm/arm.c (arm_float_abi, arm_fp16_format, arm_abi,
645 target_thread_pointer, arm_structure_size_boundary, struct
646 float_abi, all_float_abis, struct fp16_format, all_fp16_formats,
647 struct abi_name, arm_all_abis): Remove.
648 (arm_option_override) Don't process most enumerated option values here.
649 Don't process target_fpe_name here. Work with integer not string for
650 structure size boundary; use separate diagnostics for each case.
651 * config/arm/arm.h (enum float_abi_type, enum
652 arm_fp16_format_type, enum arm_abi_type, enum arm_tp_type): Move
654 (arm_float_abi, arm_fp16_format, arm_abi, target_thread_pointer,
655 arm_structure_size_boundary): Remove.
656 * config/arm/arm.opt (mabi=): Use Enum and Init.
657 (arm_abi_type): New Enum and EnumValue entries.
658 (mfloat-abi=): Use Enum and Init.
659 (float_abi_type): New Enum and EnumValue entries.
660 (mfp=, mfpe=): Replace by separate Alias entries for each argument.
661 (mfp16-format=): Use Enum and Init.
662 (arm_fp16_format_type): New Enum and EnumValue entries.
663 (mstructure-size-boundary=): Use UInteger and Init.
664 (mtp=): Use Enum and Init.
665 (arm_tp_type): New Enum and EnumValue entries.
667 2011-05-18 Richard Guenther <rguenther@suse.de>
669 PR tree-optimization/49018
670 * gimple.c (gimple_has_side_effects): Volatile asms have side-effects.
671 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Use
672 gimple_has_side_effects.
674 2011-05-18 Richard Guenther <rguenther@suse.de>
676 * gimple.c (gimple_register_type_1): New function, split out from ...
677 (gimple_register_type): ... here. Avoid infinite recursion.
679 2011-05-18 Ira Rosen <ira.rosen@linaro.org>
681 PR tree-optimization/41881
682 * tree-vectorizer.h (struct _loop_vec_info): Add new field
683 reduction_chains along with a macro for its access.
684 * tree-vect-loop.c (new_loop_vec_info): Initialize reduction chains.
685 (destroy_loop_vec_info): Free reduction chains.
686 (vect_analyze_loop_2): Return false if vect_analyze_slp() returns false.
687 (vect_is_slp_reduction): New function.
688 (vect_is_simple_reduction_1): Call vect_is_slp_reduction.
689 (vect_create_epilog_for_reduction): Support SLP reduction chains.
690 * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow different
691 definition types for reduction chains.
692 (vect_supported_load_permutation_p): Don't allow permutations for
694 (vect_analyze_slp_instance): Support reduction chains.
695 (vect_analyze_slp): Try to build SLP instance from reduction chains.
696 (vect_get_constant_vectors): Handle reduction chains.
697 (vect_schedule_slp_instance): Mark the first statement of the
698 reduction chain as reduction.
700 2011-05-18 Ira Rosen <ira.rosen@linaro.org>
702 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Use new
703 names for group elements access.
704 * tree-vectorizer.h (struct _stmt_vec_info): Use interleaving info for
705 reduction chains as well. Remove data reference and interleaving
706 related words from the fields names.
707 * tree-vect-loop.c (vect_transform_loop): Use new names for group
709 * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain,
710 vect_insert_into_interleaving_chain, vect_update_interleaving_chain,
711 vect_update_interleaving_chain, vect_same_range_drs,
712 vect_analyze_data_ref_dependence, vect_update_misalignment_for_peel,
713 vect_verify_datarefs_alignment, vector_alignment_reachable_p,
714 vect_peeling_hash_get_lowest_cost, vect_enhance_data_refs_alignment,
715 vect_analyze_group_access, vect_analyze_data_ref_access,
716 vect_create_data_ref_ptr, vect_transform_strided_load,
717 vect_record_strided_load_vectors): Likewise.
718 * tree-vect-stmts.c (vect_model_simple_cost, vect_model_store_cost,
719 vect_model_load_cost, vectorizable_store, vectorizable_load,
720 vect_remove_stores, new_stmt_vec_info): Likewise.
721 * tree-vect-slp.c (vect_build_slp_tree,
722 vect_supported_slp_permutation_p, vect_analyze_slp_instance): Likewise.
724 2011-05-18 Richard Guenther <rguenther@suse.de>
727 * tree-cfg.c (verify_gimple_assign_unary): Adjust TRUTH op
728 operand verification.
729 (verify_gimple_assign_binary): Likewise.
730 * tree-ssa.c (useless_type_conversion_p): Preserve conversions
731 to non-1-precision BOOLEAN_TYPEs.
733 2011-05-18 Tom de Vries <tom@codesourcery.com>
736 * tree-ssa-loop-ivopts.c (seq_cost): Fix call to rtx_cost.
738 2011-05-18 Jakub Jelinek <jakub@redhat.com>
740 PR tree-optimization/49000
741 * tree-ssa.c (execute_update_addresses_taken): Call
742 maybe_rewrite_mem_ref_base on debug stmt value. If it couldn't
743 be rewritten and decl has been marked for renaming, reset
746 2011-05-17 Joseph Myers <joseph@codesourcery.com>
748 * config/i386/i386.c (ix86_valid_target_attribute_tree): Use
749 enum_opts_set when testing if attributes have set -mfpmath=.
751 2011-05-17 Richard Sandiford <rdsandiford@googlemail.com>
753 * config/mips/mips.c (mips_handle_option): Remove unused variable.
755 2011-05-17 Uros Bizjak <ubizjak@gmail.com>
757 * ipa-inline-analysis.c (inline_node_duplication_hook): Initialize
759 * tree-inline.c (maybe_inline_call_in_expr): Initialize
760 id.transform_lang_insert_block with NULL.
762 2011-05-17 Uros Bizjak <ubizjak@gmail.com>
764 * config/i386/i386-protos.h (output_fix_trunc): Change arg 3 to bool.
765 (output_fp_compare): Change args 3 and 4 to bool.
766 (ix86_expand_call): Change arg 6 to bool.
767 (ix86_attr_length_immediate_default): Change arg 2 to bool.
768 (ix86_attr_length_vex_default): Change arg 3 to bool.
769 * config/i386/i386.md: Update all uses.
770 * config/i386/i386.c: Ditto.
771 (ix86_flags_dependent): Change return type to bool.
773 2011-05-17 Richard Guenther <rguenther@suse.de>
775 * gimple.c (type_hash_pair_compare): Fix comparison.
777 2011-05-17 Richard Guenther <rguenther@suse.de>
779 * gimple.c (iterative_hash_gimple_type): Simplify singleton
780 case some more, fix final hash value of the non-singleton case.
782 2011-05-17 Richard Guenther <rguenther@suse.de>
786 2011-05-16 Richard Guenther <rguenther@suse.de>
788 * gimple.c (gimple_types_compatible_p_1): Use names of the
789 type itself, not its main variant.
790 (iterative_hash_gimple_type): Likewise.
792 2011-05-17 Richard Guenther <rguenther@suse.de>
794 * gimple.c (gimple_register_canonical_type): Use the main-variant
795 leader for computing the canonical type.
797 2011-05-17 Nick Clifton <nickc@redhat.com>
799 * config/rx/rx.c (rx_memory_move_cost): Include cost of register
802 * config/rx/rx.md: Add peephole to remove redundant extensions
804 (bitset_in_memory): Use rx_restricted_mem_operand.
805 (bitinvert_in_memory): Likewise.
806 (bitclr_in_memory): Likewise.
808 2011-05-17 Kazuhio Inaoka <kazuhiro.inaoka.ud@renesas.com>
809 Nick Clifton <nickc@redhat.com>
811 * config/rx/rx.md: Add peepholes to match a register move followed
812 by a comparison of the moved register. Replace these with an
813 addition of zero that does both actions in one instruction.
815 2011-05-17 Jakub Jelinek <jakub@redhat.com>
818 * config/i386/sync.md (sync_old_add<mode>): Relax operand 2
819 predicate to allow CONST_INT.
820 (*sync_old_add_cmp<mode>): New insn and peephole2 for it.
822 2011-05-16 Joseph Myers <joseph@codesourcery.com>
824 * opts-common.c (opt_enum_arg_to_value): New.
825 * opts.h (opt_enum_arg_to_value): Declare.
826 * config/i386/i386.opt (fpmath): Remove.
827 (mfpmath=): Use Enum, Init and Save.
828 (fpmath_unit): New Enum and EnumValue entries.
829 * config/i386/i386-c.c (ix86_pragma_target_parse): Update field
830 name for function fpmath state.
831 * config/i386/i386-opts.h (enum fpmath_unit): Move from i386.h.
832 * config/i386/i386.c: Include diagnostic.h.
833 (ix86_fpmath, IX86_FUNCTION_SPECIFIC_FPMATH): Remove.
834 (ix86_target_string): Take enum fpmath_unit value instead of string.
835 (ix86_debug_options): Update call to ix86_target_string.
836 (ix86_option_override_internal): Don't process fpmath strings here.
837 (x86_function_specific_save, ix86_function_specific_restore):
838 Don't handle fpmath state specially.
839 (ix86_function_specific_print): Pass fpmath state to
840 ix86_target_string instead of printing in this function.
841 (ix86_valid_target_attribute_inner_p): Take gcc_options pointer.
842 Handle enum attributes.
843 (IX86_ATTR_ENUM, ix86_opt_enum): New.
844 (ix86_valid_target_attribute_tree): Update option_strings
845 handling. Handle fpmath as enum option.
846 (ix86_can_inline_p): Update field names for function fpmath state.
847 (ix86_expand_builtin): Update call to ix86_target_string.
848 * config/i386/i386.h (enum fpmath_unit): Move to i386-opts.h.
849 (ix86_fpmath): Remove.
850 * config/i386/t-i386 (i386.o): Update dependencies.
852 2011-05-16 Joseph Myers <joseph@codesourcery.com>
854 PR preprocessor/48677
855 * cppspec.c (lang_specific_driver): Set new_decoded_options[0]
856 from decoded_options[0], not from itself.
858 2011-05-16 Uros Bizjak <ubizjak@gmail.com>
860 * config/i386/constraints.md (z): New constraint.
861 * config/i386/i386.c (c): New mode attribute.
862 (*call): Merge insn pattern from *call_0, *call_1, *call_1_rex64 and
863 *call_1_rex64_large patterns using "P" mode iterator. Use "<c>zm"
864 constraint for operand 0.
865 (*call_vzeroupper): Ditto.
866 (*call_rex64_ms_sysv): Ditto. Use "rzm" constraint for operand 0.
867 (*call_rex64_ms_sysv_vzeroupper): Ditto.
868 (*call_pop): Merge insn pattern from *call_pop_0 and *call_pop_1.
869 Use "lzm" constraint for operand 0.
870 (*call_pop_vzeroupper): Ditto.
871 (*sibcall): Merge insn pattern from *sibcall_0, *sibcall_1 and
872 *sibcall_1_rex64 patterns using "P" mode iterator. Use "Uz"
873 constraint for operand 0.
874 (*sibcall_vzeroupper): Ditto.
875 (*sibcall_rex64_ms_sysv): Ditto.
876 (*sibcall_rex64_ms_sysv_vzeroupper): Ditto.
877 (*sibcall_pop): Merge insn pattern from *sibcall_pop_0 and
878 *sibcall_pop_1. Use "Uz" constraint for operand 0.
879 (*sibcall_pop_vzeroupper): Ditto.
880 (*call_value): Merge insn pattern from *call_value_0, *call_value_1,
881 *call_value_1_rex64 and *call_value_1_rex64_large patterns using "P"
882 mode iterator. Use "<c>zm" constraint for operand 1.
883 (*call_value_vzeroupper): Ditto.
884 (*call_value_rex64_ms_sysv): Ditto. Use "rzm" constraint
886 (*call_value_rex64_ms_sysv_vzeroupper): Ditto.
887 (*call_value_pop): Merge insn pattern from *call_value_pop_0 and
888 *call_value_pop_1. Use "lzm" constraint for operand 1.
889 (*call_value_pop_vzeroupper): Ditto.
890 (*sibcall_value): Merge insn pattern from *sibcall_value_0,
891 *sibcall_value_1 and *sibcall_value_1_rex64 patterns using "P"
892 mode iterator. Use "Uz" constraint for operand 1.
893 (*sibcall_value_vzeroupper): Ditto.
894 (*sibcall_value_rex64_ms_sysv): Ditto.
895 (*sibcall_value_rex64_ms_sysv_vzeroupper): Ditto.
896 (*sibcall_value_pop): Rename from *sibcall_pop_1. Use "Uz"
897 constraint for operand 1.
898 (*sibcall_value_pop_vzeroupper): Ditto.
899 (*tls_global_dynamic_64): Use constant_call_address_operand predicate
900 and "z" constraint for operand 2.
901 (*tls_global_dynamic_32_gnu): Ditto.
902 (*tls_local_dynamic_base_32_gnu): Ditto.
903 (*tls_local_dynamic_base_64): Ditto.
904 (*tls_local_dynamic_32_once): Ditto.
905 * config/i386/i386.c (ix86_output_call_insn): Remove int_addr argument.
907 * config/i386/i386-protos.h (ix86_output_call_insn): Update prototype.
909 2011-05-16 Richard Guenther <rguenther@suse.de>
911 * gimple.c (gimple_types_compatible_p_1): Use names of the
912 type itself, not its main variant.
913 (iterative_hash_gimple_type): Likewise.
915 2011-05-16 Richard Guenther <rguenther@suse.de>
917 * gimple.c (iterative_hash_gimple_type): Re-instantiate change to
918 always visit pointer target and function result and argument types.
920 2011-05-16 Jason Merrill <jason@redhat.com>
923 * tree-inline.c (copy_statement_list): Put back recursion.
925 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
929 * config/avr/predicates.md (const_8_16_24_operand): New predicate.
930 * config/avr/avr.md ("*ior<mode>qi.byte0",
931 "*ior<mode>qi.byte1-3"): New define_insn_and_split patterns.
933 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
936 * config/avr/avr.c (avr_function_arg_advance): Error if a fixed
937 register is needed for a function argument.
939 2011-05-16 Richard Guenther <rguenther@suse.de>
941 * gimple.c (struct type_hash_pair): New type.
942 (type_hash_pair_compare): New function.
943 (iterative_hash_gimple_type): Mix in SCC member hashes in hash-order.
945 2011-05-16 Revital Eres <revital.eres@linaro.org>
947 * modulo-sched.c (doloop_register_get): Check !DEBUG_INSN_P first.
949 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
951 * config/i386/i386.md (floating point move splitters): Fix
952 usage of standard_80387_constant_p.
953 * config/i386/i386.c (ix86_preferred_reload_class): Ditto.
955 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
957 * config/i386/i386.md (*movdf_internal): Simplify insn condition.
959 2011-05-14 Eric Botcazou <ebotcazou@adacore.com>
961 * tree-ssa-loop-im.c (SET_ALWAYS_EXECUTED_IN): New macro.
962 (fill_always_executed_in): Use [SET_]ALWAYS_EXECUTED_IN.
963 (tree_ssa_lim_finalize): Likewise.
965 2011-05-14 Uros Bizjak <ubizjak@gmail.com>
967 * config/i386/constraint.md (Yd, Yx): New register constraints.
968 * config/i386/i386.md (*pushdf): Merge with *pushdf_nointeger. Use
969 Yd conditional register constraint.
970 (*movtf_internal): Use standard_sse_constant_opcode.
971 (*movxf_internal): Merge with *movxf_internal_nointeger. Use
972 Yx conditional register constraint.
973 (*movdf_internal): Merge with *movdf_internal_nointeger. Use
974 Yd conditional register constraint. Use standard_sse_constant_p to
975 check for valid SSE constants and call standard_sse_constant_opcode to
977 (*movsf_internal): Use standard_sse_constant_p to check for valid SSE
978 constants and call standard_sse_constant_opcode to output SSE insn.
979 * config/i386/i386.c (ix86_option_ovverride_internal): Set
980 TARGET_INTEGER_DFMODE_MOVES for 64bit targets. Clear it when
981 optimize_size is set.
982 (standard_sse_constant_opcode): Output conditional AVX insn templates.
984 2011-05-14 Tobias Burnus <burnus@net-b.de>
986 * doc/invoke.texi (-Ofast): Also enables -fstack-arrays.
988 2011-05-13 Martin Jambor <mjambor@suse.cz>
990 * ipa-prop.c (ipa_cst_from_jfunc): New function.
991 * ipa-prop.h (ipa_cst_from_jfunc): Declare.
992 * ipa-inline-analysis.c (evaluate_conditions_for_edge): Use it.
993 (evaluate_conditions_for_ipcp_clone): Removed.
994 (estimate_ipcp_clone_size_and_time): Accept vector of known constants.
995 * ipa-cp.c (ipcp_estimate_growth): Build vector of known constants.
996 * ipa-inline.h (estimate_ipcp_clone_size_and_time): Update.
998 2011-05-13 Eric Botcazou <ebotcazou@adacore.com>
1000 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Adjust dump message.
1001 * regcprop.c (copyprop_hardreg_forward): Test MAY_HAVE_DEBUG_INSNS in
1002 lieu of MAY_HAVE_DEBUG_STMTS.
1003 * tree-cfgcleanup.c (remove_forwarder_block): Do not attempt to move
1004 debug statements if !MAY_HAVE_DEBUG_STMTS.
1006 2011-05-13 Martin Thuresson <martint@google.com>
1008 PR gcov-profile/47793
1009 * libgcov.c (gcov_exit): Support relative profile paths.
1010 * doc/invoke.texi (-fprofile-dir): Update for above change.
1012 2011-05-13 Richard Guenther <rguenther@suse.de>
1014 * gimple.c (gimple_canonical_types_compatible_p): Do not use
1015 type-pair caching, do not compare hashes.
1017 2011-05-13 Nathan Froyd <froydnj@codesourcery.com>
1020 * tree-cfg.c (edge_to_cases_cleanup): Return true.
1021 (verify_expr) [CASE_LABEL_EXPR]: Add checking.
1023 2011-05-13 Kai Tietz <ktietz@redhat.com>
1025 * gimplify.c (gimplify_expr): Make sure operand is boolified.
1026 * tree-cfg.c (verify_gimple_assign_unary): Check for boolean
1027 compatible type for TRUTH_NOT_EXPR.
1029 2011-05-13 H.J. Lu <hongjiu.lu@intel.com>
1031 * config/i386/i386.c (ix86_save_reg): Change return type to bool.
1032 (ix86_hard_regno_mode_ok): Change return value to bool. Use
1033 can_create_pseudo_p ().
1035 2011-05-13 Richard Guenther <rguenther@suse.de>
1038 * gimple.c (iterative_hash_gimple_type): Revert change in
1039 pointer target and function result and argument hashing.
1041 2011-05-13 Uros Bizjak <ubizjak@gmail.com>
1043 * config/i386/i386.md (*movxf_internal): Use !can_create_pseudo ().
1044 (*movxf_internal_nointeger): Ditto.
1045 (*movdf_internal_rex64): Ditto.
1046 (*movdf_internal): Ditto.
1047 (*movdf_internal_nointeger): Ditto.
1048 (*movsf_internal): Ditto.
1049 (sincos splitters): Use can_create_pseudo ().
1051 2011-05-13 Joseph Myers <joseph@codesourcery.com>
1053 * config/i386/i386-opts.h: New.
1054 * gcc/config/i386/i386.c (stringop_alg, ix86_cmodel,
1055 ix86_asm_dialect, ix86_regparm, ix86_abi, ix86_branch_cost,
1056 ix86_section_threshold): Remove.
1057 (ix86_handle_option): Move MAX_CODE_ALIGN define here. Handle
1058 OPT_malign_loops_, OPT_malign_jumps_, OPT_malign_functions_ and
1060 (ix86_option_override_internal): Don't decode strings for options
1061 other than -march=, -mtune= and -mfpmath=. Don't allow for
1062 __attribute__ uses in remaining diagnostics for options with
1063 string arguments. Don't check for integer arguments being negative.
1064 * gcc/config/i386/i386.h (enum stringop_alg, enum calling_abi,
1065 enum tls_dialect, enum cmodel, enum asm_dialect): Move to i386-opts.h.
1066 (ix86_abi, ix86_tls_dialect, ix86_cmodel, ix86_asm_dialect,
1067 ix86_branch_cost, ix86_section_threshold): Remove.
1068 * gcc/config/i386/i386.opt (config/i386/i386-opts.h): New
1070 (malign-functions=, malign-jumps=, malign-loops=): Use UInteger
1072 (masm=): Use Enum and Init.
1073 (asm_dialect): New Enum and EnumValue entries.
1074 (mbranch-cost=): Use UInteger.
1075 (mlarge-data-threshold=): Use UInteger and Init.
1076 (mcmodel=): Use Enum and Init.
1077 (cmodel): New Enum and EnumValue entries.
1078 (mpc): Replace with separate mpc32, mpc64 and mpc80 entries.
1079 (mpreferred-stack-boundary=, mincoming-stack-boundary=,
1080 mregparm=): Use UInteger.
1081 (mstringop-strategy=): Use Enum and Init.
1082 (stringop_alg): New Enum and EnumValue entries.
1083 (mtls-dialect=): Use Enum and Init.
1084 (tls_dialect): New Enum and EnumValue entries.
1085 (mabi=): Use Enum and Init.
1086 (calling_abi): New Enum and EnumValue entries.
1087 (mveclibabi=): Use Enum and Init.
1088 (ix86_veclibabi): New Enum and EnumValue entries.
1090 2011-05-13 Nick Clifton <nickc@redhat.com>
1092 * config/rx/rx.md (mov expander): Fix use of rx_legitimate_constant_p.
1093 * config/rx/rx-protos.h (rx_legitimate_constant_p): Rename prototype.
1095 2011-05-13 Kai Tietz <ktietz@redhat.com>
1098 * gimplify.c (gimplify_expr): Check for boolean_type_node instead
1099 for BOOLEAN_TYPE for TRUTH-NOT/AND/OR/XOR.
1100 (gimple_boolify): Check for cast for boolean_type_node instead for
1103 2011-05-13 Richard Guenther <rguenther@suse.de>
1105 PR tree-optimization/48172
1106 * tree-vect-loop-manip.c (vect_vfa_segment_size): Avoid
1107 multiplying by number of iterations for equal step.
1108 (vect_create_cond_for_alias_checks): Likewise.
1110 2011-05-13 Andreas Schwab <schwab@redhat.com>
1112 * configure.ac: Use AS_HELP_STRING throughout.
1113 * configure: Regenerate.
1115 2011-05-12 H.J. Lu <hongjiu.lu@intel.com>
1117 * config/i386/i386.c (ix86_save_reg): Change maybe_eh_return to bool.
1118 (ix86_emit_restore_regs_using_mov): Likewise.
1119 (ix86_emit_restore_sse_regs_using_mov): Likewise.
1121 2011-05-12 Anatoly Sokolov <aesok@post.ru>
1123 * config/sparc/sparc.h (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P,
1124 SYMBOLIC_CONST, RTX_OK_FOR_BASE_P, RTX_OK_FOR_INDEX_P): Remove.
1125 (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Move to...
1126 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P,
1127 RTX_OK_FOR_OLO10_P): ...here.
1128 (sparc_mode_dependent_address_p): Use symbolic_operand instead of
1131 2011-05-12 Kai Tietz <ktietz@redhat.com>
1133 * gimplify.c (gimple_boolify): Re-boolify expression
1134 arguments even if expression type is of kind BOOLEAN_TYPE.
1135 (gimplify_boolean_expr): Removed.
1136 (gimplify_expr): Boolify truth opcodes AND, ANDIF, OR, ORIF,
1137 and XOR. Additional take care that we keep expression's type.
1138 * tree-cfg.c (verify_gimple_assign_binary): Adjust check for type
1139 of TRUTH_AND|OR|XOR_EXPR.
1141 2011-05-12 Jakub Jelinek <jakub@redhat.com>
1143 PR tree-optimization/48975
1144 * tree-if-conv.c (combine_blocks): Call free_bb_predicate
1145 on all bbs here and free and clear ifc_bbs at the end.
1147 2011-05-12 Richard Guenther <rguenther@suse.de>
1149 * gimple.c (gtc_visit): Compare TREE_ADDRESSABLE, handle
1150 NULLPTR_TYPE similar to VOID_TYPE. Defer type-leader lookup
1151 until after simple checks.
1152 (gimple_types_compatible_p): Likewise.
1153 (iterative_hash_gimple_type): Always hash pointer targets
1154 and function return and argument types.
1155 (iterative_hash_canonical_type): Do not hash TYPE_QUALS,
1156 hash TYPE_ALIGN. Do not hash TYPE_MIN/MAX_VALUE.
1157 (gimple_canonical_types_compatible_p): Compare TREE_ADDRESSABLE,
1158 handle NULLPTR_TYPE similar to VOID_TYPE. Handle non-aggregates
1159 completely in the simple compare section.
1160 (gimple_register_canonical_type): Query the cache again after
1163 2011-05-12 Richard Guenther <rguenther@suse.de>
1165 PR tree-optimization/48172
1166 * tree-vect-loop-manip.c (vect_vfa_segment_size): Do not exclude
1167 the number of iterations from the segment size calculation.
1168 (vect_create_cond_for_alias_checks): Adjust.
1170 2011-05-12 Jakub Jelinek <jakub@redhat.com>
1173 * var-tracking.c (use_narrower_mode_test) <case REG>: Return 1
1174 if validate_subreg fails.
1176 2011-05-12 Hariharan Sandanagobalane <hariharan@picochip.com>
1178 * ira.c (clarify_prohibited_class_mode_regs): Prevent the function from
1179 accessing beyond the end of REGNO_REG_CLASS array by stopping the loop
1182 2011-05-12 DJ Delorie <dj@redhat.com>
1184 * config/rx/rx.c (rx_builtins): New arrays - holds builtin functions.
1185 (ADD_RX_BUILTIN1, ADD_RX_BUILTIN2, ADD_RX_BUILTIN3): Install
1186 created builtin into rx_builtins array.
1187 (rx_builtin_decl): New function.
1188 (TARGET_BUITLIN_DECL): Define. Include gt-rx.h.
1190 2011-05-12 DJ Delorie <dj@redhat.com>
1191 Nick Clifton <nickc@redhat.com>
1193 * config/rx/rx.h (HAVE_PRE_DECREMENT): Fix typo.
1194 * config/rx/rx.c (CC_FLAG_FP): Fix comment.
1195 (rx_is_legitimate_address): Add pre-decrement and post-increment
1196 addressing in HImode and QImode. Fix test for out of range
1198 (rx_legitimate_constant_p): Rename to rx_is_legitimate_constant.
1199 (rx_align_for_label): Test label before extracting its usage count.
1200 (rx_adjust_insn_lengths): Fix selection of insn codes.
1201 (TARGET_LEGITIMATE_CONSTANT_P): Use renamed function.
1203 2011-05-11 Jason Merrill <jason@redhat.com>
1205 * tree.c (type_hash_canon): Use struct tree_type_non_common.
1207 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
1209 * cfgrtl.c (commit_one_edge_insertion): Remove always-true test and
1210 reindent the subsequent block.
1212 2011-05-11 Satoru Takabayashi <satorux@google.com>
1213 Paul Pluzhnikov <ppluzhnikov@google.com>
1215 * doc/install.texi (Configuration): Document --with-linker-hash-style.
1216 * gcc.c (init_spec): Handle LINKER_HASH_STYLE.
1217 * config.in: Add LINKER_HASH_STYLE.
1218 * configure.ac: Add --with-linker-hash-style.
1219 * configure: Regenerate.
1221 2011-05-11 Richard Guenther <rguenther@suse.de>
1224 * gimple.c (iterative_hash_canonical_type): Fix typo.
1226 2011-05-11 Uros Bizjak <ubizjak@gmail.com>
1228 * config/i386/i386.c (legitimize_tls_address)
1229 <case TLS_MODEL_GLOBAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
1230 expanders directly for TARGET_GNU2_TLS. Determine pic and
1231 __tls_get_addr symbol reference here. Update call to
1232 gen_tls_global_dynamic_{32,64} for added arguments.
1233 <case TLS_MODEL_LOCAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
1234 expanders directly for TARGET_GNU2_TLS. Determine
1235 __tls_get_addr symbol reference here. Update call to
1236 gen_tls_local_dynamic_base_{32,64} for added arguments. Attach
1237 unique UNSPEC REG_EQUIV to libcall block.
1238 (ix86_tls_get_addr): Declare static.
1239 * config/i386/i386-protos.h (ix86_tls_get_addr): Remove declaration.
1240 * config/i386/i386.md (tls_global_dynamic_32): Add operand 2 and 3.
1241 Do not determine pic and __tls_get_addr symbol reference here. Do not
1242 call gen_tls_dynamic_gnu2_32 for TARGET_GNU2_TLS.
1243 (tls_local_dynamic_base_32): Ditto for operands 1 and 2.
1244 (tls_global_dynamic_64): Add operand 2. Do not determine
1245 __tls_get_addr symbol reference here. Do not call
1246 gen_tls_dynamic_gnu2_64 for TARGET_GNU2_TLS here.
1247 (tls_local_dynamic_base64): Ditto for operand 1.
1249 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
1251 * function.c (expand_function_start): Initialize stack_check_probe_note
1252 only if the generic stack checking mechanism is used.
1254 2011-05-11 Richard Guenther <rguenther@suse.de>
1256 PR tree-optimization/15256
1257 * tree-ssa-forwprop.c (simplify_bitwise_binary): Canonicalize
1258 (A & B) | C, combine (A op CST1) op CST2.
1259 (tree_ssa_forward_propagate_single_use_vars): Only bother to
1260 visit assigns that have uses.
1262 2011-05-11 Nathan Froyd <froydnj@codesourcery.com>
1264 * ggc-page.c (extra_order_size_table): Use struct tree_type_non_common.
1265 * lto-streamer-in.c (unpack_ts_type_value_fields): Rename to...
1266 (unpack_ts_type_common_value_fields): ...this. Update comment.
1267 (unpack_value_fields): Adjust for renaming.
1268 (lto_input_ts_type_tree_pointers): Split into...
1269 (lto_input_ts_type_common_tree_pointer): ...this and...
1270 (lto_input_ts_type_non_common_tree_pointers): ...this.
1271 (lto_input_tree_pointers): Adjust for above split.
1272 * lto-streamer-out.c (pack_ts_type_value_fields): Rename to...
1273 (pack_ts_type_common_value_fields): ...this. Update comment.
1274 (lto_output_ts_type_tree_pointers): Split into...
1275 (lto_output_ts_type_common_tree_pointers): ...this and...
1276 (lto_output_ts_type_non_common_tree_pointers): ...this.
1277 (lto_output_tree_pointers): Adjust for above split.
1278 * lto-streamer.c (check_handled_ts_structures): Mark TS_TYPE_COMMON,
1279 TS_TYPE_WITH_LANG_SPECIFIC, and TS_TYPE_NON_COMMON as handled.
1280 * stor-layout.c (vector_type_mode): Adjust location of mode field.
1281 * tree.h (MARK_TS_TYPE_COMMON, MARK_TS_TYPE_WITH_LANG_SPECIFIC):
1283 (struct tree_type): Split into...
1284 (struct tree_type_common: ...this and...
1285 (struct tree_type_with_lang_specific): ...this and...
1286 (struct tree_type_non_common): ...this. Adjust accessor macros
1288 (TYPE_VALUES_RAW): Define.
1289 (union tree_node): Update for above changes.
1290 * tree.c (tree_node_structure_for_code) [tcc_type]: Return
1292 (initialize_tree_contains_struct) [TS_TYPE]: Use TS_TYPE_COMMON.
1293 Add TS_TYPE_WITH_LANG_SPECIFIC and TS_TYPE_NON_COMMON.
1294 (tree_code_size) [tcc_type]: Use struct tree_type_non_common.
1295 * treestructu.def (TS_TYPE): Remove.
1296 (TS_TYPE_COMMON, TS_TYPE_WITH_LANG_SPECIFIC, TS_TYPE_NON_COMMON):
1299 2011-05-11 Jakub Jelinek <jakub@redhat.com>
1302 * tree-ssa.c (reset_debug_uses): New function.
1303 * tree-flow.h (reset_debug_uses): New prototype.
1304 * tree-data-ref.c (stmts_from_loop): Ignore debug stmts.
1305 * tree-loop-distribution.c (generate_loops_for_partition): Call
1306 reset_debug_uses on the stmts that will be removed. Keep around
1307 all debug stmts, don't count them as bits in partition bitmap.
1308 (generate_builtin): Don't count debug stmts or labels as bits in
1311 2011-05-11 Richard Guenther <rguenther@suse.de>
1313 * gimple.c (gimple_type_hash_1): Merge with ...
1314 (gimple_type_hash): ... this.
1315 (gtc_visit): Remove mode parameter and simplify accordingly.
1316 (gimple_types_compatible_p_1): Likewise.
1317 (gimple_types_compatible_p): Likewise.
1318 (iterative_hash_gimple_type): Likewise.
1320 (gimple_type_eq): Adjust.
1322 2011-05-11 Revital Eres <revital.eres@linaro.org>
1324 * ddg.c (create_ddg_dep_from_intra_loop_link): If a true dep edge
1325 enters the branch create an anti edge in the opposite direction
1326 to prevent the creation of reg-moves.
1327 * modulo-sched.c: Adjust comment to reflect the fact we are
1328 scheduling closing branch.
1329 (PS_STAGE_COUNT): Rename to CALC_STAGE_COUNT and redefine.
1330 (stage_count): New field in struct partial_schedule.
1331 (calculate_stage_count): New function.
1332 (normalize_sched_times): Rename to reset_sched_times and handle
1333 incrementing the sched time of the nodes by a constant value
1334 passed as parameter.
1335 (duplicate_insns_of_cycles): Skip closing branch.
1336 (sms_schedule_by_order): Schedule closing branch.
1337 (ps_insn_find_column): Handle closing branch.
1338 (sms_schedule): Call reset_sched_times and adjust the code to
1339 support scheduling of the closing branch.
1340 (ps_insert_empty_row): Update calls to normalize_sched_times
1341 and rotate_partial_schedule functions.
1343 2011-05-11 Richard Guenther <rguenther@suse.de>
1346 * tree-inline.c (remap_gimple_op_r): Also remap types of MEM_REFs.
1348 2011-05-11 Joseph Myers <joseph@codesourcery.com>
1350 * opts.c (finish_options): Move warning settings from process_options.
1351 * toplev.c (process_options): Move warning settings to finish_options.
1353 2011-05-11 Richard Guenther <rguenther@suse.de>
1355 PR tree-optimization/18041
1356 * tree-ssa-forwprop.c (simplify_bitwise_and): Rename to ...
1357 (simplify_bitwise_binary): ... this. Handle operand conversions
1358 by applying them to the result instead.
1359 (tree_ssa_forward_propagate_single_use_vars): Adjust. CSE tree code.
1361 2011-05-11 Richard Guenther <rguenther@suse.de>
1363 * gimple.c (gimple_canonical_types_compatible_p): Split out
1364 from gimple_types_compatible_p and friends. Do not recurse
1365 to pointed-to types.
1366 (gimple_canonical_type_eq): Use it.
1367 (iterative_hash_canonical_type): Split out from
1368 iterative_hash_gimple_type and friends. Do not recurse
1369 to pointed-to types.
1370 (gimple_canonical_type_hash): Use it, allocate the hash here.
1372 2011-05-11 Revital Eres <revital.eres@linaro.org>
1374 * modulo-sched.c (doloop_register_get): Ignore DEBUG_INSNs while
1377 2011-05-11 Revital Eres <revital.eres@linaro.org>
1379 * loop-doloop.c (doloop_condition_get): Use prev_nondebug_insn
1380 instead of PREV_INSN.
1382 2011-05-11 Revital Eres <revital.eres@linaro.org>
1384 * modulo-sched.c (sms_schedule): Support new form of doloop pattern
1385 * loop-doloop.c (doloop_condition_get): Likewise.
1386 * config/arm/thumb2.md (*thumb2_addsi3_compare0): Remove "*".
1388 * config/arm/arm.md (*addsi3_compare0): Remove "*".
1390 2011-05-10 Nathan Froyd <froydnj@codesourcery.com>
1392 * tree.def (CASE_LABEL_EXPR): Add an operand.
1393 * tree.h (CASE_CHAIN): Use TREE_OPERAND instead of TREE_CHAIN.
1395 2011-05-10 Joseph Myers <joseph@codesourcery.com>
1397 * c-decl.c (c_override_global_bindings_to_false): Remove.
1398 (global_bindings_p): Don't check
1399 c_override_global_bindings_to_false.
1400 * c-tree.h (c_override_global_bindings_to_false): Remove.
1401 * c-typeck.c (composite_type): Don't set
1402 c_override_global_bindings_to_false.
1404 2011-05-10 Michael Meissner <meissner@linux.vnet.ibm.com>
1406 PR target/48857, 48495
1407 * config/rs6000/rs6000.h (VSX_SCALAR_MODE): Delete.
1409 (VSX_MOVE_MODE): Ditto.
1410 (ALTIVEC_OR_VSX_VECTOR_MODE): New macro, combine all Altivec and
1411 VSX vector types. Add V2DImode.
1412 (HARD_REGNO_CALLER_SAVE_MODE): Use it instead of
1413 ALTIVEC_VECTOR_MODE and VSX_VECTOR_MODE calls.
1414 (MODES_TIEABLE_P): Ditto.
1416 * config/rs6000/rs6000.c (rs6000_emit_move): Use
1417 ALTIVEC_OR_VSX_MODE instead of ALTIVEC_VECTOR_MODE and
1419 (init_cumulative_args): Ditto.
1420 (rs6000_function_arg_boundary): Ditto.
1421 (rs6000_function_arg_advance_1): Ditto.
1422 (rs6000_function_arg): Ditto.
1423 (rs6000_function_ok_for_sibcall): Ditto.
1424 (emit_frame_save): Ditto.
1425 (rs6000_function_value): Ditto.
1426 (rs6000_libcall_value): Ditto.
1428 2011-05-10 Joseph Myers <joseph@codesourcery.com>
1430 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
1431 i386/darwin-lib.h to $libgcc_tm_file.
1432 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Remove.
1434 2011-05-10 Joseph Myers <joseph@codesourcery.com>
1436 * doc/sourcebuild.texi (Back End): Mention contrib/config-list.mk.
1438 2011-05-10 Joseph Myers <joseph@codesourcery.com>
1440 * config/rs6000/genopt.sh, config/rs6000/rs6000-cpus.def: New files.
1441 * config/rs6000/rs6000-tables.opt: New file (generated).
1442 * config.gcc (powerpc*-*-*, rs6000*-*-*): Add
1443 rs6000/rs6000-tables.opt to extra_options.
1444 * config/rs6000/rs6000-opts.h (RS6000_CPU_OPTION_NATIVE): Define.
1445 * config/rs6000/rs6000.c (rs6000_select): Remove.
1446 (processor_target_table): Move contents to rs6000-cpus.def.
1447 (darwin_rs6000_override_options): Check
1448 global_options_set.x_rs6000_cpu_index instead of
1449 rs6000_select[1].string.
1450 (rs6000_option_override_internal): Likewise.
1451 (rs6000_handle_option): Don't assert that global structures are in
1452 use. Don't handle OPT_mcpu_ and OPT_mtune_ here.
1453 (rs6000_default_cpu): New variable.
1454 (rs6000_file_start): Set it instead of local default_cpu. Check
1455 rs6000_default_cpu, global_options_set.x_rs6000_cpu_index and
1456 global_options_set.x_rs6000_tune_index instead of rs6000_select.
1457 (rs6000_darwin_file_start): Check rs6000_default_cpu and
1458 global_options_set.x_rs6000_cpu_index instead of rs6000_select.
1459 * config/rs6000/rs6000.h (struct rs6000_cpu_select,
1460 rs6000_select): Remove.
1461 * config/rs6000/rs6000.opt (rs6000_cpu_index, rs6000_tune_index):
1463 (mcpu=, mtune=): Use Var, Init, Enum and Save.
1464 * config/rs6000/t-rs6000
1465 ($(srcdir)/config/rs6000/rs6000-tables.opt): New.
1466 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
1467 global_options_set.x_rs6000_cpu_index instead of
1468 rs6000_select[1].string.
1469 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
1470 global_options_set.x_rs6000_cpu_index instead of
1471 rs6000_select[1].string.
1473 2011-05-10 Joseph Myers <joseph@codesourcery.com>
1475 * config.gcc (libgcc_tm_file): Define instead of including files
1476 from ../../libgcc/config/ in tm_file.
1477 * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list): Define.
1478 * configure: Regenerate.
1479 * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list,
1480 libgcc_tm.h, cs-libgcc_tm.h): New.
1481 (TM_H): Include libgcc_tm.h and $(libgcc_tm_file_list).
1482 (clean): Remove libgcc_tm.h.
1483 * config/arm/symbian.h (RENAME_LIBRARY): Remove.
1484 * mkconfig.sh: Include libgcc_tm.h in tm.h if USED_FOR_TARGET.
1485 * system.h (DECLARE_LIBRARY_RENAMES): Poison.
1487 2011-05-10 Georg-Johann Lay <avr@gjlay.de>
1490 * config/avr/avr.c (avr_ret_register): Return unsigned int
1492 (avr_function_value): Mark fn_decl_or_type as unused, don't pass
1493 it to avr_libcall_value.
1494 avr_expand_builtin): Use EXPAND_NORMAL as arg 4 in calls to
1496 (avr_expand_binop_builtin): Ditto.
1497 (avr_expand_unop_builtin): Ditto.
1499 2011-05-10 DJ Delorie <dj@redhat.com>
1501 * config/rx/rx.h (JUMP_ALIGN, LABEL_ALIGN, LOOP_ALIGN): Define.
1502 (LABEL_ALIGN_AFTER_BARRIER): Pass label to rx_align_for_label
1503 * config/rx/rx.c (rx_align_for_label): Add label and
1504 uses_threshold parameters. Do not align when the label is not
1506 * config/rx/rx-protos.h (rx_align_for_label): Update prototype.
1508 2011-05-10 Richard Guenther <rguenther@suse.de>
1510 * tree-ssa-forwprop.c (combine_conversions): Pattern-match
1511 a series of conversions and apply foldings similar to what
1513 (tree_ssa_forward_propagate_single_use_vars): Call it.
1515 2011-05-10 Jakub Jelinek <jakub@redhat.com>
1517 PR tree-optimization/48611
1518 PR tree-optimization/48794
1519 * tree-eh.c (remove_unreachable_handlers): Don't remove regions
1520 referenced from RESX or EH_DISPATCH arguments.
1523 * dfp.c (decimal_to_decnumber): Handle conversion from
1524 dconst{1,2,m1,half}.
1526 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
1528 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Return 0
1529 for !flag_prefer_avx128.
1530 (ix86_preferred_simd_mode): Return word_mode for DFmode without SSE2.
1532 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
1534 * fold-const.c (fold_range_test): Pass LOC to build_range_check.
1535 (fold_ternary_loc): Use expr_location_or.
1537 2011-05-09 H.J. Lu <hongjiu.lu@intel.com>
1540 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: If
1541 POINTERS_EXTEND_UNSIGNED is defined, don't give up if mode is
1542 Pmode and mem_mode is not VOIDmode.
1544 2011-05-09 Ville Voutilainen <ville.voutilainen@gmail.com>
1546 * tree.h (TYPE_UNQUALIFIED, TYPE_QUAL_CONST, TYPE_QUAL_VOLATILE,
1547 TYPE_QUAL_RESTRICT): Convert to enum.
1549 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
1551 * config/i386/predicates.md (const_pow2_1_to_2_operand): Remove.
1552 (const_pow2_1_to_8_operand): Ditto.
1553 (const_pow2_1_to_128_operand): Ditto.
1554 (const_pow2_1_to_32768_operand): Ditto.
1555 * config/i386/mmx.md (*mmx_pinsrw): Use const_int_operand instead of
1556 const_pow2_1_to_8_operand for operand 3 predicate. Use exact_log2
1557 in insn constraint to check integer value of operand 3.
1558 * config/i386/sse.md (*vec_setv4sf_sse4_1): Ditto.
1560 (PINSR_MODE): New mode iterator.
1561 (sse2p4_1): New mode attribute.
1562 (<sse2p4_1>_pinsr<ssemodesuffix>): Merge insn from sse4_1_pinsrb,
1563 sse2_pinsrw, sse4_1_pinsrd and sse4_1_pinsrq using PINSR_MODE mode
1564 iterator. Use const_int_operand instead of
1565 const_pow2_1_to_{2,8,128,32768}_operand for operand 3 predicate. Use
1566 exact_log2 in insn constraint to check integer value of operand 3.
1568 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
1570 * config/i386/sse.md (blendbits): Remove mode attribute.
1571 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
1572 instead of const_0_to_<blendbits>_operand for operand 3 predicate.
1573 Check integer value of operand 3 in insn constraint.
1575 2011-05-09 Richard Guenther <rguenther@suse.de>
1577 * lto-symtab.c (lto_cgraph_replace_node): Use types_compatible_p
1579 (lto_symtab_merge): Likewise. Do not register types here.
1580 (lto_symtab_merge_decls_2): Likewise.
1581 (lto_symtab_merge_decls_1): Likewise.
1582 * gimple.h (enum gtc_mode, gimple_types_compatible_p): Do not declare.
1583 * gimple.c (enum gtc_mode): Declare.
1584 (gimple_types_compatible_p): Make static.
1586 2011-05-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1588 * config/s390/s390.md (TD/TF mem to reg move splitter): Make the
1589 temporary register to match Pmode.
1591 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
1593 * config/i386/sse.md (*vec_concatv4si): Merge from *vec_concatv4si_1
1594 and *vec_concatv4si_1_avx.
1596 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
1598 PR rtl-optimization/48927
1599 * ira-conflicts.c (commutative_constraint_p): Use
1600 recog_data.alternative_enabled_p to disable alternatives where
1601 "enabled" attribute is false.
1602 (get_dup_num): Ditto.
1603 * ira-lives.c (single_reg_class): Ditto.
1604 (ira_implicitly_set_insn_hard_regs): Ditto.
1606 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
1608 * var-tracking.c (find_mem_expr_in_1pdv): Fix thinko.
1609 (dataflow_set_preserve_mem_locs): Likewise.
1611 2011-05-09 Philipp Thomas <pth@suse.de>
1613 * config/mep/mep.c (mep_validate_vliw): Syntax description
1614 should not be translated.
1616 2011-05-09 Joseph Myers <joseph@codesourcery.com>
1618 * config/mips/genopt.sh, config/mips/mips-cpus.def: New files.
1619 * config/mips/mips-tables.opt: New file (generated).
1620 * config.gcc (mips*-*-*): Add mips/mips-tables.opt to extra_options.
1621 * config/mips/mips-opts.h (MIPS_ARCH_OPTION_FROM_ABI,
1622 MIPS_ARCH_OPTION_NATIVE): Define.
1623 * config/mips/mips.c (mips_cpu_info_table): Move contents to
1625 (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p,
1626 mips_parse_cpu): Remove.
1627 (mips_cpu_info_from_opt, mips_default_arch): New.
1628 (mips_handle_option): Don't assert that global structures are in
1629 use. Don't handle OPT_march_, OPT_mtune_ and OPT_mips here.
1630 (mips_option_override): Use new variables and functions to set
1631 state of these options. Use strcmp to check for individual CPU names.
1632 * config/mips/mips.h (MIPS_CPU_STRING_DEFAULT): Remove default
1634 * config/mips/mips.opt (march=): Use ToLower and Enum.
1635 (mips): Use ToLower, Enum and Var.
1636 (mtune=): Use ToLower and Enum.
1637 * config/mips/t-mips ($(srcdir)/config/mips/mips-tables.opt): New.
1639 2011-05-08 Jan Hubicka <jh@suse.cz>
1641 * gimple.c (type_pair_hash, type_pair_eq, lookup_type_pair):
1642 Arrange type pairs to be UID ordered.
1643 (gimple_lookup_type_leader): Make inline.
1645 2011-05-09 Nick Clifton <nickc@redhat.com>
1648 * config/iq2000/iq2000.opt (iq2000_tune): Initialise to
1652 * config/mn10300/mn10300.c (extract_bundle): Remove spurious local
1655 2011-05-08 Chung-Lin Tang <cltang@codesourcery.com>
1657 * combine.c (simplify_comparison): Abstract out parts into...
1658 (simplify_compare_const): ... new function.
1659 (try_combine): Generalize parallel arithmetic/compare combining
1660 to call simplify_compare_const() and CANONICALIZE_COMPARE().
1662 2011-05-08 Jan Hubicka <jh@suse.cz>
1664 * cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter.
1665 (cgraph_create_virtual_clone): Call hooks once virtual clone
1667 * cgraph.h (cgraph_clone_node): Update prototype.
1668 * ipa-cp.c (ipcp_estimate_growth): Use
1669 estimate_ipcp_clone_size_and_time.
1670 * ipa-inline-transform.c (clone_inlined_nodes): Update.
1671 * lto-cgraph.c (input_node): Update.
1672 * ipa-inline.c (recursive_inlining): Update.
1673 * ipa-inline.h (estimate_ipcp_clone_size_and_time): New function.
1674 (evaluate_conditions_for_known_args): Break out from ...
1675 (evaluate_conditions_for_edge): ... here.
1676 (evaluate_conditions_for_ipcp_clone): New function.
1677 (inline_node_duplication_hook): Update clone summary based
1679 (estimate_callee_size_and_time): Rename to ...
1680 (estimate_node_size_and_time): take NODE instead of EDGE;
1681 take POSSIBLE_TRUTHS as argument.
1682 (estimate_callee_size_and_time): Update.
1683 (estimate_ipcp_clone_size_and_time): New function.
1684 (do_estimate_edge_time): Update.
1686 2011-05-08 Richard Guenther <rguenther@suse.de>
1690 * expmed.c (expand_shift_1): Compute adjusted constant shift
1693 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
1695 * config/avr/avr.c (print_operand_address): Fix invalid RTL access.
1697 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
1699 * config/rs6000/rs6000.c (output_profile_hook): Fix thinko.
1701 2011-05-08 Jonathan Wakely <jwakely.gcc@gmail.com>
1703 * doc/invoke.texi (-fuse-linker-plugin): Improve grammar.
1705 2011-05-07 Jan Hubicka <jh@suse.cz>
1707 * ipa-inline-transform.c (inline_call): Account when program size
1709 * ipa-inline.c (relative_time_benefit): New function.
1710 (edge_badness): Reorganize to be power 2 based; fix thinko when
1711 computing badness for negative growth; update comments to match
1712 reality; better dumps.
1714 2011-05-07 Eric Botcazou <ebotcazou@adacore.com>
1716 * langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
1717 type to bool and adjust comment.
1718 * fold-const.c (fold_range_test): Adjust call to global_bindings_p.
1719 (fold_mathfn_compare): Remove calls to global_bindings_p.
1720 (fold_inf_compare): Likewise.
1721 * stor-layout.c (variable_size): Adjust call to global_bindings_p.
1722 * c-tree.h (global_bindings_p): Adjust prototype.
1723 * c-decl.c (global_bindings_p): Return bool and simplify.
1725 2011-05-07 Zdenek Dvorak <ook@ucw.cz>
1727 PR tree-optimization/48837
1728 * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
1729 when accumulator transformation is performed.
1731 2011-05-06 Jan Hubicka <jh@suse.cz>
1733 * i386.h (ix86_tune_indices): Add
1734 X86_TUNE_SOFTWARE_PREFETCHING_BENEFICIAL.
1735 (TARGET_SOFTWARE_PREFETCHING_BENEFICIAL): New macro.
1736 * i386.c (initial_ix86_tune_features): Add
1737 X86_SOFTARE_PREFETCHING_BENEFICIAL.
1738 (software_prefetching_beneficial_p): Remove predicate.
1739 (ix86_option_override_internal): Use new macro.
1741 2011-05-06 Jan Hubicka <jh@suse.cz>
1743 * ipa-inline.c (update_callee_keys): Don't reset node growth cache.
1745 2011-05-06 Jan Hubicka <jh@suse.cz>
1747 * cgraph.c (cgraph_add_thunk): Create real function node instead
1748 of alias node; finalize it and mark needed/reachale; arrange visibility
1749 to be right and add it into the corresponding same comdat group list.
1750 (dump_cgraph_node): Dump thunks.
1751 * cgraph.h (cgraph_first_defined_function, cgraph_next_defined_function,
1752 cgraph_function_with_gimple_body_p,
1753 cgraph_first_function_with_gimple_body,
1754 cgraph_next_function_with_gimple_body): New functions.
1755 (FOR_EACH_FUNCTION_WITH_GIMPLE_BODY, FOR_EACH_DEFINED_FUNCTION):
1757 * ipa-cp.c (ipcp_need_redirect_p): Thunks can't be redirected.
1758 (ipcp_generate_summary): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
1759 * cgraphunit.c (cgraph_finalize_function): Only look into possible
1760 devirtualization when optimizing.
1761 (verify_cgraph_node): Verify thunks.
1762 (cgraph_analyze_function): Analyze thunks.
1763 (cgraph_mark_functions_to_output): Output thunks only in combination
1764 with function they are assigned to.
1765 (assemble_thunk): Turn thunk into non-thunk; don't try to turn
1766 alias into normal node.
1767 (assemble_thunks): New functoin.
1768 (cgraph_expand_function): Use it.
1769 * lto-cgraph.c (lto_output_node): Stream thunks.
1770 (input_overwrite_node): Stream in thunks.
1771 * ipa-pure-const.c (analyze_function): Thunks do nothing interesting.
1772 * lto-streamer-out.c (lto_output): Do not try to output thunk's body.
1773 * ipa-inline.c (inline_small_functions): Use FOR_EACH_DEFINED_FUNCTION.
1774 * ipa-inline-analysis.c (compute_inline_parameters): "Analyze" thunks.
1775 (inline_analyze_function): Do not care about thunk jump functions.
1776 (inline_generate_summary):Use FOR_EACH_DEFINED_FUNCTION.
1777 * ipa-prop.c (ipa_prop_write_jump_functions): Use
1778 cgraph_function_with_gimple_body_p.
1779 * passes.c (do_per_function_toporder): Use
1780 cgraph_function_with_gimple_body_p.
1781 (execute_one_pass);Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
1782 (ipa_write_summaries): Use cgraph_function_with_gimple_body_p.
1783 (function_called_by_processed_nodes_p): Likewise.
1785 2011-05-06 Joseph Myers <joseph@codesourcery.com>
1787 * config/rs6000/rs6000.opt (rs6000_ieeequad, rs6000_altivec_abi,
1788 rs6000_spe_abi, rs6000_darwin64_abi): Remove TargetVariable
1790 (mabi=): Replace with separate entries for mabi=altivec,
1791 mabi=no-altivec, mabi=spe, mabi=no-spe, mabi=d64, mabi=d32,
1792 mabi=ieeelongdouble and mabi=ibmlongdouble.
1793 * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
1794 check for -mabi=spe without SPE ABI support here.
1795 (rs6000_handle_option): Replace OPT_mabi_ handling with
1796 OPT_mabi_altivec and OPT_mabi_spe handling.
1798 2011-05-06 Cary Coutant <ccoutant@google.com>
1800 * dwarf2out.c (contains_subprogram_definition): New function.
1801 (should_move_die_to_comdat): Call it.
1803 2011-05-06 Jeff Law <law@redhat.com>
1805 * tree-ssa-threadupdate.c (create_block_for_threading): Do not call
1806 remove_ctrl_stmt_and_useless_edges.
1807 (create_duplicates): Call remove_ctrl_stmt_and_useless_edges.
1808 (fixup_template_block, thread_single_edge): Likewise.
1809 (mark_threaded_blocks): Use THREAD_TARGET.
1811 2011-05-06 Alan Modra <amodra@gmail.com>
1814 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
1815 const0_rtx as the arg to the dummy __tls_get_addr libcall.
1817 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
1819 * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
1820 constraint modifier to "r".
1822 2011-05-06 Joseph Myers <joseph@codesourcery.com>
1824 * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
1825 fall through for OPT_mcmodel_.
1827 2011-05-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1829 * config/s390/s390.c (s390_asm_trampoline_template): Comment
1831 (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
1833 2011-05-06 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
1836 * config/arm/arm.opt (marm): Document it.
1837 (mthumb): Reject negative variant.
1839 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
1842 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
1843 Fix typo in "ccvt" variable name.
1845 2011-05-06 Tristan Gingold <gingold@adacore.com>
1848 * config/vms/vms-ar.c (main): Remove cwd variable.
1850 2011-05-06 Jakub Jelinek <jakub@redhat.com>
1853 * var-tracking.c (prepare_call_arguments): Move else before #endif.
1855 2011-05-05 Nathan Froyd <froydnj@codesourcery.com>
1857 * except.c (sjlj_emit_dispatch_table): Call build_case_label.
1858 * gimplify.c (gimplify_switch_expr): Likewise.
1859 * omp-low.c (expand_omp_sections): Likewise.
1860 * tree-eh.c (lower_try_finally_switch): Likewise.
1861 (lower_eh_dispatch): Likewise.
1862 * tree.h (build_case_label): Declare.
1863 * tree.c (build_case_label): Define.
1865 2011-05-05 Jason Merrill <jason@redhat.com>
1868 * tree-inline.c (copy_tree_r): Use copy_statement_list.
1869 (copy_statement_list): Don't recurse.
1870 * stor-layout.c (copy_self_referential_tree_r): Don't allow
1873 2011-05-05 Joseph Myers <joseph@codesourcery.com>
1875 * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
1876 through from -mfpu= handling.
1877 * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
1879 2011-05-05 Bernd Schmidt <bernds@codesourcery.com>
1881 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
1884 2011-05-05 Steve Ellcey <sje@cup.hp.com>
1886 * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
1888 (hppa[12]*-*-hpux11*): Ditto.
1889 (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
1890 * config/ia64/hpux-unix2003.h: New.
1891 * config/pa/pa-hpux1131.opt: New.
1892 * config/pa/pa-hpux1131.h: New.
1893 * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
1894 * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
1895 * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
1897 2011-05-05 Jakub Jelinek <jakub@redhat.com>
1900 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
1901 instead of mode as 3rd argument to recursive call.
1902 (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
1903 emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
1905 (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
1906 don't give up if mode is Pmode and mem_mode is not VOIDmode.
1907 (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
1908 use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
1910 2011-05-05 Julian Brown <julian@codesourcery.com>
1912 * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
1913 parenthesis in D-register case.
1915 2011-05-05 Joseph Myers <joseph@codesourcery.com>
1917 * opt-functions.awk (var_type_struct): Handle Enum options.
1918 * optc-gen.awk: Don't check range of variables of character type.
1919 * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
1920 rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
1921 rs6000_sdata_name, rs6000_explicit_options): Remove.
1922 (rs6000_option_override_internal): Check for -malign-power here.
1923 Use global_options_set instead of rs6000_explicit_options.
1924 (rs6000_parse_fpu_option): Remove.
1925 (rs6000_handle_option): Access variables via opts and opts_set
1926 pointers. Use error_at and warning_at. Add fall-through
1927 comments. Don't handle OPT_mcmodel_, OPT_maix_struct_return,
1928 OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
1929 OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
1930 OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
1931 here. Don't use rs6000_parse_fpu_option.
1932 * config/rs6000/rs6000.h (fpu_type): Remove declaration.
1933 * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
1934 rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
1936 (mspe): Use Var and Save.
1937 (mtraceback=): Use Enum and Var.
1938 (rs6000_traceback_type): New Enum and EnumValue entries.
1939 (mfloat-gprs=): Use Enum, Var and Save.
1940 (rs6000_float_gprs): New Enum and EnumValue entries.
1941 (mlong-double-): use Var and Save.
1942 (msched-costly-dep=, minsert-sched-nops=): Use Var.
1943 (malign-): Use Enum and Var.
1944 (rs6000_alignment_flags): New Enum and EnumValue entries.
1946 (fpu_type_t): New Enum and EnumValue entries.
1947 * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
1948 global_options_set instead of rs6000_explicit_options.
1949 * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
1950 global_options_set instead of rs6000_explicit_options.
1951 * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
1952 global_options_set instead of rs6000_explicit_options.
1953 * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
1954 global_options_set instead of rs6000_explicit_options.
1955 * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
1956 global_options_set instead of rs6000_explicit_options.
1957 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
1958 global_options_set instead of rs6000_explicit_options.
1959 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
1961 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
1962 global_options_set instead of rs6000_explicit_options.
1963 * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
1964 (rs6000_cmodel): New Enum and EnumValue entries.
1965 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
1966 global_options_set instead of rs6000_explicit_options.
1967 * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
1968 (mtls-size=): Use Enum and Var.
1969 (rs6000_tls_size): New Enum and EnumValue entries.
1971 2011-05-05 Michael Matz <matz@suse.de>
1973 * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
1974 * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
1975 * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
1976 * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
1977 * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
1978 * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
1979 * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
1980 * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
1981 * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
1982 * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
1983 * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
1984 * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
1985 * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
1986 * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
1987 * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
1988 * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
1990 2011-05-05 Richard Guenther <rguenther@suse.de>
1992 * expmed.c (expand_variable_shift): Rename to ...
1993 (expand_shift_1): ... this. Take an expanded shift amount.
1994 For rotates recurse directly not building trees for the shift amount.
1995 (expand_variable_shift): Wrap around expand_shift_1.
1996 (expand_shift): Adjust.
1998 2011-05-05 Jakub Jelinek <jakub@redhat.com>
2000 * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
2002 2011-05-05 Eric Botcazou <ebotcazou@adacore.com>
2004 * tree.h (get_pending_sizes): Remove prototype.
2005 (put_pending_size): Likewise.
2006 (put_pending_sizes): Likewise.
2007 * stor-layout.c (pending_sizes): Delete.
2008 (get_pending_sizes): Likewise.
2009 (put_pending_size): Likewise.
2010 (put_pending_sizes): Likewise.
2011 (variable_size): Do not call put_pending_size and tidy up.
2012 * function.h (struct function): Remove dont_save_pending_sizes_p.
2013 * lto-streamer-in.c (input_function): Do not stream it.
2014 * lto-streamer-out.c (output_function): Likewise.
2015 * tree-inline.c (initialize_cfun): Do not copy it.
2016 * c-decl.c (store_parm_decls): Do not set it.
2017 * omp-low.c (create_task_copyfn): Likewise.
2018 * tree-optimize.c (tree_rest_of_compilation): Likewise.
2020 2011-05-05 Uros Bizjak <ubizjak@gmail.com>
2022 * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
2024 (*movdf_internal): Ditto.
2025 (*movdf_internal_nointeger): Ditto.
2026 (*movsf_internal): Ditto.
2028 2011-05-05 Joseph Myers <joseph@codesourcery.com>
2030 * c-decl.c (finish_decl): Don't call get_pending_sizes.
2031 (grokparm): Add parameter expr. Pass it to grokdeclarator.
2032 (push_parm_decl): Add parameter expr. Pass it to grokdeclarator.
2033 (c_variable_size): Remove.
2034 (grokdeclarator): Use save_expr instead of c_variable_size. Don't
2035 call put_pending_sizes.
2036 (get_parm_info): Add parameter expr. Use it to set
2037 arg_info->pending_sizes.
2038 (store_parm_decls): Use arg_info->pending_sizes instead or calling
2040 * c-parser.c (c_parser_parms_declarator): Update call to
2041 c_parser_parms_list_declarator.
2042 (c_parser_parms_list_declarator): Take parameter expr. Update
2043 call to push_parm_decl. Update recursive call. Don't call
2044 get_pending_sizes. Update calls to get_parm_info.
2045 (c_parser_objc_method_definition): Update calls to
2046 c_parser_objc_method_decl and objc_start_method_definition.
2047 (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
2048 (c_parser_objc_method_decl): Add parameter expr. Update call to
2050 (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
2051 * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
2052 (get_parm_info, grokparm, push_parm_decl): Update prototypes.
2054 2011-05-05 Michael Hope <michael.hope@linaro.org>
2057 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
2060 2011-05-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2062 * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
2063 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
2064 (spu_output_mi_thunk): New function.
2066 2011-05-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2068 * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
2069 targetm.asm_out.print_operand.
2070 * config/sol2.c: Include target.h.
2072 2011-05-04 Jan Hubicka <jh@suse.cz>
2074 * ipa-inline.c (reset_edge_caches): New function.
2075 (update_caller_keys): Add check_inlinablity_for; do not
2076 reset edge caches; remove now unnecesary loop.
2077 (update_callee_keys): Add comments; reset node_growth_cache of callee.
2078 (update_all_callee_keys): Likewise.
2079 (inline_small_functions): Sanity check cache; update code
2082 2011-05-04 Bernd Schmidt <bernds@codesourcery.com>
2084 PR rtl-optimization/47612
2085 * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
2086 as the last insn of the sequence to be moved.
2088 2011-05-04 Tobias Burnus <burnus@net-b.de>
2091 * doc/invoke.texi (Ofast): Document that it
2092 enables Fortran's -fno-protect-parens.
2094 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
2096 * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
2098 2011-05-04 Eric Botcazou <ebotcazou@adacore.com>
2100 * stor-layout.c (variable_size): Do not issue errors.
2102 2011-05-04 Richard Guenther <rguenther@suse.de>
2104 * coverage.c (tree_coverage_counter_ref): Use integer_type_node
2105 for array-ref indices.
2106 (tree_coverage_counter_addr): Likewise.
2107 (build_fn_info_type): Use size_int for index types.
2108 (build_gcov_info): Likewise.
2110 2011-05-04 Richard Guenther <rguenther@suse.de>
2112 * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
2114 * c-typeck.c (really_start_incremental_init): Use bitsize_int
2115 for constructor indices.
2116 (push_init_level): Likewise.
2118 2011-05-04 Richard Guenther <rguenther@suse.de>
2120 * explow.c (promote_mode): Move variable declarations before code.
2122 2011-05-04 Nathan Froyd <froydnj@codesourcery.com>
2124 * tree.h (build_function_type_array): Declare.
2125 (build_varargs_function_type_array): Declare.
2126 (build_function_type_vec, build_varargs_function_type_vec): Define.
2127 * tree.c (build_function_type_array_1): New function.
2128 (build_function_type_array): New function.
2129 (build_varargs_function_type_array): New function.
2131 2011-05-04 Richard Sandiford <richard.sandiford@linaro.org>
2133 * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
2134 before setting STMT_VINFO_TYPE.
2136 2011-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2138 * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
2139 instead of spu_pass_by_reference.
2141 2011-05-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2143 * calls.c (emit_library_call_value_1): Invoke
2144 promote_function_mode hook on libcall arguments.
2145 * explow.c (promote_function_mode, promote_mode): Handle TYPE
2146 argument being NULL.
2147 * targhooks.c (default_promote_function_mode): Lisewise.
2148 * config/s390/s390.c (s390_promote_function_mode): Likewise.
2149 * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
2151 * doc/tm.texi: Document that TYPE argument might be NULL.
2153 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
2155 * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
2157 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
2160 * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
2162 2011-05-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2164 * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
2165 (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
2167 * mips-tfile.c: ... here.
2168 Don't include coretypes.h, tm.h, filenames.h.
2169 (saber_stop): Remove definition and all calls.
2170 [__SABER__]: Remove.
2171 (__LINE__): Remove default.
2172 (Size_t, Ptrdiff_t): Remove definitions.
2173 Replace by size_t, ptrdiff_t.
2174 [!MIPS_DEBUGGING_INFO]: Remove.
2175 (SHASH_SIZE, THASH_SIZE): Remove defaults.
2176 (progname): Add const.
2178 Replace all uses by static.
2179 (ALIGN_SYMTABLE_OFFSET): Remove default.
2180 * mips-tdump.c: Don't include coretypes.h, tm.h.
2181 Remove !MIPS_IS_STAB guard.
2182 * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
2183 $(TM_H), filenames.h dependencies.
2184 (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
2186 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
2189 *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
2190 (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
2192 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
2195 * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
2196 account and save/restore RETS.
2197 (PROFILE_BEFORE_PROLOGUE): Define.
2198 (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character. Correct
2199 the push insn to use predecrement.
2201 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
2204 * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
2206 2011-05-04 Nick Clifton <nickc@redhat.com>
2208 * config/mn10300/mn10300.c: Include cfgloop.h.
2210 (mn10300_insert_setlb_lcc): New function. Inserts a SETLB and a
2211 Lcc or a FLcc insn into the instruction stream.
2212 (mn10300_block_contains_call): New function. Returns true if the
2213 given basic block contains a CALL insn.
2214 (mn10300_loop_contains_call_insn): New function. Returns true if
2215 the given loop contains a CALL insn.
2216 (mn10300_scan_for_setlb_lcc): New function. Finds opportunities
2217 to use the SETLB and Lcc or FLcc insns.
2218 (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
2219 (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
2220 * config/mn10300/mn10300.opt (msetlb): New option. Used to
2221 disable the SETLB optimization.
2222 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
2223 __SETLB__ or __NO_SETLB__.
2224 * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
2225 (movsf_internal): Handle MDR register.
2226 (cmpsi): Make visible.
2227 (setlb): New pattern.
2229 (FLcc): New pattern.
2231 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
2234 * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
2235 for reg<->xmm moves.
2236 * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
2237 (vec_concatv2di_rex64_sse): Ditto.
2238 (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
2239 (*vec_extractv2di_1_rex64): Ditto.
2242 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
2244 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
2246 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
2248 2011-05-04 Richard Guenther <rguenther@suse.de>
2250 * tree.h (int_const_binop): Remove notrunc argument.
2251 * fold-const.c (int_const_binop): Remove notrunc argument. Always
2252 create integer constants that are properly truncated.
2253 (extract_muldiv_1): Expand one notrunc int_const_binop caller.
2254 (const_binop): Remove zero notrunc argument to int_const_binop.
2255 (size_binop_loc): Likewise.
2256 (fold_div_compare): Likewise.
2257 (maybe_canonicalize_comparison_1): Likewise.
2258 (fold_comparison): Likewise.
2259 (fold_binary_loc): Likewise.
2260 (multiple_of_p): Likewise.
2261 * expr.c (store_constructor): Likewise.
2262 * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
2263 (maybe_fold_stmt_addition): Likewise.
2264 * ipa-prop.c (ipa_modify_call_arguments): Likewise.
2265 * stor-layout.c (layout_type): Likewise.
2266 * tree-data-ref.c (tree_fold_divides_p): Likewise.
2267 * tree-sra.c (build_ref_for_offset): Likewise.
2268 (build_user_friendly_ref_for_offset): Likewise.
2269 * tree-ssa-address.c (maybe_fold_tmr): Likewise.
2270 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
2271 * tree-ssa-loop-niter.c (inverse): Likewise.
2272 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
2273 * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
2274 * tree-switch-conversion.c (check_range): Likewise.
2275 (build_constructors): Likewise.
2276 * tree-vect-generic.c (expand_vector_piecewise): Likewise.
2277 * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
2278 (extract_range_from_assert): Likewise.
2279 (vrp_int_const_binop): Likewise.
2280 (extract_range_from_binary_expr): Likewise.
2281 (extract_range_from_unary_expr): Likewise.
2282 (check_array_ref): Likewise.
2283 (find_case_label_range): Likewise.
2284 (simplify_div_or_mod_using_ranges): Likewise.
2285 * tree-cfg.c (group_case_labels_stmt): Use double-ints for
2286 comparing case labels for merging.
2288 2011-05-03 Mark Wielaard <mjw@redhat.com>
2290 * dwarf2out.c (debug_str_hash_forced): Removed.
2291 (gen_label_for_indirect_string): Removed.
2292 (get_debug_string_label): Removed.
2293 (AT_string_form): Generate label directly.
2294 (output_indirect_string): Test indirect_string_node for
2295 DW_FORM_strp instead of checking label and refcount.
2296 (prune_indirect_string): Removed.
2297 (prune_unused_types): Don't check debug_str_hash_forced or
2298 call prune_indirect_string.
2300 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
2303 * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
2305 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
2309 * combine.c (try_combine): Skip debug insns at m_split tests.
2311 2011-04-26 Mark Wielaard <mjw@redhat.com>
2314 * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
2315 when info_section_emitted.
2317 2011-05-03 Joseph Myers <joseph@codesourcery.com>
2319 * config/mips/mips-opts.h: New.
2320 * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
2322 (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
2323 (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
2324 or OPT_mr10k_cache_barrier_ here. Access mips_cache_flush_func
2326 * config/mips/mips.h (enum mips_code_readable_setting): Move to
2328 (mips_abi, mips_code_readable): Don't declare.
2329 * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
2330 (mabi=): Use Enum and Var.
2331 (mips_abi): New Enum and EnumValue entries.
2332 (mcode-readable=): Use Enum and Var.
2333 (mips_code_readable_setting): New Enum and EnumValue entries.
2334 (mr10k-cache-barrier=): Use Enum and Var.
2335 (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
2337 2011-05-03 Jan Hubicka <jh@suse.cz>
2339 * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
2340 replace hash by pointer map.
2341 (cgraph_node_set_element_def, cgraph_node_set_element,
2342 const_cgraph_node_set_element, varpool_node_set_element_def,
2343 varpool_node_set_element, const_varpool_node_set_element): Remove.
2344 (free_cgraph_node_set, free_varpool_node_set): New function.
2345 (cgraph_node_set_size, varpool_node_set_size): Use vector size.
2346 * tree-emutls.c: Free varpool node set.
2347 * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
2348 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
2349 debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
2350 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
2351 dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
2352 Move here from ipa.c; implement using pointer_map
2353 * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
2354 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
2355 debug_cgraph_node_set, varpool_node_set_new,
2356 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
2357 dump_varpool_node_set, debug_varpool_node_set):
2358 Move to ipa-uitls.c.
2359 * passes.c (ipa_write_summaries): Update.
2361 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
2363 From Mike Frysinger:
2364 * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
2365 bf542/bf544/bf547/bf548/bf549.
2367 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
2369 * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
2371 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
2374 * config/bfin/bfin.md (MOVCC): New mode_macro.
2375 (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
2376 movsicc_insn1, movsicc_insn2 and movsicc and macroized. Remove
2377 comments from generated assembly.
2379 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
2382 * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
2383 * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
2384 * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
2385 * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
2386 * config/bfin/lib1funcs.asm (___muldi3): New function.
2388 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
2390 * config/stormy16/stormy16 (xstormy16_init_builtins): Call
2391 build_function_type_list instead of build_function_type.
2392 Rearrange initialization of `args' to do so.
2394 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
2396 * config/i386/i386.c (ix86_code_end): Call build_function_type_list
2397 instead of build_function_type.
2399 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
2401 * config/rs6000/rs6000.c (spe_init_builtins): Call
2402 build_function_type_list instead of build_function_type.
2403 (paired_init_builtins, altivec_init_builtins): Likewise.
2404 (builtin_function_type): Likewise.
2406 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
2408 * config/sh/sh.c (sh_media_init_builtins): Call
2409 build_function_type_list instead of build_function_type.
2411 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
2413 * config/sparc/sparc.c (sparc_file_end): Call
2414 build_function_type_list instead of build_function_type.
2416 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
2418 * config/alpha/alpha.c (alpha_init_builtins): Call
2419 build_function_type_list instead of build_function_type.
2421 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
2423 * config/xtensa/xtensa.c (xtensa_init_builtins): Call
2424 build_function_type_list instead of build_function_type.
2426 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
2428 * config/iq2000/i2000.c (iq2000_init_builtins): Call
2429 build_function_type_list instead of build_function_type.
2430 Delete `endlink' variable.
2432 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
2434 * config/avr/avr.c (avr_init_builtins): Call
2435 build_function_type_list instead of build_function_type.
2437 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
2439 * config/picochip/picochip.c (picochip_init_builtins): Call
2440 build_function_type_list instead of build_function_type.
2441 Delete `endlink' variable.
2443 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
2445 * config/bfin/bfin.c (bfin_init_builtins): Call
2446 build_function_type_list instead of build_function_type.
2448 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
2451 * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
2452 that's not CONST_INT. Seemingly redundant check is due to PR39768.
2454 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
2457 * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
2458 libbffastfp overrides libgcc when -mfast-fp.
2460 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
2462 Originally from Bernd Schmidt
2463 * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
2464 * config/bfin/bfin.c (override_options): Test it and error if
2467 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
2469 Originally From Bernd Schmidt
2470 * config/bfin/bfin.c (override_options): Disable -fstack-limit for
2473 2011-05-03 Jeff Law <law@redhat.com>
2475 * tree-ssa-threadupdate.c (THREAD_TARGET): define.
2476 (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
2477 (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
2478 than accessing AUX field directly. Free the AUX field before
2480 (thread_block, thread_through_loop_header): Likewise.
2481 (thread_single_edge, mark_threaded_blocks): Likewise.
2482 (redirect_edges): Delay clearing the AUX field. Free the AUX field.
2483 (register_jump_thread): Do not attempt to thread to a NULL edge.
2485 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
2487 * function.c (init_function_start): Call decide_function_section.
2488 * varasm.c (decide_function_section): New function.
2489 (assemble_start_function): When not using
2490 flag_reorder_blocks_and_partition, don't compute in_cold_section_p
2491 or first_function_block_is_cold.
2492 * rtl.h (decide_function_section): Declare.
2494 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
2495 Jakub Jelinek <jakub@redhat.com>
2498 * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
2499 only succeed if req_mode is the same as set_mode.
2501 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
2503 * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
2504 * genemit.c (gen_exp): Handle RETURN.
2505 * emit-rtl.c (verify_rtx_sharing): Likewise.
2506 (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
2507 * rtl.c (copy_rtx): RETURN is shared.
2508 * rtl.h (enum global_rtl_index): Add GR_RETURN.
2510 * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
2511 * config/s390/s390.c (s390_emit_epilogue): Likewise.
2512 * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
2513 * config/cris/cris.c (cris_expand_return): Likewise.
2514 * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
2515 * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
2516 rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
2517 * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
2518 * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
2520 * config/v850/v850.c (expand_epilogue): Likewise.
2521 * config/bfin/bfin.c (bfin_expand_call): Likewise.
2522 * config/arm/arm.md (epilogue): Likewise.
2523 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
2524 * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
2525 variable to ret_reg.
2527 2011-05-03 Richard Guenther <rguenther@suse.de>
2530 * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
2531 Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
2532 * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
2534 2011-05-03 Richard Guenther <rguenther@suse.de>
2536 * c-decl.c (grokdeclarator): Instead of looking at
2537 TREE_OVERFLOW check if the constant fits in the index type.
2539 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
2541 * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
2542 (vec_store_lanes<mode><mode>): Likewise.
2544 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
2546 * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
2547 * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
2548 convert_optab_index values.
2549 (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
2550 * genopinit.c (optabs): Initialize the new optabs.
2551 * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
2552 * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
2553 (expand_STORE_LANES): New functions.
2554 * tree.h (build_array_type_nelts): Declare.
2555 * tree.c (build_array_type_nelts): New function.
2556 * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
2557 (vect_model_load_cost): Likewise.
2558 (vect_store_lanes_supported, vect_load_lanes_supported)
2559 (vect_record_strided_load_vectors): Declare.
2560 * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
2561 (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
2562 (vect_transform_strided_load): Split out statement recording into...
2563 (vect_record_strided_load_vectors): ...this new function.
2564 * tree-vect-stmts.c (create_vector_array, read_vector_array)
2565 (write_vector_array, create_array_ref): New functions.
2566 (vect_model_store_cost): Add store_lanes_p argument.
2567 (vect_model_load_cost): Add load_lanes_p argument.
2568 (vectorizable_store): Try to use store-lanes functions for
2570 (vectorizable_load): Likewise load-lanes and loads.
2571 * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
2572 to vect_model_store_cost.
2573 (vect_build_slp_tree): Likewise vect_model_load_cost.
2575 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
2577 * hooks.h (hook_bool_mode_uhwi_false): Declare.
2578 * hooks.c (hook_bool_mode_uhwi_false): New function.
2579 * target.def (array_mode_supported_p): New hook.
2580 * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
2581 * doc/tm.texi: Regenerate.
2582 * stor-layout.c (mode_for_array): New function.
2583 (layout_type): Use it.
2584 * config/arm/arm.c (arm_array_mode_supported_p): New function.
2585 (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
2587 2011-05-03 Eric Botcazou <ebotcazou@adacore.com>
2590 * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
2591 for -fstack-check if the size to allocate is negative.
2593 2011-05-02 Lawrence Crowl <crowl@google.com>
2595 * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
2596 (timevar_cond_start): New for starting a timer only when it is not
2598 (timevar_cond_stop): New for stopping a timer when it was not already
2601 * timevar.c (timevar_stop): Enable start/stop timers to start again.
2602 (timevar_cond_start): New as above.
2603 (timevar_cond_stop): New as above.
2605 * timevar.def: Add start/stop timers for compiler phases,
2606 TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
2607 TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
2608 and TV_PHASE_FINALIZE.
2609 Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
2610 Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
2611 TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
2612 Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
2613 Make unused TV_OVERLOAD into a start/stop timer.
2615 Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
2616 Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
2617 to indicate that they are start/stop timers.
2619 * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
2620 Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
2621 Move initialization to do_compile.
2622 (do_compile): Add initialization from above.
2623 Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
2625 * c-decl.c (c_write_global_declarations): Add start/stop of
2626 TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
2628 * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
2629 or TV_PARSE_INLINE, as appropriate.
2630 (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
2631 (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
2633 2011-05-02 Jason Merrill <jason@redhat.com>
2636 * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
2638 2011-05-02 Simon Martin <simartin@users.sourceforge.net>
2641 * c-decl.c (finish_decl): Only create a composite if the types are
2644 2011-05-02 Joseph Myers <joseph@codesourcery.com>
2646 * config/fr30/fr30-protos.h (Mmode): Don't define.
2647 * config/m32r/m32r-protos.h (Mmode): Don't define. Expand
2648 definition where used.
2649 * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
2650 define. Expand definitions where used.
2651 * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
2652 Expand definitions where used.
2653 * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
2654 rx_function_arg, rx_function_arg_advance,
2655 rx_function_arg_boundary): Expand definitions of those macros.
2656 * config/v850/v850-protos.h (Mmode): Don't define. Expand
2657 definition where used.
2659 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
2661 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
2663 (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
2664 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves. Merge
2665 with *movv2sf_internal_rex64_avx.
2666 (*movv2sf_internal): Merge with *movv2sf_internal_avx.
2667 * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
2668 Use %v prefix in insn mnemonic to handle TARGET_AVX.
2669 (*movdi_internal): Add "isa" attribute. Use "maybe_vex" instead of
2670 "vex" in "prefix" attribute calculation.
2671 (*movdf_internal): Output AVX mnemonics. Add "prefix" attribute.
2673 2011-05-02 Stuart Henderson <shenders@gcc.gnu.org>
2676 * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
2677 inputs match the output.
2679 2011-05-02 Andreas Schwab <schwab@linux-m68k.org>
2682 * config/m68k/m68k.c (m68k_expand_prologue): Set
2683 current_function_static_stack_size.
2685 2011-05-02 Jan Hubicka <jh@suse.cz>
2687 * lto-streamer.c (lto_streamer_cache_insert_1,
2688 lto_streamer_cache_lookup, lto_streamer_cache_create,
2689 lto_streamer_cache_delete): Use pointer map instead of hashtable.
2690 * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
2692 2011-05-02 Joseph Myers <joseph@codesourcery.com>
2694 * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
2695 config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
2696 config/m68k/t-opts: New files.
2697 * config/m68k/m68k-tables.opt: New file (generated).
2698 * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
2699 extra_options and m68k/t-opts to tmake_file.
2700 * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
2701 (all_isas): Initialize using m68k-isas.def.
2702 (all_microarchs): Initialize using m68k-microarchs.def.
2703 (m68k_find_selection): Remove.
2704 (m68k_handle_option): Don't assert that global structures are in
2705 use. Use error_at. Access variables via opts pointer. Don't
2706 handle -march=, -mcpu= and -mtune= here. Set gcc_options fields
2707 directly for -m68020-40 and -m68020-60.
2708 (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
2709 m68k_tune_entry here.
2710 * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
2712 (m68k_library_id_string): Remove declaration.
2713 * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
2714 (m68k_library_id_string): New Variable.
2715 (march=, mcpu=, mtune=): Use Enum and Var.
2717 2011-05-02 Richard Guenther <rguenther@suse.de>
2719 * varasm.c (output_constructor_regular_field): Compute zero-based
2720 index with double-ints. Make sure to ICE instead of producing
2722 * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
2723 in asserts. Properly use a signed type.
2725 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
2727 * config/i386/sse.md (V): New mode iterator.
2728 (V_128): Rename from SSEMODE. Make V2DF mode conditional on
2730 (V_256): Rename from AVX256MODE.
2731 (VF): Make V4SF mode unconditional. Add TARGET_SSE instruction
2732 condition to all users.
2734 (VF2): Make V2DF mode unconditional. Add TARGET_SSE2 instruction
2735 condition to all users.
2736 (VF_128): Make V4SF mode unconditional.
2737 (VF_256): Rename from AVX256MODEF2P.
2738 (VI4F_128): Rename from SSEMODE4S.
2739 (VI8F_128): Rename from SSEMODE2D.
2740 (VI4F_256): Rename from AVX256MODE8P.
2741 (VI8F_256): Rename from AVX256MODE4P.
2742 (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
2743 (ssescalarmodesuffix): Remove SF and DF modes.
2744 (SSEMODE124): Remove.
2745 (SSEMODE1248): Ditto.
2746 (SSEMODEF2P): Ditto.
2747 (AVXMODEF2P): Ditto.
2748 (AVXMODEFDP): Ditto.
2749 (AVXMODEFSP): Ditto.
2750 (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
2752 (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO. Make V4SF mode
2754 (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
2755 xop_pcmov_<mode>256. Use V mode iterator.
2757 Adjust RTX patterns globally for renamed mode attributes.
2759 2011-05-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2761 * haifa-sched.c (sched_emit_insn): Emit insn before first
2762 non-scheduled insn. Inform back-end about new insn. Add
2763 new insn to scheduled_insns list.
2765 2011-05-02 Richard Guenther <rguenther@suse.de>
2767 PR tree-optimization/48822
2768 * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
2769 (process_scc): Indicate which iteration we start.
2771 2011-05-02 Jan Hubicka <jh@suse.cz>
2773 * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
2774 (lto_section_overrun): New.
2775 * lto-section-out.c (append_block): Rename to ...
2776 (lto_append_block): ... this one; export.
2777 (lto_output_1_stream): Move lto lto-streamer.h
2778 (lto_output_data_stream): Update.
2779 * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
2780 (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
2783 2011-05-02 Richard Guenther <rguenther@suse.de>
2785 * tree.c (tree_code_counts): New global array.
2786 (record_node_allocation_statistics): Count individual tree codes.
2787 (dump_tree_statistics): Dump individual code stats.
2789 2011-05-01 Jan Hubicka <jh@suse.cz>
2791 * ipa-inline.c (caller_growth_limits): Fix thinko when
2792 looking for largest stack frame.
2793 * ipa-inline.h (dump_inline_summary): Declare.
2794 * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
2796 (dump_inline_summary): Export.
2797 (debug_inline_summary): Declare as DEBUG_FUNCTION.
2799 2011-05-01 Anatoly Sokolov <aesok@post.ru>
2801 * reginfo.c (memory_move_cost): Change rclass argument type form
2802 'enum reg_class' to reg_class_t.
2803 * reload.h (memory_move_cost): Update prototype.
2804 * postreload.c reload_cse_simplify_set): Change type dclass var to
2806 * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
2808 (ira_allocate_and_set_costs): Change aclass argument type form
2809 'enum reg_class' to reg_class_t.
2810 * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
2811 Change aclass argument type to reg_class_t.
2812 (update_conflict_hard_reg_costs): Change type aclass and pref vars
2814 * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
2815 memory_move_cost call.
2817 * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
2818 'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
2819 Change type tmp var to reg_class_t.
2821 2011-04-30 Jan Hubicka <jh@suse.cz>
2823 * ipa-inline.c (can_inline_edge_p): Disregard limits when
2824 inlining into function with flatten attribute.
2825 (want_inline_small_function_p): Be more realistic about inlining
2826 cold calls where callee size grows.
2828 2011-04-30 Jan Hubicka <jh@suse.cz>
2830 * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
2833 2011-04-30 Anatoly Sokolov <aesok@post.ru>
2835 * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
2836 PRINT_OPERAND_PUNCT_VALID_P): Remove.
2837 * config/sparc/sparc-protos.h (print_operand): Remove declaration.
2838 * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
2839 TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
2840 (print_operand): Rename to...
2841 (sparc_print_operand): ...this. Make static. Adjust
2842 sparc_print_operand function call.
2843 (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
2846 2011-04-30 Jan Hubicka <jh@suse.cz>
2849 * ipa-inline.c (early_inliner): Disable when doing late
2850 addition of function.
2852 2011-04-30 Jakub Jelinek <jakub@redhat.com>
2854 * dwarf2out.c (get_address_mode): New inline.
2855 (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
2856 if not dwarf_strict emit
2857 DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
2858 desirable. Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
2859 UNSIGNED_FLOAT, FIX and UNSIGNED_FIX. Just return NULL for
2860 FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
2861 (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
2862 dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
2863 mem_loc_descriptor callers.
2864 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
2865 output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
2866 Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
2867 DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
2868 (base_types): New variable.
2869 (get_base_type_offset, calc_base_type_die_sizes,
2870 base_type_for_mode, mark_base_types, base_type_cmp,
2871 move_marked_base_types): New functions.
2872 (calc_die_sizes): Assert that die_offset is 0 or equal to
2874 (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
2875 others defer to mem_loc_descriptor. Adjust mem_loc_descriptor
2876 callers. If not dwarf_strict, call mem_loc_descriptor even for
2877 non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
2878 (gen_subprogram_die): Don't give up on call site parameters
2879 with non-integral or large integral modes. Adjust
2880 mem_loc_descriptor callers.
2881 (prune_unused_types): Call prune_unused_types_mark on base_types
2883 (resolve_addr): Call mark_base_types.
2884 (dwarf2out_finish): Call move_marked_base_types.
2886 PR tree-optimization/48809
2887 * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
2889 (gen_inbound_check): Don't compute index_expr - range_min in utype
2890 again, instead reuse SSA_NAME initialized in build_arrays.
2891 Remove two useless gsi_for_stmt calls.
2893 2011-04-29 Jeff Law <law@redhat.com>
2895 * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
2897 2011-04-29 Martin Jambor <mjambor@suse.cz>
2899 * cgraph.h (cgraph_postorder): Remove declaration.
2900 * ipa-utils.h (ipa_free_postorder_info): Declare.
2901 (ipa_reverse_postorder): Likewise.
2902 * cgraphunit.c: Include ipa-utils.h.
2903 (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
2904 * ipa-inline.c: Include ipa-utils.h.
2905 (ipa_inline): Update call to ipa_reverse_postorder.
2906 * ipa-pure-const.c (propagate_pure_const): Update call to
2907 ipa_reduced_postorder and ipa_print_order. Call
2908 ipa_free_postorder_info to clean up.
2909 (propagate_nothrow): Likewise.
2910 * ipa-reference.c (propagate): Removed a useless call to
2911 ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
2912 and ipa_print_order. Call ipa_free_postorder_info to clean up.
2913 * ipa.c: Include ipa-utils.h.
2914 (ipa_profile): Update call to ipa_reverse_postorder.
2915 (cgraph_postorder): Moved to...
2916 * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
2917 (ipa_utils_print_order): Renamed to ipa_print_order.
2918 (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
2920 (ipa_free_postorder_info): New function.
2921 * passes.c: Include ipa-utils.h.
2922 (do_per_function_toporder): Update call to ipa_reverse_postorder.
2923 (ipa_write_summaries): Likewise.
2924 * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
2925 (cgraphunit.o): Likewise.
2927 (ipa-inline.o): Likewise.
2929 2011-04-29 Jan Hubicka <jh@suse.cz>
2931 * gcc.dg/tree-ssa/inline-10.c: New testcase.
2932 * gcc.dg/tree-ssa/inline-9.c: Disable partial inlining.
2933 * ipa-inline.h (clause_t): Turn into unsigned int.
2934 * ipa-inline-analysis.c (add_clause): Do more simplification.
2935 (and_predicates): Shortcut more cases.
2936 (predicates_equal_p): Move forward; check that clauses are properly
2938 (or_predicates): Shortcut more cases.
2939 (edge_execution_predicate): Rewrite as...
2940 (set_cond_stmt_execution_predicate): ... this function; handle
2941 __builtin_constant_p.
2942 (set_switch_stmt_execution_predicate): New .
2943 (compute_bb_predicates): New.
2944 (will_be_nonconstant_predicate): Update TODO.
2945 (estimate_function_body_sizes): Use compute_bb_predicates
2946 and free them later, always try to estimate if stmt is constant.
2947 (estimate_time_after_inlining, estimate_size_after_inlining):
2948 Gracefully handle optimized out edges.
2949 (read_predicate): Fix off by one error.
2951 2011-04-29 Nicola Pero <nicola.pero@meta-innovation.com>
2953 * Makefile.in (ENABLE_MAINTAINER_RULES): New.
2955 2011-04-27 Xinliang David Li <davidxl@google.com>
2957 * tree-profile.c (init_ic_make_global_vars): Set
2958 tls attribute on ic vars.
2959 * coverage.c (coverage_end_function): Initialize
2960 function_list with zero.
2962 2011-04-29 Richard Guenther <rguenther@suse.de>
2964 * builtins.c (fold_builtin_classify_type): Use integer_type_node
2965 for the type of the result.
2966 (fold_builtin_isascii): Likewise.
2967 (fold_builtin_toascii): Use integer_type_node where appropriate.
2968 (fold_builtin_logb): Likewise.
2969 (fold_builtin_frexp): Likewise.
2970 (fold_builtin_strstr): Likewise.
2971 (fold_builtin_strpbrk): Likewise.
2972 (fold_builtin_fputs): Likewise.
2973 (fold_builtin_sprintf): Likewise.
2974 (fold_builtin_snprintf): Likewise.
2975 (fold_builtin_printf): Likewise.
2976 (do_mpfr_remquo): Use a proper type for the assigned constant.
2977 (do_mpfr_lgamma_r): Likewise.
2978 * dwarf2out.c (resolve_one_addr): Use size_int.
2979 * except.c (init_eh): Likewise.
2980 (assign_filter_values): Use integer_type_node for filter values.
2981 (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
2983 * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
2984 for EH region numbers.
2985 * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
2986 for the shift amount.
2988 2011-04-29 Richard Guenther <rguenther@suse.de>
2990 * expr.h (expand_shift): Rename to ...
2991 (expand_variable_shift): ... this.
2992 (expand_shift): Take a constant shift amount.
2993 * expmed.c (expand_shift): Rename to ...
2994 (expand_variable_shift): ... this.
2995 (expand_shift): New wrapper around expand_variable_shift.
2996 * expr.c (convert_move, emit_group_load_1, emit_group_store,
2997 optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
2998 expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
2999 * expmed.c (store_fixed_bit_field, extract_bit_field_1,
3000 extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
3001 expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
3002 extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
3003 emit_store_flag_1, emit_store_flag): Likewise.
3004 * builtins.c (expand_builtin_signbit): Likewise.
3005 * calls.c (load_register_parameters): Likewise.
3006 * function.c (assign_parm_setup_block): Likewise.
3007 * lower-subreg.c (resolve_shift_zext): Likewise.
3008 * optabs.c (widen_bswap, expand_abs_nojump,
3009 expand_one_cmpl_abs_nojump, expand_float): Likewise.
3010 * spu/spu.c (spu_expand_extv): Likewise.
3011 * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
3013 2011-04-29 Richard Guenther <rguenther@suse.de>
3015 * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
3016 for the remapped region number.
3017 * predict.c (build_predict_expr): Use integer_type_node for the
3019 * fold-const.c (fold_binary_loc): Use integer_type_node for
3020 the shift amount. Use a proper type for the PLUS_EXPR operand.
3022 2011-04-29 Michael Matz <matz@suse.de>
3024 * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
3025 other trees that just builtins.
3026 (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
3028 2011-04-29 Richard Guenther <rguenther@suse.de>
3030 * tree-nested.c (get_trampoline_type): Use size_int.
3031 (get_nl_goto_field): Likewise.
3032 * tree-eh.c (lower_try_finally_switch): Use integer_type_node
3034 (lower_eh_constructs_2): Likewise.
3035 (lower_resx): Likewise.
3036 (lower_eh_dispatch): Likewise.
3037 * tree-mudflap.c (mf_build_string): Use size_int.
3038 (mudflap_register_call): Use integer_type_node for the flag.
3039 (mudflap_enqueue_constant): Use size_int.
3040 * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
3041 instead of rebuilding it.
3043 2011-04-29 Richard Guenther <rguenther@suse.de>
3045 * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
3046 Handle OBJ_TYPE_REF.
3047 (find_func_aliases_for_call): Use it more consistently.
3049 2011-04-29 Alexandre Oliva <aoliva@redhat.com>
3051 * haifa-sched.c (last_nondebug_scheduled_insn): New.
3052 (rank_for_schedule): Use it.
3053 (schedule_block): Set it.
3055 2011-04-28 David Li <davidxl@google.com>
3057 * tree.c (crc32_string): Use crc32_byte.
3058 (crc32_byte): New function.
3059 * tree.h (crc32_byte): New function.
3060 * gcov.c (read_graph_file): Handle new cfg_cksum.
3061 (read_count_file): Ditto.
3062 * profile.c (instrument_values): Ditto.
3063 (get_exec_counts): Ditto.
3064 (read_profile_edge_counts): Ditto.
3065 (compute_branch_probabilities): Ditto.
3066 (compute_value_histograms): Ditto.
3067 (branch_prob): Ditto.
3068 (end_branch_prob): Ditto.
3069 * coverage.c (read_counts_file): Ditto.
3070 (get_coverage_counts): Ditto.
3071 (tree_coverage_counter_addr): Ditto.
3072 (coverage_checksum_string): Ditto.
3073 (coverage_begin_output): Ditto.
3074 (coverage_end_function): Ditto.
3075 (build_fn_info_type): Ditto.
3076 (build_fn_info_value): Ditto.
3077 * libgcov.c (gcov_exit): Ditto.
3078 * gcov-dump.c (tag_function): Ditto.
3079 (compute_checksum): Remove.
3081 2011-04-29 Alan Modra <amodra@gmail.com>
3083 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
3084 unspec plus offset. Tidy macho code.
3086 2011-04-29 Martin Jambor <mjambor@suse.cz>
3088 * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
3089 node instead of a decl. Update all callers.
3090 * cgraph.h: Update declaration.
3092 2011-04-28 Ira Rosen <ira.rosen@linaro.org>
3094 PR tree-optimization/48765
3095 * tree-vectorizer.h (vect_make_slp_decision): Return bool.
3096 * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
3097 to indicate if loop aware SLP is being used. Scan the statements
3098 and update the vectorization factor according to the type of
3099 vectorization before statement analysis.
3100 (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
3101 pass it to vect_analyze_loop_operations.
3102 (vectorizable_reduction): Set number of copies to 1 in case of pure
3104 * tree-vect-stmts.c (vectorizable_conversion,
3105 vectorizable_assignment, vectorizable_shift,
3106 vectorizable_operation, vectorizable_type_demotion,
3107 vectorizable_type_promotion, vectorizable_store, vectorizable_load):
3109 (vectorizable_condition): Move the check that it is not SLP
3110 vectorization before the number of copies check.
3111 * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
3112 to vectorize the loop using SLP.
3114 2011-04-28 Jakub Jelinek <jakub@redhat.com>
3117 * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
3120 2011-04-28 Joseph Myers <joseph@codesourcery.com>
3122 * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
3123 *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
3124 (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
3125 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
3126 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
3128 * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
3129 * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
3130 * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
3131 * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
3132 * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
3133 * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
3135 * config/i386/linux.h (REG_NAME): Don't define.
3136 * config/i386/linux64.h (REG_NAME): Don't define.
3137 * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
3138 Undefine before defining.
3140 2011-04-28 Jan Hubicka <jh@suse.cz>
3142 * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
3143 nonconstant_names array.
3144 (estimate_function_body_sizes): Build nonconstant_names array; handle
3145 BUILT_IN_CONSTANT_P.
3147 2011-04-28 Richard Guenther <rguenther@suse.de>
3151 2011-04-28 Richard Guenther <rguenther@suse.de>
3153 * tree-ssa-structalias.c (solve_constraints): Build succ graph
3154 as late as possible.
3156 2011-04-28 Richard Guenther <rguenther@suse.de>
3158 * tree-ssa-structalias.c (dump_constraint): Don't end the line.
3159 (debug_constraint): Do it here.
3160 (dump_constraints): And here.
3161 (rewrite_constraints): And here.
3162 (dump_constraint_edge): Remove.
3163 (dump_constraint_graph): Rewrite to produce DOT output.
3164 (solve_constraints): Build succ graph as late as possible.
3165 Dump constraint graphs before and after solving.
3167 2011-04-28 Richard Guenther <rguenther@suse.de>
3169 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
3170 New function split out from ...
3171 (find_func_aliases): ... here. Call it.
3172 (find_func_aliases_for_call): Likewise.
3174 2011-04-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
3176 * internal-fn.h (internal_fn_name_array): Declare.
3177 (internal_fn_flags_array): Likewise.
3179 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
3181 * config/i386/i386.md (ssemodesuffix): Merge with ssevecsize,
3182 ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
3184 (ssemodefsuffix): Remove.
3185 (ssevecmodesuffix): New mode attribute.
3186 (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
3187 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
3188 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
3189 *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
3190 *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
3191 *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
3192 *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
3193 ssemodesuffix mode attribute.
3194 (float splitters): Use ssevecmodesuffix mode attribute.
3195 * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
3196 (sseinsmode): Rename from avxvecmode.
3197 (avxsizesuffix): Rename from avxmodesuffix.
3198 (sseintvecmode): Rename from avxpermvecmode.
3199 (ssedoublevecmode): Rename from ssedoublesizemode.
3200 (ssehalfvecmode): Rename from avxhalfvecmode.
3201 (ssescalarmode): Rename from avxscalarmode.
3202 (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
3203 templates for ssemodesuffix mode attribute.
3204 (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
3207 Adjust RTX patterns globally for renamed mode attributes.
3209 2011-04-27 Jan Hubcika <jh@suse.cz>
3211 * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
3212 * ipa-inline-analysis.c: Include alloc-pool.h.
3213 (edge_predicate_pool): New.
3214 (trye_predicate_p): New function
3215 (false_predicate_p): New function.
3216 (add_clause): Sanity check that false clauses are "optimized";
3217 never add clauses to predicate that is already known to be false.
3218 (and_predicate): Use flase_predicate_p.
3219 (evaulate_predicate): Rename to ...
3220 (evaluate_predicate): ... this one; update all callers; assert
3221 that false is not listed among possible truths.
3222 (dump_predicate): Use true_predicate_p.
3223 (account_size_time): Use false_predicate_p.
3224 (evaulate_conditions_for_edge): Rename to ...
3225 (evaluate_conditions_for_edge) ... this one.
3226 (edge_set_predicate): New function.
3227 (inline_edge_duplication_hook): Duplicate edge predicates.
3228 (inline_edge_removal_hook): Free edge predicates.
3229 (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
3230 (dump_inline_summary): Update.
3231 (estimate_function_body_sizes): Set edge predicates.
3232 (estimate_calls_size_and_time): Handle predicates.
3233 (estimate_callee_size_and_time): Update.
3234 (remap_predicate): Add toplev_predicate; update comment.
3235 (remap_edge_predicates): New function.
3236 (inline_merge_summary): Compute toplev predicate; update.
3237 (read_predicate): New function.
3238 (read_inline_edge_summary): Use it.
3239 (inline_read_section): Likewise.
3240 (write_predicate): New function.
3241 (write_inline_edge_summary): Use it.
3242 (inline_write_summary): Likewise.
3243 (inline_free_summary): Free alloc pool and edge summary vec.
3245 2011-04-27 Richard Guenther <rguenther@suse.de>
3247 * tree-ssa-structalias.c (changed_count): Remove.
3248 (changed): Use a bitmap.
3249 (unify_nodes): Adjust.
3250 (do_sd_constraint): Likewise.
3251 (do_ds_constraint): Likewise.
3252 (do_complex_constraint): Likewise.
3253 (solve_graph): Likewise.
3255 2011-04-27 Jan Hubicka <jh@suse.cz>
3257 * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
3259 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
3261 * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
3262 (avx_vperm2f128_*_operand): Ditto.
3263 * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
3264 Use avx_vpermilp_parallel in insn condition.
3265 (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
3266 Use avx_vperm2f128_parallel in insn condition.
3268 2011-04-27 Richard Guenther <rguenther@suse.de>
3270 * Makefile.in (tree-ssa-structalias.o): Remove
3271 gt-tree-ssa-structalias.h dependency.
3272 (GTFILES): Remove tree-ssa-structalias.c.
3273 * tree.c (allocate_decl_uid): New function.
3274 (make_node_stat): Use it.
3275 (copy_node_stat): Likewise.
3276 * tree.h (allocate_decl_uid): Declare.
3277 * tree-ssa-alias.h (delete_alias_heapvars): Remove.
3278 * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
3279 * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
3280 * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
3281 * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
3282 (struct heapvar_map): Likewise.
3283 (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
3284 heapvar_insert): Likewise.
3285 (make_heapvar_for): Rename to ...
3286 (make_heapvar): ... this. Simplify.
3287 (fake_var_decl_obstack): New global var.
3288 (build_fake_var_decl): New function.
3289 (make_constraint_from_heapvar): Adjust.
3290 (handle_lhs_call): Likewise.
3291 (create_function_info_for): Likewise.
3292 (intra_create_variable_infos): Likewise.
3293 (init_alias_vars): Allocate fake_var_decl_obstack.
3294 (init_alias_heapvars, delete_alias_heapvars): Remove.
3295 (compute_points_to_sets): Do not call init_alias_heapvars.
3296 (ipa_pta_execute): Likewise.
3297 (delete_points_to_sets): Free fake_var_decl_obstack.
3299 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3301 * config/spu/divmovti4.c (union qword_UTItype): New data type.
3302 (si_from_UTItype, si_to_UTItype): New functions.
3303 (__udivmodti4): Use them to implement type-punning.
3304 * config/spu/multi3.c (union qword_TItype): New data type.
3305 (si_from_TItype, si_to_TItype): New functions.
3306 (__multi3): Use them to implement type-punning.
3308 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3310 * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
3312 2011-04-27 Jan Hubicka <jh@suse.cz>
3314 * ipa-prop.c (function_insertion_hook_holder): New holder.
3315 (ipa_add_new_function): New function.
3316 (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
3317 Register/deregister holder.
3319 2011-04-27 Richard Guenther <rguenther@suse.de>
3321 PR tree-optimization/48772
3322 * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
3324 2011-04-27 Richard Guenther <rguenther@suse.de>
3326 * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
3327 TARGET_MEM_REF handling.
3329 2011-04-27 Nick Clifton <nickc@redhat.com>
3331 * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
3332 ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
3333 (REG_CLASS_NAMES): Likewise.
3334 (REG_CLASS_CONTENTS): Likewise.
3335 (EVEN_ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
3336 (ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
3337 (FEVEN_REGS): New macro. Alias for QUAD_ACC_REGS.
3338 (FPR_REGS): New macro. Alias for QUAD_ACC_REGS.
3339 (EVEN_REGS): New macro. Alias for QUAD_REGS.
3340 * config/frv/frv.c (frv_secondary_reload_class): Remove use of
3341 duplicate register classes.
3342 (frv_class_likely_spilled_p): Likewise.
3343 (frv_register_move_cost): Likewise.
3345 * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
3346 end of the regno_reg_class array.
3348 2011-04-27 Jakub Jelinek <jakub@redhat.com>
3351 * c-typeck.c (build_binary_op): Don't wrap arguments if
3352 int_operands is true.
3354 2011-04-26 Kaz Kojima <kkojima@gcc.gnu.org>
3357 * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
3358 targetm.calls.must_pass_in_stack for void type.
3360 2011-04-26 Jan Hubicka <jh@suse.cz>
3362 * cgraphbuild.c (build_cgraph_edges): Update call
3363 of cgraph_create_edge and cgraph_create_indirect_edge.
3364 * cgraph.c (cgraph_create_edge_including_clones,
3365 cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
3366 cgraph_update_edges_for_call_stmt_node): Do not take nest
3367 argument; do not initialize call_stmt_size/time.
3368 (dump_cgraph_node): Do not dump nest.
3369 (cgraph_clone_edge): Do not take loop_nest argument;
3370 do not propagate it; do not clone call_stmt_size/time.
3371 (cgraph_clone_node): Likewise.
3372 (cgraph_create_virtual_clone): Update.
3373 * cgraph.h (struct cgraph_edge): Remove
3374 call_stmt_size/call_stmt_time/loop_nest.
3375 (cgraph_create_edge, cgraph_create_indirect_edge,
3376 cgraph_create_edge_including_clones, cgraph_clone_node): Update
3378 * tree-emutls.c (gen_emutls_addr): Update.
3379 * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
3380 loop_nest; handle indirect calls, too.
3381 (clone_inlined_nodes): Do not care about updating inline summaries.
3382 * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
3383 * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
3384 stream call_stmt_size/call_stmt_time/loop_nest.
3385 * ipa-inline.c (edge_badness): Update.
3386 (ipa_inline): dump summaries after inlining.
3387 * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
3389 (inline_edge_summary): New function.
3390 * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
3391 (inline_edge_removal_hook): Handle edge summaries.
3392 (inline_edge_duplication_hook): New hook.
3393 (inline_summary_alloc): Alloc hooks.
3394 (initialize_growth_caches): Do not register removal hooks.
3395 (free_growth_caches); Do not free removal hook.
3396 (dump_inline_edge_summary): New function.
3397 (dump_inline_summary): Use it.
3398 (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
3399 (inline_update_callee_summaries): New function.
3400 (inline_merge_summary): Use it.
3401 (do_estimate_edge_time, do_estimate_edge_growth): Update.
3402 (read_inline_edge_summary): New function.
3403 (inline_read_section): Use it.
3404 (write_inline_edge_summary): New function.
3405 (inline_write_summary): Use it.
3406 (inline_free_summary): Free edge new holders.
3407 * tree-inline.c (copy_bb): Update.
3409 2011-04-26 Jason Merrill <jason@redhat.com>
3411 * tree-eh.c (lower_try_finally_switch): Create the label along with
3412 the CASE_LABEL_EXPR.
3414 2011-04-26 David S. Miller <davem@davemloft.net>
3415 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3417 * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
3418 * configure: Regenerate.
3420 2011-04-26 Michael Meissner <meissner@linux.vnet.ibm.com>
3423 * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
3425 (VEC_reduc): New code iterator and splitters for vector reduction.
3426 (VEC_reduc_name): Ditto.
3427 (VEC_reduc_rtx): Ditto.
3428 (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
3429 (reduc_<VEC_reduc_name>_v4sf): Ditto.
3431 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
3432 support for extracting SF on VSX.
3434 * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
3435 generating xscvspdp.
3436 (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
3437 (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
3438 double add, minimum, maximum vector reduction.
3439 (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
3440 (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
3441 optimize double vector reduction.
3442 (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
3444 2011-04-26 Joseph Myers <joseph@codesourcery.com>
3446 * config/fr30/fr30.h (inhibit_libc): Don't define.
3447 * config/m32r/m32r-protos.h: Correct comment.
3448 * config/v850/v850.h (GHS_default_section_names,
3449 GHS_current_section_names): Use tree, not union tree_node *.
3451 2011-04-26 Xinliang David Li <davidxl@google.com>
3453 * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
3454 * c-family/c-opts.c (c_common_handle_option): Set
3455 warn_maybe_uninitialized.
3456 * opts.c (common_handle_option): Ditto.
3457 * common.opt: New option.
3458 * tree-ssa.c (warn_uninit): Add one more parameter.
3459 (warn_uninitialized_var): Pass warning code.
3460 * tree-flow.h: Interface change.
3463 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3465 * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
3466 (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
3467 (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
3469 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3471 * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
3472 * config/mips/mips.opt (mmips-tfile): Remove.
3474 * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
3475 mips-tdump reference to ...
3476 (Specific, alpha*-dec-osf5.1): ... here. Adapt for Tru64 UNIX.
3477 * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
3478 reference by Tru64 UNIX.
3480 2011-04-26 Jakub Jelinek <jakub@redhat.com>
3483 * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
3484 is error_mark_node, set value to NULL.
3486 PR tree-optimization/48734
3487 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
3488 if return value from maybe_fold_*_comparsions isn't something
3489 the code is prepared to handle.
3491 2011-04-26 Uros Bizjak <ubizjak@gmail.com>
3493 * config/i386/predicates.md (ext_QIreg_operand): Remove extra
3495 (ext_QIreg_nomode_operands): Remove.
3496 * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
3500 2011-04-26 Andrew Stubbs <ams@codesourcery.com>
3502 * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
3504 2011-04-26 Richard Guenther <rguenther@suse.de>
3506 * c-typeck.c (build_unary_op): Do not expand array-refs via
3507 pointer arithmetic. Only adjust qualifiers for function types.
3509 2011-04-26 Richard Guenther <rguenther@suse.de>
3512 * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
3513 * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
3514 compare the operands with OEP_CONSTANT_ADDRESS_OF. Treat trees
3515 with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
3517 2011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
3519 * doc/extend.texi: Document __underlying_type.
3521 2011-04-25 Segher Boessenkool <segher@kernel.crashing.org>
3523 * config/rs6000/titan.md (automata_option "progress"): Remove.
3525 2011-04-25 Jeff Law <law@redhat.com>
3527 * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
3529 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
3531 * system.h (ENUM_BITFIELD): Remove.
3533 2011-04-25 Maxim Kuvyrkov <maxim@codesourcery.com>
3534 Eric Botcazou <ebotcazou@adacore.com>
3536 * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
3537 for STORE_FLAG_VALUE==-1 case.
3539 2011-04-24 Richard Sandiford <richard.sandiford@linaro.org>
3542 * config/m68k/constraints.md (T): Allow PIC operands that satisfy
3543 LEGITIMATE_PIC_OPERAND_P.
3545 2011-04-24 Jan Hubicka <jh@suse.cz>
3547 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
3549 * ipa-prop.h (ipa_get_param, ipa_is_param_used,
3550 ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
3551 ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
3552 * ipa-inline-analysis.c (add_clause): Fix clause ordering.
3553 (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
3554 Sanity check predicate length.
3555 (remap_predicate): Likewise; sanity check jump functions.
3556 (inline_read_section, inline_write_summary): Sanity check
3559 2011-04-24 Paolo Carlini <paolo.carlini@oracle.com>
3562 * doc/extend.texi (Type Traits): Document __is_standard_layout,
3563 __is_literal_type, and __is_trivial; update throughout about
3564 possibly cv-qualified void types.
3566 2011-04-24 Gerald Pfeifer <gerald@pfeifer.com>
3568 * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
3569 testsuite and make it version agnostic.
3571 2011-04-22 Jan Hubicka <jh@suse.cz>
3573 * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
3575 2011-04-23 Jakub Jelinek <jakub@redhat.com>
3578 * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
3579 to VOID_TYPE even around MODIFY_EXPR.
3581 2011-04-22 Mike Stump <mikestump@comcast.net>
3583 * gensupport.c (read_md_rtx): Fix typo in comment.
3584 * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
3587 2011-04-22 Jan Hubicka <jh@suse.cz>
3589 * gengtype.c (open_base_files): Add ipa-inline.h include.
3590 * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
3591 ipa-prop.c; update all uses.
3592 * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
3593 * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
3594 merge summary of inlined function into former caller.
3595 * ipa-inline.c (max_benefit): Remove.
3596 (edge_badness): Compensate for removal of benefits.
3597 (update_caller_keys): Use
3598 reset_node_growth_cache/reset_edge_growth_cache.
3599 (update_callee_keys): Likewise.
3600 (update_all_callee_keys): Likewise.
3601 (inline_small_functions): Do not collect max_benefit; do not reset
3602 estimated_growth; call free_growth_caches and initialize_growth_caches.
3603 * ipa-inline.h (struct condition, type clause_t, struct predicate,
3604 struct size_time_entry): New structures.
3605 (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
3606 (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
3607 and estimated_growth.
3608 (edge_growth_cache_entry): New structure.
3609 (node_growth_cache, edge_growth_cache): New global vars.
3610 (estimate_growth): Turn into inline.
3611 (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
3612 initialize_growth_caches, free_growth_caches): Declare.
3613 (estimate_edge_growth): Rewrite.
3614 (estimate_edge_time): Implement as inline cache lookup.
3615 (reset_node_growth_cache, reset_edge_growth_cache): New inline
3617 (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
3618 (NUM_CONDITIONS): New constant.
3619 (predicate_conditions): New enum.
3620 (IS_NOT_CONSTANT): New constant.
3621 (edge_removal_hook_holder): New var.
3622 (node_growth_cache, edge_growth_cache): New global vars.
3623 (true_predicate, single_cond_predicate, false_predicate,
3624 not_inlined_predicate, add_condition, add_clause, and_predicates,
3625 or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
3626 dump_clause, dump_predicate, account_size_time,
3627 evaulate_conditions_for_edge): New functions.
3628 (inline_summary_alloc): Move to heap.
3629 (inline_node_removal_hook): Clear condition and entry vectors.
3630 (inline_edge_removal_hook): New function.
3631 (initialize_growth_caches, free_growth_caches): New function.
3632 (dump_inline_summary): Update.
3633 (edge_execution_predicate): New function.
3634 (will_be_nonconstant_predicate): New function.
3635 (estimate_function_body_sizes): Compute BB and constantness predicates.
3636 (compute_inline_parameters): Do not clear estimated_growth.
3637 (estimate_edge_size_and_time): New function.
3638 (estimate_calls_size_and_time): New function.
3639 (estimate_callee_size_and_time): New function.
3640 (remap_predicate): New function.
3641 (inline_merge_summary): New function.
3642 (do_estimate_edge_time): New function based on...
3643 (estimate_edge_time): ... this one.
3644 (do_estimate_edge_growth): New function.
3645 (do_estimate_growth): New function based on....
3646 (estimate_growth): ... this one.
3647 (inline_analyze_function): Analyze after deciding on jump functions.
3648 (inline_read_section): New function.
3649 (inline_read_summary): Use it.
3650 (inline_write_summary): Write all the new data.
3651 * ipa-prop.c (ipa_get_param_decl_index): Export.
3652 (ipa_lattice_from_jfunc): Move here from ipa-cp.c
3653 * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
3655 (ipa_get_lattice): Move here from ipa-cp.c
3656 * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
3657 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
3658 * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
3659 cgraph_edge_inlinable_p): Remove.
3660 * cgraphunit.c: Include ipainline.h
3661 (cgraph_process_new_functions): Update call of
3662 compute_inline_parameters.
3664 2011-04-22 Richard Guenther <rguenther@suse.de>
3666 * tree.c (build_int_cst): Properly create canonicalized integer
3668 (build_int_cst_type): Remove scary comments.
3670 2011-04-22 Xinliang David Li <davidxl@google.com>
3672 * toplev.c (process_options): Enable -Werror=coverage-mismatch
3673 by default when -Wno-error is not specified.
3674 * opts-global.c (decode_options): Remove call to
3675 control_warning_options.
3677 2011-04-22 Jakub Jelinek <jakub@redhat.com>
3679 PR tree-optimization/48717
3680 * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
3681 ~A + A optimizations use build_int_cst_type instead of build_int_cst.
3683 2011-04-22 Joseph Myers <joseph@codesourcery.com>
3685 * config/bfin/bfin-protos.h (Mmode): Don't define. Expand
3686 definition where used.
3688 2011-04-22 Jakub Jelinek <jakub@redhat.com>
3691 * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
3692 TREE_STATIC variables declared inside of some OpenMP construct.
3694 2011-04-22 Martin Jambor <mjambor@suse.cz>
3697 * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
3699 2011-04-22 Alexander Monakov <amonakov@ispras.ru>
3702 * c-typeck.c (pop_init_level): Do not warn about initializing
3705 2011-04-22 Alan Modra <amodra@gmail.com>
3707 * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
3708 when returning call_cookie.
3709 (rs6000_function_ok_for_sibcall): Allow sibcalls via function
3710 pointers, to functions with no more vector args than the current
3711 function, and some non-local calls for ABI_V4.
3712 * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
3713 sibcall_nonlocal_aix64): Combine to ..
3714 (sibcall_nonlocal_aix<mode>): ..this. Handle function pointer calls.
3715 (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
3716 (sibcall_value_nonlocal_aix<mode>): ..likewise.
3717 (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
3718 (sibcall_value_nonlocal_sysv<mode>): Likewise. Correct call cookie
3720 * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
3721 sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
3722 sibcall_value_symbolic_64): Delete.
3724 2011-04-21 Xinliang David Li <davidxl@google.com>
3726 * cgraph.h: Remove pid.
3727 * cgraph.c: Remove pid.
3728 * value-prof.c (init_node_map): New function.
3729 (del_node_map): New function.
3730 (find_func_by_funcdef_no): New function.
3731 (gimple_ic_transform): Call new function.
3732 * cgraphunit.c (cgraph_finalize_function): Remove pid.
3733 * function.c (get_last_funcdef_no): New function.
3734 * function.h (get_last_funcdef_no): New function.
3735 * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
3736 to libgcov function.
3737 (tree-profiling): Call node map init and delete function.
3739 2011-04-21 Ian Lance Taylor <iant@google.com>
3741 * godump.c (go_format_type): Use exported Go name for anonymous
3744 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
3746 * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
3747 Call builtin_function_type_list instead of builtin_function_type.
3748 (UNARY, BINARY, TRINARY, QUAD): Likewise.
3750 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
3752 * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
3753 build_function_type_list instead of build_function_type.
3754 Delete variable `endlink'.
3756 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
3758 * config/s390/s390.c (s390_init_builtins): Call
3759 build_function_type_list instead of build_function_type.
3761 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
3763 * config/ia64/ia64.c (ia64_init_builtins): Call
3764 build_function_type_list instead of builtin_function_type.
3766 2011-04-21 Easwaran Raman <eraman@google.com>
3768 * cfgexpand.c (stack_var): Remove OFFSET...
3769 (add_stack_var): ...and its reference here...
3770 (expand_stack_vars): ...and here.
3771 (stack_var_cmp): Sort by descending order of size.
3772 (partition_stack_vars): Change heuristic.
3773 (union_stack_vars): Fix to reflect changes in partition_stack_vars.
3774 (dump_stack_var_partition): Add newline after each partition.
3776 2011-04-21 Dimitrios Apostolou <jimis@gmx.net>
3777 Jeff Law <law@redhat.com>
3779 * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
3780 * gengtype.c (matching_file_name_substitute): Likewise.
3782 2011-04-21 Richard Guenther <rguenther@suse.de>
3785 * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
3787 2011-04-21 Eric Botcazou <ebotcazou@adacore.com>
3789 * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
3791 2011-04-21 Richard Guenther <rguenther@suse.de>
3793 * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
3796 2011-04-21 Richard Guenther <rguenther@suse.de>
3798 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
3799 MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
3800 Use DECL_P, not SSA_VAR_P.
3801 (ptr_derefs_may_alias_p): Likewise.
3802 (ptr_deref_may_alias_ref_p_1): Likewise.
3803 (decl_refs_may_alias_p): Likewise.
3804 (refs_may_alias_p_1): Likewise.
3805 (ref_maybe_used_by_call_p_1): Likewise.
3806 (call_may_clobber_ref_p_1): Likewise.
3807 (indirect_ref_may_alias_decl_p): Assume indirect refrences
3808 are either MEM_REF or TARGET_MEM_REF.
3809 (indirect_refs_may_alias_p): Likewise.
3810 * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
3811 for MEM_EXPR of indirect calls.
3813 2011-04-21 Tristan Gingold <gingold@adacore.com>
3815 * vmsdbgout.c (write_srccorr): Compute file length from the string.
3816 (dst_file_info_struct): Remove flen field.
3817 (lookup_filename): Remove code that set flen field.
3819 2011-04-21 Tristan Gingold <gingold@adacore.com>
3821 * config/ia64/ia64.c (ia64_start_function): Add a guard.
3823 2011-04-21 Uros Bizjak <ubizjak@gmail.com>
3826 * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
3827 vec_extract and vec_concat for non-SSE4_1 targets.
3829 2011-04-21 Richard Guenther <rguenther@suse.de>
3831 * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
3834 2011-04-21 Joseph Myers <joseph@codesourcery.com>
3836 * config/i386/cygming.h (union tree_node, TREE): Don't define or
3838 (FILE): Don't undefine.
3840 2011-04-21 Joseph Myers <joseph@codesourcery.com>
3842 * config/alpha/alpha.c (struct machine_function): Use rtx, not
3844 * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
3846 * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
3847 * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
3848 * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
3850 * config/m32c/m32c-protos.h (MM, UINT): Don't define. Expand
3851 definitions where used.
3852 * config/microblaze/microblaze.h (struct microblaze_args): Use
3853 rtx, not struct rtx_def *.
3854 * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
3856 * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
3857 * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
3858 * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
3859 not struct rtx_def *.
3860 * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
3862 * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
3864 * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
3866 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
3868 * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
3869 operand_equal_p to compare DR_BASE_ADDRESSes.
3870 (vect_check_interleaving): Likewise.
3872 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
3875 * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
3876 for all Neon struct constants.
3878 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
3880 * target.def (legitimate_constant_p): New hook.
3881 * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
3882 (TARGET_LEGITIMATE_CONSTANT_P): ...this.
3883 * doc/tm.texi: Regenerate.
3884 * hooks.h (hook_bool_mode_rtx_true): Declare.
3885 * hooks.c (hook_bool_mode_rtx_true): Define.
3886 * system.h (LEGITIMATE_CONSTANT_P): Poison.
3887 * calls.c (precompute_register_parameters): Replace uses of
3888 LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
3889 (emit_library_call_value_1): Likewise.
3890 * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
3891 (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
3892 * ira-costs.c (scan_one_insn): Likewise.
3893 * recog.c (general_operand, immediate_operand): Likewise.
3894 * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
3895 * reload1.c (init_eliminable_invariants): Likewise.
3897 * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
3899 * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
3900 * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
3902 (TARGET_LEGITIMATE_CONSTANT_P): Define.
3903 * config/alpha/predicates.md (input_operand): Update call to
3904 alpha_legitimate_constant_p.
3906 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
3907 * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
3908 (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
3909 * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3910 (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
3911 (arm_legitimate_constant_p): New functions.
3912 (arm_cannot_force_const_mem): Make static.
3914 * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
3916 * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
3917 * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
3918 * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
3919 instead of bfin_legitimate_constant_p.
3920 (bfin_legitimate_constant_p): Make static. Add a mode argument.
3921 (TARGET_LEGITIMATE_CONSTANT_P): Define.
3923 * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
3925 * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
3927 * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
3928 * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
3929 * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3930 (frv_legitimate_constant_p): Make static. Add a mode argument.
3932 * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
3933 * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
3934 * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
3936 * config/i386/i386-protos.h (legitimate_constant_p): Delete.
3937 * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
3938 * config/i386/i386.c (legitimate_constant_p): Rename to...
3939 (ix86_legitimate_constant_p): ...this. Make static. Add a mode
3941 (ix86_cannot_force_const_mem): Update accordingly.
3942 (ix86_legitimate_address_p): Likewise.
3943 (TARGET_LEGITIMATE_CONSTANT_P): Define.
3944 * config/i386/i386.md: Update commentary.
3946 * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
3947 * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
3948 * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3949 (ia64_legitimate_constant_p): Make static. Add a mode argument.
3951 * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
3953 * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
3954 * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
3955 * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3956 (lm32_legitimate_constant_p): Make static. Add a mode argument.
3958 * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
3959 * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
3960 * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
3962 * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
3963 * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3964 (m32r_legitimate_constant_p): New function.
3966 * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
3967 * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
3968 LEGITIMATE_CONSTANT_P.
3969 (LEGITIMATE_CONSTANT_P): Delete.
3970 * config/m68k/m68k.c (m68k_expand_prologue): Call
3971 m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
3972 (m68k_legitimate_constant_p): New function.
3973 * config/m68k/m68k.md: Update comments.
3975 * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
3976 * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3977 (mcore_legitimate_constant_p): New function.
3979 * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
3980 * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
3981 * config/mep/mep.c (mep_legitimate_constant_p): Make static.
3982 Add a mode argument.
3983 (mep_legitimate_address): Update accordingly.
3984 (TARGET_LEGITIMATE_CONSTANT_P): Define.
3986 * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
3988 * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
3989 * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
3990 static. Check OP's mode for VOIDmode.
3991 (microblaze_legitimate_constant_p): New function.
3992 (TARGET_LEGITIMATE_CONSTANT_P): Define.
3994 * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
3995 * config/mips/mips.c (mips_legitimate_constant_p): New function.
3996 (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
3997 (TARGET_LEGITIMATE_CONSTANT_P): Define.
3998 * config/mips/predicates.md: Update comments.
4000 * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
4001 * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
4002 * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4003 (mmix_legitimate_constant_p): Make static, return a bool, and take
4005 (mmix_print_operand_address): Update accordingly.
4007 * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
4009 * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
4010 * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
4011 static. Add a mode argument.
4012 (TARGET_LEGITIMATE_CONSTANT_P): Define.
4014 * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
4016 * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
4017 * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4018 (pa_legitimate_constant_p): New function.
4020 * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
4022 * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
4023 * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4024 (pdp11_legitimate_constant_p): New function.
4026 * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
4027 * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4028 (rs6000_legitimate_constant_p): New function.
4030 * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
4031 (rx_legitimate_constant_p): ...this.
4032 * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
4033 * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
4034 (rx_legitimate_constant_p): ...this.
4035 (TARGET_LEGITIMATE_CONSTANT_P): Define.
4036 * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
4038 * config/s390/s390-protos.h (legitimate_constant_p): Delete.
4039 * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
4040 * config/s390/s390.c (legitimate_constant_p): Rename to...
4041 (s390_legitimate_constant_p): ...this. Make static, return a bool,
4042 and add a mode argument.
4043 (TARGET_LEGITIMATE_CONSTANT_P): Define.
4045 * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
4047 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
4048 * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4049 (sh_legitimate_constant_p): New function.
4051 * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
4052 * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
4053 * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4054 (legitimate_constant_p): Rename to...
4055 (sparc_legitimate_constant_p): ...this. Make static. Add a mode
4057 (constant_address_p): Update accordingly.
4059 * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
4060 argument and return a bool.
4061 * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
4062 * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4063 (spu_legitimate_constant_p): Add a mode argument and return a bool.
4064 (spu_rtx_costs): Update accordingly.
4065 * config/spu/predicates.md (vec_imm_operand): Likewise.
4067 * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
4069 * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
4070 * config/v850/v850.c (v850_legitimate_constant_p): New function.
4071 (TARGET_LEGITIMATE_CONSTANT_P): Define.
4073 * config/vax/vax-protos.h (legitimate_constant_p): Delete.
4074 * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
4075 * config/vax/vax.c (legitimate_constant_p): Likewise.
4077 * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
4078 * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4079 (xtensa_legitimate_constant_p): New function.
4081 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
4083 * target.def (cannot_force_const_mem): Add a mode argument.
4084 * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
4085 * doc/tm.texi: Regenerate.
4086 * hooks.h (hook_bool_mode_rtx_false): Declare.
4087 * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
4088 (hook_bool_mode_const_rtx_true): Likewise.
4089 (hook_bool_mode_rtx_false): New function.
4090 * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
4091 to be non-VOID. Update call to cannot_force_const_mem.
4092 (find_reloads): Update accordingly.
4093 * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
4094 * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
4096 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
4097 * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
4098 * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
4099 * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
4100 * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
4101 * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
4102 * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
4103 * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
4104 (m68k_cannot_force_const_mem): ...this new function.
4105 * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
4107 (mips_const_insns, mips_legitimize_const_move): Update calls.
4108 (mips_secondary_reload_class): Likewise.
4109 * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
4110 (pa_cannot_force_const_mem): ...this new function.
4111 * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
4112 (rs6000_cannot_force_const_mem): ...this new function.
4113 * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
4115 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
4116 * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
4118 (xtensa_cannot_force_const_mem): ...this new function.
4120 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
4122 * config/mips/mips.c (mips16_build_function_stub): Call
4123 build_function_type_list instead of build_function_type.
4124 (mips16_build_call_stub): Likewise.
4126 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
4128 * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
4129 instead of build_function_type.
4131 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
4133 * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
4134 instead of build_function_type.
4136 2011-04-20 Uros Bizjak <ubizjak@gmail.com>
4139 * config/i386/i386.md (insv): Change operand 0 constraint to
4140 "register_operand". Change operand 1 and 2 constraint to
4141 "const_int_operand". Expand to pinsr{b,w,d,q} * when appropriate.
4142 * config/i386/sse.md (sse4_1_pinsrb): Export.
4143 (sse2_pinsrw): Ditto.
4144 (sse4_1_pinsrd): Ditto.
4145 (sse4_1_pinsrq): Ditto.
4146 * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
4147 * config/i386/i386.c (ix86_expand_pinsr): New.
4149 2011-04-20 Easwaran Raman <eraman@google.com>
4151 * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
4152 containing union type only with -fstrict-aliasing.
4154 2011-04-20 Jim Meyering <meyering@redhat.com>
4156 Remove useless if-before-free tests.
4157 * calls.c (expand_call, save_area): Likewise.
4158 * cfgcleanup.c (try_forward_edges): Likewise.
4159 * collect2.c (collect_execute): Likewise.
4160 * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
4161 * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
4162 * coverage.c (coverage_checksum_string): Likewise.
4163 * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
4164 * cselib.c (cselib_init): Likewise.
4165 * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
4166 (df_set_clean_cfg): Likewise.
4167 * function.c (free_after_compilation): Likewise.
4168 * gcc.c (do_spec_1, main): Likewise.
4169 * gcov.c (create_file_names): Likewise.
4170 * gensupport.c (identify_predicable_attribute): Likewise.
4171 * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
4172 * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
4173 * haifa-sched.c (haifa_finish_h_i_d): Likewise.
4174 * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
4175 * ipa-pure-const.c (local_pure_const): Likewise.
4176 * ipa-reference.c (propagate): Likewise.
4177 * ira-costs.c (free_ira_costs): Likewise.
4178 * ira.c (free_register_move_costs, build_insn_chain): Likewise.
4179 * matrix-reorg.c (mat_free): Likewise.
4180 * prefix.c (get_key_value): Likewise.
4181 * profile.c (compute_value_histograms): Likewise.
4182 * reload1.c (free_reg_equiv): Likewise.
4183 * sched-deps.c (free_deps): Likewise.
4184 * sel-sched-ir.c (fence_clear): Likewise.
4185 * sese.c (set_rename, if_region_set_false_region): Likewise.
4186 * tree-data-ref.c (free_rdg): Likewise.
4187 * tree-eh.c (lower_try_finally): Likewise.
4188 * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
4189 * tree-ssa-live.c (delete_var_map): Likewise.
4190 * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
4191 * tree-ssa-pre.c (phi_trans_add): Likewise.
4193 2011-04-20 Jakub Jelinek <jakub@redhat.com>
4195 PR tree-optimization/48611
4196 * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
4197 beyond ERT_MUST_NOT_THROW region.
4199 2011-04-20 Catherine Moore <clm@codesourcery.com>
4201 * config/mips/mips.opt (mfix-24k): New.
4202 * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
4203 * config/mips/mips.md (length): Increase by 4 for stores if
4205 * config/mips/mips.c (mips_reorg_process_insns): Do not allow
4206 all noreorder if fixing 24K errata.
4207 * doc/invoke.texi: Document mfix-24k.
4209 2011-04-20 Chung-Lin Tang <cltang@codesourcery.com>
4211 * config/arm/arm.c (arm_legitimize_reload_address): For NEON
4212 quad-word modes, reduce to 9-bit index range when above 1016 limit.
4214 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
4216 * config/arm/arm.c (arm_gen_constant): Move movw support ....
4217 (const_ok_for_op): ... to here.
4219 2011-04-20 Kai Tietz <ktietz@redhat.com>
4221 * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
4222 and (X && !Y) | (!X && Y) optimization to (X ^ Y).
4224 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
4226 * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
4228 2011-04-20 Richard Guenther <rguenther@suse.de>
4230 PR tree-optimization/47892
4231 * tree-if-conv.c (if_convertible_stmt_p): Const builtins
4234 2011-04-20 Eric Botcazou <ebotcazou@adacore.com>
4236 * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
4238 2011-04-20 Tristan Gingold <gingold@adacore.com>
4240 * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
4242 2011-04-20 Georg-Johann Lay <avr@gjlay.de>
4246 * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
4247 (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
4248 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
4249 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
4250 (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
4252 * config/avr/avr-protos.h (avr_asm_output_aligned_common):
4255 * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
4256 (avr_asm_named_section, avr_asm_output_aligned_common,
4257 avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
4258 New functions to update...
4259 (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
4260 (avr_asm_init_sections): Overwrite section callbacks for
4261 data_section, bss_section.
4262 (avr_file_start): Move output of __do_copy_data, __do_clear_bss
4264 (avr_file_end): ...here.
4266 2011-04-20 Richard Guenther <rguenther@suse.de>
4269 * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
4270 objects and types here. Adjust for their offset before comparing.
4272 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
4274 * tree-vect-stmts.c (vectorizable_store): Only chain one related
4277 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
4279 * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
4280 (GIMPLE_H): Include $(INTERNAL_FN_H).
4281 (OBJS-common): Add internal-fn.o.
4282 (internal-fn.o): New rule.
4283 * internal-fn.def: New file.
4284 * internal-fn.h: Likewise.
4285 * internal-fn.c: Likewise.
4286 * gimple.h: Include internal-fn.h.
4287 (GF_CALL_INTERNAL): New gf_mask.
4288 (gimple_statement_call): Put fntype into a union with a new
4290 (gimple_build_call_internal): Declare.
4291 (gimple_build_call_internal_vec): Likewise.
4292 (gimple_call_same_target_p): Likewise.
4293 (gimple_call_internal_p): New function.
4294 (gimple_call_internal_fn): Likewise.
4295 (gimple_call_fntype): Return null for internal calls.
4296 (gimple_call_set_fntype): Assert that the function is not internal.
4297 (gimple_call_set_fn): Likewise.
4298 (gimple_call_set_fndecl): Likewise.
4299 (gimple_call_set_internal_fn): New function.
4300 (gimple_call_addr_fndecl): Handle null functions.
4301 (gimple_call_return_type): Likewise null types.
4302 * gimple.c (gimple_build_call_internal_1): New function.
4303 (gimple_build_call_internal): Likewise.
4304 (gimple_build_call_internal_vec): Likewise.
4305 (gimple_call_same_target_p): Likewise.
4306 (gimple_call_flags): Handle calls to internal functions.
4307 (gimple_call_fnspec): New function.
4308 (gimple_call_arg_flags, gimple_call_return_flags): Use it.
4309 (gimple_has_side_effects): Handle null functions.
4310 (gimple_rhs_has_side_effects): Likewise.
4311 (gimple_call_copy_skip_args): Handle calls to internal functions.
4312 * cfgexpand.c (expand_call_stmt): Likewise.
4313 * expr.c (expand_expr_real_1): Assert that the call isn't internal.
4314 * gimple-fold.c (gimple_fold_call): Handle null functions.
4315 (gimple_fold_stmt_to_constant_1): Don't fold
4316 calls to internal functions.
4317 * gimple-low.c (gimple_check_call_args): Handle calls to internal
4319 * gimple-pretty-print.c (dump_gimple_call): Likewise.
4320 * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
4321 * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
4322 (do_warn_unused_result): Likewise.
4323 * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
4324 * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
4325 * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
4326 the target of a call.
4327 (initialize_hash_element): Update accordingly.
4328 (hashable_expr_equal_p): Use gimple_call_same_target_p.
4329 (iterative_hash_hashable_expr): Handle calls to internal functions.
4330 (print_expr_hash_elt): Likewise.
4331 * tree-ssa-pre.c (can_value_number_call): Likewise.
4332 (eliminate): Handle null functions.
4333 * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
4334 * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
4335 (find_func_aliases): Likewise.
4336 * value-prof.c (gimple_ic_transform): Likewise.
4337 (gimple_indirect_call_to_profile): Likewise.
4338 * lto-streamer-in.c (input_gimple_stmt): Likewise.
4339 * lto-streamer-out.c (output_gimple_stmt): Likewise.
4341 2011-04-19 Jan Hubicka <jh@suse.cz>
4343 * ipa-inline-transform.c (save_inline_function_body): Add comments.
4344 * ipa-inline.c (inline_small_functions): Compute summaries first,
4345 populate heap later.
4347 2011-04-19 Jan Hubicka <jh@suse.cz>
4349 * cgraph.h (save_inline_function_body): Remove.
4350 * ipa-inline-transform.c: New file, broke out of...
4351 * ipa-inline.c: ... this one; Update toplevel comment.
4352 (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
4354 (update_noncloned_frequencies): Move to ipa-inline-transform.c
4355 (cgraph_mark_inline_edge): Rename to inline_call; move to
4356 ipa-inline-transform.c.
4357 (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
4358 move to ipa-inline-transform.c
4359 (recursive_inlining, inline_small_functions, flatten_function,
4360 ipa_inline, inline_always_inline_functions,
4361 early_inline_small_functions): Update.
4362 (inline_transform): Move to ipa-inline-transform.c.
4363 * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
4365 * Makefile.in (ipa-inline-transform.o): New file.
4366 * cgraphunit.c (save_inline_function_body): Move to
4367 ipa-inline-transform.c
4369 2011-04-19 DJ Delorie <dj@redhat.com>
4371 * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
4372 registers if we already know there aren't any.
4373 (m32c_emit_epilogue): Don't emit a barrier here.
4374 (m32c_emit_eh_epilogue): Likewise.
4375 * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
4376 operands at expand time.
4377 * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
4379 (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
4380 duplicates. Provide aliases instead.
4381 * config/m32c/prologue.md (eh_return): Emit a barrier here.
4382 (eh_epilogue): Add a "(return)" here as a hint to other parts of
4385 2011-04-19 Anatoly Sokolov <aesok@post.ru>
4387 * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
4388 * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
4389 (general_or_i64_p, sparc_register_move_cost): New function.
4391 2011-04-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4393 * doc/install.texi (Configuration, --enable-threads): Remove mach.
4394 Add lynx, mipssde. Sort table.
4396 2011-04-19 Xinliang David Li <davidxl@google.com>
4398 * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
4401 2011-04-19 Jakub Jelinek <jakub@redhat.com>
4404 * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
4405 is a SUBREG with non-MODE_INT mode inside of it.
4407 2011-04-19 Martin Jambor <mjambor@suse.cz>
4409 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
4410 also according to actual contants.
4411 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
4412 (gimple_fold_call): Use it.
4413 * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
4415 2011-04-19 Martin Jambor <mjambor@suse.cz>
4417 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
4418 non-pointer assignments.
4420 2011-04-19 Martin Jambor <mjambor@suse.cz>
4422 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
4423 account anc_offset and otr_type from the indirect edge info.
4424 * ipa-prop.c (get_ancestor_addr_info): New function.
4425 (compute_complex_ancestor_jump_func): Assignment analysis moved to
4426 get_ancestor_addr_info, call it.
4427 (ipa_note_param_call): Do not initialize information about polymorphic
4428 calls, return the indirect call graph edge. Remove the last
4429 parameter, adjust all callers.
4430 (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
4431 parameters. Initialize polymorphic information in the indirect edge.
4433 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
4436 * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
4437 the types if they have different enumeration identifiers.
4439 2011-04-19 Jan Hubicka <jh@suse.cz>
4441 * cgraph.h (cgraph_optimize_for_size_p): Declare.
4442 * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
4443 * predict.c (cgraph_optimize_for_size_p): Break out from ...
4444 (optimize_function_for_size_p) ... here.
4446 2011-04-19 Richard Guenther <rguenther@suse.de>
4449 * tree.c (free_lang_data): Do not reset the decl-assembler-name
4452 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
4454 * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
4455 if DECL_NO_INLINE_WARNING_P is set on the function.
4457 2011-04-19 Bernd Schmidt <bernds@codesourcery.com>
4460 * reload1.c (inc_for_reload): Return void. All callers changed.
4461 (emit_input_reload_insns): Don't try to delete previous output
4462 reloads to a register, or record spill_reg_store for autoincs.
4464 2011-04-19 Basile Starynkevitch <basile@starynkevitch.net>
4466 * gengtype.h: Updated copyright year.
4467 (struct input_file_st): Add inpisplugin field.
4468 (type_fileloc): New function.
4470 (write_typed_struct_alloc_def): Add gcc_assert.
4471 (write_typed_alloc_defns): Ditto. Don't output for plugin files.
4472 (write_typed_alloc_defns): Don't output for plugin files.
4473 (input_file_by_name): Clear inpisplugin field.
4474 (main): Set inpisplugin field for plugin files.
4476 2011-04-19 Nicola Pero <nicola.pero@meta-innovation.com>
4478 * gengtype-state.c (string_eq): New.
4479 (read_state): Use string_eq instead of strcmp when creating the
4482 2011-04-19 Wei Guozhi <carrot@google.com>
4485 * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
4486 * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
4488 * config/arm/constraints.md (Uu): New constraint.
4489 * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
4491 2011-04-19 Tristan Gingold <gingold@adacore.com>
4493 * config.gcc (-*-*-*vms): Added.
4494 (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
4496 * config/vms/vms-ld.c: New file.
4497 * config/vms/vms-ar.c: New file.
4498 * config/vms/t-vmsnative: New file.
4500 2011-04-18 Xinliang David Li <davidxl@google.com>
4502 * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
4504 2011-04-18 Jakub Jelinek <jakub@redhat.com>
4507 * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
4508 if TREE_TYPE (v) is non-NULL.
4510 * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
4511 gimple_get_virt_mehtod_for_binfo.
4512 * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
4513 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
4515 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
4517 2011-04-18 Michael Matz <matz@suse.de>
4518 Steve Ellcey <sje@cup.hp.com>
4520 * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
4521 use its mode as source mode if it isn't VOIDmode.
4523 2011-04-18 Dennis, CHENG Renquan <crquan@fedoraproject.org>
4525 * doc/passes.texi: Fill crossref nodes.
4527 2011-04-18 Jim Meyering <meyering@redhat.com>
4529 Fix doubled-word typos in comments and strings
4530 * config/alpha/vms-unwind.h: s/for for/for/
4531 * config/arm/unwind-arm.h: Likewise.
4532 * config/microblaze/microblaze.c: Likewise.
4533 * config/sh/constraints.md: s/in in/in/
4534 * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
4536 2011-04-18 Uros Bizjak <ubizjak@gmail.com>
4538 * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
4539 (AVX_FLOAT_MODE_P): Ditto.
4540 (AVX128_VEC_FLOAT_MODE_P): Ditto.
4541 (AVX256_VEC_FLOAT_MODE_P): Ditto.
4542 (AVX_VEC_FLOAT_MODE_P): Ditto.
4543 * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
4544 (UNSPEC_MASKSTORE): Ditto.
4545 * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
4546 Merge from <sse>_movmsk<ssemodesuffix> and
4547 avx_movmsk<ssemodesuffix>256. Use VF mode iterator.
4548 (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64. Use P mode
4550 (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
4551 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
4552 (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
4554 2011-04-18 Jan Hubicka <jh@suse.cz>
4556 * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
4558 * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
4559 (want_inline_function_called_once_p): Break out the logic from
4561 (edge_badness): Ensure that profile is not misupdated.
4562 (lookup_recursive_calls): Prioritize by call frequencies.
4563 (inline_small_functions): Move program size estimates here;
4564 actually process whole queue even when unit growth has been
4565 met. (to properly compute inline_failed reasons and for the
4566 case unit size decrease.) Revisit comments on recursive inlining.
4567 (ipa_inline): Remove unit summary code; first inline hot calls
4568 of functions called once, cold calls next.
4569 (order, nnodes): Remove unused variables.
4570 * Makefile.in (ipa-inline.o): No longer depent on ggc files.
4571 (GTFILES): Remove ipa-inline.c
4572 * sel-sched.c (fill_insns): Silence uninitialized var warning.
4574 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
4576 * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
4578 2011-04-18 Jie Zhang <jie@codesourcery.com>
4579 Richard Earnshaw <rearnsha@arm.com>
4581 * arm.c (neon_builtin_type_bits): Remove.
4582 (typedef enum neon_builtin_mode): New.
4583 (T_MAX): Don't define.
4584 (typedef enum neon_builtin_datum): Remove bits, codes[],
4585 num_vars and base_fcode. Add mode, code and fcode.
4586 (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
4587 VAR10): Change accordingly.
4588 (neon_builtin_data[]): Change accordingly
4589 (arm_init_neon_builtins): Change accordingly.
4590 (neon_builtin_compare): Remove.
4591 (locate_neon_builtin_icode): Remove.
4592 (arm_expand_neon_builtin): Change accordingly.
4594 * arm.h (enum arm_builtins): Move to ...
4595 * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
4597 * arm.c (arm_builtin_decl): Declare.
4598 (TARGET_BUILTIN_DECL): Define.
4599 (enum arm_builtins): Correct ARM_BUILTIN_MAX.
4600 (arm_builtin_decls[]): New.
4601 (arm_init_neon_builtins): Store builtin declarations in
4602 arm_builtin_decls[].
4603 (arm_init_tls_builtins): Likewise.
4604 (arm_init_iwmmxt_builtins): Likewise. Refactor initialization code.
4605 (arm_builtin_decl): New.
4607 2011-04-18 Richard Guenther <rguenther@suse.de>
4609 * tree.c (upper_bound_in_type): Build properly canonicalized
4611 (lower_bound_in_type): Likewise.
4613 2011-04-18 Richard Guenther <rguenther@suse.de>
4615 * gimple.h (gimple_call_addr_fndecl): New function.
4616 (gimple_call_fndecl): Use it.
4617 * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
4619 * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
4620 * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
4622 2011-04-18 Richard Guenther <rguenther@suse.de>
4625 * tree.c (build_string): STRING_CST is now derived from tree_typed.
4627 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
4630 * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
4631 DECL_IN_CONSTANT_POOL without RTL.
4633 2011-04-18 Ulrich Weigand <ulrich.weigand@linaro.org>
4634 Ira Rosen <ira.rosen@linaro.org>
4637 * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
4638 to match neon_vzip/vuzp/vtrn_internal.
4639 * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
4640 outputs explicitly dependent on both inputs.
4641 (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
4643 2011-04-18 Jakub Jelinek <jakub@redhat.com>
4645 PR tree-optimization/48616
4646 * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
4647 whether the shift is by scalar or vector based on whether all SLP
4648 scalar stmts have the same rhs.
4650 2011-04-17 Chung-Lin Tang <cltang@codesourcery.com>
4652 * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
4655 2011-04-17 Richard Sandiford <rdsandiford@googlemail.com>
4657 * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
4660 2011-04-17 Jan Hubicka <jh@suse.cz>
4662 * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
4663 * cgrpahunit.c (cgraph_finalize_function): Do not set
4664 finalized_by_frontend.
4665 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
4666 finalized_by_frontend.
4668 2011-04-17 Jan Hubicka <jh@suse.cz>
4670 * cgraph.c (cgraph_clone_node): Do not handle vtable_method
4671 * cgraph.h (struct cgraph_local_info): Drop vtable_method.
4672 * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
4673 * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
4675 * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
4677 * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
4679 2011-04-17 Eric Botcazou <ebotcazou@adacore.com>
4682 * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
4683 is non-null before accessing it.
4684 (input_cgraph): Remove trailing spaces.
4686 2011-04-17 Revital Eres <revital.eres@linaro.org>
4688 * params.def (sms-min-sc): New param flag.
4689 * modulo-sched.c (sms_schedule): Use it.
4690 * doc/invoke.texi (sms-min-sc): Document it.
4692 2011-04-17 Jan Hubicka <jh@suse.cz>
4694 * lto-symtab.c (lto_cgraph_replace_node): When call statement is
4695 present, also set gimple_call_set_cannot_inline.
4696 * ipa-inline.c: Update toplevel comment.
4698 (cgraph_clone_inlined_nodes): Fix linebreaks.
4699 (cgraph_check_inline_limits): Restructure to ...
4700 (caller_growth_limits): ... this one; be more tolerant
4701 on growth in nested inline chains; add explanatory comment;
4702 fix stack accounting thinko introduced by previous patch.
4703 (cgraph_default_inline_p): Remove.
4704 (report_inline_failed_reason): New function.
4705 (can_inline_edge_p): New function.
4706 (can_early_inline_edge_p): New function.
4707 (leaf_node_p): Move upwards in file.
4708 (want_early_inline_function_p): New function.
4709 (want_inline_small_function_p): New function.
4710 (want_inline_self_recursive_call_p): New function.
4711 (cgraph_edge_badness): Rename to ...
4712 (edge_badness) ... this one; fix linebreaks.
4713 (update_edge_key): Update call of edge_baddness; add
4714 detailed dump about queue updates.
4715 (update_caller_keys): Use can_inline_edge_p and
4716 want_inline_small_function_p.
4717 (cgraph_decide_recursive_inlining): Rename to...
4718 (recursive_inlining): Use can_inline_edge_p and
4719 want_inline_self_recursive_call_p; simplify and remove no longer
4721 (cgraph_set_inline_failed): Remove.
4722 (add_new_edges_to_heap): Use can_inline_edge_p and
4723 want_inline_small_function_p.
4724 (cgraph_decide_inlining_of_small_functions): Rename to ...
4725 (inline_small_functions): ... this one; cleanup; use
4726 can/want predicates; cleanup debug ouput; work edges till fibheap
4727 is exhausted and do not stop once unit growth is reached; remove
4728 later loop processing remaining edges.
4729 (cgraph_flatten): Rename to ...
4730 (flatten_function): ... this one; use can_inline_edge_p
4731 and can_early_inline_edge_p predicates.
4732 (cgraph_decide_inlining): Rename to ...
4733 (ipa_inline): ... this one; remove unreachable nodes before
4734 inlining functions called once; simplify the pass.
4735 (cgraph_perform_always_inlining): Rename to ...
4736 (inline_always_inline_functions): ... this one; use
4737 DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
4738 (cgraph_decide_inlining_incrementally): Rename to ...
4739 (early_inline_small_functions): ... this one; simplify
4740 using new predicates; cleanup; make dumps prettier.
4741 (cgraph_early_inlining): Rename to ...
4742 (early_inliner): newer inline regular functions into always-inlines;
4743 fix updating of call stmt summaries.
4744 (pass_early_inline): Update for new names.
4745 (inline_transform): Fix formating.
4746 (gate_cgraph_decide_inlining): Rename to ...
4747 (pass_ipa_inline): ... this one.
4748 * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
4749 * ipa-inline-analysis.c (dump_inline_summary): Update.
4750 (compute_inline_parameters): Do not compute disregard_inline_limits;
4751 look for mismatching arguments.
4752 (estimate_growth): Fix handlig of non-trivial self recursion.
4753 (inline_read_summary): Do not read info->disregard_inline_limits.
4754 (inline_write_summary): Do not write info->disregard_inline_limits.
4755 * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
4756 and move all checks into can_inline_edge_p predicate; re-enable code
4757 comparing optimization levels.
4758 (expand_call_inline): Do not test inline_forbidden_into_p.
4759 * Makefile.in (ipa-inline.o): Update arguments.
4761 2011-04-17 Revital Eres <revital.eres@linaro.org>
4763 * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
4765 2011-04-17 Revital Eres <revital.eres@linaro.org>
4767 * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
4769 2011-04-17 Michael Matz <matz@suse.de>
4771 PR tree-optimization/48622
4773 * ipa-inline-analysis.c (inline_read_summary): Read size/time
4774 in same order as they're written.
4776 2011-04-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4778 * config/pa/predicates.md: Reorganize and simplify predicates.
4779 Eliminate duplicate code checks.
4780 (arith_operand): Rename to arith14_operand
4781 (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
4782 * config/pa/pa.md: Use renamed operands.
4783 * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
4784 (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
4785 arith11_operand, adddi3_operand, indexed_memory_operand,
4786 symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
4787 arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
4788 borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
4789 move_dest_operand, move_src_operand, prefetch_cc_operand,
4790 prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
4791 uint32_operand, reg_before_reload_operand, reg_or_0_operand,
4792 reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
4793 div_operand, int5_operand, movb_comparison_operator,
4794 ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
4795 arith_double_operand, ireg_operand, lhs_lshift_operand,
4796 pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
4797 integer_store_memory_operand): Likewise.
4798 * config/pa/pa.c (adddi3_operand): Move to predicates.md.
4799 (integer_store_memory_operand, read_only_operand,
4800 function_label_operand, borx_reg_operand,
4801 non_hard_reg_operand): Likewise.
4802 (eq_neq_comparison_operator): Delete unused operator.
4803 (legitimize_pic_address): Use VOIDmode for mode argument in calls to
4804 function_label_operand.
4805 (emit_move_sequence): Likewise.
4807 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
4809 * config/i386/sse.md (sseunpackmode): New mode attribute.
4810 (ssepackmode): Ditto.
4811 (vec_pack_trunc_<mode>): Macroize expander from
4812 vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
4813 (vec_unpacks_lo_<mode>): Macroize expander from
4814 vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
4815 (vec_unpacks_hi_<mode>): Macroize expander from
4816 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
4817 (vec_unpacku_lo_<mode>): Macroize expander from
4818 vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
4819 (vec_unpacku_hi_<mode>): Macroize expander from
4820 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
4821 * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
4822 ix86_expand_sse4_unpack.
4823 * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
4825 2011-04-16 Jan Hubicka <jh@suse.cz>
4827 * cgraphbuild.c: Include ipa-inline.h.
4828 (reset_inline_failed): Use initialize_inline_failed.
4829 * cgraph.c: Include ipa-inline.h.
4830 (cgraph_create_node_1): Do not initialize estimated_growth.
4831 (initialize_inline_failed): More to ipa-inline-analysis.c
4832 (dump_cgraph_node): Do not dump inline flags.
4833 * cgraph.h (cgraph_local_info): Remove inlineable, versionable
4834 and disregard_inline_limits flags.
4835 (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
4836 time, size, estimated_growth.
4837 * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
4839 * cgraphunit.c (cgraph_decide_is_function_needed): Use
4840 DECL_DISREGARD_INLINE_LIMITS.
4841 (cgraph_analyze_function): Do not initialize
4842 node->local.disregard_inline_limits.
4843 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
4844 inlinable, versionable and disregard_inline_limits.
4845 * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
4846 cgraph_check_inline_limits, cgraph_default_inline_p,
4847 cgraph_edge_badness, update_caller_keys, update_callee_keys,
4848 add_new_edges_to_heap): Update.
4849 (cgraph_decide_inlining_of_small_function): Update; set
4850 CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
4851 (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
4852 cgraph_decide_inlining_incrementally): Update.
4853 * ipa-inline.h (inline_summary): Add inlinable, versionable,
4854 disregard_inline_limits, estimated_stack_size, stack_frame_offset,
4855 time, size and estimated_growth parameters.
4856 (estimate_edge_growth): Update.
4857 (initialize_inline_failed): Declare.
4858 * ipa-split.c: Include ipa-inline.h
4859 (execute_split_functions): Update.
4860 * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
4861 (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
4862 (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
4863 * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
4864 estimated_growth to INT_MIN.
4865 (inline_node_duplication_hook): Likewise.
4866 (dump_inline_summary): Dump new fields.
4867 (compute_inline_parameters): Update.
4868 (estimate_edge_time, estimate_time_after_inlining,
4869 estimate_size_after_inlining, estimate_growth, inline_read_summary,
4870 inline_write_summary):
4871 (initialize_inline_failed): Move here from cgraph.c.
4872 * tree-sra.c: Include ipa-inline.h.
4873 (ipa_sra_preliminary_function_checks): Update.
4874 * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
4877 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
4879 * config/i386/sse.md (V16): New mode iterator.
4881 (AVXMODEQI, AVXMODEDI): Remove.
4882 (sse2, sse3): New mode attribute.
4883 (mov<mode>): Use V16 mode iterator.
4884 (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
4885 (push<mode>1): Use V16 mode iterator.
4886 (movmisalign<mode>): Ditto.
4887 (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
4888 <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
4889 (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
4890 *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
4891 (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
4892 avx_movdqu<avxmodesuffix>.
4893 (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
4894 *avx_movdqu<avxmodesuffix>.
4895 (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
4896 avx_lddqu<avxmodesuffix>.
4897 (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
4898 (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
4899 avx_movnt<AVXMODEDI:mode>.
4900 * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
4901 renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
4903 2011-04-16 Bernd Schmidt <bernds@codesourcery.com>
4906 * haifa-sched.c (prune_ready_list, schedule_block): Use
4907 sched_pressure_p rather than flag_sched_pressure.
4909 2011-04-15 Pat Haugen <pthaugen@us.ibm.com>
4911 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
4912 cgraph_get_node instead of cgraph_get_create_node.
4914 2011-04-15 Jakub Jelinek <jakub@redhat.com>
4916 * cfgexpand.c (expand_debug_expr): Use
4917 simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
4919 2011-04-15 Michael Matz <matz@suse.de>
4921 * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
4922 * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
4923 * function.c (gimplify_parameters): Ditto.
4924 * gimplify.c (gimplify_vla_decl): Ditto.
4926 * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
4927 (gimple_call_set_alloca_for_var): New inline function.
4928 (gimple_call_alloca_for_var_p): Ditto.
4929 * gimple.c (gimple_build_call_from_tree): Remember
4930 CALL_ALLOCA_FOR_VAR_P state.
4931 * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
4933 * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
4934 calls if they were for VLA objects.
4936 2011-04-15 Martin Jambor <mjambor@suse.cz>
4938 * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
4941 2011-04-15 Martin Jambor <mjambor@suse.cz>
4944 * tree-emutls.c (lower_emutls_function_body): Call
4945 cgraph_get_create_node instead of cgraph_get_node. Do not assert the
4948 2011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
4950 * c-decl.c (detect_field_duplicates): Call
4951 objc_detect_field_duplicates instead of objc_get_interface_ivars.
4953 2011-04-15 Nathan Froyd <froydnj@codesourcery.com>
4955 * gimple.h (gimple_asm_clobbers_memory_p): Declare.
4956 * gimple.c (gimple_asm_clobbers_memory_p): Define.
4957 * ipa-pure-const.c (check_stmt): Call it.
4958 * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
4960 2011-04-15 Richard Guenther <rguenther@suse.de>
4962 PR tree-optimization/48290
4963 * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
4964 Properly decide inhibiting propagation based on the valueized
4965 operand. Do loop-closed SSA form preserving here ...
4966 (init_copy_prop): ... not here.
4968 2011-04-15 H.J. Lu <hongjiu.lu@intel.com>
4971 * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
4972 (*ieee_smax<mode>3): Likewise.
4974 2011-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4976 * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
4977 Replace match_operand with match_dup for the third operand in
4980 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
4982 * combine.c (subst, combine_simlify_rtx): Add new argument, use it
4983 to track processing of conditionals. Update all callers.
4984 (try_combine, simplify_if_then_else): Update.
4986 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
4988 * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
4991 2011-04-15 Georg-Johann Lay <avr@gjlay.de>
4993 * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
4994 instead of match_operand for operand 3.
4996 2011-04-15 Richard Sandiford <richard.sandiford@linaro.org>
4998 * recog.h (insn_operand_data): Add an "allows_mem" field.
4999 * genoutput.c (output_operand_data): Initialize it.
5000 * optabs.c (maybe_legitimize_operand_same_code): New function.
5001 (maybe_legitimize_operand): Use it when matching the original
5004 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
5006 * gimplify.c: Fix issues in comments throughout.
5007 (voidify_wrapper_expr): Fix long line.
5008 (build_stack_save_restore): Likewise.
5009 (gimplify_loop_expr): Likewise.
5010 (gimplify_compound_lval): Likewise.
5011 (gimplify_init_ctor_eval): Likewise.
5012 (gimplify_modify_expr_rhs): Likewise.
5013 (omp_notice_threadprivate_variable): Likewise.
5015 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
5017 * cfgexpand.c (expand_call_stmt): Convert the function type to the
5018 original one if this is not a builtin function.
5020 2011-04-14 Jakub Jelinek <jakub@redhat.com>
5023 * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
5024 offset it as needed based on top 2 bits in operands[3], change
5025 MEM mode to SFmode and mask those 2 bits away from operands[3].
5027 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
5029 * c-parser.c (c_parser_objc_protocol_definition): Updated for
5030 change from objc_declare_protocols() to objc_declare_protocol().
5032 2011-04-14 Uros Bizjak <ubizjak@gmail.com>
5034 * config/i386/sse.md (sse4_1): New mode attribute.
5035 (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
5036 avx_blend<ssemodesuffix><avxmodesuffix> and
5037 sse4_1_blend<ssemodesuffix> using VF mode iterator.
5038 (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
5039 avx_blendv<ssemodesuffix><avxmodesuffix> and
5040 sse4_1_blendv<ssemodesuffix> using VF mode iterator.
5041 (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
5042 avx_dp<ssemodesuffix><avxmodesuffix> and
5043 sse4_1_dp<ssemodesuffix> using VF mode iterator.
5044 (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
5045 (sse4_1_packusdw): Merge with *avx_packusdw.
5046 (sse4_1_pblendvb): Merge with *avx_pblendvb.
5047 (sse4_1_pblendw): Merge with *avx_pblendw.
5048 (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
5049 (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
5050 avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
5052 (sse4_1_round<ssescalarmodesuffix>): Merge with
5053 *avx_round<ssescalarmodesuffix>.
5054 (aesenc): Merge with *avx_aesenc.
5055 (aesenclast): Merge with *avx_aesenclast.
5056 (aesdec): Merge with *avx_aesdec.
5057 (aesdeclast): Merge with *avx_aesdeclast.
5058 (pclmulqdq): Merge with *pclmulqdq.
5059 * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
5061 (nonimm_not_xmm0_operand_maybe_avx): Ditto.
5063 2011-04-14 H.J. Lu <hongjiu.lu@intel.com>
5066 * cfgexpand.c (get_decl_align_unit): Renamed to ...
5067 (align_local_variable): This. Update DECL_ALIGN.
5068 (add_stack_var): Updated.
5069 (expand_one_stack_var): Likewise.
5071 2011-04-14 Richard Guenther <rguenther@suse.de>
5073 * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
5075 (dse_initialize_block_local_data, dse_leave_block,
5076 record_voperand_set, get_stmt_uid): Likewise.
5077 (dse_possible_dead_store_p): Allow any kind of killing stmt.
5078 (dse_optimize_stmt): Remove voperand set handling code.
5079 Simplify and improve to handle any kind of killing stmt.
5080 (dse_record_phi): Remove.
5081 (dse_enter_block): Simplify.
5082 (tree_ssa_dse): Likewise.
5083 * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
5085 2011-04-14 Jan Hubicka <jh@suse.cz>
5087 * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
5088 * cgraph.h (struct inline_summary): Move to ipa-inline.h
5089 (cgraph_local_info): Remove inline_summary.
5090 * ipa-cp.c: Include ipa-inline.h.
5091 (ipcp_cloning_candidate_p, ipcp_estimate_growth,
5092 ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
5094 * lto-cgraph.c (lto_output_node): Do not stream inline summary.
5095 (input_overwrite_node): Do not set inline summary.
5096 (input_node): Do not stream inline summary.
5097 * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
5098 (cgraph_decide_inlining_incrementally): Do not try to estimate overall
5099 growth; we do not have inline parameters computed for that anyway.
5100 (cgraph_early_inlining): After inlining compute call_stmt_sizes.
5101 * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
5102 (inline_summary_t): New type and VECtor.
5103 (debug_inline_summary, dump_inline_summaries): Declare.
5104 (inline_summary): Use VOCtor.
5105 (estimate_edge_growth): Kill hack computing call stmt size directly.
5106 * lto-section-in.c (lto_section_name): Add inline section.
5107 * ipa-inline-analysis.c: Include lto-streamer.h
5108 (node_removal_hook_holder, node_duplication_hook_holder): New holders
5109 (inline_node_removal_hook, inline_node_duplication_hook): New functions.
5110 (inline_summary_vec): Define.
5111 (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
5112 dump_inline_summaries): New functions.
5113 (estimate_function_body_sizes): Properly compute size/time of outgoing
5115 (compute_inline_parameters): Alloc inline_summary; do not compute
5116 size/time of incomming calls.
5117 (estimate_edge_time): Avoid missing time summary hack.
5118 (inline_read_summary): Read inline summary info.
5119 (inline_write_summary): Write inline summary info.
5120 (inline_free_summary): Free all hooks and inline summary vector.
5121 * lto-streamer.h: Add LTO_section_inline_summary section.
5122 * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
5123 * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
5125 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
5127 * tree-vectorizer.h (vect_strided_store_supported): Add a
5128 HOST_WIDE_INT argument.
5129 (vect_strided_load_supported): Likewise.
5130 (vect_permute_store_chain): Return void.
5131 (vect_transform_strided_load): Likewise.
5132 (vect_permute_load_chain): Delete.
5133 * tree-vect-data-refs.c (vect_strided_store_supported): Take a
5134 count argument. Check that the count is a power of two.
5135 (vect_strided_load_supported): Likewise.
5136 (vect_permute_store_chain): Return void. Update after above changes.
5137 Assert that the access is supported.
5138 (vect_permute_load_chain): Likewise.
5139 (vect_transform_strided_load): Return void.
5140 * tree-vect-stmts.c (vectorizable_store): Update calls after
5141 above interface changes.
5142 (vectorizable_load): Likewise.
5143 (vect_analyze_stmt): Don't check for strided powers of two here.
5145 2011-04-14 Richard Guenther <rguenther@suse.de>
5147 PR tree-optimization/48590
5148 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
5149 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
5150 (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
5151 BUILT_IN_STACK_SAVE.
5152 * tree-ssa-dce.c (propagate_necessity): Handle
5153 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
5155 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
5157 * c-parser.c (c_parser_objc_class_declaration): Updated call to
5160 2011-04-14 Richard Guenther <rguenther@suse.de>
5162 * tree.h (get_object_alignment_1): Declare.
5163 * builtins.c (get_object_alignment_1): Split out worker from ...
5164 (get_object_alignment): ... here.
5165 * fold-const.c (get_pointer_modulus_and_residue): Use
5166 get_object_alignment_1.
5168 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
5170 * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
5172 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
5173 parameter. Generalise code to handle arrays as well as vectors.
5174 (vect_setup_realignment): Update accordingly.
5175 * tree-vect-stmts.c (vectorizable_store): Likewise.
5176 (vectorizable_load): Likewise.
5178 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
5180 * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
5181 within the per-copy loop.
5183 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
5185 * tree-vect-stmts.c (vectorizable_load): Print the number of copies
5188 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
5190 * doc/options.texi (Negative): Explicitly mention that the
5191 Negative chain must be circular.
5193 2011-04-14 Nathan Froyd <froydnj@codesourcery.com>
5195 * function.h (block_chainon): Declare.
5196 * function.c (block_chainon): Define.
5198 2011-04-14 Anatoly Sokolov <aesok@post.ru>
5199 Eric Weddington <eric.weddington@atmel.com>
5200 Georg-Johann Lay <avr@gjlay.de>
5202 * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
5204 (avr_init_builtins, avr_expand_builtin,
5205 avr_expand_delay_cycles, avr_expand_unop_builtin,
5206 avr_expand_binop_builtin ): New functions.
5207 (avr_builtin_id): New enum
5208 (struct avr_builtin_description): New struct
5209 (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
5210 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
5212 * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
5213 UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
5214 UNSPECV_DELAY_CYCLES): new enumeration values
5215 (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
5216 ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
5217 ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
5218 ("*rotlqi3_4"): rename insn to "rotlqi3_4"
5219 ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
5220 "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
5221 "fmulsu"): New insns
5223 * config/avr/avr-c.c: fix line endings
5224 (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
5225 __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
5226 __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
5227 __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
5228 __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
5230 * doc/extend.texi (AVR Built-in Functions): New node
5231 (Target Builtins): Add documentation of AVR
5234 2011-04-14 Georg-Johann Lay <avr@gjlay.de>
5237 * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
5238 alone. Error if non-const data has attribute progmem.
5240 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
5242 * tree.h (struct tree_constructor): Include tree_typed instead of
5244 * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
5245 TS_TYPED instead of TS_COMMON.
5247 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
5249 * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
5250 (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
5251 (sse2_psadbw): Merge with *avx_psadbw.
5252 (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
5253 (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
5254 (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
5255 (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
5256 (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
5257 (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
5258 (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
5259 (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
5260 (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
5261 (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
5262 (ssse3_palignrti): Merge with *avx_palignrti.
5264 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
5266 * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
5267 * tree-ssanames.c (fini_ssanames): VEC_free it.
5268 (make_ssa_name_fn): Update for VECness of free_ssanames.
5269 (release_ssa_name, release_dead_ssa_names): Likewise.
5270 * tree.h (struct tree_ssa_name): Include tree_typed instead of
5272 * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
5273 TS_TYPED instead of TS_COMMON.
5275 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
5277 * postreload-gcse.c (gcse_after_reload_main): Add calls to
5278 statistics_counter_event.
5279 * tree-ssa-copyrename.c (stats): Define.
5280 (rename_ssa_copies): Count coalesced SSA_NAMEs. Add call to
5281 statistics_counter_event.
5282 * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
5283 (bswap_stats, widen_mul_stats): Define.
5284 (insert_reciprocals): Increment rdivs_inserted.
5285 (execute_cse_reciprocals): Zeroize reciprocal_stats. Increment
5286 rfuncs_inserted. Add calls to statistics_counter_event.
5287 (execute_cse_sincos_1): Increment inserted.
5288 (execute_cse_sincos): Zeroize sincos_stats. Add call to
5289 statistics_counter_event.
5290 (execute_optimize_bswap): Zeroize bswap_stats. Increment fields
5291 of bswap_stats. Add calls to statistics_counter_event.
5292 (convert_mult_to_widen): Increment widen_mults_inserted.
5293 (convert_plusminus_to_widen): Increment maccs_inserted.
5294 (convert_mult_to_fma): Increment fmas_inserted.
5295 (execute_optimize_widening_mul): Zeroize widen_mul_stats. Add
5296 calls to statistics_counter_event.
5298 2011-04-13 Vladimir Makarov <vmakarov@redhat.com>
5300 PR rtl-optimization/48455
5301 * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
5302 `temp_costs->mem_cost'.
5304 2011-04-13 Jan Hubicka <jh@suse.cz>
5306 * ipa-inline.h: New file.
5307 * ipa-inline-analysis.c: New file. Broken out of ...
5308 * ipa-inline.c: ... this file; update toplevel comment;
5309 include ipa-inline.h
5310 (inline_summary): Move to ipa-inline.h
5311 (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
5312 ipa-inline-analysis.c.
5313 (cgraph_estimate_time_after_inlining): Rename to
5314 estiamte_time_after_inlining; move to ipa-inline-analysis.c
5315 (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
5316 to estimate_edge_growth.
5317 (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
5318 rename to estimate_size_after_inlining.
5319 (cgraph_mark_inline_edge): Update for new naming convention.
5320 (cgraph_check_inline_limits): Likewise.
5321 (cgraph_edge_badness): Likewise.
5322 (cgraph_decide_recursive_inlining): Likewise.
5323 (cgraph_decide_inlining_of_small_functions): Likewise.
5324 (cgraph_decide_inlining_incrementally): Likewise.
5325 (cgraph_estimate_growth): Rename to estimate_growth; move to
5326 ipa-inline-analysis.c.
5327 (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
5328 (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
5329 (compute_inline_parameters): Likewise.
5330 (compute_inline_parameters_for_current): Likewise.
5331 (pass_inline_parameters): Likewise.
5332 (inline_indirect_intraprocedural_analysis): Likewise.
5333 (analyze_function): Rename to inline_analyze_function; likewise.
5334 (add_new_function): Move to ipa-inline-analysis.c.
5335 (inline_generate_summary): Likewise.
5336 (inline_read_summary): Likewise.
5337 (inline_write_summary): Likewise.
5338 * Makefile.in (ipa-inline-analysis.c): New file.
5340 2011-04-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5342 * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
5343 * configure: Regenerate.
5345 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
5347 * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
5348 instead of tree_common.
5349 (struct tree_fixed_cst, struct tree_string, struct tree_complex):
5351 * tree.c (initialize_tree_contains_struct): Mark such nodes as being
5352 TS_TYPED rather than TS_COMMON.
5353 * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
5355 2011-04-01 Georg-Johann Lay <avr@gjlay.de>
5358 * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
5359 r20 around calls of __tablejump_elpm__
5361 2011-04-13 Jakub Jelinek <jakub@redhat.com>
5364 * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
5366 (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
5368 2011-04-13 Bernd Schmidt <bernds@codesourcery.com>
5370 * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
5371 (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
5372 (cfi_vec): New typedef.
5373 (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
5374 dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
5375 (cie_cfi_vec): New static variable.
5376 (cie_cfi_head): Delete.
5377 (add_cfi): Accept a cfi_vec * as first argument. All callers and
5378 declaration changed. Use vector rather than list operations.
5379 (new_cfi): Don't initialize the dw_cfi_next field.
5380 (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
5381 rather than list operations.
5382 (lookup_cfa): Use vector rather than list operations.
5383 (output_cfis): New argument upto. Accept a cfi_vec rather than
5384 a dw_cfi_ref list head as argument. All callers changed.
5385 Iterate over the vector using upto as a maximum index.
5386 (output_all_cfis): New static function.
5387 (output_fde): Use vector rather than list operations. Use the
5388 new upto argument for output_cfis rather than manipulating a
5390 (dwarf2out_begin_prologue): Change initializations to match
5392 (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
5393 from the vector length rather than searching for the end of a list.
5394 Use output_all_cfis.
5395 (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
5397 2011-04-13 Nick Clifton <nickc@redhat.com>
5399 * config/rx/rx.md (movmemsi): Do not use this pattern when
5400 volatile pointers are involved.
5402 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
5404 * config/i386/sse.md (pinsrbits): Remove.
5405 (sse2_packsswb): Merge with *avx_packsswb.
5406 (sse2_packssdw): Merge with *avx_packssdw.
5407 (sse2_packuswb): Merge with *avx_packuswb.
5408 (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
5409 (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
5410 (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
5411 (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
5412 (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
5413 (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
5414 (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
5415 (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
5416 (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
5417 (*sse4_1_pinsrq): Merge with *avx_pinsrq.
5418 (sse2_loadld): Merge with *avx_loadld.
5419 (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
5420 (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
5421 (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
5422 (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
5423 (vec_concatv2di): Merge with *vec_concatv2di_avx.
5425 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
5427 * c-decl.c (union lang_tree_node): Check for TS_COMMON before
5429 * print-tree.c (print_node): Likewise.
5430 * tree-inline.c (copy_tree_r): Likewise.
5431 * c-lang.c (LANG_HOOKS_INIT_TS): Define.
5432 * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
5433 instead of TS_COMMON.
5434 * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
5435 * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
5436 (copy_node_stat): Zero TREE_CHAIN only if necessary.
5437 (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
5438 (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
5440 (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
5442 (TREE_CHAIN): Check for a TS_COMMON structure.
5443 (TREE_TYPE): Check for a TS_TYPED structure.
5445 2011-04-12 Pat Haugen <pthaugen@us.ibm.com>
5447 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
5448 cgraph_get_create_node instead of cgraph_node.
5450 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
5452 * c-parser.c (c_parser_initelt): Updated call to
5453 objc_build_message_expr.
5454 (c_parser_postfix_expression): Likewise.
5456 2011-04-12 Kai Tietz <ktietz@redhat.com>
5458 * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
5459 MASK_MS_BITFIELD_LAYOUT bit.
5461 2011-04-12 Jakub Jelinek <jakub@redhat.com>
5463 * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
5464 assert it is always true.
5465 (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
5468 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
5470 * c-parser.c (c_lex_one_token): Rewritten conditional used when
5471 compiling Objective-C to be more efficient.
5473 2011-04-12 Axel Freyn <axel-freyn@gmx.de>
5475 * opts-common.c (decode_cmdline_options_to_array): Remove variable
5478 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
5480 * recog.h, genoutput.c, optabs.c: Revert last patch.
5482 2011-04-12 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
5485 * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
5487 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
5489 * recog.h (insn_operand_data): Add an "allows_mem" field.
5490 * genoutput.c (output_operand_data): Initialize it.
5491 * optabs.c (maybe_legitimize_operand_same_code): New function.
5492 (maybe_legitimize_operand): Use it when matching the original
5495 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
5497 * genpreds.c (process_define_predicate): Move most processing
5498 to gensupport.c. Continue to validate the expression.
5499 * genrecog.c (did_you_mean_codes, compute_predicate_codes)
5500 (process_define_predicate): Move processing to gensupport.c.
5501 (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
5502 * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
5503 (compute_predicate_codes): Moved from genrecog.c. Add lineno
5505 (valid_predicate_name_p): New function, split out from old
5506 genpreds.c:process_define_predicate.
5507 (process_define_predicate): New function, combining code from
5508 old genpreds.c and genrecog.c functions.
5509 (process_rtx): Call it for DEFINE_PREDICATE and
5510 DEFINE_SPECIAL_PREDICATE.
5512 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
5514 * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
5515 size of a '%A' memory reference.
5516 (T_DREG, T_QREG): New neon_builtin_type_bits.
5517 (arm_init_neon_builtins): Assert that the load and store operands
5518 are neon_struct_operands.
5519 (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
5520 (NEON_ARG_MEMORY): New builtin_arg.
5521 (neon_dereference_pointer): New function.
5522 (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
5523 Handle NEON_ARG_MEMORY.
5524 (arm_expand_neon_builtin): Update after above interface changes.
5525 Use NEON_ARG_MEMORY for loads and stores.
5526 * config/arm/predicates.md (neon_struct_operand): New predicate.
5527 * config/arm/iterators.md (V_two_elem): Tweak formatting.
5528 (V_three_elem): Use BLKmode for accesses that have no associated mode.
5529 (V_four_elem): Tweak formatting.
5530 * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
5531 (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
5532 (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
5533 (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
5534 (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
5535 (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
5536 (neon_vst4<mode>): Replace pointer operand with a memory operand.
5537 Use %A in the output template.
5538 (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
5539 (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
5540 (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
5541 the width of the memory access. Remove post-increment.
5542 * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
5544 2011-04-12 Nick Clifton <nickc@redhat.com>
5546 * config/v850/v850.c (expand_prologue): Do not use the CALLT
5547 instruction for interrupt handlers if the target is the basic V850
5549 (expand_epilogue): Likewise.
5551 2011-04-12 Jakub Jelinek <jakub@redhat.com>
5553 PR rtl-optimization/48549
5554 * combine.c (propagate_for_debug): Also stop after BB_END of
5555 this_basic_block. Process LAST and just stop processing after it.
5556 (combine_instructions): If last_combined_insn has been deleted,
5557 set last_combined_insn to its PREV_INSN.
5559 2011-04-12 Richard Guenther <rguenther@suse.de>
5561 PR tree-optimization/46076
5562 * gimple.h (struct gimple_statement_call): Add fntype field.
5563 (gimple_call_fntype): Adjust.
5564 (gimple_call_set_fntype): New function.
5565 * gimple.c (gimple_build_call_1): Set the call function type.
5566 * gimplify.c (gimplify_call_expr): Preserve the function
5567 type the frontend used for the call.
5568 (gimplify_modify_expr): Likewise.
5569 * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
5571 * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
5573 * tree-ssa.c (useless_type_conversion_p): Function pointer
5574 conversions are useless.
5576 2011-04-12 Martin Jambor <mjambor@suse.cz>
5578 * cgraph.h (cgraph_node): Remove function declaration.
5579 (cgraph_create_node): Declare.
5580 (cgraph_get_create_node): Likewise.
5581 * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
5582 Updated all callers.
5583 (cgraph_node): Renamed to cgraph_create_node, assert that a node for
5584 the decl does not already exist. Call cgraph_get_create_node instead
5586 (cgraph_get_create_node): New function.
5587 (cgraph_same_body_alias): Update comment.
5588 (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
5589 assert it does not return NULL.
5590 (cgraph_update_edges_for_call_stmt): Likewise.
5591 (cgraph_clone_edge): Likewise.
5592 (cgraph_create_virtual_clone): Likewise.
5593 (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
5594 instead of cgraph_node.
5595 (cgraph_add_new_function): Call cgraph_create_node or
5596 cgraph_get_create_node instead of cgraph_node.
5597 * cgraphbuild.c (record_reference): Call cgraph_get_create_node
5598 instead of cgraph_node.
5599 (record_eh_tables): Likewise.
5600 (mark_address): Likewise.
5601 (mark_load): Likewise.
5602 (build_cgraph_edges): Call cgraph_get_create_node instead
5604 (rebuild_cgraph_edges): Likewise.
5605 * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
5606 instead of cgraph_node.
5607 (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
5609 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
5610 cgraph_create_node instead of cgraph_node.
5611 * c-decl.c (finish_function): Call cgraph_get_create_node instead
5613 * lto-cgraph.c (input_node): Likewise.
5614 * lto-streamer-in.c (input_function): Likewise.
5615 * varasm.c (mark_decl_referenced): Likewise.
5616 (assemble_alias): Likewise.
5618 2011-04-12 Martin Jambor <mjambor@suse.cz>
5620 * tree-inline.c (tree_function_versioning): Call cgraph_get_node
5621 instead of cgraph_node and assert it does not return NULL.
5622 * lto-streamer-in.c (lto_read_body): Likewise.
5623 * omp-low.c (new_omp_context): Likewise.
5624 (create_task_copyfn): Likewise.
5625 * tree-emutls.c (lower_emutls_function_body): Likewise.
5626 * matrix-reorg.c (transform_allocation_sites): Likewise.
5628 2011-04-12 Jakub Jelinek <jakub@redhat.com>
5631 * c-typeck.c (build_asm_expr): Error out on attempts to use
5632 void type outputs or inputs for constraints that allow reg or
5635 2011-04-11 Chung-Lin Tang <cltang@codesourcery.com>
5636 Richard Earnshaw <rearnsha@arm.com>
5639 * config/arm/arm.c (arm_legitimize_reload_address): Update cases
5640 to use sign-magnitude offsets. Reject unsupported unaligned
5641 cases. Add detailed description in comments.
5642 * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
5643 condition from TARGET_32BIT to TARGET_ARM.
5645 2011-04-11 Nathan Froyd <froydnj@codesourcery.com>
5647 * tree.h (struct typed_tree): New.
5648 (struct tree_common): Include it instead of tree_base.
5649 (TREE_TYPE): Update for new location of type field.
5650 (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
5651 (DECL_USER_ALIGN, DECL_PACKED): Likewise.
5652 (union tree_node): Add typed field.
5653 * treestruct.def (TS_TYPED): New.
5654 * lto-streamer.c (check_handled_ts_structures): Handle it.
5655 * tree.c (MARK_TS_TYPED): New macro.
5656 (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
5658 2011-04-11 Eric Botcazou <ebotcazou@adacore.com>
5660 * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
5661 (force_nonfallthru): Do not alter the loop nest if no basic block
5664 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
5666 * config/i386/sse.md (VI): New mode iterator.
5668 (AVX256MODEI): Ditto.
5669 (AVXMODEF4P): Ditto.
5670 (avxvecpsmode): Ditto.
5671 (one_cmpl<mode>2): Enable for TARGET_SSE. Use VI mode iterator.
5672 (sse2_andnot<mode>3): New expander.
5673 (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
5674 *avx_andnot<mode>3. Enable for TARGET_SSE. Use VI mode iterator.
5675 (<any_logic:code><mode>3): Use VI mode iterator.
5676 (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
5677 and *avx_<any_logic:code><mode>3. Use VI mode iterator.
5678 (*andnottf3): Handle AVX three-operand constraints.
5679 (*<any_logic:code>tf3): Handle AVX three-operand constraints.
5681 2011-04-11 Joseph Myers <joseph@codesourcery.com>
5682 Robert Millan <rmh@gnu.org>
5684 * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
5685 * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
5686 GNU_USER_DYNAMIC_LINKER64): Define.
5687 (REG_NAME): Don't undefine.
5688 (MD_UNWIND_SUPPORT): Undefine.
5689 * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
5690 (REG_NAME): Don't undefine.
5691 (MD_UNWIND_SUPPORT): Undefine.
5692 * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
5694 2011-04-11 Joseph Myers <joseph@codesourcery.com>
5696 * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
5697 (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
5699 2011-04-11 Xinliang David Li <davidxl@google.com>
5701 * value-profile.c (check_ic_target): New function.
5702 (gimple_ic_transform): Sanity check indirect call target.
5703 * gimple-low.c (gimple_check_call_args): Interface change.
5704 (gimple_check_call_matching_types): New function.
5705 * tree-inline.c (tree_can_inline_p): Call new function.
5707 2011-04-11 Basile Starynkevitch <basile@starynkevitch.net>
5709 * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
5710 tree-pretty-print.h & realmpfr.h.
5712 2011-04-11 Vladimir Makarov <vmakarov@redhat.com>
5715 * ira.c (setup_pressure_classes): Fix typo in loop condition.
5716 (setup_allocno_and_important_classes): Ditto.
5718 2011-04-11 Joseph Myers <joseph@codesourcery.com>
5720 * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
5721 GNU_USER_DYNAMIC_LINKER.
5722 * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
5723 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5724 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
5725 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
5726 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
5727 GNU_USER_TARGET_OS_CPP_BUILTINS.
5728 * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
5729 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5730 * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
5731 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5732 * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
5733 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
5734 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
5735 GNU_USER_TARGET_OS_CPP_BUILTINS.
5736 * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
5737 GNU_USER_DYNAMIC_LINKER.
5738 * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
5739 GNU_USER_TARGET_OS_CPP_BUILTINS.
5740 * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
5741 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5742 * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
5743 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5744 * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
5745 * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
5746 GNU_USER_DYNAMIC_LINKER64): Remove.
5747 * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
5748 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5749 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
5750 GNU_USER_DYNAMIC_LINKER.
5751 * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
5752 GNU_USER_TARGET_OS_CPP_BUILTINS.
5753 * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
5754 GNU_USER_TARGET_OS_CPP_BUILTINS.
5755 * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
5756 to GNU_USER_TARGET_OS_CPP_BUILTINS.
5757 * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
5758 GNU_USER_TARGET_OS_CPP_BUILTINS.
5759 (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
5760 (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
5761 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
5762 * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
5763 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5764 * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
5765 GNU_USER_DYNAMIC_LINKER.
5766 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
5767 GNU_USER_TARGET_OS_CPP_BUILTINS.
5768 * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
5769 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5770 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
5771 GNU_USER_DYNAMIC_LINKER.
5772 * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
5773 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5774 * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
5775 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5776 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
5777 GNU_USER_DYNAMIC_LINKER.
5778 * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
5779 GNU_USER_DYNAMIC_LINKERN32.
5780 (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
5781 GNU_USER_DYNAMIC_LINKERN32. Change LINUX_DYNAMIC_LINKER64 to
5782 GNU_USER_DYNAMIC_LINKER64. Change LINUX_DYNAMIC_LINKER32 to
5783 GNU_USER_DYNAMIC_LINKER32.
5784 * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
5785 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5786 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
5787 GNU_USER_DYNAMIC_LINKER.
5788 * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
5789 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5790 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
5791 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5792 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
5793 * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
5794 GNU_USER_DYNAMIC_LINKER32.
5795 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
5796 * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
5797 GNU_USER_DYNAMIC_LINKER.
5798 * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
5799 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5800 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
5801 GNU_USER_DYNAMIC_LINKER32. Change LINUX_DYNAMIC_LINKER64 to
5802 GNU_USER_DYNAMIC_LINKER64.
5803 * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
5804 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5805 (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
5806 GNU_USER_DYNAMIC_LINKER.
5807 * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
5808 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5809 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
5810 GNU_USER_DYNAMIC_LINKER.
5811 * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
5812 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5813 (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
5814 GNU_USER_DYNAMIC_LINKER32.
5815 (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
5816 GNU_USER_DYNAMIC_LINKER64.
5817 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
5818 GNU_USER_DYNAMIC_LINKER64.
5819 * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
5820 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5821 * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
5822 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5823 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
5825 2011-04-11 Joseph Myers <joseph@codesourcery.com>
5827 * config/i386/gnu-user.h: Copy from linux.h. Update comments.
5828 (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
5829 (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
5830 GNU_USER_DYNAMIC_LINKER.
5831 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
5832 * config/i386/gnu-user64.h: Copy from linux64.h. Update comments.
5833 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
5834 (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
5835 GNU_USER_DYNAMIC_LINKER64.
5836 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
5837 * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
5838 GNU_USER_LINK_EMULATION.
5839 * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
5840 DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
5841 ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
5842 MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
5843 PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
5844 CPP_SPEC, CC1_SPEC): Remove.
5845 (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
5846 (GNU_USER_DYNAMIC_LINKER): Define.
5847 (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
5848 ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
5849 ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
5850 LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
5851 TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
5852 STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
5853 TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
5854 * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
5855 CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
5856 TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
5857 LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
5858 LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
5859 (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
5860 (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
5861 TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
5862 TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
5863 * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
5864 GNU_USER_DYNAMIC_LINKER.
5865 * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
5866 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
5867 * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
5868 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
5869 * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
5870 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
5871 * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
5872 i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
5873 i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
5874 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
5876 2011-04-11 Kai Tietz <ktietz@redhat.com>
5880 * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
5881 * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
5883 (ix86_is_msabi_thiscall): Removed.
5884 (ix86_is_type_thiscall): Likewise.
5885 (ix86_get_callcvt): New function.
5886 (ix86_comp_type_attributes): Simplify check.
5887 (ix86_function_regparm): Use ix86_get_callcvt for calling
5888 convention attribute checks.
5889 (ix86_return_pops_args): Likewise.
5890 (ix86_static_chain): Likewise.
5891 (x86_this_parameter): Likewise.
5892 (x86_output_mi_thunk): Likewise.
5893 (ix86_function_type_abi): Optimize check for types without attributes.
5894 * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
5895 IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
5896 IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
5898 (IX86_BASE_CALLCVT): Helper macro.
5899 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
5900 Use ix86_get_callcvt for calling convention attribute checks and avoid
5901 symbol-decoration for stdcall in TARGET_RTD case.
5902 * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
5904 (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
5907 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
5909 * config/i386/sse.md (VI_128): New mode iterator.
5910 (VI12_128): Rename from SSEMODE12.
5911 (VI14_128): Rename from SSEMODE14.
5912 (VI124_128): New mode iterator.
5913 (VI24_128): Rename from SSEMODE248.
5914 (VI248_128): Rename from SSEMODE248.
5915 (SSEMODE124C8): Remove.
5916 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
5917 (*sse2_<plusminus_insn><mode>3): Merge with
5918 *avx_<plusminus_insn><mode>3.
5919 (*mulv8hi3): Merge with *avx_mulv8hi3.
5920 (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
5921 (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
5922 (*sse2_pmaddwd): Merge with *avx_pmaddwd.
5923 (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
5924 (ashr<mode>3): Merge with *avx_ashr<mode>3.
5925 (lshr<mode>3): Merge with *avx_lshr<mode>3.
5926 (ashl<mode>3): Merge with *avx_ashl<mode>3.
5927 (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
5928 (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
5929 (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
5930 (*<smaxmin:code>v8hi3): Ditto.
5931 (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
5932 (*<smaxmin:code>v16qi3): Ditto.
5933 (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
5934 (*sse2_eq<mode>3): Ditto.
5935 (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
5936 (*sse2_gt<mode>3): Ditto.
5937 (vcondv2di): Split out of vcond<mode>.
5938 (vconduv2di): Split out of vcondu<mode>.
5940 2011-04-11 Richard Guenther <rguenther@suse.de>
5942 * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
5943 before calling tree_low_cst.
5945 2011-04-11 Richard Guenther <rguenther@suse.de>
5947 * stor-layout.c (layout_type): Compute all array index size operations
5948 in the original type.
5949 (initialize_sizetypes): Add comment.
5950 (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
5952 2011-04-11 Joseph Myers <joseph@codesourcery.com>
5954 * common.opt (Tbss=, Tdata=, Ttext=): New options.
5956 2011-04-11 Martin Jambor <mjambor@suse.cz>
5958 * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
5959 of cgraph_node, handle NULL return value.
5960 (cgraph_global_info): Likewise.
5961 (cgraph_rtl_info): Likewise.
5962 * tree-inline.c (estimate_num_insns): Likewise.
5963 * gimplify.c (unshare_body): Likewise.
5964 (unvisit_body): Likewise.
5965 (gimplify_body): Likewise.
5966 * predict.c (optimize_function_for_size_p): Likewise.
5967 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
5968 (call_may_clobber_ref_p_1): Likewise.
5969 * varasm.c (function_section_1): Likewise.
5970 (assemble_start_function): Likewise.
5972 2011-04-11 Martin Jambor <mjambor@suse.cz>
5974 * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
5976 * final.c (rest_of_clean_state): Likewise.
5977 * gimple-iterator.c (update_call_edge_frequencies): Likewise.
5978 * passes.c (pass_init_dump_file): Likewise.
5979 (execute_all_ipa_transforms): Likewise.
5980 (function_called_by_processed_nodes_p): Likewise.
5981 * predict.c (maybe_hot_frequency_p): Likewise.
5982 (probably_never_executed_bb_p): Likewise.
5983 (compute_function_frequency): Likewise.
5984 * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
5985 (unnest_nesting_tree_1): Likewise.
5986 (lower_nested_functions): Likewise.
5987 * tree-optimize.c (execute_fixup_cfg): Likewise.
5988 (tree_rest_of_compilation): Likewise.
5989 * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
5990 * tree-sra.c (ipa_early_sra): Likewise.
5991 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
5992 * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
5993 * ipa.c (record_cdtor_fn): Likewise.
5994 * ipa-inline.c (cgraph_early_inlining): Likewise.
5995 (compute_inline_parameters_for_current): Likewise.
5996 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
5997 * ipa-pure-const.c (local_pure_const): Likewise.
5998 * ipa-split.c (split_function): Likewise.
5999 (execute_split_functions): Likewise.
6000 * cgraphbuild.c (build_cgraph_edges): Likewise.
6001 (rebuild_cgraph_edges): Likewise.
6002 (cgraph_rebuild_references): Likewise.
6003 (remove_cgraph_callee_edges): Likewise.
6004 * cgraphunit.c (cgraph_mark_if_needed): Likewise.
6005 (verify_cgraph_node): Likewise.
6006 (cgraph_analyze_functions): Likewise.
6007 (cgraph_preserve_function_body_p): Likewise.
6008 (save_inline_function_body): Likewise.
6009 (save_inline_function_body): Likewise.
6010 * tree-inline.c (copy_bb): Likewise.
6011 (optimize_inline_calls): Likewise.
6013 2011-04-11 Martin Jambor <mjambor@suse.cz>
6015 PR tree-optimization/48195
6016 * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
6017 ipa_check_create_edge_args.
6018 (ipcp_generate_summary): Do not call ipa_check_create_node_params and
6019 ipa_check_create_edge_args.
6020 * ipa-inline.c (inline_generate_summary): Do not call
6021 ipa_check_create_node_params and ipa_check_create_edge_args.
6022 * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
6023 ipa_check_create_edge_args.
6025 2011-04-09 Anatoly Sokolov <aesok@post.ru>
6027 * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
6029 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
6030 * function.c (record_hard_reg_sets): Likewise.
6031 * ira.c (compute_regs_asm_clobbered): Likewise.
6032 * sched-deps.c (sched_analyze_1): Likewise.
6033 * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
6035 2011-04-09 Xinliang David Li <davidxl@google.com>
6037 PR tree-optimization/PR48484
6038 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
6039 has_valid_pred lazily
6041 2011-04-09 Duncan Sands <baldrick@free.fr>
6043 * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
6045 2011-04-08 Eric Botcazou <ebotcazou@adacore.com>
6047 * combine.c (combine_validate_cost): Adjust comments. Set registered
6048 cost of I0 to zero at the end, if any.
6050 2011-04-08 Xinliang David Li <davidxl@google.com>
6052 * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
6053 to insane profile data.
6055 2011-04-08 Xinliang David Li <davidxl@google.com>
6057 * ipa-cp.c (ipcp_update_profiling): Correct
6058 negative scale factor due to insane profile data.
6060 2011-04-08 Xinliang David Li <davidxl@google.com>
6062 * final.c (dump_basic_block_info): New function.
6063 (final): Dump basic block.
6064 (final_scan_insn): Remove old dump.
6066 2011-04-08 Steven G. Kargl <kargl@gcc.gnu.org>
6069 * config.gcc (i386-*-freebsd): Disable unwind table generation for
6072 2011-04-08 Michael Matz <matz@suse.de>
6075 * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
6077 (rebuild_jump_labels): Call rebuild_jump_labels_1.
6078 * rtl.h (rebuild_jump_labels_chain): Declare.
6079 * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
6080 insns inserted on edges.
6082 2011-04-08 Joseph Myers <joseph@codesourcery.com>
6084 * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
6085 * config/arm/arm-arches.def: New.
6086 * config/arm/arm-opts.h: New.
6087 * config/arm/genopt.sh: New.
6088 * config/arm/arm-tables.opt: New (generated).
6089 * config/arm/arm.c (arm_handle_option, arm_target_help,
6090 TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
6091 (all_architectures): Get most table contents from arm-arches.def.
6092 (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
6093 arm_selected_tune here.
6094 * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
6095 * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
6096 (march=, mcpu=, mtune=): Use Enum and Var.
6097 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
6098 (arm.o): Update dependencies.
6100 2011-04-08 Basile Starynkevitch <basile@starynkevitch.net>
6102 * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
6104 (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
6105 (write_typed_alloc_defns): Likewise.
6106 (main): Calls write_typed_alloc_defns with output_header.
6108 2011-04-08 Vladimir Makarov <vmakarov@redhat.com>
6111 * ira-color.c (setup_profitable_hard_regs): Add comments.
6112 Don't take prohibited hard regs into account.
6113 (setup_conflict_profitable_regs): Rename to
6114 get_conflict_profitable_regs.
6115 (check_hard_reg_p): Check prohibited hard regs.
6117 2011-04-08 Nathan Froyd <froydnj@codesourcery.com>
6119 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
6120 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
6121 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
6123 2011-04-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6126 * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
6127 move from floating point to shift amount register.
6128 (emit_move_sequence): Remove secondary reload support for floating
6129 point to shift amount amount register copies.
6130 (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
6131 amount register copies.
6132 * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
6133 register, return false if mode isn't a scalar integer mode.
6134 * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
6136 2011-04-08 Richard Guenther <rguenther@suse.de>
6138 * gimple.c (gimple_call_flags): Remove kludge.
6140 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
6142 * sel-sched.c (sel_region_init): Move call to
6143 sel_setup_region_sched_flags after setup_current_loop_nest.
6145 2011-04-08 Andrey Belevantsev <abel@ispras.ru>
6147 PR rtl-optimization/48272
6148 * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
6149 init_insn_reg_pressure_info. Adjust a caller.
6150 * sched-int.h (init_insn_reg_pressure_info): Declare.
6151 * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
6152 when sched-pressure is enabled.
6154 2011-04-08 Richard Guenther <rguenther@suse.de>
6156 * gimple.c (gimple_set_modified): Do not queue calls to
6157 MODIFIED_NORETURN_CALLS here ...
6158 * tree-ssa-operands.c (update_stmt_operands): ... but here.
6160 2011-04-08 Richard Guenther <rguenther@suse.de>
6163 * toplev.c (lang_dependent_init): Do not open asm_out_file
6164 in WPA mode, nor perform debug machinery initialization.
6165 (finalize): Do not unlink asm_out_file in WPA mode.
6167 2011-04-08 Richard Guenther <rguenther@suse.de>
6169 * gimple.h (gimple_call_fntype): New function.
6170 (gimple_call_return_type): Use it.
6171 * expr.c (expand_expr_real_1): Use gimple_call_fntype.
6172 * gimple-low.c (gimple_check_call_args): Likewise.
6173 * gimple.c (gimple_call_flags): Likewise.
6174 (gimple_call_arg_flags): Likewise.
6175 (gimple_call_return_flags): Likewise.
6176 * tree-cfg.c (verify_gimple_call): Likewise.
6177 (do_warn_unused_result): Likewise.
6178 * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
6179 * value-prof.c (gimple_ic_transform): Fix fndecl check.
6181 2011-04-08 Dmitry Melnik <dm@ispras.ru>
6183 PR rtl-optimization/48235
6184 * sel-sched.c (code_motion_process_successors): Recompute the last
6185 insn in basic block if control flow changed.
6186 (code_motion_path_driver): Ditto. Recompute the first insn as well.
6187 Update condition for ilist_remove.
6189 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
6191 PR rtl-optimization/48302
6192 * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
6193 * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument. Use
6194 it to record added preheader blocks.
6195 * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument. Pass it
6196 on to sel_add_loop_preheaders.
6197 (sel_region_init): Move call to setup_current_loop_nest after
6200 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
6203 * cfgloop.h (loop_has_exit_edges): New helper.
6204 * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
6206 * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
6207 that have no exit edges.
6209 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
6211 PR rtl-optimization/48442
6212 * sel-sched.c (init_seqno): Remove number_of_insns argument. Update
6213 all callers. Adjust assert.
6215 2011-04-08 Jakub Jelinek <jakub@redhat.com>
6217 PR tree-optimization/48377
6218 * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
6219 is_packed to true even for types with smaller TYPE_ALIGN than
6222 2011-04-08 Richard Guenther <rguenther@suse.de>
6225 * doc/tm.texi: Re-generate.
6227 2011-04-08 Wei Guozhi <carrot@google.com>
6230 * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
6231 * config/arm/arm.c (arm_attr_length_push_multi): New function.
6232 * config/arm/arm.md (*push_multi): Change the length computation to
6235 2011-04-08 Anatoly Sokolov <aesok@post.ru>
6237 * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
6238 (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
6239 * doc/tm.texi: Regenerate.
6240 * system.h (ASM_OUTPUT_BSS): Poison.
6241 * varasm.c (asm_output_bss): Remove function.
6242 (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
6244 * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
6245 * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
6246 * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
6247 * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
6249 * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
6251 * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
6253 * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
6255 2011-04-07 Joseph Myers <joseph@codesourcery.com>
6257 * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
6260 2011-04-07 Joseph Myers <joseph@codesourcery.com>
6262 * config/m68k/m68k.c (m68k_handle_option): Don't handle
6263 OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
6264 OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
6266 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
6267 handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
6268 -m68030, -m68040, -m68060, -mcpu32 and -m68332.
6269 * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
6270 m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
6271 * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
6272 (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
6273 (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
6274 options. Don't map other m68k options manually. Don't handle
6275 old-style options as canonical.
6276 (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
6277 * doc/install.texi (m68k-*-*): Document binutils version requirement.
6279 2011-04-07 Eric Botcazou <ebotcazou@adacore.com>
6281 * basic-block.h (force_nonfallthru): Move to...
6282 * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
6283 (force_nonfallthru): ...here.
6284 * cfghooks.c (force_nonfallthru): New function.
6285 * cfgrtl.c (force_nonfallthru): Rename into...
6286 (rtl_force_nonfallthru): ...this.
6287 (commit_one_edge_insertion): Do not set AUX field.
6288 (commit_edge_insertions): Do not discover new basic blocks.
6289 (rtl_cfg_hooks): Add rtl_force_nonfallthru.
6290 (cfg_layout_rtl_cfg_hooks): Likewise.
6291 * function.c (thread_prologue_and_epilogue_insns): Remove bogus
6292 ATTRIBUTE_UNUSED. Discover new basic blocks in the prologue insns.
6293 * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
6295 2011-04-07 Anatoly Sokolov <aesok@post.ru>
6297 * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
6300 2011-04-07 Uros Bizjak <ubizjak@gmail.com>
6302 * config/i386/sse.md: Update copyright year.
6303 (avxcvtvecmode): Remove.
6304 (sse_movhlps): Merge with *avx_movhlps.
6305 (sse_movlhps): Merge with *avx_movlhps.
6306 (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
6307 (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
6308 (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
6309 (sse_loadhps): Merge with *avx_loadhps.
6310 (sse_storelps): Merge with *avx_storelps.
6311 (sse_loadlps): Merge with *avx_loadlps.
6312 (sse_movss): Merge with *avx_movss.
6313 (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
6314 (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
6315 (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
6316 (*vec_set<mode>_0_sse2): Split multi-unit alternative.
6317 (vec_set<mode>_0): Ditto.
6318 (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
6319 (sse4_1_insertps): Merge with *avx_insertps.
6320 (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
6321 (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
6322 (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
6323 (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
6324 (sse2_storehpd): Merge with *avx_storehpd.
6325 (sse2_loadhpd): Merge with *avx_loadhpd.
6326 (sse2_loadlpd): Merge with *avx_loadlpd.
6327 (sse2_movsd): Merge with *avx_movsd.
6328 (*vec_concatv2df): Merge with *vec_concatv2df.
6330 2011-04-07 Jakub Jelinek <jakub@redhat.com>
6333 * combine.c (combine_instructions): Add last_combined_insn,
6334 update it if insn is after it, pass it to all try_combine calls.
6335 (try_combine): Add last_combined_insn parameter, pass it instead of
6336 i3 to propagate_for_debug.
6338 2011-04-07 Nick Clifton <nickc@redhat.com>
6340 * config/mn10300/mn10300.md (movqi_internal): Add alternatives
6341 to handle MDR <-> data register transfers.
6342 (movhi_internal): Likewise.
6344 2011-04-07 Alan Modra <amodra@gmail.com>
6346 * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
6347 previous stack info.
6349 2011-04-07 Tom de Vries <tom@codesourcery.com>
6352 * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter. Pass dir to
6353 flow_find_cross_jump. Swap variables to implement backward replacement.
6354 (try_crossjump_bb): Add argument to try_crossjump_to_edge.
6356 2011-04-07 Tom de Vries <tom@codesourcery.com>
6359 * cfgcleanup.c (walk_to_nondebug_insn): New function.
6360 (flow_find_cross_jump): Use walk_to_nondebug_insn. Recalculate bb1
6362 (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
6363 src1 or src2. Redirect edges to the last basic block. Update
6364 frequency and count on multiple basic blocks in case of fallthru.
6366 2011-04-07 Tom de Vries <tom@codesourcery.com>
6369 * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
6371 (old_insns_match_p): Change return type. Replace return false/true
6372 with return dir_none/dir_both. Use can_replace_by.
6373 (flow_find_cross_jump): Add dir_p parameter. Init replacement
6374 direction from dir_p. Register replacement direction in dir, last_dir
6375 and afterlast_dir. Handle new return type of old_insns_match_p using
6376 merge_dir. Return replacement direction in dir_p.
6377 (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
6378 return type of old_insns_match_p.
6379 (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
6380 * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
6381 flow_find_cross_jump.
6382 * basic-block.h (enum replace_direction): New type.
6383 (flow_find_cross_jump): Add parameter to declaration.
6385 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
6387 * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
6388 (AVXMODEDCVTPS2DQ): Ditto.
6389 (VEC_FLOAT_MODE): Ditto.
6390 (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3. Use VF mode
6391 iterator. Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
6392 (<any_logic:code><mode>3): Use VF mode iterator.
6393 (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
6394 Use VF mode iterator.
6395 (copysign<mode>3): Use VF mode iterator.
6396 (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3. Handle
6397 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
6398 (*<any_logic:code><MODEF:mode>3): Merge with
6399 *avx_<any_logic:code><MODEF:mode>3.
6400 (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
6401 (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
6402 (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
6403 (avx_cvtdq2ps<avxmodesuffix>): Remove.
6404 (sse2_cvtdq2ps): Use %v modifier.
6405 (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
6406 (avx_cvtps2dq<avxmodesuffix>): Remove.
6407 (sse2_cvtps2dq): Use %v modifier.
6408 (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
6409 (avx_cvttps2dq<avxmodesuffix>): Remove.
6410 (sse2_cvttps2dq): Use %v modifier.
6411 (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
6412 (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
6413 (sse2_cvtsd2siq): Fix insn template.
6414 (sse2_cvtsd2siq_2): Ditto.
6415 (sse2_cvttsd2siq): Ditto.
6416 (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
6417 (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
6419 2011-04-06 Joseph Myers <joseph@codesourcery.com>
6421 * gcov-io.c: Use GCC Runtime Library Exception.
6423 2011-04-06 Jakub Jelinek <jakub@redhat.com>
6426 * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
6427 as base_reg whatever register reg has been eliminated to, instead
6428 of hardcoding STACK_POINTER_REGNUM.
6430 2011-04-06 Joseph Myers <joseph@codesourcery.com>
6432 * doc/tm.texi.in: Document C target hooks as separate from general
6434 * doc/tm.texi: Regenerate.
6435 * genhooks.c (struct hook_desc): Add docname field.
6436 (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC). Initialize
6438 (hook_array): Include c-target.def.
6439 (emit_documentation): Use docname field in output.
6440 (emit_init_macros): Take docname argument. Only emit definitions
6441 for hooks matching docname.
6442 (main): Expect additional arguments in all cases. Pass argument
6443 to emit_init_macros.
6444 * target.def: Move initial macro definitions and comments to
6445 target-hooks-macros.h.
6446 (gcc_targetcm): Move to c-family/c-target.def.
6447 * target.h (targetcm): Move declaration to c-family/c-target.h.
6448 * targhooks.c (default_handle_c_option): Move to
6450 * targhooks.h (default_handle_c_option): Move declaration to
6451 c-family/c-common.h.
6452 * target-hooks-macros.h: New file.
6453 * config.gcc (target_has_targetcm): Define and use to add to
6454 c_target_objs and cxx_target_objs.
6455 * config/default-c.c: New file.
6456 * config/darwin-c.c: Include c-target.h and c-target-def.h instead
6457 of target.h and target-def.h.
6458 (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
6459 (darwin_objc_construct_string, darwin_cfstring_ref_p,
6460 darwin_check_cfstring_format_arg): Make static.
6461 (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
6462 TARGET_STRING_OBJECT_REF_TYPE_P,
6463 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
6464 * config/darwin-protos.h (darwin_objc_construct_string,
6465 darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
6467 * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
6468 TARGET_STRING_OBJECT_REF_TYPE_P,
6469 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
6470 * config/t-darwin (darwin-c.o): Update dependencies.
6471 * system.h (TARGET_HAS_TARGETCM): Poison.
6472 * Makefile.in (TARGET_H): Update.
6473 (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
6474 (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
6475 (default-c.o): New target.
6476 (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
6477 (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
6478 (s-tm-texi): Pass -d option to genhooks. Also test timestamp on
6480 (build/genhooks.o): Update dependencies.
6482 2011-04-06 Richard Guenther <rguenther@suse.de>
6484 * ipa-inline.c (enum inlining_mode): Remove.
6485 (cgraph_flatten): Use some other token.
6486 (cgraph_edge_early_inlinable_p): New function, split out from ...
6487 (cgraph_perform_always_inlining): New function, split out from ...
6488 (cgraph_decide_inlining_incrementally): ... here.
6489 (cgraph_mark_inline_edge): Adjust.
6490 (cgraph_early_inlining): Re-structure.
6491 (pass_early_inline): Require SSA form.
6493 2011-04-06 Andrew Stubbs <ams@codesourcery.com>
6494 Julian Brown <julian@codesourcery.com>
6495 Mark Shinwell <shinwell@codesourcery.com>
6497 * config/arm/arm.h (arm_class_likely_spilled_p): Check against
6498 LO_REGS only for Thumb-1.
6499 (MODE_BASE_REG_CLASS): Restrict base registers to those which can
6500 be used in short instructions when optimising for size on Thumb-2.
6502 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
6504 * gimple-low.c (lower_gimple_return): When not optimizing, force labels
6505 associated with user returns to be preserved.
6507 2011-04-06 Tristan Gingold <gingold@adacore.com>
6509 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
6510 symbol_queue_size, DBXOUT_DECR_NESTING,
6511 (DBXOUT_DECR_NESTING_AND_RETURN): Also define
6512 if XCOFF_DEBUGGING_INFO.
6514 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
6516 * config/i386/i386.md (attribute isa): New.
6517 (attribute enabled): New.
6518 (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
6519 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
6520 (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
6521 (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
6522 (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
6523 (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
6524 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
6525 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
6527 * config/i386/sse.md (VF): New mode iterator.
6531 (SSEMODEF4): Remove.
6532 (attribute sse): Handle V8SF and V4DF modes.
6533 (<absneg:code><mode>2): Use VF mode iterator.
6534 (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2. Use VF
6536 (<plusminus_insn><mode>3): Use VF mode iterator.
6537 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
6538 Use VF mode iterator.
6539 (<sse>_vm<plusminus_insn><mode>3): Merge with
6540 *avx_vm<plusminus_insn><mode>3. Use VF_128 mode iterator.
6541 (mul<mode>3): Use VF mode iterator.
6542 (*mul<mode>3): Merge with *avx_mul<mode>3. Use VF mode iterator.
6543 (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3. Use VF_128
6545 (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
6546 (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
6547 (<sse>_div<mode>3): Merge with *avx_div<mode>3. Use VF mode iterator.
6548 (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3. Use VF_128
6550 (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
6551 Use VF1 mode iterator.
6552 (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
6553 (sqrt<VF2:mode>2): New expander.
6554 (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
6555 (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
6556 and sqrtv2df2. Use VF mode iterator.
6557 (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2. Use VF_128
6559 (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
6560 (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
6561 Use VF1 mode iterator.
6562 (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
6563 (<smaxmin:code><mode>3): Use VF mode iterator.
6564 (*<smaxmin:code><mode>3_finite): Merge with
6565 *avx_<smaxmin:code><mode>3_finite. Use VF mode iterator.
6566 (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
6567 (<sse>_vm<smaxmin:code><mode>2): Merge with
6568 *avx_vm<smaxmin:code><mode>2. Use VF_128 mode iterator.
6569 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3. Use VF
6571 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3. Use VF
6573 (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
6574 (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
6575 (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
6576 (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
6577 (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3. Use
6579 (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
6580 Use VF_128 mode iterator.
6581 (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3. Use VF
6583 (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3. Use
6584 VF_128 mode iterator.
6585 (vcond<mode>): Use VF mode iterator.
6586 * config/i386/predicates.md (sse_comparison_operator): Merge with
6587 avx_comparison_float_operator. Do not declare as special_predicate.
6588 * config/i386/i386.c (struct builtin_description): Update for renamed
6590 (ix86_expand_args_builtin): Ditto.
6591 (ix86_expand_sse_compare_mask): Ditto.
6593 2011-04-06 Richard Guenther <rguenther@suse.de>
6595 * tree-inline.c (estimate_num_insns): For calls simply account
6596 for all passed arguments and a used return value.
6598 2011-04-06 Richard Guenther <rguenther@suse.de>
6600 PR tree-optimization/47663
6601 * cgraph.h (struct cgraph_edge): Add call_stmt_size and
6602 call_stmt_time fields.
6603 (cgraph_edge_inlinable_p): Declare.
6604 (cgraph_edge_recursive_p): New inline function.
6605 * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
6606 (cgraph_clone_edge): Copy it.
6607 * ipa-inline.c (cgraph_estimate_edge_time): New function.
6608 Account for call stmt time.
6609 (cgraph_estimate_time_after_inlining): Take edge argument.
6610 (cgraph_estimate_edge_growth): Account call stmt size.
6611 (cgraph_estimate_size_after_inlining): Take edge argument.
6612 (cgraph_mark_inline_edge): Adjust.
6613 (cgraph_check_inline_limits): Likewise.
6614 (cgraph_recursive_inlining_p): Remove.
6615 (cgraph_edge_badness): Use cgraph_edge_recursive_p.
6616 (cgraph_decide_recursive_inlining): Take edge argument and
6618 (cgraph_decide_inlining_of_small_functions): Do not avoid
6619 diags for recursive inlining here.
6620 (cgraph_flatten): Adjust.
6621 (cgraph_decide_inlining_incrementally): Likewise.
6622 (estimate_function_body_sizes): Remove call cost handling.
6623 (compute_inline_parameters): Initialize caller edge call costs.
6624 (cgraph_estimate_edge_growth): New function.
6625 (cgraph_estimate_growth): Use it.
6626 (cgraph_edge_badness): Likewise.
6627 (cgraph_check_inline_limits): Take an edge argument.
6628 (cgraph_decide_inlining_of_small_functions): Adjust.
6629 (cgraph_decide_inlining): Likewise.
6630 * tree-inline.c (estimate_num_insns): Only account for call
6631 return value if it is used.
6632 (expand_call_inline): Avoid diagnostics on recursive inline
6634 * lto-cgraph.c (lto_output_edge): Output edge call costs.
6635 (input_edge): Input edge call costs.
6637 2011-04-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6639 * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
6641 2011-04-06 Jonathan Wakely <jwakely.gcc@gmail.com>
6643 * doc/invoke.texi (Spec Files): Fix typo.
6645 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
6647 * profile.c (branch_prob): Move declaration of local variable. Remove
6648 obsolete ??? comment. Expand the location explicitly instead of using
6649 the LOCATION_FILE and LOCATION_LINE macros.
6651 2011-04-06 Wei Guozhi <carrot@google.com>
6654 * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
6655 (arm_cond_branch): Likewise.
6656 (arm_cond_branch_reversed): Likewise.
6657 (arm_jump): Likewise.
6658 (push_multi): Likewise.
6659 * config/arm/constraints.md (Py): New constraint.
6661 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
6664 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
6666 (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
6667 (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
6668 #ifdef DBX_DEBUGGING_INFO.
6670 2011-04-05 Bernd Schmidt <bernds@codesourcery.com>
6673 * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
6674 if old and new states differ.
6676 2011-04-05 Joseph Myers <joseph@codesourcery.com>
6678 * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
6679 OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
6680 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
6681 handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
6682 * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
6684 * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
6685 ColdFire options to -mcpu= options.
6687 2011-04-05 Jeff Law <law@redhat.com>
6689 * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
6690 check if BB is a successor of LOOP->header and return
6691 NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
6693 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
6695 * cprop.c (struct reg_use): Remove.
6696 (reg_use_table): Make an array of RTX.
6697 (find_used_regs, constprop_register, local_cprop_pass,
6698 bypass_block): Simplify users of reg_use_table.
6699 (cprop_insn): Likewise. Iterate if copy propagation succeeded
6700 on one of the uses found by find_used_regs.
6702 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
6705 * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
6708 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
6710 * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
6712 (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
6714 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
6717 * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
6719 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
6721 * combine.c: Include obstack.h.
6722 (struct insn_link): Define.
6723 (uid_log_links): Adjust type.
6724 (FOR_EACH_LOG_LINK): New macro.
6725 (insn_link_obstack): Declare.
6726 (alloc_insn_link): Define.
6727 (create_log_links): Call it. Use FOR_EACH_LOG_LINK and adjust
6728 type of link variables.
6729 (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
6730 (try_combine, record_promoted_values, distribute_notes): Likewise.
6731 (distribute_links): Likewise. Tweak prototype.
6732 (clear_log_links): Delete.
6733 (adjust_for_new_dest): Call alloc_insn_link.
6734 * Makefile.in (combine.o): Depend on $(OBSTACK_H).
6736 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
6738 * gcse.c (modify_mem_list): Convert to an array of VECs.
6739 (canon_modify_mem_list, compute_transp): Tweak formatting.
6740 (alloc_gcse_mem): Likewise. Adjust for modify_mem_list change.
6741 (load_killed_in_block_p): Likewise.
6742 (record_last_mem_set_info): Likewise.
6743 (clear_modify_mem_tables): Likewise.
6745 2011-04-05 Tom de Vries <tom@codesourcery.com>
6748 * function.c (emit_use_return_register_into_block): Only define if
6751 2011-04-05 Eric Botcazou <ebotcazou@adacore.com>
6753 * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
6755 2011-04-05 Joseph Myers <joseph@codesourcery.com>
6757 * config/rx/rx-opts.h: New.
6758 * config/rx/rx.c (rx_cpu_type): Remove.
6759 (rx_handle_option): Don't assert that global structures are in
6760 use. Access variables via opts pointer. Defer most handling of
6761 OPT_mint_register_. Use error_at.
6762 (rx_option_override): Handle deferred OPT_mint_register_ here.
6763 * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
6764 * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
6765 (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
6766 (rx_cpu_types): New Enum and EnumValue entries.
6767 (mint-register=): Use Defer and use Var accordingly.
6769 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
6771 * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
6772 (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
6773 * final.c (debug_flush_symbol_queue, debug_queue_symbol):
6775 (debug_free_queue, debug_nesting, symbol_queue_index):
6777 * dbxout.c: ...to here. Make static.
6779 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
6781 * gcse.c (modify_pair): Define. Define a VEC of it.
6782 (canon_modify_mem_list): Convert to an array of VECs.
6783 (free_insn_expr_list_list): Delete.
6784 (clear_modify_mem_tables): Call VEC_free instead.
6785 (record_last_mem_set_info): Don't modify canon_modify_mem_list.
6786 (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
6787 (canon_list_insert, compute_transp): Likewise.
6789 2011-04-05 Tom de Vries <tom@codesourcery.com>
6792 * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
6795 2011-04-05 Tom de Vries <tom@codesourcery.com>
6798 * function.c (emit_use_return_register_into_block): New function.
6799 (thread_prologue_and_epilogue_insns): Use
6800 emit_use_return_register_into_block.
6802 2011-04-05 Tom de Vries <tom@codesourcery.com>
6805 * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
6808 2011-04-05 Tom de Vries <tom@codesourcery.com>
6810 * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
6812 2011-04-05 Yufeng Zhang <yufeng.zhang@arm.com>
6814 * config/arm/arm.md (define_constants for unspec): Replace with
6816 (define_constants for unspecv): Replace with define_c_enum.
6817 * config/arm/neon.md (define_constants for unspec): Replace with
6820 2011-04-04 Richard Henderson <rth@redhat.com>
6823 * dwarf2out.c (output_line_info): Always emit line info from
6824 at least one section.
6825 (dwarf2out_init): Create text_section_line_info here ...
6826 (set_cur_line_info_table): ... not here.
6828 2011-04-04 Vladimir Makarov <vmakarov@redhat.com>
6831 * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
6834 * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
6836 2011-04-04 Steven Bosscher <steven@gcc.gnu.org>
6838 * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
6839 (expr_equiv_p): Remove.
6840 (insert_set_in_table): Look at <dest, src> pair instead of expr.
6841 (hash_scan_set): Update call to insert_set_in_table.
6842 (dump_hash_table): Dump <dest, src> pair.
6843 (lookup_set): Simplify. Lookup <dest, src> pair.
6844 (compute_transp): Remove, fold heavily simplified code into...
6845 (compute_local_properties): ...here. Expect COMP and TRANSP
6847 (find_avail_set): Take set directly from struct expr.
6848 (find_bypass-set): Likewise.
6849 (bypass_block): Likewise.
6850 (cprop_insn): Likewise. Remove redundant INSN_P test.
6852 * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
6853 checks on form of COND from find_implicit_sets to here.
6854 (find_implicit_sets): Cleanup control flow. Split critical edges
6855 if it exposes implicit sets. Allocate/resize implicit_sets as
6857 (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
6858 changed something. Run df_analyze after find_implicit_sets if any
6859 edges were split. Do not allocate implicit_sets here.
6861 * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
6862 (gcse_obstack): Renamed to cprop_obstack.
6863 (GNEW, GNEWVEC, GNEWVAR): Remove.
6865 (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
6866 (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
6867 (gcse_alloc): Likewise, and rename to cprop_alloc.
6868 (alloc_gcse_men, free_gcse_mem): Remove.
6869 (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
6870 (compute_hash_table_work): Allocate and free reg_set_bitmap here.
6871 (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
6873 * cprop.c (oprs_not_set_p): Remove.
6874 (mark_set, mark_clobber): Remove.
6875 (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
6876 (reg_not_set_p): New function.
6877 (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
6878 (cprop_insn): Likewise.
6879 (cprop_jump): Use FOR_EACH_EDGE.
6881 2011-04-04 Bernd Schmidt <bernds@codesourcery.com>
6884 * haifa-sched.c (nonscheduled_insns_begin): New static variable.
6885 (rank_for_schedule): Use scheduled_insns vector instead of
6886 last_scheduled_insn.
6887 (ok_for_early_queue_removal): Likewise.
6888 (queue_to_ready): Search forward in nonscheduled_insns_begin if
6890 (choose_ready): Likewise.
6891 (commit_schedule): Use VEC_iterate.
6892 (schedule_block): Initialize nonscheduled_insns_begin. If we have
6893 a dbg_cnt, use it and ensure the first insn is in the ready list.
6894 (haifa_sched_init): Allocate scheduled_insns.
6895 (sched_extend_ready_list): Don't allocate it; reserve space.
6896 (haifa_sched_finish): Free it.
6898 2011-04-04 Joseph Myers <joseph@codesourcery.com>
6900 * optc-gen.awk: Always remove type from Variable entry before
6901 recording in var_seen.
6903 2011-04-04 Eric Botcazou <ebotcazou@adacore.com>
6905 * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
6906 * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
6907 call to tidy_fallthru_edges.
6909 2011-04-04 Joseph Myers <joseph@codesourcery.com>
6911 * doc/options.texi (ToLower): Document.
6912 * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
6913 * opts-common.c (decode_cmdline_option): Handle cl_tolower.
6914 * opts.h (cl_option): Add cl_tolower field.
6915 * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
6916 arguments with lowercase strings.
6917 * config/rx/rx.opt (mcpu=): Add ToLower.
6918 * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
6921 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
6923 * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
6925 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
6927 * config/vax/vax.c: Include reload.h.
6929 2011-04-04 Anatoly Sokolov <aesok@post.ru>
6931 * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
6932 * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
6933 (sparc_preferred_reload_class): New function.
6935 2011-04-04 Jakub Jelinek <jakub@redhat.com>
6938 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
6939 Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
6941 2011-04-03 Nathan Froyd <froydnj@codesourcery.com>
6943 * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
6944 * tree.c (initialize_tree_contains_struct): Adjust accordingly.
6946 2011-04-03 Anatoly Sokolov <aesok@post.ru>
6948 * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
6949 (ASM_OUTPUT_ALIGNED_BSS): Define.
6951 2011-04-03 Michael Matz <matz@suse.de>
6953 * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
6954 and next_slot members.
6955 (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
6956 lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
6957 (lto_streamer_cache_append): Declare.
6958 * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
6959 unsigned index, remove offset parameter, ensure that we append
6960 or update existing entries.
6961 (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
6962 parameter, update next_slot for append.
6963 (lto_streamer_cache_insert): Use unsigned index, remove offset_p
6965 (lto_streamer_cache_insert_at): Likewise.
6966 (lto_streamer_cache_append): New function.
6967 (lto_streamer_cache_lookup): Use unsigned index.
6968 (lto_streamer_cache_get): Likewise.
6969 (lto_record_common_node): Don't test tree_node_can_be_shared.
6970 (preload_common_node): Adjust call to lto_streamer_cache_insert.
6971 (lto_streamer_cache_delete): Don't free offsets member.
6972 * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
6973 (lto_output_string_with_length): Use lto_output_data_stream.
6974 (lto_output_tree_header): Remove ix parameter, don't write it.
6975 (lto_output_builtin_tree): Likewise.
6976 (lto_write_tree): Adjust callers to above, don't track and write
6977 offset, write unsigned index.
6978 (output_unreferenced_globals): Don't emit all global vars.
6979 (write_global_references): Use unsigned indices.
6980 (lto_output_decl_state_refs): Likewise.
6981 (write_symbol): Likewise.
6982 * lto-streamer-in.c (lto_input_chain): Move earlier.
6983 (input_function): Use unsigned index.
6984 (input_alias_pairs): Don't read and then ignore all global vars.
6985 (lto_materialize_tree): Remove ix_p parameter, don't read index,
6986 don't pass it back, use lto_streamer_cache_append.
6987 (lto_register_var_decl_in_symtab): Use unsigned index.
6988 (lto_register_function_decl_in_symtab): Likewise.
6989 (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
6991 (lto_get_builtin_tree): Don't read index, use
6992 lto_streamer_cache_append.
6993 (lto_read_tree): Adjust call to lto_materialize_tree.
6995 * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
6996 don't use function calls in arguments to MIN.
6998 * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
7001 * gimple.c (gimple_type_leader_entry): Mark deletable.
7003 2011-04-03 Alan Modra <amodra@gmail.com>
7005 * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
7007 2011-04-03 Michael Matz <matz@suse.de>
7009 * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
7011 * tree.h (tree_decl_non_common.vindex): Adjust comment.
7013 2011-04-03 Michael Matz <matz@suse.de>
7015 * cgraphbuild.c (record_reference): Canonicalize constructor values.
7016 * gimple-fold.c (canonicalize_constructor_val): Accept being called
7017 without function context.
7018 * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
7019 current_function_decl and cfun.
7021 2011-04-03 Michael Matz <matz@suse.de>
7023 * tree.c (decl_init_priority_insert): Don't create entry for
7025 (decl_fini_priority_insert): Ditto.
7026 (fields_compatible_p, find_compatible_field): Remove.
7027 * tree.h (fields_compatible_p, find_compatible_field): Remove.
7028 * gimple.c (gimple_compare_field_offset): Adjust block comment.
7030 2011-04-03 Eric Botcazou <ebotcazou@adacore.com>
7032 * combine.c (try_combine): Remove useless local variable.
7034 2011-04-03 Richard Guenther <rguenther@suse.de>
7035 Ira Rosen <ira.rosen@linaro.org>
7037 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
7038 non-variable offsets and compare the remaining bases of the two
7039 accesses instead of looking for exact same data-ref.
7041 2011-04-02 Kai Tietz <ktietz@redhat.com>
7044 * i386.c (ix86_function_arg_boundary): Fix printf formatter.
7046 * i386.c (ix86_is_msabi_thiscall): New helper function.
7047 (ix86_is_type_thiscall): New helper function.
7048 (ix86_comp_type_attributes): Handle thiscall for method-functions
7050 (init_cumulative_args): Likewise.
7051 (find_drap_reg): Likewise.
7052 (ix86_static_chain): Likewise.
7053 (x86_this_parameter): Likewise.
7054 (x86_output_mi_thunk): Likewise.
7056 2011-04-01 Olivier Hainque <hainque@adacore.com>
7057 Nicolas Setton <setton@adacore.com>
7058 Eric Botcazou <ebotcazou@adacore.com>
7060 * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
7061 (add_gnat_descriptive_type_attribute): New function.
7062 (gen_array_type_die): Call it.
7063 (gen_enumeration_type_die): Likewise.
7064 (gen_struct_or_union_type_die): Likewise.
7065 (modified_type_die): Likewise.
7066 * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
7067 * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
7068 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
7070 2011-04-01 Jakub Jelinek <jakub@redhat.com>
7073 * dwarf2out.c (resolve_addr): Don't call force_decl_die
7074 if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
7077 2011-03-17 Richard Guenther <rguenther@suse.de>
7080 * lto-cgraph.c (input_overwrite_node): Clear the abstract
7081 origin for decls in other ltrans units.
7082 (input_varpool_node): Likewise.
7084 2011-04-01 Jakub Jelinek <jakub@redhat.com>
7087 * expr.c (expand_assignment): Handle all possibilities
7088 if TO_RTX is CONCAT.
7089 * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
7090 (store_split_bit_field): If SUBREG_REG (op0) or
7091 op0 itself has smaller mode than word, return it
7092 for offset 0 and const0_rtx for out-of-bounds stores.
7093 If word is const0_rtx, skip it.
7095 2011-04-01 Naveen H.S <naveen.S@kpitcummins.com>
7097 * config/h8300/h8300.c (print_operand_address): Rename to...
7098 (h8300_print_operand_address): ...this. Make static. Adjust comments.
7099 Call h8300_print_operand and h8300_print_operand_address instead of
7100 print_operand and print_operand_address. Declare.
7101 (print_operand): Renake to...
7102 (h8300_print_operand): ...this. Make static. Adjust comments.
7103 Call h8300_print_operand instead of print_operand. Declare.
7104 (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
7105 (h8300_register_move_cost): Likewise.
7106 (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
7107 TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
7108 * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
7109 PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
7110 * config/h8300/h8300-protos.h (print_operand): Delete.
7111 (print_operand_address): Delete.
7113 2011-04-01 Richard Henderson <rth@redhat.com>
7116 * dwarf2out.c (dwarf2out_source_line): Disable discriminators
7117 in strict mode before dwarf4. Re-order tests to early out
7118 before switching sections.
7120 2011-04-01 Nathan Froyd <froydnj@codesourcery.com>
7122 * config/h8300/constraints.md: New file.
7123 * config/h8300/h8300.md: Include it. Use satisfies_constraint_J,
7124 satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
7125 (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
7126 * config/h8300/predicates.md (bit_operand): Likewise.
7127 (incdec_operand): Use satisfies_constraint_M and
7128 satisfies_constraint_O. Don't use C code block.
7129 * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
7130 * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
7131 (compute_mov_length): Use satisfies_constraint_G.
7132 (fix_bit_operand): Use satisfies_constraint_U.
7133 * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
7134 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
7135 (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
7136 (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
7137 (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
7138 (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
7139 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
7140 (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
7141 (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
7142 (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
7143 (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
7144 (EXTRA_MEMORY_CONSTRAINT): Delete.
7146 2011-04-01 Andrew Pinski <pinskia@gmail.com>
7147 Michael Meissner <meissner@linux.vnet.ibm.com>
7150 * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
7151 operands, as per the specifications.
7153 * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
7154 (vec_extract_evenv4sf): Ditto.
7155 (vec_extract_evenv8hi): Ditto.
7156 (vec_extract_evenv16qi): Ditto.
7157 (vec_extract_oddv4si): Ditto.
7159 2011-03-31 Mark Wielaard <mjw@redhat.com>
7161 * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
7162 high_pc attribute if the CU has no associated code. Only output
7163 DW_AT_entry_pc for CU if not generating strict dwarf and
7166 2011-04-01 Bernd Schmidt <bernds@codesourcery.com>
7168 * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
7169 * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
7171 (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
7172 * final.c (final_start_function): Call the new function rather
7173 than using a NULL argument for dwarf2out_frame_debug.
7175 * ifcvt.c (cond_exec_process_insns): Disallow converting a block
7176 that contains the prologue.
7178 * haifa-sched.c (queue_insn): New arg REASON. All callers
7179 changed. Print it in debugging output.
7181 * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
7183 * sched-ebb.c (begin_schedule_ready): Remove second argument.
7184 Split most of the code into...
7185 (begin_move_insn): ... here. New function.
7186 (ebb_sched_info): Add a pointer to it.
7187 * haifa-sched.c (scheduled_insns): New static variable.
7188 (sched_extend_ready_list): Allocate it.
7189 (schedule_block): Use it to record the order of scheduled insns.
7190 Perform RTL changes to move insns only after all scheduling
7191 decisions have been made.
7192 * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
7193 begin_move_insn field.
7194 * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
7195 * sched-int.h (struct haifa_sched_info): Remove second argument
7196 from begin_schedule_ready hook. Add new member begin_move_insn.
7197 * sched-rgn.c (begin_schedule_ready): Remove second argument.
7198 (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
7200 * haifa-sched.c (prune_ready_list): New function, broken out of
7202 (schedule_block): Use it.
7204 2011-04-01 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7206 * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
7208 2011-04-01 Kai Tietz <ktietz@redhat.com>
7210 * config.gcc (*-*-mingw*): Allow as option the
7211 posix threading model.
7212 * config/i386/mingw32.h (SPEC_PTHREAD1, SPEC_PTHREAD2):
7213 New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
7215 (CPP_SPEC): Add pthread/no-pthread handling.
7216 (LIB_SPEC): Likewise.
7217 * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
7218 (LIB_SPEC): Likewise.
7219 * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
7220 flag to pass -pthread option for shared libgcc build.
7221 (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
7222 for shared libgcc build.
7223 * config/i386/t-mingw-pthread: New file.
7224 * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
7225 New define to enable use of library pthread by default.
7226 * config/i386/mingw.opt (pthread): New driver option.
7227 (no-pthread): New driver option.
7228 * config/i386/cygming.opt: Make sure trailing empty line is retained.
7229 * config/i386/mingw-w64.opt: Likewise.
7231 2011-04-01 Gary Funck <gary@intrepid.com>
7233 * c-decl.c (grokdeclarator): Fix formatting.
7235 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
7237 * expr.c (emit_block_move_via_movmem): Use n_generator_args
7238 instead of n_operands.
7239 (set_storage_via_setmem): Likewise.
7240 * optabs.c (maybe_gen_insn): Likewise.
7241 * config/arm/arm.c (arm_init_neon_builtins): Likewise.
7242 * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
7243 (mips_expand_builtin_direct): Likewise.
7244 * config/spu/spu.c (expand_builtin_args): Likewise.
7246 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
7248 * recog.h (insn_data_d): Add n_generator_args.
7249 * genoutput.c (data): Likewise.
7250 (output_insn_data): Print it.
7251 (max_opno, num_dups): Delete.
7252 (scan_operands): Just fill in "d->operand[...]".
7253 (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
7255 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
7257 * gensupport.h (pattern_stats): New structure.
7258 * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
7259 * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
7260 (max_operand_1, max_operand_vec): Delete.
7261 (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
7263 2011-03-31 Nathan Froyd <froydnj@codesourcery.com>
7265 * emit-rtl.c (emit_pattern_after_setloc): New function.
7266 (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
7267 (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
7268 (emit_pattern_after): New function.
7269 (emit_insn_after, emit_jump_insn_after): Call it.
7270 (emit_call_insn_after, emit_debug_insn_after): Likewise.
7271 (emit_pattern_before_setloc): New function.
7272 (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
7273 (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
7275 (emit_pattern_before): New function.
7276 (emit_insn_before, emit_jump_insn_before): Call it.
7277 (emit_call_insn_before, emit_debug_insn_before): Likewise.
7279 2011-03-31 Richard Henderson <rth@redhat.com>
7281 * dwarf2out.c (dw_separate_line_info_ref): Remove.
7282 (dw_separate_line_info_entry): Remove.
7283 (enum dw_line_info_opcode): New.
7284 (dw_line_info_entry): Use it.
7285 (dw_line_info_table, dw_line_info_table_p): New.
7286 (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
7287 (line_info_table, line_info_label_num): Remove.
7288 (line_info_table_in_use): Remove.
7289 (separate_line_info_table): Remove.
7290 (separate_line_info_table_allocated): Remove.
7291 (separate_line_info_table_in_use): Remove.
7292 (LINE_INFO_TABLE_INCREMENT): Remove.
7293 (line_info_label_num): New.
7294 (cur_line_info_table): New.
7295 (text_section_line_info, cold_text_section_line_info): New.
7296 (separate_line_info): New.
7297 (SEPARATE_LINE_CODE_LABEL): Remove.
7298 (print_dwarf_line_table): Remove.
7299 (debug_dwarf): Don't dump it.
7300 (output_one_line_info_table): New.
7301 (output_line_info): Use it.
7302 (new_line_info_table): New.
7303 (set_cur_line_info_table): New.
7304 (dwarf2out_switch_text_section): Use it.
7305 (dwarf2out_begin_function): Likewise.
7306 (push_dw_line_info_entry): New.
7307 (dwarf2out_source_line): Rewrite for new line info tables.
7308 (dwarf2out_init): Remove dead initailizations.
7310 2011-03-31 Joseph Myers <joseph@codesourcery.com>
7312 * opts.h (cl_option): Add comments to fields. Add bit-fields for
7314 (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
7315 CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
7316 CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
7317 CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
7318 (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
7319 * opt-functions.awk (flag_init, switch_bit_fields): New.
7320 (switch_flags): Don't handle flags moved to bit-fields. Don't
7321 generate CL_MISSING_OK or CL_SAVE.
7322 * optc-gen.awk: Update to generate bit-field output as well as
7324 * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
7325 bit-field instead of CL_REJECT_DRIVER flag.
7326 * opts-common.c (generate_canonical_option,
7327 decode_cmdline_option): Use bit-fields instead of CL_* flags.
7328 * opts.c (maybe_default_option): Use cl_reject_negative bit-field
7329 instead of CL_REJECT_NEGATIVE flag.
7330 * toplev.c (print_switch_values): Use cl_report bit-field instead
7333 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
7335 * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
7336 a zero minimum index only if it is redundant.
7338 2011-03-31 Vladimir Makarov <vmakarov@redhat.com>
7340 PR rtl-optimization/48381
7341 * ira-color.c (assign_hard_reg): Use hard reg set intersection
7342 instead of ira_class_hard_reg_index for calculating conflicting
7345 2011-03-31 Steven Bosscher <steven@gcc.gnu.org>
7347 * cprop.c: Clean up hash table building.
7348 (reg_avail_info): Remove.
7349 (oprs_available_p): Remove.
7350 (record_last_reg_set_info): Remove.
7351 (record_last_set_info): Remove.
7352 (reg_available_p): New function.
7353 (gcse_constant_p): Do not treat unfolded conditions as constants.
7354 (make_set_regs_unavailable): New function.
7355 (hash_scan_set): Simplify with new reg_available_p.
7356 (compute_hash_table_work): Traverse insns stream only once.
7357 Do not compute reg_avail_info. Traverse insns in reverse order.
7358 Record implicit sets after recording explicit sets from the block.
7360 2011-03-31 Michael Matz <matz@suse.de>
7362 * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
7364 2011-03-31 Anatoly Sokolov <aesok@post.ru>
7366 * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
7367 * config/h8300/h8300-protos.h (h8300_get_index): Remove.
7368 * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
7369 (h8300_mode_dependent_address_p): New function.
7370 (h8300_get_index): Make static.
7372 2011-03-31 Jeff Law <law@redhat.com>
7374 * reload1.c (elimination_effects): Fix typo in recent change.
7376 * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
7377 typo potentially leading to null pointer dereference.
7379 * caller-save.c (new_saved_hard_reg): Eliminate return value.
7380 (setup_save_areas): Corresponding changes to avoid useless
7383 * jump.c (reversed_comparison_code_parts): Avoid successive return
7384 statements when REVERSE_CONDITION is defined.
7386 * expr.c (expand_assignment): Avoid useless assignments.
7387 (expand_expr_real_1): Likewise.
7388 (expand_expr_real_2): Avoid useless statements.
7390 * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
7392 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
7394 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
7397 * stmt.c (expand_expr_stmt): Avoid useless assignment.
7399 2011-03-31 Joseph Myers <joseph@codesourcery.com>
7402 * doc/tm.texi.in (TARGET_VERSION): Remove.
7403 * doc/tm.texi: Regenerate.
7404 * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
7405 * collect2.c (main): Don't use TARGET_VERSION.
7406 * mips-tdump.c (main): Don't use TARGET_VERSION.
7407 * mips-tfile.c (main): Don't use TARGET_VERSION.
7408 * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
7409 * config/rs6000/vxworksae.h: Remove.
7410 * config/alpha/alpha.h (TARGET_VERSION): Remove.
7411 * config/alpha/freebsd.h (TARGET_VERSION): Remove.
7412 * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
7413 * config/alpha/netbsd.h (TARGET_VERSION): Remove.
7414 * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
7415 * config/arm/arm.h (TARGET_VERSION): Remove.
7416 * config/arm/coff.h (TARGET_VERSION): Remove.
7417 * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
7418 * config/arm/elf.h (TARGET_VERSION): Remove.
7419 * config/arm/freebsd.h (TARGET_VERSION): Remove.
7420 * config/arm/linux-elf.h (TARGET_VERSION): Remove.
7421 * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
7422 * config/arm/pe.h (TARGET_VERSION): Remove.
7423 * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
7424 * config/arm/semi.h (TARGET_VERSION): Remove.
7425 * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
7426 * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
7427 * config/arm/vxworks.h (TARGET_VERSION): Remove.
7428 * config/avr/avr.h (TARGET_VERSION): Remove.
7429 * config/bfin/bfin.h (TARGET_VERSION): Remove.
7430 * config/fr30/fr30.h (TARGET_VERSION): Remove.
7431 * config/frv/frv.h (TARGET_VERSION): Remove.
7432 * config/h8300/h8300.h (TARGET_VERSION): Remove.
7433 * config/i386/cygwin.h (TARGET_VERSION): Remove.
7434 * config/i386/darwin.h (TARGET_VERSION): Remove.
7435 * config/i386/darwin64.h (TARGET_VERSION): Remove.
7436 * config/i386/djgpp.h (TARGET_VERSION): Remove.
7437 * config/i386/freebsd.h (TARGET_VERSION): Remove.
7438 * config/i386/freebsd64.h (TARGET_VERSION): Remove.
7439 * config/i386/gnu.h (TARGET_VERSION): Remove.
7440 * config/i386/i386-interix.h (TARGET_VERSION): Remove.
7441 * config/i386/i386elf.h (TARGET_VERSION): Remove.
7442 * config/i386/linux.h (TARGET_VERSION): Remove.
7443 * config/i386/linux64.h (TARGET_VERSION): Remove.
7444 * config/i386/lynx.h (TARGET_VERSION): Remove.
7445 * config/i386/mingw32.h (TARGET_VERSION): Remove.
7446 * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
7447 * config/i386/netbsd64.h (TARGET_VERSION): Remove.
7448 * config/i386/netware.h (TARGET_VERSION): Remove.
7449 * config/i386/nto.h (TARGET_VERSION): Remove.
7450 * config/i386/openbsd.h (TARGET_VERSION): Remove.
7451 * config/i386/vxworks.h (TARGET_VERSION): Remove.
7452 * config/ia64/elf.h (TARGET_VERSION): Remove.
7453 * config/ia64/freebsd.h (TARGET_VERSION): Remove.
7454 * config/ia64/hpux.h (TARGET_VERSION): Remove.
7455 * config/ia64/linux.h (TARGET_VERSION): Remove.
7456 * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
7457 * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
7458 TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
7459 * config/lm32/lm32.h (TARGET_VERSION): Remove.
7460 * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
7461 * config/m32c/m32c.h (TARGET_VERSION): Remove.
7462 * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
7463 * config/m32r/m32r.h (TARGET_VERSION): Remove.
7464 * config/m68k/linux.h (TARGET_VERSION): Remove.
7465 * config/m68k/m68k.h (TARGET_VERSION): Remove.
7466 * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
7467 * config/m68k/uclinux.h (TARGET_VERSION): Remove.
7468 * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
7469 * config/mep/mep.h (TARGET_VERSION): Remove.
7470 * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
7471 MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
7472 * config/mips/iris6.h (MACHINE_TYPE): Remove.
7473 * config/mips/linux.h (TARGET_VERSION): Remove.
7474 * config/mips/netbsd.h (MACHINE_TYPE): Remove.
7475 * config/mips/vxworks.h (TARGET_VERSION): Remove.
7476 * config/mmix/mmix.h (TARGET_VERSION): Remove.
7477 * config/mn10300/linux.h (TARGET_VERSION): Remove.
7478 * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
7479 * config/pa/pa.h (TARGET_VERSION): Remove.
7480 * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
7481 * config/picochip/picochip.h (TARGET_VERSION): Remove.
7482 * config/rs6000/aix.h (TARGET_VERSION): Remove.
7483 * config/rs6000/darwin.h (TARGET_VERSION): Remove.
7484 * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
7485 * config/rs6000/eabi.h (TARGET_VERSION): Remove.
7486 * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
7487 * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
7488 * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
7489 * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
7490 * config/rs6000/linux.h (TARGET_VERSION): Remove.
7491 * config/rs6000/linux64.h (TARGET_VERSION): Remove.
7492 * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
7493 * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
7494 * config/rs6000/lynx.h (TARGET_VERSION): Remove.
7495 * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
7496 * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
7497 * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
7498 * config/s390/linux.h (TARGET_VERSION): Remove.
7499 * config/s390/s390.h (TARGET_VERSION): Remove.
7500 * config/s390/tpf.h (TARGET_VERSION): Remove.
7501 * config/score/score.h (TARGET_VERSION): Remove.
7502 * config/sh/linux.h (TARGET_VERSION): Remove.
7503 * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
7504 TARGET_VERSION_CPU, TARGET_VERSION): Remove.
7505 * config/sh/sh.h (TARGET_VERSION): Remove.
7506 * config/sh/sh64.h (TARGET_VERSION): Remove.
7507 * config/sh/superh.h (TARGET_VERSION): Remove.
7508 * config/sh/vxworks.h (TARGET_VERSION): Remove.
7509 * config/sparc/freebsd.h (TARGET_VERSION): Remove.
7510 * config/sparc/linux.h (TARGET_VERSION): Remove.
7511 * config/sparc/linux64.h (TARGET_VERSION): Remove.
7512 * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
7513 TARGET_NAME32, TARGET_NAME): Remove.
7514 * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
7515 * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
7516 * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
7517 * config/sparc/sysv4.h (TARGET_VERSION): Remove.
7518 * config/sparc/vxworks.h (TARGET_VERSION): Remove.
7519 * config/spu/spu.h (TARGET_VERSION): Remove.
7520 * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
7521 * config/v850/v850.h (TARGET_VERSION): Remove.
7522 * config/vax/linux.h (TARGET_VERSION): Remove.
7523 * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
7524 * config/xtensa/elf.h (TARGET_VERSION): Remove.
7525 * config/xtensa/linux.h (TARGET_VERSION): Remove.
7527 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
7530 * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
7531 frame-related from frame-unrelated adjustments to the stack pointer.
7533 2011-03-31 Jakub Jelinek <jakub@redhat.com>
7535 * common.opt (fdebug-types-section): Move earlier.
7536 * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
7538 2011-03-31 Andreas Tobler <andreast@fgznet.ch>
7540 * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
7543 2011-03-30 Nathan Froyd <froydnj@codesourcery.com>
7545 * tree.h (CASE_CHAIN): Define.
7546 * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
7547 (gimple_redirect_edge_and_branch): Likewise.
7549 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
7552 * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
7555 2011-03-30 Jeff Law <law@redhat.com>
7557 * PR bootstrap/48371
7558 * reload1.c (reload): Fix botch in last change.
7560 * reload.h (struct reload): Fix typo introduced in last change.
7562 2011-03-30 Joseph Myers <joseph@codesourcery.com>
7564 * config/arm/arm.opt (mhard-float, msoft-float): Mark
7565 Undocumented. Remove help text.
7566 * doc/invoke.texi (ARM Options): Don't document -msoft-float and
7569 2011-03-30 Joseph Myers <joseph@codesourcery.com>
7571 * doc/options.texi (NegativeAlias): Document.
7572 (Alias): Mention NegativeAlias.
7573 * opt-functions.awk: Handle NegativeAlias.
7574 * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
7575 * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
7576 * opts.h (CL_NEGATIVE_ALIAS): Define.
7577 * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
7578 (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
7580 * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
7582 * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
7583 mno-spe and mno-isel instead of mspe=no and -misel=no.
7585 2011-03-29 Mark Wielaard <mjw@redhat.com>
7587 * common.opt (fdebug-types-section): New flag.
7588 * doc/invoke.texi: Document new -fno-debug-types-section flag.
7589 * dwarf2out.c (use_debug_types): New define.
7590 (struct die_struct): Mark die_id with GTY desc use_debug_types.
7591 (print_die): Guard output of type unit signatures using
7593 (build_abbrev_table): Replace assert of dwarf_version >= 4
7594 with assert on use_debug_types.
7595 (size_of_die): Likewise.
7596 (unmark_dies): Likewise.
7597 (value_format): Decide AT_ref_external form on use_debug_types.
7598 (output_die): Replace dwarf_version version check guard with
7599 use_debug_types where appropriate.
7600 (modified_type_die): Likewise.
7601 (gen_reference_type_die): Likewise.
7602 (dwarf2out_start_source_file): Likewise.
7603 (dwarf2out_end_source_file): Likewise.
7604 (prune_unused_types_walk_attribs): Likewise.
7605 (dwarf2out_finish): Likewise.
7607 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
7609 * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
7611 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
7613 PR rtl-optimization/48332
7614 * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
7615 mode of input operand N and modeN to its actual mode.
7617 2011-03-30 Jeff Law <law@redhat.com>
7619 * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
7620 define accessor macro.
7621 (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
7622 (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
7623 (reg_equiv_init): Likewise.
7624 (reg_equivs_size): New variable.
7625 (reg_equiv_init_size): Remove.
7626 (allocate_initial_values): Move prototype to here from....
7627 * integrate.h (allocate_initial_values): Remove prototype.
7628 * integrate.c: Include reload.h.
7629 (allocate_initial_values): Corresponding changes.
7630 * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
7631 (fix_reg_equiv_init, no_equiv): Corresponding changes.
7632 (update_equiv_regs): Corresponding changes.
7633 (ira): Corresponding changes.
7634 * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
7635 (push_secondary_reload): Corresponding changes.
7636 (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
7637 (make_memloc, find_reloads_address): Corresponding changes.
7638 (subst_reg_equivs, subst_indexed_address): Corresponding changes.
7639 (find_reloads_address_1): Corresponding changes.
7640 (find_reloads_subreg_address, subst_reloads): Corresponding changes.
7641 (refers_to_regno_for_reload_p): Corresponding changes.
7642 (reg_overlap_mentioned_for_reload_p): Corresponding changes.
7643 (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
7644 * reload1.c: Include ggc.h.
7645 (grow_reg_equivs): New function.
7646 (replace_pseudos_in, reload): Corresponding changes.
7647 (calculate_needs_all_insns, alter_regs): Corresponding changes.
7648 (eliminate_regs_1, elimination_effects): Corresponding changes.
7649 (emit_input_reload_insns, emit_output_reload_insns): Likewise.
7650 (delete_output_reload): Likewise.
7651 * caller-save.c (mark_referenced_regs): Corresponding changes.
7652 * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
7653 * frv/predicates.md (frv_load_operand): Corresponding changes.
7654 * microblaze/microblaze.c (double_memory_operand): Corresponding
7656 * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
7657 * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
7658 * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
7659 * m68k/m68k.c (emit_move_sequence): Corresponding changes.
7660 * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
7662 * pa/pa.c (emit_move_sequence): Corresponding changes.
7663 * vax/vax.c (nonindexed_address_p): Corresponding changes.
7665 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
7668 * config/arm/arm.c (coproc_secondary_reload_class): Handle
7669 structure modes. Don't check neon_vector_mem_operand for
7670 vector or structure modes.
7672 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
7673 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
7676 * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
7677 operand 1 and reshuffle the operands to match.
7678 (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
7680 2011-03-30 Christian Schüler <cschueler@gmx.de>
7683 * config/c.opt (F): Added 'Driver' to -F option.
7686 * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
7688 * config/darwin.opt: Added '-arch' option.
7690 2011-03-30 Nick Clifton <nickc@redhat.com>
7692 * config/rx/rx.md: Add peepholes and patterns to combine
7693 extending loads and simple arithmetic instructions.
7694 * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
7695 * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
7696 * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
7697 modes to use pre-decrement and post-increment addressing.
7698 (rx_is_restricted_memory_address): Add range checking of REG+INT
7700 (rx_print_operand): Add support for %Q. Fix handling of %Q.
7701 (rx_memory_move_cost): Adjust cost of stores.
7702 (rx_adjust_insn_length): New function.
7704 2011-03-30 Jakub Jelinek <jakub@redhat.com>
7707 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
7708 arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
7709 matching arg00/arg01 types.
7711 2011-03-30 Eric Botcazou <ebotcazou@adacore.com>
7713 * cfglayout.c (insn_locators_alloc): Initialize curr_location and
7714 last_location to UNKNOWN_LOCATION.
7716 2011-03-30 H.J. Lu <hongjiu.lu@intel.com>
7719 * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
7722 2011-03-30 Joseph Myers <joseph@codesourcery.com>
7723 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7726 * config/sparc/sparc.opt (sparc_cpu_and_features): Add
7728 (sparc_cpu): Likewise.
7729 * config/sparc/sparc.c (sparc_option_override): Replace 0 by
7732 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
7736 PR rtl-optimization/48345
7737 * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
7738 hard regs for given mode from profitable regs when doing secondary
7741 2011-03-29 Jeff Law <law@redhat.com>
7744 * tree-ssa-threadupdate.c (struct redirection_data): Remove
7745 do_not_duplicate field.
7746 (lookup_redirection_data): Corresponding changes.
7747 (create_duplicates): Always create a template block.
7748 (redirect_edges): Remove code which reused the original block
7749 when it was going to become unreachable code.
7750 (thread_block): Don't set do_not_duplicate field.
7752 2011-03-29 Joseph Myers <joseph@codesourcery.com>
7754 * lto-opts.c (register_user_option_p, lto_register_user_option):
7755 Make type argument unsigned.
7756 * lto-streamer.h (lto_register_user_option): Make type argument
7758 * opth-gen.awk: Make CL_* macros unsigned.
7759 * opts-common.c (find_opt): Make lang_mask argument unsigned.
7760 * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
7761 CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
7762 CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
7763 CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
7764 CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
7765 (find_opt): Make lang_mask argument unsigned.
7767 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
7769 PR rtl-optimization/48331
7770 PR rtl-optimization/48334
7771 * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
7772 for any used algorithm.
7774 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
7776 * ira-conflicts.c (build_object_conflicts): Add unused attribute
7779 2011-03-29 Uros Bizjak <ubizjak@gmail.com>
7781 * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
7782 (alpha_option_override): Don't set alpha_sr_alias_set.
7783 (emit_frame_store_1): Use gen_frame_mem rather than calling
7785 (alpha_expand_epilogue): Ditto.
7787 2011-03-29 Ira Rosen <ira.rosen@linaro.org>
7789 PR tree-optimization/48290
7790 * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
7791 vectorization, check that relevant phis in the basic block after
7792 the inner loop are really inner loop's exit phis.
7794 2011-03-29 Richard Sandiford <richard.sandiford@linaro.org>
7797 * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
7798 (cached_dw_loc_list_def): New structure.
7799 (cached_dw_loc_list): New typedef.
7800 (cached_dw_loc_list_table): New variable.
7801 (cached_dw_loc_list_table_hash): New function.
7802 (cached_dw_loc_list_table_eq): Likewise.
7803 (add_location_or_const_value_attribute): Take a bool cache_p.
7804 Cache the list when the parameter is true.
7805 (gen_formal_parameter_die): Update caller.
7806 (gen_variable_die): Likewise.
7807 (dwarf2out_finish): Likewise.
7808 (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
7809 while generating debug info for the decl.
7810 (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
7811 (dwarf2out_init): Initialize cached_dw_loc_list_table.
7812 (resolve_addr): Cache the result of resolving a chain of
7815 2011-03-28 Vladimir Makarov <vmakarov@redhat.com>
7817 * ira-color.c (update_left_conflict_sizes_p): Don't assume that
7818 conflict object hard regset nodes have intersecting hard reg sets.
7820 * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
7821 after regstat_init_n_sets_and_refs.
7823 * ira.c: Add more comments at the top.
7824 (setup_stack_reg_pressure_class, setup_pressure_classes):
7825 Add comments how we compute the register pressure classes.
7826 (setup_allocno_and_important_classes): Add more comments.
7827 (setup_class_translate_array, reorder_important_classes)
7828 (setup_reg_class_relations): Add comments.
7830 * ira-emit.c: Add 2011 to the Copyright line. Add comments at the
7833 * ira-color.c: Add 2011 to the Copyright line.
7834 (assign_hard_reg): Add more comments.
7835 (improve_allocation): Ditto.
7837 * ira-costs.c: Add 2011 to the Copyright line.
7838 (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
7840 (setup_regno_cost_classes_by_mode): Ditto.
7842 Initial patches from ira-improv branch:
7844 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
7846 * ira-build.c (ira_create_object): Remove initialization of
7847 OBJECT_PROFITABLE_HARD_REGS. Initialize OBJECT_ADD_DATA.
7848 (ira_create_allocno): Remove initialization of
7849 ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
7850 ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
7851 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
7852 ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
7853 ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
7854 Initialize ALLOCNO_ADD_DATA.
7855 (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
7856 and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
7858 (ira_flattening): Ditto. Use ALLOCNO_EMIT_DATA instead of
7859 ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
7861 * ira.c (ira_reallocate): Remove.
7862 (setup_pressure_classes): Call
7863 ira_init_register_move_cost_if_necessary. Use
7864 ira_register_move_cost instead of ira_get_register_move_cost.
7865 (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
7866 (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
7868 * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
7869 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
7870 ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
7871 ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
7872 instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
7873 OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
7875 (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
7876 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
7877 (struct allocno_color_data): New.
7878 (allocno_color_data_t): New typedef.
7879 (allocno_color_data): New definition.
7880 (ALLOCNO_COLOR_DATA): New macro.
7881 (struct object_color_data): New.
7882 (object_color_data_t): New typedef.
7883 (object_color_data): New definition.
7884 (OBJECT_COLOR_DATA): New macro.
7885 (update_copy_costs, calculate_allocno_spill_cost): Call
7886 ira_init_register_move_cost_if_necessary. Use
7887 ira_register_move_cost instead of ira_get_register_move_cost.
7888 (move_spill_restore, update_curr_costs): Ditto.
7889 (allocno_spill_priority): Make it inline.
7890 (color_pass): Allocate and free allocno_color_dat and object_color_data.
7891 (struct coalesce_data, coalesce_data_t): New.
7892 (allocno_coalesce_data): New definition.
7893 (ALLOCNO_COALESCE_DATA): New macro.
7894 (merge_allocnos, coalesced_allocno_conflict_p): Use
7895 ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
7896 ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
7897 (coalesce_allocnos): Ditto.
7898 (setup_coalesced_allocno_costs_and_nums): Ditto.
7899 (collect_spilled_coalesced_allocnos): Ditto.
7900 (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
7901 (setup_slot_coalesced_allocno_live_ranges): Ditto.
7902 (coalesce_spill_slots): Ditto.
7903 (ira_sort_regnos_for_alter_reg): Ditto. Allocate, initialize and
7904 free allocno_coalesce_data.
7906 * ira-conflicts.c: Fix formatting.
7907 (process_regs_for_copy): Call
7908 ira_init_register_move_cost_if_necessary. Use
7909 ira_register_move_cost instead of ira_get_register_move_cost.
7910 (build_object_conflicts): Optimize.
7912 * ira-costs.c (record_reg_classes): Optimize. Call
7913 ira_init_register_move_cost_if_necessary. Use
7914 ira_register_move_cost, ira_may_move_in_cost, and
7915 ira_may_move_out_cost instead of ira_get_register_move_cost and
7916 ira_get_may_move_cost.
7917 (record_address_regs): Ditto.
7918 (scan_one_insn): Optimize.
7919 (find_costs_and_classes): Optimize.
7920 (process_bb_node_for_hard_reg_moves): Call
7921 ira_init_register_move_cost_if_necessary. Use
7922 ira_register_move_cost instead of ira_get_register_move_cost.
7924 * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
7925 ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
7926 ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
7927 (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
7929 (ira_initiate_emit_data, ira_finish_emit_data)
7930 (create_new_allocno): New functions.
7931 (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
7932 (emit_move_list): Call ira_init_register_move_cost_if_necessary.
7933 Use ira_register_move_cost instead of ira_get_register_move_cost.
7935 * ira-int.h: Fix some comments.
7936 (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
7937 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
7938 (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
7939 hard_regs_subnodes_start, hard_regs_subnodes_num. Add new member
7941 (struct ira_allocno): Make mode and aclass a bitfield. Move other
7942 bitfield after mode. Make hard_regno a short int. Make
7943 hard_regno short. Remove first_coalesced_allocno and
7944 next_coalesced_allocno. Move mem_optimized_dest_p,
7945 somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
7946 into struct ira_emit_data. Remove in_graph_p, may_be_spilled_p,
7947 available_regs_num, next_bucket_allocno, prev_bucket_allocno,
7948 temp, colorable_p. Add new member add_data.
7949 (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
7950 (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
7951 (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
7952 (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
7953 (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
7954 (ALLOCNO_ADD_DATA): New macro.
7955 (ira_emit_data_t): New typedef.
7956 (struct ira_emit_data): New. Move mem_optimized_dest_p,
7957 somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
7958 from struct ira_allocno.
7959 (ALLOCNO_EMIT_DATA): New macro.
7960 (ira_allocno_emit_data, allocno_emit_reg): New.
7961 (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
7962 (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
7963 (OBJECT_ADD_DATA): New macro.
7964 (ira_reallocate): Remove.
7965 (ira_initiate_emit_data, ira_finish_emit_data): New.
7966 (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
7967 (ira_init_register_move_cost_if_necessary): New.
7968 (ira_object_conflict_iter_next): Merge into
7969 ira_object_conflict_iter_cond.
7970 (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
7972 * ira-live.c (process_single_reg_class_operands): Call
7973 ira_init_register_move_cost_if_necessary. Use
7974 ira_register_move_cost instead of ira_get_register_move_cost.
7976 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
7978 * ira-int.h (struct target_ira_int): Remove x_cost_classes.
7980 * ira-costs.c: Fix formatting.
7981 (cost_classes, cost_classes_num): Remove.
7982 (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
7983 (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
7984 (cost_classes_del, cost_classes_htab): New.
7985 (cost_classes_aclass_cache, cost_classes_mode_cache): New.
7986 (initiate_regno_cost_classes, setup_cost_classes): New.
7987 (setup_regno_cost_classes_by_aclass): New.
7988 (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
7989 (record_reg_classes): Use regno_cost_classes instead of
7990 cost_classes. Move checking opposite operand up.
7991 (record_address_regs): Use regno_cost_classes
7992 instead of cost_classes.
7993 (scan_one_insn): Ditto. Use always general register.
7994 (print_allocno_costs): Use regno_cost_classes instead of
7996 (print_pseudo_costs): Ditto. Use Reg_N_REFS.
7997 (find_costs_and_classes): Set up cost classes for each registers.
7998 Use also their mode for this. Use regno_cost_classes instead of
8000 (setup_allocno_class_and_costs): Use regno_cost_classes instead of
8002 (free_ira_costs, ira_init_costs): Don't use cost_classes.
8003 (ira_costs, ira_set_pseudo_classes): Call
8004 initiate_regno_cost_classes and finish_regno_cost_classes.
8006 2010-10-04 Vladimir Makarov <vmakarov@redhat.com>
8008 * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
8010 * target.def (ira_cover_classes): Remove.
8012 * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
8014 * doc/tm.texi.in: Ditto.
8016 * ira-conflicts.c: Remove mentioning cover classes from the file.
8017 Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Use
8018 ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST. Fix formatting.
8020 * targhooks.c (default_ira_cover_classes): Remove.
8022 * targhooks.h (default_ira_cover_classes): Ditto.
8024 * haifa-sched.c: Remove mentioning cover classes from the file.
8025 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
8026 ira_pressure_classes and ira_pressure_classes_num instead of
8027 ira_reg_class_cover_size and ira_reg_class_cover. Use
8028 sched_regno_pressure_class instead of sched_regno_cover_class.
8029 (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
8030 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
8032 * ira-int.h: Add 2010 to Copyright. Remove mentioning cover
8033 classes from the file.
8034 (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
8035 (struct object_hard_regs, struct object_hard_regs_node): New.
8036 (struct ira_object): New members profitable_hard_regs,
8037 hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
8038 (struct ira_allocno): Rename cover_class to aclass. Rename
8039 cover_class_cost and updated_cover_class_cost to class_cost and
8040 updated_class_cost. Remove splay_removed_p and
8041 left_conflict_size. Add new members colorable_p.
8042 (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
8043 (ALLOCNO_COLORABLE_P): New macro.
8044 (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
8045 (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
8046 Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
8047 (OBJECT_...): Rename parameter C to O.
8048 (OBJECT_PROFITABLE_HARD_REGS): New macro.
8049 (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
8050 (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
8051 (struct target_ira_int): New members x_ira_max_memory_move_cost,
8052 x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
8053 x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
8054 x_ira_reg_pressure_class_p, x_ira_important_class_nums,
8055 x_ira_reg_class_superunion. Rename x_prohibited_class_mode_reg to
8056 x_ira_prohibited_class_mode_reg. Rename x_ira_reg_class_union to
8057 x_ira_reg_class_subunion.
8058 (ira_max_memory_move_cost, ira_max_register_move_cost)
8059 (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
8060 (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
8061 (ira_important_class_nums, ira_reg_class_superunion): New macros.
8062 (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
8063 (ira_reg_class_union): Rename to ira_reg_class_subunion.
8064 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
8065 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
8066 (ira_tune_allocno_costs_and_cover_classes): Rename to
8067 ira_tune_allocno_costs.
8068 (ira_debug_hard_regs_forest): New.
8069 (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
8070 (ira_object_conflict_iter_next): Fix comments.
8071 (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
8072 (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
8073 cover_class to aclass.
8074 (ira_allocate_and_accumulate_costs): Ditto.
8075 (ira_allocate_and_set_or_copy_costs): Ditto.
8077 * opts.c (decode_options): Remove ira_cover_class check.
8079 * ira-color.c: Remove mentioning cover classes from the file. Use
8080 ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
8081 instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
8082 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
8083 (splay-tree.h): Remove include.
8084 (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
8085 before copy_freq_compare_func.
8086 (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
8087 (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
8089 (hard_regs_roots, hard_regs_node_vec): Ditto.
8090 (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
8091 (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
8092 (finish_object_hard_regs, object_hard_regs_compare): Ditto.
8093 (create_new_object_hard_regs_node): Ditto.
8094 (add_new_object_hard_regs_node_to_forest): Ditto.
8095 (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
8096 (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
8098 (print_hard_reg_set, print_hard_regs_subforest): Ditto.
8099 (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
8100 (remove_unused_object_hard_regs_nodes): Ditto.
8101 (enumerate_object_hard_regs_nodes): Ditto.
8102 (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
8103 (object_hard_regs_subnode_t): Ditto.
8104 (struct object_hard_regs_subnode): Ditto.
8105 (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
8106 (setup_object_hard_regs_subnode_index): Ditto.
8107 (get_object_hard_regs_subnodes_num): Ditto.
8108 (form_object_hard_regs_nodes_forest): Ditto.
8109 (finish_object_hard_regs_nodes_tree): Ditto.
8110 (finish_object_hard_regs_nodes_forest): Ditto.
8111 (allocnos_have_intersected_live_ranges_p): Rename to
8112 allocnos_conflict_by_live_ranges_p. Move before copy_freq_compare_func.
8113 (pseudos_have_intersected_live_ranges_p): Rename to
8114 conflict_by_live_ranges_p. Move before copy_freq_compare_func.
8115 (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
8116 (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
8117 (update_copy_costs): Remove assert. Skip cost update if the hard
8118 reg does not belong the class.
8119 (assign_hard_reg): Process only profitable hard regs.
8120 (uncolorable_allocnos_num): Make it scalar.
8121 (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
8122 and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
8123 and ira_reg_class_max_nregs.
8124 (bucket_allocno_compare_func): Check frequency first.
8125 (sort_bucket): Add compare function as a parameter.
8126 (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
8127 (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
8128 (push_allocno_to_stack): Rewrite for checking new allocno
8130 (remove_allocno_from_bucket_and_push): Print cost too. Remove assert.
8131 (push_only_colorable): Pass new parameter to sort_bucket.
8132 (push_allocno_to_spill): Remove.
8133 (allocno_spill_priority_compare): Make it inline and rewrite.
8134 (splay_tree_allocate, splay_tree_free): Remove.
8135 (allocno_spill_sort_compare): New function.
8136 (push_allocnos_to_stack): Sort allocnos for spilling once. Don't
8137 build and use splay tree. Choose first allocno in uncolorable
8138 allocno bucket to spill. Remove setting spill cost.
8139 (all_conflicting_hard_regs): Remove.
8140 (setup_allocno_available_regs_num): Check only profitable hard
8141 regs. Print info about hard regs nodes.
8142 (setup_allocno_left_conflicts_size): Remove.
8143 (put_allocno_into_bucket): Don't call
8144 setup_allocno_left_conflicts_size. Use setup_left_conflict_sizes_p.
8145 (improve_allocation): New.
8146 (color_allocnos): Call setup_profitable_hard_regs,
8147 form_object_hard_regs_nodes_forest, improve_allocation,
8148 finish_object_hard_regs_nodes_forest. Setup spill cost.
8149 (print_loop_title): Use pressure classes.
8150 (color_allocnso): Ditto.
8151 (do_coloring): Remove allocation and freeing splay_tree_node_pool
8152 and allocnos_for_spilling.
8153 (ira_sort_regnos_for_alter_reg): Don't setup members
8154 {first,next}_coalesced_allocno.
8155 (color): Remove allocating and freeing removed_splay_allocno_vec.
8156 (fast_allocation): Use ira_prohibited_class_mode_regs instead of
8157 prohibited_class_mode_regs.
8159 * ira-lives.c: Remove mentioning cover classes from the file. Fix
8161 (update_allocno_pressure_excess_length): Use pressure classes.
8162 (inc_register_pressure, dec_register_pressure): Check for pressure
8164 (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
8165 pressure class. Use ira_reg_class_nregs instead of
8166 ira_reg_class_max_nregs.
8167 (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
8168 (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
8169 (single_reg_class): Use ira_reg_class_nregs instead of
8170 ira_reg_class_max_nregs.
8171 (process_bb_node_lives): Use pressure classes.
8173 * ira-emit.c: Remove mentioning cover classes from the file. Use
8174 ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Fix formatting.
8175 (change_loop): Use pressure classes.
8176 (modify_move_list): Call ira_set_allocno_class instead of
8177 ira_set_allocno_cover_class.
8179 * ira-build.c: Remove mentioning cover classes from the file. Use
8180 ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
8181 ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST. Use
8182 ALLOCNO_UPDATED_CLASS_COST instead of
8183 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
8184 (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
8185 (ira_create_allocno): Remove initialization of
8186 ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE. Initialize
8187 ALLOCNO_COLORABLE_P.
8188 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
8189 Update conflict regs for the objects.
8190 (create_cap_allocno): Remove assert. Don't propagate
8191 ALLOCNO_AVAILABLE_REGS_NUM.
8192 (ira_free_allocno_costs): New function.
8193 (finish_allocno): Change a part of code into call of
8194 ira_free_allocno_costs.
8195 (low_pressure_loop_node_p): Use pressure classes.
8196 (object_range_compare_func): Don't compare classes.
8197 (setup_min_max_conflict_allocno_ids): Ditto.
8199 * loop-invariant.c: Remove mentioning cover classes from the file.
8200 Use ira_pressure_classes and ira_pressure_classes_num instead of
8201 ira_reg_class_cover_size and ira_reg_class_cover. Fix formatting.
8202 (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
8203 Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
8204 Use reg_allocno_class instead of reg_cover_class.
8205 (get_inv_cost): Use instead ira_stack_reg_pressure_class of
8206 STACK_REG_COVER_CLASS.
8207 (get_regno_cover_class): Rename to get_regno_pressure_class.
8208 (move_loop_invariants): Initialize and finalize regstat.
8210 * ira.c: Remove mentioning cover classes from the file. Add
8211 comments about coloring without cover classes. Use ALLOCNO_CLASS
8212 instead of ALLOCNO_COVER_CLASS. Fix formatting.
8213 (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
8214 setup_class_subset_and_memory_move_costs.
8215 (setup_stack_reg_pressure_class, setup_pressure_classes): New.
8216 (setup_cover_and_important_classes): Rename to
8217 setup_allocno_and_important_classes.
8218 (setup_class_translate_array): New.
8219 (setup_class_translate): Call it for allocno and pressure classes.
8220 (cover_class_order): Rename to allocno_class_order.
8221 (comp_reg_classes_func): Use ira_allocno_class_translate instead
8222 of ira_class_translate.
8223 (reorder_important_classes): Set up ira_important_class_nums.
8224 (setup_reg_class_relations): Set up ira_reg_class_superunion.
8225 (print_class_cover): Rename to print_classes. Add parameter.
8226 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
8227 Print pressure classes too.
8228 (find_reg_class_closure): Rename to find_reg_classes. Don't call
8229 setup_reg_subclasses.
8230 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
8231 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
8232 (setup_prohibited_class_mode_regs): Use
8233 ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
8234 (clarify_prohibited_class_mode_regs): New function.
8235 (ira_init_register_move_cost): Set up ira_max_register_move_cost,
8236 ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
8237 (ira_init_once): Initialize them.
8238 (free_register_move_costs): Process them.
8239 (ira_init): Move calls of find_reg_classes and
8240 setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
8241 Call clarify_prohibited_class_mode_regs.
8242 (ira_no_alloc_reg): Remove.
8243 (too_high_register_pressure_p): Use pressure classes.
8245 * sched-deps.c: Remove mentioning cover classes from the file.
8246 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
8247 ira_pressure_classes and ira_pressure_classes_num instead of
8248 ira_reg_class_cover_size and ira_reg_class_cover.
8249 (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
8250 sched_regno_pressure_class instead of sched_regno_cover_class.
8251 (mark_insn_pseudo_birth, mark_pseudo_death): Ditto. Use
8252 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
8254 * ira.h: Add 2010 to Copyright.
8255 (ira_no_alloc_reg): Remove external.
8256 (struct target_ira): Rename x_ira_hard_regno_cover_class,
8257 x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
8258 x_ira_class_translate to x_ira_hard_regno_allocno_class,
8259 x_ira_allocno_classes_num, x_ira_allocno_classes, and
8260 x_ira_allocno_class_translate. Add x_ira_pressure_classes_num,
8261 x_ira_pressure_classes, x_ira_pressure_class_translate, and
8262 x_ira_stack_reg_pressure_class. Rename x_ira_reg_class_nregs to
8263 x_ira_reg_class_max_nregs. Add x_ira_reg_class_min_nregs and
8264 x_ira_no_alloc_regs.
8265 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
8266 (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
8267 ira_allocno_classes_num and ira_allocno_classes.
8268 (ira_class_translate): Rename to ira_allocno_class_translate.
8269 (ira_pressure_classes_num, ira_pressure_classes): New definitions.
8270 (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
8271 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
8272 (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
8273 (ira_no_alloc_regs): New.
8275 * ira-costs.c: Add 2010 to Copyright. Remove mentioning cover
8276 classes from the file. Use ALLOCNO_CLASS instead of
8277 ALLOCNO_COVER_CLASS. Use ALLOCNO_CLASS_COST instead of
8278 ALLOCNO_COVER_CLASS_COST.
8279 (regno_cover_class): Rename to regno_aclass.
8280 (record_reg_classes): Use ira_reg_class_subunion instead of
8281 ira_reg_class_union.
8282 (record_address_regs): Check overflow.
8283 (scan_one_insn): Ditto.
8284 (print_allocno_costs): Print total mem cost fore regional allocation.
8285 (print_pseudo_costs): Use REG_N_REFS.
8286 (find_costs_and_classes): Use classes intersected with them on the
8287 1st pass. Check overflow. Use ira_reg_class_subunion instead of
8288 ira_reg_class_union. Use ira_allocno_class_translate and
8289 regno_aclass instead of ira_class_translate and regno_cover_class.
8290 Modify code for finding regno_aclass. Setup preferred classes for
8292 (setup_allocno_cover_class_and_costs): Rename to
8293 setup_allocno_class_and_costs. Use regno_aclass instead of
8294 regno_cover_class. Use ira_set_allocno_class instead of
8295 ira_set_allocno_cover_class.
8296 (init_costs, finish_costs): Use regno_aclass instead of
8298 (ira_costs): Use setup_allocno_class_and_costs instead of
8299 setup_allocno_cover_class_and_costs.
8300 (ira_tune_allocno_costs_and_cover_classes): Rename to
8301 ira_tune_allocno_costs. Check overflow. Skip conflict hard regs
8302 by processing objects. Use ira_reg_class_max_nregs instead of
8303 ira_reg_class_nregs.
8305 * rtl.h (reg_cover_class): Rename to reg_allocno_class.
8307 * sched-int.h: Remove mentioning cover classes from the file.
8308 (sched_regno_cover_class): Rename to sched_regno_pressure_class.
8310 * reginfo.c: Add 2010 to Copyright. Remove mentioning cover
8311 classes from the file.
8312 (struct reg_pref): Rename coverclass into allocnoclass.
8313 (reg_cover_class): Rename to reg_allocno_class.
8315 * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
8317 * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
8319 * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
8321 * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
8323 * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
8325 * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
8327 * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
8329 * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
8331 * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
8333 * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
8335 * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
8336 (i386_ira_cover_classes): Ditto.
8338 * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
8340 * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
8342 * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
8344 * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
8346 * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
8348 * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
8350 * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
8351 (mips_ira_cover_classes): Ditto.
8353 * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
8355 * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
8357 * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
8359 * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
8361 * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
8363 * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
8364 (IRA_COVER_CLASSES_VSX): Ditto.
8366 * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
8367 (rs6000_ira_cover_classes): Ditto.
8369 * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
8371 * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
8373 * config/score/score.h (IRA_COVER_CLASSES): Ditto.
8375 * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
8377 * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
8379 * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
8381 * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
8383 * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
8385 * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
8387 * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
8389 2011-03-29 Jakub Jelinek <jakub@redhat.com>
8392 * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
8393 dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
8394 dw_fde_unlikely_section_end_label, cold_in_std_section,
8395 dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
8396 Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
8398 (output_fde): Use dw_fde_second_{begin,end} if second is
8399 true, otherwise dw_fde_{begin,end}.
8400 (output_call_frame_info): Test dw_fde_second_begin != NULL
8401 instead of dw_fde_switched_sections.
8402 (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
8403 fields, initialize new fields. Initialize in_std_section
8404 unconditionally from the first partition.
8405 (dwarf2out_end_epilogue): Don't override dw_fde_end when
8406 dw_fde_second_begin is non-NULL.
8407 (dwarf2out_switch_text_section): Stop initializing removed
8408 dw_fde_struct fields, initialize new fields, initialize
8409 also dw_fde_end here. Set dw_fde_switch_cfi even when
8410 dwarf2out_do_cfi_asm (). Call var_location_switch_text_section.
8411 (struct var_loc_list_def): Add last_before_switch field.
8412 (arange_table, arange_table_allocated, arange_table_in_use,
8413 ARANGE_TABLE_INCREMENT, add_arange): Removed.
8414 (size_of_aranges): Count !in_std_section and !second_in_std_section
8415 hunks in fdes, instead of looking at arange_table_in_use.
8416 (output_aranges): Add aranges_length argument, don't call
8417 size_of_aranges here. Instead of using aranges_table*
8418 emit ranges for fdes when !in_std_section resp.
8419 !second_in_std_section.
8420 (dw_loc_list): Break ranges crossing section switch.
8421 (convert_cfa_to_fb_loc_list): Likewise. If switched sections,
8422 use dw_fde_second_end instead of dw_fde_end as end of last range.
8423 (gen_subprogram_die): Don't call add_arange. Use
8424 dw_fde_{begin,end} for first partition and if switched
8425 section dw_fde_second_{begin,end} for the second.
8426 (var_location_switch_text_section_1,
8427 var_location_switch_text_section): New functions.
8428 (dwarf2out_begin_function): Initialize cold_text_section even
8429 when function_section () isn't text_section.
8430 (prune_unused_types): Don't walk arange_table.
8431 (dwarf2out_finish): Don't needlessly test
8432 flag_reorder_blocks_and_partition when testing cold_text_section_used.
8433 If info_section_emitted, call size_of_aranges and if it indicates
8434 non-empty .debug_aranges, call output_aranges with the computed
8435 size. Stop using removed dw_fde_struct fields, use
8436 dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
8440 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
8441 create ENTRY_VALUE if incoming or address of incoming's MEM
8443 * dwarf2out.c (mem_loc_descriptor): Don't emit
8444 DW_OP_GNU_entry_value of DW_OP_fbreg.
8445 * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
8446 on ENTRY_VALUE is able to find the canonical parameter VALUE.
8447 * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
8448 rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
8450 (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
8451 is a REG_P or MEM_P with REG_P address, compute hash directly
8452 instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
8453 (preserve_only_constants): Don't clear VALUES forwaring
8454 ENTRY_VALUE to some other VALUE.
8456 2011-03-28 Richard Sandiford <richard.sandiford@linaro.org>
8458 * builtins.c (expand_builtin_memset_args): Use gen_int_mode
8461 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
8463 * cfgexpand.c (expand_gimple_cond): Always set the source location and
8464 block before expanding the statement.
8465 (expand_gimple_stmt_1): Likewise. Set them here...
8466 (expand_gimple_stmt): ...and not here. Tidy.
8467 * cfglayout.c (curr_insn_locator): Return 0 if the current location is
8470 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
8472 * Makefile.in: New rule for cprop.o.
8473 * gcse.c: Move constant/copy propagation to cprop.c.
8474 (compute_local_properties): Only handle expression tables.
8475 (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
8476 (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
8477 (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
8478 next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
8479 mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
8480 compute_cprop_data, find_used_regs, try_replace_reg,
8481 find_avail_set, cprop_jump, constprop_register, cprop_insn,
8482 local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
8483 fis_get_condition, implicit_set_cond_p, find_implicit_sets,
8484 find_bypass_set, reg_killed_on_edge, bypass_block,
8485 bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
8486 execute_rtl_cprop, pass_rtl_cprop): Move to...
8487 * cprop.c: ...here. New file, constant/copy propagation for RTL
8488 moved from gcse.c to here with minor cleanups in duplicated code.
8490 2011-03-28 H.J. Lu <hongjiu.lu@intel.com>
8492 * config/i386/i386.c (flag_opts): Fix a typo in
8493 -mavx256-split-unaligned-store.
8495 2011-03-28 Anatoly Sokolov <aesok@post.ru>
8497 * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
8498 LIBCALL_VALUE): Remove macros.
8499 * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
8500 TARGET_FUNCTION_VALUE_REGNO_P): Define.
8501 (h8300_function_value, h8300_libcall_value,
8502 h8300_function_value_regno_p): New functions.
8504 2011-03-28 Anatoly Sokolov <aesok@post.ru>
8506 * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
8508 2011-03-28 Jeff Law <law@redhat.com>
8510 * tree-ssa-threadupdate.c (redirect_edges): Call
8511 create_edge_and_update_destination_phis as needed.
8512 (create_edge_and_update_destination_phis): Accept new BB argument.
8513 All callers updated.
8514 (thread_block): Do not update the profile when threading around
8515 intermediate blocks.
8516 (thread_single_edge): Likewise.
8517 (determine_bb_domination_status): If BB is not a successor of the
8518 loop header, return NONDOMINATING.
8519 (register_jump_thread): Note when we register a jump thread around
8520 an intermediate block.
8521 * tree-ssa-threadedge.c (thread_around_empty_block): New function.
8522 (thread_across_edge): Use it.
8524 2011-03-28 Tristan Gingold <gingold@adacore.com>
8526 * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
8527 when for_return is 2.
8529 2011-03-28 Jeff Law <law@redhat.com>
8531 * var-tracking.c (canonicalize_values_mark): Delete unused
8533 (canonicalize_values_star, set_variable_part): Likewise.
8534 (clobber_variable_part, delete_variable_part): Likewise.
8536 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
8538 * gcse.c (free_gcse_mem): Free reg_set_bitmap.
8540 2011-03-28 Martin Jambor <mjambor@suse.cz>
8542 * tree-inline.c (expand_call_inline): Do not check that destination
8544 (optimize_inline_calls): Assert that destination node is analyzed.
8545 * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
8546 not call tree_lowering_passes.
8547 * cgraph.h (cgraph_analyze_function): Declare.
8548 * cgraphunit.c (cgraph_analyze_function): Make public.
8550 2011-03-28 Joseph Myers <joseph@codesourcery.com>
8552 * config/sparc/sparc-opts.h: New.
8553 * config/sparc/sparc.c (sparc_handle_option, sparc_select,
8554 sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
8555 (sparc_option_override): Store processor_type enumeration rather
8556 than string in cpu_default. Remove name and enumeration from
8557 cpu_table. Directly default -mcpu then default -mtune from -mcpu
8558 without using sparc_select. Use target_flags_explicit instead of
8560 * config/sparc/sparc.h (enum processor_type): Move to
8562 (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
8563 * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
8564 HeaderInclude entry.
8565 (mcpu=, mtune=): Use Var and Enum.
8566 (sparc_processor_type): New Enum and EnumValue entries.
8568 2011-03-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8569 Iain Sandoe <iains@gcc.gnu.org>
8572 * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
8574 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
8576 * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
8577 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
8578 Insert new statements at it in lieu of STMT.
8579 (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
8580 * tree-vect-stmts.c (vectorizable_store): Likewise.
8581 (vectorizable_load): Likewise.
8583 2011-03-28 Uros Bizjak <ubizjak@gmail.com>
8585 * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
8590 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
8592 * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
8593 unaligned 256bit load/store.
8594 (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
8595 (*avx_movdqu<avxmodesuffix>): Likewise.
8597 2011-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8600 * config/pa/predicates.md (reg_or_ior_operand): New predicate.
8601 * config/pa/pa.md (iordi3): Use new predicate in expander.
8604 2011-03-27 Anatoly Sokolov <aesok@post.ru>
8606 * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
8607 FUNCTION_VALUE_REGNO_P): Remove macros.
8608 * config/mips/mips-protos.h (mips_function_value): Remove.
8609 * config/mips/mips.c (mips_function_value): Rename to...
8610 (mips_function_value_1): ... this. Make static. Handle receiving
8611 the function type in 'fn_decl_or_type' argument.
8612 (mips_function_value, mips_libcall_value,
8613 mips_function_value_regno_p): New function.
8614 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
8615 TARGET_FUNCTION_VALUE_REGNO_P): Define.
8617 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
8619 * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
8620 and -mavx256-split-unaligned-store.
8621 (ix86_option_override_internal): Split 32-byte AVX unaligned
8622 load/store by default.
8623 (ix86_avx256_split_vector_move_misalign): New.
8624 (ix86_expand_vector_move_misalign): Use it.
8626 * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
8627 -mavx256-split-unaligned-store.
8629 * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
8630 256bit load/store. Generate unaligned store on misaligned memory
8632 (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
8634 (*avx_movdqu<avxmodesuffix>): Likewise.
8636 * doc/invoke.texi: Document -mavx256-split-unaligned-load and
8637 -mavx256-split-unaligned-store.
8639 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
8642 * config/mips/mips.md (extendsidi2): Add an "l" alternative.
8645 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
8647 * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
8648 opno arguments with an expand_operand. Use create_input_operand.
8649 (mips_prepare_builtin_target): Delete.
8650 (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
8652 (mips_expand_builtin_direct): Use create_output_operand and
8653 mips_expand_builtin_insn. Update call to mips_prepare_builtin_arg.
8654 (mips_expand_builtin_movtf): Likewise. Use mips_expand_fp_comparison.
8655 (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
8657 2011-03-27 Ira Rosen <ira.rosen@linaro.org>
8659 * config/arm/arm.c (arm_autovectorize_vector_sizes): New
8661 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
8663 2011-03-26 Eric Botcazou <ebotcazou@adacore.com>
8665 * basic-block.h (fixup_abnormal_edges): Adjust prototype.
8666 * reload1.c (reload): Adjust call to fixup_abnormal_edges. Rediscover
8667 basic blocks and call commit_edge_insertions directly.
8668 (fixup_abnormal_edges): Move from here to...
8669 * cfgrtl.c (fixup_abnormal_edges): ...here. Only insert instructions
8670 on the edges and return whether some have actually been inserted.
8671 * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
8674 2011-03-26 Andrey Belevantsev <abel@ispras.ru>
8676 PR rtl-optimization/48144
8677 * sel-sched-ir.c (merge_history_vect): Factor out from ...
8678 (merge_expr_data): ... here.
8679 (av_set_intersect): Rename to av_set_code_motion_filter.
8680 Update all callers. Call merge_history_vect when an expression
8681 is found in both sets.
8682 * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
8684 2011-03-26 Alan Modra <amodra@gmail.com>
8686 * config/rs6000/predicates.md (word_offset_memref_op): Handle
8687 cmodel medium addresses.
8688 * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
8689 64-bit gpr loads and stores.
8690 (rs6000_secondary_reload_ppc64): New function.
8691 * config/rs6000/rs6000-protos.h: Declare it.
8692 * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
8694 2011-03-26 Alan Modra <amodra@gmail.com>
8697 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
8698 GNU Go in traceback table.
8700 2011-03-25 Richard Henderson <rth@redhat.com>
8702 * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
8703 if there are exactly 6 operands.
8704 (set_storage_via_setmem): Similarly.
8706 2011-03-25 Kai Tietz <ktietz@redhat.com>
8708 * collect2.c (write_c_file_stat): Handle backslash
8709 as right-hand directory separator.
8710 (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
8711 checking just for slash.
8712 * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
8713 instead of checking for trailing slash.
8714 * gcc.c (record_temp_file): Use filename_cmp instead
8716 (do_spec_1): Likewise.
8717 (replace_outfile_spec_function): Likewise.
8718 (is_directory): Use filename_ncmp instead of strncmp.
8719 (print_multilib_info): Likewise.
8720 * gcov.c (find_source): Use filename_cmp instead
8722 (make_gcov_file_name): Fix order of slash/backslash
8724 * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
8725 (add_standard_paths): Likewise.
8726 * mips-tfile.c (saber_stop): Handle backslash.
8727 * prefix.c (update_path): Use filename_ncmp instead of
8729 * profile.c (output_location): Use filename_cmp instead
8731 * read-md.c (handle_toplevel_file): Handle backslash.
8732 * tlink.c (frob_extension): Likewise.
8733 * tree-cfg.c (same_line_p): Use filename_cmp instead of
8735 * tree-dump.c (dequeue_and_dump): Handle backslash.
8736 * tree.c (get_file_function_name): Likewise.
8737 * gengtype.c (read_input_list): Likewise.
8738 (get_file_realbasename): Likewise.
8739 (get_output_file_with_visibility): Use filename_cmp
8742 2011-03-25 Richard Sandiford <richard.sandiford@linaro.org>
8744 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
8747 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
8749 * fold-const.c (expr_location_or): New function.
8750 (fold_truth_not_expr): Call it.
8752 2011-03-25 Jeff Law <law@redhat.com>
8754 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
8756 * c-family/c-common.c (def_fn_type): Likewise.
8757 * ada/gcc-interface/utils.c (def_fn_type): Likewise.
8758 * emit-rtl.c (gen_rtvec): Likewise.
8759 * lto/lto-lang.c (def_fn_type): Likewise.
8761 2011-03-25 Richard Guenther <rguenther@suse.de>
8763 * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
8764 also generate copies.
8765 (fini_copy_prop): Handle constant values properly.
8767 2011-03-25 Jakub Jelinek <jakub@redhat.com>
8769 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
8770 mode size instead of bitsize with DWARF2_ADDR_SIZE.
8771 (hash_loc_operands, compare_loc_operands): Handle
8772 DW_OP_GNU_entry_value.
8774 2011-03-25 Kai Tietz <ktietz@redhat.com>
8776 * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
8777 (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
8778 * config/i386/i386.c (ix86_conditional_register_usage): Adjust
8779 comment and use macro TARGET_64BIT_MS_ABI instead.
8780 (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
8781 and change default behavior for 32-bit MS_ABI.
8782 (ix86_reg_parm_stack_space): Check additionally for bit-ness.
8783 (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
8785 (ix86_cfun_abi): Likewise.
8786 (ix86_maybe_switch_abi): Adjust comment.
8787 (init_cumulative_args): Check for bit-ness in MS_ABI case.
8788 (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
8789 instead of checking for SYSV_ABI.
8790 (ix86_nsaved_sseregs): Likewise.
8791 (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
8793 (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
8794 * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
8795 (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
8796 (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
8797 * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
8799 2011-03-25 Richard Guenther <rguenther@suse.de>
8801 * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
8802 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
8803 (verify_gimple): Remove.
8804 * tree-cfg.c (verify_gimple_call): Merge verification
8806 (verify_gimple_phi): Merge verification from verify_stmts.
8807 (verify_gimple_label): New function.
8808 (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
8809 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
8810 (verify_stmt): Merge into verify_gimple_in_cfg and callees.
8811 (verify_stmts): Rename to verify_gimple_in_cfg.
8812 (verify_gimple_in_cfg): New function.
8813 * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
8814 * tree-ssa.c (verify_ssa): Likewise.
8815 * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
8817 2011-03-25 Richard Guenther <rguenther@suse.de>
8819 * passes.c (init_optimization_passes): Add FRE pass after
8822 2011-03-25 Bernd Schmidt <bernds@codesourcery.com>
8823 Andrew Stubbs <ams@codesourcery.com>
8825 * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
8827 (arm_movdi_vfp_cortexa8): New pattern.
8828 * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
8829 iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
8830 instructions when tuning for Cortex-A8. Set attribute "arch".
8831 * config/arm/arm.md: Move include arm-tune.md up a bit.
8832 (define_attr "arch"): Add "onlya8" and "nota8" values.
8833 (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
8835 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
8839 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
8841 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
8842 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
8843 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
8844 * passes.c (init_optimization_passes): Move
8845 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
8847 2011-03-25 Kai Tietz <ktietz@redhat.com>
8849 * c-typeck.c (comptypes_internal): Replace target
8850 hook call of comp_type_attributes by version in tree.c file.
8851 * gimple.c (gimple_types_compatible_p_1): Likewise.
8852 * tree-ssa.c (useless_type_conversion_p): Likewise.
8853 * tree.c (build_type_attribute_qual_variant): Likewise.
8854 (attribute_value_equal): New static helper function.
8855 (comp_type_attributes): New function.
8856 (merge_attributes): Use attribute_value_equal for comparison.
8857 (attribute_list_contained): Likewise.
8858 * tree.h (comp_type_attributes): New prototype.
8860 2011-03-25 Richard Guenther <rguenther@suse.de>
8862 * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
8863 of complex types at -O0.
8864 (verify_gimple_assign_binary): Likewise.
8865 (verify_gimple_assign_ternary): Likewise.
8867 2011-03-24 Mark Wielaard <mjw@redhat.com>
8869 * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
8870 (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
8872 2011-03-24 Mark Wielaard <mjw@redhat.com>
8875 * dwarf2out.c (output_abbrev_section): Only write table when
8876 abbrev_die_table_in_use > 1.
8878 2011-02-24 Richard Henderson <rth@redhat.com>
8880 * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
8881 (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
8882 (alpha_expand_unaligned_load_words): Use extql.
8883 (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
8884 (emit_insxl): Handle all modes for consistency.
8886 2011-02-24 Richard Henderson <rth@redhat.com>
8888 * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
8889 (alpha_expand_unaligned_load): Likewise.
8890 (alpha_expand_unaligned_store): Likewise.
8891 (alpha_expand_unaligned_load_words): Likewise.
8892 (alpha_expand_unaligned_store_words): Likewise.
8893 (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
8894 (alpha_split_lock_test_and_set_12): Likewise.
8895 (print_operand, alpha_fold_builtin_extxx): Likewise.
8896 (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
8897 * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
8898 (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
8899 (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
8900 (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
8901 (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
8902 (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
8903 (unaligned_storeqi_be, unaligned_storehi_be): Remove.
8904 (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
8905 (extwl, extll, extql): Similarly.
8906 (inswh, inslh, insqh): Similarly.
8907 (mskbl, mskwl, mskll, mskql): Similarly.
8908 (mskwh, msklh, mskqh): Similarly.
8910 2011-02-24 Richard Henderson <rth@redhat.com>
8912 * config/alpha/alpha.md (attribute isa): Add er, ner.
8913 (attribute enabled): Handle them.
8914 (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
8916 2011-02-24 Richard Henderson <rth@redhat.com>
8918 * config/alpha/alpha.md (attribute isa): Add vms.
8919 (attribute enabled): Handle it.
8920 (*movsf): Merge *movsf_{nofix,fix,nofp}.
8921 (*movdf): Merge *movdf_{nofix,fix,nofp}.
8922 (*movtf): Rename from *movtf_internal for consistency.
8923 (*movsi): Merge with *movsi_nt_vms.
8924 (*movhi): Merge *movhi_nobwx, *movhi_bwx.
8925 (*movqi): Merge *movqi_nobwx, *movqi_bwx.
8926 (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
8927 * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
8929 2011-02-24 Richard Henderson <rth@redhat.com>
8931 * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
8932 (extendqisi2, extendhisi2): Likewise.
8933 (extendqidi2): Simplify BWX/non-BWX expansions.
8934 (extendhidi2): Similarly.
8936 2011-02-24 Richard Henderson <rth@redhat.com>
8938 * config/alpha/alpha.md (attribute isa): New.
8939 (attribute enabled): New.
8940 (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
8941 (zero_extendqisi2, zero_extendqidi2): Similarly.
8942 (zero_extendhisi2, zero_extendhidi2): Similarly.
8943 * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
8945 2011-02-24 Richard Henderson <rth@redhat.com>
8947 * config/alpha/predicates.md (input_operand): Revert last change;
8948 update comment to mention 32-bit VMS rather than Windows.
8950 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
8952 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
8953 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
8954 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
8955 * passes.c (init_optimization_passes): Move
8956 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
8958 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
8960 * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
8962 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
8964 * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
8967 2011-03-24 Jakub Jelinek <jakub@redhat.com>
8970 * simplify-rtx.c (simplify_const_unary_operation): Call
8971 real_convert when changing mode class with FLOAT_EXTEND.
8973 2011-03-24 Nick Clifton <nickc@redhat.com>
8975 * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
8976 (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
8977 * config/rx/rx.c (rx_option_override): Set align_jumps,
8978 align_loops and align_labels if not set by the user.
8979 (rx_align_for_label): New function.
8980 (rx_max_skip_for_label): New function.
8981 (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
8982 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
8983 (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
8984 (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
8985 * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
8987 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
8989 PR rtl-optimization/48263
8990 * optabs.c (expand_binop_directly): Reinstate convert_modes code
8991 and original commutative_p handling. Use maybe_gen_insn.
8993 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8995 * reload.c (find_reloads_subreg_address): Add address_reloaded
8996 parameter and return true there if the full address has been
8998 (find_reloads_toplev): Pass address_reloaded flag.
8999 (find_reloads_address_1): Don't use address_reloaded parameter.
9001 2011-03-24 Jeff Law <law@redhat.com>
9003 * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
9004 unused variable "ann".
9005 (remove_unused_locals): Likewise.
9007 * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
9010 * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
9013 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9015 * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
9016 for invalid symbolic addresses.
9017 (s390_secondary_reload): Don't use s390_check_symref_alignment for
9020 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
9022 * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
9023 the argument in calls to fold_truth_not_expr.
9025 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
9027 * tree.c (record_node_allocation_statistics): New function.
9028 (make_node_stat, copy_node_stat, build_string): Call it.
9029 (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
9030 (build1_stat, build_omp_clause): Likewise.
9032 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
9034 * builtins.c (expand_movstr): Fix endp == 1 adjustment after
9037 2011-03-24 Richard Guenther <rguenther@suse.de>
9039 PR tree-optimization/48271
9040 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
9041 blocks that still exist.
9043 2011-03-24 Richard Guenther <rguenther@suse.de>
9045 PR tree-optimization/48270
9046 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
9047 not free datarefs before ddrs.
9049 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
9051 * tree-sra.c (build_ref_for_offset): Strip useless type conversions
9052 from the address built for a reference with variable offset.
9054 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
9057 * config/i386/i386.md (*movdf_internal_rex64): Do not split
9058 alternatives that can be handled with movq or movabsq insn.
9059 (*movdf_internal): Disable for !TARGET_64BIT.
9060 (*movdf_internal_nointeger): Ditto.
9061 * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
9063 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
9065 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
9066 (FUNCTION_ARG_ADVANCE): Likewise.
9067 * tm.texi.in: Change references to them to hook references.
9068 * tm.texi: Regenerate.
9069 * targhooks.c (default_function_arg): Eliminate check for target macro.
9070 (default_function_incoming_arg): Likewise.
9071 (default_function_arg_advance): Likewise.
9072 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
9073 (function_arg_advance): Likewise.
9074 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
9076 2011-03-24 Richard Guenther <rguenther@suse.de>
9079 * tree-object-size.c (addr_object_size): Do not double-account
9080 for MEM_REF offsets.
9082 2011-03-24 Diego Novillo <dnovillo@google.com>
9084 * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
9085 * lto-streamer-in.c (input_string_internal): Add clarifying comments.
9086 (lto_input_data_block): Move from lto-opts.c. Make extern.
9088 (lto_input_string): Rename from input_string. Make extern.
9090 * lto-streamer-out.c (lto_output_string_with_length): Rename from
9091 output_string_with_length.
9092 Output 0 to indicate a non-NULL string. Update all callers to
9094 (lto_output_string): Rename from output_string. Make extern.
9096 (lto_output_decl_state_streams): Make extern.
9097 (lto_output_decl_state_refs): Make extern.
9098 * lto-streamer.h (lto_input_string): Declare.
9099 (lto_input_data_block): Declare.
9100 (lto_output_string): Declare.
9101 (lto_output_string_with_length): Declare.
9102 (lto_output_decl_state_streams): Declare.
9103 (lto_output_decl_state_refs): Declare.
9105 2011-03-24 Richard Guenther <rguenther@suse.de>
9107 PR tree-optimization/46562
9108 * tree.c (build_invariant_address): New function.
9109 * tree.h (build_invariant_address): Declare.
9110 * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
9111 a renamed function moved ...
9112 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
9113 Take valueization callback parameter.
9114 * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
9115 * gimple-fold.h: New file.
9116 * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
9117 (ccp_fold, fold_const_aggregate_ref,
9118 fold_ctor_reference, fold_nonarray_ctor_reference,
9119 fold_array_ctor_reference, fold_string_cst_ctor_reference,
9120 get_base_constructor): Move ...
9121 * gimple-fold.c: ... here.
9122 (gimple_fold_stmt_to_constant_1): New function
9123 split out from ccp_fold. Take a valueization callback parameter.
9124 Valueize all operands.
9125 (gimple_fold_stmt_to_constant): New wrapper function.
9126 (fold_const_aggregate_ref_1): New function split out from
9127 fold_const_aggregate_ref. Take a valueization callback parameter.
9128 (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
9129 * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
9130 invariant POINTER_PLUS_EXPRs to invariant form.
9131 (vn_valueize): New function.
9132 (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
9133 * tree-vrp.c (vrp_valueize): New function.
9134 (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
9135 to fold statements to constants.
9136 * tree-ssa-pre.c (eliminate): Properly guard propagation of
9137 function declarations.
9138 * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
9139 tree-ssa-ccp.o): Add gimple-fold.h dependencies.
9141 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
9143 * config/h8300/predicates.md (jump_address_operand): Fix register
9146 2011-03-24 Ira Rosen <ira.rosen@linaro.org>
9148 * doc/invoke.texi (max-stores-to-sink): Document.
9149 * params.h (MAX_STORES_TO_SINK): Define.
9150 * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
9151 if either vectorization or if-conversion is disabled.
9152 * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
9153 tree-vect-data-refs.c vect_equal_offsets.
9154 (dr_equal_offsets_p): New function.
9155 (find_data_references_in_bb): Remove static.
9156 * tree-data-ref.h (find_data_references_in_bb): Declare.
9157 (dr_equal_offsets_p): Likewise.
9158 * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
9159 (vect_drs_dependent_in_basic_block): Update calls to
9161 (vect_check_interleaving): Likewise.
9162 * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
9163 (cond_if_else_store_replacement): Rename to...
9164 (cond_if_else_store_replacement_1): ... this. Change arguments and
9166 (cond_if_else_store_replacement): New function.
9167 * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
9168 * params.def (PARAM_MAX_STORES_TO_SINK): Define.
9170 2011-03-23 Chung-Lin Tang <cltang@codesourcery.com>
9173 * config/arm/arm.md (casesi): Use the gen_int_mode() function
9174 to subtract lower bound instead of GEN_INT().
9176 2011-03-23 Jonathan Wakely <jwakely.gcc@gmail.com>
9181 * doc/extend.texi (Alignment): Move section to match order in TOC.
9182 * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
9183 (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
9185 2011-03-23 Jeff Law <law@redhat.com>
9187 * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
9188 before removing the edge.
9190 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
9191 it may have been freed by redirect_branch_edge or
9192 redirect_edge_succ_nodup.
9194 2011-03-23 Richard Guenther <rguenther@suse.de>
9196 * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
9197 (check_va_list_escapes): Likewise.
9198 (check_all_va_list_escapes): Likewise.
9200 2011-03-23 Richard Guenther <rguenther@suse.de>
9202 * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
9203 (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
9204 (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
9205 (alias.o): Likewise.
9206 (ipa-type-escape.o): Remove.
9207 (ipa-struct-reorg.o): Likewise.
9208 (GTFILES): Remove ipa-struct-reorg.c.
9209 * alias.c: Do not include ipa-type-escape.h.
9210 * tree-ssa-alias.c: Likewise.
9211 * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
9212 * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
9213 * passes.c (init_optimization_passes): Remove ipa-struct-reorg
9214 and ipa-type-escape passes.
9215 * tree-pass.h (pass_ipa_type_escape): Remove.
9216 (pass_ipa_struct_reorg): Likewise.
9217 * ipa-struct-reorg.h: Remove.
9218 * ipa-struct-reorg.c: Likewise.
9219 * ipa-type-escape.h: Likewise.
9220 * ipa-type-escape.c: Likewise.
9221 * doc/invoke.texi (-fipa-struct-reorg): Remove.
9222 (--param struct-reorg-cold-struct-ratio): Likewise.
9223 * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
9224 * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
9225 * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
9227 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9229 * config/s390/2084.md: Enable all insn reservations also for z9_ec
9230 cpu attribute value.
9231 * config/s390/s390-opts.h (enum s390_arch_option): Remove.
9232 (enum processor_type): Add PROCESSOR_2094_Z9_EC.
9233 * config/s390/s390.c (processor_flags_table): New constant array.
9234 (s390_handle_arch_option): Remove.
9235 (s390_handle_option): Remove s390_handle_arch_option invocations
9236 and OPT_mwarn_framesize_ handling.
9237 (s390_option_override): Remove s390_handle_arch_option invocation.
9238 (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
9240 * config/s390/s390.md (cpu attribute): Add z9_ec value.
9241 * config/s390/s390.opt (s390_tune, s390_arch)
9242 (march=): Replace s390_arch_option enum and values with
9243 processor_type. Set variable name to s390_arch. Set
9244 initialization value.
9245 (mtune=): Replace s390_arch_option with processor_type. Set
9246 variable name to s390_tune. Set initialization value.
9248 2011-03-23 Julian Brown <julian@codesourcery.com>
9250 * expr.c (expand_expr_real_1): Only use BLKmode for volatile
9251 accesses which are not naturally aligned.
9253 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
9256 * config/arm/predicates.md (neon_lane_number): Accept 0..15.
9258 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
9260 * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
9261 parameter from "int" to "enum insn_code".
9262 (expand_operand_type): New enum.
9263 (expand_operand): New structure.
9264 (create_expand_operand): New function.
9265 (create_fixed_operand, create_output_operand): Likewise
9266 (create_input_operand, create_convert_operand_to): Likewise.
9267 (create_convert_operand_from, create_address_operand): Likewise.
9268 (create_integer_operand): Likewise.
9269 (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
9270 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
9271 (expand_insn, expand_jump_insn): Likewise.
9272 * builtins.c (expand_builtin_prefetch): Use the new interfaces.
9273 (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
9274 (expand_movstr, expand_builtin___clear_cache): Likewise.
9275 (expand_builtin_lock_release): Likewise.
9276 * explow.c (allocate_dynamic_stack_space): Likewise.
9277 (probe_stack_range): Likewise. Allow check_stack to FAIL,
9278 and use the default handling in that case.
9279 * expmed.c (check_predicate_volatile_ok): Delete.
9280 (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
9281 (emit_cstore): Likewise.
9282 * expr.c (emit_block_move_via_movmem): Likewise.
9283 (set_storage_via_setmem, expand_assignment): Likewise.
9284 (emit_storent_insn, try_casesi): Likewise.
9285 (emit_single_push_insn): Likewise. Allow the expansion to fail.
9286 * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
9287 (expand_vec_shift_expr, expand_binop_directly): Likewise.
9288 (expand_twoval_unop, expand_twoval_binop): Likewise.
9289 (expand_unop_direct, emit_indirect_jump): Likewise.
9290 (emit_conditional_move, vector_compare_rtx): Likewise.
9291 (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
9292 (expand_sync_operation, expand_sync_fetch_operation): Likewise.
9293 (expand_sync_lock_test_and_set): Likewise.
9294 (maybe_emit_unop_insn): Likewise. Change icode to an insn_code.
9295 (emit_unop_insn): Likewise.
9296 (expand_copysign_absneg): Change icode to an insn_code.
9297 (create_convert_operand_from_type): New function.
9298 (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
9299 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
9300 (expand_insn, expand_jump_insn): Likewise.
9301 * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
9302 than const_int_operand for operand 2.
9304 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9306 * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
9309 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
9311 * emit-rtl.c (emit_pattern_before_noloc): New function.
9312 (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
9313 (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
9314 (emit_pattern_after_noloc): New function.
9315 (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
9316 (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
9318 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
9320 * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
9321 (__ffsDI2): Likewise.
9323 2011-03-22 Richard Henderson <rth@redhat.com>
9325 * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
9326 of !TARGET_ABI_OPEN_VMS.
9327 (alpha_trampoline_init, alpha_start_function): Likewise.
9328 (alpha_expand_epilogue, alpha_file_start): Likewise.
9329 * config/alpha/alpha.md (divsi3, modsi3): Likewise.
9330 (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
9331 (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
9332 (*divmodsi_internal, *divmoddi_internal_er): Likewise.
9333 (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
9335 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9337 * config/s390/s390-opts.h: New.
9338 * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
9339 s390_arch_flags, s390_warn_framesize, s390_stack_size,
9340 s390_stack_guard): Remove.
9341 (s390_handle_arch_option): Return void. Take enum
9342 s390_arch_option value instead of string and searching array.
9343 (s390_handle_option): Don't assert that global structures are in
9344 use. Access variables via opts pointer. Use error_at. Don't use
9345 sscanf for -mstack-guard= or -mstack-size=. Update call to
9346 s390_handle_arch_option.
9347 (s390_option_override): Update call to s390_handle_arch_option.
9348 (s390_emit_prologue): Use %d format for s390_stack_size in
9349 diagnostic. Use %wd for HOST_WIDE_INT.
9350 * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
9351 (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
9352 * config/s390/s390.opt (config/s390/s390-opts.h): New
9353 HeaderInclude entry.
9354 (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
9355 s390_arch_flags, s390_warn_framesize): New Variable entries.
9356 (s390_arch_option): New Enum and EnumValue entries.
9357 (march=): Use Enum instead of Var.
9358 (mstack-guard=, mstack-size=): Use UInteger and Var.
9361 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9363 * config/score/score.c (score_handle_option): Don't assert that
9364 global structures are in use. Access target_flags via opts
9365 pointer. Use value of -march= option to determine target_flags
9367 * config/score/score.opt (march=): Use Enum.
9368 (score_arch): New Enum and EnumValue entries.
9370 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9372 * config/mep/mep.c (option_mtiny_specified): Remove.
9373 (mep_option_override): Move register handling for -mivc2 from
9374 mep_handle_option. Use global_options_set.x_mep_tiny_cutoff
9375 instead of option_mtiny_specified.
9376 (mep_handle_option): Access target_flags via opts pointer. Don't
9377 assert that global structures are in use. Defer part of -mivc2
9378 handling and move it to mep_option_override.
9379 * config/mep/mep.opt (IVC2): New Mask entry.
9380 (mivc2): Use Var and Defer instead of Mask.
9382 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9384 * config/v850/v850-opts.h: New.
9385 * config/v850/v850.c (small_memory): Replace with
9386 small_memory_physical_max array. Make that array static const.
9387 (v850_handle_memory_option): Take integer value of argument. Take
9388 gcc_options pointer, option text and location. Return void.
9389 Update for changes to small memory structures.
9390 (v850_handle_option): Access target_flags via opts pointer. Don't
9391 assert that global structures are in use. Update calls to
9392 v850_handle_memory_option.
9393 (v850_encode_data_area): Update references to small memory settings.
9394 * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
9395 (enum small_memory_type): Move to v850-opts.h.
9396 * config/v850/v850.opt (config/v850/v850-opts.h): New
9397 HeaderInclude entry.
9398 (small_memory_max): New Variable entry.
9399 (msda): Replace by pair of options msda= and msda-. Use UInteger.
9400 (mtda, mzda): Likewise.
9402 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9404 * config/sh/sh.c (sh_handle_option): Access target_flags via opts
9405 pointer. Don't assert that global structures are in use.
9407 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9409 * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
9410 via opts pointer. Don't assert that global structures are in use.
9412 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9414 * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
9415 (munix=93): Use Var.
9416 * config/pa/pa-hpux1010.opt (munix=95): Use Var.
9417 * config/pa/pa-hpux1111.opt (munix=98): Use Var.
9418 * config/pa/pa-opts.h: New.
9419 * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
9420 (pa_handle_option): Don't assert that global structures are in
9421 use. Access target_flags via opts pointer. Don't handle
9422 OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
9424 (pa_option_override): Handle deferred OPT_mfixed_range_.
9426 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9428 * config/mn10300/mn10300-opts.h: New.
9429 * config/mn10300/mn10300.c (mn10300_processor,
9430 mn10300_tune_string): Remove.
9431 (mn10300_handle_option): Don't assert that global structures are
9432 in use. Access mn10300_processor via opts pointer. Don't handle
9434 * config/mn10300/mn10300.h (enum processor_type): Move to
9436 (mn10300_processor): Remove.
9437 * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
9438 HeaderInclude entry.
9439 (mn10300_processor): New Variable entry.
9442 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9444 * config/microblaze/microblaze.c: Don't include opts.h.
9445 (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
9446 * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
9447 (mno-clearbss): Use Var and Warn.
9449 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9451 * config/m32r/m32r-opts.h: New.
9452 * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
9453 (m32r_handle_option): Don't assert that global structures are in
9454 use. Access target_flags and m32r_cache_flush_func via opts
9455 pointer. Don't handle OPT_mmodel_, OPT_msdata_ or
9456 OPT_mno_flush_trap here.
9457 * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
9458 include of m32r-opts.h.
9459 * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
9460 HeaderInclude entry.
9461 (m32r_model_selected, m32r_sdata_selected): New Variable entries.
9462 (mmodel=): Use Enum and Var.
9463 (m32r_model): New Enum and EnumValue entries.
9464 (mno-flush-trap): Use Var.
9465 (msdata=): Use Enum and Var.
9466 (m32r_sdata): New Enum and EnumValue entries.
9468 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9470 * config/m32c/m32c.c: Don't include opts.h.
9471 (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
9472 m32c_handle_option): Remove.
9473 (m32c_option_override): Check global_options_set.x_target_memregs
9474 instead of target_memregs_set.
9475 * config/m32c/m32c.h (target_memregs): Remove.
9476 * config/m32c/m32c.opt (memregs=): Use UInteger with integer
9479 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9481 * config/iq2000/iq2000-opts.h: New.
9482 * config/iq2000/iq2000.c: Don't include opts.h.
9483 (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
9484 * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
9485 * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
9486 HeaderInclude entry.
9487 (iq2000_tune): New Variable entry.
9488 (march=): Add comment. Use Enum.
9489 (iq2000_arch): New Enum and EnumValue entries.
9490 (mcpu=): Use Enum and Var.
9491 (iq2000_tune): New Enum and EnumValue entries.
9493 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9495 * config/ia64/ia64-opts.h: New.
9496 * config/ia64/ia64.c (ia64_tune): Remove.
9497 (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
9499 (ia64_option_override): Handle deferred OPT_mfixed_range_.
9500 * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
9501 * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
9502 HeaderInclude entry.
9503 (ia64_tune): New Variable entry.
9504 (mfixed-range=): Use Defer and Var.
9505 (mtune=): Use Enum and Var.
9506 (ia64_tune): New Enum and EnumValue entries.
9508 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9510 * config/frv/frv-opts.h: New.
9511 * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
9513 (frv_cpu_type): Remove.
9514 * config/frv/frv.c: Don't include opts.h.
9515 (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
9516 * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
9517 (frv_cpu_type): New Variable entry.
9518 (frv_cpu): New Enum and EnumValue entries.
9520 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9522 * config/cris/cris.c (cris_handle_option): Access target_flags via
9523 opts pointer. Don't assert that global structures are in use.
9524 Don't call CRIS_SUBTARGET_HANDLE_OPTION.
9525 * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
9527 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9529 * config/bfin/bfin-opts.h: New.
9530 * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
9531 bfin_si_revision, bfin_workarounds): Remove.
9532 (bfin_cpus): Make static const.
9533 (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
9534 not bfin_lib_id_given.
9535 (bfin_handle_option): Don't set bfin_lib_id_given. Access
9536 bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
9537 pointer. Use error_at. Don't assert that global structures are in use.
9538 * config/bfin/bfin.h: Include bfin-opts.h.
9539 (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
9540 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
9541 * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
9542 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
9545 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9547 * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
9548 * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
9549 or -msoft-float here.
9550 * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
9551 -msoft-float and -mhard-float.
9552 (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
9553 * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
9555 * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
9557 (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
9558 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
9560 (LIBGCC_SPEC): Don't handle -msoft-float.
9561 * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
9563 * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
9565 * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
9566 -mfloat-abi=*, not -msoft-float and -mhard-float.
9567 * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
9569 * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
9570 Use mfloat-abi=hard and mfloat-abi=soft in comments, not
9571 mhard-float and msoft-float.
9572 * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
9573 mfloat-abi=soft in comments, not mhard-float and msoft-float.
9574 * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
9575 mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
9577 * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
9578 mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
9580 * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
9582 * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
9585 2011-03-22 Richard Henderson <rth@redhat.com>
9587 * config/alpha/alpha.c (alpha_expand_prologue): Don't test
9588 TARGET_ABI_WINDOWS_NT.
9589 (alpha_output_function_end_prologue): Likewise.
9590 * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
9591 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
9592 * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
9593 (trap, *movsi_nt_vms): Likewise.
9594 (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
9595 (*tablejump_osf_nt_internal): Remove.
9596 * config/alpha/predicates.md (input_operand): Only test Pmode.
9598 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9600 * config/alpha/alpha.c (alpha_handle_option): Access target_flags
9601 via opts pointer. Use error_at. Don't assert that global
9602 structures are in use.
9604 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9606 * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
9607 (ix86_handle_option): Access ix86_isa_flags and
9608 ix86_isa_flags_explicit via opts pointer. Don't assert that
9609 global structures are in use.
9610 (ix86_function_specific_save, ix86_function_specific_restore):
9611 Update ix86_isa_flags_explicit field name.
9612 * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
9613 (ix86_isa_flags_explicit): Rename TargetSave entry to
9614 x_ix86_isa_flags_explicit.
9616 2011-03-22 Richard Henderson <rth@redhat.com>
9618 * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
9619 (alpha_option_override, direct_return): Likewise.
9620 (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
9621 (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
9622 (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
9623 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
9624 (alpha_expand_epilogue, alpha_end_function): Likewise.
9625 (alpha_init_libfuncs): Likewise.
9626 (struct machine_function): Remove unicosmk members.
9627 (print_operand) ['t']: Remove.
9628 (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
9629 unicosmk_output_module_name, unicosmk_output_common,
9630 current_section_align, unicosmk_output_text_section_asm_op,
9631 unicosmk_output_data_section_asm_op, unicosmk_init_sections,
9632 unicosmk_section_type_flags, unicosmk_unique_section,
9633 unicosmk_asm_named_section, unicosmk_insert_attributes,
9634 unicosmk_output_align, unicosmk_defer_case_vector,
9635 unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
9636 SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
9637 unicosmk_output_ssib, unicosmk_add_call_info_word,
9638 unicosmk_extern_head, unicosmk_output_default_externs,
9639 unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
9640 unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
9641 unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
9642 * config/alpha/alpha-protos.h: Update.
9643 * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
9644 * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
9645 (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
9646 (mulsi3): Don't test TARGET_ABI_UNICOSMK.
9647 (*mulsi_se, mulvsi3): Likewise.
9648 (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
9649 (*divmodsi_internal, call, call_value, realign): Likewise.
9650 (moddi3, umoddi3): Likewise; remove duplicate expander.
9651 (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
9652 (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
9653 (*movdi_nofix): Remove r/U alternative.
9654 (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
9655 * config/alpha/constraints.md ("U"): Remove.
9656 * config/alpha/predicates.md (call_operand"): Don't test
9657 TARGET_ABI_UNICOSMK.
9659 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9661 * target.def (handle_option): Take gcc_options and
9662 cl_decoded_option pointers and location_t.
9663 * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
9664 * doc/tm.texi: Regenerate.
9665 * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
9666 * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
9667 * lto-opts.c (lto_reissue_options): Generate option structure for
9668 targetm.handle_option call.
9669 * opts.c (target_handle_option): Update call to
9670 targetm.handle_option. Remove assertions about values now passed
9672 * targhooks.c (default_target_handle_option): New.
9673 * targhooks.h (default_target_handle_option): Declare.
9674 * config/alpha/alpha.c: Include opts.h.
9675 (alpha_handle_option): Update to new hook interface.
9676 * config/arm/arm.c: Include opts.h.
9677 (arm_handle_option): Update to new hook interface.
9678 * config/arm/t-arm (arm.o): Update dependencies.
9679 * config/bfin/bfin.c: Include opts.h.
9680 (bfin_handle_option): Update to new hook interface.
9681 * config/cris/cris.c: Include opts.h.
9682 (cris_handle_option): Update to new hook interface.
9683 * config/frv/frv.c: Include opts.h.
9684 (frv_handle_option): Update to new hook interface.
9685 * config/i386/i386.c: Include opts.h.
9686 (ix86_handle_option): Update to new hook interface.
9687 (ix86_valid_target_attribute_inner_p): Generate option structure
9688 for call to ix86_handle_option.
9689 * config/i386/t-i386 (i386.o): Update dependencies.
9690 * config/ia64/ia64.c: Include opts.h.
9691 (ia64_handle_option): Update to new hook interface.
9692 * config/ia64/t-ia64 (ia64.o): Update dependencies.
9693 * config/iq2000/iq2000.c: Include opts.h.
9694 (iq2000_handle_option): Update to new hook interface.
9695 * config/m32c/m32c.c: Include opts.h.
9696 (m32c_handle_option): Update to new hook interface.
9697 * config/m32r/m32r.c: Include opts.h.
9698 (m32r_handle_option): Update to new hook interface.
9699 * config/m68k/m68k.c: Include opts.h.
9700 (m68k_handle_option): Update to new hook interface.
9701 * config/mep/mep.c: Include opts.h.
9702 (mep_handle_option): Update to new hook interface.
9703 * config/microblaze/microblaze.c: Include opts.h.
9704 (microblaze_handle_option): Update to new hook interface.
9705 * config/mips/mips.c: Include opts.h.
9706 (mips_handle_option): Update to new hook interface.
9707 * config/mn10300/mn10300.c: Include opts.h.
9708 (mn10300_handle_option): Update to new hook interface.
9709 * config/pa/pa.c: Include opts.h.
9710 (pa_handle_option): Update to new hook interface.
9711 * config/pdp11/pdp11.c: Include opts.h.
9712 (pdp11_handle_option): Update to new hook interface.
9713 * config/rs6000/rs6000.c: Include opts.h.
9714 (rs6000_handle_option): Update to new hook interface.
9715 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
9716 * config/rx/rx.c: Include opts.h.
9717 (rx_handle_option): Update to new hook interface.
9718 * config/s390/s390.c: Include opts.h.
9719 (s390_handle_option): Update to new hook interface.
9720 * config/score/score.c: Include opts.h.
9721 (score_handle_option): Update to new hook interface.
9722 * config/sh/sh.c: Include opts.h.
9723 (sh_handle_option): Update to new hook interface.
9724 * config/sparc/sparc.c: Include opts.h.
9725 (sparc_handle_option): Update to new hook interface.
9726 * config/v850/v850.c: Include opts.h.
9727 (v850_handle_option): Update to new hook interface.
9729 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9731 * gcc.c (driver_unknown_option_callback): Only permit and save
9732 unknown -Wno- options.
9733 (driver_wrong_lang_callback): Save options directly instead of via
9734 driver_unknown_option_callback.
9736 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
9738 * combine.c (simplify_set): Try harder to find the best CC mode when
9739 simplifying a nested COMPARE on the RHS.
9741 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9743 * config/alpha/gnu.h: Remove.
9744 * config/arc: Remove directory.
9745 * config/arm/netbsd.h: Remove.
9746 * config/arm/t-pe: Remove.
9747 * config/crx: Remove directory.
9748 * config/i386/netbsd.h: Remove.
9749 * config/m68hc11: Remove directory.
9750 * config/m68k/uclinux-oldabi.h: Remove.
9751 * config/mcore/mcore-pe.h: Remove.
9752 * config/mcore/t-mcore-pe: Remove.
9753 * config/netbsd-aout.h: Remove.
9754 * config/rs6000/gnu.h: Remove.
9755 * config/sh/sh-symbian.h: Remove.
9756 * config/sh/symbian-base.c: Remove.
9757 * config/sh/symbian-c.c: Remove.
9758 * config/sh/symbian-cxx.c: Remove.
9759 * config/sh/symbian-post.h: Remove.
9760 * config/sh/symbian-pre.h: Remove.
9761 * config/sh/t-symbian: Remove.
9762 * config/svr3.h: Remove.
9763 * config/vax/netbsd.h: Remove.
9764 * config.build: Don't handle i[34567]86-*-pe.
9765 * config.gcc: Remove handling of deprecations for most deprecated
9767 (m68k-*-uclinuxoldabi*): Add to second deprecated list.
9768 (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
9769 i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
9770 m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
9771 powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
9772 sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
9774 * config.host: Don't handle i[34567]86-*-pe.
9775 * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
9776 (ASM_SPEC32): Don't handle -mcall-gnu.
9777 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
9779 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
9780 STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
9781 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
9782 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
9783 (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
9784 * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
9785 conditional on SYMBIAN.
9786 * configure.ac: Don't handle powerpc*-*-gnu*.
9787 * configure: Regenerate.
9788 * doc/extend.texi (interrupt attribute): Don't mention CRX.
9789 * doc/install-old.texi (m6811, m6812): Don't mention.
9790 * doc/install.texi (arc-*-elf*): Don't document multilib option.
9791 (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
9792 (m68k-uclinuxoldabi): Don't mention.
9793 * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
9795 (-mcall-gnu): Remove.
9796 * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
9797 families): Remove constraint documentation.
9799 2011-03-22 Marius Strobl <marius@FreeBSD.org>
9801 * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
9802 (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
9803 (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
9805 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
9808 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
9809 vector when peeking at the next token for vector, don't expand the
9812 2011-03-21 Georg-Johann Lay <avr@gjlay.de>
9814 * config/avr/avr-protos.h (expand_epilogue): Change prototype
9815 * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
9816 * config/avr/avr.c (init_cumulative_args)
9817 (avr_function_arg_advance): Use it.
9818 * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
9820 (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
9821 (avr_function_ok_for_sibcall): ...this new function.
9822 (avr_lookup_function_attribute1): New static Function.
9823 (avr_naked_function_p, interrupt_function_p)
9824 (signal_function_p, avr_OS_task_function_p)
9825 (avr_OS_main_function_p): Use it.
9826 * config/avr/avr.md ("sibcall", "sibcall_value")
9827 ("sibcall_epilogue"): New expander.
9828 ("*call_insn", "*call_value_insn"): New insn.
9829 ("call_insn", "call_value_insn"): Remove
9830 ("call", "call_value", "epilogue"): Change expander to handle
9833 2011-03-21 Nick Clifton <nickc@redhat.com>
9835 * doc/invoke.texi (Overall Options): Move closing brace to end of
9837 (Optimization Options): Add missing @gol.
9838 (Directory Options): Likewise.
9839 (i386 and x86-64 Options): Likewise.
9840 (RS6000 and PowerPC Options): Likewise.
9841 (i386 and x86-64 Windows Options): Likewise.
9842 (V850 Options): Add text missing from descriptions.
9844 2011-03-22 Richard Henderson <rth@redhat.com>
9846 * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
9847 (avr_incoming_return_addr_rtx): New.
9848 (emit_push_byte): New.
9849 (expand_prologue): Use it. Remove incorrect dwarf annotation for
9850 SREG, RAMPZ, zero register. Push frame pointer by bytes. Add dwarf
9851 annotation for __prologue_saves__. Fixup dwarf annotation for CFA.
9852 (emit_pop_byte): New.
9853 (expand_epilogue): Use it. Pop frame pointer by bytes.
9854 * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
9855 (INCOMING_RETURN_ADDR_RTX): New.
9856 (INCOMING_FRAME_SP_OFFSET): New.
9857 (ARG_POINTER_CFA_OFFSET): New.
9858 * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
9859 (*pushhi, *pushsi, *pushsf, popqi): Likewise.
9862 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
9864 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
9866 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
9867 (FUNCTION_ARG_ADVANCE): Likewise.
9868 * tm.texi.in: Change references to them to hook references.
9869 * tm.texi: Regenerate.
9870 * targhooks.c (default_function_arg): Eliminate check for target
9872 (default_function_incoming_arg): Likewise.
9873 (default_function_arg_advance): Likewise.
9874 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
9875 (function_arg_advance): Likewise.
9876 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
9878 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
9880 * tree.c (build_call_1): New function.
9881 (build_call_valist, build_call_array_loc, build_call_vec): Call it.
9883 2011-03-22 Richard Guenther <rguenther@suse.de>
9885 PR tree-optimization/48228
9886 * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
9887 for single-arg PHIs.
9889 2011-03-22 Andrey Belevantsev <abel@ispras.ru>
9891 PR rtl-optimization/48143
9892 * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
9893 (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
9894 sse2_cvtps2pd): Likewise.
9896 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9898 * recog.c (canonicalize_change_group): Use validate_unshare_change.
9900 2011-03-22 Richard Guenther <rguenther@suse.de>
9902 * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
9903 a valid RHS. Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
9904 * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
9905 and REALIGN_LOAD_EXPR.
9906 (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
9907 DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
9908 * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
9909 DOT_PROD_EXPR case ...
9910 (expand_expr_real_2): ... here.
9911 * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
9912 and REALIGN_LOAD_EXPR.
9913 * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
9914 * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
9915 (vect_create_epilog_for_reduction): Likewise.
9916 (vectorizable_reduction): Likewise.
9917 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
9918 * tree-vect-stmts.c (vectorizable_load): Likewise.
9920 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
9922 * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
9924 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9926 * config/s390/s390.c (s390_delegitimize_address): Fix offset
9927 handling for PLTOFF/GOTOFF.
9929 2011-03-22 Nick Clifton <nickc@redhat.com>
9931 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
9932 trailing backslash from the end of the macro definition.
9934 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9936 * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
9939 2011-03-21 Richard Sandiford <richard.sandiford@linaro.org>
9941 * expr.h (prepare_operand): Move to...
9942 * optabs.h (prepare_operand): ...here and change the insn code
9943 parameter from "int" to "enum insn_code".
9944 (insn_operand_matches): Declare.
9945 * expr.c (init_expr_target): Use insn_operand_matches.
9946 (compress_float_constant): Likewise.
9947 * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
9948 * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
9949 (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
9950 (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
9952 (gen_cond_trap): Likewise.
9953 (prepare_operand): Likewise. Change icode to an insn_code.
9954 (insn_operand_matches): New function.
9955 * reload.c (find_reloads_address_1): Use insn_operand_matches.
9956 * reload1.c (gen_reload): Likewise.
9957 * targhooks.c (default_secondary_reload): Likewise.
9959 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
9961 * config/alpha/alpha.md (unspec): New define_c_enum.
9964 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
9967 * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
9968 between a call and its CALL_ARG_LOCATION note.
9970 2011-03-21 Eric Botcazou <ebotcazou@adacore.com>
9972 * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
9974 2011-03-21 Jakub Jelinek <jakub@redhat.com>
9978 * c-common.c (shorten_compare): If primopN is first sign-extended
9979 to opN and then zero-extended to result type, set primopN to opN.
9981 2011-03-21 Daniel Jacobowitz <dan@codesourcery.com>
9983 * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
9984 for barrier handlers.
9986 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
9988 * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
9989 UNSPEC constants to be in the unspec enumeration, and redefine
9990 all UNSPECV constants to be in the unspecv enumeration, so that
9991 dumps print which unspec/unspec_volatile this is.
9992 * config/rs6000/vector.md (UNSPEC_*): Ditto.
9993 * config/rs6000/paired.md (UNSPEC_*): Ditto.
9994 * config/rs6000/vsx.md (UNSPEC_*): Ditto.
9995 * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
9996 * config/rs6000/dfp.md (UNSPEC_*): Ditto.
9998 * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
9999 UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
10000 UNSPECV_LWSYNC, since these are used as unspec_volatile.
10001 * config/rs6000/sync.md (isync, lwsync): Ditto.
10003 2011-03-21 Richard Guenther <rguenther@suse.de>
10005 * params.def (lto-min-partition): Fix typo.
10007 2011-03-21 Richard Guenther <rguenther@suse.de>
10010 * c-decl.c (grokdeclarator): Drop to the main variant only
10011 for array types. Drop flag_gen_aux_info check.
10013 2011-03-21 Richard Guenther <rguenther@suse.de>
10015 PR translation/47911
10016 * params.def (lto-partitions): Fix typo.
10017 (lto-min-partition): Fix wording.
10019 2011-03-21 Andreas Tobler <andreast@fgznet.ch>
10021 * config/rs6000/t-freebsd: Remove duplication from file.
10023 2011-03-21 Richard Guenther <rguenther@suse.de>
10025 PR middle-end/47661
10026 * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
10028 2011-03-21 Richard Guenther <rguenther@suse.de>
10031 * params.def (lto-partitions): Require at least 1 partition.
10033 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10035 * gthr-solaris.h: Remove.
10036 * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
10037 * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
10038 (LIB_SPEC): Likewise.
10039 * config/sol2.opt (threads): Remove.
10040 * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
10041 (sparc*-*-solaris2*): Likewise.
10042 * configure.ac (enable_threads): Enable solaris support.
10043 * configure: Regenerate.
10044 * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
10045 * doc/install.texi (Configuration, --enable-threads=lib): Remove
10048 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10050 * config.gcc: Obsolete *-*-solaris2.8*.
10051 * doc/install.texi (Specific, *-*-solaris2*): Document it.
10053 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10056 * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
10057 reference. Solaris 8 perl works.
10059 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10062 * doc/install.texi (Prerequisites): Move jar etc. up.
10063 Explain support library version requirements.
10065 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10068 * doc/install.texi (Prerequisites): Move Perl to build
10069 requirements. Always necessary on Solaris 2 with Sun ld.
10071 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10073 * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
10075 (Specific, i?86-*-solaris2.[89]): Likewise.
10076 (Specific, i?86-*-solaris2.10): Likewise.
10077 (Specific, mips-sgi-irix6): Likewise.
10078 (Specific, *-*-solaris2*): Remove Sun Studio download URL.
10079 Update for binutils 2.21.
10081 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10083 * configure.ac (gcc_cv_lto_plugin): Fix typo.
10084 Allow -fuse-linker-plugin for non-default plugin linker.
10085 * configure: Regenerate.
10087 2011-03-21 Nicola Pero <nicola.pero@meta-innovation.com>
10090 * gengtype.c (files_rules): Added rule for cp/parser.h.
10092 2011-03-21 Jakub Jelinek <jakub@redhat.com>
10095 * config/s390/s390.c (s390_delegitimize_address): Don't call
10096 lowpart_subreg if orig_x has BLKmode.
10098 2011-03-21 Kai Tietz <ktietz@redhat.com>
10101 * doc/plugins.texi: Adjust documentation for plugin register_callback.
10102 * tree.h (attribute_spec): Add new member affects_type_identity.
10103 * attribs.c (empty_attribute_table): Adjust attribute_spec
10105 * config/alpha/alpha.c: Likewise.
10106 * config/arc/arc.c: Likewise.
10107 * config/arm/arm.c: Likewise.
10108 * config/avr/avr.c: Likewise.
10109 * config/bfin/bfin.c: Likewise.
10110 * config/crx/crx.c: Likewise.
10111 * config/darwin.h: Likewise.
10112 * config/h8300/h8300.c: Likewise.
10113 * config/i386/cygming.h: Likewise.
10114 * config/i386/i386.c: Likewise.
10115 * config/ia64/ia64.c: Likewise.
10116 * config/m32c/m32c.c: Likewise.
10117 * config/m32r/m32r.c: Likewise.
10118 * config/m68hc11/m68hc11.c: Likewise.
10119 * config/m68k/m68k.c: Likewise.
10120 * config/mcore/mcore.c: Likewise.
10121 * config/mep/mep.c: Likewise.
10122 * config/microblaze/microblaze.c: Likewise.
10123 * config/mips/mips.c: Likewise.
10124 * config/rs6000/rs6000.c: Likewise.
10125 * config/rx/rx.c: Likewise.
10126 * config/sh/sh.c: Likewise.
10127 * config/sol2.h: Likewise.
10128 * config/sparc/sparc.c: Likewise.
10129 * config/spu/spu.c: Likewise.
10130 * config/stormy16/stormy16.c: Likewise.
10131 * config/v850/v850.c: Likewise.
10133 2011-03-21 Chung-Lin Tang <cltang@codesourcery.com>
10135 * simplify-rtx.c (simplify_binary_operation_1): Handle
10136 (xor (and A B) C) case when B and C are both constants.
10138 2011-03-21 Mingjie Xing <mingjie.xing@gmail.com>
10140 * tree-dfa.c (add_referenced_var): Fix typo in comment.
10142 2011-03-20 Eric Botcazou <ebotcazou@adacore.com>
10145 * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
10147 2011-03-20 Jakub Jelinek <jakub@redhat.com>
10149 PR rtl-optimization/48156
10150 * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
10151 assume df and df_lr are not NULL.
10153 2011-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
10156 * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
10157 between a call and its CALL_ARG_LOCATION note.
10159 2011-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
10162 * config/sh/sh.c (find_barrier): Don't emit a constant pool
10163 between a call and its corresponding CALL_ARG_LOCATION note.
10165 2011-03-19 Anatoly Sokolov <aesok@post.ru>
10167 * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
10168 instead of loop. Use HARD_REGISTER_NUM_P predicate.
10169 * haifa-sched.c (setup_ref_regs): Ditto.
10170 * caller-save.c (add_used_regs_1): Ditto.
10171 * dse.c (look_for_hardregs): Ditto.
10172 * df-problems.c (df_simulate_one_insn_forwards): Ditto.
10173 * sched-rgn.c (check_live_1): Ditto.
10175 2011-03-18 Joseph Myers <joseph@codesourcery.com>
10177 * c-decl.c (diagnose_mismatched_decls): Give an error for
10178 redefining a typedef with variably modified type.
10180 2011-03-18 Joseph Myers <joseph@codesourcery.com>
10182 * c-decl.c (grokfield): Don't allow typedefs for structures or
10183 unions with no tag by default.
10184 * doc/extend.texi (Unnamed Fields): Update.
10186 2011-03-18 Uros Bizjak <ubizjak@gmail.com>
10188 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
10189 Rewrite using indirect functions.
10190 (lwp_slwpcb): Ditto.
10191 * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
10192 (avx_vinsertf128<mode>): Ditto.
10194 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10196 * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
10199 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10201 * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
10202 splitting between a call and its corresponding CALL_ARG_LOCATION note.
10204 2011-03-18 Maxim Kuvyrkov <maxim@codesourcery.com>
10206 PR rtl-optimization/48170
10207 * gcse.c (hoist_code): Remove bogus asserts.
10209 2011-03-18 Georg-Johann Lay <avr@gjlay.de>
10211 * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
10212 computation for prologue/epilogue.
10214 2011-03-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10216 * Makefile.in (check-consistency): Remove.
10218 2011-03-18 Jakub Jelinek <jakub@redhat.com>
10221 * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
10222 arange_table_in_use is 0, but either text_section_used or
10223 cold_text_section_used is true. Don't call it if
10224 !info_section_emitted.
10226 2011-03-18 Anatoly Sokolov <aesok@post.ru>
10228 * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
10229 FUNCTION_VALUE_REGNO_P): Remove.
10230 * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
10232 * config/avr/avr.c (avr_ret_register): Make static inline.
10233 (avr_function_value_regno_p): New function.
10234 (avr_libcall_value): Make static. Add 'func' argument.
10235 (avr_function_value): Make static. Rename 'func' argument to
10236 'fn_decl_or_type', forward it to avr_libcall_value. Call
10237 avr_ret_register function instead of RET_REGISTER macro.
10238 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
10240 2011-03-18 Jason Merrill <jason@redhat.com>
10243 * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
10245 2011-03-18 Richard Guenther <rguenther@suse.de>
10247 * doc/install.texi (--enable-gold): Remove.
10248 (--with-plugin-ld): Document.
10249 * doc/invoke.texi (-fuse-linker-plugin): Clarify.
10251 2011-03-18 Andrew Pinski <pinskia@gmail.com>
10253 PR middle-end/47790
10254 * expr.c (optimize_bitfield_assignment_op): Revamp to work
10255 again after expansion changes.
10257 2011-03-18 Chung-Lin Tang <cltang@codesourcery.com>
10259 * combine.c (try_combine): Do simplification only call of
10260 subst() on i2 even when i1 is present. Update comments.
10262 2011-03-18 Kaz Kojima <kkojima@gcc.gnu.org>
10264 * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
10265 and UNSPEC_PCREL_SYMOFF.
10267 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10269 * config/s390/s390.md: Use define_c_enum for the unspec constant
10272 2011-03-18 Richard Henderson <rth@redhat.com>
10273 Jakub Jelinek <jakub@redhat.com>
10276 * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
10277 instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
10279 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
10281 PR middle-end/47725
10282 * combine.c (cant_combine_insn_p): Don't check zero/sign
10283 extended hard registers.
10285 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
10287 PR middle-end/47725
10288 * combine.c (cant_combine_insn_p): Check zero/sign extended
10291 2011-03-17 Anatoly Sokolov <aesok@post.ru>
10293 * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
10294 * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
10295 * config/v850/v850.c (v850_output_addr_const_extra): Make static.
10296 Change return type to bool.
10297 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
10299 2011-03-17 Jakub Jelinek <jakub@redhat.com>
10302 * var-tracking.c (prepare_call_arguments): If CALL target
10303 is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
10304 pc instead of looking it up using cselib_lookup and use
10305 Pmode for it if x has VOIDmode.
10306 * dwarf2out.c (gen_subprogram_die): If also both first and
10307 second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
10310 * function.c (assign_parms): For data.passed_pointer parms
10311 use MEM of data.entry_parm instead of data.entry_parm itself
10312 as DECL_INCOMING_RTL.
10313 * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
10314 also when passed and declared mode is the same, DECL_RTL
10315 is a MEM with pseudo as address and DECL_INCOMING_RTL is
10318 2011-03-16 Jeff Law <law@redhat.com>
10320 PR rtl-optimization/37273
10321 * ira-costs.c (scan_one_insn): Detect constants living in memory and
10322 handle them like argument loads from stack slots. Do not double
10323 count memory for memory constants and argument loads from stack slots.
10325 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
10328 * var-tracking.c (prepare_call_arguments): Check SUBREG.
10330 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
10333 * config/i386/i386.opt: Add Save to -mavx and -mfma.
10335 2011-03-17 Jakub Jelinek <jakub@redhat.com>
10338 * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
10340 (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
10341 Clear call_arg_locations and call_arg_loc_last always.
10343 PR middle-end/48152
10344 * var-tracking.c (prepare_call_arguments): If argument needs to be
10345 passed by reference, adjust argtype and mode.
10347 2011-03-17 Richard Guenther <rguenther@suse.de>
10349 PR middle-end/48134
10350 * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
10351 a value make sure to fold the statement.
10353 2011-03-17 Chung-Lin Tang <cltang@codesourcery.com>
10356 * config/arm/arm.c (arm_get_frame_offsets): Adjust early
10357 return condition with !cfun->calls_alloca.
10359 2011-03-17 Richard Guenther <rguenther@suse.de>
10362 * lto-cgraph.c (input_overwrite_node): Clear the abstract
10363 origin for decls in other ltrans units.
10364 (input_varpool_node): Likewise.
10366 2011-03-17 Richard Guenther <rguenther@suse.de>
10368 PR middle-end/48165
10369 * tree-object-size.c (compute_object_offset): Properly return
10370 the offset operand of MEM_REFs as sizetype.
10372 2011-03-17 Jakub Jelinek <jakub@redhat.com>
10374 PR rtl-optimization/48141
10375 * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
10376 * dse.c: Include params.h.
10377 (active_local_stores_len): New variable.
10378 (add_wild_read, dse_step1): Clear it when setting active_local_stores
10380 (record_store, check_mem_read_rtx): Decrease it when removing
10382 (scan_insn): Likewise. Increase it when adding to chain, if it
10383 reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
10384 set active_local_stores to NULL before the addition.
10385 * Makefile.in (dse.o): Depend on $(PARAMS_H).
10387 PR rtl-optimization/48141
10388 * dse.c (record_store): If no positions are needed in an insn
10389 that cannot be deleted, at least unchain it from active_local_stores.
10391 2011-03-16 Dodji Seketeli <dodji@redhat.com>
10394 * dwarf2out.c (strip_naming_typedef): Factorize out of ...
10395 (lookup_type_die_strip_naming_typedef): ... here.
10396 (get_context_die): Use it.
10397 (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
10398 the anonymous struct named by the naming typedef.
10400 2011-03-16 H.J. Lu <hongjiu.lu@intel.com>
10403 * config/i386/i386.c (ix86_builtin_vectorized_function): Check
10404 TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
10406 2011-03-16 Jeff Law <law@redhat.com>
10408 * tree-vrp.c (identify_jump_threads): Slightly simplify type
10409 check for operands of conditional. Allow type to be a pointer.
10411 2011-03-16 Richard Guenther <rguenther@suse.de>
10413 PR tree-optimization/48149
10414 * fold-const.c (fold_binary_loc): Fold
10415 COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
10417 2011-03-16 Richard Guenther <rguenther@suse.de>
10419 PR tree-optimization/26134
10420 * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
10421 complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
10422 (non_rewritable_mem_ref_base): Handle complex type component
10423 accesses, constrain offsets for vector and complex extracts
10426 2011-03-16 Richard Guenther <rguenther@suse.de>
10428 PR tree-optimization/48146
10429 * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
10430 operands avoiding the need for renaming.
10432 2011-03-16 Richard Guenther <rguenther@suse.de>
10434 * gimple-fold.c (maybe_fold_reference): Open-code relevant
10435 constant folding. Move MEM_REF canonicalization first.
10436 Rely on fold_const_aggregate_ref for initializer folding.
10437 * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
10439 2011-03-16 Jakub Jelinek <jakub@redhat.com>
10441 PR middle-end/48136
10442 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
10443 arg0/arg1 or their arguments are always fold converted to matching
10446 * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
10449 2011-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10452 * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
10453 Handle in-tree gold.
10454 (ld_vers): Extract binutils version for gold.
10455 (gcc_cv_ld_hidden): Handle gold here.
10456 (gcc_cv_lto_plugin): Determine level of linker plugin support.
10457 * configure: Regenerate.
10458 * config.in: Regenerate.
10459 * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
10460 -fuse-linker-plugin otherwise.
10461 (LINK_PLUGIN_SPEC): Define. Extract from LINK_COMMAND_SPEC.
10462 (LINK_COMMAND_SPEC): Use it.
10463 (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
10465 2011-03-16 Jakub Jelinek <jakub@redhat.com>
10467 * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
10468 * calls.c: Remove debug.h include.
10469 (emit_call_1): Don't call virtual_call_token debug hook.
10470 * dwarf2out.c (debug_dcall_section, debug_vcall_section,
10471 dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
10472 vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
10473 size_of_dcall_table, output_dcall_table, size_of_vcall_table,
10474 output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
10475 vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
10476 dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
10477 dwarf2out_virtual_call): Remove.
10478 (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
10479 copy_call_info and virtual_call hooks.
10480 (dwarf2out_init): Don't initialize vcall_insn_table,
10481 debug_dcall_section and debug_vcall_section.
10482 (prune_unused_types): Don't mark nodes from dcall_table.
10483 (dwarf2out_finish): Don't output dcall or vcall tables.
10484 * final.c (final_scan_insn): Don't call direct_call or
10485 virtual_call debug hooks.
10486 * debug.h (struct gcc_debug_hooks): Remove direct_call,
10487 virtual_call_token, copy_call_info and virtual_call hooks.
10488 (debug_nothing_uid): Remove prototype.
10489 * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
10490 copy_call_info and virtual_call hooks.
10491 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
10492 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
10493 * debug.c (do_nothing_debug_hooks): Likewise.
10494 (debug_nothing_uid): Remove.
10495 * doc/invoke.texi (-fenable-icf-debug): Remove.
10496 * common.opt (-fenable-icf-debug): Likewise.
10498 * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
10499 * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
10500 call's MEM. Handle functions returning aggregate through a hidden
10501 first pointer. For virtual calls add clobbered pc to call arguments
10503 * dwarf2out.c (gen_subprogram_die): Emit
10504 DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
10508 * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
10509 * rtl.h (ENTRY_VALUE_EXP): Define.
10510 * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
10511 * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
10512 * print-rtl.c (print_rtx): Likewise.
10513 * gengtype.c (adjust_field_rtx_def): Likewise.
10514 * var-tracking.c (vt_add_function_parameter): Adjust
10515 gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
10516 * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
10517 * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
10518 partition is a default definition of a PARM_DECL, use ENTRY_VALUE
10519 of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
10521 * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
10522 Call var_location debug hook even on CALL_INSNs.
10523 (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
10524 * rtl.def (ENTRY_VALUE): New.
10525 * dwarf2out.c: Include cfglayout.h.
10526 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
10527 output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
10528 (struct call_arg_loc_node): New type.
10529 (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
10530 tail_call_site_count): New variables.
10531 (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
10532 DW_TAG_GNU_call_site_parameter.
10533 (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
10534 DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
10535 DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
10536 DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
10537 and DW_AT_GNU_all_source_call_sites.
10538 (mem_loc_descriptor): Handle ENTRY_VALUE.
10539 (add_src_coords_attributes): Don't add enything if
10540 DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
10541 (dwarf2out_abstract_function): Save and clear call_arg_location,
10542 call_site_count and tail_call_site_count around dwarf2out_decl call.
10543 (gen_call_site_die): New function.
10544 (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
10545 (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
10546 (dwarf2out_function_decl): Clear call_arg_locations,
10547 call_arg_loc_last, set call_site_count and tail_call_site_count
10548 to -1 and free block_map.
10549 (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
10550 CALL_INSNs. Add NOTE_DURING_CALL_P var location notes even when not
10551 followed by any real instructions.
10552 (dwarf2out_begin_function): Set call_site_count and
10553 tail_call_site_count to 0.
10554 (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
10555 is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
10556 attempt to force a DIE for it and worst case remove the attribute.
10557 (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
10558 check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
10560 * var-tracking.c: Include tm_p.h.
10561 (vt_stack_adjustments): For calls call note_register_arguments.
10562 (argument_reg_set): New variable.
10563 (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
10564 ensure the VALUE is resolved.
10565 (call_arguments): New variable.
10566 (prepare_call_arguments): New function.
10567 (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
10568 (struct expand_loc_callback_data): Add ignore_cur_loc field.
10569 (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
10570 always use the best expression.
10571 (vt_expand_loc): Add ignore_cur_loc argument.
10572 (vt_expand_loc_dummy): Clear ignore_cur_loc field.
10573 (emit_note_insn_var_location): Adjust vt_expand_loc callers.
10574 (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
10575 note for all calls.
10576 (vt_add_function_parameter): Use cselib_lookup_from_insn.
10577 If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
10578 argument. Don't call cselib_preserve_only_values and
10579 cselib_reset_table.
10580 (note_register_arguments): New function.
10581 (vt_initialize): Compute argument_reg_set. Call
10582 vt_add_function_parameters before processing basic blocks instead of
10583 afterwards. For calls call prepare_call_arguments before calling
10584 cselib_process_insn.
10585 * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
10586 * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
10587 (var-tracking.o): Depend on $(TM_P_H).
10588 * cfglayout.h (insn_scope): New prototype.
10589 * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
10590 * cfglayout.c (insn_scope): No longer static.
10591 * insn-notes.def (CALL_ARG_LOCATION): New.
10592 * calls.c (expand_call, emit_library_call_value_1): Put USEs for
10593 MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
10594 * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
10595 nothing for DECL_EXTERNAL BLOCK_VARS.
10597 2011-03-16 Alan Modra <amodra@gmail.com>
10600 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
10601 create invalid offset address for vsx splat insn.
10602 * config/rs6000/predicates.md (splat_input_operand): New.
10603 * config/rs6000/vsx.md (vsx_splat_*): Use it.
10605 2011-03-15 Xinliang David Li <davidxl@google.com>
10608 * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
10609 (normalize_preds): New function.
10610 (is_use_properly_guarded): Normalize def predicates.
10612 2011-03-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
10615 * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
10616 in the output template.
10618 2011-03-15 Richard Guenther <rguenther@suse.de>
10620 PR middle-end/47650
10621 * tree-pretty-print.c (dump_function_declaration): Properly
10622 dump unprototyped and varargs function types.
10624 2011-03-15 Richard Guenther <rguenther@suse.de>
10626 PR tree-optimization/13954
10627 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
10630 2011-03-15 Richard Guenther <rguenther@suse.de>
10632 PR tree-optimization/48037
10633 * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
10634 selects into BIT_FIELD_REFs.
10635 (non_rewritable_mem_ref_base): Check if a MEM_REF is a
10638 2011-03-15 Jakub Jelinek <jakub@redhat.com>
10640 PR tree-optimization/48129
10641 * builtins.c (fold_builtin_snprintf): Convert to type of
10642 built_in_decls[BUILT_IN_SNPRINTF] retval instead of
10643 implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
10645 2011-03-15 Richard Guenther <rguenther@suse.de>
10647 PR tree-optimization/41490
10648 * tree-ssa-dce.c (propagate_necessity): Handle returns without
10649 value but with VUSE.
10650 * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
10652 * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
10653 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
10654 * tree-tailcall.c (find_tail_calls): Ignore returns.
10656 2011-03-15 Richard Guenther <rguenther@suse.de>
10658 PR middle-end/48031
10659 * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
10660 or variable-indexed array accesses when in gimple form.
10662 2011-03-15 Richard Guenther <rguenther@suse.de>
10664 * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
10666 2011-03-15 Alan Modra <amodra@gmail.com>
10669 * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
10670 presume symbol_refs without a symbol_ref_decl are suitably
10671 aligned, nor other trees we may see here. Handle anchor symbols.
10672 (legitimate_constant_pool_address_p): Comment. Add mode param.
10673 Check cmodel=medium addresses. Adjust all calls.
10674 (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
10675 creating cmodel=medium optimized access to locals.
10676 * config/rs6000/constraints.md (R): Pass QImode to
10677 legitimate_constant_pool_address_p.
10678 * config/rs6000/predicates.md (input_operand): Pass mode to
10679 legitimate_constant_pool_address_p.
10680 * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
10683 2011-03-14 Michael Meissner <meissner@linux.vnet.ibm.com>
10686 * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
10687 64-bit constants being loaded into registers other than GPRs such
10688 as loading 0 into a VSX register.
10690 2011-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10692 * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
10694 2011-03-14 Jakub Jelinek <jakub@redhat.com>
10696 PR middle-end/47917
10697 * builtins.c (fold_builtin_snprintf): New function.
10698 (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
10699 (fold_builtin_4): Likewise.
10701 PR middle-end/38878
10702 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
10703 STRIP_NOPS on arg0 and arg1. When optimizing X +- C == X
10704 and C - X == X also strip nops from +/-/p+ operand.
10705 When optimizing -X == C, fold C to arg0's type.
10708 * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
10709 emit it as add_AT_int instead of add_AT_unsigned.
10711 2011-03-14 Tom Tromey <tromey@redhat.com>
10713 * unwind-dw2.c: Include sys/sdt.h if it exists.
10714 (_Unwind_DebugHook): Use STAP_PROBE2.
10715 * config.in, configure: Rebuild.
10716 * configure.ac: Check for sys/sdt.h.
10718 2011-03-14 Uros Bizjak <ubizjak@gmail.com>
10720 * config/i386/i386.md (ROUND_FLOOR): New constant.
10721 (ROUND_CEIL): Ditto.
10722 (ROUND_TRUNC): Ditto.
10723 (ROUND_MXCSR): Ditto.
10724 (ROUND_NO_EXC): Ditto.
10725 (rint<mode>2): Use new defines instead of numerical constants.
10726 (floor<mode>2): Ditto.
10727 (ceil<mode>2): Ditto.
10728 (btrunc<mode>2): Ditto.
10729 * config/i386/i386-builtin-types.def: Define ROUND function type
10731 * config/i386/i386.c (enum ix86_builtins): Add
10732 IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
10733 (struct builtin_description): Add
10734 __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
10735 (ix86_expand_sse_round): New static function.
10736 (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
10738 (ix86_builtin_vectorized_function): Handle
10739 BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
10741 2011-03-14 Tom Tromey <tromey@redhat.com>
10743 * c-parser.c (c_parser_asm_string_literal): Clear
10744 warn_overlength_strings.
10746 2011-03-14 Tom Tromey <tromey@redhat.com>
10748 * c-parser.c (disable_extension_diagnostics): Save
10749 warn_overlength_strings.
10750 (restore_extension_diagnostics): Restore warn_overlength_strings.
10752 2011-03-14 Jakub Jelinek <jakub@redhat.com>
10754 * BASE-VER: Change to 4.7.0.
10756 2011-03-14 Richard Guenther <rguenther@suse.de>
10758 PR middle-end/48098
10759 * tree.c (build_vector_from_val): Adjust assert to requirements
10762 2011-03-14 Jakub Jelinek <jakub@redhat.com>
10765 * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
10767 2011-03-14 Andreas Tobler <andreast@fgznet.ch>
10769 * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
10770 terms of target_flags_explicit. Adjust copyright year.
10772 * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
10773 * config/rs6000/t-freebsd: New file. Add override for
10776 2011-03-13 Chris Demetriou <cgd@google.com>
10778 * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
10779 (-fno-diagnostics-show-option): this, to reflect current default.
10780 (-Werror=): Update text about -fno-diagnostics-show-option.
10782 2011-03-12 Peter Bergner <bergner@vnet.ibm.com>
10785 * config/rs6000/predicates.md (easy_vector_constant_add_self,
10786 easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
10787 * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
10788 mode is not V2DImode or V2DFmode.
10789 (vspltis_constant): Do not handle V2DImode and V2DFmode.
10790 (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
10791 * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
10793 (movdi_internal64): Likewise.
10795 2011-03-12 Sebastian Pop <sebastian.pop@amd.com>
10797 PR tree-optimization/47127
10798 * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
10800 (set_cloog_options): Same.
10801 (scop_to_clast): Same.
10802 (print_clast_stmt): Do not call cloog_state_malloc and
10804 (print_generated_program): Same.
10806 * graphite-clast-to-gimple.h (cloog_state): Declared.
10807 (scop_to_clast): Adjust declaration.
10808 * graphite.c (cloog_state): Defined here.
10809 (graphite_initialize): Call cloog_state_malloc.
10810 (graphite_finalize): Call cloog_state_free.
10812 2011-03-11 Jason Merrill <jason@redhat.com>
10814 * attribs.c (lookup_attribute_spec): Take const_tree.
10817 2011-03-11 Joseph Myers <joseph@codesourcery.com>
10819 * config/sparc/sparc.c (sparc_option_override): Use
10820 PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
10822 2011-03-11 Richard Guenther <rguenther@suse.de>
10824 PR tree-optimization/48067
10825 * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
10826 multiplication result will be only used once on the target
10829 2011-03-11 Richard Guenther <rguenther@suse.de>
10831 * doc/invoke.texi (max-inline-insns-single): Adjust default value.
10833 2011-03-11 Richard Guenther <rguenther@suse.de>
10836 * tree.c (find_decls_types_r): Do not walk types only reachable
10837 from IDENTIFIER_NODEs.
10839 2011-03-11 Jakub Jelinek <jakub@redhat.com>
10841 PR middle-end/48044
10842 * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
10843 all vnode->force_output nodes as needed.
10845 2011-03-11 Jason Merrill <jason@redhat.com>
10848 * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
10849 COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
10851 2011-03-11 Martin Jambor <mjambor@suse.cz>
10853 * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
10856 2011-03-11 Jakub Jelinek <jakub@redhat.com>
10858 PR tree-optimization/48063
10859 * ipa-inline.c (cgraph_decide_inlining): Don't try to
10860 inline functions called once if !tree_can_inline_p (node->callers).
10862 2011-03-11 Chen Liqin <liqin.gcc@gmail.com>
10864 * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
10866 * config/score/score3.c: Delete.
10867 * config/score/score3.h: Delete.
10868 * config/score/mul-div.S: Delete.
10869 * config/score/sfp-machine.h: Add new file.
10870 * config/score/constraints.md: Add new file.
10871 * config/score/t-score-softfp: Add new file.
10872 * config/score/t-score-elf: Remove score3.o, do not generate multilib.
10873 * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
10874 (score7_extra_constraint): Delete.
10875 (score7_option_override): Remove unused code.
10876 * config/score/score.c: Remove score3 and score5 define and code.
10877 * config/score/score.h: Remove score3 and score5 define and code.
10878 * config/score/score.md: Remove score3 template and unusual insn.
10879 * config/score/score.opt: Remove score3 and score5 options.
10881 2011-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10883 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
10884 when _HPUX_SOURCE is defined.
10885 (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
10887 2011-03-10 Jason Merrill <jason@redhat.com>
10890 * stor-layout.c (layout_type): Don't set structural equality
10891 on arrays of incomplete type.
10892 * tree.c (type_hash_eq): Handle comparing them properly.
10894 2011-03-10 Jakub Jelinek <jakub@redhat.com>
10897 * config/s390/s390.c (s390_delegitimize_address): Make sure the
10898 result mode matches original rtl mode.
10900 2011-03-10 Nick Clifton <nickc@redhat.com>
10902 * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
10903 (andsi3, andsi3_flags): Fix timings for three operand alternative.
10905 2011-03-09 Jakub Jelinek <jakub@redhat.com>
10907 PR rtl-optimization/47866
10908 * expr.c (store_field): If MEM_SCALAR_P (target), don't use
10909 MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
10910 if target wasn't scalar.
10911 * function.c (assign_stack_temp_for_type): Assert that neither
10912 MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
10913 MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
10915 * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
10917 2011-03-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10919 * config/s390/s390-protos.h (s390_label_align): New prototype.
10920 * config/s390/s390.c (s390_label_align): New function.
10921 * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
10923 2011-03-08 Michael Meissner <meissner@linux.vnet.ibm.com>
10926 * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
10927 V2DI/V2DF constants. Only all 0's or all 1's are easy.
10928 (output_vec_const_move): Ditto.
10930 2011-03-08 Anatoly Sokolov <aesok@post.ru>
10932 * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
10933 * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
10934 * config/mips/mips.c (mips_preferred_reload_class): Make static.
10935 Change 'rclass' argument and result type to reg_class_t.
10936 (TARGET_PREFERRED_RELOAD_CLASS): Define.
10938 2011-03-08 Georg-Johann Lay <avr@gjlay.de>
10940 * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
10941 * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
10942 (TARGET_MEMORY_MOVE_COST): Define.
10943 (avr_register_move_cost, avr_memory_move_cost): New Functions.
10945 2011-03-08 Jakub Jelinek <jakub@redhat.com>
10948 * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
10951 PR tree-optimization/48022
10952 * fold-const.c (fold_comparison): Don't call fold_overflow_warning
10955 2011-03-07 Jakub Jelinek <jakub@redhat.com>
10958 * var-tracking.c (find_use_val): Return NULL for
10959 cui->sets && cui->store_p BLKmode MEMs.
10961 2011-03-07 Anatoly Sokolov <aesok@post.ru>
10963 * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
10965 * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
10966 xstormy16_print_operand_address): Remove.
10967 * config/stormy16/stormy16.c (xstormy16_print_operand,
10968 xstormy16_print_operand_address): Make static.
10969 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
10971 2011-03-07 Pat Haugen <pthaugen@us.ibm.com>
10974 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
10975 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
10978 2011-03-07 Zdenek Dvorak <ook@ucw.cz>
10981 * cfgloopmanip.c (fix_bb_placements): Return immediately
10982 if FROM is BASE_LOOP's header.
10984 2011-03-07 Paul Wögerer <paul_woegerer@mentor.com>
10986 * gimplify.c (gimplify_function_tree): Fix building calls
10987 to __builtin_return_address.
10989 2011-03-07 Alan Modra <amodra@gmail.com>
10991 * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
10992 * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
10993 * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
10994 * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
10996 * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
10997 (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
10998 (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
10999 (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
11000 * config/rs6000/rs6000.c
11001 (rs6000_elf_end_indicate_exec_stack): Rename to..
11002 (rs6000_elf_file_end): ..this. Only call file_end_indicate_exec_stack
11003 for POWERPC_LINUX. Move code emitting .gnu_attribute to here, from..
11004 (rs6000_file_start): ..here.
11005 (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
11006 file scope variables.
11007 (call_ABI_of_interest): New function.
11008 (init_cumulative_args): Set above vars when function return value
11009 is a float, vector, or small struct.
11010 (rs6000_function_arg_advance_1): Likewise for function args.
11011 (rs6000_va_start): Set rs6000_passes_float if variable arg function
11012 references float args.
11014 2011-03-07 Mingjie Xing <mingjie.xing@gmail.com>
11016 * doc/cfg.texi: Remove "See" before @ref.
11017 * doc/invoke.texi: Likewise.
11019 2011-03-05 Jason Merrill <jason@redhat.com>
11021 * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
11023 2011-03-05 Anthony Green <green@moxielogic.com>
11025 * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
11027 2011-03-05 Zdenek Dvorak <ook@ucw.cz>
11029 PR rtl-optimization/47899
11030 * cfgloopmanip.c (fix_bb_placements): Fix first argument
11031 to flow_loop_nested_p when moving the loop upward.
11033 2011-03-05 Richard Earnshaw <rearnsha@arm.com>
11036 * arm.md (movhi_insn_arch4): Accept any immediate constant.
11038 2011-03-05 Jakub Jelinek <jakub@redhat.com>
11040 PR tree-optimization/47967
11041 * ipa-cp.c (build_const_val): Return NULL instead of creating
11042 VIEW_CONVERT_EXPR for mismatching sizes.
11043 (ipcp_create_replace_map): Return NULL if build_const_val failed.
11044 (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
11045 give up on versioning.
11047 2011-03-05 Alan Modra <amodra@gmail.com>
11050 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
11051 full cmodel medium/large lo_sum + high addresses.
11053 2011-03-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11055 * config/s390/s390.c (s390_decompose_address): Reject non-literal
11056 pool references in UNSPEC_LTREL_OFFSET.
11058 2011-03-04 Jan Hubicka <jh@suse.cz>
11061 * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
11062 (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
11063 * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
11065 * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
11066 cgraph_add_thunk): Add node pointers.
11067 * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
11068 associated to right node.
11069 (input_node): Update use of cgraph_same_body_alias
11070 and cgraph_add_thunk.
11072 2011-03-04 Changpeng Fang <changpeng.fang@amd.com>
11074 * config/i386/i386.opt (mprefer-avx128): New flag.
11075 * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
11076 modes when the flag -mprefer-avx128 is on.
11078 2011-03-04 Richard Sandiford <richard.sandiford@linaro.org>
11080 * dwarf2out.c (compare_loc_operands): Fix address handling.
11082 2011-03-04 Alan Modra <amodra@gmail.com>
11084 * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
11086 2011-03-04 Richard Guenther <rguenther@suse.de>
11088 PR middle-end/47968
11089 * expmed.c (extract_bit_field_1): Prefer vector modes that
11090 vec_extract patterns can handle.
11092 2011-03-04 Richard Guenther <rguenther@suse.de>
11094 PR middle-end/47975
11095 * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
11097 2011-03-04 Richard Henderson <rth@redhat.com>
11099 * explow.c (emit_stack_save): Remove 'after' parameter.
11100 (emit_stack_restore): Likewise.
11101 * expr.h: Update to match.
11102 * builtins.c, calls.c, stmt.c: Likewise.
11103 * config/alpha/alpha.md, config/avr/avr.md: Likewise.
11104 * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
11105 * function.c (expand_function_end): Insert the emit_stack_save
11106 sequence before parm_birth_insn instead of after.
11108 2011-03-03 Uros Bizjak <ubizjak@gmail.com>
11110 * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
11111 (ssse3_pmaddubsw128): Ditto.
11112 (ssse3_pmaddubsw): Ditto.
11114 2011-03-03 Steve Ellcey <sje@cup.hp.com>
11116 * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
11118 2011-03-03 Jakub Jelinek <jakub@redhat.com>
11121 * gimplify.c (omp_add_variable): Only call omp_notice_variable
11122 on TYPE_SIZE_UNIT if it is a DECL.
11125 * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
11126 first operand is not is_gimple_mem_ref_addr, try to fold it.
11127 If the operand still isn't is_gimple_mem_ref_addr, clear
11130 2011-03-03 Richard Guenther <rguenther@suse.de>
11132 PR middle-end/47283
11133 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
11135 (refs_may_alias_p_1): For release branches return true if
11136 we are confused by our input.
11138 2011-03-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11140 * config/s390/s390.c (s390_function_value): Rename to ...
11141 (s390_function_and_libcall_value): ... this.
11142 (s390_function_value): New function.
11143 (s390_libcall_value): New function.
11144 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
11145 * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
11146 target macro definitions.
11147 * config/s390/s390-protos.h (s390_function_value): Remove prototype.
11149 2011-03-02 Joseph Myers <joseph@codesourcery.com>
11151 * config/i386/freebsd64.h (CC1_SPEC): Define.
11152 * config/i386/linux64.h (CC1_SPEC): Define.
11153 * config/i386/x86-64.h (CC1_SPEC): Don't define.
11155 2011-03-02 Anatoly Sokolov <aesok@post.ru>
11157 * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
11159 * config/stormy16/stormy16.c: Include reload.h.
11160 (xstormy16_memory_move_cost): New function.
11161 (TARGET_MEMORY_MOVE_COST): Define.
11163 2011-03-02 Richard Sandiford <richard.sandiford@linaro.org>
11165 PR rtl-optimization/47925
11166 * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
11167 with side effects. Remove the more-specific check for volatile asms.
11169 2011-03-02 Alan Modra <amodra@gmail.com>
11172 * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
11173 toc relative addresses for valid offsets.
11175 2011-03-01 Richard Guenther <rguenther@suse.de>
11177 PR tree-optimization/47890
11178 * tree-vect-loop.c (get_initial_def_for_induction): Set
11179 related stmt properly.
11181 2011-03-01 Richard Guenther <rguenther@suse.de>
11184 * lto-streamer.c (lto_record_common_node): Also register
11185 the canonical type.
11187 2011-03-01 Richard Guenther <rguenther@suse.de>
11190 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
11191 Do not stream DECL_ABSTRACT_ORIGIN.
11192 (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
11193 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
11194 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
11195 Do not stream DECL_ABSTRACT_ORIGIN.
11196 (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
11197 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
11199 2011-02-28 Anatoly Sokolov <aesok@post.ru>
11201 * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
11202 FUNCTION_VALUE_REGNO_P): Remove.
11203 * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
11204 * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
11205 Add 'outgoing' argument.
11206 (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
11208 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
11209 TARGET_FUNCTION_VALUE_REGNO_P): Define.
11211 2011-02-28 Kai Tietz <kai.tietz@onevision.com>
11214 * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
11215 (lookup_filename): Likewise.
11216 * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
11218 2011-02-28 Bernd Schmidt <bernds@codesourcery.com>
11219 Jakub Jelinek <jakub@redhat.com>
11221 PR middle-end/47893
11222 * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
11223 (assign_stack_local_1): Change last argument type to int.
11224 * function.c (assign_stack_local_1): Replace reduce_alignment_ok
11225 argument with kind. If bit ASLK_RECORD_PAD is not set in it,
11226 don't record padding space into frame_space_list nor use those areas.
11227 (assign_stack_local): Adjust caller.
11228 (assign_stack_temp_for_type): Call assign_stack_local_1 instead
11229 of assign_stack_local, pass 0 as last argument.
11230 * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
11233 2011-02-28 Jakub Jelinek <jakub@redhat.com>
11236 * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
11237 Use target address_mode and pointer_mode hooks instead of hardcoded
11238 Pmode and ptr_mode. Handle some simple cases of extending if
11239 POINTERS_EXTEND_UNSIGNED < 0.
11240 (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
11241 Call convert_debug_memory_address.
11242 (expand_debug_expr) <case ADDR_EXPR>: Pass as to
11243 convert_debug_memory_address.
11245 PR middle-end/46790
11246 * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
11247 * configure: Regenerated.
11248 * config.in: Regenerated.
11249 * varasm.c (default_function_section): Return NULL
11250 if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
11252 2011-02-28 Martin Jambor <mjambor@suse.cz>
11254 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
11255 the description to match the printed values.
11257 2011-02-28 Richard Guenther <rguenther@suse.de>
11259 * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
11260 of the copied scope tree.
11262 2011-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11264 * doc/extend.texi (Function Attributes): Avoid deeply (and
11265 wrongly) nested tables.
11267 2011-02-27 Jakub Jelinek <jakub@redhat.com>
11269 PR middle-end/47903
11270 * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
11271 MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
11272 r isn't op0 nor op1.
11274 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
11276 * config/avr/avr.md: Remove magic comment for emacs.
11278 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
11281 * config/avr/avr.c (avr_option_override): Use error on bad options.
11282 (avr_help): New function.
11283 (TARGET_HELP): Define.
11285 2011-02-22 Georg-Johann Lay <avr@gjlay.de>
11288 * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
11289 (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
11291 2011-02-26 Gerald Pfeifer <gerald@pfeifer.com>
11293 * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
11294 (ARM Options): Ditto.
11295 (i386 and x86-64 Options): Ditto.
11296 (RX Options): Ditto.
11297 (SPARC Options): Ditto.
11299 2011-02-26 Tijl Coosemans <tijl@coosemans.org>
11301 * config.gcc (i386-*-freebsd*): Make i486 the default arch on
11302 FreeBSD 6 and later. Generally use cpu generic.
11304 2011-02-25 Gerald Pfeifer <gerald@pfeifer.com>
11306 * doc/cpp.texi: Update copyright years.
11308 2011-02-25 Sebastien Bourdeauducq <sebastien@milkymist.org>
11311 * config/lm32/lm32.md (ashrsi3): Added needed variable.
11313 2011-02-25 Jon Beniston <jon@beniston.com>
11316 * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
11317 * config/lm32/lm32.md (ashlsi3): Remove unused variable.
11318 * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
11319 (lm32_block_move_inline): Add type cast to remove warning.
11320 (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
11321 (gen_int_relational): Move declarations to start of function.
11323 2011-02-25 Eric Botcazou <ebotcazou@adacore.com>
11325 PR tree-optimization/45470
11326 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
11327 can throw internally only.
11328 * tree-vect-stmts.c (vectorizable_call): Likewise.
11330 2011-02-24 Anatoly Sokolov <aesok@post.ru>
11332 * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
11333 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
11334 * config/stormy16/stormy16-protos.h
11335 (xstormy16_preferred_reload_class): Remove.
11336 * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
11337 static. Change 'rclass' argument and return type to reg_class_t.
11338 (TARGET_PREFERRED_RELOAD_CLASS,
11339 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
11341 2011-02-24 Richard Guenther <rguenther@suse.de>
11343 * lto-streamer-in.c (input_bb): Do not find referenced vars
11344 in debug statements.
11346 2011-02-23 Jason Merrill <jason@redhat.com>
11348 * common.opt (fabi-version): Document v5 and v6.
11350 2011-02-23 Richard Guenther <rguenther@suse.de>
11352 PR tree-optimization/47849
11353 * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
11355 2011-02-23 Jie Zhang <jie@codesourcery.com>
11357 * opts-common.c (decode_cmdline_option): Print empty string
11358 argument as "" in decoded->orig_option_with_args_text.
11359 * gcc.c (execute): Print empty string argument as ""
11360 in the verbose output.
11361 (do_spec_1): Keep empty string argument.
11363 2011-02-23 Nathan Froyd <froydnj@codesourcery.com>
11365 * config.gcc: Declare score-* and crx-* obsolete.
11367 2011-02-23 Jie Zhang <jie@codesourcery.com>
11369 PR rtl-optimization/47763
11370 * web.c (web_main): Ignore naked clobber when replacing register.
11372 2011-02-22 Anatoly Sokolov <aesok@post.ru>
11374 * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
11377 2011-02-22 Sebastian Pop <sebastian.pop@amd.com>
11380 * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
11382 2011-02-22 Mike Stump <mikestump@comcast.net>
11384 * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
11386 * configure: Regenerate.
11388 2011-02-21 Chung-Lin Tang <cltang@codesourcery.com>
11390 PR rtl-optimization/46002
11391 * ira-color.c (update_copy_costs): Change class intersection
11392 test to reg_class_contents[] test of 'hard_regno'.
11394 2011-02-21 Joseph Myers <joseph@codesourcery.com>
11396 * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
11397 than Driver option.
11398 * config/hpux11.opt (mt): Likewise.
11399 * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
11400 * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
11401 * config/vax/elf.opt (mno-asm-pic): Likewise.
11402 * config/vms/vms.opt (map, mvms-return-codes): Likewise.
11404 2011-02-21 Mike Stump <mikestump@comcast.net>
11407 * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
11408 tree so we can get save the type.
11409 * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
11410 for CFString instead of trying to use past the end of the builtins.
11411 * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
11412 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
11413 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
11414 * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
11415 Rename to darwin_builtin_cfstring.
11416 (darwin_init_cfstring_builtins): Return the built type.
11418 2011-02-21 Uros Bizjak <ubizjak@gmail.com>
11421 * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
11422 (_mm256_insert_epi64): Use _mm_insert_epi64.
11424 2011-02-21 Anatoly Sokolov <aesok@post.ru>
11426 * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
11427 * config/stormy16/stormy16-protos.h
11428 (xstormy16_mode_dependent_address_p): Remove.
11429 * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
11430 Make static. Change return type to bool. Change argument type to
11431 const_rtx. Remove dead code.
11432 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
11434 2011-02-21 Richard Guenther <rguenther@suse.de>
11437 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
11438 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
11439 (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
11441 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
11442 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
11444 2011-02-20 Richard Guenther <rguenther@suse.de>
11447 * tree.c (free_lang_data_in_decl): Clean builtins from
11448 the TU decl BLOCK_VARS.
11450 2011-02-19 Alexandre Oliva <aoliva@redhat.com>
11454 * haifa-sched.c (fix_tick_ready): Skip tick computation
11457 2011-02-19 Richard Guenther <rguenther@suse.de>
11460 * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
11461 Remove lazy BLOCK_VARS streaming.
11462 (lto_input_ts_block_tree_pointers): Likewise.
11463 * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
11465 2011-02-19 Joseph Myers <joseph@codesourcery.com>
11467 * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
11469 2011-02-19 Joseph Myers <joseph@codesourcery.com>
11471 * config/i386/biarch32.h, config/i386/mach.h,
11472 config/rs6000/aix.opt, config/sh/superh64.h: Remove.
11474 2011-02-19 Jakub Jelinek <jakub@redhat.com>
11477 * config/i386/i386.md (peephole2 for shift and plus): Use
11478 operands[1] original mode in the first insn.
11480 2011-02-18 Mike Stump <mikestump@comcast.net>
11482 * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
11484 2011-02-18 Jan Hubicka <jh@suse.cz>
11486 PR middle-end/47788
11487 * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
11488 to zero when the function is not inlinable at all.
11490 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11492 * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
11493 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
11494 pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
11495 * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
11496 * config/pa/t-pa64: Likewise.
11497 * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
11499 2011-02-18 Jakub Jelinek <jakub@redhat.com>
11502 * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
11504 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11507 * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
11509 2011-02-18 Anatoly Sokolov <aesok@post.ru>
11511 * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
11512 RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
11513 LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
11514 GO_IF_LEGITIMATE_ADDRESS): Remove macros.
11515 * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
11516 (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
11517 m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
11518 m32r_load_postinc_p, m32r_store_preinc_predec_p,
11519 m32r_legitimate_address_p): New functions.
11520 * config/m32r/constraints.md (constraint "S"): Don't use
11521 STORE_PREINC_PREDEC_P.
11522 (constraint "U"): Don't use LOAD_POSTINC_P.
11524 2011-02-18 Chung-Lin Tang <cltang@codesourcery.com>
11526 PR rtl-optimization/46178
11527 * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
11528 compute ira_hard_regno_cover_class[].
11530 2011-02-18 Richard Guenther <rguenther@suse.de>
11533 * lto-streamer.h (lto_global_var_decls): Declare.
11534 * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
11535 statics for global var processing.
11537 2011-02-18 Richard Guenther <rguenther@suse.de>
11539 PR tree-optimization/47737
11540 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
11541 edge dominance check.
11543 2011-02-18 Jakub Jelinek <jakub@redhat.com>
11546 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
11547 avoid invalid rtx sharing.
11549 2011-02-18 Gerald Pfeifer <gerald@pfeifer.com>
11551 * doc/cpp.texi (Obsolete Features): Add background on the
11552 origin of assertions.
11554 2011-02-17 Iain Sandoe <iains@gcc.gnu.org>
11556 * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
11558 * config/darwin.c (output_objc_section_asm_op): Added support for
11560 (is_objc_metadata): New.
11561 (darwin_objc2_section): New.
11562 (darwin_objc1_section): New.
11563 (machopic_select_section): Added support for ABI v1 and v2.
11564 (darwin_emit_objc_zeroed): New.
11565 (darwin_output_aligned_bss): Detect objc metadata and treat it
11567 (darwin_asm_output_aligned_decl_common): Same.
11568 (darwin_asm_output_aligned_decl_local): Same.
11569 * config/darwin-sections.def: Updated for ABI v1 and v2.
11570 * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
11571 compiling Objective-C code for the NeXT runtime, default to using
11572 ABI version 0 for 32-bit, and version 2 for 64-bit.
11574 2011-02-17 Joseph Myers <joseph@codesourcery.com>
11576 * common.opt (optimize_fast): New Variable.
11577 * opts.c (default_options_optimization): Use opts->x_optimize_fast
11578 instead of local variable ofast.
11580 2011-02-17 Nicola Pero <nicola.pero@meta-innovation.com>
11582 * doc/invoke.texi (fobjc-abi-version): Documented.
11583 (fobjc-nilcheck): Documented.
11584 (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
11587 2011-02-17 Joseph Myers <joseph@codesourcery.com>
11590 * common.opt (export-dynamic): New Driver option.
11591 * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
11593 2011-02-17 Joseph Myers <joseph@codesourcery.com>
11595 * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
11597 2011-02-17 Alexandre Oliva <aoliva@redhat.com>
11598 Jan Hubicka <jh@suse.cz>
11602 * cfgexpand.c (account_used_vars_for_block): Remove.
11603 (estimated_stack_frame_size): Use referenced vars.
11604 * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
11605 that were referenced in the original function. Test src_fn
11606 rather than cfun. Drop redundant get_var_ann.
11607 (setup_one_parameter): Drop redundant get_var_ann.
11608 (declare_return_variable): Likewise.
11609 (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
11610 (copy_arguments_for_versioning): Drop redundant get_var_ann.
11611 * ipa-inline.c (compute_inline_parameters): Do not compute
11612 disregard_inline_limits here.
11613 (compute_inlinable_for_current, pass_inlinable): New.
11614 (pass_inline_parameters): Require PROP_referenced_vars.
11615 * cgraphunit.c (cgraph_process_new_functions): Don't run
11616 compute_inline_parameters explicitly unless function is in SSA form.
11617 (cgraph_analyze_function): Set .disregard_inline_limits.
11618 * tree-sra.c (convert_callers): Compute inliner parameters
11619 only for functions already in SSA form.
11621 2011-02-17 Joseph Myers <joseph@codesourcery.com>
11623 * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
11624 -mlittle-endian-data.
11626 2011-02-17 Joseph Myers <joseph@codesourcery.com>
11628 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
11629 -mno-fpu, not -fpu and -no-fpu.
11630 * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
11631 * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
11633 2011-02-17 Uros Bizjak <ubizjak@gmail.com>
11636 * config/i386/i386.c (ix86_secondary_reload): Handle SSE
11637 input reload with PLUS RTX.
11639 2011-02-16 Joseph Myers <joseph@codesourcery.com>
11641 * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
11642 of InverseVar(MDMX).
11644 2011-02-16 Joseph Myers <joseph@codesourcery.com>
11646 * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
11649 2011-02-16 Joseph Myers <joseph@codesourcery.com>
11651 * config/mn10300/mn10300.opt (mno-crt0): New.
11653 2011-02-16 Joseph Myers <joseph@codesourcery.com>
11655 * config/m68k/uclinux.opt (static-libc): New Driver option.
11657 2011-02-16 Joseph Myers <joseph@codesourcery.com>
11659 * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
11661 2011-02-16 Joseph Myers <joseph@codesourcery.com>
11663 * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
11664 %{muser-extend-enabled}.
11666 2011-02-16 Richard Guenther <rguenther@suse.de>
11668 PR tree-optimization/47738
11669 * tree-ssa-loop.c (run_tree_predictive_commoning): Return
11670 the TODO from tree_predictive_commoning.
11672 2011-02-15 Jeff Law <law@redhat.com>
11675 2011-01-25 Jeff Law <law@redhat.com>
11677 PR rtl-optimization/37273
11678 * ira-costs.c (scan_one_insn): Detect constants living in memory and
11679 handle them like argument loads from stack slots. Do not double
11680 count memory for memory constants and argument loads from stack slots.
11682 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
11684 PR middle-end/47725
11685 * combine.c (cant_combine_insn_p): Revert the last change.
11687 2011-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
11690 * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
11691 mode for vector constants. Remove code that checks for TImode.
11693 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
11697 * cgraph.h (compute_inline_parameters): Return void.
11698 * ipa-inline.c (compute_inline_parameters): Adjust.
11700 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
11704 * tree-inline.h (estimated_stack_frame_size): Take cgraph node
11706 * cfgexpand.c (estimated_stack_frame_size): Likewise.
11707 * ipa-inline.c (compute_inline_parameters): Adjust.
11709 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
11713 * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
11714 Adjust all users. Pass FN to...
11715 * tree-flow-inline.h (first_referenced_var): ... this. Add
11717 * ipa-struct-reorg.c: Adjust.
11718 * tree-dfa.c: Adjust.
11719 * tree-into-ssa.c: Adjust.
11720 * tree-sra.c: Adjust.
11721 * tree-ssa-alias.c: Adjust.
11722 * tree-ssa-live.c: Adjust.
11723 * tree-ssa.c: Adjust.
11724 * tree-ssanames.c: Adjust.
11725 * tree-tailcall.c: Adjust.
11727 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
11731 * tree-flow.h (referenced_var_lookup): Add fn parameter.
11732 Adjust all callers.
11733 * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
11734 * tree-flow-inline.h: Adjust.
11735 * gimple-pretty-print.c: Adjust.
11736 * tree-into-ssa.c: Adjust.
11737 * tree-ssa.c: Adjust.
11738 * cfgexpand.c: Adjust.
11740 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
11742 * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
11743 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
11744 (EXTRA_CONSTRAINT): Delete.
11745 * config/iq2000/constraints.md: New file.
11746 * config/iq2000/iq2000.md: Include it.
11747 (define_insn ""): Delete.
11748 (movsi_internal2, movhi_internal2, movqi_internal2): Delete
11749 unsupported constraint letters from patterns.
11750 (call_value, call_value_internal1): Likewise.
11751 (call_value_multiple_internal1): Likewise.
11753 2011-02-15 Nick Clifton <nickc@redhat.com>
11755 * config/mn10300/mn10300.c: Include tm-constrs.h.
11756 (struct liw_data): New data structure describing an LIW candidate
11758 (extract_bundle): Use struct liw_data. Allow small integer
11759 operands for some instructions.
11760 (check_liw_constraints): Use struct liw_data. Remove swapped
11761 parameter. Add comments describing the checks. Fix bug when
11762 assigning the source of liw1 to the source of liw2.
11763 (liw_candidate): Delete. Code moved into extract_bundle.
11764 (mn10300_bundle_liw): Use struct liw_data. Check constraints
11766 * config/mn10300/predicates.md (liw_operand): New predicate.
11767 Allows registers and small integer constants.
11768 * config/mn10300/constraints.md (O): New constraint. Accetps
11769 integers in the range -8 to +7 inclusive.
11770 * config/mn10300/mn10300.md (movesi_internal): Add an alternative
11771 for moving a small integer into a register. Give this alternative
11773 (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
11774 (ashlsi3): Likewise, plus give LIW attributes to the alternatives
11775 using the J,K,L and M constraints,
11776 (liw): Remove SI mode on second operands to allow for HI and QI
11778 (cmp_liw, liw_cmp): Likewise. Plus fix order of operands in the
11781 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
11783 PR middle-end/47725
11784 * combine.c (cant_combine_insn_p): Check zero/sign extended
11787 2011-02-15 Richard Guenther <rguenther@suse.de>
11789 PR tree-optimization/47743
11790 * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
11791 for a non-type-compatible VN lookup bail out.
11793 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
11795 * config/fr30/constraints.md: New file.
11796 * config/fr30/fr30.md: Include it.
11797 * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
11798 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
11799 (EXTRA_CONSTRAINT): Delete.
11801 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
11803 * config/frv/constraints.md: New file.
11804 * config/frv/predicates.md: Include it.
11805 * config/frv/frv.c (reg_class_from_letter): Delete.
11806 (frv_option_override): Don't initialize it.
11807 * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
11808 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
11809 (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
11810 (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
11811 (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
11812 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
11813 (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
11814 (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
11815 (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
11816 (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
11817 (REG_CLASS_FROM_CONSTRAINT): Delete.
11819 2011-02-15 Jakub Jelinek <jakub@redhat.com>
11821 PR middle-end/47581
11822 * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
11823 if frame size is 0 in a leaf function.
11825 2011-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11828 * config/alpha/host-osf.c: New file.
11829 * config/alpha/x-osf: New file.
11830 * config.host (alpha*-dec-osf*): Use it.
11832 2011-02-14 Anatoly Sokolov <aesok@post.ru>
11834 * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
11835 * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
11836 * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
11837 (rx_mode_dependent_address_p): ...this. Make static. Change argument
11839 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
11841 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
11843 * config/stormy16/constraints.md: New file.
11844 * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
11845 Use satisfies_constraint_Q and satisfies_constraint_R.
11846 * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
11848 (xstormy16_legitiamte_address_p): Declare.
11849 * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
11850 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
11851 (EXTRA_CONSTRAINT): Delete.
11852 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
11854 (xstormy16_extra_constraint_p): Delete.
11856 2011-02-14 Eric Botcazou <ebotcazou@adacore.com>
11858 PR tree-optimization/46494
11859 * loop-unroll.c (split_edge_and_insert): Adjust comment.
11860 * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
11861 (pass_rtl_loop_done): Add TODO_verify_flow.
11862 * fwprop.c (pass_rtl_fwprop): Likewise.
11863 * modulo-sched.c (pass_sms): Likewise.
11864 * tree-ssa-dom.c (pass_dominator): Likewise.
11865 * tree-ssa-loop-ch.c (pass_ch): Likewise.
11866 * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
11867 (pass_tree_loop_done): Likewise.
11868 * tree-ssa-pre.c (execute_pre): Likewise.
11869 * tree-ssa-reassoc.c (pass_reassoc): Likewise.
11870 * tree-ssa-sink.c (pass_sink_code): Likewise.
11871 * tree-vrp.c (pass_vrp): Likewise.
11873 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
11875 * config/v850/constraints.md: New file.
11876 * config/v850/v850.md: Include it.
11877 * config/v850/predicates.md (reg_or_0_operand): Use
11878 satisfies_constraint_G.
11879 (special_symbolref_operand): Use satisfies_constraint_K.
11880 * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
11881 (GO_IF_LEGITIMATE_ADDRESS): Likewise.
11882 (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
11883 (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
11884 (EXTRA_CONSTRAINT): Delete.
11885 (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
11886 (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
11887 (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
11889 2011-02-14 Anatoly Sokolov <aesok@post.ru>
11892 * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
11895 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
11897 * config/mcore/constraints.md: New file.
11898 * config/mcore/mcore.md: Include it.
11899 * config/mcore/mcore.c (reg_class_from_letter): Delete.
11900 * config/mcore/mcore.h (reg_class_from_letter): Delete.
11901 (REG_CLASS_FROM_LETTER): Delete.
11902 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
11903 insn_const_int_ok_for_constraint.
11904 (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
11905 (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
11906 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
11907 (EXTRA_CONSTRAINT): Delete.
11909 2011-02-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11912 * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
11913 (IS_SIGHANDLER): Define.
11914 (sparc64_is_sighandler): New function, split off from
11915 sparc64_fallback_frame_state.
11916 (sparc_is_sighandler): New function, split off from
11917 sparc_fallback_frame_state.
11918 (sparc64_fallback_frame_state): Merge with ...
11919 (sparc_fallback_frame_state): ... this into ...
11920 (MD_FALLBACK_FRAME_STATE_FOR): ... this.
11921 Change new_cfa to long. Remove regs_off, fpu_save_off, fpu_save.
11922 Define nframes, mctx. Use IS_SIGHANDLER, handler_args, mctx, walk
11923 stack instead of hardcoded offsets.
11925 2011-02-14 Andriy Gapon <avg@freebsd.org>
11928 * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
11930 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11932 * configure: Regenerate.
11934 2011-02-12 Joseph Myers <joseph@codesourcery.com>
11937 * gcc.c (asm_options): Correct spec matching --target-help.
11939 2011-02-12 Martin Jambor <mjambor@suse.cz>
11941 * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
11942 to gimple call error.
11944 2011-02-12 Mike Stump <mikestump@comcast.net>
11946 * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
11947 comments in backslash regions.
11949 2011-02-12 Mike Stump <mikestump@comcast.net>
11950 Jakub Jelinek <jakub@redhat.com>
11951 Iain Sandoe <iains@gcc.gnu.org>
11954 * dwarf2out.c (output_cfa_loc): When required, apply the
11955 DWARF2_FRAME_REG_OUT macro to adjust register numbers.
11956 (output_loc_sequence): Likewise.
11957 (output_loc_operands_raw): Likewise.
11958 (output_loc_sequence_raw): Likewise.
11959 (output_cfa_loc): Likewise.
11960 (output_loc_list): Suppress register number adjustment when
11961 calling output_loc_sequence()
11962 (output_die): Likewise.
11964 2011-02-12 Anatoly Sokolov <aesok@post.ru>
11966 * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
11968 * config/xtensa/xtensa.c (xtensa_register_move_cost,
11969 xtensa_memory_move_cost): New functions.
11970 (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
11972 2011-02-12 Alexandre Oliva <aoliva@redhat.com>
11975 * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
11976 in the current directory.
11977 * configure: Rebuilt.
11979 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
11981 * config/darwin.c (darwin_override_options): Add a hunk missed
11982 from the commit of r168571. Trim comment line lengths and
11983 correct indents of the preceding block.
11985 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
11987 * gcc.c (driver_handle_option): Concatenate the argument to -F with
11990 2011-02-11 Joseph Myers <joseph@codesourcery.com>
11992 * common.opt (nostartfiles): New Driver option.
11994 2011-02-11 Xinliang David Li <davidxl@google.com>
11996 PR tree-optimization/47707
11997 * tree-chrec.c (convert_affine_scev): Keep type precision.
11999 2011-02-11 Eric Botcazou <ebotcazou@adacore.com>
12001 PR tree-optimization/47420
12002 * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
12004 2011-02-11 Pat Haugen <pthaugen@us.ibm.com>
12006 PR rtl-optimization/47614
12007 * rtl.h (check_for_inc_dec): Declare.
12008 * dse.c (check_for_inc_dec): Externalize...
12009 * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
12010 (reload_cse_simplify_operands): Don't simplify opnds with side effects.
12012 2011-02-11 Joseph Myers <joseph@codesourcery.com>
12015 * gcc.c (main): Do not compile inputs if there were errors in
12017 * opts-common.c (read_cmdline_option): Check for wrong language
12018 after other error checks.
12020 2011-02-11 Nathan Froyd <froydnj@codesourcery.com>
12022 * cgraph.c: Fix comment typos.
12023 * cgraph.h: Likewise.
12024 * cgraphunit.c: Likewise.
12025 * ipa-cp.c: Likewise.
12026 * ipa-inline.c: Likewise.
12027 * ipa-prop.c: Likewise.
12028 * ipa-pure-const.c: Likewise.
12029 * ipa-ref.c: Likewise.
12030 * ipa-reference.c: Likewise.
12032 2011-02-11 Jakub Jelinek <jakub@redhat.com>
12035 * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
12037 2011-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12040 * doc/sourcebuild.texi (Require Support): Document
12041 dg-require-ascii-locale.
12043 2011-02-11 Mingjie Xing <mingjie.xing@gmail.com>
12045 * doc/lto.texi (Write summary): Fix missing parentheses.
12047 2011-02-10 DJ Delorie <dj@redhat.com>
12049 * config/m32c/m32c.c (m32c_option_override): Disable
12050 -fcombine-stack-adjustments until flag value tracking and compare
12051 optimization can be rewritten.
12053 2011-02-10 Peter Bergner <bergner@vnet.ibm.com>
12055 * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
12057 (PROCESSOR_DEFAULT64): Likewise.
12059 2011-02-10 Richard Henderson <rth@redhat.com>
12061 * config/rx/predicates.md (rx_zs_comparison_operator): Revert
12062 change from 2011-02-03.
12063 * config/rx/rx.c (flags_from_code): Likewise.
12064 (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
12065 is valid, n/pz otherwise.
12066 (rx_select_cc_mode): Return CCmode if Y is not zero.
12068 2011-02-10 Richard Guenther <rguenther@suse.de>
12070 * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
12072 2011-02-10 Richard Guenther <rguenther@suse.de>
12074 PR tree-optimization/47677
12075 * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
12077 2011-02-10 Jakub Jelinek <jakub@redhat.com>
12080 * combine.c (make_compound_operation): Only change shifts into
12081 multiplication for SCALAR_INT_MODE_P.
12083 2011-02-10 Jie Zhang <jie@codesourcery.com>
12087 2011-02-05 Jie Zhang <jie@codesourcery.com>
12089 * web.c (entry_register): Don't clobber the number of the
12090 first uninitialized reference in used[].
12092 2011-02-09 Richard Guenther <rguenther@suse.de>
12094 PR tree-optimization/47664
12095 * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
12098 2011-02-09 David Edelsohn <dje.gcc@gmail.com>
12102 * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
12104 (PROCESSOR_DEFAULT64): Same.
12105 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
12107 2011-02-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12109 * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
12111 2011-02-09 Martin Jambor <mjambor@suse.cz>
12113 PR middle-end/45505
12114 * tree-sra.c (struct access): New flags grp_scalar_read and
12115 grp_scalar_write. Changed description of assignment read and write
12117 (dump_access): Dump new flags, reorder all of them.
12118 (sort_and_splice_var_accesses): Set the new flag accordingly, use them
12119 to detect multiple scalar reads.
12120 (analyze_access_subtree): Use the new scalar read write flags instead
12121 of the old flags. Adjusted comments.
12123 2011-02-08 DJ Delorie <dj@redhat.com>
12126 * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
12129 2011-02-08 Joseph Myers <joseph@codesourcery.com>
12131 * config/m68k/uclinux.opt: New.
12132 * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
12134 2011-02-08 Joseph Myers <joseph@codesourcery.com>
12136 * config/cris/elf.opt (sim): New Driver option.
12138 2011-02-08 Joseph Myers <joseph@codesourcery.com>
12140 * config/xtensa/elf.opt: New.
12141 * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
12143 2011-02-08 Joseph Myers <joseph@codesourcery.com>
12145 * config/vax/elf.opt: New.
12146 * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
12148 2011-02-08 Joseph Myers <joseph@codesourcery.com>
12150 * config/rs6000/aix64.opt (posix, pthread): New Driver options.
12152 2011-02-08 Joseph Myers <joseph@codesourcery.com>
12154 * config/gnu-user.opt: New.
12155 * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
12156 *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
12157 *-*-uclinux*): Use gnu-user.opt.
12159 2011-02-08 Thomas Schwinge <thomas@schwinge.name>
12161 * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
12162 * config/i386/gnu.h (CPP_SPEC): Likewise.
12164 2011-02-08 Ian Lance Taylor <iant@google.com>
12166 * common.opt (fcx-limited-range): Add SetByCombined flag.
12167 (ffinite-math-only, fmath-errno, frounding-math): Likewise.
12168 (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
12169 (fassociative-math, freciprocal-math): Likewise.
12170 (funsafe-math-optimizations): Likewise.
12171 * opth-gen.awk: Handle SetByCombined.
12172 * optc-gen.awk: Likewise.
12173 * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
12174 (set_unsafe_math_optimizations_flags): Likewise.
12175 * doc/options.texi (Option properties): Document SetByCombined.
12177 2011-02-08 Joseph Myers <joseph@codesourcery.com>
12179 * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
12180 i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
12181 m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
12182 m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
12183 sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
12185 2011-02-08 Sebastian Pop <sebastian.pop@amd.com>
12187 PR tree-optimization/46834
12188 PR tree-optimization/46994
12189 PR tree-optimization/46995
12190 * graphite-sese-to-poly.c (used_outside_reduction): New.
12191 (detect_commutative_reduction): Call used_outside_reduction.
12192 (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
12193 translate_scalar_reduction_to_array only when at least one
12194 loop-phi/close-phi tuple has been detected.
12196 2011-02-08 Richard Guenther <rguenther@suse.de>
12198 PR middle-end/47639
12199 * tree-vect-generic.c (expand_vector_operations_1): Update
12201 (expand_vector_operations): ... not here. Cleanup EH info
12202 and the CFG if required.
12204 2011-02-08 Richard Guenther <rguenther@suse.de>
12206 PR tree-optimization/47641
12207 * tree-ssa.c (execute_update_addresses_taken): For asm outputs
12208 require type compatibility.
12210 2011-02-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12212 * gimple-low.c (lower_function_body): Don't remove the location of
12213 the return statement here.
12214 (lower_gimple_return): Do it here instead but only if the return
12215 statement is actually used twice.
12217 2011-02-08 Richard Guenther <rguenther@suse.de>
12219 PR tree-optimization/47632
12220 * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
12221 unused up_to_stmt parameter, return whether cfg-cleanup is
12222 necessary, remove EH info properly.
12223 (forward_propagate_into_gimple_cond): Adjust caller.
12224 (forward_propagate_into_cond): Likewise.
12225 (forward_propagate_comparison): Likewise.
12226 (tree_ssa_forward_propagate_single_use_vars): Make
12227 forward_propagate_comparison case similar to the two others.
12229 2011-02-08 Nick Clifton <nickc@redhat.com>
12231 * config/mn10300/mn10300.opt (mliw): New command line option.
12232 * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
12233 (liw_bundling): New automaton.
12234 (liw): New attribute.
12235 (liw_op): New attribute.
12236 (liw_op1, liw_op2, liw_both, liw_either): New reservations.
12237 (movsi_internal): Add LIW attributes.
12238 (andsi3): Likewise.
12239 (iorsi3): Likewise.
12240 (xorsi3): Likewise.
12241 (addsi3): Separate register and immediate alternatives.
12242 Add LIW attributes.
12243 (subsi3): Likewise.
12245 (aslsi3): Likewise.
12246 (lshrsi3): Likewise.
12247 (ashrsi3): Likewise.
12248 (liw): New pattern.
12249 * config/mn10300/mn10300.c (liw_op_names): New
12250 (mn10300_print_operand): Handle 'W' operand descriptor.
12251 (extract_bundle): New function.
12252 (check_liw_constraints): New function.
12253 (liw_candidate): New function.
12254 (mn10300_bundle_liw): New function.
12255 (mn10300_reorg): New function.
12256 (TARGET_MACHINE_DEPENDENT_REORG): Define.
12257 (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
12258 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
12259 __LIW__ or __NO_LIW__.
12260 * doc/invoke.texi: Describe the -mliw command line option.
12262 2011-02-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12264 * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
12265 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
12266 pthread_mutex_unlock): Remove.
12267 * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
12268 * config/pa/t-pa64: Likewise.
12269 * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
12270 shared libc if not linking against libpthread.
12271 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
12273 2011-02-07 Iain Sandoe <iains@gcc.gnu.org>
12276 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
12277 on 10.6 and later to ensure that we always use the unwinder from
12278 the system. Only add -no_compact_unwind when tarteting darwin
12281 2011-02-07 Steve Ellcey <sje@cup.hp.com>
12284 * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
12285 (vec_interleave_lowv2sf): Ditto.
12286 (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
12287 (vec_extract_oddv2sf): Ditto.
12289 2011-02-07 Mike Stump <mikestump@comcast.net>
12292 Add __ieee_divdc3 entry point.
12293 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
12295 (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
12296 * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
12297 * config/darwin.c (darwin_rename_builtins): Add.
12298 * config/darwin-protos.h (darwin_rename_builtins): Add.
12300 2011-02-07 Michael Meissner <meissner@linux.vnet.ibm.com>
12303 * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
12306 2011-02-07 Mike Stump <mikestump@comcast.net>
12308 * config/darwin.opt (mmacosx-version-min): Update default OS version.
12310 2011-02-07 Denis Chertykov <chertykov@gmail.com>
12313 * config/avr/libgcc.S (exit): Move .endfunc
12315 2011-02-07 Richard Guenther <rguenther@suse.de>
12317 PR tree-optimization/47615
12318 * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
12319 * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
12320 (run_scc_vn): Initialize it.
12321 (visit_reference_op_load): Use it.
12322 * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
12324 2011-02-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12326 * config/spu/spu.c (spu_init_libfuncs): Install SImode and
12327 DImode trapping arithmetic libfuncs.
12329 2011-02-07 Richard Guenther <rguenther@suse.de>
12331 PR tree-optimization/47621
12332 * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
12334 (execute_update_addresses_taken): ... here. Make it more
12335 conservative in what we accept.
12337 2011-02-06 Joseph Myers <joseph@codesourcery.com>
12339 * config/sparc/freebsd.h (ASM_SPEC): Define.
12340 * config/sparc/vxworks.h (ASM_SPEC): Define.
12342 2011-02-06 Joseph Myers <joseph@codesourcery.com>
12344 * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
12346 2011-02-06 Steven Bosscher <steven@gcc.gnu.org>
12348 * doc/invoke.texi: Remove reference to compiler internals from
12349 user documentation.
12351 * reg-notes.def: Remove REG_VALUE_PROFILE.
12352 * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
12354 2011-02-05 Jakub Jelinek <jakub@redhat.com>
12356 PR middle-end/47610
12357 * varasm.c (default_section_type_flags): If decl is NULL,
12358 and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
12360 2011-02-05 Jie Zhang <jie@codesourcery.com>
12363 * web.c (entry_register): Don't clobber the number of the
12364 first uninitialized reference in used[].
12366 2011-02-04 Sebastian Pop <sebastian.pop@amd.com>
12368 PR tree-optimization/46194
12369 * tree-data-ref.c (analyze_miv_subscript): Remove comment.
12370 (build_classic_dist_vector_1): Do not represent classic distance
12371 vectors when the access functions are variating in different loops.
12373 2011-02-04 Joseph Myers <joseph@codesourcery.com>
12375 * config/mips/iris6.opt: New.
12376 * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
12378 2011-02-04 Richard Henderson <rth@redhat.com>
12379 Steve Ellcey <sje@cup.hp.com>
12382 * config/ia64/predicates.md (mux1_brcst_element): New.
12383 * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
12384 * config/ia64/ia64.c (ia64_unpack_assemble): New.
12385 (ia64_unpack_sign): New.
12386 (ia64_expand_unpack): Rewrite using new routines.
12387 (ia64_expand_widen_sum): Ditto.
12388 (ia64_expand_dot_prod_v8qi): Ditto.
12389 * config/ia64/vect.md (mulv8qi3): Rewrite to use new
12390 routines, add endian check.
12391 (pmpy2_even): Rename from pmpy2_r, add endian check.
12392 (pmpy2_odd): Rename from pmpy2_l, add endian check.
12393 (vec_widen_smult_lo_v4hi): Rewrite using new routines.
12394 (vec_widen_smult_hi_v4hi): Ditto.
12395 (vec_widen_umult_lo_v4hi): Ditto.
12396 (vec_widen_umult_hi_v4hi): Ditto.
12397 (mulv2si3): Change endian checks.
12398 (sdot_prodv4hi): Rewrite with new calls.
12399 (udot_prodv4hi): New.
12400 (vec_pack_ssat_v4hi): Add endian check.
12401 (vec_pack_usat_v4hi): Ditto.
12402 (vec_pack_ssat_v2si): Ditto.
12403 (max1_even): Rename from max1_r, add endian check.
12404 (max1_odd): Rename from max1_l, add endian check.
12405 (*mux1_rev): Format change.
12406 (*mux1_mix): Ditto.
12407 (*mux1_shuf): Ditto.
12408 (*mux1_alt): Ditto.
12409 (*mux1_brcst_v8qi): Use new predicate.
12410 (vec_extract_evenv8qi): Remove endian check.
12411 (vec_extract_oddv8qi): Ditto.
12412 (vec_interleave_lowv4hi): Format change.
12413 (vec_interleave_highv4hi): Ditto.
12414 (mix2_even): Rename from mix2_r, add endian check.
12415 (mix2_odd): Rename from mux2_l, add endian check.
12416 (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
12417 (vec_extract_evenodd_helper): Format change.
12418 (vec_extract_evenv4hi): Remove endian check.
12419 (vec_extract_oddv4hi): Remove endian check.
12420 (vec_interleave_lowv2si): Format change.
12421 (vec_interleave_highv2si): Format change.
12422 (vec_initv2si): Remove endian check.
12423 (vecinit_v2si): Add endian check.
12424 (reduc_splus_v2sf): Add endian check.
12425 (reduc_smax_v2sf): Ditto.
12426 (reduc_smin_v2sf): Ditto.
12427 (vec_initv2sf): Remove endian check.
12428 (fpack): Add endian check.
12429 (fswap): Add endian check.
12430 (vec_interleave_highv2sf): Add endian check.
12431 (vec_interleave_lowv2sf): Add endian check.
12432 (fmix_lr): Add endian check.
12433 (vec_setv2sf): Format change.
12434 (*vec_extractv2sf_0_be): Use shift to extract operand.
12435 (*vec_extractv2sf_1_be): New.
12436 (vec_pack_trunc_v4hi): Add endian check.
12437 (vec_pack_trunc_v2si): Format change.
12439 2011-02-04 Jakub Jelinek <jakub@redhat.com>
12441 PR inline-asm/23200
12442 * tree-ssa-ter.c (is_replaceable_p): Add TER argument. Don't
12443 do bb, locus and block comparison and disallow loads if it is not set.
12444 (stmt_is_replaceable_p): New function.
12445 (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
12447 * expr.c (expand_expr_real_1) <case SSA_NAME>: If
12448 get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
12450 * tree-flow.h (stmt_is_replaceable_p): New prototype.
12452 2011-02-04 Joseph Myers <joseph@codesourcery.com>
12454 * config/rs6000/xilinx.opt: New.
12455 * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
12457 2011-02-04 Joseph Myers <joseph@codesourcery.com>
12459 * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
12461 2011-02-03 Anatoly Sokolov <aesok@post.ru>
12463 * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
12464 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
12465 * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
12466 secondary_reload_info, xtensa_secondary_reload): Remove.
12467 * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
12468 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
12469 (xtensa_preferred_reload_class): Make static. Change return and
12470 'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
12471 Use CONST_DOUBLE_P predicate.
12472 (xtensa_preferred_output_reload_class): New function.
12473 (xtensa_secondary_reload): Make static.
12475 2011-02-03 Joseph Myers <joseph@codesourcery.com>
12477 * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
12478 Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
12479 Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
12481 2011-02-03 Jakub Jelinek <jakub@redhat.com>
12483 PR middle-end/31490
12484 * output.h (SECTION_RELRO): Define.
12485 (SECTION_MACH_DEP): Adjust.
12486 (get_variable_section): New prototype.
12487 * varpool.c (varpool_finalize_named_section_flags): New function.
12488 (varpool_assemble_pending_decls): Call it.
12489 * cgraph.h (varpool_finalize_named_section_flags): New prototype.
12490 * cgraphunit.c (cgraph_output_in_order): Call
12491 varpool_finalize_named_section_flags.
12492 * varasm.c (get_section): Allow section flags conflicts between
12493 relro and read-only sections if the section hasn't been declared yet.
12494 Set SECTION_OVERRIDE after diagnosing section type conflict.
12495 (get_variable_section): No longer static.
12496 (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
12497 readonly sections that need relocations.
12498 (decl_readonly_section_1): New function.
12499 (decl_readonly_section): Use it.
12502 2010-11-17 Dinar Temirbulatov <dtemirbulatov@gmail.com>
12503 Steve Ellcey <sje@cup.hp.com>
12505 PR middle-end/31490
12506 * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
12507 if section attribute used.
12509 2011-02-03 Jakub Jelinek <jakub@redhat.com>
12511 * config/darwin.h (SECTION_NO_ANCHOR): Remove.
12512 * config/darwin.c (SECTION_NO_ANCHOR): Define.
12513 (darwin_init_sections): Remove assertion.
12515 2011-02-03 Nick Clifton <nickc@redhat.com>
12517 * config/rx/predicates.md (rx_zs_comparison_operator): Remove
12519 * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
12520 * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
12521 instead of "n" and "pz".
12522 (flags_from_code): LT and GE tests need CC_FLAG_O as well as
12525 2011-02-03 Jakub Jelinek <jakub@redhat.com>
12528 * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
12529 fma, expand FMA_EXPR as fma{,f,l} call.
12532 * lto-streamer-out.c (write_symbol): When writing kind and visibility,
12533 copy them into a unsigned char variable and pass address of it to
12534 lto_output_data_stream.
12537 * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
12538 around backend_init_target and lang_dependent_init_target calls.
12539 * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
12540 (verify_cgraph_node): Don't call set_cfun here. Use
12541 cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
12542 Set error_found for incorrectly represented calls to thunks.
12544 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
12547 PR rtl-optimization/43494
12548 * rtl.h (for_each_inc_dec_fn): New type.
12549 (for_each_inc_dec): Declare.
12550 * rtlanal.c (struct for_each_inc_dec_ops): New type.
12551 (for_each_inc_dec_find_inc_dec): New fn.
12552 (for_each_inc_dec_find_mem): New fn.
12553 (for_each_inc_dec): New fn.
12554 * dse.c (struct insn_size): Remove.
12555 (replace_inc_dec, replace_inc_dec_mem): Remove.
12556 (emit_inc_dec_insn_before): New fn.
12557 (check_for_inc_dec): Use it, along with for_each_inc_dec.
12558 (canon_address): Pass mem modes to cselib_lookup.
12559 * cselib.h (cselib_lookup): Add memmode argument. Adjust callers.
12560 (cselib_lookup_from_insn): Likewise.
12561 (cselib_subst_to_values): Likewise.
12562 * cselib.c (find_slot_memmode): New var.
12563 (cselib_find_slot): New fn. Use it instead of
12564 htab_find_slot_with_hash everywhere.
12565 (entry_and_rtx_equal_p): Use find_slot_memmode.
12566 (autoinc_split): New fn.
12567 (rtx_equal_for_cselib_p): Rename and implement in terms of...
12568 (rtx_equal_for_cselib_1): ... this. Take memmode, pass it on.
12569 Deal with autoinc. Special-case recursion into MEMs.
12570 (cselib_hash_rtx): Likewise.
12571 (cselib_lookup_mem): Infer pmode from address mode. Distinguish
12572 address and MEM modes.
12573 (cselib_subst_to_values): Add memmode, pass it on.
12575 (cselib_lookup): Add memmode argument, pass it on.
12576 (cselib_lookup_from_insn): Add memmode.
12577 (cselib_invalidate_rtx): Discard obsolete push_operand handling.
12578 (struct cselib_record_autoinc_data): New.
12579 (cselib_record_autoinc_cb): New fn.
12580 (cselib_record_sets): Use it, along with for_each_inc_dec. Pass MEM
12581 mode to cselib_lookup. Reset autoinced REGs here instead of...
12582 (cselib_process_insn): ... here.
12583 * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
12585 (add_uses): Likewise, also to cselib_subst_to_values.
12586 (add_stores): Likewise.
12587 * sched-deps.c (add_insn_mem_dependence): Pass mode to
12588 cselib_subst_to_values.
12589 (sched_analyze_1, sched_analyze_2): Likewise. Adjusted.
12590 * gcse.c (do_local_cprop): Adjusted.
12591 * postreload.c (reload_cse_simplify_set): Adjusted.
12592 (reload_cse_simplify_operands): Adjusted.
12593 * sel-sched-dump (debug_mem_addr_value): Pass mode.
12595 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
12597 PR tree-optimization/45122
12598 * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
12599 unsafe assumptions when there's more than one loop exit.
12601 2011-02-02 Michael Meissner <meissner@linux.vnet.ibm.com>
12604 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
12605 Document using vector double with the load/store builtins, and
12606 that the load/store builtins always use Altivec instructions.
12608 * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
12609 to use altivec memory instructions, even on VSX.
12610 (vector_altivec_store_<mode>): Ditto.
12612 * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
12615 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
12616 V2DF, V2DI support to load/store overloaded builtins.
12618 * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
12619 altivec load/store builtins for V2DF/V2DI types.
12621 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
12622 set avoid indexed addresses on power6 if -maltivec.
12623 (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
12624 vector_altivec_load/vector_altivec_store builtins.
12625 (altivec_expand_st_builtin): Ditto.
12626 (altivec_expand_builtin): Add VSX memory builtins.
12627 (rs6000_init_builtins): Add V2DI types to internal types.
12628 (altivec_init_builtins): Add support for V2DF/V2DI altivec
12629 load/store builtins.
12630 (rs6000_address_for_altivec): Insure memory address is appropriate
12633 * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
12634 vec_vsx_ld and vec_vsx_st.
12635 (vsx_store_<mode>): Ditto.
12637 * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
12638 variables to hold long long types for VSX vector memory builtins.
12639 (RS6000_BTI_unsigned_long_long): Ditto.
12640 (long_long_integer_type_internal_node): Ditti.
12641 (long_long_unsigned_type_internal_node): Ditti.
12643 * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
12644 (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
12645 (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
12647 * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
12649 (vec_vsx_st): Ditto.
12651 2011-02-02 Joseph Myers <joseph@codesourcery.com>
12653 * config/pa/pa-hpux10.opt: New.
12654 * config/hpux11.opt (pthread): New Driver option.
12655 * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
12656 * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
12658 2011-02-02 Joseph Myers <joseph@codesourcery.com>
12660 * config/ia64/vms.opt: New.
12661 * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
12663 2011-02-01 Michael Meissner <meissner@linux.vnet.ibm.com>
12666 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
12667 gpc_reg_operand instead of vsx_register_operand to match rs6000.md
12668 generator functions.
12669 (vsx_floatuns<VSi><mode>2): Ditto.
12670 (vsx_fix_trunc<mode><VSi>2): Ditto.
12671 (vsx_fixuns_trunc<mode><VSi>2): Ditto.
12673 2011-02-02 Joseph Myers <joseph@codesourcery.com>
12675 * config/i386/djgpp.opt (posix): New Driver option.
12677 2011-02-02 Gerald Pfeifer <gerald@pfeifer.com>
12679 * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
12680 Move to the unsupported targets list.
12682 2011-02-02 Peter Bergner <bergner@vnet.ibm.com>
12684 PR rtl-optimization/47525
12685 * df-scan.c: Update copyright years.
12686 (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
12687 and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
12689 2011-02-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12691 * config/i386/sysv4.h (TARGET_VERSION): Remove.
12692 (SUBTARGET_RETURN_IN_MEMORY): Remove.
12693 (ASM_OUTPUT_ASCII): Remove.
12694 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
12696 2011-02-02 Jeff Law <law@redhat.com>
12698 PR middle-end/47543
12699 * reload.c (find_reloads_address): Handle reg+d address where both
12700 components are invalid by reloading the entire address.
12702 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
12703 Richard Guenther <rguenther@suse.de>
12705 PR tree-optimization/40979
12707 * passes.c (init_optimization_passes): After LIM call copy_prop
12708 and DCE to clean up.
12709 * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
12711 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
12713 PR tree-optimization/47576
12714 PR tree-optimization/47555
12715 * doc/invoke.texi (scev-max-expr-complexity): Documented.
12716 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
12717 (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
12718 * tree-scalar-evolution.c (follow_ssa_edge): Use
12719 PARAM_SCEV_MAX_EXPR_COMPLEXITY.
12721 2011-02-02 Richard Guenther <rguenther@suse.de>
12723 PR tree-optimization/47566
12724 * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
12726 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
12730 * tree-inline.c (declare_return_variable): Remove unused caller
12735 * tree-flow-inline.h (clear_is_used, is_used_p): New.
12736 * cfgexpand.c (account_used_vars_for_block): Use them.
12737 * tree-nrv.c (tree_nrv): Likewise.
12738 * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
12739 (dump_scope_block): Likewise.
12740 (remove_unused_locals): Likewise.
12744 * tree-inline.c (declare_return_variable): Add result decl to
12745 local decls only once.
12746 * gimple-low.c (record_vars_into): Mark newly-created variables
12749 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
12755 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
12757 (no_real_insns_p, schedule_block, set_priorities): Drop special
12758 treatment of boundary debug insns.
12759 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
12760 * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
12761 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
12762 (BOUNDARY_DEBUG_INSN_P): Likewise.
12763 (SCHEDULE_DEBUG_INSN_P): Likewise.
12764 * sched-rgn.c (init_ready_list): Drop special treatment of
12765 boundary debug insns.
12766 * final.c (rest_of_clean_state): Clear notes' BB.
12768 2011-02-01 Joseph Myers <joseph@codesourcery.com>
12770 * config/openbsd.opt (assert=): New Driver option.
12772 2011-02-01 Joseph Myers <joseph@codesourcery.com>
12774 * config/i386/nto.opt: New.
12775 * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
12777 2011-02-01 Joseph Myers <joseph@codesourcery.com>
12779 * config/i386/netware.opt: New.
12780 * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
12782 2011-02-01 Joseph Myers <joseph@codesourcery.com>
12784 * config/interix.opt (posix): New Driver option.
12786 2011-02-01 DJ Delorie <dj@redhat.com>
12788 * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
12790 * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
12793 2011-02-01 Sebastian Pop <sebastian.pop@amd.com>
12795 PR tree-optimization/47561
12796 * toplev.c (process_options): Print the Graphite flags. Add
12797 flag_loop_flatten to the list of options requiring Graphite.
12799 2011-02-01 Joseph Myers <joseph@codesourcery.com>
12801 * config/i386/cygming.opt (posix): New Driver option.
12803 2011-02-01 Joseph Myers <joseph@codesourcery.com>
12805 * config/arm/vxworks.opt: New.
12806 * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
12808 2011-02-01 Joseph Myers <joseph@codesourcery.com>
12810 * config/alpha/elf.opt: New.
12811 * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
12812 alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
12814 2011-02-01 Richard Guenther <rguenther@suse.de>
12816 PR tree-optimization/47559
12817 * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
12818 store-motion on references that can throw.
12820 2011-02-01 Bernd Schmidt <bernds@codesourcery.com>
12822 * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
12823 * tree-pass.h (TDF_CSELIB): New macro.
12824 * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
12825 cselib_lookup): Check for it rather than for TDF_DETAILS.
12827 2011-02-01 H.J. Lu <hongjiu.lu@intel.com>
12830 * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
12831 is HOST_BIT_BUCKET.
12833 * opts.c (finish_options): Don't add x_aux_base_name if it is
12836 2011-02-01 Richard Guenther <rguenther@suse.de>
12838 PR tree-optimization/47555
12840 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
12842 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
12844 2011-02-01 Sebastien Bourdeauducq <sebastien@milkymist.org>
12847 * config/lm32/t-lm32: Add multilib for all CPU options.
12849 2011-02-01 Richard Guenther <rguenther@suse.de>
12851 PR tree-optimization/47541
12852 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
12853 sure to have a field at offset zero.
12855 2011-01-31 Joseph Myers <joseph@codesourcery.com>
12857 * config/arc/arc.opt (EB, EL): New Driver options.
12859 2011-01-31 Joseph Myers <joseph@codesourcery.com>
12861 * config/alpha/osf5.opt: New.
12862 * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
12864 2011-01-31 Joseph Myers <joseph@codesourcery.com>
12866 * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
12868 2011-01-31 Sebastian Pop <sebastian.pop@amd.com>
12870 * common.opt (ftree-loop-linear): Use Alias to make it an alias of
12871 -floop-interchange.
12872 * invoke.texi (-ftree-loop-linear): Make it clear that this flag
12873 is an alias of -floop-interchange and that it requires the
12874 Graphite infrastructure.
12875 * tree-ssa-loop.c (gate_graphite_transforms): Do not set
12876 flag_loop_interchange based on the value of flag_tree_loop_linear.
12878 2011-01-31 Jakub Jelinek <jakub@redhat.com>
12879 Richard Guenther <rguenther@suse.de>
12881 PR tree-optimization/47538
12882 * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
12883 type instead of r1type, except for comparisons. For right
12884 shifts and comparisons punt if there are mismatches in
12885 sizetype vs. non-sizetype types.
12887 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12889 * doc/sourcebuild.texi (Effective-Target Keywords): Document
12892 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12894 * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
12896 * configure: Regenerate.
12898 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12900 * configure.ac (gcc_cv_ld_static_option): Define.
12901 (gcc_cv_ld_dynamic_option): Define.
12902 (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
12904 (HAVE_LD_STATIC_DYNAMIC): Update message.
12905 (LD_STATIC_OPTION): Define.
12906 (LD_DYNAMIC_OPTION): Define.
12907 * configure: Regenerate.
12908 * config.in: Regenerate.
12909 * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
12910 HAVE_LD_STATIC_DYNAMIC]: Use them.
12912 2011-01-31 Nick Clifton <nickc@redhat.com>
12914 * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
12915 registers inside interrupt handlers if the handler is not a leaf
12918 2011-01-31 Nick Clifton <nickc@redhat.com>
12920 * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
12921 reg_renumber returning an INVALID_REGNUM.
12923 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
12926 * doc/install.texi: Document host options discarded when cross
12927 configuring target libraries.
12929 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
12932 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
12935 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
12937 (no_real_insns_p, schedule_block, set_priorities): Drop special
12938 treatment of boundary debug insns.
12939 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
12940 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
12941 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
12942 (BOUNDARY_DEBUG_INSN_P): Likewise.
12943 (SCHEDULE_DEBUG_INSN_P): Likewise.
12944 * sched-rgn.c (init_ready_list): Drop special treatment of
12945 boundary debug insns.
12946 * final.c (rest_of_clean-state): Clear notes' BB.
12948 2011-01-31 Alan Modra <amodra@gmail.com>
12950 * config/rs6000/rs6000.c (print_operand): Rearrange addends in
12951 toc relative expressions as we do in print_operand_address.
12953 2011-01-30 Kazu Hirata <kazu@codesourcery.com>
12955 * doc/extend.texi: Follow spelling conventions.
12956 * doc/invoke.texi: Fix a typo.
12958 2011-01-30 Joseph Myers <joseph@codesourcery.com>
12960 * config/hpux11.opt: New.
12961 * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
12962 ia64*-*-hpux*): Use hpux11.opt.
12964 2011-01-30 Jonathan Yong <jon_y@users.sourceforge.net>
12966 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
12969 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
12971 * doc/install.texi (hppa-hp-hpux10): Remove references to HP
12974 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
12976 * doc/install.texi (Binaries): Remove outdated reference for
12977 Motorola 68HC11/68HC12 downloads.
12979 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
12981 * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
12984 2011-01-29 Jonathan Wakely <jwakely.gcc@gmail.com>
12987 * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
12990 2011-01-28 Ahmad Sharif <asharif@google.com>
12992 * value-prof.c (check_counter): Corrected error message.
12994 2011-01-29 Jie Zhang <jie@codesourcery.com>
12996 * config/arm/arm.c (arm_legitimize_reload_address): New.
12997 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
12998 arm_legitimize_reload_address.
12999 * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
13001 2011-01-28 Ian Lance Taylor <iant@google.com>
13003 * godump.c (go_define): Ignore macros whose definitions include
13004 two adjacent operands.
13006 2011-01-28 Jakub Jelinek <jakub@redhat.com>
13009 * varasm.c (force_const_mem): Store copy of x in desc->constant
13010 instead of x itself.
13011 * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
13012 itself into REG_EQUAL note.
13014 2011-01-28 Joseph Myers <joseph@codesourcery.com>
13016 * config/freebsd.opt (posix, rdynamic): New Driver options.
13018 2011-01-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13020 * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
13021 -Bstatic/-Bdynamic.
13022 * configure: Regenerate.
13024 2011-01-27 Joseph Myers <joseph@codesourcery.com>
13026 * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
13027 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
13029 2011-01-27 Anatoly Sokolov <aesok@post.ru>
13031 * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
13032 * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
13033 * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
13034 (s390_preferred_reload_class): Make static. Change return and
13035 'rclass' argument type to reg_class_t.
13037 2011-01-27 Jan Hubicka <jh@suse.cz>
13039 PR middle-end/46949
13040 * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
13041 (process_function_and_variable_attributes): Check defined weakrefs.
13043 2011-01-27 Martin Jambor <mjambor@suse.cz>
13045 PR tree-optimization/47228
13046 * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
13047 build_ref_for_offset.
13049 2011-01-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13051 * config/spu/spu-elf.h (ASM_SPEC): Remove.
13053 2011-01-26 Mikael Pettersson <mikpe@it.uu.se>
13055 PR rtl-optimization/46856
13056 * postreload.c (reload_combine_recognize_const_pattern): Do not
13057 separate cc0 setter and user on cc0 targets.
13059 2011-01-26 Nicola Pero <nicola.pero@meta-innovation.com>
13062 * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
13063 passed a VOID_TYPE expression, immediately emit an error and
13064 return error_mark_node.
13066 2011-01-26 Jeff Law <law@redhat.com>
13068 PR rtl-optimization/47464
13069 * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
13070 rather than may_trap_p as needed.
13072 2011-01-26 DJ Delorie <dj@redhat.com>
13074 PR rtl-optimization/46878
13075 * combine.c (insn_a_feeds_b): Check for the implicit cc0
13076 setter/user dependency as well.
13078 2011-01-26 Eric Botcazou <ebotcazou@adacore.com>
13080 PR rtl-optimization/44469
13081 * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
13082 after removing trivially dead basic blocks.
13084 2011-01-26 Joseph Myers <joseph@codesourcery.com>
13086 * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
13087 * config/frv/frv.h (LINK_SPEC): Likewise.
13088 * config/i386/netware.h (LINK_SPEC): Likewise.
13089 * config/m68k/linux.h (ASM_SPEC): Likewise.
13090 * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
13091 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
13092 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
13093 * config/sparc/linux.h (ASM_SPEC): Likewise.
13094 * config/sparc/linux64.h (ASM_SPEC): Likewise.
13095 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
13097 2011-01-26 Joseph Myers <joseph@codesourcery.com>
13099 * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
13100 * config/frv/frv.h (ASM_SPEC): Likewise.
13101 * config/m68k/linux.h (ASM_SPEC): Likewise.
13102 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
13103 * config/rs6000/linux64.h (ASM_SPEC): Likewise.
13104 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
13105 * config/sparc/linux.h (ASM_SPEC): Likewise.
13106 * config/sparc/linux64.h (ASM_SPEC): Likewise.
13107 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
13109 2011-01-26 Joseph Myers <joseph@codesourcery.com>
13111 * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
13112 * config/frv/frv.h (LINK_SPEC): Likewise.
13113 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
13115 2011-01-26 Joseph Myers <joseph@codesourcery.com>
13117 * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
13118 * config/frv/frv.h (ASM_SPEC): Likewise.
13119 * config/i386/sol2-10.h (ASM_SPEC): Likewise.
13120 * config/m68k/linux.h (ASM_SPEC): Likewise.
13121 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
13122 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
13123 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
13124 * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
13125 * config/sparc/linux.h (ASM_SPEC): Likewise.
13126 * config/sparc/linux64.h (ASM_SPEC): Likewise.
13127 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
13128 * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
13130 2011-01-26 Steve Ellcey <sje@cup.hp.com>
13133 * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
13135 (vec_extract_evenodd_help): Ditto.
13136 (vec_extract_evenv4hi): Ditto.
13137 (vec_extract_oddv4hi): Ditto.
13138 (vec_interleave_lowv2si): Ditto.
13139 (vec_interleave_highv2si): Ditto.
13140 (vec_extract_evenv2si): Ditto.
13141 (vec_extract_oddv2si: Ditto.
13142 (vec_pack_trunc_v2si): Ditto.
13144 2011-01-22 Jan Hubicka <jh@suse.cz>
13147 * cgraph.h (cgraph_local_info): New field can_change_signature.
13148 * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
13149 signature can change.
13150 (ipcp_estimate_growth): Call sequence simplify only if calle signature
13152 (ipcp_insert_stage): Only compute args_to_skip if signature can change.
13153 (cgraph_function_versioning): We can not change signature of functions
13154 that don't allow that.
13155 * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
13156 (lto_input_node): Likewise.
13157 * ipa-inline.c (compute_inline_parameters): Compute
13158 local.can_change_signature.
13159 * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
13160 * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
13161 functions that can not change signature.
13162 * i386.c (ix86_function_regparm, ix86_function_sseregparm,
13163 init_cumulative_args): Do not use local calling conventions
13164 for functions that can not change signature.
13166 2011-01-22 Jan Hubicka <jh@suse.cz>
13168 * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
13170 2011-01-26 Richard Guenther <rguenther@suse.de>
13172 PR tree-optimization/47190
13173 * cgraphunit.c (process_common_attributes): New function.
13174 (process_function_and_variable_attributes): Use it.
13176 2011-01-26 Richard Guenther <rguenther@suse.de>
13179 * cgraphbuild.c (record_eh_tables): Record reference to personality
13182 2011-01-26 Alexandre Oliva <aoliva@redhat.com>
13185 * sel-sched.c (moveup_expr): Don't let debug insns prevent
13186 non-debug insns from moving up.
13188 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
13191 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
13192 t-dlldir{,-x} fragment for build and add it to tmake_file.
13193 (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
13194 * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
13195 * config/i386/t-dlldir: New file.
13196 (SHLIB_DLLDIR): Define.
13197 * config/i386/t-dlldir-x: New file.
13198 (SHLIB_DLLDIR): Define.
13199 * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
13200 (SHLIB_INSTALL): Use it.
13202 2011-01-26 Chung-Lin Tang <cltang@codesourcery.com>
13205 * config/arm/arm.c (thumb2_legitimate_index_p): Change the
13206 lower bound of the allowed Thumb-2 coprocessor load/store
13207 index range to -256. Add explaining comment.
13209 2011-01-25 Ian Lance Taylor <iant@google.com>
13211 * godump.c (go_define): Improve lexing of macro expansion to only
13212 accept expressions which match Go spec.
13214 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
13217 * tree.c (handle_dll_attribute): Handle it.
13218 * doc/extend.texi (@item dllexport): Mention it.
13219 * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
13221 2011-01-25 Ian Lance Taylor <iant@google.com>
13223 PR tree-optimization/26854
13224 * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
13225 (decl_jump_unsafe): Move higher in file, with no other change.
13226 (bind): Set has_jump_unsafe_decl if appropriate.
13227 (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
13228 (check_earlier_gotos): Likewise.
13229 (c_check_switch_jump_warnings): Likewise.
13231 2011-01-25 Jonathan Wakely <jwakely.gcc@gmail.com>
13233 * doc/invoke.texi (Warning Options): Add missing hyphen.
13234 (-fprofile-dir): Minor grammatical fixes.
13235 (-fbranch-probabilities): Likewise.
13237 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
13241 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
13243 (no_real_insns_p, schedule_block, set_priorities): Drop special
13244 treatment of boundary debug insns.
13245 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
13246 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
13247 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
13248 (BOUNDARY_DEBUG_INSN_P): Likewise.
13249 (SCHEDULE_DEBUG_INSN_P): Likewise.
13250 * sched-rgn.c (init_ready_list): Drop special treatment of
13251 boundary debug insns.
13252 * final.c (rest_of_clean-state): Clear notes' BB.
13254 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13256 * Makefile.in (LAMBDA_H): Removed.
13257 (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
13258 (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
13259 lambda-trans.o, and tree-loop-linear.o.
13260 (lto-symtab.o): Remove dependence on LAMBDA_H.
13261 (tree-loop-linear.o): Remove rule.
13262 (lambda-mat.o): Same.
13263 (lambda-trans.o): Same.
13264 (lambda-code.o): Same.
13265 (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
13266 (tree-vect-slp.o): Same.
13267 * hwint.h (gcd): Moved here.
13268 (least_common_multiple): Same.
13269 * lambda-code.c: Removed.
13270 * lambda-mat.c: Removed.
13271 * lambda-trans.c: Removed.
13272 * lambda.h: Removed.
13273 * tree-loop-linear.c: Removed.
13274 * lto-symtab.c: Do not include lambda.h.
13275 * omega.c (gcd): Removed.
13276 * passes.c (init_optimization_passes): Remove pass_linear_transform.
13277 * tree-data-ref.c (print_lambda_vector): Moved here.
13278 (lambda_vector_copy): Same.
13279 (lambda_matrix_copy): Same.
13280 (lambda_matrix_id): Same.
13281 (lambda_vector_first_nz): Same.
13282 (lambda_matrix_row_add): Same.
13283 (lambda_matrix_row_exchange): Same.
13284 (lambda_vector_mult_const): Same.
13285 (lambda_vector_negate): Same.
13286 (lambda_matrix_row_negate): Same.
13287 (lambda_vector_equal): Same.
13288 (lambda_matrix_right_hermite): Same.
13289 * tree-data-ref.h: Do not include lambda.h.
13290 (lambda_vector): Moved here.
13291 (lambda_matrix): Same.
13292 (dependence_level): Same.
13293 (lambda_transform_legal_p): Removed declaration.
13294 (lambda_collect_parameters): Same.
13295 (lambda_compute_access_matrices): Same.
13296 (lambda_vector_gcd): Same.
13297 (lambda_vector_new): Same.
13298 (lambda_vector_clear): Same.
13299 (lambda_vector_lexico_pos): Same.
13300 (lambda_vector_zerop): Same.
13301 (lambda_matrix_new): Same.
13302 * tree-flow.h (least_common_multiple): Removed declaration.
13303 * tree-parloops.c (lambda_trans_matrix): Moved here.
13304 (LTM_MATRIX): Same.
13305 (LTM_ROWSIZE): Same.
13306 (LTM_COLSIZE): Same.
13307 (LTM_DENOMINATOR): Same.
13308 (lambda_trans_matrix_new): Same.
13309 (lambda_matrix_vector_mult): Same.
13310 (lambda_transform_legal_p): Same.
13311 * tree-pass.h (pass_linear_transform): Removed declaration.
13312 * tree-ssa-loop.c (tree_linear_transform): Removed.
13313 (gate_tree_linear_transform): Removed.
13314 (pass_linear_transform): Removed.
13315 (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
13316 flag_loop_interchange.
13318 2011-01-25 Jakub Jelinek <jakub@redhat.com>
13320 PR tree-optimization/47265
13321 PR tree-optimization/47443
13322 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
13323 if name still has some uses.
13325 2011-01-25 Martin Jambor <mjambor@suse.cz>
13327 PR tree-optimization/47382
13328 * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
13329 (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
13331 2011-01-25 Joel Sherrill <joel.sherrill@oarcorp.com>
13333 * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
13334 sjlj_except_unwind_info.
13336 2011-01-25 Richard Guenther <rguenther@suse.de>
13338 PR tree-optimization/47426
13339 * tree-ssa-structalias.c (ipa_pta_execute): Make externally
13340 visible functions results escape.
13342 2011-01-25 Jakub Jelinek <jakub@redhat.com>
13345 * config/arm/arm.c (any_sibcall_uses_r3): New function.
13346 (arm_get_frame_offsets): Use it.
13348 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13349 Jakub Jelinek <jakub@redhat.com>
13351 PR tree-optimization/47271
13352 * tree-if-conv.c (bb_postdominates_preds): New.
13353 (if_convertible_bb_p): Call bb_postdominates_preds.
13354 (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
13355 (predicate_scalar_phi): Call bb_postdominates_preds.
13357 2011-01-25 Nick Clifton <nickc@redhat.com>
13359 * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
13360 * config/rx/rx.c (rx_function_value): Likewise.
13361 (rx_promote_function_mode): Likewise.
13362 (gen_safe_add): Place an outsized immediate value inside an UNSPEC
13363 in order to make it legitimate.
13364 * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
13365 make sure that the first operand is the same as the result register.
13366 (addsi3_unspec): Delete.
13367 (subdi3): Do not accept immediate operands.
13368 (subdi3_internal): Likewise.
13370 2011-01-25 Jeff Law <law@redhat.com>
13372 PR rtl-optimization/37273
13373 * ira-costs.c (scan_one_insn): Detect constants living in memory and
13374 handle them like argument loads from stack slots. Do not double
13375 count memory for memory constants and argument loads from stack slots.
13377 2011-01-25 Jakub Jelinek <jakub@redhat.com>
13379 PR tree-optimization/47427
13380 PR tree-optimization/47428
13381 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
13382 coalesce if the new root var would be TREE_READONLY.
13384 2011-01-25 Richard Guenther <rguenther@suse.de>
13386 PR middle-end/47414
13387 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
13388 correct type for TBAA.
13390 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13392 * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
13393 (close_phi_written_to_memory): Call for_each_index with
13394 dr_indices_valid_in_loop.
13396 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13398 * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
13399 when it is initialized.
13401 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13403 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
13404 call to graphite_find_data_references_in_stmt.
13405 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
13406 (try_generate_gimple_bb): Call outermost_loop_in_sese_1. Update
13407 call to graphite_find_data_references_in_stmt.
13408 (analyze_drs_in_stmts): Same.
13409 * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
13410 in which the scalar analysis of indices is performed.
13411 (create_data_ref): Same. Update call to dr_analyze_indices.
13412 (find_data_references_in_stmt): Update call to create_data_ref.
13413 (graphite_find_data_references_in_stmt): Same.
13414 * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
13416 (create_data_ref): Same.
13417 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
13418 call to create_data_ref.
13420 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13422 * graphite-sese-to-poly.c (build_poly_scop): Move
13423 rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
13425 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13427 * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
13428 VAR_DECL, PARM_DECL, and RESULT_DECL.
13430 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13432 * graphite-dependences.c (reduction_dr_1): Allow several reductions
13433 in a reduction PBB.
13434 * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
13435 that have already been marked as PBB_IS_REDUCTION.
13437 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13439 * graphite-scop-detection.c (same_close_phi_node): New.
13440 (remove_duplicate_close_phi): New.
13441 (make_close_phi_nodes_unique): New.
13442 (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
13444 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13446 * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
13447 * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
13448 of both data references to be the same.
13450 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13452 * graphite-dependences.c (build_lexicographical_constraint): Remove
13453 the gdim parameter.
13454 (build_lexicographical_constraint): Adjust call to
13455 ppl_powerset_is_empty.
13456 (dependence_polyhedron): Same.
13457 (graphite_legal_transform_dr): Same.
13458 (graphite_carried_dependence_level_k): Same.
13459 * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
13461 * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
13463 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13465 * graphite-sese-to-poly.c
13466 (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
13467 (close_phi_written_to_memory): New.
13468 (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
13471 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13473 * doc/install.texi: Update the expected version number of PPL to 0.11.
13474 * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
13475 #if PPL_VERSION_MINOR < 11.
13477 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13479 * graphite-dependences.c: Include graphite-cloog-util.h.
13480 (new_poly_ddr): Inlined into dependence_polyhedron.
13481 (free_poly_ddr): Moved close by new_poly_ddr.
13482 (dependence_polyhedron_1): Renamed dependence_polyhedron.
13483 Early return NULL when ppl_powerset_is_empty returns true.
13484 (dependence_polyhedron): Renamed new_poly_ddr. Call only once
13485 poly_drs_may_alias_p. Avoid one call to ppl_powerset_is_empty.
13486 (graphite_legal_transform_dr): Call new_poly_ddr.
13487 (graphite_carried_dependence_level_k): Same.
13488 (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2. Use new_poly_ddr.
13489 (dot_transformed_deps_stmt_1): Removed.
13490 (dot_deps_stmt_1): Call dot_deps_stmt_2.
13491 (dot_original_deps): Renamed dot_deps_2. Call new_poly_ddr.
13492 (dot_deps_1): Call dot_deps_2.
13493 * Makefile.in (graphite-dependences.o): Add missing dependence on
13494 graphite-cloog-util.h.
13496 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13498 * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
13499 (build_lexicographical_constraint): Same.
13500 (dependence_polyhedron_1): Same.
13501 (graphite_legal_transform_dr): Same.
13502 (graphite_carried_dependence_level_k): Same.
13503 * graphite-ppl.c (ppl_powerset_is_empty): New.
13504 * graphite-ppl.h (ppl_powerset_is_empty): Declared.
13505 * tree-data-ref.c (dump_data_reference): Print the basic block index.
13507 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13509 * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
13510 the "a followed by b" relation and document it.
13512 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13514 * graphite-dependences.c (build_lexicographical_constraint): Stop the
13515 iteration when the bag of constraints is empty.
13517 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13519 * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
13521 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13523 * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
13524 nest and two loop depths as parameters.
13525 (lst_try_interchange_loops): Call lst_interchange_profitable_p after
13526 lst_perfect_nestify.
13528 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13530 * graphite-dependences.c (print_pddr): Call
13531 ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
13533 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13535 * graphite-ppl.c (debug_gmp_value): New.
13536 * graphite-ppl.h (debug_gmp_value): Declared.
13538 2011-01-25 Tobias Grosser <grosser@fim.uni-passau.de>
13540 * doc/install.texi: Document availability of cloog-0.16.
13542 2011-01-25 Vladimir Kargov <kargov@gmail.com>
13544 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
13545 invalid postdominance info.
13547 2011-01-24 Jan Hubicka <jh@suse.cz>
13550 * doc/extend.texi (weak pragma): Drop claim that it must
13551 appear before definition.
13552 * varasm.c (merge_weak, declare_weak): Only sanity check
13553 that DECL is not output at a time it is declared weak.
13555 2011-01-24 Kenneth Zadeck <zadeck@naturalbridge.com>
13557 * machmode.def: Fixed comments.
13559 2011-01-24 Kai Tietz <kai.tietz@onevision.com>
13561 * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
13563 2011-01-24 Paul Koning <ni1d@arrl.net>
13565 * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
13568 2011-01-24 H.J. Lu <hongjiu.lu@intel.com>
13571 * config/i386/i386.c: Include sbitmap.h and fibheap.h.
13572 (block_info): Add scanned and prev.
13573 (move_or_delete_vzeroupper_2): Return if the basic block
13574 has been scanned and the upper 128bit state is unchanged
13575 from the last scan.
13576 (move_or_delete_vzeroupper_1): Return true if the exit
13578 (move_or_delete_vzeroupper): Visit basic blocks using the
13579 work-list based algorithm based on vt_find_locations in
13582 * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
13584 2011-01-24 Nick Clifton <nickc@redhat.com>
13586 * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
13587 * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
13588 -mv850e1 to the assembler. If -mv850e1 or -mv850es is specified
13589 then define __v850e1__.
13590 * doc/invoke.texi: Document -mv850es.
13592 2011-01-24 Richard Henderson <rth@redhat.com>
13594 * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
13595 compound unordered comparisons.
13596 * config/rx/rx.c (rx_split_fp_compare): Remove.
13597 * config/rx/rx-protos.h: Update.
13598 * config/rx/rx.md (gcc_conds, rx_conds): Remove.
13599 (cbranchsf4): Don't call rx_split_fp_compare.
13600 (*cbranchsf4): Use rx_split_cbranch.
13601 (*cmpsf): Don't accept "i" constraint.
13602 (*conditional_branch): Only valid after reload.
13603 (cstoresf4): Merge expander with insn. Don't call rx_split_fp_compare.
13605 2011-01-24 Michael Meissner <meissner@linux.vnet.ibm.com>
13608 * config/rs6000/altivec.md (vector constant splitters): Add
13609 support for creating vector single precision constants if -mvsx is
13610 used and we would create the constant using Altivec primitives.
13612 2011-01-23 Bernd Schmidt <bernds@codesourcery.com>
13613 Richard Sandiford <rdsandiford@googlemail.com>
13615 PR rtl-optimization/47166
13616 * reload1.c (emit_reload_insns): Disable the spill_reg_store
13617 mechanism for PRE_MODIFY and POST_MODIFY.
13618 (inc_for_reload): For PRE_MODIFY, return the insn that sets the
13621 2011-01-23 Andreas Schwab <schwab@linux-m68k.org>
13623 * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
13625 2011-01-22 Jan Hubicka <jh@suse.cz>
13628 * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
13630 2011-01-22 Jan Hubicka <jh@suse.cz>
13632 PR tree-optimization/43884
13634 * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
13635 * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
13637 2011-01-22 Anatoly Sokolov <aesok@post.ru>
13639 * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
13640 * config/s390/s390.c (s390_register_move_cost,
13641 s390_memory_move_cost): New.
13642 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
13644 2011-01-22 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13646 PR middle-end/47401
13647 * except.c (sjlj_assign_call_site_values): Move setting the
13648 crtl->uses_eh_lsda flag to ...
13649 (sjlj_mark_call_sites): ... here.
13650 (sjlj_emit_function_enter): Support NULL dispatch label.
13651 (sjlj_build_landing_pads): In a function with no landing pads
13652 that still has must-not-throw regions, generate code to register
13653 a personality function with empty LSDA.
13655 2011-01-21 Richard Henderson <rth@redhat.com>
13657 * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
13659 * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
13661 * compare-elim.c: New file.
13662 * Makefile.in (OBJS-common): Add it.
13663 (compare-elim.o): New.
13664 * common.opt (fcompare-elim): New.
13665 * opts.c (default_options_table): Add OPT_fcompare_elim.
13666 * tree-pass.h (pass_compare_elim_after_reload): New.
13667 * passes.c (init_optimization_passes): Add it.
13668 * recog.h: Protect against re-inclusion.
13669 * target.def (TARGET_FLAGS_REGNUM): New POD hook.
13670 * doc/invoke.texi (-fcompare-elim): Document it.
13671 * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
13672 * doc/tm.texi: Rebuild.
13674 2011-01-22 Nick Clifton <nickc@redhat.com>
13676 * config/rx/rx.md (cstoresf4): Pass comparison operator to
13677 rx_split_fp_compare.
13679 2011-01-22 Nick Clifton <nickc@redhat.com>
13681 * config/rx/rx.md (UNSPEC_CONST): New.
13682 (deallocate_and_return): Wrap the amount popped off the stack in
13683 an UNSPEC_CONST in order to stop it being rejected by
13684 -mmax-constant-size.
13685 (pop_and_return): Add a "(return)" rtx.
13686 (call): Drop the immediate operand.
13687 (call_internal): Likewise.
13688 (call_value): Likewise.
13689 (call_value_internal): Likewise.
13690 (sibcall_internal): Likewise.
13691 (sibcall_value_internal): Likewise.
13692 (sibcall): Likewise. Generate an explicit call using
13694 (sibcall_value): Likewise.
13695 (mov<>): FAIL if a constant operand is not legitimate.
13696 (addsi3_unpsec): New pattern.
13698 * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
13699 (ok_for_max_constant): New function.
13700 (gen_safe_add): New function.
13701 (rx_expand_prologue): Use gen_safe_add.
13702 (rx_expand_epilogue): Likewise.
13703 (rx_is_legitimate_constant): Use ok_for_max_constant. Handle
13706 2011-01-21 Jeff Law <law@redhat.com>
13708 PR tree-optimization/47053
13709 * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
13710 (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
13711 statements are deleted.
13712 (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP. If NEED_EH_CLEANUP
13713 is nonempty, then purge dead edges and cleanup the CFG.
13715 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
13718 Temporarily revert:
13719 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
13721 * tree-dfa.c (create_var_ann): Mark variable as used.
13723 2011-01-21 Jakub Jelinek <jakub@redhat.com>
13725 PR middle-end/45566
13726 * except.c (convert_to_eh_region_ranges): Emit queued no-region
13727 notes from other section in hot/cold partitioning even if
13728 last_action is -3. Increment call_site_base.
13730 PR rtl-optimization/47366
13731 * fwprop.c (forward_propagate_into): Return bool. If
13732 any changes are made, -fnon-call-exceptions is used and
13733 REG_EH_REGION note is present, call purge_dead_edges
13734 and return true if it purged anything.
13735 (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
13736 any EH edges were purged.
13738 2011-01-21 Jeff Law <law@redhat.com>
13740 PR rtl-optimization/41619
13741 * caller-save.c (setup_save_areas): Break out code to determine
13742 which hard regs are live across calls by examining the reload chains
13743 so that it is always used.
13744 Eliminate code which checked REG_N_CALLS_CROSSED.
13746 2011-01-21 Jakub Jelinek <jakub@redhat.com>
13748 PR tree-optimization/47355
13749 * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
13750 NOP has non-debug uses beyond PHIs in new_bb.
13752 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
13755 * cfgexpand.c (account_used_vars_for_block): Only account vars
13756 that are annotated as used.
13757 (estimated_stack_frame_size): Don't set TREE_USED.
13758 * tree-dfa.c (create_var_ann): Mark variable as used.
13760 2011-01-21 Richard Guenther <rguenther@suse.de>
13762 PR middle-end/47395
13763 * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
13765 2011-01-21 Richard Guenther <rguenther@suse.de>
13767 PR tree-optimization/47365
13768 * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
13769 (vn_reference_lookup_pieces): Adjust.
13770 (vn_reference_lookup): Likewise.
13771 * tree-ssa-sccvn.c (vn_walk_kind): New static global.
13772 (vn_reference_lookup_3): Only look through kills if in
13773 VN_WALKREWRITE mode.
13774 (vn_reference_lookup_pieces): Adjust.
13775 (vn_reference_lookup): Likewise.
13776 (visit_reference_op_load): Likewise.
13777 (visit_reference_op_store): Likewise.
13778 * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
13779 (compute_avail): Likewise.
13780 (eliminate): Likewise.
13782 2011-01-21 Jakub Jelinek <jakub@redhat.com>
13784 * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
13785 DECL_IGNORED_P non-reg vars if they are used.
13787 PR tree-optimization/47391
13788 * varpool.c (const_value_known_p): Return false if
13791 2011-01-21 Kai Tietz <kai.tietz@onevision.com>
13794 * config/i386/i386.c (ix86_local_alignment): Handle
13795 case for va_list_type_node is nil.
13796 (ix86_canonical_va_list_type): Likewise.
13798 2011-01-21 Alan Modra <amodra@gmail.com>
13800 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
13801 builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
13803 2011-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13805 * config/arm/arm.md (define_attr type): Rename f_load
13806 and f_store to f_fpa_load and f_fpa_store. Update.
13807 (write_conflict): Deal with rename fallout.
13808 (*push_fp_multi): Likewise.
13809 * config/arm/fpa.md (f_load): Use f_fpa_load.
13810 (f_store): Use f_fpa_store.
13811 (*movsf_fpa): Likewise.
13812 (*movdf_fpa): Likewise.
13813 (*movxf_fpa): Likewise.
13814 (*thumb2_movsf_fpa): Likewise.
13815 (*thumb2_movdf_fpa): Likewise.
13816 (*thumb2_movxf_fpa): Likewise.
13817 * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
13818 f_loadd and f_stored.
13819 (*thumb2_movdi_vfp): Likewise.
13820 (*thumb2_movsf_vfp): Fix attribute to f_loads.
13821 (*thumb2_movsi_vfp): Likewise.
13822 * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
13823 Use f_loads instead of f_load.
13824 * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
13826 2011-01-20 Anatoly Sokolov <aesok@post.ru>
13828 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
13829 * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
13830 * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
13831 (xtensa_mode_dependent_address_p): New function.
13832 (constantpool_address_p): Make static. Change return type to bool.
13833 Change argument type to const_rtx. Use CONST_INT_P predicate.
13835 2011-01-20 Alexandre Oliva <aoliva@redhat.com>
13838 * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
13840 2011-01-20 Jakub Jelinek <jakub@redhat.com>
13843 * cfgexpand.c (expand_debug_expr): Instead of generating
13844 (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
13847 2011-01-20 Richard Guenther <rguenther@suse.de>
13849 PR middle-end/47370
13850 * tree-inline.c (remap_gimple_op_r): Recurse manually for
13851 the pointer operand of MEM_REFs.
13853 2011-01-20 Jakub Jelinek <jakub@redhat.com>
13855 PR tree-optimization/46130
13856 * ipa-split.c (consider_split): If return_bb contains non-virtual
13857 PHIs other than for retval or if split_function would not adjust it,
13860 2011-01-20 Richard Guenther <rguenther@suse.de>
13862 PR tree-optimization/47167
13863 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
13864 Revert previous change, only avoid enumeral type changes.
13866 2011-01-19 Mike Stump <mikestump@comcast.net>
13868 * doc/tm.texi.in (BRANCH_COST): Englishify.
13869 * doc/tm.texi (BRANCH_COST): Likewise.
13871 2011-01-19 Dodji Seketeli <dodji@redhat.com>
13874 * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
13875 (gen_scheduled_generic_parms_dies): New functions.
13876 (gen_struct_or_union_type_die): Schedule template parameters DIEs
13877 generation for the end of CU compilation.
13878 (dwarf2out_finish): Generate template parameters DIEs here.
13880 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
13883 * tree-into-ssa.c (maybe_register_def): Do not attempt to add
13884 debug bind stmt on merge edges.
13886 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
13890 * function.c (instantiate_expr): Instantiate incoming rtl of
13891 implicit arguments, and recurse on VALUE_EXPRs.
13892 (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
13893 * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
13895 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
13897 * c-parser.c (c_parser_for_statement): Initialize
13898 collection_expression.
13900 2011-01-19 Joseph Myers <joseph@codesourcery.com>
13902 * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
13904 2011-01-19 Joseph Myers <joseph@codesourcery.com>
13906 * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
13907 (LINK_SHLIB_SPEC): Don't use %(link_path).
13908 (SUBTARGET_EXTRA_SPECS): Remove link_path.
13910 2011-01-19 Joseph Myers <joseph@codesourcery.com>
13912 * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
13913 (NO_SHARED_LIB_SUPPORT): Remove.
13914 (LINK_SHLIB_SPEC): Remove one conditional definition.
13916 2011-01-19 Joseph Myers <joseph@codesourcery.com>
13918 * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
13920 * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
13921 * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
13922 * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
13923 %{call_shared} and conditionals on these options not being passed.
13924 * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
13927 2011-01-19 Jakub Jelinek <jakub@redhat.com>
13929 * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
13932 * ipa-split.c: Spelling fixes.
13934 2011-01-19 Richard Henderson <rth@redhat.com>
13936 * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
13937 (*mulsi3): Likewise.
13939 * longlong.h [__mn10300__] (count_leading_zeros): New.
13940 [__mn10300__] (umul_ppmm, smul_ppmm): New.
13941 [__mn10300__] (add_ssaaaa, subddmmss): New.
13942 [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
13943 [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
13945 2011-01-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13947 * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
13949 2011-01-19 Richard Henderson <rth@redhat.com>
13951 * config/mn10300/mn10300.md (addsi3_flags): New.
13952 (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
13953 (subsi3_flags, subc_internal, subdi3): New.
13954 (subdi3_internal, *subdi3_degenerate): New.
13955 * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
13957 * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
13958 (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
13959 (mn10300_expand_epilogue): Use it. Compute REG_SAVE_BYTES once.
13960 * config/mn10300/mn10300-protos.h: Update.
13961 * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
13962 (return_ret): Likewise. Rename from return_internal_regs.
13963 (return_internal): Remove.
13965 * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
13966 (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
13967 (mn10300_legitimate_constant_p): Likewise.
13968 (mn10300_can_use_return_insn): Use mn10300_initial_offset.
13969 (mn10300_frame_size): New.
13970 (mn10300_expand_prologue): Use it.
13971 (mn10300_expand_epilogue): Likewise.
13972 (mn10300_initial_offset): Likewise.
13973 * config/mn10300/mn10300-protos.h: Update.
13974 * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
13975 * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
13976 (prologue, epilogue, return_internal): Tidy output code.
13977 (mn10300_store_multiple_operation, return): Likewise.
13978 (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
13979 (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
13980 (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
13981 (load_pic, am33_load_pic): New.
13982 (mn10300_load_pic0, mn10300_load_pic1): New.
13984 * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
13985 * config/mn10300/mn10300.c (CC_FLAG_Z): New.
13986 (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
13987 (cc_flags_for_mode, cc_flags_for_code): New.
13988 (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
13989 overflow flag is not valid. Validate that the flags we need
13990 for the comparison are valid.
13991 (mn10300_output_cmp): Remove.
13992 (mn10300_output_add): New.
13993 (mn10300_select_cc_mode): Use cc_flags_for_code.
13994 (mn10300_split_cbranch): New.
13995 (mn10300_match_ccmode): New.
13996 (mn10300_split_and_operand_count): New.
13997 * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
13999 * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
14000 (addsi3): ... here. Use mn10300_output_add.
14001 (*addsi3_flags): New.
14002 (*am33_subsi3, *mn10300_subsi3): Merge...
14003 (subsi3): ... here. Use attribute isa.
14004 (*subsi3_flags): New.
14005 (negsi2): Rewrite from expander to insn_and_split. Use NOT+INC
14007 (*am33_andsi3, *mn10300_andsi3): Merge...
14008 (andsi3): ... here.
14009 (*andsi3_flags): New.
14010 (andsi3 splitters): New.
14011 (*am33_iorsi3, *mn10300_iorsi3): Merge...
14012 (iorsi3): ... here.
14013 (*iorsi3_flags): New.
14014 (*am33_xorsi3, *mn10300_xorsi3): Merge...
14015 (xorsi3): ... here.
14016 (*xorsi3_flags): New.
14017 (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
14018 (one_cmplsi2): ... here.
14019 (*one_cmplsi2_flags): New.
14020 (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload. Use "r"
14021 instead of "dax" in constraints. Use mn10300_split_cbranch.
14022 (*cmpsi): Rename from cmpsi. Do not use mn10300_output_cmp. Do not
14023 use matching constraints to eliminate a self-comparison.
14024 (*integer_conditional_branch): Rename from integer_conditional_branch.
14025 Use int_mode_flags to match CC_REG.
14026 (*cbranchsi4_btst, *btstsi): New.
14027 (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload. Use
14028 mn10300_split_cbranch.
14029 (*am33_cmpsf): Rename from am33_cmpsf.
14030 (*float_conditional_branch): Rename from float_conditional_branch.
14031 (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
14032 (zero_extendqisi2): ... here.
14033 (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
14034 (zero_extendhisi2): ... here.
14035 (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
14036 (extendqisi2): ... here.
14037 (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
14038 (extendhisi2): ... here.
14039 (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
14040 (ashlsi3): ... here.
14041 (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
14042 (lshrsi3): ... here.
14043 (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
14044 (ashrsi3): ... here.
14045 (consecutive add peephole): Remove.
14046 * config/mn10300/predicates.md (label_ref_operand): New.
14047 (int_mode_flags): New.
14048 (CCZN_comparison_operator): New.
14050 * config/mn10300/mn10300.md (UNSPEC_EXT): New.
14051 (throughput_42_latency_43): New reservation.
14052 (mulsidi3, umulsidi3): New expanders.
14053 (mulsidi3_internal): Rewrite from old mulsidi3 pattern. Expose
14054 the MDR register to allocation; separately allocate the low and
14055 high parts of the DImode result.
14056 (umulsidi3_internal): Similarly.
14057 (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
14058 (*mulsi3): ... here. Clobber MDR as a scratch as necessary.
14059 (udivsi3, umodsi3): Remove.
14060 (udivmodsi4, divmodsi4): New expanders.
14061 (*udivmodsi4): Rename from udivmodsi4. Expose MDR properly.
14062 (*divmodsi4): Simiarly.
14063 (ext_internal): New.
14065 * config/mn10300/constraints.md ("z"): New constraint.
14066 * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
14067 (FIXED_REGISTERS): Don't fix MDR.
14068 (CALL_USED_REGSITERS): Reformat nicely.
14069 (REG_ALLOC_ORDER): Add MDR.
14070 (enum regclass): Add MDR_REGS.
14071 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
14072 (IRA_COVER_CLASSES): Add MDR_REGS.
14073 (REGNO_REG_CLASS): Handle MDR_REG.
14074 * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
14075 (mn10300_register_move_cost): Likewise.
14076 * config/mn10300/mn10300.md (MDR_REG): New.
14077 (*movsi_internal): Handle moves to/from MDR_REGS.
14079 * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
14081 (mn10300_secondary_reload): Tidy combination reload classes.
14082 (mn10300_legitimate_address_p): Allow post-modify and reg+reg
14083 addresses for AM33. Allow symbolic offsets for reg+imm.
14084 (mn10300_regno_in_class_p): New.
14085 (mn10300_legitimize_reload_address): New.
14086 * config/mn10300/mn10300.h (enum reg_class): Remove
14087 DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
14088 SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS. Add
14089 SP_OR_GENERAL_REGS.
14090 (REG_CLASS_NAMES): Update to match.
14091 (REG_CLASS_CONTENTS): Likewise.
14092 (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
14093 (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
14094 (REGNO_IN_RANGE_P): Remove.
14095 (REGNO_DATA_P): Use mn10300_regno_in_class_p.
14096 (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
14097 (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
14098 (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
14099 (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
14100 (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
14101 (REGNO_GENERAL_P): New.
14102 (HAVE_POST_MODIFY_DISP): New.
14103 (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
14104 (LEGITIMIZE_RELOAD_ADDRESS): New.
14105 * config/mn10300/mn10300-protos.h: Update.
14107 * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
14108 DATA_REGS for AM33 stack-pointer destination.
14109 (mn10300_preferred_output_reload_class): Likewise.
14110 (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
14111 into a form appropriate for ...
14112 (TARGET_SECONDARY_RELOAD): New.
14113 * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
14114 * config/mn10300/mn10300-protos.h: Update.
14115 * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
14116 reload_insi; use the "A" constraint for the scratch; handle AM33
14117 moves of sp to non-address registers.
14119 * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
14120 (*movqi_internal): ... here.
14121 (*am33_movhi, *mn10300_movhi): Merge into...
14122 (*movhi_internal): ... here.
14123 (*movsi_internal): Use "r" instead of "dax" in constraints. Use "A"
14124 as the source/destination of moves from/to SP.
14125 (movsf): Only allow for AM33-2.
14126 (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
14127 any integer constant constraint. Only allow for AM33-2. Tidy
14128 all of the alternative outputs.
14129 (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
14130 (udivmodsi4): Delete expander and promote *udivmodsi4. Disallow
14132 (udivsi3, umodsi3): New patterns for MN103 only.
14134 2011-01-19 Joern Rennecke <amylaar@spamcop.net>
14136 * doc/tm.texi.in: Spell out that a lack of register class unions
14138 * doc/tm.texi: Regenerate.
14140 2011-01-19 Jakub Jelinek <jakub@redhat.com>
14142 PR rtl-optimization/47337
14143 * dce.c (check_argument_store): New function.
14144 (find_call_stack_args): Ignore debug insns. Use check_argument_store.
14146 PR tree-optimization/47290
14147 * tree-eh.c (infinite_empty_loop_p): New function.
14148 (cleanup_empty_eh): Use it.
14150 2011-01-18 Steve Ellcey <sje@cup.hp.com>
14153 * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
14154 (a64_expand_widen_sum): Ditto.
14155 * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
14156 (vec_extract_evenodd_help): Ditto.
14157 (vec_extract_evenv4hi): Ditto.
14158 (vec_extract_oddv4hi): Ditto.
14159 (vec_extract_evenv2si): Ditto.
14160 (vec_extract_oddv2si): Ditto.
14161 (vec_extract_evenv2sf): Ditto.
14162 (vec_extract_oddv2sf): Ditto.
14163 (vec_pack_trunc_v4hi: Ditto.
14164 (vec_pack_trunc_v2si): Ditto.
14165 (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
14166 (vec_interleave_highv8qi): Ditto.
14168 (vec_extract_oddv8qi): Ditto.
14169 (vec_interleave_lowv4hi): Ditto.
14170 (vec_interleave_highv4hi): Ditto.
14171 (vec_interleave_lowv2si): Ditto.
14172 (vec_interleave_highv2si): Ditto.
14174 2011-01-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
14176 * doc/extend.texi: Mention __float128 support on hppa HP-UX.
14177 * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
14178 * config/pa/pa.c (pa_expand_builtin): New. Include "langhooks.h".
14179 (pa_c_mode_for_suffix): New.
14180 (TARGET_EXPAND_BUILTIN): Define.
14181 (TARGET_C_MODE_FOR_SUFFIX): Define.
14182 (pa_builtins): Define.
14183 (pa_init_builtins): Register __float128 type and init new support
14185 * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
14186 * config/pa/quadlib.c (_U_Qfcopysign): New.
14188 2011-01-18 Eric Botcazou <ebotcazou@adacore.com>
14190 PR middle-end/46894
14191 * explow.c (allocate_dynamic_stack_space): Do not assume more than
14192 BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
14195 2011-01-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14197 PR tree-optimization/47179
14198 * config/spu/spu.c (spu_ref_may_alias_errno): New function.
14199 (TARGET_REF_MAY_ALIAS_ERRNO): Define.
14201 2011-01-18 Richard Guenther <rguenther@suse.de>
14203 PR rtl-optimization/47216
14204 * emit-rtl.c: Include tree-flow.h.
14205 (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
14206 of replicating it with different semantics.
14207 * Makefile.in (emit-rtl.o): Adjust.
14209 2011-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14211 * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
14212 (cortex_a9_dp): Handle neon types correctly.
14214 2011-01-18 Jakub Jelinek <jakub@redhat.com>
14216 PR rtl-optimization/47299
14217 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
14218 subtarget. Use normal multiplication if both operands are constants.
14219 * expmed.c (expand_widening_mult): Don't try to optimize constant
14220 multiplication if op0 has VOIDmode. Convert op1 constant to mode
14223 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14225 * doc/lto.texi (LTO): Ensure two spaces after period. Fix
14226 spacing after 'e.g.', typos, comma, hyphenation.
14228 2011-01-17 Richard Henderson <rth@redhat.com>
14230 * config/rx/predicates.md (rx_constshift_operand): Use match_test.
14231 (rx_restricted_mem_operand): New.
14232 (rx_shift_operand): Use register_operand.
14233 (rx_source_operand, rx_compare_operand): Likewise.
14234 * config/rx/rx.md (addsi3_flags): New expander.
14235 (adddi3): Rewrite as expander.
14236 (adc_internal, *adc_flags, adddi3_internal): New patterns.
14237 (subsi3_flags): New expander.
14238 (subdi3): Rewrite as expander.
14239 (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
14241 * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
14242 (rx_init_builtins): Remove sat builtin.
14243 (rx_expand_builtin): Likewise.
14244 * config/rx/rx.md (ssaddsi3): New.
14245 (*sat): Rename from sat. Represent the CC_REG input.
14247 * config/rx/predicates.md (rshift_operator): New.
14248 * config/rx/rx.c (rx_expand_insv): Remove.
14249 * config/rx/rx-protos.h: Update.
14250 * config/rx/rx.md (*bitset): Rename from bitset. Swap the ashift
14251 operand to the canonical position.
14252 (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
14253 (*bitclr, *bitclr_in_memory): Similarly.
14254 (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
14255 (insv): Retain the zero_extract in the expansion.
14257 * config/rx/rx.md (bswapsi2): Use = not + for output reload.
14258 (bswaphi2, bitinvert, revw): Likewise.
14260 * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
14261 (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
14262 * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
14263 (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
14264 (bitset, bitset_in_memory): Likewise.
14265 (bitinvert, bitinvert_in_memory): Likewise.
14266 (bitclr, bitclr_in_memory): Likewise.
14267 (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
14268 (rx_strend, rx_cmpstrn): Likewise.
14269 (rx_setmem): Likewise. Make the source BLKmode to match the dest.
14270 (bitop peep2 patterns): Remove.
14272 * config/rx/rx.c (rx_match_ccmode): New.
14273 * config/rx/rx-protos.h: Update.
14274 * config/rx/rx.md (abssi2): Clobber, don't set flags.
14275 (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
14276 (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
14277 (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
14278 (fix_truncsfsi2, floatsisf2): Likewise.
14279 (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
14280 (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
14281 (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
14282 (*subsi3_flags, *xorsi3_flags): New.
14284 * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
14286 * config/rx/rx.c (rx_print_operand): Remove workaround for
14287 unsplit comparison operations.
14289 * config/rx/rx.md (movsicc): Split after reload.
14290 (*movsicc): Merge *movsieq and *movsine via match_operator.
14291 (*stcc): New pattern.
14293 * config/rx/rx.c (rx_float_compare_mode): Remove.
14294 * config/rx/rx.h (rx_float_compare_mode): Remove.
14295 * config/rx/rx.md (cstoresi4): Split after reload.
14296 (*sccc): New pattern.
14298 * config/rx/predicates.md (label_ref_operand): New.
14299 (rx_z_comparison_operator): New.
14300 (rx_zs_comparison_operator): New.
14301 (rx_fp_comparison_operator): New.
14302 * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
14303 Validate that the flags are set properly for the comparison.
14304 (rx_gen_cond_branch_template): Remove.
14305 (rx_cc_modes_compatible): Remove.
14306 (mode_from_flags): New.
14307 (flags_from_code): Rename from flags_needed_for_conditional.
14308 (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
14309 (rx_select_cc_mode): Likewise.
14310 (rx_split_fp_compare): New.
14311 (rx_split_cbranch): New.
14312 * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
14313 (*cbranchsi4): Use match_operator and rx_split_cbranch.
14314 (*cbranchsf4): Similarly.
14315 (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>. Use
14316 match_operator and rx_split_cbranch.
14317 (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
14318 tstbranchsi4m_ne. Use match_operator and rx_split_cbranch.
14319 (*cmpsi): Rename from cmpsi.
14320 (*tstsi): Rename from tstsi.
14321 (*cmpsf): Rename from cmpsf; use CC_Fmode.
14322 (*conditional_branch): Rename from conditional_branch.
14323 (*reveresed_conditional_branch): Remove.
14324 (b<code>): Remove expander.
14325 * config/rx/rx-protos.h: Update.
14327 * config/rx/rx.c (rx_compare_redundant): Remove.
14328 * config/rx/rx.md (cmpsi): Don't use it.
14329 * config/rx/rx-protos.h: Update.
14331 * config/rx/rx-modes.def (CC_F): New mode.
14332 * config/rx/rx.c (rx_select_cc_mode): New.
14333 * config/rx/rx.h (SELECT_CC_MODE): Use it.
14334 * config/rx/rx-protos.h: Update.
14336 2011-01-17 Richard Henderson <rth@redhat.com>
14338 * except.c (dump_eh_tree): Fix stray ; after for statement.
14340 2011-01-17 Richard Guenther <rguenther@suse.de>
14342 PR tree-optimization/47313
14343 * tree-inline.c (tree_function_versioning): Move DECL_RESULT
14344 handling before copying the body. Properly deal with
14345 by-reference result in SSA form.
14347 2011-01-17 Ian Lance Taylor <iant@google.com>
14350 * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
14351 (struct_value_alias_set): Don't define.
14352 (sparc_option_override): Don't set sparc_sr_alias_set and
14353 struct_value_alias_set.
14354 (save_or_restore_regs): Use gen_frame_mem rather than calling
14356 (sparc_struct_value_rtx): Likewise.
14358 2011-01-17 H.J. Lu <hongjiu.lu@intel.com>
14361 * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
14362 (_mm_maskstore_pd): Likewise.
14363 (_mm_maskload_ps): Likewise.
14364 (_mm_maskstore_ps): Likewise.
14365 (_mm256_maskload_pd): Change mask to __m256i.
14366 (_mm256_maskstore_pd): Likewise.
14367 (_mm256_maskload_ps): Likewise.
14368 (_mm256_maskstore_ps): Likewise.
14370 * config/i386/i386-builtin-types.def: Updated.
14371 (ix86_expand_special_args_builtin): Likewise.
14373 * config/i386/i386.c (bdesc_special_args): Update
14374 __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
14375 __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
14376 __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
14377 __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
14379 * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
14380 Use <avxpermvecmode> on mask register.
14381 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
14383 2011-01-17 Olivier Hainque <hainque@adacore.com>
14384 Michael Haubenwallner <michael.haubenwallner@salomon.at>
14385 Eric Botcazou <ebotcazou@adacore.com>
14388 * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
14389 if <= USHRT_MAX in 32-bit mode.
14391 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14393 * doc/install.texi (Configuration, Specific): Wrap long
14394 lines in examples. Allow line wrapping in long options
14395 and URLs where beneficial for PDF output.
14397 2011-01-16 Richard Sandiford <rdsandiford@googlemail.com>
14399 * config/mips/mips.c (mips_classify_symbol): Don't return
14400 SYMBOL_PC_RELATIVE for nonlocal labels.
14402 2011-01-15 Eric Botcazou <ebotcazou@adacore.com>
14404 * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
14406 2011-01-15 Jan Hubicka <jh@suse.cz>
14408 PR tree-optimization/47276
14409 * ipa.c (function_and_variable_visibility): Do not try to mark alias
14410 declarations as needed.
14412 2011-01-15 Martin Jambor <mjambor@suse.cz>
14414 * common.opt (fdevirtualize): New flag.
14415 * doc/invoke.texi (Option Summary): Document it.
14416 * opts.c (default_options_table): Add devirtualize flag.
14417 * ipa-prop.c (detect_type_change): Return immediately if
14418 devirtualize flag is not set.
14419 (detect_type_change_ssa): Likewise.
14420 (compute_known_type_jump_func): Likewise.
14421 (ipa_analyze_virtual_call_uses): Likewise.
14423 2011-01-14 Martin Jambor <mjambor@suse.cz>
14425 PR tree-optimization/45934
14426 PR tree-optimization/46302
14427 * ipa-prop.c (type_change_info): New type.
14428 (stmt_may_be_vtbl_ptr_store): New function.
14429 (check_stmt_for_type_change): Likewise.
14430 (detect_type_change): Likewise.
14431 (detect_type_change_ssa): Likewise.
14432 (compute_complex_assign_jump_func): Check for dynamic type change.
14433 (compute_complex_ancestor_jump_func): Likewise.
14434 (compute_known_type_jump_func): Likewise.
14435 (compute_scalar_jump_functions): Likewise.
14436 (ipa_analyze_virtual_call_uses): Likewise.
14437 (ipa_analyze_node): Push and pop cfun, set current_function_decl.
14439 2011-01-14 Joseph Myers <joseph@codesourcery.com>
14441 * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
14442 * config/i386/i386.opt (msse5): New Alias.
14444 2011-01-14 Joseph Myers <joseph@codesourcery.com>
14446 * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
14447 * config/sparc/linux64.h (CC1_SPEC): Likewise.
14448 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
14449 * config/sparc/sparc.h (CC1_SPEC): Likewise.
14451 2011-01-14 Joseph Myers <joseph@codesourcery.com>
14453 * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
14455 * config/sparc/linux64.h (CC1_SPEC): Likewise.
14456 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
14457 * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
14458 * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
14460 * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
14462 2011-01-14 Joseph Myers <joseph@codesourcery.com>
14464 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
14466 2011-01-14 Mike Stump <mikestump@comcast.net>
14468 * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
14469 * config/fr30/fr30.md: Likweise
14470 (movsi_push): Likewise.
14471 (movsi_pop): Likewise.
14472 (enter_func): Likewise.
14473 * config/moxie/moxie.md (movsi_push): Likewise.
14474 (movsi_pop): Likewise.
14476 2011-01-14 Joseph Myers <joseph@codesourcery.com>
14478 * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
14479 %{no_archive} %{exact_version}.
14480 * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
14481 * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
14482 %{no_archive} %{exact_version}.
14483 * config/mips/openbsd.h (LINK_SPEC): Likewise.
14484 * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
14485 * config/mips/vxworks.h: Likewise.
14487 2011-01-14 Joseph Myers <joseph@codesourcery.com>
14489 * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
14491 2011-01-14 Joseph Myers <joseph@codesourcery.com>
14493 * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
14494 ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
14496 2011-01-14 Joseph Myers <joseph@codesourcery.com>
14498 * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
14501 2011-01-14 Joseph Myers <joseph@codesourcery.com>
14503 * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
14505 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
14506 CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
14508 (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
14509 Don't handle -shlib.
14511 2011-01-14 Joseph Myers <joseph@codesourcery.com>
14513 * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
14514 (CC1_SPEC): Don't handle -profile.
14516 2011-01-14 Joseph Myers <joseph@codesourcery.com>
14518 * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
14519 * config/mips/mips.h (CC1_SPEC): Likewise.
14521 2011-01-14 Joseph Myers <joseph@codesourcery.com>
14523 * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
14524 * config/mips/mips.h (CC1_SPEC): Likewise.
14526 2011-01-14 Joseph Myers <joseph@codesourcery.com>
14528 * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
14529 * config/m32r/linux.h (LINK_SPEC): Likewise.
14530 * config/mips/linux.h (LINK_SPEC): Likewise.
14531 * config/mips/linux64.h (LINK_SPEC): Likewise.
14532 * config/sparc/linux.h (LINK_SPEC): Likewise.
14533 * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
14534 LINK_SPEC): Likewise.
14535 * config/xtensa/linux.h (LINK_SPEC): Likewise.
14537 2011-01-14 Joseph Myers <joseph@codesourcery.com>
14539 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
14541 * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
14543 2011-01-14 Joseph Myers <joseph@codesourcery.com>
14545 * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
14546 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
14548 2011-01-14 Joseph Myers <joseph@codesourcery.com>
14550 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
14552 2011-01-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14554 * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
14555 supports -Bstatic/-Bdynamic.
14556 * configure: Regenerate.
14558 2011-01-14 Jan Hubicka <jh@suse.cz>
14559 Jack Howarth <howarth@bromo.med.uc.edu>
14562 * config/darwin.c (darwin_override_options): Honor flag_gtoggle
14563 when checking debug_info_level. Test write_symbols instead of
14564 debug_hooks->var_location when setting flag_var_tracking_uninit.
14566 2011-01-14 Richard Guenther <rguenther@suse.de>
14568 PR tree-optimization/47179
14569 * target.def (ref_may_alias_errno): New target hook.
14570 * targhooks.h (default_ref_may_alias_errno): Declare.
14571 * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
14572 (default_ref_may_alias_errno): New function.
14573 * target.h (struct ao_ref_s): Declare.
14574 * tree-ssa-alias.c: Include target.h.
14575 (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
14576 * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
14577 (targhooks.o): Likewise.
14578 * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
14579 * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
14581 2011-01-14 Richard Guenther <rguenther@suse.de>
14583 * tree-ssa-structalias.c (new_var_info): Use DECL_HARD_REGISTER.
14585 2011-01-14 Richard Guenther <rguenther@suse.de>
14587 PR tree-optimization/47280
14588 * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
14589 return CFG changes.
14590 (tree_ssa_forward_propagate_single_use_vars): Deal with
14591 CFG changes from associate_plusminus.
14593 2011-01-14 Richard Guenther <rguenther@suse.de>
14595 PR middle-end/47281
14597 2011-01-11 Richard Guenther <rguenther@suse.de>
14599 PR tree-optimization/46076
14600 * tree-ssa.c (useless_type_conversion_p): Conversions from
14601 unprototyped to empty argument list function types are useless.
14603 2011-01-14 Richard Guenther <rguenther@suse.de>
14605 PR tree-optimization/47286
14606 * tree-ssa-structalias.c (new_var_info): Register variables are global.
14608 2011-01-14 Martin Jambor <mjambor@suse.cz>
14610 PR middle-end/46823
14611 * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
14613 2011-01-13 Anatoly Sokolov <aesok@post.ru>
14615 * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
14616 LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
14617 * config/xtensa/xtensa.c (xtensa_libcall_value,
14618 xtensa_function_value_regno_p): New functions.
14619 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
14621 2011-01-13 Kai Tietz <kai.tietz@onevision.com>
14624 * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
14626 * config/i386/i386-protos.h (i386_pe_assemble_visibility):
14627 New function prototype.
14628 * config/i386/winnt.c (i386_pe_assemble_visibility):
14629 Warn only if attribute was specified by user.
14631 2011-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
14634 * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
14636 (floatunsdidf2_fcfidu): Ditto.
14638 2011-01-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14640 * config/s390/s390.c (print_operand_address): Replace 'error' with
14641 'output_operand_lossage'.
14642 (print_operand): Likewise.
14644 2011-01-13 Jeff Law <law@redhat.com>
14646 PR rtl-optimization/39077
14647 * doc/invoke.texi (max-gcse-insertion-ratio): Document.
14648 * params.h (MAX_GCSE_INSERTION_RATIO): Define.
14649 * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
14650 * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
14651 * gcse.c (prune_insertions_deletions): New function.
14652 (compute_pre_data): Use it.
14654 2011-01-13 Dodji Seketeli <dodji@redhat.com>
14657 * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
14659 (prune_unused_types_mark): Use it.
14661 2011-01-13 Andrey Belevantsev <abel@ispras.ru>
14663 PR rtl-optimization/45352
14664 * sel-sched.c: Update copyright years.
14665 (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
14666 in the advancing loop when we have issued issue_rate insns.
14668 2011-01-12 Richard Henderson <rth@redhat.com>
14670 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
14671 (TARGET_MD_ASM_CLOBBERS): New.
14673 * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
14674 (TARGET_DELEGITIMIZE_ADDRESS): New.
14676 * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
14677 (clzsi2, *bsch): New patterns.
14679 * config/mn10300/mn10300.md (INT): New mode iterator.
14680 (*mov<INT>_clr): New pattern, and peep2 to generate it.
14682 * config/mn10300/mn10300.c (mn10300_option_override): Force enable
14683 flag_split_wide_types.
14685 * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
14686 (mn10300_trampoline_init): Rewrite without a template, an immediate
14687 load and a direct branch.
14688 * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
14690 2011-01-12 Anatoly Sokolov <aesok@post.ru>
14692 * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
14693 * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
14694 * config/s390/s390.c (s390_output_addr_const_extra): Make static.
14695 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
14697 2011-01-12 Kai Tietz <kai.tietz@onevision.com>
14700 * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
14703 2011-01-12 Jan Hubicka <jh@suse.cz>
14706 * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
14707 (PLUGIN_COND_CLOSE): New macro.
14708 (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
14710 2011-01-12 Richard Guenther <rguenther@suse.de>
14713 * lto-streamer-out.c (output_gimple_stmt): Do not wrap
14714 register variables in a MEM_REF.
14716 2011-01-12 Joseph Myers <joseph@codesourcery.com>
14718 * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
14719 crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
14720 hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
14721 i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
14722 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
14723 x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
14724 ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
14725 m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
14726 mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
14727 s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
14728 sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
14729 am33_2.0-*-linux*): Use gnu-user.h before linux.h.
14730 * config/gnu-user.h: New. Copied from linux.h.
14731 (LINUX_TARGET_STARTFILE_SPEC): Rename to
14732 GNU_USER_TARGET_STARTFILE_SPEC.
14733 (LINUX_TARGET_ENDFILE_SPEC): Rename to
14734 GNU_USER_TARGET_ENDFILE_SPEC.
14735 (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
14736 (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
14737 (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
14738 LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
14739 CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
14740 UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
14741 BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
14742 BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
14743 LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
14744 TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
14745 * config/arm/linux-eabi.h (CC1_SPEC): Use
14746 GNU_USER_TARGET_CC1_SPEC.
14747 (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
14748 (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
14749 (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
14750 * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
14751 LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
14752 LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
14753 CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
14754 LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
14756 2011-01-12 Richard Guenther <rguenther@suse.de>
14759 * doc/invoke.texi (ffast-math): Document it is turned on
14762 2011-01-12 Jan Hubicka <jh@suse.cz>
14764 PR tree-optimization/47233
14765 * opts.c (common_handle_option): Disable ipa-reference with profile
14768 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
14770 * c-parser.c (c_parser_objc_at_property_declaration): Improved
14773 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
14775 * c-parser.c (c_lex_one_token): Updated and reindented some
14776 comments. No changes in code.
14778 2011-01-11 Ian Lance Taylor <iant@google.com>
14780 * godump.c (go_output_var): Don't output the variable if there is
14781 already a type with the same name.
14783 2011-01-11 Ian Lance Taylor <iant@google.com>
14785 * godump.c (go_format_type): Don't generate float80.
14787 2011-01-11 Richard Henderson <rth@redhat.com>
14789 * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
14790 declaration. Rewrite for both speed and size.
14791 (mn10300_address_cost_1): Remove.
14792 (mn10300_register_move_cost): New.
14793 (mn10300_memory_move_cost): New.
14794 (mn10300_rtx_costs): Rewrite for both speed and size. Don't handle
14795 ZERO_EXTRACT. Do handle UNSPEC, arithmetic, logicals, compare,
14796 extensions, shifts, BSWAP, CLZ.
14797 (mn10300_wide_const_load_uses_clr): Remove.
14798 (TARGET_REGISTER_MOVE_COST): New.
14799 (TARGET_MEMORY_MOVE_COST): New.
14800 * config/mn10300/mn10300-protos.h: Update.
14801 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
14803 * config/mn10300/constraints.md ("R", "T"): Remove constraints.
14804 * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
14805 * config/mn10300/mn10300-protos.h: Update.
14806 * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
14807 (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
14808 (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
14809 (*test_int_bitfield, *test_byte_bitfield): Remove.
14810 (*bit_test, *subreg_bit_test): Remove.
14811 * config/mn10300/predicates.md (const_8bit_operand): Remove.
14813 * config/mn10300/constraints.md ("c"): Rename from "A".
14814 ("A", "D"): New constraint letters.
14815 * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
14816 (fmssf4, fnmasf4, fnmssf4): Likewise.
14818 * config/mn10300/mn10300.md (isa): New attribute.
14819 (enabled): New attribute.
14821 * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
14822 (abssf2, negsf2): Define only for hardware fp.
14823 (sqrtsf2): Reformat.
14824 (addsf3, subsf3, mulsf3): Merge expander and insn.
14826 * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
14827 (DEBUGGER_AUTO_OFFSET): Remove.
14828 (DEBUGGER_ARG_OFFSET): Remove.
14830 * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
14831 Emit register stores with the same offsets as the hardware.
14832 (mn10300_store_multiple_operation): Don't check that the register
14833 save offsets are monotonic.
14834 * config/mn10300/mn10300-protos.h: Update.
14836 * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
14838 * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
14839 in terms of the value on the stack, not the MDR register.
14841 2011-01-11 Jan Hubicka <jh@suse.cz>
14845 * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
14846 (symbol_alias_set_destroy, symbol_alias_set_contains,
14847 propagate_aliases_backward): Declare.
14848 * lto-streamer-out.c (struct sets): New sturcture.
14849 (trivally_defined_alias): New function.
14850 (output_alias_pair_p): Rewrite.
14851 (output_unreferenced_globals): Fix output of alias pairs.
14852 (produce_symtab): Likewise.
14853 * ipa.c (function_and_variable_visibility): Set weak alias destination
14855 * varasm.c (symbol_alias_set_t): Remove.
14856 (symbol_alias_set_destroy): Export.
14857 (propagate_aliases_forward, propagate_aliases_backward): New functions
14859 (compute_visible_aliases): ... this one; remove.
14860 (trivially_visible_alias): New
14861 (trivially_defined_alias): New.
14862 (remove_unreachable_alias_pairs): Rewrite.
14863 (finish_aliases_1): Reorganize code checking if alias is defined.
14864 * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
14867 2011-01-11 Richard Guenther <rguenther@suse.de>
14869 PR tree-optimization/46076
14870 * tree-ssa.c (useless_type_conversion_p): Conversions from
14871 unprototyped to empty argument list function types are useless.
14873 2011-01-11 Richard Guenther <rguenther@suse.de>
14875 PR middle-end/45235
14876 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
14877 volatile MEMs as MEM_READONLY_P.
14879 2011-01-11 Richard Guenther <rguenther@suse.de>
14881 PR tree-optimization/47239
14882 * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
14884 2011-01-11 Jeff Law <law@redhat.com>
14886 PR tree-optimization/47086
14887 * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
14888 IVs from statements that might throw.
14890 2011-01-10 Jan Hubicka <jh@suse.cz>
14893 * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
14895 2011-01-10 Jan Hubicka <jh@suse.cz>
14898 * profile.c (read_profile_edge_counts): Ignore profile inconistency
14899 when correcting profile.
14901 2011-01-10 Jan Hubicka <jh@suse.cz>
14904 * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
14905 DECL_FINI_PRIORITY.
14906 * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
14907 Restore DECL_FINI_PRIORITY.
14909 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14911 * doc/gimple.texi: Fix quoting of multi-word return values in
14912 @deftypefn statements. Ensure presence of return value. Wrap
14913 overlong @deftypefn lines.
14914 (is_gimple_operand, is_gimple_min_invariant_address): Remove
14915 descriptions of removed functions.
14916 * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
14917 of multi-word return value in @deftypefn statement.
14919 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14921 * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
14922 (Conditional Expressions, Logical Operators)
14923 (Statement and operand traversals): Do not indent smallexample
14924 code. Fix duplicate function argument in example.
14926 2011-01-10 Jeff Law <law@redhat.com>
14928 PR tree-optimization/47141
14929 * ipa-split.c (split_function): Handle case where we are
14930 returning a value and the return block has a virtual operand phi.
14932 2011-01-10 Jan Hubicka <jh@suse.cz>
14934 PR tree-optimization/47234
14935 * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
14936 (pass_feedback_split_functions): Declare.
14937 * passes.c (init_optimization_passes): Add ipa-split as subpass of
14939 * ipa-split.c (gate_split_functions): Update comments; disable
14940 split-functions for profile_arc_flag and branch_probabilities.
14941 (gate_feedback_split_functions): New function.
14942 (execute_feedback_split_functions): New function.
14943 (pass_feedback_split_functions): New global var.
14945 2011-01-10 H.J. Lu <hongjiu.lu@intel.com>
14948 * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
14949 calling gimple_call_set_cannot_inline.
14951 2011-01-10 Iain Sandoe <iains@gcc.gnu.org>
14953 * config/darwin-sections.def: Remove unused section.
14955 2011-01-10 Dave Korn <dave.korn.cygwin@gmail.com>
14958 * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
14960 2011-01-09 Nicola Pero <nicola.pero@meta-innovation.com>
14963 * c-parser.c (c_parser_declaration_or_fndef): Improved
14966 2011-01-09 Kai Tietz <kai.tietz@onevision.com>
14968 * config/i386/winnt.c (i386_pe_start_function): Make sure
14969 to switch back to function's section.
14971 2011-01-09 Iain Sandoe <iains@gcc.gnu.org>
14975 * plugin.c: Move include of dlfcn.h from here...
14976 * system.h: ... to here.
14978 2011-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14980 * doc/cpp.texi (C++ Named Operators): Fix markup for header
14982 * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
14983 two extra empty pages in PDF output.
14985 2011-01-08 Nicola Pero <nicola.pero@meta-innovation.com>
14988 * c-parser.c (c_parser_objc_type_name): If the type is unknown,
14989 for error recovery purposes behave as if it was not specified so
14990 that the default type is usd.
14992 2011-01-07 Jan Hubicka <jh@suse.cz>
14994 PR tree-optmization/46469
14995 * ipa.c (function_and_variable_visibility): Clear needed flags on
14996 nodes with external decls; handle weakrefs merging correctly.
14998 2011-01-07 Joseph Myers <joseph@codesourcery.com>
15000 * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
15003 2011-01-07 Jan Hubicka <jh@suse.cz>
15005 * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
15006 and no longer claim that gold is required for linker plugin.
15007 * configure: Regenerate.
15008 * gcc.c (PLUGIN_COND): New macro.
15009 (LINK_COMMAND_SPEC): Use it.
15010 (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
15011 * config.in (HAVE_LTO_PLUGIN): New.
15012 * configure.ac (--with-lto-plugin): New parameter; autodetect
15015 2011-01-07 Jan Hubicka <jh@suse.cz>
15017 PR tree-optimization/46367
15018 * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
15019 when we can update original.
15020 (cgraph_mark_inline_edge): Sanity check.
15021 * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
15023 2011-01-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15025 * config/spu/spu.h (ASM_COMMENT_START): Define.
15027 2011-01-07 H.J. Lu <hongjiu.lu@intel.com>
15030 * gcc.c (%>S): New.
15031 (SWITCH_KEEP_FOR_GCC): Likewise.
15032 (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
15033 (do_spec_1): Handle "%>".
15035 * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
15037 2011-01-07 Jakub Jelinek <jakub@redhat.com>
15040 * config/i386/i386.c (ix86_delegitimize_address): If
15041 simplify_gen_subreg fails, return orig_x.
15044 * value-prof.c (gimple_stringop_fixed_value): Handle
15045 lhs of the call properly.
15047 2011-01-07 Jan Hubicka <jh@suse.cz>
15050 * lto-opt.c (lto_reissue_options): Set flag_shlib.
15052 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
15054 * target.def (function_switched_text_sections): New hook.
15055 * doc/tm.texi: Regenerated.
15056 * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
15057 * final.c (default_function_switched_text_sections): New.
15058 (final_scan_insn): Call function_switched_text_sections when a
15059 mid-function section change occurs.
15060 * output.h (default_function_switched_text_sections): Declare.
15061 * config/darwin-protos.h (darwin_function_switched_text_sections):
15063 * config/darwin.c (darwin_function_switched_text_sections): New.
15064 * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
15066 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
15068 * dwarf2out.c (gen_subprogram_die): Add pubnames with code ranges for
15069 DWARF >= 3. Add pubnames for the primary section and a reduced DIE for
15070 the secondary code fragment when outputting for DWARF == 2.
15072 2011-01-07 Anatoly Sokolov <aesok@post.ru>
15074 * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
15075 * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
15077 * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
15078 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
15080 2011-01-06 Eric Botcazou <ebotcazou@adacore.com>
15083 * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
15084 when it is not empty.
15086 2011-01-06 Changpeng Fang <changpeng.fang@amd.com>
15089 * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
15090 (case ${target}): Add btver1.
15091 * config/i386/driver-i386.c (host_detect_local_cpu): Let
15092 -march=native recognize btver1 processors.
15093 * config/i386/i386-c.c (ix86_target_macros_internal): Add
15094 btver1 def_and_undef
15095 * config/i386/i386.c (struct processor_costs btver1_cost): New
15097 (m_BTVER1): New definition.
15098 (m_AMD_MULTIPLE): Includes m_BTVER1.
15099 (initial_ix86_tune_features): Add btver1 tune.
15100 (processor_target_table): Add btver1 entry.
15101 (static const char *const cpu_names): Add btver1 entry.
15102 (software_prefetching_beneficial_p): Add btver1.
15103 (ix86_option_override_internal): Add btver1 instruction sets.
15104 (ix86_issue_rate): Add btver1.
15105 (ix86_adjust_cost): Add btver1.
15106 * config/i386/i386.h (TARGET_BTVER1): New definition.
15107 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
15108 (enum processor_type): Add PROCESSOR_BTVER1.
15109 * config/i386/i386.md (define_attr "cpu"): Add btver1.
15111 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15114 * config/i386/i386.c (legitimize_tls_address)
15115 <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
15116 * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
15117 (tls_initial_exec_64_sun): New pattern.
15119 2011-01-06 Gerald Pfeifer <gerald@pfeifer.com>
15121 * doc/invoke.texi (Overall Options): Improve wording and markup
15122 of the description of -wrapper.
15124 2011-01-06 Joseph Myers <joseph@codesourcery.com>
15126 * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
15127 rdynamic, threads): New Driver options.
15129 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15132 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
15133 if coming from .tdata.
15134 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
15136 2011-01-06 Jan Hubicka <jh@suse.cz>
15139 * collect2.c (main): Do not enable LTOmode when plugin is active.
15141 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15144 * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
15145 --version output if supported.
15146 * configure: Regenerate.
15148 2011-01-06 Joseph Myers <joseph@codesourcery.com>
15150 * config/linux-android.opt (tno-android-cc, tno-android-ld): New
15153 2011-01-06 Jakub Jelinek <jakub@redhat.com>
15156 * c-convert.c (convert): When converting a complex expression
15157 other than COMPLEX_EXPR to a different complex type, ensure
15158 c_save_expr is called instead of save_expr, unless in_late_binary_op.
15159 * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
15160 when converting COMPLEX_TYPE.
15162 2011-01-06 Ira Rosen <irar@il.ibm.com>
15164 PR tree-optimization/47139
15165 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
15166 only the last reduction value is used outside the loop. Update
15169 2011-01-05 Joseph Myers <joseph@codesourcery.com>
15171 * config/rtems.opt: New.
15172 * config.gcc (*-*-rtems*): Use rtems.opt.
15174 2011-01-05 Changpeng Fang <changpeng.fang@amd.com>
15176 * config/i386/i386.c (ix86_option_override_internal): Bulldozer
15177 processors do not support 3DNow instructions.
15179 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15181 * config/spu/spu.c (spu_option_override): Set parameter
15182 PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
15184 2011-01-05 Jan Hubicka <jh@suse.cz>
15186 * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
15187 at the command line.
15189 2011-01-05 Martin Jambor <mjambor@suse.cz>
15192 * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
15193 deltas on streamed outgoing edges.
15194 (output_node_opt_summary): Output info for outgoing edges only when
15195 the node is in new parameter set.
15196 (output_cgraph_opt_summary): New parameter set, passed to the two
15197 aforementioned functions. Update its forward declaration and its
15200 2011-01-05 Tom Tromey <tromey@redhat.com>
15202 * c-parser.c (c_parser_omp_atomic): Pass location of assignment
15203 operator to c_finish_omp_atomic.
15204 * c-typeck.c (lvalue_or_else): Add 'loc' argument.
15205 (build_unary_op): Update.
15206 (build_modify_expr): Update.
15207 (build_asm_expr): Update.
15209 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15211 * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
15212 newly inserted insns.
15213 (pad_bb): Likewise.
15214 (spu_emit_branch_hint): Likewise.
15215 (insert_hbrp_for_ilb_runout): Likewise.
15216 (spu_machine_dependent_reorg): Call df_finish_pass after
15217 schedule_insns returns.
15219 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15221 * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
15223 2011-01-05 Eric Botcazou <ebotcazou@adacore.com>
15225 PR tree-optimization/47005
15226 * tree-sra.c (struct access): Add 'non_addressable' bit.
15227 (create_access): Set it for a DECL_NONADDRESSABLE_P field.
15228 (decide_one_param_reduction): Return 0 if the parameter is passed by
15229 reference and one of the accesses in the group is non_addressable.
15231 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
15233 PR tree-optimization/47056
15234 * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
15235 (mark_load): Likewise. Handle FUNCTION_DECL specially.
15236 (mark_store): Likewise. Pass STMT to ipa_record_reference.
15238 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
15240 * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
15241 initializer. Skip view conversions from aggregate types.
15243 2011-01-04 Kai Tietz <kai.tietz@onevision.com>
15246 * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
15248 2011-01-04 Philipp Thomas <pth@suse.de>
15250 * config/microblaze/microbalse.opt (mxl-float-convert): Fix
15253 2011-01-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15255 * function.c (thread_prologue_and_epilogue_insns): Do not crash
15256 on empty epilogue sequences.
15258 2011-01-04 Joseph Myers <joseph@codesourcery.com>
15260 * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
15261 non-static): New Driver options.
15263 2011-01-04 Jie Zhang <jie@codesourcery.com>
15266 * gcc.c (default_compilers[]): Set combinable field to 0
15267 for all assembly languages.
15269 2011-01-04 Mingjie Xing <mingjie.xing@gmail.com>
15271 * config/mips/loongson3a.md: New file.
15272 * config/mips/mips.md: Include loongson3a.md.
15273 * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
15276 2011-01-03 Eric Botcazou <ebotcazou@adacore.com>
15278 PR middle-end/47017
15279 * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
15280 instead of convert_memory_address_addr_space on the base expression.
15282 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15284 * config/spu/spu.c (spu_option_override): Update error text
15285 for bad -march= / -mtune= values.
15287 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15289 * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
15290 if branch-hint optimization will be performed.
15292 2011-01-03 Jakub Jelinek <jakub@redhat.com>
15294 PR tree-optimization/47148
15295 * ipa-split.c (split_function): Convert arguments to
15296 DECL_ARG_TYPE if possible.
15298 PR tree-optimization/47155
15299 * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
15300 when computing uns.
15302 PR rtl-optimization/47157
15303 * combine.c (try_combine): If undobuf.other_insn becomes
15304 (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
15305 and set *new_direct_jump_p too.
15307 2011-01-03 Sebastian Pop <sebastian.pop@amd.com>
15309 PR tree-optimization/47021
15310 * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
15312 2011-01-03 Jakub Jelinek <jakub@redhat.com>
15314 * gcc.c (process_command): Update copyright notice dates.
15315 * gcov.c (print_version): Likewise.
15316 * gcov-dump.c (print_version): Likewise.
15317 * mips-tfile.c (main): Likewise.
15318 * mips-tdump.c (main): Likewise.
15320 2011-01-03 Martin Jambor <mjambor@suse.cz>
15322 PR tree-optimization/46801
15323 * tree-sra.c (type_internals_preclude_sra_p): Check whether
15324 aggregate fields start at byte boundary instead of the bit-field flag.
15326 2011-01-03 H.J. Lu <hongjiu.lu@intel.com>
15329 * gcc.c (main): Revert revision 168407.
15331 2011-01-03 Martin Jambor <mjambor@suse.cz>
15333 * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
15335 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15337 * tree-vect-generic.c (expand_vector_operations_1): When using vector/
15338 vector optab to expand vector/scalar shift, update gimple to vector.
15340 2011-01-03 Martin Jambor <mjambor@suse.cz>
15342 * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
15345 2011-01-03 Martin Jambor <mjambor@suse.cz>
15347 PR tree-optimization/46984
15348 * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
15350 (cgraph_create_indirect_edge): Fixed line length.
15351 (cgraph_indirect_call_info): Declare.
15352 (cgraph_make_edge_direct) Update declaration.
15353 * cgraph.c (cgraph_allocate_init_indirect_info): New function.
15354 (cgraph_create_indirect_edge): Use it.
15355 (cgraph_make_edge_direct): Made delta HOST_WIDE_INT. Updated all
15357 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
15358 the new thunk_delta representation.
15359 * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
15361 (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
15362 (ipa_read_indirect_edge_info): Likewise.
15363 * lto-cgraph.c (output_edge_opt_summary): New function.
15364 (output_node_opt_summary): Call it on all outgoing edges.
15365 (input_edge_opt_summary): New function.
15366 (input_node_opt_summary): Call it on all outgoing edges.
15368 2011-01-02 H.J. Lu <hongjiu.lu@intel.com>
15371 * gcc.c (main): Don't check have_o when settting combine_inputs.
15373 2011-01-02 Eric Botcazou <ebotcazou@adacore.com>
15375 * regrename.c: Add general comment describing the pass.
15376 (struct du_head): Remove 'length' field.
15377 (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
15378 (regrename_optimize): Do not sort chains. Rework comments, add others.
15379 Force renaming to the preferred class (if any) in the first pass and do
15380 not consider registers that belong to it in the second pass.
15381 (create_new_chain): Do not set 'length' field.
15382 (scan_rtx_reg): Likewise.
15384 2011-01-02 Jakub Jelinek <jakub@redhat.com>
15386 PR tree-optimization/47140
15387 * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
15388 TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
15389 to bit_value_binop.
15391 PR rtl-optimization/47028
15392 * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
15393 parm_birth_insn instead of at the beginning of first bb.
15395 2011-01-02 Mingjie Xing <mingjie.xing@gmail.com>
15397 * doc/generic.texi: Remove duplicated "@subsubsection Statements".
15398 Remove the word "see" before "@pxref".
15399 * doc/rtl.texi: Remove the word "see" before "@pxref".
15401 2011-01-01 Jan Hubicka <jh@suse.cz>
15403 * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
15406 2011-01-01 Kai Tietz <kai.tietz@onevision.com>
15409 * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
15412 Copyright (C) 2011 Free Software Foundation, Inc.
15414 Copying and distribution of this file, with or without modification,
15415 are permitted in any medium without royalty provided the copyright
15416 notice and this notice are preserved.