1 2011-05-25 Eric Botcazou <ebotcazou@adacore.com>
3 * common.opt (flag_stack_usage_info): New variable.
4 (-Wstack-usage): New option.
5 * doc/invoke.texi (Warning options): Document -Wstack-usage.
6 * opts.c (common_handle_option) <OPT_Wstack_usage_>: New case.
7 <OPT_fstack_usage>: Likewise.
8 * toplev.c (output_stack_usage): Handle -Wstack-usage.
9 * calls.c (expand_call): Test flag_stack_usage_info variable instead
11 (emit_library_call_value_1): Likewise.
12 * explow.c (allocate_dynamic_stack_space): Likewise.
13 * function.c (instantiate_virtual_regs ): Likewise.
14 (prepare_function_start): Likewise.
15 (rest_of_handle_thread_prologue_and_epilogue): Likewise.
16 * config/alpha/alpha.c (alpha_expand_prologue): Likewise.
17 * config/arm/arm.c (arm_expand_prologue): Likewise.
18 (thumb1_expand_prologue): Likewise.
19 * config/avr/avr.c (expand_prologue): Likewise.
20 * config/i386/i386.c (ix86_expand_prologue): Likewise.
21 * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
22 * config/m68k/m68k.c (m68k_expand_prologue): Likewise.
23 * config/mips/mips.c (mips_expand_prologue): Likewise.
24 * config/pa/pa.c (hppa_expand_prologue): Likewise.
25 * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
26 * config/s390/s390.c (s390_emit_prologue): Likewise.
27 * config/sh/sh.c (sh_expand_prologue): Likewise.
28 * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
29 * config/spu/spu.c (spu_expand_prologue): Likewise.
31 2011-05-25 Richard Guenther <rguenther@suse.de>
33 * gimple.c (iterative_hash_canonical_type): Skip non-FIELD_DECLs.
34 (gimple_canonical_types_compatible_p): Likewise.
36 2011-05-25 Jan Hubicka <jh@suse.cz>
39 * ipa.c (function_and_variable_visibility): Only add to same
40 comdat group list if DECL_ONE_ONLY.
42 2011-05-25 Andrey Belevantsev <abel@ispras.ru>
44 PR rtl-optimization/49014
45 * config/i386/athlon.md (athlon_ssecomi): Change type to ssecomi.
47 2011-05-25 Jakub Jelinek <jakub@redhat.com>
50 * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
52 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
54 PR rtl-optimization/48757
55 * ira-build.c (loop_with_eh_edge_p): Rename to
56 loop_with_complex_edge_p, check edges on complexity, make function
58 (mark_loops_for_removal): Make call of loop_with_complex_edge_p
61 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
63 * config/sparc/sparc.c (sparc_option_override): If not set by the user,
64 force flag_ira_share_save_slots to 0.
66 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
68 * var-tracking.c (compute_cfa_pointer): Adjust head comment.
69 (vt_initialize): Set PROLOGUE_BB unconditionally.
70 Add block comment about CFA_BASE_RTX machinery.
71 Reset FP_CFA_OFFSET to -1 on all invalid paths.
72 Call vt_init_cfa_base only if FP_CFA_OFFSET isn't equal to -1.
74 2011-05-24 Nicola Pero <nicola.pero@meta-innovation.com>
77 * c-parser.c (c_parser_objc_class_instance_variables): More robust
78 parsing of syntax error in ObjC instance variable lists. In
79 particular, avoid an infinite loop if there is a stray ']'.
80 Updated error message.
82 2011-05-24 Ian Lance Taylor <iant@google.com>
84 * godump.c (go_define): Don't accept a string immediately after
87 2011-05-24 Ian Lance Taylor <iant@google.com>
89 * godump.c (struct godump_container): Add invalid_hash field.
90 (go_format_type): Return false if type is found in invalid_hash.
91 (go_output_typedef): Add invalid type to invalid_hash.
92 (go_finish): Create and delete invalid_hash.
94 2011-05-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
96 PR tree-optimization/46728
97 * tree-ssa-math-opts.c (powi_table): New.
98 (powi_lookup_cost): New.
100 (powi_as_mults_1): New.
101 (powi_as_mults): New.
102 (gimple_expand_builtin_powi): New.
103 (execute_cse_sincos): Add switch case for BUILT_IN_POWI.
104 (gate_cse_sincos): Remove sincos/cexp restriction.
106 2011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
109 * config.gcc (alpha*-dec-osf5.1*): Only build mips-tfile,
111 * mips-tfile.c: Remove CROSS_DIRECTORY_STRUCTURE handling.
112 * mips-tdump.c: Likewise.
114 2011-05-24 H.J. Lu <hongjiu.lu@intel.com>
117 * config/i386/driver-i386.c (host_detect_local_cpu): Always
118 add -mno-XXX. Handle FMA.
120 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
122 PR rtl-optimization/48633
123 * ira-build.c (loop_with_eh_edge_p): New function.
124 (mark_loops_for_removal): Use it.
126 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
128 PR rtl-optimization/48971
129 * ira.c (setup_pressure_classes): Don't check register move cost
130 for classes with one registers. Don't add pressure class if there
131 is a pressure class with the same available hard registers.
132 Check contains_reg_of_mode. Fix a typo in collecting
133 temp_hard_regset. Ignore hard registers not belonging to a class.
135 2011-05-24 Uros Bizjak <ubizjak@gmail.com>
138 * config/i386/sse.md (sse2_loadhpd): Remove shufpd alternative.
140 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
141 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
143 PR gcov-profile/48845
144 * config/sol2.h (LIB_SPEC): Link TLS support for tree profiling.
146 2011-05-24 Richard Guenther <rguenther@suse.de>
148 * gimple.c (compare_type_names_p): Remove for_completion_p arg.
149 (gimple_compatible_complete_and_incomplete_subtype_p): Remove.
150 (gimple_types_compatible_p_1): Adjust.
151 (iterative_hash_canonical_type): Do not bother about complete vs.
153 (gimple_canonical_types_compatible_p): Likewise.
155 2011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
157 * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Remove.
159 2011-05-24 Richard Guenther <rguenther@suse.de>
162 * gimple.c (gimple_register_canonical_type): Revert
164 * alias.c (get_alias_set): Only assert that TYPE_CANONICAL
165 does not for a tree for the case where it matters. Cache
166 pointer-type alias-sets.
168 2011-05-24 Joseph Myers <joseph@codesourcery.com>
170 * Makefile.in (GCC_OBJS): Remove opts-common.o and options.o.
171 (OBJS): Remove options.o, opts-common.o and prefix.o.
172 (OBJS-libcommon-target): New.
173 (ALL_HOST_BACKEND_OBJS): Include $(OBJS-libcommon-target).
174 (BACKEND): Include libcommon-target.a.
175 (MOSTLYCLEANFILES): Include libcommon-target.a.
176 (libcommon-target.a): New.
177 (xgcc$(exeext), cpp$(exeext)): Use libcommon-target.a instead of
180 2011-05-23 Joseph Myers <joseph@codesourcery.com>
182 * optc-save-gen.awk: New. Based on optc-gen.awk. Don't generate
183 parts of output shared with the driver.
184 * optc-gen.awk: Don't generate parts of output not shared with the
186 * opth-gen.awk: Remove GCC_DRIVER conditionals.
187 * doc/options.texi (SourcerInclude): Mention options-save.c.
188 * Makefile.in (GCC_OBJS): Use options.o instead of gcc-options.o.
189 (OBJS): Add options-save.o.
190 (options-save.c, options-save.o): New.
191 (options.o): Update dependencies.
192 (gcc-options.o): Remove.
193 (mostlyclean): Remove options-save.c.
195 2011-05-23 Jakub Jelinek <jakub@redhat.com>
198 * dbxout.c: Include cgraph.h.
199 (dbxout_expand_expr): If a VAR_DECL is TREE_STATIC, not written
200 and without value expr, return NULL if no varpool node exists for
201 it or if it is not needed.
202 * Makefile.in (dbxout.o): Depend on $(CGRAPH_H).
205 * c-decl.c (start_decl): Convert expr to void_type_node.
207 2011-05-23 Richard Sandiford <rdsandiford@googlemail.com>
209 PR rtl-optimization/48826
210 * emit-rtl.c (try_split): When splitting a call that is followed
211 by a NOTE_INSN_CALL_ARG_LOCATION, move the note after the new call.
213 2011-05-23 Jakub Jelinek <jakub@redhat.com>
215 * cfgexpand.c (expand_debug_expr): For unused non-addressable
216 parameters passed in memory prefer using DECL_INCOMING_RTL over
217 the pseudos it will be copied into.
219 2011-05-23 H.J. Lu <hongjiu.lu@intel.com>
222 * config/i386/i386.c (ix86_option_override_internal): Save the
223 initial options after checking vzeroupper.
225 2011-05-23 David Li <davidxl@google.com>
227 PR tree-optimization/48988
228 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds):
229 Initialize has_valid_pred for each pred chain.
231 2011-05-23 Richard Guenther <rguenther@suse.de>
233 * gimple.c (gimple_types_compatible_p_1): Always compare type names.
234 (iterative_hash_gimple_type): Always hash type names.
236 2011-05-23 Nathan Froyd <froydnj@codesourcery.com>
238 * c-typeck.c (build_function_call_vec): Tweak call to
239 check_function_arguments.
241 2011-05-23 Richard Guenther <rguenther@suse.de>
243 PR tree-optimization/49115
244 * tree-ssa-alias.c (stmt_kills_ref_p_1): If the assignment
245 is not necessarily carried out, do not claim it kills the ref.
246 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
248 2011-05-23 Richard Guenther <rguenther@suse.de>
251 * builtins.c (fold_builtin_memory_op): Be less restrictive about
252 what pointer types we accept for folding.
254 2011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
256 * gthr-gnat.c: Remove.
257 * gthr-gnat.h: Remove.
258 * Makefile.in (LIB2ADDEH): Remove $(srcdir)/gthr-gnat.c.
259 * config/t-freebsd (LIB2ADDEH): Likewise.
260 * config/t-linux (LIB2ADDEH): Likewise.
261 * config/t-sol2 (LIB2ADDEH): Likewise.
262 * config/ia64/t-vms (LIB2ADDEH): Likewise.
263 * configure.ac (target_thread_file): Remove gnat handling.
264 * configure: Regenerate.
265 * doc/install.texi (Configuration, --enable-threads): Remove gnat.
267 2011-05-23 Tristan Gingold <gingold@adacore.com>
268 Eric Botcazou <ebotcazou@adacore.com>
270 * gcov.c (create_file_names): If no object directory is specified,
271 keep the directory of the file.
273 2011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
275 * configure.ac (enable_threads): Remove irix; add lynx, tpf; sort list.
276 * configure: Regenerate.
278 2011-05-23 Jakub Jelinek <jakub@redhat.com>
281 * expr.c (expand_expr_real_2) <case LT_EXPR>: If do_store_flag
282 failed and the comparison has a single bit signed type, use
283 constm1_rtx instead of const1_rtx for true value.
284 (do_store_flag): If ops->type is single bit signed type, disable
285 signel bit test optimization and pass -1 instead of 1 as last
286 parameter to emit_store_flag_force.
288 2011-05-23 Tom de Vries <tom@codesourcery.com>
291 * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith): New
293 (infer_loop_bounds_from_undefined): Use new function.
295 2011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
297 * config/mips/mips.h (SUBTARGET_ASM_OPTIMIZING_SPEC): Delete.
298 (ASM_SPEC): Add a -O* option here. Pass -O0 for -noasmopt,
299 -O1 for -fno-delayed-branch, -O2 if optimization is enabled,
301 (EXTRA_SPECS): Remove subtarget_asm_optimizing_spec.
303 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
305 * cfgcleanup.c (try_forward_edges): Do not update BB_FORWARDER_BLOCK.
306 (try_optimize_cfg): Update BB_FORWARDER_BLOCK if try_forward_edges
309 2011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
311 * config/mips/mips.c (mips_default_arch): Honor MIPS_ISA_DEFAULT.
313 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
315 * config/sparc/sparc.c (sparc_delegitimize_address): Handle
316 UNSPEC_MOVE_PIC pattern.
318 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
320 * config.gcc (sparc-*-elf*): Add sparc/t-crtin.
321 (sparc-*-rtems*): Likewise.
322 (sparc64-*-elf*): Likewise.
323 (sparc64-*-rtems*): Likewise.
324 (sparc*-*-solaris2*): Likewise. Remove crti.o crtn.o extra parts.
325 * config/sparc/t-crtin: New file.
326 * config/sparc/t-sol2 (crti.o): Delete rule.
328 * config/sparc/t-linux64 (EXTRA_MULTILIB_PARTS): Delete.
329 * config/sparc/t-sol2-64 (EXTRA_MULTILIB_PARTS): Likewise.
330 * config/sparc/sp64-elf.h (STARTFILE_SPEC): Tidy and add crti.o.
331 (ENDFILE_SPEC): Add crtn.o.
333 2011-05-22 Tom de Vries <tom@codesourcery.com>
336 * fold-const.c (fold_checksum_tree): Guard TREE_CHAIN use with
337 CODE_CONTAINS_STRUCT (TS_COMMON).
339 2011-05-22 Jakub Jelinek <jakub@redhat.com>
342 * expmed.c (extract_fixed_bit_field): Test whether target can be used
343 only after deciding which mode to use.
345 2011-05-22 Tom de Vries <tom@codesourcery.com>
348 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Fix const test
349 for call to get_shiftadd_cost.
351 2011-05-22 Uros Bizjak <ubizjak@gmail.com>
354 * config/i386/cpuid.h (bit_MMXEXT): New define.
356 2011-05-22 Nick Clifton <nickc@redhat.com>
358 * config/stormy16/stormy16.c (xstormy16_init_builtins): prevent
359 initialisation of non-existant args[2] element. Use args[] array
360 not arg[] array to pass arguments to build_function_type_list.
362 2011-05-22 Ira Rosen <ira.rosen@linaro.org>
364 PR tree-optimization/49087
365 * tree-vect-loop.c (vect_is_slp_reduction): Fail if LHS has no uses.
367 2011-05-21 Jason Merrill <jason@redhat.com>
370 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Check for
371 static storage duration.
373 2011-05-21 Eric Botcazou <ebotcazou@adacore.com>
375 * config/sparc/sparc.md (setjmp): Handle PIC mode and use the hard
378 2011-05-21 Eric Botcazou <ebotcazou@adacore.com>
380 * config/sparc/sparc.c (eligible_for_return_delay): Do not return
381 false if there are call-saved registers here...
382 (sparc_can_use_return_insn_p): ...but here instead.
383 (save_or_restore_regs): Fix thinko.
384 (sparc_expand_prologue): Use current_function_is_leaf.
385 (sparc_frame_pointer_required): Likewise.
387 2011-05-21 Nick Clifton <nickc@redhat.com>
390 * config/rx/rx.c (rx_memory_move_cost): Note unused parameters.
392 2011-05-21 Nicola Pero <nicola.pero@meta-innovation.com>
394 * gengtype.c (walk_type): Implemented "atomic" GTY option.
395 * doc/gty.texi (GTY Options): Document "atomic" GTY option.
397 2011-05-21 Joseph Myers <joseph@codesourcery.com>
399 * opt-read.awk: New. Split out of optc-gen.awk and opth-gen.awk.
400 * optc-gen.awk: Move common code to opt-read.awk.
401 * opth-gen.awk: Likewise.
402 * Makefile.in (options.c, s-options-h): Update to use opt-read.awk.
404 2011-05-20 Nathan Froyd <froydnj@codesourcery.com>
406 * godump.c (go_format_type): Don't use TYPE_ARG_TYPES.
408 2011-05-20 Tom de Vries <tom@codesourcery.com>
411 * tree-ssa-loop-ivopts.c: Include expmed.h.
412 (get_shiftadd_cost): New function.
413 (force_expr_to_var_cost): Declare forward. Use get_shiftadd_cost.
415 2011-05-20 Jakub Jelinek <jakub@redhat.com>
418 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL
419 for PHI args that are SSA_NAME_IS_DEFAULT_DEF.
421 2011-05-20 Joseph Myers <joseph@codesourcery.com>
423 * Makefile.in: Update comment referring to $(OBJS-common).
425 2011-05-20 Ian Lance Taylor <iant@google.com>
427 * godump.c (go_output_typedef): Put enum constants in the macro
428 hash table to avoid duplicate Go const definitions.
430 2011-05-20 Joseph Myers <joseph@codesourcery.com>
432 * Makefile.in (LIBDEPS): Add libcommon.a.
434 (GCC_OBJS): Remove diagnostic.o, pretty-print.o and input.o.
435 (OBJS-common): Remove diagnostic.o, input.o, intl.o,
436 pretty-print.o and version.o.
437 (OBJS-libcommon): New.
438 (ALL_HOST_BACKEND_OBJS): Add $(OBJS-libcommon).
439 (BACKEND): Add libcommon.a.
440 (MOSTLYCLEANFILES): Likewise.
442 (xgcc$(exeext)): Don't explicitly use version.o and intl.o.
443 (cpp$(exeext)): Likewise.
444 (COLLECT2_OBJS): Remove intl.o, version.o, diagnostic.o,
445 pretty-print.o and input.o.
446 (lto-wrapper$(exeext)): Don't explicitly use intl.o.
447 (lto-wrapper.o): Depend on $(DIAGNOSTIC_H).
449 (mips-tfile): Don't explicitly use version.o.
450 (mips-tdump): Likewise.
451 (gcov.o): Depend on $(DIAGNOSTIC_H).
452 (gcov-dump.o): Depend on intl.h and $(DIAGNOSTIC_H).
453 (GCOV_OBJS): Remove intl.o, version.o and errors.o.
454 (GCOV_DUMP_OBJS): Remove version.o and errors.o.
455 * gcov-dump.c: Include intl.h and diagnostic.h.
456 (main): Initialize diagnostics.
457 * gcov.c: Include diagnostic.h.
459 (main): Initialize diagnostics.
460 * lto-wrapper.c: Include diagnostic.h.
461 (main): Initialize diagnostics.
463 2011-05-20 Michael Matz <matz@suse.de>
465 * Makefile.in (OBJS-common, OBJS-md, OBJS-archive): Merge into OBJS.
467 2011-05-20 Michael Matz <matz@suse.de>
468 Richard Guenther <rguenther@suse.de>
470 * lto-streamer.c (lto_record_common_node): Don't track seen nodes,
471 use lto_streamer_cache_append directly instead of returning a VEC.
472 (preload_common_node): Remove.
473 (lto_get_common_nodes): Rename to lto_preload_common_nodes, don't
475 (lto_streamer_cache_create): Call lto_preload_common_nodes.
477 2011-05-20 Richard Guenther <rguenther@suse.de>
479 PR tree-optimization/49079
480 * tree-dfa.c (get_ref_base_and_extent): Handle view-converting
481 MEM_REFs correctly for the trailing array access detection.
482 Special case constants the same way as decls for overall size
485 2011-05-20 Uros Bizjak <ubizjak@gmail.com>
487 * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Fix macro
490 2011-05-20 Jakub Jelinek <jakub@redhat.com>
492 PR tree-optimization/49073
493 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL if
494 PHI argument is SSA_NAME, whose def_stmt is dominated by the PHI.
495 * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Calculate dominators.
497 2011-05-20 Richard Guenther <rguenther@suse.de>
500 * gimple.c (gimple_register_canonical_type): Compute TYPE_CANONICAL
501 of pointer types the same way the middle-end does.
503 2011-05-20 Richard Guenther <rguenther@suse.de>
505 * gimple.c (gimple_register_type_1): Do not fiddle with main-variant
506 or pointer-to chains. Delay all fixup to uniquify_nodes.
508 2011-05-19 Quentin Neill <quentin.neill@amd.com>
510 * config/i386/sse.md (fma4_fmsubadd): Use <ssemodesuffix>.
511 (fma4_fmaddsub): Likewise
513 2011-05-19 Jan Hubicka <jh@suse.cz>
515 * gimple.c (gtc_visited, gtc_ob, type_pair_hash, type_pair_eq): Remove.
516 (GIMPLE_TYPE_PAIR_SIZE): New macro.
517 (type_pair_cache): New static var.
518 (lookup_type_pair): Use fixed sized custom hash; make inline.
519 (gtc_visit, gimple_types_compatible_p, gimple_register_type_1): Update
520 calls of lookup_type_pair.
521 (print_gimple_types_stats): Remove cache stats.
522 (free_gimple_type_tables): Free type_pair_cache instead of gtc_visited
525 2011-05-19 Uros Bizjak <ubizjak@gmail.com>
527 * config/i386/i386.c (option_override_internal): Enable TARGET_CMOVE
528 when TARGET_RDRND is active.
529 (ix86_expand_builtin) <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>:
530 Generate dummy SImode target register when target is NULL.
532 2011-05-19 Joseph Myers <joseph@codesourcery.com>
534 * config/arm/arm-fpus.def: New.
535 * config/arm/genopt.sh: Generate Enum and EnumValue entries from
537 * config/arm/arm-tables.opt: Regenerate.
538 * config/arm/arm.c (all_fpus): Move contents to arm-fpus.def.
539 (arm_option_override): Don't decode FPU name to string here.
540 * config/arm/arm.opt (mfpu=): Use Enum.
541 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt, arm.o):
544 2011-05-19 Joseph Myers <joseph@codesourcery.com>
546 * collect2.c: Include diagnostic.h.
547 (fatal_perror, fatal, error, fancy_abort): Remove.
548 (main): Set progname. Call xmalloc_set_program_name and
549 diagnostic_initialize.
550 (maybe_run_lto_and_relink, main, collect_execute, scan_prog_file,
551 scan_libraries, resolve_lib_name): Call fatal_error instead of
552 fatal and fatal_perror.
553 * collect2.h (error, fatal, fatal_perror): Don't declare.
554 * tlink.c: Include diagnostic-core.h.
555 (recompile_files): Call fatal_error instead of fatal_perror.
556 * Makefile.in (COLLECT2_OBJS): Include diagnostic.o,
557 pretty-print.o and input.o.
558 (collect2.o, tlink.o): Update dependencies.
560 2011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
562 * config/i386/i386.md (tls_initial_exec_64_sun): Add semicolon.
564 2011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
567 * configure.ac (gcc_cv_as_comdat_group_group): Check for Sun as
568 COMDAT group syntax, both SPARC and x86 variants.
569 (HAVE_COMDAT_GROUP): Also define if gcc_cv_as_comdat_group_group.
570 * configure: Regenerate.
571 * config/sol2.h (TARGET_SOLARIS): Define.
572 (PUSHSECTION_FORMAT): Remove.
573 (SECTION_NAME_FORMAT): Define.
574 * config/sol2.c: Include hashtab.h.
575 (solaris_output_init_fini): Replace PUSHSECTION_FORMAT by its
576 expansion, using SECTION_NAME_FORMAT.
577 (solaris_comdat_htab): New variable.
578 (struct comdat_entry): Define.
579 (comdat_hash): New function.
580 (comdat_eq): New function.
581 (solaris_elf_asm_comdat_section): New function.
582 (solaris_define_comdat_signature): New function.
583 (solaris_code_end): New function.
584 * config/sol2-protos.h (solaris_elf_asm_comdat_section): Declare.
585 (solaris_code_end): Declare.
586 * config/t-sol2 (sol2.o): Add $HASHTAB_H dependency.
587 * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Call
589 (i386_solaris_elf_named_section): Wrap in TARGET_SOLARIS.
590 Remove ATTRIBUTE_UNUSED.
591 [!USE_GAS]: Call solaris_elf_asm_comdat_section for
592 SECTION_LINKONCE sections if HAVE_COMDAT_GROUP.
593 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Likewise.
594 * config/i386/sol2-10.h (TARGET_ASM_NAMED_SECTION): Moved ...
595 * config/i386/sol2.h (TARGET_ASM_NAMED_SECTION): ... here.
596 * config/sparc/sol2.h (TARGET_ASM_CODE_END): Redefine.
597 (PUSHSECTION_FORMAT): Remove.
598 (SECTION_NAME_FORMAT): Redefine.
600 2011-05-19 Kai Tietz <ktietz@redhat.com>
602 * tree-cfg.c (verify_gimple_assign_binary): Barf on
603 TRUTH_AND_EXPR, TRUTH_OR_EXPR, and TRUTH_XOR_EXPR.
604 (gimplify_expr): Move TRUTH_AND|OR|XOR_EXPR to its binary form.
606 2011-05-19 Anatoly Sokolov <aesok@post.ru>
607 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
609 * config/t-sol2 (sol2.o): Add $(TARGET_H) dependency.
611 2011-05-19 Richard Guenther <rguenther@suse.de>
614 * tree-object-size.c (addr_object_size): If the pointed-to
615 variable is a decl use DECL_SIZE_UNIT instead of TYPE_SIZE_UNIT.
617 2011-05-19 Richard Guenther <rguenther@suse.de>
619 * gimple.c (gimple_types_compatible_p_1): Compare names of
620 the types themselves.
621 (iterative_hash_gimple_type): And hash them that way.
622 (gimple_register_type_1): If we register a main variant properly
623 initialize the leader to ourselves.
625 2011-05-19 Tom de Vries <tom@codesourcery.com>
628 * tree-ssa-loop-ivopts.c (get_expr_id): Factored new function out of
629 get_loop_invariant_expr_id.
630 (get_loop_invariant_expr_id): Use get_expr_id.
631 (parm_decl_cost): New function.
632 (determine_use_iv_cost_condition): Use get_expr_id and parm_decl_cost.
633 Improve bound cost estimation. Use different inv_expr_id for elim and
636 2011-05-19 Tom de Vries <tom@codesourcery.com>
639 * tree-ssa-loop-ivopts.c (determine_iv_cost): Prevent
642 2011-05-18 H.J. Lu <hongjiu.lu@intel.com>
645 * config/i386/sse.md (avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>):
646 Properly handle load cast.
648 2011-05-18 Jakub Jelinek <jakub@redhat.com>
650 PR tree-optimization/49039
651 * tree-vrp.c (extract_range_from_binary_expr): For
652 MIN_EXPR <~[a, b], ~[c, d]> and MAX_EXPR <~[a, b], ~[c, d]>
653 return ~[MAX_EXPR <a, c>, MIN_EXPR <b, d>].
655 2011-05-18 Tom de Vries <tom@codesourcery.com>
658 * tree-ssa-loop-ivopts.c (computation_cost): Prevent cost of 0.
660 2011-05-18 Uros Bizjak <ubizjak@gmail.com>
662 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Split asm template.
663 (*tls_global_dynamic_64): Ditto.
664 (*tls_local_dynamic_base_32_gnu): Ditto.
665 (*tls_local_dynamic_base_64): Ditto.
666 (tls_initial_exec_64_sun): Ditto.
668 2011-05-18 Stuart Henderson <shenders@gcc.gnu.org>
670 * doc/invoke.texi (Blackfin Options): -mcpu accepts bf592.
671 * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
673 * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
674 * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
675 * config/bfin/bfin.c (bfin_cpus): Add bf592.
676 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
677 __ADSPBF592__ and __ADSPBF59x__ for BFIN_CPU_BF592.
678 * config/bfin/bfin-opts.h (bfin_cpu_type): Add BFIN_CPU_BF592.
679 * config/bfin/elf.h (LIB_SPEC): Add bf592.
681 2011-05-18 Joseph Myers <joseph@codesourcery.com>
683 * config/arm/arm-opts.h (enum arm_fp16_format_type, enum
684 arm_abi_type, enum float_abi_type, enum arm_tp_type): Move from arm.h.
685 * config/arm/arm.c (arm_float_abi, arm_fp16_format, arm_abi,
686 target_thread_pointer, arm_structure_size_boundary, struct
687 float_abi, all_float_abis, struct fp16_format, all_fp16_formats,
688 struct abi_name, arm_all_abis): Remove.
689 (arm_option_override) Don't process most enumerated option values here.
690 Don't process target_fpe_name here. Work with integer not string for
691 structure size boundary; use separate diagnostics for each case.
692 * config/arm/arm.h (enum float_abi_type, enum
693 arm_fp16_format_type, enum arm_abi_type, enum arm_tp_type): Move
695 (arm_float_abi, arm_fp16_format, arm_abi, target_thread_pointer,
696 arm_structure_size_boundary): Remove.
697 * config/arm/arm.opt (mabi=): Use Enum and Init.
698 (arm_abi_type): New Enum and EnumValue entries.
699 (mfloat-abi=): Use Enum and Init.
700 (float_abi_type): New Enum and EnumValue entries.
701 (mfp=, mfpe=): Replace by separate Alias entries for each argument.
702 (mfp16-format=): Use Enum and Init.
703 (arm_fp16_format_type): New Enum and EnumValue entries.
704 (mstructure-size-boundary=): Use UInteger and Init.
705 (mtp=): Use Enum and Init.
706 (arm_tp_type): New Enum and EnumValue entries.
708 2011-05-18 Richard Guenther <rguenther@suse.de>
710 PR tree-optimization/49018
711 * gimple.c (gimple_has_side_effects): Volatile asms have side-effects.
712 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Use
713 gimple_has_side_effects.
715 2011-05-18 Richard Guenther <rguenther@suse.de>
717 * gimple.c (gimple_register_type_1): New function, split out from ...
718 (gimple_register_type): ... here. Avoid infinite recursion.
720 2011-05-18 Ira Rosen <ira.rosen@linaro.org>
722 PR tree-optimization/41881
723 * tree-vectorizer.h (struct _loop_vec_info): Add new field
724 reduction_chains along with a macro for its access.
725 * tree-vect-loop.c (new_loop_vec_info): Initialize reduction chains.
726 (destroy_loop_vec_info): Free reduction chains.
727 (vect_analyze_loop_2): Return false if vect_analyze_slp() returns false.
728 (vect_is_slp_reduction): New function.
729 (vect_is_simple_reduction_1): Call vect_is_slp_reduction.
730 (vect_create_epilog_for_reduction): Support SLP reduction chains.
731 * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow different
732 definition types for reduction chains.
733 (vect_supported_load_permutation_p): Don't allow permutations for
735 (vect_analyze_slp_instance): Support reduction chains.
736 (vect_analyze_slp): Try to build SLP instance from reduction chains.
737 (vect_get_constant_vectors): Handle reduction chains.
738 (vect_schedule_slp_instance): Mark the first statement of the
739 reduction chain as reduction.
741 2011-05-18 Ira Rosen <ira.rosen@linaro.org>
743 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Use new
744 names for group elements access.
745 * tree-vectorizer.h (struct _stmt_vec_info): Use interleaving info for
746 reduction chains as well. Remove data reference and interleaving
747 related words from the fields names.
748 * tree-vect-loop.c (vect_transform_loop): Use new names for group
750 * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain,
751 vect_insert_into_interleaving_chain, vect_update_interleaving_chain,
752 vect_update_interleaving_chain, vect_same_range_drs,
753 vect_analyze_data_ref_dependence, vect_update_misalignment_for_peel,
754 vect_verify_datarefs_alignment, vector_alignment_reachable_p,
755 vect_peeling_hash_get_lowest_cost, vect_enhance_data_refs_alignment,
756 vect_analyze_group_access, vect_analyze_data_ref_access,
757 vect_create_data_ref_ptr, vect_transform_strided_load,
758 vect_record_strided_load_vectors): Likewise.
759 * tree-vect-stmts.c (vect_model_simple_cost, vect_model_store_cost,
760 vect_model_load_cost, vectorizable_store, vectorizable_load,
761 vect_remove_stores, new_stmt_vec_info): Likewise.
762 * tree-vect-slp.c (vect_build_slp_tree,
763 vect_supported_slp_permutation_p, vect_analyze_slp_instance): Likewise.
765 2011-05-18 Richard Guenther <rguenther@suse.de>
768 * tree-cfg.c (verify_gimple_assign_unary): Adjust TRUTH op
769 operand verification.
770 (verify_gimple_assign_binary): Likewise.
771 * tree-ssa.c (useless_type_conversion_p): Preserve conversions
772 to non-1-precision BOOLEAN_TYPEs.
774 2011-05-18 Tom de Vries <tom@codesourcery.com>
777 * tree-ssa-loop-ivopts.c (seq_cost): Fix call to rtx_cost.
779 2011-05-18 Jakub Jelinek <jakub@redhat.com>
781 PR tree-optimization/49000
782 * tree-ssa.c (execute_update_addresses_taken): Call
783 maybe_rewrite_mem_ref_base on debug stmt value. If it couldn't
784 be rewritten and decl has been marked for renaming, reset
787 2011-05-17 Joseph Myers <joseph@codesourcery.com>
789 * config/i386/i386.c (ix86_valid_target_attribute_tree): Use
790 enum_opts_set when testing if attributes have set -mfpmath=.
792 2011-05-17 Richard Sandiford <rdsandiford@googlemail.com>
794 * config/mips/mips.c (mips_handle_option): Remove unused variable.
796 2011-05-17 Uros Bizjak <ubizjak@gmail.com>
798 * ipa-inline-analysis.c (inline_node_duplication_hook): Initialize
800 * tree-inline.c (maybe_inline_call_in_expr): Initialize
801 id.transform_lang_insert_block with NULL.
803 2011-05-17 Uros Bizjak <ubizjak@gmail.com>
805 * config/i386/i386-protos.h (output_fix_trunc): Change arg 3 to bool.
806 (output_fp_compare): Change args 3 and 4 to bool.
807 (ix86_expand_call): Change arg 6 to bool.
808 (ix86_attr_length_immediate_default): Change arg 2 to bool.
809 (ix86_attr_length_vex_default): Change arg 3 to bool.
810 * config/i386/i386.md: Update all uses.
811 * config/i386/i386.c: Ditto.
812 (ix86_flags_dependent): Change return type to bool.
814 2011-05-17 Richard Guenther <rguenther@suse.de>
816 * gimple.c (type_hash_pair_compare): Fix comparison.
818 2011-05-17 Richard Guenther <rguenther@suse.de>
820 * gimple.c (iterative_hash_gimple_type): Simplify singleton
821 case some more, fix final hash value of the non-singleton case.
823 2011-05-17 Richard Guenther <rguenther@suse.de>
827 2011-05-16 Richard Guenther <rguenther@suse.de>
829 * gimple.c (gimple_types_compatible_p_1): Use names of the
830 type itself, not its main variant.
831 (iterative_hash_gimple_type): Likewise.
833 2011-05-17 Richard Guenther <rguenther@suse.de>
835 * gimple.c (gimple_register_canonical_type): Use the main-variant
836 leader for computing the canonical type.
838 2011-05-17 Nick Clifton <nickc@redhat.com>
840 * config/rx/rx.c (rx_memory_move_cost): Include cost of register
843 * config/rx/rx.md: Add peephole to remove redundant extensions
845 (bitset_in_memory): Use rx_restricted_mem_operand.
846 (bitinvert_in_memory): Likewise.
847 (bitclr_in_memory): Likewise.
849 2011-05-17 Kazuhio Inaoka <kazuhiro.inaoka.ud@renesas.com>
850 Nick Clifton <nickc@redhat.com>
852 * config/rx/rx.md: Add peepholes to match a register move followed
853 by a comparison of the moved register. Replace these with an
854 addition of zero that does both actions in one instruction.
856 2011-05-17 Jakub Jelinek <jakub@redhat.com>
859 * config/i386/sync.md (sync_old_add<mode>): Relax operand 2
860 predicate to allow CONST_INT.
861 (*sync_old_add_cmp<mode>): New insn and peephole2 for it.
863 2011-05-16 Joseph Myers <joseph@codesourcery.com>
865 * opts-common.c (opt_enum_arg_to_value): New.
866 * opts.h (opt_enum_arg_to_value): Declare.
867 * config/i386/i386.opt (fpmath): Remove.
868 (mfpmath=): Use Enum, Init and Save.
869 (fpmath_unit): New Enum and EnumValue entries.
870 * config/i386/i386-c.c (ix86_pragma_target_parse): Update field
871 name for function fpmath state.
872 * config/i386/i386-opts.h (enum fpmath_unit): Move from i386.h.
873 * config/i386/i386.c: Include diagnostic.h.
874 (ix86_fpmath, IX86_FUNCTION_SPECIFIC_FPMATH): Remove.
875 (ix86_target_string): Take enum fpmath_unit value instead of string.
876 (ix86_debug_options): Update call to ix86_target_string.
877 (ix86_option_override_internal): Don't process fpmath strings here.
878 (x86_function_specific_save, ix86_function_specific_restore):
879 Don't handle fpmath state specially.
880 (ix86_function_specific_print): Pass fpmath state to
881 ix86_target_string instead of printing in this function.
882 (ix86_valid_target_attribute_inner_p): Take gcc_options pointer.
883 Handle enum attributes.
884 (IX86_ATTR_ENUM, ix86_opt_enum): New.
885 (ix86_valid_target_attribute_tree): Update option_strings
886 handling. Handle fpmath as enum option.
887 (ix86_can_inline_p): Update field names for function fpmath state.
888 (ix86_expand_builtin): Update call to ix86_target_string.
889 * config/i386/i386.h (enum fpmath_unit): Move to i386-opts.h.
890 (ix86_fpmath): Remove.
891 * config/i386/t-i386 (i386.o): Update dependencies.
893 2011-05-16 Joseph Myers <joseph@codesourcery.com>
895 PR preprocessor/48677
896 * cppspec.c (lang_specific_driver): Set new_decoded_options[0]
897 from decoded_options[0], not from itself.
899 2011-05-16 Uros Bizjak <ubizjak@gmail.com>
901 * config/i386/constraints.md (z): New constraint.
902 * config/i386/i386.c (c): New mode attribute.
903 (*call): Merge insn pattern from *call_0, *call_1, *call_1_rex64 and
904 *call_1_rex64_large patterns using "P" mode iterator. Use "<c>zm"
905 constraint for operand 0.
906 (*call_vzeroupper): Ditto.
907 (*call_rex64_ms_sysv): Ditto. Use "rzm" constraint for operand 0.
908 (*call_rex64_ms_sysv_vzeroupper): Ditto.
909 (*call_pop): Merge insn pattern from *call_pop_0 and *call_pop_1.
910 Use "lzm" constraint for operand 0.
911 (*call_pop_vzeroupper): Ditto.
912 (*sibcall): Merge insn pattern from *sibcall_0, *sibcall_1 and
913 *sibcall_1_rex64 patterns using "P" mode iterator. Use "Uz"
914 constraint for operand 0.
915 (*sibcall_vzeroupper): Ditto.
916 (*sibcall_rex64_ms_sysv): Ditto.
917 (*sibcall_rex64_ms_sysv_vzeroupper): Ditto.
918 (*sibcall_pop): Merge insn pattern from *sibcall_pop_0 and
919 *sibcall_pop_1. Use "Uz" constraint for operand 0.
920 (*sibcall_pop_vzeroupper): Ditto.
921 (*call_value): Merge insn pattern from *call_value_0, *call_value_1,
922 *call_value_1_rex64 and *call_value_1_rex64_large patterns using "P"
923 mode iterator. Use "<c>zm" constraint for operand 1.
924 (*call_value_vzeroupper): Ditto.
925 (*call_value_rex64_ms_sysv): Ditto. Use "rzm" constraint
927 (*call_value_rex64_ms_sysv_vzeroupper): Ditto.
928 (*call_value_pop): Merge insn pattern from *call_value_pop_0 and
929 *call_value_pop_1. Use "lzm" constraint for operand 1.
930 (*call_value_pop_vzeroupper): Ditto.
931 (*sibcall_value): Merge insn pattern from *sibcall_value_0,
932 *sibcall_value_1 and *sibcall_value_1_rex64 patterns using "P"
933 mode iterator. Use "Uz" constraint for operand 1.
934 (*sibcall_value_vzeroupper): Ditto.
935 (*sibcall_value_rex64_ms_sysv): Ditto.
936 (*sibcall_value_rex64_ms_sysv_vzeroupper): Ditto.
937 (*sibcall_value_pop): Rename from *sibcall_pop_1. Use "Uz"
938 constraint for operand 1.
939 (*sibcall_value_pop_vzeroupper): Ditto.
940 (*tls_global_dynamic_64): Use constant_call_address_operand predicate
941 and "z" constraint for operand 2.
942 (*tls_global_dynamic_32_gnu): Ditto.
943 (*tls_local_dynamic_base_32_gnu): Ditto.
944 (*tls_local_dynamic_base_64): Ditto.
945 (*tls_local_dynamic_32_once): Ditto.
946 * config/i386/i386.c (ix86_output_call_insn): Remove int_addr argument.
948 * config/i386/i386-protos.h (ix86_output_call_insn): Update prototype.
950 2011-05-16 Richard Guenther <rguenther@suse.de>
952 * gimple.c (gimple_types_compatible_p_1): Use names of the
953 type itself, not its main variant.
954 (iterative_hash_gimple_type): Likewise.
956 2011-05-16 Richard Guenther <rguenther@suse.de>
958 * gimple.c (iterative_hash_gimple_type): Re-instantiate change to
959 always visit pointer target and function result and argument types.
961 2011-05-16 Jason Merrill <jason@redhat.com>
964 * tree-inline.c (copy_statement_list): Put back recursion.
966 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
970 * config/avr/predicates.md (const_8_16_24_operand): New predicate.
971 * config/avr/avr.md ("*ior<mode>qi.byte0",
972 "*ior<mode>qi.byte1-3"): New define_insn_and_split patterns.
974 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
977 * config/avr/avr.c (avr_function_arg_advance): Error if a fixed
978 register is needed for a function argument.
980 2011-05-16 Richard Guenther <rguenther@suse.de>
982 * gimple.c (struct type_hash_pair): New type.
983 (type_hash_pair_compare): New function.
984 (iterative_hash_gimple_type): Mix in SCC member hashes in hash-order.
986 2011-05-16 Revital Eres <revital.eres@linaro.org>
988 * modulo-sched.c (doloop_register_get): Check !DEBUG_INSN_P first.
990 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
992 * config/i386/i386.md (floating point move splitters): Fix
993 usage of standard_80387_constant_p.
994 * config/i386/i386.c (ix86_preferred_reload_class): Ditto.
996 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
998 * config/i386/i386.md (*movdf_internal): Simplify insn condition.
1000 2011-05-14 Eric Botcazou <ebotcazou@adacore.com>
1002 * tree-ssa-loop-im.c (SET_ALWAYS_EXECUTED_IN): New macro.
1003 (fill_always_executed_in): Use [SET_]ALWAYS_EXECUTED_IN.
1004 (tree_ssa_lim_finalize): Likewise.
1006 2011-05-14 Uros Bizjak <ubizjak@gmail.com>
1008 * config/i386/constraint.md (Yd, Yx): New register constraints.
1009 * config/i386/i386.md (*pushdf): Merge with *pushdf_nointeger. Use
1010 Yd conditional register constraint.
1011 (*movtf_internal): Use standard_sse_constant_opcode.
1012 (*movxf_internal): Merge with *movxf_internal_nointeger. Use
1013 Yx conditional register constraint.
1014 (*movdf_internal): Merge with *movdf_internal_nointeger. Use
1015 Yd conditional register constraint. Use standard_sse_constant_p to
1016 check for valid SSE constants and call standard_sse_constant_opcode to
1018 (*movsf_internal): Use standard_sse_constant_p to check for valid SSE
1019 constants and call standard_sse_constant_opcode to output SSE insn.
1020 * config/i386/i386.c (ix86_option_ovverride_internal): Set
1021 TARGET_INTEGER_DFMODE_MOVES for 64bit targets. Clear it when
1022 optimize_size is set.
1023 (standard_sse_constant_opcode): Output conditional AVX insn templates.
1025 2011-05-14 Tobias Burnus <burnus@net-b.de>
1027 * doc/invoke.texi (-Ofast): Also enables -fstack-arrays.
1029 2011-05-13 Martin Jambor <mjambor@suse.cz>
1031 * ipa-prop.c (ipa_cst_from_jfunc): New function.
1032 * ipa-prop.h (ipa_cst_from_jfunc): Declare.
1033 * ipa-inline-analysis.c (evaluate_conditions_for_edge): Use it.
1034 (evaluate_conditions_for_ipcp_clone): Removed.
1035 (estimate_ipcp_clone_size_and_time): Accept vector of known constants.
1036 * ipa-cp.c (ipcp_estimate_growth): Build vector of known constants.
1037 * ipa-inline.h (estimate_ipcp_clone_size_and_time): Update.
1039 2011-05-13 Eric Botcazou <ebotcazou@adacore.com>
1041 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Adjust dump message.
1042 * regcprop.c (copyprop_hardreg_forward): Test MAY_HAVE_DEBUG_INSNS in
1043 lieu of MAY_HAVE_DEBUG_STMTS.
1044 * tree-cfgcleanup.c (remove_forwarder_block): Do not attempt to move
1045 debug statements if !MAY_HAVE_DEBUG_STMTS.
1047 2011-05-13 Martin Thuresson <martint@google.com>
1049 PR gcov-profile/47793
1050 * libgcov.c (gcov_exit): Support relative profile paths.
1051 * doc/invoke.texi (-fprofile-dir): Update for above change.
1053 2011-05-13 Richard Guenther <rguenther@suse.de>
1055 * gimple.c (gimple_canonical_types_compatible_p): Do not use
1056 type-pair caching, do not compare hashes.
1058 2011-05-13 Nathan Froyd <froydnj@codesourcery.com>
1061 * tree-cfg.c (edge_to_cases_cleanup): Return true.
1062 (verify_expr) [CASE_LABEL_EXPR]: Add checking.
1064 2011-05-13 Kai Tietz <ktietz@redhat.com>
1066 * gimplify.c (gimplify_expr): Make sure operand is boolified.
1067 * tree-cfg.c (verify_gimple_assign_unary): Check for boolean
1068 compatible type for TRUTH_NOT_EXPR.
1070 2011-05-13 H.J. Lu <hongjiu.lu@intel.com>
1072 * config/i386/i386.c (ix86_save_reg): Change return type to bool.
1073 (ix86_hard_regno_mode_ok): Change return value to bool. Use
1074 can_create_pseudo_p ().
1076 2011-05-13 Richard Guenther <rguenther@suse.de>
1079 * gimple.c (iterative_hash_gimple_type): Revert change in
1080 pointer target and function result and argument hashing.
1082 2011-05-13 Uros Bizjak <ubizjak@gmail.com>
1084 * config/i386/i386.md (*movxf_internal): Use !can_create_pseudo ().
1085 (*movxf_internal_nointeger): Ditto.
1086 (*movdf_internal_rex64): Ditto.
1087 (*movdf_internal): Ditto.
1088 (*movdf_internal_nointeger): Ditto.
1089 (*movsf_internal): Ditto.
1090 (sincos splitters): Use can_create_pseudo ().
1092 2011-05-13 Joseph Myers <joseph@codesourcery.com>
1094 * config/i386/i386-opts.h: New.
1095 * gcc/config/i386/i386.c (stringop_alg, ix86_cmodel,
1096 ix86_asm_dialect, ix86_regparm, ix86_abi, ix86_branch_cost,
1097 ix86_section_threshold): Remove.
1098 (ix86_handle_option): Move MAX_CODE_ALIGN define here. Handle
1099 OPT_malign_loops_, OPT_malign_jumps_, OPT_malign_functions_ and
1101 (ix86_option_override_internal): Don't decode strings for options
1102 other than -march=, -mtune= and -mfpmath=. Don't allow for
1103 __attribute__ uses in remaining diagnostics for options with
1104 string arguments. Don't check for integer arguments being negative.
1105 * gcc/config/i386/i386.h (enum stringop_alg, enum calling_abi,
1106 enum tls_dialect, enum cmodel, enum asm_dialect): Move to i386-opts.h.
1107 (ix86_abi, ix86_tls_dialect, ix86_cmodel, ix86_asm_dialect,
1108 ix86_branch_cost, ix86_section_threshold): Remove.
1109 * gcc/config/i386/i386.opt (config/i386/i386-opts.h): New
1111 (malign-functions=, malign-jumps=, malign-loops=): Use UInteger
1113 (masm=): Use Enum and Init.
1114 (asm_dialect): New Enum and EnumValue entries.
1115 (mbranch-cost=): Use UInteger.
1116 (mlarge-data-threshold=): Use UInteger and Init.
1117 (mcmodel=): Use Enum and Init.
1118 (cmodel): New Enum and EnumValue entries.
1119 (mpc): Replace with separate mpc32, mpc64 and mpc80 entries.
1120 (mpreferred-stack-boundary=, mincoming-stack-boundary=,
1121 mregparm=): Use UInteger.
1122 (mstringop-strategy=): Use Enum and Init.
1123 (stringop_alg): New Enum and EnumValue entries.
1124 (mtls-dialect=): Use Enum and Init.
1125 (tls_dialect): New Enum and EnumValue entries.
1126 (mabi=): Use Enum and Init.
1127 (calling_abi): New Enum and EnumValue entries.
1128 (mveclibabi=): Use Enum and Init.
1129 (ix86_veclibabi): New Enum and EnumValue entries.
1131 2011-05-13 Nick Clifton <nickc@redhat.com>
1133 * config/rx/rx.md (mov expander): Fix use of rx_legitimate_constant_p.
1134 * config/rx/rx-protos.h (rx_legitimate_constant_p): Rename prototype.
1136 2011-05-13 Kai Tietz <ktietz@redhat.com>
1139 * gimplify.c (gimplify_expr): Check for boolean_type_node instead
1140 for BOOLEAN_TYPE for TRUTH-NOT/AND/OR/XOR.
1141 (gimple_boolify): Check for cast for boolean_type_node instead for
1144 2011-05-13 Richard Guenther <rguenther@suse.de>
1146 PR tree-optimization/48172
1147 * tree-vect-loop-manip.c (vect_vfa_segment_size): Avoid
1148 multiplying by number of iterations for equal step.
1149 (vect_create_cond_for_alias_checks): Likewise.
1151 2011-05-13 Andreas Schwab <schwab@redhat.com>
1153 * configure.ac: Use AS_HELP_STRING throughout.
1154 * configure: Regenerate.
1156 2011-05-12 H.J. Lu <hongjiu.lu@intel.com>
1158 * config/i386/i386.c (ix86_save_reg): Change maybe_eh_return to bool.
1159 (ix86_emit_restore_regs_using_mov): Likewise.
1160 (ix86_emit_restore_sse_regs_using_mov): Likewise.
1162 2011-05-12 Anatoly Sokolov <aesok@post.ru>
1164 * config/sparc/sparc.h (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P,
1165 SYMBOLIC_CONST, RTX_OK_FOR_BASE_P, RTX_OK_FOR_INDEX_P): Remove.
1166 (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Move to...
1167 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P,
1168 RTX_OK_FOR_OLO10_P): ...here.
1169 (sparc_mode_dependent_address_p): Use symbolic_operand instead of
1172 2011-05-12 Kai Tietz <ktietz@redhat.com>
1174 * gimplify.c (gimple_boolify): Re-boolify expression
1175 arguments even if expression type is of kind BOOLEAN_TYPE.
1176 (gimplify_boolean_expr): Removed.
1177 (gimplify_expr): Boolify truth opcodes AND, ANDIF, OR, ORIF,
1178 and XOR. Additional take care that we keep expression's type.
1179 * tree-cfg.c (verify_gimple_assign_binary): Adjust check for type
1180 of TRUTH_AND|OR|XOR_EXPR.
1182 2011-05-12 Jakub Jelinek <jakub@redhat.com>
1184 PR tree-optimization/48975
1185 * tree-if-conv.c (combine_blocks): Call free_bb_predicate
1186 on all bbs here and free and clear ifc_bbs at the end.
1188 2011-05-12 Richard Guenther <rguenther@suse.de>
1190 * gimple.c (gtc_visit): Compare TREE_ADDRESSABLE, handle
1191 NULLPTR_TYPE similar to VOID_TYPE. Defer type-leader lookup
1192 until after simple checks.
1193 (gimple_types_compatible_p): Likewise.
1194 (iterative_hash_gimple_type): Always hash pointer targets
1195 and function return and argument types.
1196 (iterative_hash_canonical_type): Do not hash TYPE_QUALS,
1197 hash TYPE_ALIGN. Do not hash TYPE_MIN/MAX_VALUE.
1198 (gimple_canonical_types_compatible_p): Compare TREE_ADDRESSABLE,
1199 handle NULLPTR_TYPE similar to VOID_TYPE. Handle non-aggregates
1200 completely in the simple compare section.
1201 (gimple_register_canonical_type): Query the cache again after
1204 2011-05-12 Richard Guenther <rguenther@suse.de>
1206 PR tree-optimization/48172
1207 * tree-vect-loop-manip.c (vect_vfa_segment_size): Do not exclude
1208 the number of iterations from the segment size calculation.
1209 (vect_create_cond_for_alias_checks): Adjust.
1211 2011-05-12 Jakub Jelinek <jakub@redhat.com>
1214 * var-tracking.c (use_narrower_mode_test) <case REG>: Return 1
1215 if validate_subreg fails.
1217 2011-05-12 Hariharan Sandanagobalane <hariharan@picochip.com>
1219 * ira.c (clarify_prohibited_class_mode_regs): Prevent the function from
1220 accessing beyond the end of REGNO_REG_CLASS array by stopping the loop
1223 2011-05-12 DJ Delorie <dj@redhat.com>
1225 * config/rx/rx.c (rx_builtins): New arrays - holds builtin functions.
1226 (ADD_RX_BUILTIN1, ADD_RX_BUILTIN2, ADD_RX_BUILTIN3): Install
1227 created builtin into rx_builtins array.
1228 (rx_builtin_decl): New function.
1229 (TARGET_BUITLIN_DECL): Define. Include gt-rx.h.
1231 2011-05-12 DJ Delorie <dj@redhat.com>
1232 Nick Clifton <nickc@redhat.com>
1234 * config/rx/rx.h (HAVE_PRE_DECREMENT): Fix typo.
1235 * config/rx/rx.c (CC_FLAG_FP): Fix comment.
1236 (rx_is_legitimate_address): Add pre-decrement and post-increment
1237 addressing in HImode and QImode. Fix test for out of range
1239 (rx_legitimate_constant_p): Rename to rx_is_legitimate_constant.
1240 (rx_align_for_label): Test label before extracting its usage count.
1241 (rx_adjust_insn_lengths): Fix selection of insn codes.
1242 (TARGET_LEGITIMATE_CONSTANT_P): Use renamed function.
1244 2011-05-11 Jason Merrill <jason@redhat.com>
1246 * tree.c (type_hash_canon): Use struct tree_type_non_common.
1248 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
1250 * cfgrtl.c (commit_one_edge_insertion): Remove always-true test and
1251 reindent the subsequent block.
1253 2011-05-11 Satoru Takabayashi <satorux@google.com>
1254 Paul Pluzhnikov <ppluzhnikov@google.com>
1256 * doc/install.texi (Configuration): Document --with-linker-hash-style.
1257 * gcc.c (init_spec): Handle LINKER_HASH_STYLE.
1258 * config.in: Add LINKER_HASH_STYLE.
1259 * configure.ac: Add --with-linker-hash-style.
1260 * configure: Regenerate.
1262 2011-05-11 Richard Guenther <rguenther@suse.de>
1265 * gimple.c (iterative_hash_canonical_type): Fix typo.
1267 2011-05-11 Uros Bizjak <ubizjak@gmail.com>
1269 * config/i386/i386.c (legitimize_tls_address)
1270 <case TLS_MODEL_GLOBAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
1271 expanders directly for TARGET_GNU2_TLS. Determine pic and
1272 __tls_get_addr symbol reference here. Update call to
1273 gen_tls_global_dynamic_{32,64} for added arguments.
1274 <case TLS_MODEL_LOCAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
1275 expanders directly for TARGET_GNU2_TLS. Determine
1276 __tls_get_addr symbol reference here. Update call to
1277 gen_tls_local_dynamic_base_{32,64} for added arguments. Attach
1278 unique UNSPEC REG_EQUIV to libcall block.
1279 (ix86_tls_get_addr): Declare static.
1280 * config/i386/i386-protos.h (ix86_tls_get_addr): Remove declaration.
1281 * config/i386/i386.md (tls_global_dynamic_32): Add operand 2 and 3.
1282 Do not determine pic and __tls_get_addr symbol reference here. Do not
1283 call gen_tls_dynamic_gnu2_32 for TARGET_GNU2_TLS.
1284 (tls_local_dynamic_base_32): Ditto for operands 1 and 2.
1285 (tls_global_dynamic_64): Add operand 2. Do not determine
1286 __tls_get_addr symbol reference here. Do not call
1287 gen_tls_dynamic_gnu2_64 for TARGET_GNU2_TLS here.
1288 (tls_local_dynamic_base64): Ditto for operand 1.
1290 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
1292 * function.c (expand_function_start): Initialize stack_check_probe_note
1293 only if the generic stack checking mechanism is used.
1295 2011-05-11 Richard Guenther <rguenther@suse.de>
1297 PR tree-optimization/15256
1298 * tree-ssa-forwprop.c (simplify_bitwise_binary): Canonicalize
1299 (A & B) | C, combine (A op CST1) op CST2.
1300 (tree_ssa_forward_propagate_single_use_vars): Only bother to
1301 visit assigns that have uses.
1303 2011-05-11 Nathan Froyd <froydnj@codesourcery.com>
1305 * ggc-page.c (extra_order_size_table): Use struct tree_type_non_common.
1306 * lto-streamer-in.c (unpack_ts_type_value_fields): Rename to...
1307 (unpack_ts_type_common_value_fields): ...this. Update comment.
1308 (unpack_value_fields): Adjust for renaming.
1309 (lto_input_ts_type_tree_pointers): Split into...
1310 (lto_input_ts_type_common_tree_pointer): ...this and...
1311 (lto_input_ts_type_non_common_tree_pointers): ...this.
1312 (lto_input_tree_pointers): Adjust for above split.
1313 * lto-streamer-out.c (pack_ts_type_value_fields): Rename to...
1314 (pack_ts_type_common_value_fields): ...this. Update comment.
1315 (lto_output_ts_type_tree_pointers): Split into...
1316 (lto_output_ts_type_common_tree_pointers): ...this and...
1317 (lto_output_ts_type_non_common_tree_pointers): ...this.
1318 (lto_output_tree_pointers): Adjust for above split.
1319 * lto-streamer.c (check_handled_ts_structures): Mark TS_TYPE_COMMON,
1320 TS_TYPE_WITH_LANG_SPECIFIC, and TS_TYPE_NON_COMMON as handled.
1321 * stor-layout.c (vector_type_mode): Adjust location of mode field.
1322 * tree.h (MARK_TS_TYPE_COMMON, MARK_TS_TYPE_WITH_LANG_SPECIFIC):
1324 (struct tree_type): Split into...
1325 (struct tree_type_common: ...this and...
1326 (struct tree_type_with_lang_specific): ...this and...
1327 (struct tree_type_non_common): ...this. Adjust accessor macros
1329 (TYPE_VALUES_RAW): Define.
1330 (union tree_node): Update for above changes.
1331 * tree.c (tree_node_structure_for_code) [tcc_type]: Return
1333 (initialize_tree_contains_struct) [TS_TYPE]: Use TS_TYPE_COMMON.
1334 Add TS_TYPE_WITH_LANG_SPECIFIC and TS_TYPE_NON_COMMON.
1335 (tree_code_size) [tcc_type]: Use struct tree_type_non_common.
1336 * treestructu.def (TS_TYPE): Remove.
1337 (TS_TYPE_COMMON, TS_TYPE_WITH_LANG_SPECIFIC, TS_TYPE_NON_COMMON):
1340 2011-05-11 Jakub Jelinek <jakub@redhat.com>
1343 * tree-ssa.c (reset_debug_uses): New function.
1344 * tree-flow.h (reset_debug_uses): New prototype.
1345 * tree-data-ref.c (stmts_from_loop): Ignore debug stmts.
1346 * tree-loop-distribution.c (generate_loops_for_partition): Call
1347 reset_debug_uses on the stmts that will be removed. Keep around
1348 all debug stmts, don't count them as bits in partition bitmap.
1349 (generate_builtin): Don't count debug stmts or labels as bits in
1352 2011-05-11 Richard Guenther <rguenther@suse.de>
1354 * gimple.c (gimple_type_hash_1): Merge with ...
1355 (gimple_type_hash): ... this.
1356 (gtc_visit): Remove mode parameter and simplify accordingly.
1357 (gimple_types_compatible_p_1): Likewise.
1358 (gimple_types_compatible_p): Likewise.
1359 (iterative_hash_gimple_type): Likewise.
1361 (gimple_type_eq): Adjust.
1363 2011-05-11 Revital Eres <revital.eres@linaro.org>
1365 * ddg.c (create_ddg_dep_from_intra_loop_link): If a true dep edge
1366 enters the branch create an anti edge in the opposite direction
1367 to prevent the creation of reg-moves.
1368 * modulo-sched.c: Adjust comment to reflect the fact we are
1369 scheduling closing branch.
1370 (PS_STAGE_COUNT): Rename to CALC_STAGE_COUNT and redefine.
1371 (stage_count): New field in struct partial_schedule.
1372 (calculate_stage_count): New function.
1373 (normalize_sched_times): Rename to reset_sched_times and handle
1374 incrementing the sched time of the nodes by a constant value
1375 passed as parameter.
1376 (duplicate_insns_of_cycles): Skip closing branch.
1377 (sms_schedule_by_order): Schedule closing branch.
1378 (ps_insn_find_column): Handle closing branch.
1379 (sms_schedule): Call reset_sched_times and adjust the code to
1380 support scheduling of the closing branch.
1381 (ps_insert_empty_row): Update calls to normalize_sched_times
1382 and rotate_partial_schedule functions.
1384 2011-05-11 Richard Guenther <rguenther@suse.de>
1387 * tree-inline.c (remap_gimple_op_r): Also remap types of MEM_REFs.
1389 2011-05-11 Joseph Myers <joseph@codesourcery.com>
1391 * opts.c (finish_options): Move warning settings from process_options.
1392 * toplev.c (process_options): Move warning settings to finish_options.
1394 2011-05-11 Richard Guenther <rguenther@suse.de>
1396 PR tree-optimization/18041
1397 * tree-ssa-forwprop.c (simplify_bitwise_and): Rename to ...
1398 (simplify_bitwise_binary): ... this. Handle operand conversions
1399 by applying them to the result instead.
1400 (tree_ssa_forward_propagate_single_use_vars): Adjust. CSE tree code.
1402 2011-05-11 Richard Guenther <rguenther@suse.de>
1404 * gimple.c (gimple_canonical_types_compatible_p): Split out
1405 from gimple_types_compatible_p and friends. Do not recurse
1406 to pointed-to types.
1407 (gimple_canonical_type_eq): Use it.
1408 (iterative_hash_canonical_type): Split out from
1409 iterative_hash_gimple_type and friends. Do not recurse
1410 to pointed-to types.
1411 (gimple_canonical_type_hash): Use it, allocate the hash here.
1413 2011-05-11 Revital Eres <revital.eres@linaro.org>
1415 * modulo-sched.c (doloop_register_get): Ignore DEBUG_INSNs while
1418 2011-05-11 Revital Eres <revital.eres@linaro.org>
1420 * loop-doloop.c (doloop_condition_get): Use prev_nondebug_insn
1421 instead of PREV_INSN.
1423 2011-05-11 Revital Eres <revital.eres@linaro.org>
1425 * modulo-sched.c (sms_schedule): Support new form of doloop pattern
1426 * loop-doloop.c (doloop_condition_get): Likewise.
1427 * config/arm/thumb2.md (*thumb2_addsi3_compare0): Remove "*".
1429 * config/arm/arm.md (*addsi3_compare0): Remove "*".
1431 2011-05-10 Nathan Froyd <froydnj@codesourcery.com>
1433 * tree.def (CASE_LABEL_EXPR): Add an operand.
1434 * tree.h (CASE_CHAIN): Use TREE_OPERAND instead of TREE_CHAIN.
1436 2011-05-10 Joseph Myers <joseph@codesourcery.com>
1438 * c-decl.c (c_override_global_bindings_to_false): Remove.
1439 (global_bindings_p): Don't check
1440 c_override_global_bindings_to_false.
1441 * c-tree.h (c_override_global_bindings_to_false): Remove.
1442 * c-typeck.c (composite_type): Don't set
1443 c_override_global_bindings_to_false.
1445 2011-05-10 Michael Meissner <meissner@linux.vnet.ibm.com>
1447 PR target/48857, 48495
1448 * config/rs6000/rs6000.h (VSX_SCALAR_MODE): Delete.
1450 (VSX_MOVE_MODE): Ditto.
1451 (ALTIVEC_OR_VSX_VECTOR_MODE): New macro, combine all Altivec and
1452 VSX vector types. Add V2DImode.
1453 (HARD_REGNO_CALLER_SAVE_MODE): Use it instead of
1454 ALTIVEC_VECTOR_MODE and VSX_VECTOR_MODE calls.
1455 (MODES_TIEABLE_P): Ditto.
1457 * config/rs6000/rs6000.c (rs6000_emit_move): Use
1458 ALTIVEC_OR_VSX_MODE instead of ALTIVEC_VECTOR_MODE and
1460 (init_cumulative_args): Ditto.
1461 (rs6000_function_arg_boundary): Ditto.
1462 (rs6000_function_arg_advance_1): Ditto.
1463 (rs6000_function_arg): Ditto.
1464 (rs6000_function_ok_for_sibcall): Ditto.
1465 (emit_frame_save): Ditto.
1466 (rs6000_function_value): Ditto.
1467 (rs6000_libcall_value): Ditto.
1469 2011-05-10 Joseph Myers <joseph@codesourcery.com>
1471 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
1472 i386/darwin-lib.h to $libgcc_tm_file.
1473 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Remove.
1475 2011-05-10 Joseph Myers <joseph@codesourcery.com>
1477 * doc/sourcebuild.texi (Back End): Mention contrib/config-list.mk.
1479 2011-05-10 Joseph Myers <joseph@codesourcery.com>
1481 * config/rs6000/genopt.sh, config/rs6000/rs6000-cpus.def: New files.
1482 * config/rs6000/rs6000-tables.opt: New file (generated).
1483 * config.gcc (powerpc*-*-*, rs6000*-*-*): Add
1484 rs6000/rs6000-tables.opt to extra_options.
1485 * config/rs6000/rs6000-opts.h (RS6000_CPU_OPTION_NATIVE): Define.
1486 * config/rs6000/rs6000.c (rs6000_select): Remove.
1487 (processor_target_table): Move contents to rs6000-cpus.def.
1488 (darwin_rs6000_override_options): Check
1489 global_options_set.x_rs6000_cpu_index instead of
1490 rs6000_select[1].string.
1491 (rs6000_option_override_internal): Likewise.
1492 (rs6000_handle_option): Don't assert that global structures are in
1493 use. Don't handle OPT_mcpu_ and OPT_mtune_ here.
1494 (rs6000_default_cpu): New variable.
1495 (rs6000_file_start): Set it instead of local default_cpu. Check
1496 rs6000_default_cpu, global_options_set.x_rs6000_cpu_index and
1497 global_options_set.x_rs6000_tune_index instead of rs6000_select.
1498 (rs6000_darwin_file_start): Check rs6000_default_cpu and
1499 global_options_set.x_rs6000_cpu_index instead of rs6000_select.
1500 * config/rs6000/rs6000.h (struct rs6000_cpu_select,
1501 rs6000_select): Remove.
1502 * config/rs6000/rs6000.opt (rs6000_cpu_index, rs6000_tune_index):
1504 (mcpu=, mtune=): Use Var, Init, Enum and Save.
1505 * config/rs6000/t-rs6000
1506 ($(srcdir)/config/rs6000/rs6000-tables.opt): New.
1507 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
1508 global_options_set.x_rs6000_cpu_index instead of
1509 rs6000_select[1].string.
1510 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
1511 global_options_set.x_rs6000_cpu_index instead of
1512 rs6000_select[1].string.
1514 2011-05-10 Joseph Myers <joseph@codesourcery.com>
1516 * config.gcc (libgcc_tm_file): Define instead of including files
1517 from ../../libgcc/config/ in tm_file.
1518 * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list): Define.
1519 * configure: Regenerate.
1520 * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list,
1521 libgcc_tm.h, cs-libgcc_tm.h): New.
1522 (TM_H): Include libgcc_tm.h and $(libgcc_tm_file_list).
1523 (clean): Remove libgcc_tm.h.
1524 * config/arm/symbian.h (RENAME_LIBRARY): Remove.
1525 * mkconfig.sh: Include libgcc_tm.h in tm.h if USED_FOR_TARGET.
1526 * system.h (DECLARE_LIBRARY_RENAMES): Poison.
1528 2011-05-10 Georg-Johann Lay <avr@gjlay.de>
1531 * config/avr/avr.c (avr_ret_register): Return unsigned int
1533 (avr_function_value): Mark fn_decl_or_type as unused, don't pass
1534 it to avr_libcall_value.
1535 avr_expand_builtin): Use EXPAND_NORMAL as arg 4 in calls to
1537 (avr_expand_binop_builtin): Ditto.
1538 (avr_expand_unop_builtin): Ditto.
1540 2011-05-10 DJ Delorie <dj@redhat.com>
1542 * config/rx/rx.h (JUMP_ALIGN, LABEL_ALIGN, LOOP_ALIGN): Define.
1543 (LABEL_ALIGN_AFTER_BARRIER): Pass label to rx_align_for_label
1544 * config/rx/rx.c (rx_align_for_label): Add label and
1545 uses_threshold parameters. Do not align when the label is not
1547 * config/rx/rx-protos.h (rx_align_for_label): Update prototype.
1549 2011-05-10 Richard Guenther <rguenther@suse.de>
1551 * tree-ssa-forwprop.c (combine_conversions): Pattern-match
1552 a series of conversions and apply foldings similar to what
1554 (tree_ssa_forward_propagate_single_use_vars): Call it.
1556 2011-05-10 Jakub Jelinek <jakub@redhat.com>
1558 PR tree-optimization/48611
1559 PR tree-optimization/48794
1560 * tree-eh.c (remove_unreachable_handlers): Don't remove regions
1561 referenced from RESX or EH_DISPATCH arguments.
1564 * dfp.c (decimal_to_decnumber): Handle conversion from
1565 dconst{1,2,m1,half}.
1567 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
1569 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Return 0
1570 for !flag_prefer_avx128.
1571 (ix86_preferred_simd_mode): Return word_mode for DFmode without SSE2.
1573 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
1575 * fold-const.c (fold_range_test): Pass LOC to build_range_check.
1576 (fold_ternary_loc): Use expr_location_or.
1578 2011-05-09 H.J. Lu <hongjiu.lu@intel.com>
1581 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: If
1582 POINTERS_EXTEND_UNSIGNED is defined, don't give up if mode is
1583 Pmode and mem_mode is not VOIDmode.
1585 2011-05-09 Ville Voutilainen <ville.voutilainen@gmail.com>
1587 * tree.h (TYPE_UNQUALIFIED, TYPE_QUAL_CONST, TYPE_QUAL_VOLATILE,
1588 TYPE_QUAL_RESTRICT): Convert to enum.
1590 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
1592 * config/i386/predicates.md (const_pow2_1_to_2_operand): Remove.
1593 (const_pow2_1_to_8_operand): Ditto.
1594 (const_pow2_1_to_128_operand): Ditto.
1595 (const_pow2_1_to_32768_operand): Ditto.
1596 * config/i386/mmx.md (*mmx_pinsrw): Use const_int_operand instead of
1597 const_pow2_1_to_8_operand for operand 3 predicate. Use exact_log2
1598 in insn constraint to check integer value of operand 3.
1599 * config/i386/sse.md (*vec_setv4sf_sse4_1): Ditto.
1601 (PINSR_MODE): New mode iterator.
1602 (sse2p4_1): New mode attribute.
1603 (<sse2p4_1>_pinsr<ssemodesuffix>): Merge insn from sse4_1_pinsrb,
1604 sse2_pinsrw, sse4_1_pinsrd and sse4_1_pinsrq using PINSR_MODE mode
1605 iterator. Use const_int_operand instead of
1606 const_pow2_1_to_{2,8,128,32768}_operand for operand 3 predicate. Use
1607 exact_log2 in insn constraint to check integer value of operand 3.
1609 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
1611 * config/i386/sse.md (blendbits): Remove mode attribute.
1612 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
1613 instead of const_0_to_<blendbits>_operand for operand 3 predicate.
1614 Check integer value of operand 3 in insn constraint.
1616 2011-05-09 Richard Guenther <rguenther@suse.de>
1618 * lto-symtab.c (lto_cgraph_replace_node): Use types_compatible_p
1620 (lto_symtab_merge): Likewise. Do not register types here.
1621 (lto_symtab_merge_decls_2): Likewise.
1622 (lto_symtab_merge_decls_1): Likewise.
1623 * gimple.h (enum gtc_mode, gimple_types_compatible_p): Do not declare.
1624 * gimple.c (enum gtc_mode): Declare.
1625 (gimple_types_compatible_p): Make static.
1627 2011-05-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1629 * config/s390/s390.md (TD/TF mem to reg move splitter): Make the
1630 temporary register to match Pmode.
1632 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
1634 * config/i386/sse.md (*vec_concatv4si): Merge from *vec_concatv4si_1
1635 and *vec_concatv4si_1_avx.
1637 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
1639 PR rtl-optimization/48927
1640 * ira-conflicts.c (commutative_constraint_p): Use
1641 recog_data.alternative_enabled_p to disable alternatives where
1642 "enabled" attribute is false.
1643 (get_dup_num): Ditto.
1644 * ira-lives.c (single_reg_class): Ditto.
1645 (ira_implicitly_set_insn_hard_regs): Ditto.
1647 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
1649 * var-tracking.c (find_mem_expr_in_1pdv): Fix thinko.
1650 (dataflow_set_preserve_mem_locs): Likewise.
1652 2011-05-09 Philipp Thomas <pth@suse.de>
1654 * config/mep/mep.c (mep_validate_vliw): Syntax description
1655 should not be translated.
1657 2011-05-09 Joseph Myers <joseph@codesourcery.com>
1659 * config/mips/genopt.sh, config/mips/mips-cpus.def: New files.
1660 * config/mips/mips-tables.opt: New file (generated).
1661 * config.gcc (mips*-*-*): Add mips/mips-tables.opt to extra_options.
1662 * config/mips/mips-opts.h (MIPS_ARCH_OPTION_FROM_ABI,
1663 MIPS_ARCH_OPTION_NATIVE): Define.
1664 * config/mips/mips.c (mips_cpu_info_table): Move contents to
1666 (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p,
1667 mips_parse_cpu): Remove.
1668 (mips_cpu_info_from_opt, mips_default_arch): New.
1669 (mips_handle_option): Don't assert that global structures are in
1670 use. Don't handle OPT_march_, OPT_mtune_ and OPT_mips here.
1671 (mips_option_override): Use new variables and functions to set
1672 state of these options. Use strcmp to check for individual CPU names.
1673 * config/mips/mips.h (MIPS_CPU_STRING_DEFAULT): Remove default
1675 * config/mips/mips.opt (march=): Use ToLower and Enum.
1676 (mips): Use ToLower, Enum and Var.
1677 (mtune=): Use ToLower and Enum.
1678 * config/mips/t-mips ($(srcdir)/config/mips/mips-tables.opt): New.
1680 2011-05-08 Jan Hubicka <jh@suse.cz>
1682 * gimple.c (type_pair_hash, type_pair_eq, lookup_type_pair):
1683 Arrange type pairs to be UID ordered.
1684 (gimple_lookup_type_leader): Make inline.
1686 2011-05-09 Nick Clifton <nickc@redhat.com>
1689 * config/iq2000/iq2000.opt (iq2000_tune): Initialise to
1693 * config/mn10300/mn10300.c (extract_bundle): Remove spurious local
1696 2011-05-08 Chung-Lin Tang <cltang@codesourcery.com>
1698 * combine.c (simplify_comparison): Abstract out parts into...
1699 (simplify_compare_const): ... new function.
1700 (try_combine): Generalize parallel arithmetic/compare combining
1701 to call simplify_compare_const() and CANONICALIZE_COMPARE().
1703 2011-05-08 Jan Hubicka <jh@suse.cz>
1705 * cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter.
1706 (cgraph_create_virtual_clone): Call hooks once virtual clone
1708 * cgraph.h (cgraph_clone_node): Update prototype.
1709 * ipa-cp.c (ipcp_estimate_growth): Use
1710 estimate_ipcp_clone_size_and_time.
1711 * ipa-inline-transform.c (clone_inlined_nodes): Update.
1712 * lto-cgraph.c (input_node): Update.
1713 * ipa-inline.c (recursive_inlining): Update.
1714 * ipa-inline.h (estimate_ipcp_clone_size_and_time): New function.
1715 (evaluate_conditions_for_known_args): Break out from ...
1716 (evaluate_conditions_for_edge): ... here.
1717 (evaluate_conditions_for_ipcp_clone): New function.
1718 (inline_node_duplication_hook): Update clone summary based
1720 (estimate_callee_size_and_time): Rename to ...
1721 (estimate_node_size_and_time): take NODE instead of EDGE;
1722 take POSSIBLE_TRUTHS as argument.
1723 (estimate_callee_size_and_time): Update.
1724 (estimate_ipcp_clone_size_and_time): New function.
1725 (do_estimate_edge_time): Update.
1727 2011-05-08 Richard Guenther <rguenther@suse.de>
1731 * expmed.c (expand_shift_1): Compute adjusted constant shift
1734 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
1736 * config/avr/avr.c (print_operand_address): Fix invalid RTL access.
1738 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
1740 * config/rs6000/rs6000.c (output_profile_hook): Fix thinko.
1742 2011-05-08 Jonathan Wakely <jwakely.gcc@gmail.com>
1744 * doc/invoke.texi (-fuse-linker-plugin): Improve grammar.
1746 2011-05-07 Jan Hubicka <jh@suse.cz>
1748 * ipa-inline-transform.c (inline_call): Account when program size
1750 * ipa-inline.c (relative_time_benefit): New function.
1751 (edge_badness): Reorganize to be power 2 based; fix thinko when
1752 computing badness for negative growth; update comments to match
1753 reality; better dumps.
1755 2011-05-07 Eric Botcazou <ebotcazou@adacore.com>
1757 * langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
1758 type to bool and adjust comment.
1759 * fold-const.c (fold_range_test): Adjust call to global_bindings_p.
1760 (fold_mathfn_compare): Remove calls to global_bindings_p.
1761 (fold_inf_compare): Likewise.
1762 * stor-layout.c (variable_size): Adjust call to global_bindings_p.
1763 * c-tree.h (global_bindings_p): Adjust prototype.
1764 * c-decl.c (global_bindings_p): Return bool and simplify.
1766 2011-05-07 Zdenek Dvorak <ook@ucw.cz>
1768 PR tree-optimization/48837
1769 * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
1770 when accumulator transformation is performed.
1772 2011-05-06 Jan Hubicka <jh@suse.cz>
1774 * i386.h (ix86_tune_indices): Add
1775 X86_TUNE_SOFTWARE_PREFETCHING_BENEFICIAL.
1776 (TARGET_SOFTWARE_PREFETCHING_BENEFICIAL): New macro.
1777 * i386.c (initial_ix86_tune_features): Add
1778 X86_SOFTARE_PREFETCHING_BENEFICIAL.
1779 (software_prefetching_beneficial_p): Remove predicate.
1780 (ix86_option_override_internal): Use new macro.
1782 2011-05-06 Jan Hubicka <jh@suse.cz>
1784 * ipa-inline.c (update_callee_keys): Don't reset node growth cache.
1786 2011-05-06 Jan Hubicka <jh@suse.cz>
1788 * cgraph.c (cgraph_add_thunk): Create real function node instead
1789 of alias node; finalize it and mark needed/reachale; arrange visibility
1790 to be right and add it into the corresponding same comdat group list.
1791 (dump_cgraph_node): Dump thunks.
1792 * cgraph.h (cgraph_first_defined_function, cgraph_next_defined_function,
1793 cgraph_function_with_gimple_body_p,
1794 cgraph_first_function_with_gimple_body,
1795 cgraph_next_function_with_gimple_body): New functions.
1796 (FOR_EACH_FUNCTION_WITH_GIMPLE_BODY, FOR_EACH_DEFINED_FUNCTION):
1798 * ipa-cp.c (ipcp_need_redirect_p): Thunks can't be redirected.
1799 (ipcp_generate_summary): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
1800 * cgraphunit.c (cgraph_finalize_function): Only look into possible
1801 devirtualization when optimizing.
1802 (verify_cgraph_node): Verify thunks.
1803 (cgraph_analyze_function): Analyze thunks.
1804 (cgraph_mark_functions_to_output): Output thunks only in combination
1805 with function they are assigned to.
1806 (assemble_thunk): Turn thunk into non-thunk; don't try to turn
1807 alias into normal node.
1808 (assemble_thunks): New functoin.
1809 (cgraph_expand_function): Use it.
1810 * lto-cgraph.c (lto_output_node): Stream thunks.
1811 (input_overwrite_node): Stream in thunks.
1812 * ipa-pure-const.c (analyze_function): Thunks do nothing interesting.
1813 * lto-streamer-out.c (lto_output): Do not try to output thunk's body.
1814 * ipa-inline.c (inline_small_functions): Use FOR_EACH_DEFINED_FUNCTION.
1815 * ipa-inline-analysis.c (compute_inline_parameters): "Analyze" thunks.
1816 (inline_analyze_function): Do not care about thunk jump functions.
1817 (inline_generate_summary):Use FOR_EACH_DEFINED_FUNCTION.
1818 * ipa-prop.c (ipa_prop_write_jump_functions): Use
1819 cgraph_function_with_gimple_body_p.
1820 * passes.c (do_per_function_toporder): Use
1821 cgraph_function_with_gimple_body_p.
1822 (execute_one_pass);Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
1823 (ipa_write_summaries): Use cgraph_function_with_gimple_body_p.
1824 (function_called_by_processed_nodes_p): Likewise.
1826 2011-05-06 Joseph Myers <joseph@codesourcery.com>
1828 * config/rs6000/rs6000.opt (rs6000_ieeequad, rs6000_altivec_abi,
1829 rs6000_spe_abi, rs6000_darwin64_abi): Remove TargetVariable
1831 (mabi=): Replace with separate entries for mabi=altivec,
1832 mabi=no-altivec, mabi=spe, mabi=no-spe, mabi=d64, mabi=d32,
1833 mabi=ieeelongdouble and mabi=ibmlongdouble.
1834 * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
1835 check for -mabi=spe without SPE ABI support here.
1836 (rs6000_handle_option): Replace OPT_mabi_ handling with
1837 OPT_mabi_altivec and OPT_mabi_spe handling.
1839 2011-05-06 Cary Coutant <ccoutant@google.com>
1841 * dwarf2out.c (contains_subprogram_definition): New function.
1842 (should_move_die_to_comdat): Call it.
1844 2011-05-06 Jeff Law <law@redhat.com>
1846 * tree-ssa-threadupdate.c (create_block_for_threading): Do not call
1847 remove_ctrl_stmt_and_useless_edges.
1848 (create_duplicates): Call remove_ctrl_stmt_and_useless_edges.
1849 (fixup_template_block, thread_single_edge): Likewise.
1850 (mark_threaded_blocks): Use THREAD_TARGET.
1852 2011-05-06 Alan Modra <amodra@gmail.com>
1855 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
1856 const0_rtx as the arg to the dummy __tls_get_addr libcall.
1858 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
1860 * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
1861 constraint modifier to "r".
1863 2011-05-06 Joseph Myers <joseph@codesourcery.com>
1865 * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
1866 fall through for OPT_mcmodel_.
1868 2011-05-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1870 * config/s390/s390.c (s390_asm_trampoline_template): Comment
1872 (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
1874 2011-05-06 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
1877 * config/arm/arm.opt (marm): Document it.
1878 (mthumb): Reject negative variant.
1880 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
1883 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
1884 Fix typo in "ccvt" variable name.
1886 2011-05-06 Tristan Gingold <gingold@adacore.com>
1889 * config/vms/vms-ar.c (main): Remove cwd variable.
1891 2011-05-06 Jakub Jelinek <jakub@redhat.com>
1894 * var-tracking.c (prepare_call_arguments): Move else before #endif.
1896 2011-05-05 Nathan Froyd <froydnj@codesourcery.com>
1898 * except.c (sjlj_emit_dispatch_table): Call build_case_label.
1899 * gimplify.c (gimplify_switch_expr): Likewise.
1900 * omp-low.c (expand_omp_sections): Likewise.
1901 * tree-eh.c (lower_try_finally_switch): Likewise.
1902 (lower_eh_dispatch): Likewise.
1903 * tree.h (build_case_label): Declare.
1904 * tree.c (build_case_label): Define.
1906 2011-05-05 Jason Merrill <jason@redhat.com>
1909 * tree-inline.c (copy_tree_r): Use copy_statement_list.
1910 (copy_statement_list): Don't recurse.
1911 * stor-layout.c (copy_self_referential_tree_r): Don't allow
1914 2011-05-05 Joseph Myers <joseph@codesourcery.com>
1916 * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
1917 through from -mfpu= handling.
1918 * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
1920 2011-05-05 Bernd Schmidt <bernds@codesourcery.com>
1922 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
1925 2011-05-05 Steve Ellcey <sje@cup.hp.com>
1927 * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
1929 (hppa[12]*-*-hpux11*): Ditto.
1930 (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
1931 * config/ia64/hpux-unix2003.h: New.
1932 * config/pa/pa-hpux1131.opt: New.
1933 * config/pa/pa-hpux1131.h: New.
1934 * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
1935 * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
1936 * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
1938 2011-05-05 Jakub Jelinek <jakub@redhat.com>
1941 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
1942 instead of mode as 3rd argument to recursive call.
1943 (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
1944 emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
1946 (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
1947 don't give up if mode is Pmode and mem_mode is not VOIDmode.
1948 (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
1949 use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
1951 2011-05-05 Julian Brown <julian@codesourcery.com>
1953 * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
1954 parenthesis in D-register case.
1956 2011-05-05 Joseph Myers <joseph@codesourcery.com>
1958 * opt-functions.awk (var_type_struct): Handle Enum options.
1959 * optc-gen.awk: Don't check range of variables of character type.
1960 * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
1961 rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
1962 rs6000_sdata_name, rs6000_explicit_options): Remove.
1963 (rs6000_option_override_internal): Check for -malign-power here.
1964 Use global_options_set instead of rs6000_explicit_options.
1965 (rs6000_parse_fpu_option): Remove.
1966 (rs6000_handle_option): Access variables via opts and opts_set
1967 pointers. Use error_at and warning_at. Add fall-through
1968 comments. Don't handle OPT_mcmodel_, OPT_maix_struct_return,
1969 OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
1970 OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
1971 OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
1972 here. Don't use rs6000_parse_fpu_option.
1973 * config/rs6000/rs6000.h (fpu_type): Remove declaration.
1974 * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
1975 rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
1977 (mspe): Use Var and Save.
1978 (mtraceback=): Use Enum and Var.
1979 (rs6000_traceback_type): New Enum and EnumValue entries.
1980 (mfloat-gprs=): Use Enum, Var and Save.
1981 (rs6000_float_gprs): New Enum and EnumValue entries.
1982 (mlong-double-): use Var and Save.
1983 (msched-costly-dep=, minsert-sched-nops=): Use Var.
1984 (malign-): Use Enum and Var.
1985 (rs6000_alignment_flags): New Enum and EnumValue entries.
1987 (fpu_type_t): New Enum and EnumValue entries.
1988 * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
1989 global_options_set instead of rs6000_explicit_options.
1990 * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
1991 global_options_set instead of rs6000_explicit_options.
1992 * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
1993 global_options_set instead of rs6000_explicit_options.
1994 * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
1995 global_options_set instead of rs6000_explicit_options.
1996 * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
1997 global_options_set instead of rs6000_explicit_options.
1998 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
1999 global_options_set instead of rs6000_explicit_options.
2000 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
2002 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
2003 global_options_set instead of rs6000_explicit_options.
2004 * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
2005 (rs6000_cmodel): New Enum and EnumValue entries.
2006 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
2007 global_options_set instead of rs6000_explicit_options.
2008 * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
2009 (mtls-size=): Use Enum and Var.
2010 (rs6000_tls_size): New Enum and EnumValue entries.
2012 2011-05-05 Michael Matz <matz@suse.de>
2014 * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
2015 * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
2016 * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
2017 * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
2018 * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
2019 * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
2020 * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
2021 * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
2022 * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
2023 * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
2024 * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
2025 * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
2026 * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
2027 * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
2028 * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
2029 * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
2031 2011-05-05 Richard Guenther <rguenther@suse.de>
2033 * expmed.c (expand_variable_shift): Rename to ...
2034 (expand_shift_1): ... this. Take an expanded shift amount.
2035 For rotates recurse directly not building trees for the shift amount.
2036 (expand_variable_shift): Wrap around expand_shift_1.
2037 (expand_shift): Adjust.
2039 2011-05-05 Jakub Jelinek <jakub@redhat.com>
2041 * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
2043 2011-05-05 Eric Botcazou <ebotcazou@adacore.com>
2045 * tree.h (get_pending_sizes): Remove prototype.
2046 (put_pending_size): Likewise.
2047 (put_pending_sizes): Likewise.
2048 * stor-layout.c (pending_sizes): Delete.
2049 (get_pending_sizes): Likewise.
2050 (put_pending_size): Likewise.
2051 (put_pending_sizes): Likewise.
2052 (variable_size): Do not call put_pending_size and tidy up.
2053 * function.h (struct function): Remove dont_save_pending_sizes_p.
2054 * lto-streamer-in.c (input_function): Do not stream it.
2055 * lto-streamer-out.c (output_function): Likewise.
2056 * tree-inline.c (initialize_cfun): Do not copy it.
2057 * c-decl.c (store_parm_decls): Do not set it.
2058 * omp-low.c (create_task_copyfn): Likewise.
2059 * tree-optimize.c (tree_rest_of_compilation): Likewise.
2061 2011-05-05 Uros Bizjak <ubizjak@gmail.com>
2063 * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
2065 (*movdf_internal): Ditto.
2066 (*movdf_internal_nointeger): Ditto.
2067 (*movsf_internal): Ditto.
2069 2011-05-05 Joseph Myers <joseph@codesourcery.com>
2071 * c-decl.c (finish_decl): Don't call get_pending_sizes.
2072 (grokparm): Add parameter expr. Pass it to grokdeclarator.
2073 (push_parm_decl): Add parameter expr. Pass it to grokdeclarator.
2074 (c_variable_size): Remove.
2075 (grokdeclarator): Use save_expr instead of c_variable_size. Don't
2076 call put_pending_sizes.
2077 (get_parm_info): Add parameter expr. Use it to set
2078 arg_info->pending_sizes.
2079 (store_parm_decls): Use arg_info->pending_sizes instead or calling
2081 * c-parser.c (c_parser_parms_declarator): Update call to
2082 c_parser_parms_list_declarator.
2083 (c_parser_parms_list_declarator): Take parameter expr. Update
2084 call to push_parm_decl. Update recursive call. Don't call
2085 get_pending_sizes. Update calls to get_parm_info.
2086 (c_parser_objc_method_definition): Update calls to
2087 c_parser_objc_method_decl and objc_start_method_definition.
2088 (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
2089 (c_parser_objc_method_decl): Add parameter expr. Update call to
2091 (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
2092 * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
2093 (get_parm_info, grokparm, push_parm_decl): Update prototypes.
2095 2011-05-05 Michael Hope <michael.hope@linaro.org>
2098 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
2101 2011-05-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2103 * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
2104 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
2105 (spu_output_mi_thunk): New function.
2107 2011-05-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2109 * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
2110 targetm.asm_out.print_operand.
2111 * config/sol2.c: Include target.h.
2113 2011-05-04 Jan Hubicka <jh@suse.cz>
2115 * ipa-inline.c (reset_edge_caches): New function.
2116 (update_caller_keys): Add check_inlinablity_for; do not
2117 reset edge caches; remove now unnecesary loop.
2118 (update_callee_keys): Add comments; reset node_growth_cache of callee.
2119 (update_all_callee_keys): Likewise.
2120 (inline_small_functions): Sanity check cache; update code
2123 2011-05-04 Bernd Schmidt <bernds@codesourcery.com>
2125 PR rtl-optimization/47612
2126 * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
2127 as the last insn of the sequence to be moved.
2129 2011-05-04 Tobias Burnus <burnus@net-b.de>
2132 * doc/invoke.texi (Ofast): Document that it
2133 enables Fortran's -fno-protect-parens.
2135 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
2137 * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
2139 2011-05-04 Eric Botcazou <ebotcazou@adacore.com>
2141 * stor-layout.c (variable_size): Do not issue errors.
2143 2011-05-04 Richard Guenther <rguenther@suse.de>
2145 * coverage.c (tree_coverage_counter_ref): Use integer_type_node
2146 for array-ref indices.
2147 (tree_coverage_counter_addr): Likewise.
2148 (build_fn_info_type): Use size_int for index types.
2149 (build_gcov_info): Likewise.
2151 2011-05-04 Richard Guenther <rguenther@suse.de>
2153 * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
2155 * c-typeck.c (really_start_incremental_init): Use bitsize_int
2156 for constructor indices.
2157 (push_init_level): Likewise.
2159 2011-05-04 Richard Guenther <rguenther@suse.de>
2161 * explow.c (promote_mode): Move variable declarations before code.
2163 2011-05-04 Nathan Froyd <froydnj@codesourcery.com>
2165 * tree.h (build_function_type_array): Declare.
2166 (build_varargs_function_type_array): Declare.
2167 (build_function_type_vec, build_varargs_function_type_vec): Define.
2168 * tree.c (build_function_type_array_1): New function.
2169 (build_function_type_array): New function.
2170 (build_varargs_function_type_array): New function.
2172 2011-05-04 Richard Sandiford <richard.sandiford@linaro.org>
2174 * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
2175 before setting STMT_VINFO_TYPE.
2177 2011-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2179 * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
2180 instead of spu_pass_by_reference.
2182 2011-05-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2184 * calls.c (emit_library_call_value_1): Invoke
2185 promote_function_mode hook on libcall arguments.
2186 * explow.c (promote_function_mode, promote_mode): Handle TYPE
2187 argument being NULL.
2188 * targhooks.c (default_promote_function_mode): Lisewise.
2189 * config/s390/s390.c (s390_promote_function_mode): Likewise.
2190 * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
2192 * doc/tm.texi: Document that TYPE argument might be NULL.
2194 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
2196 * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
2198 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
2201 * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
2203 2011-05-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2205 * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
2206 (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
2208 * mips-tfile.c: ... here.
2209 Don't include coretypes.h, tm.h, filenames.h.
2210 (saber_stop): Remove definition and all calls.
2211 [__SABER__]: Remove.
2212 (__LINE__): Remove default.
2213 (Size_t, Ptrdiff_t): Remove definitions.
2214 Replace by size_t, ptrdiff_t.
2215 [!MIPS_DEBUGGING_INFO]: Remove.
2216 (SHASH_SIZE, THASH_SIZE): Remove defaults.
2217 (progname): Add const.
2219 Replace all uses by static.
2220 (ALIGN_SYMTABLE_OFFSET): Remove default.
2221 * mips-tdump.c: Don't include coretypes.h, tm.h.
2222 Remove !MIPS_IS_STAB guard.
2223 * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
2224 $(TM_H), filenames.h dependencies.
2225 (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
2227 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
2230 *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
2231 (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
2233 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
2236 * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
2237 account and save/restore RETS.
2238 (PROFILE_BEFORE_PROLOGUE): Define.
2239 (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character. Correct
2240 the push insn to use predecrement.
2242 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
2245 * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
2247 2011-05-04 Nick Clifton <nickc@redhat.com>
2249 * config/mn10300/mn10300.c: Include cfgloop.h.
2251 (mn10300_insert_setlb_lcc): New function. Inserts a SETLB and a
2252 Lcc or a FLcc insn into the instruction stream.
2253 (mn10300_block_contains_call): New function. Returns true if the
2254 given basic block contains a CALL insn.
2255 (mn10300_loop_contains_call_insn): New function. Returns true if
2256 the given loop contains a CALL insn.
2257 (mn10300_scan_for_setlb_lcc): New function. Finds opportunities
2258 to use the SETLB and Lcc or FLcc insns.
2259 (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
2260 (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
2261 * config/mn10300/mn10300.opt (msetlb): New option. Used to
2262 disable the SETLB optimization.
2263 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
2264 __SETLB__ or __NO_SETLB__.
2265 * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
2266 (movsf_internal): Handle MDR register.
2267 (cmpsi): Make visible.
2268 (setlb): New pattern.
2270 (FLcc): New pattern.
2272 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
2275 * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
2276 for reg<->xmm moves.
2277 * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
2278 (vec_concatv2di_rex64_sse): Ditto.
2279 (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
2280 (*vec_extractv2di_1_rex64): Ditto.
2283 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
2285 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
2287 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
2289 2011-05-04 Richard Guenther <rguenther@suse.de>
2291 * tree.h (int_const_binop): Remove notrunc argument.
2292 * fold-const.c (int_const_binop): Remove notrunc argument. Always
2293 create integer constants that are properly truncated.
2294 (extract_muldiv_1): Expand one notrunc int_const_binop caller.
2295 (const_binop): Remove zero notrunc argument to int_const_binop.
2296 (size_binop_loc): Likewise.
2297 (fold_div_compare): Likewise.
2298 (maybe_canonicalize_comparison_1): Likewise.
2299 (fold_comparison): Likewise.
2300 (fold_binary_loc): Likewise.
2301 (multiple_of_p): Likewise.
2302 * expr.c (store_constructor): Likewise.
2303 * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
2304 (maybe_fold_stmt_addition): Likewise.
2305 * ipa-prop.c (ipa_modify_call_arguments): Likewise.
2306 * stor-layout.c (layout_type): Likewise.
2307 * tree-data-ref.c (tree_fold_divides_p): Likewise.
2308 * tree-sra.c (build_ref_for_offset): Likewise.
2309 (build_user_friendly_ref_for_offset): Likewise.
2310 * tree-ssa-address.c (maybe_fold_tmr): Likewise.
2311 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
2312 * tree-ssa-loop-niter.c (inverse): Likewise.
2313 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
2314 * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
2315 * tree-switch-conversion.c (check_range): Likewise.
2316 (build_constructors): Likewise.
2317 * tree-vect-generic.c (expand_vector_piecewise): Likewise.
2318 * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
2319 (extract_range_from_assert): Likewise.
2320 (vrp_int_const_binop): Likewise.
2321 (extract_range_from_binary_expr): Likewise.
2322 (extract_range_from_unary_expr): Likewise.
2323 (check_array_ref): Likewise.
2324 (find_case_label_range): Likewise.
2325 (simplify_div_or_mod_using_ranges): Likewise.
2326 * tree-cfg.c (group_case_labels_stmt): Use double-ints for
2327 comparing case labels for merging.
2329 2011-05-03 Mark Wielaard <mjw@redhat.com>
2331 * dwarf2out.c (debug_str_hash_forced): Removed.
2332 (gen_label_for_indirect_string): Removed.
2333 (get_debug_string_label): Removed.
2334 (AT_string_form): Generate label directly.
2335 (output_indirect_string): Test indirect_string_node for
2336 DW_FORM_strp instead of checking label and refcount.
2337 (prune_indirect_string): Removed.
2338 (prune_unused_types): Don't check debug_str_hash_forced or
2339 call prune_indirect_string.
2341 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
2344 * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
2346 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
2350 * combine.c (try_combine): Skip debug insns at m_split tests.
2352 2011-04-26 Mark Wielaard <mjw@redhat.com>
2355 * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
2356 when info_section_emitted.
2358 2011-05-03 Joseph Myers <joseph@codesourcery.com>
2360 * config/mips/mips-opts.h: New.
2361 * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
2363 (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
2364 (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
2365 or OPT_mr10k_cache_barrier_ here. Access mips_cache_flush_func
2367 * config/mips/mips.h (enum mips_code_readable_setting): Move to
2369 (mips_abi, mips_code_readable): Don't declare.
2370 * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
2371 (mabi=): Use Enum and Var.
2372 (mips_abi): New Enum and EnumValue entries.
2373 (mcode-readable=): Use Enum and Var.
2374 (mips_code_readable_setting): New Enum and EnumValue entries.
2375 (mr10k-cache-barrier=): Use Enum and Var.
2376 (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
2378 2011-05-03 Jan Hubicka <jh@suse.cz>
2380 * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
2381 replace hash by pointer map.
2382 (cgraph_node_set_element_def, cgraph_node_set_element,
2383 const_cgraph_node_set_element, varpool_node_set_element_def,
2384 varpool_node_set_element, const_varpool_node_set_element): Remove.
2385 (free_cgraph_node_set, free_varpool_node_set): New function.
2386 (cgraph_node_set_size, varpool_node_set_size): Use vector size.
2387 * tree-emutls.c: Free varpool node set.
2388 * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
2389 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
2390 debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
2391 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
2392 dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
2393 Move here from ipa.c; implement using pointer_map
2394 * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
2395 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
2396 debug_cgraph_node_set, varpool_node_set_new,
2397 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
2398 dump_varpool_node_set, debug_varpool_node_set):
2399 Move to ipa-uitls.c.
2400 * passes.c (ipa_write_summaries): Update.
2402 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
2404 From Mike Frysinger:
2405 * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
2406 bf542/bf544/bf547/bf548/bf549.
2408 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
2410 * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
2412 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
2415 * config/bfin/bfin.md (MOVCC): New mode_macro.
2416 (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
2417 movsicc_insn1, movsicc_insn2 and movsicc and macroized. Remove
2418 comments from generated assembly.
2420 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
2423 * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
2424 * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
2425 * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
2426 * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
2427 * config/bfin/lib1funcs.asm (___muldi3): New function.
2429 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
2431 * config/stormy16/stormy16 (xstormy16_init_builtins): Call
2432 build_function_type_list instead of build_function_type.
2433 Rearrange initialization of `args' to do so.
2435 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
2437 * config/i386/i386.c (ix86_code_end): Call build_function_type_list
2438 instead of build_function_type.
2440 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
2442 * config/rs6000/rs6000.c (spe_init_builtins): Call
2443 build_function_type_list instead of build_function_type.
2444 (paired_init_builtins, altivec_init_builtins): Likewise.
2445 (builtin_function_type): Likewise.
2447 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
2449 * config/sh/sh.c (sh_media_init_builtins): Call
2450 build_function_type_list instead of build_function_type.
2452 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
2454 * config/sparc/sparc.c (sparc_file_end): Call
2455 build_function_type_list instead of build_function_type.
2457 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
2459 * config/alpha/alpha.c (alpha_init_builtins): Call
2460 build_function_type_list instead of build_function_type.
2462 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
2464 * config/xtensa/xtensa.c (xtensa_init_builtins): Call
2465 build_function_type_list instead of build_function_type.
2467 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
2469 * config/iq2000/i2000.c (iq2000_init_builtins): Call
2470 build_function_type_list instead of build_function_type.
2471 Delete `endlink' variable.
2473 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
2475 * config/avr/avr.c (avr_init_builtins): Call
2476 build_function_type_list instead of build_function_type.
2478 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
2480 * config/picochip/picochip.c (picochip_init_builtins): Call
2481 build_function_type_list instead of build_function_type.
2482 Delete `endlink' variable.
2484 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
2486 * config/bfin/bfin.c (bfin_init_builtins): Call
2487 build_function_type_list instead of build_function_type.
2489 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
2492 * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
2493 that's not CONST_INT. Seemingly redundant check is due to PR39768.
2495 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
2498 * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
2499 libbffastfp overrides libgcc when -mfast-fp.
2501 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
2503 Originally from Bernd Schmidt
2504 * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
2505 * config/bfin/bfin.c (override_options): Test it and error if
2508 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
2510 Originally From Bernd Schmidt
2511 * config/bfin/bfin.c (override_options): Disable -fstack-limit for
2514 2011-05-03 Jeff Law <law@redhat.com>
2516 * tree-ssa-threadupdate.c (THREAD_TARGET): define.
2517 (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
2518 (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
2519 than accessing AUX field directly. Free the AUX field before
2521 (thread_block, thread_through_loop_header): Likewise.
2522 (thread_single_edge, mark_threaded_blocks): Likewise.
2523 (redirect_edges): Delay clearing the AUX field. Free the AUX field.
2524 (register_jump_thread): Do not attempt to thread to a NULL edge.
2526 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
2528 * function.c (init_function_start): Call decide_function_section.
2529 * varasm.c (decide_function_section): New function.
2530 (assemble_start_function): When not using
2531 flag_reorder_blocks_and_partition, don't compute in_cold_section_p
2532 or first_function_block_is_cold.
2533 * rtl.h (decide_function_section): Declare.
2535 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
2536 Jakub Jelinek <jakub@redhat.com>
2539 * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
2540 only succeed if req_mode is the same as set_mode.
2542 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
2544 * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
2545 * genemit.c (gen_exp): Handle RETURN.
2546 * emit-rtl.c (verify_rtx_sharing): Likewise.
2547 (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
2548 * rtl.c (copy_rtx): RETURN is shared.
2549 * rtl.h (enum global_rtl_index): Add GR_RETURN.
2551 * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
2552 * config/s390/s390.c (s390_emit_epilogue): Likewise.
2553 * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
2554 * config/cris/cris.c (cris_expand_return): Likewise.
2555 * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
2556 * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
2557 rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
2558 * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
2559 * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
2561 * config/v850/v850.c (expand_epilogue): Likewise.
2562 * config/bfin/bfin.c (bfin_expand_call): Likewise.
2563 * config/arm/arm.md (epilogue): Likewise.
2564 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
2565 * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
2566 variable to ret_reg.
2568 2011-05-03 Richard Guenther <rguenther@suse.de>
2571 * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
2572 Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
2573 * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
2575 2011-05-03 Richard Guenther <rguenther@suse.de>
2577 * c-decl.c (grokdeclarator): Instead of looking at
2578 TREE_OVERFLOW check if the constant fits in the index type.
2580 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
2582 * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
2583 (vec_store_lanes<mode><mode>): Likewise.
2585 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
2587 * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
2588 * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
2589 convert_optab_index values.
2590 (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
2591 * genopinit.c (optabs): Initialize the new optabs.
2592 * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
2593 * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
2594 (expand_STORE_LANES): New functions.
2595 * tree.h (build_array_type_nelts): Declare.
2596 * tree.c (build_array_type_nelts): New function.
2597 * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
2598 (vect_model_load_cost): Likewise.
2599 (vect_store_lanes_supported, vect_load_lanes_supported)
2600 (vect_record_strided_load_vectors): Declare.
2601 * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
2602 (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
2603 (vect_transform_strided_load): Split out statement recording into...
2604 (vect_record_strided_load_vectors): ...this new function.
2605 * tree-vect-stmts.c (create_vector_array, read_vector_array)
2606 (write_vector_array, create_array_ref): New functions.
2607 (vect_model_store_cost): Add store_lanes_p argument.
2608 (vect_model_load_cost): Add load_lanes_p argument.
2609 (vectorizable_store): Try to use store-lanes functions for
2611 (vectorizable_load): Likewise load-lanes and loads.
2612 * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
2613 to vect_model_store_cost.
2614 (vect_build_slp_tree): Likewise vect_model_load_cost.
2616 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
2618 * hooks.h (hook_bool_mode_uhwi_false): Declare.
2619 * hooks.c (hook_bool_mode_uhwi_false): New function.
2620 * target.def (array_mode_supported_p): New hook.
2621 * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
2622 * doc/tm.texi: Regenerate.
2623 * stor-layout.c (mode_for_array): New function.
2624 (layout_type): Use it.
2625 * config/arm/arm.c (arm_array_mode_supported_p): New function.
2626 (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
2628 2011-05-03 Eric Botcazou <ebotcazou@adacore.com>
2631 * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
2632 for -fstack-check if the size to allocate is negative.
2634 2011-05-02 Lawrence Crowl <crowl@google.com>
2636 * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
2637 (timevar_cond_start): New for starting a timer only when it is not
2639 (timevar_cond_stop): New for stopping a timer when it was not already
2642 * timevar.c (timevar_stop): Enable start/stop timers to start again.
2643 (timevar_cond_start): New as above.
2644 (timevar_cond_stop): New as above.
2646 * timevar.def: Add start/stop timers for compiler phases,
2647 TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
2648 TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
2649 and TV_PHASE_FINALIZE.
2650 Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
2651 Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
2652 TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
2653 Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
2654 Make unused TV_OVERLOAD into a start/stop timer.
2656 Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
2657 Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
2658 to indicate that they are start/stop timers.
2660 * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
2661 Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
2662 Move initialization to do_compile.
2663 (do_compile): Add initialization from above.
2664 Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
2666 * c-decl.c (c_write_global_declarations): Add start/stop of
2667 TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
2669 * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
2670 or TV_PARSE_INLINE, as appropriate.
2671 (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
2672 (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
2674 2011-05-02 Jason Merrill <jason@redhat.com>
2677 * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
2679 2011-05-02 Simon Martin <simartin@users.sourceforge.net>
2682 * c-decl.c (finish_decl): Only create a composite if the types are
2685 2011-05-02 Joseph Myers <joseph@codesourcery.com>
2687 * config/fr30/fr30-protos.h (Mmode): Don't define.
2688 * config/m32r/m32r-protos.h (Mmode): Don't define. Expand
2689 definition where used.
2690 * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
2691 define. Expand definitions where used.
2692 * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
2693 Expand definitions where used.
2694 * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
2695 rx_function_arg, rx_function_arg_advance,
2696 rx_function_arg_boundary): Expand definitions of those macros.
2697 * config/v850/v850-protos.h (Mmode): Don't define. Expand
2698 definition where used.
2700 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
2702 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
2704 (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
2705 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves. Merge
2706 with *movv2sf_internal_rex64_avx.
2707 (*movv2sf_internal): Merge with *movv2sf_internal_avx.
2708 * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
2709 Use %v prefix in insn mnemonic to handle TARGET_AVX.
2710 (*movdi_internal): Add "isa" attribute. Use "maybe_vex" instead of
2711 "vex" in "prefix" attribute calculation.
2712 (*movdf_internal): Output AVX mnemonics. Add "prefix" attribute.
2714 2011-05-02 Stuart Henderson <shenders@gcc.gnu.org>
2717 * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
2718 inputs match the output.
2720 2011-05-02 Andreas Schwab <schwab@linux-m68k.org>
2723 * config/m68k/m68k.c (m68k_expand_prologue): Set
2724 current_function_static_stack_size.
2726 2011-05-02 Jan Hubicka <jh@suse.cz>
2728 * lto-streamer.c (lto_streamer_cache_insert_1,
2729 lto_streamer_cache_lookup, lto_streamer_cache_create,
2730 lto_streamer_cache_delete): Use pointer map instead of hashtable.
2731 * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
2733 2011-05-02 Joseph Myers <joseph@codesourcery.com>
2735 * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
2736 config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
2737 config/m68k/t-opts: New files.
2738 * config/m68k/m68k-tables.opt: New file (generated).
2739 * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
2740 extra_options and m68k/t-opts to tmake_file.
2741 * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
2742 (all_isas): Initialize using m68k-isas.def.
2743 (all_microarchs): Initialize using m68k-microarchs.def.
2744 (m68k_find_selection): Remove.
2745 (m68k_handle_option): Don't assert that global structures are in
2746 use. Use error_at. Access variables via opts pointer. Don't
2747 handle -march=, -mcpu= and -mtune= here. Set gcc_options fields
2748 directly for -m68020-40 and -m68020-60.
2749 (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
2750 m68k_tune_entry here.
2751 * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
2753 (m68k_library_id_string): Remove declaration.
2754 * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
2755 (m68k_library_id_string): New Variable.
2756 (march=, mcpu=, mtune=): Use Enum and Var.
2758 2011-05-02 Richard Guenther <rguenther@suse.de>
2760 * varasm.c (output_constructor_regular_field): Compute zero-based
2761 index with double-ints. Make sure to ICE instead of producing
2763 * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
2764 in asserts. Properly use a signed type.
2766 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
2768 * config/i386/sse.md (V): New mode iterator.
2769 (V_128): Rename from SSEMODE. Make V2DF mode conditional on
2771 (V_256): Rename from AVX256MODE.
2772 (VF): Make V4SF mode unconditional. Add TARGET_SSE instruction
2773 condition to all users.
2775 (VF2): Make V2DF mode unconditional. Add TARGET_SSE2 instruction
2776 condition to all users.
2777 (VF_128): Make V4SF mode unconditional.
2778 (VF_256): Rename from AVX256MODEF2P.
2779 (VI4F_128): Rename from SSEMODE4S.
2780 (VI8F_128): Rename from SSEMODE2D.
2781 (VI4F_256): Rename from AVX256MODE8P.
2782 (VI8F_256): Rename from AVX256MODE4P.
2783 (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
2784 (ssescalarmodesuffix): Remove SF and DF modes.
2785 (SSEMODE124): Remove.
2786 (SSEMODE1248): Ditto.
2787 (SSEMODEF2P): Ditto.
2788 (AVXMODEF2P): Ditto.
2789 (AVXMODEFDP): Ditto.
2790 (AVXMODEFSP): Ditto.
2791 (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
2793 (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO. Make V4SF mode
2795 (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
2796 xop_pcmov_<mode>256. Use V mode iterator.
2798 Adjust RTX patterns globally for renamed mode attributes.
2800 2011-05-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2802 * haifa-sched.c (sched_emit_insn): Emit insn before first
2803 non-scheduled insn. Inform back-end about new insn. Add
2804 new insn to scheduled_insns list.
2806 2011-05-02 Richard Guenther <rguenther@suse.de>
2808 PR tree-optimization/48822
2809 * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
2810 (process_scc): Indicate which iteration we start.
2812 2011-05-02 Jan Hubicka <jh@suse.cz>
2814 * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
2815 (lto_section_overrun): New.
2816 * lto-section-out.c (append_block): Rename to ...
2817 (lto_append_block): ... this one; export.
2818 (lto_output_1_stream): Move lto lto-streamer.h
2819 (lto_output_data_stream): Update.
2820 * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
2821 (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
2824 2011-05-02 Richard Guenther <rguenther@suse.de>
2826 * tree.c (tree_code_counts): New global array.
2827 (record_node_allocation_statistics): Count individual tree codes.
2828 (dump_tree_statistics): Dump individual code stats.
2830 2011-05-01 Jan Hubicka <jh@suse.cz>
2832 * ipa-inline.c (caller_growth_limits): Fix thinko when
2833 looking for largest stack frame.
2834 * ipa-inline.h (dump_inline_summary): Declare.
2835 * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
2837 (dump_inline_summary): Export.
2838 (debug_inline_summary): Declare as DEBUG_FUNCTION.
2840 2011-05-01 Anatoly Sokolov <aesok@post.ru>
2842 * reginfo.c (memory_move_cost): Change rclass argument type form
2843 'enum reg_class' to reg_class_t.
2844 * reload.h (memory_move_cost): Update prototype.
2845 * postreload.c reload_cse_simplify_set): Change type dclass var to
2847 * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
2849 (ira_allocate_and_set_costs): Change aclass argument type form
2850 'enum reg_class' to reg_class_t.
2851 * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
2852 Change aclass argument type to reg_class_t.
2853 (update_conflict_hard_reg_costs): Change type aclass and pref vars
2855 * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
2856 memory_move_cost call.
2858 * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
2859 'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
2860 Change type tmp var to reg_class_t.
2862 2011-04-30 Jan Hubicka <jh@suse.cz>
2864 * ipa-inline.c (can_inline_edge_p): Disregard limits when
2865 inlining into function with flatten attribute.
2866 (want_inline_small_function_p): Be more realistic about inlining
2867 cold calls where callee size grows.
2869 2011-04-30 Jan Hubicka <jh@suse.cz>
2871 * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
2874 2011-04-30 Anatoly Sokolov <aesok@post.ru>
2876 * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
2877 PRINT_OPERAND_PUNCT_VALID_P): Remove.
2878 * config/sparc/sparc-protos.h (print_operand): Remove declaration.
2879 * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
2880 TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
2881 (print_operand): Rename to...
2882 (sparc_print_operand): ...this. Make static. Adjust
2883 sparc_print_operand function call.
2884 (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
2887 2011-04-30 Jan Hubicka <jh@suse.cz>
2890 * ipa-inline.c (early_inliner): Disable when doing late
2891 addition of function.
2893 2011-04-30 Jakub Jelinek <jakub@redhat.com>
2895 * dwarf2out.c (get_address_mode): New inline.
2896 (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
2897 if not dwarf_strict emit
2898 DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
2899 desirable. Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
2900 UNSIGNED_FLOAT, FIX and UNSIGNED_FIX. Just return NULL for
2901 FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
2902 (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
2903 dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
2904 mem_loc_descriptor callers.
2905 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
2906 output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
2907 Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
2908 DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
2909 (base_types): New variable.
2910 (get_base_type_offset, calc_base_type_die_sizes,
2911 base_type_for_mode, mark_base_types, base_type_cmp,
2912 move_marked_base_types): New functions.
2913 (calc_die_sizes): Assert that die_offset is 0 or equal to
2915 (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
2916 others defer to mem_loc_descriptor. Adjust mem_loc_descriptor
2917 callers. If not dwarf_strict, call mem_loc_descriptor even for
2918 non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
2919 (gen_subprogram_die): Don't give up on call site parameters
2920 with non-integral or large integral modes. Adjust
2921 mem_loc_descriptor callers.
2922 (prune_unused_types): Call prune_unused_types_mark on base_types
2924 (resolve_addr): Call mark_base_types.
2925 (dwarf2out_finish): Call move_marked_base_types.
2927 PR tree-optimization/48809
2928 * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
2930 (gen_inbound_check): Don't compute index_expr - range_min in utype
2931 again, instead reuse SSA_NAME initialized in build_arrays.
2932 Remove two useless gsi_for_stmt calls.
2934 2011-04-29 Jeff Law <law@redhat.com>
2936 * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
2938 2011-04-29 Martin Jambor <mjambor@suse.cz>
2940 * cgraph.h (cgraph_postorder): Remove declaration.
2941 * ipa-utils.h (ipa_free_postorder_info): Declare.
2942 (ipa_reverse_postorder): Likewise.
2943 * cgraphunit.c: Include ipa-utils.h.
2944 (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
2945 * ipa-inline.c: Include ipa-utils.h.
2946 (ipa_inline): Update call to ipa_reverse_postorder.
2947 * ipa-pure-const.c (propagate_pure_const): Update call to
2948 ipa_reduced_postorder and ipa_print_order. Call
2949 ipa_free_postorder_info to clean up.
2950 (propagate_nothrow): Likewise.
2951 * ipa-reference.c (propagate): Removed a useless call to
2952 ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
2953 and ipa_print_order. Call ipa_free_postorder_info to clean up.
2954 * ipa.c: Include ipa-utils.h.
2955 (ipa_profile): Update call to ipa_reverse_postorder.
2956 (cgraph_postorder): Moved to...
2957 * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
2958 (ipa_utils_print_order): Renamed to ipa_print_order.
2959 (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
2961 (ipa_free_postorder_info): New function.
2962 * passes.c: Include ipa-utils.h.
2963 (do_per_function_toporder): Update call to ipa_reverse_postorder.
2964 (ipa_write_summaries): Likewise.
2965 * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
2966 (cgraphunit.o): Likewise.
2968 (ipa-inline.o): Likewise.
2970 2011-04-29 Jan Hubicka <jh@suse.cz>
2972 * gcc.dg/tree-ssa/inline-10.c: New testcase.
2973 * gcc.dg/tree-ssa/inline-9.c: Disable partial inlining.
2974 * ipa-inline.h (clause_t): Turn into unsigned int.
2975 * ipa-inline-analysis.c (add_clause): Do more simplification.
2976 (and_predicates): Shortcut more cases.
2977 (predicates_equal_p): Move forward; check that clauses are properly
2979 (or_predicates): Shortcut more cases.
2980 (edge_execution_predicate): Rewrite as...
2981 (set_cond_stmt_execution_predicate): ... this function; handle
2982 __builtin_constant_p.
2983 (set_switch_stmt_execution_predicate): New .
2984 (compute_bb_predicates): New.
2985 (will_be_nonconstant_predicate): Update TODO.
2986 (estimate_function_body_sizes): Use compute_bb_predicates
2987 and free them later, always try to estimate if stmt is constant.
2988 (estimate_time_after_inlining, estimate_size_after_inlining):
2989 Gracefully handle optimized out edges.
2990 (read_predicate): Fix off by one error.
2992 2011-04-29 Nicola Pero <nicola.pero@meta-innovation.com>
2994 * Makefile.in (ENABLE_MAINTAINER_RULES): New.
2996 2011-04-27 Xinliang David Li <davidxl@google.com>
2998 * tree-profile.c (init_ic_make_global_vars): Set
2999 tls attribute on ic vars.
3000 * coverage.c (coverage_end_function): Initialize
3001 function_list with zero.
3003 2011-04-29 Richard Guenther <rguenther@suse.de>
3005 * builtins.c (fold_builtin_classify_type): Use integer_type_node
3006 for the type of the result.
3007 (fold_builtin_isascii): Likewise.
3008 (fold_builtin_toascii): Use integer_type_node where appropriate.
3009 (fold_builtin_logb): Likewise.
3010 (fold_builtin_frexp): Likewise.
3011 (fold_builtin_strstr): Likewise.
3012 (fold_builtin_strpbrk): Likewise.
3013 (fold_builtin_fputs): Likewise.
3014 (fold_builtin_sprintf): Likewise.
3015 (fold_builtin_snprintf): Likewise.
3016 (fold_builtin_printf): Likewise.
3017 (do_mpfr_remquo): Use a proper type for the assigned constant.
3018 (do_mpfr_lgamma_r): Likewise.
3019 * dwarf2out.c (resolve_one_addr): Use size_int.
3020 * except.c (init_eh): Likewise.
3021 (assign_filter_values): Use integer_type_node for filter values.
3022 (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
3024 * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
3025 for EH region numbers.
3026 * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
3027 for the shift amount.
3029 2011-04-29 Richard Guenther <rguenther@suse.de>
3031 * expr.h (expand_shift): Rename to ...
3032 (expand_variable_shift): ... this.
3033 (expand_shift): Take a constant shift amount.
3034 * expmed.c (expand_shift): Rename to ...
3035 (expand_variable_shift): ... this.
3036 (expand_shift): New wrapper around expand_variable_shift.
3037 * expr.c (convert_move, emit_group_load_1, emit_group_store,
3038 optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
3039 expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
3040 * expmed.c (store_fixed_bit_field, extract_bit_field_1,
3041 extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
3042 expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
3043 extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
3044 emit_store_flag_1, emit_store_flag): Likewise.
3045 * builtins.c (expand_builtin_signbit): Likewise.
3046 * calls.c (load_register_parameters): Likewise.
3047 * function.c (assign_parm_setup_block): Likewise.
3048 * lower-subreg.c (resolve_shift_zext): Likewise.
3049 * optabs.c (widen_bswap, expand_abs_nojump,
3050 expand_one_cmpl_abs_nojump, expand_float): Likewise.
3051 * spu/spu.c (spu_expand_extv): Likewise.
3052 * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
3054 2011-04-29 Richard Guenther <rguenther@suse.de>
3056 * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
3057 for the remapped region number.
3058 * predict.c (build_predict_expr): Use integer_type_node for the
3060 * fold-const.c (fold_binary_loc): Use integer_type_node for
3061 the shift amount. Use a proper type for the PLUS_EXPR operand.
3063 2011-04-29 Michael Matz <matz@suse.de>
3065 * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
3066 other trees that just builtins.
3067 (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
3069 2011-04-29 Richard Guenther <rguenther@suse.de>
3071 * tree-nested.c (get_trampoline_type): Use size_int.
3072 (get_nl_goto_field): Likewise.
3073 * tree-eh.c (lower_try_finally_switch): Use integer_type_node
3075 (lower_eh_constructs_2): Likewise.
3076 (lower_resx): Likewise.
3077 (lower_eh_dispatch): Likewise.
3078 * tree-mudflap.c (mf_build_string): Use size_int.
3079 (mudflap_register_call): Use integer_type_node for the flag.
3080 (mudflap_enqueue_constant): Use size_int.
3081 * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
3082 instead of rebuilding it.
3084 2011-04-29 Richard Guenther <rguenther@suse.de>
3086 * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
3087 Handle OBJ_TYPE_REF.
3088 (find_func_aliases_for_call): Use it more consistently.
3090 2011-04-29 Alexandre Oliva <aoliva@redhat.com>
3092 * haifa-sched.c (last_nondebug_scheduled_insn): New.
3093 (rank_for_schedule): Use it.
3094 (schedule_block): Set it.
3096 2011-04-28 David Li <davidxl@google.com>
3098 * tree.c (crc32_string): Use crc32_byte.
3099 (crc32_byte): New function.
3100 * tree.h (crc32_byte): New function.
3101 * gcov.c (read_graph_file): Handle new cfg_cksum.
3102 (read_count_file): Ditto.
3103 * profile.c (instrument_values): Ditto.
3104 (get_exec_counts): Ditto.
3105 (read_profile_edge_counts): Ditto.
3106 (compute_branch_probabilities): Ditto.
3107 (compute_value_histograms): Ditto.
3108 (branch_prob): Ditto.
3109 (end_branch_prob): Ditto.
3110 * coverage.c (read_counts_file): Ditto.
3111 (get_coverage_counts): Ditto.
3112 (tree_coverage_counter_addr): Ditto.
3113 (coverage_checksum_string): Ditto.
3114 (coverage_begin_output): Ditto.
3115 (coverage_end_function): Ditto.
3116 (build_fn_info_type): Ditto.
3117 (build_fn_info_value): Ditto.
3118 * libgcov.c (gcov_exit): Ditto.
3119 * gcov-dump.c (tag_function): Ditto.
3120 (compute_checksum): Remove.
3122 2011-04-29 Alan Modra <amodra@gmail.com>
3124 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
3125 unspec plus offset. Tidy macho code.
3127 2011-04-29 Martin Jambor <mjambor@suse.cz>
3129 * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
3130 node instead of a decl. Update all callers.
3131 * cgraph.h: Update declaration.
3133 2011-04-28 Ira Rosen <ira.rosen@linaro.org>
3135 PR tree-optimization/48765
3136 * tree-vectorizer.h (vect_make_slp_decision): Return bool.
3137 * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
3138 to indicate if loop aware SLP is being used. Scan the statements
3139 and update the vectorization factor according to the type of
3140 vectorization before statement analysis.
3141 (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
3142 pass it to vect_analyze_loop_operations.
3143 (vectorizable_reduction): Set number of copies to 1 in case of pure
3145 * tree-vect-stmts.c (vectorizable_conversion,
3146 vectorizable_assignment, vectorizable_shift,
3147 vectorizable_operation, vectorizable_type_demotion,
3148 vectorizable_type_promotion, vectorizable_store, vectorizable_load):
3150 (vectorizable_condition): Move the check that it is not SLP
3151 vectorization before the number of copies check.
3152 * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
3153 to vectorize the loop using SLP.
3155 2011-04-28 Jakub Jelinek <jakub@redhat.com>
3158 * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
3161 2011-04-28 Joseph Myers <joseph@codesourcery.com>
3163 * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
3164 *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
3165 (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
3166 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
3167 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
3169 * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
3170 * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
3171 * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
3172 * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
3173 * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
3174 * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
3176 * config/i386/linux.h (REG_NAME): Don't define.
3177 * config/i386/linux64.h (REG_NAME): Don't define.
3178 * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
3179 Undefine before defining.
3181 2011-04-28 Jan Hubicka <jh@suse.cz>
3183 * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
3184 nonconstant_names array.
3185 (estimate_function_body_sizes): Build nonconstant_names array; handle
3186 BUILT_IN_CONSTANT_P.
3188 2011-04-28 Richard Guenther <rguenther@suse.de>
3192 2011-04-28 Richard Guenther <rguenther@suse.de>
3194 * tree-ssa-structalias.c (solve_constraints): Build succ graph
3195 as late as possible.
3197 2011-04-28 Richard Guenther <rguenther@suse.de>
3199 * tree-ssa-structalias.c (dump_constraint): Don't end the line.
3200 (debug_constraint): Do it here.
3201 (dump_constraints): And here.
3202 (rewrite_constraints): And here.
3203 (dump_constraint_edge): Remove.
3204 (dump_constraint_graph): Rewrite to produce DOT output.
3205 (solve_constraints): Build succ graph as late as possible.
3206 Dump constraint graphs before and after solving.
3208 2011-04-28 Richard Guenther <rguenther@suse.de>
3210 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
3211 New function split out from ...
3212 (find_func_aliases): ... here. Call it.
3213 (find_func_aliases_for_call): Likewise.
3215 2011-04-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
3217 * internal-fn.h (internal_fn_name_array): Declare.
3218 (internal_fn_flags_array): Likewise.
3220 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
3222 * config/i386/i386.md (ssemodesuffix): Merge with ssevecsize,
3223 ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
3225 (ssemodefsuffix): Remove.
3226 (ssevecmodesuffix): New mode attribute.
3227 (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
3228 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
3229 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
3230 *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
3231 *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
3232 *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
3233 *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
3234 ssemodesuffix mode attribute.
3235 (float splitters): Use ssevecmodesuffix mode attribute.
3236 * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
3237 (sseinsmode): Rename from avxvecmode.
3238 (avxsizesuffix): Rename from avxmodesuffix.
3239 (sseintvecmode): Rename from avxpermvecmode.
3240 (ssedoublevecmode): Rename from ssedoublesizemode.
3241 (ssehalfvecmode): Rename from avxhalfvecmode.
3242 (ssescalarmode): Rename from avxscalarmode.
3243 (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
3244 templates for ssemodesuffix mode attribute.
3245 (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
3248 Adjust RTX patterns globally for renamed mode attributes.
3250 2011-04-27 Jan Hubcika <jh@suse.cz>
3252 * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
3253 * ipa-inline-analysis.c: Include alloc-pool.h.
3254 (edge_predicate_pool): New.
3255 (trye_predicate_p): New function
3256 (false_predicate_p): New function.
3257 (add_clause): Sanity check that false clauses are "optimized";
3258 never add clauses to predicate that is already known to be false.
3259 (and_predicate): Use flase_predicate_p.
3260 (evaulate_predicate): Rename to ...
3261 (evaluate_predicate): ... this one; update all callers; assert
3262 that false is not listed among possible truths.
3263 (dump_predicate): Use true_predicate_p.
3264 (account_size_time): Use false_predicate_p.
3265 (evaulate_conditions_for_edge): Rename to ...
3266 (evaluate_conditions_for_edge) ... this one.
3267 (edge_set_predicate): New function.
3268 (inline_edge_duplication_hook): Duplicate edge predicates.
3269 (inline_edge_removal_hook): Free edge predicates.
3270 (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
3271 (dump_inline_summary): Update.
3272 (estimate_function_body_sizes): Set edge predicates.
3273 (estimate_calls_size_and_time): Handle predicates.
3274 (estimate_callee_size_and_time): Update.
3275 (remap_predicate): Add toplev_predicate; update comment.
3276 (remap_edge_predicates): New function.
3277 (inline_merge_summary): Compute toplev predicate; update.
3278 (read_predicate): New function.
3279 (read_inline_edge_summary): Use it.
3280 (inline_read_section): Likewise.
3281 (write_predicate): New function.
3282 (write_inline_edge_summary): Use it.
3283 (inline_write_summary): Likewise.
3284 (inline_free_summary): Free alloc pool and edge summary vec.
3286 2011-04-27 Richard Guenther <rguenther@suse.de>
3288 * tree-ssa-structalias.c (changed_count): Remove.
3289 (changed): Use a bitmap.
3290 (unify_nodes): Adjust.
3291 (do_sd_constraint): Likewise.
3292 (do_ds_constraint): Likewise.
3293 (do_complex_constraint): Likewise.
3294 (solve_graph): Likewise.
3296 2011-04-27 Jan Hubicka <jh@suse.cz>
3298 * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
3300 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
3302 * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
3303 (avx_vperm2f128_*_operand): Ditto.
3304 * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
3305 Use avx_vpermilp_parallel in insn condition.
3306 (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
3307 Use avx_vperm2f128_parallel in insn condition.
3309 2011-04-27 Richard Guenther <rguenther@suse.de>
3311 * Makefile.in (tree-ssa-structalias.o): Remove
3312 gt-tree-ssa-structalias.h dependency.
3313 (GTFILES): Remove tree-ssa-structalias.c.
3314 * tree.c (allocate_decl_uid): New function.
3315 (make_node_stat): Use it.
3316 (copy_node_stat): Likewise.
3317 * tree.h (allocate_decl_uid): Declare.
3318 * tree-ssa-alias.h (delete_alias_heapvars): Remove.
3319 * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
3320 * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
3321 * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
3322 * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
3323 (struct heapvar_map): Likewise.
3324 (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
3325 heapvar_insert): Likewise.
3326 (make_heapvar_for): Rename to ...
3327 (make_heapvar): ... this. Simplify.
3328 (fake_var_decl_obstack): New global var.
3329 (build_fake_var_decl): New function.
3330 (make_constraint_from_heapvar): Adjust.
3331 (handle_lhs_call): Likewise.
3332 (create_function_info_for): Likewise.
3333 (intra_create_variable_infos): Likewise.
3334 (init_alias_vars): Allocate fake_var_decl_obstack.
3335 (init_alias_heapvars, delete_alias_heapvars): Remove.
3336 (compute_points_to_sets): Do not call init_alias_heapvars.
3337 (ipa_pta_execute): Likewise.
3338 (delete_points_to_sets): Free fake_var_decl_obstack.
3340 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3342 * config/spu/divmovti4.c (union qword_UTItype): New data type.
3343 (si_from_UTItype, si_to_UTItype): New functions.
3344 (__udivmodti4): Use them to implement type-punning.
3345 * config/spu/multi3.c (union qword_TItype): New data type.
3346 (si_from_TItype, si_to_TItype): New functions.
3347 (__multi3): Use them to implement type-punning.
3349 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3351 * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
3353 2011-04-27 Jan Hubicka <jh@suse.cz>
3355 * ipa-prop.c (function_insertion_hook_holder): New holder.
3356 (ipa_add_new_function): New function.
3357 (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
3358 Register/deregister holder.
3360 2011-04-27 Richard Guenther <rguenther@suse.de>
3362 PR tree-optimization/48772
3363 * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
3365 2011-04-27 Richard Guenther <rguenther@suse.de>
3367 * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
3368 TARGET_MEM_REF handling.
3370 2011-04-27 Nick Clifton <nickc@redhat.com>
3372 * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
3373 ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
3374 (REG_CLASS_NAMES): Likewise.
3375 (REG_CLASS_CONTENTS): Likewise.
3376 (EVEN_ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
3377 (ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
3378 (FEVEN_REGS): New macro. Alias for QUAD_ACC_REGS.
3379 (FPR_REGS): New macro. Alias for QUAD_ACC_REGS.
3380 (EVEN_REGS): New macro. Alias for QUAD_REGS.
3381 * config/frv/frv.c (frv_secondary_reload_class): Remove use of
3382 duplicate register classes.
3383 (frv_class_likely_spilled_p): Likewise.
3384 (frv_register_move_cost): Likewise.
3386 * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
3387 end of the regno_reg_class array.
3389 2011-04-27 Jakub Jelinek <jakub@redhat.com>
3392 * c-typeck.c (build_binary_op): Don't wrap arguments if
3393 int_operands is true.
3395 2011-04-26 Kaz Kojima <kkojima@gcc.gnu.org>
3398 * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
3399 targetm.calls.must_pass_in_stack for void type.
3401 2011-04-26 Jan Hubicka <jh@suse.cz>
3403 * cgraphbuild.c (build_cgraph_edges): Update call
3404 of cgraph_create_edge and cgraph_create_indirect_edge.
3405 * cgraph.c (cgraph_create_edge_including_clones,
3406 cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
3407 cgraph_update_edges_for_call_stmt_node): Do not take nest
3408 argument; do not initialize call_stmt_size/time.
3409 (dump_cgraph_node): Do not dump nest.
3410 (cgraph_clone_edge): Do not take loop_nest argument;
3411 do not propagate it; do not clone call_stmt_size/time.
3412 (cgraph_clone_node): Likewise.
3413 (cgraph_create_virtual_clone): Update.
3414 * cgraph.h (struct cgraph_edge): Remove
3415 call_stmt_size/call_stmt_time/loop_nest.
3416 (cgraph_create_edge, cgraph_create_indirect_edge,
3417 cgraph_create_edge_including_clones, cgraph_clone_node): Update
3419 * tree-emutls.c (gen_emutls_addr): Update.
3420 * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
3421 loop_nest; handle indirect calls, too.
3422 (clone_inlined_nodes): Do not care about updating inline summaries.
3423 * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
3424 * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
3425 stream call_stmt_size/call_stmt_time/loop_nest.
3426 * ipa-inline.c (edge_badness): Update.
3427 (ipa_inline): dump summaries after inlining.
3428 * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
3430 (inline_edge_summary): New function.
3431 * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
3432 (inline_edge_removal_hook): Handle edge summaries.
3433 (inline_edge_duplication_hook): New hook.
3434 (inline_summary_alloc): Alloc hooks.
3435 (initialize_growth_caches): Do not register removal hooks.
3436 (free_growth_caches); Do not free removal hook.
3437 (dump_inline_edge_summary): New function.
3438 (dump_inline_summary): Use it.
3439 (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
3440 (inline_update_callee_summaries): New function.
3441 (inline_merge_summary): Use it.
3442 (do_estimate_edge_time, do_estimate_edge_growth): Update.
3443 (read_inline_edge_summary): New function.
3444 (inline_read_section): Use it.
3445 (write_inline_edge_summary): New function.
3446 (inline_write_summary): Use it.
3447 (inline_free_summary): Free edge new holders.
3448 * tree-inline.c (copy_bb): Update.
3450 2011-04-26 Jason Merrill <jason@redhat.com>
3452 * tree-eh.c (lower_try_finally_switch): Create the label along with
3453 the CASE_LABEL_EXPR.
3455 2011-04-26 David S. Miller <davem@davemloft.net>
3456 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3458 * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
3459 * configure: Regenerate.
3461 2011-04-26 Michael Meissner <meissner@linux.vnet.ibm.com>
3464 * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
3466 (VEC_reduc): New code iterator and splitters for vector reduction.
3467 (VEC_reduc_name): Ditto.
3468 (VEC_reduc_rtx): Ditto.
3469 (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
3470 (reduc_<VEC_reduc_name>_v4sf): Ditto.
3472 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
3473 support for extracting SF on VSX.
3475 * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
3476 generating xscvspdp.
3477 (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
3478 (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
3479 double add, minimum, maximum vector reduction.
3480 (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
3481 (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
3482 optimize double vector reduction.
3483 (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
3485 2011-04-26 Joseph Myers <joseph@codesourcery.com>
3487 * config/fr30/fr30.h (inhibit_libc): Don't define.
3488 * config/m32r/m32r-protos.h: Correct comment.
3489 * config/v850/v850.h (GHS_default_section_names,
3490 GHS_current_section_names): Use tree, not union tree_node *.
3492 2011-04-26 Xinliang David Li <davidxl@google.com>
3494 * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
3495 * c-family/c-opts.c (c_common_handle_option): Set
3496 warn_maybe_uninitialized.
3497 * opts.c (common_handle_option): Ditto.
3498 * common.opt: New option.
3499 * tree-ssa.c (warn_uninit): Add one more parameter.
3500 (warn_uninitialized_var): Pass warning code.
3501 * tree-flow.h: Interface change.
3504 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3506 * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
3507 (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
3508 (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
3510 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3512 * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
3513 * config/mips/mips.opt (mmips-tfile): Remove.
3515 * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
3516 mips-tdump reference to ...
3517 (Specific, alpha*-dec-osf5.1): ... here. Adapt for Tru64 UNIX.
3518 * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
3519 reference by Tru64 UNIX.
3521 2011-04-26 Jakub Jelinek <jakub@redhat.com>
3524 * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
3525 is error_mark_node, set value to NULL.
3527 PR tree-optimization/48734
3528 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
3529 if return value from maybe_fold_*_comparsions isn't something
3530 the code is prepared to handle.
3532 2011-04-26 Uros Bizjak <ubizjak@gmail.com>
3534 * config/i386/predicates.md (ext_QIreg_operand): Remove extra
3536 (ext_QIreg_nomode_operands): Remove.
3537 * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
3541 2011-04-26 Andrew Stubbs <ams@codesourcery.com>
3543 * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
3545 2011-04-26 Richard Guenther <rguenther@suse.de>
3547 * c-typeck.c (build_unary_op): Do not expand array-refs via
3548 pointer arithmetic. Only adjust qualifiers for function types.
3550 2011-04-26 Richard Guenther <rguenther@suse.de>
3553 * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
3554 * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
3555 compare the operands with OEP_CONSTANT_ADDRESS_OF. Treat trees
3556 with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
3558 2011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
3560 * doc/extend.texi: Document __underlying_type.
3562 2011-04-25 Segher Boessenkool <segher@kernel.crashing.org>
3564 * config/rs6000/titan.md (automata_option "progress"): Remove.
3566 2011-04-25 Jeff Law <law@redhat.com>
3568 * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
3570 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
3572 * system.h (ENUM_BITFIELD): Remove.
3574 2011-04-25 Maxim Kuvyrkov <maxim@codesourcery.com>
3575 Eric Botcazou <ebotcazou@adacore.com>
3577 * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
3578 for STORE_FLAG_VALUE==-1 case.
3580 2011-04-24 Richard Sandiford <richard.sandiford@linaro.org>
3583 * config/m68k/constraints.md (T): Allow PIC operands that satisfy
3584 LEGITIMATE_PIC_OPERAND_P.
3586 2011-04-24 Jan Hubicka <jh@suse.cz>
3588 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
3590 * ipa-prop.h (ipa_get_param, ipa_is_param_used,
3591 ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
3592 ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
3593 * ipa-inline-analysis.c (add_clause): Fix clause ordering.
3594 (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
3595 Sanity check predicate length.
3596 (remap_predicate): Likewise; sanity check jump functions.
3597 (inline_read_section, inline_write_summary): Sanity check
3600 2011-04-24 Paolo Carlini <paolo.carlini@oracle.com>
3603 * doc/extend.texi (Type Traits): Document __is_standard_layout,
3604 __is_literal_type, and __is_trivial; update throughout about
3605 possibly cv-qualified void types.
3607 2011-04-24 Gerald Pfeifer <gerald@pfeifer.com>
3609 * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
3610 testsuite and make it version agnostic.
3612 2011-04-22 Jan Hubicka <jh@suse.cz>
3614 * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
3616 2011-04-23 Jakub Jelinek <jakub@redhat.com>
3619 * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
3620 to VOID_TYPE even around MODIFY_EXPR.
3622 2011-04-22 Mike Stump <mikestump@comcast.net>
3624 * gensupport.c (read_md_rtx): Fix typo in comment.
3625 * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
3628 2011-04-22 Jan Hubicka <jh@suse.cz>
3630 * gengtype.c (open_base_files): Add ipa-inline.h include.
3631 * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
3632 ipa-prop.c; update all uses.
3633 * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
3634 * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
3635 merge summary of inlined function into former caller.
3636 * ipa-inline.c (max_benefit): Remove.
3637 (edge_badness): Compensate for removal of benefits.
3638 (update_caller_keys): Use
3639 reset_node_growth_cache/reset_edge_growth_cache.
3640 (update_callee_keys): Likewise.
3641 (update_all_callee_keys): Likewise.
3642 (inline_small_functions): Do not collect max_benefit; do not reset
3643 estimated_growth; call free_growth_caches and initialize_growth_caches.
3644 * ipa-inline.h (struct condition, type clause_t, struct predicate,
3645 struct size_time_entry): New structures.
3646 (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
3647 (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
3648 and estimated_growth.
3649 (edge_growth_cache_entry): New structure.
3650 (node_growth_cache, edge_growth_cache): New global vars.
3651 (estimate_growth): Turn into inline.
3652 (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
3653 initialize_growth_caches, free_growth_caches): Declare.
3654 (estimate_edge_growth): Rewrite.
3655 (estimate_edge_time): Implement as inline cache lookup.
3656 (reset_node_growth_cache, reset_edge_growth_cache): New inline
3658 (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
3659 (NUM_CONDITIONS): New constant.
3660 (predicate_conditions): New enum.
3661 (IS_NOT_CONSTANT): New constant.
3662 (edge_removal_hook_holder): New var.
3663 (node_growth_cache, edge_growth_cache): New global vars.
3664 (true_predicate, single_cond_predicate, false_predicate,
3665 not_inlined_predicate, add_condition, add_clause, and_predicates,
3666 or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
3667 dump_clause, dump_predicate, account_size_time,
3668 evaulate_conditions_for_edge): New functions.
3669 (inline_summary_alloc): Move to heap.
3670 (inline_node_removal_hook): Clear condition and entry vectors.
3671 (inline_edge_removal_hook): New function.
3672 (initialize_growth_caches, free_growth_caches): New function.
3673 (dump_inline_summary): Update.
3674 (edge_execution_predicate): New function.
3675 (will_be_nonconstant_predicate): New function.
3676 (estimate_function_body_sizes): Compute BB and constantness predicates.
3677 (compute_inline_parameters): Do not clear estimated_growth.
3678 (estimate_edge_size_and_time): New function.
3679 (estimate_calls_size_and_time): New function.
3680 (estimate_callee_size_and_time): New function.
3681 (remap_predicate): New function.
3682 (inline_merge_summary): New function.
3683 (do_estimate_edge_time): New function based on...
3684 (estimate_edge_time): ... this one.
3685 (do_estimate_edge_growth): New function.
3686 (do_estimate_growth): New function based on....
3687 (estimate_growth): ... this one.
3688 (inline_analyze_function): Analyze after deciding on jump functions.
3689 (inline_read_section): New function.
3690 (inline_read_summary): Use it.
3691 (inline_write_summary): Write all the new data.
3692 * ipa-prop.c (ipa_get_param_decl_index): Export.
3693 (ipa_lattice_from_jfunc): Move here from ipa-cp.c
3694 * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
3696 (ipa_get_lattice): Move here from ipa-cp.c
3697 * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
3698 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
3699 * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
3700 cgraph_edge_inlinable_p): Remove.
3701 * cgraphunit.c: Include ipainline.h
3702 (cgraph_process_new_functions): Update call of
3703 compute_inline_parameters.
3705 2011-04-22 Richard Guenther <rguenther@suse.de>
3707 * tree.c (build_int_cst): Properly create canonicalized integer
3709 (build_int_cst_type): Remove scary comments.
3711 2011-04-22 Xinliang David Li <davidxl@google.com>
3713 * toplev.c (process_options): Enable -Werror=coverage-mismatch
3714 by default when -Wno-error is not specified.
3715 * opts-global.c (decode_options): Remove call to
3716 control_warning_options.
3718 2011-04-22 Jakub Jelinek <jakub@redhat.com>
3720 PR tree-optimization/48717
3721 * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
3722 ~A + A optimizations use build_int_cst_type instead of build_int_cst.
3724 2011-04-22 Joseph Myers <joseph@codesourcery.com>
3726 * config/bfin/bfin-protos.h (Mmode): Don't define. Expand
3727 definition where used.
3729 2011-04-22 Jakub Jelinek <jakub@redhat.com>
3732 * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
3733 TREE_STATIC variables declared inside of some OpenMP construct.
3735 2011-04-22 Martin Jambor <mjambor@suse.cz>
3738 * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
3740 2011-04-22 Alexander Monakov <amonakov@ispras.ru>
3743 * c-typeck.c (pop_init_level): Do not warn about initializing
3746 2011-04-22 Alan Modra <amodra@gmail.com>
3748 * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
3749 when returning call_cookie.
3750 (rs6000_function_ok_for_sibcall): Allow sibcalls via function
3751 pointers, to functions with no more vector args than the current
3752 function, and some non-local calls for ABI_V4.
3753 * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
3754 sibcall_nonlocal_aix64): Combine to ..
3755 (sibcall_nonlocal_aix<mode>): ..this. Handle function pointer calls.
3756 (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
3757 (sibcall_value_nonlocal_aix<mode>): ..likewise.
3758 (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
3759 (sibcall_value_nonlocal_sysv<mode>): Likewise. Correct call cookie
3761 * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
3762 sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
3763 sibcall_value_symbolic_64): Delete.
3765 2011-04-21 Xinliang David Li <davidxl@google.com>
3767 * cgraph.h: Remove pid.
3768 * cgraph.c: Remove pid.
3769 * value-prof.c (init_node_map): New function.
3770 (del_node_map): New function.
3771 (find_func_by_funcdef_no): New function.
3772 (gimple_ic_transform): Call new function.
3773 * cgraphunit.c (cgraph_finalize_function): Remove pid.
3774 * function.c (get_last_funcdef_no): New function.
3775 * function.h (get_last_funcdef_no): New function.
3776 * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
3777 to libgcov function.
3778 (tree-profiling): Call node map init and delete function.
3780 2011-04-21 Ian Lance Taylor <iant@google.com>
3782 * godump.c (go_format_type): Use exported Go name for anonymous
3785 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
3787 * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
3788 Call builtin_function_type_list instead of builtin_function_type.
3789 (UNARY, BINARY, TRINARY, QUAD): Likewise.
3791 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
3793 * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
3794 build_function_type_list instead of build_function_type.
3795 Delete variable `endlink'.
3797 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
3799 * config/s390/s390.c (s390_init_builtins): Call
3800 build_function_type_list instead of build_function_type.
3802 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
3804 * config/ia64/ia64.c (ia64_init_builtins): Call
3805 build_function_type_list instead of builtin_function_type.
3807 2011-04-21 Easwaran Raman <eraman@google.com>
3809 * cfgexpand.c (stack_var): Remove OFFSET...
3810 (add_stack_var): ...and its reference here...
3811 (expand_stack_vars): ...and here.
3812 (stack_var_cmp): Sort by descending order of size.
3813 (partition_stack_vars): Change heuristic.
3814 (union_stack_vars): Fix to reflect changes in partition_stack_vars.
3815 (dump_stack_var_partition): Add newline after each partition.
3817 2011-04-21 Dimitrios Apostolou <jimis@gmx.net>
3818 Jeff Law <law@redhat.com>
3820 * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
3821 * gengtype.c (matching_file_name_substitute): Likewise.
3823 2011-04-21 Richard Guenther <rguenther@suse.de>
3826 * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
3828 2011-04-21 Eric Botcazou <ebotcazou@adacore.com>
3830 * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
3832 2011-04-21 Richard Guenther <rguenther@suse.de>
3834 * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
3837 2011-04-21 Richard Guenther <rguenther@suse.de>
3839 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
3840 MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
3841 Use DECL_P, not SSA_VAR_P.
3842 (ptr_derefs_may_alias_p): Likewise.
3843 (ptr_deref_may_alias_ref_p_1): Likewise.
3844 (decl_refs_may_alias_p): Likewise.
3845 (refs_may_alias_p_1): Likewise.
3846 (ref_maybe_used_by_call_p_1): Likewise.
3847 (call_may_clobber_ref_p_1): Likewise.
3848 (indirect_ref_may_alias_decl_p): Assume indirect refrences
3849 are either MEM_REF or TARGET_MEM_REF.
3850 (indirect_refs_may_alias_p): Likewise.
3851 * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
3852 for MEM_EXPR of indirect calls.
3854 2011-04-21 Tristan Gingold <gingold@adacore.com>
3856 * vmsdbgout.c (write_srccorr): Compute file length from the string.
3857 (dst_file_info_struct): Remove flen field.
3858 (lookup_filename): Remove code that set flen field.
3860 2011-04-21 Tristan Gingold <gingold@adacore.com>
3862 * config/ia64/ia64.c (ia64_start_function): Add a guard.
3864 2011-04-21 Uros Bizjak <ubizjak@gmail.com>
3867 * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
3868 vec_extract and vec_concat for non-SSE4_1 targets.
3870 2011-04-21 Richard Guenther <rguenther@suse.de>
3872 * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
3875 2011-04-21 Joseph Myers <joseph@codesourcery.com>
3877 * config/i386/cygming.h (union tree_node, TREE): Don't define or
3879 (FILE): Don't undefine.
3881 2011-04-21 Joseph Myers <joseph@codesourcery.com>
3883 * config/alpha/alpha.c (struct machine_function): Use rtx, not
3885 * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
3887 * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
3888 * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
3889 * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
3891 * config/m32c/m32c-protos.h (MM, UINT): Don't define. Expand
3892 definitions where used.
3893 * config/microblaze/microblaze.h (struct microblaze_args): Use
3894 rtx, not struct rtx_def *.
3895 * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
3897 * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
3898 * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
3899 * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
3900 not struct rtx_def *.
3901 * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
3903 * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
3905 * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
3907 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
3909 * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
3910 operand_equal_p to compare DR_BASE_ADDRESSes.
3911 (vect_check_interleaving): Likewise.
3913 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
3916 * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
3917 for all Neon struct constants.
3919 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
3921 * target.def (legitimate_constant_p): New hook.
3922 * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
3923 (TARGET_LEGITIMATE_CONSTANT_P): ...this.
3924 * doc/tm.texi: Regenerate.
3925 * hooks.h (hook_bool_mode_rtx_true): Declare.
3926 * hooks.c (hook_bool_mode_rtx_true): Define.
3927 * system.h (LEGITIMATE_CONSTANT_P): Poison.
3928 * calls.c (precompute_register_parameters): Replace uses of
3929 LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
3930 (emit_library_call_value_1): Likewise.
3931 * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
3932 (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
3933 * ira-costs.c (scan_one_insn): Likewise.
3934 * recog.c (general_operand, immediate_operand): Likewise.
3935 * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
3936 * reload1.c (init_eliminable_invariants): Likewise.
3938 * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
3940 * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
3941 * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
3943 (TARGET_LEGITIMATE_CONSTANT_P): Define.
3944 * config/alpha/predicates.md (input_operand): Update call to
3945 alpha_legitimate_constant_p.
3947 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
3948 * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
3949 (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
3950 * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3951 (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
3952 (arm_legitimate_constant_p): New functions.
3953 (arm_cannot_force_const_mem): Make static.
3955 * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
3957 * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
3958 * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
3959 * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
3960 instead of bfin_legitimate_constant_p.
3961 (bfin_legitimate_constant_p): Make static. Add a mode argument.
3962 (TARGET_LEGITIMATE_CONSTANT_P): Define.
3964 * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
3966 * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
3968 * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
3969 * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
3970 * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3971 (frv_legitimate_constant_p): Make static. Add a mode argument.
3973 * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
3974 * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
3975 * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
3977 * config/i386/i386-protos.h (legitimate_constant_p): Delete.
3978 * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
3979 * config/i386/i386.c (legitimate_constant_p): Rename to...
3980 (ix86_legitimate_constant_p): ...this. Make static. Add a mode
3982 (ix86_cannot_force_const_mem): Update accordingly.
3983 (ix86_legitimate_address_p): Likewise.
3984 (TARGET_LEGITIMATE_CONSTANT_P): Define.
3985 * config/i386/i386.md: Update commentary.
3987 * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
3988 * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
3989 * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3990 (ia64_legitimate_constant_p): Make static. Add a mode argument.
3992 * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
3994 * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
3995 * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
3996 * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3997 (lm32_legitimate_constant_p): Make static. Add a mode argument.
3999 * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
4000 * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
4001 * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
4003 * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
4004 * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4005 (m32r_legitimate_constant_p): New function.
4007 * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
4008 * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
4009 LEGITIMATE_CONSTANT_P.
4010 (LEGITIMATE_CONSTANT_P): Delete.
4011 * config/m68k/m68k.c (m68k_expand_prologue): Call
4012 m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
4013 (m68k_legitimate_constant_p): New function.
4014 * config/m68k/m68k.md: Update comments.
4016 * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
4017 * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4018 (mcore_legitimate_constant_p): New function.
4020 * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
4021 * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
4022 * config/mep/mep.c (mep_legitimate_constant_p): Make static.
4023 Add a mode argument.
4024 (mep_legitimate_address): Update accordingly.
4025 (TARGET_LEGITIMATE_CONSTANT_P): Define.
4027 * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
4029 * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
4030 * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
4031 static. Check OP's mode for VOIDmode.
4032 (microblaze_legitimate_constant_p): New function.
4033 (TARGET_LEGITIMATE_CONSTANT_P): Define.
4035 * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
4036 * config/mips/mips.c (mips_legitimate_constant_p): New function.
4037 (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
4038 (TARGET_LEGITIMATE_CONSTANT_P): Define.
4039 * config/mips/predicates.md: Update comments.
4041 * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
4042 * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
4043 * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4044 (mmix_legitimate_constant_p): Make static, return a bool, and take
4046 (mmix_print_operand_address): Update accordingly.
4048 * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
4050 * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
4051 * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
4052 static. Add a mode argument.
4053 (TARGET_LEGITIMATE_CONSTANT_P): Define.
4055 * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
4057 * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
4058 * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4059 (pa_legitimate_constant_p): New function.
4061 * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
4063 * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
4064 * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4065 (pdp11_legitimate_constant_p): New function.
4067 * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
4068 * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4069 (rs6000_legitimate_constant_p): New function.
4071 * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
4072 (rx_legitimate_constant_p): ...this.
4073 * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
4074 * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
4075 (rx_legitimate_constant_p): ...this.
4076 (TARGET_LEGITIMATE_CONSTANT_P): Define.
4077 * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
4079 * config/s390/s390-protos.h (legitimate_constant_p): Delete.
4080 * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
4081 * config/s390/s390.c (legitimate_constant_p): Rename to...
4082 (s390_legitimate_constant_p): ...this. Make static, return a bool,
4083 and add a mode argument.
4084 (TARGET_LEGITIMATE_CONSTANT_P): Define.
4086 * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
4088 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
4089 * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4090 (sh_legitimate_constant_p): New function.
4092 * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
4093 * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
4094 * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4095 (legitimate_constant_p): Rename to...
4096 (sparc_legitimate_constant_p): ...this. Make static. Add a mode
4098 (constant_address_p): Update accordingly.
4100 * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
4101 argument and return a bool.
4102 * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
4103 * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4104 (spu_legitimate_constant_p): Add a mode argument and return a bool.
4105 (spu_rtx_costs): Update accordingly.
4106 * config/spu/predicates.md (vec_imm_operand): Likewise.
4108 * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
4110 * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
4111 * config/v850/v850.c (v850_legitimate_constant_p): New function.
4112 (TARGET_LEGITIMATE_CONSTANT_P): Define.
4114 * config/vax/vax-protos.h (legitimate_constant_p): Delete.
4115 * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
4116 * config/vax/vax.c (legitimate_constant_p): Likewise.
4118 * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
4119 * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4120 (xtensa_legitimate_constant_p): New function.
4122 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
4124 * target.def (cannot_force_const_mem): Add a mode argument.
4125 * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
4126 * doc/tm.texi: Regenerate.
4127 * hooks.h (hook_bool_mode_rtx_false): Declare.
4128 * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
4129 (hook_bool_mode_const_rtx_true): Likewise.
4130 (hook_bool_mode_rtx_false): New function.
4131 * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
4132 to be non-VOID. Update call to cannot_force_const_mem.
4133 (find_reloads): Update accordingly.
4134 * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
4135 * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
4137 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
4138 * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
4139 * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
4140 * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
4141 * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
4142 * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
4143 * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
4144 * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
4145 (m68k_cannot_force_const_mem): ...this new function.
4146 * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
4148 (mips_const_insns, mips_legitimize_const_move): Update calls.
4149 (mips_secondary_reload_class): Likewise.
4150 * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
4151 (pa_cannot_force_const_mem): ...this new function.
4152 * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
4153 (rs6000_cannot_force_const_mem): ...this new function.
4154 * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
4156 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
4157 * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
4159 (xtensa_cannot_force_const_mem): ...this new function.
4161 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
4163 * config/mips/mips.c (mips16_build_function_stub): Call
4164 build_function_type_list instead of build_function_type.
4165 (mips16_build_call_stub): Likewise.
4167 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
4169 * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
4170 instead of build_function_type.
4172 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
4174 * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
4175 instead of build_function_type.
4177 2011-04-20 Uros Bizjak <ubizjak@gmail.com>
4180 * config/i386/i386.md (insv): Change operand 0 constraint to
4181 "register_operand". Change operand 1 and 2 constraint to
4182 "const_int_operand". Expand to pinsr{b,w,d,q} * when appropriate.
4183 * config/i386/sse.md (sse4_1_pinsrb): Export.
4184 (sse2_pinsrw): Ditto.
4185 (sse4_1_pinsrd): Ditto.
4186 (sse4_1_pinsrq): Ditto.
4187 * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
4188 * config/i386/i386.c (ix86_expand_pinsr): New.
4190 2011-04-20 Easwaran Raman <eraman@google.com>
4192 * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
4193 containing union type only with -fstrict-aliasing.
4195 2011-04-20 Jim Meyering <meyering@redhat.com>
4197 Remove useless if-before-free tests.
4198 * calls.c (expand_call, save_area): Likewise.
4199 * cfgcleanup.c (try_forward_edges): Likewise.
4200 * collect2.c (collect_execute): Likewise.
4201 * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
4202 * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
4203 * coverage.c (coverage_checksum_string): Likewise.
4204 * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
4205 * cselib.c (cselib_init): Likewise.
4206 * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
4207 (df_set_clean_cfg): Likewise.
4208 * function.c (free_after_compilation): Likewise.
4209 * gcc.c (do_spec_1, main): Likewise.
4210 * gcov.c (create_file_names): Likewise.
4211 * gensupport.c (identify_predicable_attribute): Likewise.
4212 * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
4213 * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
4214 * haifa-sched.c (haifa_finish_h_i_d): Likewise.
4215 * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
4216 * ipa-pure-const.c (local_pure_const): Likewise.
4217 * ipa-reference.c (propagate): Likewise.
4218 * ira-costs.c (free_ira_costs): Likewise.
4219 * ira.c (free_register_move_costs, build_insn_chain): Likewise.
4220 * matrix-reorg.c (mat_free): Likewise.
4221 * prefix.c (get_key_value): Likewise.
4222 * profile.c (compute_value_histograms): Likewise.
4223 * reload1.c (free_reg_equiv): Likewise.
4224 * sched-deps.c (free_deps): Likewise.
4225 * sel-sched-ir.c (fence_clear): Likewise.
4226 * sese.c (set_rename, if_region_set_false_region): Likewise.
4227 * tree-data-ref.c (free_rdg): Likewise.
4228 * tree-eh.c (lower_try_finally): Likewise.
4229 * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
4230 * tree-ssa-live.c (delete_var_map): Likewise.
4231 * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
4232 * tree-ssa-pre.c (phi_trans_add): Likewise.
4234 2011-04-20 Jakub Jelinek <jakub@redhat.com>
4236 PR tree-optimization/48611
4237 * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
4238 beyond ERT_MUST_NOT_THROW region.
4240 2011-04-20 Catherine Moore <clm@codesourcery.com>
4242 * config/mips/mips.opt (mfix-24k): New.
4243 * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
4244 * config/mips/mips.md (length): Increase by 4 for stores if
4246 * config/mips/mips.c (mips_reorg_process_insns): Do not allow
4247 all noreorder if fixing 24K errata.
4248 * doc/invoke.texi: Document mfix-24k.
4250 2011-04-20 Chung-Lin Tang <cltang@codesourcery.com>
4252 * config/arm/arm.c (arm_legitimize_reload_address): For NEON
4253 quad-word modes, reduce to 9-bit index range when above 1016 limit.
4255 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
4257 * config/arm/arm.c (arm_gen_constant): Move movw support ....
4258 (const_ok_for_op): ... to here.
4260 2011-04-20 Kai Tietz <ktietz@redhat.com>
4262 * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
4263 and (X && !Y) | (!X && Y) optimization to (X ^ Y).
4265 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
4267 * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
4269 2011-04-20 Richard Guenther <rguenther@suse.de>
4271 PR tree-optimization/47892
4272 * tree-if-conv.c (if_convertible_stmt_p): Const builtins
4275 2011-04-20 Eric Botcazou <ebotcazou@adacore.com>
4277 * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
4279 2011-04-20 Tristan Gingold <gingold@adacore.com>
4281 * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
4283 2011-04-20 Georg-Johann Lay <avr@gjlay.de>
4287 * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
4288 (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
4289 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
4290 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
4291 (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
4293 * config/avr/avr-protos.h (avr_asm_output_aligned_common):
4296 * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
4297 (avr_asm_named_section, avr_asm_output_aligned_common,
4298 avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
4299 New functions to update...
4300 (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
4301 (avr_asm_init_sections): Overwrite section callbacks for
4302 data_section, bss_section.
4303 (avr_file_start): Move output of __do_copy_data, __do_clear_bss
4305 (avr_file_end): ...here.
4307 2011-04-20 Richard Guenther <rguenther@suse.de>
4310 * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
4311 objects and types here. Adjust for their offset before comparing.
4313 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
4315 * tree-vect-stmts.c (vectorizable_store): Only chain one related
4318 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
4320 * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
4321 (GIMPLE_H): Include $(INTERNAL_FN_H).
4322 (OBJS-common): Add internal-fn.o.
4323 (internal-fn.o): New rule.
4324 * internal-fn.def: New file.
4325 * internal-fn.h: Likewise.
4326 * internal-fn.c: Likewise.
4327 * gimple.h: Include internal-fn.h.
4328 (GF_CALL_INTERNAL): New gf_mask.
4329 (gimple_statement_call): Put fntype into a union with a new
4331 (gimple_build_call_internal): Declare.
4332 (gimple_build_call_internal_vec): Likewise.
4333 (gimple_call_same_target_p): Likewise.
4334 (gimple_call_internal_p): New function.
4335 (gimple_call_internal_fn): Likewise.
4336 (gimple_call_fntype): Return null for internal calls.
4337 (gimple_call_set_fntype): Assert that the function is not internal.
4338 (gimple_call_set_fn): Likewise.
4339 (gimple_call_set_fndecl): Likewise.
4340 (gimple_call_set_internal_fn): New function.
4341 (gimple_call_addr_fndecl): Handle null functions.
4342 (gimple_call_return_type): Likewise null types.
4343 * gimple.c (gimple_build_call_internal_1): New function.
4344 (gimple_build_call_internal): Likewise.
4345 (gimple_build_call_internal_vec): Likewise.
4346 (gimple_call_same_target_p): Likewise.
4347 (gimple_call_flags): Handle calls to internal functions.
4348 (gimple_call_fnspec): New function.
4349 (gimple_call_arg_flags, gimple_call_return_flags): Use it.
4350 (gimple_has_side_effects): Handle null functions.
4351 (gimple_rhs_has_side_effects): Likewise.
4352 (gimple_call_copy_skip_args): Handle calls to internal functions.
4353 * cfgexpand.c (expand_call_stmt): Likewise.
4354 * expr.c (expand_expr_real_1): Assert that the call isn't internal.
4355 * gimple-fold.c (gimple_fold_call): Handle null functions.
4356 (gimple_fold_stmt_to_constant_1): Don't fold
4357 calls to internal functions.
4358 * gimple-low.c (gimple_check_call_args): Handle calls to internal
4360 * gimple-pretty-print.c (dump_gimple_call): Likewise.
4361 * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
4362 * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
4363 (do_warn_unused_result): Likewise.
4364 * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
4365 * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
4366 * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
4367 the target of a call.
4368 (initialize_hash_element): Update accordingly.
4369 (hashable_expr_equal_p): Use gimple_call_same_target_p.
4370 (iterative_hash_hashable_expr): Handle calls to internal functions.
4371 (print_expr_hash_elt): Likewise.
4372 * tree-ssa-pre.c (can_value_number_call): Likewise.
4373 (eliminate): Handle null functions.
4374 * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
4375 * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
4376 (find_func_aliases): Likewise.
4377 * value-prof.c (gimple_ic_transform): Likewise.
4378 (gimple_indirect_call_to_profile): Likewise.
4379 * lto-streamer-in.c (input_gimple_stmt): Likewise.
4380 * lto-streamer-out.c (output_gimple_stmt): Likewise.
4382 2011-04-19 Jan Hubicka <jh@suse.cz>
4384 * ipa-inline-transform.c (save_inline_function_body): Add comments.
4385 * ipa-inline.c (inline_small_functions): Compute summaries first,
4386 populate heap later.
4388 2011-04-19 Jan Hubicka <jh@suse.cz>
4390 * cgraph.h (save_inline_function_body): Remove.
4391 * ipa-inline-transform.c: New file, broke out of...
4392 * ipa-inline.c: ... this one; Update toplevel comment.
4393 (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
4395 (update_noncloned_frequencies): Move to ipa-inline-transform.c
4396 (cgraph_mark_inline_edge): Rename to inline_call; move to
4397 ipa-inline-transform.c.
4398 (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
4399 move to ipa-inline-transform.c
4400 (recursive_inlining, inline_small_functions, flatten_function,
4401 ipa_inline, inline_always_inline_functions,
4402 early_inline_small_functions): Update.
4403 (inline_transform): Move to ipa-inline-transform.c.
4404 * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
4406 * Makefile.in (ipa-inline-transform.o): New file.
4407 * cgraphunit.c (save_inline_function_body): Move to
4408 ipa-inline-transform.c
4410 2011-04-19 DJ Delorie <dj@redhat.com>
4412 * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
4413 registers if we already know there aren't any.
4414 (m32c_emit_epilogue): Don't emit a barrier here.
4415 (m32c_emit_eh_epilogue): Likewise.
4416 * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
4417 operands at expand time.
4418 * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
4420 (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
4421 duplicates. Provide aliases instead.
4422 * config/m32c/prologue.md (eh_return): Emit a barrier here.
4423 (eh_epilogue): Add a "(return)" here as a hint to other parts of
4426 2011-04-19 Anatoly Sokolov <aesok@post.ru>
4428 * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
4429 * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
4430 (general_or_i64_p, sparc_register_move_cost): New function.
4432 2011-04-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4434 * doc/install.texi (Configuration, --enable-threads): Remove mach.
4435 Add lynx, mipssde. Sort table.
4437 2011-04-19 Xinliang David Li <davidxl@google.com>
4439 * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
4442 2011-04-19 Jakub Jelinek <jakub@redhat.com>
4445 * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
4446 is a SUBREG with non-MODE_INT mode inside of it.
4448 2011-04-19 Martin Jambor <mjambor@suse.cz>
4450 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
4451 also according to actual contants.
4452 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
4453 (gimple_fold_call): Use it.
4454 * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
4456 2011-04-19 Martin Jambor <mjambor@suse.cz>
4458 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
4459 non-pointer assignments.
4461 2011-04-19 Martin Jambor <mjambor@suse.cz>
4463 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
4464 account anc_offset and otr_type from the indirect edge info.
4465 * ipa-prop.c (get_ancestor_addr_info): New function.
4466 (compute_complex_ancestor_jump_func): Assignment analysis moved to
4467 get_ancestor_addr_info, call it.
4468 (ipa_note_param_call): Do not initialize information about polymorphic
4469 calls, return the indirect call graph edge. Remove the last
4470 parameter, adjust all callers.
4471 (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
4472 parameters. Initialize polymorphic information in the indirect edge.
4474 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
4477 * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
4478 the types if they have different enumeration identifiers.
4480 2011-04-19 Jan Hubicka <jh@suse.cz>
4482 * cgraph.h (cgraph_optimize_for_size_p): Declare.
4483 * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
4484 * predict.c (cgraph_optimize_for_size_p): Break out from ...
4485 (optimize_function_for_size_p) ... here.
4487 2011-04-19 Richard Guenther <rguenther@suse.de>
4490 * tree.c (free_lang_data): Do not reset the decl-assembler-name
4493 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
4495 * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
4496 if DECL_NO_INLINE_WARNING_P is set on the function.
4498 2011-04-19 Bernd Schmidt <bernds@codesourcery.com>
4501 * reload1.c (inc_for_reload): Return void. All callers changed.
4502 (emit_input_reload_insns): Don't try to delete previous output
4503 reloads to a register, or record spill_reg_store for autoincs.
4505 2011-04-19 Basile Starynkevitch <basile@starynkevitch.net>
4507 * gengtype.h: Updated copyright year.
4508 (struct input_file_st): Add inpisplugin field.
4509 (type_fileloc): New function.
4511 (write_typed_struct_alloc_def): Add gcc_assert.
4512 (write_typed_alloc_defns): Ditto. Don't output for plugin files.
4513 (write_typed_alloc_defns): Don't output for plugin files.
4514 (input_file_by_name): Clear inpisplugin field.
4515 (main): Set inpisplugin field for plugin files.
4517 2011-04-19 Nicola Pero <nicola.pero@meta-innovation.com>
4519 * gengtype-state.c (string_eq): New.
4520 (read_state): Use string_eq instead of strcmp when creating the
4523 2011-04-19 Wei Guozhi <carrot@google.com>
4526 * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
4527 * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
4529 * config/arm/constraints.md (Uu): New constraint.
4530 * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
4532 2011-04-19 Tristan Gingold <gingold@adacore.com>
4534 * config.gcc (-*-*-*vms): Added.
4535 (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
4537 * config/vms/vms-ld.c: New file.
4538 * config/vms/vms-ar.c: New file.
4539 * config/vms/t-vmsnative: New file.
4541 2011-04-18 Xinliang David Li <davidxl@google.com>
4543 * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
4545 2011-04-18 Jakub Jelinek <jakub@redhat.com>
4548 * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
4549 if TREE_TYPE (v) is non-NULL.
4551 * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
4552 gimple_get_virt_mehtod_for_binfo.
4553 * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
4554 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
4556 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
4558 2011-04-18 Michael Matz <matz@suse.de>
4559 Steve Ellcey <sje@cup.hp.com>
4561 * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
4562 use its mode as source mode if it isn't VOIDmode.
4564 2011-04-18 Dennis, CHENG Renquan <crquan@fedoraproject.org>
4566 * doc/passes.texi: Fill crossref nodes.
4568 2011-04-18 Jim Meyering <meyering@redhat.com>
4570 Fix doubled-word typos in comments and strings
4571 * config/alpha/vms-unwind.h: s/for for/for/
4572 * config/arm/unwind-arm.h: Likewise.
4573 * config/microblaze/microblaze.c: Likewise.
4574 * config/sh/constraints.md: s/in in/in/
4575 * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
4577 2011-04-18 Uros Bizjak <ubizjak@gmail.com>
4579 * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
4580 (AVX_FLOAT_MODE_P): Ditto.
4581 (AVX128_VEC_FLOAT_MODE_P): Ditto.
4582 (AVX256_VEC_FLOAT_MODE_P): Ditto.
4583 (AVX_VEC_FLOAT_MODE_P): Ditto.
4584 * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
4585 (UNSPEC_MASKSTORE): Ditto.
4586 * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
4587 Merge from <sse>_movmsk<ssemodesuffix> and
4588 avx_movmsk<ssemodesuffix>256. Use VF mode iterator.
4589 (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64. Use P mode
4591 (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
4592 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
4593 (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
4595 2011-04-18 Jan Hubicka <jh@suse.cz>
4597 * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
4599 * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
4600 (want_inline_function_called_once_p): Break out the logic from
4602 (edge_badness): Ensure that profile is not misupdated.
4603 (lookup_recursive_calls): Prioritize by call frequencies.
4604 (inline_small_functions): Move program size estimates here;
4605 actually process whole queue even when unit growth has been
4606 met. (to properly compute inline_failed reasons and for the
4607 case unit size decrease.) Revisit comments on recursive inlining.
4608 (ipa_inline): Remove unit summary code; first inline hot calls
4609 of functions called once, cold calls next.
4610 (order, nnodes): Remove unused variables.
4611 * Makefile.in (ipa-inline.o): No longer depent on ggc files.
4612 (GTFILES): Remove ipa-inline.c
4613 * sel-sched.c (fill_insns): Silence uninitialized var warning.
4615 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
4617 * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
4619 2011-04-18 Jie Zhang <jie@codesourcery.com>
4620 Richard Earnshaw <rearnsha@arm.com>
4622 * arm.c (neon_builtin_type_bits): Remove.
4623 (typedef enum neon_builtin_mode): New.
4624 (T_MAX): Don't define.
4625 (typedef enum neon_builtin_datum): Remove bits, codes[],
4626 num_vars and base_fcode. Add mode, code and fcode.
4627 (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
4628 VAR10): Change accordingly.
4629 (neon_builtin_data[]): Change accordingly
4630 (arm_init_neon_builtins): Change accordingly.
4631 (neon_builtin_compare): Remove.
4632 (locate_neon_builtin_icode): Remove.
4633 (arm_expand_neon_builtin): Change accordingly.
4635 * arm.h (enum arm_builtins): Move to ...
4636 * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
4638 * arm.c (arm_builtin_decl): Declare.
4639 (TARGET_BUILTIN_DECL): Define.
4640 (enum arm_builtins): Correct ARM_BUILTIN_MAX.
4641 (arm_builtin_decls[]): New.
4642 (arm_init_neon_builtins): Store builtin declarations in
4643 arm_builtin_decls[].
4644 (arm_init_tls_builtins): Likewise.
4645 (arm_init_iwmmxt_builtins): Likewise. Refactor initialization code.
4646 (arm_builtin_decl): New.
4648 2011-04-18 Richard Guenther <rguenther@suse.de>
4650 * tree.c (upper_bound_in_type): Build properly canonicalized
4652 (lower_bound_in_type): Likewise.
4654 2011-04-18 Richard Guenther <rguenther@suse.de>
4656 * gimple.h (gimple_call_addr_fndecl): New function.
4657 (gimple_call_fndecl): Use it.
4658 * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
4660 * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
4661 * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
4663 2011-04-18 Richard Guenther <rguenther@suse.de>
4666 * tree.c (build_string): STRING_CST is now derived from tree_typed.
4668 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
4671 * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
4672 DECL_IN_CONSTANT_POOL without RTL.
4674 2011-04-18 Ulrich Weigand <ulrich.weigand@linaro.org>
4675 Ira Rosen <ira.rosen@linaro.org>
4678 * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
4679 to match neon_vzip/vuzp/vtrn_internal.
4680 * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
4681 outputs explicitly dependent on both inputs.
4682 (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
4684 2011-04-18 Jakub Jelinek <jakub@redhat.com>
4686 PR tree-optimization/48616
4687 * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
4688 whether the shift is by scalar or vector based on whether all SLP
4689 scalar stmts have the same rhs.
4691 2011-04-17 Chung-Lin Tang <cltang@codesourcery.com>
4693 * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
4696 2011-04-17 Richard Sandiford <rdsandiford@googlemail.com>
4698 * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
4701 2011-04-17 Jan Hubicka <jh@suse.cz>
4703 * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
4704 * cgrpahunit.c (cgraph_finalize_function): Do not set
4705 finalized_by_frontend.
4706 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
4707 finalized_by_frontend.
4709 2011-04-17 Jan Hubicka <jh@suse.cz>
4711 * cgraph.c (cgraph_clone_node): Do not handle vtable_method
4712 * cgraph.h (struct cgraph_local_info): Drop vtable_method.
4713 * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
4714 * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
4716 * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
4718 * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
4720 2011-04-17 Eric Botcazou <ebotcazou@adacore.com>
4723 * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
4724 is non-null before accessing it.
4725 (input_cgraph): Remove trailing spaces.
4727 2011-04-17 Revital Eres <revital.eres@linaro.org>
4729 * params.def (sms-min-sc): New param flag.
4730 * modulo-sched.c (sms_schedule): Use it.
4731 * doc/invoke.texi (sms-min-sc): Document it.
4733 2011-04-17 Jan Hubicka <jh@suse.cz>
4735 * lto-symtab.c (lto_cgraph_replace_node): When call statement is
4736 present, also set gimple_call_set_cannot_inline.
4737 * ipa-inline.c: Update toplevel comment.
4739 (cgraph_clone_inlined_nodes): Fix linebreaks.
4740 (cgraph_check_inline_limits): Restructure to ...
4741 (caller_growth_limits): ... this one; be more tolerant
4742 on growth in nested inline chains; add explanatory comment;
4743 fix stack accounting thinko introduced by previous patch.
4744 (cgraph_default_inline_p): Remove.
4745 (report_inline_failed_reason): New function.
4746 (can_inline_edge_p): New function.
4747 (can_early_inline_edge_p): New function.
4748 (leaf_node_p): Move upwards in file.
4749 (want_early_inline_function_p): New function.
4750 (want_inline_small_function_p): New function.
4751 (want_inline_self_recursive_call_p): New function.
4752 (cgraph_edge_badness): Rename to ...
4753 (edge_badness) ... this one; fix linebreaks.
4754 (update_edge_key): Update call of edge_baddness; add
4755 detailed dump about queue updates.
4756 (update_caller_keys): Use can_inline_edge_p and
4757 want_inline_small_function_p.
4758 (cgraph_decide_recursive_inlining): Rename to...
4759 (recursive_inlining): Use can_inline_edge_p and
4760 want_inline_self_recursive_call_p; simplify and remove no longer
4762 (cgraph_set_inline_failed): Remove.
4763 (add_new_edges_to_heap): Use can_inline_edge_p and
4764 want_inline_small_function_p.
4765 (cgraph_decide_inlining_of_small_functions): Rename to ...
4766 (inline_small_functions): ... this one; cleanup; use
4767 can/want predicates; cleanup debug ouput; work edges till fibheap
4768 is exhausted and do not stop once unit growth is reached; remove
4769 later loop processing remaining edges.
4770 (cgraph_flatten): Rename to ...
4771 (flatten_function): ... this one; use can_inline_edge_p
4772 and can_early_inline_edge_p predicates.
4773 (cgraph_decide_inlining): Rename to ...
4774 (ipa_inline): ... this one; remove unreachable nodes before
4775 inlining functions called once; simplify the pass.
4776 (cgraph_perform_always_inlining): Rename to ...
4777 (inline_always_inline_functions): ... this one; use
4778 DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
4779 (cgraph_decide_inlining_incrementally): Rename to ...
4780 (early_inline_small_functions): ... this one; simplify
4781 using new predicates; cleanup; make dumps prettier.
4782 (cgraph_early_inlining): Rename to ...
4783 (early_inliner): newer inline regular functions into always-inlines;
4784 fix updating of call stmt summaries.
4785 (pass_early_inline): Update for new names.
4786 (inline_transform): Fix formating.
4787 (gate_cgraph_decide_inlining): Rename to ...
4788 (pass_ipa_inline): ... this one.
4789 * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
4790 * ipa-inline-analysis.c (dump_inline_summary): Update.
4791 (compute_inline_parameters): Do not compute disregard_inline_limits;
4792 look for mismatching arguments.
4793 (estimate_growth): Fix handlig of non-trivial self recursion.
4794 (inline_read_summary): Do not read info->disregard_inline_limits.
4795 (inline_write_summary): Do not write info->disregard_inline_limits.
4796 * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
4797 and move all checks into can_inline_edge_p predicate; re-enable code
4798 comparing optimization levels.
4799 (expand_call_inline): Do not test inline_forbidden_into_p.
4800 * Makefile.in (ipa-inline.o): Update arguments.
4802 2011-04-17 Revital Eres <revital.eres@linaro.org>
4804 * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
4806 2011-04-17 Revital Eres <revital.eres@linaro.org>
4808 * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
4810 2011-04-17 Michael Matz <matz@suse.de>
4812 PR tree-optimization/48622
4814 * ipa-inline-analysis.c (inline_read_summary): Read size/time
4815 in same order as they're written.
4817 2011-04-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4819 * config/pa/predicates.md: Reorganize and simplify predicates.
4820 Eliminate duplicate code checks.
4821 (arith_operand): Rename to arith14_operand
4822 (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
4823 * config/pa/pa.md: Use renamed operands.
4824 * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
4825 (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
4826 arith11_operand, adddi3_operand, indexed_memory_operand,
4827 symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
4828 arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
4829 borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
4830 move_dest_operand, move_src_operand, prefetch_cc_operand,
4831 prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
4832 uint32_operand, reg_before_reload_operand, reg_or_0_operand,
4833 reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
4834 div_operand, int5_operand, movb_comparison_operator,
4835 ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
4836 arith_double_operand, ireg_operand, lhs_lshift_operand,
4837 pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
4838 integer_store_memory_operand): Likewise.
4839 * config/pa/pa.c (adddi3_operand): Move to predicates.md.
4840 (integer_store_memory_operand, read_only_operand,
4841 function_label_operand, borx_reg_operand,
4842 non_hard_reg_operand): Likewise.
4843 (eq_neq_comparison_operator): Delete unused operator.
4844 (legitimize_pic_address): Use VOIDmode for mode argument in calls to
4845 function_label_operand.
4846 (emit_move_sequence): Likewise.
4848 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
4850 * config/i386/sse.md (sseunpackmode): New mode attribute.
4851 (ssepackmode): Ditto.
4852 (vec_pack_trunc_<mode>): Macroize expander from
4853 vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
4854 (vec_unpacks_lo_<mode>): Macroize expander from
4855 vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
4856 (vec_unpacks_hi_<mode>): Macroize expander from
4857 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
4858 (vec_unpacku_lo_<mode>): Macroize expander from
4859 vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
4860 (vec_unpacku_hi_<mode>): Macroize expander from
4861 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
4862 * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
4863 ix86_expand_sse4_unpack.
4864 * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
4866 2011-04-16 Jan Hubicka <jh@suse.cz>
4868 * cgraphbuild.c: Include ipa-inline.h.
4869 (reset_inline_failed): Use initialize_inline_failed.
4870 * cgraph.c: Include ipa-inline.h.
4871 (cgraph_create_node_1): Do not initialize estimated_growth.
4872 (initialize_inline_failed): More to ipa-inline-analysis.c
4873 (dump_cgraph_node): Do not dump inline flags.
4874 * cgraph.h (cgraph_local_info): Remove inlineable, versionable
4875 and disregard_inline_limits flags.
4876 (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
4877 time, size, estimated_growth.
4878 * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
4880 * cgraphunit.c (cgraph_decide_is_function_needed): Use
4881 DECL_DISREGARD_INLINE_LIMITS.
4882 (cgraph_analyze_function): Do not initialize
4883 node->local.disregard_inline_limits.
4884 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
4885 inlinable, versionable and disregard_inline_limits.
4886 * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
4887 cgraph_check_inline_limits, cgraph_default_inline_p,
4888 cgraph_edge_badness, update_caller_keys, update_callee_keys,
4889 add_new_edges_to_heap): Update.
4890 (cgraph_decide_inlining_of_small_function): Update; set
4891 CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
4892 (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
4893 cgraph_decide_inlining_incrementally): Update.
4894 * ipa-inline.h (inline_summary): Add inlinable, versionable,
4895 disregard_inline_limits, estimated_stack_size, stack_frame_offset,
4896 time, size and estimated_growth parameters.
4897 (estimate_edge_growth): Update.
4898 (initialize_inline_failed): Declare.
4899 * ipa-split.c: Include ipa-inline.h
4900 (execute_split_functions): Update.
4901 * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
4902 (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
4903 (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
4904 * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
4905 estimated_growth to INT_MIN.
4906 (inline_node_duplication_hook): Likewise.
4907 (dump_inline_summary): Dump new fields.
4908 (compute_inline_parameters): Update.
4909 (estimate_edge_time, estimate_time_after_inlining,
4910 estimate_size_after_inlining, estimate_growth, inline_read_summary,
4911 inline_write_summary):
4912 (initialize_inline_failed): Move here from cgraph.c.
4913 * tree-sra.c: Include ipa-inline.h.
4914 (ipa_sra_preliminary_function_checks): Update.
4915 * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
4918 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
4920 * config/i386/sse.md (V16): New mode iterator.
4922 (AVXMODEQI, AVXMODEDI): Remove.
4923 (sse2, sse3): New mode attribute.
4924 (mov<mode>): Use V16 mode iterator.
4925 (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
4926 (push<mode>1): Use V16 mode iterator.
4927 (movmisalign<mode>): Ditto.
4928 (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
4929 <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
4930 (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
4931 *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
4932 (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
4933 avx_movdqu<avxmodesuffix>.
4934 (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
4935 *avx_movdqu<avxmodesuffix>.
4936 (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
4937 avx_lddqu<avxmodesuffix>.
4938 (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
4939 (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
4940 avx_movnt<AVXMODEDI:mode>.
4941 * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
4942 renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
4944 2011-04-16 Bernd Schmidt <bernds@codesourcery.com>
4947 * haifa-sched.c (prune_ready_list, schedule_block): Use
4948 sched_pressure_p rather than flag_sched_pressure.
4950 2011-04-15 Pat Haugen <pthaugen@us.ibm.com>
4952 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
4953 cgraph_get_node instead of cgraph_get_create_node.
4955 2011-04-15 Jakub Jelinek <jakub@redhat.com>
4957 * cfgexpand.c (expand_debug_expr): Use
4958 simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
4960 2011-04-15 Michael Matz <matz@suse.de>
4962 * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
4963 * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
4964 * function.c (gimplify_parameters): Ditto.
4965 * gimplify.c (gimplify_vla_decl): Ditto.
4967 * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
4968 (gimple_call_set_alloca_for_var): New inline function.
4969 (gimple_call_alloca_for_var_p): Ditto.
4970 * gimple.c (gimple_build_call_from_tree): Remember
4971 CALL_ALLOCA_FOR_VAR_P state.
4972 * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
4974 * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
4975 calls if they were for VLA objects.
4977 2011-04-15 Martin Jambor <mjambor@suse.cz>
4979 * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
4982 2011-04-15 Martin Jambor <mjambor@suse.cz>
4985 * tree-emutls.c (lower_emutls_function_body): Call
4986 cgraph_get_create_node instead of cgraph_get_node. Do not assert the
4989 2011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
4991 * c-decl.c (detect_field_duplicates): Call
4992 objc_detect_field_duplicates instead of objc_get_interface_ivars.
4994 2011-04-15 Nathan Froyd <froydnj@codesourcery.com>
4996 * gimple.h (gimple_asm_clobbers_memory_p): Declare.
4997 * gimple.c (gimple_asm_clobbers_memory_p): Define.
4998 * ipa-pure-const.c (check_stmt): Call it.
4999 * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
5001 2011-04-15 Richard Guenther <rguenther@suse.de>
5003 PR tree-optimization/48290
5004 * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
5005 Properly decide inhibiting propagation based on the valueized
5006 operand. Do loop-closed SSA form preserving here ...
5007 (init_copy_prop): ... not here.
5009 2011-04-15 H.J. Lu <hongjiu.lu@intel.com>
5012 * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
5013 (*ieee_smax<mode>3): Likewise.
5015 2011-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5017 * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
5018 Replace match_operand with match_dup for the third operand in
5021 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
5023 * combine.c (subst, combine_simlify_rtx): Add new argument, use it
5024 to track processing of conditionals. Update all callers.
5025 (try_combine, simplify_if_then_else): Update.
5027 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
5029 * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
5032 2011-04-15 Georg-Johann Lay <avr@gjlay.de>
5034 * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
5035 instead of match_operand for operand 3.
5037 2011-04-15 Richard Sandiford <richard.sandiford@linaro.org>
5039 * recog.h (insn_operand_data): Add an "allows_mem" field.
5040 * genoutput.c (output_operand_data): Initialize it.
5041 * optabs.c (maybe_legitimize_operand_same_code): New function.
5042 (maybe_legitimize_operand): Use it when matching the original
5045 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
5047 * gimplify.c: Fix issues in comments throughout.
5048 (voidify_wrapper_expr): Fix long line.
5049 (build_stack_save_restore): Likewise.
5050 (gimplify_loop_expr): Likewise.
5051 (gimplify_compound_lval): Likewise.
5052 (gimplify_init_ctor_eval): Likewise.
5053 (gimplify_modify_expr_rhs): Likewise.
5054 (omp_notice_threadprivate_variable): Likewise.
5056 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
5058 * cfgexpand.c (expand_call_stmt): Convert the function type to the
5059 original one if this is not a builtin function.
5061 2011-04-14 Jakub Jelinek <jakub@redhat.com>
5064 * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
5065 offset it as needed based on top 2 bits in operands[3], change
5066 MEM mode to SFmode and mask those 2 bits away from operands[3].
5068 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
5070 * c-parser.c (c_parser_objc_protocol_definition): Updated for
5071 change from objc_declare_protocols() to objc_declare_protocol().
5073 2011-04-14 Uros Bizjak <ubizjak@gmail.com>
5075 * config/i386/sse.md (sse4_1): New mode attribute.
5076 (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
5077 avx_blend<ssemodesuffix><avxmodesuffix> and
5078 sse4_1_blend<ssemodesuffix> using VF mode iterator.
5079 (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
5080 avx_blendv<ssemodesuffix><avxmodesuffix> and
5081 sse4_1_blendv<ssemodesuffix> using VF mode iterator.
5082 (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
5083 avx_dp<ssemodesuffix><avxmodesuffix> and
5084 sse4_1_dp<ssemodesuffix> using VF mode iterator.
5085 (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
5086 (sse4_1_packusdw): Merge with *avx_packusdw.
5087 (sse4_1_pblendvb): Merge with *avx_pblendvb.
5088 (sse4_1_pblendw): Merge with *avx_pblendw.
5089 (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
5090 (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
5091 avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
5093 (sse4_1_round<ssescalarmodesuffix>): Merge with
5094 *avx_round<ssescalarmodesuffix>.
5095 (aesenc): Merge with *avx_aesenc.
5096 (aesenclast): Merge with *avx_aesenclast.
5097 (aesdec): Merge with *avx_aesdec.
5098 (aesdeclast): Merge with *avx_aesdeclast.
5099 (pclmulqdq): Merge with *pclmulqdq.
5100 * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
5102 (nonimm_not_xmm0_operand_maybe_avx): Ditto.
5104 2011-04-14 H.J. Lu <hongjiu.lu@intel.com>
5107 * cfgexpand.c (get_decl_align_unit): Renamed to ...
5108 (align_local_variable): This. Update DECL_ALIGN.
5109 (add_stack_var): Updated.
5110 (expand_one_stack_var): Likewise.
5112 2011-04-14 Richard Guenther <rguenther@suse.de>
5114 * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
5116 (dse_initialize_block_local_data, dse_leave_block,
5117 record_voperand_set, get_stmt_uid): Likewise.
5118 (dse_possible_dead_store_p): Allow any kind of killing stmt.
5119 (dse_optimize_stmt): Remove voperand set handling code.
5120 Simplify and improve to handle any kind of killing stmt.
5121 (dse_record_phi): Remove.
5122 (dse_enter_block): Simplify.
5123 (tree_ssa_dse): Likewise.
5124 * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
5126 2011-04-14 Jan Hubicka <jh@suse.cz>
5128 * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
5129 * cgraph.h (struct inline_summary): Move to ipa-inline.h
5130 (cgraph_local_info): Remove inline_summary.
5131 * ipa-cp.c: Include ipa-inline.h.
5132 (ipcp_cloning_candidate_p, ipcp_estimate_growth,
5133 ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
5135 * lto-cgraph.c (lto_output_node): Do not stream inline summary.
5136 (input_overwrite_node): Do not set inline summary.
5137 (input_node): Do not stream inline summary.
5138 * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
5139 (cgraph_decide_inlining_incrementally): Do not try to estimate overall
5140 growth; we do not have inline parameters computed for that anyway.
5141 (cgraph_early_inlining): After inlining compute call_stmt_sizes.
5142 * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
5143 (inline_summary_t): New type and VECtor.
5144 (debug_inline_summary, dump_inline_summaries): Declare.
5145 (inline_summary): Use VOCtor.
5146 (estimate_edge_growth): Kill hack computing call stmt size directly.
5147 * lto-section-in.c (lto_section_name): Add inline section.
5148 * ipa-inline-analysis.c: Include lto-streamer.h
5149 (node_removal_hook_holder, node_duplication_hook_holder): New holders
5150 (inline_node_removal_hook, inline_node_duplication_hook): New functions.
5151 (inline_summary_vec): Define.
5152 (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
5153 dump_inline_summaries): New functions.
5154 (estimate_function_body_sizes): Properly compute size/time of outgoing
5156 (compute_inline_parameters): Alloc inline_summary; do not compute
5157 size/time of incomming calls.
5158 (estimate_edge_time): Avoid missing time summary hack.
5159 (inline_read_summary): Read inline summary info.
5160 (inline_write_summary): Write inline summary info.
5161 (inline_free_summary): Free all hooks and inline summary vector.
5162 * lto-streamer.h: Add LTO_section_inline_summary section.
5163 * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
5164 * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
5166 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
5168 * tree-vectorizer.h (vect_strided_store_supported): Add a
5169 HOST_WIDE_INT argument.
5170 (vect_strided_load_supported): Likewise.
5171 (vect_permute_store_chain): Return void.
5172 (vect_transform_strided_load): Likewise.
5173 (vect_permute_load_chain): Delete.
5174 * tree-vect-data-refs.c (vect_strided_store_supported): Take a
5175 count argument. Check that the count is a power of two.
5176 (vect_strided_load_supported): Likewise.
5177 (vect_permute_store_chain): Return void. Update after above changes.
5178 Assert that the access is supported.
5179 (vect_permute_load_chain): Likewise.
5180 (vect_transform_strided_load): Return void.
5181 * tree-vect-stmts.c (vectorizable_store): Update calls after
5182 above interface changes.
5183 (vectorizable_load): Likewise.
5184 (vect_analyze_stmt): Don't check for strided powers of two here.
5186 2011-04-14 Richard Guenther <rguenther@suse.de>
5188 PR tree-optimization/48590
5189 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
5190 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
5191 (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
5192 BUILT_IN_STACK_SAVE.
5193 * tree-ssa-dce.c (propagate_necessity): Handle
5194 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
5196 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
5198 * c-parser.c (c_parser_objc_class_declaration): Updated call to
5201 2011-04-14 Richard Guenther <rguenther@suse.de>
5203 * tree.h (get_object_alignment_1): Declare.
5204 * builtins.c (get_object_alignment_1): Split out worker from ...
5205 (get_object_alignment): ... here.
5206 * fold-const.c (get_pointer_modulus_and_residue): Use
5207 get_object_alignment_1.
5209 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
5211 * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
5213 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
5214 parameter. Generalise code to handle arrays as well as vectors.
5215 (vect_setup_realignment): Update accordingly.
5216 * tree-vect-stmts.c (vectorizable_store): Likewise.
5217 (vectorizable_load): Likewise.
5219 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
5221 * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
5222 within the per-copy loop.
5224 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
5226 * tree-vect-stmts.c (vectorizable_load): Print the number of copies
5229 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
5231 * doc/options.texi (Negative): Explicitly mention that the
5232 Negative chain must be circular.
5234 2011-04-14 Nathan Froyd <froydnj@codesourcery.com>
5236 * function.h (block_chainon): Declare.
5237 * function.c (block_chainon): Define.
5239 2011-04-14 Anatoly Sokolov <aesok@post.ru>
5240 Eric Weddington <eric.weddington@atmel.com>
5241 Georg-Johann Lay <avr@gjlay.de>
5243 * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
5245 (avr_init_builtins, avr_expand_builtin,
5246 avr_expand_delay_cycles, avr_expand_unop_builtin,
5247 avr_expand_binop_builtin ): New functions.
5248 (avr_builtin_id): New enum
5249 (struct avr_builtin_description): New struct
5250 (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
5251 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
5253 * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
5254 UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
5255 UNSPECV_DELAY_CYCLES): new enumeration values
5256 (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
5257 ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
5258 ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
5259 ("*rotlqi3_4"): rename insn to "rotlqi3_4"
5260 ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
5261 "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
5262 "fmulsu"): New insns
5264 * config/avr/avr-c.c: fix line endings
5265 (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
5266 __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
5267 __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
5268 __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
5269 __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
5271 * doc/extend.texi (AVR Built-in Functions): New node
5272 (Target Builtins): Add documentation of AVR
5275 2011-04-14 Georg-Johann Lay <avr@gjlay.de>
5278 * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
5279 alone. Error if non-const data has attribute progmem.
5281 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
5283 * tree.h (struct tree_constructor): Include tree_typed instead of
5285 * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
5286 TS_TYPED instead of TS_COMMON.
5288 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
5290 * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
5291 (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
5292 (sse2_psadbw): Merge with *avx_psadbw.
5293 (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
5294 (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
5295 (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
5296 (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
5297 (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
5298 (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
5299 (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
5300 (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
5301 (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
5302 (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
5303 (ssse3_palignrti): Merge with *avx_palignrti.
5305 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
5307 * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
5308 * tree-ssanames.c (fini_ssanames): VEC_free it.
5309 (make_ssa_name_fn): Update for VECness of free_ssanames.
5310 (release_ssa_name, release_dead_ssa_names): Likewise.
5311 * tree.h (struct tree_ssa_name): Include tree_typed instead of
5313 * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
5314 TS_TYPED instead of TS_COMMON.
5316 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
5318 * postreload-gcse.c (gcse_after_reload_main): Add calls to
5319 statistics_counter_event.
5320 * tree-ssa-copyrename.c (stats): Define.
5321 (rename_ssa_copies): Count coalesced SSA_NAMEs. Add call to
5322 statistics_counter_event.
5323 * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
5324 (bswap_stats, widen_mul_stats): Define.
5325 (insert_reciprocals): Increment rdivs_inserted.
5326 (execute_cse_reciprocals): Zeroize reciprocal_stats. Increment
5327 rfuncs_inserted. Add calls to statistics_counter_event.
5328 (execute_cse_sincos_1): Increment inserted.
5329 (execute_cse_sincos): Zeroize sincos_stats. Add call to
5330 statistics_counter_event.
5331 (execute_optimize_bswap): Zeroize bswap_stats. Increment fields
5332 of bswap_stats. Add calls to statistics_counter_event.
5333 (convert_mult_to_widen): Increment widen_mults_inserted.
5334 (convert_plusminus_to_widen): Increment maccs_inserted.
5335 (convert_mult_to_fma): Increment fmas_inserted.
5336 (execute_optimize_widening_mul): Zeroize widen_mul_stats. Add
5337 calls to statistics_counter_event.
5339 2011-04-13 Vladimir Makarov <vmakarov@redhat.com>
5341 PR rtl-optimization/48455
5342 * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
5343 `temp_costs->mem_cost'.
5345 2011-04-13 Jan Hubicka <jh@suse.cz>
5347 * ipa-inline.h: New file.
5348 * ipa-inline-analysis.c: New file. Broken out of ...
5349 * ipa-inline.c: ... this file; update toplevel comment;
5350 include ipa-inline.h
5351 (inline_summary): Move to ipa-inline.h
5352 (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
5353 ipa-inline-analysis.c.
5354 (cgraph_estimate_time_after_inlining): Rename to
5355 estiamte_time_after_inlining; move to ipa-inline-analysis.c
5356 (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
5357 to estimate_edge_growth.
5358 (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
5359 rename to estimate_size_after_inlining.
5360 (cgraph_mark_inline_edge): Update for new naming convention.
5361 (cgraph_check_inline_limits): Likewise.
5362 (cgraph_edge_badness): Likewise.
5363 (cgraph_decide_recursive_inlining): Likewise.
5364 (cgraph_decide_inlining_of_small_functions): Likewise.
5365 (cgraph_decide_inlining_incrementally): Likewise.
5366 (cgraph_estimate_growth): Rename to estimate_growth; move to
5367 ipa-inline-analysis.c.
5368 (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
5369 (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
5370 (compute_inline_parameters): Likewise.
5371 (compute_inline_parameters_for_current): Likewise.
5372 (pass_inline_parameters): Likewise.
5373 (inline_indirect_intraprocedural_analysis): Likewise.
5374 (analyze_function): Rename to inline_analyze_function; likewise.
5375 (add_new_function): Move to ipa-inline-analysis.c.
5376 (inline_generate_summary): Likewise.
5377 (inline_read_summary): Likewise.
5378 (inline_write_summary): Likewise.
5379 * Makefile.in (ipa-inline-analysis.c): New file.
5381 2011-04-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5383 * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
5384 * configure: Regenerate.
5386 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
5388 * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
5389 instead of tree_common.
5390 (struct tree_fixed_cst, struct tree_string, struct tree_complex):
5392 * tree.c (initialize_tree_contains_struct): Mark such nodes as being
5393 TS_TYPED rather than TS_COMMON.
5394 * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
5396 2011-04-01 Georg-Johann Lay <avr@gjlay.de>
5399 * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
5400 r20 around calls of __tablejump_elpm__
5402 2011-04-13 Jakub Jelinek <jakub@redhat.com>
5405 * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
5407 (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
5409 2011-04-13 Bernd Schmidt <bernds@codesourcery.com>
5411 * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
5412 (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
5413 (cfi_vec): New typedef.
5414 (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
5415 dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
5416 (cie_cfi_vec): New static variable.
5417 (cie_cfi_head): Delete.
5418 (add_cfi): Accept a cfi_vec * as first argument. All callers and
5419 declaration changed. Use vector rather than list operations.
5420 (new_cfi): Don't initialize the dw_cfi_next field.
5421 (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
5422 rather than list operations.
5423 (lookup_cfa): Use vector rather than list operations.
5424 (output_cfis): New argument upto. Accept a cfi_vec rather than
5425 a dw_cfi_ref list head as argument. All callers changed.
5426 Iterate over the vector using upto as a maximum index.
5427 (output_all_cfis): New static function.
5428 (output_fde): Use vector rather than list operations. Use the
5429 new upto argument for output_cfis rather than manipulating a
5431 (dwarf2out_begin_prologue): Change initializations to match
5433 (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
5434 from the vector length rather than searching for the end of a list.
5435 Use output_all_cfis.
5436 (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
5438 2011-04-13 Nick Clifton <nickc@redhat.com>
5440 * config/rx/rx.md (movmemsi): Do not use this pattern when
5441 volatile pointers are involved.
5443 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
5445 * config/i386/sse.md (pinsrbits): Remove.
5446 (sse2_packsswb): Merge with *avx_packsswb.
5447 (sse2_packssdw): Merge with *avx_packssdw.
5448 (sse2_packuswb): Merge with *avx_packuswb.
5449 (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
5450 (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
5451 (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
5452 (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
5453 (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
5454 (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
5455 (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
5456 (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
5457 (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
5458 (*sse4_1_pinsrq): Merge with *avx_pinsrq.
5459 (sse2_loadld): Merge with *avx_loadld.
5460 (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
5461 (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
5462 (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
5463 (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
5464 (vec_concatv2di): Merge with *vec_concatv2di_avx.
5466 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
5468 * c-decl.c (union lang_tree_node): Check for TS_COMMON before
5470 * print-tree.c (print_node): Likewise.
5471 * tree-inline.c (copy_tree_r): Likewise.
5472 * c-lang.c (LANG_HOOKS_INIT_TS): Define.
5473 * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
5474 instead of TS_COMMON.
5475 * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
5476 * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
5477 (copy_node_stat): Zero TREE_CHAIN only if necessary.
5478 (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
5479 (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
5481 (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
5483 (TREE_CHAIN): Check for a TS_COMMON structure.
5484 (TREE_TYPE): Check for a TS_TYPED structure.
5486 2011-04-12 Pat Haugen <pthaugen@us.ibm.com>
5488 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
5489 cgraph_get_create_node instead of cgraph_node.
5491 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
5493 * c-parser.c (c_parser_initelt): Updated call to
5494 objc_build_message_expr.
5495 (c_parser_postfix_expression): Likewise.
5497 2011-04-12 Kai Tietz <ktietz@redhat.com>
5499 * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
5500 MASK_MS_BITFIELD_LAYOUT bit.
5502 2011-04-12 Jakub Jelinek <jakub@redhat.com>
5504 * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
5505 assert it is always true.
5506 (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
5509 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
5511 * c-parser.c (c_lex_one_token): Rewritten conditional used when
5512 compiling Objective-C to be more efficient.
5514 2011-04-12 Axel Freyn <axel-freyn@gmx.de>
5516 * opts-common.c (decode_cmdline_options_to_array): Remove variable
5519 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
5521 * recog.h, genoutput.c, optabs.c: Revert last patch.
5523 2011-04-12 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
5526 * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
5528 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
5530 * recog.h (insn_operand_data): Add an "allows_mem" field.
5531 * genoutput.c (output_operand_data): Initialize it.
5532 * optabs.c (maybe_legitimize_operand_same_code): New function.
5533 (maybe_legitimize_operand): Use it when matching the original
5536 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
5538 * genpreds.c (process_define_predicate): Move most processing
5539 to gensupport.c. Continue to validate the expression.
5540 * genrecog.c (did_you_mean_codes, compute_predicate_codes)
5541 (process_define_predicate): Move processing to gensupport.c.
5542 (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
5543 * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
5544 (compute_predicate_codes): Moved from genrecog.c. Add lineno
5546 (valid_predicate_name_p): New function, split out from old
5547 genpreds.c:process_define_predicate.
5548 (process_define_predicate): New function, combining code from
5549 old genpreds.c and genrecog.c functions.
5550 (process_rtx): Call it for DEFINE_PREDICATE and
5551 DEFINE_SPECIAL_PREDICATE.
5553 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
5555 * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
5556 size of a '%A' memory reference.
5557 (T_DREG, T_QREG): New neon_builtin_type_bits.
5558 (arm_init_neon_builtins): Assert that the load and store operands
5559 are neon_struct_operands.
5560 (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
5561 (NEON_ARG_MEMORY): New builtin_arg.
5562 (neon_dereference_pointer): New function.
5563 (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
5564 Handle NEON_ARG_MEMORY.
5565 (arm_expand_neon_builtin): Update after above interface changes.
5566 Use NEON_ARG_MEMORY for loads and stores.
5567 * config/arm/predicates.md (neon_struct_operand): New predicate.
5568 * config/arm/iterators.md (V_two_elem): Tweak formatting.
5569 (V_three_elem): Use BLKmode for accesses that have no associated mode.
5570 (V_four_elem): Tweak formatting.
5571 * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
5572 (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
5573 (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
5574 (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
5575 (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
5576 (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
5577 (neon_vst4<mode>): Replace pointer operand with a memory operand.
5578 Use %A in the output template.
5579 (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
5580 (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
5581 (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
5582 the width of the memory access. Remove post-increment.
5583 * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
5585 2011-04-12 Nick Clifton <nickc@redhat.com>
5587 * config/v850/v850.c (expand_prologue): Do not use the CALLT
5588 instruction for interrupt handlers if the target is the basic V850
5590 (expand_epilogue): Likewise.
5592 2011-04-12 Jakub Jelinek <jakub@redhat.com>
5594 PR rtl-optimization/48549
5595 * combine.c (propagate_for_debug): Also stop after BB_END of
5596 this_basic_block. Process LAST and just stop processing after it.
5597 (combine_instructions): If last_combined_insn has been deleted,
5598 set last_combined_insn to its PREV_INSN.
5600 2011-04-12 Richard Guenther <rguenther@suse.de>
5602 PR tree-optimization/46076
5603 * gimple.h (struct gimple_statement_call): Add fntype field.
5604 (gimple_call_fntype): Adjust.
5605 (gimple_call_set_fntype): New function.
5606 * gimple.c (gimple_build_call_1): Set the call function type.
5607 * gimplify.c (gimplify_call_expr): Preserve the function
5608 type the frontend used for the call.
5609 (gimplify_modify_expr): Likewise.
5610 * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
5612 * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
5614 * tree-ssa.c (useless_type_conversion_p): Function pointer
5615 conversions are useless.
5617 2011-04-12 Martin Jambor <mjambor@suse.cz>
5619 * cgraph.h (cgraph_node): Remove function declaration.
5620 (cgraph_create_node): Declare.
5621 (cgraph_get_create_node): Likewise.
5622 * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
5623 Updated all callers.
5624 (cgraph_node): Renamed to cgraph_create_node, assert that a node for
5625 the decl does not already exist. Call cgraph_get_create_node instead
5627 (cgraph_get_create_node): New function.
5628 (cgraph_same_body_alias): Update comment.
5629 (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
5630 assert it does not return NULL.
5631 (cgraph_update_edges_for_call_stmt): Likewise.
5632 (cgraph_clone_edge): Likewise.
5633 (cgraph_create_virtual_clone): Likewise.
5634 (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
5635 instead of cgraph_node.
5636 (cgraph_add_new_function): Call cgraph_create_node or
5637 cgraph_get_create_node instead of cgraph_node.
5638 * cgraphbuild.c (record_reference): Call cgraph_get_create_node
5639 instead of cgraph_node.
5640 (record_eh_tables): Likewise.
5641 (mark_address): Likewise.
5642 (mark_load): Likewise.
5643 (build_cgraph_edges): Call cgraph_get_create_node instead
5645 (rebuild_cgraph_edges): Likewise.
5646 * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
5647 instead of cgraph_node.
5648 (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
5650 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
5651 cgraph_create_node instead of cgraph_node.
5652 * c-decl.c (finish_function): Call cgraph_get_create_node instead
5654 * lto-cgraph.c (input_node): Likewise.
5655 * lto-streamer-in.c (input_function): Likewise.
5656 * varasm.c (mark_decl_referenced): Likewise.
5657 (assemble_alias): Likewise.
5659 2011-04-12 Martin Jambor <mjambor@suse.cz>
5661 * tree-inline.c (tree_function_versioning): Call cgraph_get_node
5662 instead of cgraph_node and assert it does not return NULL.
5663 * lto-streamer-in.c (lto_read_body): Likewise.
5664 * omp-low.c (new_omp_context): Likewise.
5665 (create_task_copyfn): Likewise.
5666 * tree-emutls.c (lower_emutls_function_body): Likewise.
5667 * matrix-reorg.c (transform_allocation_sites): Likewise.
5669 2011-04-12 Jakub Jelinek <jakub@redhat.com>
5672 * c-typeck.c (build_asm_expr): Error out on attempts to use
5673 void type outputs or inputs for constraints that allow reg or
5676 2011-04-11 Chung-Lin Tang <cltang@codesourcery.com>
5677 Richard Earnshaw <rearnsha@arm.com>
5680 * config/arm/arm.c (arm_legitimize_reload_address): Update cases
5681 to use sign-magnitude offsets. Reject unsupported unaligned
5682 cases. Add detailed description in comments.
5683 * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
5684 condition from TARGET_32BIT to TARGET_ARM.
5686 2011-04-11 Nathan Froyd <froydnj@codesourcery.com>
5688 * tree.h (struct typed_tree): New.
5689 (struct tree_common): Include it instead of tree_base.
5690 (TREE_TYPE): Update for new location of type field.
5691 (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
5692 (DECL_USER_ALIGN, DECL_PACKED): Likewise.
5693 (union tree_node): Add typed field.
5694 * treestruct.def (TS_TYPED): New.
5695 * lto-streamer.c (check_handled_ts_structures): Handle it.
5696 * tree.c (MARK_TS_TYPED): New macro.
5697 (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
5699 2011-04-11 Eric Botcazou <ebotcazou@adacore.com>
5701 * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
5702 (force_nonfallthru): Do not alter the loop nest if no basic block
5705 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
5707 * config/i386/sse.md (VI): New mode iterator.
5709 (AVX256MODEI): Ditto.
5710 (AVXMODEF4P): Ditto.
5711 (avxvecpsmode): Ditto.
5712 (one_cmpl<mode>2): Enable for TARGET_SSE. Use VI mode iterator.
5713 (sse2_andnot<mode>3): New expander.
5714 (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
5715 *avx_andnot<mode>3. Enable for TARGET_SSE. Use VI mode iterator.
5716 (<any_logic:code><mode>3): Use VI mode iterator.
5717 (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
5718 and *avx_<any_logic:code><mode>3. Use VI mode iterator.
5719 (*andnottf3): Handle AVX three-operand constraints.
5720 (*<any_logic:code>tf3): Handle AVX three-operand constraints.
5722 2011-04-11 Joseph Myers <joseph@codesourcery.com>
5723 Robert Millan <rmh@gnu.org>
5725 * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
5726 * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
5727 GNU_USER_DYNAMIC_LINKER64): Define.
5728 (REG_NAME): Don't undefine.
5729 (MD_UNWIND_SUPPORT): Undefine.
5730 * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
5731 (REG_NAME): Don't undefine.
5732 (MD_UNWIND_SUPPORT): Undefine.
5733 * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
5735 2011-04-11 Joseph Myers <joseph@codesourcery.com>
5737 * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
5738 (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
5740 2011-04-11 Xinliang David Li <davidxl@google.com>
5742 * value-profile.c (check_ic_target): New function.
5743 (gimple_ic_transform): Sanity check indirect call target.
5744 * gimple-low.c (gimple_check_call_args): Interface change.
5745 (gimple_check_call_matching_types): New function.
5746 * tree-inline.c (tree_can_inline_p): Call new function.
5748 2011-04-11 Basile Starynkevitch <basile@starynkevitch.net>
5750 * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
5751 tree-pretty-print.h & realmpfr.h.
5753 2011-04-11 Vladimir Makarov <vmakarov@redhat.com>
5756 * ira.c (setup_pressure_classes): Fix typo in loop condition.
5757 (setup_allocno_and_important_classes): Ditto.
5759 2011-04-11 Joseph Myers <joseph@codesourcery.com>
5761 * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
5762 GNU_USER_DYNAMIC_LINKER.
5763 * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
5764 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5765 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
5766 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
5767 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
5768 GNU_USER_TARGET_OS_CPP_BUILTINS.
5769 * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
5770 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5771 * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
5772 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5773 * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
5774 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
5775 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
5776 GNU_USER_TARGET_OS_CPP_BUILTINS.
5777 * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
5778 GNU_USER_DYNAMIC_LINKER.
5779 * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
5780 GNU_USER_TARGET_OS_CPP_BUILTINS.
5781 * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
5782 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5783 * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
5784 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5785 * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
5786 * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
5787 GNU_USER_DYNAMIC_LINKER64): Remove.
5788 * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
5789 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5790 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
5791 GNU_USER_DYNAMIC_LINKER.
5792 * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
5793 GNU_USER_TARGET_OS_CPP_BUILTINS.
5794 * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
5795 GNU_USER_TARGET_OS_CPP_BUILTINS.
5796 * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
5797 to GNU_USER_TARGET_OS_CPP_BUILTINS.
5798 * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
5799 GNU_USER_TARGET_OS_CPP_BUILTINS.
5800 (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
5801 (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
5802 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
5803 * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
5804 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5805 * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
5806 GNU_USER_DYNAMIC_LINKER.
5807 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
5808 GNU_USER_TARGET_OS_CPP_BUILTINS.
5809 * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
5810 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5811 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
5812 GNU_USER_DYNAMIC_LINKER.
5813 * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
5814 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5815 * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
5816 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5817 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
5818 GNU_USER_DYNAMIC_LINKER.
5819 * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
5820 GNU_USER_DYNAMIC_LINKERN32.
5821 (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
5822 GNU_USER_DYNAMIC_LINKERN32. Change LINUX_DYNAMIC_LINKER64 to
5823 GNU_USER_DYNAMIC_LINKER64. Change LINUX_DYNAMIC_LINKER32 to
5824 GNU_USER_DYNAMIC_LINKER32.
5825 * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
5826 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5827 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
5828 GNU_USER_DYNAMIC_LINKER.
5829 * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
5830 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5831 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
5832 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5833 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
5834 * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
5835 GNU_USER_DYNAMIC_LINKER32.
5836 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
5837 * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
5838 GNU_USER_DYNAMIC_LINKER.
5839 * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
5840 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5841 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
5842 GNU_USER_DYNAMIC_LINKER32. Change LINUX_DYNAMIC_LINKER64 to
5843 GNU_USER_DYNAMIC_LINKER64.
5844 * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
5845 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5846 (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
5847 GNU_USER_DYNAMIC_LINKER.
5848 * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
5849 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5850 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
5851 GNU_USER_DYNAMIC_LINKER.
5852 * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
5853 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5854 (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
5855 GNU_USER_DYNAMIC_LINKER32.
5856 (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
5857 GNU_USER_DYNAMIC_LINKER64.
5858 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
5859 GNU_USER_DYNAMIC_LINKER64.
5860 * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
5861 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5862 * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
5863 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5864 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
5866 2011-04-11 Joseph Myers <joseph@codesourcery.com>
5868 * config/i386/gnu-user.h: Copy from linux.h. Update comments.
5869 (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
5870 (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
5871 GNU_USER_DYNAMIC_LINKER.
5872 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
5873 * config/i386/gnu-user64.h: Copy from linux64.h. Update comments.
5874 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
5875 (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
5876 GNU_USER_DYNAMIC_LINKER64.
5877 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
5878 * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
5879 GNU_USER_LINK_EMULATION.
5880 * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
5881 DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
5882 ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
5883 MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
5884 PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
5885 CPP_SPEC, CC1_SPEC): Remove.
5886 (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
5887 (GNU_USER_DYNAMIC_LINKER): Define.
5888 (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
5889 ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
5890 ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
5891 LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
5892 TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
5893 STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
5894 TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
5895 * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
5896 CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
5897 TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
5898 LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
5899 LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
5900 (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
5901 (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
5902 TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
5903 TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
5904 * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
5905 GNU_USER_DYNAMIC_LINKER.
5906 * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
5907 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
5908 * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
5909 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
5910 * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
5911 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
5912 * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
5913 i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
5914 i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
5915 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
5917 2011-04-11 Kai Tietz <ktietz@redhat.com>
5921 * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
5922 * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
5924 (ix86_is_msabi_thiscall): Removed.
5925 (ix86_is_type_thiscall): Likewise.
5926 (ix86_get_callcvt): New function.
5927 (ix86_comp_type_attributes): Simplify check.
5928 (ix86_function_regparm): Use ix86_get_callcvt for calling
5929 convention attribute checks.
5930 (ix86_return_pops_args): Likewise.
5931 (ix86_static_chain): Likewise.
5932 (x86_this_parameter): Likewise.
5933 (x86_output_mi_thunk): Likewise.
5934 (ix86_function_type_abi): Optimize check for types without attributes.
5935 * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
5936 IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
5937 IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
5939 (IX86_BASE_CALLCVT): Helper macro.
5940 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
5941 Use ix86_get_callcvt for calling convention attribute checks and avoid
5942 symbol-decoration for stdcall in TARGET_RTD case.
5943 * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
5945 (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
5948 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
5950 * config/i386/sse.md (VI_128): New mode iterator.
5951 (VI12_128): Rename from SSEMODE12.
5952 (VI14_128): Rename from SSEMODE14.
5953 (VI124_128): New mode iterator.
5954 (VI24_128): Rename from SSEMODE248.
5955 (VI248_128): Rename from SSEMODE248.
5956 (SSEMODE124C8): Remove.
5957 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
5958 (*sse2_<plusminus_insn><mode>3): Merge with
5959 *avx_<plusminus_insn><mode>3.
5960 (*mulv8hi3): Merge with *avx_mulv8hi3.
5961 (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
5962 (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
5963 (*sse2_pmaddwd): Merge with *avx_pmaddwd.
5964 (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
5965 (ashr<mode>3): Merge with *avx_ashr<mode>3.
5966 (lshr<mode>3): Merge with *avx_lshr<mode>3.
5967 (ashl<mode>3): Merge with *avx_ashl<mode>3.
5968 (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
5969 (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
5970 (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
5971 (*<smaxmin:code>v8hi3): Ditto.
5972 (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
5973 (*<smaxmin:code>v16qi3): Ditto.
5974 (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
5975 (*sse2_eq<mode>3): Ditto.
5976 (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
5977 (*sse2_gt<mode>3): Ditto.
5978 (vcondv2di): Split out of vcond<mode>.
5979 (vconduv2di): Split out of vcondu<mode>.
5981 2011-04-11 Richard Guenther <rguenther@suse.de>
5983 * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
5984 before calling tree_low_cst.
5986 2011-04-11 Richard Guenther <rguenther@suse.de>
5988 * stor-layout.c (layout_type): Compute all array index size operations
5989 in the original type.
5990 (initialize_sizetypes): Add comment.
5991 (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
5993 2011-04-11 Joseph Myers <joseph@codesourcery.com>
5995 * common.opt (Tbss=, Tdata=, Ttext=): New options.
5997 2011-04-11 Martin Jambor <mjambor@suse.cz>
5999 * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
6000 of cgraph_node, handle NULL return value.
6001 (cgraph_global_info): Likewise.
6002 (cgraph_rtl_info): Likewise.
6003 * tree-inline.c (estimate_num_insns): Likewise.
6004 * gimplify.c (unshare_body): Likewise.
6005 (unvisit_body): Likewise.
6006 (gimplify_body): Likewise.
6007 * predict.c (optimize_function_for_size_p): Likewise.
6008 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
6009 (call_may_clobber_ref_p_1): Likewise.
6010 * varasm.c (function_section_1): Likewise.
6011 (assemble_start_function): Likewise.
6013 2011-04-11 Martin Jambor <mjambor@suse.cz>
6015 * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
6017 * final.c (rest_of_clean_state): Likewise.
6018 * gimple-iterator.c (update_call_edge_frequencies): Likewise.
6019 * passes.c (pass_init_dump_file): Likewise.
6020 (execute_all_ipa_transforms): Likewise.
6021 (function_called_by_processed_nodes_p): Likewise.
6022 * predict.c (maybe_hot_frequency_p): Likewise.
6023 (probably_never_executed_bb_p): Likewise.
6024 (compute_function_frequency): Likewise.
6025 * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
6026 (unnest_nesting_tree_1): Likewise.
6027 (lower_nested_functions): Likewise.
6028 * tree-optimize.c (execute_fixup_cfg): Likewise.
6029 (tree_rest_of_compilation): Likewise.
6030 * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
6031 * tree-sra.c (ipa_early_sra): Likewise.
6032 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
6033 * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
6034 * ipa.c (record_cdtor_fn): Likewise.
6035 * ipa-inline.c (cgraph_early_inlining): Likewise.
6036 (compute_inline_parameters_for_current): Likewise.
6037 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
6038 * ipa-pure-const.c (local_pure_const): Likewise.
6039 * ipa-split.c (split_function): Likewise.
6040 (execute_split_functions): Likewise.
6041 * cgraphbuild.c (build_cgraph_edges): Likewise.
6042 (rebuild_cgraph_edges): Likewise.
6043 (cgraph_rebuild_references): Likewise.
6044 (remove_cgraph_callee_edges): Likewise.
6045 * cgraphunit.c (cgraph_mark_if_needed): Likewise.
6046 (verify_cgraph_node): Likewise.
6047 (cgraph_analyze_functions): Likewise.
6048 (cgraph_preserve_function_body_p): Likewise.
6049 (save_inline_function_body): Likewise.
6050 (save_inline_function_body): Likewise.
6051 * tree-inline.c (copy_bb): Likewise.
6052 (optimize_inline_calls): Likewise.
6054 2011-04-11 Martin Jambor <mjambor@suse.cz>
6056 PR tree-optimization/48195
6057 * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
6058 ipa_check_create_edge_args.
6059 (ipcp_generate_summary): Do not call ipa_check_create_node_params and
6060 ipa_check_create_edge_args.
6061 * ipa-inline.c (inline_generate_summary): Do not call
6062 ipa_check_create_node_params and ipa_check_create_edge_args.
6063 * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
6064 ipa_check_create_edge_args.
6066 2011-04-09 Anatoly Sokolov <aesok@post.ru>
6068 * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
6070 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
6071 * function.c (record_hard_reg_sets): Likewise.
6072 * ira.c (compute_regs_asm_clobbered): Likewise.
6073 * sched-deps.c (sched_analyze_1): Likewise.
6074 * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
6076 2011-04-09 Xinliang David Li <davidxl@google.com>
6078 PR tree-optimization/PR48484
6079 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
6080 has_valid_pred lazily
6082 2011-04-09 Duncan Sands <baldrick@free.fr>
6084 * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
6086 2011-04-08 Eric Botcazou <ebotcazou@adacore.com>
6088 * combine.c (combine_validate_cost): Adjust comments. Set registered
6089 cost of I0 to zero at the end, if any.
6091 2011-04-08 Xinliang David Li <davidxl@google.com>
6093 * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
6094 to insane profile data.
6096 2011-04-08 Xinliang David Li <davidxl@google.com>
6098 * ipa-cp.c (ipcp_update_profiling): Correct
6099 negative scale factor due to insane profile data.
6101 2011-04-08 Xinliang David Li <davidxl@google.com>
6103 * final.c (dump_basic_block_info): New function.
6104 (final): Dump basic block.
6105 (final_scan_insn): Remove old dump.
6107 2011-04-08 Steven G. Kargl <kargl@gcc.gnu.org>
6110 * config.gcc (i386-*-freebsd): Disable unwind table generation for
6113 2011-04-08 Michael Matz <matz@suse.de>
6116 * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
6118 (rebuild_jump_labels): Call rebuild_jump_labels_1.
6119 * rtl.h (rebuild_jump_labels_chain): Declare.
6120 * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
6121 insns inserted on edges.
6123 2011-04-08 Joseph Myers <joseph@codesourcery.com>
6125 * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
6126 * config/arm/arm-arches.def: New.
6127 * config/arm/arm-opts.h: New.
6128 * config/arm/genopt.sh: New.
6129 * config/arm/arm-tables.opt: New (generated).
6130 * config/arm/arm.c (arm_handle_option, arm_target_help,
6131 TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
6132 (all_architectures): Get most table contents from arm-arches.def.
6133 (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
6134 arm_selected_tune here.
6135 * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
6136 * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
6137 (march=, mcpu=, mtune=): Use Enum and Var.
6138 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
6139 (arm.o): Update dependencies.
6141 2011-04-08 Basile Starynkevitch <basile@starynkevitch.net>
6143 * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
6145 (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
6146 (write_typed_alloc_defns): Likewise.
6147 (main): Calls write_typed_alloc_defns with output_header.
6149 2011-04-08 Vladimir Makarov <vmakarov@redhat.com>
6152 * ira-color.c (setup_profitable_hard_regs): Add comments.
6153 Don't take prohibited hard regs into account.
6154 (setup_conflict_profitable_regs): Rename to
6155 get_conflict_profitable_regs.
6156 (check_hard_reg_p): Check prohibited hard regs.
6158 2011-04-08 Nathan Froyd <froydnj@codesourcery.com>
6160 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
6161 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
6162 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
6164 2011-04-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6167 * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
6168 move from floating point to shift amount register.
6169 (emit_move_sequence): Remove secondary reload support for floating
6170 point to shift amount amount register copies.
6171 (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
6172 amount register copies.
6173 * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
6174 register, return false if mode isn't a scalar integer mode.
6175 * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
6177 2011-04-08 Richard Guenther <rguenther@suse.de>
6179 * gimple.c (gimple_call_flags): Remove kludge.
6181 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
6183 * sel-sched.c (sel_region_init): Move call to
6184 sel_setup_region_sched_flags after setup_current_loop_nest.
6186 2011-04-08 Andrey Belevantsev <abel@ispras.ru>
6188 PR rtl-optimization/48272
6189 * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
6190 init_insn_reg_pressure_info. Adjust a caller.
6191 * sched-int.h (init_insn_reg_pressure_info): Declare.
6192 * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
6193 when sched-pressure is enabled.
6195 2011-04-08 Richard Guenther <rguenther@suse.de>
6197 * gimple.c (gimple_set_modified): Do not queue calls to
6198 MODIFIED_NORETURN_CALLS here ...
6199 * tree-ssa-operands.c (update_stmt_operands): ... but here.
6201 2011-04-08 Richard Guenther <rguenther@suse.de>
6204 * toplev.c (lang_dependent_init): Do not open asm_out_file
6205 in WPA mode, nor perform debug machinery initialization.
6206 (finalize): Do not unlink asm_out_file in WPA mode.
6208 2011-04-08 Richard Guenther <rguenther@suse.de>
6210 * gimple.h (gimple_call_fntype): New function.
6211 (gimple_call_return_type): Use it.
6212 * expr.c (expand_expr_real_1): Use gimple_call_fntype.
6213 * gimple-low.c (gimple_check_call_args): Likewise.
6214 * gimple.c (gimple_call_flags): Likewise.
6215 (gimple_call_arg_flags): Likewise.
6216 (gimple_call_return_flags): Likewise.
6217 * tree-cfg.c (verify_gimple_call): Likewise.
6218 (do_warn_unused_result): Likewise.
6219 * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
6220 * value-prof.c (gimple_ic_transform): Fix fndecl check.
6222 2011-04-08 Dmitry Melnik <dm@ispras.ru>
6224 PR rtl-optimization/48235
6225 * sel-sched.c (code_motion_process_successors): Recompute the last
6226 insn in basic block if control flow changed.
6227 (code_motion_path_driver): Ditto. Recompute the first insn as well.
6228 Update condition for ilist_remove.
6230 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
6232 PR rtl-optimization/48302
6233 * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
6234 * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument. Use
6235 it to record added preheader blocks.
6236 * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument. Pass it
6237 on to sel_add_loop_preheaders.
6238 (sel_region_init): Move call to setup_current_loop_nest after
6241 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
6244 * cfgloop.h (loop_has_exit_edges): New helper.
6245 * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
6247 * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
6248 that have no exit edges.
6250 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
6252 PR rtl-optimization/48442
6253 * sel-sched.c (init_seqno): Remove number_of_insns argument. Update
6254 all callers. Adjust assert.
6256 2011-04-08 Jakub Jelinek <jakub@redhat.com>
6258 PR tree-optimization/48377
6259 * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
6260 is_packed to true even for types with smaller TYPE_ALIGN than
6263 2011-04-08 Richard Guenther <rguenther@suse.de>
6266 * doc/tm.texi: Re-generate.
6268 2011-04-08 Wei Guozhi <carrot@google.com>
6271 * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
6272 * config/arm/arm.c (arm_attr_length_push_multi): New function.
6273 * config/arm/arm.md (*push_multi): Change the length computation to
6276 2011-04-08 Anatoly Sokolov <aesok@post.ru>
6278 * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
6279 (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
6280 * doc/tm.texi: Regenerate.
6281 * system.h (ASM_OUTPUT_BSS): Poison.
6282 * varasm.c (asm_output_bss): Remove function.
6283 (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
6285 * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
6286 * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
6287 * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
6288 * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
6290 * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
6292 * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
6294 * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
6296 2011-04-07 Joseph Myers <joseph@codesourcery.com>
6298 * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
6301 2011-04-07 Joseph Myers <joseph@codesourcery.com>
6303 * config/m68k/m68k.c (m68k_handle_option): Don't handle
6304 OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
6305 OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
6307 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
6308 handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
6309 -m68030, -m68040, -m68060, -mcpu32 and -m68332.
6310 * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
6311 m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
6312 * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
6313 (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
6314 (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
6315 options. Don't map other m68k options manually. Don't handle
6316 old-style options as canonical.
6317 (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
6318 * doc/install.texi (m68k-*-*): Document binutils version requirement.
6320 2011-04-07 Eric Botcazou <ebotcazou@adacore.com>
6322 * basic-block.h (force_nonfallthru): Move to...
6323 * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
6324 (force_nonfallthru): ...here.
6325 * cfghooks.c (force_nonfallthru): New function.
6326 * cfgrtl.c (force_nonfallthru): Rename into...
6327 (rtl_force_nonfallthru): ...this.
6328 (commit_one_edge_insertion): Do not set AUX field.
6329 (commit_edge_insertions): Do not discover new basic blocks.
6330 (rtl_cfg_hooks): Add rtl_force_nonfallthru.
6331 (cfg_layout_rtl_cfg_hooks): Likewise.
6332 * function.c (thread_prologue_and_epilogue_insns): Remove bogus
6333 ATTRIBUTE_UNUSED. Discover new basic blocks in the prologue insns.
6334 * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
6336 2011-04-07 Anatoly Sokolov <aesok@post.ru>
6338 * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
6341 2011-04-07 Uros Bizjak <ubizjak@gmail.com>
6343 * config/i386/sse.md: Update copyright year.
6344 (avxcvtvecmode): Remove.
6345 (sse_movhlps): Merge with *avx_movhlps.
6346 (sse_movlhps): Merge with *avx_movlhps.
6347 (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
6348 (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
6349 (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
6350 (sse_loadhps): Merge with *avx_loadhps.
6351 (sse_storelps): Merge with *avx_storelps.
6352 (sse_loadlps): Merge with *avx_loadlps.
6353 (sse_movss): Merge with *avx_movss.
6354 (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
6355 (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
6356 (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
6357 (*vec_set<mode>_0_sse2): Split multi-unit alternative.
6358 (vec_set<mode>_0): Ditto.
6359 (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
6360 (sse4_1_insertps): Merge with *avx_insertps.
6361 (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
6362 (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
6363 (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
6364 (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
6365 (sse2_storehpd): Merge with *avx_storehpd.
6366 (sse2_loadhpd): Merge with *avx_loadhpd.
6367 (sse2_loadlpd): Merge with *avx_loadlpd.
6368 (sse2_movsd): Merge with *avx_movsd.
6369 (*vec_concatv2df): Merge with *vec_concatv2df.
6371 2011-04-07 Jakub Jelinek <jakub@redhat.com>
6374 * combine.c (combine_instructions): Add last_combined_insn,
6375 update it if insn is after it, pass it to all try_combine calls.
6376 (try_combine): Add last_combined_insn parameter, pass it instead of
6377 i3 to propagate_for_debug.
6379 2011-04-07 Nick Clifton <nickc@redhat.com>
6381 * config/mn10300/mn10300.md (movqi_internal): Add alternatives
6382 to handle MDR <-> data register transfers.
6383 (movhi_internal): Likewise.
6385 2011-04-07 Alan Modra <amodra@gmail.com>
6387 * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
6388 previous stack info.
6390 2011-04-07 Tom de Vries <tom@codesourcery.com>
6393 * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter. Pass dir to
6394 flow_find_cross_jump. Swap variables to implement backward replacement.
6395 (try_crossjump_bb): Add argument to try_crossjump_to_edge.
6397 2011-04-07 Tom de Vries <tom@codesourcery.com>
6400 * cfgcleanup.c (walk_to_nondebug_insn): New function.
6401 (flow_find_cross_jump): Use walk_to_nondebug_insn. Recalculate bb1
6403 (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
6404 src1 or src2. Redirect edges to the last basic block. Update
6405 frequency and count on multiple basic blocks in case of fallthru.
6407 2011-04-07 Tom de Vries <tom@codesourcery.com>
6410 * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
6412 (old_insns_match_p): Change return type. Replace return false/true
6413 with return dir_none/dir_both. Use can_replace_by.
6414 (flow_find_cross_jump): Add dir_p parameter. Init replacement
6415 direction from dir_p. Register replacement direction in dir, last_dir
6416 and afterlast_dir. Handle new return type of old_insns_match_p using
6417 merge_dir. Return replacement direction in dir_p.
6418 (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
6419 return type of old_insns_match_p.
6420 (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
6421 * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
6422 flow_find_cross_jump.
6423 * basic-block.h (enum replace_direction): New type.
6424 (flow_find_cross_jump): Add parameter to declaration.
6426 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
6428 * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
6429 (AVXMODEDCVTPS2DQ): Ditto.
6430 (VEC_FLOAT_MODE): Ditto.
6431 (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3. Use VF mode
6432 iterator. Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
6433 (<any_logic:code><mode>3): Use VF mode iterator.
6434 (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
6435 Use VF mode iterator.
6436 (copysign<mode>3): Use VF mode iterator.
6437 (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3. Handle
6438 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
6439 (*<any_logic:code><MODEF:mode>3): Merge with
6440 *avx_<any_logic:code><MODEF:mode>3.
6441 (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
6442 (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
6443 (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
6444 (avx_cvtdq2ps<avxmodesuffix>): Remove.
6445 (sse2_cvtdq2ps): Use %v modifier.
6446 (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
6447 (avx_cvtps2dq<avxmodesuffix>): Remove.
6448 (sse2_cvtps2dq): Use %v modifier.
6449 (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
6450 (avx_cvttps2dq<avxmodesuffix>): Remove.
6451 (sse2_cvttps2dq): Use %v modifier.
6452 (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
6453 (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
6454 (sse2_cvtsd2siq): Fix insn template.
6455 (sse2_cvtsd2siq_2): Ditto.
6456 (sse2_cvttsd2siq): Ditto.
6457 (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
6458 (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
6460 2011-04-06 Joseph Myers <joseph@codesourcery.com>
6462 * gcov-io.c: Use GCC Runtime Library Exception.
6464 2011-04-06 Jakub Jelinek <jakub@redhat.com>
6467 * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
6468 as base_reg whatever register reg has been eliminated to, instead
6469 of hardcoding STACK_POINTER_REGNUM.
6471 2011-04-06 Joseph Myers <joseph@codesourcery.com>
6473 * doc/tm.texi.in: Document C target hooks as separate from general
6475 * doc/tm.texi: Regenerate.
6476 * genhooks.c (struct hook_desc): Add docname field.
6477 (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC). Initialize
6479 (hook_array): Include c-target.def.
6480 (emit_documentation): Use docname field in output.
6481 (emit_init_macros): Take docname argument. Only emit definitions
6482 for hooks matching docname.
6483 (main): Expect additional arguments in all cases. Pass argument
6484 to emit_init_macros.
6485 * target.def: Move initial macro definitions and comments to
6486 target-hooks-macros.h.
6487 (gcc_targetcm): Move to c-family/c-target.def.
6488 * target.h (targetcm): Move declaration to c-family/c-target.h.
6489 * targhooks.c (default_handle_c_option): Move to
6491 * targhooks.h (default_handle_c_option): Move declaration to
6492 c-family/c-common.h.
6493 * target-hooks-macros.h: New file.
6494 * config.gcc (target_has_targetcm): Define and use to add to
6495 c_target_objs and cxx_target_objs.
6496 * config/default-c.c: New file.
6497 * config/darwin-c.c: Include c-target.h and c-target-def.h instead
6498 of target.h and target-def.h.
6499 (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
6500 (darwin_objc_construct_string, darwin_cfstring_ref_p,
6501 darwin_check_cfstring_format_arg): Make static.
6502 (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
6503 TARGET_STRING_OBJECT_REF_TYPE_P,
6504 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
6505 * config/darwin-protos.h (darwin_objc_construct_string,
6506 darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
6508 * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
6509 TARGET_STRING_OBJECT_REF_TYPE_P,
6510 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
6511 * config/t-darwin (darwin-c.o): Update dependencies.
6512 * system.h (TARGET_HAS_TARGETCM): Poison.
6513 * Makefile.in (TARGET_H): Update.
6514 (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
6515 (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
6516 (default-c.o): New target.
6517 (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
6518 (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
6519 (s-tm-texi): Pass -d option to genhooks. Also test timestamp on
6521 (build/genhooks.o): Update dependencies.
6523 2011-04-06 Richard Guenther <rguenther@suse.de>
6525 * ipa-inline.c (enum inlining_mode): Remove.
6526 (cgraph_flatten): Use some other token.
6527 (cgraph_edge_early_inlinable_p): New function, split out from ...
6528 (cgraph_perform_always_inlining): New function, split out from ...
6529 (cgraph_decide_inlining_incrementally): ... here.
6530 (cgraph_mark_inline_edge): Adjust.
6531 (cgraph_early_inlining): Re-structure.
6532 (pass_early_inline): Require SSA form.
6534 2011-04-06 Andrew Stubbs <ams@codesourcery.com>
6535 Julian Brown <julian@codesourcery.com>
6536 Mark Shinwell <shinwell@codesourcery.com>
6538 * config/arm/arm.h (arm_class_likely_spilled_p): Check against
6539 LO_REGS only for Thumb-1.
6540 (MODE_BASE_REG_CLASS): Restrict base registers to those which can
6541 be used in short instructions when optimising for size on Thumb-2.
6543 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
6545 * gimple-low.c (lower_gimple_return): When not optimizing, force labels
6546 associated with user returns to be preserved.
6548 2011-04-06 Tristan Gingold <gingold@adacore.com>
6550 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
6551 symbol_queue_size, DBXOUT_DECR_NESTING,
6552 (DBXOUT_DECR_NESTING_AND_RETURN): Also define
6553 if XCOFF_DEBUGGING_INFO.
6555 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
6557 * config/i386/i386.md (attribute isa): New.
6558 (attribute enabled): New.
6559 (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
6560 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
6561 (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
6562 (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
6563 (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
6564 (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
6565 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
6566 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
6568 * config/i386/sse.md (VF): New mode iterator.
6572 (SSEMODEF4): Remove.
6573 (attribute sse): Handle V8SF and V4DF modes.
6574 (<absneg:code><mode>2): Use VF mode iterator.
6575 (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2. Use VF
6577 (<plusminus_insn><mode>3): Use VF mode iterator.
6578 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
6579 Use VF mode iterator.
6580 (<sse>_vm<plusminus_insn><mode>3): Merge with
6581 *avx_vm<plusminus_insn><mode>3. Use VF_128 mode iterator.
6582 (mul<mode>3): Use VF mode iterator.
6583 (*mul<mode>3): Merge with *avx_mul<mode>3. Use VF mode iterator.
6584 (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3. Use VF_128
6586 (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
6587 (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
6588 (<sse>_div<mode>3): Merge with *avx_div<mode>3. Use VF mode iterator.
6589 (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3. Use VF_128
6591 (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
6592 Use VF1 mode iterator.
6593 (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
6594 (sqrt<VF2:mode>2): New expander.
6595 (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
6596 (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
6597 and sqrtv2df2. Use VF mode iterator.
6598 (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2. Use VF_128
6600 (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
6601 (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
6602 Use VF1 mode iterator.
6603 (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
6604 (<smaxmin:code><mode>3): Use VF mode iterator.
6605 (*<smaxmin:code><mode>3_finite): Merge with
6606 *avx_<smaxmin:code><mode>3_finite. Use VF mode iterator.
6607 (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
6608 (<sse>_vm<smaxmin:code><mode>2): Merge with
6609 *avx_vm<smaxmin:code><mode>2. Use VF_128 mode iterator.
6610 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3. Use VF
6612 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3. Use VF
6614 (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
6615 (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
6616 (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
6617 (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
6618 (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3. Use
6620 (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
6621 Use VF_128 mode iterator.
6622 (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3. Use VF
6624 (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3. Use
6625 VF_128 mode iterator.
6626 (vcond<mode>): Use VF mode iterator.
6627 * config/i386/predicates.md (sse_comparison_operator): Merge with
6628 avx_comparison_float_operator. Do not declare as special_predicate.
6629 * config/i386/i386.c (struct builtin_description): Update for renamed
6631 (ix86_expand_args_builtin): Ditto.
6632 (ix86_expand_sse_compare_mask): Ditto.
6634 2011-04-06 Richard Guenther <rguenther@suse.de>
6636 * tree-inline.c (estimate_num_insns): For calls simply account
6637 for all passed arguments and a used return value.
6639 2011-04-06 Richard Guenther <rguenther@suse.de>
6641 PR tree-optimization/47663
6642 * cgraph.h (struct cgraph_edge): Add call_stmt_size and
6643 call_stmt_time fields.
6644 (cgraph_edge_inlinable_p): Declare.
6645 (cgraph_edge_recursive_p): New inline function.
6646 * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
6647 (cgraph_clone_edge): Copy it.
6648 * ipa-inline.c (cgraph_estimate_edge_time): New function.
6649 Account for call stmt time.
6650 (cgraph_estimate_time_after_inlining): Take edge argument.
6651 (cgraph_estimate_edge_growth): Account call stmt size.
6652 (cgraph_estimate_size_after_inlining): Take edge argument.
6653 (cgraph_mark_inline_edge): Adjust.
6654 (cgraph_check_inline_limits): Likewise.
6655 (cgraph_recursive_inlining_p): Remove.
6656 (cgraph_edge_badness): Use cgraph_edge_recursive_p.
6657 (cgraph_decide_recursive_inlining): Take edge argument and
6659 (cgraph_decide_inlining_of_small_functions): Do not avoid
6660 diags for recursive inlining here.
6661 (cgraph_flatten): Adjust.
6662 (cgraph_decide_inlining_incrementally): Likewise.
6663 (estimate_function_body_sizes): Remove call cost handling.
6664 (compute_inline_parameters): Initialize caller edge call costs.
6665 (cgraph_estimate_edge_growth): New function.
6666 (cgraph_estimate_growth): Use it.
6667 (cgraph_edge_badness): Likewise.
6668 (cgraph_check_inline_limits): Take an edge argument.
6669 (cgraph_decide_inlining_of_small_functions): Adjust.
6670 (cgraph_decide_inlining): Likewise.
6671 * tree-inline.c (estimate_num_insns): Only account for call
6672 return value if it is used.
6673 (expand_call_inline): Avoid diagnostics on recursive inline
6675 * lto-cgraph.c (lto_output_edge): Output edge call costs.
6676 (input_edge): Input edge call costs.
6678 2011-04-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6680 * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
6682 2011-04-06 Jonathan Wakely <jwakely.gcc@gmail.com>
6684 * doc/invoke.texi (Spec Files): Fix typo.
6686 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
6688 * profile.c (branch_prob): Move declaration of local variable. Remove
6689 obsolete ??? comment. Expand the location explicitly instead of using
6690 the LOCATION_FILE and LOCATION_LINE macros.
6692 2011-04-06 Wei Guozhi <carrot@google.com>
6695 * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
6696 (arm_cond_branch): Likewise.
6697 (arm_cond_branch_reversed): Likewise.
6698 (arm_jump): Likewise.
6699 (push_multi): Likewise.
6700 * config/arm/constraints.md (Py): New constraint.
6702 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
6705 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
6707 (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
6708 (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
6709 #ifdef DBX_DEBUGGING_INFO.
6711 2011-04-05 Bernd Schmidt <bernds@codesourcery.com>
6714 * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
6715 if old and new states differ.
6717 2011-04-05 Joseph Myers <joseph@codesourcery.com>
6719 * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
6720 OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
6721 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
6722 handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
6723 * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
6725 * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
6726 ColdFire options to -mcpu= options.
6728 2011-04-05 Jeff Law <law@redhat.com>
6730 * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
6731 check if BB is a successor of LOOP->header and return
6732 NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
6734 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
6736 * cprop.c (struct reg_use): Remove.
6737 (reg_use_table): Make an array of RTX.
6738 (find_used_regs, constprop_register, local_cprop_pass,
6739 bypass_block): Simplify users of reg_use_table.
6740 (cprop_insn): Likewise. Iterate if copy propagation succeeded
6741 on one of the uses found by find_used_regs.
6743 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
6746 * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
6749 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
6751 * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
6753 (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
6755 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
6758 * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
6760 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
6762 * combine.c: Include obstack.h.
6763 (struct insn_link): Define.
6764 (uid_log_links): Adjust type.
6765 (FOR_EACH_LOG_LINK): New macro.
6766 (insn_link_obstack): Declare.
6767 (alloc_insn_link): Define.
6768 (create_log_links): Call it. Use FOR_EACH_LOG_LINK and adjust
6769 type of link variables.
6770 (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
6771 (try_combine, record_promoted_values, distribute_notes): Likewise.
6772 (distribute_links): Likewise. Tweak prototype.
6773 (clear_log_links): Delete.
6774 (adjust_for_new_dest): Call alloc_insn_link.
6775 * Makefile.in (combine.o): Depend on $(OBSTACK_H).
6777 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
6779 * gcse.c (modify_mem_list): Convert to an array of VECs.
6780 (canon_modify_mem_list, compute_transp): Tweak formatting.
6781 (alloc_gcse_mem): Likewise. Adjust for modify_mem_list change.
6782 (load_killed_in_block_p): Likewise.
6783 (record_last_mem_set_info): Likewise.
6784 (clear_modify_mem_tables): Likewise.
6786 2011-04-05 Tom de Vries <tom@codesourcery.com>
6789 * function.c (emit_use_return_register_into_block): Only define if
6792 2011-04-05 Eric Botcazou <ebotcazou@adacore.com>
6794 * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
6796 2011-04-05 Joseph Myers <joseph@codesourcery.com>
6798 * config/rx/rx-opts.h: New.
6799 * config/rx/rx.c (rx_cpu_type): Remove.
6800 (rx_handle_option): Don't assert that global structures are in
6801 use. Access variables via opts pointer. Defer most handling of
6802 OPT_mint_register_. Use error_at.
6803 (rx_option_override): Handle deferred OPT_mint_register_ here.
6804 * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
6805 * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
6806 (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
6807 (rx_cpu_types): New Enum and EnumValue entries.
6808 (mint-register=): Use Defer and use Var accordingly.
6810 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
6812 * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
6813 (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
6814 * final.c (debug_flush_symbol_queue, debug_queue_symbol):
6816 (debug_free_queue, debug_nesting, symbol_queue_index):
6818 * dbxout.c: ...to here. Make static.
6820 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
6822 * gcse.c (modify_pair): Define. Define a VEC of it.
6823 (canon_modify_mem_list): Convert to an array of VECs.
6824 (free_insn_expr_list_list): Delete.
6825 (clear_modify_mem_tables): Call VEC_free instead.
6826 (record_last_mem_set_info): Don't modify canon_modify_mem_list.
6827 (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
6828 (canon_list_insert, compute_transp): Likewise.
6830 2011-04-05 Tom de Vries <tom@codesourcery.com>
6833 * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
6836 2011-04-05 Tom de Vries <tom@codesourcery.com>
6839 * function.c (emit_use_return_register_into_block): New function.
6840 (thread_prologue_and_epilogue_insns): Use
6841 emit_use_return_register_into_block.
6843 2011-04-05 Tom de Vries <tom@codesourcery.com>
6846 * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
6849 2011-04-05 Tom de Vries <tom@codesourcery.com>
6851 * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
6853 2011-04-05 Yufeng Zhang <yufeng.zhang@arm.com>
6855 * config/arm/arm.md (define_constants for unspec): Replace with
6857 (define_constants for unspecv): Replace with define_c_enum.
6858 * config/arm/neon.md (define_constants for unspec): Replace with
6861 2011-04-04 Richard Henderson <rth@redhat.com>
6864 * dwarf2out.c (output_line_info): Always emit line info from
6865 at least one section.
6866 (dwarf2out_init): Create text_section_line_info here ...
6867 (set_cur_line_info_table): ... not here.
6869 2011-04-04 Vladimir Makarov <vmakarov@redhat.com>
6872 * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
6875 * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
6877 2011-04-04 Steven Bosscher <steven@gcc.gnu.org>
6879 * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
6880 (expr_equiv_p): Remove.
6881 (insert_set_in_table): Look at <dest, src> pair instead of expr.
6882 (hash_scan_set): Update call to insert_set_in_table.
6883 (dump_hash_table): Dump <dest, src> pair.
6884 (lookup_set): Simplify. Lookup <dest, src> pair.
6885 (compute_transp): Remove, fold heavily simplified code into...
6886 (compute_local_properties): ...here. Expect COMP and TRANSP
6888 (find_avail_set): Take set directly from struct expr.
6889 (find_bypass-set): Likewise.
6890 (bypass_block): Likewise.
6891 (cprop_insn): Likewise. Remove redundant INSN_P test.
6893 * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
6894 checks on form of COND from find_implicit_sets to here.
6895 (find_implicit_sets): Cleanup control flow. Split critical edges
6896 if it exposes implicit sets. Allocate/resize implicit_sets as
6898 (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
6899 changed something. Run df_analyze after find_implicit_sets if any
6900 edges were split. Do not allocate implicit_sets here.
6902 * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
6903 (gcse_obstack): Renamed to cprop_obstack.
6904 (GNEW, GNEWVEC, GNEWVAR): Remove.
6906 (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
6907 (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
6908 (gcse_alloc): Likewise, and rename to cprop_alloc.
6909 (alloc_gcse_men, free_gcse_mem): Remove.
6910 (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
6911 (compute_hash_table_work): Allocate and free reg_set_bitmap here.
6912 (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
6914 * cprop.c (oprs_not_set_p): Remove.
6915 (mark_set, mark_clobber): Remove.
6916 (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
6917 (reg_not_set_p): New function.
6918 (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
6919 (cprop_insn): Likewise.
6920 (cprop_jump): Use FOR_EACH_EDGE.
6922 2011-04-04 Bernd Schmidt <bernds@codesourcery.com>
6925 * haifa-sched.c (nonscheduled_insns_begin): New static variable.
6926 (rank_for_schedule): Use scheduled_insns vector instead of
6927 last_scheduled_insn.
6928 (ok_for_early_queue_removal): Likewise.
6929 (queue_to_ready): Search forward in nonscheduled_insns_begin if
6931 (choose_ready): Likewise.
6932 (commit_schedule): Use VEC_iterate.
6933 (schedule_block): Initialize nonscheduled_insns_begin. If we have
6934 a dbg_cnt, use it and ensure the first insn is in the ready list.
6935 (haifa_sched_init): Allocate scheduled_insns.
6936 (sched_extend_ready_list): Don't allocate it; reserve space.
6937 (haifa_sched_finish): Free it.
6939 2011-04-04 Joseph Myers <joseph@codesourcery.com>
6941 * optc-gen.awk: Always remove type from Variable entry before
6942 recording in var_seen.
6944 2011-04-04 Eric Botcazou <ebotcazou@adacore.com>
6946 * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
6947 * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
6948 call to tidy_fallthru_edges.
6950 2011-04-04 Joseph Myers <joseph@codesourcery.com>
6952 * doc/options.texi (ToLower): Document.
6953 * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
6954 * opts-common.c (decode_cmdline_option): Handle cl_tolower.
6955 * opts.h (cl_option): Add cl_tolower field.
6956 * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
6957 arguments with lowercase strings.
6958 * config/rx/rx.opt (mcpu=): Add ToLower.
6959 * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
6962 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
6964 * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
6966 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
6968 * config/vax/vax.c: Include reload.h.
6970 2011-04-04 Anatoly Sokolov <aesok@post.ru>
6972 * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
6973 * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
6974 (sparc_preferred_reload_class): New function.
6976 2011-04-04 Jakub Jelinek <jakub@redhat.com>
6979 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
6980 Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
6982 2011-04-03 Nathan Froyd <froydnj@codesourcery.com>
6984 * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
6985 * tree.c (initialize_tree_contains_struct): Adjust accordingly.
6987 2011-04-03 Anatoly Sokolov <aesok@post.ru>
6989 * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
6990 (ASM_OUTPUT_ALIGNED_BSS): Define.
6992 2011-04-03 Michael Matz <matz@suse.de>
6994 * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
6995 and next_slot members.
6996 (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
6997 lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
6998 (lto_streamer_cache_append): Declare.
6999 * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
7000 unsigned index, remove offset parameter, ensure that we append
7001 or update existing entries.
7002 (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
7003 parameter, update next_slot for append.
7004 (lto_streamer_cache_insert): Use unsigned index, remove offset_p
7006 (lto_streamer_cache_insert_at): Likewise.
7007 (lto_streamer_cache_append): New function.
7008 (lto_streamer_cache_lookup): Use unsigned index.
7009 (lto_streamer_cache_get): Likewise.
7010 (lto_record_common_node): Don't test tree_node_can_be_shared.
7011 (preload_common_node): Adjust call to lto_streamer_cache_insert.
7012 (lto_streamer_cache_delete): Don't free offsets member.
7013 * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
7014 (lto_output_string_with_length): Use lto_output_data_stream.
7015 (lto_output_tree_header): Remove ix parameter, don't write it.
7016 (lto_output_builtin_tree): Likewise.
7017 (lto_write_tree): Adjust callers to above, don't track and write
7018 offset, write unsigned index.
7019 (output_unreferenced_globals): Don't emit all global vars.
7020 (write_global_references): Use unsigned indices.
7021 (lto_output_decl_state_refs): Likewise.
7022 (write_symbol): Likewise.
7023 * lto-streamer-in.c (lto_input_chain): Move earlier.
7024 (input_function): Use unsigned index.
7025 (input_alias_pairs): Don't read and then ignore all global vars.
7026 (lto_materialize_tree): Remove ix_p parameter, don't read index,
7027 don't pass it back, use lto_streamer_cache_append.
7028 (lto_register_var_decl_in_symtab): Use unsigned index.
7029 (lto_register_function_decl_in_symtab): Likewise.
7030 (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
7032 (lto_get_builtin_tree): Don't read index, use
7033 lto_streamer_cache_append.
7034 (lto_read_tree): Adjust call to lto_materialize_tree.
7036 * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
7037 don't use function calls in arguments to MIN.
7039 * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
7042 * gimple.c (gimple_type_leader_entry): Mark deletable.
7044 2011-04-03 Alan Modra <amodra@gmail.com>
7046 * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
7048 2011-04-03 Michael Matz <matz@suse.de>
7050 * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
7052 * tree.h (tree_decl_non_common.vindex): Adjust comment.
7054 2011-04-03 Michael Matz <matz@suse.de>
7056 * cgraphbuild.c (record_reference): Canonicalize constructor values.
7057 * gimple-fold.c (canonicalize_constructor_val): Accept being called
7058 without function context.
7059 * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
7060 current_function_decl and cfun.
7062 2011-04-03 Michael Matz <matz@suse.de>
7064 * tree.c (decl_init_priority_insert): Don't create entry for
7066 (decl_fini_priority_insert): Ditto.
7067 (fields_compatible_p, find_compatible_field): Remove.
7068 * tree.h (fields_compatible_p, find_compatible_field): Remove.
7069 * gimple.c (gimple_compare_field_offset): Adjust block comment.
7071 2011-04-03 Eric Botcazou <ebotcazou@adacore.com>
7073 * combine.c (try_combine): Remove useless local variable.
7075 2011-04-03 Richard Guenther <rguenther@suse.de>
7076 Ira Rosen <ira.rosen@linaro.org>
7078 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
7079 non-variable offsets and compare the remaining bases of the two
7080 accesses instead of looking for exact same data-ref.
7082 2011-04-02 Kai Tietz <ktietz@redhat.com>
7085 * i386.c (ix86_function_arg_boundary): Fix printf formatter.
7087 * i386.c (ix86_is_msabi_thiscall): New helper function.
7088 (ix86_is_type_thiscall): New helper function.
7089 (ix86_comp_type_attributes): Handle thiscall for method-functions
7091 (init_cumulative_args): Likewise.
7092 (find_drap_reg): Likewise.
7093 (ix86_static_chain): Likewise.
7094 (x86_this_parameter): Likewise.
7095 (x86_output_mi_thunk): Likewise.
7097 2011-04-01 Olivier Hainque <hainque@adacore.com>
7098 Nicolas Setton <setton@adacore.com>
7099 Eric Botcazou <ebotcazou@adacore.com>
7101 * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
7102 (add_gnat_descriptive_type_attribute): New function.
7103 (gen_array_type_die): Call it.
7104 (gen_enumeration_type_die): Likewise.
7105 (gen_struct_or_union_type_die): Likewise.
7106 (modified_type_die): Likewise.
7107 * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
7108 * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
7109 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
7111 2011-04-01 Jakub Jelinek <jakub@redhat.com>
7114 * dwarf2out.c (resolve_addr): Don't call force_decl_die
7115 if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
7118 2011-03-17 Richard Guenther <rguenther@suse.de>
7121 * lto-cgraph.c (input_overwrite_node): Clear the abstract
7122 origin for decls in other ltrans units.
7123 (input_varpool_node): Likewise.
7125 2011-04-01 Jakub Jelinek <jakub@redhat.com>
7128 * expr.c (expand_assignment): Handle all possibilities
7129 if TO_RTX is CONCAT.
7130 * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
7131 (store_split_bit_field): If SUBREG_REG (op0) or
7132 op0 itself has smaller mode than word, return it
7133 for offset 0 and const0_rtx for out-of-bounds stores.
7134 If word is const0_rtx, skip it.
7136 2011-04-01 Naveen H.S <naveen.S@kpitcummins.com>
7138 * config/h8300/h8300.c (print_operand_address): Rename to...
7139 (h8300_print_operand_address): ...this. Make static. Adjust comments.
7140 Call h8300_print_operand and h8300_print_operand_address instead of
7141 print_operand and print_operand_address. Declare.
7142 (print_operand): Renake to...
7143 (h8300_print_operand): ...this. Make static. Adjust comments.
7144 Call h8300_print_operand instead of print_operand. Declare.
7145 (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
7146 (h8300_register_move_cost): Likewise.
7147 (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
7148 TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
7149 * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
7150 PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
7151 * config/h8300/h8300-protos.h (print_operand): Delete.
7152 (print_operand_address): Delete.
7154 2011-04-01 Richard Henderson <rth@redhat.com>
7157 * dwarf2out.c (dwarf2out_source_line): Disable discriminators
7158 in strict mode before dwarf4. Re-order tests to early out
7159 before switching sections.
7161 2011-04-01 Nathan Froyd <froydnj@codesourcery.com>
7163 * config/h8300/constraints.md: New file.
7164 * config/h8300/h8300.md: Include it. Use satisfies_constraint_J,
7165 satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
7166 (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
7167 * config/h8300/predicates.md (bit_operand): Likewise.
7168 (incdec_operand): Use satisfies_constraint_M and
7169 satisfies_constraint_O. Don't use C code block.
7170 * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
7171 * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
7172 (compute_mov_length): Use satisfies_constraint_G.
7173 (fix_bit_operand): Use satisfies_constraint_U.
7174 * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
7175 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
7176 (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
7177 (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
7178 (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
7179 (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
7180 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
7181 (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
7182 (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
7183 (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
7184 (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
7185 (EXTRA_MEMORY_CONSTRAINT): Delete.
7187 2011-04-01 Andrew Pinski <pinskia@gmail.com>
7188 Michael Meissner <meissner@linux.vnet.ibm.com>
7191 * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
7192 operands, as per the specifications.
7194 * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
7195 (vec_extract_evenv4sf): Ditto.
7196 (vec_extract_evenv8hi): Ditto.
7197 (vec_extract_evenv16qi): Ditto.
7198 (vec_extract_oddv4si): Ditto.
7200 2011-03-31 Mark Wielaard <mjw@redhat.com>
7202 * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
7203 high_pc attribute if the CU has no associated code. Only output
7204 DW_AT_entry_pc for CU if not generating strict dwarf and
7207 2011-04-01 Bernd Schmidt <bernds@codesourcery.com>
7209 * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
7210 * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
7212 (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
7213 * final.c (final_start_function): Call the new function rather
7214 than using a NULL argument for dwarf2out_frame_debug.
7216 * ifcvt.c (cond_exec_process_insns): Disallow converting a block
7217 that contains the prologue.
7219 * haifa-sched.c (queue_insn): New arg REASON. All callers
7220 changed. Print it in debugging output.
7222 * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
7224 * sched-ebb.c (begin_schedule_ready): Remove second argument.
7225 Split most of the code into...
7226 (begin_move_insn): ... here. New function.
7227 (ebb_sched_info): Add a pointer to it.
7228 * haifa-sched.c (scheduled_insns): New static variable.
7229 (sched_extend_ready_list): Allocate it.
7230 (schedule_block): Use it to record the order of scheduled insns.
7231 Perform RTL changes to move insns only after all scheduling
7232 decisions have been made.
7233 * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
7234 begin_move_insn field.
7235 * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
7236 * sched-int.h (struct haifa_sched_info): Remove second argument
7237 from begin_schedule_ready hook. Add new member begin_move_insn.
7238 * sched-rgn.c (begin_schedule_ready): Remove second argument.
7239 (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
7241 * haifa-sched.c (prune_ready_list): New function, broken out of
7243 (schedule_block): Use it.
7245 2011-04-01 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7247 * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
7249 2011-04-01 Kai Tietz <ktietz@redhat.com>
7251 * config.gcc (*-*-mingw*): Allow as option the
7252 posix threading model.
7253 * config/i386/mingw32.h (SPEC_PTHREAD1, SPEC_PTHREAD2):
7254 New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
7256 (CPP_SPEC): Add pthread/no-pthread handling.
7257 (LIB_SPEC): Likewise.
7258 * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
7259 (LIB_SPEC): Likewise.
7260 * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
7261 flag to pass -pthread option for shared libgcc build.
7262 (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
7263 for shared libgcc build.
7264 * config/i386/t-mingw-pthread: New file.
7265 * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
7266 New define to enable use of library pthread by default.
7267 * config/i386/mingw.opt (pthread): New driver option.
7268 (no-pthread): New driver option.
7269 * config/i386/cygming.opt: Make sure trailing empty line is retained.
7270 * config/i386/mingw-w64.opt: Likewise.
7272 2011-04-01 Gary Funck <gary@intrepid.com>
7274 * c-decl.c (grokdeclarator): Fix formatting.
7276 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
7278 * expr.c (emit_block_move_via_movmem): Use n_generator_args
7279 instead of n_operands.
7280 (set_storage_via_setmem): Likewise.
7281 * optabs.c (maybe_gen_insn): Likewise.
7282 * config/arm/arm.c (arm_init_neon_builtins): Likewise.
7283 * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
7284 (mips_expand_builtin_direct): Likewise.
7285 * config/spu/spu.c (expand_builtin_args): Likewise.
7287 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
7289 * recog.h (insn_data_d): Add n_generator_args.
7290 * genoutput.c (data): Likewise.
7291 (output_insn_data): Print it.
7292 (max_opno, num_dups): Delete.
7293 (scan_operands): Just fill in "d->operand[...]".
7294 (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
7296 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
7298 * gensupport.h (pattern_stats): New structure.
7299 * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
7300 * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
7301 (max_operand_1, max_operand_vec): Delete.
7302 (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
7304 2011-03-31 Nathan Froyd <froydnj@codesourcery.com>
7306 * emit-rtl.c (emit_pattern_after_setloc): New function.
7307 (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
7308 (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
7309 (emit_pattern_after): New function.
7310 (emit_insn_after, emit_jump_insn_after): Call it.
7311 (emit_call_insn_after, emit_debug_insn_after): Likewise.
7312 (emit_pattern_before_setloc): New function.
7313 (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
7314 (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
7316 (emit_pattern_before): New function.
7317 (emit_insn_before, emit_jump_insn_before): Call it.
7318 (emit_call_insn_before, emit_debug_insn_before): Likewise.
7320 2011-03-31 Richard Henderson <rth@redhat.com>
7322 * dwarf2out.c (dw_separate_line_info_ref): Remove.
7323 (dw_separate_line_info_entry): Remove.
7324 (enum dw_line_info_opcode): New.
7325 (dw_line_info_entry): Use it.
7326 (dw_line_info_table, dw_line_info_table_p): New.
7327 (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
7328 (line_info_table, line_info_label_num): Remove.
7329 (line_info_table_in_use): Remove.
7330 (separate_line_info_table): Remove.
7331 (separate_line_info_table_allocated): Remove.
7332 (separate_line_info_table_in_use): Remove.
7333 (LINE_INFO_TABLE_INCREMENT): Remove.
7334 (line_info_label_num): New.
7335 (cur_line_info_table): New.
7336 (text_section_line_info, cold_text_section_line_info): New.
7337 (separate_line_info): New.
7338 (SEPARATE_LINE_CODE_LABEL): Remove.
7339 (print_dwarf_line_table): Remove.
7340 (debug_dwarf): Don't dump it.
7341 (output_one_line_info_table): New.
7342 (output_line_info): Use it.
7343 (new_line_info_table): New.
7344 (set_cur_line_info_table): New.
7345 (dwarf2out_switch_text_section): Use it.
7346 (dwarf2out_begin_function): Likewise.
7347 (push_dw_line_info_entry): New.
7348 (dwarf2out_source_line): Rewrite for new line info tables.
7349 (dwarf2out_init): Remove dead initailizations.
7351 2011-03-31 Joseph Myers <joseph@codesourcery.com>
7353 * opts.h (cl_option): Add comments to fields. Add bit-fields for
7355 (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
7356 CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
7357 CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
7358 CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
7359 (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
7360 * opt-functions.awk (flag_init, switch_bit_fields): New.
7361 (switch_flags): Don't handle flags moved to bit-fields. Don't
7362 generate CL_MISSING_OK or CL_SAVE.
7363 * optc-gen.awk: Update to generate bit-field output as well as
7365 * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
7366 bit-field instead of CL_REJECT_DRIVER flag.
7367 * opts-common.c (generate_canonical_option,
7368 decode_cmdline_option): Use bit-fields instead of CL_* flags.
7369 * opts.c (maybe_default_option): Use cl_reject_negative bit-field
7370 instead of CL_REJECT_NEGATIVE flag.
7371 * toplev.c (print_switch_values): Use cl_report bit-field instead
7374 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
7376 * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
7377 a zero minimum index only if it is redundant.
7379 2011-03-31 Vladimir Makarov <vmakarov@redhat.com>
7381 PR rtl-optimization/48381
7382 * ira-color.c (assign_hard_reg): Use hard reg set intersection
7383 instead of ira_class_hard_reg_index for calculating conflicting
7386 2011-03-31 Steven Bosscher <steven@gcc.gnu.org>
7388 * cprop.c: Clean up hash table building.
7389 (reg_avail_info): Remove.
7390 (oprs_available_p): Remove.
7391 (record_last_reg_set_info): Remove.
7392 (record_last_set_info): Remove.
7393 (reg_available_p): New function.
7394 (gcse_constant_p): Do not treat unfolded conditions as constants.
7395 (make_set_regs_unavailable): New function.
7396 (hash_scan_set): Simplify with new reg_available_p.
7397 (compute_hash_table_work): Traverse insns stream only once.
7398 Do not compute reg_avail_info. Traverse insns in reverse order.
7399 Record implicit sets after recording explicit sets from the block.
7401 2011-03-31 Michael Matz <matz@suse.de>
7403 * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
7405 2011-03-31 Anatoly Sokolov <aesok@post.ru>
7407 * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
7408 * config/h8300/h8300-protos.h (h8300_get_index): Remove.
7409 * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
7410 (h8300_mode_dependent_address_p): New function.
7411 (h8300_get_index): Make static.
7413 2011-03-31 Jeff Law <law@redhat.com>
7415 * reload1.c (elimination_effects): Fix typo in recent change.
7417 * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
7418 typo potentially leading to null pointer dereference.
7420 * caller-save.c (new_saved_hard_reg): Eliminate return value.
7421 (setup_save_areas): Corresponding changes to avoid useless
7424 * jump.c (reversed_comparison_code_parts): Avoid successive return
7425 statements when REVERSE_CONDITION is defined.
7427 * expr.c (expand_assignment): Avoid useless assignments.
7428 (expand_expr_real_1): Likewise.
7429 (expand_expr_real_2): Avoid useless statements.
7431 * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
7433 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
7435 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
7438 * stmt.c (expand_expr_stmt): Avoid useless assignment.
7440 2011-03-31 Joseph Myers <joseph@codesourcery.com>
7443 * doc/tm.texi.in (TARGET_VERSION): Remove.
7444 * doc/tm.texi: Regenerate.
7445 * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
7446 * collect2.c (main): Don't use TARGET_VERSION.
7447 * mips-tdump.c (main): Don't use TARGET_VERSION.
7448 * mips-tfile.c (main): Don't use TARGET_VERSION.
7449 * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
7450 * config/rs6000/vxworksae.h: Remove.
7451 * config/alpha/alpha.h (TARGET_VERSION): Remove.
7452 * config/alpha/freebsd.h (TARGET_VERSION): Remove.
7453 * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
7454 * config/alpha/netbsd.h (TARGET_VERSION): Remove.
7455 * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
7456 * config/arm/arm.h (TARGET_VERSION): Remove.
7457 * config/arm/coff.h (TARGET_VERSION): Remove.
7458 * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
7459 * config/arm/elf.h (TARGET_VERSION): Remove.
7460 * config/arm/freebsd.h (TARGET_VERSION): Remove.
7461 * config/arm/linux-elf.h (TARGET_VERSION): Remove.
7462 * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
7463 * config/arm/pe.h (TARGET_VERSION): Remove.
7464 * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
7465 * config/arm/semi.h (TARGET_VERSION): Remove.
7466 * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
7467 * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
7468 * config/arm/vxworks.h (TARGET_VERSION): Remove.
7469 * config/avr/avr.h (TARGET_VERSION): Remove.
7470 * config/bfin/bfin.h (TARGET_VERSION): Remove.
7471 * config/fr30/fr30.h (TARGET_VERSION): Remove.
7472 * config/frv/frv.h (TARGET_VERSION): Remove.
7473 * config/h8300/h8300.h (TARGET_VERSION): Remove.
7474 * config/i386/cygwin.h (TARGET_VERSION): Remove.
7475 * config/i386/darwin.h (TARGET_VERSION): Remove.
7476 * config/i386/darwin64.h (TARGET_VERSION): Remove.
7477 * config/i386/djgpp.h (TARGET_VERSION): Remove.
7478 * config/i386/freebsd.h (TARGET_VERSION): Remove.
7479 * config/i386/freebsd64.h (TARGET_VERSION): Remove.
7480 * config/i386/gnu.h (TARGET_VERSION): Remove.
7481 * config/i386/i386-interix.h (TARGET_VERSION): Remove.
7482 * config/i386/i386elf.h (TARGET_VERSION): Remove.
7483 * config/i386/linux.h (TARGET_VERSION): Remove.
7484 * config/i386/linux64.h (TARGET_VERSION): Remove.
7485 * config/i386/lynx.h (TARGET_VERSION): Remove.
7486 * config/i386/mingw32.h (TARGET_VERSION): Remove.
7487 * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
7488 * config/i386/netbsd64.h (TARGET_VERSION): Remove.
7489 * config/i386/netware.h (TARGET_VERSION): Remove.
7490 * config/i386/nto.h (TARGET_VERSION): Remove.
7491 * config/i386/openbsd.h (TARGET_VERSION): Remove.
7492 * config/i386/vxworks.h (TARGET_VERSION): Remove.
7493 * config/ia64/elf.h (TARGET_VERSION): Remove.
7494 * config/ia64/freebsd.h (TARGET_VERSION): Remove.
7495 * config/ia64/hpux.h (TARGET_VERSION): Remove.
7496 * config/ia64/linux.h (TARGET_VERSION): Remove.
7497 * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
7498 * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
7499 TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
7500 * config/lm32/lm32.h (TARGET_VERSION): Remove.
7501 * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
7502 * config/m32c/m32c.h (TARGET_VERSION): Remove.
7503 * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
7504 * config/m32r/m32r.h (TARGET_VERSION): Remove.
7505 * config/m68k/linux.h (TARGET_VERSION): Remove.
7506 * config/m68k/m68k.h (TARGET_VERSION): Remove.
7507 * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
7508 * config/m68k/uclinux.h (TARGET_VERSION): Remove.
7509 * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
7510 * config/mep/mep.h (TARGET_VERSION): Remove.
7511 * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
7512 MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
7513 * config/mips/iris6.h (MACHINE_TYPE): Remove.
7514 * config/mips/linux.h (TARGET_VERSION): Remove.
7515 * config/mips/netbsd.h (MACHINE_TYPE): Remove.
7516 * config/mips/vxworks.h (TARGET_VERSION): Remove.
7517 * config/mmix/mmix.h (TARGET_VERSION): Remove.
7518 * config/mn10300/linux.h (TARGET_VERSION): Remove.
7519 * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
7520 * config/pa/pa.h (TARGET_VERSION): Remove.
7521 * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
7522 * config/picochip/picochip.h (TARGET_VERSION): Remove.
7523 * config/rs6000/aix.h (TARGET_VERSION): Remove.
7524 * config/rs6000/darwin.h (TARGET_VERSION): Remove.
7525 * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
7526 * config/rs6000/eabi.h (TARGET_VERSION): Remove.
7527 * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
7528 * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
7529 * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
7530 * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
7531 * config/rs6000/linux.h (TARGET_VERSION): Remove.
7532 * config/rs6000/linux64.h (TARGET_VERSION): Remove.
7533 * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
7534 * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
7535 * config/rs6000/lynx.h (TARGET_VERSION): Remove.
7536 * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
7537 * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
7538 * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
7539 * config/s390/linux.h (TARGET_VERSION): Remove.
7540 * config/s390/s390.h (TARGET_VERSION): Remove.
7541 * config/s390/tpf.h (TARGET_VERSION): Remove.
7542 * config/score/score.h (TARGET_VERSION): Remove.
7543 * config/sh/linux.h (TARGET_VERSION): Remove.
7544 * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
7545 TARGET_VERSION_CPU, TARGET_VERSION): Remove.
7546 * config/sh/sh.h (TARGET_VERSION): Remove.
7547 * config/sh/sh64.h (TARGET_VERSION): Remove.
7548 * config/sh/superh.h (TARGET_VERSION): Remove.
7549 * config/sh/vxworks.h (TARGET_VERSION): Remove.
7550 * config/sparc/freebsd.h (TARGET_VERSION): Remove.
7551 * config/sparc/linux.h (TARGET_VERSION): Remove.
7552 * config/sparc/linux64.h (TARGET_VERSION): Remove.
7553 * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
7554 TARGET_NAME32, TARGET_NAME): Remove.
7555 * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
7556 * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
7557 * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
7558 * config/sparc/sysv4.h (TARGET_VERSION): Remove.
7559 * config/sparc/vxworks.h (TARGET_VERSION): Remove.
7560 * config/spu/spu.h (TARGET_VERSION): Remove.
7561 * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
7562 * config/v850/v850.h (TARGET_VERSION): Remove.
7563 * config/vax/linux.h (TARGET_VERSION): Remove.
7564 * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
7565 * config/xtensa/elf.h (TARGET_VERSION): Remove.
7566 * config/xtensa/linux.h (TARGET_VERSION): Remove.
7568 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
7571 * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
7572 frame-related from frame-unrelated adjustments to the stack pointer.
7574 2011-03-31 Jakub Jelinek <jakub@redhat.com>
7576 * common.opt (fdebug-types-section): Move earlier.
7577 * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
7579 2011-03-31 Andreas Tobler <andreast@fgznet.ch>
7581 * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
7584 2011-03-30 Nathan Froyd <froydnj@codesourcery.com>
7586 * tree.h (CASE_CHAIN): Define.
7587 * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
7588 (gimple_redirect_edge_and_branch): Likewise.
7590 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
7593 * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
7596 2011-03-30 Jeff Law <law@redhat.com>
7598 * PR bootstrap/48371
7599 * reload1.c (reload): Fix botch in last change.
7601 * reload.h (struct reload): Fix typo introduced in last change.
7603 2011-03-30 Joseph Myers <joseph@codesourcery.com>
7605 * config/arm/arm.opt (mhard-float, msoft-float): Mark
7606 Undocumented. Remove help text.
7607 * doc/invoke.texi (ARM Options): Don't document -msoft-float and
7610 2011-03-30 Joseph Myers <joseph@codesourcery.com>
7612 * doc/options.texi (NegativeAlias): Document.
7613 (Alias): Mention NegativeAlias.
7614 * opt-functions.awk: Handle NegativeAlias.
7615 * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
7616 * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
7617 * opts.h (CL_NEGATIVE_ALIAS): Define.
7618 * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
7619 (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
7621 * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
7623 * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
7624 mno-spe and mno-isel instead of mspe=no and -misel=no.
7626 2011-03-29 Mark Wielaard <mjw@redhat.com>
7628 * common.opt (fdebug-types-section): New flag.
7629 * doc/invoke.texi: Document new -fno-debug-types-section flag.
7630 * dwarf2out.c (use_debug_types): New define.
7631 (struct die_struct): Mark die_id with GTY desc use_debug_types.
7632 (print_die): Guard output of type unit signatures using
7634 (build_abbrev_table): Replace assert of dwarf_version >= 4
7635 with assert on use_debug_types.
7636 (size_of_die): Likewise.
7637 (unmark_dies): Likewise.
7638 (value_format): Decide AT_ref_external form on use_debug_types.
7639 (output_die): Replace dwarf_version version check guard with
7640 use_debug_types where appropriate.
7641 (modified_type_die): Likewise.
7642 (gen_reference_type_die): Likewise.
7643 (dwarf2out_start_source_file): Likewise.
7644 (dwarf2out_end_source_file): Likewise.
7645 (prune_unused_types_walk_attribs): Likewise.
7646 (dwarf2out_finish): Likewise.
7648 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
7650 * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
7652 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
7654 PR rtl-optimization/48332
7655 * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
7656 mode of input operand N and modeN to its actual mode.
7658 2011-03-30 Jeff Law <law@redhat.com>
7660 * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
7661 define accessor macro.
7662 (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
7663 (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
7664 (reg_equiv_init): Likewise.
7665 (reg_equivs_size): New variable.
7666 (reg_equiv_init_size): Remove.
7667 (allocate_initial_values): Move prototype to here from....
7668 * integrate.h (allocate_initial_values): Remove prototype.
7669 * integrate.c: Include reload.h.
7670 (allocate_initial_values): Corresponding changes.
7671 * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
7672 (fix_reg_equiv_init, no_equiv): Corresponding changes.
7673 (update_equiv_regs): Corresponding changes.
7674 (ira): Corresponding changes.
7675 * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
7676 (push_secondary_reload): Corresponding changes.
7677 (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
7678 (make_memloc, find_reloads_address): Corresponding changes.
7679 (subst_reg_equivs, subst_indexed_address): Corresponding changes.
7680 (find_reloads_address_1): Corresponding changes.
7681 (find_reloads_subreg_address, subst_reloads): Corresponding changes.
7682 (refers_to_regno_for_reload_p): Corresponding changes.
7683 (reg_overlap_mentioned_for_reload_p): Corresponding changes.
7684 (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
7685 * reload1.c: Include ggc.h.
7686 (grow_reg_equivs): New function.
7687 (replace_pseudos_in, reload): Corresponding changes.
7688 (calculate_needs_all_insns, alter_regs): Corresponding changes.
7689 (eliminate_regs_1, elimination_effects): Corresponding changes.
7690 (emit_input_reload_insns, emit_output_reload_insns): Likewise.
7691 (delete_output_reload): Likewise.
7692 * caller-save.c (mark_referenced_regs): Corresponding changes.
7693 * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
7694 * frv/predicates.md (frv_load_operand): Corresponding changes.
7695 * microblaze/microblaze.c (double_memory_operand): Corresponding
7697 * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
7698 * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
7699 * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
7700 * m68k/m68k.c (emit_move_sequence): Corresponding changes.
7701 * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
7703 * pa/pa.c (emit_move_sequence): Corresponding changes.
7704 * vax/vax.c (nonindexed_address_p): Corresponding changes.
7706 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
7709 * config/arm/arm.c (coproc_secondary_reload_class): Handle
7710 structure modes. Don't check neon_vector_mem_operand for
7711 vector or structure modes.
7713 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
7714 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
7717 * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
7718 operand 1 and reshuffle the operands to match.
7719 (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
7721 2011-03-30 Christian Schüler <cschueler@gmx.de>
7724 * config/c.opt (F): Added 'Driver' to -F option.
7727 * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
7729 * config/darwin.opt: Added '-arch' option.
7731 2011-03-30 Nick Clifton <nickc@redhat.com>
7733 * config/rx/rx.md: Add peepholes and patterns to combine
7734 extending loads and simple arithmetic instructions.
7735 * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
7736 * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
7737 * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
7738 modes to use pre-decrement and post-increment addressing.
7739 (rx_is_restricted_memory_address): Add range checking of REG+INT
7741 (rx_print_operand): Add support for %Q. Fix handling of %Q.
7742 (rx_memory_move_cost): Adjust cost of stores.
7743 (rx_adjust_insn_length): New function.
7745 2011-03-30 Jakub Jelinek <jakub@redhat.com>
7748 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
7749 arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
7750 matching arg00/arg01 types.
7752 2011-03-30 Eric Botcazou <ebotcazou@adacore.com>
7754 * cfglayout.c (insn_locators_alloc): Initialize curr_location and
7755 last_location to UNKNOWN_LOCATION.
7757 2011-03-30 H.J. Lu <hongjiu.lu@intel.com>
7760 * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
7763 2011-03-30 Joseph Myers <joseph@codesourcery.com>
7764 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7767 * config/sparc/sparc.opt (sparc_cpu_and_features): Add
7769 (sparc_cpu): Likewise.
7770 * config/sparc/sparc.c (sparc_option_override): Replace 0 by
7773 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
7777 PR rtl-optimization/48345
7778 * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
7779 hard regs for given mode from profitable regs when doing secondary
7782 2011-03-29 Jeff Law <law@redhat.com>
7785 * tree-ssa-threadupdate.c (struct redirection_data): Remove
7786 do_not_duplicate field.
7787 (lookup_redirection_data): Corresponding changes.
7788 (create_duplicates): Always create a template block.
7789 (redirect_edges): Remove code which reused the original block
7790 when it was going to become unreachable code.
7791 (thread_block): Don't set do_not_duplicate field.
7793 2011-03-29 Joseph Myers <joseph@codesourcery.com>
7795 * lto-opts.c (register_user_option_p, lto_register_user_option):
7796 Make type argument unsigned.
7797 * lto-streamer.h (lto_register_user_option): Make type argument
7799 * opth-gen.awk: Make CL_* macros unsigned.
7800 * opts-common.c (find_opt): Make lang_mask argument unsigned.
7801 * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
7802 CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
7803 CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
7804 CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
7805 CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
7806 (find_opt): Make lang_mask argument unsigned.
7808 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
7810 PR rtl-optimization/48331
7811 PR rtl-optimization/48334
7812 * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
7813 for any used algorithm.
7815 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
7817 * ira-conflicts.c (build_object_conflicts): Add unused attribute
7820 2011-03-29 Uros Bizjak <ubizjak@gmail.com>
7822 * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
7823 (alpha_option_override): Don't set alpha_sr_alias_set.
7824 (emit_frame_store_1): Use gen_frame_mem rather than calling
7826 (alpha_expand_epilogue): Ditto.
7828 2011-03-29 Ira Rosen <ira.rosen@linaro.org>
7830 PR tree-optimization/48290
7831 * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
7832 vectorization, check that relevant phis in the basic block after
7833 the inner loop are really inner loop's exit phis.
7835 2011-03-29 Richard Sandiford <richard.sandiford@linaro.org>
7838 * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
7839 (cached_dw_loc_list_def): New structure.
7840 (cached_dw_loc_list): New typedef.
7841 (cached_dw_loc_list_table): New variable.
7842 (cached_dw_loc_list_table_hash): New function.
7843 (cached_dw_loc_list_table_eq): Likewise.
7844 (add_location_or_const_value_attribute): Take a bool cache_p.
7845 Cache the list when the parameter is true.
7846 (gen_formal_parameter_die): Update caller.
7847 (gen_variable_die): Likewise.
7848 (dwarf2out_finish): Likewise.
7849 (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
7850 while generating debug info for the decl.
7851 (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
7852 (dwarf2out_init): Initialize cached_dw_loc_list_table.
7853 (resolve_addr): Cache the result of resolving a chain of
7856 2011-03-28 Vladimir Makarov <vmakarov@redhat.com>
7858 * ira-color.c (update_left_conflict_sizes_p): Don't assume that
7859 conflict object hard regset nodes have intersecting hard reg sets.
7861 * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
7862 after regstat_init_n_sets_and_refs.
7864 * ira.c: Add more comments at the top.
7865 (setup_stack_reg_pressure_class, setup_pressure_classes):
7866 Add comments how we compute the register pressure classes.
7867 (setup_allocno_and_important_classes): Add more comments.
7868 (setup_class_translate_array, reorder_important_classes)
7869 (setup_reg_class_relations): Add comments.
7871 * ira-emit.c: Add 2011 to the Copyright line. Add comments at the
7874 * ira-color.c: Add 2011 to the Copyright line.
7875 (assign_hard_reg): Add more comments.
7876 (improve_allocation): Ditto.
7878 * ira-costs.c: Add 2011 to the Copyright line.
7879 (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
7881 (setup_regno_cost_classes_by_mode): Ditto.
7883 Initial patches from ira-improv branch:
7885 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
7887 * ira-build.c (ira_create_object): Remove initialization of
7888 OBJECT_PROFITABLE_HARD_REGS. Initialize OBJECT_ADD_DATA.
7889 (ira_create_allocno): Remove initialization of
7890 ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
7891 ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
7892 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
7893 ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
7894 ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
7895 Initialize ALLOCNO_ADD_DATA.
7896 (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
7897 and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
7899 (ira_flattening): Ditto. Use ALLOCNO_EMIT_DATA instead of
7900 ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
7902 * ira.c (ira_reallocate): Remove.
7903 (setup_pressure_classes): Call
7904 ira_init_register_move_cost_if_necessary. Use
7905 ira_register_move_cost instead of ira_get_register_move_cost.
7906 (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
7907 (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
7909 * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
7910 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
7911 ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
7912 ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
7913 instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
7914 OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
7916 (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
7917 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
7918 (struct allocno_color_data): New.
7919 (allocno_color_data_t): New typedef.
7920 (allocno_color_data): New definition.
7921 (ALLOCNO_COLOR_DATA): New macro.
7922 (struct object_color_data): New.
7923 (object_color_data_t): New typedef.
7924 (object_color_data): New definition.
7925 (OBJECT_COLOR_DATA): New macro.
7926 (update_copy_costs, calculate_allocno_spill_cost): Call
7927 ira_init_register_move_cost_if_necessary. Use
7928 ira_register_move_cost instead of ira_get_register_move_cost.
7929 (move_spill_restore, update_curr_costs): Ditto.
7930 (allocno_spill_priority): Make it inline.
7931 (color_pass): Allocate and free allocno_color_dat and object_color_data.
7932 (struct coalesce_data, coalesce_data_t): New.
7933 (allocno_coalesce_data): New definition.
7934 (ALLOCNO_COALESCE_DATA): New macro.
7935 (merge_allocnos, coalesced_allocno_conflict_p): Use
7936 ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
7937 ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
7938 (coalesce_allocnos): Ditto.
7939 (setup_coalesced_allocno_costs_and_nums): Ditto.
7940 (collect_spilled_coalesced_allocnos): Ditto.
7941 (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
7942 (setup_slot_coalesced_allocno_live_ranges): Ditto.
7943 (coalesce_spill_slots): Ditto.
7944 (ira_sort_regnos_for_alter_reg): Ditto. Allocate, initialize and
7945 free allocno_coalesce_data.
7947 * ira-conflicts.c: Fix formatting.
7948 (process_regs_for_copy): Call
7949 ira_init_register_move_cost_if_necessary. Use
7950 ira_register_move_cost instead of ira_get_register_move_cost.
7951 (build_object_conflicts): Optimize.
7953 * ira-costs.c (record_reg_classes): Optimize. Call
7954 ira_init_register_move_cost_if_necessary. Use
7955 ira_register_move_cost, ira_may_move_in_cost, and
7956 ira_may_move_out_cost instead of ira_get_register_move_cost and
7957 ira_get_may_move_cost.
7958 (record_address_regs): Ditto.
7959 (scan_one_insn): Optimize.
7960 (find_costs_and_classes): Optimize.
7961 (process_bb_node_for_hard_reg_moves): Call
7962 ira_init_register_move_cost_if_necessary. Use
7963 ira_register_move_cost instead of ira_get_register_move_cost.
7965 * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
7966 ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
7967 ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
7968 (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
7970 (ira_initiate_emit_data, ira_finish_emit_data)
7971 (create_new_allocno): New functions.
7972 (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
7973 (emit_move_list): Call ira_init_register_move_cost_if_necessary.
7974 Use ira_register_move_cost instead of ira_get_register_move_cost.
7976 * ira-int.h: Fix some comments.
7977 (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
7978 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
7979 (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
7980 hard_regs_subnodes_start, hard_regs_subnodes_num. Add new member
7982 (struct ira_allocno): Make mode and aclass a bitfield. Move other
7983 bitfield after mode. Make hard_regno a short int. Make
7984 hard_regno short. Remove first_coalesced_allocno and
7985 next_coalesced_allocno. Move mem_optimized_dest_p,
7986 somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
7987 into struct ira_emit_data. Remove in_graph_p, may_be_spilled_p,
7988 available_regs_num, next_bucket_allocno, prev_bucket_allocno,
7989 temp, colorable_p. Add new member add_data.
7990 (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
7991 (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
7992 (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
7993 (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
7994 (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
7995 (ALLOCNO_ADD_DATA): New macro.
7996 (ira_emit_data_t): New typedef.
7997 (struct ira_emit_data): New. Move mem_optimized_dest_p,
7998 somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
7999 from struct ira_allocno.
8000 (ALLOCNO_EMIT_DATA): New macro.
8001 (ira_allocno_emit_data, allocno_emit_reg): New.
8002 (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
8003 (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
8004 (OBJECT_ADD_DATA): New macro.
8005 (ira_reallocate): Remove.
8006 (ira_initiate_emit_data, ira_finish_emit_data): New.
8007 (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
8008 (ira_init_register_move_cost_if_necessary): New.
8009 (ira_object_conflict_iter_next): Merge into
8010 ira_object_conflict_iter_cond.
8011 (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
8013 * ira-live.c (process_single_reg_class_operands): Call
8014 ira_init_register_move_cost_if_necessary. Use
8015 ira_register_move_cost instead of ira_get_register_move_cost.
8017 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
8019 * ira-int.h (struct target_ira_int): Remove x_cost_classes.
8021 * ira-costs.c: Fix formatting.
8022 (cost_classes, cost_classes_num): Remove.
8023 (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
8024 (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
8025 (cost_classes_del, cost_classes_htab): New.
8026 (cost_classes_aclass_cache, cost_classes_mode_cache): New.
8027 (initiate_regno_cost_classes, setup_cost_classes): New.
8028 (setup_regno_cost_classes_by_aclass): New.
8029 (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
8030 (record_reg_classes): Use regno_cost_classes instead of
8031 cost_classes. Move checking opposite operand up.
8032 (record_address_regs): Use regno_cost_classes
8033 instead of cost_classes.
8034 (scan_one_insn): Ditto. Use always general register.
8035 (print_allocno_costs): Use regno_cost_classes instead of
8037 (print_pseudo_costs): Ditto. Use Reg_N_REFS.
8038 (find_costs_and_classes): Set up cost classes for each registers.
8039 Use also their mode for this. Use regno_cost_classes instead of
8041 (setup_allocno_class_and_costs): Use regno_cost_classes instead of
8043 (free_ira_costs, ira_init_costs): Don't use cost_classes.
8044 (ira_costs, ira_set_pseudo_classes): Call
8045 initiate_regno_cost_classes and finish_regno_cost_classes.
8047 2010-10-04 Vladimir Makarov <vmakarov@redhat.com>
8049 * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
8051 * target.def (ira_cover_classes): Remove.
8053 * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
8055 * doc/tm.texi.in: Ditto.
8057 * ira-conflicts.c: Remove mentioning cover classes from the file.
8058 Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Use
8059 ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST. Fix formatting.
8061 * targhooks.c (default_ira_cover_classes): Remove.
8063 * targhooks.h (default_ira_cover_classes): Ditto.
8065 * haifa-sched.c: Remove mentioning cover classes from the file.
8066 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
8067 ira_pressure_classes and ira_pressure_classes_num instead of
8068 ira_reg_class_cover_size and ira_reg_class_cover. Use
8069 sched_regno_pressure_class instead of sched_regno_cover_class.
8070 (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
8071 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
8073 * ira-int.h: Add 2010 to Copyright. Remove mentioning cover
8074 classes from the file.
8075 (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
8076 (struct object_hard_regs, struct object_hard_regs_node): New.
8077 (struct ira_object): New members profitable_hard_regs,
8078 hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
8079 (struct ira_allocno): Rename cover_class to aclass. Rename
8080 cover_class_cost and updated_cover_class_cost to class_cost and
8081 updated_class_cost. Remove splay_removed_p and
8082 left_conflict_size. Add new members colorable_p.
8083 (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
8084 (ALLOCNO_COLORABLE_P): New macro.
8085 (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
8086 (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
8087 Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
8088 (OBJECT_...): Rename parameter C to O.
8089 (OBJECT_PROFITABLE_HARD_REGS): New macro.
8090 (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
8091 (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
8092 (struct target_ira_int): New members x_ira_max_memory_move_cost,
8093 x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
8094 x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
8095 x_ira_reg_pressure_class_p, x_ira_important_class_nums,
8096 x_ira_reg_class_superunion. Rename x_prohibited_class_mode_reg to
8097 x_ira_prohibited_class_mode_reg. Rename x_ira_reg_class_union to
8098 x_ira_reg_class_subunion.
8099 (ira_max_memory_move_cost, ira_max_register_move_cost)
8100 (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
8101 (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
8102 (ira_important_class_nums, ira_reg_class_superunion): New macros.
8103 (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
8104 (ira_reg_class_union): Rename to ira_reg_class_subunion.
8105 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
8106 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
8107 (ira_tune_allocno_costs_and_cover_classes): Rename to
8108 ira_tune_allocno_costs.
8109 (ira_debug_hard_regs_forest): New.
8110 (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
8111 (ira_object_conflict_iter_next): Fix comments.
8112 (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
8113 (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
8114 cover_class to aclass.
8115 (ira_allocate_and_accumulate_costs): Ditto.
8116 (ira_allocate_and_set_or_copy_costs): Ditto.
8118 * opts.c (decode_options): Remove ira_cover_class check.
8120 * ira-color.c: Remove mentioning cover classes from the file. Use
8121 ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
8122 instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
8123 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
8124 (splay-tree.h): Remove include.
8125 (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
8126 before copy_freq_compare_func.
8127 (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
8128 (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
8130 (hard_regs_roots, hard_regs_node_vec): Ditto.
8131 (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
8132 (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
8133 (finish_object_hard_regs, object_hard_regs_compare): Ditto.
8134 (create_new_object_hard_regs_node): Ditto.
8135 (add_new_object_hard_regs_node_to_forest): Ditto.
8136 (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
8137 (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
8139 (print_hard_reg_set, print_hard_regs_subforest): Ditto.
8140 (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
8141 (remove_unused_object_hard_regs_nodes): Ditto.
8142 (enumerate_object_hard_regs_nodes): Ditto.
8143 (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
8144 (object_hard_regs_subnode_t): Ditto.
8145 (struct object_hard_regs_subnode): Ditto.
8146 (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
8147 (setup_object_hard_regs_subnode_index): Ditto.
8148 (get_object_hard_regs_subnodes_num): Ditto.
8149 (form_object_hard_regs_nodes_forest): Ditto.
8150 (finish_object_hard_regs_nodes_tree): Ditto.
8151 (finish_object_hard_regs_nodes_forest): Ditto.
8152 (allocnos_have_intersected_live_ranges_p): Rename to
8153 allocnos_conflict_by_live_ranges_p. Move before copy_freq_compare_func.
8154 (pseudos_have_intersected_live_ranges_p): Rename to
8155 conflict_by_live_ranges_p. Move before copy_freq_compare_func.
8156 (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
8157 (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
8158 (update_copy_costs): Remove assert. Skip cost update if the hard
8159 reg does not belong the class.
8160 (assign_hard_reg): Process only profitable hard regs.
8161 (uncolorable_allocnos_num): Make it scalar.
8162 (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
8163 and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
8164 and ira_reg_class_max_nregs.
8165 (bucket_allocno_compare_func): Check frequency first.
8166 (sort_bucket): Add compare function as a parameter.
8167 (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
8168 (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
8169 (push_allocno_to_stack): Rewrite for checking new allocno
8171 (remove_allocno_from_bucket_and_push): Print cost too. Remove assert.
8172 (push_only_colorable): Pass new parameter to sort_bucket.
8173 (push_allocno_to_spill): Remove.
8174 (allocno_spill_priority_compare): Make it inline and rewrite.
8175 (splay_tree_allocate, splay_tree_free): Remove.
8176 (allocno_spill_sort_compare): New function.
8177 (push_allocnos_to_stack): Sort allocnos for spilling once. Don't
8178 build and use splay tree. Choose first allocno in uncolorable
8179 allocno bucket to spill. Remove setting spill cost.
8180 (all_conflicting_hard_regs): Remove.
8181 (setup_allocno_available_regs_num): Check only profitable hard
8182 regs. Print info about hard regs nodes.
8183 (setup_allocno_left_conflicts_size): Remove.
8184 (put_allocno_into_bucket): Don't call
8185 setup_allocno_left_conflicts_size. Use setup_left_conflict_sizes_p.
8186 (improve_allocation): New.
8187 (color_allocnos): Call setup_profitable_hard_regs,
8188 form_object_hard_regs_nodes_forest, improve_allocation,
8189 finish_object_hard_regs_nodes_forest. Setup spill cost.
8190 (print_loop_title): Use pressure classes.
8191 (color_allocnso): Ditto.
8192 (do_coloring): Remove allocation and freeing splay_tree_node_pool
8193 and allocnos_for_spilling.
8194 (ira_sort_regnos_for_alter_reg): Don't setup members
8195 {first,next}_coalesced_allocno.
8196 (color): Remove allocating and freeing removed_splay_allocno_vec.
8197 (fast_allocation): Use ira_prohibited_class_mode_regs instead of
8198 prohibited_class_mode_regs.
8200 * ira-lives.c: Remove mentioning cover classes from the file. Fix
8202 (update_allocno_pressure_excess_length): Use pressure classes.
8203 (inc_register_pressure, dec_register_pressure): Check for pressure
8205 (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
8206 pressure class. Use ira_reg_class_nregs instead of
8207 ira_reg_class_max_nregs.
8208 (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
8209 (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
8210 (single_reg_class): Use ira_reg_class_nregs instead of
8211 ira_reg_class_max_nregs.
8212 (process_bb_node_lives): Use pressure classes.
8214 * ira-emit.c: Remove mentioning cover classes from the file. Use
8215 ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Fix formatting.
8216 (change_loop): Use pressure classes.
8217 (modify_move_list): Call ira_set_allocno_class instead of
8218 ira_set_allocno_cover_class.
8220 * ira-build.c: Remove mentioning cover classes from the file. Use
8221 ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
8222 ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST. Use
8223 ALLOCNO_UPDATED_CLASS_COST instead of
8224 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
8225 (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
8226 (ira_create_allocno): Remove initialization of
8227 ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE. Initialize
8228 ALLOCNO_COLORABLE_P.
8229 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
8230 Update conflict regs for the objects.
8231 (create_cap_allocno): Remove assert. Don't propagate
8232 ALLOCNO_AVAILABLE_REGS_NUM.
8233 (ira_free_allocno_costs): New function.
8234 (finish_allocno): Change a part of code into call of
8235 ira_free_allocno_costs.
8236 (low_pressure_loop_node_p): Use pressure classes.
8237 (object_range_compare_func): Don't compare classes.
8238 (setup_min_max_conflict_allocno_ids): Ditto.
8240 * loop-invariant.c: Remove mentioning cover classes from the file.
8241 Use ira_pressure_classes and ira_pressure_classes_num instead of
8242 ira_reg_class_cover_size and ira_reg_class_cover. Fix formatting.
8243 (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
8244 Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
8245 Use reg_allocno_class instead of reg_cover_class.
8246 (get_inv_cost): Use instead ira_stack_reg_pressure_class of
8247 STACK_REG_COVER_CLASS.
8248 (get_regno_cover_class): Rename to get_regno_pressure_class.
8249 (move_loop_invariants): Initialize and finalize regstat.
8251 * ira.c: Remove mentioning cover classes from the file. Add
8252 comments about coloring without cover classes. Use ALLOCNO_CLASS
8253 instead of ALLOCNO_COVER_CLASS. Fix formatting.
8254 (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
8255 setup_class_subset_and_memory_move_costs.
8256 (setup_stack_reg_pressure_class, setup_pressure_classes): New.
8257 (setup_cover_and_important_classes): Rename to
8258 setup_allocno_and_important_classes.
8259 (setup_class_translate_array): New.
8260 (setup_class_translate): Call it for allocno and pressure classes.
8261 (cover_class_order): Rename to allocno_class_order.
8262 (comp_reg_classes_func): Use ira_allocno_class_translate instead
8263 of ira_class_translate.
8264 (reorder_important_classes): Set up ira_important_class_nums.
8265 (setup_reg_class_relations): Set up ira_reg_class_superunion.
8266 (print_class_cover): Rename to print_classes. Add parameter.
8267 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
8268 Print pressure classes too.
8269 (find_reg_class_closure): Rename to find_reg_classes. Don't call
8270 setup_reg_subclasses.
8271 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
8272 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
8273 (setup_prohibited_class_mode_regs): Use
8274 ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
8275 (clarify_prohibited_class_mode_regs): New function.
8276 (ira_init_register_move_cost): Set up ira_max_register_move_cost,
8277 ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
8278 (ira_init_once): Initialize them.
8279 (free_register_move_costs): Process them.
8280 (ira_init): Move calls of find_reg_classes and
8281 setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
8282 Call clarify_prohibited_class_mode_regs.
8283 (ira_no_alloc_reg): Remove.
8284 (too_high_register_pressure_p): Use pressure classes.
8286 * sched-deps.c: Remove mentioning cover classes from the file.
8287 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
8288 ira_pressure_classes and ira_pressure_classes_num instead of
8289 ira_reg_class_cover_size and ira_reg_class_cover.
8290 (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
8291 sched_regno_pressure_class instead of sched_regno_cover_class.
8292 (mark_insn_pseudo_birth, mark_pseudo_death): Ditto. Use
8293 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
8295 * ira.h: Add 2010 to Copyright.
8296 (ira_no_alloc_reg): Remove external.
8297 (struct target_ira): Rename x_ira_hard_regno_cover_class,
8298 x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
8299 x_ira_class_translate to x_ira_hard_regno_allocno_class,
8300 x_ira_allocno_classes_num, x_ira_allocno_classes, and
8301 x_ira_allocno_class_translate. Add x_ira_pressure_classes_num,
8302 x_ira_pressure_classes, x_ira_pressure_class_translate, and
8303 x_ira_stack_reg_pressure_class. Rename x_ira_reg_class_nregs to
8304 x_ira_reg_class_max_nregs. Add x_ira_reg_class_min_nregs and
8305 x_ira_no_alloc_regs.
8306 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
8307 (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
8308 ira_allocno_classes_num and ira_allocno_classes.
8309 (ira_class_translate): Rename to ira_allocno_class_translate.
8310 (ira_pressure_classes_num, ira_pressure_classes): New definitions.
8311 (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
8312 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
8313 (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
8314 (ira_no_alloc_regs): New.
8316 * ira-costs.c: Add 2010 to Copyright. Remove mentioning cover
8317 classes from the file. Use ALLOCNO_CLASS instead of
8318 ALLOCNO_COVER_CLASS. Use ALLOCNO_CLASS_COST instead of
8319 ALLOCNO_COVER_CLASS_COST.
8320 (regno_cover_class): Rename to regno_aclass.
8321 (record_reg_classes): Use ira_reg_class_subunion instead of
8322 ira_reg_class_union.
8323 (record_address_regs): Check overflow.
8324 (scan_one_insn): Ditto.
8325 (print_allocno_costs): Print total mem cost fore regional allocation.
8326 (print_pseudo_costs): Use REG_N_REFS.
8327 (find_costs_and_classes): Use classes intersected with them on the
8328 1st pass. Check overflow. Use ira_reg_class_subunion instead of
8329 ira_reg_class_union. Use ira_allocno_class_translate and
8330 regno_aclass instead of ira_class_translate and regno_cover_class.
8331 Modify code for finding regno_aclass. Setup preferred classes for
8333 (setup_allocno_cover_class_and_costs): Rename to
8334 setup_allocno_class_and_costs. Use regno_aclass instead of
8335 regno_cover_class. Use ira_set_allocno_class instead of
8336 ira_set_allocno_cover_class.
8337 (init_costs, finish_costs): Use regno_aclass instead of
8339 (ira_costs): Use setup_allocno_class_and_costs instead of
8340 setup_allocno_cover_class_and_costs.
8341 (ira_tune_allocno_costs_and_cover_classes): Rename to
8342 ira_tune_allocno_costs. Check overflow. Skip conflict hard regs
8343 by processing objects. Use ira_reg_class_max_nregs instead of
8344 ira_reg_class_nregs.
8346 * rtl.h (reg_cover_class): Rename to reg_allocno_class.
8348 * sched-int.h: Remove mentioning cover classes from the file.
8349 (sched_regno_cover_class): Rename to sched_regno_pressure_class.
8351 * reginfo.c: Add 2010 to Copyright. Remove mentioning cover
8352 classes from the file.
8353 (struct reg_pref): Rename coverclass into allocnoclass.
8354 (reg_cover_class): Rename to reg_allocno_class.
8356 * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
8358 * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
8360 * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
8362 * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
8364 * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
8366 * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
8368 * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
8370 * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
8372 * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
8374 * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
8376 * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
8377 (i386_ira_cover_classes): Ditto.
8379 * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
8381 * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
8383 * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
8385 * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
8387 * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
8389 * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
8391 * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
8392 (mips_ira_cover_classes): Ditto.
8394 * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
8396 * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
8398 * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
8400 * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
8402 * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
8404 * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
8405 (IRA_COVER_CLASSES_VSX): Ditto.
8407 * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
8408 (rs6000_ira_cover_classes): Ditto.
8410 * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
8412 * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
8414 * config/score/score.h (IRA_COVER_CLASSES): Ditto.
8416 * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
8418 * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
8420 * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
8422 * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
8424 * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
8426 * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
8428 * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
8430 2011-03-29 Jakub Jelinek <jakub@redhat.com>
8433 * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
8434 dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
8435 dw_fde_unlikely_section_end_label, cold_in_std_section,
8436 dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
8437 Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
8439 (output_fde): Use dw_fde_second_{begin,end} if second is
8440 true, otherwise dw_fde_{begin,end}.
8441 (output_call_frame_info): Test dw_fde_second_begin != NULL
8442 instead of dw_fde_switched_sections.
8443 (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
8444 fields, initialize new fields. Initialize in_std_section
8445 unconditionally from the first partition.
8446 (dwarf2out_end_epilogue): Don't override dw_fde_end when
8447 dw_fde_second_begin is non-NULL.
8448 (dwarf2out_switch_text_section): Stop initializing removed
8449 dw_fde_struct fields, initialize new fields, initialize
8450 also dw_fde_end here. Set dw_fde_switch_cfi even when
8451 dwarf2out_do_cfi_asm (). Call var_location_switch_text_section.
8452 (struct var_loc_list_def): Add last_before_switch field.
8453 (arange_table, arange_table_allocated, arange_table_in_use,
8454 ARANGE_TABLE_INCREMENT, add_arange): Removed.
8455 (size_of_aranges): Count !in_std_section and !second_in_std_section
8456 hunks in fdes, instead of looking at arange_table_in_use.
8457 (output_aranges): Add aranges_length argument, don't call
8458 size_of_aranges here. Instead of using aranges_table*
8459 emit ranges for fdes when !in_std_section resp.
8460 !second_in_std_section.
8461 (dw_loc_list): Break ranges crossing section switch.
8462 (convert_cfa_to_fb_loc_list): Likewise. If switched sections,
8463 use dw_fde_second_end instead of dw_fde_end as end of last range.
8464 (gen_subprogram_die): Don't call add_arange. Use
8465 dw_fde_{begin,end} for first partition and if switched
8466 section dw_fde_second_{begin,end} for the second.
8467 (var_location_switch_text_section_1,
8468 var_location_switch_text_section): New functions.
8469 (dwarf2out_begin_function): Initialize cold_text_section even
8470 when function_section () isn't text_section.
8471 (prune_unused_types): Don't walk arange_table.
8472 (dwarf2out_finish): Don't needlessly test
8473 flag_reorder_blocks_and_partition when testing cold_text_section_used.
8474 If info_section_emitted, call size_of_aranges and if it indicates
8475 non-empty .debug_aranges, call output_aranges with the computed
8476 size. Stop using removed dw_fde_struct fields, use
8477 dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
8481 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
8482 create ENTRY_VALUE if incoming or address of incoming's MEM
8484 * dwarf2out.c (mem_loc_descriptor): Don't emit
8485 DW_OP_GNU_entry_value of DW_OP_fbreg.
8486 * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
8487 on ENTRY_VALUE is able to find the canonical parameter VALUE.
8488 * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
8489 rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
8491 (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
8492 is a REG_P or MEM_P with REG_P address, compute hash directly
8493 instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
8494 (preserve_only_constants): Don't clear VALUES forwaring
8495 ENTRY_VALUE to some other VALUE.
8497 2011-03-28 Richard Sandiford <richard.sandiford@linaro.org>
8499 * builtins.c (expand_builtin_memset_args): Use gen_int_mode
8502 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
8504 * cfgexpand.c (expand_gimple_cond): Always set the source location and
8505 block before expanding the statement.
8506 (expand_gimple_stmt_1): Likewise. Set them here...
8507 (expand_gimple_stmt): ...and not here. Tidy.
8508 * cfglayout.c (curr_insn_locator): Return 0 if the current location is
8511 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
8513 * Makefile.in: New rule for cprop.o.
8514 * gcse.c: Move constant/copy propagation to cprop.c.
8515 (compute_local_properties): Only handle expression tables.
8516 (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
8517 (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
8518 (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
8519 next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
8520 mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
8521 compute_cprop_data, find_used_regs, try_replace_reg,
8522 find_avail_set, cprop_jump, constprop_register, cprop_insn,
8523 local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
8524 fis_get_condition, implicit_set_cond_p, find_implicit_sets,
8525 find_bypass_set, reg_killed_on_edge, bypass_block,
8526 bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
8527 execute_rtl_cprop, pass_rtl_cprop): Move to...
8528 * cprop.c: ...here. New file, constant/copy propagation for RTL
8529 moved from gcse.c to here with minor cleanups in duplicated code.
8531 2011-03-28 H.J. Lu <hongjiu.lu@intel.com>
8533 * config/i386/i386.c (flag_opts): Fix a typo in
8534 -mavx256-split-unaligned-store.
8536 2011-03-28 Anatoly Sokolov <aesok@post.ru>
8538 * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
8539 LIBCALL_VALUE): Remove macros.
8540 * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
8541 TARGET_FUNCTION_VALUE_REGNO_P): Define.
8542 (h8300_function_value, h8300_libcall_value,
8543 h8300_function_value_regno_p): New functions.
8545 2011-03-28 Anatoly Sokolov <aesok@post.ru>
8547 * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
8549 2011-03-28 Jeff Law <law@redhat.com>
8551 * tree-ssa-threadupdate.c (redirect_edges): Call
8552 create_edge_and_update_destination_phis as needed.
8553 (create_edge_and_update_destination_phis): Accept new BB argument.
8554 All callers updated.
8555 (thread_block): Do not update the profile when threading around
8556 intermediate blocks.
8557 (thread_single_edge): Likewise.
8558 (determine_bb_domination_status): If BB is not a successor of the
8559 loop header, return NONDOMINATING.
8560 (register_jump_thread): Note when we register a jump thread around
8561 an intermediate block.
8562 * tree-ssa-threadedge.c (thread_around_empty_block): New function.
8563 (thread_across_edge): Use it.
8565 2011-03-28 Tristan Gingold <gingold@adacore.com>
8567 * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
8568 when for_return is 2.
8570 2011-03-28 Jeff Law <law@redhat.com>
8572 * var-tracking.c (canonicalize_values_mark): Delete unused
8574 (canonicalize_values_star, set_variable_part): Likewise.
8575 (clobber_variable_part, delete_variable_part): Likewise.
8577 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
8579 * gcse.c (free_gcse_mem): Free reg_set_bitmap.
8581 2011-03-28 Martin Jambor <mjambor@suse.cz>
8583 * tree-inline.c (expand_call_inline): Do not check that destination
8585 (optimize_inline_calls): Assert that destination node is analyzed.
8586 * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
8587 not call tree_lowering_passes.
8588 * cgraph.h (cgraph_analyze_function): Declare.
8589 * cgraphunit.c (cgraph_analyze_function): Make public.
8591 2011-03-28 Joseph Myers <joseph@codesourcery.com>
8593 * config/sparc/sparc-opts.h: New.
8594 * config/sparc/sparc.c (sparc_handle_option, sparc_select,
8595 sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
8596 (sparc_option_override): Store processor_type enumeration rather
8597 than string in cpu_default. Remove name and enumeration from
8598 cpu_table. Directly default -mcpu then default -mtune from -mcpu
8599 without using sparc_select. Use target_flags_explicit instead of
8601 * config/sparc/sparc.h (enum processor_type): Move to
8603 (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
8604 * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
8605 HeaderInclude entry.
8606 (mcpu=, mtune=): Use Var and Enum.
8607 (sparc_processor_type): New Enum and EnumValue entries.
8609 2011-03-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8610 Iain Sandoe <iains@gcc.gnu.org>
8613 * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
8615 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
8617 * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
8618 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
8619 Insert new statements at it in lieu of STMT.
8620 (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
8621 * tree-vect-stmts.c (vectorizable_store): Likewise.
8622 (vectorizable_load): Likewise.
8624 2011-03-28 Uros Bizjak <ubizjak@gmail.com>
8626 * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
8631 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
8633 * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
8634 unaligned 256bit load/store.
8635 (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
8636 (*avx_movdqu<avxmodesuffix>): Likewise.
8638 2011-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8641 * config/pa/predicates.md (reg_or_ior_operand): New predicate.
8642 * config/pa/pa.md (iordi3): Use new predicate in expander.
8645 2011-03-27 Anatoly Sokolov <aesok@post.ru>
8647 * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
8648 FUNCTION_VALUE_REGNO_P): Remove macros.
8649 * config/mips/mips-protos.h (mips_function_value): Remove.
8650 * config/mips/mips.c (mips_function_value): Rename to...
8651 (mips_function_value_1): ... this. Make static. Handle receiving
8652 the function type in 'fn_decl_or_type' argument.
8653 (mips_function_value, mips_libcall_value,
8654 mips_function_value_regno_p): New function.
8655 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
8656 TARGET_FUNCTION_VALUE_REGNO_P): Define.
8658 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
8660 * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
8661 and -mavx256-split-unaligned-store.
8662 (ix86_option_override_internal): Split 32-byte AVX unaligned
8663 load/store by default.
8664 (ix86_avx256_split_vector_move_misalign): New.
8665 (ix86_expand_vector_move_misalign): Use it.
8667 * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
8668 -mavx256-split-unaligned-store.
8670 * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
8671 256bit load/store. Generate unaligned store on misaligned memory
8673 (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
8675 (*avx_movdqu<avxmodesuffix>): Likewise.
8677 * doc/invoke.texi: Document -mavx256-split-unaligned-load and
8678 -mavx256-split-unaligned-store.
8680 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
8683 * config/mips/mips.md (extendsidi2): Add an "l" alternative.
8686 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
8688 * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
8689 opno arguments with an expand_operand. Use create_input_operand.
8690 (mips_prepare_builtin_target): Delete.
8691 (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
8693 (mips_expand_builtin_direct): Use create_output_operand and
8694 mips_expand_builtin_insn. Update call to mips_prepare_builtin_arg.
8695 (mips_expand_builtin_movtf): Likewise. Use mips_expand_fp_comparison.
8696 (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
8698 2011-03-27 Ira Rosen <ira.rosen@linaro.org>
8700 * config/arm/arm.c (arm_autovectorize_vector_sizes): New
8702 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
8704 2011-03-26 Eric Botcazou <ebotcazou@adacore.com>
8706 * basic-block.h (fixup_abnormal_edges): Adjust prototype.
8707 * reload1.c (reload): Adjust call to fixup_abnormal_edges. Rediscover
8708 basic blocks and call commit_edge_insertions directly.
8709 (fixup_abnormal_edges): Move from here to...
8710 * cfgrtl.c (fixup_abnormal_edges): ...here. Only insert instructions
8711 on the edges and return whether some have actually been inserted.
8712 * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
8715 2011-03-26 Andrey Belevantsev <abel@ispras.ru>
8717 PR rtl-optimization/48144
8718 * sel-sched-ir.c (merge_history_vect): Factor out from ...
8719 (merge_expr_data): ... here.
8720 (av_set_intersect): Rename to av_set_code_motion_filter.
8721 Update all callers. Call merge_history_vect when an expression
8722 is found in both sets.
8723 * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
8725 2011-03-26 Alan Modra <amodra@gmail.com>
8727 * config/rs6000/predicates.md (word_offset_memref_op): Handle
8728 cmodel medium addresses.
8729 * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
8730 64-bit gpr loads and stores.
8731 (rs6000_secondary_reload_ppc64): New function.
8732 * config/rs6000/rs6000-protos.h: Declare it.
8733 * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
8735 2011-03-26 Alan Modra <amodra@gmail.com>
8738 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
8739 GNU Go in traceback table.
8741 2011-03-25 Richard Henderson <rth@redhat.com>
8743 * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
8744 if there are exactly 6 operands.
8745 (set_storage_via_setmem): Similarly.
8747 2011-03-25 Kai Tietz <ktietz@redhat.com>
8749 * collect2.c (write_c_file_stat): Handle backslash
8750 as right-hand directory separator.
8751 (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
8752 checking just for slash.
8753 * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
8754 instead of checking for trailing slash.
8755 * gcc.c (record_temp_file): Use filename_cmp instead
8757 (do_spec_1): Likewise.
8758 (replace_outfile_spec_function): Likewise.
8759 (is_directory): Use filename_ncmp instead of strncmp.
8760 (print_multilib_info): Likewise.
8761 * gcov.c (find_source): Use filename_cmp instead
8763 (make_gcov_file_name): Fix order of slash/backslash
8765 * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
8766 (add_standard_paths): Likewise.
8767 * mips-tfile.c (saber_stop): Handle backslash.
8768 * prefix.c (update_path): Use filename_ncmp instead of
8770 * profile.c (output_location): Use filename_cmp instead
8772 * read-md.c (handle_toplevel_file): Handle backslash.
8773 * tlink.c (frob_extension): Likewise.
8774 * tree-cfg.c (same_line_p): Use filename_cmp instead of
8776 * tree-dump.c (dequeue_and_dump): Handle backslash.
8777 * tree.c (get_file_function_name): Likewise.
8778 * gengtype.c (read_input_list): Likewise.
8779 (get_file_realbasename): Likewise.
8780 (get_output_file_with_visibility): Use filename_cmp
8783 2011-03-25 Richard Sandiford <richard.sandiford@linaro.org>
8785 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
8788 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
8790 * fold-const.c (expr_location_or): New function.
8791 (fold_truth_not_expr): Call it.
8793 2011-03-25 Jeff Law <law@redhat.com>
8795 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
8797 * c-family/c-common.c (def_fn_type): Likewise.
8798 * ada/gcc-interface/utils.c (def_fn_type): Likewise.
8799 * emit-rtl.c (gen_rtvec): Likewise.
8800 * lto/lto-lang.c (def_fn_type): Likewise.
8802 2011-03-25 Richard Guenther <rguenther@suse.de>
8804 * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
8805 also generate copies.
8806 (fini_copy_prop): Handle constant values properly.
8808 2011-03-25 Jakub Jelinek <jakub@redhat.com>
8810 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
8811 mode size instead of bitsize with DWARF2_ADDR_SIZE.
8812 (hash_loc_operands, compare_loc_operands): Handle
8813 DW_OP_GNU_entry_value.
8815 2011-03-25 Kai Tietz <ktietz@redhat.com>
8817 * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
8818 (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
8819 * config/i386/i386.c (ix86_conditional_register_usage): Adjust
8820 comment and use macro TARGET_64BIT_MS_ABI instead.
8821 (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
8822 and change default behavior for 32-bit MS_ABI.
8823 (ix86_reg_parm_stack_space): Check additionally for bit-ness.
8824 (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
8826 (ix86_cfun_abi): Likewise.
8827 (ix86_maybe_switch_abi): Adjust comment.
8828 (init_cumulative_args): Check for bit-ness in MS_ABI case.
8829 (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
8830 instead of checking for SYSV_ABI.
8831 (ix86_nsaved_sseregs): Likewise.
8832 (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
8834 (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
8835 * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
8836 (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
8837 (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
8838 * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
8840 2011-03-25 Richard Guenther <rguenther@suse.de>
8842 * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
8843 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
8844 (verify_gimple): Remove.
8845 * tree-cfg.c (verify_gimple_call): Merge verification
8847 (verify_gimple_phi): Merge verification from verify_stmts.
8848 (verify_gimple_label): New function.
8849 (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
8850 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
8851 (verify_stmt): Merge into verify_gimple_in_cfg and callees.
8852 (verify_stmts): Rename to verify_gimple_in_cfg.
8853 (verify_gimple_in_cfg): New function.
8854 * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
8855 * tree-ssa.c (verify_ssa): Likewise.
8856 * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
8858 2011-03-25 Richard Guenther <rguenther@suse.de>
8860 * passes.c (init_optimization_passes): Add FRE pass after
8863 2011-03-25 Bernd Schmidt <bernds@codesourcery.com>
8864 Andrew Stubbs <ams@codesourcery.com>
8866 * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
8868 (arm_movdi_vfp_cortexa8): New pattern.
8869 * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
8870 iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
8871 instructions when tuning for Cortex-A8. Set attribute "arch".
8872 * config/arm/arm.md: Move include arm-tune.md up a bit.
8873 (define_attr "arch"): Add "onlya8" and "nota8" values.
8874 (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
8876 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
8880 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
8882 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
8883 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
8884 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
8885 * passes.c (init_optimization_passes): Move
8886 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
8888 2011-03-25 Kai Tietz <ktietz@redhat.com>
8890 * c-typeck.c (comptypes_internal): Replace target
8891 hook call of comp_type_attributes by version in tree.c file.
8892 * gimple.c (gimple_types_compatible_p_1): Likewise.
8893 * tree-ssa.c (useless_type_conversion_p): Likewise.
8894 * tree.c (build_type_attribute_qual_variant): Likewise.
8895 (attribute_value_equal): New static helper function.
8896 (comp_type_attributes): New function.
8897 (merge_attributes): Use attribute_value_equal for comparison.
8898 (attribute_list_contained): Likewise.
8899 * tree.h (comp_type_attributes): New prototype.
8901 2011-03-25 Richard Guenther <rguenther@suse.de>
8903 * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
8904 of complex types at -O0.
8905 (verify_gimple_assign_binary): Likewise.
8906 (verify_gimple_assign_ternary): Likewise.
8908 2011-03-24 Mark Wielaard <mjw@redhat.com>
8910 * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
8911 (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
8913 2011-03-24 Mark Wielaard <mjw@redhat.com>
8916 * dwarf2out.c (output_abbrev_section): Only write table when
8917 abbrev_die_table_in_use > 1.
8919 2011-02-24 Richard Henderson <rth@redhat.com>
8921 * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
8922 (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
8923 (alpha_expand_unaligned_load_words): Use extql.
8924 (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
8925 (emit_insxl): Handle all modes for consistency.
8927 2011-02-24 Richard Henderson <rth@redhat.com>
8929 * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
8930 (alpha_expand_unaligned_load): Likewise.
8931 (alpha_expand_unaligned_store): Likewise.
8932 (alpha_expand_unaligned_load_words): Likewise.
8933 (alpha_expand_unaligned_store_words): Likewise.
8934 (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
8935 (alpha_split_lock_test_and_set_12): Likewise.
8936 (print_operand, alpha_fold_builtin_extxx): Likewise.
8937 (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
8938 * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
8939 (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
8940 (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
8941 (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
8942 (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
8943 (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
8944 (unaligned_storeqi_be, unaligned_storehi_be): Remove.
8945 (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
8946 (extwl, extll, extql): Similarly.
8947 (inswh, inslh, insqh): Similarly.
8948 (mskbl, mskwl, mskll, mskql): Similarly.
8949 (mskwh, msklh, mskqh): Similarly.
8951 2011-02-24 Richard Henderson <rth@redhat.com>
8953 * config/alpha/alpha.md (attribute isa): Add er, ner.
8954 (attribute enabled): Handle them.
8955 (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
8957 2011-02-24 Richard Henderson <rth@redhat.com>
8959 * config/alpha/alpha.md (attribute isa): Add vms.
8960 (attribute enabled): Handle it.
8961 (*movsf): Merge *movsf_{nofix,fix,nofp}.
8962 (*movdf): Merge *movdf_{nofix,fix,nofp}.
8963 (*movtf): Rename from *movtf_internal for consistency.
8964 (*movsi): Merge with *movsi_nt_vms.
8965 (*movhi): Merge *movhi_nobwx, *movhi_bwx.
8966 (*movqi): Merge *movqi_nobwx, *movqi_bwx.
8967 (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
8968 * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
8970 2011-02-24 Richard Henderson <rth@redhat.com>
8972 * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
8973 (extendqisi2, extendhisi2): Likewise.
8974 (extendqidi2): Simplify BWX/non-BWX expansions.
8975 (extendhidi2): Similarly.
8977 2011-02-24 Richard Henderson <rth@redhat.com>
8979 * config/alpha/alpha.md (attribute isa): New.
8980 (attribute enabled): New.
8981 (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
8982 (zero_extendqisi2, zero_extendqidi2): Similarly.
8983 (zero_extendhisi2, zero_extendhidi2): Similarly.
8984 * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
8986 2011-02-24 Richard Henderson <rth@redhat.com>
8988 * config/alpha/predicates.md (input_operand): Revert last change;
8989 update comment to mention 32-bit VMS rather than Windows.
8991 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
8993 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
8994 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
8995 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
8996 * passes.c (init_optimization_passes): Move
8997 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
8999 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
9001 * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
9003 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
9005 * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
9008 2011-03-24 Jakub Jelinek <jakub@redhat.com>
9011 * simplify-rtx.c (simplify_const_unary_operation): Call
9012 real_convert when changing mode class with FLOAT_EXTEND.
9014 2011-03-24 Nick Clifton <nickc@redhat.com>
9016 * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
9017 (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
9018 * config/rx/rx.c (rx_option_override): Set align_jumps,
9019 align_loops and align_labels if not set by the user.
9020 (rx_align_for_label): New function.
9021 (rx_max_skip_for_label): New function.
9022 (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
9023 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
9024 (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
9025 (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
9026 * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
9028 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
9030 PR rtl-optimization/48263
9031 * optabs.c (expand_binop_directly): Reinstate convert_modes code
9032 and original commutative_p handling. Use maybe_gen_insn.
9034 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9036 * reload.c (find_reloads_subreg_address): Add address_reloaded
9037 parameter and return true there if the full address has been
9039 (find_reloads_toplev): Pass address_reloaded flag.
9040 (find_reloads_address_1): Don't use address_reloaded parameter.
9042 2011-03-24 Jeff Law <law@redhat.com>
9044 * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
9045 unused variable "ann".
9046 (remove_unused_locals): Likewise.
9048 * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
9051 * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
9054 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9056 * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
9057 for invalid symbolic addresses.
9058 (s390_secondary_reload): Don't use s390_check_symref_alignment for
9061 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
9063 * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
9064 the argument in calls to fold_truth_not_expr.
9066 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
9068 * tree.c (record_node_allocation_statistics): New function.
9069 (make_node_stat, copy_node_stat, build_string): Call it.
9070 (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
9071 (build1_stat, build_omp_clause): Likewise.
9073 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
9075 * builtins.c (expand_movstr): Fix endp == 1 adjustment after
9078 2011-03-24 Richard Guenther <rguenther@suse.de>
9080 PR tree-optimization/48271
9081 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
9082 blocks that still exist.
9084 2011-03-24 Richard Guenther <rguenther@suse.de>
9086 PR tree-optimization/48270
9087 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
9088 not free datarefs before ddrs.
9090 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
9092 * tree-sra.c (build_ref_for_offset): Strip useless type conversions
9093 from the address built for a reference with variable offset.
9095 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
9098 * config/i386/i386.md (*movdf_internal_rex64): Do not split
9099 alternatives that can be handled with movq or movabsq insn.
9100 (*movdf_internal): Disable for !TARGET_64BIT.
9101 (*movdf_internal_nointeger): Ditto.
9102 * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
9104 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
9106 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
9107 (FUNCTION_ARG_ADVANCE): Likewise.
9108 * tm.texi.in: Change references to them to hook references.
9109 * tm.texi: Regenerate.
9110 * targhooks.c (default_function_arg): Eliminate check for target macro.
9111 (default_function_incoming_arg): Likewise.
9112 (default_function_arg_advance): Likewise.
9113 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
9114 (function_arg_advance): Likewise.
9115 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
9117 2011-03-24 Richard Guenther <rguenther@suse.de>
9120 * tree-object-size.c (addr_object_size): Do not double-account
9121 for MEM_REF offsets.
9123 2011-03-24 Diego Novillo <dnovillo@google.com>
9125 * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
9126 * lto-streamer-in.c (input_string_internal): Add clarifying comments.
9127 (lto_input_data_block): Move from lto-opts.c. Make extern.
9129 (lto_input_string): Rename from input_string. Make extern.
9131 * lto-streamer-out.c (lto_output_string_with_length): Rename from
9132 output_string_with_length.
9133 Output 0 to indicate a non-NULL string. Update all callers to
9135 (lto_output_string): Rename from output_string. Make extern.
9137 (lto_output_decl_state_streams): Make extern.
9138 (lto_output_decl_state_refs): Make extern.
9139 * lto-streamer.h (lto_input_string): Declare.
9140 (lto_input_data_block): Declare.
9141 (lto_output_string): Declare.
9142 (lto_output_string_with_length): Declare.
9143 (lto_output_decl_state_streams): Declare.
9144 (lto_output_decl_state_refs): Declare.
9146 2011-03-24 Richard Guenther <rguenther@suse.de>
9148 PR tree-optimization/46562
9149 * tree.c (build_invariant_address): New function.
9150 * tree.h (build_invariant_address): Declare.
9151 * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
9152 a renamed function moved ...
9153 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
9154 Take valueization callback parameter.
9155 * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
9156 * gimple-fold.h: New file.
9157 * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
9158 (ccp_fold, fold_const_aggregate_ref,
9159 fold_ctor_reference, fold_nonarray_ctor_reference,
9160 fold_array_ctor_reference, fold_string_cst_ctor_reference,
9161 get_base_constructor): Move ...
9162 * gimple-fold.c: ... here.
9163 (gimple_fold_stmt_to_constant_1): New function
9164 split out from ccp_fold. Take a valueization callback parameter.
9165 Valueize all operands.
9166 (gimple_fold_stmt_to_constant): New wrapper function.
9167 (fold_const_aggregate_ref_1): New function split out from
9168 fold_const_aggregate_ref. Take a valueization callback parameter.
9169 (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
9170 * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
9171 invariant POINTER_PLUS_EXPRs to invariant form.
9172 (vn_valueize): New function.
9173 (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
9174 * tree-vrp.c (vrp_valueize): New function.
9175 (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
9176 to fold statements to constants.
9177 * tree-ssa-pre.c (eliminate): Properly guard propagation of
9178 function declarations.
9179 * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
9180 tree-ssa-ccp.o): Add gimple-fold.h dependencies.
9182 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
9184 * config/h8300/predicates.md (jump_address_operand): Fix register
9187 2011-03-24 Ira Rosen <ira.rosen@linaro.org>
9189 * doc/invoke.texi (max-stores-to-sink): Document.
9190 * params.h (MAX_STORES_TO_SINK): Define.
9191 * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
9192 if either vectorization or if-conversion is disabled.
9193 * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
9194 tree-vect-data-refs.c vect_equal_offsets.
9195 (dr_equal_offsets_p): New function.
9196 (find_data_references_in_bb): Remove static.
9197 * tree-data-ref.h (find_data_references_in_bb): Declare.
9198 (dr_equal_offsets_p): Likewise.
9199 * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
9200 (vect_drs_dependent_in_basic_block): Update calls to
9202 (vect_check_interleaving): Likewise.
9203 * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
9204 (cond_if_else_store_replacement): Rename to...
9205 (cond_if_else_store_replacement_1): ... this. Change arguments and
9207 (cond_if_else_store_replacement): New function.
9208 * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
9209 * params.def (PARAM_MAX_STORES_TO_SINK): Define.
9211 2011-03-23 Chung-Lin Tang <cltang@codesourcery.com>
9214 * config/arm/arm.md (casesi): Use the gen_int_mode() function
9215 to subtract lower bound instead of GEN_INT().
9217 2011-03-23 Jonathan Wakely <jwakely.gcc@gmail.com>
9222 * doc/extend.texi (Alignment): Move section to match order in TOC.
9223 * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
9224 (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
9226 2011-03-23 Jeff Law <law@redhat.com>
9228 * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
9229 before removing the edge.
9231 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
9232 it may have been freed by redirect_branch_edge or
9233 redirect_edge_succ_nodup.
9235 2011-03-23 Richard Guenther <rguenther@suse.de>
9237 * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
9238 (check_va_list_escapes): Likewise.
9239 (check_all_va_list_escapes): Likewise.
9241 2011-03-23 Richard Guenther <rguenther@suse.de>
9243 * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
9244 (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
9245 (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
9246 (alias.o): Likewise.
9247 (ipa-type-escape.o): Remove.
9248 (ipa-struct-reorg.o): Likewise.
9249 (GTFILES): Remove ipa-struct-reorg.c.
9250 * alias.c: Do not include ipa-type-escape.h.
9251 * tree-ssa-alias.c: Likewise.
9252 * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
9253 * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
9254 * passes.c (init_optimization_passes): Remove ipa-struct-reorg
9255 and ipa-type-escape passes.
9256 * tree-pass.h (pass_ipa_type_escape): Remove.
9257 (pass_ipa_struct_reorg): Likewise.
9258 * ipa-struct-reorg.h: Remove.
9259 * ipa-struct-reorg.c: Likewise.
9260 * ipa-type-escape.h: Likewise.
9261 * ipa-type-escape.c: Likewise.
9262 * doc/invoke.texi (-fipa-struct-reorg): Remove.
9263 (--param struct-reorg-cold-struct-ratio): Likewise.
9264 * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
9265 * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
9266 * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
9268 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9270 * config/s390/2084.md: Enable all insn reservations also for z9_ec
9271 cpu attribute value.
9272 * config/s390/s390-opts.h (enum s390_arch_option): Remove.
9273 (enum processor_type): Add PROCESSOR_2094_Z9_EC.
9274 * config/s390/s390.c (processor_flags_table): New constant array.
9275 (s390_handle_arch_option): Remove.
9276 (s390_handle_option): Remove s390_handle_arch_option invocations
9277 and OPT_mwarn_framesize_ handling.
9278 (s390_option_override): Remove s390_handle_arch_option invocation.
9279 (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
9281 * config/s390/s390.md (cpu attribute): Add z9_ec value.
9282 * config/s390/s390.opt (s390_tune, s390_arch)
9283 (march=): Replace s390_arch_option enum and values with
9284 processor_type. Set variable name to s390_arch. Set
9285 initialization value.
9286 (mtune=): Replace s390_arch_option with processor_type. Set
9287 variable name to s390_tune. Set initialization value.
9289 2011-03-23 Julian Brown <julian@codesourcery.com>
9291 * expr.c (expand_expr_real_1): Only use BLKmode for volatile
9292 accesses which are not naturally aligned.
9294 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
9297 * config/arm/predicates.md (neon_lane_number): Accept 0..15.
9299 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
9301 * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
9302 parameter from "int" to "enum insn_code".
9303 (expand_operand_type): New enum.
9304 (expand_operand): New structure.
9305 (create_expand_operand): New function.
9306 (create_fixed_operand, create_output_operand): Likewise
9307 (create_input_operand, create_convert_operand_to): Likewise.
9308 (create_convert_operand_from, create_address_operand): Likewise.
9309 (create_integer_operand): Likewise.
9310 (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
9311 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
9312 (expand_insn, expand_jump_insn): Likewise.
9313 * builtins.c (expand_builtin_prefetch): Use the new interfaces.
9314 (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
9315 (expand_movstr, expand_builtin___clear_cache): Likewise.
9316 (expand_builtin_lock_release): Likewise.
9317 * explow.c (allocate_dynamic_stack_space): Likewise.
9318 (probe_stack_range): Likewise. Allow check_stack to FAIL,
9319 and use the default handling in that case.
9320 * expmed.c (check_predicate_volatile_ok): Delete.
9321 (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
9322 (emit_cstore): Likewise.
9323 * expr.c (emit_block_move_via_movmem): Likewise.
9324 (set_storage_via_setmem, expand_assignment): Likewise.
9325 (emit_storent_insn, try_casesi): Likewise.
9326 (emit_single_push_insn): Likewise. Allow the expansion to fail.
9327 * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
9328 (expand_vec_shift_expr, expand_binop_directly): Likewise.
9329 (expand_twoval_unop, expand_twoval_binop): Likewise.
9330 (expand_unop_direct, emit_indirect_jump): Likewise.
9331 (emit_conditional_move, vector_compare_rtx): Likewise.
9332 (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
9333 (expand_sync_operation, expand_sync_fetch_operation): Likewise.
9334 (expand_sync_lock_test_and_set): Likewise.
9335 (maybe_emit_unop_insn): Likewise. Change icode to an insn_code.
9336 (emit_unop_insn): Likewise.
9337 (expand_copysign_absneg): Change icode to an insn_code.
9338 (create_convert_operand_from_type): New function.
9339 (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
9340 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
9341 (expand_insn, expand_jump_insn): Likewise.
9342 * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
9343 than const_int_operand for operand 2.
9345 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9347 * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
9350 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
9352 * emit-rtl.c (emit_pattern_before_noloc): New function.
9353 (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
9354 (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
9355 (emit_pattern_after_noloc): New function.
9356 (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
9357 (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
9359 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
9361 * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
9362 (__ffsDI2): Likewise.
9364 2011-03-22 Richard Henderson <rth@redhat.com>
9366 * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
9367 of !TARGET_ABI_OPEN_VMS.
9368 (alpha_trampoline_init, alpha_start_function): Likewise.
9369 (alpha_expand_epilogue, alpha_file_start): Likewise.
9370 * config/alpha/alpha.md (divsi3, modsi3): Likewise.
9371 (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
9372 (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
9373 (*divmodsi_internal, *divmoddi_internal_er): Likewise.
9374 (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
9376 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9378 * config/s390/s390-opts.h: New.
9379 * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
9380 s390_arch_flags, s390_warn_framesize, s390_stack_size,
9381 s390_stack_guard): Remove.
9382 (s390_handle_arch_option): Return void. Take enum
9383 s390_arch_option value instead of string and searching array.
9384 (s390_handle_option): Don't assert that global structures are in
9385 use. Access variables via opts pointer. Use error_at. Don't use
9386 sscanf for -mstack-guard= or -mstack-size=. Update call to
9387 s390_handle_arch_option.
9388 (s390_option_override): Update call to s390_handle_arch_option.
9389 (s390_emit_prologue): Use %d format for s390_stack_size in
9390 diagnostic. Use %wd for HOST_WIDE_INT.
9391 * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
9392 (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
9393 * config/s390/s390.opt (config/s390/s390-opts.h): New
9394 HeaderInclude entry.
9395 (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
9396 s390_arch_flags, s390_warn_framesize): New Variable entries.
9397 (s390_arch_option): New Enum and EnumValue entries.
9398 (march=): Use Enum instead of Var.
9399 (mstack-guard=, mstack-size=): Use UInteger and Var.
9402 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9404 * config/score/score.c (score_handle_option): Don't assert that
9405 global structures are in use. Access target_flags via opts
9406 pointer. Use value of -march= option to determine target_flags
9408 * config/score/score.opt (march=): Use Enum.
9409 (score_arch): New Enum and EnumValue entries.
9411 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9413 * config/mep/mep.c (option_mtiny_specified): Remove.
9414 (mep_option_override): Move register handling for -mivc2 from
9415 mep_handle_option. Use global_options_set.x_mep_tiny_cutoff
9416 instead of option_mtiny_specified.
9417 (mep_handle_option): Access target_flags via opts pointer. Don't
9418 assert that global structures are in use. Defer part of -mivc2
9419 handling and move it to mep_option_override.
9420 * config/mep/mep.opt (IVC2): New Mask entry.
9421 (mivc2): Use Var and Defer instead of Mask.
9423 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9425 * config/v850/v850-opts.h: New.
9426 * config/v850/v850.c (small_memory): Replace with
9427 small_memory_physical_max array. Make that array static const.
9428 (v850_handle_memory_option): Take integer value of argument. Take
9429 gcc_options pointer, option text and location. Return void.
9430 Update for changes to small memory structures.
9431 (v850_handle_option): Access target_flags via opts pointer. Don't
9432 assert that global structures are in use. Update calls to
9433 v850_handle_memory_option.
9434 (v850_encode_data_area): Update references to small memory settings.
9435 * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
9436 (enum small_memory_type): Move to v850-opts.h.
9437 * config/v850/v850.opt (config/v850/v850-opts.h): New
9438 HeaderInclude entry.
9439 (small_memory_max): New Variable entry.
9440 (msda): Replace by pair of options msda= and msda-. Use UInteger.
9441 (mtda, mzda): Likewise.
9443 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9445 * config/sh/sh.c (sh_handle_option): Access target_flags via opts
9446 pointer. Don't assert that global structures are in use.
9448 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9450 * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
9451 via opts pointer. Don't assert that global structures are in use.
9453 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9455 * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
9456 (munix=93): Use Var.
9457 * config/pa/pa-hpux1010.opt (munix=95): Use Var.
9458 * config/pa/pa-hpux1111.opt (munix=98): Use Var.
9459 * config/pa/pa-opts.h: New.
9460 * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
9461 (pa_handle_option): Don't assert that global structures are in
9462 use. Access target_flags via opts pointer. Don't handle
9463 OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
9465 (pa_option_override): Handle deferred OPT_mfixed_range_.
9467 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9469 * config/mn10300/mn10300-opts.h: New.
9470 * config/mn10300/mn10300.c (mn10300_processor,
9471 mn10300_tune_string): Remove.
9472 (mn10300_handle_option): Don't assert that global structures are
9473 in use. Access mn10300_processor via opts pointer. Don't handle
9475 * config/mn10300/mn10300.h (enum processor_type): Move to
9477 (mn10300_processor): Remove.
9478 * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
9479 HeaderInclude entry.
9480 (mn10300_processor): New Variable entry.
9483 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9485 * config/microblaze/microblaze.c: Don't include opts.h.
9486 (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
9487 * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
9488 (mno-clearbss): Use Var and Warn.
9490 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9492 * config/m32r/m32r-opts.h: New.
9493 * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
9494 (m32r_handle_option): Don't assert that global structures are in
9495 use. Access target_flags and m32r_cache_flush_func via opts
9496 pointer. Don't handle OPT_mmodel_, OPT_msdata_ or
9497 OPT_mno_flush_trap here.
9498 * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
9499 include of m32r-opts.h.
9500 * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
9501 HeaderInclude entry.
9502 (m32r_model_selected, m32r_sdata_selected): New Variable entries.
9503 (mmodel=): Use Enum and Var.
9504 (m32r_model): New Enum and EnumValue entries.
9505 (mno-flush-trap): Use Var.
9506 (msdata=): Use Enum and Var.
9507 (m32r_sdata): New Enum and EnumValue entries.
9509 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9511 * config/m32c/m32c.c: Don't include opts.h.
9512 (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
9513 m32c_handle_option): Remove.
9514 (m32c_option_override): Check global_options_set.x_target_memregs
9515 instead of target_memregs_set.
9516 * config/m32c/m32c.h (target_memregs): Remove.
9517 * config/m32c/m32c.opt (memregs=): Use UInteger with integer
9520 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9522 * config/iq2000/iq2000-opts.h: New.
9523 * config/iq2000/iq2000.c: Don't include opts.h.
9524 (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
9525 * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
9526 * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
9527 HeaderInclude entry.
9528 (iq2000_tune): New Variable entry.
9529 (march=): Add comment. Use Enum.
9530 (iq2000_arch): New Enum and EnumValue entries.
9531 (mcpu=): Use Enum and Var.
9532 (iq2000_tune): New Enum and EnumValue entries.
9534 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9536 * config/ia64/ia64-opts.h: New.
9537 * config/ia64/ia64.c (ia64_tune): Remove.
9538 (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
9540 (ia64_option_override): Handle deferred OPT_mfixed_range_.
9541 * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
9542 * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
9543 HeaderInclude entry.
9544 (ia64_tune): New Variable entry.
9545 (mfixed-range=): Use Defer and Var.
9546 (mtune=): Use Enum and Var.
9547 (ia64_tune): New Enum and EnumValue entries.
9549 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9551 * config/frv/frv-opts.h: New.
9552 * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
9554 (frv_cpu_type): Remove.
9555 * config/frv/frv.c: Don't include opts.h.
9556 (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
9557 * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
9558 (frv_cpu_type): New Variable entry.
9559 (frv_cpu): New Enum and EnumValue entries.
9561 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9563 * config/cris/cris.c (cris_handle_option): Access target_flags via
9564 opts pointer. Don't assert that global structures are in use.
9565 Don't call CRIS_SUBTARGET_HANDLE_OPTION.
9566 * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
9568 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9570 * config/bfin/bfin-opts.h: New.
9571 * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
9572 bfin_si_revision, bfin_workarounds): Remove.
9573 (bfin_cpus): Make static const.
9574 (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
9575 not bfin_lib_id_given.
9576 (bfin_handle_option): Don't set bfin_lib_id_given. Access
9577 bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
9578 pointer. Use error_at. Don't assert that global structures are in use.
9579 * config/bfin/bfin.h: Include bfin-opts.h.
9580 (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
9581 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
9582 * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
9583 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
9586 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9588 * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
9589 * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
9590 or -msoft-float here.
9591 * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
9592 -msoft-float and -mhard-float.
9593 (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
9594 * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
9596 * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
9598 (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
9599 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
9601 (LIBGCC_SPEC): Don't handle -msoft-float.
9602 * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
9604 * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
9606 * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
9607 -mfloat-abi=*, not -msoft-float and -mhard-float.
9608 * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
9610 * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
9611 Use mfloat-abi=hard and mfloat-abi=soft in comments, not
9612 mhard-float and msoft-float.
9613 * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
9614 mfloat-abi=soft in comments, not mhard-float and msoft-float.
9615 * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
9616 mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
9618 * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
9619 mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
9621 * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
9623 * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
9626 2011-03-22 Richard Henderson <rth@redhat.com>
9628 * config/alpha/alpha.c (alpha_expand_prologue): Don't test
9629 TARGET_ABI_WINDOWS_NT.
9630 (alpha_output_function_end_prologue): Likewise.
9631 * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
9632 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
9633 * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
9634 (trap, *movsi_nt_vms): Likewise.
9635 (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
9636 (*tablejump_osf_nt_internal): Remove.
9637 * config/alpha/predicates.md (input_operand): Only test Pmode.
9639 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9641 * config/alpha/alpha.c (alpha_handle_option): Access target_flags
9642 via opts pointer. Use error_at. Don't assert that global
9643 structures are in use.
9645 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9647 * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
9648 (ix86_handle_option): Access ix86_isa_flags and
9649 ix86_isa_flags_explicit via opts pointer. Don't assert that
9650 global structures are in use.
9651 (ix86_function_specific_save, ix86_function_specific_restore):
9652 Update ix86_isa_flags_explicit field name.
9653 * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
9654 (ix86_isa_flags_explicit): Rename TargetSave entry to
9655 x_ix86_isa_flags_explicit.
9657 2011-03-22 Richard Henderson <rth@redhat.com>
9659 * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
9660 (alpha_option_override, direct_return): Likewise.
9661 (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
9662 (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
9663 (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
9664 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
9665 (alpha_expand_epilogue, alpha_end_function): Likewise.
9666 (alpha_init_libfuncs): Likewise.
9667 (struct machine_function): Remove unicosmk members.
9668 (print_operand) ['t']: Remove.
9669 (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
9670 unicosmk_output_module_name, unicosmk_output_common,
9671 current_section_align, unicosmk_output_text_section_asm_op,
9672 unicosmk_output_data_section_asm_op, unicosmk_init_sections,
9673 unicosmk_section_type_flags, unicosmk_unique_section,
9674 unicosmk_asm_named_section, unicosmk_insert_attributes,
9675 unicosmk_output_align, unicosmk_defer_case_vector,
9676 unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
9677 SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
9678 unicosmk_output_ssib, unicosmk_add_call_info_word,
9679 unicosmk_extern_head, unicosmk_output_default_externs,
9680 unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
9681 unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
9682 unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
9683 * config/alpha/alpha-protos.h: Update.
9684 * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
9685 * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
9686 (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
9687 (mulsi3): Don't test TARGET_ABI_UNICOSMK.
9688 (*mulsi_se, mulvsi3): Likewise.
9689 (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
9690 (*divmodsi_internal, call, call_value, realign): Likewise.
9691 (moddi3, umoddi3): Likewise; remove duplicate expander.
9692 (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
9693 (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
9694 (*movdi_nofix): Remove r/U alternative.
9695 (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
9696 * config/alpha/constraints.md ("U"): Remove.
9697 * config/alpha/predicates.md (call_operand"): Don't test
9698 TARGET_ABI_UNICOSMK.
9700 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9702 * target.def (handle_option): Take gcc_options and
9703 cl_decoded_option pointers and location_t.
9704 * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
9705 * doc/tm.texi: Regenerate.
9706 * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
9707 * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
9708 * lto-opts.c (lto_reissue_options): Generate option structure for
9709 targetm.handle_option call.
9710 * opts.c (target_handle_option): Update call to
9711 targetm.handle_option. Remove assertions about values now passed
9713 * targhooks.c (default_target_handle_option): New.
9714 * targhooks.h (default_target_handle_option): Declare.
9715 * config/alpha/alpha.c: Include opts.h.
9716 (alpha_handle_option): Update to new hook interface.
9717 * config/arm/arm.c: Include opts.h.
9718 (arm_handle_option): Update to new hook interface.
9719 * config/arm/t-arm (arm.o): Update dependencies.
9720 * config/bfin/bfin.c: Include opts.h.
9721 (bfin_handle_option): Update to new hook interface.
9722 * config/cris/cris.c: Include opts.h.
9723 (cris_handle_option): Update to new hook interface.
9724 * config/frv/frv.c: Include opts.h.
9725 (frv_handle_option): Update to new hook interface.
9726 * config/i386/i386.c: Include opts.h.
9727 (ix86_handle_option): Update to new hook interface.
9728 (ix86_valid_target_attribute_inner_p): Generate option structure
9729 for call to ix86_handle_option.
9730 * config/i386/t-i386 (i386.o): Update dependencies.
9731 * config/ia64/ia64.c: Include opts.h.
9732 (ia64_handle_option): Update to new hook interface.
9733 * config/ia64/t-ia64 (ia64.o): Update dependencies.
9734 * config/iq2000/iq2000.c: Include opts.h.
9735 (iq2000_handle_option): Update to new hook interface.
9736 * config/m32c/m32c.c: Include opts.h.
9737 (m32c_handle_option): Update to new hook interface.
9738 * config/m32r/m32r.c: Include opts.h.
9739 (m32r_handle_option): Update to new hook interface.
9740 * config/m68k/m68k.c: Include opts.h.
9741 (m68k_handle_option): Update to new hook interface.
9742 * config/mep/mep.c: Include opts.h.
9743 (mep_handle_option): Update to new hook interface.
9744 * config/microblaze/microblaze.c: Include opts.h.
9745 (microblaze_handle_option): Update to new hook interface.
9746 * config/mips/mips.c: Include opts.h.
9747 (mips_handle_option): Update to new hook interface.
9748 * config/mn10300/mn10300.c: Include opts.h.
9749 (mn10300_handle_option): Update to new hook interface.
9750 * config/pa/pa.c: Include opts.h.
9751 (pa_handle_option): Update to new hook interface.
9752 * config/pdp11/pdp11.c: Include opts.h.
9753 (pdp11_handle_option): Update to new hook interface.
9754 * config/rs6000/rs6000.c: Include opts.h.
9755 (rs6000_handle_option): Update to new hook interface.
9756 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
9757 * config/rx/rx.c: Include opts.h.
9758 (rx_handle_option): Update to new hook interface.
9759 * config/s390/s390.c: Include opts.h.
9760 (s390_handle_option): Update to new hook interface.
9761 * config/score/score.c: Include opts.h.
9762 (score_handle_option): Update to new hook interface.
9763 * config/sh/sh.c: Include opts.h.
9764 (sh_handle_option): Update to new hook interface.
9765 * config/sparc/sparc.c: Include opts.h.
9766 (sparc_handle_option): Update to new hook interface.
9767 * config/v850/v850.c: Include opts.h.
9768 (v850_handle_option): Update to new hook interface.
9770 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9772 * gcc.c (driver_unknown_option_callback): Only permit and save
9773 unknown -Wno- options.
9774 (driver_wrong_lang_callback): Save options directly instead of via
9775 driver_unknown_option_callback.
9777 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
9779 * combine.c (simplify_set): Try harder to find the best CC mode when
9780 simplifying a nested COMPARE on the RHS.
9782 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9784 * config/alpha/gnu.h: Remove.
9785 * config/arc: Remove directory.
9786 * config/arm/netbsd.h: Remove.
9787 * config/arm/t-pe: Remove.
9788 * config/crx: Remove directory.
9789 * config/i386/netbsd.h: Remove.
9790 * config/m68hc11: Remove directory.
9791 * config/m68k/uclinux-oldabi.h: Remove.
9792 * config/mcore/mcore-pe.h: Remove.
9793 * config/mcore/t-mcore-pe: Remove.
9794 * config/netbsd-aout.h: Remove.
9795 * config/rs6000/gnu.h: Remove.
9796 * config/sh/sh-symbian.h: Remove.
9797 * config/sh/symbian-base.c: Remove.
9798 * config/sh/symbian-c.c: Remove.
9799 * config/sh/symbian-cxx.c: Remove.
9800 * config/sh/symbian-post.h: Remove.
9801 * config/sh/symbian-pre.h: Remove.
9802 * config/sh/t-symbian: Remove.
9803 * config/svr3.h: Remove.
9804 * config/vax/netbsd.h: Remove.
9805 * config.build: Don't handle i[34567]86-*-pe.
9806 * config.gcc: Remove handling of deprecations for most deprecated
9808 (m68k-*-uclinuxoldabi*): Add to second deprecated list.
9809 (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
9810 i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
9811 m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
9812 powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
9813 sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
9815 * config.host: Don't handle i[34567]86-*-pe.
9816 * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
9817 (ASM_SPEC32): Don't handle -mcall-gnu.
9818 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
9820 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
9821 STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
9822 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
9823 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
9824 (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
9825 * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
9826 conditional on SYMBIAN.
9827 * configure.ac: Don't handle powerpc*-*-gnu*.
9828 * configure: Regenerate.
9829 * doc/extend.texi (interrupt attribute): Don't mention CRX.
9830 * doc/install-old.texi (m6811, m6812): Don't mention.
9831 * doc/install.texi (arc-*-elf*): Don't document multilib option.
9832 (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
9833 (m68k-uclinuxoldabi): Don't mention.
9834 * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
9836 (-mcall-gnu): Remove.
9837 * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
9838 families): Remove constraint documentation.
9840 2011-03-22 Marius Strobl <marius@FreeBSD.org>
9842 * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
9843 (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
9844 (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
9846 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
9849 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
9850 vector when peeking at the next token for vector, don't expand the
9853 2011-03-21 Georg-Johann Lay <avr@gjlay.de>
9855 * config/avr/avr-protos.h (expand_epilogue): Change prototype
9856 * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
9857 * config/avr/avr.c (init_cumulative_args)
9858 (avr_function_arg_advance): Use it.
9859 * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
9861 (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
9862 (avr_function_ok_for_sibcall): ...this new function.
9863 (avr_lookup_function_attribute1): New static Function.
9864 (avr_naked_function_p, interrupt_function_p)
9865 (signal_function_p, avr_OS_task_function_p)
9866 (avr_OS_main_function_p): Use it.
9867 * config/avr/avr.md ("sibcall", "sibcall_value")
9868 ("sibcall_epilogue"): New expander.
9869 ("*call_insn", "*call_value_insn"): New insn.
9870 ("call_insn", "call_value_insn"): Remove
9871 ("call", "call_value", "epilogue"): Change expander to handle
9874 2011-03-21 Nick Clifton <nickc@redhat.com>
9876 * doc/invoke.texi (Overall Options): Move closing brace to end of
9878 (Optimization Options): Add missing @gol.
9879 (Directory Options): Likewise.
9880 (i386 and x86-64 Options): Likewise.
9881 (RS6000 and PowerPC Options): Likewise.
9882 (i386 and x86-64 Windows Options): Likewise.
9883 (V850 Options): Add text missing from descriptions.
9885 2011-03-22 Richard Henderson <rth@redhat.com>
9887 * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
9888 (avr_incoming_return_addr_rtx): New.
9889 (emit_push_byte): New.
9890 (expand_prologue): Use it. Remove incorrect dwarf annotation for
9891 SREG, RAMPZ, zero register. Push frame pointer by bytes. Add dwarf
9892 annotation for __prologue_saves__. Fixup dwarf annotation for CFA.
9893 (emit_pop_byte): New.
9894 (expand_epilogue): Use it. Pop frame pointer by bytes.
9895 * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
9896 (INCOMING_RETURN_ADDR_RTX): New.
9897 (INCOMING_FRAME_SP_OFFSET): New.
9898 (ARG_POINTER_CFA_OFFSET): New.
9899 * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
9900 (*pushhi, *pushsi, *pushsf, popqi): Likewise.
9903 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
9905 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
9907 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
9908 (FUNCTION_ARG_ADVANCE): Likewise.
9909 * tm.texi.in: Change references to them to hook references.
9910 * tm.texi: Regenerate.
9911 * targhooks.c (default_function_arg): Eliminate check for target
9913 (default_function_incoming_arg): Likewise.
9914 (default_function_arg_advance): Likewise.
9915 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
9916 (function_arg_advance): Likewise.
9917 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
9919 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
9921 * tree.c (build_call_1): New function.
9922 (build_call_valist, build_call_array_loc, build_call_vec): Call it.
9924 2011-03-22 Richard Guenther <rguenther@suse.de>
9926 PR tree-optimization/48228
9927 * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
9928 for single-arg PHIs.
9930 2011-03-22 Andrey Belevantsev <abel@ispras.ru>
9932 PR rtl-optimization/48143
9933 * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
9934 (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
9935 sse2_cvtps2pd): Likewise.
9937 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9939 * recog.c (canonicalize_change_group): Use validate_unshare_change.
9941 2011-03-22 Richard Guenther <rguenther@suse.de>
9943 * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
9944 a valid RHS. Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
9945 * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
9946 and REALIGN_LOAD_EXPR.
9947 (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
9948 DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
9949 * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
9950 DOT_PROD_EXPR case ...
9951 (expand_expr_real_2): ... here.
9952 * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
9953 and REALIGN_LOAD_EXPR.
9954 * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
9955 * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
9956 (vect_create_epilog_for_reduction): Likewise.
9957 (vectorizable_reduction): Likewise.
9958 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
9959 * tree-vect-stmts.c (vectorizable_load): Likewise.
9961 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
9963 * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
9965 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9967 * config/s390/s390.c (s390_delegitimize_address): Fix offset
9968 handling for PLTOFF/GOTOFF.
9970 2011-03-22 Nick Clifton <nickc@redhat.com>
9972 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
9973 trailing backslash from the end of the macro definition.
9975 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9977 * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
9980 2011-03-21 Richard Sandiford <richard.sandiford@linaro.org>
9982 * expr.h (prepare_operand): Move to...
9983 * optabs.h (prepare_operand): ...here and change the insn code
9984 parameter from "int" to "enum insn_code".
9985 (insn_operand_matches): Declare.
9986 * expr.c (init_expr_target): Use insn_operand_matches.
9987 (compress_float_constant): Likewise.
9988 * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
9989 * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
9990 (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
9991 (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
9993 (gen_cond_trap): Likewise.
9994 (prepare_operand): Likewise. Change icode to an insn_code.
9995 (insn_operand_matches): New function.
9996 * reload.c (find_reloads_address_1): Use insn_operand_matches.
9997 * reload1.c (gen_reload): Likewise.
9998 * targhooks.c (default_secondary_reload): Likewise.
10000 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
10002 * config/alpha/alpha.md (unspec): New define_c_enum.
10005 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
10008 * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
10009 between a call and its CALL_ARG_LOCATION note.
10011 2011-03-21 Eric Botcazou <ebotcazou@adacore.com>
10013 * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
10015 2011-03-21 Jakub Jelinek <jakub@redhat.com>
10019 * c-common.c (shorten_compare): If primopN is first sign-extended
10020 to opN and then zero-extended to result type, set primopN to opN.
10022 2011-03-21 Daniel Jacobowitz <dan@codesourcery.com>
10024 * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
10025 for barrier handlers.
10027 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
10029 * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
10030 UNSPEC constants to be in the unspec enumeration, and redefine
10031 all UNSPECV constants to be in the unspecv enumeration, so that
10032 dumps print which unspec/unspec_volatile this is.
10033 * config/rs6000/vector.md (UNSPEC_*): Ditto.
10034 * config/rs6000/paired.md (UNSPEC_*): Ditto.
10035 * config/rs6000/vsx.md (UNSPEC_*): Ditto.
10036 * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
10037 * config/rs6000/dfp.md (UNSPEC_*): Ditto.
10039 * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
10040 UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
10041 UNSPECV_LWSYNC, since these are used as unspec_volatile.
10042 * config/rs6000/sync.md (isync, lwsync): Ditto.
10044 2011-03-21 Richard Guenther <rguenther@suse.de>
10046 * params.def (lto-min-partition): Fix typo.
10048 2011-03-21 Richard Guenther <rguenther@suse.de>
10051 * c-decl.c (grokdeclarator): Drop to the main variant only
10052 for array types. Drop flag_gen_aux_info check.
10054 2011-03-21 Richard Guenther <rguenther@suse.de>
10056 PR translation/47911
10057 * params.def (lto-partitions): Fix typo.
10058 (lto-min-partition): Fix wording.
10060 2011-03-21 Andreas Tobler <andreast@fgznet.ch>
10062 * config/rs6000/t-freebsd: Remove duplication from file.
10064 2011-03-21 Richard Guenther <rguenther@suse.de>
10066 PR middle-end/47661
10067 * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
10069 2011-03-21 Richard Guenther <rguenther@suse.de>
10072 * params.def (lto-partitions): Require at least 1 partition.
10074 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10076 * gthr-solaris.h: Remove.
10077 * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
10078 * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
10079 (LIB_SPEC): Likewise.
10080 * config/sol2.opt (threads): Remove.
10081 * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
10082 (sparc*-*-solaris2*): Likewise.
10083 * configure.ac (enable_threads): Enable solaris support.
10084 * configure: Regenerate.
10085 * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
10086 * doc/install.texi (Configuration, --enable-threads=lib): Remove
10089 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10091 * config.gcc: Obsolete *-*-solaris2.8*.
10092 * doc/install.texi (Specific, *-*-solaris2*): Document it.
10094 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10097 * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
10098 reference. Solaris 8 perl works.
10100 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10103 * doc/install.texi (Prerequisites): Move jar etc. up.
10104 Explain support library version requirements.
10106 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10109 * doc/install.texi (Prerequisites): Move Perl to build
10110 requirements. Always necessary on Solaris 2 with Sun ld.
10112 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10114 * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
10116 (Specific, i?86-*-solaris2.[89]): Likewise.
10117 (Specific, i?86-*-solaris2.10): Likewise.
10118 (Specific, mips-sgi-irix6): Likewise.
10119 (Specific, *-*-solaris2*): Remove Sun Studio download URL.
10120 Update for binutils 2.21.
10122 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10124 * configure.ac (gcc_cv_lto_plugin): Fix typo.
10125 Allow -fuse-linker-plugin for non-default plugin linker.
10126 * configure: Regenerate.
10128 2011-03-21 Nicola Pero <nicola.pero@meta-innovation.com>
10131 * gengtype.c (files_rules): Added rule for cp/parser.h.
10133 2011-03-21 Jakub Jelinek <jakub@redhat.com>
10136 * config/s390/s390.c (s390_delegitimize_address): Don't call
10137 lowpart_subreg if orig_x has BLKmode.
10139 2011-03-21 Kai Tietz <ktietz@redhat.com>
10142 * doc/plugins.texi: Adjust documentation for plugin register_callback.
10143 * tree.h (attribute_spec): Add new member affects_type_identity.
10144 * attribs.c (empty_attribute_table): Adjust attribute_spec
10146 * config/alpha/alpha.c: Likewise.
10147 * config/arc/arc.c: Likewise.
10148 * config/arm/arm.c: Likewise.
10149 * config/avr/avr.c: Likewise.
10150 * config/bfin/bfin.c: Likewise.
10151 * config/crx/crx.c: Likewise.
10152 * config/darwin.h: Likewise.
10153 * config/h8300/h8300.c: Likewise.
10154 * config/i386/cygming.h: Likewise.
10155 * config/i386/i386.c: Likewise.
10156 * config/ia64/ia64.c: Likewise.
10157 * config/m32c/m32c.c: Likewise.
10158 * config/m32r/m32r.c: Likewise.
10159 * config/m68hc11/m68hc11.c: Likewise.
10160 * config/m68k/m68k.c: Likewise.
10161 * config/mcore/mcore.c: Likewise.
10162 * config/mep/mep.c: Likewise.
10163 * config/microblaze/microblaze.c: Likewise.
10164 * config/mips/mips.c: Likewise.
10165 * config/rs6000/rs6000.c: Likewise.
10166 * config/rx/rx.c: Likewise.
10167 * config/sh/sh.c: Likewise.
10168 * config/sol2.h: Likewise.
10169 * config/sparc/sparc.c: Likewise.
10170 * config/spu/spu.c: Likewise.
10171 * config/stormy16/stormy16.c: Likewise.
10172 * config/v850/v850.c: Likewise.
10174 2011-03-21 Chung-Lin Tang <cltang@codesourcery.com>
10176 * simplify-rtx.c (simplify_binary_operation_1): Handle
10177 (xor (and A B) C) case when B and C are both constants.
10179 2011-03-21 Mingjie Xing <mingjie.xing@gmail.com>
10181 * tree-dfa.c (add_referenced_var): Fix typo in comment.
10183 2011-03-20 Eric Botcazou <ebotcazou@adacore.com>
10186 * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
10188 2011-03-20 Jakub Jelinek <jakub@redhat.com>
10190 PR rtl-optimization/48156
10191 * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
10192 assume df and df_lr are not NULL.
10194 2011-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
10197 * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
10198 between a call and its CALL_ARG_LOCATION note.
10200 2011-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
10203 * config/sh/sh.c (find_barrier): Don't emit a constant pool
10204 between a call and its corresponding CALL_ARG_LOCATION note.
10206 2011-03-19 Anatoly Sokolov <aesok@post.ru>
10208 * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
10209 instead of loop. Use HARD_REGISTER_NUM_P predicate.
10210 * haifa-sched.c (setup_ref_regs): Ditto.
10211 * caller-save.c (add_used_regs_1): Ditto.
10212 * dse.c (look_for_hardregs): Ditto.
10213 * df-problems.c (df_simulate_one_insn_forwards): Ditto.
10214 * sched-rgn.c (check_live_1): Ditto.
10216 2011-03-18 Joseph Myers <joseph@codesourcery.com>
10218 * c-decl.c (diagnose_mismatched_decls): Give an error for
10219 redefining a typedef with variably modified type.
10221 2011-03-18 Joseph Myers <joseph@codesourcery.com>
10223 * c-decl.c (grokfield): Don't allow typedefs for structures or
10224 unions with no tag by default.
10225 * doc/extend.texi (Unnamed Fields): Update.
10227 2011-03-18 Uros Bizjak <ubizjak@gmail.com>
10229 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
10230 Rewrite using indirect functions.
10231 (lwp_slwpcb): Ditto.
10232 * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
10233 (avx_vinsertf128<mode>): Ditto.
10235 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10237 * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
10240 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10242 * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
10243 splitting between a call and its corresponding CALL_ARG_LOCATION note.
10245 2011-03-18 Maxim Kuvyrkov <maxim@codesourcery.com>
10247 PR rtl-optimization/48170
10248 * gcse.c (hoist_code): Remove bogus asserts.
10250 2011-03-18 Georg-Johann Lay <avr@gjlay.de>
10252 * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
10253 computation for prologue/epilogue.
10255 2011-03-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10257 * Makefile.in (check-consistency): Remove.
10259 2011-03-18 Jakub Jelinek <jakub@redhat.com>
10262 * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
10263 arange_table_in_use is 0, but either text_section_used or
10264 cold_text_section_used is true. Don't call it if
10265 !info_section_emitted.
10267 2011-03-18 Anatoly Sokolov <aesok@post.ru>
10269 * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
10270 FUNCTION_VALUE_REGNO_P): Remove.
10271 * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
10273 * config/avr/avr.c (avr_ret_register): Make static inline.
10274 (avr_function_value_regno_p): New function.
10275 (avr_libcall_value): Make static. Add 'func' argument.
10276 (avr_function_value): Make static. Rename 'func' argument to
10277 'fn_decl_or_type', forward it to avr_libcall_value. Call
10278 avr_ret_register function instead of RET_REGISTER macro.
10279 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
10281 2011-03-18 Jason Merrill <jason@redhat.com>
10284 * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
10286 2011-03-18 Richard Guenther <rguenther@suse.de>
10288 * doc/install.texi (--enable-gold): Remove.
10289 (--with-plugin-ld): Document.
10290 * doc/invoke.texi (-fuse-linker-plugin): Clarify.
10292 2011-03-18 Andrew Pinski <pinskia@gmail.com>
10294 PR middle-end/47790
10295 * expr.c (optimize_bitfield_assignment_op): Revamp to work
10296 again after expansion changes.
10298 2011-03-18 Chung-Lin Tang <cltang@codesourcery.com>
10300 * combine.c (try_combine): Do simplification only call of
10301 subst() on i2 even when i1 is present. Update comments.
10303 2011-03-18 Kaz Kojima <kkojima@gcc.gnu.org>
10305 * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
10306 and UNSPEC_PCREL_SYMOFF.
10308 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10310 * config/s390/s390.md: Use define_c_enum for the unspec constant
10313 2011-03-18 Richard Henderson <rth@redhat.com>
10314 Jakub Jelinek <jakub@redhat.com>
10317 * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
10318 instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
10320 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
10322 PR middle-end/47725
10323 * combine.c (cant_combine_insn_p): Don't check zero/sign
10324 extended hard registers.
10326 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
10328 PR middle-end/47725
10329 * combine.c (cant_combine_insn_p): Check zero/sign extended
10332 2011-03-17 Anatoly Sokolov <aesok@post.ru>
10334 * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
10335 * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
10336 * config/v850/v850.c (v850_output_addr_const_extra): Make static.
10337 Change return type to bool.
10338 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
10340 2011-03-17 Jakub Jelinek <jakub@redhat.com>
10343 * var-tracking.c (prepare_call_arguments): If CALL target
10344 is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
10345 pc instead of looking it up using cselib_lookup and use
10346 Pmode for it if x has VOIDmode.
10347 * dwarf2out.c (gen_subprogram_die): If also both first and
10348 second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
10351 * function.c (assign_parms): For data.passed_pointer parms
10352 use MEM of data.entry_parm instead of data.entry_parm itself
10353 as DECL_INCOMING_RTL.
10354 * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
10355 also when passed and declared mode is the same, DECL_RTL
10356 is a MEM with pseudo as address and DECL_INCOMING_RTL is
10359 2011-03-16 Jeff Law <law@redhat.com>
10361 PR rtl-optimization/37273
10362 * ira-costs.c (scan_one_insn): Detect constants living in memory and
10363 handle them like argument loads from stack slots. Do not double
10364 count memory for memory constants and argument loads from stack slots.
10366 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
10369 * var-tracking.c (prepare_call_arguments): Check SUBREG.
10371 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
10374 * config/i386/i386.opt: Add Save to -mavx and -mfma.
10376 2011-03-17 Jakub Jelinek <jakub@redhat.com>
10379 * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
10381 (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
10382 Clear call_arg_locations and call_arg_loc_last always.
10384 PR middle-end/48152
10385 * var-tracking.c (prepare_call_arguments): If argument needs to be
10386 passed by reference, adjust argtype and mode.
10388 2011-03-17 Richard Guenther <rguenther@suse.de>
10390 PR middle-end/48134
10391 * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
10392 a value make sure to fold the statement.
10394 2011-03-17 Chung-Lin Tang <cltang@codesourcery.com>
10397 * config/arm/arm.c (arm_get_frame_offsets): Adjust early
10398 return condition with !cfun->calls_alloca.
10400 2011-03-17 Richard Guenther <rguenther@suse.de>
10403 * lto-cgraph.c (input_overwrite_node): Clear the abstract
10404 origin for decls in other ltrans units.
10405 (input_varpool_node): Likewise.
10407 2011-03-17 Richard Guenther <rguenther@suse.de>
10409 PR middle-end/48165
10410 * tree-object-size.c (compute_object_offset): Properly return
10411 the offset operand of MEM_REFs as sizetype.
10413 2011-03-17 Jakub Jelinek <jakub@redhat.com>
10415 PR rtl-optimization/48141
10416 * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
10417 * dse.c: Include params.h.
10418 (active_local_stores_len): New variable.
10419 (add_wild_read, dse_step1): Clear it when setting active_local_stores
10421 (record_store, check_mem_read_rtx): Decrease it when removing
10423 (scan_insn): Likewise. Increase it when adding to chain, if it
10424 reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
10425 set active_local_stores to NULL before the addition.
10426 * Makefile.in (dse.o): Depend on $(PARAMS_H).
10428 PR rtl-optimization/48141
10429 * dse.c (record_store): If no positions are needed in an insn
10430 that cannot be deleted, at least unchain it from active_local_stores.
10432 2011-03-16 Dodji Seketeli <dodji@redhat.com>
10435 * dwarf2out.c (strip_naming_typedef): Factorize out of ...
10436 (lookup_type_die_strip_naming_typedef): ... here.
10437 (get_context_die): Use it.
10438 (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
10439 the anonymous struct named by the naming typedef.
10441 2011-03-16 H.J. Lu <hongjiu.lu@intel.com>
10444 * config/i386/i386.c (ix86_builtin_vectorized_function): Check
10445 TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
10447 2011-03-16 Jeff Law <law@redhat.com>
10449 * tree-vrp.c (identify_jump_threads): Slightly simplify type
10450 check for operands of conditional. Allow type to be a pointer.
10452 2011-03-16 Richard Guenther <rguenther@suse.de>
10454 PR tree-optimization/48149
10455 * fold-const.c (fold_binary_loc): Fold
10456 COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
10458 2011-03-16 Richard Guenther <rguenther@suse.de>
10460 PR tree-optimization/26134
10461 * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
10462 complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
10463 (non_rewritable_mem_ref_base): Handle complex type component
10464 accesses, constrain offsets for vector and complex extracts
10467 2011-03-16 Richard Guenther <rguenther@suse.de>
10469 PR tree-optimization/48146
10470 * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
10471 operands avoiding the need for renaming.
10473 2011-03-16 Richard Guenther <rguenther@suse.de>
10475 * gimple-fold.c (maybe_fold_reference): Open-code relevant
10476 constant folding. Move MEM_REF canonicalization first.
10477 Rely on fold_const_aggregate_ref for initializer folding.
10478 * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
10480 2011-03-16 Jakub Jelinek <jakub@redhat.com>
10482 PR middle-end/48136
10483 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
10484 arg0/arg1 or their arguments are always fold converted to matching
10487 * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
10490 2011-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10493 * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
10494 Handle in-tree gold.
10495 (ld_vers): Extract binutils version for gold.
10496 (gcc_cv_ld_hidden): Handle gold here.
10497 (gcc_cv_lto_plugin): Determine level of linker plugin support.
10498 * configure: Regenerate.
10499 * config.in: Regenerate.
10500 * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
10501 -fuse-linker-plugin otherwise.
10502 (LINK_PLUGIN_SPEC): Define. Extract from LINK_COMMAND_SPEC.
10503 (LINK_COMMAND_SPEC): Use it.
10504 (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
10506 2011-03-16 Jakub Jelinek <jakub@redhat.com>
10508 * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
10509 * calls.c: Remove debug.h include.
10510 (emit_call_1): Don't call virtual_call_token debug hook.
10511 * dwarf2out.c (debug_dcall_section, debug_vcall_section,
10512 dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
10513 vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
10514 size_of_dcall_table, output_dcall_table, size_of_vcall_table,
10515 output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
10516 vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
10517 dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
10518 dwarf2out_virtual_call): Remove.
10519 (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
10520 copy_call_info and virtual_call hooks.
10521 (dwarf2out_init): Don't initialize vcall_insn_table,
10522 debug_dcall_section and debug_vcall_section.
10523 (prune_unused_types): Don't mark nodes from dcall_table.
10524 (dwarf2out_finish): Don't output dcall or vcall tables.
10525 * final.c (final_scan_insn): Don't call direct_call or
10526 virtual_call debug hooks.
10527 * debug.h (struct gcc_debug_hooks): Remove direct_call,
10528 virtual_call_token, copy_call_info and virtual_call hooks.
10529 (debug_nothing_uid): Remove prototype.
10530 * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
10531 copy_call_info and virtual_call hooks.
10532 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
10533 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
10534 * debug.c (do_nothing_debug_hooks): Likewise.
10535 (debug_nothing_uid): Remove.
10536 * doc/invoke.texi (-fenable-icf-debug): Remove.
10537 * common.opt (-fenable-icf-debug): Likewise.
10539 * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
10540 * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
10541 call's MEM. Handle functions returning aggregate through a hidden
10542 first pointer. For virtual calls add clobbered pc to call arguments
10544 * dwarf2out.c (gen_subprogram_die): Emit
10545 DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
10549 * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
10550 * rtl.h (ENTRY_VALUE_EXP): Define.
10551 * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
10552 * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
10553 * print-rtl.c (print_rtx): Likewise.
10554 * gengtype.c (adjust_field_rtx_def): Likewise.
10555 * var-tracking.c (vt_add_function_parameter): Adjust
10556 gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
10557 * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
10558 * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
10559 partition is a default definition of a PARM_DECL, use ENTRY_VALUE
10560 of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
10562 * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
10563 Call var_location debug hook even on CALL_INSNs.
10564 (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
10565 * rtl.def (ENTRY_VALUE): New.
10566 * dwarf2out.c: Include cfglayout.h.
10567 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
10568 output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
10569 (struct call_arg_loc_node): New type.
10570 (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
10571 tail_call_site_count): New variables.
10572 (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
10573 DW_TAG_GNU_call_site_parameter.
10574 (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
10575 DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
10576 DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
10577 DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
10578 and DW_AT_GNU_all_source_call_sites.
10579 (mem_loc_descriptor): Handle ENTRY_VALUE.
10580 (add_src_coords_attributes): Don't add enything if
10581 DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
10582 (dwarf2out_abstract_function): Save and clear call_arg_location,
10583 call_site_count and tail_call_site_count around dwarf2out_decl call.
10584 (gen_call_site_die): New function.
10585 (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
10586 (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
10587 (dwarf2out_function_decl): Clear call_arg_locations,
10588 call_arg_loc_last, set call_site_count and tail_call_site_count
10589 to -1 and free block_map.
10590 (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
10591 CALL_INSNs. Add NOTE_DURING_CALL_P var location notes even when not
10592 followed by any real instructions.
10593 (dwarf2out_begin_function): Set call_site_count and
10594 tail_call_site_count to 0.
10595 (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
10596 is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
10597 attempt to force a DIE for it and worst case remove the attribute.
10598 (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
10599 check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
10601 * var-tracking.c: Include tm_p.h.
10602 (vt_stack_adjustments): For calls call note_register_arguments.
10603 (argument_reg_set): New variable.
10604 (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
10605 ensure the VALUE is resolved.
10606 (call_arguments): New variable.
10607 (prepare_call_arguments): New function.
10608 (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
10609 (struct expand_loc_callback_data): Add ignore_cur_loc field.
10610 (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
10611 always use the best expression.
10612 (vt_expand_loc): Add ignore_cur_loc argument.
10613 (vt_expand_loc_dummy): Clear ignore_cur_loc field.
10614 (emit_note_insn_var_location): Adjust vt_expand_loc callers.
10615 (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
10616 note for all calls.
10617 (vt_add_function_parameter): Use cselib_lookup_from_insn.
10618 If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
10619 argument. Don't call cselib_preserve_only_values and
10620 cselib_reset_table.
10621 (note_register_arguments): New function.
10622 (vt_initialize): Compute argument_reg_set. Call
10623 vt_add_function_parameters before processing basic blocks instead of
10624 afterwards. For calls call prepare_call_arguments before calling
10625 cselib_process_insn.
10626 * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
10627 * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
10628 (var-tracking.o): Depend on $(TM_P_H).
10629 * cfglayout.h (insn_scope): New prototype.
10630 * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
10631 * cfglayout.c (insn_scope): No longer static.
10632 * insn-notes.def (CALL_ARG_LOCATION): New.
10633 * calls.c (expand_call, emit_library_call_value_1): Put USEs for
10634 MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
10635 * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
10636 nothing for DECL_EXTERNAL BLOCK_VARS.
10638 2011-03-16 Alan Modra <amodra@gmail.com>
10641 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
10642 create invalid offset address for vsx splat insn.
10643 * config/rs6000/predicates.md (splat_input_operand): New.
10644 * config/rs6000/vsx.md (vsx_splat_*): Use it.
10646 2011-03-15 Xinliang David Li <davidxl@google.com>
10649 * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
10650 (normalize_preds): New function.
10651 (is_use_properly_guarded): Normalize def predicates.
10653 2011-03-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
10656 * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
10657 in the output template.
10659 2011-03-15 Richard Guenther <rguenther@suse.de>
10661 PR middle-end/47650
10662 * tree-pretty-print.c (dump_function_declaration): Properly
10663 dump unprototyped and varargs function types.
10665 2011-03-15 Richard Guenther <rguenther@suse.de>
10667 PR tree-optimization/13954
10668 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
10671 2011-03-15 Richard Guenther <rguenther@suse.de>
10673 PR tree-optimization/48037
10674 * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
10675 selects into BIT_FIELD_REFs.
10676 (non_rewritable_mem_ref_base): Check if a MEM_REF is a
10679 2011-03-15 Jakub Jelinek <jakub@redhat.com>
10681 PR tree-optimization/48129
10682 * builtins.c (fold_builtin_snprintf): Convert to type of
10683 built_in_decls[BUILT_IN_SNPRINTF] retval instead of
10684 implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
10686 2011-03-15 Richard Guenther <rguenther@suse.de>
10688 PR tree-optimization/41490
10689 * tree-ssa-dce.c (propagate_necessity): Handle returns without
10690 value but with VUSE.
10691 * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
10693 * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
10694 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
10695 * tree-tailcall.c (find_tail_calls): Ignore returns.
10697 2011-03-15 Richard Guenther <rguenther@suse.de>
10699 PR middle-end/48031
10700 * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
10701 or variable-indexed array accesses when in gimple form.
10703 2011-03-15 Richard Guenther <rguenther@suse.de>
10705 * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
10707 2011-03-15 Alan Modra <amodra@gmail.com>
10710 * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
10711 presume symbol_refs without a symbol_ref_decl are suitably
10712 aligned, nor other trees we may see here. Handle anchor symbols.
10713 (legitimate_constant_pool_address_p): Comment. Add mode param.
10714 Check cmodel=medium addresses. Adjust all calls.
10715 (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
10716 creating cmodel=medium optimized access to locals.
10717 * config/rs6000/constraints.md (R): Pass QImode to
10718 legitimate_constant_pool_address_p.
10719 * config/rs6000/predicates.md (input_operand): Pass mode to
10720 legitimate_constant_pool_address_p.
10721 * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
10724 2011-03-14 Michael Meissner <meissner@linux.vnet.ibm.com>
10727 * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
10728 64-bit constants being loaded into registers other than GPRs such
10729 as loading 0 into a VSX register.
10731 2011-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10733 * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
10735 2011-03-14 Jakub Jelinek <jakub@redhat.com>
10737 PR middle-end/47917
10738 * builtins.c (fold_builtin_snprintf): New function.
10739 (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
10740 (fold_builtin_4): Likewise.
10742 PR middle-end/38878
10743 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
10744 STRIP_NOPS on arg0 and arg1. When optimizing X +- C == X
10745 and C - X == X also strip nops from +/-/p+ operand.
10746 When optimizing -X == C, fold C to arg0's type.
10749 * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
10750 emit it as add_AT_int instead of add_AT_unsigned.
10752 2011-03-14 Tom Tromey <tromey@redhat.com>
10754 * unwind-dw2.c: Include sys/sdt.h if it exists.
10755 (_Unwind_DebugHook): Use STAP_PROBE2.
10756 * config.in, configure: Rebuild.
10757 * configure.ac: Check for sys/sdt.h.
10759 2011-03-14 Uros Bizjak <ubizjak@gmail.com>
10761 * config/i386/i386.md (ROUND_FLOOR): New constant.
10762 (ROUND_CEIL): Ditto.
10763 (ROUND_TRUNC): Ditto.
10764 (ROUND_MXCSR): Ditto.
10765 (ROUND_NO_EXC): Ditto.
10766 (rint<mode>2): Use new defines instead of numerical constants.
10767 (floor<mode>2): Ditto.
10768 (ceil<mode>2): Ditto.
10769 (btrunc<mode>2): Ditto.
10770 * config/i386/i386-builtin-types.def: Define ROUND function type
10772 * config/i386/i386.c (enum ix86_builtins): Add
10773 IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
10774 (struct builtin_description): Add
10775 __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
10776 (ix86_expand_sse_round): New static function.
10777 (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
10779 (ix86_builtin_vectorized_function): Handle
10780 BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
10782 2011-03-14 Tom Tromey <tromey@redhat.com>
10784 * c-parser.c (c_parser_asm_string_literal): Clear
10785 warn_overlength_strings.
10787 2011-03-14 Tom Tromey <tromey@redhat.com>
10789 * c-parser.c (disable_extension_diagnostics): Save
10790 warn_overlength_strings.
10791 (restore_extension_diagnostics): Restore warn_overlength_strings.
10793 2011-03-14 Jakub Jelinek <jakub@redhat.com>
10795 * BASE-VER: Change to 4.7.0.
10797 2011-03-14 Richard Guenther <rguenther@suse.de>
10799 PR middle-end/48098
10800 * tree.c (build_vector_from_val): Adjust assert to requirements
10803 2011-03-14 Jakub Jelinek <jakub@redhat.com>
10806 * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
10808 2011-03-14 Andreas Tobler <andreast@fgznet.ch>
10810 * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
10811 terms of target_flags_explicit. Adjust copyright year.
10813 * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
10814 * config/rs6000/t-freebsd: New file. Add override for
10817 2011-03-13 Chris Demetriou <cgd@google.com>
10819 * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
10820 (-fno-diagnostics-show-option): this, to reflect current default.
10821 (-Werror=): Update text about -fno-diagnostics-show-option.
10823 2011-03-12 Peter Bergner <bergner@vnet.ibm.com>
10826 * config/rs6000/predicates.md (easy_vector_constant_add_self,
10827 easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
10828 * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
10829 mode is not V2DImode or V2DFmode.
10830 (vspltis_constant): Do not handle V2DImode and V2DFmode.
10831 (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
10832 * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
10834 (movdi_internal64): Likewise.
10836 2011-03-12 Sebastian Pop <sebastian.pop@amd.com>
10838 PR tree-optimization/47127
10839 * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
10841 (set_cloog_options): Same.
10842 (scop_to_clast): Same.
10843 (print_clast_stmt): Do not call cloog_state_malloc and
10845 (print_generated_program): Same.
10847 * graphite-clast-to-gimple.h (cloog_state): Declared.
10848 (scop_to_clast): Adjust declaration.
10849 * graphite.c (cloog_state): Defined here.
10850 (graphite_initialize): Call cloog_state_malloc.
10851 (graphite_finalize): Call cloog_state_free.
10853 2011-03-11 Jason Merrill <jason@redhat.com>
10855 * attribs.c (lookup_attribute_spec): Take const_tree.
10858 2011-03-11 Joseph Myers <joseph@codesourcery.com>
10860 * config/sparc/sparc.c (sparc_option_override): Use
10861 PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
10863 2011-03-11 Richard Guenther <rguenther@suse.de>
10865 PR tree-optimization/48067
10866 * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
10867 multiplication result will be only used once on the target
10870 2011-03-11 Richard Guenther <rguenther@suse.de>
10872 * doc/invoke.texi (max-inline-insns-single): Adjust default value.
10874 2011-03-11 Richard Guenther <rguenther@suse.de>
10877 * tree.c (find_decls_types_r): Do not walk types only reachable
10878 from IDENTIFIER_NODEs.
10880 2011-03-11 Jakub Jelinek <jakub@redhat.com>
10882 PR middle-end/48044
10883 * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
10884 all vnode->force_output nodes as needed.
10886 2011-03-11 Jason Merrill <jason@redhat.com>
10889 * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
10890 COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
10892 2011-03-11 Martin Jambor <mjambor@suse.cz>
10894 * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
10897 2011-03-11 Jakub Jelinek <jakub@redhat.com>
10899 PR tree-optimization/48063
10900 * ipa-inline.c (cgraph_decide_inlining): Don't try to
10901 inline functions called once if !tree_can_inline_p (node->callers).
10903 2011-03-11 Chen Liqin <liqin.gcc@gmail.com>
10905 * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
10907 * config/score/score3.c: Delete.
10908 * config/score/score3.h: Delete.
10909 * config/score/mul-div.S: Delete.
10910 * config/score/sfp-machine.h: Add new file.
10911 * config/score/constraints.md: Add new file.
10912 * config/score/t-score-softfp: Add new file.
10913 * config/score/t-score-elf: Remove score3.o, do not generate multilib.
10914 * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
10915 (score7_extra_constraint): Delete.
10916 (score7_option_override): Remove unused code.
10917 * config/score/score.c: Remove score3 and score5 define and code.
10918 * config/score/score.h: Remove score3 and score5 define and code.
10919 * config/score/score.md: Remove score3 template and unusual insn.
10920 * config/score/score.opt: Remove score3 and score5 options.
10922 2011-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10924 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
10925 when _HPUX_SOURCE is defined.
10926 (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
10928 2011-03-10 Jason Merrill <jason@redhat.com>
10931 * stor-layout.c (layout_type): Don't set structural equality
10932 on arrays of incomplete type.
10933 * tree.c (type_hash_eq): Handle comparing them properly.
10935 2011-03-10 Jakub Jelinek <jakub@redhat.com>
10938 * config/s390/s390.c (s390_delegitimize_address): Make sure the
10939 result mode matches original rtl mode.
10941 2011-03-10 Nick Clifton <nickc@redhat.com>
10943 * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
10944 (andsi3, andsi3_flags): Fix timings for three operand alternative.
10946 2011-03-09 Jakub Jelinek <jakub@redhat.com>
10948 PR rtl-optimization/47866
10949 * expr.c (store_field): If MEM_SCALAR_P (target), don't use
10950 MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
10951 if target wasn't scalar.
10952 * function.c (assign_stack_temp_for_type): Assert that neither
10953 MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
10954 MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
10956 * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
10958 2011-03-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10960 * config/s390/s390-protos.h (s390_label_align): New prototype.
10961 * config/s390/s390.c (s390_label_align): New function.
10962 * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
10964 2011-03-08 Michael Meissner <meissner@linux.vnet.ibm.com>
10967 * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
10968 V2DI/V2DF constants. Only all 0's or all 1's are easy.
10969 (output_vec_const_move): Ditto.
10971 2011-03-08 Anatoly Sokolov <aesok@post.ru>
10973 * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
10974 * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
10975 * config/mips/mips.c (mips_preferred_reload_class): Make static.
10976 Change 'rclass' argument and result type to reg_class_t.
10977 (TARGET_PREFERRED_RELOAD_CLASS): Define.
10979 2011-03-08 Georg-Johann Lay <avr@gjlay.de>
10981 * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
10982 * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
10983 (TARGET_MEMORY_MOVE_COST): Define.
10984 (avr_register_move_cost, avr_memory_move_cost): New Functions.
10986 2011-03-08 Jakub Jelinek <jakub@redhat.com>
10989 * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
10992 PR tree-optimization/48022
10993 * fold-const.c (fold_comparison): Don't call fold_overflow_warning
10996 2011-03-07 Jakub Jelinek <jakub@redhat.com>
10999 * var-tracking.c (find_use_val): Return NULL for
11000 cui->sets && cui->store_p BLKmode MEMs.
11002 2011-03-07 Anatoly Sokolov <aesok@post.ru>
11004 * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
11006 * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
11007 xstormy16_print_operand_address): Remove.
11008 * config/stormy16/stormy16.c (xstormy16_print_operand,
11009 xstormy16_print_operand_address): Make static.
11010 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
11012 2011-03-07 Pat Haugen <pthaugen@us.ibm.com>
11015 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
11016 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
11019 2011-03-07 Zdenek Dvorak <ook@ucw.cz>
11022 * cfgloopmanip.c (fix_bb_placements): Return immediately
11023 if FROM is BASE_LOOP's header.
11025 2011-03-07 Paul Wögerer <paul_woegerer@mentor.com>
11027 * gimplify.c (gimplify_function_tree): Fix building calls
11028 to __builtin_return_address.
11030 2011-03-07 Alan Modra <amodra@gmail.com>
11032 * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
11033 * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
11034 * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
11035 * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
11037 * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
11038 (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
11039 (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
11040 (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
11041 * config/rs6000/rs6000.c
11042 (rs6000_elf_end_indicate_exec_stack): Rename to..
11043 (rs6000_elf_file_end): ..this. Only call file_end_indicate_exec_stack
11044 for POWERPC_LINUX. Move code emitting .gnu_attribute to here, from..
11045 (rs6000_file_start): ..here.
11046 (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
11047 file scope variables.
11048 (call_ABI_of_interest): New function.
11049 (init_cumulative_args): Set above vars when function return value
11050 is a float, vector, or small struct.
11051 (rs6000_function_arg_advance_1): Likewise for function args.
11052 (rs6000_va_start): Set rs6000_passes_float if variable arg function
11053 references float args.
11055 2011-03-07 Mingjie Xing <mingjie.xing@gmail.com>
11057 * doc/cfg.texi: Remove "See" before @ref.
11058 * doc/invoke.texi: Likewise.
11060 2011-03-05 Jason Merrill <jason@redhat.com>
11062 * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
11064 2011-03-05 Anthony Green <green@moxielogic.com>
11066 * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
11068 2011-03-05 Zdenek Dvorak <ook@ucw.cz>
11070 PR rtl-optimization/47899
11071 * cfgloopmanip.c (fix_bb_placements): Fix first argument
11072 to flow_loop_nested_p when moving the loop upward.
11074 2011-03-05 Richard Earnshaw <rearnsha@arm.com>
11077 * arm.md (movhi_insn_arch4): Accept any immediate constant.
11079 2011-03-05 Jakub Jelinek <jakub@redhat.com>
11081 PR tree-optimization/47967
11082 * ipa-cp.c (build_const_val): Return NULL instead of creating
11083 VIEW_CONVERT_EXPR for mismatching sizes.
11084 (ipcp_create_replace_map): Return NULL if build_const_val failed.
11085 (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
11086 give up on versioning.
11088 2011-03-05 Alan Modra <amodra@gmail.com>
11091 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
11092 full cmodel medium/large lo_sum + high addresses.
11094 2011-03-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11096 * config/s390/s390.c (s390_decompose_address): Reject non-literal
11097 pool references in UNSPEC_LTREL_OFFSET.
11099 2011-03-04 Jan Hubicka <jh@suse.cz>
11102 * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
11103 (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
11104 * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
11106 * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
11107 cgraph_add_thunk): Add node pointers.
11108 * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
11109 associated to right node.
11110 (input_node): Update use of cgraph_same_body_alias
11111 and cgraph_add_thunk.
11113 2011-03-04 Changpeng Fang <changpeng.fang@amd.com>
11115 * config/i386/i386.opt (mprefer-avx128): New flag.
11116 * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
11117 modes when the flag -mprefer-avx128 is on.
11119 2011-03-04 Richard Sandiford <richard.sandiford@linaro.org>
11121 * dwarf2out.c (compare_loc_operands): Fix address handling.
11123 2011-03-04 Alan Modra <amodra@gmail.com>
11125 * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
11127 2011-03-04 Richard Guenther <rguenther@suse.de>
11129 PR middle-end/47968
11130 * expmed.c (extract_bit_field_1): Prefer vector modes that
11131 vec_extract patterns can handle.
11133 2011-03-04 Richard Guenther <rguenther@suse.de>
11135 PR middle-end/47975
11136 * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
11138 2011-03-04 Richard Henderson <rth@redhat.com>
11140 * explow.c (emit_stack_save): Remove 'after' parameter.
11141 (emit_stack_restore): Likewise.
11142 * expr.h: Update to match.
11143 * builtins.c, calls.c, stmt.c: Likewise.
11144 * config/alpha/alpha.md, config/avr/avr.md: Likewise.
11145 * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
11146 * function.c (expand_function_end): Insert the emit_stack_save
11147 sequence before parm_birth_insn instead of after.
11149 2011-03-03 Uros Bizjak <ubizjak@gmail.com>
11151 * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
11152 (ssse3_pmaddubsw128): Ditto.
11153 (ssse3_pmaddubsw): Ditto.
11155 2011-03-03 Steve Ellcey <sje@cup.hp.com>
11157 * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
11159 2011-03-03 Jakub Jelinek <jakub@redhat.com>
11162 * gimplify.c (omp_add_variable): Only call omp_notice_variable
11163 on TYPE_SIZE_UNIT if it is a DECL.
11166 * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
11167 first operand is not is_gimple_mem_ref_addr, try to fold it.
11168 If the operand still isn't is_gimple_mem_ref_addr, clear
11171 2011-03-03 Richard Guenther <rguenther@suse.de>
11173 PR middle-end/47283
11174 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
11176 (refs_may_alias_p_1): For release branches return true if
11177 we are confused by our input.
11179 2011-03-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11181 * config/s390/s390.c (s390_function_value): Rename to ...
11182 (s390_function_and_libcall_value): ... this.
11183 (s390_function_value): New function.
11184 (s390_libcall_value): New function.
11185 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
11186 * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
11187 target macro definitions.
11188 * config/s390/s390-protos.h (s390_function_value): Remove prototype.
11190 2011-03-02 Joseph Myers <joseph@codesourcery.com>
11192 * config/i386/freebsd64.h (CC1_SPEC): Define.
11193 * config/i386/linux64.h (CC1_SPEC): Define.
11194 * config/i386/x86-64.h (CC1_SPEC): Don't define.
11196 2011-03-02 Anatoly Sokolov <aesok@post.ru>
11198 * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
11200 * config/stormy16/stormy16.c: Include reload.h.
11201 (xstormy16_memory_move_cost): New function.
11202 (TARGET_MEMORY_MOVE_COST): Define.
11204 2011-03-02 Richard Sandiford <richard.sandiford@linaro.org>
11206 PR rtl-optimization/47925
11207 * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
11208 with side effects. Remove the more-specific check for volatile asms.
11210 2011-03-02 Alan Modra <amodra@gmail.com>
11213 * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
11214 toc relative addresses for valid offsets.
11216 2011-03-01 Richard Guenther <rguenther@suse.de>
11218 PR tree-optimization/47890
11219 * tree-vect-loop.c (get_initial_def_for_induction): Set
11220 related stmt properly.
11222 2011-03-01 Richard Guenther <rguenther@suse.de>
11225 * lto-streamer.c (lto_record_common_node): Also register
11226 the canonical type.
11228 2011-03-01 Richard Guenther <rguenther@suse.de>
11231 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
11232 Do not stream DECL_ABSTRACT_ORIGIN.
11233 (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
11234 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
11235 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
11236 Do not stream DECL_ABSTRACT_ORIGIN.
11237 (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
11238 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
11240 2011-02-28 Anatoly Sokolov <aesok@post.ru>
11242 * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
11243 FUNCTION_VALUE_REGNO_P): Remove.
11244 * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
11245 * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
11246 Add 'outgoing' argument.
11247 (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
11249 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
11250 TARGET_FUNCTION_VALUE_REGNO_P): Define.
11252 2011-02-28 Kai Tietz <kai.tietz@onevision.com>
11255 * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
11256 (lookup_filename): Likewise.
11257 * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
11259 2011-02-28 Bernd Schmidt <bernds@codesourcery.com>
11260 Jakub Jelinek <jakub@redhat.com>
11262 PR middle-end/47893
11263 * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
11264 (assign_stack_local_1): Change last argument type to int.
11265 * function.c (assign_stack_local_1): Replace reduce_alignment_ok
11266 argument with kind. If bit ASLK_RECORD_PAD is not set in it,
11267 don't record padding space into frame_space_list nor use those areas.
11268 (assign_stack_local): Adjust caller.
11269 (assign_stack_temp_for_type): Call assign_stack_local_1 instead
11270 of assign_stack_local, pass 0 as last argument.
11271 * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
11274 2011-02-28 Jakub Jelinek <jakub@redhat.com>
11277 * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
11278 Use target address_mode and pointer_mode hooks instead of hardcoded
11279 Pmode and ptr_mode. Handle some simple cases of extending if
11280 POINTERS_EXTEND_UNSIGNED < 0.
11281 (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
11282 Call convert_debug_memory_address.
11283 (expand_debug_expr) <case ADDR_EXPR>: Pass as to
11284 convert_debug_memory_address.
11286 PR middle-end/46790
11287 * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
11288 * configure: Regenerated.
11289 * config.in: Regenerated.
11290 * varasm.c (default_function_section): Return NULL
11291 if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
11293 2011-02-28 Martin Jambor <mjambor@suse.cz>
11295 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
11296 the description to match the printed values.
11298 2011-02-28 Richard Guenther <rguenther@suse.de>
11300 * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
11301 of the copied scope tree.
11303 2011-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11305 * doc/extend.texi (Function Attributes): Avoid deeply (and
11306 wrongly) nested tables.
11308 2011-02-27 Jakub Jelinek <jakub@redhat.com>
11310 PR middle-end/47903
11311 * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
11312 MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
11313 r isn't op0 nor op1.
11315 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
11317 * config/avr/avr.md: Remove magic comment for emacs.
11319 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
11322 * config/avr/avr.c (avr_option_override): Use error on bad options.
11323 (avr_help): New function.
11324 (TARGET_HELP): Define.
11326 2011-02-22 Georg-Johann Lay <avr@gjlay.de>
11329 * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
11330 (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
11332 2011-02-26 Gerald Pfeifer <gerald@pfeifer.com>
11334 * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
11335 (ARM Options): Ditto.
11336 (i386 and x86-64 Options): Ditto.
11337 (RX Options): Ditto.
11338 (SPARC Options): Ditto.
11340 2011-02-26 Tijl Coosemans <tijl@coosemans.org>
11342 * config.gcc (i386-*-freebsd*): Make i486 the default arch on
11343 FreeBSD 6 and later. Generally use cpu generic.
11345 2011-02-25 Gerald Pfeifer <gerald@pfeifer.com>
11347 * doc/cpp.texi: Update copyright years.
11349 2011-02-25 Sebastien Bourdeauducq <sebastien@milkymist.org>
11352 * config/lm32/lm32.md (ashrsi3): Added needed variable.
11354 2011-02-25 Jon Beniston <jon@beniston.com>
11357 * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
11358 * config/lm32/lm32.md (ashlsi3): Remove unused variable.
11359 * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
11360 (lm32_block_move_inline): Add type cast to remove warning.
11361 (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
11362 (gen_int_relational): Move declarations to start of function.
11364 2011-02-25 Eric Botcazou <ebotcazou@adacore.com>
11366 PR tree-optimization/45470
11367 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
11368 can throw internally only.
11369 * tree-vect-stmts.c (vectorizable_call): Likewise.
11371 2011-02-24 Anatoly Sokolov <aesok@post.ru>
11373 * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
11374 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
11375 * config/stormy16/stormy16-protos.h
11376 (xstormy16_preferred_reload_class): Remove.
11377 * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
11378 static. Change 'rclass' argument and return type to reg_class_t.
11379 (TARGET_PREFERRED_RELOAD_CLASS,
11380 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
11382 2011-02-24 Richard Guenther <rguenther@suse.de>
11384 * lto-streamer-in.c (input_bb): Do not find referenced vars
11385 in debug statements.
11387 2011-02-23 Jason Merrill <jason@redhat.com>
11389 * common.opt (fabi-version): Document v5 and v6.
11391 2011-02-23 Richard Guenther <rguenther@suse.de>
11393 PR tree-optimization/47849
11394 * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
11396 2011-02-23 Jie Zhang <jie@codesourcery.com>
11398 * opts-common.c (decode_cmdline_option): Print empty string
11399 argument as "" in decoded->orig_option_with_args_text.
11400 * gcc.c (execute): Print empty string argument as ""
11401 in the verbose output.
11402 (do_spec_1): Keep empty string argument.
11404 2011-02-23 Nathan Froyd <froydnj@codesourcery.com>
11406 * config.gcc: Declare score-* and crx-* obsolete.
11408 2011-02-23 Jie Zhang <jie@codesourcery.com>
11410 PR rtl-optimization/47763
11411 * web.c (web_main): Ignore naked clobber when replacing register.
11413 2011-02-22 Anatoly Sokolov <aesok@post.ru>
11415 * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
11418 2011-02-22 Sebastian Pop <sebastian.pop@amd.com>
11421 * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
11423 2011-02-22 Mike Stump <mikestump@comcast.net>
11425 * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
11427 * configure: Regenerate.
11429 2011-02-21 Chung-Lin Tang <cltang@codesourcery.com>
11431 PR rtl-optimization/46002
11432 * ira-color.c (update_copy_costs): Change class intersection
11433 test to reg_class_contents[] test of 'hard_regno'.
11435 2011-02-21 Joseph Myers <joseph@codesourcery.com>
11437 * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
11438 than Driver option.
11439 * config/hpux11.opt (mt): Likewise.
11440 * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
11441 * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
11442 * config/vax/elf.opt (mno-asm-pic): Likewise.
11443 * config/vms/vms.opt (map, mvms-return-codes): Likewise.
11445 2011-02-21 Mike Stump <mikestump@comcast.net>
11448 * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
11449 tree so we can get save the type.
11450 * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
11451 for CFString instead of trying to use past the end of the builtins.
11452 * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
11453 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
11454 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
11455 * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
11456 Rename to darwin_builtin_cfstring.
11457 (darwin_init_cfstring_builtins): Return the built type.
11459 2011-02-21 Uros Bizjak <ubizjak@gmail.com>
11462 * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
11463 (_mm256_insert_epi64): Use _mm_insert_epi64.
11465 2011-02-21 Anatoly Sokolov <aesok@post.ru>
11467 * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
11468 * config/stormy16/stormy16-protos.h
11469 (xstormy16_mode_dependent_address_p): Remove.
11470 * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
11471 Make static. Change return type to bool. Change argument type to
11472 const_rtx. Remove dead code.
11473 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
11475 2011-02-21 Richard Guenther <rguenther@suse.de>
11478 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
11479 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
11480 (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
11482 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
11483 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
11485 2011-02-20 Richard Guenther <rguenther@suse.de>
11488 * tree.c (free_lang_data_in_decl): Clean builtins from
11489 the TU decl BLOCK_VARS.
11491 2011-02-19 Alexandre Oliva <aoliva@redhat.com>
11495 * haifa-sched.c (fix_tick_ready): Skip tick computation
11498 2011-02-19 Richard Guenther <rguenther@suse.de>
11501 * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
11502 Remove lazy BLOCK_VARS streaming.
11503 (lto_input_ts_block_tree_pointers): Likewise.
11504 * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
11506 2011-02-19 Joseph Myers <joseph@codesourcery.com>
11508 * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
11510 2011-02-19 Joseph Myers <joseph@codesourcery.com>
11512 * config/i386/biarch32.h, config/i386/mach.h,
11513 config/rs6000/aix.opt, config/sh/superh64.h: Remove.
11515 2011-02-19 Jakub Jelinek <jakub@redhat.com>
11518 * config/i386/i386.md (peephole2 for shift and plus): Use
11519 operands[1] original mode in the first insn.
11521 2011-02-18 Mike Stump <mikestump@comcast.net>
11523 * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
11525 2011-02-18 Jan Hubicka <jh@suse.cz>
11527 PR middle-end/47788
11528 * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
11529 to zero when the function is not inlinable at all.
11531 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11533 * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
11534 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
11535 pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
11536 * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
11537 * config/pa/t-pa64: Likewise.
11538 * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
11540 2011-02-18 Jakub Jelinek <jakub@redhat.com>
11543 * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
11545 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11548 * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
11550 2011-02-18 Anatoly Sokolov <aesok@post.ru>
11552 * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
11553 RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
11554 LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
11555 GO_IF_LEGITIMATE_ADDRESS): Remove macros.
11556 * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
11557 (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
11558 m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
11559 m32r_load_postinc_p, m32r_store_preinc_predec_p,
11560 m32r_legitimate_address_p): New functions.
11561 * config/m32r/constraints.md (constraint "S"): Don't use
11562 STORE_PREINC_PREDEC_P.
11563 (constraint "U"): Don't use LOAD_POSTINC_P.
11565 2011-02-18 Chung-Lin Tang <cltang@codesourcery.com>
11567 PR rtl-optimization/46178
11568 * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
11569 compute ira_hard_regno_cover_class[].
11571 2011-02-18 Richard Guenther <rguenther@suse.de>
11574 * lto-streamer.h (lto_global_var_decls): Declare.
11575 * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
11576 statics for global var processing.
11578 2011-02-18 Richard Guenther <rguenther@suse.de>
11580 PR tree-optimization/47737
11581 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
11582 edge dominance check.
11584 2011-02-18 Jakub Jelinek <jakub@redhat.com>
11587 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
11588 avoid invalid rtx sharing.
11590 2011-02-18 Gerald Pfeifer <gerald@pfeifer.com>
11592 * doc/cpp.texi (Obsolete Features): Add background on the
11593 origin of assertions.
11595 2011-02-17 Iain Sandoe <iains@gcc.gnu.org>
11597 * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
11599 * config/darwin.c (output_objc_section_asm_op): Added support for
11601 (is_objc_metadata): New.
11602 (darwin_objc2_section): New.
11603 (darwin_objc1_section): New.
11604 (machopic_select_section): Added support for ABI v1 and v2.
11605 (darwin_emit_objc_zeroed): New.
11606 (darwin_output_aligned_bss): Detect objc metadata and treat it
11608 (darwin_asm_output_aligned_decl_common): Same.
11609 (darwin_asm_output_aligned_decl_local): Same.
11610 * config/darwin-sections.def: Updated for ABI v1 and v2.
11611 * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
11612 compiling Objective-C code for the NeXT runtime, default to using
11613 ABI version 0 for 32-bit, and version 2 for 64-bit.
11615 2011-02-17 Joseph Myers <joseph@codesourcery.com>
11617 * common.opt (optimize_fast): New Variable.
11618 * opts.c (default_options_optimization): Use opts->x_optimize_fast
11619 instead of local variable ofast.
11621 2011-02-17 Nicola Pero <nicola.pero@meta-innovation.com>
11623 * doc/invoke.texi (fobjc-abi-version): Documented.
11624 (fobjc-nilcheck): Documented.
11625 (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
11628 2011-02-17 Joseph Myers <joseph@codesourcery.com>
11631 * common.opt (export-dynamic): New Driver option.
11632 * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
11634 2011-02-17 Joseph Myers <joseph@codesourcery.com>
11636 * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
11638 2011-02-17 Alexandre Oliva <aoliva@redhat.com>
11639 Jan Hubicka <jh@suse.cz>
11643 * cfgexpand.c (account_used_vars_for_block): Remove.
11644 (estimated_stack_frame_size): Use referenced vars.
11645 * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
11646 that were referenced in the original function. Test src_fn
11647 rather than cfun. Drop redundant get_var_ann.
11648 (setup_one_parameter): Drop redundant get_var_ann.
11649 (declare_return_variable): Likewise.
11650 (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
11651 (copy_arguments_for_versioning): Drop redundant get_var_ann.
11652 * ipa-inline.c (compute_inline_parameters): Do not compute
11653 disregard_inline_limits here.
11654 (compute_inlinable_for_current, pass_inlinable): New.
11655 (pass_inline_parameters): Require PROP_referenced_vars.
11656 * cgraphunit.c (cgraph_process_new_functions): Don't run
11657 compute_inline_parameters explicitly unless function is in SSA form.
11658 (cgraph_analyze_function): Set .disregard_inline_limits.
11659 * tree-sra.c (convert_callers): Compute inliner parameters
11660 only for functions already in SSA form.
11662 2011-02-17 Joseph Myers <joseph@codesourcery.com>
11664 * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
11665 -mlittle-endian-data.
11667 2011-02-17 Joseph Myers <joseph@codesourcery.com>
11669 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
11670 -mno-fpu, not -fpu and -no-fpu.
11671 * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
11672 * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
11674 2011-02-17 Uros Bizjak <ubizjak@gmail.com>
11677 * config/i386/i386.c (ix86_secondary_reload): Handle SSE
11678 input reload with PLUS RTX.
11680 2011-02-16 Joseph Myers <joseph@codesourcery.com>
11682 * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
11683 of InverseVar(MDMX).
11685 2011-02-16 Joseph Myers <joseph@codesourcery.com>
11687 * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
11690 2011-02-16 Joseph Myers <joseph@codesourcery.com>
11692 * config/mn10300/mn10300.opt (mno-crt0): New.
11694 2011-02-16 Joseph Myers <joseph@codesourcery.com>
11696 * config/m68k/uclinux.opt (static-libc): New Driver option.
11698 2011-02-16 Joseph Myers <joseph@codesourcery.com>
11700 * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
11702 2011-02-16 Joseph Myers <joseph@codesourcery.com>
11704 * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
11705 %{muser-extend-enabled}.
11707 2011-02-16 Richard Guenther <rguenther@suse.de>
11709 PR tree-optimization/47738
11710 * tree-ssa-loop.c (run_tree_predictive_commoning): Return
11711 the TODO from tree_predictive_commoning.
11713 2011-02-15 Jeff Law <law@redhat.com>
11716 2011-01-25 Jeff Law <law@redhat.com>
11718 PR rtl-optimization/37273
11719 * ira-costs.c (scan_one_insn): Detect constants living in memory and
11720 handle them like argument loads from stack slots. Do not double
11721 count memory for memory constants and argument loads from stack slots.
11723 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
11725 PR middle-end/47725
11726 * combine.c (cant_combine_insn_p): Revert the last change.
11728 2011-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
11731 * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
11732 mode for vector constants. Remove code that checks for TImode.
11734 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
11738 * cgraph.h (compute_inline_parameters): Return void.
11739 * ipa-inline.c (compute_inline_parameters): Adjust.
11741 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
11745 * tree-inline.h (estimated_stack_frame_size): Take cgraph node
11747 * cfgexpand.c (estimated_stack_frame_size): Likewise.
11748 * ipa-inline.c (compute_inline_parameters): Adjust.
11750 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
11754 * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
11755 Adjust all users. Pass FN to...
11756 * tree-flow-inline.h (first_referenced_var): ... this. Add
11758 * ipa-struct-reorg.c: Adjust.
11759 * tree-dfa.c: Adjust.
11760 * tree-into-ssa.c: Adjust.
11761 * tree-sra.c: Adjust.
11762 * tree-ssa-alias.c: Adjust.
11763 * tree-ssa-live.c: Adjust.
11764 * tree-ssa.c: Adjust.
11765 * tree-ssanames.c: Adjust.
11766 * tree-tailcall.c: Adjust.
11768 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
11772 * tree-flow.h (referenced_var_lookup): Add fn parameter.
11773 Adjust all callers.
11774 * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
11775 * tree-flow-inline.h: Adjust.
11776 * gimple-pretty-print.c: Adjust.
11777 * tree-into-ssa.c: Adjust.
11778 * tree-ssa.c: Adjust.
11779 * cfgexpand.c: Adjust.
11781 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
11783 * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
11784 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
11785 (EXTRA_CONSTRAINT): Delete.
11786 * config/iq2000/constraints.md: New file.
11787 * config/iq2000/iq2000.md: Include it.
11788 (define_insn ""): Delete.
11789 (movsi_internal2, movhi_internal2, movqi_internal2): Delete
11790 unsupported constraint letters from patterns.
11791 (call_value, call_value_internal1): Likewise.
11792 (call_value_multiple_internal1): Likewise.
11794 2011-02-15 Nick Clifton <nickc@redhat.com>
11796 * config/mn10300/mn10300.c: Include tm-constrs.h.
11797 (struct liw_data): New data structure describing an LIW candidate
11799 (extract_bundle): Use struct liw_data. Allow small integer
11800 operands for some instructions.
11801 (check_liw_constraints): Use struct liw_data. Remove swapped
11802 parameter. Add comments describing the checks. Fix bug when
11803 assigning the source of liw1 to the source of liw2.
11804 (liw_candidate): Delete. Code moved into extract_bundle.
11805 (mn10300_bundle_liw): Use struct liw_data. Check constraints
11807 * config/mn10300/predicates.md (liw_operand): New predicate.
11808 Allows registers and small integer constants.
11809 * config/mn10300/constraints.md (O): New constraint. Accetps
11810 integers in the range -8 to +7 inclusive.
11811 * config/mn10300/mn10300.md (movesi_internal): Add an alternative
11812 for moving a small integer into a register. Give this alternative
11814 (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
11815 (ashlsi3): Likewise, plus give LIW attributes to the alternatives
11816 using the J,K,L and M constraints,
11817 (liw): Remove SI mode on second operands to allow for HI and QI
11819 (cmp_liw, liw_cmp): Likewise. Plus fix order of operands in the
11822 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
11824 PR middle-end/47725
11825 * combine.c (cant_combine_insn_p): Check zero/sign extended
11828 2011-02-15 Richard Guenther <rguenther@suse.de>
11830 PR tree-optimization/47743
11831 * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
11832 for a non-type-compatible VN lookup bail out.
11834 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
11836 * config/fr30/constraints.md: New file.
11837 * config/fr30/fr30.md: Include it.
11838 * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
11839 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
11840 (EXTRA_CONSTRAINT): Delete.
11842 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
11844 * config/frv/constraints.md: New file.
11845 * config/frv/predicates.md: Include it.
11846 * config/frv/frv.c (reg_class_from_letter): Delete.
11847 (frv_option_override): Don't initialize it.
11848 * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
11849 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
11850 (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
11851 (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
11852 (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
11853 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
11854 (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
11855 (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
11856 (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
11857 (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
11858 (REG_CLASS_FROM_CONSTRAINT): Delete.
11860 2011-02-15 Jakub Jelinek <jakub@redhat.com>
11862 PR middle-end/47581
11863 * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
11864 if frame size is 0 in a leaf function.
11866 2011-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11869 * config/alpha/host-osf.c: New file.
11870 * config/alpha/x-osf: New file.
11871 * config.host (alpha*-dec-osf*): Use it.
11873 2011-02-14 Anatoly Sokolov <aesok@post.ru>
11875 * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
11876 * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
11877 * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
11878 (rx_mode_dependent_address_p): ...this. Make static. Change argument
11880 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
11882 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
11884 * config/stormy16/constraints.md: New file.
11885 * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
11886 Use satisfies_constraint_Q and satisfies_constraint_R.
11887 * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
11889 (xstormy16_legitiamte_address_p): Declare.
11890 * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
11891 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
11892 (EXTRA_CONSTRAINT): Delete.
11893 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
11895 (xstormy16_extra_constraint_p): Delete.
11897 2011-02-14 Eric Botcazou <ebotcazou@adacore.com>
11899 PR tree-optimization/46494
11900 * loop-unroll.c (split_edge_and_insert): Adjust comment.
11901 * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
11902 (pass_rtl_loop_done): Add TODO_verify_flow.
11903 * fwprop.c (pass_rtl_fwprop): Likewise.
11904 * modulo-sched.c (pass_sms): Likewise.
11905 * tree-ssa-dom.c (pass_dominator): Likewise.
11906 * tree-ssa-loop-ch.c (pass_ch): Likewise.
11907 * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
11908 (pass_tree_loop_done): Likewise.
11909 * tree-ssa-pre.c (execute_pre): Likewise.
11910 * tree-ssa-reassoc.c (pass_reassoc): Likewise.
11911 * tree-ssa-sink.c (pass_sink_code): Likewise.
11912 * tree-vrp.c (pass_vrp): Likewise.
11914 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
11916 * config/v850/constraints.md: New file.
11917 * config/v850/v850.md: Include it.
11918 * config/v850/predicates.md (reg_or_0_operand): Use
11919 satisfies_constraint_G.
11920 (special_symbolref_operand): Use satisfies_constraint_K.
11921 * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
11922 (GO_IF_LEGITIMATE_ADDRESS): Likewise.
11923 (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
11924 (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
11925 (EXTRA_CONSTRAINT): Delete.
11926 (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
11927 (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
11928 (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
11930 2011-02-14 Anatoly Sokolov <aesok@post.ru>
11933 * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
11936 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
11938 * config/mcore/constraints.md: New file.
11939 * config/mcore/mcore.md: Include it.
11940 * config/mcore/mcore.c (reg_class_from_letter): Delete.
11941 * config/mcore/mcore.h (reg_class_from_letter): Delete.
11942 (REG_CLASS_FROM_LETTER): Delete.
11943 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
11944 insn_const_int_ok_for_constraint.
11945 (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
11946 (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
11947 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
11948 (EXTRA_CONSTRAINT): Delete.
11950 2011-02-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11953 * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
11954 (IS_SIGHANDLER): Define.
11955 (sparc64_is_sighandler): New function, split off from
11956 sparc64_fallback_frame_state.
11957 (sparc_is_sighandler): New function, split off from
11958 sparc_fallback_frame_state.
11959 (sparc64_fallback_frame_state): Merge with ...
11960 (sparc_fallback_frame_state): ... this into ...
11961 (MD_FALLBACK_FRAME_STATE_FOR): ... this.
11962 Change new_cfa to long. Remove regs_off, fpu_save_off, fpu_save.
11963 Define nframes, mctx. Use IS_SIGHANDLER, handler_args, mctx, walk
11964 stack instead of hardcoded offsets.
11966 2011-02-14 Andriy Gapon <avg@freebsd.org>
11969 * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
11971 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11973 * configure: Regenerate.
11975 2011-02-12 Joseph Myers <joseph@codesourcery.com>
11978 * gcc.c (asm_options): Correct spec matching --target-help.
11980 2011-02-12 Martin Jambor <mjambor@suse.cz>
11982 * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
11983 to gimple call error.
11985 2011-02-12 Mike Stump <mikestump@comcast.net>
11987 * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
11988 comments in backslash regions.
11990 2011-02-12 Mike Stump <mikestump@comcast.net>
11991 Jakub Jelinek <jakub@redhat.com>
11992 Iain Sandoe <iains@gcc.gnu.org>
11995 * dwarf2out.c (output_cfa_loc): When required, apply the
11996 DWARF2_FRAME_REG_OUT macro to adjust register numbers.
11997 (output_loc_sequence): Likewise.
11998 (output_loc_operands_raw): Likewise.
11999 (output_loc_sequence_raw): Likewise.
12000 (output_cfa_loc): Likewise.
12001 (output_loc_list): Suppress register number adjustment when
12002 calling output_loc_sequence()
12003 (output_die): Likewise.
12005 2011-02-12 Anatoly Sokolov <aesok@post.ru>
12007 * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
12009 * config/xtensa/xtensa.c (xtensa_register_move_cost,
12010 xtensa_memory_move_cost): New functions.
12011 (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
12013 2011-02-12 Alexandre Oliva <aoliva@redhat.com>
12016 * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
12017 in the current directory.
12018 * configure: Rebuilt.
12020 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
12022 * config/darwin.c (darwin_override_options): Add a hunk missed
12023 from the commit of r168571. Trim comment line lengths and
12024 correct indents of the preceding block.
12026 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
12028 * gcc.c (driver_handle_option): Concatenate the argument to -F with
12031 2011-02-11 Joseph Myers <joseph@codesourcery.com>
12033 * common.opt (nostartfiles): New Driver option.
12035 2011-02-11 Xinliang David Li <davidxl@google.com>
12037 PR tree-optimization/47707
12038 * tree-chrec.c (convert_affine_scev): Keep type precision.
12040 2011-02-11 Eric Botcazou <ebotcazou@adacore.com>
12042 PR tree-optimization/47420
12043 * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
12045 2011-02-11 Pat Haugen <pthaugen@us.ibm.com>
12047 PR rtl-optimization/47614
12048 * rtl.h (check_for_inc_dec): Declare.
12049 * dse.c (check_for_inc_dec): Externalize...
12050 * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
12051 (reload_cse_simplify_operands): Don't simplify opnds with side effects.
12053 2011-02-11 Joseph Myers <joseph@codesourcery.com>
12056 * gcc.c (main): Do not compile inputs if there were errors in
12058 * opts-common.c (read_cmdline_option): Check for wrong language
12059 after other error checks.
12061 2011-02-11 Nathan Froyd <froydnj@codesourcery.com>
12063 * cgraph.c: Fix comment typos.
12064 * cgraph.h: Likewise.
12065 * cgraphunit.c: Likewise.
12066 * ipa-cp.c: Likewise.
12067 * ipa-inline.c: Likewise.
12068 * ipa-prop.c: Likewise.
12069 * ipa-pure-const.c: Likewise.
12070 * ipa-ref.c: Likewise.
12071 * ipa-reference.c: Likewise.
12073 2011-02-11 Jakub Jelinek <jakub@redhat.com>
12076 * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
12078 2011-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12081 * doc/sourcebuild.texi (Require Support): Document
12082 dg-require-ascii-locale.
12084 2011-02-11 Mingjie Xing <mingjie.xing@gmail.com>
12086 * doc/lto.texi (Write summary): Fix missing parentheses.
12088 2011-02-10 DJ Delorie <dj@redhat.com>
12090 * config/m32c/m32c.c (m32c_option_override): Disable
12091 -fcombine-stack-adjustments until flag value tracking and compare
12092 optimization can be rewritten.
12094 2011-02-10 Peter Bergner <bergner@vnet.ibm.com>
12096 * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
12098 (PROCESSOR_DEFAULT64): Likewise.
12100 2011-02-10 Richard Henderson <rth@redhat.com>
12102 * config/rx/predicates.md (rx_zs_comparison_operator): Revert
12103 change from 2011-02-03.
12104 * config/rx/rx.c (flags_from_code): Likewise.
12105 (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
12106 is valid, n/pz otherwise.
12107 (rx_select_cc_mode): Return CCmode if Y is not zero.
12109 2011-02-10 Richard Guenther <rguenther@suse.de>
12111 * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
12113 2011-02-10 Richard Guenther <rguenther@suse.de>
12115 PR tree-optimization/47677
12116 * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
12118 2011-02-10 Jakub Jelinek <jakub@redhat.com>
12121 * combine.c (make_compound_operation): Only change shifts into
12122 multiplication for SCALAR_INT_MODE_P.
12124 2011-02-10 Jie Zhang <jie@codesourcery.com>
12128 2011-02-05 Jie Zhang <jie@codesourcery.com>
12130 * web.c (entry_register): Don't clobber the number of the
12131 first uninitialized reference in used[].
12133 2011-02-09 Richard Guenther <rguenther@suse.de>
12135 PR tree-optimization/47664
12136 * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
12139 2011-02-09 David Edelsohn <dje.gcc@gmail.com>
12143 * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
12145 (PROCESSOR_DEFAULT64): Same.
12146 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
12148 2011-02-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12150 * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
12152 2011-02-09 Martin Jambor <mjambor@suse.cz>
12154 PR middle-end/45505
12155 * tree-sra.c (struct access): New flags grp_scalar_read and
12156 grp_scalar_write. Changed description of assignment read and write
12158 (dump_access): Dump new flags, reorder all of them.
12159 (sort_and_splice_var_accesses): Set the new flag accordingly, use them
12160 to detect multiple scalar reads.
12161 (analyze_access_subtree): Use the new scalar read write flags instead
12162 of the old flags. Adjusted comments.
12164 2011-02-08 DJ Delorie <dj@redhat.com>
12167 * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
12170 2011-02-08 Joseph Myers <joseph@codesourcery.com>
12172 * config/m68k/uclinux.opt: New.
12173 * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
12175 2011-02-08 Joseph Myers <joseph@codesourcery.com>
12177 * config/cris/elf.opt (sim): New Driver option.
12179 2011-02-08 Joseph Myers <joseph@codesourcery.com>
12181 * config/xtensa/elf.opt: New.
12182 * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
12184 2011-02-08 Joseph Myers <joseph@codesourcery.com>
12186 * config/vax/elf.opt: New.
12187 * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
12189 2011-02-08 Joseph Myers <joseph@codesourcery.com>
12191 * config/rs6000/aix64.opt (posix, pthread): New Driver options.
12193 2011-02-08 Joseph Myers <joseph@codesourcery.com>
12195 * config/gnu-user.opt: New.
12196 * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
12197 *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
12198 *-*-uclinux*): Use gnu-user.opt.
12200 2011-02-08 Thomas Schwinge <thomas@schwinge.name>
12202 * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
12203 * config/i386/gnu.h (CPP_SPEC): Likewise.
12205 2011-02-08 Ian Lance Taylor <iant@google.com>
12207 * common.opt (fcx-limited-range): Add SetByCombined flag.
12208 (ffinite-math-only, fmath-errno, frounding-math): Likewise.
12209 (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
12210 (fassociative-math, freciprocal-math): Likewise.
12211 (funsafe-math-optimizations): Likewise.
12212 * opth-gen.awk: Handle SetByCombined.
12213 * optc-gen.awk: Likewise.
12214 * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
12215 (set_unsafe_math_optimizations_flags): Likewise.
12216 * doc/options.texi (Option properties): Document SetByCombined.
12218 2011-02-08 Joseph Myers <joseph@codesourcery.com>
12220 * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
12221 i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
12222 m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
12223 m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
12224 sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
12226 2011-02-08 Sebastian Pop <sebastian.pop@amd.com>
12228 PR tree-optimization/46834
12229 PR tree-optimization/46994
12230 PR tree-optimization/46995
12231 * graphite-sese-to-poly.c (used_outside_reduction): New.
12232 (detect_commutative_reduction): Call used_outside_reduction.
12233 (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
12234 translate_scalar_reduction_to_array only when at least one
12235 loop-phi/close-phi tuple has been detected.
12237 2011-02-08 Richard Guenther <rguenther@suse.de>
12239 PR middle-end/47639
12240 * tree-vect-generic.c (expand_vector_operations_1): Update
12242 (expand_vector_operations): ... not here. Cleanup EH info
12243 and the CFG if required.
12245 2011-02-08 Richard Guenther <rguenther@suse.de>
12247 PR tree-optimization/47641
12248 * tree-ssa.c (execute_update_addresses_taken): For asm outputs
12249 require type compatibility.
12251 2011-02-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12253 * gimple-low.c (lower_function_body): Don't remove the location of
12254 the return statement here.
12255 (lower_gimple_return): Do it here instead but only if the return
12256 statement is actually used twice.
12258 2011-02-08 Richard Guenther <rguenther@suse.de>
12260 PR tree-optimization/47632
12261 * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
12262 unused up_to_stmt parameter, return whether cfg-cleanup is
12263 necessary, remove EH info properly.
12264 (forward_propagate_into_gimple_cond): Adjust caller.
12265 (forward_propagate_into_cond): Likewise.
12266 (forward_propagate_comparison): Likewise.
12267 (tree_ssa_forward_propagate_single_use_vars): Make
12268 forward_propagate_comparison case similar to the two others.
12270 2011-02-08 Nick Clifton <nickc@redhat.com>
12272 * config/mn10300/mn10300.opt (mliw): New command line option.
12273 * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
12274 (liw_bundling): New automaton.
12275 (liw): New attribute.
12276 (liw_op): New attribute.
12277 (liw_op1, liw_op2, liw_both, liw_either): New reservations.
12278 (movsi_internal): Add LIW attributes.
12279 (andsi3): Likewise.
12280 (iorsi3): Likewise.
12281 (xorsi3): Likewise.
12282 (addsi3): Separate register and immediate alternatives.
12283 Add LIW attributes.
12284 (subsi3): Likewise.
12286 (aslsi3): Likewise.
12287 (lshrsi3): Likewise.
12288 (ashrsi3): Likewise.
12289 (liw): New pattern.
12290 * config/mn10300/mn10300.c (liw_op_names): New
12291 (mn10300_print_operand): Handle 'W' operand descriptor.
12292 (extract_bundle): New function.
12293 (check_liw_constraints): New function.
12294 (liw_candidate): New function.
12295 (mn10300_bundle_liw): New function.
12296 (mn10300_reorg): New function.
12297 (TARGET_MACHINE_DEPENDENT_REORG): Define.
12298 (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
12299 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
12300 __LIW__ or __NO_LIW__.
12301 * doc/invoke.texi: Describe the -mliw command line option.
12303 2011-02-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12305 * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
12306 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
12307 pthread_mutex_unlock): Remove.
12308 * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
12309 * config/pa/t-pa64: Likewise.
12310 * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
12311 shared libc if not linking against libpthread.
12312 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
12314 2011-02-07 Iain Sandoe <iains@gcc.gnu.org>
12317 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
12318 on 10.6 and later to ensure that we always use the unwinder from
12319 the system. Only add -no_compact_unwind when tarteting darwin
12322 2011-02-07 Steve Ellcey <sje@cup.hp.com>
12325 * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
12326 (vec_interleave_lowv2sf): Ditto.
12327 (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
12328 (vec_extract_oddv2sf): Ditto.
12330 2011-02-07 Mike Stump <mikestump@comcast.net>
12333 Add __ieee_divdc3 entry point.
12334 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
12336 (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
12337 * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
12338 * config/darwin.c (darwin_rename_builtins): Add.
12339 * config/darwin-protos.h (darwin_rename_builtins): Add.
12341 2011-02-07 Michael Meissner <meissner@linux.vnet.ibm.com>
12344 * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
12347 2011-02-07 Mike Stump <mikestump@comcast.net>
12349 * config/darwin.opt (mmacosx-version-min): Update default OS version.
12351 2011-02-07 Denis Chertykov <chertykov@gmail.com>
12354 * config/avr/libgcc.S (exit): Move .endfunc
12356 2011-02-07 Richard Guenther <rguenther@suse.de>
12358 PR tree-optimization/47615
12359 * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
12360 * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
12361 (run_scc_vn): Initialize it.
12362 (visit_reference_op_load): Use it.
12363 * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
12365 2011-02-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12367 * config/spu/spu.c (spu_init_libfuncs): Install SImode and
12368 DImode trapping arithmetic libfuncs.
12370 2011-02-07 Richard Guenther <rguenther@suse.de>
12372 PR tree-optimization/47621
12373 * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
12375 (execute_update_addresses_taken): ... here. Make it more
12376 conservative in what we accept.
12378 2011-02-06 Joseph Myers <joseph@codesourcery.com>
12380 * config/sparc/freebsd.h (ASM_SPEC): Define.
12381 * config/sparc/vxworks.h (ASM_SPEC): Define.
12383 2011-02-06 Joseph Myers <joseph@codesourcery.com>
12385 * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
12387 2011-02-06 Steven Bosscher <steven@gcc.gnu.org>
12389 * doc/invoke.texi: Remove reference to compiler internals from
12390 user documentation.
12392 * reg-notes.def: Remove REG_VALUE_PROFILE.
12393 * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
12395 2011-02-05 Jakub Jelinek <jakub@redhat.com>
12397 PR middle-end/47610
12398 * varasm.c (default_section_type_flags): If decl is NULL,
12399 and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
12401 2011-02-05 Jie Zhang <jie@codesourcery.com>
12404 * web.c (entry_register): Don't clobber the number of the
12405 first uninitialized reference in used[].
12407 2011-02-04 Sebastian Pop <sebastian.pop@amd.com>
12409 PR tree-optimization/46194
12410 * tree-data-ref.c (analyze_miv_subscript): Remove comment.
12411 (build_classic_dist_vector_1): Do not represent classic distance
12412 vectors when the access functions are variating in different loops.
12414 2011-02-04 Joseph Myers <joseph@codesourcery.com>
12416 * config/mips/iris6.opt: New.
12417 * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
12419 2011-02-04 Richard Henderson <rth@redhat.com>
12420 Steve Ellcey <sje@cup.hp.com>
12423 * config/ia64/predicates.md (mux1_brcst_element): New.
12424 * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
12425 * config/ia64/ia64.c (ia64_unpack_assemble): New.
12426 (ia64_unpack_sign): New.
12427 (ia64_expand_unpack): Rewrite using new routines.
12428 (ia64_expand_widen_sum): Ditto.
12429 (ia64_expand_dot_prod_v8qi): Ditto.
12430 * config/ia64/vect.md (mulv8qi3): Rewrite to use new
12431 routines, add endian check.
12432 (pmpy2_even): Rename from pmpy2_r, add endian check.
12433 (pmpy2_odd): Rename from pmpy2_l, add endian check.
12434 (vec_widen_smult_lo_v4hi): Rewrite using new routines.
12435 (vec_widen_smult_hi_v4hi): Ditto.
12436 (vec_widen_umult_lo_v4hi): Ditto.
12437 (vec_widen_umult_hi_v4hi): Ditto.
12438 (mulv2si3): Change endian checks.
12439 (sdot_prodv4hi): Rewrite with new calls.
12440 (udot_prodv4hi): New.
12441 (vec_pack_ssat_v4hi): Add endian check.
12442 (vec_pack_usat_v4hi): Ditto.
12443 (vec_pack_ssat_v2si): Ditto.
12444 (max1_even): Rename from max1_r, add endian check.
12445 (max1_odd): Rename from max1_l, add endian check.
12446 (*mux1_rev): Format change.
12447 (*mux1_mix): Ditto.
12448 (*mux1_shuf): Ditto.
12449 (*mux1_alt): Ditto.
12450 (*mux1_brcst_v8qi): Use new predicate.
12451 (vec_extract_evenv8qi): Remove endian check.
12452 (vec_extract_oddv8qi): Ditto.
12453 (vec_interleave_lowv4hi): Format change.
12454 (vec_interleave_highv4hi): Ditto.
12455 (mix2_even): Rename from mix2_r, add endian check.
12456 (mix2_odd): Rename from mux2_l, add endian check.
12457 (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
12458 (vec_extract_evenodd_helper): Format change.
12459 (vec_extract_evenv4hi): Remove endian check.
12460 (vec_extract_oddv4hi): Remove endian check.
12461 (vec_interleave_lowv2si): Format change.
12462 (vec_interleave_highv2si): Format change.
12463 (vec_initv2si): Remove endian check.
12464 (vecinit_v2si): Add endian check.
12465 (reduc_splus_v2sf): Add endian check.
12466 (reduc_smax_v2sf): Ditto.
12467 (reduc_smin_v2sf): Ditto.
12468 (vec_initv2sf): Remove endian check.
12469 (fpack): Add endian check.
12470 (fswap): Add endian check.
12471 (vec_interleave_highv2sf): Add endian check.
12472 (vec_interleave_lowv2sf): Add endian check.
12473 (fmix_lr): Add endian check.
12474 (vec_setv2sf): Format change.
12475 (*vec_extractv2sf_0_be): Use shift to extract operand.
12476 (*vec_extractv2sf_1_be): New.
12477 (vec_pack_trunc_v4hi): Add endian check.
12478 (vec_pack_trunc_v2si): Format change.
12480 2011-02-04 Jakub Jelinek <jakub@redhat.com>
12482 PR inline-asm/23200
12483 * tree-ssa-ter.c (is_replaceable_p): Add TER argument. Don't
12484 do bb, locus and block comparison and disallow loads if it is not set.
12485 (stmt_is_replaceable_p): New function.
12486 (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
12488 * expr.c (expand_expr_real_1) <case SSA_NAME>: If
12489 get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
12491 * tree-flow.h (stmt_is_replaceable_p): New prototype.
12493 2011-02-04 Joseph Myers <joseph@codesourcery.com>
12495 * config/rs6000/xilinx.opt: New.
12496 * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
12498 2011-02-04 Joseph Myers <joseph@codesourcery.com>
12500 * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
12502 2011-02-03 Anatoly Sokolov <aesok@post.ru>
12504 * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
12505 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
12506 * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
12507 secondary_reload_info, xtensa_secondary_reload): Remove.
12508 * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
12509 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
12510 (xtensa_preferred_reload_class): Make static. Change return and
12511 'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
12512 Use CONST_DOUBLE_P predicate.
12513 (xtensa_preferred_output_reload_class): New function.
12514 (xtensa_secondary_reload): Make static.
12516 2011-02-03 Joseph Myers <joseph@codesourcery.com>
12518 * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
12519 Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
12520 Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
12522 2011-02-03 Jakub Jelinek <jakub@redhat.com>
12524 PR middle-end/31490
12525 * output.h (SECTION_RELRO): Define.
12526 (SECTION_MACH_DEP): Adjust.
12527 (get_variable_section): New prototype.
12528 * varpool.c (varpool_finalize_named_section_flags): New function.
12529 (varpool_assemble_pending_decls): Call it.
12530 * cgraph.h (varpool_finalize_named_section_flags): New prototype.
12531 * cgraphunit.c (cgraph_output_in_order): Call
12532 varpool_finalize_named_section_flags.
12533 * varasm.c (get_section): Allow section flags conflicts between
12534 relro and read-only sections if the section hasn't been declared yet.
12535 Set SECTION_OVERRIDE after diagnosing section type conflict.
12536 (get_variable_section): No longer static.
12537 (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
12538 readonly sections that need relocations.
12539 (decl_readonly_section_1): New function.
12540 (decl_readonly_section): Use it.
12543 2010-11-17 Dinar Temirbulatov <dtemirbulatov@gmail.com>
12544 Steve Ellcey <sje@cup.hp.com>
12546 PR middle-end/31490
12547 * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
12548 if section attribute used.
12550 2011-02-03 Jakub Jelinek <jakub@redhat.com>
12552 * config/darwin.h (SECTION_NO_ANCHOR): Remove.
12553 * config/darwin.c (SECTION_NO_ANCHOR): Define.
12554 (darwin_init_sections): Remove assertion.
12556 2011-02-03 Nick Clifton <nickc@redhat.com>
12558 * config/rx/predicates.md (rx_zs_comparison_operator): Remove
12560 * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
12561 * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
12562 instead of "n" and "pz".
12563 (flags_from_code): LT and GE tests need CC_FLAG_O as well as
12566 2011-02-03 Jakub Jelinek <jakub@redhat.com>
12569 * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
12570 fma, expand FMA_EXPR as fma{,f,l} call.
12573 * lto-streamer-out.c (write_symbol): When writing kind and visibility,
12574 copy them into a unsigned char variable and pass address of it to
12575 lto_output_data_stream.
12578 * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
12579 around backend_init_target and lang_dependent_init_target calls.
12580 * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
12581 (verify_cgraph_node): Don't call set_cfun here. Use
12582 cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
12583 Set error_found for incorrectly represented calls to thunks.
12585 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
12588 PR rtl-optimization/43494
12589 * rtl.h (for_each_inc_dec_fn): New type.
12590 (for_each_inc_dec): Declare.
12591 * rtlanal.c (struct for_each_inc_dec_ops): New type.
12592 (for_each_inc_dec_find_inc_dec): New fn.
12593 (for_each_inc_dec_find_mem): New fn.
12594 (for_each_inc_dec): New fn.
12595 * dse.c (struct insn_size): Remove.
12596 (replace_inc_dec, replace_inc_dec_mem): Remove.
12597 (emit_inc_dec_insn_before): New fn.
12598 (check_for_inc_dec): Use it, along with for_each_inc_dec.
12599 (canon_address): Pass mem modes to cselib_lookup.
12600 * cselib.h (cselib_lookup): Add memmode argument. Adjust callers.
12601 (cselib_lookup_from_insn): Likewise.
12602 (cselib_subst_to_values): Likewise.
12603 * cselib.c (find_slot_memmode): New var.
12604 (cselib_find_slot): New fn. Use it instead of
12605 htab_find_slot_with_hash everywhere.
12606 (entry_and_rtx_equal_p): Use find_slot_memmode.
12607 (autoinc_split): New fn.
12608 (rtx_equal_for_cselib_p): Rename and implement in terms of...
12609 (rtx_equal_for_cselib_1): ... this. Take memmode, pass it on.
12610 Deal with autoinc. Special-case recursion into MEMs.
12611 (cselib_hash_rtx): Likewise.
12612 (cselib_lookup_mem): Infer pmode from address mode. Distinguish
12613 address and MEM modes.
12614 (cselib_subst_to_values): Add memmode, pass it on.
12616 (cselib_lookup): Add memmode argument, pass it on.
12617 (cselib_lookup_from_insn): Add memmode.
12618 (cselib_invalidate_rtx): Discard obsolete push_operand handling.
12619 (struct cselib_record_autoinc_data): New.
12620 (cselib_record_autoinc_cb): New fn.
12621 (cselib_record_sets): Use it, along with for_each_inc_dec. Pass MEM
12622 mode to cselib_lookup. Reset autoinced REGs here instead of...
12623 (cselib_process_insn): ... here.
12624 * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
12626 (add_uses): Likewise, also to cselib_subst_to_values.
12627 (add_stores): Likewise.
12628 * sched-deps.c (add_insn_mem_dependence): Pass mode to
12629 cselib_subst_to_values.
12630 (sched_analyze_1, sched_analyze_2): Likewise. Adjusted.
12631 * gcse.c (do_local_cprop): Adjusted.
12632 * postreload.c (reload_cse_simplify_set): Adjusted.
12633 (reload_cse_simplify_operands): Adjusted.
12634 * sel-sched-dump (debug_mem_addr_value): Pass mode.
12636 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
12638 PR tree-optimization/45122
12639 * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
12640 unsafe assumptions when there's more than one loop exit.
12642 2011-02-02 Michael Meissner <meissner@linux.vnet.ibm.com>
12645 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
12646 Document using vector double with the load/store builtins, and
12647 that the load/store builtins always use Altivec instructions.
12649 * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
12650 to use altivec memory instructions, even on VSX.
12651 (vector_altivec_store_<mode>): Ditto.
12653 * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
12656 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
12657 V2DF, V2DI support to load/store overloaded builtins.
12659 * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
12660 altivec load/store builtins for V2DF/V2DI types.
12662 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
12663 set avoid indexed addresses on power6 if -maltivec.
12664 (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
12665 vector_altivec_load/vector_altivec_store builtins.
12666 (altivec_expand_st_builtin): Ditto.
12667 (altivec_expand_builtin): Add VSX memory builtins.
12668 (rs6000_init_builtins): Add V2DI types to internal types.
12669 (altivec_init_builtins): Add support for V2DF/V2DI altivec
12670 load/store builtins.
12671 (rs6000_address_for_altivec): Insure memory address is appropriate
12674 * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
12675 vec_vsx_ld and vec_vsx_st.
12676 (vsx_store_<mode>): Ditto.
12678 * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
12679 variables to hold long long types for VSX vector memory builtins.
12680 (RS6000_BTI_unsigned_long_long): Ditto.
12681 (long_long_integer_type_internal_node): Ditti.
12682 (long_long_unsigned_type_internal_node): Ditti.
12684 * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
12685 (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
12686 (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
12688 * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
12690 (vec_vsx_st): Ditto.
12692 2011-02-02 Joseph Myers <joseph@codesourcery.com>
12694 * config/pa/pa-hpux10.opt: New.
12695 * config/hpux11.opt (pthread): New Driver option.
12696 * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
12697 * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
12699 2011-02-02 Joseph Myers <joseph@codesourcery.com>
12701 * config/ia64/vms.opt: New.
12702 * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
12704 2011-02-01 Michael Meissner <meissner@linux.vnet.ibm.com>
12707 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
12708 gpc_reg_operand instead of vsx_register_operand to match rs6000.md
12709 generator functions.
12710 (vsx_floatuns<VSi><mode>2): Ditto.
12711 (vsx_fix_trunc<mode><VSi>2): Ditto.
12712 (vsx_fixuns_trunc<mode><VSi>2): Ditto.
12714 2011-02-02 Joseph Myers <joseph@codesourcery.com>
12716 * config/i386/djgpp.opt (posix): New Driver option.
12718 2011-02-02 Gerald Pfeifer <gerald@pfeifer.com>
12720 * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
12721 Move to the unsupported targets list.
12723 2011-02-02 Peter Bergner <bergner@vnet.ibm.com>
12725 PR rtl-optimization/47525
12726 * df-scan.c: Update copyright years.
12727 (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
12728 and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
12730 2011-02-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12732 * config/i386/sysv4.h (TARGET_VERSION): Remove.
12733 (SUBTARGET_RETURN_IN_MEMORY): Remove.
12734 (ASM_OUTPUT_ASCII): Remove.
12735 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
12737 2011-02-02 Jeff Law <law@redhat.com>
12739 PR middle-end/47543
12740 * reload.c (find_reloads_address): Handle reg+d address where both
12741 components are invalid by reloading the entire address.
12743 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
12744 Richard Guenther <rguenther@suse.de>
12746 PR tree-optimization/40979
12748 * passes.c (init_optimization_passes): After LIM call copy_prop
12749 and DCE to clean up.
12750 * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
12752 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
12754 PR tree-optimization/47576
12755 PR tree-optimization/47555
12756 * doc/invoke.texi (scev-max-expr-complexity): Documented.
12757 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
12758 (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
12759 * tree-scalar-evolution.c (follow_ssa_edge): Use
12760 PARAM_SCEV_MAX_EXPR_COMPLEXITY.
12762 2011-02-02 Richard Guenther <rguenther@suse.de>
12764 PR tree-optimization/47566
12765 * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
12767 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
12771 * tree-inline.c (declare_return_variable): Remove unused caller
12776 * tree-flow-inline.h (clear_is_used, is_used_p): New.
12777 * cfgexpand.c (account_used_vars_for_block): Use them.
12778 * tree-nrv.c (tree_nrv): Likewise.
12779 * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
12780 (dump_scope_block): Likewise.
12781 (remove_unused_locals): Likewise.
12785 * tree-inline.c (declare_return_variable): Add result decl to
12786 local decls only once.
12787 * gimple-low.c (record_vars_into): Mark newly-created variables
12790 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
12796 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
12798 (no_real_insns_p, schedule_block, set_priorities): Drop special
12799 treatment of boundary debug insns.
12800 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
12801 * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
12802 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
12803 (BOUNDARY_DEBUG_INSN_P): Likewise.
12804 (SCHEDULE_DEBUG_INSN_P): Likewise.
12805 * sched-rgn.c (init_ready_list): Drop special treatment of
12806 boundary debug insns.
12807 * final.c (rest_of_clean_state): Clear notes' BB.
12809 2011-02-01 Joseph Myers <joseph@codesourcery.com>
12811 * config/openbsd.opt (assert=): New Driver option.
12813 2011-02-01 Joseph Myers <joseph@codesourcery.com>
12815 * config/i386/nto.opt: New.
12816 * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
12818 2011-02-01 Joseph Myers <joseph@codesourcery.com>
12820 * config/i386/netware.opt: New.
12821 * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
12823 2011-02-01 Joseph Myers <joseph@codesourcery.com>
12825 * config/interix.opt (posix): New Driver option.
12827 2011-02-01 DJ Delorie <dj@redhat.com>
12829 * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
12831 * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
12834 2011-02-01 Sebastian Pop <sebastian.pop@amd.com>
12836 PR tree-optimization/47561
12837 * toplev.c (process_options): Print the Graphite flags. Add
12838 flag_loop_flatten to the list of options requiring Graphite.
12840 2011-02-01 Joseph Myers <joseph@codesourcery.com>
12842 * config/i386/cygming.opt (posix): New Driver option.
12844 2011-02-01 Joseph Myers <joseph@codesourcery.com>
12846 * config/arm/vxworks.opt: New.
12847 * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
12849 2011-02-01 Joseph Myers <joseph@codesourcery.com>
12851 * config/alpha/elf.opt: New.
12852 * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
12853 alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
12855 2011-02-01 Richard Guenther <rguenther@suse.de>
12857 PR tree-optimization/47559
12858 * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
12859 store-motion on references that can throw.
12861 2011-02-01 Bernd Schmidt <bernds@codesourcery.com>
12863 * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
12864 * tree-pass.h (TDF_CSELIB): New macro.
12865 * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
12866 cselib_lookup): Check for it rather than for TDF_DETAILS.
12868 2011-02-01 H.J. Lu <hongjiu.lu@intel.com>
12871 * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
12872 is HOST_BIT_BUCKET.
12874 * opts.c (finish_options): Don't add x_aux_base_name if it is
12877 2011-02-01 Richard Guenther <rguenther@suse.de>
12879 PR tree-optimization/47555
12881 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
12883 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
12885 2011-02-01 Sebastien Bourdeauducq <sebastien@milkymist.org>
12888 * config/lm32/t-lm32: Add multilib for all CPU options.
12890 2011-02-01 Richard Guenther <rguenther@suse.de>
12892 PR tree-optimization/47541
12893 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
12894 sure to have a field at offset zero.
12896 2011-01-31 Joseph Myers <joseph@codesourcery.com>
12898 * config/arc/arc.opt (EB, EL): New Driver options.
12900 2011-01-31 Joseph Myers <joseph@codesourcery.com>
12902 * config/alpha/osf5.opt: New.
12903 * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
12905 2011-01-31 Joseph Myers <joseph@codesourcery.com>
12907 * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
12909 2011-01-31 Sebastian Pop <sebastian.pop@amd.com>
12911 * common.opt (ftree-loop-linear): Use Alias to make it an alias of
12912 -floop-interchange.
12913 * invoke.texi (-ftree-loop-linear): Make it clear that this flag
12914 is an alias of -floop-interchange and that it requires the
12915 Graphite infrastructure.
12916 * tree-ssa-loop.c (gate_graphite_transforms): Do not set
12917 flag_loop_interchange based on the value of flag_tree_loop_linear.
12919 2011-01-31 Jakub Jelinek <jakub@redhat.com>
12920 Richard Guenther <rguenther@suse.de>
12922 PR tree-optimization/47538
12923 * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
12924 type instead of r1type, except for comparisons. For right
12925 shifts and comparisons punt if there are mismatches in
12926 sizetype vs. non-sizetype types.
12928 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12930 * doc/sourcebuild.texi (Effective-Target Keywords): Document
12933 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12935 * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
12937 * configure: Regenerate.
12939 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12941 * configure.ac (gcc_cv_ld_static_option): Define.
12942 (gcc_cv_ld_dynamic_option): Define.
12943 (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
12945 (HAVE_LD_STATIC_DYNAMIC): Update message.
12946 (LD_STATIC_OPTION): Define.
12947 (LD_DYNAMIC_OPTION): Define.
12948 * configure: Regenerate.
12949 * config.in: Regenerate.
12950 * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
12951 HAVE_LD_STATIC_DYNAMIC]: Use them.
12953 2011-01-31 Nick Clifton <nickc@redhat.com>
12955 * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
12956 registers inside interrupt handlers if the handler is not a leaf
12959 2011-01-31 Nick Clifton <nickc@redhat.com>
12961 * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
12962 reg_renumber returning an INVALID_REGNUM.
12964 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
12967 * doc/install.texi: Document host options discarded when cross
12968 configuring target libraries.
12970 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
12973 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
12976 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
12978 (no_real_insns_p, schedule_block, set_priorities): Drop special
12979 treatment of boundary debug insns.
12980 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
12981 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
12982 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
12983 (BOUNDARY_DEBUG_INSN_P): Likewise.
12984 (SCHEDULE_DEBUG_INSN_P): Likewise.
12985 * sched-rgn.c (init_ready_list): Drop special treatment of
12986 boundary debug insns.
12987 * final.c (rest_of_clean-state): Clear notes' BB.
12989 2011-01-31 Alan Modra <amodra@gmail.com>
12991 * config/rs6000/rs6000.c (print_operand): Rearrange addends in
12992 toc relative expressions as we do in print_operand_address.
12994 2011-01-30 Kazu Hirata <kazu@codesourcery.com>
12996 * doc/extend.texi: Follow spelling conventions.
12997 * doc/invoke.texi: Fix a typo.
12999 2011-01-30 Joseph Myers <joseph@codesourcery.com>
13001 * config/hpux11.opt: New.
13002 * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
13003 ia64*-*-hpux*): Use hpux11.opt.
13005 2011-01-30 Jonathan Yong <jon_y@users.sourceforge.net>
13007 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
13010 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
13012 * doc/install.texi (hppa-hp-hpux10): Remove references to HP
13015 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
13017 * doc/install.texi (Binaries): Remove outdated reference for
13018 Motorola 68HC11/68HC12 downloads.
13020 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
13022 * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
13025 2011-01-29 Jonathan Wakely <jwakely.gcc@gmail.com>
13028 * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
13031 2011-01-28 Ahmad Sharif <asharif@google.com>
13033 * value-prof.c (check_counter): Corrected error message.
13035 2011-01-29 Jie Zhang <jie@codesourcery.com>
13037 * config/arm/arm.c (arm_legitimize_reload_address): New.
13038 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
13039 arm_legitimize_reload_address.
13040 * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
13042 2011-01-28 Ian Lance Taylor <iant@google.com>
13044 * godump.c (go_define): Ignore macros whose definitions include
13045 two adjacent operands.
13047 2011-01-28 Jakub Jelinek <jakub@redhat.com>
13050 * varasm.c (force_const_mem): Store copy of x in desc->constant
13051 instead of x itself.
13052 * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
13053 itself into REG_EQUAL note.
13055 2011-01-28 Joseph Myers <joseph@codesourcery.com>
13057 * config/freebsd.opt (posix, rdynamic): New Driver options.
13059 2011-01-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13061 * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
13062 -Bstatic/-Bdynamic.
13063 * configure: Regenerate.
13065 2011-01-27 Joseph Myers <joseph@codesourcery.com>
13067 * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
13068 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
13070 2011-01-27 Anatoly Sokolov <aesok@post.ru>
13072 * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
13073 * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
13074 * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
13075 (s390_preferred_reload_class): Make static. Change return and
13076 'rclass' argument type to reg_class_t.
13078 2011-01-27 Jan Hubicka <jh@suse.cz>
13080 PR middle-end/46949
13081 * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
13082 (process_function_and_variable_attributes): Check defined weakrefs.
13084 2011-01-27 Martin Jambor <mjambor@suse.cz>
13086 PR tree-optimization/47228
13087 * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
13088 build_ref_for_offset.
13090 2011-01-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13092 * config/spu/spu-elf.h (ASM_SPEC): Remove.
13094 2011-01-26 Mikael Pettersson <mikpe@it.uu.se>
13096 PR rtl-optimization/46856
13097 * postreload.c (reload_combine_recognize_const_pattern): Do not
13098 separate cc0 setter and user on cc0 targets.
13100 2011-01-26 Nicola Pero <nicola.pero@meta-innovation.com>
13103 * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
13104 passed a VOID_TYPE expression, immediately emit an error and
13105 return error_mark_node.
13107 2011-01-26 Jeff Law <law@redhat.com>
13109 PR rtl-optimization/47464
13110 * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
13111 rather than may_trap_p as needed.
13113 2011-01-26 DJ Delorie <dj@redhat.com>
13115 PR rtl-optimization/46878
13116 * combine.c (insn_a_feeds_b): Check for the implicit cc0
13117 setter/user dependency as well.
13119 2011-01-26 Eric Botcazou <ebotcazou@adacore.com>
13121 PR rtl-optimization/44469
13122 * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
13123 after removing trivially dead basic blocks.
13125 2011-01-26 Joseph Myers <joseph@codesourcery.com>
13127 * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
13128 * config/frv/frv.h (LINK_SPEC): Likewise.
13129 * config/i386/netware.h (LINK_SPEC): Likewise.
13130 * config/m68k/linux.h (ASM_SPEC): Likewise.
13131 * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
13132 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
13133 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
13134 * config/sparc/linux.h (ASM_SPEC): Likewise.
13135 * config/sparc/linux64.h (ASM_SPEC): Likewise.
13136 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
13138 2011-01-26 Joseph Myers <joseph@codesourcery.com>
13140 * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
13141 * config/frv/frv.h (ASM_SPEC): Likewise.
13142 * config/m68k/linux.h (ASM_SPEC): Likewise.
13143 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
13144 * config/rs6000/linux64.h (ASM_SPEC): Likewise.
13145 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
13146 * config/sparc/linux.h (ASM_SPEC): Likewise.
13147 * config/sparc/linux64.h (ASM_SPEC): Likewise.
13148 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
13150 2011-01-26 Joseph Myers <joseph@codesourcery.com>
13152 * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
13153 * config/frv/frv.h (LINK_SPEC): Likewise.
13154 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
13156 2011-01-26 Joseph Myers <joseph@codesourcery.com>
13158 * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
13159 * config/frv/frv.h (ASM_SPEC): Likewise.
13160 * config/i386/sol2-10.h (ASM_SPEC): Likewise.
13161 * config/m68k/linux.h (ASM_SPEC): Likewise.
13162 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
13163 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
13164 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
13165 * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
13166 * config/sparc/linux.h (ASM_SPEC): Likewise.
13167 * config/sparc/linux64.h (ASM_SPEC): Likewise.
13168 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
13169 * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
13171 2011-01-26 Steve Ellcey <sje@cup.hp.com>
13174 * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
13176 (vec_extract_evenodd_help): Ditto.
13177 (vec_extract_evenv4hi): Ditto.
13178 (vec_extract_oddv4hi): Ditto.
13179 (vec_interleave_lowv2si): Ditto.
13180 (vec_interleave_highv2si): Ditto.
13181 (vec_extract_evenv2si): Ditto.
13182 (vec_extract_oddv2si: Ditto.
13183 (vec_pack_trunc_v2si): Ditto.
13185 2011-01-22 Jan Hubicka <jh@suse.cz>
13188 * cgraph.h (cgraph_local_info): New field can_change_signature.
13189 * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
13190 signature can change.
13191 (ipcp_estimate_growth): Call sequence simplify only if calle signature
13193 (ipcp_insert_stage): Only compute args_to_skip if signature can change.
13194 (cgraph_function_versioning): We can not change signature of functions
13195 that don't allow that.
13196 * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
13197 (lto_input_node): Likewise.
13198 * ipa-inline.c (compute_inline_parameters): Compute
13199 local.can_change_signature.
13200 * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
13201 * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
13202 functions that can not change signature.
13203 * i386.c (ix86_function_regparm, ix86_function_sseregparm,
13204 init_cumulative_args): Do not use local calling conventions
13205 for functions that can not change signature.
13207 2011-01-22 Jan Hubicka <jh@suse.cz>
13209 * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
13211 2011-01-26 Richard Guenther <rguenther@suse.de>
13213 PR tree-optimization/47190
13214 * cgraphunit.c (process_common_attributes): New function.
13215 (process_function_and_variable_attributes): Use it.
13217 2011-01-26 Richard Guenther <rguenther@suse.de>
13220 * cgraphbuild.c (record_eh_tables): Record reference to personality
13223 2011-01-26 Alexandre Oliva <aoliva@redhat.com>
13226 * sel-sched.c (moveup_expr): Don't let debug insns prevent
13227 non-debug insns from moving up.
13229 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
13232 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
13233 t-dlldir{,-x} fragment for build and add it to tmake_file.
13234 (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
13235 * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
13236 * config/i386/t-dlldir: New file.
13237 (SHLIB_DLLDIR): Define.
13238 * config/i386/t-dlldir-x: New file.
13239 (SHLIB_DLLDIR): Define.
13240 * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
13241 (SHLIB_INSTALL): Use it.
13243 2011-01-26 Chung-Lin Tang <cltang@codesourcery.com>
13246 * config/arm/arm.c (thumb2_legitimate_index_p): Change the
13247 lower bound of the allowed Thumb-2 coprocessor load/store
13248 index range to -256. Add explaining comment.
13250 2011-01-25 Ian Lance Taylor <iant@google.com>
13252 * godump.c (go_define): Improve lexing of macro expansion to only
13253 accept expressions which match Go spec.
13255 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
13258 * tree.c (handle_dll_attribute): Handle it.
13259 * doc/extend.texi (@item dllexport): Mention it.
13260 * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
13262 2011-01-25 Ian Lance Taylor <iant@google.com>
13264 PR tree-optimization/26854
13265 * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
13266 (decl_jump_unsafe): Move higher in file, with no other change.
13267 (bind): Set has_jump_unsafe_decl if appropriate.
13268 (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
13269 (check_earlier_gotos): Likewise.
13270 (c_check_switch_jump_warnings): Likewise.
13272 2011-01-25 Jonathan Wakely <jwakely.gcc@gmail.com>
13274 * doc/invoke.texi (Warning Options): Add missing hyphen.
13275 (-fprofile-dir): Minor grammatical fixes.
13276 (-fbranch-probabilities): Likewise.
13278 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
13282 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
13284 (no_real_insns_p, schedule_block, set_priorities): Drop special
13285 treatment of boundary debug insns.
13286 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
13287 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
13288 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
13289 (BOUNDARY_DEBUG_INSN_P): Likewise.
13290 (SCHEDULE_DEBUG_INSN_P): Likewise.
13291 * sched-rgn.c (init_ready_list): Drop special treatment of
13292 boundary debug insns.
13293 * final.c (rest_of_clean-state): Clear notes' BB.
13295 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13297 * Makefile.in (LAMBDA_H): Removed.
13298 (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
13299 (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
13300 lambda-trans.o, and tree-loop-linear.o.
13301 (lto-symtab.o): Remove dependence on LAMBDA_H.
13302 (tree-loop-linear.o): Remove rule.
13303 (lambda-mat.o): Same.
13304 (lambda-trans.o): Same.
13305 (lambda-code.o): Same.
13306 (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
13307 (tree-vect-slp.o): Same.
13308 * hwint.h (gcd): Moved here.
13309 (least_common_multiple): Same.
13310 * lambda-code.c: Removed.
13311 * lambda-mat.c: Removed.
13312 * lambda-trans.c: Removed.
13313 * lambda.h: Removed.
13314 * tree-loop-linear.c: Removed.
13315 * lto-symtab.c: Do not include lambda.h.
13316 * omega.c (gcd): Removed.
13317 * passes.c (init_optimization_passes): Remove pass_linear_transform.
13318 * tree-data-ref.c (print_lambda_vector): Moved here.
13319 (lambda_vector_copy): Same.
13320 (lambda_matrix_copy): Same.
13321 (lambda_matrix_id): Same.
13322 (lambda_vector_first_nz): Same.
13323 (lambda_matrix_row_add): Same.
13324 (lambda_matrix_row_exchange): Same.
13325 (lambda_vector_mult_const): Same.
13326 (lambda_vector_negate): Same.
13327 (lambda_matrix_row_negate): Same.
13328 (lambda_vector_equal): Same.
13329 (lambda_matrix_right_hermite): Same.
13330 * tree-data-ref.h: Do not include lambda.h.
13331 (lambda_vector): Moved here.
13332 (lambda_matrix): Same.
13333 (dependence_level): Same.
13334 (lambda_transform_legal_p): Removed declaration.
13335 (lambda_collect_parameters): Same.
13336 (lambda_compute_access_matrices): Same.
13337 (lambda_vector_gcd): Same.
13338 (lambda_vector_new): Same.
13339 (lambda_vector_clear): Same.
13340 (lambda_vector_lexico_pos): Same.
13341 (lambda_vector_zerop): Same.
13342 (lambda_matrix_new): Same.
13343 * tree-flow.h (least_common_multiple): Removed declaration.
13344 * tree-parloops.c (lambda_trans_matrix): Moved here.
13345 (LTM_MATRIX): Same.
13346 (LTM_ROWSIZE): Same.
13347 (LTM_COLSIZE): Same.
13348 (LTM_DENOMINATOR): Same.
13349 (lambda_trans_matrix_new): Same.
13350 (lambda_matrix_vector_mult): Same.
13351 (lambda_transform_legal_p): Same.
13352 * tree-pass.h (pass_linear_transform): Removed declaration.
13353 * tree-ssa-loop.c (tree_linear_transform): Removed.
13354 (gate_tree_linear_transform): Removed.
13355 (pass_linear_transform): Removed.
13356 (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
13357 flag_loop_interchange.
13359 2011-01-25 Jakub Jelinek <jakub@redhat.com>
13361 PR tree-optimization/47265
13362 PR tree-optimization/47443
13363 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
13364 if name still has some uses.
13366 2011-01-25 Martin Jambor <mjambor@suse.cz>
13368 PR tree-optimization/47382
13369 * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
13370 (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
13372 2011-01-25 Joel Sherrill <joel.sherrill@oarcorp.com>
13374 * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
13375 sjlj_except_unwind_info.
13377 2011-01-25 Richard Guenther <rguenther@suse.de>
13379 PR tree-optimization/47426
13380 * tree-ssa-structalias.c (ipa_pta_execute): Make externally
13381 visible functions results escape.
13383 2011-01-25 Jakub Jelinek <jakub@redhat.com>
13386 * config/arm/arm.c (any_sibcall_uses_r3): New function.
13387 (arm_get_frame_offsets): Use it.
13389 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13390 Jakub Jelinek <jakub@redhat.com>
13392 PR tree-optimization/47271
13393 * tree-if-conv.c (bb_postdominates_preds): New.
13394 (if_convertible_bb_p): Call bb_postdominates_preds.
13395 (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
13396 (predicate_scalar_phi): Call bb_postdominates_preds.
13398 2011-01-25 Nick Clifton <nickc@redhat.com>
13400 * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
13401 * config/rx/rx.c (rx_function_value): Likewise.
13402 (rx_promote_function_mode): Likewise.
13403 (gen_safe_add): Place an outsized immediate value inside an UNSPEC
13404 in order to make it legitimate.
13405 * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
13406 make sure that the first operand is the same as the result register.
13407 (addsi3_unspec): Delete.
13408 (subdi3): Do not accept immediate operands.
13409 (subdi3_internal): Likewise.
13411 2011-01-25 Jeff Law <law@redhat.com>
13413 PR rtl-optimization/37273
13414 * ira-costs.c (scan_one_insn): Detect constants living in memory and
13415 handle them like argument loads from stack slots. Do not double
13416 count memory for memory constants and argument loads from stack slots.
13418 2011-01-25 Jakub Jelinek <jakub@redhat.com>
13420 PR tree-optimization/47427
13421 PR tree-optimization/47428
13422 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
13423 coalesce if the new root var would be TREE_READONLY.
13425 2011-01-25 Richard Guenther <rguenther@suse.de>
13427 PR middle-end/47414
13428 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
13429 correct type for TBAA.
13431 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13433 * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
13434 (close_phi_written_to_memory): Call for_each_index with
13435 dr_indices_valid_in_loop.
13437 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13439 * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
13440 when it is initialized.
13442 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13444 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
13445 call to graphite_find_data_references_in_stmt.
13446 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
13447 (try_generate_gimple_bb): Call outermost_loop_in_sese_1. Update
13448 call to graphite_find_data_references_in_stmt.
13449 (analyze_drs_in_stmts): Same.
13450 * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
13451 in which the scalar analysis of indices is performed.
13452 (create_data_ref): Same. Update call to dr_analyze_indices.
13453 (find_data_references_in_stmt): Update call to create_data_ref.
13454 (graphite_find_data_references_in_stmt): Same.
13455 * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
13457 (create_data_ref): Same.
13458 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
13459 call to create_data_ref.
13461 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13463 * graphite-sese-to-poly.c (build_poly_scop): Move
13464 rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
13466 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13468 * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
13469 VAR_DECL, PARM_DECL, and RESULT_DECL.
13471 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13473 * graphite-dependences.c (reduction_dr_1): Allow several reductions
13474 in a reduction PBB.
13475 * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
13476 that have already been marked as PBB_IS_REDUCTION.
13478 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13480 * graphite-scop-detection.c (same_close_phi_node): New.
13481 (remove_duplicate_close_phi): New.
13482 (make_close_phi_nodes_unique): New.
13483 (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
13485 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13487 * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
13488 * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
13489 of both data references to be the same.
13491 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13493 * graphite-dependences.c (build_lexicographical_constraint): Remove
13494 the gdim parameter.
13495 (build_lexicographical_constraint): Adjust call to
13496 ppl_powerset_is_empty.
13497 (dependence_polyhedron): Same.
13498 (graphite_legal_transform_dr): Same.
13499 (graphite_carried_dependence_level_k): Same.
13500 * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
13502 * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
13504 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13506 * graphite-sese-to-poly.c
13507 (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
13508 (close_phi_written_to_memory): New.
13509 (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
13512 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13514 * doc/install.texi: Update the expected version number of PPL to 0.11.
13515 * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
13516 #if PPL_VERSION_MINOR < 11.
13518 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13520 * graphite-dependences.c: Include graphite-cloog-util.h.
13521 (new_poly_ddr): Inlined into dependence_polyhedron.
13522 (free_poly_ddr): Moved close by new_poly_ddr.
13523 (dependence_polyhedron_1): Renamed dependence_polyhedron.
13524 Early return NULL when ppl_powerset_is_empty returns true.
13525 (dependence_polyhedron): Renamed new_poly_ddr. Call only once
13526 poly_drs_may_alias_p. Avoid one call to ppl_powerset_is_empty.
13527 (graphite_legal_transform_dr): Call new_poly_ddr.
13528 (graphite_carried_dependence_level_k): Same.
13529 (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2. Use new_poly_ddr.
13530 (dot_transformed_deps_stmt_1): Removed.
13531 (dot_deps_stmt_1): Call dot_deps_stmt_2.
13532 (dot_original_deps): Renamed dot_deps_2. Call new_poly_ddr.
13533 (dot_deps_1): Call dot_deps_2.
13534 * Makefile.in (graphite-dependences.o): Add missing dependence on
13535 graphite-cloog-util.h.
13537 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13539 * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
13540 (build_lexicographical_constraint): Same.
13541 (dependence_polyhedron_1): Same.
13542 (graphite_legal_transform_dr): Same.
13543 (graphite_carried_dependence_level_k): Same.
13544 * graphite-ppl.c (ppl_powerset_is_empty): New.
13545 * graphite-ppl.h (ppl_powerset_is_empty): Declared.
13546 * tree-data-ref.c (dump_data_reference): Print the basic block index.
13548 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13550 * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
13551 the "a followed by b" relation and document it.
13553 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13555 * graphite-dependences.c (build_lexicographical_constraint): Stop the
13556 iteration when the bag of constraints is empty.
13558 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13560 * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
13562 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13564 * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
13565 nest and two loop depths as parameters.
13566 (lst_try_interchange_loops): Call lst_interchange_profitable_p after
13567 lst_perfect_nestify.
13569 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13571 * graphite-dependences.c (print_pddr): Call
13572 ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
13574 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13576 * graphite-ppl.c (debug_gmp_value): New.
13577 * graphite-ppl.h (debug_gmp_value): Declared.
13579 2011-01-25 Tobias Grosser <grosser@fim.uni-passau.de>
13581 * doc/install.texi: Document availability of cloog-0.16.
13583 2011-01-25 Vladimir Kargov <kargov@gmail.com>
13585 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
13586 invalid postdominance info.
13588 2011-01-24 Jan Hubicka <jh@suse.cz>
13591 * doc/extend.texi (weak pragma): Drop claim that it must
13592 appear before definition.
13593 * varasm.c (merge_weak, declare_weak): Only sanity check
13594 that DECL is not output at a time it is declared weak.
13596 2011-01-24 Kenneth Zadeck <zadeck@naturalbridge.com>
13598 * machmode.def: Fixed comments.
13600 2011-01-24 Kai Tietz <kai.tietz@onevision.com>
13602 * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
13604 2011-01-24 Paul Koning <ni1d@arrl.net>
13606 * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
13609 2011-01-24 H.J. Lu <hongjiu.lu@intel.com>
13612 * config/i386/i386.c: Include sbitmap.h and fibheap.h.
13613 (block_info): Add scanned and prev.
13614 (move_or_delete_vzeroupper_2): Return if the basic block
13615 has been scanned and the upper 128bit state is unchanged
13616 from the last scan.
13617 (move_or_delete_vzeroupper_1): Return true if the exit
13619 (move_or_delete_vzeroupper): Visit basic blocks using the
13620 work-list based algorithm based on vt_find_locations in
13623 * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
13625 2011-01-24 Nick Clifton <nickc@redhat.com>
13627 * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
13628 * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
13629 -mv850e1 to the assembler. If -mv850e1 or -mv850es is specified
13630 then define __v850e1__.
13631 * doc/invoke.texi: Document -mv850es.
13633 2011-01-24 Richard Henderson <rth@redhat.com>
13635 * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
13636 compound unordered comparisons.
13637 * config/rx/rx.c (rx_split_fp_compare): Remove.
13638 * config/rx/rx-protos.h: Update.
13639 * config/rx/rx.md (gcc_conds, rx_conds): Remove.
13640 (cbranchsf4): Don't call rx_split_fp_compare.
13641 (*cbranchsf4): Use rx_split_cbranch.
13642 (*cmpsf): Don't accept "i" constraint.
13643 (*conditional_branch): Only valid after reload.
13644 (cstoresf4): Merge expander with insn. Don't call rx_split_fp_compare.
13646 2011-01-24 Michael Meissner <meissner@linux.vnet.ibm.com>
13649 * config/rs6000/altivec.md (vector constant splitters): Add
13650 support for creating vector single precision constants if -mvsx is
13651 used and we would create the constant using Altivec primitives.
13653 2011-01-23 Bernd Schmidt <bernds@codesourcery.com>
13654 Richard Sandiford <rdsandiford@googlemail.com>
13656 PR rtl-optimization/47166
13657 * reload1.c (emit_reload_insns): Disable the spill_reg_store
13658 mechanism for PRE_MODIFY and POST_MODIFY.
13659 (inc_for_reload): For PRE_MODIFY, return the insn that sets the
13662 2011-01-23 Andreas Schwab <schwab@linux-m68k.org>
13664 * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
13666 2011-01-22 Jan Hubicka <jh@suse.cz>
13669 * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
13671 2011-01-22 Jan Hubicka <jh@suse.cz>
13673 PR tree-optimization/43884
13675 * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
13676 * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
13678 2011-01-22 Anatoly Sokolov <aesok@post.ru>
13680 * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
13681 * config/s390/s390.c (s390_register_move_cost,
13682 s390_memory_move_cost): New.
13683 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
13685 2011-01-22 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13687 PR middle-end/47401
13688 * except.c (sjlj_assign_call_site_values): Move setting the
13689 crtl->uses_eh_lsda flag to ...
13690 (sjlj_mark_call_sites): ... here.
13691 (sjlj_emit_function_enter): Support NULL dispatch label.
13692 (sjlj_build_landing_pads): In a function with no landing pads
13693 that still has must-not-throw regions, generate code to register
13694 a personality function with empty LSDA.
13696 2011-01-21 Richard Henderson <rth@redhat.com>
13698 * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
13700 * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
13702 * compare-elim.c: New file.
13703 * Makefile.in (OBJS-common): Add it.
13704 (compare-elim.o): New.
13705 * common.opt (fcompare-elim): New.
13706 * opts.c (default_options_table): Add OPT_fcompare_elim.
13707 * tree-pass.h (pass_compare_elim_after_reload): New.
13708 * passes.c (init_optimization_passes): Add it.
13709 * recog.h: Protect against re-inclusion.
13710 * target.def (TARGET_FLAGS_REGNUM): New POD hook.
13711 * doc/invoke.texi (-fcompare-elim): Document it.
13712 * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
13713 * doc/tm.texi: Rebuild.
13715 2011-01-22 Nick Clifton <nickc@redhat.com>
13717 * config/rx/rx.md (cstoresf4): Pass comparison operator to
13718 rx_split_fp_compare.
13720 2011-01-22 Nick Clifton <nickc@redhat.com>
13722 * config/rx/rx.md (UNSPEC_CONST): New.
13723 (deallocate_and_return): Wrap the amount popped off the stack in
13724 an UNSPEC_CONST in order to stop it being rejected by
13725 -mmax-constant-size.
13726 (pop_and_return): Add a "(return)" rtx.
13727 (call): Drop the immediate operand.
13728 (call_internal): Likewise.
13729 (call_value): Likewise.
13730 (call_value_internal): Likewise.
13731 (sibcall_internal): Likewise.
13732 (sibcall_value_internal): Likewise.
13733 (sibcall): Likewise. Generate an explicit call using
13735 (sibcall_value): Likewise.
13736 (mov<>): FAIL if a constant operand is not legitimate.
13737 (addsi3_unpsec): New pattern.
13739 * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
13740 (ok_for_max_constant): New function.
13741 (gen_safe_add): New function.
13742 (rx_expand_prologue): Use gen_safe_add.
13743 (rx_expand_epilogue): Likewise.
13744 (rx_is_legitimate_constant): Use ok_for_max_constant. Handle
13747 2011-01-21 Jeff Law <law@redhat.com>
13749 PR tree-optimization/47053
13750 * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
13751 (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
13752 statements are deleted.
13753 (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP. If NEED_EH_CLEANUP
13754 is nonempty, then purge dead edges and cleanup the CFG.
13756 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
13759 Temporarily revert:
13760 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
13762 * tree-dfa.c (create_var_ann): Mark variable as used.
13764 2011-01-21 Jakub Jelinek <jakub@redhat.com>
13766 PR middle-end/45566
13767 * except.c (convert_to_eh_region_ranges): Emit queued no-region
13768 notes from other section in hot/cold partitioning even if
13769 last_action is -3. Increment call_site_base.
13771 PR rtl-optimization/47366
13772 * fwprop.c (forward_propagate_into): Return bool. If
13773 any changes are made, -fnon-call-exceptions is used and
13774 REG_EH_REGION note is present, call purge_dead_edges
13775 and return true if it purged anything.
13776 (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
13777 any EH edges were purged.
13779 2011-01-21 Jeff Law <law@redhat.com>
13781 PR rtl-optimization/41619
13782 * caller-save.c (setup_save_areas): Break out code to determine
13783 which hard regs are live across calls by examining the reload chains
13784 so that it is always used.
13785 Eliminate code which checked REG_N_CALLS_CROSSED.
13787 2011-01-21 Jakub Jelinek <jakub@redhat.com>
13789 PR tree-optimization/47355
13790 * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
13791 NOP has non-debug uses beyond PHIs in new_bb.
13793 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
13796 * cfgexpand.c (account_used_vars_for_block): Only account vars
13797 that are annotated as used.
13798 (estimated_stack_frame_size): Don't set TREE_USED.
13799 * tree-dfa.c (create_var_ann): Mark variable as used.
13801 2011-01-21 Richard Guenther <rguenther@suse.de>
13803 PR middle-end/47395
13804 * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
13806 2011-01-21 Richard Guenther <rguenther@suse.de>
13808 PR tree-optimization/47365
13809 * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
13810 (vn_reference_lookup_pieces): Adjust.
13811 (vn_reference_lookup): Likewise.
13812 * tree-ssa-sccvn.c (vn_walk_kind): New static global.
13813 (vn_reference_lookup_3): Only look through kills if in
13814 VN_WALKREWRITE mode.
13815 (vn_reference_lookup_pieces): Adjust.
13816 (vn_reference_lookup): Likewise.
13817 (visit_reference_op_load): Likewise.
13818 (visit_reference_op_store): Likewise.
13819 * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
13820 (compute_avail): Likewise.
13821 (eliminate): Likewise.
13823 2011-01-21 Jakub Jelinek <jakub@redhat.com>
13825 * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
13826 DECL_IGNORED_P non-reg vars if they are used.
13828 PR tree-optimization/47391
13829 * varpool.c (const_value_known_p): Return false if
13832 2011-01-21 Kai Tietz <kai.tietz@onevision.com>
13835 * config/i386/i386.c (ix86_local_alignment): Handle
13836 case for va_list_type_node is nil.
13837 (ix86_canonical_va_list_type): Likewise.
13839 2011-01-21 Alan Modra <amodra@gmail.com>
13841 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
13842 builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
13844 2011-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13846 * config/arm/arm.md (define_attr type): Rename f_load
13847 and f_store to f_fpa_load and f_fpa_store. Update.
13848 (write_conflict): Deal with rename fallout.
13849 (*push_fp_multi): Likewise.
13850 * config/arm/fpa.md (f_load): Use f_fpa_load.
13851 (f_store): Use f_fpa_store.
13852 (*movsf_fpa): Likewise.
13853 (*movdf_fpa): Likewise.
13854 (*movxf_fpa): Likewise.
13855 (*thumb2_movsf_fpa): Likewise.
13856 (*thumb2_movdf_fpa): Likewise.
13857 (*thumb2_movxf_fpa): Likewise.
13858 * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
13859 f_loadd and f_stored.
13860 (*thumb2_movdi_vfp): Likewise.
13861 (*thumb2_movsf_vfp): Fix attribute to f_loads.
13862 (*thumb2_movsi_vfp): Likewise.
13863 * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
13864 Use f_loads instead of f_load.
13865 * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
13867 2011-01-20 Anatoly Sokolov <aesok@post.ru>
13869 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
13870 * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
13871 * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
13872 (xtensa_mode_dependent_address_p): New function.
13873 (constantpool_address_p): Make static. Change return type to bool.
13874 Change argument type to const_rtx. Use CONST_INT_P predicate.
13876 2011-01-20 Alexandre Oliva <aoliva@redhat.com>
13879 * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
13881 2011-01-20 Jakub Jelinek <jakub@redhat.com>
13884 * cfgexpand.c (expand_debug_expr): Instead of generating
13885 (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
13888 2011-01-20 Richard Guenther <rguenther@suse.de>
13890 PR middle-end/47370
13891 * tree-inline.c (remap_gimple_op_r): Recurse manually for
13892 the pointer operand of MEM_REFs.
13894 2011-01-20 Jakub Jelinek <jakub@redhat.com>
13896 PR tree-optimization/46130
13897 * ipa-split.c (consider_split): If return_bb contains non-virtual
13898 PHIs other than for retval or if split_function would not adjust it,
13901 2011-01-20 Richard Guenther <rguenther@suse.de>
13903 PR tree-optimization/47167
13904 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
13905 Revert previous change, only avoid enumeral type changes.
13907 2011-01-19 Mike Stump <mikestump@comcast.net>
13909 * doc/tm.texi.in (BRANCH_COST): Englishify.
13910 * doc/tm.texi (BRANCH_COST): Likewise.
13912 2011-01-19 Dodji Seketeli <dodji@redhat.com>
13915 * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
13916 (gen_scheduled_generic_parms_dies): New functions.
13917 (gen_struct_or_union_type_die): Schedule template parameters DIEs
13918 generation for the end of CU compilation.
13919 (dwarf2out_finish): Generate template parameters DIEs here.
13921 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
13924 * tree-into-ssa.c (maybe_register_def): Do not attempt to add
13925 debug bind stmt on merge edges.
13927 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
13931 * function.c (instantiate_expr): Instantiate incoming rtl of
13932 implicit arguments, and recurse on VALUE_EXPRs.
13933 (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
13934 * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
13936 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
13938 * c-parser.c (c_parser_for_statement): Initialize
13939 collection_expression.
13941 2011-01-19 Joseph Myers <joseph@codesourcery.com>
13943 * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
13945 2011-01-19 Joseph Myers <joseph@codesourcery.com>
13947 * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
13948 (LINK_SHLIB_SPEC): Don't use %(link_path).
13949 (SUBTARGET_EXTRA_SPECS): Remove link_path.
13951 2011-01-19 Joseph Myers <joseph@codesourcery.com>
13953 * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
13954 (NO_SHARED_LIB_SUPPORT): Remove.
13955 (LINK_SHLIB_SPEC): Remove one conditional definition.
13957 2011-01-19 Joseph Myers <joseph@codesourcery.com>
13959 * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
13961 * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
13962 * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
13963 * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
13964 %{call_shared} and conditionals on these options not being passed.
13965 * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
13968 2011-01-19 Jakub Jelinek <jakub@redhat.com>
13970 * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
13973 * ipa-split.c: Spelling fixes.
13975 2011-01-19 Richard Henderson <rth@redhat.com>
13977 * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
13978 (*mulsi3): Likewise.
13980 * longlong.h [__mn10300__] (count_leading_zeros): New.
13981 [__mn10300__] (umul_ppmm, smul_ppmm): New.
13982 [__mn10300__] (add_ssaaaa, subddmmss): New.
13983 [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
13984 [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
13986 2011-01-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13988 * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
13990 2011-01-19 Richard Henderson <rth@redhat.com>
13992 * config/mn10300/mn10300.md (addsi3_flags): New.
13993 (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
13994 (subsi3_flags, subc_internal, subdi3): New.
13995 (subdi3_internal, *subdi3_degenerate): New.
13996 * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
13998 * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
13999 (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
14000 (mn10300_expand_epilogue): Use it. Compute REG_SAVE_BYTES once.
14001 * config/mn10300/mn10300-protos.h: Update.
14002 * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
14003 (return_ret): Likewise. Rename from return_internal_regs.
14004 (return_internal): Remove.
14006 * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
14007 (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
14008 (mn10300_legitimate_constant_p): Likewise.
14009 (mn10300_can_use_return_insn): Use mn10300_initial_offset.
14010 (mn10300_frame_size): New.
14011 (mn10300_expand_prologue): Use it.
14012 (mn10300_expand_epilogue): Likewise.
14013 (mn10300_initial_offset): Likewise.
14014 * config/mn10300/mn10300-protos.h: Update.
14015 * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
14016 * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
14017 (prologue, epilogue, return_internal): Tidy output code.
14018 (mn10300_store_multiple_operation, return): Likewise.
14019 (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
14020 (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
14021 (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
14022 (load_pic, am33_load_pic): New.
14023 (mn10300_load_pic0, mn10300_load_pic1): New.
14025 * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
14026 * config/mn10300/mn10300.c (CC_FLAG_Z): New.
14027 (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
14028 (cc_flags_for_mode, cc_flags_for_code): New.
14029 (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
14030 overflow flag is not valid. Validate that the flags we need
14031 for the comparison are valid.
14032 (mn10300_output_cmp): Remove.
14033 (mn10300_output_add): New.
14034 (mn10300_select_cc_mode): Use cc_flags_for_code.
14035 (mn10300_split_cbranch): New.
14036 (mn10300_match_ccmode): New.
14037 (mn10300_split_and_operand_count): New.
14038 * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
14040 * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
14041 (addsi3): ... here. Use mn10300_output_add.
14042 (*addsi3_flags): New.
14043 (*am33_subsi3, *mn10300_subsi3): Merge...
14044 (subsi3): ... here. Use attribute isa.
14045 (*subsi3_flags): New.
14046 (negsi2): Rewrite from expander to insn_and_split. Use NOT+INC
14048 (*am33_andsi3, *mn10300_andsi3): Merge...
14049 (andsi3): ... here.
14050 (*andsi3_flags): New.
14051 (andsi3 splitters): New.
14052 (*am33_iorsi3, *mn10300_iorsi3): Merge...
14053 (iorsi3): ... here.
14054 (*iorsi3_flags): New.
14055 (*am33_xorsi3, *mn10300_xorsi3): Merge...
14056 (xorsi3): ... here.
14057 (*xorsi3_flags): New.
14058 (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
14059 (one_cmplsi2): ... here.
14060 (*one_cmplsi2_flags): New.
14061 (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload. Use "r"
14062 instead of "dax" in constraints. Use mn10300_split_cbranch.
14063 (*cmpsi): Rename from cmpsi. Do not use mn10300_output_cmp. Do not
14064 use matching constraints to eliminate a self-comparison.
14065 (*integer_conditional_branch): Rename from integer_conditional_branch.
14066 Use int_mode_flags to match CC_REG.
14067 (*cbranchsi4_btst, *btstsi): New.
14068 (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload. Use
14069 mn10300_split_cbranch.
14070 (*am33_cmpsf): Rename from am33_cmpsf.
14071 (*float_conditional_branch): Rename from float_conditional_branch.
14072 (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
14073 (zero_extendqisi2): ... here.
14074 (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
14075 (zero_extendhisi2): ... here.
14076 (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
14077 (extendqisi2): ... here.
14078 (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
14079 (extendhisi2): ... here.
14080 (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
14081 (ashlsi3): ... here.
14082 (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
14083 (lshrsi3): ... here.
14084 (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
14085 (ashrsi3): ... here.
14086 (consecutive add peephole): Remove.
14087 * config/mn10300/predicates.md (label_ref_operand): New.
14088 (int_mode_flags): New.
14089 (CCZN_comparison_operator): New.
14091 * config/mn10300/mn10300.md (UNSPEC_EXT): New.
14092 (throughput_42_latency_43): New reservation.
14093 (mulsidi3, umulsidi3): New expanders.
14094 (mulsidi3_internal): Rewrite from old mulsidi3 pattern. Expose
14095 the MDR register to allocation; separately allocate the low and
14096 high parts of the DImode result.
14097 (umulsidi3_internal): Similarly.
14098 (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
14099 (*mulsi3): ... here. Clobber MDR as a scratch as necessary.
14100 (udivsi3, umodsi3): Remove.
14101 (udivmodsi4, divmodsi4): New expanders.
14102 (*udivmodsi4): Rename from udivmodsi4. Expose MDR properly.
14103 (*divmodsi4): Simiarly.
14104 (ext_internal): New.
14106 * config/mn10300/constraints.md ("z"): New constraint.
14107 * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
14108 (FIXED_REGISTERS): Don't fix MDR.
14109 (CALL_USED_REGSITERS): Reformat nicely.
14110 (REG_ALLOC_ORDER): Add MDR.
14111 (enum regclass): Add MDR_REGS.
14112 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
14113 (IRA_COVER_CLASSES): Add MDR_REGS.
14114 (REGNO_REG_CLASS): Handle MDR_REG.
14115 * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
14116 (mn10300_register_move_cost): Likewise.
14117 * config/mn10300/mn10300.md (MDR_REG): New.
14118 (*movsi_internal): Handle moves to/from MDR_REGS.
14120 * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
14122 (mn10300_secondary_reload): Tidy combination reload classes.
14123 (mn10300_legitimate_address_p): Allow post-modify and reg+reg
14124 addresses for AM33. Allow symbolic offsets for reg+imm.
14125 (mn10300_regno_in_class_p): New.
14126 (mn10300_legitimize_reload_address): New.
14127 * config/mn10300/mn10300.h (enum reg_class): Remove
14128 DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
14129 SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS. Add
14130 SP_OR_GENERAL_REGS.
14131 (REG_CLASS_NAMES): Update to match.
14132 (REG_CLASS_CONTENTS): Likewise.
14133 (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
14134 (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
14135 (REGNO_IN_RANGE_P): Remove.
14136 (REGNO_DATA_P): Use mn10300_regno_in_class_p.
14137 (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
14138 (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
14139 (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
14140 (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
14141 (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
14142 (REGNO_GENERAL_P): New.
14143 (HAVE_POST_MODIFY_DISP): New.
14144 (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
14145 (LEGITIMIZE_RELOAD_ADDRESS): New.
14146 * config/mn10300/mn10300-protos.h: Update.
14148 * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
14149 DATA_REGS for AM33 stack-pointer destination.
14150 (mn10300_preferred_output_reload_class): Likewise.
14151 (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
14152 into a form appropriate for ...
14153 (TARGET_SECONDARY_RELOAD): New.
14154 * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
14155 * config/mn10300/mn10300-protos.h: Update.
14156 * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
14157 reload_insi; use the "A" constraint for the scratch; handle AM33
14158 moves of sp to non-address registers.
14160 * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
14161 (*movqi_internal): ... here.
14162 (*am33_movhi, *mn10300_movhi): Merge into...
14163 (*movhi_internal): ... here.
14164 (*movsi_internal): Use "r" instead of "dax" in constraints. Use "A"
14165 as the source/destination of moves from/to SP.
14166 (movsf): Only allow for AM33-2.
14167 (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
14168 any integer constant constraint. Only allow for AM33-2. Tidy
14169 all of the alternative outputs.
14170 (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
14171 (udivmodsi4): Delete expander and promote *udivmodsi4. Disallow
14173 (udivsi3, umodsi3): New patterns for MN103 only.
14175 2011-01-19 Joern Rennecke <amylaar@spamcop.net>
14177 * doc/tm.texi.in: Spell out that a lack of register class unions
14179 * doc/tm.texi: Regenerate.
14181 2011-01-19 Jakub Jelinek <jakub@redhat.com>
14183 PR rtl-optimization/47337
14184 * dce.c (check_argument_store): New function.
14185 (find_call_stack_args): Ignore debug insns. Use check_argument_store.
14187 PR tree-optimization/47290
14188 * tree-eh.c (infinite_empty_loop_p): New function.
14189 (cleanup_empty_eh): Use it.
14191 2011-01-18 Steve Ellcey <sje@cup.hp.com>
14194 * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
14195 (a64_expand_widen_sum): Ditto.
14196 * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
14197 (vec_extract_evenodd_help): Ditto.
14198 (vec_extract_evenv4hi): Ditto.
14199 (vec_extract_oddv4hi): Ditto.
14200 (vec_extract_evenv2si): Ditto.
14201 (vec_extract_oddv2si): Ditto.
14202 (vec_extract_evenv2sf): Ditto.
14203 (vec_extract_oddv2sf): Ditto.
14204 (vec_pack_trunc_v4hi: Ditto.
14205 (vec_pack_trunc_v2si): Ditto.
14206 (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
14207 (vec_interleave_highv8qi): Ditto.
14209 (vec_extract_oddv8qi): Ditto.
14210 (vec_interleave_lowv4hi): Ditto.
14211 (vec_interleave_highv4hi): Ditto.
14212 (vec_interleave_lowv2si): Ditto.
14213 (vec_interleave_highv2si): Ditto.
14215 2011-01-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
14217 * doc/extend.texi: Mention __float128 support on hppa HP-UX.
14218 * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
14219 * config/pa/pa.c (pa_expand_builtin): New. Include "langhooks.h".
14220 (pa_c_mode_for_suffix): New.
14221 (TARGET_EXPAND_BUILTIN): Define.
14222 (TARGET_C_MODE_FOR_SUFFIX): Define.
14223 (pa_builtins): Define.
14224 (pa_init_builtins): Register __float128 type and init new support
14226 * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
14227 * config/pa/quadlib.c (_U_Qfcopysign): New.
14229 2011-01-18 Eric Botcazou <ebotcazou@adacore.com>
14231 PR middle-end/46894
14232 * explow.c (allocate_dynamic_stack_space): Do not assume more than
14233 BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
14236 2011-01-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14238 PR tree-optimization/47179
14239 * config/spu/spu.c (spu_ref_may_alias_errno): New function.
14240 (TARGET_REF_MAY_ALIAS_ERRNO): Define.
14242 2011-01-18 Richard Guenther <rguenther@suse.de>
14244 PR rtl-optimization/47216
14245 * emit-rtl.c: Include tree-flow.h.
14246 (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
14247 of replicating it with different semantics.
14248 * Makefile.in (emit-rtl.o): Adjust.
14250 2011-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14252 * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
14253 (cortex_a9_dp): Handle neon types correctly.
14255 2011-01-18 Jakub Jelinek <jakub@redhat.com>
14257 PR rtl-optimization/47299
14258 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
14259 subtarget. Use normal multiplication if both operands are constants.
14260 * expmed.c (expand_widening_mult): Don't try to optimize constant
14261 multiplication if op0 has VOIDmode. Convert op1 constant to mode
14264 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14266 * doc/lto.texi (LTO): Ensure two spaces after period. Fix
14267 spacing after 'e.g.', typos, comma, hyphenation.
14269 2011-01-17 Richard Henderson <rth@redhat.com>
14271 * config/rx/predicates.md (rx_constshift_operand): Use match_test.
14272 (rx_restricted_mem_operand): New.
14273 (rx_shift_operand): Use register_operand.
14274 (rx_source_operand, rx_compare_operand): Likewise.
14275 * config/rx/rx.md (addsi3_flags): New expander.
14276 (adddi3): Rewrite as expander.
14277 (adc_internal, *adc_flags, adddi3_internal): New patterns.
14278 (subsi3_flags): New expander.
14279 (subdi3): Rewrite as expander.
14280 (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
14282 * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
14283 (rx_init_builtins): Remove sat builtin.
14284 (rx_expand_builtin): Likewise.
14285 * config/rx/rx.md (ssaddsi3): New.
14286 (*sat): Rename from sat. Represent the CC_REG input.
14288 * config/rx/predicates.md (rshift_operator): New.
14289 * config/rx/rx.c (rx_expand_insv): Remove.
14290 * config/rx/rx-protos.h: Update.
14291 * config/rx/rx.md (*bitset): Rename from bitset. Swap the ashift
14292 operand to the canonical position.
14293 (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
14294 (*bitclr, *bitclr_in_memory): Similarly.
14295 (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
14296 (insv): Retain the zero_extract in the expansion.
14298 * config/rx/rx.md (bswapsi2): Use = not + for output reload.
14299 (bswaphi2, bitinvert, revw): Likewise.
14301 * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
14302 (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
14303 * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
14304 (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
14305 (bitset, bitset_in_memory): Likewise.
14306 (bitinvert, bitinvert_in_memory): Likewise.
14307 (bitclr, bitclr_in_memory): Likewise.
14308 (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
14309 (rx_strend, rx_cmpstrn): Likewise.
14310 (rx_setmem): Likewise. Make the source BLKmode to match the dest.
14311 (bitop peep2 patterns): Remove.
14313 * config/rx/rx.c (rx_match_ccmode): New.
14314 * config/rx/rx-protos.h: Update.
14315 * config/rx/rx.md (abssi2): Clobber, don't set flags.
14316 (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
14317 (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
14318 (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
14319 (fix_truncsfsi2, floatsisf2): Likewise.
14320 (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
14321 (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
14322 (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
14323 (*subsi3_flags, *xorsi3_flags): New.
14325 * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
14327 * config/rx/rx.c (rx_print_operand): Remove workaround for
14328 unsplit comparison operations.
14330 * config/rx/rx.md (movsicc): Split after reload.
14331 (*movsicc): Merge *movsieq and *movsine via match_operator.
14332 (*stcc): New pattern.
14334 * config/rx/rx.c (rx_float_compare_mode): Remove.
14335 * config/rx/rx.h (rx_float_compare_mode): Remove.
14336 * config/rx/rx.md (cstoresi4): Split after reload.
14337 (*sccc): New pattern.
14339 * config/rx/predicates.md (label_ref_operand): New.
14340 (rx_z_comparison_operator): New.
14341 (rx_zs_comparison_operator): New.
14342 (rx_fp_comparison_operator): New.
14343 * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
14344 Validate that the flags are set properly for the comparison.
14345 (rx_gen_cond_branch_template): Remove.
14346 (rx_cc_modes_compatible): Remove.
14347 (mode_from_flags): New.
14348 (flags_from_code): Rename from flags_needed_for_conditional.
14349 (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
14350 (rx_select_cc_mode): Likewise.
14351 (rx_split_fp_compare): New.
14352 (rx_split_cbranch): New.
14353 * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
14354 (*cbranchsi4): Use match_operator and rx_split_cbranch.
14355 (*cbranchsf4): Similarly.
14356 (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>. Use
14357 match_operator and rx_split_cbranch.
14358 (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
14359 tstbranchsi4m_ne. Use match_operator and rx_split_cbranch.
14360 (*cmpsi): Rename from cmpsi.
14361 (*tstsi): Rename from tstsi.
14362 (*cmpsf): Rename from cmpsf; use CC_Fmode.
14363 (*conditional_branch): Rename from conditional_branch.
14364 (*reveresed_conditional_branch): Remove.
14365 (b<code>): Remove expander.
14366 * config/rx/rx-protos.h: Update.
14368 * config/rx/rx.c (rx_compare_redundant): Remove.
14369 * config/rx/rx.md (cmpsi): Don't use it.
14370 * config/rx/rx-protos.h: Update.
14372 * config/rx/rx-modes.def (CC_F): New mode.
14373 * config/rx/rx.c (rx_select_cc_mode): New.
14374 * config/rx/rx.h (SELECT_CC_MODE): Use it.
14375 * config/rx/rx-protos.h: Update.
14377 2011-01-17 Richard Henderson <rth@redhat.com>
14379 * except.c (dump_eh_tree): Fix stray ; after for statement.
14381 2011-01-17 Richard Guenther <rguenther@suse.de>
14383 PR tree-optimization/47313
14384 * tree-inline.c (tree_function_versioning): Move DECL_RESULT
14385 handling before copying the body. Properly deal with
14386 by-reference result in SSA form.
14388 2011-01-17 Ian Lance Taylor <iant@google.com>
14391 * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
14392 (struct_value_alias_set): Don't define.
14393 (sparc_option_override): Don't set sparc_sr_alias_set and
14394 struct_value_alias_set.
14395 (save_or_restore_regs): Use gen_frame_mem rather than calling
14397 (sparc_struct_value_rtx): Likewise.
14399 2011-01-17 H.J. Lu <hongjiu.lu@intel.com>
14402 * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
14403 (_mm_maskstore_pd): Likewise.
14404 (_mm_maskload_ps): Likewise.
14405 (_mm_maskstore_ps): Likewise.
14406 (_mm256_maskload_pd): Change mask to __m256i.
14407 (_mm256_maskstore_pd): Likewise.
14408 (_mm256_maskload_ps): Likewise.
14409 (_mm256_maskstore_ps): Likewise.
14411 * config/i386/i386-builtin-types.def: Updated.
14412 (ix86_expand_special_args_builtin): Likewise.
14414 * config/i386/i386.c (bdesc_special_args): Update
14415 __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
14416 __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
14417 __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
14418 __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
14420 * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
14421 Use <avxpermvecmode> on mask register.
14422 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
14424 2011-01-17 Olivier Hainque <hainque@adacore.com>
14425 Michael Haubenwallner <michael.haubenwallner@salomon.at>
14426 Eric Botcazou <ebotcazou@adacore.com>
14429 * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
14430 if <= USHRT_MAX in 32-bit mode.
14432 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14434 * doc/install.texi (Configuration, Specific): Wrap long
14435 lines in examples. Allow line wrapping in long options
14436 and URLs where beneficial for PDF output.
14438 2011-01-16 Richard Sandiford <rdsandiford@googlemail.com>
14440 * config/mips/mips.c (mips_classify_symbol): Don't return
14441 SYMBOL_PC_RELATIVE for nonlocal labels.
14443 2011-01-15 Eric Botcazou <ebotcazou@adacore.com>
14445 * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
14447 2011-01-15 Jan Hubicka <jh@suse.cz>
14449 PR tree-optimization/47276
14450 * ipa.c (function_and_variable_visibility): Do not try to mark alias
14451 declarations as needed.
14453 2011-01-15 Martin Jambor <mjambor@suse.cz>
14455 * common.opt (fdevirtualize): New flag.
14456 * doc/invoke.texi (Option Summary): Document it.
14457 * opts.c (default_options_table): Add devirtualize flag.
14458 * ipa-prop.c (detect_type_change): Return immediately if
14459 devirtualize flag is not set.
14460 (detect_type_change_ssa): Likewise.
14461 (compute_known_type_jump_func): Likewise.
14462 (ipa_analyze_virtual_call_uses): Likewise.
14464 2011-01-14 Martin Jambor <mjambor@suse.cz>
14466 PR tree-optimization/45934
14467 PR tree-optimization/46302
14468 * ipa-prop.c (type_change_info): New type.
14469 (stmt_may_be_vtbl_ptr_store): New function.
14470 (check_stmt_for_type_change): Likewise.
14471 (detect_type_change): Likewise.
14472 (detect_type_change_ssa): Likewise.
14473 (compute_complex_assign_jump_func): Check for dynamic type change.
14474 (compute_complex_ancestor_jump_func): Likewise.
14475 (compute_known_type_jump_func): Likewise.
14476 (compute_scalar_jump_functions): Likewise.
14477 (ipa_analyze_virtual_call_uses): Likewise.
14478 (ipa_analyze_node): Push and pop cfun, set current_function_decl.
14480 2011-01-14 Joseph Myers <joseph@codesourcery.com>
14482 * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
14483 * config/i386/i386.opt (msse5): New Alias.
14485 2011-01-14 Joseph Myers <joseph@codesourcery.com>
14487 * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
14488 * config/sparc/linux64.h (CC1_SPEC): Likewise.
14489 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
14490 * config/sparc/sparc.h (CC1_SPEC): Likewise.
14492 2011-01-14 Joseph Myers <joseph@codesourcery.com>
14494 * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
14496 * config/sparc/linux64.h (CC1_SPEC): Likewise.
14497 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
14498 * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
14499 * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
14501 * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
14503 2011-01-14 Joseph Myers <joseph@codesourcery.com>
14505 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
14507 2011-01-14 Mike Stump <mikestump@comcast.net>
14509 * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
14510 * config/fr30/fr30.md: Likweise
14511 (movsi_push): Likewise.
14512 (movsi_pop): Likewise.
14513 (enter_func): Likewise.
14514 * config/moxie/moxie.md (movsi_push): Likewise.
14515 (movsi_pop): Likewise.
14517 2011-01-14 Joseph Myers <joseph@codesourcery.com>
14519 * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
14520 %{no_archive} %{exact_version}.
14521 * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
14522 * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
14523 %{no_archive} %{exact_version}.
14524 * config/mips/openbsd.h (LINK_SPEC): Likewise.
14525 * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
14526 * config/mips/vxworks.h: Likewise.
14528 2011-01-14 Joseph Myers <joseph@codesourcery.com>
14530 * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
14532 2011-01-14 Joseph Myers <joseph@codesourcery.com>
14534 * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
14535 ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
14537 2011-01-14 Joseph Myers <joseph@codesourcery.com>
14539 * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
14542 2011-01-14 Joseph Myers <joseph@codesourcery.com>
14544 * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
14546 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
14547 CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
14549 (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
14550 Don't handle -shlib.
14552 2011-01-14 Joseph Myers <joseph@codesourcery.com>
14554 * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
14555 (CC1_SPEC): Don't handle -profile.
14557 2011-01-14 Joseph Myers <joseph@codesourcery.com>
14559 * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
14560 * config/mips/mips.h (CC1_SPEC): Likewise.
14562 2011-01-14 Joseph Myers <joseph@codesourcery.com>
14564 * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
14565 * config/mips/mips.h (CC1_SPEC): Likewise.
14567 2011-01-14 Joseph Myers <joseph@codesourcery.com>
14569 * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
14570 * config/m32r/linux.h (LINK_SPEC): Likewise.
14571 * config/mips/linux.h (LINK_SPEC): Likewise.
14572 * config/mips/linux64.h (LINK_SPEC): Likewise.
14573 * config/sparc/linux.h (LINK_SPEC): Likewise.
14574 * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
14575 LINK_SPEC): Likewise.
14576 * config/xtensa/linux.h (LINK_SPEC): Likewise.
14578 2011-01-14 Joseph Myers <joseph@codesourcery.com>
14580 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
14582 * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
14584 2011-01-14 Joseph Myers <joseph@codesourcery.com>
14586 * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
14587 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
14589 2011-01-14 Joseph Myers <joseph@codesourcery.com>
14591 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
14593 2011-01-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14595 * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
14596 supports -Bstatic/-Bdynamic.
14597 * configure: Regenerate.
14599 2011-01-14 Jan Hubicka <jh@suse.cz>
14600 Jack Howarth <howarth@bromo.med.uc.edu>
14603 * config/darwin.c (darwin_override_options): Honor flag_gtoggle
14604 when checking debug_info_level. Test write_symbols instead of
14605 debug_hooks->var_location when setting flag_var_tracking_uninit.
14607 2011-01-14 Richard Guenther <rguenther@suse.de>
14609 PR tree-optimization/47179
14610 * target.def (ref_may_alias_errno): New target hook.
14611 * targhooks.h (default_ref_may_alias_errno): Declare.
14612 * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
14613 (default_ref_may_alias_errno): New function.
14614 * target.h (struct ao_ref_s): Declare.
14615 * tree-ssa-alias.c: Include target.h.
14616 (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
14617 * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
14618 (targhooks.o): Likewise.
14619 * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
14620 * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
14622 2011-01-14 Richard Guenther <rguenther@suse.de>
14624 * tree-ssa-structalias.c (new_var_info): Use DECL_HARD_REGISTER.
14626 2011-01-14 Richard Guenther <rguenther@suse.de>
14628 PR tree-optimization/47280
14629 * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
14630 return CFG changes.
14631 (tree_ssa_forward_propagate_single_use_vars): Deal with
14632 CFG changes from associate_plusminus.
14634 2011-01-14 Richard Guenther <rguenther@suse.de>
14636 PR middle-end/47281
14638 2011-01-11 Richard Guenther <rguenther@suse.de>
14640 PR tree-optimization/46076
14641 * tree-ssa.c (useless_type_conversion_p): Conversions from
14642 unprototyped to empty argument list function types are useless.
14644 2011-01-14 Richard Guenther <rguenther@suse.de>
14646 PR tree-optimization/47286
14647 * tree-ssa-structalias.c (new_var_info): Register variables are global.
14649 2011-01-14 Martin Jambor <mjambor@suse.cz>
14651 PR middle-end/46823
14652 * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
14654 2011-01-13 Anatoly Sokolov <aesok@post.ru>
14656 * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
14657 LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
14658 * config/xtensa/xtensa.c (xtensa_libcall_value,
14659 xtensa_function_value_regno_p): New functions.
14660 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
14662 2011-01-13 Kai Tietz <kai.tietz@onevision.com>
14665 * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
14667 * config/i386/i386-protos.h (i386_pe_assemble_visibility):
14668 New function prototype.
14669 * config/i386/winnt.c (i386_pe_assemble_visibility):
14670 Warn only if attribute was specified by user.
14672 2011-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
14675 * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
14677 (floatunsdidf2_fcfidu): Ditto.
14679 2011-01-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14681 * config/s390/s390.c (print_operand_address): Replace 'error' with
14682 'output_operand_lossage'.
14683 (print_operand): Likewise.
14685 2011-01-13 Jeff Law <law@redhat.com>
14687 PR rtl-optimization/39077
14688 * doc/invoke.texi (max-gcse-insertion-ratio): Document.
14689 * params.h (MAX_GCSE_INSERTION_RATIO): Define.
14690 * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
14691 * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
14692 * gcse.c (prune_insertions_deletions): New function.
14693 (compute_pre_data): Use it.
14695 2011-01-13 Dodji Seketeli <dodji@redhat.com>
14698 * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
14700 (prune_unused_types_mark): Use it.
14702 2011-01-13 Andrey Belevantsev <abel@ispras.ru>
14704 PR rtl-optimization/45352
14705 * sel-sched.c: Update copyright years.
14706 (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
14707 in the advancing loop when we have issued issue_rate insns.
14709 2011-01-12 Richard Henderson <rth@redhat.com>
14711 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
14712 (TARGET_MD_ASM_CLOBBERS): New.
14714 * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
14715 (TARGET_DELEGITIMIZE_ADDRESS): New.
14717 * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
14718 (clzsi2, *bsch): New patterns.
14720 * config/mn10300/mn10300.md (INT): New mode iterator.
14721 (*mov<INT>_clr): New pattern, and peep2 to generate it.
14723 * config/mn10300/mn10300.c (mn10300_option_override): Force enable
14724 flag_split_wide_types.
14726 * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
14727 (mn10300_trampoline_init): Rewrite without a template, an immediate
14728 load and a direct branch.
14729 * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
14731 2011-01-12 Anatoly Sokolov <aesok@post.ru>
14733 * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
14734 * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
14735 * config/s390/s390.c (s390_output_addr_const_extra): Make static.
14736 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
14738 2011-01-12 Kai Tietz <kai.tietz@onevision.com>
14741 * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
14744 2011-01-12 Jan Hubicka <jh@suse.cz>
14747 * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
14748 (PLUGIN_COND_CLOSE): New macro.
14749 (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
14751 2011-01-12 Richard Guenther <rguenther@suse.de>
14754 * lto-streamer-out.c (output_gimple_stmt): Do not wrap
14755 register variables in a MEM_REF.
14757 2011-01-12 Joseph Myers <joseph@codesourcery.com>
14759 * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
14760 crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
14761 hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
14762 i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
14763 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
14764 x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
14765 ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
14766 m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
14767 mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
14768 s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
14769 sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
14770 am33_2.0-*-linux*): Use gnu-user.h before linux.h.
14771 * config/gnu-user.h: New. Copied from linux.h.
14772 (LINUX_TARGET_STARTFILE_SPEC): Rename to
14773 GNU_USER_TARGET_STARTFILE_SPEC.
14774 (LINUX_TARGET_ENDFILE_SPEC): Rename to
14775 GNU_USER_TARGET_ENDFILE_SPEC.
14776 (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
14777 (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
14778 (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
14779 LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
14780 CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
14781 UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
14782 BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
14783 BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
14784 LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
14785 TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
14786 * config/arm/linux-eabi.h (CC1_SPEC): Use
14787 GNU_USER_TARGET_CC1_SPEC.
14788 (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
14789 (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
14790 (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
14791 * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
14792 LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
14793 LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
14794 CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
14795 LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
14797 2011-01-12 Richard Guenther <rguenther@suse.de>
14800 * doc/invoke.texi (ffast-math): Document it is turned on
14803 2011-01-12 Jan Hubicka <jh@suse.cz>
14805 PR tree-optimization/47233
14806 * opts.c (common_handle_option): Disable ipa-reference with profile
14809 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
14811 * c-parser.c (c_parser_objc_at_property_declaration): Improved
14814 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
14816 * c-parser.c (c_lex_one_token): Updated and reindented some
14817 comments. No changes in code.
14819 2011-01-11 Ian Lance Taylor <iant@google.com>
14821 * godump.c (go_output_var): Don't output the variable if there is
14822 already a type with the same name.
14824 2011-01-11 Ian Lance Taylor <iant@google.com>
14826 * godump.c (go_format_type): Don't generate float80.
14828 2011-01-11 Richard Henderson <rth@redhat.com>
14830 * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
14831 declaration. Rewrite for both speed and size.
14832 (mn10300_address_cost_1): Remove.
14833 (mn10300_register_move_cost): New.
14834 (mn10300_memory_move_cost): New.
14835 (mn10300_rtx_costs): Rewrite for both speed and size. Don't handle
14836 ZERO_EXTRACT. Do handle UNSPEC, arithmetic, logicals, compare,
14837 extensions, shifts, BSWAP, CLZ.
14838 (mn10300_wide_const_load_uses_clr): Remove.
14839 (TARGET_REGISTER_MOVE_COST): New.
14840 (TARGET_MEMORY_MOVE_COST): New.
14841 * config/mn10300/mn10300-protos.h: Update.
14842 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
14844 * config/mn10300/constraints.md ("R", "T"): Remove constraints.
14845 * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
14846 * config/mn10300/mn10300-protos.h: Update.
14847 * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
14848 (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
14849 (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
14850 (*test_int_bitfield, *test_byte_bitfield): Remove.
14851 (*bit_test, *subreg_bit_test): Remove.
14852 * config/mn10300/predicates.md (const_8bit_operand): Remove.
14854 * config/mn10300/constraints.md ("c"): Rename from "A".
14855 ("A", "D"): New constraint letters.
14856 * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
14857 (fmssf4, fnmasf4, fnmssf4): Likewise.
14859 * config/mn10300/mn10300.md (isa): New attribute.
14860 (enabled): New attribute.
14862 * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
14863 (abssf2, negsf2): Define only for hardware fp.
14864 (sqrtsf2): Reformat.
14865 (addsf3, subsf3, mulsf3): Merge expander and insn.
14867 * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
14868 (DEBUGGER_AUTO_OFFSET): Remove.
14869 (DEBUGGER_ARG_OFFSET): Remove.
14871 * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
14872 Emit register stores with the same offsets as the hardware.
14873 (mn10300_store_multiple_operation): Don't check that the register
14874 save offsets are monotonic.
14875 * config/mn10300/mn10300-protos.h: Update.
14877 * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
14879 * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
14880 in terms of the value on the stack, not the MDR register.
14882 2011-01-11 Jan Hubicka <jh@suse.cz>
14886 * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
14887 (symbol_alias_set_destroy, symbol_alias_set_contains,
14888 propagate_aliases_backward): Declare.
14889 * lto-streamer-out.c (struct sets): New sturcture.
14890 (trivally_defined_alias): New function.
14891 (output_alias_pair_p): Rewrite.
14892 (output_unreferenced_globals): Fix output of alias pairs.
14893 (produce_symtab): Likewise.
14894 * ipa.c (function_and_variable_visibility): Set weak alias destination
14896 * varasm.c (symbol_alias_set_t): Remove.
14897 (symbol_alias_set_destroy): Export.
14898 (propagate_aliases_forward, propagate_aliases_backward): New functions
14900 (compute_visible_aliases): ... this one; remove.
14901 (trivially_visible_alias): New
14902 (trivially_defined_alias): New.
14903 (remove_unreachable_alias_pairs): Rewrite.
14904 (finish_aliases_1): Reorganize code checking if alias is defined.
14905 * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
14908 2011-01-11 Richard Guenther <rguenther@suse.de>
14910 PR tree-optimization/46076
14911 * tree-ssa.c (useless_type_conversion_p): Conversions from
14912 unprototyped to empty argument list function types are useless.
14914 2011-01-11 Richard Guenther <rguenther@suse.de>
14916 PR middle-end/45235
14917 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
14918 volatile MEMs as MEM_READONLY_P.
14920 2011-01-11 Richard Guenther <rguenther@suse.de>
14922 PR tree-optimization/47239
14923 * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
14925 2011-01-11 Jeff Law <law@redhat.com>
14927 PR tree-optimization/47086
14928 * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
14929 IVs from statements that might throw.
14931 2011-01-10 Jan Hubicka <jh@suse.cz>
14934 * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
14936 2011-01-10 Jan Hubicka <jh@suse.cz>
14939 * profile.c (read_profile_edge_counts): Ignore profile inconistency
14940 when correcting profile.
14942 2011-01-10 Jan Hubicka <jh@suse.cz>
14945 * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
14946 DECL_FINI_PRIORITY.
14947 * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
14948 Restore DECL_FINI_PRIORITY.
14950 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14952 * doc/gimple.texi: Fix quoting of multi-word return values in
14953 @deftypefn statements. Ensure presence of return value. Wrap
14954 overlong @deftypefn lines.
14955 (is_gimple_operand, is_gimple_min_invariant_address): Remove
14956 descriptions of removed functions.
14957 * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
14958 of multi-word return value in @deftypefn statement.
14960 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14962 * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
14963 (Conditional Expressions, Logical Operators)
14964 (Statement and operand traversals): Do not indent smallexample
14965 code. Fix duplicate function argument in example.
14967 2011-01-10 Jeff Law <law@redhat.com>
14969 PR tree-optimization/47141
14970 * ipa-split.c (split_function): Handle case where we are
14971 returning a value and the return block has a virtual operand phi.
14973 2011-01-10 Jan Hubicka <jh@suse.cz>
14975 PR tree-optimization/47234
14976 * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
14977 (pass_feedback_split_functions): Declare.
14978 * passes.c (init_optimization_passes): Add ipa-split as subpass of
14980 * ipa-split.c (gate_split_functions): Update comments; disable
14981 split-functions for profile_arc_flag and branch_probabilities.
14982 (gate_feedback_split_functions): New function.
14983 (execute_feedback_split_functions): New function.
14984 (pass_feedback_split_functions): New global var.
14986 2011-01-10 H.J. Lu <hongjiu.lu@intel.com>
14989 * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
14990 calling gimple_call_set_cannot_inline.
14992 2011-01-10 Iain Sandoe <iains@gcc.gnu.org>
14994 * config/darwin-sections.def: Remove unused section.
14996 2011-01-10 Dave Korn <dave.korn.cygwin@gmail.com>
14999 * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
15001 2011-01-09 Nicola Pero <nicola.pero@meta-innovation.com>
15004 * c-parser.c (c_parser_declaration_or_fndef): Improved
15007 2011-01-09 Kai Tietz <kai.tietz@onevision.com>
15009 * config/i386/winnt.c (i386_pe_start_function): Make sure
15010 to switch back to function's section.
15012 2011-01-09 Iain Sandoe <iains@gcc.gnu.org>
15016 * plugin.c: Move include of dlfcn.h from here...
15017 * system.h: ... to here.
15019 2011-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15021 * doc/cpp.texi (C++ Named Operators): Fix markup for header
15023 * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
15024 two extra empty pages in PDF output.
15026 2011-01-08 Nicola Pero <nicola.pero@meta-innovation.com>
15029 * c-parser.c (c_parser_objc_type_name): If the type is unknown,
15030 for error recovery purposes behave as if it was not specified so
15031 that the default type is usd.
15033 2011-01-07 Jan Hubicka <jh@suse.cz>
15035 PR tree-optmization/46469
15036 * ipa.c (function_and_variable_visibility): Clear needed flags on
15037 nodes with external decls; handle weakrefs merging correctly.
15039 2011-01-07 Joseph Myers <joseph@codesourcery.com>
15041 * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
15044 2011-01-07 Jan Hubicka <jh@suse.cz>
15046 * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
15047 and no longer claim that gold is required for linker plugin.
15048 * configure: Regenerate.
15049 * gcc.c (PLUGIN_COND): New macro.
15050 (LINK_COMMAND_SPEC): Use it.
15051 (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
15052 * config.in (HAVE_LTO_PLUGIN): New.
15053 * configure.ac (--with-lto-plugin): New parameter; autodetect
15056 2011-01-07 Jan Hubicka <jh@suse.cz>
15058 PR tree-optimization/46367
15059 * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
15060 when we can update original.
15061 (cgraph_mark_inline_edge): Sanity check.
15062 * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
15064 2011-01-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15066 * config/spu/spu.h (ASM_COMMENT_START): Define.
15068 2011-01-07 H.J. Lu <hongjiu.lu@intel.com>
15071 * gcc.c (%>S): New.
15072 (SWITCH_KEEP_FOR_GCC): Likewise.
15073 (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
15074 (do_spec_1): Handle "%>".
15076 * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
15078 2011-01-07 Jakub Jelinek <jakub@redhat.com>
15081 * config/i386/i386.c (ix86_delegitimize_address): If
15082 simplify_gen_subreg fails, return orig_x.
15085 * value-prof.c (gimple_stringop_fixed_value): Handle
15086 lhs of the call properly.
15088 2011-01-07 Jan Hubicka <jh@suse.cz>
15091 * lto-opt.c (lto_reissue_options): Set flag_shlib.
15093 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
15095 * target.def (function_switched_text_sections): New hook.
15096 * doc/tm.texi: Regenerated.
15097 * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
15098 * final.c (default_function_switched_text_sections): New.
15099 (final_scan_insn): Call function_switched_text_sections when a
15100 mid-function section change occurs.
15101 * output.h (default_function_switched_text_sections): Declare.
15102 * config/darwin-protos.h (darwin_function_switched_text_sections):
15104 * config/darwin.c (darwin_function_switched_text_sections): New.
15105 * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
15107 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
15109 * dwarf2out.c (gen_subprogram_die): Add pubnames with code ranges for
15110 DWARF >= 3. Add pubnames for the primary section and a reduced DIE for
15111 the secondary code fragment when outputting for DWARF == 2.
15113 2011-01-07 Anatoly Sokolov <aesok@post.ru>
15115 * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
15116 * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
15118 * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
15119 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
15121 2011-01-06 Eric Botcazou <ebotcazou@adacore.com>
15124 * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
15125 when it is not empty.
15127 2011-01-06 Changpeng Fang <changpeng.fang@amd.com>
15130 * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
15131 (case ${target}): Add btver1.
15132 * config/i386/driver-i386.c (host_detect_local_cpu): Let
15133 -march=native recognize btver1 processors.
15134 * config/i386/i386-c.c (ix86_target_macros_internal): Add
15135 btver1 def_and_undef
15136 * config/i386/i386.c (struct processor_costs btver1_cost): New
15138 (m_BTVER1): New definition.
15139 (m_AMD_MULTIPLE): Includes m_BTVER1.
15140 (initial_ix86_tune_features): Add btver1 tune.
15141 (processor_target_table): Add btver1 entry.
15142 (static const char *const cpu_names): Add btver1 entry.
15143 (software_prefetching_beneficial_p): Add btver1.
15144 (ix86_option_override_internal): Add btver1 instruction sets.
15145 (ix86_issue_rate): Add btver1.
15146 (ix86_adjust_cost): Add btver1.
15147 * config/i386/i386.h (TARGET_BTVER1): New definition.
15148 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
15149 (enum processor_type): Add PROCESSOR_BTVER1.
15150 * config/i386/i386.md (define_attr "cpu"): Add btver1.
15152 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15155 * config/i386/i386.c (legitimize_tls_address)
15156 <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
15157 * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
15158 (tls_initial_exec_64_sun): New pattern.
15160 2011-01-06 Gerald Pfeifer <gerald@pfeifer.com>
15162 * doc/invoke.texi (Overall Options): Improve wording and markup
15163 of the description of -wrapper.
15165 2011-01-06 Joseph Myers <joseph@codesourcery.com>
15167 * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
15168 rdynamic, threads): New Driver options.
15170 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15173 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
15174 if coming from .tdata.
15175 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
15177 2011-01-06 Jan Hubicka <jh@suse.cz>
15180 * collect2.c (main): Do not enable LTOmode when plugin is active.
15182 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15185 * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
15186 --version output if supported.
15187 * configure: Regenerate.
15189 2011-01-06 Joseph Myers <joseph@codesourcery.com>
15191 * config/linux-android.opt (tno-android-cc, tno-android-ld): New
15194 2011-01-06 Jakub Jelinek <jakub@redhat.com>
15197 * c-convert.c (convert): When converting a complex expression
15198 other than COMPLEX_EXPR to a different complex type, ensure
15199 c_save_expr is called instead of save_expr, unless in_late_binary_op.
15200 * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
15201 when converting COMPLEX_TYPE.
15203 2011-01-06 Ira Rosen <irar@il.ibm.com>
15205 PR tree-optimization/47139
15206 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
15207 only the last reduction value is used outside the loop. Update
15210 2011-01-05 Joseph Myers <joseph@codesourcery.com>
15212 * config/rtems.opt: New.
15213 * config.gcc (*-*-rtems*): Use rtems.opt.
15215 2011-01-05 Changpeng Fang <changpeng.fang@amd.com>
15217 * config/i386/i386.c (ix86_option_override_internal): Bulldozer
15218 processors do not support 3DNow instructions.
15220 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15222 * config/spu/spu.c (spu_option_override): Set parameter
15223 PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
15225 2011-01-05 Jan Hubicka <jh@suse.cz>
15227 * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
15228 at the command line.
15230 2011-01-05 Martin Jambor <mjambor@suse.cz>
15233 * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
15234 deltas on streamed outgoing edges.
15235 (output_node_opt_summary): Output info for outgoing edges only when
15236 the node is in new parameter set.
15237 (output_cgraph_opt_summary): New parameter set, passed to the two
15238 aforementioned functions. Update its forward declaration and its
15241 2011-01-05 Tom Tromey <tromey@redhat.com>
15243 * c-parser.c (c_parser_omp_atomic): Pass location of assignment
15244 operator to c_finish_omp_atomic.
15245 * c-typeck.c (lvalue_or_else): Add 'loc' argument.
15246 (build_unary_op): Update.
15247 (build_modify_expr): Update.
15248 (build_asm_expr): Update.
15250 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15252 * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
15253 newly inserted insns.
15254 (pad_bb): Likewise.
15255 (spu_emit_branch_hint): Likewise.
15256 (insert_hbrp_for_ilb_runout): Likewise.
15257 (spu_machine_dependent_reorg): Call df_finish_pass after
15258 schedule_insns returns.
15260 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15262 * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
15264 2011-01-05 Eric Botcazou <ebotcazou@adacore.com>
15266 PR tree-optimization/47005
15267 * tree-sra.c (struct access): Add 'non_addressable' bit.
15268 (create_access): Set it for a DECL_NONADDRESSABLE_P field.
15269 (decide_one_param_reduction): Return 0 if the parameter is passed by
15270 reference and one of the accesses in the group is non_addressable.
15272 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
15274 PR tree-optimization/47056
15275 * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
15276 (mark_load): Likewise. Handle FUNCTION_DECL specially.
15277 (mark_store): Likewise. Pass STMT to ipa_record_reference.
15279 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
15281 * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
15282 initializer. Skip view conversions from aggregate types.
15284 2011-01-04 Kai Tietz <kai.tietz@onevision.com>
15287 * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
15289 2011-01-04 Philipp Thomas <pth@suse.de>
15291 * config/microblaze/microbalse.opt (mxl-float-convert): Fix
15294 2011-01-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15296 * function.c (thread_prologue_and_epilogue_insns): Do not crash
15297 on empty epilogue sequences.
15299 2011-01-04 Joseph Myers <joseph@codesourcery.com>
15301 * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
15302 non-static): New Driver options.
15304 2011-01-04 Jie Zhang <jie@codesourcery.com>
15307 * gcc.c (default_compilers[]): Set combinable field to 0
15308 for all assembly languages.
15310 2011-01-04 Mingjie Xing <mingjie.xing@gmail.com>
15312 * config/mips/loongson3a.md: New file.
15313 * config/mips/mips.md: Include loongson3a.md.
15314 * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
15317 2011-01-03 Eric Botcazou <ebotcazou@adacore.com>
15319 PR middle-end/47017
15320 * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
15321 instead of convert_memory_address_addr_space on the base expression.
15323 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15325 * config/spu/spu.c (spu_option_override): Update error text
15326 for bad -march= / -mtune= values.
15328 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15330 * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
15331 if branch-hint optimization will be performed.
15333 2011-01-03 Jakub Jelinek <jakub@redhat.com>
15335 PR tree-optimization/47148
15336 * ipa-split.c (split_function): Convert arguments to
15337 DECL_ARG_TYPE if possible.
15339 PR tree-optimization/47155
15340 * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
15341 when computing uns.
15343 PR rtl-optimization/47157
15344 * combine.c (try_combine): If undobuf.other_insn becomes
15345 (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
15346 and set *new_direct_jump_p too.
15348 2011-01-03 Sebastian Pop <sebastian.pop@amd.com>
15350 PR tree-optimization/47021
15351 * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
15353 2011-01-03 Jakub Jelinek <jakub@redhat.com>
15355 * gcc.c (process_command): Update copyright notice dates.
15356 * gcov.c (print_version): Likewise.
15357 * gcov-dump.c (print_version): Likewise.
15358 * mips-tfile.c (main): Likewise.
15359 * mips-tdump.c (main): Likewise.
15361 2011-01-03 Martin Jambor <mjambor@suse.cz>
15363 PR tree-optimization/46801
15364 * tree-sra.c (type_internals_preclude_sra_p): Check whether
15365 aggregate fields start at byte boundary instead of the bit-field flag.
15367 2011-01-03 H.J. Lu <hongjiu.lu@intel.com>
15370 * gcc.c (main): Revert revision 168407.
15372 2011-01-03 Martin Jambor <mjambor@suse.cz>
15374 * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
15376 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15378 * tree-vect-generic.c (expand_vector_operations_1): When using vector/
15379 vector optab to expand vector/scalar shift, update gimple to vector.
15381 2011-01-03 Martin Jambor <mjambor@suse.cz>
15383 * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
15386 2011-01-03 Martin Jambor <mjambor@suse.cz>
15388 PR tree-optimization/46984
15389 * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
15391 (cgraph_create_indirect_edge): Fixed line length.
15392 (cgraph_indirect_call_info): Declare.
15393 (cgraph_make_edge_direct) Update declaration.
15394 * cgraph.c (cgraph_allocate_init_indirect_info): New function.
15395 (cgraph_create_indirect_edge): Use it.
15396 (cgraph_make_edge_direct): Made delta HOST_WIDE_INT. Updated all
15398 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
15399 the new thunk_delta representation.
15400 * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
15402 (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
15403 (ipa_read_indirect_edge_info): Likewise.
15404 * lto-cgraph.c (output_edge_opt_summary): New function.
15405 (output_node_opt_summary): Call it on all outgoing edges.
15406 (input_edge_opt_summary): New function.
15407 (input_node_opt_summary): Call it on all outgoing edges.
15409 2011-01-02 H.J. Lu <hongjiu.lu@intel.com>
15412 * gcc.c (main): Don't check have_o when settting combine_inputs.
15414 2011-01-02 Eric Botcazou <ebotcazou@adacore.com>
15416 * regrename.c: Add general comment describing the pass.
15417 (struct du_head): Remove 'length' field.
15418 (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
15419 (regrename_optimize): Do not sort chains. Rework comments, add others.
15420 Force renaming to the preferred class (if any) in the first pass and do
15421 not consider registers that belong to it in the second pass.
15422 (create_new_chain): Do not set 'length' field.
15423 (scan_rtx_reg): Likewise.
15425 2011-01-02 Jakub Jelinek <jakub@redhat.com>
15427 PR tree-optimization/47140
15428 * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
15429 TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
15430 to bit_value_binop.
15432 PR rtl-optimization/47028
15433 * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
15434 parm_birth_insn instead of at the beginning of first bb.
15436 2011-01-02 Mingjie Xing <mingjie.xing@gmail.com>
15438 * doc/generic.texi: Remove duplicated "@subsubsection Statements".
15439 Remove the word "see" before "@pxref".
15440 * doc/rtl.texi: Remove the word "see" before "@pxref".
15442 2011-01-01 Jan Hubicka <jh@suse.cz>
15444 * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
15447 2011-01-01 Kai Tietz <kai.tietz@onevision.com>
15450 * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
15453 Copyright (C) 2011 Free Software Foundation, Inc.
15455 Copying and distribution of this file, with or without modification,
15456 are permitted in any medium without royalty provided the copyright
15457 notice and this notice are preserved.