1 2011-10-02 Paolo Carlini <paolo.carlini@oracle.com>
4 * incpath.c (merge_include_chains): Call free_path on
5 heads[QUOTE] and tails[QUOTE].
7 2011-10-02 Jan Hubicka <jh@suse.cz>
10 * lto-symtab.c (lto_symtab_resolve_symbols): Do not resolve
11 when resolution is already availbale from plugin.
12 (lto_symtab_merge_decls_1): Handle LDPR_PREVAILING_DEF_IRONLY_EXP.
13 * cgraph.c (ld_plugin_symbol_resolution): Add prevailing_def_ironly_exp.
14 * lto-cgraph.c (LDPR_NUM_KNOWN): Update.
15 * ipa.c (varpool_externally_visible_p): IRONLY variables are never
17 * varasm.c (resolution_to_local_definition_p): Add
18 LDPR_PREVAILING_DEF_IRONLY_EXP.
19 (resolution_local_p): Likewise.
21 2011-10-01 David S. Miller <davem@davemloft.net>
23 * config/sparc/sparc.opt (VIS3): New option.
24 * doc/invoke.texi: Document it.
25 * config/sparc/sparc.h: Force TARGET_VIS3 to zero if assembler is
26 not capable of such instructions.
27 * config/sparc/sparc-c.c (sparc_target_macros): Define __VIS__
28 to 0x300 when TARGET_VIS3.
29 * config/sparc/sparc-modes.def: Create 16-byte vector modes.
30 * config/sparc/sparc.md (UNSPEC_CMASK8, UNSPEC_CMASK16, UNSPEC_CMASK32,
31 UNSPEC_FCHKSM16, UNSPEC_PDISTN, UNSPC_FUCMP): New unspecs.
32 (V64N8, VASS): New mode iterators.
33 (vis3_shift, vis3_addsub_ss): New code iterators.
34 (vbits, vconstr): New mode attributes.
35 (vis3_shift_insn, vis3_addsub_ss_insn): New code attributes.
36 (cmask8<P:mode>_vis, cmask16<P:mode>_vis, cmask32<P:mode>_vis,
37 fchksm16_vis, <vis3_shift_insn><vbits>_vis, pdistn<mode>_vis,
38 fmean16_vis, fpadd64_vis, fpsub64_vis, <vis3_addsub_ss_insn><vbits>_vis,
39 fucmp<code>8<P:mode>_vis): New VIS 3.0 instruction patterns.
40 * config/sparc/sparc.c (sparc_option_override): Set MASK_VIS3 by
41 default when targetting capable cpus. TARGET_VIS3 implies
42 TARGET_VIS2 and TARGET_VIS, and clear them when TARGET_FPU is
44 (sparc_vis_init_builtins): Emit new VIS 3.0 builtins.
45 (sparc_fold_builtin): Do not eliminate cmask{8,16,32} when result
47 * config/sparc/visintrin.h (__vis_cmask8, __vis_cmask16,
48 __vis_cmask32, __vis_fchksm16, __vis_fsll16, __vis_fslas16,
49 __vis_fsrl16, __vis_fsra16, __vis_fsll32, __vis_fslas32,
50 __vis_fsrl32, __vis_fsra32, __vis_pdistn, __vis_fmean16,
51 __vis_fpadd64, __vis_fpsub64, __vis_fpadds16, __vis_fpadds16s,
52 __vis_fpsubs16, __vis_fpsubs16s, __vis_fpadds32, __vis_fpadds32s,
53 __vis_fpsubs32, __vis_fpsubs32s, __vis_fucmple8, __vis_fucmpne8,
54 __vis_fucmpgt8, __vis_fucmpeq8): New VIS 3.0 interfaces.
55 * doc/extend.texi: Document new VIS 3.0 builtins.
57 2011-10-01 Eric Botcazou <ebotcazou@adacore.com>
59 * ira-color.c (assign_hard_reg): Fix typo.
61 2011-09-30 H.J. Lu <hongjiu.lu@intel.com>
63 * doc/extend.texi: Add missing ','.
65 2011-09-30 Bernd Schmidt <bernds@codesourcery.com>
67 * common/config/c6x/c6x-common.c (c6x_option_optimization_table):
68 Enable -fmodulo-sched at -O2 and above.
69 * config/c6x/c6x.md (doloop_end): New expander.
70 (mvilc, sploop, spkernel, loop_end): New patterns.
71 (loop_end with memory destination splitter): New.
72 * config/c6x/c6x.c: Include "hw-doloop.h".
74 (unit_req_table): New typedef.
75 (unit_reqs): New static variable.
76 (unit_req_factor, get_unit_reqs, count_unit_reqs, merge_unit_reqs,
77 res_mii, split_delayed_nonbranch, undo_split_delayed_nonbranch,
78 hwloop_pattern_reg, bb_earliest_end_cycle, filter_insns_above,
79 hwloop_optimize, hwloop_fail, c6x_hwloops): New static functions.
80 (struct c6x_sched_context): New member last_scheduled_iter0.
81 (init_sched_state): Initialize it.
82 (c6x_variable_issue): Update it.
83 (sploop_max_uid_iter0): New static variable.
84 (c6x_sched_reorder_1): Be careful about issuing sploop.
85 (c6x_reorg): Call c6x_hwlooops before the final schedule.
87 2011-09-30 Georg-Johann Lay <avr@gjlay.de>
90 * config/avr/avr-protos.h (avr_log_t): New field address_cost.
91 * config/avr/avr.c (avr_address_cost): Use it.
92 * config/avr/avr-log.c (avr_log_set_avr_log): Initialize it.
93 (avr_log_vadump): Unknown %-codes finish printing.
95 2011-09-30 Jakub Jelinek <jakub@redhat.com>
98 * gimple-fold.c (fold_stmt_1) <case GIMPLE_ASM>: If
99 input constraints allow mem and not reg, pass true instead of
100 false as second argument to maybe_fold_reference.
102 PR tree-optimization/46309
103 * fold-const.c (make_range, merge_ranges): Remove prototypes.
104 (make_range_step): New function.
105 (make_range): Use it.
106 * tree.h (make_range_step): New prototypes.
107 * Makefile.in (tree-ssa-reassoc.o): Depend on $(DIAGNOSTIC_CORE_H).
108 * tree-ssa-reassoc.c: Include diagnostic-core.h.
109 (struct range_entry): New type.
110 (init_range_entry, range_entry_cmp, update_range_test,
111 optimize_range_tests): New functions.
112 (reassociate_bb): Call optimize_range_tests.
114 2011-09-30 Jakub Jelinek <jakub@redhat.com>
115 Richard Guenther <rguenther@suse.de>
117 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Handle
118 BUILT_IN_STRDUP and BUILT_IN_STRNDUP.
119 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Likewise. Fix
120 handling of BUILT_IN_STRNCAT and BUILT_IN_STRNCAT_CHK.
121 (ref_maybe_used_by_call_p_1): Fix handling of BUILT_IN_STRCAT,
122 BUILT_IN_STRNCAT, BUILT_IN_STRCAT_CHK and BUILT_IN_STRNCAT_CHK.
124 2011-09-30 Jan Beulich <jbeulich@suse.com>
126 * lto-cgraph.c (output_cgraph): Remove processing of
127 'cgraph_asm_nodes', call lto_output_toplevel_asms() instead.
128 (input_cgraph_1): Remove loop calling cgraph_add_asm_node(), call
129 lto_input_toplevel_asms() instead.
130 * lto-section-in.c (lto_section_name): Add "asm" entry.
131 * lto-streamer-in.c (lto_input_toplevel_asms): New.
132 * lto-streamer-out.c (lto_output_toplevel_asms): New.
133 * lto-streamer.h (LTO_minor_version): Bump.
134 (enum lto_section_type): Add LTO_section_asm.
135 (struct lto_asm_header): New.
136 (lto_input_toplevel_asms, lto_output_toplevel_asms): Declare.
137 * tree-streamer.h (streamer_write_string_cst): Declare.
138 * tree-streamer-out.c (write_string_cst): Rename to
139 streamer_write_string_cst and make global. Handle incoming string
141 (streamer_write_tree_header): Adjust call to renamed function.
143 2011-09-30 Bernd Schmidt <bernds@codesourcery.com>
145 * haifa-sched.c (modulo_ii, modulo_max_states, modulo_n_insns,
146 modulo_insns_scheduled, modulo_iter0_max_uid, modulo_backtracks_left,
147 modulo_last_stage): New static variables.
148 (set_modulo_params, discard_delay_pairs_above): New functions.
149 (struct delay_pair): New member stages.
150 (htab_i2_traverse, htab_i1_traverse): New static functions.
151 (record_delay_slot_pair): New arg stages. All callers changed.
153 (pair_delay): Take stages into account.
154 (add_delay_dependencies): Don't do so for stage pairs.
155 (struct sched_block_state): New member modulo_epilogue.
156 (save_backtrack_point): Don't set SHADOW_P for stage pairs.
157 (unschedule_insns_until): Decrease modulo_insns_scheduled.
158 Set HARD_DEP without using or.
159 (resolve_dependencies): New static function.
160 (prune_ready_list): New arg modulo_epilogue_p. All callers changed.
161 If it is true, allow only insns with INSN_EXACT_TICK set.
162 (schedule_block): Return bool, always true for normal scheduling,
163 true or false depending on modulo scheduling success otherwise.
164 Add bookkeeping for modulo scheduling, and call resolve_dependencies
165 on everything left over after a modulo schedule.
166 (haifa_sched_init): Remove check_cfg call. Clear modulo_ii.
167 * sched-int.h (schedule_block, record_delay_slot_pair): Adjust
169 (set_modulo_params, discard_delay_pairs_above): Declare.
170 * params.def (PARAM_MAX_MODULO_BACKTRACK_ATTEMPS): New.
171 * doc/invoke.texi (--param): Document it.
173 * sched-ebb.c (schedule_ebb): No longer static. Remove declaration.
174 New arg modulo_scheduling. All callers changed. Move note handling
175 code here from schedule_ebbs.
176 (schedule_ebbs_finish, schedule_ebbs_init): New functions, broken
177 out of schedule_ebbs.
178 (schedule_ebbs): Call them. Remove note handling code moved to
180 * sched-int.h (schedule_ebb, schedule_ebbs_init,
181 schedule_ebbs_finish): Declare.
183 2011-09-30 Richard Guenther <rguenther@suse.de>
186 * tree-cfg.c (verify_gimple_comparison): Compare component
187 mode sizes for vector comparisons.
189 2011-09-30 Revital Eres <revital.eres@linaro.org>
191 * ddg.c (autoinc_var_is_used_p): New function.
192 (create_ddg_dep_from_intra_loop_link,
193 add_cross_iteration_register_deps): Call it.
194 * ddg.h (autoinc_var_is_used_p): Declare.
195 * modulo-sched.c (generate_reg_moves): Call autoinc_var_is_used_p.
196 (sms_schedule): Handle instructions with REG_INC.
198 2011-09-30 Revital Eres <revital.eres@linaro.org>
200 * modulo-sched.c (generate_reg_moves): Skip instructions that
201 do not set a register and verify no regmoves are created for
202 !single_set instructions.
204 2011-09-30 Bernd Schmidt <bernds@codesourcery.com>
206 * hw-doloop.c (scan_loop): Compute register usage only for non-debug
209 2011-09-30 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
212 * config/arm/iterators.md (qhs_zextenddi_cstr): New.
213 (qhs_zextenddi_op): New.
214 * config/arm/arm.md ("zero_extend<mode>di2"): Use them.
215 * config/arm/predicates.md ("arm_extendqisi_mem_op"):
216 Distinguish between ARM and Thumb2 states.
218 2011-09-30 David S. Miller <davem@davemloft.net>
220 * config/sparc/sparc.opt (VIS2): New option.
221 * doc/invoke.texi: Document it.
222 * config/sparc/sparc.md (UNSPEC_EDGE8N, UNSPEC_EDGE8LN,
223 UNSPEC_EDGE16N, UNSPEC_EDGE16LN, UNSPEC_EDGE32N,
224 UNSPEC_EDGE32LN, UNSPEC_BSHUFFLE): New unspecs.
225 (define_attr type): New insn type 'edgen'.
226 (bmask<P:mode>_vis, bshuffle<V64I:mode>_vis, edge8n<P:mode>_vis,
227 edge8ln<P:mode>_vis, edge16n<P:mode>_vis, edge16ln<P:mode>_vis,
228 edge32n<P:mode>_vis, edge32ln<P:mode>_vis): New insn VIS 2.0
230 * niagara.md: Handle edgen.
231 * niagara2.md: Likewise.
232 * ultra1_2.md: Likewise.
233 * ultra3.md: Likewise.
234 * config/sparc/sparc-c.c (sparc_target_macros): Define __VIS__
235 to 0x200 when TARGET_VIS2.
236 * config/sparc/sparc.c (sparc_option_override): Set MASK_VIS2 by
237 default when targetting capable cpus. TARGET_VIS2 implies
238 TARGET_VIS, clear and it when TARGET_FPU is disabled.
239 (sparc_vis_init_builtins): Emit new VIS 2.0 builtins.
240 (sparc_expand_builtin): Fix predicate indexing when builtin returns
242 (sparc_fold_builtin): Do not eliminate bmask when result is ignored.
243 * config/sparc/visintrin.h (__vis_bmask, __vis_bshuffledi,
244 __vis_bshufflev2si, __vis_bshufflev4hi, __vis_bshufflev8qi,
245 __vis_edge8n, __vis_edge8ln, __vis_edge16n, __vis_edge16ln,
246 __vis_edge32n, __vis_edge32ln): New VIS 2.0 interfaces.
247 * doc/extend.texi: Document new VIS 2.0 builtins.
249 2011-09-29 Nick Clifton <nickc@redhat.com>
250 Bernd Schmidt <bernds@codesourcery.com>
252 * config/frv/frvbegin.c: Fix location of unwind-dw2-fde.h header
254 * config/frv/frvend.c: Likewise.
255 * config/frv/frv.c (frv_function_prologue): Move misplaced
256 CALL_ARG_LOCATION notes back to their proper locations.
258 2011-09-29 Georg-Johann Lay <avr@gjlay.de>
261 * config/avr/avr-log.c (avr_log_vadump): Use %b to print bool.
262 * config/avr/avr.c (avr_rtx_costs_1): New static function, renamed
264 (avr_legitimate_address_p): Use avr_edump to print log information
266 (extra_constraint_Q): Ditto.
267 (avr_legitimize_address): Ditto.
268 (avr_rtx_costs): Ditto. Rewrite as wrapper for avr_rtx_costs_1.
269 (final_prescan_insn): Use avr_log.rtx_costs as filter.
271 2011-09-29 Richard Sandiford <richard.sandiford@linaro.org>
273 * config/arm/arm-protos.h (arm_modes_tieable_p): Declare.
274 * config/arm/arm.h (MODES_TIEABLE_P): Use it.
275 * config/arm/arm.c (arm_modes_tieable_p): New function. Allow
276 NEON vector and structure modes to be tied.
278 2011-09-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
280 * graphite-scop-detection.c (make_close_phi_nodes_unique): New
282 (remove_duplicate_close_phi): Detect and repair creation of
283 duplicate close-phis for a containing loop.
285 2011-09-27 Andi Kleen <ak@linux.intel.com>
287 * gcc.c (get_local_tick). Rename to get_random_number.
288 Read from /dev/urandom.
290 (compare_debug_dump_opt_spec_function): Drop getpid call.
292 2011-09-26 Andi Kleen <ak@linux.intel.com>
294 * toplev.c (init_local_tick): Try reading random seed from /dev/urandom
296 2011-09-26 Andi Kleen <ak@linux.intel.com>
298 * hwint.h (HOST_WIDE_INT_PRINT_HEX_PURE): Add.
299 * lto-streamer.c (lto_get_section_name): Remove crc32_string.
300 Handle numerical random seed.
301 * lto-streamer.h (lto_file_decl_data): Change id to unsigned HOST_WIDE_INT.
302 * toplev.c (random_seed): Add.
303 (init_random_seed): Change for numerical random seed.
304 (get_random_seed): Return as HOST_WIDE_INT.
305 (set_random_seed): Crc32 existing string.
306 * toplev.h (get_random_seed): Change to numercal return.
307 * tree.c (get_file_function_name): Remove CRC. Handle numerical random seed.
309 2011-09-29 Georg-Johann Lay <avr@gjlay.de>
312 * config.gcc (extra_objs): Add avr-log.o for $target in:
313 avr-*-rtems*, avr-*-*.
314 * config/avr/t-avr (avr-log.o): New rule to compile...
315 * config/avr/avr-log.c: ...this new file.
316 * config/avr/avr.opt (mlog=): New option.
317 * config/avr/avr-protos.h (avr_edump, avr_fdump): New macros.
318 (avr_log_set_caller_e, avr_log_set_caller_f): New prototypes.
319 (avr_log_set_avr_log): New prototype.
320 (avr_log_t): New typedef.
321 (avr_log): New declaration.
322 * config/avr/avr.c (avr_option_override): Call avr_log_set_avr_log.
324 2011-09-29 Artjoms Sinkarovs <artyom.shinkaroff@gmail.com>
326 * expr.c (do_store_flag): Expand vector comparison by
327 building an appropriate VEC_COND_EXPR.
328 * c-typeck.c (build_binary_op): Typecheck vector comparisons.
329 (c_objc_common_truthvalue_conversion): Adjust.
330 * tree-vect-generic.c (do_compare): Helper function.
331 (expand_vector_comparison): Check if hardware supports
332 vector comparison of the given type or expand vector
334 (expand_vector_operation): Treat comparison as binary
335 operation of vector type.
336 (expand_vector_operations_1): Adjust.
338 2011-09-29 Richard Guenther <rguenther@suse.de>
340 * tree.c (build_opaque_vector_type): Make opaque vectors
341 variant types of the corresponding non-opaque type. Make
342 sure to share opaque vector types properly.
344 2011-09-29 David S. Miller <davem@davemloft.net>
346 * config/sparc/sparc.md (UNSPEC_ARRAY8, UNSPEC_ARRAY16,
347 UNSPEC_ARRAY32): New unspec.
348 (define_attr type): New type 'array'.
349 (array{8,16,32}<P:mode>_vis): New patterns.
350 * config/sparc/ultra1_2.md: Add reservations for 'array'.
351 * config/sparc/ultra3.md: Likewise.
352 * config/sparc/niagara.md: Likewise.
353 * config/sparc/niagara2.md: Likewise.
354 * config/sparc/sparc.c (sparc_vis_init_builtins): Build new
356 * config/sparc/visintrin.h (__vis_array8, __vis_array16,
358 * doc/extend.texi: Document new VIS builtins.
360 * config/sparc/sparc.md (gcond_name): Delete unnecessary code attr.
361 (VIS pixel-compare insn): Just use <gcond:name>.
363 * config/sparc/sparc.md (VIS pixel-compare insn): There is only one
364 code iterator used, so just use <code>. There are two mode iterators
365 so explicitly use <GCM:gcm_name>.
367 2011-09-29 Iain Sandoe <iains@gcc.gnu.org>
369 * config/darwin9.h (STACK_CHECK_STATIC_BUILTIN): Enable for
372 2011-09-28 David S. Miller <davem@davemloft.net>
374 * config/sparc/sparc.md (UNSPEC_FCMPLE, UNSPEC_FCMPNE,
375 UNSPEC_FCMPGT, UNSPEC_FCMPEQ): Delete and reduce to...
376 (UNSPEC_FCMP): New unspec.
377 (gcond): New code iterator.
378 (gcond_name): New code attr.
379 (GCM): New mode iterator.
380 (gcm_name): New mode attr.
381 (fcmp{le,ne,gt,eq}{16,32}_vis): Reimplement using iterators.
383 2011-09-28 Oleg Endo <oleg.endo@t-online.de>
386 * config/sh/sh.md (negdi2): Move expansion into split to
387 allow more combination options. Add T_REG clobber.
388 (abssi2): New expander.
389 (*negdi2, *abssi2, *negabssi2): New insns.
390 (cneg): Change from insn to insn_and_split. Rename to
391 negsi_cond. Add alternative for non-SH4.
393 2011-09-28 Richard Sandiford <richard.sandiford@linaro.org>
395 * config/arm/neon.md (neon_move_lo_quad_<mode>): Delete.
396 (neon_move_hi_quad_<mode>): Likewise.
397 (move_hi_quad_<mode>, move_lo_quad_<mode>): Use subreg moves.
399 2011-09-28 Nick Clifton <nickc@redhat.com>
401 * config/rx/predicates.md (rx_minmax_operand): New predicate.
402 Accepts immediates and a restricted subset of MEMs.
403 * config/rx/rx.md (int_modes): New iterator.
404 (smaxsi3, sminsi3): Delete and replace with...
405 (smax<int_mode>3, smin<int_mode>3): New patterns.
406 (umax<>3_u, umax<>3_ur, umax<>3, umin<>3): New patterns.
408 2011-09-28 Richard Guenther <rguenther@suse.de>
411 * fold-const.c (try_move_mult_to_index): Handle &a.array the
414 2011-09-28 Kai Tietz <ktietz@redhat.com>
416 * configure.ac: Add test for new section attribute
417 specifier "e" via define HAVE_GAS_SECTION_EXCLUDE.
418 * config.in: Regenerated.
419 * configure: Regenerated.
420 * config/i386/winnt.c (i386_pe_asm_named_section): Emit
421 new section flag "e" for excluded sections, if supported.
422 Otherwise we mark section withc SECTION_EXCLUDE flag as never-load.
424 2011-09-28 Richard Sandiford <rdsandiford@googlemail.com>
426 * config/m32r/m32r.md: Use match_test rather than eq/ne symbol_ref
429 2011-09-28 Richard Sandiford <rdsandiford@googlemail.com>
431 * config/iq2000/iq2000.md: Use match_test rather than eq/ne symbol_ref
434 2011-09-27 Sriraman Tallam <tmsriram@google.com>
436 * output.h (SECTION_EXCLUDE): New macro.
437 * varasm.c (default_elf_asm_named_section): Check for SECTION_EXCLUDE.
439 2011-09-27 Richard Sandiford <rdsandiford@googlemail.com>
441 * fwprop.c (forward_propagate_and_simplify): After checking
442 reg/subreg combinations, check whether the modes are the same.
444 2011-09-27 Bernd Schmidt <bernds@codesourcery.com>
445 Richard Sandiford <rdsandiford@googlemail.com>
447 * config/mips/mips.c (mips_add_cfa_restore): New function.
448 (mips16e_save_restore_reg): Use it.
449 (mips_restore_reg): Likewise. Split double FPRs for
450 REG_CFA_RESTORE notes.
452 2011-09-27 Richard Sandiford <rdsandiford@googlemail.com>
456 * tree-sra.c (build_ref_for_model): Use the type of the field as
457 the type of the COMPONENT_REF.
459 2011-09-27 Jeff Law <law@redhat.com>
461 * ifcvt.c (cheap_bb_rtx_cost_p): Add SCALE argument. Scale
462 non-jumping insns by REG_BR_PROB_BASE and the maximum cost by SCALE.
463 (find_if_case_1): Use the probability of the THEN clause when
464 determining if speculation is profitable.
465 (find_if_case_2): Similarly for the ELSE clause.
467 2011-09-27 Jakub Jelinek <jakub@redhat.com>
469 * common.opt: Add -foptimize-strlen option.
470 * Makefile.in (OBJS): Add tree-ssa-strlen.o.
471 (tree-sssa-strlen.o): Add dependencies.
472 * opts.c (default_options_table): Enable -foptimize-strlen
473 by default at -O2 if not -Os.
474 * passes.c (init_optimization_passes): Add pass_strlen
475 after pass_object_sizes.
476 * timevar.def (TV_TREE_STRLEN): New timevar.
477 * params.def (PARAM_MAX_TRACKED_STRLENS): New parameter.
478 * tree-pass.h (pass_strlen): Declare.
479 * tree-ssa-strlen.c: New file.
480 * c-decl.c (merge_decls): If compatible stpcpy prototype
481 is seen, set implicit_built_in_decls[BUILT_IN_STPCPY].
483 2011-09-27 Tom de Vries <tom@codesourcery.com>
486 * tree-ssa-tail-merge.c: New file.
487 (struct same_succ_def): Define.
488 (same_succ, const_same_succ): New typedef.
489 (struct bb_cluster_def): Define.
490 (bb_cluster, const_bb_cluster): New typedef.
491 (struct aux_bb_info): Define.
492 (BB_SIZE, BB_SAME_SUCC, BB_CLUSTER, BB_VOP_AT_EXIT): Define.
493 (gvn_uses_equal): New function.
494 (same_succ_print, same_succ_print_traverse, update_dep_bb)
495 (stmt_update_dep_bb, local_def, same_succ_hash)
496 (inverse_flags, same_succ_equal, same_succ_alloc, same_succ_delete)
497 (same_succ_reset): New function.
498 (same_succ_htab, same_succ_edge_flags)
499 (deleted_bbs, deleted_bb_preds): New var.
500 (debug_same_succ): New function.
502 (print_worklist, add_to_worklist, find_same_succ_bb, find_same_succ)
503 (init_worklist, delete_worklist, delete_basic_block_same_succ)
504 (same_succ_flush_bbs, purge_bbs, update_worklist): New function.
505 (print_cluster, debug_cluster, update_rep_bb)
506 (add_bb_to_cluster, new_cluster, delete_cluster): New function.
507 (all_clusters): New var.
508 (alloc_cluster_vectors, reset_cluster_vectors, delete_cluster_vectors)
509 (merge_clusters, set_cluster): New function.
510 (gimple_equal_p, gsi_advance_bw_nondebug_nonlocal, find_duplicate)
511 (same_phi_alternatives_1, same_phi_alternatives, bb_has_non_vop_phi)
512 (deps_ok_for_redirect_from_bb_to_bb, deps_ok_for_redirect)
513 (find_clusters_1, find_clusters): New function.
514 (update_vuses, vop_phi, vop_at_entry, replace_block_by): New function.
515 (update_bbs): New var.
516 (apply_clusters): New function.
517 (update_debug_stmt, update_debug_stmts): New function.
518 (tail_merge_optimize): New function.
519 tree-pass.h (tail_merge_optimize): Declare.
520 * tree-ssa-pre.c (execute_pre): Use tail_merge_optimize.
521 * Makefile.in (OBJS-common): Add tree-ssa-tail-merge.o.
522 (tree-ssa-tail-merge.o): New rule.
523 * opts.c (default_options_table): Set OPT_ftree_tail_merge by
524 default at OPT_LEVELS_2_PLUS.
525 * tree-ssa-sccvn.c (vn_valueize): Move to ...
526 * tree-ssa-sccvn.h (vn_valueize): Here.
527 * timevar.def (TV_TREE_TAIL_MERGE): New timevar.
528 * common.opt (ftree-tail-merge): New switch.
529 * params.def (PARAM_MAX_TAIL_MERGE_COMPARISONS)
530 (PARAM_MAX_TAIL_MERGE_ITERATIONS): New parameter.
531 * doc/invoke.texi (Optimization Options, -O2): Add -ftree-tail-merge.
532 (-ftree-tail-merge, max-tail-merge-comparisons)
533 (max-tail-merge-iterations): New item.
535 2011-09-27 Jan Hubicka <jh@suse.cz>
537 * ipa-inline-analysis.c (MAX_TIME): Reduce to avoid overflows.
539 2011-09-27 Jan Hubicka <jh@suse.cz>
541 * ipa-inline-analysis.c (eliminated_by_inlining_prob): Handle
542 parameters passed by reference; handle loads from non-SSA scalars
545 2011-09-27 Bernd Schmidt <bernds@codesourcery.com>
547 PR rtl-optimization/50249
548 * reload1.c (reload_reg_reaches_end_p): Accept a reloadnum argument
549 instead of opnum and type. All callers changed. Remove useless
551 Search forward for other reloads of the same type for the same operand
552 using the same register; if any are found, return false.
553 (reload_regs_reach_end_p): Same argument changes; all callers changed.
555 2011-09-27 Andi Kleen <ak@linux.intel.com>
556 Jan Hubicka <jh@suse.cz>
558 * doc/invoke.texi (ffat-lto-objects): Document.
559 * toplev.c (compile_file): Do not output assembly when doing slim lto;
560 Output __gnu_slim_lto when doing slim lto.
561 * cgraphunit.c (ipa_passes): Do only analysis when producing slim lto.
562 (cgraph_optimize): Return early when doing slim lto.
563 * opts.c (finish_options): Complain about lack of linker plugin
565 * common.opt (ffat-lto-objects): New.
567 2011-09-27 Richard Sandiford <richard.sandiford@linaro.org>
569 * ipa-inline-analysis.c (predicate_probability): Avoid comparison
570 between signed and unsigned.
572 2011-09-27 Ira Rosen <ira.rosen@linaro.org>
574 * tree-vect-stmts.c (vectorizable_type_demotion): Handle basic block
576 (vectorizable_type_promotion): Likewise.
577 (vect_analyze_stmt): Call vectorizable_type_demotion and
578 vectorizable_type_promotion for basic blocks.
579 (supportable_widening_operation): Don't assume loop vectorization.
580 * tree-vect-slp.c (vect_build_slp_tree): Allow multiple types for
581 basic blocks. Update vectorization factor for basic block
583 (vect_analyze_slp_instance): Allow multiple types for basic block
584 vectorization. Recheck unrolling factor after construction of SLP
587 2011-09-27 Richard Guenther <rguenther@suse.de>
589 * tree-object-size.c (compute_object_sizes): Fix dumping of
592 2011-09-27 Richard Guenther <rguenther@suse.de>
594 PR tree-optimization/50363
595 * tree-ssa-pre.c (create_expression_by_pieces): Handle
596 pointer conversions in POINTER_PLUS_EXPRs properly.
598 2011-09-27 Richard Sandiford <richard.sandiford@linaro.org>
600 * config/arm/neon.md (neon_vget_highv16qi, neon_vget_highv8hi)
601 (neon_vget_highv4si, neon_vget_highv4sf, neon_vget_highv2di)
602 (neon_vget_lowv16qi, neon_vget_lowv8hi, neon_vget_lowv4si)
603 (neon_vget_lowv4sf, neon_vget_lowv2di): Turn into define_expands
604 that produce subreg moves. Define using VQX iterators.
606 2011-09-27 Georg-Johann Lay <avr@gjlay.de>
608 * config/avr/avr.md (ashrqi3): Split alternative "n"
609 into its remaining parts C03, C04, C05, C06, C07 and describe
610 impact in CC by attribute "cc" appropriately.
611 * config/avr/avr.c (notice_update_cc): Clean-up: Don't patch CC0
614 2011-09-27 Jakub Jelinek <jakub@redhat.com>
616 * rtl.h (const_tiny_rtx): Change into array of 4 x MAX_MACHINE_MODE
617 from 3 x MAX_MACHINE_MODE.
618 (CONSTM1_RTX): Define.
619 * emit-rtl.c (const_tiny_rtx): Change into array of
620 4 x MAX_MACHINE_MODE from 3 x MAX_MACHINE_MODE.
621 (gen_rtx_CONST_VECTOR): Use CONSTM1_RTX if all inner constants are
623 (init_emit_once): Initialize CONSTM1_RTX for MODE_INT and
624 MODE_VECTOR_INT modes.
625 * simplify-rtx.c (simplify_binary_operation_1) <case IOR, XOR, AND>:
626 Optimize if one operand is CONSTM1_RTX.
627 * config/i386/i386.c (ix86_expand_sse_movcc): Optimize mask ? -1 : x
630 2011-09-26 David S. Miller <davem@davemloft.net>
632 * config/sparc/sparc.md (edge{8,16,32}{,l}): Return Pmode.
633 (fcmp{le,ne,gt,eq}{16,32}): Likewise.
634 * config/sparc/visintrin.h: Update edge and pixel-compare
635 intrinsics to return 'long' instead of 'int'.
636 * doc/extend.texi: Update documentation to match.
637 * config/sparc/sparc.c (eligible_for_return_delay): When leaf or
638 flat, allow any instruction. Otherwise, when V9 allow parallels
639 which consist only of sets to registers outside of %o0 to %o5.
640 (sparc_vis_init_builtins): Update VIS builtin types for edge
643 * config/sparc/sparc.c (sparc_conditional_register_usage): When VIS
644 is enabled, mark %gsr as global.
645 * config/sparc/sparc.md (UNSPEC_WRGSR): Delete.
646 (wrgsr_vis, *wrgsr_sp64, wrgsr_v8plus): Don't wrap in an unspec.
648 * config/sparc/sparc-c.c: New file implementing sparc_target_macros,
649 which will now define __VIS and __VIS__ when -mvis is enabled.
650 * config/sparc/t-sparc: Likewise.
651 * config.gcc: Add sparc-c.o to c_target_objs and cxx_target_objs,
652 and add t-sparc to tmake_file for all sparc targets.
653 * config/sparc/sparc-protos.h (sparc_target_macros): Declare.
654 * config/sparc/sparc.h (TARGE_CPU_CPP_BUILTINS): Call it.
656 * config/sparc/sparc.c (sparc_vis_init_builtins): Add explicit
657 builtins for VIS vector addition and subtraction.
658 * config/sparc/visintrin.h (__vis_fpadd16, __vis_fpadd16s,
659 __vis_fpadd32, __vis_fpadd32s, __vis_fpsub16, __vis_fpsub16s,
660 __vis_fpsub32, __vis_fpsub32s): New.
661 * doc/extend.texi: Document new VIS intrinsics.
663 2011-09-26 Georg-Johann Lay <avr@gjlay.de>
665 * config/avr/avr.md (peephole casesi+2): Use -1 instead of 65536.
666 * config/avr/avr.c (avr_out_compare): Print shorter sequence for
667 EQ/NE comparisons against +/-1 in the case of unused-after,
670 2011-09-26 Jakub Jelinek <jakub@redhat.com>
672 * gimple-fold.c (gimplify_and_update_call_from_tree): Set
673 gctx.into_ssa after push_gimplify_context.
675 * gimple.c (gimple_build_call_valist): New function.
676 * gimple.h (gimple_build_call_valist): New prototype.
677 * tree-ssa-propagate.c (finish_update_gimple_call): New function.
678 (update_gimple_call): Likewise.
679 (update_call_from_tree): Use finish_update_gimple_call.
680 * tree-ssa-propagate.h (update_gimple_call): New prototype.
682 2011-09-26 Richard Guenther <rguenther@suse.de>
684 PR tree-optimization/50472
685 * gimple-fold.c (fold_const_aggregate_ref_1): Do not fold
688 2011-09-26 Bingfeng Mei <bmei@broadcom.com>
690 * doc/tm.texi: Correct documentation for TARGET_ADDR_SPACE_SUBSET_P.
691 * target.def: (addr_space_subset_p): Likewise.
693 2011-09-26 Tom de Vries <tom@codesourcery.com>
695 * tree-ssa-alias.h (pt_solution_singleton_p): Declare.
696 * tree-ssa-structalias.c (pt_solution_singleton_p): New function.
697 * tree-ssa-ccp.c (fold_builtin_alloca_for_var): Set points-to solution
700 2011-09-26 Georg-Johann Lay <avr@gjlay.de>
703 * config/avr/avr-protos.h (output_reload_insisf): Don't pass insn.
704 * config/avr/avr.md (*reload_insi, *reload_insf): Change call to
705 output_reload_insisf.
706 (adjust_len): Set default to "no".
707 Remove alternative "yes". Add alternatives: "mov8", "mov16",
708 "mov32", "ashlqi", "ashrqi", "lshrqi", "ashlhi", "ashrhi",
709 "lshrhi", "ashlsi, "ashrsi", "lshrsi".
710 (*movqi, *movhi, *movsi, *ashlqi3, ashlhi3, ashlsi3,
711 *ashlhi3_const, *ashlsi3_const, ashrqi3, ashrhi3, ashrsi3,
712 *ashrhi3_const, *ashrsi3_const, *lshrqi3, lshrhi3, *lshrhi3_const,
713 *lshrsi3_const): Set attribute "adjust_len".
714 * config/avr/avr.c (output_reload_insisf): Remove parameter "insn".
715 (output_movsisf): Don't pass insn to output_reload_insisf.
716 (adjust_insn_length): Handle new alternatives to adjust_len.
717 Remove handling of ADJUST_LEN_YES. Clean-up code.
719 2011-09-26 Eric Botcazou <ebotcazou@adacore.com>
721 * ifcvt.c (noce_try_cmove_arith): Use may_trap_or_fault_p in lieu of
722 may_trap_p to detect loads that may trap of fault.
724 2011-09-26 Georg-Johann Lay <avr@gjlay.de>
726 * config/avr/avr-protos.h (output_reload_inhi): Change prototype.
727 * config/avr/avr.md (adjust_len): Add "reload_in16" alternative.
728 (*reload_inhi): Use it. Adapt call to output_reload_inhi to new
730 (*movhi): Split constraint alternative "r,rL" into "r,r" and "r,L".
731 * config/avr/avr.c: Rename output_reload_insisf_1 to
732 output_reload_in_const.
733 (avr_popcount_each_byte): Handle SFmode, too.
734 (output_reload_in_const): Change so it can handle HI loads, too.
735 Use avr_popcount_each_byte to work out if scratch register must be
737 (output_reload_inhi): Rewrite using output_reload_in_const and...
738 (output_movhi): ...use it to print constants' loads.
739 (adjust_insn_length): New case ADJUST_LEN_RELOAD_IN16. Cleanup code.
741 2011-09-25 David S. Miller <davem@davemloft.net>
743 * config/sparc/constraints.md (C, P, Z): New constraints for
744 const_doube, const_int, and const_vector "all ones" values.
745 Make unused constraint letters comment match reality.
746 * config/sparc/predicates.md (const_all_ones_operand,
747 register_or_zero_or_all_ones_operand): New predicates.
748 * config/sparc/sparc.c (sparc_expand_move): Allow all ones
749 as well as zero constants when VIS.
750 (sparc_legitimate_constant_p): Likewise.
751 * config/sparc/sparc.md (movsi_insn): Add fones alternative.
752 (movsf_insn): Likewise
753 (movdi_insn_sp64): Add fone alternative.
754 (movdf_insn_sp32_v9): Likewise.
755 (movdf_insn_sp64): Likewise.
757 * configure.ac: Add feature check to make sure the assembler
758 supports the FMAF, HPC, and VIS 3.0 instructions found on
759 Niagara-3 and later cpus.
760 * configure: Rebuild.
761 * config.in: Likewise.
762 * config/sparc/sparc.opt: New option '-mfmaf'.
763 * config/sparc/sparc.md: Add float fused multiply-add patterns.
764 * config/sparc/sparc.h (AS_NIAGARA3_FLAG): New macro.
765 (ASM_CPU64_DEFAULT_SPEC, ASM_CPU_SPEC): Use it, as needed.
766 * config/sparc/sol2.h (ASM_CPU32_DEFAULT_SPEC,
767 ASM_CPU64_DEFAULT_SPEC, ASM_CPU_SPEC): Likewise.
768 * config/sparc/sparc.c (sparc_option_override): Turn MASK_FMAF on
769 by default for Niagara-3 and later. Turn it off if TARGET_FPU is
771 (sparc_rtx_costs): Handle 'FMA'.
772 * doc/invoke.texi: Document -mfmaf.
774 2011-09-25 Jakub Jelinek <jakub@redhat.com>
776 * tree-ssa-structalias.c (intra_create_variable_infos): Treat
777 TYPE_RESTRICT REFERENCE_TYPE parameters like restricted
778 DECL_BY_REFERENCE parameters.
780 2011-09-25 Eric Botcazou <ebotcazou@adacore.com>
782 * tree-eh.c (cleanup_empty_eh): Allow a call to __builtin_stack_restore
783 if there is no outgoing edge.
785 * tree-scalar-evolution.c (simple_iv): Accept all kinds of pointer and
788 2011-09-25 Ira Rosen <ira.rosen@linaro.org>
790 * tree-vect-slp.c (vect_slp_analyze_bb_1): Split out core part
791 of vect_analyze_bb here.
792 (vect_analyze_bb): Loop over vector sizes calling vect_analyze_bb_1.
794 2011-09-25 Ira Rosen <ira.rosen@linaro.org>
796 * tree-data-ref.c (dr_analyze_innermost): Add new argument.
797 Allow not simple iv if analyzing basic block.
798 (create_data_ref): Update call to dr_analyze_innermost.
799 (stmt_with_adjacent_zero_store_dr_p, ref_base_address): Likewise.
800 * tree-loop-distribution.c (generate_memset_zero): Likewise.
801 * tree-predcom.c (find_looparound_phi): Likewise.
802 * tree-data-ref.h (dr_analyze_innermost): Add new argument.
804 2011-09-24 David S. Miller <davem@davemloft.net>
806 * config/sparc/sparc.h (FIRST_PSEUDO_REGISTER): Bump to 103.
807 (SPARC_GSR_REG): Define.
808 (FIXED_REGISTERS): Mark GSR as fixed.
809 (CALL_USED_REGISTERS): Mark GSR as call used.
810 (HARD_REGNO_NREGS): GSR is always 1 register.
811 (REG_CLASS_CONTENTS): Add GSR to ALL_REGS.
812 (REG_ALLOC_ORDER, REG_LEAF_ALLOC_ORDER): Add GSR to the end.
813 (REGISTER_NAMES): Add "%gsr".
814 * config/sparc/sparc.md (UNSPEC_ALIGNADDR, UNSPEC_ALIGNADDRL): Delete.
815 (UNSPEC_WRGSR): New unspec.
816 (GSR_REG): New constant.
817 (type): Add new insn type 'gsr'.
818 (fpack16_vis, fpackfix_vis, fpack32_vis,
819 faligndata<V64I:MODE>_vis)): Add use of GSR_REG.
820 (wrgsr_vis, *wrgsr_sp64, wrgsr_v8plus, rdgsr_vis, *rdgsr_sp64,
821 rdgsr_v8plus): New expanders and insns.
822 (alignaddr<P:mode>_vis, alignaddrl<P:mode>_vis): Reimplement
823 using patterns which show that this is a plus in addition to a
824 modification of GSR_REG, instead of an unspec.
825 * config/sparc/ultra1_2.md: Handle 'gsr'.
826 * config/sparc/ultra3.md: Likewise.
827 * config/sparc/niagara.md: Likewise.
828 * config/sparc/niagara2.md: Likewise.
829 * config/sparc/sparc.c (leaf_reg_remap, sparc_leaf_regs): Fill out
831 (sparc_option_override): Make -mvis imply -mv8plus.
832 (hard_32bit_mode_classes, hard_64bit_mode_classes): Add entries
834 (sparc_vis_init_builtins): Build __builtin_vis_write_gsr and
835 __builtin_vis_read_gsr.
836 (sparc_expand_buildin): Handle builtins that take one argument and
838 (sparc_fold_builtin): Never fold writes to %gsr.
839 * config/sparc/visintrin.h (__vis_write_gsr, __vis_read_gsr): New.
840 * doc/extend.texi: Document new VIS intrinsics.
842 2011-09-23 Jan Hubicka <jh@suse.cz>
844 * ipa-inline-transform.c (inline_call): Add comment.
845 * ipa-inline.h (inline_param_summary): New structure and vector.
846 (struct inline_edge_summary): Add param field.
847 * ipa-inline-analysis.c (CHANGED): New constant.
848 (add_clause): Handle CHANGED and NOT_CONSTANT.
849 (predicate_probability): New function.
850 (dump_condition): Dump CHANGED predicate.
851 (evaluate_conditions_for_known_args): Handle ERROR_MARK as marker
852 of unknown function wide invariant.
853 (evaluate_conditions_for_edge): Handle change probabilities.
854 (inline_edge_duplication_hook): Copy param summaries.
855 (inline_edge_removal_hook): Free param summaries.
856 (dump_inline_edge_summary): Fix dumping of indirect edges and callee
857 sizes; dump param summaries.
858 (will_be_nonconstant_predicate): Use CHANGED predicate.
859 (record_modified_bb_info): New structure.
860 (record_modified): New function.
861 (param_change_prob): New function.
862 (estimate_function_body_sizes): Compute param summaries.
863 (estimate_edge_size_and_time): Add probability argument.
864 (estimate_node_size_and_time): Add inline_param_summary argument;
865 handle predicate probabilities.
866 (remap_predicate): Fix formating.
867 (remap_edge_change_prob): New function.
868 (remap_edge_summaries): Rename from ...; use remap_edge_change_prob.
869 (remap_edge_predicates): ... this one.
870 (inline_merge_summary): Remap edge summaries; handle predicate
871 probabilities; remove param summaries after we are done.
872 (do_estimate_edge_time): Update.
873 (do_estimate_edge_growth): Update.
874 (read_inline_edge_summary): Read param info.
875 (inline_read_summary): Fix formating.
876 (write_inline_edge_summary): Write param summaries.
878 2011-09-23 Jakub Jelinek <jakub@redhat.com>
880 * config/i386/i386.c (ix86_print_operand): Handle %~.
881 (ix86_print_operand_punct_valid_p): Return true also for '~'.
882 * config/i386/sse.md (i128): New mode_attr.
883 (vec_extract_hi_<mode>, vec_extract_hi_<mode>,
884 avx_vbroadcastf128_<mode>, *avx_vperm2f128<mode>_full,
885 *avx_vperm2f128<mode>_nozero, vec_set_lo_<mode>,
886 vec_set_hi_<mode>, *vec_concat<mode>_avx): Use <i128> in the
887 patterns, use "<sseinsnmode>" for "mode" attribute.
888 (vec_extract_hi_v16hi, vec_extract_hi_v32qi, vec_set_lo_v16hi,
889 vec_set_hi_v16hi, vec_set_lo_v32qi, vec_set_hi_v32qi): Use
890 %~128 in the patterns, use "OI" for "mode" attribute.
892 2011-09-23 Georg-Johann Lay <avr@gjlay.de>
895 * config/avr/avr.md (adjust_len): Add alternatives "tsthi",
897 (*cmpqi_sign_extend): Use s8_operand.
898 (*cmphi, *cmpsi): Rewrite using avr_out_compare.
899 * config/avr/avr-protos.h (compare_diff_p, compare_eq_p): Remove
901 (out_tsthi, out_tstsi): Remove prototypes.
902 (avr_out_tsthi, avr_out_tstsi): New prototypes.
903 * config/avr/avr.c (out_tsthi, out_tstsi): Remove functions.
904 (avr_asm_len): Negative length now sets *plen to -length.
905 (compare_sign_p): Return bool instead of int.
906 (compare_diff_p, compare_eq_p): Ditto and make static.
907 (avr_out_tsthi): New function.
908 (avr_out_tstsi): New function.
909 (avr_out_compare): New function.
910 (adjust_insn_length): Handle ADJUST_LEN_TSTHI, ADJUST_LEN_TSTSI,
913 2011-09-23 Georg-Johann Lay <avr@gjlay.de>
916 * config/avr/avr.md: (adjust_len): Add alternative "out_plus".
917 (addsi3): Rewrite using QI scratch register. Adjust text
918 peepholes using plus:SI.
919 (*addsi3_zero_extend.hi): New insn.
920 (*subsi3_zero_extend.hi): New insn.
921 (*subhi3_zero_extend1): Set attribute "cc" to "set_czn".
922 (*subsi3_zero_extend): Ditto.
923 (subsi3): Change predicate #2 to register_operand.
924 * config/avr/avr-protos.h (avr_out_plus): New prototype.
925 (avr_out_plus_1): New static function.
926 (avr_out_plus): New function.
927 (adjust_insn_length): Handle ADJUST_LEN_OUT_PLUS.
929 2011-09-23 Jakub Jelinek <jakub@redhat.com>
931 * config/i386/i386.c (ix86_prepare_sse_fp_compare_args): For
932 GE/GT/UNLE/UNLT swap arguments and condition even for TARGET_AVX.
934 2011-09-23 Ian Lance Taylor <iant@google.com>
936 * godump.c (go_define): Treat a single character in single quotes,
937 or a string, as an operand.
939 2011-09-23 Martin Jambor <mjambor@suse.cz>
941 * ipa-prop.h (jump_func_type): Updated comments.
942 (ipa_known_type_data): New type.
943 (ipa_jump_func): Use it to describe known type jump functions.
944 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Updated to
945 reflect the new known type jump function contents.
946 (compute_known_type_jump_func): Likewise.
947 (combine_known_type_and_ancestor_jfs): Likewise.
948 (try_make_edge_direct_virtual_call): Likewise.
949 (ipa_write_jump_function): Likewise.
950 (ipa_read_jump_function): Likewise.
951 * ipa-cp.c (ipa_value_from_known_type_jfunc): New function.
952 (ipa_value_from_jfunc): Use ipa_value_from_known_type_jfunc.
953 (propagate_accross_jump_function): Likewise.
955 2011-09-23 Georg-Johann Lay <avr@gjlay.de>
958 * config/avr/avr.md (rotlqi3): Support all offsets 0..7.
959 (rotlqi3_4): Turn insn into expander.
960 (*rotlqi3): New insn.
961 (rotlhi3, rotlsi3): Support rotate left/right by 1.
962 (*rotlhi2.1, *rotlhi2.15): New insns.
963 (*rotlsi2.1, *rotlsi2.31): New insns.
964 * config/avr/constraints.md (C03, C05, C06, C07): New constraints.
966 2011-09-23 Bin Cheng <bin.cheng@arm.com>
968 * config/arm/bpabi.h (BE8_LINK_SPEC): Add cortex-m arch and processors.
970 2011-09-22 Maxim Kuvyrkov <maxim@codesourcery.com>
972 * ipa-prop.c (ipa_print_node_jump_functions): Fix typos.
974 2011-09-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
976 * reload.c (find_reloads): Set operand_mode to Pmode for address
977 operands consisting of just a CONST_INT.
979 2011-09-22 Uros Bizjak <ubizjak@gmail.com>
982 * config/i386/i386.c (ix86_expand_sse_movcc): When generating
983 blendv, force op_true to register if it doesn't satisfy
984 nonimmediate_operand predicate.
986 2011-09-22 Richard Sandiford <rdsandiford@googlemail.com>
990 * calls.c (emit_library_call_value_1): Use BLOCK_REG_PADDING to
991 get the locate.where_pad value for register-only arguments.
992 * config/arm/arm.c (arm_pad_arg_upward): Remove HFmode handling.
993 (arm_pad_reg_upward): Handle null types.
995 2011-09-22 Jan Hubicka <jh@suse.cz>
997 * ipa-inline-analysis.c: Fix overly long lines.
999 2011-09-22 Jan Hubicka <jh@suse.cz>
1001 * ipa-inline-transform.c (inline_call): Always update jump functions
1003 * ipa-inline.c (ipa_inline): Likewise; do not call
1004 ipa_create_all_structures_for_iinln.
1005 (ipa_inline): Always free jump functions.
1006 * ipa-inline-analysis.c (evaluate_conditions_for_edge): Remove hack.
1007 (remap_edge_predicates): Fix pasto.
1008 (inline_merge_summary): Remove nlined edge predicate; remove hack.
1009 (inline_analyze_function): Always initialize jump functions.
1010 (inline_generate_summary): Likewise.
1011 (inline_write_summary): Always write jump functions when ipa-cp
1013 (inline_read_summary): Always read jump functions when ipa-cp
1015 * ipa-prop.c (iinlining_processed_edges): Remove.
1016 (update_indirect_edges_after_inlining): Do not use
1017 iinlining_processed_edges; instead set param_index to -1.
1018 (propagate_info_to_inlined_callees): Only try to indirect inlining
1019 when asked to do so; update jump functions of indirect calls, too;
1020 remove jump functions of the inlined edge.
1021 (ipa_edge_duplication_hook): Do not copy iinlining_processed_edges.
1022 (ipa_create_all_structures_for_iinln): Remove.
1023 (ipa_free_all_structures_after_iinln): Do not free
1024 iinlining_processed_edges.
1025 * ipa-prop.h (ipa_create_all_structures_for_iinln): Remove.
1027 2011-09-22 Richard Sandiford <richard.sandiford@linaro.org>
1029 * config/arm/predicates.md (expandable_comparison_operator): New
1030 predicate, extracted from...
1031 (arm_comparison_operator): ...here.
1032 * config/arm/arm.md (cbranchsi4, cbranchsf4, cbranchdf4, cbranchdi4)
1033 (cstoresi4, cstoresf4, cstoredf4, cstoredi4, movsicc, movsfcc)
1034 (movdfcc): Use expandable_comparison_operator.
1036 2011-09-22 Georg-Johann Lay <avr@gjlay.de>
1040 * config/avr/avr-protos.h (avr_out_bitop): New prototype.
1041 (avr_popcount_each_byte): New prototype.
1042 * config/avr/avr.c (avr_popcount): New static function.
1043 (avr_popcount_each_byte): New function.
1044 (avr_out_bitop): New function.
1045 (adjust_insn_length): ADJUST_LEN_OUT_BITOP dispatches to
1046 avr_out_bitop. Cleanup code.
1047 * config/avr/constraints.md (Ca2, Co2, Cx2): New constraints.
1048 (Ca4, Co4, Cx4): New constraints.
1049 * config/avr/avr.md (adjust_len): Add "out_bitop" insn attribute
1051 (andhi3, iorhi3, xorhi3): Rewrite insns using avr_out_bitop.
1052 (andsi3, iorsi3, xorsi3): Ditto.
1053 (*iorhi3_clobber, *iorsi3_clobber): Remove insns.
1055 2011-09-22 Ira Rosen <ira.rosen@linaro.org>
1057 PR tree-optimization/50451
1058 * tree-vect-slp.c (vect_get_constant_vectors): Don't fail for
1059 constant operands in reduction.
1060 (vect_get_slp_defs): Don't create vector operand for NULL scalar
1063 2011-09-22 David S. Miller <davem@davemloft.net>
1065 * config/sparc/sparc.c (sparc_vis_init_builtins): Do not mark
1066 fpack16, fpack32, fpackfix as const.
1068 * config/sparc/sparc.md (G[0-7]_REG, O[0-7]_REG, L[0-7]_REG,
1069 I[0-7]_REG, F[0-62]_REG, FCC[0-3]_REG, CC_REG, SFP_REG): New
1070 constants. Use them everywhere.
1072 2011-09-22 Oleg Endo <oleg.endo@t-online.de>
1074 * config/sh/sh.c (andcosts): Renamed to and_xor_ior_costs.
1075 Added AND special case. Adapted comments.
1076 (sh_rtx_costs): Added XOR and IOR case.
1078 2011-09-21 Jan Hubicka <jh@suse.cz>
1080 * ipa-inline-analsis.c (compute_inline_parameters): Set
1081 cfun and current_function_decl.
1083 2011-09-21 Jan Hubicka <jh@suse.cz>
1085 * ipa-inline-analysis.c (set_cond_stmt_execution_predicate): Allow
1086 handled components in parameter of builtin_constant_p.
1087 (will_be_nonconstant_predicate): Allow loads of non-SSA parameters.
1089 2011-09-21 Jan Hubicka <jh@suse.cz>
1091 * ipa-inline.c (relative_time_benefit): Fix wrong bracketting.
1092 * ipa-inline.h (estimate_edge_time): Fix pasto.
1093 * ipa-inline-analysis.c (do_estiamte_edge_time): Remove capping.
1095 2011-09-21 Jakub Jelinek <jakub@redhat.com>
1097 * config/i386/i386.c (ix86_expand_sse_movcc): Use
1098 blendvps, blendvpd and pblendvb if possible.
1100 2011-09-21 Uros Bizjak <ubizjak@gmail.com>
1103 * config/i386/sse.md (xop_pcmov_<mode><avxsizesuffix>): Change
1104 operand 1 predicate to register_operand and operand 2 predicate
1105 to nonimmediate_operand.
1106 * config/i386/i386.c (ix86_expand_sse_movcc): When generating
1107 xop_pcmov, force op_true to register. Also, force op_false to
1108 register if it doesn't satisfy nonimmediate_operand predicate.
1110 2011-09-21 Kirill Yukhin <kirill.yukhin@intel.com>
1112 * config/i386/bmi2intrin.h (_mulx_u64): New.
1115 2011-09-21 Jan Hubicka <jh@suse.cz>
1117 PR tree-optimization/50433
1118 * ipa-inline-analysis.c (eliminated_by_inlining_prob):
1119 Use get_base_address.
1121 2011-09-21 Jakub Jelinek <jakub@redhat.com>
1123 * config/i386/sse.md (<code><mode>3 smaxmin:VI124_128 expander): Use
1124 nonimmediate_operand instead of register_operand predicate for operands
1125 1 and 2, force them into registers if expanding them as comparison.
1126 (<code><mode>3 umaxmin:VI124_128 expander): Similarly. For UMAX
1127 V8HImode force into register just operand 1.
1129 2011-09-21 Georg-Johann Lay <avr@gjlay.de>
1132 * config/avr/avr.c (avr_function_arg_advance): Change error to
1133 warning if a fixed register is needed as function argument.
1135 2011-09-21 Georg-Johann Lay <avr@gjlay.de>
1139 * config/avr/avr.md (adjust_len): New insn attribute.
1140 (*reload_insi, *reload_insf): Use it.
1141 (*movsi, *movsf): Use new interface of output_movsisf.
1142 * config/avr/avr-protos.h (output_movsisf): Change prototype.
1143 * config/avr/avr.c (output_movsisf): Ditto.
1144 (adjust_insn_length): Use insn attribute "adjust_len" to adjust
1145 lengths of insns *reload_insi, *reload_insf.
1146 (output_reload_insisf_1): New static function.
1147 (output_reload_insisf): Use it.
1149 2011-09-21 David S. Miller <davem@davemloft.net>
1151 * config/sparc/sparc.c (def_builtin): Change from macro into function.
1152 (def_builtin_const): New.
1153 (sparc_vis_init_builtins): Use def_builtin_const for all VIS builtins
1154 other than alignaddr and falignaddr.
1156 * config/sparc/sparc.md (UNSPEC_FCMPLE, UNSPEC_FCMPNE, UNSPEC_FCMPGT,
1157 UNSPEC_FCMPEQ): New unspec codes.
1158 (fcmple16_vis, fcmple32_vis, fcmpne16_vis, fcmpne32_vis, fcmpgt16_vis,
1159 fcmpgt32_vis, fcmpeq16_vis, fcmpeq32_vis): New patterns.
1160 * config/sparc/sparc.c (sparc_vis_init_builtins): Create builtins for
1161 new pixel compare VIS patterns.
1162 * config/sparc/visintrin.h (__vis_fcmple16, __vis_fcmple32,
1163 __vis_fcmpne16, __vis_fcmpne32, __vis_fcmpgt16, __vis_fcmpgt32,
1164 __vis_fcmpeq16, __vis_fcmpeq32): New.
1165 * doc/extend.texi: Document new pixel compare VIS intrinsics.
1167 2011-09-21 Tom de Vries <tom@codesourcery.com>
1169 * final.c (final): Handle if JUMP_LABEL is not LABEL_P.
1171 2011-09-20 David S. Miller <davem@davemloft.net>
1173 * config/sparc/sparc.md (UNSPEC_ALIGNADDRL): New unspec.
1174 (aligneddrl<P:mode>_vis): New pattern.
1175 (edge8_vis, edge8l_vis, edge16_vis, edge16l_vis, edge32_vis,
1176 edge32l_vis): Adjust to take Pmode arguments, and return SImode.
1177 * config/sparc/sparc.c (sparc_vis_init_builtins): Handle new
1178 alignaddrl insn, and adjust edge operations for updated types.
1179 * config/sparc/visintrin.h: Likewise.
1180 * doc/extend.texi: Make typing in VIS documentation match reality.
1182 2011-09-20 Terry Guo <terry.guo@arm.com>
1184 * config/arm/arm-arches.def: Add armv6s-m.
1185 * config/arm/arm-tables.opt: Regenerate.
1187 2011-09-20 Wei Guozhi <carrot@google.com>
1189 PR rtl-optimization/49452
1190 * postreload.c (reload_combine): Invalidate use information when across
1193 2011-09-19 Maxim Kuvyrkov <maxim@codesourcery.com>
1195 * haifa-sched.c (has_edge_p, prev_non_location_insn, check_cfg):
1196 Remove maintenance overhead.
1197 (haifa_sched_init, sched_finish): Update.
1199 2011-09-19 Uros Bizjak <ubizjak@gmail.com>
1201 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use if_then_else RTX
1202 to calculate unit, prefix_rep and prefix_data16 attributes.
1203 (*mov<mode>_internal): Ditto for unit attribute.
1204 (*movv2sf_internal_rex64): Ditto for unit and prefix_rep attributes.
1205 (*movv2sf_internal): Ditto.
1206 * config/i386/sse.md (VI1248_256): Remove mode iterator.
1207 (avx2_eq<mode>3): Use VI_256 instead of VI1248_256.
1208 (*avx2_eq<mode>3): Ditto.
1209 (avx2_gt<mode>3): Ditto.
1211 2011-09-19 Uros Bizjak <ubizjak@gmail.com>
1213 * config/i386/i386.md (maxmin): New code iterator.
1214 * config/i386/sse.md (<maxmin:code><mode>3): Macroize expander
1215 from <umaxmin:code><mode>3 and <smaxmin:code><mode>3 using maxmin
1217 (*avx2_<maxmin:code><mode>3): Macroize isn from
1218 *avx2_<umaxmin:code><mode>3 and *avx2_<smaxmin:code><mode>3 using
1219 maxmin code iterator.
1220 (<smaxmin:code><VI124_128:mode>3): Merge with <smaxmin:code>v8hi3.
1221 (<umaxmin:code><VI124_128:mode>3): Merge with umaxv4si3 and
1222 <umaxmin:code>v16qi3.
1224 2011-09-19 Alan Modra <amodra@gmail.com>
1225 Michael Meissner <meissner@linux.vnet.ibm.com>
1228 * config/rs6000/rs6000.md (call_indirect_aix<ptrsize>): Do not
1229 split the load of the indirect function's TOC from the call to
1230 prevent the compiler from moving the load of the new TOC above
1231 code that references the current function's TOC.
1232 (call_indirect_aix<ptrsize>_internal): Ditto.
1233 (call_indirect_aix<ptrsize>_nor11): Ditto.
1234 (call_indirect_aix<ptrsize>_internal2): Ditto.
1235 (call_value_indirect_aix<ptrsize>): Ditto.
1236 (call_value_indirect_aix<ptrsize>_internal): Ditto.
1237 (call_value_indirect_aix<ptrsize>_nor11): Ditto.
1238 (call_value_indirect_aix<ptrsize>_internal2): Ditto.
1240 2011-09-19 Jakub Jelinek <jakub@redhat.com>
1242 * config/i386/sse.md (*sse4_1_extractps): Change into
1243 define_insn_and_split, add =x 0 n and =x x n alternatives
1244 and split them after reload.
1246 2011-09-19 Alexandre Oliva <aoliva@redhat.com>
1248 * tree.h (TREE_NOT_CHECK4): Rename from bogus NON_TREE_CHECK4.
1250 2011-09-19 Alexandre Oliva <aoliva@redhat.com>
1252 * emit-rtl.c (copy_insn_1): Do not copy DEBUG_EXPRs.
1254 2011-09-19 Ira Rosen <ira.rosen@linaro.org>
1256 PR tree-optimization/50413
1257 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail to vectorize
1258 a basic block if one of its data-refs can't be analyzed.
1260 2011-09-19 Paul Brook <paul@codesourcery.com>
1262 * config/arm/predicates.md (shift_amount_operand): Check constant
1263 shift count is in range.
1264 (const_shift_operand): Remove.
1266 2011-09-18 Eric Botcazou <ebotcazou@adacore.com>
1267 Iain Sandoe <developer@sandoe-acoustics.co.uk>
1270 * config/rs6000/rs6000.md (probe_stack): Use explicit operand.
1271 * config/rs6000/rs6000.c (output_probe_stack_range): Likewise.
1273 2011-09-18 H.J. Lu <hongjiu.lu@intel.com>
1275 * config/i386/bmiintrin.h: Remove tmp.
1276 * config/i386/tbmintrin.h: Likewise.
1278 2011-09-18 Ira Rosen <ira.rosen@linaro.org>
1280 PR tree-optimization/50414
1281 * tree-vect-slp.c (vect_get_constant_vectors): Handle MAX_EXPR and
1284 2011-09-18 Ira Rosen <ira.rosen@linaro.org>
1286 PR tree-optimization/50412
1287 * tree-vect-data-refs.c (vect_analyze_group_access): Fail for
1288 acceses that require epilogue loop if vectorizing outer loop.
1290 2011-09-17 David S. Miller <davem@davemloft.net>
1292 * config/sparc/sparc.md (UNSPEC_EDGE8, UNSPEC_EDGE8L,
1293 UNSPEC_EDGE16, UNSPEC_EDGE16L, UNSPEC_EDGE32, UNSPEC_EDGE32L):
1295 (define_attr type): New type 'edge'.
1296 (edge8_vis, edge8l_vis, edge16_vis, edge16l_vis, edge32_vis,
1297 edge32l_vis): New patterns.
1298 * config/sparc/ultra1_2.md: Add insn reservation for 'edge'.
1299 * config/sparc/ultra3.md: Likewise.
1300 * config/sparc/niagara.md: Likewise.
1301 * config/sparc/niagara2.md: Likewise.
1302 * config/sparc/sparc.d (sparc_vis_init_builtins): Generate
1303 builtins for VIS edge instructions.
1304 * config/sparc/visintrin.h (__vis_edge8, __vis_edge8l)
1305 (__vis_edge16, __vis_edge16l, __vis_edge32, __vis_edge32l): New
1307 (__v8qi, __v4qi): Make unsigned.
1308 (__vis_faligndatadi, ___vis_faligndatav2si, __vis_faligndatav4hi,
1309 __vis_faligndatav8qi, __vis_fmul8x16au, __vis_fmul8x16al,
1310 __vis_fpack32): Fix types.
1311 * doc/extend.texi: Document new 'edge' VIS intrinsics.
1313 * gcc/config/sparc/sparc.c (niagara2_costs): Adjust integer
1315 (niagara3_costs): New.
1316 (sparc_option_override): Use it.
1317 * gcc/config/sparc/niagara2.md: Adjust with more accurate
1318 Niagara-3 reservations.
1320 2011-09-17 Jakub Jelinek <jakub@redhat.com>
1322 * config/i386/sse.md (VIMAX_AVX2): Change V4DI to V2TI.
1323 (sse2_avx, sseinsnmode): Add V2TI.
1324 (REDUC_SMINMAX_MODE): New mode iterator.
1325 (reduc_smax_v4sf, reduc_smin_v4sf, reduc_smax_v8sf,
1326 reduc_smin_v8sf, reduc_smax_v4df, reduc_smin_v4df): Remove.
1327 (reduc_<code>_<mode>): New smaxmin and umaxmin expanders.
1328 (sse2_lshrv1ti3): Rename to...
1329 (<sse2_avx2>_lshr<mode>3): ... this. Use VIMAX_AVX2 mode
1330 iterator. Move before umaxmin expanders.
1331 * config/i386/i386.h (VALID_AVX256_REG_MODE,
1332 SSE_REG_MODE_P): Accept V2TImode.
1333 * config/i386/i386.c (ix86_expand_reduc): Handle V32QImode,
1334 V16HImode, V8SImode and V4DImode.
1336 * config/i386/i386.c (ix86_build_const_vector): Handle V8SImode
1338 (ix86_build_signbit_mask): Likewise.
1339 (ix86_expand_int_vcond): Likewise. Handle V16HImode and V32QImode.
1340 (bdesc_args): Use CODE_FOR_{s,u}m{ax,in}v{32q,16h,8s}i3
1341 instead of CODE_FOR_avx2_{s,u}m{ax,in}v{32q,16h,8s}i3.
1342 * config/i386/sse.md (avx2_<code><mode>3 umaxmin expand): Rename to...
1343 (<code><mode>3) ... this.
1344 (avx2_<code><mode>3 smaxmin expand): Rename to...
1345 (<code><mode>3) ... this.
1346 (smax<mode>3, smin<mode>3): Macroize using smaxmin code iterator.
1347 (smaxv2di3, sminv2di3): Macroize using smaxmin code iterator and
1348 VI8_AVX2 mode iterator.
1349 (umaxv2di3, uminv2di3): Macroize using umaxmin code iterator and
1350 VI8_AVX2 mode iterator.
1351 (vcond<V_256:mode><VI_256:mode>, vcondu<V_256:mode><VI_256:mode>):
1354 2011-09-17 Richard Sandiford <rdsandiford@googlemail.com>
1356 * config/ia64/itanium2.md: Use match_test rather than eq/ne symbol_ref
1359 2011-09-16 David S. Miller <davem@davemloft.net>
1361 * config/sparc/visintrin.h: New file.
1362 * config.gcc: Add it to extra_headers on sparc.
1364 2011-09-16 Jakub Jelinek <jakub@redhat.com>
1366 * config/i386/i386.c (ix86_expand_reduc_v4sf): Rename to ...
1367 (ix86_expand_reduc): ... this. Handle also V8SFmode and V4DFmode.
1368 * config/i386/sse.md (reduc_splus_v4sf, reduc_smax_v4sf,
1369 reduc_smin_v4sf): Adjust callers.
1370 (reduc_smax_v8sf, reduc_smin_v8sf, reduc_smax_v4df, reduc_smin_v4df):
1373 * config/i386/sse.md (vec_extract_hi_<mode>,
1374 vec_extract_hi_v16hi, vec_extract_hi_v32qi): Use
1375 vextracti128 instead of vextractf128 for -mavx2 and
1376 integer vectors. For V4DFmode fix up mode attribute.
1377 (VEC_EXTRACT_MODE): For TARGET_AVX add 32-byte vectors.
1378 (vec_set_lo_<mode>, vec_set_hi_<mode>): For VI8F_256 modes use V4DF
1379 instead of V8SF mode attribute.
1380 (avx2_extracti128): Change into define_expand.
1381 * config/i386/i386.c (ix86_expand_vector_extract): Handle
1382 32-byte vector modes if TARGET_AVX.
1384 2011-09-16 Georg-Johann Lay <avr@gjlay.de>
1386 * config/avr/avr.md: (umulqihi3, mulqihi3): Write as one pattern.
1387 (umulqi3_highpart, smulqi3_highpart): Ditto.
1388 (*maddqihi4.const, *umaddqihi4.uconst): Ditto.
1389 (*msubqihi4.const, *umsubqihi4.uconst): Ditto.
1390 (*muluqihi3.uconst, *mulsqihi3.sconst): Ditto.
1392 2011-09-16 Georg-Johann Lay <avr@gjlay.de>
1395 * config/avr/avr.md (*ashiftqihi2.signx.1): New insn.
1396 (*maddqi4, *maddqi4.const): New insns.
1397 (*msubqi4, *msubqi4.const): New insns.
1398 * config/avr/avr.c (avr_rtx_costs): Record costs of above in cases
1399 PLUS:QI and MINUS:QI. Increase costs of multiply-add/-sub for
1400 HImode by 1 in the case of multiplying with a CONST_INT.
1401 Record cost of *ashiftqihi2.signx.1 in case ASHIFT:QI.
1403 2011-09-15 Jan Hubicka <jh@suse.cz>
1406 * gimple-fold.c (gimple_get_virt_method_for_binfo): Do not ICE on
1407 error_mark_node in the DECL_INITIAL of vtable.
1409 2011-09-15 Diego Novillo <dnovillo@google.com>
1411 * Makefile.in (SYSROOT_CFLAGS_FOR_TARGET): Define from
1412 @SYSROOT_CFLAGS_FOR_TARGET@.
1413 * configure.ac (SYSROOT_CFLAGS_FOR_TARGET): Set from build-sysroot.
1414 * configure: Regenerate.
1415 (site.exp): Add definition of TEST_ALWAYS_FLAGS.
1416 Remove setting of GCC_UNDER_TEST.
1418 2011-09-15 Uros Bizjak <ubizjak@gmail.com>
1420 * config/i386/i386.c (output_fp_compare): Return %v prefixed
1421 instruction mnemonics for TARGET_AVX.
1423 * config/i386/i386.md (*movdf_internal_rex64): use cond RTX in
1424 "type" attribute calculation.
1425 (*movdf_internal): Ditto.
1426 (*movsf_internal): Ditto.
1428 2011-09-15 James Greenhalgh <james.greenhalgh@arm.com>
1430 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): New builtin macro.
1432 2011-09-15 Jason Merrill <jason@redhat.com>
1435 * expr.c (count_type_elements): Handle NULLPTR_TYPE.
1437 2011-09-15 Jan Hubicka <jh@suse.cz>
1439 * ipa-inline-analysis.c (add_condition): Add conditions parameter;
1440 simplify obviously true clauses.
1441 (and_predicates, or_predicates): Add conditions parameter.
1442 (inline_duplication_hoook): Update.
1443 (mark_modified): New function.
1444 (unmodified_parm): New function.
1445 (eliminated_by_inlining_prob, (set_cond_stmt_execution_predicate,
1446 set_switch_stmt_execution_predicate, will_be_nonconstant_predicate):
1447 Use unmodified_parm.
1448 (estimate_function_body_sizes): Update.
1449 (remap_predicate): Update.
1451 2011-09-15 Ira Rosen <ira.rosen@linaro.org>
1453 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Allow
1454 read-after-read dependencies in basic block SLP.
1456 2011-09-14 Richard Sandiford <rdsandiford@googlemail.com>
1458 * config/sparc/sparc.md: Use match_test rather than eq/ne symbol_ref
1461 2011-09-14 Richard Sandiford <rdsandiford@googlemail.com>
1463 * config/sh/sh.md: Use match_test rather than eq/ne symbol_ref
1466 2011-09-14 Richard Sandiford <rdsandiford@googlemail.com>
1468 * config/s390/s390.md: Use match_test rather than eq/ne symbol_ref
1471 2011-09-14 Richard Sandiford <rdsandiford@googlemail.com>
1473 * config/rs6000/rs6000.md: Use match_test rather than eq/ne symbol_ref
1475 * config/rs6000/constraints.md: Likewise.
1477 2011-09-14 Richard Sandiford <rdsandiford@googlemail.com>
1479 * config/microblaze/microblaze.md: Use match_test rather than
1480 eq/ne symbol_ref throughout file.
1482 2011-09-14 Richard Sandiford <rdsandiford@googlemail.com>
1484 * config/bfin/bfin.md: Use match_test rather than eq/ne symbol_ref
1487 2011-09-14 Tom de Vries <tom@codesourcery.com>
1490 * explow.c (emit_stack_restore): Set crtl->need_drap if
1491 stack_restore is emitted.
1493 2011-09-14 Julian Brown <julian@codesourcery.com>
1495 * config/arm/arm.c (arm_override_options): Add unaligned_access
1497 (arm_file_start): Emit attribute for unaligned access as appropriate.
1498 * config/arm/arm.md (UNSPEC_UNALIGNED_LOAD)
1499 (UNSPEC_UNALIGNED_STORE): Add constants for unspecs.
1500 (insv, extzv): Add unaligned-access support.
1501 (extv): Change to expander. Likewise.
1502 (extzv_t1, extv_regsi): Add helpers.
1503 (unaligned_loadsi, unaligned_loadhis, unaligned_loadhiu)
1504 (unaligned_storesi, unaligned_storehi): New.
1505 (*extv_reg): New (previous extv implementation).
1506 * config/arm/arm.opt (munaligned_access): Add option.
1507 * config/arm/constraints.md (Uw): New constraint.
1508 * expmed.c (store_bit_field_1): Adjust bitfield numbering according
1509 to size of access, not size of unit, when BITS_BIG_ENDIAN !=
1510 BYTES_BIG_ENDIAN. Don't use bitfield accesses for
1511 volatile accesses when -fstrict-volatile-bitfields is in effect.
1512 (extract_bit_field_1): Likewise.
1514 2011-09-14 Richard Sandiford <richard.sandiford@linaro.org>
1516 * simplify-rtx.c (simplify_subreg): Check that the inner mode is
1517 a scalar integer before applying integer-only optimisations to
1520 2011-09-14 Bernd Schmidt <bernds@codesourcery.com>
1522 * config/mips/mips.c (mips_expand_epilogue): Generate a
1523 simple_return only if the return address is in r31.
1525 2011-09-13 Bernd Schmidt <bernds@codesourcery.com>
1527 * cfgcleanup.c (try_head_merge_bb): If get_condition returns
1528 NULL for a jump that is a cc0 insn, pick the previous insn for
1531 2011-09-13 Richard Sandiford <rdsandiford@googlemail.com>
1533 * config/v850/v850.md: Use match_test rather than eq/ne symbol_ref
1536 2011-09-13 Richard Sandiford <rdsandiford@googlemail.com>
1538 * config/pa/pa.md: Use match_test rather than eq/ne symbol_ref
1541 2011-09-13 Richard Sandiford <rdsandiford@googlemail.com>
1543 * config/mn10300/mn10300.md: Use match_test rather than eq/ne
1544 symbol_ref throughout file.
1546 2011-09-13 Richard Sandiford <rdsandiford@googlemail.com>
1548 * config/m68k/m68k.md: Use match_test rather than eq/ne symbol_ref
1551 2011-09-13 Richard Sandiford <rdsandiford@googlemail.com>
1553 * config/h8300/h8300.md: Use match_test rather than eq/ne symbol_ref
1556 2011-09-13 Richard Sandiford <rdsandiford@googlemail.com>
1558 * config/arm/arm.md: Use match_test rather than eq/ne symbol_ref
1560 * config/arm/neon.md: Likewise.
1561 * config/arm/vfp.md: Likewise.
1562 * config/arm/thumb2.md: Likewise.
1563 * config/arm/cortex-m4.md: Likewise.
1565 2011-09-13 Sevak Sargsyan <sevak.sargsyan@ispras.ru>
1567 * config/arm/neon.md (neon_vabd<mode>_2, neon_vabd<mode>_3): New
1568 define_insn patterns for combine.
1570 2011-09-13 Giuseppe Scrivano <gscrivano@gnu.org>
1572 * reorg.c: Always define make_return_insns.
1574 2011-09-13 Jan Hubicka <jh@suse.cz>
1577 * cgraphunit.c (assemble_thunks_and_aliases): Force alias to be output.
1579 2011-09-13 Jan Hubicka <jh@suse.cz>
1582 * ipa-inline-transform.c (can_remove_node_now_p): Fix thunkos.
1584 2011-09-13 Paul Brook <paul@codesourcery.com>
1586 * config/arm/arm.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
1587 (ARM_TARGET2_DWARF_FORMAT): Provide default definition.
1588 * config/arm/linux-eabi.h (ARM_TARGET2_DWARF_FORMAT): Define.
1589 * config/arm/symbian.h (ARM_TARGET2_DWARF_FORMAT): Define.
1590 * config/arm/uclinux-eabi.h(ARM_TARGET2_DWARF_FORMAT): Define.
1591 * config/arm/t-bpabi (EXTRA_HEADERS): Add unwind-arm-common.h.
1592 * config/arm/t-symbian (EXTRA_HEADERS): Add unwind-arm-common.h.
1593 * config/c6x/c6x.c (c6x_output_file_unwind): Don't rely on dwarf2 code
1594 enabling unwind tables.
1595 (c6x_debug_unwind_info): New function.
1596 (TARGET_ARM_EABI_UNWINDER): Define.
1597 (TARGET_DEBUG_UNWIND_INFO): Define.
1598 * config/c6x/c6x.h (DWARF_FRAME_RETURN_COLUMN): Define.
1599 (TARGET_EXTRA_CFI_SECTION): Remove.
1600 * config/c6x/t-c6x-elf (EXTRA_HEADERS): Set.
1601 * ginclude/unwind-arm-common.h: New file.
1603 2011-09-13 Georg-Johann Lay <avr@gjlay.de>
1606 * config/avr/predicates.md (const_1_to_6_operand): New predicate.
1607 * config/avr/avr.md: (extend_s): New code attribute.
1608 (mul_r_d): New code attribute.
1609 (*maddqihi4, *umaddqihi4): New insns.
1610 (*msubqihi4, *umsubqihi4): New insns.
1611 (*usmaddqihi4, *sumaddqihi4): New insns.
1612 (*usmsubqihi4, *susubdqihi4): New insns.
1613 (*umaddqihi4.uconst, *maddqihi4.sconst): New insn-and-splits.
1614 (*umsubqihi4.uconst, *msubqihi4.sconst): New insn-and-splits.
1615 (*umsubqihi4.uconst.ashift): New insn-and-split.
1616 (*msubqihi4.sconst.ashift): New insn-and-split.
1617 (*sumaddqihi4.uconst): New insn-and-split.
1618 (*sumsubqihi4.uconst): New insn-and-split.
1619 * config/avr/avr.c (avr_rtx_costs): Report costs of above in case
1620 PLUS:HI and MINUS:HI.
1622 2011-09-13 Revital Eres <revital.eres@linaro.org>
1624 modulo-sched.c (remove_node_from_ps): Return void instead of bool.
1625 (optimize_sc): Adjust call to remove_node_from_ps.
1626 (sms_schedule): Add print info.
1628 2011-09-13 Bernd Schmidt <bernds@codesourcery.com>
1630 * rtl.c (copy_rtx): Do not handle frame_related, jump or call
1633 2011-09-12 Jakub Jelinek <jakub@redhat.com>
1636 * dwarf2cfi.c (add_cfis_to_fde): Ignore non-active insns in between
1637 NOTE_INSN_CFI notes, with the exception of
1638 NOTE_INSN_SWITCH_TEXT_SECTIONS.
1640 2011-09-12 Bernd Schmidt <bernds@codesourcery.com>
1641 Richard Sandiford <rdsandiford@googlemail.com>
1643 * config/mips/mips.c (mips_epilogue): New structure.
1644 (mips16e_save_restore_reg): Queue REG_CFA_RESTORE notes when
1645 restoring registers.
1646 (mips_epilogue_emit_cfa_restores): New function.
1647 (mips_epilogue_set_cfa): Likewise.
1648 (mips_restore_reg): Queue REG_CFA_RESTORE notes. When restoring
1649 the current CFA register from the stack, redefine the CFA in terms
1650 of the stack pointer.
1651 (mips_expand_epilogue): Set up mips_epilogue. Attach CFA information
1652 to the epilogue instructions.
1654 2011-09-12 Richard Sandiford <rdsandiford@googlemail.com>
1656 * config/mips/mips.c (mips16e_save_restore_reg): Add a reg_parm_p
1658 (mips16e_build_save_restore): Update accordingly.
1660 2011-09-12 Jakub Jelinek <jakub@redhat.com>
1662 PR rtl-optimization/50212
1663 * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
1664 Skip also lps with NULL landing_pad or non-LABEL_P landing_pad.
1667 * calls.c (load_register_parameters): Use use_reg_mode instead
1668 of use_reg when adding a single register CALL_INSN_FUNCTION_USAGE
1670 (expand_call): Set EXPR_LIST mode to TYPE_MODE of the argument
1671 for stack CALL_INSN_FUNCTION_USAGE uses.
1672 * expr.h (use_reg_mode): New prototype.
1673 (use_reg): Changed into inline around use_reg_mode.
1674 * expr.c (use_reg): Renamed to...
1675 (use_reg_mode): ... this. Added MODE argument, set EXPR_LIST
1676 mode to that mode instead of VOIDmode.
1677 * var-tracking.c (prepare_call_arguments): Don't track parameters
1678 whose EXPR_LIST mode is VOIDmode, BLKmode or X mode isn't convertible
1679 to it using lowpart_subreg. Convert VALUE and REG/MEM to the
1682 2011-09-12 Georg-Johann Lay <avr@gjlay.de>
1685 * config/avr/avr.c (AVR_SECTION_PROGMEM): New Define.
1686 (progmem_section): New Variable.
1687 (avr_asm_init_sections): Initialize it.
1688 (TARGET_ASM_SELECT_SECTION): Define to...
1689 (avr_asm_select_section): ... this new Function.
1690 (avr_replace_prefix): New Function.
1691 (avr_asm_function_rodata_section): Use it.
1692 (avr_insert_attributes): Don't add section attribute for PROGMEM.
1693 (avr_section_type_flags): Use avr_progmem_p instead of section
1694 name to detect if object is in PROGMEM.
1695 (avr_asm_named_section): Set section name prefix for objects in
1698 2011-09-12 Jakub Jelinek <jakub@redhat.com>
1701 * config/arm/arm.md (*push_fp_multi): Add % before %( and %) in the
1702 sprintf format string.
1704 2011-09-12 Richard Guenther <rguenther@suse.de>
1706 PR tree-optimization/50343
1707 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Check
1708 that the reduction is over an SSA name before checking its definition.
1710 2011-09-11 Richard Sandiford <rdsandiford@googlemail.com>
1712 * config/cris/cris.md: Use match_test rather than eq/ne symbol_ref
1715 2011-09-11 Richard Sandiford <rdsandiford@googlemail.com>
1717 * config/mips/mips.md: Use match_test rather than eq/ne symbol_ref
1719 * config/mips/sb1.md: Likewise.
1720 * config/mips/predicates.md: Replace (match_test "!...")
1721 with (not (match_test "..."))
1722 * config/mips/constraints.md: Likewise.
1724 2011-09-09 Andrew Stubbs <ams@codesourcery.com>
1726 * config/arm/arm-cores.def (generic-armv7-a): New architecture.
1727 * config/arm/arm-tables.opt: Regenerate.
1728 * config/arm/arm-tune.md: Regenerate.
1729 * config/arm/arm.c (arm_file_start): Output .arch directive when
1730 user passes -mcpu=generic-*.
1731 (arm_issue_rate): Add genericv7a support.
1732 * config/arm/arm.h (EXTRA_SPECS): Add asm_cpu_spec.
1733 (ASM_CPU_SPEC): New define.
1734 * config/arm/elf.h (ASM_SPEC): Use %(asm_cpu_spec).
1735 * config/arm/semi.h (ASM_SPEC): Likewise.
1736 * doc/invoke.texi (ARM Options): Document -mcpu=generic-*
1737 and -mtune=generic-*.
1739 2011-09-09 Richard Guenther <rguenther@suse.de>
1741 PR tree-optimization/50328
1742 * tree-vect-loop.c (vect_is_simple_reduction_1): Allow one
1743 constant or default-def operand.
1745 2011-09-09 Richard Guenther <rguenther@suse.de>
1747 * tree-ssa-pre.c (create_expression_by_pieces): Fold the
1750 2011-09-09 Richard Guenther <rguenther@suse.de>
1752 * gimple.h (fold_stmt_inplace): Adjust to take a gimple_stmt_iterator
1753 instead of a statement.
1754 * gimple-fold.c (fold_stmt_inplace): Likewise.
1755 * sese.c (graphite_copy_stmts_from_block): Adjust.
1756 * tree-ssa-dom.c (propagate_rhs_into_lhs): Likewise.
1757 * tree-ssa-forwprop.c (forward_propagate_into_comparison): Use
1759 (forward_propagate_addr_into_variable_array_index): Likewise.
1760 (forward_propagate_addr_expr_1): adjust.
1761 (associate_plusminus): Likewise.
1762 (ssa_forward_propagate_and_combine): Likewise.
1763 * tree-ssa-mathopts.c (replace_reciprocal): Adjust.
1764 (execute_cse_reciprocals): Likewise.
1765 * tree-ssa.c (insert_debug_temp_for_var_def): Adjust.
1767 2011-09-09 Nick Clifton <nickc@redhat.com>
1769 * config/mn10300/mn10300.c (mn10300_split_and_operand_count):
1770 Return a positive value to indicate that the bits at the
1771 bottom of the register should be cleared.
1773 2011-09-09 Richard Guenther <rguenther@suse.de>
1775 * tree-ssa-operands.c (swap_tree_operands): Always adjust
1776 existing operand positions.
1778 2011-09-09 Richard Guenther <rguenther@suse.de>
1781 * tree-data-ref.c (split_constant_offset): Do not try to handle
1784 2011-09-08 Andrew Stubbs <ams@codesourcery.com>
1786 PR tree-optimization/50318
1787 * tree-ssa-math-opts.c (convert_plusminus_to_widen): Correct
1788 typo in use of mult_rhs1 and mult_rhs2.
1790 2011-09-08 Uros Bizjak <ubizjak@gmail.com>
1792 * config/i386/i386.c (standard_sse_constant_p): Handle AVX2 modes.
1793 (standard_sse_constant_opcode) <case 2>: Change vpcmpeqd template.
1795 2011-09-08 Bernd Schmidt <bernds@codesourcery.com>
1797 * config/arm/arm.md (push_multi): Emit predicates.
1798 (push_fp_multi): Likewise.
1799 * config/arm/arm.c (vfp_output_fstmd): Likewise.
1801 2011-09-08 Dodji Seketeli <dodji@redhat.com>
1803 PR c++/33255 - Support -Wunused-local-typedefs warning
1804 * c-decl.c (lookup_name): Use the new maybe_record_typedef_use.
1805 (pushdecl): Use the new record_locally_defined_typedef.
1806 (store_parm_decls): Allocate cfun->language.
1807 (finish_function): Use the new maybe_warn_unused_local_typedefs,
1808 and free cfun->language.
1809 (c_push_function_context): Allocate cfun->language here only if needed.
1810 (c_pop_function_context): Likewise, mark cfun->language
1811 for collection only when it should be done.
1812 * c-common.c (handle_used_attribute): Don't ignore TYPE_DECL nodes.
1813 * c-typeck.c (c_expr_sizeof_type, c_cast_expr): Use the new
1814 maybe_record_local_typedef_use.
1815 * doc/invoke.texi: Update documentation for
1816 -Wunused-local-typedefs.
1818 2011-09-08 Enkovich Ilya <ilya.enkovich@intel.com>
1820 * config/i386/i386-protos.h (ix86_lea_outperforms): New.
1821 (ix86_avoid_lea_for_add): Likewise.
1822 (ix86_avoid_lea_for_addr): Likewise.
1823 (ix86_split_lea_for_addr): Likewise.
1825 * config/i386/i386.c (LEA_MAX_STALL): New.
1826 (increase_distance): Likewise.
1827 (insn_defines_reg): Likewise.
1828 (insn_uses_reg_mem): Likewise.
1829 (distance_non_agu_define_in_bb): Likewise.
1830 (distance_agu_use_in_bb): Likewise.
1831 (ix86_lea_outperforms): Likewise.
1832 (ix86_ok_to_clobber_flags): Likewise.
1833 (ix86_avoid_lea_for_add): Likewise.
1834 (ix86_avoid_lea_for_addr): Likewise.
1835 (ix86_split_lea_for_addr): Likewise.
1836 (distance_non_agu_define): Search in pred BBs added.
1837 (distance_agu_use): Search in succ BBs added.
1838 (IX86_LEA_PRIORITY): Value changed from 2 to 0.
1839 (LEA_SEARCH_THRESHOLD): Now depends on LEA_MAX_STALL.
1840 (ix86_lea_for_add_ok): Use ix86_lea_outperforms to make decision.
1842 * config/i386/i386.md: Split added to transform non destructive
1843 add into move and add.
1844 (lea_1): transformed into insn_and_split to avoid AGU stalls.
1845 (lea<mode>_2): Likewise.
1847 2011-09-08 Martin Jambor <mjambor@suse.cz>
1849 PR tree-optimization/50287
1850 * ipa-split.c (split_function): Do not create SSA names for
1851 non-gimple-registers.
1853 2011-09-08 Richard Guenther <rguenther@suse.de>
1855 PR tree-optimization/19831
1856 * tree-ssa-dce.c (mark_all_reaching_defs_necessary_1): Also
1857 skip builtins with vdefs that do not really store something.
1858 (propagate_necessity): For calls to free that we can associate
1859 with an allocation function do not mark the freed pointer
1860 definition necessary.
1861 (eliminate_unnecessary_stmts): Remove a call to free if
1862 the associated call to an allocation function is not necessary.
1864 2011-09-08 Richard Guenther <rguenther@suse.de>
1866 PR tree-optimization/19831
1867 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Do not mark
1868 allocation functions as necessary.
1870 2011-09-08 Iain Sandoe <iains@gcc.gnu.org>
1872 * config/darwin-driver.c (darwin_find_version_from_kernel): New routine
1874 (darwin_default_min_version): Amended to provide defaults
1875 for the cross directory case.
1876 (darwin_driver_init): call darwin_default_min_version unconditionally.
1877 * config/darwin.h (DEF_MIN_OSX_VERSION): New.
1878 * config/darwin9.h: Likewise.
1879 * config/darwin10.h: Likewise.
1880 * config/rs6000/darwin7.h: Likewise.
1882 2011-09-08 Jakub Jelinek <jakub@redhat.com>
1885 * config/i386/i386.c (ix86_prepare_sse_fp_compare_args): Return
1886 code early if TARGET_AVX.
1887 (ix86_expand_fp_vcond): Handle LTGT and UNEQ.
1889 2011-09-07 Jakub Jelinek <jakub@redhat.com>
1891 * config/i386/sse.md (sseinsnmode): Remove 32-byte integer vector
1895 * config/i386/sse.md (*andnot<mode>3, *<code><mode>3): Fix up
1896 "mode" attribute computation.
1898 2011-09-07 Bernd Schmidt <bernds@codesourcery.com>
1900 * regrename.c (struct du_head): Make nregs signed.
1901 (closed_chains): Remove.
1902 (create_new_chain): Return the new chain.
1903 (chain_from_id): New static function.
1904 (dump_def_use_chain): Change argument to be an int, indicating
1905 the first ID to print. All callers changed.
1906 (merge_overlapping_regs): Use chain_from_id. Assert that
1907 chains don't conflict with themselves.
1908 (rename_chains): Take no argument. Iterate over id_to_chain
1909 rather to find chains to rename. Clear tick before the main loop.
1910 (struct incoming_reg_info): New struct.
1911 (struct bb_rename_info): New struct.
1912 (init_rename_info, set_incoming_from_chain, merge_chains): New
1914 (regrename_analyze): New static function, broken out of
1915 regrename_optimize. Record and make use of open chain information
1916 at basic block boundaries, and merge chains where possible.
1917 (scan_rtx_reg): Make this_nregs signed. Don't update
1919 (build_def_use): Return a bool to indicate success. All callers
1920 changed. Don't initialize global data here.
1921 (regrename_optimize): Move most code out of here into
1923 * regs.h (add_range_to_hard_reg_set, remove_range_from_hard_reg_set,
1924 range_overlaps_hard_reg_set_p, range_in_hard_reg_set_p): New
1925 static inline functions.
1926 * vec.h (FOR_EACH_VEC_ELT_FROM): New macro.
1928 * bb-reorder.c (insert_section_boundary_note): Don't check
1929 optimize_function_for_speed_p.
1930 (gate_handle_partition_blocks): Do it here instead.
1931 (gate_handle_reorder_blocks): Move preliminary checks here ...
1932 (rest_of_handle_reorder_blocks): ... from here.
1934 2011-09-07 Martin Jambor <mjambor@suse.cz>
1937 * ipa-cp.c (find_more_values_for_callers_subset): Check jump
1938 function index bounds.
1939 (perhaps_add_new_callers): Likewise.
1941 2011-09-07 Martin Jambor <mjambor@suse.cz>
1943 PR tree-optimization/49911
1944 * tree-sra.c (analyze_access_subtree): Change type of to-be-replaced
1945 enumerations to the corresponding plain integer type.
1947 2011-09-07 Richard Guenther <rguenther@suse.de>
1949 PR tree-optimization/50319
1950 * tree-if-conv.c (set_bb_predicate): Assert we only set
1951 canonical predicates.
1952 (add_to_predicate_list): Simplify. Allow TRUTH_NOT_EXPR
1953 around canonical predicates.
1954 (predicate_bbs): Do not re-gimplify already canonical
1955 predicates. Properly unshare them though.
1956 (find_phi_replacement_condition): Simplify.
1958 2011-09-07 Richard Sandiford <richard.sandiford@linaro.org>
1961 * config/arm/arm-protos.h (maybe_get_arm_condition_code): Declare.
1962 * config/arm/arm.c (maybe_get_arm_condition_code): New function,
1963 reusing the old code from get_arm_condition_code. Return ARM_NV
1964 for invalid comparison codes.
1965 (get_arm_condition_code): Redefine in terms of
1966 maybe_get_arm_condition_code.
1967 * config/arm/predicates.md (arm_comparison_operator): Use
1968 maybe_get_arm_condition_code.
1970 2011-09-07 Richard Guenther <rguenther@suse.de>
1972 * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond):
1973 Canonicalize negated predicates by swapping edges.
1974 (forward_propagate_into_cond): Likewise.
1976 2011-09-07 Richard Guenther <rguenther@suse.de>
1978 PR tree-optimization/50213
1979 * tree-flow.h (simple_iv_increment_p): Declare.
1980 * tree-ssa-dom.c (simple_iv_increment_p): Export. Also handle
1982 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Do
1983 not propagate simple IV counter increments.
1985 2011-09-07 Eric Botcazou <ebotcazou@adacore.com>
1986 Iain Sandoe <iains@gcc.gnu.org>
1988 * config/rs6000/rs6000.c (compute_save_world_info): Test
1989 cfun->has_nonlocal_label to determine if the out-of-line save
1990 world call may be used.
1992 2011-09-07 Nick Clifton <nickc@redhat.com>
1994 * config/mn10300/mn10300.c (mn10300_insert_setlb_lcc): Set the jump
1995 label on the parallel part of the insn.
1997 2011-09-07 Jakub Jelinek <jakub@redhat.com>
2000 * dwarf2out.c (mem_loc_descriptor) <case MEM>: Try
2001 avoid_constant_pool_reference first instead of last.
2003 2011-09-06 Michael Meissner <meissner@linux.vnet.ibm.com>
2005 * doc/configfiles.texi (Configuration Files): Update documentation
2006 about tm_p.h and remove FIXME comment.
2008 2011-09-06 Uros Bizjak <ubizjak@gmail.com>
2010 * config/i386/i386.c (ix86_function_value_regno_p): Use AX_REG.
2011 (function_value_32): Do not check TARGET_MMX, TARGET_SSE or TARGET_AVX.
2013 2011-09-06 Iain Sandoe <iains@gcc.gnu.org>
2015 * config/darwin10.h Remove duplicate LIB_SPEC.
2017 2011-09-06 Enkovich Ilya <ilya.enkovich@intel.com>
2020 * target.def (reassociation_width): New hook.
2022 * doc/tm.texi.in (reassociation_width): Likewise.
2024 * doc/tm.texi (reassociation_width): Likewise.
2026 * doc/invoke.texi (tree-reassoc-width): New param documented.
2028 * hooks.h (hook_int_uint_mode_1): New default hook.
2030 * hooks.c (hook_int_uint_mode_1): Likewise.
2032 * config/i386/i386.h (ix86_tune_indices): Add
2033 X86_TUNE_REASSOC_INT_TO_PARALLEL and X86_TUNE_REASSOC_FP_TO_PARALLEL.
2035 (TARGET_REASSOC_INT_TO_PARALLEL): New.
2036 (TARGET_REASSOC_FP_TO_PARALLEL): Likewise.
2038 * config/i386/i386.c (initial_ix86_tune_features): Add
2039 X86_TUNE_REASSOC_INT_TO_PARALLEL and X86_TUNE_REASSOC_FP_TO_PARALLEL.
2041 (ix86_reassociation_width): New function.
2043 * params.def (PARAM_TREE_REASSOC_WIDTH): New param added.
2045 * tree-ssa-reassoc.c (get_required_cycles): New function.
2046 (get_reassociation_width): Likewise.
2047 (swap_ops_for_binary_stmt): Likewise.
2048 (rewrite_expr_tree_parallel): Likewise.
2050 (rewrite_expr_tree): Refactored. Part of code moved into
2051 swap_ops_for_binary_stmt.
2053 (reassociate_bb): Now checks reassociation width to be used and
2054 call rewrite_expr_tree_parallel instead of rewrite_expr_tree if needed.
2056 2011-09-06 Richard Guenther <rguenther@suse.de>
2058 PR tree-optimization/47025
2059 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): BUILT_IN_VA_END
2061 (call_may_clobber_ref_p_1): BUILT_IN_VA_END is a barrier like
2063 (stmt_kills_ref_p_1): BUILT_IN_VA_END kills what its argument
2064 definitely points to.
2065 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
2066 BUILT_IN_VA_START doesn't let its va_list argument escape.
2067 * tree-ssa-dce.c (propagate_necessity): BUILT_IN_VA_END does
2068 not make any previous stores necessary.
2070 2011-09-06 Martin Jambor <mjambor@suse.cz>
2072 * ipa-inline.h (struct inline_summary): Move versionable flag...
2073 * cgraph.h (struct cgraph_local_info): ...here
2074 * ipa-cp.c (determine_versionability): Use the new versionable flag.
2075 (determine_versionability): Likewise.
2076 (ipcp_versionable_function_p): Likewise.
2077 (ipcp_generate_summary): Likewise.
2078 * ipa-inline-analysis.c (dump_inline_summary): Do not dump the
2080 (compute_inline_parameters): Do not clear the versionable flag.
2081 (inline_read_section): Do not stream the versionable flag.
2082 (inline_write_summary): Likewise.
2083 * lto-cgraph.c (lto_output_node): Stream the versionable flag.
2084 (input_overwrite_node): Likewise.
2086 2011-09-06 Richard Guenther <rguenther@suse.de>
2088 PR tree-optimization/48149
2089 * tree-ssa-sccvn.c (vn_get_expr_for): Simplify. Fix tuplification bug.
2090 (vn_valueize): Move earlier.
2091 (valueize_expr): Use vn_valueize.
2092 (simplify_binary_expression): Simplify, also combine COMPLEX_EXPR
2094 (simplify_unary_expression): Simplify.
2096 2011-09-06 Richard Guenther <rguenther@suse.de>
2098 PR tree-optimization/48317
2099 * tree-ssa-sccvn.h (struct vn_nary_op_s): Make op a true
2101 (sizeof_vn_nary_op): New inline function.
2102 (vn_nary_op_lookup_pieces): Adjust.
2103 (vn_nary_op_insert_pieces): Likewise.
2104 * tree-ssa-sccvn.c (vn_nary_op_eq): Also compare the length.
2105 (init_vn_nary_op_from_pieces): Adjust signature. Deal with
2106 any number of operands.
2107 (vn_nary_length_from_stmt): New function.
2108 (init_vn_nary_op_from_stmt): Adjust for CONSTRUCTOR handling.
2109 (vn_nary_op_lookup_pieces): Adjust signature and allocate properly
2111 (vn_nary_op_lookup): Likewise.
2112 (vn_nary_op_lookup_stmt): Likewise.
2113 (vn_nary_op_insert_into): Likewise.
2114 (vn_nary_op_insert_stmt): Likewise.
2115 (visit_use): Handle CONSTRUCTOR as nary.
2116 * tree-ssa-pre.c (phi_translate_1): Adjust.
2117 (create_expression_by_pieces): Likewise.
2118 (compute_avail): Likewise.
2120 2011-09-06 Ira Rosen <ira.rosen@linaro.org>
2122 * config/arm/arm.c (arm_preferred_simd_mode): Check
2123 TARGET_NEON_VECTORIZE_DOUBLE instead of
2124 TARGET_NEON_VECTORIZE_QUAD.
2125 (arm_autovectorize_vector_sizes): Likewise.
2126 * config/arm/arm.opt (mvectorize-with-neon-quad): Make inverse
2127 mask of mvectorize-with-neon-double. Add RejectNegative.
2128 (mvectorize-with-neon-double): New.
2130 2011-09-06 Richard Guenther <rguenther@suse.de>
2132 * tree-ssa-sccvn.c (visit_use): CSE stmt pieces and simplify matching.
2134 2011-09-06 Tom de Vries <tom@codesourcery.com>
2136 * recog.c (asm_labels_ok): New function.
2137 (check_asm_operands): Use asm_labels_ok.
2139 2011-09-05 Richard Sandiford <rdsandiford@googlemail.com>
2142 * config/mips/mips.h (ABI_HAS_64BIT_SYMBOLS): Check Pmode.
2143 (PMODE_INSN): New macro.
2144 * config/mips/mips.c (gen_load_const_gp): Use PMODE_INSN.
2145 (mips_got_load, mips_expand_synci_loop): Likewise.
2146 (mips_save_gp_to_cprestore_slot): Handle SImode and DImode
2148 (mips_emit_loadgp): Use PMODE_INSN. Handle SImode and DImode
2149 copygp_mips16 patterns.
2150 (mips_expand_prologue): Handle SImode and DImode potential_cprestore
2151 and use_cprestore patterns.
2152 (mips_override_options): Check for incompatible -mabi and -mlong
2154 * config/mips/mips.md (unspec_got<mode>): Rename to...
2155 (unspec_got_<mode>): ...this.
2156 (copygp_mips16): Use the Pmode iterator.
2157 (potential_cprestore, cprestore, use_cprestore): Likewise.
2158 (clear_cache, indirect_jump): Use PMODE_INSN.
2159 (indirect_jump<mode>): Rename to...
2160 (indirect_jump_<mode>): ...this.
2161 (tablejump): Use PMODE_INSN.
2162 (tablejump<mode>): Rename to...
2163 (tablejump_<mode>): ...this.
2164 (exception_receiver): Handle restore_gp_si and restore_gp_di.
2165 (restore_gp): Use the Pmode iterator.
2166 * config/mips/mips-dsp.md (mips_lbux, mips_lhx, mips_lwx): Use
2169 2011-09-05 Richard Sandiford <rdsandiford@googlemail.com>
2171 * config/mips/mips.c (mips_gimplify_va_arg_expr): Unshare off.
2172 Fix the type of the BIT_AND_EXPR.
2174 2011-09-05 David S. Miller <davem@davemloft.net>
2176 * config.host: Add driver-sparc.o and sparc/x-sparc on
2177 native sparc*-*-linux* builds.
2178 * config/sparc/driver-sparc.c: Correct Linux strings.
2179 * config/sparc/linux.h: Add DRIVER_SELF_SPECS.
2180 * config/sparc/linux64.h: Likewise.
2181 * doc/invoke.texi: Document that Linux also supports
2182 -mcpu=native and -mtune=native on sparc.
2184 * config/sparc/sparc-opts.h (PROCESSOR_NIAGARA3,
2185 PROCESSOR_NIAGARA4): New.
2186 * config/sparc/sparc.opt: Handle new processor types.
2187 * config/sparc/sparc.md: Add to "cpu" attribute.
2188 * config/sparc/sparc.h (TARGET_CPU_niagara3,
2189 TARGET_CPU_niagara4): New, treat as niagara2.
2190 * config/sparc/linux64.h: Handle niagara3 and niagara4 like niagara2.
2191 * config/sparc/sol2.h: Likewise.
2192 * config/sparc/niagara2.md: Schedule niagara3 like niagara2.
2193 * config/sparc/sparc.c (sparc_option_override): Add
2194 niagara3 and niagara4 handling.
2195 (sparc32_initialize_trampoline): Likewise.
2196 (sparc64_initialize_trampoline): Likewise.
2197 (sparc_use_sched_lookahead): Likewise.
2198 (sparc_issue_rate): Likewise.
2199 (sparc_register_move_cost): Likewise.
2200 * config/sparc/driver-sparc.c (cpu_names): Use niagara3
2201 and niagara4 as appropriate.
2202 * doc/invoke.texi: Document new processor types.
2203 * config.gcc: Recognize niagara3 and niagara4 in --with-cpu
2204 and --with-tune options.
2206 * config/sparc/sol2-64.h: Move ...
2207 * config/sparc/default-64.h: ... to here. Update comment.
2208 * config.gcc: Update Solaris sparc to use default-64.h, also
2209 prefix this header into the list on sparc64-*-linux.
2210 * config/sparc/linux64.h (TARGET_DEFAULT): Only override if
2211 TARGET_64BIT_DEFAULT is defined. Remove commented out reference
2214 2011-09-05 Georg-Johann Lay <avr@gjlay.de>
2217 * config/avr/avr.c (sequent_regs_live): Don't recognize sequences
2218 that contain global register variable.
2220 2011-09-05 Richard Guenther <rguenther@suse.de>
2222 * tree-cfg.c (replace_uses_by): Use fold_stmt, not fold_stmt_inplace.
2224 2011-09-05 Richard Guenther <rguenther@suse.de>
2226 * stor-layout.c (layout_type): Use size_binop for array size
2229 2011-09-05 Georg-Johann Lay <avr@gjlay.de>
2231 * config/avr/avr.h (progmem_section): Remove Declaration.
2232 * config/avr/avr.c (progmem_section): Make static and rename to
2233 progmem_swtable_section.
2234 (avr_output_addr_vec_elt): No need to switch sections.
2235 (avr_asm_init_sections): Use output_section_asm_op as section
2236 callback for progmem_swtable_section.
2237 (avr_output_progmem_section_asm_op): Remove Function.
2238 (TARGET_ASM_FUNCTION_RODATA_SECTION): New Define.
2239 (avr_asm_function_rodata_section): New static Function.
2240 * config/avr/elf.h (ASM_OUTPUT_BEFORE_CASE_LABEL): Output
2241 alignment 2**1 for jump tables.
2243 2011-09-04 Jan Hubicka <jh@suse.cz>
2245 * ipa-inline-analysis.c (set_cond_stmt_execution_predicate): Check that
2246 parameter is SSA name.
2248 2011-09-04 Richard Guenther <rguenther@suse.de>
2251 2011-08-31 Richard Guenther <rguenther@suse.de>
2253 * fold-const.c (extract_muldiv_1): Remove bogus TYPE_IS_SIZETYPE
2256 2011-09-04 Iain Sandoe <iains@gcc.gnu.org>
2259 * config/darwin.h (DEBUG_MACRO_SECTION): New macro.
2261 2011-09-04 Jakub Jelinek <jakub@redhat.com>
2262 Ira Rosen <ira.rosen@linaro.org>
2264 PR tree-optimization/50208
2265 * tree-vect-patterns.c (vect_handle_widen_mult_by_const): Add an
2266 argument. Check that def_stmt is inside the loop.
2267 (vect_recog_widen_mult_pattern): Update calls to
2268 vect_handle_widen_mult_by_cons.
2269 (vect_operation_fits_smaller_type): Check that def_stmt is
2272 2011-09-04 Ira Rosen <ira.rosen@linaro.org>
2274 * tree-vectorizer.c (vect_print_dump_info): Print line
2275 number when dumping to a file.
2276 (vectorize_loops): Add new messages to dump file.
2278 2011-09-03 Martin Jambor <mjambor@suse.cz>
2280 * ipa-prop.h (ipa_jump_func_t): New typedef.
2281 (struct ipa_edge_args): Removed field argument_count, field
2282 jump_functions turned into a vector.
2283 (ipa_set_cs_argument_count): Removed.
2284 (ipa_get_cs_argument_count): Updated to work on vectors.
2285 (ipa_get_ith_jump_func): Likewise.
2286 * ipa-prop.c (ipa_count_arguments): Removed.
2287 (compute_scalar_jump_functions): Use ipa_get_ith_jump_func to access
2288 jump functions. Update caller.
2289 (compute_pass_through_member_ptrs): Likewise.
2290 (compute_cst_member_ptr_arguments): Likewise.
2291 (ipa_compute_jump_functions_for_edge): Get number of arguments from
2292 the statement, allocate vector.
2293 (ipa_compute_jump_functions): Do not call ipa_count_arguments.
2294 (duplicate_ipa_jump_func_array): Removed.
2295 (ipa_edge_duplication_hook): Use VEC_copy, do not copy argument count.
2296 (ipa_read_node_info): Allocate vector.
2298 2011-09-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2301 * config/pa/pa.md (return): Define "return" insn pattern.
2302 (epilogue): Use it when no epilogue is needed.
2303 * config/pa/pa.c (pa_can_use_return_insn): New function.
2304 * config/pa/pa-protos.h (pa_can_use_return_insn): Declare.
2306 2011-09-03 Eric Botcazou <ebotcazou@adacore.com>
2308 * cfgexpand.c (add_stack_var): Assert that the alignment is not zero.
2309 * tree-ssa-ccp.c (fold_builtin_alloca_for_var): Revert latest change.
2310 Force at least BITS_PER_UNIT alignment on the new variable.
2312 2011-09-02 Gary Funck <gary@intrepid.com>
2314 * opts.c (print_specific_help): Fix off-by-one compare in
2316 * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
2317 CL_TARGET, CL_COMMON, CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED):
2318 Increase by +5 to allow for more languages.
2319 * optc-gen.awk: Generate #if that ensures that the number of
2320 languages is within the implementation-defined limit.
2322 2011-09-02 Michael Matz <matz@suse.de>
2325 * ipa-split.c (split_function): Call add_referenced_var.
2327 * tree-ssa-phiopt.c (cond_store_replacement): Don't call get_var_ann.
2328 (cond_if_else_store_replacement_1): Ditto.
2329 * tree-ssa-pre.c (get_representative_for): Ditto.
2330 (create_expression_by_pieces): Ditto.
2331 (insert_into_preds_of_block): Ditto.
2332 * tree-sra.c (create_access_replacement): Ditto.
2333 (get_replaced_param_substitute): Ditto.
2335 2011-09-02 Bernd Schmidt <bernds@codesourcery.com>
2337 * config/c6x/c6x.md (collapse-ndfa, no-comb-vect): New
2339 (d1, l1, s1, m1, d2, l2, s2, m2): Changed to define_query_cpu_unit.
2340 (l1w, s1w, l2w, s2w): Define in the main automaton.
2341 (fps1, fpl1, adddps1, adddpl1, fps2, fpl2, adddps2, adddpl2): New
2343 * config/c6x/c6x.c (c6x_sched_insn_info): Add unit_mask member.
2344 (c6x_unit_names): Add the new units.
2345 (c6x_unit_codes): New static array.
2346 (UNIT_QID_D1, UNIT_QID_L1, UNIT_QID_S1, UNIT_QID_M1, UNIT_QID_FPS1,
2347 UNIT_QID_FPL1, UNIT_QID_ADDDPS1, UNIT_QID_ADDDPL1,
2348 UNIT_QID_SIDE_OFFSET): New macros.
2349 (RESERVATION_S2): Adjust value.
2350 (c6x_option_override): Compute c6x_unit_codes.
2351 (assign_reservations): Take the unit_mask of the last instruction
2352 into account. Detect floating point reservations by looking for
2353 the new units. Don't assign reservations if the field is already
2355 (struct c6x_sched_context): Add member prev_cycle_state_ctx.
2356 (init_sched_state): Initialize it.
2357 (c6x_clear_sched_context): Free it.
2358 (insn_set_clock): Clear reservation.
2359 (prev_cycle_state): New static variable.
2360 (c6x_init_sched_context): Save it.
2361 (c6x_sched_init): Allocate space for it and clear it.
2362 (c6x_sched_dfa_pre_cycle_insn): New static function.
2363 (c6x_dfa_new_cycle): Save state at the start of a new cycle.
2364 (c6x_variable_issue): Only record units in the unit_mask that
2365 were not set at the start of the cycle.
2366 (c6x_variable_issue): Compute and store the unit_mask from the
2368 (reorg_split_calls): Ensure the new information remains correct.
2369 (TARGET_SCHED_DFA_NEW_CYCLE, TARGET_SCHED_CLEAR_SCHED_CONTEXT,
2370 TARGET_SCHED_DFA_PRE_CYCLE_INSN): Define.
2371 * config/c6x/c6x.h (CPU_UNITS_QUERY): Define.
2372 * config/c6x/c6x-sched.md.in (fp4_ls_N__CROSS_, adddp_ls_N__CROSS_):
2373 Add special reservations.
2374 * config/c6x/c6x-sched.md: Regenerate.
2376 2011-09-02 Martin Jambor <mjambor@suse.cz>
2378 * ipa-prop.h (ipa_node_params): Removed fields
2379 called_with_var_arguments and node_versionable.
2380 (ipa_set_called_with_variable_arg): Removed.
2381 (ipa_is_called_with_var_arguments): Likewise.
2382 * ipa-cp.c (ipa_get_lattice): Fixed index check in an assert.
2383 (determine_versionability): Do not check for type attributes and va
2384 builtins. Record versionability into inline summary.
2385 (initialize_node_lattices): Do not check
2386 ipa_is_called_with_var_arguments.
2387 (propagate_constants_accross_call): Likewise, ignore arguments we do
2388 not have PARM_DECLs for, set variable flag for parameters that were
2390 (create_specialized_node): Dump info that we cannot change signature.
2391 * ipa-prop.c (ipa_compute_jump_functions): Do not care about variable
2392 number of arguments.
2393 (ipa_make_edge_direct_to_target): Likewise.
2394 (ipa_update_after_lto_read): Likewise.
2395 (ipa_node_duplication_hook): Do not copy called_with_var_arguments flag.
2396 * tree-inline.c (copy_arguments_for_versioning): Copy PARM_DECLs if
2399 2011-09-02 Richard Guenther <rguenther@suse.de>
2401 PR tree-optimization/27460
2403 * doc/md.texi (vcond): Document.
2404 * genopinit.c (optabs): Turn vcond{,u}_optab into a conversion
2405 optab with two modes.
2406 * optabs.h (enum convert_optab_index): Add COI_vcond, COI_vcondu.
2407 (enum direct_optab_index): Remove DOI_vcond, DOI_vcondu.
2408 (vcond_optab): Adjust.
2409 (vcondu_optab): Likewise.
2410 (expand_vec_cond_expr_p): Adjust prototype.
2411 * optabs.c (get_vcond_icode): Adjust.
2412 (expand_vec_cond_expr_p): Likewise.
2413 (expand_vec_cond_expr): Likewise.
2414 * tree-vect-stmts.c (vect_is_simple_cond): Return the comparison
2416 (vectorizable_condition): Allow differing types for comparison
2418 * config/i386/i386.c (ix86_expand_sse_cmp): Use proper mode
2420 * config/i386/sse.md (vcond<mode>): Split to
2421 vcond<V_256:mode><VF_256:mode>, vcond<V_128:mode><VF_128:mode>,
2422 vcond<V_128:mode><VI124_128:mode> and
2423 vcondu<V_128:mode><VI124_128:mode>.
2424 (vcondv2di): Change to vcond<VI8F_128:mode>v2di.
2425 (vconduv2di): Likewise.
2426 * config/arm/neon.md (vcond<mode>): Change to vcond*<mode><mode>.
2427 (vcondu<mode>): Likewise.
2428 * config/ia64/vect.md (vcond<mode>): Likewise.
2429 (vcondu<mode>): Likewise.
2430 (vcondv2sf): Likewise.
2431 * config/mips/mips-ps-3d.md (vcondv2sf): Likewise.
2432 * config/rs6000/paired.md (vcondv2sf): Likewise.
2433 * config/rs6000/vector.md (vcond<mode>): Likewise.
2434 (vcondu<mode>): Likewise.
2435 * config/spu/spu.md (vcond<mode>): Likewise.
2436 (vcondu<mode>): Likewise.
2438 2011-09-02 Richard Guenther <rguenther@suse.de>
2440 * pretty-print.h (pp_unsigned_wide_integer): New.
2441 * tree-pretty-print.c (dump_generic_node): Print unsigned
2442 host-wide-int fitting INTEGER_CSTs with pp_unsigned_wide_integer.
2444 2011-09-02 Richard Sandiford <richard.sandiford@linaro.org>
2447 * config/rs6000/rs6000.c (paired_expand_vector_init): Check for
2448 valid CONST_VECTOR operands.
2449 (rs6000_expand_vector_init): Likewise.
2451 2011-09-02 Martin Jambor <mjambor@suse.cz>
2453 * cgraph.h (cgraph_indirect_call_info): Removed field thunk_delta.
2454 * gimple-fold.c (gimple_get_virt_method_for_binfo): Rewritten to use
2455 BINFO_VTABLE. Parameter delta removed, all callers updated.
2456 * tree.c (free_lang_data_in_binfo): Clear BINFO_VIRTUALs instead
2458 * cgraph.c (cgraph_make_edge_direct): Removed parameter delta, updated
2460 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Removed
2461 handling of thunk_delta.
2462 * ipa-cp.c (get_indirect_edge_target): Removed parameter delta.
2463 (devirtualization_time_bonus): Do not handle thunk deltas.
2464 (ipcp_discover_new_direct_edges): Likewise.
2465 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
2466 (try_make_edge_direct_simple_call): Likewise.
2467 (try_make_edge_direct_virtual_call): Likewise.
2468 * lto-cgraph.c (output_cgraph_opt_summary_p): Likewise. Mark
2469 parameter set as unused.
2470 (output_edge_opt_summary): Likewise. Mark both parameters as unused.
2471 * lto-cgraph.c (output_cgraph_opt_summary_p): Likewise. Mark
2472 parameter set as unused.
2473 (output_edge_opt_summary): Likewise. Mark both parameters as unused.
2474 (input_edge_opt_summary): Likewise.
2475 * lto-streamer-out.c (lto_output_ts_binfo_tree_pointers): Do not stream
2476 BINFO_VIRTUALS at all.
2477 * lto-streamer-in.c (lto_input_ts_binfo_tree_pointers): Likewise.
2479 2011-09-02 Richard Guenther <rguenther@suse.de>
2481 * tree-ssa-ccp.c (fold_builtin_alloca_for_var): Do not fold alloca (0).
2482 (ccp_fold_stmt): Continue replacing args when folding alloca fails.
2484 2011-08-31 Richard Guenther <rguenther@suse.de>
2486 * expr.c (expand_expr_real_2): Move COND_EXPR and VEC_COND_EXPR
2487 handling here, from ...
2488 (expand_expr_real_1): ... here.
2489 * gimple-pretty-print.c (dump_ternary_rhs): Handle COND_EXPR
2491 * gimple.c (gimple_rhs_class_table): Make COND_EXPR and VEC_COND_EXPR
2492 a GIMPLE_TERNARY_RHS.
2493 * tree-cfg.c (verify_gimple_assign_ternary): Handle COND_EXPR
2494 and VEC_COND_EXPR here ...
2495 (verify_gimple_assign_single): ... not here.
2496 * gimple-fold.c (fold_gimple_assign): Move COND_EXPR folding.
2497 * tree-object-size.c (cond_expr_object_size): Adjust.
2498 (collect_object_sizes_for): Likewise.
2499 * tree-scalar-evolution.c (interpret_expr): Don't handle ternary RHSs.
2500 * tree-ssa-forwprop.c (forward_propagate_into_cond): Fix and simplify.
2501 (ssa_forward_propagate_and_combine): Adjust.
2502 * tree-ssa-loop-im.c (move_computations_stmt): Build the COND_EXPR
2504 * tree-ssa-threadedge.c (fold_assignment_stmt): Adjust.
2505 * tree-vect-loop.c (vect_is_simple_reduction_1): Likewise.
2506 * tree-vect-stmt.c (vectorizable_condition): Likewise.
2507 * tree-vrp.c (extract_range_from_cond_expr): Likewise.
2508 (extract_range_from_assignment): Likewise.
2510 2011-08-31 Richard Sandiford <rdsandiford@googlemail.com>
2512 * config/i386/i386.md: Use (match_test ...) for attribute tests.
2513 * config/i386/mmx.md: Likewise.
2514 * config/i386/sse.md: Likewise.
2515 * config/i386/predicates.md (call_insn_operand): Use
2516 (not (match_test "...")) instead of (match_test "!...")
2517 * config/i386/constraints.md (w): Likewise.
2519 2011-08-31 Richard Sandiford <rdsandiford@googlemail.com>
2521 * doc/md.texi: Describe the use of match_tests in attribute tests.
2522 * rtl.def (MATCH_TEST): Update commentary.
2523 * genattrtab.c (attr_copy_rtx, check_attr_test, clear_struct_flag)
2524 (write_test_expr, walk_attr_value): Handle MATCH_TEST.
2526 2011-08-31 Richard Sandiford <rdsandiford@googlemail.com>
2528 * genattrtab.c (attr_rtx_1): Hash SYMBOL_REFs.
2529 (attr_string): Use copy_md_ptr_loc.
2531 2011-08-31 Martin Jambor <mjambor@suse.cz>
2534 * ipa-inline-analysis.c (compute_inline_parameters): Set
2535 can_change_signature of noes with typde attributes.
2536 * ipa-split.c (split_function): Do not skip any arguments if
2537 can_change_signature is set.
2539 2011-08-31 Martin Jambor <mjambor@suse.cz>
2541 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Alias
2544 2011-08-31 Richard Guenther <rguenther@suse.de>
2546 * fold-const.c (extract_muldiv_1): Remove bogus TYPE_IS_SIZETYPE
2549 2011-08-31 Marc Glisse <marc.glisse@inria.fr>
2551 * doc/generic.texi (Types for C++): CP_TYPE_QUALS -> cp_type_quals.
2553 2011-08-31 Tom de Vries <tom@codesourcery.com>
2556 * Makefile.in (tree-ssa-ccp.o): Add $(PARAMS_H) to rule.
2557 * tree-ssa-ccp.c (params.h): Include.
2558 (fold_builtin_alloca_for_var): New function.
2559 (ccp_fold_stmt): Use fold_builtin_alloca_for_var.
2561 2011-08-30 Uros Bizjak <ubizjak@gmail.com>
2563 * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
2566 2011-08-30 Andrew Stubbs <ams@codesourcery.com>
2568 * config/arm/arm.c (optimal_immediate_sequence_1): Make b1, b2,
2571 2011-08-30 Andrew Stubbs <ams@codesourcery.com>
2573 * config/arm/arm.c (arm_gen_constant): Set can_negate correctly
2576 2011-08-30 Richard Guenther <rguenther@suse.de>
2579 * gimple.h (maybe_fold_offset_to_address): Remove.
2580 (maybe_fold_offset_to_reference): Likewise.
2581 (maybe_fold_stmt_addition): Likewise.
2582 (may_propagate_address_into_dereference): Likewise.
2583 * tree-inline.c (remap_gimple_op_r): Do not reconstruct
2585 * gimple-fold.c (canonicalize_constructor_val): Likewise.
2586 Canonicalize invariant POINTER_PLUS_EXPRs to invariant MEM_REF
2588 (may_propagate_address_into_dereference): Remove.
2589 (maybe_fold_offset_to_array_ref): Likewise.
2590 (maybe_fold_offset_to_reference): Likewise.
2591 (maybe_fold_offset_to_address): Likewise.
2592 (maybe_fold_stmt_addition): Likewise.
2593 (fold_gimple_assign): Do not reconstruct array references but
2594 instead canonicalize invariant POINTER_PLUS_EXPRs to invariant
2596 (gimple_fold_stmt_to_constant_1): Likewise.
2597 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
2598 * gimplify.c (gimplify_conversion): Likewise.
2599 (gimplify_expr): Likewise.
2601 2011-08-30 Ilya Tocar <ilya.tocar@intel.com>
2603 * config/i386/fmaintrin.h: New.
2604 * config.gcc: Add fmaintrin.h.
2605 * config/i386/i386.c
2606 (enum ix86_builtins) <IX86_BUILTIN_VFMADDSS3>: New.
2607 <IX86_BUILTIN_VFMADDSD3>: Likewise.
2608 * config/i386/sse.md (fmai_vmfmadd_<mode>): New.
2609 (*fmai_fmadd_<mode>): Likewise.
2610 (*fmai_fmsub_<mode>): Likewise.
2611 (*fmai_fnmadd_<mode>): Likewise.
2612 (*fmai_fnmsub_<mode>): Likewise.
2613 * config/i386/immintrin.h: Add fmaintrin.h.
2615 2011-08-30 Bernd Schmidt <bernds@codesourcery.com>
2617 * genautomata.c (NO_COMB_OPTION): New macro.
2618 (no_comb_flag): New static variable.
2619 (gen_automata_option): Handle NO_COMB_OPTION.
2620 (comb_vect_p): False if no_comb_flag.
2621 (add_vect): Move computation of min/max values. Return early if
2623 * doc/md.texi (automata_option): Document no-comb-vect.
2625 * config/i386/i386.c (get_pc_thunk_name): Change prefix to
2626 "__x86.get_pc_thunk".
2628 * bb-reorder.c (insert_section_boundary_note): Only do it if
2629 we reordered the blocks; i.e. not if !optimize_function_for_speed_p.
2631 2011-08-30 Christian Bruel <christian.bruel@st.com>
2633 * coverage.c (coverage_init): Check flag_branch_probabilities instead of
2636 2011-08-29 Michael Meissner <meissner@linux.vnet.ibm.com>
2638 * config/rs6000/rs6000.opt (-msave-toc-indirect): Change default
2639 to off. Document switch.
2640 * doc/invoke.texi (-msave-toc-indirect): Ditto.
2642 2011-08-29 Jakub Jelinek <jakub@redhat.com>
2644 * gthr-posix.h (__gthread_active_p): Do not use preprocessor
2645 conditionals and comments inside macro arguments.
2647 2011-08-29 Artjoms Sinkarovs <artyom.shinkaroff@gmail.com>
2648 Richard Guenther <rguenther@suse.de>
2650 * tree.h (constant_boolean_node): Adjust prototype.
2651 * fold-const.c (fold_convert_loc): Move aggregate conversion
2653 (constant_boolean_node): Make value parameter boolean, add
2654 vector type handling.
2655 (fold_unary_loc): Use constant_boolean_node.
2656 (fold_binary_loc): Preserve types properly when folding
2657 COMPLEX_EXPR <__real x, __imag x>.
2658 * gimplify.c (gimplify_expr): Handle vector comparison.
2659 * tree.def (EQ_EXPR, ...): Document behavior on vector typed
2661 * tree-cfg.c (verify_gimple_comparison): Verify vector typed
2664 2011-08-29 Jakub Jelinek <jakub@redhat.com>
2667 * emit-rtl.c (unshare_all_rtl_again): For CALL_INSNs,
2668 reset_used_flags also in CALL_INSN_FUNCTION_USAGE.
2669 (verify_rtl_sharing): Likewise and verify_rtx_sharing
2671 (unshare_all_rtl_in_chain): For CALL_INSNs
2672 copy_rtx_if_shared also CALL_INSN_FUNCTION_USAGE.
2674 2011-08-29 Richard Guenther <rguenther@suse.de>
2676 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Set a location
2677 on the built ADDR_EXPR.
2679 2011-08-29 Jakub Jelinek <jakub@redhat.com>
2682 * var-tracking.c (create_entry_value): Call cselib_lookup_from_insn
2683 before adding ENTRY_VALUE to val->locs.
2685 2011-08-28 Mikael Pettersson <mikpe@it.uu.se>
2688 * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Initialize
2691 2011-08-27 Bernd Schmidt <bernds@codesourcery.com>
2693 * doc/rtl.texi (simple_return): Document.
2694 (parallel, PATTERN): Here too.
2695 * doc/md.texi (return): Mention it's allowed to expand to simple_return
2697 (simple_return): Document standard pattern.
2698 * gengenrtl.c (special_rtx): SIMPLE_RETURN is special.
2699 * final.c (final_scan_insn): Use ANY_RETURN_P on body.
2700 * reorg.c (function_return_label, function_simple_return_label):
2701 New static variables, replacing...
2702 (end_of_function_label): ... this.
2703 (simplejump_or_return_p): New static function.
2704 (optimize_skip, steal_delay_list_from_fallthrough,
2705 fill_slots_from_thread): Use it.
2706 (relax_delay_slots): Likewise. Use ANY_RETURN_P on body.
2707 (rare_destination, follow_jumps): Use ANY_RETURN_P on body.
2708 (find_end_label): Take a new arg which is one of the two return
2709 rtxs. Depending on which, set either function_return_label or
2710 function_simple_return_label. All callers changed.
2711 (make_return_insns): Make both kinds.
2712 (dbr_schedule): Adjust for two kinds of end labels.
2713 * function.c (emit_return_into_block): Set JUMP_LABEL properly.
2714 * genemit.c (gen_exp): Handle SIMPLE_RETURN.
2715 (gen_expand, gen_split): Use ANY_RETURN_P.
2716 * df-scan.c (df_uses_record): Handle SIMPLE_RETURN.
2717 * rtl.def (SIMPLE_RETURN): New code.
2718 * ifcvt.c (find_if_case_1): Be more careful about
2719 redirecting jumps to the EXIT_BLOCK.
2720 * jump.c (condjump_p, condjump_in_parallel_p, any_condjump_p,
2721 returnjump_p_1): Handle SIMPLE_RETURNs.
2722 * print-rtl.c (print_rtx): Likewise.
2723 * rtl.c (copy_rtx): Likewise.
2724 * bt-load.c (compute_defs_uses_and_gen): Use ANY_RETURN_P.
2725 * combine.c (simplify_set): Likewise.
2726 * resource.c (find_dead_or_set_registers, mark_set_resources):
2728 * emit-rtl.c (verify_rtx_sharing, classify_insn, copy_insn_1,
2729 copy_rtx_if_shared_1, mark_used_flags): Handle SIMPLE_RETURNs.
2730 (init_emit_regs): Initialize simple_return_rtx.
2731 * cfglayout.c (fixup_reorder_chain): Pass a JUMP_LABEL to
2732 force_nonfallthru_and_redirect.
2733 * rtl.h (ANY_RETURN_P): Allow SIMPLE_RETURN.
2734 (GR_SIMPLE_RETURN): New enum value.
2735 (simple_return_rtx): New macro.
2736 * basic-block.h (force_nonfallthru_and_redirect): Adjust
2738 * cfgrtl.c (force_nonfallthru_and_redirect): Take a new jump_label
2739 argument. All callers changed. Be careful about what kinds of
2740 returnjumps to generate.
2741 * config/i386/3i86.c (ix86_pad_returns, ix86_count_insn_bb,
2742 ix86_pad_short_function): Likewise.
2743 * config/arm/arm.c (arm_final_prescan_insn): Handle both kinds
2745 * config/mips/mips.md (any_return): New code_iterator.
2746 (optab): Add cases for return and simple_return.
2747 (return): Expand to a simple_return.
2748 (simple_return): New pattern.
2749 (*<optab>, *<optab>_internal for any_return): New patterns.
2750 (return_internal): Remove.
2751 * config/mips/mips.c (mips_expand_epilogue): Make the last insn
2752 a simple_return_internal.
2754 2011-08-27 Uros Bizjak <ubizjak@gmail.com>
2756 * config/i386/sse.md (*absneg<mode>2): Fix split condition.
2757 (vec_extract_lo_<mode>): Prevent both operands in memory.
2758 (vec_extract_lo_v16hi): Ditto.
2759 (*vec_extract_v4sf_mem): Add TARGET_SSE insn constraint.
2761 2011-08-27 Uros Bizjak <ubizjak@gmail.com>
2763 * config/i386/sse.md (mulv16qi3): Attach REG_EQUAL note.
2764 (*sse2_mulv4si3): Ditto.
2766 * config/i386/i386.c (legitimize_tls_address): Change REG_EQIV
2769 2011-08-27 Uros Bizjak <ubizjak@gmail.com>
2772 * config/i386/sse.md (sse4_2_pcmpestr): Emit NOTE_INSN_DELETED note
2773 when all outputs are unused.
2774 (sse4_2_pcmpistr): Ditto.
2776 2011-08-26 Uros Bizjak <ubizjak@gmail.com>
2778 * config/i386/i386.md (round<mode>2): New expander.
2779 * config/i386/i386.c (enum ix86_builtins): Add
2780 IX86_BUILTIN_ROUND{PS,PD}_AZ{,256}.
2781 (struct builtin_description): Add __builtin_ia32_round{ps,pd}_az{,256}
2783 (ix86_builtin_vectorized_function): Handle BUILT_IN_ROUND{,F} builtins.
2784 (ix86_build_const_vector): Rewrite using loop with RTVEC_ELT accessor.
2786 2011-08-26 Uros Bizjak <ubizjak@gmail.com>
2789 * convert.c (convert_to_integer) <BUIT_IN_ROUND{,F,L}>: Convert
2790 only when TARGET_C99_FUNCTIONS.
2791 <BUILT_IN_NEARBYINT{,F,L}>: Ditto.
2792 <BUILT_IN_RINT{,F,L}>: Ditto.
2794 2011-08-26 Michael Matz <matz@suse.de>
2795 Jakub Jelinek <jakub@redhat.com>
2798 * lto-streamer-in.c (canon_file_name): Initialize new_slot->len;
2799 don't call strlen twice, use memcpy.
2801 2011-08-26 H.J. Lu <hongjiu.lu@intel.com>
2803 * config/i386/bmi2intrin.h: Allow in <immintrin.h>.
2804 * config/i386/bmiintrin.h: Likewise.
2805 * config/i386/lzcntintrin.h: Likewise.
2807 * config/i386/immintrin.h: Include <lzcntintrin.h>,
2808 <bmiintrin.h> and <bmi2intrin.h>.
2810 2011-08-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2813 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Check count in main.
2814 * configure: Regenerate.
2816 2011-08-26 Jakub Jelinek <jakub@redhat.com>
2819 * c-typeck.c (c_process_expr_stmt): Skip over nops and
2820 call mark_exp_read even if exprv is ADDR_EXPR.
2822 2011-08-26 Richard Sandiford <richard.sandiford@linaro.org>
2824 * df-problems.c (df_note_bb_compute): Pass uses rather than defs
2825 to df_set_dead_notes_for_mw.
2827 2011-08-26 Richard Guenther <rguenther@suse.de>
2829 * varasm.c (decode_addr_const): Handle MEM_REF[&X, OFF].
2831 2011-08-26 Zdenek Dvorak <ook@ucw.cz>
2832 Tom de Vries <tom@codesourcery.com>
2834 * tree-ssa-loop-ivopts.c (struct cost_pair): Add comp field.
2835 (struct ivopts_data): Add loop_single_exit_p field.
2836 (niter_for_exit): Change parameter desc_p into return value. Return
2837 desc if desc->may_be_zero. Free desc if unused.
2838 (niter_for_single_dom_exit): Change return type.
2839 (find_induction_variables): Handle changed return type of
2840 niter_for_single_dom_exit. Dump may_be_zero.
2841 (add_candidate_1): Keep original base and step type for IP_ORIGINAL.
2842 (set_use_iv_cost): Add and handle comp parameter.
2843 (determine_use_iv_cost_generic, determine_use_iv_cost_address): Add
2844 comp argument to set_use_iv_cost.
2845 (strip_wrap_conserving_type_conversions, expr_equal_p)
2846 (difference_cannot_overflow_p, iv_elimination_compare_lt): New function.
2847 (may_eliminate_iv): Add comp parameter. Handle new return type of
2848 niter_for_exit. Use loop_single_exit_p. Use iv_elimination_compare_lt.
2849 (determine_use_iv_cost_condition): Add comp argument to set_use_iv_cost
2850 and may_eliminate_iv.
2851 (rewrite_use_compare): Move call to iv_elimination_compare to ...
2852 (may_eliminate_iv): Here.
2853 (tree_ssa_iv_optimize_loop): Initialize loop_single_exit_p.
2855 2011-08-26 Tom de Vries <tom@codesourcery.com>
2857 * tree-pretty-print (dump_generic_node): Test for NULL_TREE before
2858 accessing TREE_TYPE.
2860 2011-08-26 Jiangning Liu <jiangning.liu@arm.com>
2862 * config/arm/arm.md (*ior_scc_scc): Enable for Thumb2 as well.
2863 (*ior_scc_scc_cmp): Likewise
2864 (*and_scc_scc): Likewise.
2865 (*and_scc_scc_cmp): Likewise.
2866 (*and_scc_scc_nodom): Likewise.
2867 (*cmp_ite0, *cmp_ite1, *cmp_and, *cmp_ior): Handle Thumb2.
2869 2011-08-26 Jakub Jelinek <jakub@redhat.com>
2871 * rtlanal.c (nonzero_bits1): Handle CLRSB.
2873 2011-08-26 Richard Guenther <rguenther@suse.de>
2875 * expr.c (string_constant): Handle &MEM_REF.
2877 2011-08-26 Andrew Stubbs <ams@codesourcery.com>
2879 * config/arm/arm.c (struct four_ints): New type.
2880 (count_insns_for_constant): Delete function.
2881 (find_best_start): Delete function.
2882 (optimal_immediate_sequence): New function.
2883 (optimal_immediate_sequence_1): New function.
2884 (arm_gen_constant): Move constant splitting code to
2885 optimal_immediate_sequence.
2886 Rewrite constant negation/invertion code.
2888 2011-08-26 Andrew Stubbs <ams@codesourcery.com>
2890 * config/arm/arm-protos.h (const_ok_for_op): Add prototype.
2891 * config/arm/arm.c (const_ok_for_op): Add support for addw/subw.
2892 Remove prototype. Remove static function type.
2893 * config/arm/arm.md (*arm_addsi3): Add addw/subw support.
2895 * config/arm/constraints.md (Pj, PJ): New constraints.
2897 2011-08-26 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2899 * config/arm/cortex-a9.md ("cortex_a9_mult_long"): New.
2900 ("cortex_a9_multiply_long"): New and use above. Handle all
2901 long multiply cases.
2902 ("cortex_a9_multiply"): Handle smmul and smmulr.
2903 ("cortex_a9_mac"): Handle smmla.
2905 2011-08-25 Richard Henderson <rth@redhat.com>
2909 * cfgcleanup.c (old_insns_match_p): Don't allow cross-jump for
2910 non-constant stack adjutment.
2911 * expr.c (find_args_size_adjust): Break out from ...
2912 (fixup_args_size_notes): ... here.
2913 * rtl.h (find_args_size_adjust): Declare.
2915 2011-08-25 Uros Bizjak <ubizjak@gmail.com>
2917 * config/i386/i386.md (isa): Add sse2, sse2_noavx, sse3,
2918 sse4 and sse4_noavx.
2919 (enabled): Handle sse2, sse2_noavx, sse3, sse4 and sse4_noavx.
2920 (*pushdf_rex64): Change Y2 register constraint to x.
2921 (*movdf_internal_rex64): Ditto.
2922 (*zero_extendsidi2_rex64): Ditto.
2923 (*movdi_internal): Change Y2 register constraint to x
2924 and update "isa" attribute.
2926 (*movdf internal): Ditto.
2927 (zero_extendsidi2_1): Ditto.
2928 (*truncdfdf_mixed): Ditto.
2929 (*truncxfdf2_mixed): Ditto.
2930 * config/i386/mmx.md (*mov<mode>_internal_rex64): Change Y2
2931 register constraint to x.
2932 (*movv2sf_internal_rex64): Ditto.
2933 (*mov<mode>_internal): Change Y2 register constraint to x
2934 and add "isa" attribute.
2935 (*movv2sf_internal): Ditto.
2936 (*vec_extractv2si_1): Ditto.
2937 * config/i386/sse.md ("vec_set<mode>_0): Change Y2 and Y4 register
2938 constraints to x and update "isa" attribute.
2939 (*vec_interleave_highv2df): Change Y3 registerconstraint
2940 to x and update "isa" attribute.
2941 (*vec_interleave_lowv2df): Ditto.
2942 (*vec_concatv2df): Change Y2 register constraint to x and
2943 update "isa" attribute.
2944 (sse2_loadld): Ditto.
2945 (*vec_extractv2di_1): Ditto.
2946 (*vec_dupv4si): Ditto.
2947 (*vec_dupv2di): Ditto.
2948 (*vec_concatv4si): Ditto.
2949 (vec_concatv2di): Ditto.
2950 * config/i386/constraints.md (Y2): Remove.
2954 2011-08-25 Bernd Schmidt <bernds@codesourcery.com>
2956 * regrename.c (scan_rtx_reg, scan_rtx_address, build_def_use,
2957 dump_def_use_chain): Don't declare.
2958 (mark_conflict, create_new_chain): Move before users.
2959 (regrename_optimize): Move to near end of file.
2961 2011-08-25 Georg-Johann Lay <avr@gjlay.de>
2963 * config/avr-protos.h (byte_immediate_operand): Remove Prototype.
2964 (secondary_input_reload_class): Remove Prototype.
2965 * config/avr/avr.c (byte_immediate_operand): Remove Function.
2966 * config/avr/avr.md (setmemhi): Use u8_operand.
2967 (strlenhi): Use const0_rtx for comparison.
2968 * config/avr/avr.h (avr_reg_order): Remove Declaration.
2970 2011-08-25 Georg-Johann Lay <avr@gjlay.de>
2972 * config/avr/avr.c (reg_class_tab): Make local to
2973 avr_regno_reg_class. Return smallest register class available.
2975 2011-08-25 Georg-Johann Lay <avr@gjlay.de>
2977 * config/avr/avr.c (STR_PREFIX_P): New Define.
2978 (avr_asm_declare_function_name): Use it.
2979 (avr_asm_named_section): Use it.
2980 (avr_section_type_flags): Use it.
2982 2011-08-25 Bernd Schmidt <bernds@codesourcery.com>
2984 * doc/md.texi (automata_option): Document collapse-ndfa.
2985 * genautomata.c (COLLAPSE_OPTION): New macro.
2986 (collapse_flag): New static variable.
2987 (struct description): New member normal_decls_num.
2988 (struct automaton): New members advance_ainsn and collapse_ainsn.
2989 (gen_automata_option): Check for COLLAPSE_OPTION.
2990 (collapse_ndfa_insn_decl): New static variable.
2991 (add_collapse_ndfa_insn_decl, special_decl_p): New functions.
2992 (find_arc): If insn is the collapse-ndfa insn, accept any arc we find.
2993 (transform_insn_regexps): Call add_collapse_ndfa_insn_decl if
2994 necessary. Use normal_decls_num rather than decls_num, remove
2995 test for special decls.
2996 (create_alt_states, form_ainsn_with_same_reservs): Use special_decl_p.
2997 (make_automaton); Likewise. Use the new advance_cycle_insn member
2998 of struct automaton.
2999 (create_composed_state): Disallow advance-cycle arcs if collapse_flag
3001 (NDFA_to_DFA): Don't create composed states for the collapse-ndfa
3002 transition. Create the necessary transitions for it.
3003 (create_ainsns): Return void. Take an automaton_t argument, and
3004 update its ainsn_list, advance_ainsn and collapse_ainsn members. All
3006 (COLLAPSE_NDFA_VALUE_NAME): New macro.
3007 (output_tables): Output code to define it.
3008 (output_internal_insn_code_evaluation): Output code to accept
3009 const0_rtx as collapse-ndfa transition.
3010 (output_default_latencies, output_print_reservation_func,
3011 output_print_description): Reorganize loops to use normal_decls_num
3012 as loop bound; remove special case for advance_cycle_insn_decl.
3013 (initiate_automaton_gen): Handle COLLAPSE_OPTION.
3014 (check_automata_insn_issues): Check for collapse_ainsn.
3015 (expand_automate): Allocate sufficient space. Initialize
3018 2011-08-25 Georg-Johann Lay <avr@gjlay.de>
3020 * config/avr/avr.md: Fix indentation from r177991.
3022 2011-08-25 Bernd Schmidt <bernds@codesourcery.com>
3024 * regrename.c (struct du_head): Remove member terminated.
3025 (create_new_chain): Don't initialize it.
3026 (scan_rtx_reg): Don't set or test it, test the open_chains_set
3028 (tick, this_tick): New global variables, moved out of
3030 (current_id, open_chains, closed_chains, open_chains_set,
3031 live_in_chains, live_hard_regs): Reorder declarations.
3032 (dump_def_use_chain): Move function earlier in the file.
3033 (rename_chains): New static function, broken out of
3035 (regrename_optimize): Use it. Remove #if 0'ed code.
3037 2011-08-25 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
3039 * varasm.c: (default_binds_local_p_1): Commentary typo fix.
3041 2011-08-24 H.J. Lu <hongjiu.lu@intel.com>
3044 * config/i386/i386.c (ix86_expand_builtin): Convert to Pmode if needed.
3046 2011-08-24 Richard Guenther <rguenther@suse.de>
3048 * tree-data-ref.c (dr_analyze_indices): Avoid unsharing the
3049 ref in the basic-block case. Move stripping array-refs
3050 to the place we create an access-function for it. Remove
3051 bogus stripping down a MEM_REF to its base.
3053 2011-08-24 Richard Guenther <rguenther@suse.de>
3055 * fold-const.c (fold_comparison): Fold &a < &a + 4 even
3056 with -fno-strict-overflow.
3058 2011-08-24 Richard Guenther <rguenther@suse.de>
3060 * tree-vectorizer.c (vect_print_dump_info): Avoid the
3061 file and location clutter when dumping to dump files.
3063 2011-08-24 Simon Baldwin <simonb@google.com>
3065 * gengtype-state.c (write_state): Remove timestamped header line.
3067 2011-08-24 Joseph Myers <joseph@codesourcery.com>
3069 * Makefile.in (CFLAGS-collect2.o, CFLAGS-c-family/c-opts.o)
3070 (CFLAGS-c-family/c-pch.o, CFLAGS-prefix.o, CFLAGS-version.o)
3071 (CFLAGS-lto-compress.o, CFLAGS-toplev.o, CFLAGS-intl.o)
3072 (CFLAGS-cppbuiltin.o, CFLAGS-cppdefault.o): New.
3073 (collect2.o, c-family/c-cppbuiltin.o, c-family/c-opts.o)
3074 (c-family/c-pch.o, prefix.o, version.o, lto-compress.o, toplev.o)
3075 (intl.o, cppbuiltin.o, cppdefault.o): Remove explicit compilation
3077 (lto-wrapper$(exeext)): Use $(LINKER) not $(COMPILER).
3079 2011-08-24 Joseph Myers <joseph@codesourcery.com>
3081 * Makefile.in (ALL_CXXFLAGS): Include $(CFLAGS-$@).
3083 2011-08-24 Richard Guenther <rguenther@suse.de>
3085 PR tree-optimization/50067
3086 * tree-data-ref.c (dr_analyze_indices): Do not add an access
3087 function for a MEM_REF base that has no evolution in the loop
3088 nest or that is not analyzable.
3090 2011-08-23 Vladimir Makarov <vmakarov@redhat.com>
3092 * ira.c (ira_init_register_move_cost): Check small subclasses
3093 through ira_reg_class_max_nregs and ira_available_class_regs.
3095 2011-08-23 Uros Bizjak <ubizjak@gmail.com>
3097 * config/i386/constraints.md (Yp): New register constraint.
3098 * config/i386/i386.md (*addhi_1): Merge with *addhi_1_lea using
3099 Yp register constraint.
3100 (*addqi_1): Merge with *addqi_1_lea using Yp register constraint.
3101 (*ashlhi3_1): Merge with *ashlhi3_1_lea using Yp register constraint.
3102 (*ashlqi3_1): Merge with *ashlqi3_1_lea using Yp register constraint.
3104 2011-08-23 Kirill Yukhin <kirill.yukhin@intel.com>
3106 * config/i386/sse.md (<s>mul<mode>3_highpart): Update.
3108 2011-08-23 Mark Heffernan <meheff@google.com>
3111 * common.opt (Wfree-nonheap-object): New option.
3112 * doc/invoke.texi (Warning options): Document -Wfree-nonheap-object.
3113 * builtins.c (maybe_emit_free_warning): Add OPT_Wfree_nonheap_object
3115 (expand_builtin): Make warning conditional.
3117 2011-08-23 Uros Bizjak <ubizjak@gmail.com>
3119 * config/i386/i386.md (type): Add imulx, ishiftx and rotatex.
3120 (length_immediate): Handle imulx, ishiftx and rotatex.
3123 (enabled): Handle bmi2.
3124 (*mul<mode><dwi>3): Split from *<u>mul<mode><dwi>3.
3125 (*umul<mode><dwi>3): Ditto. Add imulx BMI2 alternative.
3126 (*bmi2_umulditi3_1): New insn pattern.
3127 (*bmi2_umulsidi3_1): Ditto.
3128 (*umul<mode><dwi>3 splitter): New splitter to avoid flags dependency.
3129 (*bmi2_ashl<mode>3_1): New insn pattern.
3130 (*ashl<mode>3_1): Add ishiftx BMI2 alternative.
3131 (*ashl<mode>3_1 splitter): New splitter to avoid flags dependency.
3132 (*bmi2_ashlsi3_1_zext): New insn pattern.
3133 (*ashlsi3_1_zext): Add ishiftx BMI2 alternative.
3134 (*ashlsi3_1_zext splitter): New splitter to avoid flags dependency.
3135 (*bmi2_<shiftrt_insn><mode>3_1): New insn pattern.
3136 (*<shiftrt_insn><mode>3_1): Add ishiftx BMI2 alternative.
3137 (*<shiftrt_insn><mode>3_1 splitter): New splitter to avoid
3139 (*bmi2_<shiftrt_insn>si3_1_zext): New insn pattern.
3140 (*<shiftrt_insn>si3_1_zext): Add ishiftx BMI2 alternative.
3141 (*<shiftrt_insn>si3_1_zext splitter): New splitter to avoid
3143 (*bmi2_rorx<mode>3_1): New insn pattern.
3144 (*<rotate_insn><mode>3_1): Add rotatex BMI2 alternative.
3145 (*rotate<mode>3_1 splitter): New splitter to avoid flags dependency.
3146 (*rotatert<mode>3_1 splitter): Ditto.
3147 (*bmi2_rorxsi3_1_zext): New insn pattern.
3148 (*<rotate_insn>si3_1_zext): Add rotatex BMI2 alternative.
3149 (*rotatesi3_1_zext splitter): New splitter to avoid flags dependency.
3150 (*rotatertsi3_1_zext splitter): Ditto.
3152 2011-08-23 Kirill Yukhin <kirill.yukhin@intel.com>
3154 * common/config/i386/i386-common.c (OPTION_MASK_ISA_BMI2_SET): New.
3155 (OPTION_MASK_ISA_BMI2_UNSET): Likewise.
3156 (ix86_handle_option): Handle OPT_mbmi2 case.
3157 * config.gcc (i[34567]86-*-*): Add bmi2intrin.h.
3158 (x86_64-*-*): Likewise.
3159 * config/i386/bmi2intrin.h: New file.
3160 * config/i386/cpuid.h (bit_BMI2): New.
3161 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
3163 * config/i386/i386-c.c (ix86_target_macros_internal):
3164 Conditionally define __BMI2__.
3165 * config/i386/i386.c (ix86_option_override_internal): Define PTA_BMI2.
3167 (ix86_valid_target_attribute_inner_p): Handle BMI2 option.
3168 (print_reg): New code.
3169 (ix86_print_operand): Likewise.
3170 (ix86_builtins): Add IX86_BUILTIN_BZHI32, IX86_BUILTIN_BZHI64,
3171 IX86_BUILTIN_PDEP32, IX86_BUILTIN_PDEP64, IX86_BUILTIN_PEXT32,
3172 IX86_BUILTIN_PEXT64.
3173 (bdesc_args): Add IX86_BUILTIN_BZHI32, IX86_BUILTIN_BZHI64,
3174 IX86_BUILTIN_PDEP32, IX86_BUILTIN_PDEP64, IX86_BUILTIN_PEXT32,
3175 IX86_BUILTIN_PEXT64.
3176 * config/i386/i386.h (TARGET_BMI2): New.
3177 * config/i386/i386.md (UNSPEC_PDEP): New.
3178 (UNSPEC_PEXT): Likewise.
3179 (*bmi2_bzhi_<mode>3): Likewise.
3180 (*bmi2_pdep_<mode>3): Likewise.
3181 (*bmi2_pext_<mode>3): Likewise.
3182 * config/i386/i386.opt (mbmi2): New.
3183 * config/i386/x86intrin.h: Include bmi2intrin.h when __BMI2__
3185 * doc/extend.texi: Document BMI2 built-in functions.
3186 * doc/invoke.texi: Document -mbmi2.
3188 2011-08-23 Jakub Jelinek <jakub@redhat.com>
3191 * simplify-rtx.c (simplify_const_unary_operation): If
3192 op is CONST_INT, don't look at op_mode, but use instead mode.
3193 * optabs.c (add_equal_note): For FFS, CLZ, CTZ,
3194 CLRSB, POPCOUNT, PARITY and BSWAP use operand mode for
3195 operation and TRUNCATE/ZERO_EXTEND if needed.
3196 * doc/rtl.texi (ffs, clrsb, clz, ctz, popcount, parity, bswap):
3197 Document that operand mode must be same as operation mode,
3199 * config/avr/avr.md (paritysi2, *parityqihi2.libgcc,
3200 *paritysihi2.libgcc, popcountsi2, *popcountsi2.libgcc,
3201 *popcountqihi2.libgcc, clzsi2, *clzsihi2.libgcc, ctzsi2,
3202 *ctzsihi2.libgcc, ffssi2, *ffssihi2.libgcc): For unary ops
3203 use the mode of operand for the operation and add truncate
3204 or zero_extend around if needed.
3205 * config/c6x/c6x.md (ctzdi2): Likewise.
3206 * config/bfin/bfin.md (clrsbsi2, signbitssi2): Likewise.
3208 2011-08-12 Michael Matz <matz@suse.de>
3210 * cfgexpand.c (expand_one_register_var): Use get_pointer_alignment.
3211 (gimple_expand_cfg): Merge alignment info for coalesced pointer
3214 2011-08-23 Richard Guenther <rguenther@suse.de>
3216 * Makefile.in (tree-data-ref.o): Add tree-affine.h dependency.
3217 * tree-affine.h (aff_comb_cannot_overlap_p): Declare.
3218 * tree-affine.c (aff_comb_cannot_overlap_p): New function, moved
3220 * tree-ssa-loop-im.c (cannot_overlap_p): ... here.
3221 (mem_refs_may_alias_p): Adjust.
3222 * tree-data-ref.h (dr_may_alias_p): Adjust.
3223 * tree-data-ref.c: Include tree-affine.h.
3224 (dr_analyze_indices): Do nothing for the non-loop case.
3225 (dr_may_alias_p): Distinguish loop and non-loop case. Disambiguate
3226 more cases in the non-loop case.
3227 * graphite-sese-to-poly.c (write_alias_graph_to_ascii_dimacs): Adjust
3228 calls to dr_may_alias_p.
3229 (write_alias_graph_to_ascii_ecc): Likewise.
3230 (write_alias_graph_to_ascii_dot): Likewise.
3231 (build_alias_set_optimal_p): Likewise.
3233 2011-08-23 Richard Guenther <rguenther@suse.de>
3235 PR tree-optimization/50162
3236 * tree-vect-stmts.c (vectorizable_call): Fix argument lookup.
3238 2011-08-23 Richard Guenther <rguenther@suse.de>
3240 * tree-data-ref.c (dr_analyze_indices): Add comments, handle
3241 REALPART_EXPR and IMAGPART_EXPR similar to ARRAY_REFs.
3242 (create_data_ref): Also dump access functions for the created data-ref.
3244 2011-08-22 Uros Bizjak <ubizjak@gmail.com>
3245 Kirill Yukhin <kirill.yukhin@intel.com>
3248 * config/i386/sse.md (VI_AVX2): New.
3249 (<plusminus_insn><mode>3): Use VI_AVX2 mode iterator.
3250 (*<plusminus_insn><mode>3): Ditto.
3251 (<sse2_avx2>_andnot<mode>3): Ditto.
3252 (*andnot<mode>3): Fix order of cond operands.
3253 Add asserts for correct TARGET_xxx.
3254 (*<any_logic:code><mode>3): Ditto.
3256 2011-08-22 Anatoly Sokolov <aesok@post.ru>
3258 * config/m32c/m32c.h (CLASS_MAX_NREGS): Remove macro.
3259 * config/m32c/m32c-protos.h (m32c_class_max_nregs): Remove.
3260 * config/m32c/m32c.c (m32c_class_max_nregs): Make static. Change
3261 regclass argument type to reg_class_t. Change 'max' and 'v' vars
3262 and return types to unsigned char. Use reg_class_contents instead
3264 (TARGET_CLASS_MAX_NREGS): Define.
3266 2011-08-22 Bernd Schmidt <bernds@codesourcery.com>
3268 * config/c6x/c6x.md (indirect_jump_shadow): Tweak representation
3269 to make computed_jump_p return true.
3271 2011-08-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3273 * configure.ac (GCC_PICFLAG_FOR_TARGET): Call it.
3274 (PICFLAG_FOR_TARGET): Substitute.
3275 * aclocal.m4: Regenerate.
3276 * configure: Regenerate.
3278 2011-08-22 Dodji Seketeli <dodji@redhat.com>
3280 * c-family/c-pch.c (c_common_read_pch): Re-set line table right
3281 after reading in the pch.
3283 2011-08-22 H.J. Lu <hongjiu.lu@intel.com>
3285 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Error if __ELF__ isn't defined.
3286 * configure: Regenerated.
3288 2011-08-22 Jakub Jelinek <jakub@redhat.com>
3290 PR tree-optimization/50133
3291 * tree-vect-stmts.c (vect_finish_stmt_generation): Copy location
3292 from stmt instead of some statement around gsi.
3295 * expr.c (get_bit_range): Only use DECL_THREAD_LOCAL_P if
3296 innerdecl is a VAR_DECL.
3298 2011-08-22 Kirill Yukhin <kirill.yukhin@intel.com>
3300 * config/i386/avx2intrin.h: New file.
3301 * config/i386/i386-builtin-types.def (PCINT, PCINT64, PV4SI,
3302 PV8SI, V32QI_FTYPE_V32QI, V32QI_FTYPE_V16QI, V16HI_FTYPE_V16HI,
3303 V16HI_FTYPE_V8HI, V8SI_FTYPE_V8SI, V16HI_FTYPE_V16QI,
3304 V8SI_FTYPE_V16QI, V4DI_FTYPE_V16QI, V8SI_FTYPE_V8HI,
3305 V4DI_FTYPE_V8HI, V4DI_FTYPE_V4SI, V4DI_FTYPE_PV4DI,
3306 V4DI_FTYPE_V2DI, V2DI_FTYPE_PCV2DI_V2DI, V4SI_FTYPE_PCV4SI_V4SI,
3307 V32QI_FTYPE_V16HI_V16HI, V16HI_FTYPE_V8SI_V8SI,
3308 V32QI_FTYPE_V32QI_V32QI, V16HI_FTYPE_V32QI_V32QI,
3309 V16HI_FTYPE_V16HI_V8HI, V16HI_FTYPE_V16HI_V16HI,
3310 V16HI_FTYPE_V16HI_INT, V16HI_FTYPE_V16HI_SI,
3311 V16HI_FTYPE_V16HI_V16HI_INT, V32QI_FTYPE_V32QI_V32QI_INT,
3312 V8SI_FTYPE_V8SI_V4SI, V8SI_FTYPE_V8SI_V8SI,
3313 V8SI_FTYPE_V16HI_V16HI, V8SI_FTYPE_V8SI_INT, V8SI_FTYPE_V8SI_SI,
3314 V8SI_FTYPE_PCV8SI_V8SI, V4DI_FTYPE_V4DI_V4DI,
3315 V4DI_FTYPE_V8SI_V8SI, V4DI_FTYPE_V4DI_V2DI,
3316 V4DI_FTYPE_PCV4DI_V4DI, V4DI_FTYPE_V4DI_INT,
3317 V2DI_FTYPE_V4DI_INT, V4DI_FTYPE_V4DI_V4DI_INT,
3318 V4DI_FTYPE_V4DI_V2DI_INT, VOID_FTYPE_PV2DI_V2DI_V2DI,
3319 VOID_FTYPE_PV4DI_V4DI_V4DI, VOID_FTYPE_PV4SI_V4SI_V4SI,
3320 VOID_FTYPE_PV8SI_V8SI_V8SI,
3321 V2DF_FTYPE_V2DF_PCDOUBLE_V4SI_V2DF_INT,
3322 V4DF_FTYPE_V4DF_PCDOUBLE_V4SI_V4DF_INT,
3323 V2DF_FTYPE_V2DF_PCDOUBLE_V2DI_V2DF_INT,
3324 V4DF_FTYPE_V4DF_PCDOUBLE_V4DI_V4DF_INT,
3325 V4SF_FTYPE_V4SF_PCFLOAT_V4SI_V4SF_INT,
3326 V8SF_FTYPE_V8SF_PCFLOAT_V8SI_V8SF_INT,
3327 V4SF_FTYPE_V4SF_PCFLOAT_V2DI_V4SF_INT,
3328 V4SF_FTYPE_V4SF_PCFLOAT_V4DI_V4SF_INT,
3329 V2DI_FTYPE_V2DI_PCINT64_V4SI_V2DI_INT,
3330 V4DI_FTYPE_V4DI_PCINT64_V4SI_V4DI_INT,
3331 V2DI_FTYPE_V2DI_PCINT64_V2DI_V2DI_INT,
3332 V4DI_FTYPE_V4DI_PCINT64_V4DI_V4DI_INT,
3333 V4SI_FTYPE_V4SI_PCINT_V4SI_V4SI_INT,
3334 V8SI_FTYPE_V8SI_PCINT_V8SI_V8SI_INT,
3335 V4SI_FTYPE_V4SI_PCINT_V2DI_V4SI_INT,
3336 V4SI_FTYPE_V4SI_PCINT_V4DI_V4SI_INT,
3337 V16HI_FTYPE_V16HI_SI_COUNT, V16HI_FTYPE_V16HI_V8HI_COUNT,
3338 V8SI_FTYPE_V8SI_SI_COUNT, V8SI_FTYPE_V8SI_V4SI_COUNT,
3339 V4DI_FTYPE_V4DI_INT_COUNT, V4DI_FTYPE_V4DI_V2DI_COUNT,
3340 V4DI_FTYPE_V4DI_INT_CONVERT,
3341 V4DI_FTYPE_V4DI_V4DI_INT_CONVERT): New.
3342 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_MPSADBW256,
3343 IX86_BUILTIN_PABSB256, IX86_BUILTIN_PABSW256,
3344 IX86_BUILTIN_PABSD256, IX86_BUILTIN_PACKSSDW256,
3345 IX86_BUILTIN_PACKSSWB256, IX86_BUILTIN_PACKUSDW256,
3346 IX86_BUILTIN_PACKUSWB256, IX86_BUILTIN_PADDB256,
3347 IX86_BUILTIN_PADDW256, IX86_BUILTIN_PADDD256,
3348 IX86_BUILTIN_PADDQ256, IX86_BUILTIN_PADDSB256,
3349 IX86_BUILTIN_PADDSW256, IX86_BUILTIN_PADDUSB256,
3350 IX86_BUILTIN_PADDUSW256, IX86_BUILTIN_PALIGNR256,
3351 IX86_BUILTIN_AND256I, IX86_BUILTIN_ANDNOT256I,
3352 IX86_BUILTIN_PAVGB256, IX86_BUILTIN_PAVGW256,
3353 IX86_BUILTIN_PBLENDVB256, IX86_BUILTIN_PBLENDVW256,
3354 IX86_BUILTIN_PCMPEQB256, IX86_BUILTIN_PCMPEQW256,
3355 IX86_BUILTIN_PCMPEQD256, IX86_BUILTIN_PCMPEQQ256,
3356 IX86_BUILTIN_PCMPGTB256, IX86_BUILTIN_PCMPGTW256,
3357 IX86_BUILTIN_PCMPGTD256, IX86_BUILTIN_PCMPGTQ256,
3358 IX86_BUILTIN_PHADDW256, IX86_BUILTIN_PHADDD256,
3359 IX86_BUILTIN_PHADDSW256, IX86_BUILTIN_PHSUBW256,
3360 IX86_BUILTIN_PHSUBD256, IX86_BUILTIN_PHSUBSW256,
3361 IX86_BUILTIN_PMADDUBSW256, IX86_BUILTIN_PMADDWD256,
3362 IX86_BUILTIN_PMAXSB256, IX86_BUILTIN_PMAXSW256,
3363 IX86_BUILTIN_PMAXSD256, IX86_BUILTIN_PMAXUB256,
3364 IX86_BUILTIN_PMAXUW256, IX86_BUILTIN_PMAXUD256,
3365 IX86_BUILTIN_PMINSB256, IX86_BUILTIN_PMINSW256,
3366 IX86_BUILTIN_PMINSD256, IX86_BUILTIN_PMINUB256,
3367 IX86_BUILTIN_PMINUW256, IX86_BUILTIN_PMINUD256,
3368 IX86_BUILTIN_PMOVMSKB256, IX86_BUILTIN_PMOVSXBW256,
3369 IX86_BUILTIN_PMOVSXBD256, IX86_BUILTIN_PMOVSXBQ256,
3370 IX86_BUILTIN_PMOVSXWD256, IX86_BUILTIN_PMOVSXWQ256,
3371 IX86_BUILTIN_PMOVSXDQ256, IX86_BUILTIN_PMOVZXBW256,
3372 IX86_BUILTIN_PMOVZXBD256, IX86_BUILTIN_PMOVZXBQ256,
3373 IX86_BUILTIN_PMOVZXWD256, IX86_BUILTIN_PMOVZXWQ256,
3374 IX86_BUILTIN_PMOVZXDQ256, IX86_BUILTIN_PMULDQ256,
3375 IX86_BUILTIN_PMULHRSW256, IX86_BUILTIN_PMULHUW256,
3376 IX86_BUILTIN_PMULHW256, IX86_BUILTIN_PMULLW256,
3377 IX86_BUILTIN_PMULLD256, IX86_BUILTIN_PMULUDQ256,
3378 IX86_BUILTIN_POR256, IX86_BUILTIN_PSADBW256,
3379 IX86_BUILTIN_PSHUFB256, IX86_BUILTIN_PSHUFD256,
3380 IX86_BUILTIN_PSHUFHW256, IX86_BUILTIN_PSHUFLW256,
3381 IX86_BUILTIN_PSIGNB256, IX86_BUILTIN_PSIGNW256,
3382 IX86_BUILTIN_PSIGND256, IX86_BUILTIN_PSLLDQI256,
3383 IX86_BUILTIN_PSLLWI256, IX86_BUILTIN_PSLLW256,
3384 IX86_BUILTIN_PSLLDI256, IX86_BUILTIN_PSLLD256,
3385 IX86_BUILTIN_PSLLQI256, IX86_BUILTIN_PSLLQ256,
3386 IX86_BUILTIN_PSRAWI256, IX86_BUILTIN_PSRAW256,
3387 IX86_BUILTIN_PSRADI256, IX86_BUILTIN_PSRAD256,
3388 IX86_BUILTIN_PSRLDQI256, IX86_BUILTIN_PSRLWI256,
3389 IX86_BUILTIN_PSRLW256, IX86_BUILTIN_PSRLDI256,
3390 IX86_BUILTIN_PSRLD256, IX86_BUILTIN_PSRLQI256,
3391 IX86_BUILTIN_PSRLQ256, IX86_BUILTIN_PSUBB256,
3392 IX86_BUILTIN_PSUBW256, IX86_BUILTIN_PSUBD256,
3393 IX86_BUILTIN_PSUBQ256, IX86_BUILTIN_PSUBSB256,
3394 IX86_BUILTIN_PSUBSW256, IX86_BUILTIN_PSUBUSB256,
3395 IX86_BUILTIN_PSUBUSW256, IX86_BUILTIN_PUNPCKHBW256,
3396 IX86_BUILTIN_PUNPCKHWD256, IX86_BUILTIN_PUNPCKHDQ256,
3397 IX86_BUILTIN_PUNPCKHQDQ256, IX86_BUILTIN_PUNPCKLBW256,
3398 IX86_BUILTIN_PUNPCKLWD256, IX86_BUILTIN_PUNPCKLDQ256,
3399 IX86_BUILTIN_PUNPCKLQDQ256, IX86_BUILTIN_PXOR256,
3400 IX86_BUILTIN_MOVNTDQA256, IX86_BUILTIN_VBROADCASTSS_PS,
3401 IX86_BUILTIN_VBROADCASTSS_PS256,
3402 IX86_BUILTIN_VBROADCASTSD_PD256,
3403 IX86_BUILTIN_VBROADCASTSI256, IX86_BUILTIN_PBLENDD256,
3404 IX86_BUILTIN_PBLENDD128, IX86_BUILTIN_PBROADCASTB256,
3405 IX86_BUILTIN_PBROADCASTW256, IX86_BUILTIN_PBROADCASTD256,
3406 IX86_BUILTIN_PBROADCASTQ256, IX86_BUILTIN_PBROADCASTB128,
3407 IX86_BUILTIN_PBROADCASTW128, IX86_BUILTIN_PBROADCASTD128,
3408 IX86_BUILTIN_PBROADCASTQ128, IX86_BUILTIN_VPERMVARSI256,
3409 IX86_BUILTIN_VPERMDF256, IX86_BUILTIN_VPERMVARSF256,
3410 IX86_BUILTIN_VPERMDI256, IX86_BUILTIN_VPERMTI256,
3411 IX86_BUILTIN_VEXTRACT128I256, IX86_BUILTIN_VINSERT128I256,
3412 IX86_BUILTIN_MASKLOADD, IX86_BUILTIN_MASKLOADQ,
3413 IX86_BUILTIN_MASKLOADD256, IX86_BUILTIN_MASKLOADQ256,
3414 IX86_BUILTIN_MASKSTORED, IX86_BUILTIN_MASKSTOREQ,
3415 IX86_BUILTIN_MASKSTORED256, IX86_BUILTIN_MASKSTOREQ256,
3416 IX86_BUILTIN_PSLLVV4DI, IX86_BUILTIN_PSLLVV2DI,
3417 IX86_BUILTIN_PSLLVV8SI, IX86_BUILTIN_PSLLVV4SI,
3418 IX86_BUILTIN_PSRAVV8SI, IX86_BUILTIN_PSRAVV4SI,
3419 IX86_BUILTIN_PSRLVV4DI, IX86_BUILTIN_PSRLVV2DI,
3420 IX86_BUILTIN_PSRLVV8SI, IX86_BUILTIN_PSRLVV4SI,
3421 IX86_BUILTIN_GATHERSIV2DF, IX86_BUILTIN_GATHERSIV4DF,
3422 IX86_BUILTIN_GATHERDIV2DF, IX86_BUILTIN_GATHERDIV4DF,
3423 IX86_BUILTIN_GATHERSIV4SF, IX86_BUILTIN_GATHERSIV8SF,
3424 IX86_BUILTIN_GATHERDIV4SF, IX86_BUILTIN_GATHERDIV8SF,
3425 IX86_BUILTIN_GATHERSIV2DI, IX86_BUILTIN_GATHERSIV4DI,
3426 IX86_BUILTIN_GATHERDIV2DI, IX86_BUILTIN_GATHERDIV4DI,
3427 IX86_BUILTIN_GATHERSIV4SI, IX86_BUILTIN_GATHERSIV8SI,
3428 IX86_BUILTIN_GATHERDIV4SI, IX86_BUILTIN_GATHERDIV8SI.
3429 (bdesc_special_args): Add IX86_BUILTIN_MOVNTDQA256,
3430 IX86_BUILTIN_MASKLOADD, IX86_BUILTIN_MASKLOADQ,
3431 IX86_BUILTIN_MASKLOADD256, IX86_BUILTIN_MASKLOADQ256,
3432 IX86_BUILTIN_MASKSTORED, IX86_BUILTIN_MASKSTOREQ,
3433 IX86_BUILTIN_MASKSTORED256, IX86_BUILTIN_MASKSTOREQ256.
3434 (bdesc_args): Add IX86_BUILTIN_MPSADBW256,
3435 IX86_BUILTIN_PABSB256, IX86_BUILTIN_PABSW256,
3436 IX86_BUILTIN_PABSD256, IX86_BUILTIN_PACKSSDW256,
3437 IX86_BUILTIN_PACKSSWB256, IX86_BUILTIN_PACKUSDW256,
3438 IX86_BUILTIN_PACKUSWB256, IX86_BUILTIN_PADDB256,
3439 IX86_BUILTIN_PADDW256, IX86_BUILTIN_PADDD256,
3440 IX86_BUILTIN_PADDQ256, IX86_BUILTIN_PADDSB256,
3441 IX86_BUILTIN_PADDSW256, IX86_BUILTIN_PADDUSB256,
3442 IX86_BUILTIN_PADDUSW256, IX86_BUILTIN_PALIGNR256,
3443 IX86_BUILTIN_AND256I, IX86_BUILTIN_ANDNOT256I,
3444 IX86_BUILTIN_PAVGB256, IX86_BUILTIN_PAVGW256,
3445 IX86_BUILTIN_PBLENDVB256, IX86_BUILTIN_PBLENDVW256,
3446 IX86_BUILTIN_PCMPEQB256, IX86_BUILTIN_PCMPEQW256,
3447 IX86_BUILTIN_PCMPEQD256, IX86_BUILTIN_PCMPEQQ256,
3448 IX86_BUILTIN_PCMPGTB256, IX86_BUILTIN_PCMPGTW256,
3449 IX86_BUILTIN_PCMPGTD256, IX86_BUILTIN_PCMPGTQ256,
3450 IX86_BUILTIN_PHADDW256, IX86_BUILTIN_PHADDD256,
3451 IX86_BUILTIN_PHADDSW256, IX86_BUILTIN_PHSUBW256,
3452 IX86_BUILTIN_PHSUBD256, IX86_BUILTIN_PHSUBSW256,
3453 IX86_BUILTIN_PMADDUBSW256, IX86_BUILTIN_PMADDWD256,
3454 IX86_BUILTIN_PMAXSB256, IX86_BUILTIN_PMAXSW256,
3455 IX86_BUILTIN_PMAXSD256, IX86_BUILTIN_PMAXUB256,
3456 IX86_BUILTIN_PMAXUW256, IX86_BUILTIN_PMAXUD256,
3457 IX86_BUILTIN_PMINSB256, IX86_BUILTIN_PMINSW256,
3458 IX86_BUILTIN_PMINSD256, IX86_BUILTIN_PMINUB256,
3459 IX86_BUILTIN_PMINUW256, IX86_BUILTIN_PMINUD256,
3460 IX86_BUILTIN_PMOVMSKB256, IX86_BUILTIN_PMOVSXBW256,
3461 IX86_BUILTIN_PMOVSXBD256, IX86_BUILTIN_PMOVSXBQ256,
3462 IX86_BUILTIN_PMOVSXWD256, IX86_BUILTIN_PMOVSXWQ256,
3463 IX86_BUILTIN_PMOVSXDQ256, IX86_BUILTIN_PMOVZXBW256,
3464 IX86_BUILTIN_PMOVZXBD256, IX86_BUILTIN_PMOVZXBQ256,
3465 IX86_BUILTIN_PMOVZXWD256, IX86_BUILTIN_PMOVZXWQ256,
3466 IX86_BUILTIN_PMOVZXDQ256, IX86_BUILTIN_PMULDQ256,
3467 IX86_BUILTIN_PMULHRSW256, IX86_BUILTIN_PMULHUW256,
3468 IX86_BUILTIN_PMULHW256, IX86_BUILTIN_PMULLW256,
3469 IX86_BUILTIN_PMULLD256, IX86_BUILTIN_PMULUDQ256,
3470 IX86_BUILTIN_POR256, IX86_BUILTIN_PSADBW256,
3471 IX86_BUILTIN_PSHUFB256, IX86_BUILTIN_PSHUFD256,
3472 IX86_BUILTIN_PSHUFHW256, IX86_BUILTIN_PSHUFLW256,
3473 IX86_BUILTIN_PSIGNB256, IX86_BUILTIN_PSIGNW256,
3474 IX86_BUILTIN_PSIGND256, IX86_BUILTIN_PSLLDQI256,
3475 IX86_BUILTIN_PSLLWI256, IX86_BUILTIN_PSLLW256,
3476 IX86_BUILTIN_PSLLDI256, IX86_BUILTIN_PSLLD256,
3477 IX86_BUILTIN_PSLLQI256, IX86_BUILTIN_PSLLQ256,
3478 IX86_BUILTIN_PSRAWI256, IX86_BUILTIN_PSRAW256,
3479 IX86_BUILTIN_PSRADI256, IX86_BUILTIN_PSRAD256,
3480 IX86_BUILTIN_PSRLDQI256, IX86_BUILTIN_PSRLWI256,
3481 IX86_BUILTIN_PSRLW256, IX86_BUILTIN_PSRLDI256,
3482 IX86_BUILTIN_PSRLD256, IX86_BUILTIN_PSRLQI256,
3483 IX86_BUILTIN_PSRLQ256, IX86_BUILTIN_PSUBB256,
3484 IX86_BUILTIN_PSUBW256, IX86_BUILTIN_PSUBD256,
3485 IX86_BUILTIN_PSUBQ256, IX86_BUILTIN_PSUBSB256,
3486 IX86_BUILTIN_PSUBSW256, IX86_BUILTIN_PSUBUSB256,
3487 IX86_BUILTIN_PSUBUSW256, IX86_BUILTIN_PUNPCKHBW256,
3488 IX86_BUILTIN_PUNPCKHWD256, IX86_BUILTIN_PUNPCKHDQ256,
3489 IX86_BUILTIN_PUNPCKHQDQ256, IX86_BUILTIN_PUNPCKLBW256,
3490 IX86_BUILTIN_PUNPCKLWD256, IX86_BUILTIN_PUNPCKLDQ256,
3491 IX86_BUILTIN_PUNPCKLQDQ256, IX86_BUILTIN_PXOR256,
3492 IX86_BUILTIN_VBROADCASTSS_PS, IX86_BUILTIN_VBROADCASTSS_PS256,
3493 IX86_BUILTIN_VBROADCASTSD_PD256,
3494 IX86_BUILTIN_VBROADCASTSI256, IX86_BUILTIN_PBLENDD256,
3495 IX86_BUILTIN_PBLENDD128, IX86_BUILTIN_PBROADCASTB256,
3496 IX86_BUILTIN_PBROADCASTW256, IX86_BUILTIN_PBROADCASTD256,
3497 IX86_BUILTIN_PBROADCASTQ256, IX86_BUILTIN_PBROADCASTB128,
3498 IX86_BUILTIN_PBROADCASTW128, IX86_BUILTIN_PBROADCASTD128,
3499 IX86_BUILTIN_PBROADCASTQ128, IX86_BUILTIN_VPERMVARSI256,
3500 IX86_BUILTIN_VPERMDF256, IX86_BUILTIN_VPERMVARSF256,
3501 IX86_BUILTIN_VPERMDI256, IX86_BUILTIN_VPERMTI256,
3502 IX86_BUILTIN_VEXTRACT128I256, IX86_BUILTIN_VINSERT128I256,
3503 IX86_BUILTIN_PSLLVV4DI, IX86_BUILTIN_PSLLVV2DI,
3504 IX86_BUILTIN_PSLLVV8SI, IX86_BUILTIN_PSLLVV4SI,
3505 IX86_BUILTIN_PSRAVV8SI, IX86_BUILTIN_PSRAVV4SI,
3506 IX86_BUILTIN_PSRLVV4DI, IX86_BUILTIN_PSRLVV2DI,
3507 IX86_BUILTIN_PSRLVV8SI, IX86_BUILTIN_PSRLVV4SI.
3508 (ix86_init_mmx_sse_builtins): Add IX86_BUILTIN_GATHERSIV2DF,
3509 IX86_BUILTIN_GATHERSIV4DF, IX86_BUILTIN_GATHERDIV2DF,
3510 IX86_BUILTIN_GATHERDIV4DF, IX86_BUILTIN_GATHERSIV4SF,
3511 IX86_BUILTIN_GATHERSIV8SF, IX86_BUILTIN_GATHERDIV4SF,
3512 IX86_BUILTIN_GATHERDIV8SF, IX86_BUILTIN_GATHERSIV2DI,
3513 IX86_BUILTIN_GATHERSIV4DI, IX86_BUILTIN_GATHERDIV2DI,
3514 IX86_BUILTIN_GATHERDIV4DI, IX86_BUILTIN_GATHERSIV4SI,
3515 IX86_BUILTIN_GATHERSIV8SI, IX86_BUILTIN_GATHERDIV4SI,
3516 IX86_BUILTIN_GATHERDIV8SI.
3517 (ix86_preferred_simd_mode): Support AVX2 modes.
3518 (ix86_expand_args_builtin): Support AVX2 builtins.
3519 (ix86_expand_special_args_builtin): Likewise.
3520 (ix86_expand_builtin): Likewise.
3521 * config/i386/i386.md (UNSPEC_VPERMSI): New.
3522 (UNSPEC_VPERMDF): Likewise.
3523 (UNSPEC_VPERMSF): Likewise.
3524 (UNSPEC_VPERMDI): Likewise.
3525 (UNSPEC_VPERMTI): Likewise.
3526 (UNSPEC_GATHER): Likewise.
3527 (ssemodesuffix): Extend.
3528 * config/i386/immintrin.h: Include avx2intrin.h when __AVX2__
3530 * config/i386/predicates.md (const1248_operand): New.
3531 * config/i386/sse.md (VI1_AVX2): New mode iterator.
3532 (VI2_AVX2): Likewise.
3533 (VI4_AVX2): Likewise.
3534 (VI8_AVX2): Likewise.
3535 (VIMAX_AVX2): Likewise.
3536 (SSESCALARMODE): Likewise.
3537 (VI12_AVX2): Likewise.
3538 (VI24_AVX2): Likewise.
3539 (VI124_AVX2): Likewise.
3540 (VI248_AVX2): Likewise.
3541 (VI48_AVX2): Likewise.
3542 (VI4SD_AVX2): Likewise.
3543 (V48_AVX2): Likewise.
3544 (AVX256MODE2P): Likewise.
3545 (AVXMODE48P_DI): Likewise.
3546 (sse2_avx2): New mode attribute.
3547 (ssse3_avx2): Likewise.
3548 (sse4_1_avx2): Likewise.
3549 (avx_avx2): Likewise.
3550 (ssebytemode): Likewise.
3551 (AVXTOSSEMODE): Likewise.
3552 (AVXMODE48P_DI): Likewise.
3553 (gthrfirstp): Likewise.
3554 (gthrlastp): Likewise.
3555 (lshift): New code_iterator
3556 (lshift): New code attribute.
3558 (ssescalarmodesuffix): Update.
3559 (sseunpackmode): Likewise.
3560 (ssepackmode): Likewise.
3561 (avx2_vec_dupv4sf): New insn pattern.
3562 (avx2_vec_dupv8sf): Likewise.
3563 (avx2_interleave_highv4di): Likewise.
3564 (avx2_interleave_lowv4di): Likewise.
3565 (avx2_umulv4siv4di3): Likewise
3566 (*avx2_umulv4siv4di3): Likewise
3567 (avx2_pmaddwd): Likewise.
3568 (*avx2_pmaddwd): Likewise.
3569 (avx2_lshrqv4di3): Likewise.
3570 (avx2_lshlqv4di3): Likewise.
3571 (avx2_lshl<mode>3): Likewise.
3572 (avx2_<umaxmin:code><mode>3): Likewise.
3573 (*avx2_<umaxmin:code><mode>3): Likewise.
3574 (avx2_<smaxmin:code><mode>3): Likewise.
3575 (*avx2_<smaxmin:code><mode>3): Likewise.
3576 (avx2_eq<mode>3): Likewise.
3577 (*avx2_eq<mode>3): Likewise.
3578 (avx2_gt<mode>3): Likewise.
3579 (avx2_interleave_highv32qi): New.
3580 (avx2_interleave_lowv32qi): Likewise.
3581 (avx2_interleave_highv16hi): Likewise.
3582 (avx2_interleave_lowv16hi): Likewise.
3583 (avx2_interleave_highv8si): Likewise.
3584 (avx2_interleave_lowv8si): Likewise.
3585 (avx2_pshufd): Likewise.
3586 (avx2_pshufd_1): Likewise.
3587 (avx2_pshuflwv3): Likewise.
3588 (avx2_pshuflw_1): Likewise.
3589 (avx2_pshufhwv3): Likewise.
3590 (avx2_pshufhw_1): Likewise.
3591 (avx2_uavgv32qi3): Likewise.
3592 (*avx2_uavgv32qi3): Likewise.
3593 (avx2_uavgv16hi3): Likewise.
3594 (*avx2_uavgv16hi3): Likewise.
3595 (avx2_pmovmskb): Likewise.
3596 (avx2_phaddwv16hi3): Likewise.
3597 (avx2_phadddv8si3): Likewise.
3598 (avx2_phaddswv16hi3): Likewise.
3599 (avx2_phsubwv16hi3): Likewise.
3600 (avx2_phsubdv8si3): Likewise.
3601 (avx2_phsubswv16hi3): Likewise.
3602 (avx2_pmaddubsw256): Likewise.
3603 (avx2_umulhrswv16hi3): Likewise.
3604 (*avx2_umulhrswv16hi3): Likewise.
3605 (avx2_packusdw): Likewise.
3606 (avx2_pblendd<mode>): Likewise.
3607 (avx2_<code>v16qiv16hi2): Likewise.
3608 (avx2_<code>v8qiv8si2): Likewise.
3609 (avx2_<code>v8hiv8si2): Likewise.
3610 (avx2_<code>v4qiv4di2): Likewise.
3611 (avx2_<code>v4hiv4di2): Likewise.
3612 (avx2_<code>v4siv4di2): Likewise.
3613 (avx2_pbroadcast<mode>): Likewise.
3614 (avx2_permvarv8si): Likewise.
3615 (avx2_permv4df): Likewise.
3616 (avx2_permvarv8sf): Likewise.
3617 (avx2_permv4di): Likewise.
3618 (avx2_permv2ti): Likewise.
3619 (avx2_vec_dupv4df): Likewise.
3620 (avx2_vbroadcasti128_<mode>): Likewise.
3621 (avx2_vec_set_lo_v4di): Likewise.
3622 (avx2_vec_set_hi_v4di): Likewise.
3623 (*avx2_maskmov<avx2modesuffix><avxmodesuffix>): Likewise.
3624 (avx2_extracti128): Likewise.
3625 (avx2_inserti128): Likewise.
3626 (avx2_ashrvv8si): Likewise.
3627 (avx2_ashrvv4si): Likewise.
3628 (avx2_<lshift>vv8si): Likewise.
3629 (avx2_<lshift>v<mode>): Likewise.
3630 (avx2_<lshift>vv2di): Likewise.
3631 (avx2_gathersi<mode>): Likewise.
3632 (*avx2_gathersi<mode>): Likewise.
3633 (avx2_gatherdi<mode>): Likewise.
3634 (*avx2_gatherdi<mode>): Likewise.
3635 (avx2_gatherdi<mode>256): Likewise.
3636 (*avx2_gatherdi<mode>256): Likewise.
3637 (<plusminus_insn><mode>3): Use VI mode iterator.
3638 (*<plusminus_insn><mode>3): Use VI mode iterator.
3639 (<sse2_avx2>_<plusminus_insn><mode>3): Rename from
3640 sse2_<plusminus_insn><mode>3. Use VI12_AVX2 mode iterator.
3641 (*<sse2_avx2>_<plusminus_insn><mode>3): Rename from
3642 *sse2_<plusminus_insn><mode>3. Use VI12_AVX2 mode iterator.
3643 (mul<mode>3): Rename from mulv8hi3. Use VI2_AVX2 mode iterator.
3644 (*mul<mode>3): Rename from *mulv8hi3. Use VI2_AVX2 mode iterator.
3645 (<s>mul<mode>3_highpart): Rename from <s>mulv8hi3_highpart.
3646 Use VI2_AVX2 mode iterator.
3647 (*<s>mul<mode>3_highpart): Rename from *<s>mulv8hi3_highpart.
3648 Use VI2_AVX2 mode iterator.
3649 (mul<mode>3): Rename from mulv4si3. Use VI4_AVX2 mode iterator.
3650 (*mul<mode>3): Rename from *mulv4si3. Use VI4_AVX2 mode iterator.
3651 (*<sse4_1_avx2>_mulv2siv2di3): Rename from *sse4_1_mulv4si3.
3652 Use VI4_AVX2 mode iterator.
3653 (ashr<mode>3): Use VI24_AVX2 mode iterator.
3654 (lshr<mode>3): Use VI248_AVX2 mode iterator.
3655 (<sse2_avx2>_ashl<mode>3): Rename from sse2_ashlv1ti3.
3656 Use VIMAX_AVX2 mode iterator.
3657 (<sse2_avx2>_andnot<mode>3): Rename from sse2_andnot<mode>3.
3658 Use VI mode iterator.
3659 (*andnot<mode>3): Update for AVX2.
3660 (*<any_logic:code><mode>3): Likewise.
3661 (<sse2_avx2>_packsswb): Rename from sse2_packsswb.
3662 Use VI1_AVX mode iterator.
3663 (<sse2_avx2>_packssdw): Rename from sse2_packssdw.
3664 Use VI2_AVX mode iterator.
3665 (<sse2_avx2>_packuswb): Rename from sse2_packsswb.
3666 Use VI1_AVX mode iterator.
3667 (<sse2_avx2>_psadbw): Rename from sse2_psadbw.
3668 Use VI8_AVX2 mode iterator.
3669 (<ssse3_avx2>_pshufb<mode>3): Rename from ssse3_pshufbv16qi3.
3670 Use VI1_AVX2 mode iterator.
3671 (<ssse3_avx2>_psign<mode>3): Rename from ssse3_psign<mode>3.
3672 Use VI124_AVX2 mode iterator.
3673 (<ssse3_avx2>_palignr<mode>): Rename from ssse3_palignrti.
3674 Use SSESCALARMODE mode iterator.
3675 (abs<mode>2): Use VI124_AVX2 mode iterator.
3676 (<sse4_1_avx2>_movntdqa): Rename from sse4_1_movntdqa.
3677 Use VI8_AVX2 mode iterator.
3678 (<sse4_1_avx2>_mpsadbw): Rename from sse4_1_mpsadbw.
3679 Use VI1_AVX2 mode iterator.
3680 (<sse4_1_avx2>_pblendvb): Rename from sse4_1_pblendvb.
3681 Use VI1_AVX2 mode iterator.
3682 (<sse4_1_avx2>_pblendw): Rename from sse4_1_pblendvb.
3683 Use VI2_AVX2 mode iterator.
3684 (<avx_avx2>_maskload<avx2modesuffix><avxmodesuffix>): Rename from
3685 avx_maskload<ssemodesuffix><avxsizesuffix>. Use V48_AVX2 mode iterator.
3686 (<avx_avx2>_maskstore<avx2modesuffix><avxmodesuffix>): Rename from
3687 avx_maskstore<ssemodesuffix><avxsizesuffix>.
3688 Use V48_AVX2 mode iterator.
3689 * doc/extend.texi: Document AVX2 built-in functions.
3690 * doc/invoke.texi: Document -mavx2.
3692 2011-08-22 Matthias Klose <doko@debian.org>
3695 2011-07-11 Arthur Loiret <aloiret@debian.org>
3696 Matthias Klose <doko@debian.org>
3697 * config/mips/t-linux64 (MULTILIB_DIRNAMES): Set to 'n32 . 64' if
3698 tm_defines contains MIPS_ABI_DEFAULT ABI_32, to follow the glibc
3700 * config.gcc (tm_defines): Add MIPS_ABI_DEFAULT=ABI_32.
3702 2011-08-22 Mikael Pettersson <mikpe@it.uu.se>
3705 * ira-color.c (assign_hard_reg): Move saved_nregs declaration
3706 to #ifndef HONOR_REG_ALLOC_ORDER block.
3708 2011-08-21 Richard Henderson <rth@redhat.com>
3710 * rtl.h (INSN_ANNULLED_BRANCH_P): Only allow JUMP_INSN.
3711 * dwarf2cfi.c (scan_trace): Test JUMP_P before INSN_ANNULLED_BRANCH_P.
3712 * resource.c (next_insn_no_annul): Likewise.
3713 (mark_set_resources): Likewise.
3714 * reorg.c (delete_from_delay_slot): Likewise.
3715 (dbr_schedule, redundant_insn, try_merge_delay_insns): Likewise.
3716 (get_branch_condition): Test pc_rtx and LABEL_REF before dereferencing.
3718 2011-08-21 Uros Bizjak <ubizjak@gmail.com>
3720 * config/i386/i386.md (any_div): Remove.
3721 (sgnprefix): Update for removal.
3724 2011-08-20 Vladimir Makarov <vmakarov@redhat.com>
3726 * ira-lives.c (mark_pseudo_regno_subword_live): Use allocno class
3727 for ira_reg_class_max_nregs. Increase pressure by 1.
3728 (mark_pseudo_regno_subword_dead): Use allocno class
3729 for ira_reg_class_max_nregs.
3731 2011-08-20 Richard Henderson <rth@redhat.com>
3733 * config/c6x/eqd.c, config/c6x/eqf.c, config/c6x/ged.c,
3734 config/c6x/gef.c, config/c6x/gtd.c, config/c6x/gtf.c,
3735 config/c6x/led.c, config/c6x/lef.c, config/c6x/ltd.c,
3736 config/c6x/ltf.c: Adjust include path for soft-fp.
3738 2011-08-20 H.J. Lu <hongjiu.lu@intel.com>
3741 * config.gcc (tm_file): Add initfini-array.h if
3742 .init_arrary/.fini_array are supported.
3744 * crtstuff.c: Don't generate .ctors nor .dtors sections if
3745 USE_INITFINI_ARRAY is defined.
3747 * output.h (default_elf_init_array_asm_out_constructor): New.
3748 (default_elf_fini_array_asm_out_destructor): Likewise.
3749 * varasm.c (elf_init_array_section): Likewise.
3750 (elf_fini_array_section): Likewise.
3751 (get_elf_initfini_array_priority_section): Likewise.
3752 (default_elf_init_array_asm_out_constructor): Likewise.
3753 (default_elf_fini_array_asm_out_destructor): Likewise.
3755 * config/initfini-array.h: New.
3757 2011-08-20 Richard Sandiford <rdsandiford@googlemail.com>
3759 * config/mips/mips.c (mips_class_max_nregs): Check that the mode is
3760 OK for ST_REGS and FP_REGS before taking those classes into account.
3762 2011-08-20 Richard Sandiford <rdsandiford@googlemail.com>
3764 * config/mips/mips.c (mips_reorg_process_insns): Check for jumps
3765 before checking for annulled branches.
3767 2011-08-20 Uros Bizjak <ubizjak@gmail.com>
3769 * config/i386/i386.c (ix86_binary_operator_ok): Use
3770 satisfies_constraint_L.
3772 2011-08-20 Uros Bizjak <ubizjak@gmail.com>
3773 Michael Matz <matz@suse.de>
3775 * config/i386/i386.c (ix86_expand_round_sse4): Expand as
3776 trunc (a + copysign (nextafter (0.5, 0.0), a)).
3778 2011-08-20 Anatoly Sokolov <aesok@post.ru>
3780 * doc/tm.texi.in (PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
3781 * doc/tm.texi: Regenerate.
3782 * targhooks.c (default_preferred_output_reload_class): Don't use
3783 PREFERRED_OUTPUT_RELOAD_CLASS macro.
3784 * system.h (PREFERRED_OUTPUT_RELOAD_CLASS): Poison.
3786 2011-08-20 Jakub Jelinek <jakub@redhat.com>
3788 PR tree-optimization/48739
3789 * tree-ssa.c: Include cfgloop.h.
3790 (execute_update_addresses_taken): When updating ssa, if in loop closed
3791 SSA form, call rewrite_into_loop_closed_ssa instead of update_ssa.
3792 * Makefile.in (tree-ssa.o): Depend on $(CFGLOOP_H).
3794 2011-08-19 Vladimir Makarov <vmakarov@redhat.com>
3796 PR rtl-optimization/49936
3797 * ira.c (ira_init_register_move_cost): Ignore too small subclasses
3798 for calculation of max register move costs.
3800 2011-08-19 Joseph Myers <joseph@codesourcery.com>
3802 * c-parser.c (c_parser_postfix_expression): Convert operands of
3803 __builtin_complex to their semantic types.
3805 2011-08-19 H.J. Lu <hongjiu.lu@intel.com>
3808 * explow.c (convert_memory_address_addr_space): Also permute the
3809 conversion and addition of constant for zero-extend.
3811 2011-08-19 Joseph Myers <joseph@codesourcery.com>
3813 * c-parser.c (c_parser_postfix_expression): Handle RID_BUILTIN_COMPLEX.
3814 * doc/extend.texi (__builtin_complex): Document.
3816 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
3818 * tree-ssa-math-opts.c (is_widening_mult_rhs_p): Handle constants
3820 (convert_mult_to_widen): Convert constant inputs to the right type.
3821 (convert_plusminus_to_widen): Don't automatically reject inputs that
3822 are not an SSA_NAME.
3823 Convert constant inputs to the right type.
3825 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
3827 * tree-ssa-math-opts.c (convert_plusminus_to_widen): Convert add_rhs
3828 to the correct type.
3830 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
3832 * tree-ssa-math-opts.c (convert_mult_to_widen): Better handle
3833 unsigned inputs of different modes.
3834 (convert_plusminus_to_widen): Likewise.
3836 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
3838 * tree-ssa-math-opts.c (is_widening_mult_rhs_p): Add new argument
3840 Use 'type' from caller, not inferred from 'rhs'.
3841 Don't reject non-conversion statements. Do return lhs in this case.
3842 (is_widening_mult_p): Add new argument 'type'.
3843 Use 'type' from caller, not inferred from 'stmt'.
3844 Pass type to is_widening_mult_rhs_p.
3845 (convert_mult_to_widen): Pass type to is_widening_mult_p.
3846 (convert_plusminus_to_widen): Likewise.
3848 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
3850 * tree-ssa-math-opts.c (is_widening_mult_p): Remove FIXME.
3851 Ensure the the larger type is the first operand.
3853 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
3855 * tree-ssa-math-opts.c (convert_mult_to_widen): Convert
3856 unsupported unsigned multiplies to signed.
3857 (convert_plusminus_to_widen): Likewise.
3859 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
3861 * tree-ssa-math-opts.c (convert_plusminus_to_widen): Permit a single
3862 conversion statement separating multiply-and-accumulate.
3864 2011-08-19 Richard Guenther <rguenther@suse.de>
3866 PR tree-optimization/50067
3867 * tree-data-ref.c (dr_analyze_indices): Simplify, strip MEM_REF
3868 offset only if we accounted for it.
3870 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
3872 * config/arm/arm.md (maddhidi4): Remove '*' from name.
3873 * expr.c (expand_expr_real_2): Use find_widening_optab_handler.
3874 * optabs.c (find_widening_optab_handler_and_mode): New function.
3875 (expand_widen_pattern_expr): Use find_widening_optab_handler.
3876 (expand_binop_directly): Likewise.
3877 (expand_binop): Likewise.
3878 * optabs.h (find_widening_optab_handler): New macro define.
3879 (find_widening_optab_handler_and_mode): New prototype.
3880 * tree-cfg.c (verify_gimple_assign_binary): Adjust WIDEN_MULT_EXPR
3881 type precision rules.
3882 (verify_gimple_assign_ternary): Likewise for WIDEN_MULT_PLUS_EXPR.
3883 * tree-ssa-math-opts.c (build_and_insert_cast): New function.
3884 (is_widening_mult_rhs_p): Allow widening by more than one mode.
3885 Explicitly disallow mis-matched input types.
3886 (convert_mult_to_widen): Use find_widening_optab_handler, and cast
3887 input types to fit the new handler.
3888 (convert_plusminus_to_widen): Likewise.
3890 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
3892 * expr.c (expand_expr_real_2): Use widening_optab_handler.
3893 * genopinit.c (optabs): Use set_widening_optab_handler for $N.
3894 (gen_insn): $N now means $a must be wider than $b, not consecutive.
3895 * optabs.c (widened_mode): New function.
3896 (expand_widen_pattern_expr): Use widening_optab_handler.
3897 (expand_binop_directly): Likewise.
3898 (expand_binop): Likewise.
3899 * optabs.h (widening_optab_handlers): New struct.
3900 (optab_d): New member, 'widening'.
3901 (widening_optab_handler): New function.
3902 (set_widening_optab_handler): New function.
3903 * tree-ssa-math-opts.c (convert_mult_to_widen): Use
3904 widening_optab_handler.
3905 (convert_plusminus_to_widen): Likewise.
3907 2011-08-19 Joseph Myers <joseph@codesourcery.com>
3909 * c-decl.c (grokdeclarator): Diagnose _Noreturn for non-C1X if
3911 * c-parser.c (c_parser_declspecs): Include _Noreturn in syntax comment.
3912 * ginclude/stdnoreturn.h (noreturn): Don't define for C++.
3914 2011-08-19 Joseph Myers <joseph@codesourcery.com>
3916 * opth-gen.awk: Do not declare target save/restore structures and
3917 functions if IN_RTS defined.
3919 2011-08-19 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
3922 * config/arm/arm.c (arm_output_epilogue): Properly handle epilogue
3923 when stack was realigned in interrupt handler prologue.
3925 2011-08-18 Joseph Myers <joseph@codesourcery.com>
3927 * c-decl.c (shadow_tag_warned): Check for _Noreturn.
3928 (quals_from_declspecs): Assert _Noreturn not present.
3929 (grokdeclarator): Handle _Noreturn.
3930 (build_null_declspecs): Initialize noreturn_p.
3931 (declspecs_add_scspec): Handle RID_NORETURN.
3932 * c-parser.c (c_token_starts_declspecs, c_parser_declspecs)
3933 (c_parser_attributes): Handle RID_NORETURN.
3934 * c-tree.h (struct c_declspecs): Add noreturn_p.
3935 * ginclude/stdnoreturn.h: New.
3936 * Makefile.in (USER_H): Add stdnoreturn.h.
3938 2011-08-18 Kirill Yukhin <kirill.yukhin@intel.com>
3940 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX2_SET): New.
3941 (OPTION_MASK_ISA_AVX_UNSET): Update.
3942 (OPTION_MASK_ISA_AVX2_UNSET): New.
3943 (ix86_handle_option): Handle OPT_mavx2 case.
3944 * config/i386/cpuid.h (bit_AVX2): New.
3945 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
3947 * config/i386/i386-c.c (ix86_target_macros_internal):
3948 Conditionally define __AVX2__.
3949 * config/i386/i386.c (ix86_option_override_internal): Define PTA_AVX2.
3950 Define "core-avx2" processor alias. Handle avx2 option.
3951 (ix86_valid_target_attribute_inner_p): Handle avx2 option.
3952 * config/i386/i386.h (TARGET_AVX2): New.
3953 * config/i386/i386.opt (mavx2): New.
3954 * doc/invoke.texi: Document -mavx2.
3956 2011-08-18 Vladimir Makarov <vmakarov@redhat.com>
3958 PR rtl-optimization/49890
3959 * ira-costs.c (setup_regno_cost_classes_by_aclass): Don't exclude
3960 subclasses of class which is superset of a pressure class.
3962 2011-08-18 H.J. Lu <hongjiu.lu@intel.com>
3963 Igor Zamyatin <igor.zamyatin@intel.com>
3965 * config/i386/i386-c.c (ix86_target_macros_internal): Replace int
3966 with HOST_WIDE_INT for isa_flag.
3967 (ix86_pragma_target_parse): Replace int with HOST_WIDE_INT for
3970 * config/i386/i386.c (ix86_target_string): Replace int with
3971 HOST_WIDE_INT for isa. Use HOST_WIDE_INT_PRINT to print isa.
3972 (ix86_target_opts): Replace int with HOST_WIDE_INT on mask.
3973 (pta_flags): Removed.
3974 (PTA_XXX): Redefined as (HOST_WIDE_INT_1 << X).
3975 (pta): Use HOST_WIDE_INT on flags.
3976 (builtin_isa): Use HOST_WIDE_INT on isa.
3977 (ix86_add_new_builtins): Likewise.
3978 (def_builtin): Use HOST_WIDE_INT on mask.
3979 (def_builtin_const): Likewise.
3980 (builtin_description): Likewise.
3982 * config/i386/i386.opt (ix86_isa_flags): Replace int with
3984 (ix86_isa_flags_explicit): Likewise.
3985 (x_ix86_isa_flags_explicit): Likewise.
3987 2011-08-17 Vladimir Makarov <vmakarov@redhat.com>
3989 PR rtl-optimization/50107
3990 * ira-int.h (ira_hard_reg_not_in_set_p): Remove.
3991 (ira_hard_reg_in_set_p): New.
3993 * ira-color.c (calculate_saved_nregs): New.
3994 (assign_hard_reg): Use it. Set up allocated_hard_reg_p for all
3996 (allocno_reload_assign, fast_allocation): Use
3997 ira_hard_reg_set_intersection_p instead of
3998 ira_hard_reg_not_in_set_p.
4000 * ira.c (setup_reg_renumber): Use
4001 ira_hard_reg_set_intersection_p instead of
4002 ira_hard_reg_not_in_set_p.
4003 (setup_allocno_assignment_flags, calculate_allocation_cost): Use
4004 ira_hard_reg_in_set_p instead of ira_hard_reg_not_in_set_p.
4006 * ira-costs.c (ira_tune_allocno_costs): Use
4007 ira_hard_reg_set_intersection_p instead of
4008 ira_hard_reg_not_in_set_p.
4010 2011-08-18 H.J. Lu <hongjiu.lu@intel.com>
4011 Igor Zamyatin <igor.zamyatin@intel.com>
4013 * hwint.h (HOST_WIDE_INT_1): New.
4015 * opt-functions.awk (switch_bit_fields): Initialize the
4016 host_wide_int field.
4017 (host_wide_int_var_name): New.
4018 (var_type_struct): Check and return HOST_WIDE_INT.
4020 * opt-read.awk: Handle HOST_WIDE_INT for "Variable".
4022 * optc-save-gen.awk: Support HOST_WIDE_INT on var_target_other.
4024 * opth-gen.awk: Use HOST_WIDE_INT_1 on HOST_WIDE_INT. Properly
4025 check masks for HOST_WIDE_INT.
4027 * opts-common.c (set_option): Support HOST_WIDE_INT flag_var.
4028 (option_enabled): Likewise.
4029 (get_option_state): Likewise.
4031 * opts.h (cl_option): Add cl_host_wide_int. Change var_value
4034 2011-08-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4035 Marc Glisse <marc.glisse@normalesup.org>
4037 PR libstdc++-v3/1773
4038 * target.def (decl_mangling_context): New C++ hook.
4039 * doc/tm.texi: Regenerate.
4040 * config/sol2-cxx.c, config/sol2-stubs.c: New files.
4041 * config/sol2-protos.h: Group by source file.
4042 (solaris_cxx_decl_mangling_context): Declare.
4043 * config/sol2.h (TARGET_CXX_DECL_MANGLING_CONTEXT): Define.
4044 * config/t-sol2 (sol2-cxx.o, sol2-stubs.o): New targets.
4046 * config.gcc (*-*-solaris2*): Add sol2-cxx.o to cxx_target_objs.
4047 Add sol2-stubs.o to extra_objs.
4049 2011-08-18 Jakub Jelinek <jakub@redhat.com>
4052 * stor-layout.c (update_alignment_for_field): Don't ICE on
4053 packed flexible array members if ms_bitfield_layout_p.
4056 * config/i386/i386.c (assign_386_stack_local): Call validize_mem
4057 on the result before returning it.
4060 * tree-vect-stmts.c (vect_finish_stmt_generation): If gsi_stmt (*gsi)
4061 is a debug stmt, use location of the first non-debug stmt after it.
4063 2011-08-18 Richard Sandiford <richard.sandiford@linaro.org>
4065 * config/arm/arm.c (arm_rtx_costs_1): Don't modify the costs of SET.
4066 (arm_size_rtx_costs): Likewise.
4068 2011-08-18 Richard Guenther <rguenther@suse.de>
4070 * tree.h (tree_int_cst_msb): Remove.
4071 * tree.c (tree_int_cst_msb): Likewise.
4072 (tree_int_cst_sign_bit): Move from ...
4073 * tree-ssa-loop-ivopts.c (tree_int_cst_sign_bit): ... here.
4075 2011-08-18 Richard Sandiford <richard.sandiford@linaro.org>
4077 * doc/tm.texi.in (TARGET_RTX_COSTS): Add an opno paramter.
4078 * doc/tm.texi: Regenerate.
4079 * target.def (rtx_costs): Add an opno parameter.
4080 * hooks.h (hook_bool_rtx_int_int_intp_bool_false): Replace with...
4081 (hook_bool_rtx_int_int_int_intp_bool_false): ...this.
4082 * hooks.c (hook_bool_rtx_int_int_intp_bool_false): Replace with...
4083 (hook_bool_rtx_int_int_int_intp_bool_false): ...this.
4084 * cse.c (COST_IN): Add an opno parameter.
4085 (notreg_cost): Likewise. Update call to rtx_cost.
4086 (COST, fold_rtx): Update accordingly.
4087 * dojump.c (prefer_and_bit_test): Update call to rtx_cost.
4088 * expmed.c (emit_store_flag): Likewise.
4089 * optabs.c (avoid_expensive_constant): Add an opno parameter.
4090 Update call to rtx_cost.
4091 (expand_binop_directly, expand_binop): Likewise.
4092 (expand_twoval_binop, prepare_cmp_insn): Likewise.
4093 * rtl.h (rtx_cost, get_full_rtx_cost): Add opno parameters.
4094 (set_src_cost, get_full_set_src_cost): Update accordingly.
4095 * rtlanal.c (rtx_cost): Add an opno parameter. Update call
4097 (get_full_rtx_cost): Add an opno paramter. Update calls to rtx_cost.
4098 (default_adress_cost): Update calls to rtx_cost.
4100 * config/arm/arm.c (arm_rtx_costs_1, arm_size_rtx_costs)
4101 (arm_slowmul_rtx_costs): Adjust calls to rtx_cost.
4102 (arm_rtx_costs): Add an opno parameter.
4103 * config/alpha/alpha.c (alpha_rtx_costs): Add an opno parameter and
4104 adjust any recursive rtx-cost calls.
4105 * config/avr/avr.c (avr_operand_rtx_cost, avr_rtx_costs): Likewise.
4106 * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
4107 * config/c6x/c6x.c (c6x_rtx_costs): Likewise.
4108 * config/cris/cris.c (cris_rtx_costs): Likewise.
4109 * config/frv/frv.c (frv_rtx_costs): Likewise.
4110 * config/h8300/h8300.c (h8300_rtx_costs): Likewise.
4111 * config/i386/i386.c (ix86_rtx_costs): Likewise.
4112 * config/ia64/ia64.c (ia64_rtx_costs): Likewise.
4113 * config/iq2000/iq2000.c (iq2000_rtx_costs): Likewise.
4114 * config/lm32/lm32.c (lm32_rtx_costs): Likewise.
4115 * config/m32c/m32c.c (m32c_rtx_costs): Likewise.
4116 * config/m32r/m32r.c (m32r_rtx_costs): Likewise.
4117 * config/m68k/m68k.c (m68k_rtx_costs): Likewise.
4118 * config/mcore/mcore.c (mcore_rtx_costs): Likewise.
4119 * config/mep/mep.c (mep_rtx_cost): Likewise.
4120 * config/microblaze/microblaze.c (microblaze_rtx_costs): Likewise.
4121 * config/mips/mips.c (mips_binary_cost): Update call to rtx_cost.
4122 (mips_zero_extend_cost): Add an opno parameter.
4123 * config/mmix/mmix.c (mmix_rtx_costs): Likewise.
4124 * config/mn10300/mn10300.c (mn10300_address_cost): Update call
4126 (mn10300_rtx_costs): Add an opno parameter and adjust any recursive
4128 * config/pa/pa.c (hppa_rtx_costs): Likewise.
4129 * config/pdp11/pdp11.c (pdp11_rtx_costs): Likewise.
4130 * config/picochip/picochip.c (picochip_rtx_costs): Likewise.
4131 * config/rs6000/rs6000.c (rs6000_rtx_costs): Likewise.
4132 (rs6000_debug_rtx_costs): Likewise.
4133 * config/s390/s390.c (s390_rtx_costs): Likewise.
4134 * config/score/score-protos.h (score_rtx_costs): Likewise.
4135 * config/score/score.c (score_rtx_costs): Likewise.
4136 * config/sh/sh.c (andcosts): Update call to rtx_cost.
4137 (sh_rtx_costs): Add an opno parameter.
4138 * config/sparc/sparc.c (sparc_rtx_costs): Likewise.
4139 * config/spu/spu.c (spu_rtx_costs): Likewise.
4140 * config/stormy16/stormy16.c (xstormy16_rtx_costs): Likewise.
4141 * config/v850/v850.c (v850_rtx_costs): Likewise.
4142 * config/vax/vax.c (vax_rtx_costs): Likewise.
4143 * config/xtensa/xtensa.c (xtensa_rtx_costs): Likewise.
4145 2011-08-18 Richard Sandiford <richard.sandiford@linaro.org>
4147 * rtl.h (set_src_cost, get_full_set_src_cost): New functions.
4148 * auto-inc-dec.c (attempt_change): Use set_src_cost instead of
4150 * calls.c (precompute_register_parameters): Likewise.
4151 * combine.c (expand_compound_operation, make_extraction): Likewise.
4152 (force_to_mode, distribute_and_simplify_rtx): Likewise.
4153 * dse.c (find_shift_sequence): Likewise.
4154 * expmed.c (init_expmed, expand_mult, expand_smod_pow2): Likewise.
4155 * expr.c (compress_float_constant): Likewise.
4156 * fwprop.c (should_replace_address, try_fwprop_subst): Likewise.
4157 * gcse.c (want_to_gcse_p): Likewise.
4158 * ifcvt.c (noce_try_sign_mask): Likewise.
4159 * loop-doloop.c (doloop_optimize): Likewise.
4160 * loop-invariant.c (create_new_invariant): Likewise.
4161 * optabs.c (avoid_expensive_constant): Likewise.
4162 * postreload.c (reload_cse_simplify_set, reload_cse_simplify_operands)
4163 (try_replace_in_use, reload_cse_move2add): Likewise.
4164 * reload1.c (calculate_elim_costs_all_insns): Likewise.
4165 (note_reg_elim_costly): Likewise.
4166 * rtlanal.c (insn_rtx_cost): Likewise.
4167 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
4168 * stmt.c (lshift_cheap_p): Likewise.
4169 * tree-ssa-loop-ivopts.c (seq_cost, computation_cost): Likewise.
4170 * config/avr/avr.c (final_prescan_insn): Likewise.
4171 * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
4172 * config/mips/mips.c (mips_binary_cost, mips_rtx_costs): Likewise.
4174 2011-08-18 Richard Sandiford <richard.sandiford@linaro.org>
4176 * rtl.h (set_rtx_cost, get_full_set_rtx_cost): New functions.
4177 * auto-inc-dec.c (attempt_change): Use set_rtx_cost.
4178 * cfgloopanal.c (seq_cost): Likewise.
4179 * loop-invariant.c (create_new_invariant): Likewise.
4180 * postreload.c (move2add_use_add2_insn, move2add_use_add3_insn)
4181 (reload_cse_move2add): Use get_full_set_rtx_cost.
4183 2011-08-18 Richard Guenther <rguenther@suse.de>
4185 * expr.c (get_inner_reference): Fix typo in last change.
4187 2011-08-18 Paolo Carlini <paolo.carlini@oracle.com>
4188 Joseph Myers <joseph@codesourcery.com>
4190 PR tree-optimization/49963
4191 * hwint.c (absu_hwi): Define.
4192 * hwint.h (absu_hwi): Declare.
4193 * fold-const.c (fold_plusminus_mult_expr): Use absu_hwi instead
4195 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Likewise.
4196 * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Likewise.
4198 2011-08-18 Richard Guenther <rguenther@suse.de>
4200 * expr.c (get_inner_reference): Sign-extend the constant
4201 twos-complement offset before doing arbitrary precision
4203 * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Likewise.
4204 (get_constraint_for_1): Pass the offset of a MEM_REF unchanged
4205 to get_constraint_for_ptr_offset.
4207 2011-08-17 Kaz Kojima <kkojima@gcc.gnu.org>
4210 * config/sh/sh.c (sh_output_mi_thunk): Don't call dbr_schedule.
4212 2011-08-17 Richard Guenther <rguenther@suse.de>
4214 * tree.h (convert_to_ptrofftype_loc): New function.
4215 (convert_to_ptrofftype): Define.
4216 * builtins.c (expand_builtin_bzero): Use size_type_node.
4217 (fold_builtin_bzero): Likewise.
4218 (std_gimplify_va_arg_expr): Build the BIT_AND_EXPR on the pointer.
4219 * c-typeck.c (build_unary_op): Use convert_to_ptrofftype_loc.
4220 * cgraphunit.c (thunk_adjust): Use fold_build_pointer_plus_loc.
4221 (cgraph_redirect_edge_call_stmt_to_callee): Use size_int.
4222 * expr.c (expand_expr_addr_expr_1): Use fold_build_pointer_plus.
4223 * fold-const.c (build_range_check): Negate using the original type.
4224 (fold_unary_loc): Use fold_build_pointer_plus_loc.
4225 * gimple-fold.c (gimple_adjust_this_by_delta): Use
4226 convert_to_ptrofftype.
4227 * gimplify.c (gimplify_self_mod_expr): Likewise.
4228 * graphite-clast-to-gimple.c (clast_to_gcc_expression): Likewise.
4229 (graphite_create_new_loop_guard): Likewise.
4230 * graphite-sese-to-poly.c (my_long_long): Remove.
4231 (scop_ivs_can_be_represented): Adjust.
4232 * tree-cfg.c (verify_gimple_assign_unary): Use ptrofftype_p.
4233 * tree-chrec.c (chrec_fold_plus_1): Use fold_build_pointer_plus.
4234 * tree-loop-distribution.c (build_size_arg_loc): Use
4236 (generate_memset_zero): Simplify.
4237 * tree-mudflap.c: Use fold_convert, not convert.
4238 * tree-predcom.c (suitable_reference_p): Expand DR_OFFSET in
4240 (determine_offset): Likewise for DR_STEP.
4241 (valid_initializer_p): Likewise.
4242 * tree-profile.c (prepare_instrumented_value): Convert the pointer
4243 to an integer type of same size.
4244 * tree-scalar-evolution.c (interpret_rhs_expr): Do not refer
4245 to sizetype without need.
4246 * tree-ssa-address.c (tree_mem_ref_addr): Likewise.
4247 * tree-ssa-loop-ivopts.c (find_bivs): Use convert_to_ptrofftype.
4248 * tree-ssa-loop-manip.c (create_iv): Likewise.
4249 (determine_exit_conditions): Adjust comment.
4250 * tree-ssa-pre.c (create_expression_by_pieces): Use
4251 convert_to_ptrofftype.
4252 * tree-ssa-structalias.c (get_constraint_for_1): Likewise.
4253 * varasm.c (array_size_for_constructor): Compute using double_ints.
4255 2011-08-16 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4257 * config/spu/spu.c (spu_emit_branch_or_set): Avoid reverse tests
4258 when generating an integer result where possible. Short-cut
4259 comparison against 0 also for QImode.
4261 2011-08-16 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4263 * config/spu/spu.h (LEGITIMIZE_RELOAD_ADDRESS): New macro.
4264 * config/spu/spu-protos.h (spu_legitimize_reload_address): Add
4266 * config/spu/spu.c (spu_legitimize_reload_address): New function.
4267 (spu_legitimate_address_p): Do not check displacement if the base
4268 is an eliminable stack register.
4270 2011-08-16 Anatoly Sokolov <aesok@post.ru>
4272 * config/m32c/m32c.h (PREFERRED_RELOAD_CLASS,
4273 PREFERRED_OUTPUT_RELOAD_CLASS): Remove macro.
4274 * config/m32c/m32c-protos.h (m32c_preferred_reload_class,
4275 m32c_preferred_output_reload_class): Remove.
4276 * config/m32c/m32c.c (m32c_preferred_reload_class): Make static.
4277 Change rclass argument and return types to reg_class_t. Use
4278 reg_class_subset_p instead of class_sizes.
4279 (m32c_preferred_output_reload_class): Make static. Change rclass
4280 argument and return types to reg_class_t.
4281 (TARGET_PREFERRED_RELOAD_CLASS,
4282 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
4284 2011-08-16 Kai Tietz <ktietz@redhat.com>
4286 * config/i386/mingw32.h (GOMP_SELF_SPEC): Add -pthread option.
4288 2011-08-16 Richard GUenther <rguenther@suse.de>
4290 PR tree-optimization/50082
4291 * tree-ssa-forwprop.c (combine_cond_expr_cond): Handle overflow
4292 warnings here, instead of ...
4293 (ssa_forward_propagate_and_combine): ... here.
4294 (forward_propagate_into_comparison_1): Adjust.
4295 (forward_propagate_into_comparison): Likewise.
4296 (forward_propagate_into_gimple_cond): Likewise.
4297 (forward_propagate_into_cond): Likewise.
4299 2011-08-16 Andreas Schwab <schwab@redhat.com>
4301 * ggc.h (ggc_alloc_rtvec_sized): Use ggc_alloc_zone_rtvec_def
4302 instead of ggc_alloc_zone_vec_rtvec_def.
4304 2011-08-16 Richard Guenther <rguenther@suse.de>
4306 * tree.h (ptrofftype_p): New helper function.
4307 * tree-cfg.c (verify_expr): Use ptrofftype_p for POINTER_PLUS_EXPR
4308 offset verification.
4309 (verify_gimple_assign_binary): Likewise.
4310 * tree.c (build2_stat): Likewise.
4311 * tree-chrec.c (chrec_fold_plus_poly_poly): Likewise.
4312 (reset_evolution_in_loop): Likewise.
4313 * tree-chrec.h (build_polynomial_chrec): Likewise.
4315 2011-08-16 Liang Wang <lwang1@marvell.com>
4317 * ggc.h (ggc_alloc_rtvec_sized): Change arguments of
4318 ggc_alloc_zone_vec_rtvec_def.
4320 2011-08-16 Richard Guenther <rguenther@suse.de>
4322 * tree-vrp.c (extract_range_from_multiplicative_op_1): New
4323 helper factored out from ...
4324 (extract_range_from_binary_expr_1): ... here. Re-structure
4325 to not glob handling too different tree codes.
4327 2011-08-15 Richard Henderson <rth@redhat.com>
4330 * explow.c (allocate_dynamic_stack_space): Move suppress_reg_args_size
4331 setting out to include allocate_stack named pattern as well.
4332 * builtins.c (expand_builtin_apply): Add ARG_SIZE 0 note.
4333 * stmt.c (expand_stack_restore): Likewise.
4335 2011-08-15 Richard Guenther <rguenther@suse.de>
4338 * fold-const.c (maybe_canonicalize_comparison_1): Properly
4339 convert the modified operand to the other operand type.
4340 (fold_comparison): Call maybe_canonicalize_comparison_1 with
4341 useless conversions stripped from comparison operands.
4343 2011-08-15 Richard Guenther <rguenther@suse.de>
4345 * tree-vrp.c (value_range_nonnegative_p): Fix anti-range case.
4346 (extract_range_from_unary_expr_1): Restructure.
4348 2011-08-15 Richard Guenther <rguenther@suse.de>
4350 PR tree-optimization/50058
4351 * tree-ssa-sccvn.c (vn_reference_lookup_3): Relax aggregate
4354 2011-08-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
4357 * config/arm/arm.c (output_move_double): Add 2 parameters
4358 to count the number of insns emitted and whether to emit or not.
4359 Use the flag to decide when to emit and count number of instructions
4360 that will be emitted.
4361 Handle case where output_move_double might be called for calculating
4362 lengths with an invalid constant.
4363 (arm_count_output_move_double_insns): Define.
4364 * config/arm/arm-protos.h (arm_count_output_move_double_insns): Declare.
4365 (output_move_double): Adjust prototype.
4366 * config/arm/vfp.md ("*movdi_vfp"): Adjust call to
4368 ("*movdi_vfp_cortexa8"): Likewise and add attribute
4370 * config/arm/arm.md ("*arm_movdi"): Adjust call to output_move_double.
4371 ("*movdf_soft_insn"): Likewise.
4372 * config/arm/cirrus.md ("*cirrus_arm_movdi"): Likewise.
4373 ("*cirrus_thumb2_movdi"): Likewise.
4374 ("*thumb2_cirrus_movdf_hard_insn"): Likewise.
4375 ("*cirrus_movdf_hard_insn"): Likewise.
4376 * config/arm/neon.md (*neon_mov<mode> VD): Likewise.
4377 * config/arm/iwmmxt.md ("*iwmmxt_arm_movdi"): Likewise.
4378 ("mov<mode>_internal VMMX"): Likewise.
4379 * config/arm/fpa.md (*movdf_fpa, *thumb2_movdf_fpa): Likewise.
4381 2011-08-14 Uros Bizjak <ubizjak@gmail.com>
4383 * config/i386/i386.c (ix86_expand_round_sse4): New function.
4384 * config/i386/i386-protos.h (ix86_expand_round_sse4): New prototype.
4385 * config/i386/i386.md (round<mode>2): Use ix86_expand_round_sse4
4388 (rint<mode>2): Simplify TARGET_ROUND check.
4389 (floor<mode>2): Ditto.
4390 (ceil<mode>2): Ditto.
4391 (btrunc<mode>2): Ditto.
4393 2011-08-14 Anatoly Sokolov <aesok@post.ru>
4395 * config/mmix/mmix.c (TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Redefine
4396 as mmix_preferred_output_reload_class.
4398 2011-08-14 Georg-Johann Lay <avr@gjlay.de>
4401 * config/avr/avr.md (UNSPEC_IDENTITY): New c_enum.
4402 (branch_unspec): New insn.
4403 (branch): Beauty farm.
4404 * config/avr/avr.c (compare_condition): Use JUMP_P. Test SET_SRC
4406 (avr_compare_pattern, avr_reorg_remove_redundant_compare):
4407 New static functions.
4408 (avr_reorg): Use them. Use next_real_insn instead of NEXT_INSN.
4409 Use CONST_INT_P. Beauty.
4411 2011-08-12 Richard Henderson <rth@redhat.com>
4414 * sched-init.h (struct deps_desc): Add sched_before_next_jump.
4415 * sched-deps.c (init_deps): Clear it.
4416 (deps_analyze_insn): Consume it.
4417 (sched_analyze_insn): Fill it.
4419 2011-08-12 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
4422 * config/arm/arm.h (CASE_VECTOR_SHORTEN_MODE): Fix distance
4423 for tbh instructions.
4425 2011-08-12 Diego Novillo <dnovillo@google.com>
4427 * data-streamer.h (streamer_write_zero): Rename from output_zero.
4428 (streamer_write_uhwi): Rename from lto_output_uleb128.
4429 (streamer_write_hwi): Rename from output_sleb128.
4430 (streamer_write_string): Rename from lto_output_string.
4431 (streamer_string_index): Rename from lto_string_index.
4432 (streamer_write_string_with_length): Rename from
4433 lto_output_string_with_length.
4434 (streamer_write_uhwi_stream): Rename from lto_output_uleb128_stream.
4435 (streamer_write_hwi_stream): Rename from lto_output_sleb128_stream.
4436 (streamer_read_string): Rename from lto_input_string.
4437 (streamer_read_indexed_string): Rename from input_string_internal.
4438 (streamer_read_uhwi): Rename from lto_input_uleb128.
4439 (streamer_read_hwi): Rename from lto_input_sleb128.
4440 (streamer_write_hwi_in_range): Rename from lto_output_int_in_range.
4441 (streamer_read_hwi_in_range): Rename from lto_input_int_in_range.
4442 (streamer_write_enum): Rename from lto_output_enum.
4443 (streamer_read_enum): Rename from lto_input_enum.
4444 (streamer_write_record_start): Rename from output_record_start.
4445 (streamer_read_record_start): Rename from input_record_start.
4446 (streamer_write_bitpack): Rename from lto_output_bitpack.
4447 (streamer_read_bitpack): Rename from lto_input_bitpack.
4448 (streamer_write_char_stream): Rename from lto_output_1_stream.
4449 (streamer_read_uchar): Rename from lto_input_1_unsigned.
4450 * tree-streamer.h (streamer_cache_d): Rename from lto_streamer_cache_d.
4451 (streamer_handle_as_builtin_p): Rename from lto_stream_as_builtin_p.
4452 (streamer_read_string_cst): Rename from input_string_cst.
4453 (streamer_read_chain): Rename from lto_input_chain.
4454 (streamer_alloc_tree): Rename from lto_materialize_tree.
4455 (streamer_read_tree_body): Rename from lto_input_tree_pointers.
4456 (streamer_get_pickled_tree): Rename from lto_get_pickled_tree.
4457 (streamer_get_builtin_tree): Rename from lto_get_builtin_tree.
4458 (streamer_read_integer_cst): Rename from lto_input_integer_cst.
4459 (streamer_read_tree_bitfields): Rename from tree_read_bitfields.
4460 (streamer_write_chain): Rename from lto_output_chain.
4461 (streamer_write_tree_header): Rename from lto_output_tree_header.
4462 (streamer_pack_tree_bitfields): Rename from pack_value_fields.
4463 (streamer_write_tree_body): Rename from lto_output_tree_pointers.
4464 (streamer_write_integer_cst): Rename from lto_output_integer_cst.
4465 (streamer_write_builtin): Rename from lto_output_builtin_tree.
4466 (streamer_check_handled_ts_structures): Rename from
4467 check_handled_ts_structures.
4468 (streamer_tree_cache_insert): Rename from lto_streamer_cache_insert.
4469 (streamer_tree_cache_insert_at): Rename from
4470 lto_streamer_cache_insert_at.
4471 (streamer_tree_cache_append): Rename from lto_streamer_cache_append.
4472 (streamer_tree_cache_lookup): Rename from lto_streamer_cache_lookup.
4473 (streamer_tree_cache_get): Rename from lto_streamer_cache_get.
4474 (streamer_tree_cache_create): Rename from lto_streamer_cache_create.
4475 (streamer_tree_cache_delete): Rename from lto_streamer_cache_delete.
4476 * tree-streamer-out.c (write_string_cst): Rename from output_string_cst.
4477 (write_identifier): Rename from output_identifier.
4478 (write_ts_common_tree_pointers): Rename from
4479 lto_output_ts_common_tree_pointers.
4480 (write_ts_vector_tree_pointers): Rename from
4481 lto_output_ts_vector_tree_pointers.
4482 (write_ts_complex_tree_pointers): Rename from
4483 lto_output_ts_complex_tree_pointers.
4484 (write_ts_decl_minimal_tree_pointers): Rename from
4485 lto_output_ts_decl_minimal_tree_pointers.
4486 (write_ts_decl_common_tree_pointers): Rename from
4487 lto_output_ts_decl_common_tree_pointers.
4488 (write_ts_decl_non_common_tree_pointers): Rename from
4489 lto_output_ts_decl_non_common_tree_pointers.
4490 (write_ts_decl_with_vis_tree_pointers): Rename from
4491 lto_output_ts_decl_with_vis_tree_pointers.
4492 (write_ts_field_decl_tree_pointers): Rename from
4493 lto_output_ts_field_decl_tree_pointers.
4494 (write_ts_function_decl_tree_pointers): Rename from
4495 lto_output_ts_function_decl_tree_pointers.
4496 (write_ts_type_common_tree_pointers): Rename from
4497 lto_output_ts_type_common_tree_pointers.
4498 (write_ts_type_non_common_tree_pointers): Rename from
4499 lto_output_ts_type_non_common_tree_pointers.
4500 (write_ts_list_tree_pointers): Rename from
4501 lto_output_ts_list_tree_pointers.
4502 (write_ts_vec_tree_pointers): Rename from
4503 lto_output_ts_vec_tree_pointers.
4504 (write_ts_exp_tree_pointers): Rename from
4505 lto_output_ts_exp_tree_pointers.
4506 (write_ts_block_tree_pointers): Rename from
4507 lto_output_ts_block_tree_pointers.
4508 (write_ts_binfo_tree_pointers): Rename from
4509 lto_output_ts_binfo_tree_pointers.
4510 (write_ts_constructor_tree_pointers): Rename from
4511 lto_output_ts_constructor_tree_pointers.
4512 (write_ts_target_option): Rename from lto_output_ts_target_option.
4513 (write_ts_translation_unit_decl_tree_pointers): Rename from
4514 lto_output_ts_translation_unit_decl_tree_pointers.
4515 * tree-streamer.c (streamer_tree_cache_add_to_node_array):
4516 Rename from lto_streamer_cache_add_to_node_array.
4517 (streamer_tree_cache_insert_1): Rename from lto_streamer_cache_insert_1.
4518 (record_common_node): Rename from lto_record_common_node.
4520 * streamer-hooks.h (bitpack_d, lto_streamer_cache_d): Remove forward
4522 * data-streamer-in.c (lto_input_widest_uint_uleb128): Remove unused
4524 * data-streamer-out.c (lto_output_widest_uint_uleb128_stream): Remove
4526 * Makefile.in (lto-section-out.o): Add dependency on DATA_STREAMER_H.
4527 (ipa-reference.o): Likewise.
4528 * lto-section-out.c: Include data-streamer.h.
4529 * ipa-reference.c: Include data-streamer.h.
4531 2011-08-12 Nick Clifton <nickc@redhat.com>
4533 * builtins.c (expand_builtin_memcmp): Do not use cmpstrnsi pattern.
4534 * doc/md.texi (cmpstrn): Note that the comparison stops if both
4535 fetched bytes are zero.
4537 (cmpmem): Note that the comparison does not stop if both of the
4538 fetched bytes are zero.
4540 2011-08-12 Uros Bizjak <ubizjak@gmail.com>
4542 * builtins.def (BUILT_IN_ICEIL{,F,L}, BUILT_IN_IFLOOR{,F,L}
4543 BUILT_IN_IRINT{,F,L}, BUILT_IN_IROUND{,F,L}: New builtin definitions.
4544 * convert.c (convert_to_integer): Convert to BUILT_IN_ICEIL,
4545 BUILT_IN_IFLOOR, BUILT_IN_IRINT or BUILT_INT_IROUND when converting
4546 to integer_type_node.
4547 * fold-const.c (tree_call_nonnegative_warnv_p): Handle BUILT_IN_ICEIL,
4548 BUILT_IN_IFLOOR, BUILT_IN_IRINT and BUILT_INT_IROUND.
4549 * builtins.c (expand_builtin_in): Ditto.
4550 (mathfn_built_in_1): Ditto.
4551 (expand_builtin_int_roundingfn): Handle BUILT_IN_ICEIL and
4553 (expand_builtin_int_roundingfn_2): Handle BUILT_IN_IRINT and
4555 (fold_fixed_mathfn): Canonicalize BUILT_IN_ICEIL, BUILTIN_IN_IFLOOR
4556 BUILT_IN_IRINT and BUILT_IN_IROUND to BUILT_IN_LCEIL,
4557 BUILTIN_IN_LFLOOR, BUILT_IN_LRINT and BUILT_IN_LROUND on ILP32 targets.
4559 2011-08-12 Richard Guenther <rguenther@suse.de>
4561 * tree-vrp.c (extract_range_from_unary_expr_1): Implement -X as 0 - X.
4563 2011-08-12 Romain Geissler <romain.geissler@gmail.com>
4565 * Makefile.in (PLUGIN_HEADERS): Add C_TREE_H.
4567 2011-08-12 Richard Sandiford <rdsandiford@googlemail.com>
4569 * config/arm/arm.c (get_label_padding): New function.
4570 (create_fix_barrier, arm_reorg): Use it.
4572 2011-08-11 Uros Bizjak <ubizjak@gmail.com>
4575 * config/i386/i386.md (*lea_5_zext): New.
4576 (*lea_6_zext): Ditto.
4577 * config/i386/predicates.md (const_32bit_mask): New predicate.
4578 (lea_address_operand): Reject AND.
4579 * config/i386/i386.c (ix86_decompose_address): Allow Dimode AND with
4580 const_32bit_mask immediate.
4581 (ix86_print_operand_address): Handle AND.
4582 (memory_address_length): Ditto.
4584 2011-08-11 Romain Geissler <romain.geissler@gmail.com>
4585 Brian Hackett <bhackett1024@gmail.com>
4587 * plugin.def: Add event for finish_decl.
4588 * plugin.c (register_callback, invoke_plugin_callbacks): Same.
4589 * c-decl.c (finish_decl): Invoke callbacks on above event.
4590 * doc/plugins.texi: Document above event.
4592 2011-08-11 Richard Guenther <rguenther@suse.de>
4594 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid redundant
4595 lookups, make looking through aggregate copies stronger.
4597 2011-08-11 Richard Henderson <rth@redhat.com>
4600 * expr.c (fixup_args_size_notes): Accept and ignore normal calls.
4602 2011-08-11 Richard Guenther <rguenther@suse.de>
4604 * lto-cgraph.c (input_node): Use DECL_BUILT_IN.
4605 * tree-vrp.c (stmt_interesting_for_vrp): Likewise.
4606 (vrp_visit_stmt): Likewise.
4608 2011-08-11 Richard Guenther <rguenther@suse.de>
4611 * gimplify.c (gimplify_modify_expr_complex_part): Mark the
4612 load of the other piece with TREE_NO_WARNING.
4613 * tree-flow.h (warn_uninit): Adjust prototype.
4614 * tree-ssa.c (warn_uninit): Take uninitialized SSA name,
4615 the base variable and the expression that is used separately.
4616 Properly query all TREE_NO_WARNING flags.
4617 (struct walk_data): Remove.
4618 (warn_uninitialized_var): Likewise.
4619 (warn_uninitialized_vars): Do not walk gimple pieces but simply
4620 look at all SSA uses of the statement. Handle unused memory
4622 * tree-ssa-uninit.c (warn_uninitialized_phi): Adjust.
4624 2011-08-11 Kazuhiro Inaoka <kazuhiro.inaoka.ud@renesas.com>
4626 * config/rx/rx.md (movsicc): Allow register to register transfers.
4627 (*movsicc): Likewise.
4628 (*stcc): Restrict this pattern to EQ and NE compares.
4629 (*stcc_reg): New pattern. Works for any comparison but only for
4632 2011-08-11 Diego Novillo <dnovillo@google.com>
4634 * tree-streamer-out.c (lto_output_ts_decl_with_vis_tree_pointers):
4635 Call stream_write_tree instead of output_record_start.
4636 (lto_output_ts_binfo_tree_pointers): Likewise.
4638 * streamer-hooks.h (stream_write_tree): Move from tree-streamer.h.
4639 Convert it to a macro.
4640 (stream_read_tree): Likewise.
4642 * lto-streamer.h (lto_stream_as_builtin_p): Move ...
4643 * tree-streamer.h (lto_stream_as_builtin_p): ... here.
4645 * lto-streamer-in.c (lto_read_tree): Call lto_streamer_cache_append
4646 and tree_read_bitfields.
4647 * lto-streamer-out.c (lto_is_streamable): Move from lto-streamer.c
4648 (lto_write_tree): Call it.
4649 * lto-streamer.c (lto_is_streamable): Move to lto-streamer-out.c
4650 * streamer-hooks.h (struct streamer_hooks): Remove fields
4651 name, is_streamable and alloc_tree. Update all users.
4652 * tree-streamer-in.c (tree_read_bitfields): Factor out of ...
4653 (lto_materialize_tree): ... here.
4654 Handle CALL_EXPR codes.
4655 Remove call to lto_streamer_cache_append.
4656 * tree-streamer-out.c (lto_output_tree_header): Handle CALL_EXPR nodes.
4657 * tree-streamer.h (tree_read_bitfields): Declare.
4659 * Makefile.in (TREE_STREAMER_H): Add STREAMER_HOOKS_H.
4660 (gimple-streamer-in.o): Add dependency on TREE_STREAMER_H.
4661 * tree-streamer.h (stream_read_tree): New. Replace all calls
4662 to lto_input_tree with it.
4663 (stream_write_tree): New. Replace all calls to lto_output_tree,
4664 lto_output_tree_ref and lto_output_tree_or_ref with it.
4665 * lto-streamer-in.c (lto_read_tree): Inline code from
4666 lto_streamer_read_tree.
4667 (lto_input_tree): Move from tree-streamer-in.c.
4668 * lto-streamer-out.c (lto_output_tree_ref): Make static.
4669 Remove handling of NULL values for EXPR.
4670 Do not handle EXPRs that are not indexable.
4671 (lto_write_tree): Move from tree-streamer-out.c.
4672 Inline lto_streamer_write_tree.
4673 (lto_output_tree): Move from tree-streamer-out.c.
4674 If REF_P is true and EXPR is indexable, call lto_output_tree_ref.
4675 * lto-streamer.c (lto_record_common_node): Move to tree-streamer.c.
4676 (lto_preload_common_nodes): Likewise.
4677 Remove assertions and adjustments for nodes
4678 main_identifier_node, ptrdiff_type_node and fileptr_type_node.
4679 (lto_streamer_hooks_init): Set streamer_hooks.write_tree to
4680 lto_output_tree and streamer_hooks.read_tree to lto_input_tree.
4681 * lto-streamer.h (lto_input_tree): Declare.
4682 (lto_output_tree_ref): Remove.
4683 * streamer-hooks.h (struct streamer_hooks): Remove fields
4684 preload_common_nodes, indexable_with_decls_p,
4685 pack_value_fields, unpack_value_fields and output_tree_header.
4687 * tree-streamer-in.c (lto_materialize_tree): Make extern.
4688 (lto_input_tree_pointers): Likewise.
4689 (lto_read_tree): Move to lto-streamer-in.c.
4690 (lto_input_integer_cst): Make extern.
4691 (lto_get_pickled_tree): Likewise.
4692 (lto_get_builtin_tree): Likewise.
4693 (lto_input_tree): Move to lto-streamer-in.c.
4694 * tree-streamer-out.c (pack_value_fields): Make extern.
4695 (lto_output_tree_or_ref): Remove. Replace all callers with
4696 calls to stream_write_tree.
4697 (lto_output_builtin_tree): Make extern.
4698 (lto_streamer_write_tree): Inline into lto_write_tree.
4699 (lto_output_tree_pointers): Make extern.
4700 (lto_output_tree_header): Likewise.
4701 (lto_output_integer_cst): Likewise.
4702 (lto_write_tree): Move to lto-streamer-out.c.
4703 (lto_output_tree): Likewise.
4704 * tree-streamer.c (lto_record_common_node): Move from lto-streamer.c
4705 (preload_common_nodes): Likewise.
4706 (lto_streamer_cache_create): Call it.
4707 * tree-streamer.h: Include streamer-hooks.h.
4708 (stream_write_tree): New.
4709 (stream_read_tree): New.
4710 (lto_input_tree): Remove.
4711 (lto_materialize_tree): Declare.
4712 (lto_input_tree_pointers): Declare.
4713 (lto_get_pickled_tree): Declare.
4714 (lto_get_builtin_tree): Declare.
4715 (lto_input_integer_cst): Declare.
4716 (lto_output_tree_header): Declare.
4717 (pack_value_fields): Declare.
4718 (lto_output_tree_pointers): Declare.
4719 (lto_output_integer_cst): Declare.
4720 (lto_output_builtin_tree): Declare.
4722 2011-08-11 Sergey Grechanik <mouseentity@ispras.ru>
4724 * sel-sched-ir.c (has_dependence_note_reg_use): Call ds_full_merge
4725 only if producer writes to the register given by regno.
4727 2011-08-11 Sergey Grechanik <mouseentity@ispras.ru>
4728 Alexander Monakov <amonakov@ispras.ru>
4730 * sched-deps.c (sched_get_condition_with_rev): Rename to ...
4731 (sched_get_condition_with_rev_uncached): ... this. Factor out
4732 condition caching logic into ...
4733 (sched_get_condition_with_rev): ... this. Reimplement. Do not
4734 attempt to use cache for instructions with zero luid.
4735 (sched_analyze_insn): Use INSN_CACHED_COND instead of INSN_COND.
4736 * sched-int.h (INSN_COND): Rename to INSN_CACHED_COND.
4738 2011-08-11 Sergey Grechanik <mouseentity@ispras.ru>
4740 * sel-sched-ir.c (get_seqno_of_a_pred): Rename to
4741 get_seqno_for_a_jump. Update the caller.
4742 (get_seqno_by_succs): New. Use it ...
4743 (get_seqno_for_a_jump): ... here to find a seqno if looking at
4744 predecessors was not sufficient.
4745 (get_seqno_by_preds): Include head in iteration range, exclude insn.
4747 2011-08-11 Dmitry Melnik <dm@ispras.ru>
4749 * sel-sched-ir.c (invalidate_av_set): Remove the assert.
4751 2011-08-11 Sergey Grechanik <mouseentity@ispras.ru>
4753 * sel-sched-ir.h (register_unavailable_p): Declare.
4754 * sel-sched-ir.c (register_unavailable_p): New. Use it...
4755 (set_unavailable_target_for_expr): ... here to properly test
4756 availability of a register.
4757 (speculate_expr): Ditto.
4758 * sel-sched.c (substitute_reg_in_expr): Ditto.
4759 (av_set_could_be_blocked_by_bookkeeping_p): Ditto.
4761 2011-08-11 Sergey Grechanik <mouseentity@ispras.ru>
4763 * sel-sched.c (verify_target_availability): Fix usage of
4766 2011-08-11 Dmitry Melnik <dm@ispras.ru>
4768 * sel-sched-ir.c (init_global_and_expr_for_insn): Forbid copying of
4769 recognized by cannot_copy_insn_p hook and volatile instructions.
4771 2011-08-11 Dmitry Melnik <dm@ispras.ru>
4773 * sel-sched-ir.c (merge_expr_data): Take maximum spec.
4775 2011-08-11 Richard Sandiford <richard.sandiford@linaro.org>
4777 * doc/md.texi (define_bypass): Say that the instruction names can
4778 be filename-style globs.
4779 * Makefile.in (FNMATCH_H): Define.
4780 (build/genattrtab.o, build/genautomata.o): Depend on $(FNMATCH_H).
4781 * genattrtab.c: Include fnmatch.h.
4782 (bypass_list): Change field name from "insn" to "pattern".
4783 (gen_bypass_1): Update accordingly.
4784 (process_bypasses): Use fnmatch to check for matches between
4785 insn reservations and define_bypasses.
4786 * genautomata.c: Include fnmatch.h.
4787 (bypass_decl): Rename in_insn_name and out_insn_name to in_pattern
4788 and out_pattern respectively.
4789 (gen_bypass, insert_bypass): Update accordingly.
4790 (for_each_matching_insn, process_bypass_2, process_bypass_1)
4791 (process_bypass): New functions.
4792 (process_decls): Use process_bypass. Update after field name changes.
4794 2011-08-11 Georg-Johann Lay <avr@gjlay.de>
4797 * config/avr/avr.md (smulqi3_highpart): New insn.
4798 (umulqi3_highpart): New insn.
4799 (*subqi3.ashiftrt7): New insn.
4800 (smulhi3_highpart): New expander.
4801 (umulhi3_highpart): Nex expander.
4802 (*smulhi3_highpart_call): New insn.
4803 (*umulhi3_highpart_call): New insn.
4804 (extend_u): New code attribute.
4805 (extend_prefix): Rename code attribute to extend_su.
4806 * config/avr/avr.c (avr_rtx_costs): Report costs of highpart of
4807 widening QI/HI multiply.
4809 2011-08-11 Ira Rosen <ira.rosen@linaro.org>
4811 PR tree-optimization/50039
4812 * tree-vect-patterns.c (vect_operation_fits_smaller_type): Check
4813 that DEF_STMT has a stmt_vec_info.
4815 2011-08-10 Richard Guenther <rguenther@suse.de>
4817 * tree.h (can_trust_pointer_alignment): Remove.
4818 * builtins.c (can_trust_pointer_alignment): Remove.
4820 2011-08-10 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
4822 * c-typeck.c (scalar_to_vector): New function. Try scalar to
4824 (stv_conv): New enum for scalar_to_vector return type.
4825 (build_binary_op): Adjust.
4826 * doc/extend.texi: Description of scalar to vector expansion.
4828 2011-08-10 Richard Guenther <rguenther@suse.de>
4830 * tree.h (get_pointer_alignment): Remove max-align argument.
4831 (get_object_alignment): Likewise.
4832 * builtins.c (get_object_alignment_1): Adjust.
4833 (get_object_alignment): Remove max-align argument.
4834 (get_pointer_alignment): Likewise.
4835 (expand_builtin_strlen): Adjust.
4836 (expand_builtin_memcpy): Likewise.
4837 (expand_builtin_mempcpy_args): Likewise.
4838 (expand_builtin_strncpy): Likewise.
4839 (expand_builtin_memset_args): Likewise.
4840 (expand_builtin_memcmp): Likewise.
4841 (expand_builtin_strcmp): Likewise.
4842 (expand_builtin_strncmp): Likewise.
4843 (get_builtin_sync_mem): Likewise.
4844 (fold_builtin_memset): Likewise.
4845 (fold_builtin_memory_op): Likewise.
4846 (expand_builtin_memory_chk): Likewise.
4847 * emit-rtl.c (get_mem_align_offset): Likewise.
4848 (set_mem_attributes_minus_bitpos): Likewise.
4849 * expr.c (expand_assignment): Likewise.
4850 (expand_expr_real_1): Likewise.
4851 * tree-sra.c (tree_non_mode_aligned_mem_p): Likewise.
4852 * tree-ssa-forwprop.c (simplify_builtin_call): Likewise.
4853 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Likewise.
4854 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Likewise.
4855 * value-prof.c (gimple_stringops_transform): Likewise.
4857 2011-08-10 Paulo J. Matos <paulo.matos@csr.com>
4859 * doc/tm.texi.in (CLASS_MAX_NREGS): Fix typo.
4860 * doc/tm.texi: Regenerate.
4862 2011-08-10 Georg-Johann Lay <avr@gjlay.de>
4865 * config/avr/avr.md (*ashlhiqi3): New insn-and-split.
4866 (*ashl<extend_prefix>qihiqi3): New insn-and-splits.
4867 (*ashl<extend_prefix>qihiqi3.mem): New insn-and-splits.
4868 Add peephole2 to map ashlhi3 to ashlqi3 if high part of
4869 shift target is unused.
4871 2011-08-10 Richard Guenther <rguenther@suse.de>
4873 PR tree-optimization/49937
4874 * tree-ssa-ccp.c (get_value_from_alignment): Re-implement
4875 using get_object_alignment_1.
4877 2011-08-09 Uros Bizjak <ubizjak@gmail.com>
4879 * config/i386/i386.c (ix86_emit_i387_round): New function.
4880 * config/i386/i386-protos.h (ix86_emit_i387_round): Declare.
4881 * config/i386/i386.md (round<mode>2): Use X87MODEF mode iterator.
4882 Use ix86_emit_i387_round to expand round function for i387 math.
4883 (lround<X87MODEF:mode><SWI248x:mode>2): Use X87MODEF mode iterator.
4884 Use ix86_emit_i387_round to expand {l,ll}round function for i387 math.
4886 2011-08-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4888 * config/sync.c: Move to ../libgcc.
4889 * Makefile.in (libgcc.mvars): Remove LIBGCC_SYNC, LIBGCC_SYNC_CFLAGS.
4890 * config/mips/t-libgcc-mips16 (LIBGCC_SYNC, LIBGCC_SYNC_CFLAGS):
4893 2011-08-09 Anatoly Sokolov <aesok@post.ru>
4895 * config/mmix/mmix.h (REGISTER_MOVE_COST): Remove macro.
4896 * config/mmix/mmix-protos.h (mmix_register_move_cost): Remove.
4897 * config/mmix/mmix.c (mmix_register_move_cost): Make static.
4898 Change 'from' and 'to' arguments type to reg_class_t.
4899 (TARGET_REGISTER_MOVE_COST): Define.
4901 2011-08-09 Vladimir Makarov <vmakarov@redhat.com>
4905 PR rtl-optimization/49990
4906 * ira-costs.c (print_allocno_costs, print_pseudo_costs): Don't
4907 ignore classes which can not change mode.
4908 (find_costs_and_classes): Ditto.
4910 2011-08-09 Richard Guenther <rguenther@suse.de>
4912 * tree-vrp.c (zero_nonzero_bits_from_vr): Also return precise
4913 information for ranges with only negative values.
4914 (extract_range_from_binary_expr_1): Adjust BIT_IOR_EXPR and
4915 BIT_AND_EXPR handling to handle ranges with negative values.
4917 2011-08-09 Kirill Yukhin <kirill.yukhin@intel.com>
4919 * config/i386/i386.c: Remove traling spaces.
4920 * config/i386/sse.md: Likewise.
4921 (*fma_fmadd_<mode>): Fix insn alternative 1 mnemonic.
4922 (*fma_fmsub_<mode>): Likewise.
4923 (*fma_fnmadd_<mode>): Likewise.
4924 (*fma_fnmsub_<mode>): Likewise.
4926 2011-08-09 Nick Clifton <nickc@redhat.com>
4928 * config/rx/rx.md: Disable extender peepholes at -O3.
4930 2011-08-09 Uros Bizjak <ubizjak@gmail.com>
4933 * config/i386/i386.md (reload_noff_load): New.
4934 (reload_noff_store): Ditto.
4935 * config/i386/i386.c (ix86_secondary_reload): Use
4936 CODE_FOR_reload_noff_load and CODE_FOR_reload_noff_store to handle
4937 double-word moves from/to non-offsetable addresses instead of
4938 generating XMM temporary.
4940 2011-08-09 Anatoly Sokolov <aesok@post.ru>
4942 * config/mmix/mmix.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P): Remove.
4944 2011-08-09 Ira Rosen <ira.rosen@linaro.org>
4946 PR tree-optimization/50014
4947 * tree-vect-loop.c (vectorizable_reduction): Get def type before
4948 calling vect_get_vec_def_for_stmt_copy ().
4950 2011-08-08 Vladimir Makarov <vmakarov@redhat.com>
4952 PR rtl-optimization/49990
4953 * ira-costs.c (print_allocno_costs, print_pseudo_costs): Don't
4954 ignore classes which can not change mode.
4955 (find_costs_and_classes): Ditto.
4957 2011-08-08 Richard Henderson <rth@redhat.com>
4960 * config/i386/i386.c (ix86_expand_prologue): Call
4961 for SEH target gen_prologue_use instead of gen_blockage
4964 2011-08-08 Martin Jambor <mjambor@suse.cz>
4967 * tree-sra.c (access_precludes_ipa_sra_p): Also check access
4970 2011-08-08 Diego Novillo <dnovillo@google.com>
4972 * Makefile.in (LTO_STREAMER_H): Add DIAGNOSTIC_H.
4973 (DATA_STREAMER_H): New.
4974 (GIMPLE_STREAMER_H): New.
4975 (TREE_STREAMER_H): New.
4976 (STREAMER_HOOKS_H): New.
4977 (OBJS): Add data-streamer.o, data-streamer-in.o, data-streamer-out.o,
4978 gimple-streamer-in.o, gimple-streamer-out.o, streamer-hooks.o,
4979 tree-streamer.o, tree-streamer-in.o and tree-streamer-out.o.
4980 (data-streamer.o): New.
4981 (data-streamer-in.o): New.
4982 (data-streamer-out.o): New.
4983 (gimple-streamer-in.o): New.
4984 (gimple-streamer-out.o): New.
4985 (streamer-hooks.o): New.
4986 (tree-streamer.o): New.
4987 (tree-streamer-in.o): New.
4988 (tree-streamer-out.o): New.
4989 (lto-cgraph.o): Add dependency on DATA_STREAMER_H and TREE_STREAMER_H.
4990 (lto-streamer-in.o): Add dependency on DATA_STREAMER_H,
4991 GIMPLE_STREAMER_H and TREE_STREAMER_H.
4992 (lto-streamer-out.o): Add dependency on DATA_STREAMER_H,
4993 GIMPLE_STREAMER_H and TREE_STREAMER_H.
4994 (lto-streamer.o): Add dependency on STREAMER_HOOKS_H.
4995 (ipa-prop.o): Add dependency on DATA_STREAMER_H and TREE_STREAMER_H.
4996 (ipa-inline-analysis.o): Likewise.
4997 (ipa-pure-const.o): Likewise.
4998 * data-streamer-in.c: New.
4999 * data-streamer-out.c: New.
5000 * data-streamer.c: New.
5001 * data-streamer.h: New.
5002 * gimple-streamer-in.c: New.
5003 * gimple-streamer-out.c: New.
5004 * gimple-streamer.h: New.
5005 * ipa-inline-analysis.c: Include data-streamer.h.
5006 * ipa-prop.c: Include data-streamer.h.
5007 * ipa-pure-const.c: Include data-streamer.h.
5008 * lto-cgraph.c: Include data-streamer.h.
5009 * lto-section-in.c (lto_input_uleb128): Move to data-streamer-in.c.
5010 (lto_input_widest_uint_uleb128): Likewise.
5011 (lto_input_sleb128): Likewise.
5012 (bp_unpack_var_len_unsigned): Likewise.
5013 (bp_unpack_var_len_int): Likewise.
5014 * lto-section-out.c (lto_output_uleb128_stream): Move to
5015 data-streamer-out.c.
5016 (lto_output_widest_uint_uleb128_stream): Likewise.
5017 (lto_output_sleb128_stream): Likewise.
5018 (bp_pack_var_len_unsigned): Likewise.
5019 (bp_pack_var_len_int): Likewise.
5020 * lto-streamer-in.c: Include data-streamer.h and gimple-streamer.h.
5021 (struct string_slot): Remove. Update all users.
5022 (lto_tag_check_set): Make extern.
5023 (lto_tag_check_range): Move to lto-streamer.h.
5024 (lto_tag_check): Likewise.
5025 (hash_string_slot_node): Remove. Update all users.
5026 (eq_string_slot_node): Remove. Update all users.
5027 (string_for_index): Move to data-streamer-in.c
5028 (input_string_internal): Likewise.
5029 (input_string_cst): Move to tree-streamer-in.c.
5030 (input_identifier): Likewise.
5031 (lto_input_string): Move to data-streamer-in.c
5032 (input_record_start): Move to data-streamer.h
5033 (canon_file_name): Use new definition of struct string_slot
5034 from data-streamer.h. Set S_SLOT.LEN.
5035 (lto_input_location): Make extern.
5036 (lto_input_chain): Move to tree-streamer-in.c.
5037 (lto_init_eh): Make extern.
5038 (input_phi): Move to gimple-streamer-in.c.
5039 (input_gimple_stmt): Likewise.
5040 (input_bb): Likewise.
5041 (unpack_ts_base_value_fields): Move to tree-streamer-in.c.
5042 (unpack_ts_real_cst_value_fields): Likewise.
5043 (unpack_ts_fixed_cst_value_fields): Likewise.
5044 (unpack_ts_decl_common_value_fields): Likewise.
5045 (unpack_ts_decl_wrtl_value_fields): Likewise.
5046 (unpack_ts_decl_with_vis_value_fields): Likewise.
5047 (unpack_ts_function_decl_value_fields): Likewise.
5048 (unpack_ts_type_common_value_fields): Likewise.
5049 (unpack_ts_block_value_fields): Likewise.
5050 (unpack_ts_translation_unit_decl_value_fields): Likewise.
5051 (unpack_value_fields): Likewise.
5052 (lto_materialize_tree): Likewise.
5053 (lto_input_ts_common_tree_pointers): Likewise.
5054 (lto_input_ts_vector_tree_pointers): Likewise.
5055 (lto_input_ts_complex_tree_pointers): Likewise.
5056 (lto_input_ts_decl_minimal_tree_pointers): Likewise.
5057 (lto_input_ts_decl_common_tree_pointers): Likewise.
5058 (lto_input_ts_decl_non_common_tree_pointers): Likewise.
5059 (lto_input_ts_decl_with_vis_tree_pointers): Likewise.
5060 (lto_input_ts_field_decl_tree_pointers): Likewise.
5061 (lto_input_ts_function_decl_tree_pointers): Likewise.
5062 (lto_input_ts_type_common_tree_pointers): Likewise.
5063 (lto_input_ts_type_non_common_tree_pointers): Likewise.
5064 (lto_input_ts_list_tree_pointers): Likewise.
5065 (lto_input_ts_vec_tree_pointers): Likewise.
5066 (lto_input_ts_exp_tree_pointers): Likewise.
5067 (lto_input_ts_block_tree_pointers): Likewise.
5068 (lto_input_ts_binfo_tree_pointers): Likewise.
5069 (lto_input_ts_constructor_tree_pointers): Likewise.
5070 (lto_input_ts_target_option): Likewise.
5071 (lto_input_ts_translation_unit_decl_tree_pointers): Likewise.
5072 (lto_input_tree_pointers): Likewise.
5073 (lto_get_pickled_tree): Likewise.
5074 (lto_get_builtin_tree): Likewise.
5075 (lto_read_tree): Likewise.
5076 (lto_input_integer_cst): Likewise.
5077 (lto_input_tree): Likewise.
5078 * lto-streamer-out.c: Include data-streamer.h,
5079 gimple-streamer.h and streamer-hooks.h.
5080 (struct string_slot): Move to data-streamer.h.
5081 (hash_string_slot_node): Likewise.
5082 (eq_string_slot_node): Likewise.
5083 (lto_string_index): Move to data-streamer-out.c.
5084 (lto_output_string_with_length): Likewise.
5085 (lto_output_string): Likewise.
5086 (output_string_cst): Move to tree-streamer-out.c.
5087 (output_identifier): Likewise.
5088 (output_zero): Move to data-streamer-out.c
5089 (output_uleb128): Likewise.
5090 (output_sleb128): Likewise.
5091 (output_record_start): Move to data-streamer.h
5092 (pack_ts_base_value_fields): Move to tree-streamer-out.c.
5093 (pack_ts_real_cst_value_fields): Likewise.
5094 (pack_ts_fixed_cst_value_fields): Likewise.
5095 (pack_ts_decl_common_value_fields): Likewise.
5096 (pack_ts_decl_wrtl_value_fields): Likewise.
5097 (pack_ts_decl_with_vis_value_fields): Likewise.
5098 (pack_ts_function_decl_value_fields): Likewise.
5099 (pack_ts_type_common_value_fields): Likewise.
5100 (pack_ts_block_value_fields): Likewise.
5101 (pack_ts_translation_unit_decl_value_fields): Likewise.
5102 (pack_value_fields): Likewise.
5103 (lto_output_chain): Likewise.
5104 (lto_output_ts_common_tree_pointers): Likewise.
5105 (lto_output_ts_vector_tree_pointers): Likewise.
5106 (lto_output_ts_complex_tree_pointers): Likewise.
5107 (lto_output_ts_decl_minimal_tree_pointers): Likewise.
5108 (lto_output_ts_decl_common_tree_pointers): Likewise.
5109 (lto_output_ts_decl_non_common_tree_pointers): Likewise.
5110 (lto_output_ts_decl_with_vis_tree_pointers): Likewise.
5111 (lto_output_ts_field_decl_tree_pointers): Likewise.
5112 (lto_output_ts_function_decl_tree_pointers): Likewise.
5113 (lto_output_ts_type_common_tree_pointers): Likewise.
5114 (lto_output_ts_type_non_common_tree_pointers): Likewise.
5115 (lto_output_ts_list_tree_pointers): Likewise.
5116 (lto_output_ts_vec_tree_pointers): Likewise.
5117 (lto_output_ts_exp_tree_pointers): Likewise.
5118 (lto_output_ts_block_tree_pointers): Likewise.
5119 (lto_output_ts_binfo_tree_pointers): Likewise.
5120 (lto_output_ts_constructor_tree_pointers): Likewise.
5121 (lto_output_ts_target_option): Likewise.
5122 (lto_output_ts_translation_unit_decl_tree_pointers): Likewise.
5123 (lto_output_tree_pointers): Likewise.
5124 (lto_output_tree_header): Likewise.
5125 (lto_output_builtin_tree): Likewise.
5126 (lto_write_tree): Likewise.
5127 (lto_output_integer_cst): Likewise.
5128 (lto_output_tree): Likewise.
5129 (output_phi): Move to gimple-streamer-out.c.
5130 (output_gimple_stmt): Likewise.
5131 (output_bb): Likewise.
5132 * lto-streamer.c: Include tree-streamer.h and streamer-hooks.h.
5133 (streamer_hooks): Move to streamer-hooks.c.
5134 (check_handled_ts_structures): Move to tree-streamer.c
5135 (lto_streamer_cache_add_to_node_array): Likewise.
5136 (lto_streamer_cache_insert_1): Likewise.
5137 (lto_streamer_cache_insert): Likewise.
5138 (lto_streamer_cache_insert_at): Likewise.
5139 (lto_streamer_cache_append): Likewise.
5140 (lto_streamer_cache_lookup): Likewise.
5141 (lto_streamer_cache_get): Likewise.
5142 (lto_record_common_node): Likewise.
5143 (lto_preload_common_nodes): Likewise.
5144 (lto_streamer_cache_create): Likewise.
5145 (lto_streamer_cache_delete): Likewise.
5146 (streamer_hooks_init): Move to streamer-hooks.c.
5147 * lto-streamer.h: Include diagnostic.h
5148 (struct output_block, struct lto_input_block,
5149 struct data_in, struct bitpack_d): Remove forward declarations.
5150 (struct bitpack_d): Move to data-streamer.h.
5151 (struct lto_streamer_cache_d): Move to tree-streamer.h.
5152 (struct streamer_hooks): Move to streamer-hooks.h.
5153 (bp_pack_var_len_unsigned): Move to data-streamer.h.
5154 (bp_pack_var_len_int): Likewise.
5155 (bp_unpack_var_len_unsigned): Likewise.
5156 (bp_unpack_var_len_int): Likewise.
5157 (lto_input_location): Declare.
5158 (lto_tag_check_set): Declare.
5159 (lto_init_eh): Declare.
5160 (lto_output_tree_ref): Declare.
5161 (lto_output_location): Declare.
5162 (bitpack_create): Move to data-streamer.h.
5163 (bp_pack_value): Likewise.
5164 (lto_output_bitpack): Likewise.
5165 (lto_input_bitpack): Likewise.
5166 (bp_unpack_value): Likewise.
5167 (lto_output_1_stream): Likewise.
5168 (lto_input_1_unsigned): Likewise.
5169 (lto_output_int_in_range): Likewise.
5170 (lto_input_int_in_range): Likewise.
5171 (bp_pack_int_in_range): Likewise.
5172 (bp_unpack_int_in_range): Likewise.
5173 (lto_output_enum): Likewise.
5174 (lto_input_enum): Likewise.
5175 (bp_pack_enum): Likewise.
5176 (bp_unpack_enum): Likewise.
5177 * streamer-hooks.c: New.
5178 * streamer-hooks.h: New.
5179 * tree-streamer-in.c: New.
5180 * tree-streamer-out.c: New.
5181 * tree-streamer.c: New.
5182 * tree-streamer.h: New.
5184 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5186 * gthr-posix95.h: Remove.
5187 * gthr.h [_PTHREADS95]: Remove.
5188 * configure.ac (enable_threads): Remove posix95.
5189 * configure: Regenerate.
5190 * doc/install.texi (Configuration, --enable-threads): Remove posix95.
5192 2011-08-08 Uros Bizjak <ubizjak@gmail.com>
5195 * config/i386/i386.c (ix86_decompose_address): Allow zero-extended
5197 (ix86_print_operand_address): Handle zero-extended addresses.
5198 (memory_address_length): Add length of addr32 prefix for
5199 zero-extended addresses.
5200 (ix86_secondary_reload): Handle moves to/from double-word general
5201 registers from/to zero-extended addresses.
5202 * config/i386/predicates.md (lea_address_operand): Reject
5203 zero-extended operands.
5205 2011-08-08 H.J. Lu <hongjiu.lu@intel.com>
5208 * config.gcc (libgcc_tm_file): Add i386/value-unwind.h for Linux/x86.
5210 * system.h (REG_VALUE_IN_UNWIND_CONTEXT): Poisoned.
5211 (ASSUME_EXTENDED_UNWIND_CONTEXT): Likewise.
5213 * unwind-dw2.c (ASSUME_EXTENDED_UNWIND_CONTEXT): New.
5214 (_Unwind_Context_Reg_Val): Likewise.
5215 (_Unwind_Get_Unwind_Word): Likewise.
5216 (_Unwind_Get_Unwind_Context_Reg_Val): Likewise.
5217 (_Unwind_Context): Use _Unwind_Context_Reg_Val on the reg field.
5218 (_Unwind_IsExtendedContext): Check ASSUME_EXTENDED_UNWIND_CONTEXT
5219 for EXTENDED_CONTEXT_BIT.
5220 (__frame_state_for): Likewise.
5221 (uw_init_context_1): Likewise.
5222 (_Unwind_GetGR): Updated.
5223 (_Unwind_SetGR): Likewise.
5224 (_Unwind_GetGRPtr): Likewise.
5225 (_Unwind_SetGRPtr): Likewise.
5226 (_Unwind_SetGRValue): Likewise.
5227 (_Unwind_GRByValue): Likewise.
5228 (uw_install_context_1): Likewise.
5230 * doc/tm.texi.in: Document REG_VALUE_IN_UNWIND_CONTEXT and
5231 ASSUME_EXTENDED_UNWIND_CONTEXT.
5232 * doc/tm.texi: Regenerated.
5234 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5236 * Makefile.in (gengtype$(exeext)): Add $(LDFLAGS).
5238 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5240 * doc/invoke.texi (DEC Alpha Options, -mcpu): native support isn't
5242 (DEC Alpha Options, -mtune): Likewise.
5243 (MIPS Options, -march): native is supported on IRIX.
5245 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5247 * config/sparc/driver-sparc.c: New file.
5248 * config/sparc/x-sparc: New file.
5249 * config.host: Use driver-sparc.o, sparc/x-sparc on sparc*-*-solaris2*.
5250 * config/sparc/sparc.opt (native): New value for enum processor_type.
5251 * config/sparc/sparc-opts.h (PROCESSOR_NATIVE): Declare.
5252 * config/sparc/sparc.c (sparc_option_override): Abort if
5253 PROCESSOR_NATIVE gets here.
5254 * config/sparc/sol2.h [__sparc__] (host_detect_local_cpu): Declare.
5255 (EXTRA_SPEC_FUNCTIONS, MCPU_MTUNE_NATIVE_SPECS,
5256 DRIVER_SELF_SPECS): Define.
5257 * doc/invoke.texi (SPARC Options, -mcpu): Document native.
5258 (SPARC Options, -mtune): Likewise.
5259 * configure.ac (EXTRA_GCC_LIBS): Check for libkstat.
5261 * configure: Regenerate.
5262 * Makefile.in (EXTRA_GCC_LIBS): Set.
5263 (xgcc$(exeext)): Add $(EXTRA_GCC_LIBS).
5264 (cpp$(exeext)): Likewise.
5266 2011-08-08 Richard Guenther <rguenther@suse.de>
5268 * tree-vrp.c (extract_range_from_unary_expr_1): New function,
5270 (extract_range_from_unary_expr): ... here. Handle BIT_NOT_EXPR
5273 2011-08-08 Mikael Pettersson <mikpe@it.uu.se>
5275 PR tree-optimization/50005
5276 * ipa-inline-analysis (remap_predicate): Add cast to
5277 silence signed/unsigned comparison warning.
5279 2011-08-08 Richard Sandiford <richard.sandiford@linaro.org>
5281 * modulo-sched.c (get_sched_window): Use a table for the debug output.
5282 Print the current ii.
5283 (sms_schedule_by_order): Reduce whitespace in dump line.
5285 2011-08-08 Richard Sandiford <richard.sandiford@linaro.org>
5287 * modulo-sched.c (get_sched_window): Use just one loop for predecessors
5288 and one loop for successors. Fix upper bound of memory range.
5290 2011-08-06 Uros Bizjak <ubizjak@gmail.com>
5293 * config/alpha/alpha.c (alpha_instantiate_decls): New function.
5294 (TARGET_INSTANTIATE_DECLS): New define.
5296 2011-08-06 Paolo Bonzini <bonzini@gnu.org>
5297 Mikael Morin <mikael.morin@sfr.fr>
5299 * Makefile.in (INCLUDES_FOR_TARGET): New.
5300 (LIBGCC2_CFLAGS): Use it.
5301 (CRTSTUFF_CFLAGS): Use it instead of INCLUDES.
5303 2011-08-06 Uros Bizjak <ubizjak@gmail.com>
5305 * config/i386/i386.c (ix86_compute_frame_layout): Simplify
5306 frame->save_regs_using_mov calculation.
5308 2011-08-06 Uros Bizjak <ubizjak@gmail.com>
5310 * config/i386/i386.md (ssemodesuffix): Remove V8SI mode.
5311 * config/i386/sse.md (castmode): New mode attribute.
5312 (avx_<castmode><avxsizesuffix>_<castmode>): Rename from
5313 avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>.
5315 2011-08-05 Jan Hubicka <jh@suse.cz>
5318 * ipa-inline-analysis.c (remap_predicate): Add bounds check.
5320 2011-08-05 Jan Hubicka <jh@suse.cz>
5323 * tree-emultls.c (new_emutls_decl):Add alias_of parameter;
5325 (create_emultls_var):New function.
5326 (ipa_lower_emutls): Handle aliases correctly.
5328 2011-08-05 Jan Hubicka <jh@suse.cz>
5331 * ipa-inline.c (recursive_inlining): Look through aliases.
5333 2011-08-05 Jason Merrill <jason@redhat.com>
5335 * config/i386/i386.c (setup_incoming_varargs_ms_64): Move
5336 declarations to beginning of function.
5338 2011-08-05 Bernd Schmidt <bernds@codesourcery.com>
5340 PR rtl-optimization/49900
5341 * sched-ebb.c (add_deps_for_risky_insns): Also add dependencies to
5342 ensure basic blocks stay in the same order.
5344 2011-08-05 Aldy Hernandez <aldyh@redhat.com>
5346 * config/s390/s390.c (s390_expand_cs_hqi): Add new arguments to
5348 (s390_expand_atomic): Same.
5350 2011-08-05 Richard Henderson <rth@redhat.com>
5353 * dwarf2cfi.c (scan_insn_after): Split out of ...
5354 (scan_trace): ... here. Correctly place notes wrt sequences.
5356 2011-08-05 Kaz Kojima <kkojima@gcc.gnu.org>
5357 Richard Henderson <rth@redhat.com>
5360 * expr.c (fixup_args_size_notes): Look through no-op moves.
5362 2011-08-05 Uros Bizjak <ubizjak@gmail.com>
5364 * config/i386/i386.md (*push<mode>2): Use "o" constraint instead
5365 of "m" for operand 0. Add type and mode attribute.
5366 (*pushxf_nointeger"): Use "<" constraint for operand 0.
5367 (*pushdf_rex64): New pattern, split out of *pushdf. Use "m"
5368 constraint instead of "o" for opreand 1.
5369 (*pushdf): Disable for TARGET_64BIT. Correct mode attribute.
5370 (*movdi_internal_rex64): Use "!o" constraint instead of "!m" for
5371 operand 0, alternative 4.
5372 (*movdf_internal_rex64): Ditto for operand 0, alernative 6.
5374 2011-08-05 Uros Bizjak <ubizjak@gmail.com>
5376 * config/i386/predicates.md (lea_address_operand): Rename from
5377 no_seg_address_operand.
5378 * config/i386/i386.md (*lea_1): Update operand 1 predicate for rename.
5379 (*lea_1_zext): Ditto.
5381 (*lea_2_zext): Ditto.
5383 2011-08-05 Uros Bizjak <ubizjak@gmail.com>
5385 * config/i386/i386.c (ix86_print_operand_address): Handle SUBREGs of
5386 parts.base and parts.index.
5387 * config/i386/predicates.md (aligned_operand): Ditto.
5388 (cmpxchg8b_pic_memory_operand): Ditto.
5390 2011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5392 * config/soft-fp: Move to ../libgcc.
5393 * Makefile.in (SFP_MACHINE): Remove.
5394 (libgcc-support): Remove $(SFP_MACHINE) dependency.
5395 * config/arm/sfp-machine.h: Move to ../libgcc/config/arm.
5396 * config/arm/t-arm-softfp: Move to
5397 ../libgcc/config/arm/t-softfp.
5398 * config/c6x/sfp-machine.h: Move to ../libgcc/config/c6x.
5399 * config/c6x/t-c6x-softfp: Remove.
5400 * config/i386/sfp-machine.h: Move to ../libgcc/config/i386.
5401 * config/i386/t-fprules-softfp: Move to
5402 ../libgcc/config/t-softfp-tf.
5403 * config/ia64/sfp-machine.h: Move to ../libgcc/config/ia64.
5404 * config/ia64/t-fprules-softfp: Remove.
5405 * config/lm32/sfp-machine.h: Move to ../libgcc/config/lm32.
5406 * config/lm32/t-fprules-softfp: Remove.
5407 * config/moxie/sfp-machine.h: Remove.
5408 * config/moxie/t-moxie-softfp: Remove.
5409 * config/rs6000/darwin-ldouble-format: Move to
5410 ../libgcc/config/rs6000/ibm-ldouble-format.
5411 * config/rs6000/darwin-ldouble.c: Move to
5412 ../libgcc/config/rs6000/ibm-ldouble.c
5413 * config/rs6000/libgcc-ppc-glibc.ver: Move to ../libgcc/config/rs6000.
5414 * config/rs6000/libgcc-ppc64.ver: Likewise.
5415 * config/rs6000/sfp-machine.h: Likewise.
5416 * config/rs6000/t-aix43 (SHLIB_MAPFILES): Remove
5417 $(srcdir)/config/rs6000/libgcc-ppc64.ver.
5418 (LIB2FUNCS_EXTRA): Remove.
5419 (TARGET_LIBGCC2_CFLAGS): Remove.
5420 * config/rs6000/t-aix52: Likewise
5421 * config/rs6000/t-darwin (LIB2FUNCS_EXTRA): Remove
5422 $(srcdir)/config/rs6000/darwin-ldouble.c.
5423 (SHLIB_MAPFILES): Remove.
5424 * config/rs6000/t-darwin64 (LIB2FUNCS_EXTRA): Remove
5425 $(srcdir)/config/rs6000/darwin-ldouble.c.
5426 * config/rs6000/t-fprules-softfp: Move to
5427 ../libgcc/config/t-softfp-sfdf.
5428 * config/rs6000/t-freebsd: Move to ../libgcc/config/rs6000.
5429 * config/rs6000/t-linux64 (softfp_wrap_start, softfp_wrap_end): Remove.
5430 * config/rs6000/t-ppccomm (LIB2FUNCS_EXTRA): Remove
5431 $(srcdir)/config/rs6000/darwin-ldouble.c.
5432 * config/score/sfp-machine.h: Move to ../libgcc/config/score.
5433 * config/score/t-score-softfp: Remove.
5434 * config.gcc (arm*-*-linux*): Remove arm/t-arm-softfp,
5435 soft-fp/t-softfp from tmake_file.
5436 (arm*-*-uclinux*): Likewise.
5437 (arm*-*-ecos-elf): Likewise.
5438 (arm*-*-eabi*, arm*-*-symbianelf*): Likewise.
5439 (arm*-*-rtems*): Likewise.
5440 (arm*-*-elf): Likewise.
5441 (moxie-*-elf): Remove moxie/t-moxie-softfp, soft-fp/t-softfp from
5443 (moxie-*-uclinux*): Likewise.
5444 (moxie-*-rtems*): Likewise.
5445 (lm32-*-elf*): Remove lm32/t-fprules-softfp, soft-fp/t-softfp from
5447 (lm32-*-rtems*): Likewise.
5448 (lm32-*-uclinux*): Likewise.
5449 (powerpc-*-freebsd*): Remove rs6000/t-freebsd,
5450 rs6000/t-fprules-softfp, soft-fp/t-softfp from tmake_file.
5451 (powerpc-*-linux*, powerpc64-*-linux*): Remove
5452 rs6000/t-fprules-softfp, soft-fp/t-softfp from tmake_file.
5453 (score-*-elf): Remove score/t-score-softfp, soft-fp/t-softfp from
5455 (tic6x-*-elf): Remove c6x/t-c6x-softfp, soft-fp/t-softfp from
5457 (tic6x-*-uclinux): Likewise.
5458 (i[34567]86-*-darwin*, x86_64-*-darwin*): Remove i386/t-fprules-softfp,
5459 soft-fp/t-softfp from tmake_file.
5460 (i[34567]86-*-linux*, x86_64-*-linux*, i[34567]86-*-kfreebsd*-gnu)
5461 (x86_64-*-kfreebsd*-gnu, i[34567]86-*-gnu*): Likewise.
5462 (i[34567]86-*-solaris2*, x86_64-*-solaris2.1[0-9]*): Likewise.
5463 (i[34567]86-*-cygwin*, i[34567]86-*-mingw*, x86_64-*-mingw*): Likewise.
5464 (i[34567]86-*-freebsd*, x86_64-*-freebsd*): Likewise.
5466 2011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5468 * Makefile.in (FPBIT_FUNCS, DPBIT_FUNCS, TPBIT_FUNCS): Remove.
5469 (libgcc-support): Remove $(FPBIT), $(DPBIT), $(TPBIT) dependencies.
5470 (libgcc.mvars): Remove FPBIT, FPBIT_FUNCS, DPBIT, DPBIT_FUNCS,
5472 * config/fp-bit.c, config/fp-bit.h: Move to ../libgcc.
5473 * config/arm/t-strongarm-elf (FPBIT, DPBIT, dp-bit.c, fp-bit.c):
5475 * config/arm/t-vxworks: Likewise.
5476 * config/arm/t-wince-pe: Likewise.
5477 * config/avr/t-avr (fp-bit.c, FPBIT): Remove.
5478 * config/bfin/t-bfin (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
5479 * config/bfin/t-bfin-elf: Likewise.
5480 * config/bfin/t-bfin-linux: Likewise.
5481 * config/bfin/t-bfin-uclinux: Likewise.
5482 * config/cris/t-cris (FPBIT, DPBIT, dp-bit.c, tmplibgcc_fp_bit.c):
5484 * config/fr30/t-fr30: Likewise.
5485 * config/frv/t-frv: Likewise.
5486 * config/h8300/t-h8300 (FPBIT, fp-bit.c): Remove.
5487 * config/iq2000/t-iq2000 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
5488 * config/m32c/t-m32c: Likewise.
5489 * config/m32r/t-linux: (LIB2FUNCS_EXTRA, fp-bit.c, dp-bit.c): Remove.
5490 * config/m32r/t-m32r (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
5491 * config/mcore/t-mcore: Likewise.
5492 * config/mep/t-mep: Likewise.
5493 * config/microblaze/t-microblaze: Likewise.
5494 * config/mips/t-linux64 (TPBIT, tp-bit.c): Remove.
5495 * config/mips/t-mips (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
5496 * config/mips/t-sdemtk (FPBIT, DPBIT): Remove.
5497 * config/mips/t-sr71k (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
5498 * config/mn10300/t-linux: Remove.
5499 * config/mn10300/t-mn10300 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
5500 * config/pdp11/t-pdp11: Likewise.
5501 * config/picochip/t-picochip (FPBIT, fp-bit.c): Remove.
5502 * config/rs6000/ppc64-fp.c: Move to ../libgcc/config/rs6000.
5503 * config/rs6000/t-aix43 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
5504 (LIB2FUNCS_EXTRA): Remove $(srcdir)/config/rs6000/ppc64-fp.c.
5505 * config/rs6000/t-aix52: Likewise.
5506 * config/rs6000/t-darwin (LIB2FUNCS_EXTRA): Remove
5507 $(srcdir)/config/rs6000/ppc64-fp.c.
5508 * config/rs6000/t-fprules-fpbit: Remove.
5509 * config/rs6000/t-linux64 (LIB2FUNCS_EXTRA): Remove.
5510 * config/rs6000/t-lynx (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
5511 * config/sh/t-netbsd (FPBIT, DPBIT): Remove.
5512 * config/sh/t-sh (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
5513 * config/sparc/t-elf: Likewise.
5514 * config/sparc/t-leon: Likewise.
5515 * config/sparc/t-leon3: Likewise.
5516 * config/spu/t-spu-elf: Likewise.
5517 (DPBIT_FUNCS): Remove.
5518 * config/stormy16/t-stormy16 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
5519 * config/v850/t-v850: Likewise.
5520 * config.gcc (avr-*-rtems*): Add avr/avr-lib.h to libgcc_tm_file.
5521 (avr-*-*): Likewise.
5522 (h8300-*-rtems*): Set libgcc_tm_file.
5523 (h8300-*-elf*): Likewise.
5524 (powerpc-*-eabisimaltivec*): Remove rs6000/t-fprules-fpbit from
5526 (powerpc-*-eabisim*): Likewise.
5527 (powerpc-*-elf*): Likewise.
5528 (powerpc-*-eabialtivec*): Likewise.
5529 (powerpc-xilinx-eabi*): Likewise.
5530 (powerpc-*-eabi*): Likewise.
5531 (powerpc-*-rtems*): Likewise.
5532 (powerpc-wrs-vxworks, powerpc-wrs-vxworksae): Likewise.
5533 (powerpcle-*-elf*): Likewise.
5534 (powerpcle-*-eabisim*): Likewise.
5535 (powerpcle-*-eabi*): Likewise.
5536 (rx-*-elf*): Add rx/rx-lib.h to libgcc_tm_file.
5537 (am33_2.0-*-linux*): Remove mn10300/t-linux from tmake_file.
5538 * doc/fragments.texi (Target Fragment, Floating Point Emulation):
5541 2011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5543 * Makefile.in (UNWIND_H): Remove.
5544 (LIB2ADDEH, LIB2ADDEHSTATIC, LIB2ADDEHSHARED): Move to
5545 ../libgcc/Makefile.in.
5546 (LIBUNWIND, SHLIBUNWIND_LINK, SHLIBUNWIND_INSTALL): Likewise.
5547 (LIBUNWINDDEP): Remove.
5548 (libgcc-support): Remove LIB2ADDEH, $(srcdir)/emutls.c dependencies.
5549 (libgcc.mvars): Remove LIB2ADDEH, LIB2ADDEHSTATIC, LIB2ADDEHSHARED,
5550 LIBUNWIND, SHLIBUNWIND_LINK, SHLIBUNWIND_INSTALL.
5551 (stmp-int-hdrs): Remove $(UNWIND_H) dependency.
5552 Don't copy $(UNWIND_H).
5553 * config.gcc (ia64*-*-linux*): Remove with_system_libunwind handling.
5554 * configure.ac (GCC_CHECK_UNWIND_GETIPINFO): Remove.
5555 * aclocal.m4: Regenerate.
5556 * configure: Regenerate.
5557 * emutls.c, unwind-c.c, unwind-compat.c, unwind-compat.h,
5558 unwind-dw2-fde-compat.c, unwind-dw2-fde-glibc.c, unwind-dw2-fde.c,
5559 unwind-dw2-fde.h, unwind-dw2.c, unwind-dw2.h, unwind-generic.h,
5560 unwind-pe.h, unwind-sjlj.c, unwind.inc: Move to ../libgcc.
5561 * unwind-dw2-fde-darwin.c: Move to ../libgcc/config.
5562 * config/arm/libunwind.S, config/arm/pr-support.c,
5563 config/arm/unwind-arm.c, config/arm/unwind-arm.h: Move to
5564 ../libgcc/config/arm.
5565 * config/arm/t-bpabi (UNWIND_H, LIB2ADDEH): Remove.
5566 * config/arm/t-symbian (UNWIND_H, LIB2ADDEH): Remove.
5567 * config/frv/t-frv ($(T)frvbegin$(objext)): Use
5568 $(srcdir)/../libgcc to refer to unwind-dw2-fde.h.
5569 ($(T)frvend$(objext)): Likewise.
5570 * config/ia64/t-glibc (LIB2ADDEH): Remove.
5571 * config/ia64/t-glibc-libunwind: Move to ../libgcc/config/ia64.
5572 * config/ia64/fde-glibc.c, config/ia64/fde-vms.c,
5573 config/ia64/unwind-ia64.c, config/ia64/unwind-ia64.h: Move to
5574 ../libgcc/config/ia64.
5575 * config/ia64/t-hpux (LIB2ADDEH): Remove.
5576 * config/ia64/t-ia64 (LIB2ADDEH): Remove.
5577 * config/ia64/t-vms (LIB2ADDEH): Remove.
5578 * config/ia64/vms.h (UNW_IVMS_MODE,
5579 MD_UNW_COMPATIBLE_PERSONALITY_P): Remove.
5580 * config/picochip/t-picochip (LIB2ADDEH): Remove.
5581 * config/rs6000/aix.h (R_LR, MD_FROB_UPDATE_CONTEXT): Remove.
5582 * config/rs6000/t-darwin (LIB2ADDEH): Remove.
5583 * config/rs6000/darwin-fallback.c: Move to ../libgcc/config/rs6000.
5584 * config/sh/t-sh ($(T)unwind-dw2-Os-4-200.o): Use
5585 $(srcdir)/../libgcc to refer to unwinder sources.
5586 * config/spu/t-spu-elf (LIB2ADDEH): Remove.
5587 * config/t-darwin (LIB2ADDEH): Remove.
5588 * config/t-freebsd (LIB2ADDEH): Remove.
5589 * config/t-libunwind (LIB2ADDEH, LIB2ADDEHSTATIC): Remove.
5590 * config/t-libunwind-elf: Move to ../libgcc/config.
5591 * config/t-linux (LIB2ADDEH): Remove.
5592 * config/t-sol2 (LIB2ADDEH): Remove.
5593 * config/xtensa/t-xtensa (LIB2ADDEH): Remove.
5594 * system.h (MD_FROB_UPDATE_CONTEXT): Poison.
5596 2011-08-05 H.J. Lu <hongjiu.lu@intel.com>
5598 * config/i386/i386.c (processor_alias_table): Add core-avx-i.
5600 * doc/invoke.texi: Document core-avx-i.
5602 2011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5604 * tsystem.h (CONST_CAST2, CONST_CAST): Define.
5606 2011-08-05 Ira Rosen <ira.rosen@linaro.org>
5608 * tree-vect-loop.c (vect_create_epilog_for_reduction): Use the
5609 result of multiple results reduction when extracting the final
5610 value using scalar code.
5612 2011-08-05 Richard Guenther <rguenther@suse.de>
5614 PR tree-optimization/49984
5615 * tree-vrp.c (extract_range_from_binary_expr_1): Handle BIT_XOR_EXPR.
5617 2011-08-05 Richard Guenther <rguenther@suse.de>
5619 * tree-vrp.c (zero_nonzero_bits_from_vr): Make sure to always
5620 return true for constant integer ranges.
5621 (extract_range_from_binary_expr_1): Simplify BIT_AND_EXPR and
5622 BIT_IOR_EXPR handling.
5624 2011-08-04 Kai Tietz <ktietz@redhat.com>
5626 * config/i386/i386.c (setup_incoming_varargs_ms_64): Set
5627 ix86_varargs_gpr_size and ix86_varargs_fpr_size to zero.
5629 2011-08-04 Ira Rosen <ira.rosen@linaro.org>
5631 * tree-vectorizer.h (struct _stmt_vec_info): Add new field for
5632 pattern def statement, and its access macro.
5633 (NUM_PATTERNS): Set to 5.
5634 * tree-vect-loop.c (vect_determine_vectorization_factor): Handle
5635 pattern def statement.
5636 (vect_transform_loop): Likewise.
5637 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Add new
5638 function vect_recog_over_widening_pattern ().
5639 (vect_operation_fits_smaller_type): New function.
5640 (vect_recog_over_widening_pattern, vect_mark_pattern_stmts):
5642 (vect_pattern_recog_1): Move the code that marks pattern
5643 statements to vect_mark_pattern_stmts (), and call it. Update
5645 * tree-vect-stmts.c (vect_supportable_shift): New function.
5646 (vect_analyze_stmt): Handle pattern def statement.
5647 (new_stmt_vec_info): Initialize pattern def statement.
5649 2011-08-04 Richard Henderson <rth@redhat.com>
5652 * config/i386/i386.c (ix86_expand_call): Don't create nested
5653 PARALLELs for TARGET_VZEROUPPER.
5654 (ix86_split_call_vzeroupper): Fix extraction of the original call.
5655 * config/i386/i386.md (*call_rex64_ms_sysv_vzeroupper): Don't
5656 recognize nested PARALLELs.
5657 (*call_pop_vzeroupper, *sibcall_pop_vzeroupper,
5658 *call_value_rex64_ms_sysv_vzeroupper, *call_value_pop_vzeroupper,
5659 *sibcall_value_pop_vzeroupper): Likewise.
5661 2011-08-04 Richard Henderson <rth@redhat.com>
5664 * calls.c (expand_call): Use fixup_args_size_notes for
5666 * expr.c (fixup_args_size_notes): Allow STACK_POINTER_REGNUM sets
5667 in non-standard modes.
5669 2011-08-04 Jakub Jelinek <jakub@redhat.com>
5671 * gcc.c (self_spec): New variable.
5672 (static_specs): Add self_spec.
5673 (main): Call do_self_spec on "self_spec" specs after reading
5674 user specs files. Move compare_debug handling right after that.
5676 2011-08-04 Richard Guenther <rguenther@suse.de>
5678 * tree-vrp.c (vrp_expr_computes_nonnegative): Remove.
5679 (value_range_nonnegative_p): New function.
5680 (ssa_name_nonnegative_p): Use it.
5681 (value_range_constant_singleton): New function.
5682 (op_with_constant_singleton_value_range): Use it.
5683 (extract_range_from_binary_expr_1): New function, split out from ...
5684 (extract_range_from_binary_expr): ... this. Remove fallback
5685 constant folding done here.
5687 2011-08-04 Richard Guenther <rguenther@suse.de>
5689 PR tree-optimization/49806
5690 * tree-vrp.c (op_with_boolean_value_range_p): New function.
5691 (simplify_truth_ops_using_ranges): Simplify. Allow inserting
5692 a new statement for a final conversion to bool.
5694 2011-08-04 Romain Geissler <romain.geissler@gmail.com>
5696 * gengtype-state.c: Include "bconfig.h" if
5697 GENERATOR_FILE is defined, "config.h" otherwise.
5698 * gengtype.c: Likewise.
5699 * gengtype-lex.l: Likewise.
5700 * gengtype-parse.c: Likewise.
5701 * Makefile.in (gengtype-lex.o-warn): New variable.
5702 (plugin_resourcesdir): Likewise.
5703 (plugin_bindir): Likewise.
5704 (plugin_includedir): Use $(plugin_resourcesdir) as prefix base.
5705 (MOSTLYCLEANFILES): Add gengtype$(exeext).
5706 (native): Depend on gengtype$(exeext) is $enable_plugin
5708 (gtype.state): Depend on s-gtype. Use temporary file.
5709 (gengtype-lex.o): New rule.
5710 (gengtype-parse.o): Likewise.
5711 (gengtype-state.o): Likewise.
5712 (gengtype$(exeext)): Likewise.
5713 (install-gengtype): Likewise.
5714 (gengtype.o): Likewise.
5715 (build/gengtype.o): Depend on version.h.
5716 (build/gengtype-state): Depend on double-int.h, version.h,
5717 $(HASHTAB_H), $(OBSTACK_H), $(XREGEX_H) and build/errors.o.
5718 (install-plugin): Depend on install-gengtype.
5720 2011-08-04 Jakub Jelinek <jakub@redhat.com>
5723 * tree.h (init_attributes): New prototype.
5724 * attribs.c (init_attributes): No longer static.
5726 2011-08-04 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
5728 * config/arm/arm.c (arm_set_fixed_optab_libfunc): Constify
5731 2011-08-03 David Li <davidxl@google.com>
5733 * tree-optimize.c (execute_fixup_cfg): Fix up entry
5734 outgoing edge counts after inlining.
5736 2011-08-03 David Li <davidxl@google.com>
5738 * profile.c (compute_branch_probabilities): Compute
5739 function frequency after profile annotation.
5741 2011-08-04 Alan Modra <amodra@gmail.com>
5743 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Simplify
5744 use_backchain_to_restore_sp initialisation.
5745 (rs6000_legitimate_offset_address_p): Simplify offset test.
5747 2011-08-03 Richard Henderson <rth@redhat.com>
5749 * config/spu/spu.md: Use define_c_enum instead of define_constants.
5750 (UNSPECV_BLOCKAGE, UNSPECV_LNOP, UNSPECV_SYNC): Rename from UNSPEC_*.
5753 2011-08-03 Richard Henderson <rth@redhat.com>
5756 * config/avr/avr.md: New splitter for REG_ARGS_SIZE 0.
5758 2011-08-03 Jakub Jelinek <jakub@redhat.com>
5760 PR tree-optimization/49948
5761 * gimple.c (walk_stmt_load_store_addr_ops): Walk CONSTRUCTOR elements.
5763 2011-08-03 Anatoly Sokolov <aesok@post.ru>
5765 * config/m32c/m32c.c (class_sizes): Remove.
5766 (reduce_class): Change arguments and return type to reg_class_t.
5767 Change type cc var to HARD_REG_SET. Change type best var to
5768 reg_class_t. Change type best_size var to unsigned int. Remove
5769 initialization class_sizes var. Use reg_class_size array instead
5770 of class_sizes. Use reg_class_contents array instead
5773 2011-08-03 Richard Guenther <rguenther@suse.de>
5776 * fold-const.c (fold_binary_loc): Only associate
5777 (+ (+ (* a b) c) (* d e)) as (+ (+ (* a b) (* d e)) c) if
5780 2011-08-03 Alan Modra <amodra@gmail.com>
5782 PR rtl-optimization/49941
5783 * jump.c (mark_jump_label): Comment.
5784 (mark_jump_label_1): Set JUMP_LABEL for return jumps.
5785 * emit-rtl.c (copy_rtx_if_shared_1, copy_insn_1): Leave RETURN shared.
5786 (mark_used_flags): Don't mark RETURN.
5788 2011-08-03 Richard Guenther <rguenther@suse.de>
5790 PR tree-optimization/49938
5791 * tree-scalar-evolution.c (interpret_loop_phi): Gracefully
5792 deal with a POLYNOMIAL_CHREC.
5794 2011-08-03 Revital Eres <revital.eres@linaro.org>
5796 * modulo-sched.c (calculate_stage_count,
5797 calculate_must_precede_follow, get_sched_window,
5798 try_scheduling_node_in_cycle, remove_node_from_ps): Add
5800 (update_node_sched_params, set_must_precede_follow, optimize_sc):
5802 (reset_sched_times): Call update_node_sched_params.
5803 (sms_schedule): Call optimize_sc.
5804 (get_sched_window): Change function arguments.
5805 (sms_schedule_by_order): Update call to get_sched_window.
5806 Call set_must_precede_follow.
5807 (calculate_stage_count): Add function argument.
5809 2011-08-02 Richard Henderson <rth@redhat.com>
5813 * reg-notes.def (REG_ARGS_SIZE): New.
5814 * calls.c (emit_call_1): Emit REG_ARGS_SIZE for call_pop.
5815 (expand_call): Add REG_ARGS_SIZE to emit_stack_restore.
5816 * cfgcleanup.c (old_insns_match_p): Don't allow cross-jumping to
5817 different stack levels.
5818 * combine-stack-adj.c (adjust_frame_related_expr): Remove.
5819 (maybe_move_args_size_note): New.
5820 (combine_stack_adjustments_for_block): Use it.
5821 * combine.c (distribute_notes): Place REG_ARGS_SIZE.
5822 * dwarf2cfi.c (dw_cfi_row_struct): Remove args_size member.
5823 (dw_trace_info): Add beg_true_args_size, end_true_args_size,
5824 beg_delay_args_size, end_delay_args_size, eh_head, args_size_undefined.
5826 (queued_args_size): Remove.
5827 (add_cfi_args_size): Assert size is non-negative.
5828 (stack_adjust_offset, dwarf2out_args_size): Remove.
5829 (dwarf2out_stack_adjust, dwarf2out_notice_stack_adjust): Remove.
5830 (notice_args_size, notice_eh_throw): New.
5831 (dwarf2out_frame_debug_def_cfa): Use cur_cfa.
5832 (dwarf2out_frame_debug_adjust_cfa): Likewise.
5833 (dwarf2out_frame_debug_cfa_offset): Likewise.
5834 (dwarf2out_frame_debug_expr): Likewise. Don't stack_adjust_offset.
5835 (dwarf2out_frame_debug): Don't handle non-frame-related-p insns.
5836 (change_cfi_row): Don't emit args_size.
5837 (maybe_record_trace_start_abnormal): Split out from ...
5838 (maybe_record_trace_start): Here. Set args_size_undefined.
5839 (create_trace_edges): Update to match.
5840 (scan_trace): Handle REG_ARGS_SIZE.
5841 (connect_traces): Connect args_size between EH insns.
5842 * emit-rtl.c (try_split): Handle REG_ARGS_SIZE.
5843 * explow.c (suppress_reg_args_size): New.
5844 (adjust_stack_1): Split out from ...
5845 (adjust_stack): ... here.
5846 (anti_adjust_stack): Use it.
5847 (allocate_dynamic_stack_space): Suppress REG_ARGS_SIZE.
5848 * expr.c (mem_autoinc_base): New.
5849 (fixup_args_size_notes): New.
5850 (emit_single_push_insn_1): Rename from emit_single_push_insn.
5851 (emit_single_push_insn): New. Generate REG_ARGS_SIZE.
5852 * recog.c (peep2_attempt): Handle REG_ARGS_SIZE.
5853 * reload1.c (reload_as_needed): Likewise.
5854 * rtl.h (fixup_args_size_notes): Declare.
5856 2011-08-02 Paolo Carlini <paolo.carlini@oracle.com>
5859 * fold-const.c (fold_plusminus_mult_expr): Use abs_hwi instead
5861 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Likewise.
5862 * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Likewise.
5864 2011-08-02 Richard Henderson <rth@redhat.com>
5866 * config/h8300/h8300.c (push, pop): Return the insn.
5867 (h8300_swap_into_er6): Generate correct unwind info.
5868 (h8300_swap_out_of_er6): Likewise.
5869 * dwarf2cfi.c (def_cfa_1): Clear cfa_cfi if we no longer have a
5870 complex cfa expression.
5871 (dwarf2out_frame_debug_def_cfa): Allow (plus (mem) (const_int)) too.
5873 2011-08-02 H.J. Lu <hongjiu.lu@intel.com>
5875 * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
5877 2011-08-02 Richard Henderson <rth@redhat.com>
5880 * config/h8300/h8300.c (h8300_move_ok): New.
5881 * config/h8300/h8300-protos.h: Declare it.
5882 * config/h8300/h8300.md (P): New mode iterator.
5883 (*movqi_h8300, *movqi_h8300hs, movqi): Use h8300_move_ok.
5884 (*movqi_h8sx, *movhi_h8300, *movhi_h8300hs, movhi): Likewise.
5885 (movsi, *movsi_h8300, *movsi_h8300hs): Likewise.
5886 (*pushqi1_h8300): Rename from pushqi1_h8300; use PRE_MODIFY.
5887 (*pushqi1_h8300hs_<P>): Macroize from pushqi1_h8300hs_advanced
5888 and pushqi1_h8300hs_normal; use PRE_MODIFY and
5889 register_no_sp_elim_operand.
5890 (*pushhi1_h8300hs_<P>): Similarly.
5891 (pushqi1, pushhi1, pushhi1_h8300): Remove.
5892 * config/h8300/predicates.md (register_no_sp_elim_operand): New.
5894 2011-08-02 Richard Henderson <rth@redhat.com>
5897 * config/avr/avr.md (push<MPUSH>1): Don't constrain the operand.
5899 2011-08-02 Jakub Jelinek <jakub@redhat.com>
5901 * c-parser.c (enum c_parser_prec): New enum, moved from within
5902 c_parser_binary_expression.
5903 (c_parser_binary_expression): Add PREC argument. Stop parsing
5904 if operator has lower or equal precedence than PREC.
5905 (c_parser_conditional_expression, c_parser_omp_for_loop): Adjust
5907 (c_parser_omp_atomic): Handle parsing OpenMP 3.1 atomics.
5908 Adjust c_finish_omp_atomic caller.
5909 (c_parser_omp_taskyield): New function.
5910 (c_parser_pragma): Handle PRAGMA_OMP_TASKYIELD.
5911 (c_parser_omp_clause_name): Handle final and mergeable clauses.
5912 (c_parser_omp_clause_final, c_parser_omp_clause_mergeable): New
5914 (c_parser_omp_all_clauses): Handle PRAGMA_OMP_CLAUSE_FINAL
5915 and PRAGMA_OMP_CLAUSE_MERGEABLE.
5916 (OMP_TASK_CLAUSE_MASK): Allow final and mergeable clauses.
5917 (c_parser_omp_clause_reduction): Handle min and max.
5918 * c-typeck.c (c_finish_omp_clauses): Don't complain about
5919 const qualified predetermined vars in firstprivate clause.
5920 andle OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
5921 Handle MIN_EXPR and MAX_EXPR.
5922 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_FINAL
5923 and OMP_CLAUSE_MERGEABLE.
5924 (dump_generic_node): Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD
5925 and OMP_ATOMIC_CAPTURE_NEW.
5926 * tree.c (omp_clause_num_ops): Add OMP_CLAUSE_FINAL and
5927 OMP_CLAUSE_MERGEABLE.
5928 (omp_clause_code_name): Likewise.
5929 (walk_tree_1): Handle OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
5930 * tree.h (enum omp_clause_code): Add OMP_CLAUSE_FINAL
5931 and OMP_CLAUSE_MERGEABLE.
5932 (OMP_CLAUSE_FINAL_EXPR): Define.
5933 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE_FINAL and
5934 OMP_CLAUSE_MERGEABLE.
5935 (expand_task_call): Likewise.
5936 (expand_omp_atomic_load, expand_omp_atomic_store): New functions.
5937 (expand_omp_atomic_fetch_op): Handle cases where old or new
5938 value is needed afterwards.
5939 (expand_omp_atomic): Call expand_omp_atomic_load resp.
5940 expand_omp_atomic_store.
5941 * gimplify.c (gimplify_omp_atomic, gimplify_expr): Handle
5942 OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and OMP_ATOMIC_CAPTURE_NEW.
5943 (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
5944 OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
5945 * tree-nested.c (convert_nonlocal_omp_clauses,
5946 convert_local_omp_clauses): Likewise.
5947 * tree.def (OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD,
5948 OMP_ATOMIC_CAPTURE_NEW): New.
5949 * gimple.h (GF_OMP_ATOMIC_NEED_VALUE): New.
5950 (gimple_omp_atomic_need_value_p, gimple_omp_atomic_set_need_value):
5952 * omp-builtins.def (BUILT_IN_GOMP_TASKYIELD): New builtin.
5953 * doc/generic.texi: Mention OMP_CLAUSE_COLLAPSE,
5954 OMP_CLAUSE_UNTIED, OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
5956 2011-08-02 Kai Tietz <ktietz@redhat.com>
5958 * gimple.c (canonicalize_cond_expr_cond): Handle cast from
5960 (ssa_forward_propagate_and_combine): Interprete result of
5961 forward_propagate_comparison.
5962 * gcc/gimple-fold.c (fold_gimple_assign): Add canonicalization for
5963 boolean-typed operands for comparisons.
5965 2011-08-02 Georg-Johann Lay <avr@gjlay.de>
5967 * config/avr/libgcc.S: Gather related function in the
5969 (__mulqihi3, __mulqihi3, __divmodqi4, __divmodhi4, __udivmodsi4,
5970 __divmodsi4): Use XCALL/XJMP instead of rcall/rjmp for external
5972 (__udivmodqi4, __divmodqi4, __udivmodhi4, __divmodhi4,
5973 __udivmodsi4, __divmodsi4, __prologue_saves__,
5974 __epilogue_restores__, _exit, __tablejump2__, __tablejump__,
5975 __do_copy_data, __do_clear_bss, __do_global_ctors,
5976 __do_global_dtors, __tablejump_elpm__): Enclose in DEFUN/ENDF.
5978 2011-08-02 Uros Bizjak <ubizjak@gmail.com>
5981 * doc/md.texi (stack_protect_set): The pattern moves ptr_mode value.
5982 (stack_protect_test): The pattern compares ptr_mode value.
5984 2011-08-02 Alan Modra <amodra@gmail.com>
5986 * config/rs6000/rs6000.c (rs6000_emit_prologue): Add REG_CFA_RESTORE
5987 note for save_LR_around_toc_setup sequence.
5989 2011-08-01 H.J. Lu <hongjiu.lu@intel.com>
5991 * config/i386/lzcntintrin.h (__lzcnt64): Replace long with long long.
5993 2011-08-01 Sebastian Pop <sebastian.pop@amd.com>
5994 Joseph Myers <joseph@codesourcery.com>
5996 * Makefile.in (hwint.o): Depend on DIAGNOSTIC_CORE_H.
5997 * hwint.c: Include diagnostic-core.h.
5999 (gcd): Moved here...
6002 (least_common_multiple): Moved here...
6003 * hwint.h (gcd): ... from here.
6004 (least_common_multiple): ... from here.
6005 (HOST_WIDE_INT_MIN): New.
6006 (HOST_WIDE_INT_MAX): New.
6007 (abs_hwi): Declared.
6009 (pos_mul_hwi): Declared.
6010 (mul_hwi): Declared.
6011 (least_common_multiple): Declared.
6012 * omega.c (check_pos_mul): Removed.
6013 (check_mul): Removed.
6014 (omega_solve_geq): Use pos_mul_hwi instead of check_pos_mul and
6015 mul_hwi instead of check_mul.
6017 2011-08-01 Richard Henderson <rth@redhat.com>
6020 * config/avr/avr.h (PUSH_ROUNDING): New.
6021 * config/avr/avr.md (pushqi1): Rename from *pushqi.
6022 (*pushhi, *pushsi, *pushsf): Remove.
6023 (MPUSH): New mode iterator.
6024 (push<MPUSH>1): New expander.
6026 2011-08-01 Anatoly Sokolov <aesok@post.ru>
6028 * config/mmix/mmix.h (PREFERRED_RELOAD_CLASS,
6029 PREFERRED_OUTPUT_RELOAD_CLASS): Remove macro.
6030 * config/mmix/mmix-protos.h (mmix_preferred_reload_class,
6031 mmix_preferred_output_reload_class): Remove.
6032 * config/mmix/mmix.c (mmix_preferred_reload_class,
6033 mmix_preferred_output_reload_class): Make static. Change rclass
6034 argument and return type to reg_class_t.
6035 (TARGET_PREFERRED_RELOAD_CLASS,
6036 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
6038 2011-08-01 Joern Rennecke <joern.rennecke@embecosm.com>
6040 * mode-switching.c (optimize_mode_switching): Fix bug in MODE_AFTER
6043 2011-08-01 H.J. Lu <hongjiu.lu@intel.com>
6046 * config/i386/i386.md (PTR): New.
6047 (stack_protect_set: Check TARGET_LP64 instead of TARGET_64BIT.
6048 (stack_protect_test): Likewise.
6049 (stack_protect_set_<mode>): Replace ":P" with ":PTR".
6050 (stack_tls_protect_set_<mode>): Likewise.
6051 (stack_tls_protect_test_<mode>): Likewise.
6053 2011-08-01 Uros Bizjak <ubizjak@gmail.com>
6056 * config/i386/i386.c (ix86_address_subreg_operand): New.
6057 (ix86_decompose_address): Use ix86_address_subreg_operand.
6058 (ix86_legitimate_address_p): Do not assert that subregs satisfy
6059 register_no_elim_operand in DImode.
6061 2011-08-01 Ira Rosen <ira.rosen@linaro.org>
6063 PR tree-optimization/49926
6064 * tree-vect-loop.c (vect_is_slp_reduction): Check that a statement
6065 in a chain doesn't have uses both inside and outside the loop.
6067 2011-08-01 Georg-Johann Lay <avr@gjlay.de>
6069 * config/avr/avr.h (mcu_type_s): Add errata_skip field.
6070 * config/avr/avr-devices.c (avr_mcu_types): Use it.
6071 * config/avr/avr-mcus.def (AVR_MCU): Use it.
6072 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Use it to builtin
6073 define __AVR_ERRATA_SKIP__ and __AVR_ERRATA_SKIP_JMP_CALL__.
6074 * config/avr/libgcc.S (__mulshisi3, __ffshi2, __fmulsu_exit):
6075 Use __AVR_ERRATA_SKIP_JMP_CALL__ instead of __AVR_HAVE_JMP_CALL__
6076 to detect if XJMP must not be skipped.
6078 2011-08-02 Alan Modra <amodra@gmail.com>
6080 * config/rs6000/rs6000-protos.h (rs6000_save_toc_in_prologue_p):
6082 * config/rs6000/rs6000.c (rs6000_save_toc_in_prologue_p): Make static.
6083 (rs6000_emit_prologue): Don't prematurely return when
6084 TARGET_SINGLE_PIC_BASE. Don't emit eh_frame info in
6085 save_toc_in_prologue case.
6086 (rs6000_call_indirect_aix): Only disallow save_toc_in_prologue for
6089 2011-08-01 Georg-Johann Lay <avr@gjlay.de>
6091 * config/avr/avr-devices.c: Delete SVN property svn:executable.
6092 * config/avr/predicates.md: Ditto.
6093 * config/avr/driver-avr.c: Ditto.
6094 * config/avr/genopt.sh: Set SVN property svn:executable to *.
6096 2011-08-01 H.J. Lu <hongjiu.lu@intel.com>
6098 * calls.c (emit_library_call_value_1): Declare size only if
6099 BLOCK_REG_PADDING is defined.
6101 2011-08-01 Kirill Yukhin <kirill.yukhin@intel.com>
6104 * config.gcc (i[34567]86-*-*): Replace abmintrin.h with lzcntintrin.h.
6105 (x86_64-*-*): Likewise.
6106 * config/i386/i386.opt (mlzcnt): New.
6107 * config/i386/abmintrin.h: File removed.
6108 (__lzcnt_u16, __lzcnt, __lzcnt_u64): Moved to ...
6109 * config/i386/lzcntintrin.h: ... here. New file.
6110 (__lzcnt): Rename to ...
6111 (__lzcnt32): ... this.
6112 * config/i386/bmiintrin.h (head): Update copyright year.
6113 (__lzcnt_u16): Removed.
6114 (__lzcnt_u32): Likewise.
6115 (__lzcnt_u64): Likewise.
6116 * config/i386/x86intrin.h: Include lzcntintrin.h when __LZCNT__
6117 is defined, remove abmintrin.h.
6118 * config/i386/cpuid.h (bit_LZCNT): New.
6119 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
6121 * config/i386/i386-c.c (ix86_target_macros_internal): Define
6122 __LZCNT__ if needed.
6123 * config/i386/i386.c (ix86_target_string): New option -mlzcnt.
6124 (ix86_option_override_internal): Handle LZCNT option.
6125 (ix86_valid_target_attribute_inner_p): Likewise.
6126 (struct builtin_description bdesc_args) <IX86_BUILTIN_CLZS>: Update.
6127 * config/i386/i386.h (TARGET_LZCNT): New.
6128 (CLZ_DEFINED_VALUE_AT_ZERO): Update.
6129 * config/i386/i386.md (clz<mode>2): Update insn constraint.
6130 (clz<mode>2_lzcnt): Likewise.
6131 * doc/invoke.texi: Mention -mlzcnt option.
6132 * doc/extend.texi: Likewise.
6134 2011-08-01 Julian Brown <julian@codesourcery.com>
6136 * configure.ac (fixed-point): Add ARM support.
6137 * configure: Regenerate.
6138 * config/arm/arm.c (arm_fixed_mode_set): New struct.
6139 (arm_set_fixed_optab_libfunc): New.
6140 (arm_set_fixed_conv_libfunc): New.
6141 (arm_init_libfuncs): Initialise fixed-point helper libfuncs with
6143 (aapcs_libcall_value): Return sub-word-size fixed-point libcall
6144 return values in SImode.
6145 (arm_return_in_msb): Return fixed-point types in the msb.
6146 (arm_pad_reg_upwards, arm_pad_arg_upwards): Pad fixed-point types
6148 (arm_scalar_mode_supported_p): Support fixed-point modes.
6149 (arm_vector_mode_supported_p): Support vector fixed-point modes.
6150 * config/arm/arm.h (SHORT_FRACT_TYPE_SIZE, FRACT_TYPE_SIZE)
6151 (LONG_FRACT_TYPE_SIZE, LONG_LONG_FRACT_TYPE_SIZE)
6152 (SHORT_ACCUM_TYPE_SIZE, ACCUM_TYPE_SIZE, LONG_ACCUM_TYPE_SIZE)
6153 (LONG_LONG_ACCUM_TYPE_SIZE, MAX_FIXED_MODE_SIZE): Define.
6154 * config/arm/iterators.md (FIXED, ADDSUB, UQADDSUB, QADDSUB, QMUL):
6156 (qaddsub_suf): New mode attribute.
6157 * config/arm/arm-modes.def (FRACT, UFRACT, ACCUM, UACCUM): Declare
6159 * config/arm/predicates.md (sat_shift_operator): New predicate.
6160 * config/arm/arm-fixed.md: New.
6161 * config/arm/arm.md: Include arm-fixed.md.
6162 * config/arm/t-arm (MD_INCLUDES): Add arm-fixed.md.
6164 2011-08-01 Julian Brown <julian@codesourcery.com>
6166 * calls.c (emit_library_call_value_1): Support padding for libcall
6167 arguments and return values.
6168 * config/arm/arm.c (arm_pad_arg_upward): Pad half-float values
6169 downwards in big-endian mode.
6171 2011-08-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6174 * config/sol2.c (solaris_code_end): Rename to solaris_file_end.
6175 * config/sol2-protos.h: Likewise.
6176 * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Don't call
6178 * config/i386/sol2.h [!USE_GAS] (TARGET_ASM_FILE_END): Redefine.
6179 * config/sparc/sparc.c (sparc_file_end) [TARGET_SOLARIS]: Call
6181 * config/sparc/sol2.h (TARGET_ASM_CODE_END): Remove.
6183 2011-08-01 Julian Brown <julian@codesourcery.com>
6185 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Support FIXED_CST.
6187 2011-08-01 Julian Brown <julian@codesourcery.com>
6189 * final.c (output_addr_const): Print fixed-point constants as
6192 2011-08-01 Richard Guenther <rguenther@suse.de>
6194 * stor-layout.c (initialize_sizetypes): Properly sign-extend
6195 bitsiztype TYPE_MAX_VALUE.
6197 2011-08-01 Julian Brown <julian@codesourcery.com>
6199 * optabs.c (prepare_cmp_insn): Use correct biasing for fixed-point
6202 2011-07-31 Richard Henderson <rth@redhat.com>
6204 * config/h8300/crti.asm: Add flags to .section directive.
6205 * config/h8300/crtn.asm: Likewise.
6207 2011-07-31 Richard Henderson <rth@redhat.com>
6209 * stor-layout.c (initialize_sizetypes): Handle unsigned short.
6210 * tree.c (build_common_tree_nodes): Likewise.
6212 2011-07-31 Kaz Kojima <kkojima@gcc.gnu.org>
6215 * config/sh/sh.md (udivsi3_i1): Enable for TARGET_DIVIDE_CALL_DIV1.
6216 (divsi3_i1): Likewise.
6218 2011-07-31 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6220 PR tree-optimization/49749
6221 * tree-ssa-reassoc.c (get_rank): New forward declaration.
6222 (PHI_LOOP_BIAS): New macro.
6223 (phi_rank): New function.
6224 (loop_carried_phi): Likewise.
6225 (propagate_rank): Likewise.
6226 (get_rank): Add calls to phi_rank and propagate_rank.
6228 2011-07-31 H.J. Lu <hongjiu.lu@intel.com>
6230 * config/i386/x86-64.h (SIZE_TYPE): Check TARGET_LP64 instead
6232 (PTRDIFF_TYPE): Likewise.
6234 2011-07-31 Uros Bizjak <ubizjak@gmail.com>
6237 * config/i386/i386.md (strset): Do not expand strset_singleop
6238 when %eax or $edi are fixed.
6239 (*strsetdi_rex_1): Disable when %eax or %edi are fixed.
6240 (*strsetsi_1): Ditto.
6241 (*strsethi_1): Ditto.
6242 (*strsetqi_1): Ditto.
6243 (*rep_stosdi_rex64): Disable when %eax, %ecx or %edi are fixed.
6244 (*rep_stossi): Ditto.
6245 (*rep_stosqi): Ditto.
6246 (*strlenqi_1): Ditto.
6247 (cmpstrnsi): Also fail when %ecx is fixed.
6248 (*cmpstrnqi_nz_1): Disable when %ecx, %esi or %edi are fixed.
6249 (*cmpstrnqi_1): Ditto.
6250 (*strmovdi_rex_1): Disable when %esi or %edi are fixed.
6251 (*strmovsi_1): Ditto.
6252 (*strmovhi_1): Ditto.
6253 (*strmovqi_1): Ditto.
6254 (*rep_movdi_rex64): Disable when %ecx, %esi or %edi are fixed.
6255 (*rep_movsi): Ditto.
6256 (*rep_movqi): Ditto.
6258 2011-07-31 Mikael Pettersson <mikpe@it.uu.se>
6261 * config/m68k/m68k.c (m68k_override_options_after_change): New function.
6262 Disable instruction scheduling for non-ColdFire targets.
6263 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define.
6265 2011-07-31 Revital Eres <revital.eres@linaro.org>
6267 * ddg.c (create_ddg_dep_from_intra_loop_link): Remove the creation
6268 of anti-dep edge from a branch.
6269 (add_cross_iteration_register_deps): Create anti-dep edge from
6272 2011-07-31 Revital Eres <revital.eres@linaro.org>
6274 * modulo-sched.c: Change comment.
6275 (reset_sched_times): Fix print message.
6276 (print_partial_schedule): Add print info.
6278 2011-07-31 Tom de Vries <tom@codesourcery.com>
6281 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Use max of
6282 get_object_alignment and TYPE_ALIGN.
6284 2011-07-30 Tom de Vries <tom@codesourcery.com>
6287 * tree-ssa-dce.c (ref_may_be_aliased): Add assert.
6288 (propagate_necessity): Handle WITH_SIZE_EXPR call arg.
6290 2011-07-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6292 * config/mips/driver-native.c [__sgi__]: Include <invent.h>,
6294 (cpu_types): New array.
6295 (cputype): New function.
6296 (host_detect_local_cpu): Only define buf, f if !__sgi__.
6297 Use scaninvent instead of /proc/cpuinfo if __sgi__.
6298 * config.host: Also use driver-native.o, mips/x-native on
6300 * config/mips/iris6.h [__mips__] (host_detect_local_cpu): Declare.
6301 (EXTRA_SPEC_FUNCTIONS, MARCH_MTUNE_NATIVE_SPECS): Define.
6302 (DRIVER_SELF_SPECS): Add MARCH_MTUNE_NATIVE_SPECS.
6304 2011-07-29 Jakub Jelinek <jakub@redhat.com>
6308 * omp-low.c (use_pointer_for_field): If disallowing copy-in/out
6309 in nested parallel and outer is a gimple_reg, mark it as addressable
6310 and set its bit in task_shared_vars bitmap too.
6312 2011-07-29 Uros Bizjak <ubizjak@gmail.com>
6314 * config/i386/predicates.md (tp_or_register_operand): Remove predicate.
6316 2011-07-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6318 * config/alpha/driver-alpha.c (IMPLVER_EV4_FAMILY,
6319 IMPLVER_EV5_FAMILY, IMPLVER_EV6_FAMILY, IMPLVER_EV7_FAMILY): Define.
6320 (AMASK_BWX, AMASK_FIX, AMASK_CIX, AMASK_MVI, AMASK_PRECISE,
6321 AMASK_LOCKPFTCHOK): Define.
6322 (host_detect_local_cpu): Remove buf, f, cpu_names.
6323 Define cpu_types, implver, amask.
6324 Use __builtin_alpha_implver, __builtin_alpha_amask to determine
6326 * config.host: Also use driver-alpha.o, alpha/x-alpha on
6328 * config/alpha/osf5.h [__alpha__ || __alpha]
6329 (host_detect_local_cpu): Declare.
6330 (EXTRA_SPEC_FUNCTIONS, MCPU_MTUNE_NATIVE_SPECS)
6331 (DRIVER_SELF_SPECS): Define.
6333 2011-07-29 Uros Bizjak <ubizjak@gmail.com>
6336 * config/i386/i386.md (*load_tp_x32): New.
6337 (*load_tp_x32_zext): Ditto.
6338 (*add_tp_x32): Ditto.
6339 (*add_tp_x32_zext): Ditto.
6340 (*load_tp_<mode>): Disable for TARGET_X32 targets.
6341 (*add_tp_<mode>): Ditto.
6342 * config/i386/i386.c (get_thread_pointer): Load thread pointer in
6343 ptr_mode and convert to Pmode if needed.
6345 2011-07-29 Georg-Johann Lay <avr@gjlay.de>
6348 * config/avr/avr.md (mulsi3, *mulsi3, mulu<mode>si3,
6349 muls<mode>si3, mulohisi3, mulhisi3, umulhisi3, usmulhisi3,
6350 *<any_extend:extend_prefix><any_extend2:extend_prefix>mul<QIHI:mode><QIHI2:mode>si3):
6351 Add X to register footprint: Clobber r26/r27.
6353 2011-07-29 Richard Guenther <rguenther@suse.de>
6355 * builtins.c (fold_builtin_signbit): Build the comparison
6358 2011-07-29 Richard Guenther <rguenther@suse.de>
6360 PR tree-optimization/49893
6361 * tree-predcom.c (suitable_reference_p): Volatile references
6364 2011-07-29 Georg-Johann Lay <avr@gjlay.de>
6367 * config/avr/libgcc.S (__ffshi2): Don't skip 2-word instruction.
6368 (__ctzsi2): Result for 0 may be undefined.
6369 (__ctzhi2): Result for 0 may be undefined.
6370 (__popcounthi2): Don't clobber r30. Use __popcounthi2_tail.
6371 (__popcountsi2): Ditto. And don't clobber r26.
6372 (__popcountdi2): Ditto. And don't clobber r27.
6373 * config/avr/avr.md (UNSPEC_COPYSIGN): New c_enum.
6374 (parityhi2): New expand.
6375 (paritysi2): New expand.
6376 (popcounthi2): New expand.
6377 (popcountsi2): New expand.
6378 (clzhi2): New expand.
6379 (clzsi2): New expand.
6380 (ctzhi2): New expand.
6381 (ctzsi2): New expand.
6382 (ffshi2): New expand.
6383 (ffssi2): New expand.
6384 (copysignsf3): New insn.
6385 (bswapsi2): New expand.
6386 (*parityhi2.libgcc): New insn.
6387 (*parityqihi2.libgcc): New insn.
6388 (*paritysihi2.libgcc): New insn.
6389 (*popcounthi2.libgcc): New insn.
6390 (*popcountsi2.libgcc): New insn.
6391 (*popcountqi2.libgcc): New insn.
6392 (*popcountqihi2.libgcc): New insn-and-split.
6393 (*clzhi2.libgcc): New insn.
6394 (*clzsihi2.libgcc): New insn.
6395 (*ctzhi2.libgcc): New insn.
6396 (*ctzsihi2.libgcc): New insn.
6397 (*ffshi2.libgcc): New insn.
6398 (*ffssihi2.libgcc): New insn.
6399 (*bswapsi2.libgcc): New insn.
6401 2011-07-29 Richard Guenther <rguenther@suse.de>
6403 * tree-vrp.c (get_value_range): Only set parameter default
6404 definitions to varying, leave others at undefined.
6405 (extract_range_from_binary_expr): Fix undefined handling.
6406 (vrp_visit_phi_node): Handle merged undefined state.
6408 2011-07-29 Wei Guozhi <carrot@google.com>
6410 PR rtl-optimization/49799
6411 * combine.c (make_compound_operation): Check if the bit field is valid
6412 before change it to bit field extraction.
6414 2011-07-29 Bernd Schmidt <bernds@codesourcery.com>
6416 PR rtl-optimization/49891
6417 * cfgrtl.c (force_nonfallthru_and_redirect): Set JUMP_LABEL for
6418 newly created returnjumps.
6420 2011-07-28 DJ Delorie <dj@redhat.com>
6422 * expr.c (expand_expr_addr_expr_1): Detect a user request for a
6423 local frame in a naked function, and produce a suitable error for
6426 * config/m32c/m32c.c (m32c_secondary_reload_class): Allow PSI
6427 registers to be reloaded in HI classes when the target is HI.
6429 2011-07-28 Sebastian Pop <sebastian.pop@amd.com>
6431 * graphite-clast-to-gimple.c: Replace v1, v2, lb, ub with
6432 bound_one, bound_two.
6434 2011-07-28 Sebastian Pop <sebastian.pop@amd.com>
6437 * graphite-clast-to-gimple.c (clast_get_body_of_loop): Handle
6439 (translate_clast): Same.
6440 (translate_clast_assignment): New.
6442 2011-07-28 Sebastian Pop <sebastian.pop@amd.com>
6444 PR tree-optimization/49876
6445 * sese.c (rename_uses): Do not return false on gloog_error: set
6446 the new_expr to integer_zero_node and continue code generation.
6447 (graphite_copy_stmts_from_block): Remove early exit on gloog_error.
6449 2011-07-28 Jakub Jelinek <jakub@redhat.com>
6452 * var-tracking.c (prepare_call_arguments): For non-MODE_INT stack
6453 arguments also check if they aren't initialized with a MODE_INT
6454 mode of the same size.
6456 2011-07-28 Aldy Hernandez <aldyh@redhat.com>
6458 * expr.c (get_bit_range): Handle *MEM_REF's.
6460 2011-07-28 Bernd Schmidt <bernds@codesourcery.com>
6462 * rtlanal.c (tablejump_p): False for returns.
6463 * reorg.c (first_active_target_insn): New static function.
6464 (find_end_label): Set JUMP_LABEL for a new returnjump.
6465 (optimize_skip, get_jump_flags, rare_destination,
6466 mostly_true_jump, get_branch_condition,
6467 steal_delay_list_from_target, own_thread_p,
6468 fill_simple_delay_slots, follow_jumps, fill_slots_from_thread,
6469 fill_eager_delay_slots, relax_delay_slots, make_return_insns,
6470 dbr_schedule): Adjust to handle ret_rtx in JUMP_LABELs.
6471 * jump.c (delete_related_insns): Likewise.
6472 (jump_to_label_p): New function.
6473 (redirect_target): New static function.
6474 (redirect_exp_1): Use it. Adjust to handle ret_rtx in JUMP_LABELS.
6475 (redirect_jump_1): Assert that the new label is nonnull.
6476 (redirect_jump): Likewise.
6477 (redirect_jump_2): Check for ANY_RETURN_P rather than NULL labels.
6478 * ifcvt.c (find_if_case_1): Take care when redirecting jumps to the
6480 (dead_or_predicable): Change NEW_DEST arg to DEST_EDGE. All callers
6481 changed. Ensure that the right label is passed to redirect_jump.
6482 * function.c (emit_return_into_block,
6483 thread_prologue_and_epilogue_insns): Ensure new returnjumps have
6484 ret_rtx in their JUMP_LABEL.
6485 * print-rtl.c (print_rtx): Handle ret_rtx in a JUMP_LABEL.
6486 * emit-rtl.c (skip_consecutive_labels): Allow the caller to
6487 pass ret_rtx as label.
6488 * cfglayout.c (fixup_reorder_chain): Use
6489 force_nonfallthru_and_redirect rather than force_nonfallthru.
6490 (duplicate_insn_chain): Copy JUMP_LABELs for returns.
6491 * rtl.h (ANY_RETURN_P): New macro.
6492 (jump_to_label_p): Declare.
6493 * resource.c (find_dead_or_set_registers): Handle ret_rtx in
6495 (mark_target_live_regs): Likewise.
6496 * basic-block.h (force_nonfallthru_and_redirect): Declare.
6497 * cfgrtl.c (force_nonfallthru_and_redirect): No longer static.
6498 * config/alpha/alpha.c (alpha_tablejump_addr_vec,
6499 alpha_tablejump_best_label): Remove functions.
6500 * config/alpha/alpha-protos.c (alpha_tablejump_addr_vec,
6501 alpha_tablejump_best_label): Remove declarations.
6502 * config/sh/sh.c (barrier_align, split_branches): Adjust for
6503 ret_rtx in JUMP_LABELs.
6504 * config/arm/arm.c (is_jump_table): Likewise.
6506 2011-07-28 Uros Bizjak <ubizjak@gmail.com>
6508 * config/i386/predicates.md (pic_32bit_opreand): Do not define as
6509 special predicate. Remove explicit mode checks.
6511 2011-07-28 Jakub Jelinek <jakub@redhat.com>
6513 * dwarf2out.c (resolve_addr): For -gdwarf-2 don't optimize
6514 DW_AT_data_member_location containing just DW_OP_plus_uconst.
6517 * dwarf2out.c (size_of_die, value_format, output_die): Use
6518 DW_FORM_udata instead of DW_FORM_data[48] for
6519 dw_val_class_unsigned_const DW_AT_data_member_location for DWARF 3.
6521 2011-07-28 H.J. Lu <hongjiu.lu@intel.com>
6523 * config/i386/i386.md (*tls_global_dynamic_64): Update
6526 2011-07-28 Uros Bizjak <ubizjak@gmail.com>
6529 * config/i386/i386.md (*tls_global_dynamic_64): Remove mode from
6530 tls_symbolic_operand check. Update code sequence for TARGET_X32.
6531 (tls_global_dynamic_64): Remove mode from tls_symbolic_operand check.
6532 (tls_dynamic_gnu2_64): Ditto.
6533 (*tls_dynamic_gnu2_lea_64): Ditto.
6534 (*tls_dynamic_gnu2_call_64): Ditto.
6535 (*tls_dynamic_gnu2_combine_64): Ditto.
6537 2011-07-28 H.J. Lu <hongjiu.lu@intel.com>
6539 * config.gcc: Set need_64bit_hwint to yes for x86 targets.
6541 2011-07-28 H.J. Lu <hongjiu.lu@intel.com>
6544 * config/i386/i386.md (strlen<mode>): Replace SWI48x with P.
6546 2011-07-28 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
6548 * config/arm/vfp.md ("*movdf_vfp"): Handle the VFP constraints
6549 before the core constraints. Adjust attributes.
6550 ("*thumb2_movdf_vfp"): Likewise.
6552 2011-07-28 Kai Tietz <ktietz@redhat.com>
6554 * tree-vrp.c (simplify_stmt_using_ranges): Remove TRUTH_NOT_EXPR case.
6555 (simplify_truth_ops_using_ranges): Likewise.
6556 (build_assert_expr_for): Likewise.
6557 (build_assert_expr_for_1): Remove TRUTH_NOT_EXPR case
6558 and handle BIT_NOT_EXPR for truth-operation.
6560 2011-07-28 Georg-Johann Lay <avr@gjlay.de>
6563 Undo r176835 from trunk
6564 2011-07-27 Georg-Johann Lay
6566 2011-07-28 Georg-Johann Lay <avr@gjlay.de>
6569 * config/avr/t-avr (LIB1ASMFUNCS): Remove _xmulhisi3_exit.
6570 Add _muluhisi3, _mulshisi3, _usmulhisi3.
6571 * config/avr/libgcc.S (__mulsi3): Rewrite.
6572 (__mulhisi3): Rewrite.
6573 (__umulhisi3): Rewrite.
6574 (__usmulhisi3): New.
6578 (__mulqi3, __mulqihi3, __umulqihi3, __mulhi3): Use DEFUN/ENDF to
6580 * config/avr/predicates.md (pseudo_register_operand): Rewrite.
6581 (pseudo_register_or_const_int_operand): New.
6582 (combine_pseudo_register_operand): New.
6586 * config/avr/avr.c (avr_rtx_costs): Handle costs for mult:SI.
6587 * config/avr/avr.md (QIHI, QIHI2): New mode iterators.
6588 (any_extend, any_extend2): New code iterators.
6589 (extend_prefix): New code attribute.
6590 (mulsi3): Rewrite. Turn insn to expander.
6593 (usmulhisi3): New expander.
6594 (*mulsi3): New insn-and-split.
6595 (mulu<mode>si3): New insn-and-split.
6596 (muls<mode>si3): New insn-and-split.
6597 (mulohisi3): New insn-and-split.
6598 (*uumulqihisi3, *uumulhiqisi3, *uumulhihisi3, *uumulqiqisi3,
6599 *usmulqihisi3, *usmulhiqisi3, *usmulhihisi3, *usmulqiqisi3,
6600 *sumulqihisi3, *sumulhiqisi3, *sumulhihisi3, *sumulqiqisi3,
6601 *ssmulqihisi3, *ssmulhiqisi3, *ssmulhihisi3, *ssmulqiqisi3): New
6603 (*mulsi3_call): Rewrite.
6604 (*mulhisi3_call): Rewrite.
6605 (*umulhisi3_call): Rewrite.
6606 (*usmulhisi3_call): New insn.
6607 (*muluhisi3_call): New insn.
6608 (*mulshisi3_call): New insn.
6609 (*mulohisi3_call): New insn.
6610 (extendqihi2): Use combine_pseudo_register_operand as predicate
6612 (extendqisi2): Ditto.
6613 (zero_extendqihi2): Ditto.
6614 (zero_extendqisi2): Ditto.
6615 (zero_extendhisi2): Ditto.
6616 (extendhisi2): Ditto. Don't early-clobber operand 0.
6618 2011-07-28 Uros Bizjak <ubizjak@gmail.com>
6620 * config/i386/i386.c (add->lea splitter): Add SWI mode to PLUS RTX.
6622 2011-07-27 Sebastian Pop <sebastian.pop@amd.com>
6624 PR tree-optimization/49471
6625 * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Build an unsigned
6626 iv only when the largest type is unsigned. Do not call
6627 lang_hooks.types.type_for_size.
6629 2011-07-27 Sebastian Pop <sebastian.pop@amd.com>
6632 * graphite-poly.c (apply_poly_transforms): Disable legality check
6633 after an openscop read.
6635 2011-07-27 Sebastian Pop <sebastian.pop@amd.com>
6638 * graphite-clast-to-gimple.c (translate_clast_user): Update use of
6639 copy_bb_and_scalar_dependences.
6640 * sese.c (rename_uses): Do not call gcc_assert. Set gloog_error.
6641 (graphite_copy_stmts_from_block): Update call to rename_uses.
6642 (copy_bb_and_scalar_dependences): Update call to
6643 graphite_copy_stmts_from_block.
6644 * sese.h (copy_bb_and_scalar_dependences): Update declaration.
6646 2011-07-27 Georg-Johann Lay <avr@gjlay.de>
6649 * config/avr/libgcc.S (__ffshi2): Don't skip 2-word instruction.
6650 (__ctzsi2): Result for 0 may be undefined.
6651 (__ctzhi2): Result for 0 may be undefined.
6652 (__popcounthi2): Don't clobber r30. Use __popcounthi2_tail.
6653 (__popcountsi2): Ditto. And don't clobber r26.
6654 (__popcountdi2): Ditto. And don't clobber r27.
6655 * config/avr/avr.md (UNSPEC_COPYSIGN): New c_enum.
6656 (parityhi2): New expand.
6657 (paritysi2): New expand.
6658 (popcounthi2): New expand.
6659 (popcountsi2): New expand.
6660 (clzhi2): New expand.
6661 (clzsi2): New expand.
6662 (ctzhi2): New expand.
6663 (ctzsi2): New expand.
6664 (ffshi2): New expand.
6665 (ffssi2): New expand.
6666 (copysignsf3): New insn.
6667 (bswapsi2): New expand.
6668 (*parityhi2.libgcc): New insn.
6669 (*parityqihi2.libgcc): New insn.
6670 (*paritysihi2.libgcc): New insn.
6671 (*popcounthi2.libgcc): New insn.
6672 (*popcountsi2.libgcc): New insn.
6673 (*popcountqi2.libgcc): New insn.
6674 (*popcountqihi2.libgcc): New insn-and-split.
6675 (*clzhi2.libgcc): New insn.
6676 (*clzsihi2.libgcc): New insn.
6677 (*ctzhi2.libgcc): New insn.
6678 (*ctzsihi2.libgcc): New insn.
6679 (*ffshi2.libgcc): New insn.
6680 (*ffssihi2.libgcc): New insn.
6681 (*bswapsi2.libgcc): New insn.
6683 2011-07-27 Uros Bizjak <ubizjak@gmail.com>
6685 * config/i386/i386.c (ix86_expand_move): Do not explicitly check
6686 the mode of symbolic_opreand RTXes.
6688 2011-07-27 Uros Bizjak <ubizjak@gmail.com>
6690 * config/i386/predicates.md (x86_64_movabs_operand): Return false
6691 for pic_32bit_operand RTXes.
6692 * config/i386/i386.c (ix86_expand_move): Check x86_64_movabs_operand
6695 2011-07-27 Kai Tietz <ktietz@redhat.com>
6697 * config/i386/i386.c (ix86_option_override_internal): Allow -mabi
6699 (ix86_handle_abi_attribute): Allow function attributes
6700 ms_abi/sysv_abi in 32-bit mode, too.
6701 * doc/extend.texi: Adjust attribute documentation.
6703 * gimple-fold.c (or_comparisons_1): Remove TRUTH_AND/OR
6704 expression handling.
6705 (and_var_with_comparison_1): Likewise.
6707 2011-07-27 Aldy Hernandez <aldyh@redhat.com>
6709 * params.h (ALLOW_STORE_DATA_RACES): New.
6710 * params.def (PARAM_ALLOW_STORE_DATA_RACES): New.
6711 * Makefile.in (expr.o): Depend on PARAMS_H.
6712 * machmode.h (get_best_mode): Add argument.
6713 * fold-const.c (optimize_bit_field_compare): Add argument to
6715 (fold_truthop): Same.
6716 * ifcvt.c (noce_emit_move_insn): Add argument to store_bit_field.
6717 * expr.c (emit_group_store): Same.
6718 (copy_blkmode_from_reg): Same.
6719 (write_complex_part): Same.
6720 (optimize_bitfield_assignment_op): Add argument.
6721 Add argument to get_best_mode.
6722 (get_bit_range): New.
6723 (expand_assignment): Calculate maxbits and pass it down accordingly.
6724 (store_field): New argument.
6725 (expand_expr_real_2): New argument to store_field. Include params.h.
6726 * expr.h (store_bit_field): New argument.
6727 * stor-layout.c (get_best_mode): Restrict mode expansion by taking
6728 into account maxbits.
6729 * calls.c (store_unaligned_arguments_into_pseudos): New argument
6731 * expmed.c (store_bit_field_1): New argument. Use it.
6732 (store_bit_field): Same.
6733 (store_fixed_bit_field): Same.
6734 (store_split_bit_field): Same.
6735 (extract_bit_field_1): Pass new argument to get_best_mode.
6736 (extract_bit_field): Same.
6737 * stmt.c (store_bit_field): Pass new argument to store_bit_field.
6738 * doc/invoke.texi: Document parameter allow-store-data-races.
6740 2011-07-27 Jakub Jelinek <jakub@redhat.com>
6742 * dwarf2out.c (gen_producer_string): Ignore also -fverbose-asm option.
6744 2011-07-27 Kai Tietz <ktietz@redhat.com>
6746 * tree-vrp.c (extract_range_from_binary_expr): Remove
6747 TRUTH-binary cases and add new bitwise-cases.
6748 (extract_range_from_assignment): Likewise.
6749 (register_edge_assert_for_1): Likeiwise.
6750 (register_edge_assert_for): Likewise.
6751 (simplify_truth_ops_using_ranges): Likewise.
6752 (simplify_stmt_using_ranges): Likewise.
6754 2011-07-26 H.J. Lu <hongjiu.lu@intel.com>
6757 * config/i386/i386.c (ix86_delegitimize_address): Call
6758 simplify_gen_subreg for PIC with mode of x only if modes of
6759 x and orig_x are different.
6761 2011-07-26 Jakub Jelinek <jakub@redhat.com>
6763 * dwarf2out.c (output_macinfo_op): Ensure fd->filename points
6764 to GC allocated copy of the string.
6765 (dwarf2out_finish): Emit .debug_macinfo or .debug_macro sections
6766 before .debug_line, not after it.
6768 2011-07-26 Sebastian Pop <sebastian.pop@amd.com>
6771 * tree-chrec.h (evolution_function_is_affine_p): Recursively call
6772 evolution_function_is_affine_p on CHREC_RIGHT.
6774 2011-07-26 Sebastian Pop <sebastian.pop@amd.com>
6776 * tree-data-ref.c (max_stmt_executions_tree): Do not call
6777 lang_hooks.types.type_for_size.
6779 2011-07-26 Sebastian Pop <sebastian.pop@amd.com>
6782 * graphite-scop-detection.c (graphite_can_represent_loop): Discard
6783 loops using wrapping semantics.
6785 2011-07-26 Sebastian Pop <sebastian.pop@amd.com>
6788 * tree-scalar-evolution.c (instantiate_scev_r): Return
6789 chrec_dont_know for ADDR_EXPR.
6791 2011-07-26 Uros Bizjak <ubizjak@gmail.com>
6792 H.J. Lu <hongjiu.lu@intel.com>
6796 * config/i386/i386.c (ix86_expand_move): Call convert_to_mode
6797 if legitimize_tls_address returned operand in wrong mode. Allow
6798 SImode and DImode symbolic operand for PIC. Call convert_to_mode
6799 if legitimize_pic_address returned operand in wrong mode.
6801 2011-07-26 Martin Jambor <mjambor@suse.cz>
6803 * tree-sra.c (tree_non_mode_aligned_mem_p): Strip conversions and
6804 return false for invariants.
6806 2011-07-26 Uros Bizjak <ubizjak@gmail.com>
6808 * config/i386/i386.md (add->lea splitter): Implement using SWI
6809 mode iterator. Change operand 2 predicate to <nonmemory_operand>.
6810 (add->lea zext splitter): Change operand 2 predicate to
6811 x86_64_nonmemory_operand.
6813 2011-07-26 Richard Guenther <rguenther@suse.de>
6815 * predict.c (maybe_hot_frequency_p): Make sure a zero entry-block
6816 frequency makes everything hot.
6818 2011-07-26 Richard Guenther <rguenther@suse.de>
6820 PR tree-optimization/49840
6821 * tree-vrp.c (range_fits_type_p): Properly handle full
6822 double-int precision.
6824 2011-07-26 Martin Jambor <mjambor@suse.cz>
6827 * ipa-cp.c (update_profiling_info): Avoid overflow when updating
6829 (update_specialized_profile): Likewise.
6831 2011-07-26 Uros Bizjak <ubizjak@gmail.com>
6832 H.J. Lu <hongjiu.lu@intel.com>
6837 * config/i386/i386.md (i): Change SImode attribute to "e".
6838 (g): Change SImode attribute to "rme".
6839 (di): Change SImode attribute to "nF".
6840 (general_operand): Change SImode attribute to x86_64_general_operand.
6841 (general_szext_operand): Change SImode attribute to
6842 x86_64_szext_general_operand.
6843 (immediate_operand): Change SImode attribute to
6844 x86_64_immediate_operand.
6845 (nonmemory_operand): Change SImode attribute to
6846 x86_64_nonmemory_operand.
6847 (*movdi_internal_rex64): Remove mode from pic_32bit_operand check.
6848 (*movsi_internal): Ditto. Use "e" constraint in alternative 2.
6849 (*lea_1): Use SWI48 mode iterator.
6850 (*lea_1_zext): New insn pattern.
6851 (testsi_ccno_1): Use x86_64_nonmemory_operand predicate for operand 2.
6853 (*add<mode>1): Use x86_64_general_operand predicate for operand 2.
6854 Update operand constraints.
6855 (addsi_1_zext): Ditto.
6856 (*add<mode>2): Ditto.
6857 (*addsi_3_zext): Ditto.
6858 (*subsi_1_zext): Ditto.
6859 (*subsi_2_zext): Ditto.
6860 (*subsi_3_zext): Ditto.
6861 (*addsi3_carry_zext): Ditto.
6862 (*<plusminus_insn>si3_zext_cc_overflow): Ditto.
6863 (*mulsi3_1_zext): Ditto.
6865 (*andsi_1_zext): Ditto.
6866 (*andsi_2_zext): Ditto.
6867 (*<any_or:code>si_1_zext): Ditto.
6868 (*<any_or:code>si_2_zext): Ditto.
6869 (*test<mode>_1): Use <general_operand> predicate for operand 1.
6870 (*and<mode>_2): Ditto.
6871 (mov<mode>cc): Use <general_operand> predicate for operands 1 and 2.
6872 (add->lea splitter): Check operand modes in insn constraint. Extend
6873 operands less than SImode wide to SImode.
6874 (add->lea zext splitter): Do not extend input operands to DImode.
6875 (*lea_general_1): Handle only QImode and HImode operands.
6876 (*lea_general_2): Ditto.
6877 (*lea_general_3): Ditto.
6878 (*lea_general_1_zext): Remove.
6879 (*lea_general_2_zext): Ditto.
6880 (*lea_general_3_zext): Ditto.
6881 (*lea_general_4): Check operand modes in insn constraint. Extend
6882 operands less than SImode wide to SImode.
6883 (ashift->lea splitter): Ditto.
6884 * config/i386/i386.c (ix86_print_operand_address): Print address
6885 registers with 'q' modifier on 64bit targets.
6886 * config/i386/predicates.md (pic_32bit_opreand): Define as special
6887 predicate. Reject non-SI and non-DI modes.
6889 2011-07-25 Andrew Pinski <apinski@cavium.com>
6892 * tree-inline.c (remap_gimple_op_r): Copy TREE_THIS_VOLATILE and
6893 TREE_THIS_NOTRAP into the inner most MEM_REF.
6894 Always copy TREE_THIS_VOLATILE.
6895 * tree-sra.c (ptr_parm_has_direct_uses): Check that the lhs, rhs and
6896 arguments are not volatile references.
6898 2011-07-25 Richard Henderson <rth@redhat.com>
6900 * insn-notes.def (NOTE_INSN_CFA_RESTORE_STATE): Remove.
6901 * final.c (final_scan_insn): Don't test for it.
6902 (rest_of_clean_state): Likewise.
6904 2011-07-25 Richard Henderson <rth@redhat.com>
6907 * config/rs6000/rs6000.c (rs6000_frame_related): Return the insn.
6908 (emit_frame_save): Likewise.
6909 (rs6000_emit_prologue): Move the FRAME_RELATED_EXPR from the save
6910 insn onto a dummy blockage insn after the join label.
6912 2011-07-25 Richard Henderson <rth@redhat.com>
6914 * dwarf2cfi.c (dw_trace_info): Add ID member.
6915 (get_trace_index): Remove. Change users to use ID member.
6916 (before_next_cfi_note): New.
6917 (connect_traces): Remove unreachable traces before the main loop.
6918 Look across one trace and generate remember/restore_state if needed.
6920 2011-07-25 Richard Henderson <rth@redhat.com>
6922 * dwarf2cfi.c (dump_cfi_row, debug_cfi_row): New.
6924 2011-07-25 Joern Rennecke <joern.rennecke@embecosm.com>
6926 * genattr.c (write_upcase, gen_attr <enum definition writing>):
6928 * genattr-common.c ... here.
6929 (main): Call gen_attr.
6930 * optc-gen.awk: Make generated program include insn-attr-common.h .
6931 * Makefile.in (oprions.o): Depend on insn-attr-common.h
6933 2011-07-25 Anatoly Sokolov <aesok@post.ru>
6935 * config/m32c/m32c.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
6936 PRINT_OPERAND_PUNCT_VALID_P): Remove macro.
6937 * config/m32c/m32c-protos.h (m32c_print_operand_punct_valid_p,
6938 m32c_print_operand, m32c_print_operand_address): Remove.
6939 * config/m32c/m32c.c (m32c_print_operand_punct_valid_p): Make static.
6940 Change return type to bool. Change argument type to bool.
6941 (m32c_print_operand, m32c_print_operand_address): Make static.
6942 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS,
6943 TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
6945 2011-07-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6947 * doc/sourcebuild.texi (Effective-Target Keywords, Environment
6948 attributes): Document mmap.
6950 2011-07-25 Anatoly Sokolov <aesok@post.ru>
6952 * config/mmix/mmix.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
6953 PRINT_OPERAND_PUNCT_VALID_P): Remove macro.
6954 * config/mmix/mmix-protos.h (mmix_print_operand_punct_valid_p,
6955 mmix_print_operand, mmix_print_operand_address): Remove.
6956 * config/mmix/mmix.c (mmix_print_operand_punct_valid_p): Make static.
6957 Change return type to bool. Change argument type to bool.
6958 (mmix_print_operand, mmix_print_operand_address): Make static.
6959 (mmix_intval, mmix_output_condition): Change 'x' argument type
6961 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS,
6962 TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
6964 2011-07-25 Georg-Johann Lay <avr@gjlay.de>
6967 * config/avr/avr.c (out_shift_with_cnt): Use tmp_reg as
6968 shift counter for x << x and x >> x shifts.
6970 2011-07-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6973 * config.gcc: Reject *-*-solaris2 configuration.
6975 2011-07-25 Richard Sandiford <richard.sandiford@linaro.org>
6977 PR tree-optimization/49809
6978 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Use
6979 gimple_get_lhs instead of gimple_assign_lhs.
6981 2011-07-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6983 * system.h [__cplusplus]: Wrap C function declarations in extern "C".
6985 2011-07-25 Richard Guenther <rguenther@suse.de>
6987 PR tree-optimization/49822
6988 * tree-ssa-forwprop.c (remove_prop_source_from_use): Robustify
6989 more. Make sure to preserve stmts with side-effects. Properly
6990 handle virtual defs, follow a longer def chain.
6992 2011-07-22 Romain Geissler <romain.geissler@gmail.com>
6997 * Makefile.in: Do not flatten c-family directory when installing
7000 2011-07-25 Eric Botcazou <ebotcazou@adacore.com>
7002 * ipa-inline.c (can_inline_edge_p): Look into DECL_STRUCT_FUNCTION of
7003 original nodes if we are dealing with virtual clones.
7005 2011-07-25 Bernd Schmidt <bernds@codesourcery.com>
7007 * common/config/c6x/c6x-common.c: New file.
7009 2011-07-25 Roman Zhuykov <zhroma@ispras.ru>
7011 * tree-flow.h (tree_ssa_loop_version): Remove unused declaration.
7013 2011-07-25 Richard Guenther <rguenther@suse.de>
7015 PR tree-optimization/49715
7016 * tree-vrp.c: Include expr.h and optabs.h.
7017 (range_fits_type_): New function.
7018 (simplify_float_conversion_using_ranges): Likewise.
7019 (simplify_stmt_using_ranges): Call it.
7020 * Makefile.in (tree-vrp.o): Add $(EXPR_H) and $(OPTABS_H) dependencies.
7021 * optabs.c (can_float_p): Export.
7022 * optabs.h (can_float_p): Declare.
7024 2011-07-25 Richard Guenther <rguenther@suse.de>
7026 * tree-vrp.c (num_vr_values, values_propagated): New global vars.
7027 (get_value_range): For out-of-range SSA names or names created
7028 after propagation return a read-only varying range.
7029 (dump_all_value_ranges): Adjust.
7030 (vrp_initialize): Likewise.
7031 (vrp_finalize): Likewise.
7033 2011-07-24 Richard Henderson <rth@redhat.com>
7036 * dwarf2cfi.c (connect_traces): Allow unvisited traces. Skip
7039 2011-07-24 Richard Henderson <rth@redhat.com>
7042 * dwarf2cfi.c (dwarf2out_stack_adjust): Move A_O_A test earlier.
7043 (dwarf2out_notice_stack_adjust): Use args_size from call_insn.
7045 2011-07-24 Richard Henderson <rth@redhat.com>
7048 * dwarf2cfi.c (create_trace_edges): Handle sequences properly.
7050 2011-07-24 Richard Henderson <rth@redhat.com>
7052 * dwarf2cfi.c (maybe_record_trace_start): Add abnormal parameter.
7053 Zero args_size for abnormal edges. Adjust all callers.
7055 2011-07-24 Richard Henderson <rth@redhat.com>
7058 * dwarf2cfi.c (cfi_row_equal_p): Don't compare args_size.
7060 2011-07-24 H.J. Lu <hongjiu.lu@intel.com>
7063 * collect2.c (demangle_flag): Removed.
7065 2011-07-24 Sandra Loosemore <sandra@codesourcery.com>
7067 * configure.ac (demangler_in_ld): Default to yes.
7068 * configure: Regenerated.
7069 * collect2.c (main): When HAVE_LD_DEMANGLE is defined, don't
7070 mess with COLLECT_NO_DEMANGLE, and just pass --demangle and
7071 --no-demangle options straight through to ld. When
7072 HAVE_LD_DEMANGLE is not defined, set COLLECT_NO_DEMANGLE in a
7073 way that has the intended effect on Windows.
7075 2011-07-23 Richard Henderson <rth@redhat.com>
7077 * dwarf2cfi.c: Include basic-block.h.
7078 (dw_label_info): Remove.
7079 (trace_work_list, trace_index): New.
7080 (remember_row, emit_cfa_remember): Remove.
7081 (dw_trace_info_hash, dw_trace_info_eq): New.
7082 (get_trace_index, get_trace_info): New.
7083 (save_point_p): New.
7084 (free_cfi_row): Remove.
7085 (add_cfi): Do not emit DW_CFA_remember_state.
7086 (cfa_row_equal_p): New.
7087 (barrier_args_size): Remove.
7088 (compute_barrier_args_size_1, compute_barrier_args_size): Remove.
7089 (dwarf2out_notice_stack_adjust): Don't compute_barrier_args_size.
7090 (maybe_record_trace_start, create_trace_edges, scan_trace): New.
7091 (dwarf2out_cfi_begin_epilogue): Remove.
7092 (dwarf2out_frame_debug_restore_state): Remove.
7093 (connect_traces, create_pseudo_cfg): New.
7094 (create_cfi_notes, execute_dwarf2_frame): Rewrite using traces.
7095 * Makefile.in (dwarf2cfi.o): Update.
7097 2011-07-23 Richard Henderson <rth@redhat.com>
7099 * dwarf2cfi.c (dw_trace_info): New.
7100 (dw_label_info): New.
7101 (cie_return_save): New.
7103 (queued_args_size): Rename from args_size. Update all users.
7104 (cfa_store, cfa_temp, regs_saved_in_regs): Remove.
7105 (def_cfa_1): Use cur_trace instead of cfa_*.
7106 (dwarf2out_stack_adjust, record_reg_saved_in_reg): Likewise.
7107 (clobbers_queued_reg_save, reg_saved_in): Likewise.
7108 (dwarf2out_frame_debug_expr): Likewise.
7109 (create_cie_data): Split out from ...
7110 (execute_dwarf2_frame): ... here. Initialize cur_trace.
7112 2011-07-23 Richard Henderson <rth@redhat.com>
7114 * dwarf2cfi.c (regs_saved_in_regs): Allocate from heap, not gc.
7115 Update all users to match.
7116 (execute_dwarf2_frame): Free reg_saved_in_data.
7118 2011-07-23 Richard Henderson <rth@redhat.com>
7120 * dwarf2cfi.c (queued_reg_save): Reorder for packing. Don't GTY.
7121 (queued_reg_saves): Don't GTY. Change to a VEC.
7122 (queue_reg_save): Update to match.
7123 (dwarf2out_flush_queued_reg_saves): Likewise.
7124 (clobbers_queued_reg_save): Likewise.
7125 (reg_saved_in): Likewise.
7126 (execute_dwarf2_frame): Free queued_reg_saves.
7128 2011-07-23 Richard Henderson <rth@redhat.com>
7130 * dwarf2cfi.c (dw_cfi_row_ref): Remove. Update all users.
7132 2011-07-23 Richard Henderson <rth@redhat.com>
7134 * dwarf2cfi.c (add_cfi_args_size): Split out from...
7135 (dwarf2out_args_size): ... here.
7136 (add_cfi_restore): Split out from ...
7137 (dwarf2out_frame_debug_cfa_restore): ... here.
7138 (def_cfa_0): Split out from ...
7139 (def_cfa_1): ... here.
7140 (cfi_oprnd_equal_p, cfi_equal_p): New.
7141 (change_cfi_row): New.
7142 (add_cfis_to_fde): Set fde->dw_fde_switch_cfi_index.
7143 (create_cfi_notes): Use change_cfi_row at SWITCH_TEXT note.
7144 (output_cfis): Remove.
7145 * dwarf2out.c (output_fde): Simplify output_cfi loop.
7146 (dwarf2out_switch_text_section): Don't call output_cfis.
7147 (dw_val_equal_p, loc_descr_equal_p_1, loc_descr_equal_p): New.
7148 * dwarf2out.h: Update decls.
7149 (enum dw_val_class): Add dw_val_class_none.
7151 2011-07-23 Richard Henderson <rth@redhat.com>
7153 * dwarf2cfi.c (update_row_reg_save): New.
7154 (dwarf2out_frame_debug_cfa_expression): Use it.
7155 (dwarf2out_frame_debug_cfa_restore): Likewise.
7156 (reg_save): Likewise. Do not emit DW_CFA_same_value.
7158 2011-07-23 Richard Henderson <rth@redhat.com>
7160 * dwarf2cfi.c (add_cfi_insn): Rename from cfi_insn. Update all users.
7162 2011-07-23 Richard Henderson <rth@redhat.com>
7164 * dwarf2cfi.c (dw_cfi_row, dw_cfi_row_ref): New.
7166 (new_cfi_row, copy_cfi_row, free_cfi_row): New.
7167 (cfa, old_cfa, cfa_remember, old_cfa_remember, old_args_size): Remove.
7168 (cur_row, remember_row): New.
7169 (def_cfa_1): Use cur_row instead of the old_* variables.
7170 (dwarf2out_frame_debug_restore_state): Similarly.
7171 (dwarf2out_args_size, dwarf2out_notice_stack_adjust): Likewise.
7172 (dwarf2out_frame_debug_def_cfa): Use a local variable instead of cfa.
7173 (dwarf2out_frame_debug_adjust_cfa): Likewise.
7174 (dwarf2out_frame_debug_cfa_offset): Likewise.
7175 (dwarf2out_frame_debug_expr): Likewise.
7176 (execute_dwarf2_frame): Set up cur_row.
7177 * dwarf2out.h (struct cfa_loc): Mark for GTY.
7179 2011-07-23 Richard Henderson <rth@redhat.com>
7181 * basic-block.h (EDGE_PRESERVE): New.
7182 (EDGE_ALL_FLAGS, EDGE_COMPLEX): Include it.
7183 * bb-reorder.c: Include except.h.
7184 (fix_up_crossing_landing_pad): New.
7185 (find_rarely_executed_basic_blocks_and_crossing_edges): Place
7186 landing pads in the right partition. Duplicate as necessary.
7187 (partition_hot_cold_basic_blocks): Fix up DF info after
7188 duplicating landing pads.
7189 * cfg.c (dump_edge_info): Add crossing and preserve to bitnames.
7190 * cfgrtl.c (rtl_verify_flow_info_1): Validate that EDGE_CROSSING
7191 is set properly. Validate that EH edges are not CROSSING.
7192 * except.c (expand_dw2_landing_pad_for_region): Split out from ...
7193 (dw2_build_landing_pads): ... here.
7194 (convert_to_eh_region_ranges): Remove code to fixup crossing
7196 * except.h (expand_dw2_landing_pad_for_region): Declare.
7197 * tree-cfg.c (gimple_can_merge_blocks_p): Don't merge PRESERVE edges.
7199 2011-07-23 Richard Earnshaw <rearnsha@arm.com>
7202 * arm.c (aapcs_vfp_allocate_return_reg): Return NULL on failure.
7204 2011-07-22 Jason Merrill <jason@redhat.com>
7206 * doc/invoke.texi (C++ Dialect Options): Document -Wno-narrowing.
7208 2011-07-22 Richard Henderson <rth@redhat.com>
7210 * bb-reorder.c (gate_handle_partition_blocks): Honor optimize.
7212 2011-07-22 Richard Henderson <rth@redhat.com>
7214 * jump.c (maybe_propagate_label_ref): Split out of...
7215 (mark_all_labels): ... here. Do not attempt label_ref
7216 propagation while in cfglayout mode.
7218 2011-07-22 Jakub Jelinek <jakub@redhat.com>
7220 * dwarf2out.c (struct macinfo_struct): Change code to unsigned char.
7221 (DEBUG_MACRO_SECTION, DEBUG_MACRO_SECTION_LABEL): Define.
7222 (dwarf_attr_name): Handle DW_AT_GNU_macros.
7223 (dwarf2out_define): If the vector is empty and
7224 lineno is 0, emit a dummy entry first.
7225 (dwarf2out_undef): Likewise. Remove redundant semicolon.
7226 (htab_macinfo_hash, htab_macinfo_eq, output_macinfo_op,
7227 optimize_macinfo_range): New functions.
7228 (output_macinfo): Use them. If !dwarf_strict and .debug_str is
7229 mergeable, optimize longer strings using
7230 DW_MACRO_GNU_{define,undef}_indirect and if HAVE_COMDAT_GROUP,
7231 optimize longer sequences of define/undef ops from headers
7232 using DW_MACRO_GNU_transparent_include. For !dwarf_strict
7233 emit a section headers.
7234 (dwarf2out_init): For !dwarf_strict set debug_macinfo_section
7235 and macinfo_section_label to DEBUG_MACRO_SECTION
7236 resp. DEBUG_MACRO_SECTION_LABEL.
7237 (dwarf2out_finish): For !dwarf_strict emit DW_AT_GNU_macros
7238 instead of DW_AT_macro_info.
7241 * common.opt (grecord-gcc-switches, gno-record-gcc-switches): New
7243 * dwarf2out.c: Include opts.h.
7244 (dchar_p): New typedef. Define heap VEC for it.
7245 (producer_string): New variable.
7246 (gen_producer_string): New function.
7247 (gen_compile_unit_die): Use it.
7248 (dwarf2out_finish): Fix up comp_unit_die () DW_AT_producer if needed.
7249 * Makefile.in (dwarf2out.o): Depend on $(OPTS_H).
7250 * doc/invoke.texi: Document -grecord-gcc-switches and
7251 -gno-record-gcc-switches, add a -grecord-gcc-switches reference
7252 to -frecord-gcc-switches description.
7254 2011-07-22 Jason Merrill <jason@redhat.com>
7257 * c-decl.c (c_linkage_bindings): Define.
7259 2011-07-22 Eric Botcazou <ebotcazou@adacore.com>
7262 * var-tracking.c (vt_finalize): Always free windowed_parm_regs.
7264 2011-07-22 H.J. Lu <hongjiu.lu@intel.com>
7266 * config/i386/i386.c (ix86_option_override_internal): Disallow
7268 (ix86_init_builtins): Call ix86_init_builtins_va_builtins_abi
7269 only for TARGET_LP64.
7270 (ix86_handle_abi_attribute): Check TARGET_LP64 instead of TARGET_64BIT.
7272 2011-07-22 Michael Meissner <meissner@linux.vnet.ibm.com>
7274 * config/rs6000/rs6000.c (rs6000_xcoff_strip_dollar): Rewrite to
7275 avoid warnings when GCC is built with a C++ compiler.
7277 2011-07-22 Martin Jambor <mjambor@suse.cz>
7280 * cgraphunit.c (verify_edge_corresponds_to_fndecl): Return false
7281 if decl node is in another partition, call cgraph_get_node only once.
7283 2011-07-22 Uros Bizjak <ubizjak@gmail.com>
7285 * config.gcc (x86_64-*-linux*): Set
7286 default_gnu_indirect_function to yes.
7288 2011-07-22 Richard Guenther <rguenther@suse.de>
7290 PR tree-optimization/45819
7291 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Properly
7292 preserve volatile and notrap flags.
7294 2011-07-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7295 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7298 * configure.ac: Test AM_ICONV with CXX.
7299 * configure: Regenerate.
7300 * config/sol2-c.c (solaris_format_types): Use EXPORTED_CONST.
7302 2011-07-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7305 * graphite-clast-to-gimple.c (CLOOG_LANGUAGE_C): Provide if missing.
7306 (set_cloog_options): Use it.
7308 2011-07-22 Jakub Jelinek <jakub@redhat.com>
7311 * gcc.c (main): Call stack_limit_increase (64MB).
7312 * toplev.c (toplev_main): Likewise.
7314 2011-07-21 H.J. Lu <hongjiu.lu@intel.com>
7316 * config/i386/i386.c (ix86_expand_call): Call copy_to_mode_reg
7317 instead of force_reg.
7319 2011-07-21 H.J. Lu <hongjiu.lu@intel.com>
7321 * config/i386/i386.c (ix86_expand_move): Convert to Pmode if
7322 needed and use force_reg after convert.
7323 (ix86_expand_call): Likewise.
7324 (ix86_expand_special_args_builtin): Likewise.
7325 (ix86_expand_builtin): Likewise.
7327 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
7331 * graphite-clast-to-gimple.c (type_for_clast_term): Pass v1 and v2
7332 in parameter. Initialize v1 and v2 based on the values returned
7333 by clast_name_to_lb_ub.
7334 (type_for_clast_red): Pass v1 and v2 in parameter, and set their
7336 (type_for_clast_bin): Same.
7337 (type_for_clast_expr): Same.
7338 (type_for_clast_eq): Update calls to type_for_clast_expr.
7339 (type_for_clast_for): Same.
7340 (build_iv_mapping): Same.
7341 * graphite-ppl.h (value_min): New.
7343 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
7345 * graphite-clast-to-gimple.c (type_for_interval): Generate signed
7346 types whenever possible.
7348 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
7350 * graphite-clast-to-gimple.c (struct clast_name_index): Add lb
7352 (new_clast_name_index): Add lb and ub parameters.
7353 (free_clast_name_index): New.
7354 (clast_name_to_lb_ub): New.
7355 (save_clast_name_index): Add lb and ub parameters.
7356 (compute_bounds_for_param): New.
7357 (type_for_level): Removed.
7358 (type_for_clast_for): Removed level parameter. Do not call
7360 (graphite_create_new_loop): Store the lb and ub for the clast_name
7361 of the iterator of the loop that has been generated.
7362 (graphite_create_new_loop_guard): Remove parameter level.
7363 (create_params_index): Store the lb and ub of each parameter.
7364 (gloog): Use free_clast_name_index. Pass to create_params_index
7367 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
7369 * graphite-clast-to-gimple.c (max_signed_precision_type): Removed.
7370 (max_precision_type): Inline max_signed_precision_type.
7371 (type_for_clast_red): Use max_precision_type.
7372 (type_for_clast_bin): Same.
7373 (type_for_clast_for): Same.
7375 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
7377 * graphite-clast-to-gimple.c (gcc_type_for_interval): Renamed
7379 (gcc_type_for_value): Renamed type_for_value.
7380 (gcc_type_for_clast_term): Renamed type_for_clast_term.
7381 (gcc_type_for_clast_expr): Renamed type_for_clast_expr.
7382 (gcc_type_for_clast_red): Renamed type_for_clast_red.
7383 (gcc_type_for_clast_bin): Renamed type_for_clast_bin.
7384 (gcc_type_for_clast_eq): Renamed type_for_clast_eq.
7385 (graphite_translate_clast_equation): Update calls.
7386 (compute_type_for_level): Renamed type_for_level.
7387 (gcc_type_for_iv_of_clast_loop): Renamed type_for_clast_for.
7388 (build_iv_mapping): Update calls.
7389 (graphite_create_new_loop_guard): Same.
7391 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
7393 * graphite-clast-to-gimple.c (clast_get_body_of_loop): Add fixme
7396 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
7398 * graphite-clast-to-gimple.c (struct ivs_params): New.
7399 (clast_name_to_gcc): Use ivs_params to pass around parameters.
7400 (clast_to_gcc_expression): Same.
7401 (clast_to_gcc_expression_red): Same.
7402 (gcc_type_for_clast_term): Same.
7403 (gcc_type_for_clast_expr): Same.
7404 (gcc_type_for_clast_red): Same.
7405 (gcc_type_for_clast_bin): Same.
7406 (gcc_type_for_clast_eq): Same.
7407 (graphite_translate_clast_equation): Same.
7408 (graphite_create_guard_cond_expr): Same.
7409 (graphite_create_new_guard): Same.
7410 (graphite_create_new_loop): Same.
7411 (build_iv_mapping): Same.
7412 (translate_clast_user): Same.
7413 (graphite_create_new_loop_guard): Same.
7414 (translate_clast): Same.
7415 (translate_clast_for_loop): Same.
7416 (translate_clast_for): Same.
7417 (translate_clast_guard): Same.
7418 (initialize_cloog_names): Fix typo.
7419 (gloog): Initialize an ivs_params struct, pass it to translate_clast.
7421 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
7423 * graphite-clast-to-gimple.c (struct clast_name_index): Add level.
7424 (new_clast_name_index): Add level parameter.
7425 (clast_name_to_level): New.
7426 (save_clast_name_index): Add level parameter.
7427 (newivs_to_depth_to_newiv): Removed.
7428 (clast_name_to_gcc): Inlined newivs_to_depth_to_newiv.
7429 (graphite_create_new_loop): Add level parameter. Pass level to
7430 save_clast_name_index.
7431 (translate_clast_for_loop): Pass level to graphite_create_new_loop.
7432 (create_params_index): Pass level to save_clast_name_index.
7434 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
7436 * graphite-clast-to-gimple.c (graphite_create_new_loop): Do not
7437 recompute type, lb, and ub. Get them from...
7438 (graphite_create_new_loop_guard): ...here. Pass in parameter
7439 pointers to type, lb, and ub.
7440 (translate_clast_for_loop): Update function calls.
7441 (translate_clast_for): Same.
7443 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
7445 * graphite-clast-to-gimple.c (compute_bounds_for_level): Call
7447 (translate_clast_for_loop): Pass loop level to dependency_in_loop_p.
7448 (gcc_type_for_iv_of_clast_loop): Update use of level.
7449 (gloog): Start counting nesting level from 0.
7450 * graphite-clast-to-gimple.h (get_scattering_level): Removed.
7451 * graphite-dependences.c (graphite_carried_dependence_level_k): Call
7452 psct_dynamic_dim on level.
7454 2011-07-21 H.J. Lu <hongjiu.lu@intel.com>
7456 * config/i386/i386.c (ix86_legitimize_address): Convert to
7459 2011-07-21 H.J. Lu <hongjiu.lu@intel.com>
7461 * config/i386/i386.c (function_value_64): Always return pointers
7463 (ix86_promote_function_mode): New.
7464 (TARGET_PROMOTE_FUNCTION_MODE): Likewise.
7466 2011-07-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7468 PR tree-optimization/49749
7469 * tree-ssa-reassoc.c (get_rank): Fix operand scan conditions and
7470 remove no-longer-used maxrank variable.
7472 2011-07-21 Georg-Johann Lay <avr@gjlay.de>
7474 * config/avr/avr.c (final_prescan_insn): Fix printing of rtx_costs.
7476 2011-07-21 Jason Merrill <jason@redhat.com>
7478 * system.h (HAVE_DESIGNATED_UNION_INITIALIZERS): New.
7479 * recog.h (struct insn_data_d): Check it instead of
7480 HAVE_DESIGNATED_INITIALIZERS.
7481 * genoutput.c (output_insn_data): Likewise.
7483 2011-07-21 Richard Guenther <rguenther@suse.de>
7485 PR tree-optimization/49770
7486 * tree-ssa-sccvn.c (valueize_refs_1): Return whether we
7487 valueized any operand. Renamed from ...
7488 (valueize_refs): ... this. New wrapper around valueize_refs_1.
7489 (valueize_shared_reference_ops_from_ref): Return whether we
7490 valueized any operand.
7491 (vn_reference_lookup): Only when we valueized any operand
7492 use the valueized reference for alias analysis. Do not preserve
7493 the original reference tree in this case.
7495 2011-07-21 Uros Bizjak <ubizjak@gmail.com>
7497 * config/i386/i386.c (ix86_decompose_address): Reject all but
7498 register operands and subregs of DImode hard registers in index.
7500 2011-07-21 Kai Tietz <ktietz@redhat.com>
7502 * fold-const.c (fold_unary_loc): Preserve indirect
7503 comparison cast to none-boolean type.
7504 * tree-ssa.c (useless_type_conversion_p): Preserve cast
7505 from/to boolean-type.
7506 * gimplify.c (gimple_boolify): Handle boolification of comparisons.
7507 (gimplify_expr): Boolifiy non aggregate-typed comparisons.
7508 * tree-cfg.c (verify_gimple_comparison): Check result
7509 type of comparison expression.
7510 * tree-ssa-forwprop.c (forward_propagate_comparison): Adjust test
7511 of condition result and disallow type-cast sinking into comparison.
7513 2011-07-21 Richard Guenther <rguenther@suse.de>
7515 * tree-ssa-forwprop.c (combine_conversions): Return whether
7516 we have to run cfg-cleanup. Properly remove dead stmts.
7517 (ssa_forward_propagate_and_combine): Adjust.
7519 2011-07-21 Richard Sandiford <richard.sandiford@linaro.org>
7521 * regcprop.c (maybe_mode_change): Check HARD_REGNO_MODE_OK.
7523 2011-07-21 Kai Tietz <ktietz@redhat.com>
7525 * tree-ssa-propagate.c (substitute_and_fold): Use
7526 do_dce flag to deside, if BB's statements are scanned
7527 in last to first, or first to last order.
7529 2011-07-21 Georg-Johann Lay <avr@gjlay.de>
7531 * config/avr/avr.c (avr_rtx_costs): Set cost of CONST, LABEL_REF to 0.
7533 2011-07-20 H.J. Lu <hongjiu.lu@intel.com>
7534 Uros Bizjak <ubizjak@gmail.com>
7535 Richard Henderson <rth@redhat.com>
7537 * config/i386/constraints.md (w): New.
7539 * config/i386/i386.c (ix86_output_addr_vec_elt): Check
7540 TARGET_LP64 instead of TARGET_64BIT for ASM_QUAD.
7542 * config/i386/i386.h (CASE_VECTOR_MODE): Check TARGET_LP64
7543 instead of TARGET_64BIT.
7545 * config/i386/i386.md (indirect_jump): Replace
7546 nonimmediate_operand with indirect_branch_operand.
7547 (*indirect_jump): Likewise. Replace constraint "m" with "w".
7548 (tablejump): Replace nonimmediate_operand with indirect_branch_operand.
7549 Convert operand 0 to Pmode for x32 if not PIC.
7550 (*tablejump_1): Replace nonimmediate_operand with
7551 indirect_branch_operand. Replace constraint "m" with "w".
7552 (*call_vzeroupper): Replace constraint "m" with "w".
7554 (*call_rex64_ms_sysv_vzeroupper): Likewise.
7555 (*call_rex64_ms_sysv): Likewise.
7556 (*call_value_vzeroupper): Likewise.
7557 (*call_value): Likewise.
7558 (*call_value_rex64_ms_sysv_vzeroupper): Likewise.
7559 (*call_value_rex64_ms_sysv): Likewise.
7560 (set_got_offset_rex64): Check TARGET_LP64 instead of TARGET_64BIT.
7562 * config/i386/predicates.md (indirect_branch_operand): New.
7563 (call_insn_operand): Support x32.
7565 2011-07-20 Michael Eager <eager@eagercon.com>
7567 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): Default to 12.
7569 2011-07-20 Richard Henderson <rth@redhat.com>
7571 * cfg.c (dump_bb_info): Dump basic_block->flags.
7572 * cfgrtl.c (print_rtl_with_bb): Use dump_bb_info.
7574 2011-07-20 Uros Bizjak <ubizjak@gmail.com>
7576 * config/i386/i386.c (ix86_decompose_address): Allow only subregs
7577 of DImode hard registers in index.
7578 (ix86_legitimate_address_p): Allow subregs of base and index to span
7579 more than a word. Assert that subregs of base and index satisfy
7580 register_no_elim_operand predicates. Reject addresses where
7581 base and index have different modes.
7583 2011-07-20 Robert Millan <rmh@gnu.org>
7585 * config.gcc (mips*-*-linux*): Remove redundant tm_file entry.
7587 2011-07-20 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7589 * bb-reorder.c (fix_crossing_conditional_branches): Fix crash by
7590 removing now-unnecessary assignment.
7592 2011-07-20 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7594 * emit-rtl.c (set_mem_attributes_minus_bitpos): Restore setting
7595 memory address space to the type's address space.
7597 2011-07-20 Georg-Johann Lay <avr@gjlay.de>
7601 * config/avr/avr.md (mulhi3): Use register_or_s9_operand for operand2
7602 and expand appropriately if there is a CONST_INT in operand2.
7603 (usmulqihi3): New insn.
7604 (*sumulqihi3): New insn.
7605 (*osmulqihi3): New insn.
7606 (*oumulqihi3): New insn.
7607 (*muluqihi3.uconst): New insn_and_split.
7608 (*muluqihi3.sconst): New insn_and_split.
7609 (*mulsqihi3.sconst): New insn_and_split.
7610 (*mulsqihi3.uconst): New insn_and_split.
7611 (*mulsqihi3.oconst): New insn_and_split.
7612 (*ashifthi3.signx.const): New insn_and_split.
7613 (*ashifthi3.signx.const7): New insn_and_split.
7614 (*ashifthi3.zerox.const): New insn_and_split.
7615 (mulsqihi3): New insn.
7616 (muluqihi3): New insn.
7617 (muloqihi3): New insn.
7618 * config/avr/predicates.md (const_2_to_7_operand): New.
7619 (const_2_to_6_operand): New.
7624 (register_or_s9_operand): New.
7626 2011-07-20 Kai Tietz <ktietz@redhat.com>
7628 * builtins.c (fold_builtin_expect): See through the cast
7629 from truthvalue_type_node to long.
7631 2011-07-20 Michael Meissner <meissner@linux.vnet.ibm.com>
7633 * config/rs6000/vsx.md (vsx_fma*): Use 4 argument fma instructions
7634 where we can use them from the standard and altivec instruction
7635 sets, instead of always using the 3 operand VSX forms that require
7636 the destination to overlap one of the inputs.
7641 * config/rs6000/rs6000.md (fmadf4_fpr): Set fp_type fp_maddsub_d
7643 (fmsdf4_fpr): Ditto.
7644 (nfmadf4_fpr): Ditto.
7645 (nfmsdf4_fpr): Ditto.
7647 2011-07-20 Sandra Loosemore <sandra@codesourcery.com>
7649 * genrecog.c (make_insn_sequence): Correct position numbering
7650 when filtering out match_scratch and match_dup.
7652 2011-07-20 Richard Guenther <rguenther@suse.de>
7654 * tree-ssa-forwprop.c (remove_prop_source_from_use): Robustify
7655 against already removed statements.
7656 (forward_propagate_into_comparison): Remove dead defining stmts.
7657 (forward_propagate_into_gimple_cond): Likewise.
7658 (forward_propagate_into_cond): Simplify.
7659 (ssa_forward_propagate_and_combine): Handle changed cfg from
7660 forward_propagate_into_comparison.
7661 * tree-ssa-phiopt.c (conditional_replacement): Use proper
7662 locations for newly built statements.
7664 2011-07-20 Georg-Johann Lay <avr@gjlay.de>
7666 * config/avr/avr.c (avr_rtx_costs): Set cost of SYMBOL_REF to 0.
7668 2011-07-20 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7670 * config/s390/s390.c (s390_class_max_nregs): Fix return type.
7671 * config/s390/s390-protos.h (s390_class_max_nregs): Likewise.
7673 2011-07-20 Richard Guenther <rguenther@suse.de>
7676 * tree.c (integer_all_onesp): Use TYPE_PRECISION, not mode precision.
7677 * tree-ssa-forwprop.c (simplify_bitwise_binary): Remove bogus
7678 ADDR_EXPR folding. Canonicalize X ^ ~0 as ~X.
7680 2011-07-20 Vladimir Makarov <vmakarov@redhat.com>
7682 * config/frv/frv.c (frv_register_move_cost): Define explicitly
7683 costs for subclasses of GR_REGS.
7685 2011-07-20 Uros Bizjak <ubizjak@gmail.com>
7688 * config/i386/predicates.md (no_seg_addres_operand): No more special.
7689 * config/i386/i386.c (ix86_decompose_address): Allow only subregs
7690 of DImode hard registers in base.
7691 (ix86_legitimate_address_p): Allow SImode and DImode base and index
7694 2011-07-20 Richard Guenther <rguenther@suse.de>
7696 * tree-ssa-structalias.c (new_var_info): Allocate oldsolution lazily.
7697 (unify_nodes): Deal with that.
7698 (solve_graph): Likewise.
7700 2011-07-20 Chung-Lin Tang <cltang@codesourcery.com>
7702 * config/arm/arm.c (arm_canonicalize_comparison): Add case to
7703 canonicalize left operand from ZERO_EXTEND to AND.
7705 2011-07-20 Anatoly Sokolov <aesok@post.ru>
7707 * target.def (class_max_nregs): New hook.
7708 * doc/tm.texi.in (TARGET_CLASS_MAX_NREGS): Document.
7709 * doc/tm.texi: Regenerate.
7710 * targhooks.c (default_class_max_nregs): New function.
7711 * targhooks.h (default_class_max_nregs): Declare.
7712 * ira.h (target_ira): Change type x_ira_reg_class_max_nregs and
7713 x_ira_reg_class_min_nregs arrays to unsigned char.
7714 * ira.c (setup_reg_class_nregs): Use TARGET_CLASS_MAX_NREGS target
7715 hook instead of CLASS_MAX_NREGS macro.
7716 * reginfo.c (restore_register_info): Ditto.
7717 * ira-conflicts.c (process_regs_for_copy): Use
7718 ira_reg_class_max_nregs array instead of CLASS_MAX_NREGS macro.
7719 Change type rclass and aclass vars to reg_class_t.
7720 * ira-costs.c (record_reg_classes): Use ira_reg_class_max_nregs
7721 array instead of CLASS_MAX_NREGS macro. Change type rclass var to
7723 * reload.c (combine_reloads, find_reloads, find_reloads_address_1):
7724 Use ira_reg_class_max_nregs array instead of CLASS_MAX_NREGS macro.
7726 * config/i386/i386.h (CLASS_MAX_NREGS): Remove.
7727 * config/i386/i386.c (ix86_class_max_nregs): New function.
7728 (ix86_register_move_cost): Use TARGET_CLASS_MAX_NREGS target hook
7729 instead of CLASS_MAX_NREGS macro.
7730 (TARGET_CLASS_MAX_NREGS): Define.
7731 * config/avr/avr.h (CLASS_MAX_NREGS): Remove.
7732 * config/avr/avr-protos.h (class_max_nregs): Remove declaration.
7733 * config/avr/avr.c (class_max_nregs): Remove function.
7734 * config/alpha/alpha.h (CLASS_MAX_NREGS): Remove.
7735 * config/spu/spu.h (CLASS_MAX_NREGS): Remove.
7736 * config/mep/mep.h (CLASS_MAX_NREGS): Remove.
7737 * config/m32r/m32r.h (CLASS_MAX_NREGS): Remove.
7738 * config/microblaze/microblaze.h (CLASS_MAX_NREGS): Remove.
7739 * config/xtensa/xtensa.h (CLASS_MAX_NREGS): Remove.
7740 * config/stormy16/stormy16.h (CLASS_MAX_NREGS): Remove.
7741 * config/lm32/lm32.h (CLASS_MAX_NREGS): Remove.
7742 * config/moxie/moxie.h (CLASS_MAX_NREGS): Remove.
7743 * config/iq2000/iq2000.h (CLASS_MAX_NREGS): Remove.
7744 * config/mn10300/mn10300.h (CLASS_MAX_NREGS): Remove.
7745 * config/score/score.h (CLASS_MAX_NREGS): Remove.
7746 * config/vax/vax.h (CLASS_MAX_NREGS): Remove.
7747 * config/h8300/h8300.h (CLASS_MAX_NREGS): Remove.
7748 * config/v850/v850.h (CLASS_MAX_NREGS): Remove.
7750 2011-07-19 Eric Botcazou <ebotcazou@adacore.com>
7752 * cif-code.def (OVERWRITABLE): Fix typo and move around.
7753 (TARGET_OPTIMIZATION_MISMATCH): Delete.
7754 (EH_PERSONALITY): Fix typo.
7755 (NON_CALL_EXCEPTIONS): Fix message.
7756 (OPTIMIZATION_MISMATCH): Adjust message.
7757 * ipa-inline.c (can_inline_edge_p): Use CIF_OPTIMIZATION_MISMATCH.
7759 2011-07-19 Ian Lance Taylor <iant@google.com>
7761 * doc/install.texi (Configuration): Document
7762 --enable-build-poststage1-with-cxx.
7764 2011-07-19 Robert Millan <rmh@gnu.org>
7766 * config/mips/gnu-user.h: Copy from linux.h. Update comments.
7767 (GLIBC_DYNAMIC_LINKER): Remove.
7769 * config/mips/gnu-user64.h: Copy from linux64.h. Update comments.
7770 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64)
7771 (GLIBC_DYNAMIC_LINKERN32, UCLIBC_DYNAMIC_LINKERN32)
7772 (BIONIC_DYNAMIC_LINKERN32, GNU_USER_DYNAMIC_LINKERN32): Remove.
7773 (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32,
7774 GNU_USER_DYNAMIC_LINKER64 and GNU_USER_LINK_EMULATIONN32.
7776 * config/mips/linux.h: Remove everything except for ...
7777 (GLIBC_DYNAMIC_LINKER): ... this macro.
7779 * config/mips/linux64.h: Remove everything except for ...
7780 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64)
7781 (GLIBC_DYNAMIC_LINKERN32, UCLIBC_DYNAMIC_LINKERN32)
7782 (BIONIC_DYNAMIC_LINKERN32): ... these macros.
7783 (GNU_USER_LINK_EMULATION32, GNU_USER_LINK_EMULATION64)
7784 (GNU_USER_LINK_EMULATIONN32): New macros.
7786 * config.gcc (mips64*-*-linux* | mipsisa64*-*-linux* | mips-*-linux*):
7787 Use the new headers.
7789 2011-07-19 Richard Sandiford <rdsandiford@googlemail.com>
7791 * rtl.h (mem_attrs): Turn offset and size fields into HOST_WIDE_INTs.
7792 Add offset_known_p and size_known_p fields.
7793 (MEM_OFFSET_KNOWN_P): Update accordingly.
7794 (MEM_OFFSET, MEM_SIZE_KNOWN_P, MEM_SIZE): Likewise.
7795 * emit-rtl.c (mem_attrs_htab_hash): Update after mem_attrs changes.
7796 (mem_attrs_eq_p, set_mem_attributes_minus_bitpos, set_mem_offset)
7797 (clear_mem_offset, set_mem_size, clear_mem_size, change_address)
7798 (adjust_address_1, widen_memory_access, set_mem_attrs_for_spill)
7799 (init_emit_regs): Likewise.
7801 2011-07-19 Richard Sandiford <rdsandiford@googlemail.com>
7803 * doc/rtl.texi (MEM_OFFSET_KNOWN_P): Document.
7804 (MEM_OFFSET): Change from returning an rtx to returning a
7806 * rtl.h (MEM_OFFSET_KNOWN_P): New macro.
7807 (MEM_OFFSET): Return a HOST_WIDE_INT rather than an rtx.
7808 * emit-rtl.h (set_mem_offset): Take a HOST_WIDE_INT rather than an rtx.
7809 (clear_mem_offset): Declare.
7810 * alias.c (ao_ref_from_mem): Adjust uses of MEM_OFFSET, using
7811 MEM_OFFSET_KNOWN_P to test whether the offset is known, and
7812 MEM_OFFSET to get a HOST_WIDE_INT offset.
7813 (nonoverlapping_memrefs_p): Likewise. Adjust calls to...
7814 (adjust_offset_for_component_ref): Take a bool "known_p"
7815 parameter and a HOST_WIDE_INT "offset" parameter.
7816 * builtins.c (get_memory_rtx): As for ao_ref_from_mem.
7817 Adjust calls to set_mem_offset, passing a HOST_WIDE_INT rather
7818 than an rtx. Use clear_mem_offset to clear the offset.
7819 * cfgcleanup.c (merge_memattrs): Likewise.
7820 * dwarf2out.c (tls_mem_loc_descriptor): Likewise.
7821 * function.c (assign_parm_find_stack_rtl): Likewise.
7822 (assign_parm_setup_stack): Likewise.
7823 * print-rtl.c (print_rtx): Likewise.
7824 * reload.c (find_reloads_subreg_address): Likewise.
7825 * simplify-rtx.c (delegitimize_mem_from_attrs): Likewise.
7826 * var-tracking.c (INT_MEM_OFFSET): Likewise.
7827 * emit-rtl.c (set_reg_attrs_from_value): Likewise.
7828 (get_mem_align_offset): Likewise.
7829 (set_mem_offset): Take a HOST_WIDE_INT rather than an rtx.
7830 (clear_mem_offset): New function.
7831 * config/mips/mips.c (r10k_safe_mem_expr_p): Take a HOST_WIDE_INT
7832 offset rather than an rtx. Assume both the expressio and offset
7834 (r10k_needs_protection_p_1): Update accordingly, checking the
7835 expression and offset availability here instead.
7837 2011-07-19 Richard Sandiford <rdsandiford@googlemail.com>
7839 * doc/rtl.texi (MEM_SIZE_KNOWN_P): Document.
7840 (MEM_SIZE): Change from returning an rtx to returning a HOST_WIDE_INT.
7841 * rtl.h (MEM_SIZE_KNOWN_P): New macro.
7842 (MEM_SIZE): Return a HOST_WIDE_INT rather than an rtx.
7843 * emit-rtl.h (set_mem_size): Take a HOST_WIDE_INT rather than an rtx.
7844 (clear_mem_size): Declare.
7845 * emit-rtl.c (set_mem_size): Take a HOST_WIDE_INT rather than an rtx.
7846 (clear_mem_size): New function.
7847 * alias.c (ao_ref_from_mem): Adjust uses of MEM_SIZE, using
7848 MEM_SIZE_KNOWN_P to test whether the size is known, and MEM_SIZE
7849 to get a HOST_WIDE_INT size. Adjust calls to set_mem_size,
7850 passing a HOST_WIDE_INT rather than an rtx. Use clear_mem_size
7852 (nonoverlapping_memrefs_p): Likewise.
7853 * builtins.c (get_memory_rtx, expand_builtin_memcmp): Likewise.
7854 (expand_builtin_init_trampoline): Likewise.
7855 * calls.c (compute_argument_addresses): Likewise.
7856 * cfgcleanup.c (merge_memattrs): Likewise.
7857 * dce.c (find_call_stack_args): Likewise.
7858 * dse.c (record_store, scan_insn): Likewise.
7859 * dwarf2out.c (dw_sra_loc_expr): Likewise.
7860 * expr.c (emit_block_move_hints): Likewise.
7861 * function.c (assign_parm_find_stack_rtl): Likewise.
7862 * print-rtl.c (print_rtx): Likewise.
7863 * reload.c (find_reloads_subreg_address): Likewise.
7864 * rtlanal.c (may_trap_p_1): Likewise.
7865 * var-tracking.c (track_expr_p): Likewise.
7866 * varasm.c (assemble_trampoline_template): Likewise.
7867 * config/arm/arm.c (arm_print_operand): Likewise.
7868 * config/h8300/h8300.c (h8sx_emit_movmd): Likewise.
7869 * config/i386/i386.c (expand_movmem_via_rep_mov): Likewise.
7870 (expand_setmem_via_rep_stos, expand_constant_movmem_prologue)
7871 (expand_constant_setmem_prologue): Likewise.
7872 * config/mips/mips.c (mips_get_unaligned_mem): Likewise.
7873 * config/rs6000/rs6000.c (expand_block_move): Likewise.
7874 (adjacent_mem_locations): Likewise.
7875 * config/s390/s390.c (s390_expand_setmem): Likewise.
7876 (s390_expand_insv): Likewise.
7877 * config/s390/s390.md (*extzv<mode>, *extv<mode>): Likewise.
7878 (*extendqi<mode>2_short_displ): Likewise.
7879 * config/sh/sh.c (expand_block_move): Likewise.
7880 * config/sh/sh.md (extv, extzv): Likewise.
7882 2011-07-19 Richard Sandiford <rdsandiford@googlemail.com>
7884 * emit-rtl.c (mem_attrs_eq_p): New function, split out from...
7885 (mem_attrs_htab_eq): ...here.
7886 (find_mem_attrs): Replace with...
7887 (set_mem_attrs): ...this function. Take a mem_attrs structure
7888 rather than individual fields.
7889 (set_mem_attributes_minus_bitpos, set_mem_alias_set)
7890 (set_mem_addr_space, set_mem_align, set_mem_expr, set_mem_offset)
7891 (set_mem_size, change_address, adjust_address_1, offset_address)
7892 (widen_memory_access, get_spill_slot_decl, set_mem_attrs_for_spill):
7895 2011-07-19 Richard Sandiford <rdsandiford@googlemail.com>
7897 * rtl.h (MEM_ALIAS_SET, MEM_EXPR, MEM_OFFSET, MEM_ADDR_SPACE)
7898 (MEM_SIZE, MEM_ALIGN): Redefine in terms of get_mem_attrs.
7899 Provide a dummy definition of MEM_ADDR_SPACE for generators.
7900 (target_rtl): Add x_mode_mem_attrs.
7901 (mode_mem_attrs): New macro.
7902 (get_mem_attrs): New function.
7903 * emit-rtl.c (get_mem_attrs): Rename to...
7904 (find_mem_attrs): ...this.
7905 (set_mem_attributes_minus_bitpos, set_mem_alias_set)
7906 (set_mem_addr_space, set_mem_align, set_mem_expr, set_mem_offset)
7907 (set_mem_size, change_address, adjust_address_1, offset_address)
7908 (widen_memory_access, get_spill_slot_decl, set_mem_attrs_for_spill):
7910 (init_emit_regs): Initialize mode_mem_attrs.
7912 2011-07-19 Richard Guenther <rguenther@suse.de>
7914 * tree-ssa-forwprop.c (lookup_logical_inverted_value): Remove
7915 TRUTH_*_EXPR handling.
7916 * tree-ssa-operands.c (get_expr_operands): Likewise.
7917 * tree-ssa-pre.c (fully_constant_expression): Likewise.
7918 * tree-ssa-uninit.c (use_pred_not_overlap_with_undef_path_pre):
7920 (is_and_or_or): Likewise.
7921 (is_norm_cond_subset_of): Likewise.
7923 2011-07-19 Richard Guenther <rguenther@suse.de>
7925 * tree.h (fold_build_pointer_plus_loc): New helper function.
7926 (fold_build_pointer_plus_hwi_loc): Likewise.
7927 (fold_build_pointer_plus): Define.
7928 (fold_build_pointer_plus_hwi): Likewise.
7929 * builtins.c (std_gimplify_va_arg_expr): Use fold_build_pointer_plus.
7930 (fold_builtin_memory_op): Likewise.
7931 (fold_builtin_stpcpy): Likewise.
7932 (fold_builtin_memchr): Likewise.
7933 (fold_builtin_strstr): Likewise.
7934 (fold_builtin_strchr): Likewise.
7935 (fold_builtin_strrchr): Likewise.
7936 (fold_builtin_strpbrk): Likewise.
7937 (fold_builtin_strcat): Likewise.
7938 (expand_builtin_memory_chk): Likewise.
7939 (fold_builtin_memory_chk): Likewise.
7940 * c-typeck.c (build_unary_op): Likewise.
7941 * cgraphunit.c (thunk_adjust): Likewise.
7942 * fold-const.c (build_range_check): Likewise.
7943 (fold_binary_loc): Likewise.
7944 * omp-low.c (extract_omp_for_data): Likewise.
7945 (expand_omp_for_generic): Likewise.
7946 (expand_omp_for_static_nochunk): Likewise.
7947 (expand_omp_for_static_chunk): Likewise.
7948 * tree-affine.c (add_elt_to_tree): Likewise.
7949 * tree-data-ref.c (split_constant_offset_1): Likewise.
7950 * tree-loop-distribution.c (generate_memset_zero): Likewise.
7951 * tree-mudflap.c (mf_xform_derefs_1): Likewise.
7952 * tree-predcom.c (ref_at_iteration): Likewise.
7953 * tree-ssa-address.c (tree_mem_ref_addr): Likewise.
7954 (add_to_parts): Likewise.
7955 (create_mem_ref): Likewise.
7956 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Likewise.
7957 * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Likewise.
7958 (number_of_iterations_le): Likewise.
7959 * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Likewise.
7960 * tree-vect-data-refs.c (vect_analyze_data_refs): Likewise.
7961 (vect_create_addr_base_for_vector_ref): Likewise.
7962 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer): Likewise.
7963 (vect_create_cond_for_alias_checks): Likewise.
7964 * tree-vrp.c (extract_range_from_assert): Likewise.
7965 * config/alpha/alpha.c (alpha_va_start): Likewise.
7966 (alpha_gimplify_va_arg_1): Likewise.
7967 * config/i386/i386.c (ix86_va_start): Likewise.
7968 (ix86_gimplify_va_arg): Likewise.
7969 * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
7970 * config/mep/mep.c (mep_expand_va_start): Likewise.
7971 (mep_gimplify_va_arg_expr): Likewise.
7972 * config/mips/mips.c (mips_va_start): Likewise.
7973 (mips_gimplify_va_arg_expr): Likewise.
7974 * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
7975 * config/rs6000/rs6000.c (rs6000_va_start): Likewise.
7976 (rs6000_gimplify_va_arg): Likewise.
7977 * config/s390/s390.c (s390_va_start): Likewise.
7978 (s390_gimplify_va_arg): Likewise.
7979 * config/sh/sh.c (sh_va_start): Likewise.
7980 (sh_gimplify_va_arg_expr): Likewise.
7981 * config/sparc/sparc.c (sparc_gimplify_va_arg): Likewise.
7982 * config/spu/spu.c (spu_va_start): Likewise.
7983 (spu_gimplify_va_arg_expr): Likewise.
7984 * config/stormy16/stormy16.c (xstormy16_expand_builtin_va_start):
7986 (xstormy16_gimplify_va_arg_expr): Likewise.
7987 * config/xtensa/xtensa.c (xtensa_va_start): Likewise.
7988 (xtensa_gimplify_va_arg_expr): Likewise.
7990 2011-07-19 Richard Guenther <rguenther@suse.de>
7992 * expr.c (expand_expr_real_2): Remove TRUTH_*_EXPR handling.
7993 (expand_expr_real_1): Remove TRUTH_*IF_EXPR and STATEMENT_LIST
7997 * expr.c (expand_expr_real_2): Do not unnecessarily truncate the
7998 result of BIT_*_EXPR to bitfield precision.
8000 2011-07-19 Richard Sandiford <richard.sandiford@linaro.org>
8002 PR tree-optimization/49742
8003 * tree-data-ref.c (get_references_in_stmt): Treat the lhs of a call
8004 as a potential write.
8006 2011-07-19 Richard Guenther <rguenther@suse.de>
8008 * Makefile.in (tree-ssa-forwprop.o): Depend on gimple-pretty-print.h.
8009 * tree-ssa-forwprop.c: Include gimple-pretty-print.h.
8010 (forward_propagate_comparison): Simplify, remove obsolete code.
8012 2011-07-19 Richard Guenther <rguenther@suse.de>
8014 * gimplify.c (gimplify_expr): Gimplify TRUTH_NOT_EXPR as
8015 BIT_XOR_EXPR, same as the RTL expander does.
8016 * tree-cfg.c (verify_expr): Disallow TRUTH_NOT_EXPR in the gimple IL.
8017 (verify_gimple_assign_unary): Likewise.
8018 * tree-ssa-propagate.c (valid_gimple_rhs_p): Disallow TRUTH_*_EXPR.
8019 * tree-ssa-forwprop.c (forward_propagate_comparison): Handle
8020 BIT_NOT_EXPR and BIT_XOR_EXPR instead of TRUTH_NOT_EXPR.
8022 2011-07-19 Jakub Jelinek <jakub@redhat.com>
8024 PR tree-optimization/49768
8025 * gimple-fold.c (fold_nonarray_ctor_reference): Return NULL
8026 if offset is smaller than bitoffset, but offset+size is bigger
8029 2011-07-19 Ira Rosen <ira.rosen@linaro.org>
8031 PR tree-optimization/49771
8032 * tree-vect-loop-manip.c (vect_vfa_segment_size): In case of
8033 zero step, set segment length to the size of the data-ref's type.
8035 2011-07-18 Martin Jambor <mjambor@suse.cz>
8037 * ipa-prop.h: Include alloc-pool.h, all sorts of updates to general
8039 (ipcp_values_pool): Declare.
8040 (ipcp_sources_pool): Likewise.
8041 (ipcp_lattice): Changed to forward declaration.
8042 (ipa_param_descriptor): Removed fields ipcp_lattice, types and
8043 cannot_devirtualize.
8044 (ipa_node_params): New fields descriptors, lattices, known_vals,
8045 clone_for_all_contexts and node dead, removed fields params and
8047 (ipa_set_param_count): Removed.
8048 (ipa_get_param_count): Made to work with descriptors vector.
8049 (ipa_get_param): Updated.
8050 (ipa_param_cannot_devirtualize_p): Removed.
8051 (ipa_param_types_vec_empty): Likewise.
8052 (ipa_set_param_used): New function.
8053 (ipa_get_param_used): Updated to use descriptors vector.
8054 (ipa_func_list): Removed.
8055 (ipa_init_func_list): Removed declaration.
8056 (ipa_push_func_to_list_1): Likewise.
8057 (ipa_pop_func_from_list): Likewise.
8058 (ipa_push_func_to_list): Removed.
8059 (ipa_lattice_from_jfunc): Remove declaration.
8060 (ipa_get_jf_pass_through_result): Declare.
8061 (ipa_get_jf_ancestor_result): Likewise.
8062 (ipa_value_from_jfunc): Likewise.
8063 (ipa_get_lattice): Update.
8064 (ipa_lat_is_single_const): New function.
8065 * ipa-prop.c (ipa_push_func_to_list_1): Removed.
8066 (ipa_init_func_list): Likewise.
8067 (ipa_pop_func_from_list): Likewise.
8068 (ipa_get_param_decl_index): Fix coding style.
8069 (count_formal_params): Removed.
8070 (count_formal_params_1): Renamed to count_formal_params.
8071 (ipa_populate_param_decls): Update to use descriptors vector.
8072 (ipa_initialize_node_params): Likewise.
8073 (visit_ref_for_mod_analysis): Use ipa_set_param_used.
8074 (ipa_analyze_params_uses): Likewise.
8075 (ipa_free_node_params_substructures): Likewise and free also lattices
8077 (duplicate_array): Removed.
8078 (ipa_edge_duplication_hook): Add the new edge to the list of edge
8080 (ipa_node_duplication_hook): Update to use new lattices.
8081 (ipa_free_all_structures_after_ipa_cp): Free alloc pools.
8082 (ipa_free_all_structures_after_iinln): Likewise.
8083 (ipa_write_node_info): Update to use new lattices.
8084 (ipa_read_node_info): Likewise.
8085 (ipa_get_jf_pass_through_result): New function.
8086 (ipa_get_jf_ancestor_result): Likewise.
8087 (ipa_value_from_jfunc): Likewise.
8088 (ipa_cst_from_jfunc): Reimplemented using ipa_value_from_jfunc.
8089 * ipa-cp.c: Reimplemented.
8090 * params.def (PARAM_DEVIRT_TYPE_LIST_SIZE): Removed.
8091 (PARAM_IPA_CP_VALUE_LIST_SIZE): New parameter.
8092 (PARAM_IPA_CP_EVAL_THRESHOLD): Likewise.
8093 * Makefile.in (IPA_PROP_H): Added alloc-pool.h to dependencies.
8094 * doc/invoke.texi (devirt-type-list-size): Removed description.
8095 (ipa-cp-value-list-size): Added description.
8097 2011-07-18 Richard Henderson <rth@redhat.com>
8099 * bb-reorder.c (fix_crossing_conditional_branches): Emit all insns
8100 before calling create_basic_block.
8102 2011-07-18 Jakub Jelinek <jakub@redhat.com>
8105 * tree.c (build_common_builtin_nodes): Register
8106 __builtin_return_address, __cyg_profile_func_enter
8107 and __cyg_profile_func_exit.
8109 2011-07-18 Richard Henderson <rth@redhat.com>
8111 * bb-reorder.c (emit_barrier_after_bb): Split out of ...
8112 (add_labels_and_missing_jumps): ... here.
8113 (fix_up_fall_thru_edges, fix_crossing_conditional_branches): Use it.
8115 2011-07-18 Uros Bizjak <ubizjak@gmail.com>
8118 * config/i386/i386.c (ix86_decompose_address): Allow only subregs
8119 of DImode hard registers in PLUS address chains.
8121 2011-07-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8124 * config.gcc (alpha*-*-linux*): Add crtfastmath.o to extra_parts.
8125 (alpha*-*-freebsd*): Likewise.
8126 (i[34567]86-*-linux*, i[34567]86-*-kfreebsd*-gnu,
8127 i[34567]86-*-knetbsd*-gnu, i[34567]86-*-gnu*,
8128 i[34567]86-*-kopensolaris*-gnu): Add crtprec32.o, crtprec64.o,
8129 crtprec80.o, crtfastmath.o to extra_parts for all targets.
8130 (ia64*-*-elf*): Remove extra_parts.
8131 (sparc-*-linux*): Add crtfastmath.o to extra_parts.
8132 (sparc64-*-linux*): Likewise.
8133 (sparc64-*-freebsd*): Likewise.
8136 * config.gcc (ia64*-*-freebsd*): Remove crtfastmath.o from extra_parts.
8137 (ia64*-*-linux*): Likewise.
8138 (mips64*-*-linux*): Likewise.
8139 (mips*-*-linux*): Likewise.
8141 2011-07-18 David Edelsohn <dje.gcc@gmail.com>
8143 * doc/install.texi (Specific, *-ibm-aix*): AIX assembler bug.
8145 2011-07-18 Richard Guenther <rguenther@suse.de>
8147 * gimplify.c (gimplify_expr): Use input_location, not saved_location
8148 when building new trees.
8150 2011-07-18 Richard Guenther <rguenther@suse.de>
8152 * expr.c (expand_expr_real_2): Properly truncate the BIT_NOT_EXPR
8153 expansion result to bitfield precision if required.
8155 2011-07-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8157 * config.gcc (i[3456x]86-*-netware*): Remove.
8159 * gthr-nks.h: Remove.
8160 * configure.ac (enable_threads): Remove nks.
8161 * configure: Regenerate.
8163 * config/i386/i386.c (ix86_encode_section_info): Remove netware
8165 * config/i386/i386.h (KEEP_AGGREGATE_RETURN_POINTER): Remove
8166 <netware.h> reference.
8168 * config/i386/netware-libgcc.c,
8169 gcc/config/i386/netware-libgcc.def,
8170 gcc/config/i386/netware-libgcc.exp, gcc/config/i386/netware.c,
8171 gcc/config/i386/netware.h, gcc/config/i386/netware.opt,
8172 gcc/config/i386/nwld.c, gcc/config/i386/nwld.h,
8173 gcc/config/i386/t-netware, gcc/config/i386/t-nwld: Remove
8175 * doc/extend.texi (Function Attributes,
8176 callee_pop_aggregate_return): Remove i?86-netware reference.
8177 * doc/install.texi (Configuration, --enable-threads): Remove nks.
8179 2011-07-17 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8183 2010-12-30 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8185 * config/pa/pa.md: Add ",*" condition to 64-bit add/subtract boolean
8188 2011-07-17 Eric Botcazou <ebotcazou@adacore.com>
8191 * tree.c (walk_tree_1) <DECL_EXPR>: Do not walk a pointed-to type.
8193 2011-07-16 Matthias Klose <doko@ubuntu.com>
8195 * doc/install.texi: Document --enable-static-libjava.
8197 2011-07-15 Richard Henderson <rth@redhat.com>
8199 * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
8200 Replace all three arguments by returning a VEC of edges.
8201 (add_labels_and_missing_jumps): Accept a VEC of edges, not bare
8202 pointers and counts.
8203 (fix_edges_for_rarely_executed_code): Merge ...
8204 (rest_of_handle_partition_blocks): ... into...
8205 (partition_hot_cold_basic_blocks): ... here. Return todo items if
8206 any work was performed.
8207 (pass_partition_blocks): Clear todo_flags_finish.
8209 2011-07-15 Paolo Carlini <paolo.carlini@oracle.com>
8210 Jakub Jelinek <jakub@redhat.com>
8211 Jonathan Wakely <jwakely.gcc@gmail.com>
8214 * gthr-posix.h: Do not include <unistd.h> unconditionally; use
8215 _GTHREADS_USE_MUTEX_TIMEDLOCK instead of _POSIX_TIMEOUTS.
8217 2011-07-15 Jason Merrill <jason@redhat.com>
8220 * Makefile.in ($(lang_checks_parallelized)): Allow --extra_opts
8221 rather than --tool_opts.
8223 2011-07-15 Basile Starynkevitch <basile@starynkevitch.net>
8225 * doc/plugins.texi (Building GCC plugins): gengtype needs its
8226 corresponding gtype.state.
8228 2011-07-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8231 * config/pa/pa.md (casesi): Use gen_int_mode instead of GEN_INT.
8233 2011-07-15 Eric Botcazou <ebotcazou@adacore.com>
8236 * doc/md.texi (Standard Names): Document window_save.
8237 * cfgexpand.c (expand_debug_parm_decl): New function extracted from
8238 expand_debug_expr and expand_debug_source_expr. If the target has
8239 a window_save instruction, adjust the ENTRY_VALUE_EXP.
8240 (expand_debug_expr) <SSA_NAME>: Call expand_debug_parm_decl if the
8241 SSA_NAME_VAR is a parameter.
8242 (expand_debug_source_expr) <PARM_DECL>: Call expand_debug_parm_decl.
8243 * var-tracking.c (parm_reg_t): New type and associated vector type.
8244 (windowed_parm_regs): New variable.
8245 (adjust_insn): If the target has a window_save instruction and this
8246 is the instruction, make its effect on parameter registers explicit.
8247 (next_non_note_insn_var_location): New function.
8248 (emit_notes_in_bb): Use it instead of NEXT_INSN throughout.
8249 (vt_add_function_parameter): If the target has a window_save insn,
8250 adjust the incoming RTL and record that in windowed_parm_regs.
8251 (vt_finalize): Free windowed_parm_regs.
8253 2011-07-15 Bernd Schmidt <bernds@codesourcery.com>
8255 * doc/invoke.texi (C6X Options): New section.
8256 * doc/md.texi (TI C6X family): New section.
8257 * config.gcc: Handle tic6x, in particular tic6x-*-elf and
8259 * longlong.h (add_ssaaaa, __umulsidi3, umul_ppmm,
8260 count_leading_zeros, count_trailing_zeros, UMUL_TIME, UDIV_TIME):
8261 Provide C6X definitions.
8262 * config/c6x/c6x.md: New file.
8263 * config/c6x/constraints.md: New file.
8264 * config/c6x/predicates.md: New file.
8265 * config/c6x/c6x-sched.md.in: New file.
8266 * config/c6x/c6x-sched.md: New file.
8267 * config/c6x/gensched.sh: New file.
8268 * config/c6x/c6x-mult.md.in: New file.
8269 * config/c6x/genmult.sh: New file.
8270 * config/c6x/c6x-mult.md: New file.
8271 * config/c6x/sync.md: New file.
8272 * config/c6x/c6x-protos.h: New file.
8273 * config/c6x/sfp-machine.h: New file.
8274 * config/c6x/c6x.c: New file.
8275 * config/c6x/c6x.h: New file.
8276 * config/c6x/crti.s: New file.
8277 * config/c6x/crtn.s: New file.
8278 * config/c6x/lib1funcs.asm: New file.
8279 * config/c6x/c6x-modes.def: New file.
8280 * config/c6x/genopt.sh: New file.
8281 * config/c6x/c6x.opt: New file.
8282 * config/c6x/c6x-tables.opt: New file.
8283 * config/c6x/c6x-opts.h: New file.
8284 * config/c6x/c6x-isas.def: New file.
8285 * config/c6x/elf.h: New file.
8286 * config/c6x/elf-common.h: New file.
8287 * config/c6x/uclinux-elf.h: New file.
8288 * config/c6x/t-c6x: New file.
8289 * config/c6x/t-c6x-elf: New file.
8290 * config/c6x/t-c6x-uclinux: New file.
8291 * config/c6x/t-c6x-softfp: New file.
8292 * config/c6x/gtd.c: New file.
8293 * config/c6x/gtf.c: New file.
8294 * config/c6x/ltd.c: New file.
8295 * config/c6x/ltf.c: New file.
8296 * config/c6x/ged.c: New file.
8297 * config/c6x/gef.c: New file.
8298 * config/c6x/led.c: New file.
8299 * config/c6x/lef.c: New file.
8300 * config/c6x/eqd.c: New file.
8301 * config/c6x/eqf.c: New file.
8302 * config/c6x/libgcc-c6xeabi.ver: New file.
8305 2003-07-10 Eric Botcazou <ebotcazou@libertysurf.fr>
8306 PR rtl-optimization/11320
8307 * sched-int.h (struct deps) [reg_conditional_sets]: New field.
8308 (struct sched_info) [compute_jump_reg_dependencies]: New prototype.
8309 * sched-deps.c (sched_analyze_insn) [JUMP_INSN]: Update call to
8310 current_sched_info->compute_jump_reg_dependencies. Record which
8311 registers are used and which registers are set by the jump.
8312 Clear deps->reg_conditional_sets after a barrier.
8313 Set deps->reg_conditional_sets if the insn is a COND_EXEC.
8314 Clear deps->reg_conditional_sets if the insn is not a COND_EXEC.
8315 (init_deps): Initialize reg_conditional_sets.
8316 (free_deps): Clear reg_conditional_sets.
8317 * sched-ebb.c (compute_jump_reg_dependencies): New prototype.
8318 Mark registers live on entry of the fallthrough block and conditionally
8319 set as set by the jump. Mark registers live on entry of non-fallthrough
8320 blocks as used by the jump.
8321 * sched-rgn.c (compute_jump_reg_dependencies): New prototype.
8322 Mark new parameters as unused.
8324 2011-07-14 Andrew Pinski <pinskia@gmail.com>
8327 * tree-mudflap.c (mf_xform_derefs_1 <case MEM_REF>):
8328 Use fold_build2_loc instead of build2.
8329 Use the correct type for the new tree.
8331 2011-07-14 Bernd Schmidt <bernds@codesourcery.com>
8333 PR rtl-optimization/11320
8334 * config/ia64/ia64.md (load_symptr_low): Show a MEM.
8335 * config/ia64/ia64.c (ia64_expand_load_address): Generate it.
8337 2011-07-14 Georg-Johann Lay <avr@gjlay.de>
8340 * config/avr/avr.md (rotl<mode>3): Generate SCRATCH instead
8342 (*rotw<mode>): Use const_int_operand for operand2.
8343 Use match_scatch for operand3.
8344 (*rotb<mode>): Ditto
8345 * config/avr/avr.c (avr_rotate_bytes): Treat SCRATCH.
8347 2011-07-14 Richard Guenther <rguenther@suse.de>
8349 PR tree-optimization/49651
8350 * tree-ssa-structalias.c (get_constraint_for_1): Properly
8351 handle dereferences with subvariables.
8353 2011-07-14 Richard Guenther <rguenther@suse.de>
8355 * gimple-fold.c (fold_gimple_assign): Remove operand swapping.
8356 (fold_stmt_1): Do it here directly on gimple and as a first thing.
8358 2011-07-14 Richard Guenther <rguenther@suse.de>
8360 * fold-const.c (fold_binary_loc): Convert the !bool_var result,
8361 not bool_var when folding bool_var != 1 or bool_var == 0.
8363 2011-07-14 Bernd Schmidt <bernds@codesourcery.com>
8365 * haifa-sched.c (schedule_insns): Remove outdated comment.
8366 (schedule_block): When computing a known value for TODO_SPEC,
8367 just set it rather than using logical operations.
8368 (try_ready): Likewise. Use a local variable rather than a
8369 pointer to TODO_SPEC. Reorder an if statement to move the
8370 easy case to the then block.
8371 * sched-deps.c (dep_spec_p): New static function.
8372 (update_dep): Use it to decide whether to call
8373 change_spec_dep_to_hard.
8374 (get_back_and_forw_lists): Use it.
8375 (sd_resolve_dep): Likewise.
8376 (init_dep): If !USE_DEPS_LIST, use zero to initialize status.
8377 (haifa_note_mem_dep): Likewise.
8378 (check_dep): Likewise.
8379 (sd_add_dep): Also clear SPECULATIVE bits if not DO_SPECULATION.
8380 (sched_free_deps): Free in two passes.
8382 2011-07-14 Richard Sandiford <richard.sandiford@linaro.org>
8385 * expr.c (all_zeros_p): Undo bogus part of last change.
8387 2011-07-14 Matthias Klose <doko@ubuntu.com>
8389 * doc/extend.texi (optimize attribute): Fix typo.
8391 2011-07-14 Richard Guenther <rguenther@suse.de>
8393 * gimplify.c (gimplify_expr): Only do required conversions.
8395 2011-07-14 Georg-Johann Lay <avr@gjlay.de>
8398 * config/avr/elf.h (TARGET_ASM_SELECT_SECTION): Remove,
8399 i.e. use default_elf_select_section.
8400 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Remove.
8401 (READONLY_DATA_SECTION_ASM_OP): Remove.
8402 (TARGET_ASM_NAMED_SECTION): Move from here...
8403 * config/avr/avr.c: ...to here.
8404 (avr_asm_init_sections): Set unnamed callback of readonly_data_section.
8405 (avr_asm_named_section): Make static.
8407 2011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8410 * config.gcc (extra_parts): Add crtprec32.o crtprec64.o crtprec80.o
8411 and crtfastmath.o for Linux/x86.
8413 2011-07-14 Bernd Schmidt <bernds@codesourcery.com>
8415 * haifa-sched.c: Include "hashtab.h"
8416 (sched_no_dce): New global variable.
8417 (INSN_EXACT_TICK, INSN_TICK_ESTIMATE, FEEDS_BACKTRACK_INSN,
8418 SHADOW_P): New macros.
8419 (last_clock_var, cycle_issued_insns): Move declarations.
8420 (must_backtrack): New static variable.
8421 (struct delay_pair): New structure.
8422 (delay_htab, delay_htab_i2): New static variables.
8423 (delay_hash_i1, delay_hash_i2, delay_i1_eq, delay_i2_eq,
8424 record_delay_slot_pair, pair_delay, add_delay_dependencies): New
8426 (dep_cost_1): If delay pairs exist, try to look up the insns and
8427 use the correct pair delay if we find them.
8428 (rank-for_schedule): Tweak priority for insns that must be scheduled
8429 soon to avoid backtracking.
8430 (queue_insn): Detect conditions which force backtracking.
8431 (ready_add): Likewise.
8432 (struct sched_block_state): Add member shadows_only_p.
8433 (struct haifa_save_data): New structure.
8434 (backtrack_queue): New static variable.
8435 (mark_backtrack_feeds, copy_insn_list, save_backtrack_point,
8436 unschedule_insns_until, restore_last_backtrack_point,
8437 free_topmost_backtrack_point, free_backtrack_queue,
8438 estimate_insn_tick, estimate_shadow_tick): New functions.
8439 (prune_ready_list): New arg shadows_only_p. All callers changed.
8440 If true, remove everything that isn't SHADOW_P. Look up delay
8441 pairs and estimate ticks to avoid scheduling the first insn too early.
8442 (verify_shadows): New function.
8443 (schedule_block): Add machinery to enable backtracking.
8444 (sched_init): Take sched_no_dce into account when setting
8446 (free_delay_pairs): New function.
8447 (init_h_i_d): Initialize INSN_EXACT_TICK.
8448 * Makefile.in (haifa-sched.o): Add $(HASHTAB_H).
8449 * sched-deps.c (sd_unresolve_dep): New function.
8450 * sched-int. (struct haifa_sched_info): New fields save_state
8452 (struct _haifa_insn_data): New fields exact_tick, tick_estimate,
8453 feeds_backtrack_insn and shadow_p.
8454 (DO_BACKTRACKING): New value in enum SCHED_FLAGS.
8455 (sched_no_dce): Declare variable.
8456 (record_delay_slot_pair, free_delay_pairs, add_delay_dependencies,
8457 sd_unresolve_dep): Declare functions.
8458 * modulo-sched.c (sms_sched_info): Clear the two new fields.
8459 * sched-rgn.c (rgn_const_sched_info): Likewise.
8460 * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
8461 * sched-ebb.c (save_ebb_state, restore_ebb_state): New functions.
8462 (ebb_sched_info): Add them for the two new fields.
8463 (add_deps_for_risky_insns): Call add_delay_dependencies.
8465 2011-07-13 Michael Meissner <meissner@linux.vnet.ibm.com>
8467 * config/rs6000/rs6000.opt (-mpointers-to-nested-functions):
8469 * config/rs6000/rs6000.c (rs6000_trampoline_init): Ditto.
8470 (rs6000_call_indirect_aix): Ditto.
8471 * config/rs6000/rs6000.md (call_indirect_aix<ptrsize>): Ditto.
8472 (call_indirect_aix<ptrsize>_internal): Ditto.
8473 (call_indirect_aix<ptrsize>_nor11): Ditto.
8474 (call_indirect_aix<ptrsize>_internal2): Ditto.
8475 (call_value_indirect_aix<ptrsize>): Ditto.
8476 (call_value_indirect_aix<ptrsize>_internal): Ditto.
8477 (call_value_indirect_aix<ptrsize>_nor11): Ditto.
8478 (call_value_indirect_aix<ptrsize>_internal2): Ditto.
8479 * doc/invoke.texi (RS/6000 and PowerPC Options): Ditto.
8481 2011-07-13 Jason Merrill <jason@redhat.com>
8483 * Makefile.in ($(lang_checks_parallelized)): Allow --tool_opts.
8485 2011-07-13 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8487 * config/spu/spu.c (spu_init_libfuncs): Install __clrsbdi2.
8488 * config/spu/spu.md ("clrsb<mode>2"): New expander.
8490 2011-07-13 Thomas Schwinge <thomas@schwinge.name>
8492 * acinclude.m4 (gcc_GAS_CHECK_FEATURE): Use AS_ECHO instead of echo.
8493 * configure: Regenerate.
8495 2011-07-13 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8497 * config/spu/spu.c (TARGET_ASM_FILE_START): Do not define.
8498 (asm_file_start): Remove.
8499 (spu_machine_dependent_reorg): Call compute_bb_for_insn and
8500 free_bb_for_insn around code that modifies insns before
8501 restarting df analysis.
8503 2011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8506 * config/sol2.h (LIB_SPEC): Simplify. Move LIB_THREAD_LDFLAGS_SPEC ...
8507 (LINK_SPEC): ... here.
8509 2011-07-13 Bernd Schmidt <bernds@codesourcery.com>
8511 * haifa-sched.c (struct sched_block_state): New.
8512 (schedule_block): Move some local variables into such a structure.
8514 2011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8516 * config/i386/crtprec.c: Move to ../libgcc/config/i386.
8517 * config/i386/t-crtpc: Remove.
8518 * config/t-darwin (EXTRA_MULTILIB_PARTS): Remove.
8519 * config.gcc (i[34567]86-*-darwin*): Remove i386/t-crtpc from
8521 (x86_64-*-darwin*): Likewise.
8522 (i[34567]86-*-linux*): Likewise.
8523 (x86_64-*-linux*): Likewise.
8525 * config/i386/sol2.h (ENDFILE_SPEC): Redefine.
8526 Handle -mpc32, -mpc64, -mpc80.
8528 2011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8530 * config/alpha/crtfastmath.c: Move to ../libgcc/config/alpha.
8531 * config/alpha/t-crtfm: Remove.
8532 * config/i386/crtfastmath.c: Move to ../libgcc/config/i386.
8533 * config/i386/t-crtfm: Remove.
8534 * config/ia64/crtfastmath.c: Move to ../libgcc/config/ia64.
8535 * config/mips/crtfastmath.c: Move to ../libgcc/config/mips.
8536 * config/sparc/crtfastmath.c: Move to ../libgcc/config/sparc.
8537 * config/sparc/t-crtfm: Remove.
8539 * config.gcc (alpha*-*-linux*): Remove alpha/t-crtfm from tmake_file.
8540 (alpha*-*-freebsd*): Likewise.
8541 (i[34567]86-*-darwin*): Remove i386/t-crtfm from tmake_file.
8542 (x86_64-*-darwin*): Likewise.
8543 (i[34567]86-*-linux*): Likewise.
8544 (x86_64-*-linux*): Likewise.
8545 (x86_64-*-mingw*): Likewise.
8546 (ia64*-*-elf*): Remove crtfastmath.o from extra_parts.
8547 (ia64*-*-freebsd*): Likewise.
8548 (ia64*-*-linux*): Likewise.
8549 (mips64*-*-linux*): Likewise.
8550 (mips*-*-linux*): Likewise.
8551 (sparc-*-linux*): Remove sparc/t-crtfm from tmake_file.
8552 (sparc64-*-linux*): Likewise.
8553 (sparc64-*-freebsd*): Likewise.
8555 2011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8557 * config/darwin-crt2.c: Move to ../libgcc/config/rs6000.
8558 * config/darwin-crt3.c: Move to ../libgcc/config.
8559 * config/t-darwin (EXTRA_MULTILIB_PARTS): Remove.
8560 ($(T)crt3$(objext)): Remove.
8561 * config/rs6000/t-darwin (DARWIN_EXTRA_CRT_BUILD_CFLAGS): Remove.
8562 ($(T)crt2$(objext)): Remove.
8563 * config.gcc (powerpc-*-darwin*): Remove extra_parts.
8564 (powerpc64-*-darwin*): Likewise.
8566 2011-07-13 H.J. Lu <hongjiu.lu@intel.com>
8568 * config/i386/i386.c (x86_output_mi_thunk): Support ptr_mode != Pmode.
8570 * config/i386/i386.md (*addsi_1_zext): Renamed to ...
8571 (addsi_1_zext): This.
8573 2011-07-13 Bernd Schmidt <bernds@codesourcery.com>
8575 * doc/tm.texi.in (TARGET_ASM_MERGEABLE_RODATA_PREFIX): Add hook.
8576 * doc/tm.texi: Regenerate.
8577 * target.def (mergeable_rodata_prefix): New defhookpod.
8578 * varasm.c (mergeable_string_section, mergeable_constant_section):
8579 Use it. Allocate name with alloca.
8581 2011-07-13 H.J. Lu <hongjiu.lu@intel.com>
8583 * doc/invoke.texi (x86): Remove -mfused-madd and add -mfma.
8585 2011-07-13 Richard Sandiford <richard.sandiford@linaro.org>
8587 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Tighten
8590 2011-07-13 Richard Sandiford <richard.sandiford@linaro.org>
8592 * tree.h (categorize_ctor_elements): Remove comment. Fix long line.
8593 (count_type_elements): Delete.
8594 (complete_ctor_at_level_p): Declare.
8595 * expr.c (flexible_array_member_p): New function, split out from...
8596 (count_type_elements): ...here. Make static. Replace allow_flexarr
8597 parameter with for_ctor_p. When for_ctor_p is true, return the
8598 number of elements that should appear in the top-level constructor,
8599 otherwise return an estimate of the number of scalars.
8600 (categorize_ctor_elements): Replace p_must_clear with p_complete.
8601 (categorize_ctor_elements_1): Likewise. Use complete_ctor_at_level_p.
8602 (complete_ctor_at_level_p): New function, borrowing union logic
8603 from old categorize_ctor_elements_1.
8604 (mostly_zeros_p): Return true if the constructor is not complete.
8605 (all_zeros_p): Update call to categorize_ctor_elements.
8606 * gimplify.c (gimplify_init_constructor): Update call to
8607 categorize_ctor_elements. Don't call count_type_elements.
8608 Unconditionally prevent clearing for variable-sized types,
8609 otherwise rely on categorize_ctor_elements to detect
8610 incomplete initializers.
8612 2011-07-13 Richard Guenther <rguenther@suse.de>
8614 * tree-vrp.c (simplify_conversion_using_ranges): Make sure
8615 the final type is integral.
8617 2011-07-13 Bernd Schmidt <bernds@codesourcery.com>
8619 * sched-int.h (struct _dep): Add member cost.
8620 (DEP_COST, UNKNOWN_DEP_COST): New macros.
8621 * sched-deps.c (init_dep_1): Initialize DEP_COST.
8622 * haifa-sched.c (dep_cost_1): Use and set DEP_COST.
8623 (sched_change_pattern): Reset it for dependent insns.
8625 2011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8627 * Makefile.in (CRT0STUFF_T_CFLAGS): Remove.
8628 ($(T)crt0.o, $(T)mcrt0.o, s-crt0): Remove.
8629 * config/i386/netware-crt0.c: Move to ../libgcc/config/i386.
8630 * config/i386/t-nwld (CRTSTUFF_T_CFLAGS, CRT0STUFF_T_CFLAGS): Remove.
8631 (CRT0_S, MCRT0_S): Remove.
8632 ($(T)libgcc.def, $(T)libc.def, $(T)libcpre.def, $(T)posixpre.def):
8635 * config.gcc (i[3456x]86-*-netware*): Remove extra_parts.
8637 2011-07-12 Eric Botcazou <ebotcazou@adacore.com>
8639 * cse.c (insert_with_costs): Put semi-colon after empty loop body
8641 * emit-rtl.c (push_to_sequence): Likewise.
8642 * haifa-sched.c (max_issue): Likewise.
8643 * matrix-reorg.c (add_allocation_site): Likewise.
8644 * postreload-gcse.c (eliminate_partially_redundant_load): Likewise.
8645 * reload.c (alternative_allows_const_pool_ref): Likewise.
8646 * sched-rgn.c (rgn_add_block): Likewise.
8647 (rgn_fix_recovery_cfg): Likewise.
8648 * tree.c (attribute_list_contained): Likewise.
8650 2011-07-12 Uros Bizjak <ubizjak@gmail.com>
8652 * config/i386/i386.c: Tidy processor feature bitmasks.
8655 2011-07-12 Andrew Pinski <pinskia@gmail.com>
8658 * cprop.c (find_implicit_sets): Correct the condition.
8660 2011-07-12 Richard Henderson <rth@redhat.com>
8663 * dwarf2out.h (dwarf_frame_regnum): Remove.
8664 * dwarf2out.c (based_loc_descr): Revert last change. Initialize regno
8665 earlier from DWARF_FRAME_REGNUM. Never use dbx_reg_number.
8666 * dwarf2cfi.c (dw_stack_pointer_regnum, dw_frame_pointer_regnum): New.
8667 (execute_dwarf2_frame): Initialize them.
8668 (DW_STACK_POINTER_REGNUM, DW_FRAME_POINTER_REGNUM): Remove; replace
8669 users of the macros with the variables.
8670 (expand_builtin_dwarf_sp_column): Revert last change.
8671 (expand_builtin_init_dwarf_reg_sizes): Likewise. Compute the
8672 result of DWARF_FRAME_REGNUM into a local variable.
8674 2011-07-12 Richard Henderson <rth@redhat.com>
8677 * config/i386/i386.c (x86_output_mi_thunk): Use
8678 machopic_indirect_call_target instead of machopic_indirection_name
8681 2011-07-12 Laurent GUERBY <laurent@guerby.net>
8682 Eric Botcazou <ebotcazou@adacore.com>
8684 * prefix.h: Wrap up in extern "C" block.
8686 2011-07-12 Harsha Jagasia <harsha.jagasia@amd.com>
8688 AMD bdver2 Enablement
8689 * config.gcc (i[34567]86-*-linux* | ...): Add bdver2.
8690 (case ${target}): Add bdver2.
8691 * config/i386/driver-i386.c (host_detect_local_cpu): Let
8692 -march=native recognize bdver2 processors.
8693 * config/i386/i386-c.c (ix86_target_macros_internal): Add
8694 bdver2 def_and_undef
8695 * config/i386/i386.c (struct processor_costs bdver2_cost): New
8697 (m_BDVER2): New definition.
8698 (m_AMD_MULTIPLE): Includes m_BDVER2.
8699 (initial_ix86_tune_features): Add bdver2 tuning.
8700 (processor_target_table): Add bdver2 entry.
8701 (static const char *const cpu_names): Add bdver2 entry.
8702 (ix86_option_override_internal): Add bdver2 instruction sets.
8703 (ix86_issue_rate): Add bdver2.
8704 (ix86_adjust_cost): Add bdver2.
8705 (has_dispatch): Add bdver2.
8706 * config/i386/i386.h (TARGET_BDVER2): New definition.
8707 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_bdver2.
8708 (enum processor_type): Add PROCESSOR_BDVER2.
8709 * config/i386/i386.md (define_attr "cpu"): Add bdver2.
8710 * config/i386/i386.opt ( mdispatch-scheduler): Add bdver2 to
8713 2011-07-12 Richard Henderson <rth@redhat.com>
8716 * config/i386/i386.c (x86_output_mi_thunk): Fix mode for
8717 destination address in memory on some paths.
8719 2011-07-12 Bernd Schmidt <bernds@codesourcery.com>
8721 * doc/tm.texi.in (FUNCTION_ARG_PADDING): Mention
8722 TARGET_FUNCTION_ARG_ROUND_BOUNDARY.
8723 (TARGET_FUNCTION_ARG_ROUND_BOUNDARY): Add hook.
8724 * function.c (locate_and_pad_parm): Take it into account.
8725 * target.def (function_arg_round_boundary): New hook.
8726 * targhooks.c (default_function_arg_round_boundary): New function.
8727 * targhooks.h (default_function_arg_round_boundary): Declare.
8728 * doc/tm.texi: Regenerate.
8730 2011-07-12 Richard Guenther <rguenther@suse.de>
8732 * tree-ssa-copyrename.c (rename_ssa_copies): Zero statistics.
8733 Do not perform no-op changes.
8735 2011-07-12 Richard Sandiford <richard.sandiford@linaro.org>
8737 * config/arm/predicates.md (neon_struct_operand): Make a normal
8739 (neon_struct_or_register_operand): New predicate.
8740 * config/arm/neon.md (movmisalign<mode>): Replace predicates
8741 with neon_struct_or_register_operand.
8742 (*movmisalign<mode>_neon_store, *movmisalign<mode>_neon_load): Use
8743 neon_struct_operand instead of memory_operand.
8745 2011-07-12 Martin Jambor <mjambor@suse.cz>
8747 * cgraph.h (cgraph_get_node_or_alias): Removed declaration.
8748 * cgraph.c (cgraph_get_node_or_alias): Removed.
8749 (change_decl_assembler_name): Changed all calls to
8750 cgraph_get_node_or_alias to a call to cgraph_get_node.
8751 (cgraph_make_decl_local): Likewise.
8752 * lto-symtab.c (lto_symtab_resolve_symbols): Likewise.
8753 * varasm.c (default_binds_local_p_1): Likewise.
8754 (decl_binds_to_current_def_p): Likewise.
8756 2011-07-12 Jakub Jelinek <jakub@redhat.com>
8758 PR tree-optimization/49712
8759 * tree-ssa-loop-im.c (gen_lsm_tmp_name): Handle TARGET_MEM_REF.
8761 2011-07-11 Bernd Schmidt <bernds@codesourcery.com>
8763 * genautomata.c (add_arc): Return void. All callers changed.
8764 (make_automaton): Remove dead code.
8766 2011-07-11 Richard Henderson <rth@redhat.com>
8768 * dwarf2cfi.c (DW_STACK_POINTER_REGNUM): New.
8769 (DW_FRAME_POINTER_REGNUM): New.
8770 (expand_builtin_init_dwarf_reg_sizes): Use unsigned for rnum.
8771 (def_cfa_1): Do not convert reg to DWARF_FRAME_REGNUM here.
8773 (dwarf2out_flush_queued_reg_saves, dwarf2out_frame_debug_def_cfa,
8774 dwarf2out_frame_debug_adjust_cfa, dwarf2out_frame_debug_cfa_register,
8775 dwarf2out_frame_debug_cfa_expression, dwarf2out_frame_debug_expr):
8777 * dwarf2out.c (based_loc_descr): Use dwarf_frame_regnum.
8778 * dwarf2out.h (dwarf_frame_regnum): New.
8779 (struct cfa_loc): Document the domain of the reg member.
8781 2011-07-11 Uros Bizjak <ubizjak@gmail.com>
8783 * config/i386/i386.c (ix86_trampoline_init): Switch arms of if expr.
8784 Use offset everywhere. Always assert that offset <= TRAMPOLINE_SIZE.
8786 2011-07-11 Jakub Jelinek <jakub@redhat.com>
8789 * dwarf2out.c (int_shift_loc_descriptor): New function.
8790 (int_loc_descriptor): If shorter, emit i as
8791 (i >> shift), shift, DW_OP_shl for suitable shift value.
8792 Similarly, try to optimize large negative values using
8793 DW_OP_neg of a positive value if shorter.
8794 (size_of_int_shift_loc_descriptor): New function.
8795 (size_of_int_loc_descriptor): Adjust to match int_loc_descriptor
8797 (mem_loc_descriptor) <case CONST_INT>: Emit zero-extended constants
8798 that fit into DWARF2_ADDR_SIZE bytes as int_loc_descriptor +
8799 DW_OP_GNU_convert instead of DW_OP_GNU_const_type if the former
8801 (resolve_addr_in_expr): Optimize DW_OP_plus_uconst with a large
8802 addend as added DW_OP_plus if it is shorter.
8804 2011-07-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8806 * config/i386/sol2.h [!USE_GLD] (CTORS_SECTION_ASM_OP): Define.
8807 (DTORS_SECTION_ASM_OP): Define.
8809 2011-07-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8811 * config/dfp-bit.c, config/dfp-bit.h: Move to ../libgcc.
8812 * config/t-dfprules: Move to ../libgcc/config.
8813 * config.gcc (i[34567]86-*-linux*, i[34567]86-*-kfreebsd*-gnu,
8814 i[34567]86-*-knetbsd*-gnu, i[34567]86-*-gnu*,
8815 i[34567]86-*-kopensolaris*-gnu): Remove t-dfprules from tmake_file.
8816 (x86_64-*-linux*, x86_64-*-kfreebsd*-gnu, x86_64-*-knetbsd*-gnu):
8818 (i[34567]86-*-cygwin*): Likewise.
8819 (i[34567]86-*-mingw*, x86_64-*-mingw*): Likewise.
8820 (powerpc-*-linux*, powerpc64-*-linux*): Likewise.
8821 * Makefile.in (D32PBIT_FUNCS, D64PBIT_FUNCS, D128PBIT_FUNCS): Remove.
8822 (libgcc.mvars): Remove DFP_ENABLE, DFP_CFLAGS, D32PBIT_FUNCS,
8823 D64PBIT_FUNCS, D128PBIT_FUNCS.
8825 2011-07-11 Richard Guenther <rguenther@suse.de>
8827 * tree-vrp.c (simplify_conversion_using_ranges): Manually
8828 translate the source value-range through the conversion chain.
8830 2011-07-11 Richard Sandiford <richard.sandiford@linaro.org>
8832 * expr.c (expand_expr_real_1): Use expand_insn for movmisalign.
8834 2011-07-11 Arthur Loiret <aloiret@debian.org>
8836 * config.gcc (s390-*-linux*): If 'enabled_targets' is 'all', build
8837 a bi-arch compiler defaulting to 31-bit. In this case:
8838 (tmake_file): Add s390/t-linux64.
8839 * doc/install.texi: Add s390-linux to the list of targets supporting
8840 --enable-targets=all.
8842 2011-07-11 Arthur Loiret <aloiret@debian.org>
8843 Matthias Klose <doko@debian.org>
8845 * config.gcc (mips*-*-linux*): If 'enabled_targets' is 'all', build
8846 a tri-arch compiler defaulting to 32-bit (ABI o32). In this case:
8847 (tm_file): Add mips/linux64.h.
8848 (tmake_file): Add mips/t-linux64.
8849 (tm_defines): Add MIPS_ABI_DEFAULT=ABI_32.
8850 * config/mips/linux64.h (DRIVER_SELF_SPECS): Use MULTILIB_ABI_DEFAULT
8851 instead of hardcoded mabi=n32.
8852 * config/mips/t-linux64 (MULTILIB_DIRNAMES): Set to 'n32 . 64' if
8853 tm_defines contains MIPS_ABI_DEFAULT ABI_32, to follow the glibc
8856 2011-07-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8858 * passes.c (init_optimization_passes): Add invariant motion pass
8859 after induction variable optimization.
8861 2011-07-11 Georg-Johann Lay <avr@gjlay.de>
8864 * config/avr/avr.c (notice_update_cc): For ashiftrt:QI, only
8865 offsets 1..5 set cc0 in a usable way.
8867 2011-07-11 Romain Geissler <romain.geissler@gmail.com>
8869 * tree.h (call_expr_arg): Remove.
8870 (call_expr_argp): Likewise.
8872 2011-07-11 Eric Botcazou <ebotcazou@adacore.com>
8874 * config/sparc/sparc.md (save_register_window_1): Rename to...
8875 (window_save): ...this.
8876 * config/sparc/sparc.c (emit_save_register_window): Rename to...
8877 (emit_window_save): ...this.
8878 (sparc_expand_prologue): Adjust to above renaming.
8880 2011-07-10 H.J. Lu <hongjiu.lu@intel.com>
8882 * config/i386/i386.c (ix86_trampoline_init): Use movl instead
8885 2011-07-10 Richard Henderson <rth@redhat.com>
8887 * config/i386/i386.c (x86_output_mi_thunk): Generate rtl and
8888 run final, instead of emitting text directly.
8890 2011-07-10 H.J. Lu <hongjiu.lu@intel.com>
8892 * config/i386/i386.c (ix86_option_override_internal): Turn on
8893 OPTION_MASK_ISA_64BIT for TARGET_X32. Only allow small and
8894 small PIC models for TARGET_X32.
8896 2011-07-10 Hans-Peter Nilsson <hp@axis.com>
8899 * config/cris/t-elfmulti (CRTSTUFF_T_CFLAGS): Don't include
8903 * config/cris/cris.c (cris_asm_output_case_end): Robustify against
8904 stray notes and debug insns by using prev_nonnote_nondebug_insn
8905 instead of PREV_INSN.
8907 2011-07-09 Richard Henderson <rth@redhat.com>
8909 * defaults.h (DWARF2_ADDR_SIZE, DWARF_OFFSET_SIZE,
8910 DWARF_TYPE_SIGNATURE_SIZE): Move from ...
8911 * dwarf2out.c: ... here.
8912 (output_all_cfis): Remove.
8913 (dwarf2out_switch_text_section): Use output_cfis directly.
8914 (size_of_locs): Export.
8915 (output_loc_sequence, output_loc_sequence_raw): Export.
8916 (div_data_align, need_data_align_sf_opcode, dwarf_cfi_name, output_cfi,
8917 output_cfi_directive, dwarf2out_emit_cfi, output_cfis, output_cfa_loc,
8918 output_cfa_loc_raw): Move to ...
8919 * dwarfcfi.c: ... here.
8920 * dwarf2out.h: Update decls.
8922 2011-07-09 Richard Henderson <rth@redhat.com>
8924 * defaults.h (DWARF_CIE_DATA_ALIGNMENT, DWARF_FRAME_RETURN_COLUMN,
8925 DWARF_FRAME_REGNUM, DWARF2_FRAME_REG_OUT): Move from ...
8926 * dwarf2cfi.c: ... here.
8927 (PTR_SIZE, DWARF_OFFSET_SIZE, DWARF_INITIAL_LENGTH_SIZE): Remove.
8928 (DWARF_ROUND, DWARF_CIE_ID): Remove.
8929 * dwarf2out.c (INCOMING_RETURN_ADDR_RTX): Remove.
8930 (DWARF2_FRAME_REG_OUT, DWARF_CIE_DATA_ALIGNMENT): Remove.
8931 (DWARF_FRAME_RETURN_COLUMN, DWARF_FRAME_REGNUM): Remove.
8933 2011-07-09 Richard Henderson <rth@redhat.com>
8935 * dwarf2cfi.c (cie_return_save): New.
8936 (queue_reg_save): Use compare_reg_or_pc.
8937 (dwarf2out_flush_queued_reg_saves): Handle pc_rtx as return column.
8938 (dwarf2out_frame_debug_expr): Likewise.
8939 (dwarf2out_frame_debug_cfa_register): Record saved reg for pc too.
8940 (initial_return_save): Likewise.
8941 (execute_dwarf2_frame): Save and restore initial return save from
8943 * config/mips/mips.c (mips_frame_set): Remove special case for
8944 DWARF_FRAME_RETURN_COLUMN.
8946 2011-07-09 Richard Henderson <rth@redhat.com>
8948 * dwarf2cfi.c (lookup_cfa): Remove.
8949 (execute_dwarf2_frame): Assert queues are empty on entry.
8950 Setup initial cfa directly, not via lookup_cfa.
8951 Don't clear args_size state here.
8953 2011-07-09 Richard Henderson <rth@redhat.com>
8955 * dwarf2cfi.c (add_cfi_vec): New.
8956 (add_cfi): Rename from add_fde_cfi. Add the element to add_cfi_vec.
8957 (def_cfa_1, reg_save): Remove for_cie argument. Update all callers.
8958 (execute_dwarf2_frame): Set add_cfi_vec.
8960 2011-07-09 Richard Henderson <rth@redhat.com>
8962 * defaults.h (ASM_COMMENT_START): Move here...
8963 * dwarf2asm.c: ... from here.
8964 * dwarf2out.c, final.c, vmsdbgout.c: Remove duplicates.
8965 * toplev.c: Remove ifndef tests of ASM_COMMENT_START.
8966 * varasm.c: Likewise.
8968 2011-07-09 Richard Henderson <rth@redhat.com>
8971 * dwarf2cfi.c (dwarf2out_frame_debug): Don't set cfi_insn here...
8972 (create_cfi_notes): ... do it here instead.
8974 2011-07-09 Jakub Jelinek <jakub@redhat.com>
8977 * dwarf2out.c (size_of_int_loc_descriptor): New function.
8978 (address_of_int_loc_descriptor): Use it.
8979 (scompare_loc_descriptor): Optimize EQ/NE comparison with constant.
8981 2011-07-09 Richard Henderson <rth@redhat.com>
8983 * config/pdp11/pdp11.md (define_c_enum "unspecv"): New.
8984 (prologue, epilogue): New.
8985 (return, *rts): New.
8986 (blockage, setd, seti): New.
8987 * config/pdp11/pdp11.c (TARGET_ASM_FUNCTION_PROLOGUE): Remove.
8988 (TARGET_ASM_FUNCTION_EPILOGUE): Remove.
8989 (pdp11_saved_regno): New.
8990 (pdp11_expand_prologue): Rename from pdp11_output_function_prologue;
8991 generate rtl instead of text.
8992 (pdp11_expand_epilogue): Similarly from pdp11_output_function_epilogue.
8993 (pdp11_sp_frame_offset): Export. Use pdp11_saved_regno.
8994 * config/pdp11/pdp11-protos.h: Update.
8996 2011-07-09 Richard Henderson <rth@redhat.com>
8998 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Don't
8999 try to insert an rtl prologue here.
9000 (rs6000_output_function_epilogue): Similarly.
9001 * config/rs6000/rs6000.md (prologue): Emit a barrier to
9002 satisfy !TARGET_SCHED_PROLOG.
9003 (epilogue, sibcall_epilogue): Likewise.
9005 2011-07-09 Eric Botcazou <ebotcazou@adacore.com>
9007 * config/sparc/sparc.h (STACK_SAVEAREA_MODE): Move around.
9009 (IN_OR_GLOBAL_P): Likewise.
9011 2011-07-08 Jason Merrill <jason@redhat.com>
9014 * gimplify.c (goa_stabilize_expr): Handle RHS preevaluation in
9015 compound assignment.
9017 * cgraph.c (cgraph_add_to_same_comdat_group): New.
9018 * cgraph.h: Declare it.
9019 * ipa.c (function_and_variable_visibility): Make sure thunks
9020 have the right visibility.
9022 2011-07-08 Richard Henderson <rth@redhat.com>
9025 * dwarf2cfi.c (dwarf2out_frame_debug): Insert cfi notes after
9026 any tablejump vector.
9029 * dwarf2cfi.c (create_cfi_notes): Flush queued saves at the
9030 end of the prologue.
9032 2011-07-08 Jakub Jelinek <jakub@redhat.com>
9035 * config/rs6000/rs6000.c (rs6000_emit_vector_cond_expr): Use
9036 CONST0_RTX (dest_mode) instead of const0_rtx as second operand of NE.
9037 * config/rs6000/vector.md (vector_select_<mode>,
9038 vector_select_<mode>_uns): Change second operand of NE to
9039 CONST0_RTX (<MODE>mode) instead of const0_rtx.
9040 * config/rs6000/altivec.md (*altivec_vsel<mode>,
9041 *altivec_vsel<mode>_uns): Expect second operand of NE to be
9042 zero_constant of the corresponding vector mode.
9043 * config/rs6000/vsx.md (*vsx_xxsel<mode>, *vsx_xxsel<mode>_uns):
9046 2011-07-08 Sebastian Pop <sebastian.pop@amd.com>
9048 * graphite-dependences.c (build_alias_set_powerset): Remove
9049 continue from loop, add one more assert.
9051 2011-07-08 Georg-Johann Lay <avr@gjlay.de>
9054 * config/avr/avr.c (avr_hard_regno_mode_ok): Rewrite.
9055 In particular, allow 8-bit values in r28 and r29.
9056 (avr_hard_regno_scratch_ok): Disallow any register that might be
9057 part of the frame pointer.
9058 (avr_hard_regno_rename_ok): Same.
9059 (avr_legitimate_address_p): Don't allow SUBREGs.
9061 2011-07-08 Julian Brown <julian@codesourcery.com>
9063 * config/arm/neon.md (vec_shr_<mode>, vec_shl_<mode>): Disable in
9065 (reduc_splus_<mode>, reduc_uplus_<mode>, reduc_smin_<mode>)
9066 (reduc_smax_<mode>, reduc_umin_<mode>, reduc_umax_<mode>)
9067 (neon_vec_unpack<US>_lo_<mode>, neon_vec_unpack<US>_hi_<mode>)
9068 (vec_unpack<US>_hi_<mode>, vec_unpack<US>_lo_<mode>)
9069 (neon_vec_<US>mult_lo_<mode>, vec_widen_<US>mult_lo_<mode>)
9070 (neon_vec_<US>mult_hi_<mode>, vec_widen_<US>mult_hi_<mode>)
9071 (vec_pack_trunc_<mode>, neon_vec_pack_trunc_<mode>): Disable for Q
9072 registers in big-endian mode.
9074 2011-07-08 Bernd Schmidt <bernds@codesourcery.com>
9076 * genattrtab.c (evaluate_eq_attr): Allow an attribute to be defined
9077 in terms of another.
9078 (write_attr_value): Write a cast if necessary.
9080 * defaults.h (REG_WORDS_BIG_ENDIAN): Provide a default.
9081 * doc/tm.texi.in (WORDS_BIG_ENDIAN): Mention REG_WORDS_BIG_ENDIAN.
9082 (REG_WORDS_BIG_ENDIAN): Document.
9083 * doc/tm.texi: Regenerate.
9084 * reload.c (operands_match_p): Take it into account.
9085 (reload_adjust_reg_for_mode): Likewise.
9086 * rtlanal.c (subreg_get_info): Likewise.
9088 2011-07-08 Richard Guenther <rguenther@suse.de>
9090 * fold-const.c (fold_binary_loc): Remove index +p PTR -> PTR +p index
9093 2011-07-08 Kai Tietz <ktietz@redhat.com>
9095 * fold-const.c (fold_truth_andor): Factored out truth_andor
9096 label from fold_binary as function.
9097 (fold_binary_loc): Replace truth_andor lable
9098 by function fold_truth_andor.
9100 2011-07-08 Kirill Yukhin <kirill.yukhin@intel.com>
9103 * calls.c (mem_overlaps_already_clobbered_arg_p): Additional
9104 check if address is stored in register. If so - give up.
9105 (check_sibcall_argument_overlap_1): Do not perform check of
9106 overlapping when it is call to address.
9108 2011-07-08 Georg-Johann Lay <avr@gjlay.de>
9110 * config/avr/avr.c (output_reload_insisf): Use 'REG_Z+1' instead
9113 2011-07-08 Bernd Schmidt <bernds@codesourcery.com>
9115 * optabs.c (expand_binop): Use GET_MODE_PRECISION instead of
9116 GET_MODE_BITSIZE where appropriate.
9117 (widen_leading, expand_parity, expand_ctz, expand_ffs,
9118 expand_unop, expand_abs_nojump, expand_one_cmpl_abs_nojump,
9119 expand_float, expand_fix): Likewise.
9120 * expr.c (convert_move, convert_modes, expand_expr_real_2,
9121 expand_expr_real_1, reduce_to_bit_field_precision): Likewise.
9122 * stor-layout.c (get_mode_bounds): Likewise.
9123 * cfgexpand.c (convert_debug_memory_address, expand_debug_expr):
9125 * convert.c (convert_to_integer): Likewise.
9126 * expmed.c (expand_shift_1): Likewise.
9128 * rtlanal.c (nonzero_bits1): Don't compare GET_MODE_SIZE against
9131 * optabs.c (expand_binop): Tighten conditions for doubleword
9133 (widen_bswap): Assert that mode bitsize and precision are the same.
9134 * stor-layout.c (get_best_mode): Skip modes that have lower
9135 precision than bitsize.
9136 * recog.c (simplify_while_replacing): Assert that bitsize and
9137 precision are the same.
9139 2011-07-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9141 * Makefile.in (LIBGCOV): Remove.
9142 (libgcc.mvars): Remove LIBGCOV.
9143 * libgov.c: Move to ../libgcc.
9145 2011-07-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9147 * config/fixed-bit.c, config/fixed-bit.h: Move to ../libgcc.
9149 2011-07-08 Martin Jambor <mjambor@suse.cz>
9151 * tree-sra.c (analyze_all_variable_accesses): Dump that a struture
9152 is too big for total scalarization.
9154 2011-07-07 Richard Henderson <rth@redhat.com>
9156 * config/alpha/elf.h (MIPS_DEBUGGING_INFO): Undef.
9157 (DBX_DEBUGGING_INFO): Undef.
9159 2011-07-07 Richard Henderson <rth@redhat.com>
9161 * dwarf2out.c (output_cfi_directive): Export. Add FILE parameter.
9162 Handle some opcodes specially for debugging.
9163 * print-rtl.c: Include dwarf2out.h
9164 (print_rtx): Handle NOTE_INSN_CFI.
9165 * Makefile.in (print-rtl.o): Update.
9167 2011-07-07 Richard Henderson <rth@redhat.com>
9169 * tree-pass.h (pass_dwarf2_frame): Declare.
9170 * passes.c (init_optimization_passes): Add it.
9171 * dwarf2cfi.c (dwarf2out_frame_debug): Make static.
9172 (create_cfi_notes): Rename from dwarf2out_frame_debug_after_prologue;
9173 make static, do not call add_cfis_to_fde.
9174 (dwarf2out_frame_debug_init, dwarf2cfi_function_init,
9175 dwarf2out_frame_init): Merge into...
9176 (execute_dwarf2_frame): ... here. New function.
9177 (dwarf2out_do_frame, dwarf2out_do_cfi_asm): Make boolean. Change
9178 saved_do_cfi_asm to a tri-state variable.
9179 (gate_dwarf2_frame, pass_dwarf2_frame): New.
9180 * dwarf2out.c (dwarf2out_begin_prologue): Only allocate the fde
9181 if it has yet to be done. Don't call dwarf2cfi_function_init.
9182 * dwarf2out.h, debug.h: Update decls.
9183 * final.c (final_start_function): Don't call
9184 dwarf2out_frame_debug_init or dwarf2out_frame_debug_after_prologue.
9185 * lto-streamer-in.c (lto_init_eh): Don't call dwarf2out_frame_init.
9186 * toplev.c (lang_dependent_init): Likewise.
9188 2011-07-07 Richard Henderson <rth@redhat.com>
9190 * dwarf2out.c (fde_table, fde_table_allocated, fde_table_in_use,
9191 FDE_TABLE_INCREMENT): Replace with...
9192 (fde_vec): ... this, a new vector.
9193 (current_fde): Remove. Replace all users with cfun->fde.
9194 (output_call_frame_info): Use FOR_EACH_VEC_ELT over fde_vec.
9195 (size_of_aranges, dwarf2out_finish): Likewise.
9196 (dwarf2out_alloc_current_fde): Break out from ...
9197 (dwarf2out_begin_prologue): ... here.
9198 (dwarf2out_frame_init): Remove.
9199 * dwarf2cfi.c: Update all users of current_fde.
9200 (dwarf2out_frame_init): Rename from dwarf2cfi_frame_init.
9201 * dwarf2out.h: Update decls.
9202 (dw_fde_node): Add fde_index member.
9203 * function.h (struct function): Add fde member.
9205 2011-07-07 Bernd Schmidt <bernds@codesourcery.com>
9206 Richard Henderson <rth@redhat.com>
9208 * dwarf2cfi.c (add_cfi): Remove.
9209 (dwarf2out_cfi_label): Remove force argument. Only generate the
9211 (add_fde_cfi): Simplify the different code paths.
9213 (old_cfa, old_cfa_remember): New.
9214 (def_cfa_1, reg_save): Remove label, add for_cie parameter.
9215 (last_reg_save_label): Remove.
9216 (dwarf2out_args_size, dwarf2out_stack_adjust, queue_reg_save,
9217 dwarf2out_frame_debug_def_cfa, dwarf2out_frame_debug_adjust_cfa,
9218 dwarf2out_frame_debug_cfa_offset, dwarf2out_frame_debug_cfa_register,
9219 dwarf2out_frame_debug_cfa_expression,
9220 dwarf2out_frame_debug_cfa_restore,
9221 dwarf2out_frame_debug_cfa_window_save,
9222 dwarf2out_frame_debug_expr): Remove label parameter.
9223 (cfi_label_required_p, add_cfis_to_fde): New.
9224 (dwarf2out_frame_debug_after_prologue): New.
9225 (dwarf2cfi_frame_init): Initialize old_cfa.
9226 (dwarf2out_frame_debug_restore_state): Likewise.
9227 * dwarf2out.c (dwarf2out_emit_cfi): Only do output for cfi_asm.
9228 (dwarf2out_switch_text_section): Don't clear dw_fde_current_label here.
9229 * final.c (final_start_function): Call
9230 dwarf2out_frame_debug_after_prologue.
9232 2011-07-07 Bernd Schmidt <bernds@codesourcery.com>
9233 Richard Henderson <rth@redhat.com>
9235 * dwarf2cfi.c (cfi_insn): New.
9236 (dwarf2out_cfi_label): Don't emit cfi label here.
9237 (add_fde_cfi): Create a NOTE_INSN_CFI.
9238 (dwarf2out_frame_debug): Setup cfi_insn.
9239 (dwarf2out_frame_debug_init): Loop over insns creating CFI notes.
9240 (dwarf2out_cfi_begin_epilogue): Make static.
9241 (dwarf2out_frame_debug_restore_state): Make static.
9242 * dwarf2out.c (output_cfi_directive): Make static.
9243 (dwarf2out_emit_cfi): New.
9244 * dwarf2out.h: Update.
9245 * final.c (final): Remove CFI notes.
9246 (final_scan_insn): Don't call dwarf2out_cfi_begin_epilogue,
9247 dwarf2out_frame_debug_restore_state, dwarf2out_frame_debug.
9248 Handle NOTE_INSN_CFI and NOTE_INSN_CFI_LABEL.
9249 * insn-notes.def (NOTE_INSN_CFI): New.
9250 (NOTE_INSN_CFI_LABEL): New.
9251 * rtl.h (union rtunion_def): Add rt_cfi member.
9252 (XCFI, XCCFI, NOTE_CFI, NOTE_LABEL_NUMBER): New.
9254 2011-07-07 Richard Henderson <rth@redhat.com>
9256 * dwarf2cfi.c: New file.
9257 * Makefile.in (OBJS): Add it.
9258 (GTFILES): Add dwarf2cfi.c and dwarf2out.h.
9259 * gengtype.c (open_base_files): Include dwarf2out.h.
9260 * coretypes.h (enum var_init_status): Move from ...
9262 * dwarf2out.c (saved_do_cfi_asm, dwarf2out_do_frame,
9263 dwarf2out_do_cfi_asm, cie_cfi_vec, dwarf2out_cfi_label_num,
9264 expand_builtin_dwarf_sp_column, init_return_column_size,
9265 expand_builtin_init_dwarf_reg_sizes, new_cfi, add_cfi,
9266 dwarf2out_cfi_label, emit_cfa_remember, any_cfis_emitted, add_fde_cfi,
9267 lookup_cfa_1, lookup_cfa, cfa, cfa_store, cfa_remember, args_size,
9268 old_args_size, cfa_equal_p, def_cfa_1, reg_save, initial_return_save,
9269 stack_adjust_offset, barrier_args_size, compute_barrier_args_size_1,
9270 compute_barrier_args_size, dwarf2out_args_size,
9271 dwarf2out_stack_adjust, dwarf2out_notice_stack_adjust,
9272 queued_reg_saves, reg_saved_in_data, regs_saved_in_regs,
9273 compare_reg_or_pc, record_reg_saved_in_reg, last_reg_save_label,
9274 queue_reg_save, dwarf2out_flush_queued_reg_saves,
9275 clobbers_queued_reg_save, reg_saved_in, cfa_temp,
9276 dwarf2out_frame_debug_def_cfa, dwarf2out_frame_debug_adjust_cfa,
9277 dwarf2out_frame_debug_cfa_offset, dwarf2out_frame_debug_cfa_register,
9278 dwarf2out_frame_debug_cfa_expression,
9279 dwarf2out_frame_debug_cfa_restore,
9280 dwarf2out_frame_debug_cfa_window_save, dwarf2out_frame_debug_expr,
9281 dwarf2out_frame_debug, dwarf2out_frame_debug_init,
9282 dwarf2out_cfi_begin_epilogue, dwarf2out_frame_debug_restore_state,
9283 get_cfa_from_loc_descr): Move to dwarf2cfi.c.
9284 (dw_cfi_ref, dw_fde_ref, dw_cfi_oprnd_ref, enum dw_cfi_oprnd_type,
9285 dw_cfi_oprnd, dw_cfi_node, cfi_vec, dw_cfa_location, dw_fde_node,
9286 dw_val_ref, dw_die_ref, const_dw_die_ref, dw_loc_descr_ref,
9287 dw_loc_list_ref, enum dw_val_class, dw_vec_const, dw_val_node,
9288 dw_loc_descr_node): Move to dwarf2out.h.
9289 (current_fde, output_cfi_directive, build_cfa_loc, get_address_mode,
9290 mem_loc_descriptor): Export.
9291 (build_cfa_aligned_loc): Export. Take CFA as a parameter.
9292 (dwarf2out_frame_init): Extract CIE generation code to
9293 dwarf2cfi_frame_init.
9295 2011-07-07 Eric Botcazou <ebotcazou@adacore.com>
9298 * config/sparc/sol2.h [TARGET_64BIT_DEFAULT] (TARGET_DEFAULT): Add
9299 MASK_V8PLUS, remove commented out flag and reorder.
9301 2011-07-07 Jakub Jelinek <jakub@redhat.com>
9304 * c-typeck.c (build_binary_op): For MULT_EXPR and TRUNC_DIV_EXPR with
9305 one non-complex and one complex argument, call c_save_expr on both
9308 2011-07-07 Martin Jambor <mjambor@suse.cz>
9311 * cgraphunit.c (verify_edge_corresponds_to_fndecl): New function.
9312 (verify_cgraph_node): Some functinality moved to
9313 verify_edge_corresponds_to_fndecl, call it.
9315 2011-07-07 Joseph Myers <joseph@codesourcery.com>
9317 * config.gcc (*local*): Remove.
9318 * doc/install-old.texi: Don't mention local configurations.
9320 2011-07-07 Jakub Jelinek <jakub@redhat.com>
9323 * df-problems.c (dead_debug_reset): Remove dead_debug_uses
9324 referencing debug insns that have been reset.
9325 (dead_debug_insert_before): Don't assert reg is non-NULL,
9326 instead return immediately if it is NULL.
9328 2011-07-07 Joseph Myers <joseph@codesourcery.com>
9330 * config/i386/t-crtpic, config/i386/t-svr3dbx, config/pa/t-pa: Remove.
9332 2011-07-07 Bernd Schmidt <bernds@codesourcery.com>
9334 * hw-doloop.c: New file.
9335 * hw-doloop.h: New file.
9336 * Makefile.in (OBJS): Add hw-doloop.o.
9337 (hw-doloop.o): New rule.
9338 ($(obj_out_file)): Add hw-doloop.h dependency.
9339 * config/bfin/bfin.c: Include "hw-doloop.h".
9340 (loop_info, DEF_VEC_P for loop_info, loop_info_d): Remove.
9341 (bfin_dump_loops, bfin_bb_in_loop, bfin_scan_loop): Remove.
9342 (hwloop_optimize): Renamed from bfin_optimize_loop. Argument
9343 type changed to hwloop_info. Return bool, true if the loop was
9344 successfully optimized. Remove code that was moved to
9345 hw-doloop.c, and adjust other parts.
9346 (hwloop_fail): New static function, containing parts that used
9347 to be in bfin_optimize_loop.
9348 (bfin_discover_loop, bfin_discover_loops, free_loops,
9349 bfin_reorder_loops): Remove.
9350 (hwloop_pattern_reg): New static function.
9351 (bfin_doloop_hooks): New variable.
9352 (bfin_reorg_loops): Remove most code, call reorg_loops.
9353 * config/bfin/bfin.md (doloop_end splitter): Also enable if
9354 loop counter is a memory_operand.
9356 2011-07-07 H.J. Lu <hongjiu.lu@intel.com>
9358 * config.gcc: Support --with-multilib-list for x86 Linux targets.
9360 * configure.ac: Mention x86-64 for --with-multilib-list.
9361 * configure: Regenerated.
9363 * config/i386/gnu-user64.h (SPEC_64): Support x32.
9364 (SPEC_32): Likewise.
9365 (ASM_SPEC): Likewise.
9366 (LINK_SPEC): Likewise.
9367 (TARGET_THREAD_SSP_OFFSET): Likewise.
9368 (TARGET_THREAD_SPLIT_STACK_OFFSET): Likewise.
9371 * config/i386/i386.h (TARGET_X32): New.
9373 (LONG_TYPE_SIZE): Likewise.
9374 (POINTER_SIZE): Likewise.
9375 (POINTERS_EXTEND_UNSIGNED): Likewise.
9376 (OPT_ARCH64): Support x32.
9377 (OPT_ARCH32): Likewise.
9379 * config/i386/i386.opt (mx32): New.
9381 * config/i386/kfreebsd-gnu64.h (GNU_USER_LINK_EMULATIONX32): New.
9382 (GLIBC_DYNAMIC_LINKERX32): Likewise.
9383 * config/i386/linux64.h (GNU_USER_LINK_EMULATIONX32): Likewise.
9384 (GLIBC_DYNAMIC_LINKERX32): Likewise.
9386 * config/linux.h (UCLIBC_DYNAMIC_LINKERX32): New.
9387 (BIONIC_DYNAMIC_LINKERX32): Likewise.
9388 (GNU_USER_DYNAMIC_LINKERX32): Likewise.
9390 * config/i386/t-linux64: Support TM_MULTILIB_CONFIG.
9392 * doc/install.texi: Document --with-multilib-list for Linux/x86-64.
9394 * doc/invoke.texi: Document -mx32.
9396 2011-07-07 Richard Sandiford <richard.sandiford@linaro.org>
9398 * doc/invoke.texi (mwords-little-endian): Deprecate.
9399 * config/arm/arm.opt (mwords-little-endian): Likewise.
9400 * config/arm/arm.c (arm_option_override): Warn about the deprecation
9401 of -mwords-little-endian.
9403 2011-07-07 Richard Sandiford <richard.sandiford@linaro.org>
9405 * reload1.c (choose_reload_regs): Use mode sizes to check whether
9406 an old reload register completely defines the required value.
9408 2011-07-07 Richard Guenther <rguenther@suse.de>
9410 * fold-const.c (fold_unary_loc): Do not strip sign-changes
9413 2011-07-07 Richard Guenther <rguenther@suse.de>
9415 * tree-vrp.c (simplify_conversion_using_ranges): New function.
9416 (simplify_stmt_using_ranges): Call it.
9418 2011-07-07 Kai Tietz <ktietz@redhat.com>
9420 * tree-ssa-forwprop.c (truth_valued_ssa_name): New function.
9421 (lookup_logical_inverted_value): Likewise.
9422 (simplify_bitwise_binary_1): Likewise.
9423 (simplify_bitwise_binary): Use simplify_bitwise_binary_1.
9425 2011-07-07 Joseph Myers <joseph@codesourcery.com>
9427 * gcc.c (%[Spec]): Don't document.
9428 (struct spec_list): Update comment.
9429 (do_spec_1): Don't handle %[Spec].
9430 * doc/invoke.texi (%[@var{name}]): Remove documentation of spec.
9432 2011-07-07 Joseph Myers <joseph@codesourcery.com>
9434 * common/common-target-def.h (TARGET_HAVE_NAMED_SECTIONS): Don't
9435 default based on TARGET_ASM_NAMED_SECTION.
9436 * common/common-target.def (have_named_sections): Default to true.
9437 * common/config/default-common.c: Don't include tm.h.
9438 * common/config/picochip/picochip-common.c
9439 (TARGET_HAVE_NAMED_SECTIONS): Don't define.
9440 * common/config/m32c/m32c-common.c: Remove.
9441 * config.gcc (m32c*-*-*): Set target_has_targetm_common=no.
9442 * config/alpha/osf5.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
9443 * config/i386/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
9444 * config/m68k/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
9445 * config/pa/som.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
9446 * config/pdp11/pdp11.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
9447 * config/vax/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
9449 2011-07-07 Jakub Jelinek <jakub@redhat.com>
9452 * gimplify.c (gimplify_compound_lval): For last 2 ARRAY_*REF operands
9453 and last COMPONENT_REF operand call gimplify_expr on it if non-NULL.
9455 2011-07-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9458 * gcc.c (MFWRAP_SPEC): Also wrap mmap64.
9460 2011-07-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9463 * configure.ac (gcc_cv_as_hidden): Also accept
9464 x86_64-*-solaris2.1[0-9]*.
9465 (gcc_cv_as_cfi_directive): Likewise.
9466 (gcc_cv_as_comdat_group_group): Likewise.
9467 (set_have_as_tls): Likewise.
9468 * configure: Regenerate.
9469 * config.gcc (i[34567]86-*-solaris2*): Also handle
9470 x86_64-*-solaris2.1[0-9]*.
9471 * config.host (i[34567]86-*-solaris2*): Likewise.
9472 * config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Remove.
9473 * config/sol2-bi.h (ASM_CPU_DEFAULT_SPEC): Redefine.
9474 [USE_GLD] (ARCH_DEFAULT_EMULATION): Define.
9475 (TARGET_LD_EMULATION): Use it.
9476 * config/i386/sol2.h (ASM_CPU_DEFAULT_SPEC): Define.
9477 (SUBTARGET_CPU_EXTRA_SPECS): Add asm_cpu_default.
9478 * config/i386/sol2-bi.h (ASM_CPU32_DEFAULT_SPEC): Define.
9479 (ASM_CPU64_DEFAULT_SPEC): Define.
9480 (ASM_CPU_SPEC): Use %(asm_cpu_default).
9481 (ASM_SPEC): Redefine.
9482 (DEFAULT_ARCH32_P): Define using TARGET_64BIT_DEFAULT.
9483 * config/host-solaris.c [__x86_64__] (TRY_EMPTY_VM_SPACE): Reduce.
9484 * doc/install.texi (Specific, amd64-*-solaris2.1[0-9]*): Document.
9485 (Specific, i?86-*-solaris2.10): Mention x86_64-*-solaris2.1[0-9]*
9487 (Specific, x86_64-*-solaris2.1[0-9]*): Document.
9489 2011-07-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9491 * config/sol2.h (ASM_SPEC): Split into ...
9492 (ASM_SPEC_BASE, ASM_PIC_SPEC): ... this.
9493 * config/i386/sol2.h (ASM_SPEC): Define using ASM_SPEC_BASE.
9494 * config/i386/sol2-bi.h (ASM_CPU_SPEC): Redefine.
9495 (ASM_SPEC): Use ASM_SPEC_BASE.
9496 * config/sparc/sol2.h (ASM_SPEC): Redefine.
9498 2011-07-07 Georg-Johann Lay <avr@gjlay.de>
9500 * config/avr/avr.md (*reload_insi): Change predicate #1 to
9501 const_int_operand. Ditto for peep2 producing this insn.
9502 Add argument to output_reload_insisf call.
9503 (*movsi,*movsf): Add argument to output_movsisf call.
9504 (*reload_insf): New insn and new peep2 to produce it.
9505 * config/avr/avr-protos.h (output_movsisf): Change prototype.
9506 (output_reload_insisf): Change prototype.
9507 * config/avr/avr.c (avr_asm_len): New function.
9508 (output_reload_insisf): Rewrite.
9509 (output_movsisf): Change prototype. output_reload_insisf for
9510 all CONST_INT and CONST_DOUBLE. ALlow moving 0.0f to memory.
9511 (adjust_insn_length): Add argument to output_movsisf and
9512 output_reload_insisf call.
9514 2011-07-07 Bernd Schmidt <bernds@codesourcery.com>
9516 * emit-rtl.c (paradoxical_subreg_p): New function.
9517 * rtl.h (paradoxical_subreg_p): Declare.
9518 * combine.c (set_nonzero_bits_and_sign_copies, get_last_value,
9519 apply_distributive_law, simplify_comparison, simplify_set): Use it.
9520 * cse.c (record_jump_cond, cse_insn): Likewise.
9521 * expr.c (force_operand): Likewise.
9522 * rtlanal.c (num_sign_bit_copies1): Likewise.
9523 * reload1.c (eliminate_regs_1, strip_paradoxical_subreg): Likewise.
9524 * reload.c (push_secondary_reload, find_reloads_toplev): Likewise.
9525 (push_reload): Use precision to check for paradoxical subregs.
9526 * expmed.c (extract_bit_field_1): Likewise.
9528 * machmode.h (HWI_COMPUTABLE_MODE_P): New macro.
9529 * combine.c (set_nonzero_bits_and_sign_copies): Use it.
9530 (find_split-point, combine_simplify_rtx, simplify_if_then_else,
9531 simplify_set, simplify_logical, expand_compound_operation,
9532 make_extraction, force_to_mode, if_then_else_cond, extended_count,
9533 try_widen_shift_mode, simplify_shift_const_1, simplify_comparison,
9534 record_value_for_reg): Likewise.
9535 * expmed.c (expand_widening_mult, expand_mult_highpart): Likewise.
9536 * simplify-rtx. c (simplify_unary_operation_1,
9537 simplify_binary_operation_1, simplify_const_relational_operation):
9540 * explow.c (trunc_int_for_mode): Use GET_MODE_PRECISION
9541 instead of GET_MODE_BITSIZE where appropriate.
9542 * rtlanal.c (subreg_lsb_1, subreg_get_info, nonzero_bits1,
9543 num_sign_bit_copies1, canonicalize_condition, low_bitmask_len,
9544 init_num_sign_bit_copies_in_rep): Likewise.
9545 * cse.c (fold_rtx, cse_insn): Likewise.
9546 * loop-doloop.c (doloop_modify, doloop_optimize): Likewise.
9547 * simplify-rtx.c (simplify_unary_operation_1,
9548 simplify_const_unary_operation, simplify_binary_operation_1,
9549 simplify_const_binary_operation, simplify_ternary_operation,
9550 simplify_const_relational_operation, simplify_subreg): Likewise.
9551 * combine.c (try_combine, find_split_point, combine_simplify_rtx,
9552 simplify_if_then_else, simplify_set, expand_compound_operation,
9553 expand_field_assignment, make_extraction, if_then_else_cond,
9554 make_compound_operation, force_to_mode, make_field_assignment,
9555 reg_nonzero_bits_for_combine, reg_num_sign_bit_copies_for_combine,
9556 extended_count, try_widen_shift_mode, simplify_shift_const_1,
9557 simplify_comparison, record_promoted_value, simplify_compare_const,
9558 record_dead_and_set_regs_1): Likewise.
9561 * simplify-rtx.c (simplify_const_binary_operation): Use the
9562 shift_truncation_mask hook instead of performing modulo by width.
9563 Compare against mode precision, not bitsize.
9564 * combine.c (combine_simplify_rtx, simplify_shift_const_1):
9565 Use shift_truncation_mask instead of constructing the value manually.
9567 2011-07-06 Michael Meissner <meissner@linux.vnet.ibm.com>
9569 * config/rs6000/rs6000-protos.h (rs6000_call_indirect_aix): New
9571 (rs6000_save_toc_in_prologue_p): Ditto.
9573 * config/rs6000/rs6000.opt (-mr11): New switch to disable loading
9574 up the static chain (r11) during indirect function calls.
9575 (-msave-toc-indirect): New undocumented debug switch.
9577 * config/rs6000/rs6000.c (struct machine_function): Add
9578 save_toc_in_prologue field to note whether the prologue needs to
9579 save the TOC value in the reserved stack location.
9580 (rs6000_emit_prologue): Use TOC_REGNUM instead of 2. If we need
9581 to save the TOC in the prologue, do so.
9582 (rs6000_trampoline_init): Don't allow creating AIX style
9583 trampolines if -mno-r11 is in effect.
9584 (rs6000_call_indirect_aix): New function to create AIX style
9585 indirect calls, adding support for -mno-r11 to suppress loading
9586 the static chain, and saving the TOC in the prologue instead of
9588 (rs6000_save_toc_in_prologue_p): Return true if we are saving the
9589 TOC in the prologue.
9591 * config/rs6000/rs6000.md (STACK_POINTER_REGNUM): Add more fixed
9593 (TOC_REGNUM): Ditto.
9594 (STATIC_CHAIN_REGNUM): Ditto.
9595 (ARG_POINTER_REGNUM): Ditto.
9596 (SFP_REGNO): Delete, unused.
9597 (TOC_SAVE_OFFSET_32BIT): Add constants for AIX TOC save and
9598 function descriptor offsets.
9599 (TOC_SAVE_OFFSET_64BIT): Ditto.
9600 (AIX_FUNC_DESC_TOC_32BIT): Ditto.
9601 (AIX_FUNC_DESC_TOC_64BIT): Ditto.
9602 (AIX_FUNC_DESC_SC_32BIT): Ditto.
9603 (AIX_FUNC_DESC_SC_64BIT): Ditto.
9604 (ptrload): New mode attribute for the appropriate load of a pointer.
9605 (call_indirect_aix32): Delete, rewrite AIX indirect function calls.
9606 (call_indirect_aix64): Ditto.
9607 (call_value_indirect_aix32): Ditto.
9608 (call_value_indirect_aix64): Ditto.
9609 (call_indirect_nonlocal_aix32_internal): Ditto.
9610 (call_indirect_nonlocal_aix32): Ditto.
9611 (call_indirect_nonlocal_aix64_internal): Ditto.
9612 (call_indirect_nonlocal_aix64): Ditto.
9613 (call): Rewrite AIX indirect function calls. Add support for
9614 eliminating the static chain, and for moving the save of the TOC
9615 to the function prologue.
9616 (call_value): Ditto.
9617 (call_indirect_aix<ptrsize>): Ditto.
9618 (call_indirect_aix<ptrsize>_internal): Ditto.
9619 (call_indirect_aix<ptrsize>_internal2): Ditto.
9620 (call_indirect_aix<ptrsize>_nor11): Ditto.
9621 (call_value_indirect_aix<ptrsize>): Ditto.
9622 (call_value_indirect_aix<ptrsize>_internal): Ditto.
9623 (call_value_indirect_aix<ptrsize>_internal2): Ditto.
9624 (call_value_indirect_aix<ptrsize>_nor11): Ditto.
9625 (call_nonlocal_aix32): Relocate in the rs6000.md file.
9626 (call_nonlocal_aix64): Ditto.
9628 * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mr11 and
9629 -mno-r11 documentation.
9631 2011-07-06 Jonathan Wakely <jwakely.gcc@gmail.com>
9634 * doc/extend.texi (Compound Literals): Fix typo.
9636 2011-07-06 James Greenhalgh <james.greenhalgh@arm.com>
9638 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Add __ARM_FEATURE_DSP.
9640 2011-07-06 Basile Starynkevitch <basile@starynkevitch.net>
9642 * configure.ac (plugin-version.h): Generate
9643 GCCPLUGIN_VERSION_MAJOR, GCCPLUGIN_VERSION_MINOR,
9644 GCCPLUGIN_VERSION_PATCHLEVEL, GCCPLUGIN_VERSION constant integer
9647 * configure: Regenerate.
9649 * doc/plugins.texi (Building GCC plugins): Mention
9650 GCCPLUGIN_VERSION ... constant macros in plugin-version.h.
9652 2011-07-06 Bernd Schmidt <bernds@codesourcery.com>
9654 * machmode.h (TRULY_NOOP_TRUNCATION_MODES_P): New macro.
9655 * combine.c (make_extraction, gen_lowpart_or_truncate,
9656 apply_distributive_law, simplify_comparison,
9657 reg_truncated_to_mode, record_truncated_value): Use it.
9658 * cse.c (notreg_cost): Likewise.
9659 * expmed.c (store_bit_field_1, extract_bit_field_1): Likewise.
9660 * expr.c (convert_move, convert_modes): Likewise.
9661 * optabs.c (expand_binop, expand_unop): Likewise.
9662 * postreload.c (move2add_last_label): Likewise.
9663 * regmove.c (optimize_reg_copy_3): Likewise.
9664 * rtlhooks.c (gen_lowpart_general): Likewise.
9665 * simplify-rtx.c (simplify_unary_operation_1): Likewise.
9667 2011-07-06 Joseph Myers <joseph@codesourcery.com>
9669 * config/rs6000/vxworks.h (WORDS_BIG_ENDIAN): Define.
9671 2011-07-06 Bernd Schmidt <bernds@codesourcery.com>
9673 * cse.c (find_comparison_args): Use val_mode_signbit_set_p.
9674 * simplify-rtx.c (mode_signbit_p): Use GET_MODE_PRECISION.
9675 (val_mode_signbit_p, val_mode_signbit_set_p): New functions.
9676 (simplify_const_unary_operation, simplify_binary_operation_1,
9677 simplify_const_binary_operation, simplify_const_relational_operation):
9678 Use them. Use GET_MODE_MASK for masking and sign-extensions.
9679 * combine.c (set_nonzero_bits_and_sign_copies, simplify_set,
9680 combine_simplify_rtx, force_to_mode, reg_nonzero_bits_for_combine,
9681 simplify_shift_const_1, simplify_comparison): Likewise.
9682 * expr.c (convert_modes): Likewise.
9683 * rtlanal.c (nonzero_bits1, canonicalize_condition): Likewise.
9684 * expmed.c (emit_cstore, emit_store_flag_1, emit_store_flag): Likewise.
9685 * rtl.h (val_mode_signbit_p, val_mode_signbit_set_p): Declare.
9687 * simplify-rtx.c (simplify_ternary_operation): Remove dead code.
9689 2011-07-06 Richard Guenther <rguenther@suse.de>
9691 PR tree-optimization/49645
9692 * c-decl.c (finish_decl): Also set DECL_HARD_REGISTER for global
9694 * tree-ssa-sccvn.c (vn_reference_op_eq): Disregard differences
9695 in type qualification here ...
9696 (copy_reference_ops_from_ref): ... not here.
9697 (vn_reference_lookup_3): ... or here.
9698 (copy_reference_ops_from_ref): Record decl bases as MEM[&decl].
9699 (vn_reference_lookup): Do the lookup with a valueized ao-ref.
9701 2011-07-06 Ian Lance Taylor <iant@google.com>
9703 * doc/install.texi (Configuration): It's
9704 --enable-gnu-indirect-function, not --enable-indirect-function.
9706 2011-07-06 Bernd Schmidt <bernds@codesourcery.com>
9708 * simplify-rtx.c (simplify_const_binary_operation): Use the
9709 shift_truncation_mask hook instead of performing modulo by width.
9710 Compare against mode precision, not bitsize.
9711 * combine.c (combine_simplify_rtx, simplify_shift_const_1):
9712 Use shift_truncation_mask instead of constructing the value manually.
9714 2011-07-06 H.J. Lu <hongjiu.lu@intel.com>
9717 * tree-ssa-address.c (addr_for_mem_ref): Use pointer_mode for
9718 address computation and convert to address_mode if needed.
9720 2011-07-06 Richard Guenther <rguenther@suse.de>
9722 * tree.c (build_common_tree_nodes_2): Merge with
9723 build_common_tree_nodes.
9724 * tree.h (build_common_tree_nodes): Adjust prototype.
9725 (build_common_tree_nodes_2): Remove.
9726 * doc/tm.texi.in (lang_hooks.builtin_function): Adjust.
9727 * doc/tm.texi (lang_hooks.builtin_function): Regenerate.
9729 2011-07-05 Jakub Jelinek <jakub@redhat.com>
9731 PR tree-optimization/49618
9732 * tree-eh.c (tree_could_trap_p) <case CALL_EXPR>: For DECL_WEAK
9733 t recurse on the decl.
9734 <case FUNCTION_DECL, case VAR_DECL>: For DECL_WEAK decls
9735 return true if expr isn't known to be defined in current
9736 TU or some other LTO partition.
9738 2011-07-05 Michael Meissner <meissner@linux.vnet.ibm.com>
9740 * params.def (PARAM_CASE_VALUES_THRESHOLD): New parameter to
9741 override CASE_VALUES_THRESHOLD.
9743 * stmt.c (toplevel): Include params.h.
9744 (case_values_threshold): Use the --param case-values-threshold
9745 value if non-zero, otherwise use machine dependent value.
9746 (expand_case): Use case_values_threshold.
9748 * Makefile.in (stmt.o): Add $(PARAMS_H) dependency.
9750 * doc/invoke.texi (--param case-values-threshold): Document.
9752 2011-07-05 Richard Henderson <rth@redhat.com>
9754 * dwarf2out.c (dwarf2out_cfi_label): Make static.
9755 (dwarf2out_flush_queued_reg_saves): Make static.
9756 (dwarf2out_reg_save): Remove.
9757 (dwarf2out_return_save): Remove.
9758 (dwarf2out_return_reg): Remove.
9759 (dwarf2out_reg_save_reg): Remove.
9760 (dwarf2out_def_cfa): Merge into ...
9761 (dwarf2out_frame_init): ... here.
9762 * dwarf2out.h, tree.h: Remove declarations as necessary.
9764 2011-07-05 Richard Henderson <rth@redhat.com>
9766 * config/ia64/ia64.c (ia64_dwarf_handle_frame_unspec): Remove.
9767 (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
9768 (ia64_expand_epilogue): Emit an empty FRAME_RELATED_EXPR for
9771 * config/ia64/ia64.c (ia64_emit_deleted_label_after_insn): Remove.
9772 (IA64_CHANGE_CFA_IN_EPILOGUE): Remove.
9773 (process_epilogue): Don't call dwarf2out_def_cfa.
9775 * config/ia64/ia64.c (ia64_expand_prologue): Use pc_rtx to
9776 indicate the return address save.
9777 (process_cfa_register): Likewise.
9779 * config/ia64/ia64.c (ia64_dwarf2out_def_steady_cfa): Remove.
9780 (process_cfa_adjust_cfa, ia64_asm_unwind_emit): Don't call it.
9782 * config/ia64/ia64.c (ia64_expand_prologue): Emit REG_CFA_REGISTER
9783 for ar.pfs save at alloc insn.
9785 2011-07-05 Richard Henderson <rth@redhat.com>
9787 * config/arm/arm.c (arm_dwarf_handle_frame_unspec): Remove.
9788 (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
9789 (arm_expand_prologue): Use REG_CFA_REGISTER to mark the
9791 (arm_unwind_emit_set): Don't recognize UNSPEC_STACK_ALIGN.
9792 (arm_unwind_emit): Walk REG_NOTES for unwinding notes. Emit
9793 proper unwind info for a REG_CFA_REGISTER save of stack pointer.
9794 * config/arm/arm.md (UNSPEC_STACK_ALIGN): Remove.
9796 2011-07-05 Richard Henderson <rth@redhat.com>
9798 * config/vax/vax.md (define_c_enum unspecv): New. Define the
9799 VUNSPEC_* constants here instead of via define_constants.
9800 (VUNSPEC_PEM): New constant.
9801 (procedure_entry_mask): New insn.
9802 (prologue): New expander.
9803 * config/vax/vax.c (vax_add_reg_cfa_offset): New.
9804 (vax_expand_prologue): Rename from vax_output_function_prologue;
9805 emit rtl instead of text.
9806 (TARGET_ASM_FUNCTION_PROLOGUE): Remove.
9807 (print_operand): Add 'x' prefix.
9809 2011-07-05 H.J. Lu <hongjiu.lu@intel.com>
9812 * calls.c (precompute_register_parameters): Promote the function
9813 argument before checking non-legitimate constant.
9815 2011-07-05 Sebastian Pop <sebastian.pop@amd.com>
9817 PR tree-optimization/47654
9818 * graphite-blocking.c (pbb_strip_mine_time_depth): Do not return bool.
9819 (lst_do_strip_mine_loop): Return an int.
9820 (lst_do_strip_mine): Same.
9821 (scop_do_strip_mine): Same.
9822 (scop_do_block): Loop blocking should strip-mine at least two loops.
9823 * graphite-interchange.c (lst_interchange_select_outer): Return an int.
9824 (scop_do_interchange): Same.
9825 * graphite-poly.h (scop_do_interchange): Update declaration.
9826 (scop_do_strip_mine): Same.
9828 2011-07-05 Sebastian Pop <sebastian.pop@amd.com>
9830 * graphite-clast-to-gimple.c (precision_for_value): Removed.
9831 (precision_for_interval): Removed.
9832 (gcc_type_for_interval): Use mpz_sizeinbase.
9834 2011-07-05 Sebastian Pop <sebastian.pop@amd.com>
9836 * graphite-ppl.h (value_max): Correct computation of max.
9838 2011-07-05 Sebastian Pop <sebastian.pop@amd.com>
9840 * graphite-clast-to-gimple.c (clast_name_to_index): Add missing space.
9842 2011-07-05 Richard Guenther <rguenther@suse.de>
9844 * c-decl.c (c_init_decl_processing): Defer building common
9845 tree nodes to c_common_nodes_and_builtins.
9847 2011-07-05 Razya Ladelsky <razya@il.ibm.com>
9849 PR tree-optimization/49580
9850 * tree-cfg.c (gimple_duplicate_sese_tail): Remove handling of
9851 the loop's number of iterations.
9852 * tree-parloops.c (transform_to_exit_first_loop): Add the
9853 handling of the loop's number of iterations before the call
9854 to gimple_duplicate_sese_tail.
9855 Insert the stmt caclculating the new rhs of the loop's
9856 condition stmt to the preheader instead of iters_bb.
9858 2011-07-05 H.J. Lu <hongjiu.lu@intel.com>
9860 PR rtl-optimization/47449
9861 * fwprop.c (forward_propagate_subreg): Don't propagate hard
9862 register nor zero/sign extended hard register.
9864 2011-07-05 Richard Guenther <rguenther@suse.de>
9866 PR tree-optimization/49518
9867 PR tree-optimization/49628
9868 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Skip
9869 irrelevant and invariant data-references.
9870 (vect_analyze_data_ref_access): For invariant loads clear the
9873 2011-07-04 Jakub Jelinek <jakub@redhat.com>
9875 PR rtl-optimization/49619
9876 * combine.c (combine_simplify_rtx): In PLUS -> IOR simplification
9877 pass VOIDmode as op0_mode to recursive call, and return temp even
9878 when different from tor, just if it is not IOR of the original
9881 PR rtl-optimization/49472
9882 * simplify-rtx.c (simplify_unary_operation_1) <case NEG>: When
9883 negating MULT, negate the second operand instead of first.
9884 (simplify_binary_operation_1) <case MULT>: If one operand is
9885 a NEG and the other is MULT, don't attempt to optimize by negation
9886 of the MULT operand if it only moves the NEG operation around.
9889 * tree-into-ssa.c (rewrite_debug_stmt_uses): Disregard
9890 get_current_def return value if it can't be trusted to be
9891 the current value of the variable in the current bb.
9893 2011-07-04 Uros Bizjak <ubizjak@gmail.com>
9896 * config/i386/i386.md (SSE2 int->float split): Push operand 1 in
9897 general register to memory for !TARGET_INTER_UNIT_MOVES.
9899 2011-07-04 Georg-Johann Lay <avr@gjlay.de>
9902 * config/avr/avr.c (avr_insert_attributes): Use TYPE_READONLY
9903 instead of TREE_READONLY.
9905 2011-07-04 Georg-Johann Lay <avr@gjlay.de>
9907 * doc/extend.texi (AVR Built-in Functions): Update documentation
9908 of __builtin_avr_fmul*.
9909 * config/avr/avr.c (avr_init_builtins): Don't depend on AVR_HAVE_MUL.
9910 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Ditto.
9911 * config/avr/avr.md (fmul): Rename to fmul_insn.
9912 (fmuls): Rename to fmuls_insn.
9913 (fmulsu): Rename to fmulsu_insn.
9914 (fmul,fmuls,fmulsu): New expander.
9915 (*fmul.call,*fmuls.call,*fmulsu.call): New Insn.
9916 * config/avr/t-avr (LIB1ASMFUNCS): Add _fmul, _fmuls, _fmulsu.
9917 * config/avr/libgcc.S (__fmul): New function.
9918 (__fmuls): New function.
9919 (__fmulsu,__fmulsu_exit): New function.
9921 2011-07-04 Richard Guenther <rguenther@suse.de>
9923 PR tree-optimization/49615
9924 * tree-cfgcleanup.c (split_bbs_on_noreturn_calls): Fix
9925 basic-block index check.
9927 2011-07-04 Georg-Johann Lay <avr@gjlay.de>
9929 * longlong.h (count_leading_zeros, count_trailing_zeros,
9930 COUNT_LEADING_ZEROS_0): Define for target avr if W_TYPE_SIZE is 16
9933 2011-07-03 Ira Rosen <ira.rosen@linaro.org>
9935 PR tree-optimization/49610
9936 * tree-vect-loop.c (vect_is_slp_reduction): Check that DEF_STMT has
9939 2011-07-02 Eric Botcazou <ebotcazou@adacore.com>
9940 Olivier Hainque <hainque@adacore.com>
9941 Nicolas Setton <setton@adacore.com>
9943 * tree.h (TYPE_ARTIFICIAL): New flag.
9944 * dwarf2out.c (modified_type_die): Add a DW_AT_artificial attribute to
9945 the DIE of the type if it is artificial.
9946 (gen_array_type_die): Likewise.
9947 (gen_enumeration_type_die): Likewise.
9948 (gen_struct_or_union_type_die): Likewise.
9949 * lto-streamer-in.c (unpack_ts_base_value_fields): Use TYPE_ARTIFICIAL.
9950 * lto-streamer-out.c (pack_ts_base_value_fields): Likewise.
9952 2011-07-01 Jakub Jelinek <jakub@redhat.com>
9954 * tree-object-size.c (pass_through_call): Handle
9955 BUILT_IN_ASSUME_ALIGNED.
9957 2011-07-01 Martin Jambor <mjambor@suse.cz>
9959 * tree-sra.c (tree_non_mode_aligned_mem_p): Also ignore MEM_REFs.
9961 2011-07-01 H.J. Lu <hongjiu.lu@intel.com>
9964 * explow.c (update_nonlocal_goto_save_area): Use proper mode
9965 for stack save area.
9966 * function.c (expand_function_start): Likewise.
9968 2011-07-01 Richard Guenther <rguenther@suse.de>
9971 * cgraph.h (varpool_all_refs_explicit_p): Not analyzed nodes
9972 may have unknown refs.
9974 2011-07-01 Kai Tietz <ktietz@redhat.com>
9976 * tree-ssa-forwprop.c (simplify_bitwise_binary): Fix typo.
9978 2011-07-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9980 * config.gcc: Obsolete alpha*-dec-osf5.1, mips-sgi-irix6.5.
9981 * doc/install.texi (Specific, alpha*-dec-osf5.1): Document it.
9982 (Specific, mips-sgi-irix6): Likewise.
9984 2011-07-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9987 * doc/sourcebuild.texi (Effective-Target Keywords): Document gld.
9989 2011-07-01 Jakub Jelinek <jakub@redhat.com>
9991 * tree-pretty-print.c (dump_generic_code) <case CONSTRUCTOR>: Print
9992 [idx]= and [idx1 ... idx2]= before initializers if needed for
9995 2011-07-01 Chen Liqin <liqin.gcc@gmail.com>
9997 * config.gcc (score-*-elf): Remove score7.o.
9998 * config/score/t-score-elf: Likewise.
9999 * config/score/score.c: Merge score7 to score.c and
10000 remove forwarding functions.
10001 * config/score/score7.c: Deleted.
10002 * config/score/score7.h: Deleted.
10004 2011-07-01 Richard Guenther <rguenther@suse.de>
10006 PR tree-optimization/49603
10007 * tree-vect-stmts.c (vectorizable_load): Remove unnecessary assert.
10009 2011-06-30 Martin Jambor <mjambor@suse.cz>
10011 * tree-sra.c (struct access): Rename total_scalarization to
10012 grp_total_scalarization
10013 (completely_scalarize_var): New function.
10014 (sort_and_splice_var_accesses): Set total_scalarization in the
10015 representative access.
10016 (analyze_access_subtree): Propagate total scalarization accross the
10017 tree, no holes in totally scalarized trees, simplify coverage
10019 (analyze_all_variable_accesses): Call completely_scalarize_var instead
10020 of completely_scalarize_record.
10022 2011-06-30 Richard Henderson <rth@redhat.com>
10024 * config/i386/i386.h (X86_TUNE_DEEP_BRANCH_PREDICTION): Remove.
10025 (TARGET_DEEP_BRANCH_PREDICTION): Remove.
10026 * config/i386/i386.c: Don't include dwarf2out.h.
10027 (initial_ix86_tune_features): Remove X86_TUNE_DEEP_BRANCH_PREDICTION.
10028 (output_set_got): Don't test TARGET_DEEP_BRANCH_PREDICTION, delete
10029 all code dead thereafter. Don't do dwarf2out_flush_queued_reg_saves.
10030 (ix86_expand_prologue): Set REG_CFA_FLUSH_QUEUE on set_got insn.
10031 (machopic_output_stub): Don't test TARGET_DEEP_BRANCH_PREDICTION.
10033 2011-06-30 Richard Henderson <rth@redhat.com>
10035 * reg-notes.def (REG_CFA_FLUSH_QUEUE): New.
10036 * dwarf2out.c (dwarf2out_frame_debug): Handle it.
10037 * final.c (final_scan_insn): Look for it, and invoke
10038 dwarf2out_frame_debug before the insn if found.
10040 2011-06-30 Richard Henderson <rth@redhat.com>
10042 * dwarf2out.c (dwarf2out_frame_debug_cfa_offset): Allow PC_RTX
10043 as a source, and interpret that as DWARF_FRAME_RETURN_COLUMN.
10045 2011-06-30 Richard Henderson <rth@redhat.com>
10047 * dwarf2out.c (struct reg_saved_in_data): Provide a typedef.
10048 Define a vector of this type.
10049 (regs_saved_in_regs): Use a VEC.
10050 (num_regs_saved_in_regs): Remove.
10051 (compare_reg_or_pc): New.
10052 (record_reg_saved_in_reg): Split out from...
10053 (dwarf2out_flush_queued_reg_saves): ... here.
10054 (clobbers_queued_reg_save): Update for VEC.
10055 (reg_saved_in): Likewise.
10056 (dwarf2out_frame_debug_init): Likewise.
10057 (dwarf2out_reg_save_reg): Use record_reg_saved_in_reg.
10058 (dwarf2out_frame_debug_cfa_register): Likewise.
10060 2011-06-30 Eric Botcazou <ebotcazou@adacore.com>
10062 PR tree-optimization/49572
10063 * tree-ssa-dom.c (initialize_hash_element) <GIMPLE_SINGLE_RHS>: Use the
10064 type of the RHS instead of that of the LHS for the expression type.
10066 2011-06-30 Eric Botcazou <ebotcazou@adacore.com>
10068 * df-scan.c (df_get_entry_block_def_set): Use INCOMING_REGNO macro
10071 2011-06-30 Richard Guenther <rguenther@suse.de>
10073 * opts.c (finish_options): Do not disable IPA-PTA during ltrans.
10074 * tree-ssa-structalias.c (create_variable_info_for): Do not
10075 add initial constraints for non-var-decls. Properly handle
10076 globals in other ltrans partitions.
10077 (intra_create_variable_infos): Manually create constraints for
10078 the fake no-alias parameter.
10079 (ipa_pta_execute): Dump the cgraph, handle ltrans partitions properly
10080 and assert there are no clones.
10082 2011-06-30 Richard Guenther <rguenther@suse.de>
10084 PR tree-optimization/46787
10085 * tree-data-ref.c (dr_address_invariant_p): Remove.
10086 (find_data_references_in_stmt): Invariant accesses are ok now.
10087 * tree-vect-stmts.c (vectorizable_load): Handle invariant loads.
10088 * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
10091 2011-06-30 Martin Jambor <mjambor@suse.cz>
10093 PR tree-optimization/49094
10094 * tree-sra.c (tree_non_mode_aligned_mem_p): New function.
10095 (build_accesses_from_assign): Use it.
10097 2011-06-30 Jakub Jelinek <jakub@redhat.com>
10099 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Fix
10100 handling of BUILT_IN_ASSUME_ALIGNED.
10103 * dwarf2out.c (output_abbrev_section): Don't return early
10104 if abbrev_die_table_in_use is 1.
10105 (dwarf2out_finish): Instead don't call output_abbrev_section
10106 nor emit abbrev_section_label in that case.
10108 2011-06-30 Nick Clifton <nickc@redhat.com>
10110 * config/v850/v850.h (CPP_SPEC): Define __v850e__ when compiling
10113 2011-06-30 Jakub Jelinek <jakub@redhat.com>
10115 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Fix
10116 handling of BUILT_IN_MEMPCPY_CHK and BUILT_IN_STPCPY_CHK.
10118 2011-06-30 Ira Rosen <ira.rosen@linaro.org>
10120 * tree-vect-loop.c (vect_determine_vectorization_factor): Handle
10121 both pattern and original statements if necessary.
10122 (vect_transform_loop): Likewise.
10123 * tree-vect-patterns.c (vect_pattern_recog): Update documentation.
10124 * tree-vect-stmts.c (vect_mark_relevant): Add new argument.
10125 Mark the pattern statement only if the original statement doesn't
10127 (process_use): Call vect_mark_relevant with additional parameter.
10128 (vect_mark_stmts_to_be_vectorized): Likewise.
10129 (vect_get_vec_def_for_operand): Use vectorized pattern statement.
10130 (vect_analyze_stmt): Handle both pattern and original statements
10132 (vect_transform_stmt): Don't store vectorized pattern statement
10133 in the original statement.
10134 (vect_is_simple_use_1): Use related pattern statement only if the
10135 original statement is irrelevant.
10136 * tree-vect-slp.c (vect_get_and_check_slp_defs): Likewise.
10138 2011-06-29 Changpeng Fang <changpeng.fang@amd.com>
10140 * config/i386/i386.opt (mprefer-avx128): Redefine the flag as a Mask
10142 * config/i386/i386.h (ix86_tune_indices): Add X86_TUNE_AVX128_OPTIMAL
10144 (TARGET_AVX128_OPTIMAL): New definition.
10145 * config/i386/i386.c (initial_ix86_tune_features): Initialize
10146 X86_TUNE_AVX128_OPTIMAL entry.
10147 (ix86_option_override_internal): Enable the generation
10148 of the 128-bit instructions when TARGET_AVX128_OPTIMAL is set.
10149 (ix86_preferred_simd_mode): Use TARGET_PREFER_AVX128.
10150 (ix86_autovectorize_vector_sizes): Use TARGET_PREFER_AVX128.
10152 2011-06-29 Eric Botcazou <ebotcazou@adacore.com>
10154 PR tree-optimization/49539
10155 * tree-ssa-forwprop.c (can_propagate_from): Check for abnormal SSA
10156 names by means of stmt_references_abnormal_ssa_name.
10157 (associate_plusminus): Call can_propagate_from before propagating
10158 from definition statements.
10159 (ssa_forward_propagate_and_combine): Remove superfluous newline.
10161 2011-06-29 Richard Guenther <rguenther@suse.de>
10163 * doc/invoke.texi: Document -scev dump modifier.
10164 * tree-pass.h (TDF_SCEV): New dump flag.
10165 * tree-dump.c (dump_option_value_in): Add scev.
10166 * tree-chrec.c: Replace all TDF_DETAILS checks with TDF_SCEV.
10167 * tree-scalar-evolution.c: Likewise.
10169 2011-06-29 Nathan Sidwell <nathan@codesourcery.com>
10171 * config/arm/unwind-arm.c (enum __cxa_type_match_result): New.
10172 (cxa_type_match): Correct declaration.
10173 (__gnu_unwind_pr_common): Reconstruct additional indirection
10174 when __cxa_type_match returns succeeded_with_ptr_to_base.
10176 2011-06-29 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10178 PR rtl-optimization/49114
10179 * reload.c (struct replacement): Remove SUBREG_LOC member.
10180 (push_reload): Do not set it.
10181 (push_replacement): Likewise.
10182 (subst_reload): Remove dead code.
10183 (copy_replacements): Remove assertion.
10184 (copy_replacements_1): Do not handle SUBREG_LOC.
10185 (move_replacements): Likewise.
10186 (find_replacement): Remove dead code. Use reload_adjust_reg_for_mode.
10187 Detect subregs via recursive descent instead of via SUBREG_LOC.
10189 2011-06-29 Georg-Johann Lay <avr@gjlay.de>
10191 * config/avr/avr.c (avr_encode_section_info): Dispatch to
10192 default_encode_section_info.
10194 2011-06-29 Richard Sandiford <richard.sandiford@linaro.org>
10196 PR tree-optimization/49545
10197 * builtins.c (get_object_alignment_1): Update function comment.
10198 Do not use DECL_ALIGN for functions, but test
10199 TARGET_PTRMEMFUNC_VBIT_LOCATION instead.
10200 * fold-const.c (get_pointer_modulus_and_residue): Don't check
10201 for functions here.
10202 * tree-ssa-ccp.c (get_value_from_alignment): Likewise.
10204 2011-06-29 Jakub Jelinek <jakub@redhat.com>
10207 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTEND>: Give up for
10208 non-MODE_INT modes instead of asserting the mode has MODE_INT class.
10210 2011-06-29 Georg-Johann Lay <avr@gjlay.de>
10213 * config/avr/avr.c (avr_handle_progmem_attribute): Move warning
10214 about uninitialized data attributed 'progmem' from here...
10215 (avr_encode_section_info): ...to this new function.
10216 (TARGET_ENCODE_SECTION_INFO): New define.
10217 (avr_section_type_flags): For data in ".progmem.data", remove
10218 section flag SECTION_WRITE.
10220 2011-06-29 Georg-Johann Lay <avr@gjlay.de>
10222 * config/avr/t-avr (LIB1ASMFUNCS): Add _mulhisi3, _umulhisi3,
10224 * config/avr/libgcc.S (_xmulhisi3_exit): New Function.
10225 (__mulhisi3): Optimize if have MUL*. Use XJMP instead of rjmp.
10226 (__umulhisi3): Ditto.
10227 * config/avr/avr.md (mulhisi3): New insn expender.
10228 (umulhisi3): New insn expender.
10229 (*mulhisi3_call): New insn.
10230 (*umulhisi3_call): New insn.
10232 2011-06-28 Joseph Myers <joseph@codesourcery.com>
10234 * Makefile.in (LIBGCC2_CFLAGS): Remove -D__GCC_FLOAT_NOT_NEEDED.
10236 2011-06-28 Richard Henderson <rth@redhat.com>
10238 * config/arm/arm.c (thumb_pop): Rename from thumb_pushpop. Delete
10239 all code and arguments that handled pushes. Update all callers.
10241 2011-06-28 Richard Henderson <rth@redhat.com>
10243 * config/arm/arm.c (arm_output_function_prologue): Don't call
10244 thumb1_output_function_prologue.
10245 (arm_expand_prologue): Avoid dead store.
10246 (number_of_first_bit_set): Use ctz_hwi.
10247 (thumb1_emit_multi_reg_push): New.
10248 (thumb1_expand_prologue): Merge thumb1_output_function_prologue
10249 to emit the entire prologue as rtl.
10250 (thumb1_output_interwork): Split out from
10251 thumb1_output_function_prologue.
10252 (thumb1_output_function_prologue): Remove.
10253 (arm_attr_length_push_multi): Handle thumb1.
10254 * config/arm/arm.md (VUNSPEC_THUMB1_INTERWORK): New.
10255 (prologue_thumb1_interwork): New.
10256 (*push_multi): Allow thumb1; use push_mult_memory_operand.
10257 * config/arm/predicates.md (push_mult_memory_operand): New.
10259 2011-06-28 Eric Botcazou <ebotcazou@adacore.com>
10261 * config/sparc/sync.md (*stbar): Delete.
10262 (*membar_v8): New insn to implement UNSPEC_MEMBAR in SPARC-V8.
10264 2011-06-28 Eric Botcazou <ebotcazou@adacore.com>
10266 * tree-ssa-dom.c (initialize_hash_element): Fix oversight.
10268 2011-06-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10270 * config/sparc/sol2-64.h (TARGET_DEFAULT): Remove.
10271 (TARGET_64BIT_DEFAULT): Define.
10272 * config.gcc (sparc*-*-solaris2*): Move sparc/sol2-64.h to front
10274 * config/sparc/sol2.h [TARGET_64BIT_DEFAULT] (TARGET_DEFAULT): Define.
10276 2011-06-28 Joseph Myers <joseph@codesourcery.com>
10278 * common.opt (in_lto_p): New Variable entry.
10279 * flags.h (in_lto_p): Move to common.opt.
10280 * gcc.c: Include params.h.
10281 (set_option_handlers): Also use common_handle_option and
10282 target_handle_option.
10283 (main): Call global_init_params, finish_params and init_options_struct.
10284 * opts.c (debug_type_names): Move from toplev.c.
10285 (print_filtered_help): Access quiet_flag through opts pointer.
10286 (common_handle_option): Return early in the driver for some options.
10287 Access in_lto_p, dwarf_version and warn_maybe_uninitialized through
10289 * toplev.c (in_lto_p): Move to common.opt.
10290 (debug_type_names): Move to opts.c.
10291 * Makefile.in (OBJS): Remove opts.o.
10292 (OBJS-libcommon-target): Add opts.o.
10293 (gcc.o): Update dependencies.
10295 2011-06-28 Kai Tietz <ktietz@redhat.com>
10297 * tree-ssa-forwprop.c (simplify_bitwise_binary): Improve type sinking.
10299 2011-06-28 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
10301 * config/arm/vfp.md ("*divsf3_vfp"): Replace '+' constraint modifier
10302 with '=' constraint modifier.
10303 (*divdf3_vfp): Likewise.
10304 ("*mulsf3_vfp"): Likewise.
10305 ("*muldf3_vfp"): Likewise.
10306 ("*mulsf3negsf_vfp"): Likewise.
10307 ("*muldf3negdf_vfp"): Likewise.
10309 2011-06-28 Nick Clifton <nickc@redhat.com>
10311 * config/mn10300/mn10300.h (LINK_SPEC): Do not use linker
10312 relaxation when performing an incremental link.
10314 2011-06-28 Kai Tietz <ktietz@redhat.com>
10316 * tree-ssa-math-opts.c (execute_optimize_bswap): Search
10317 within BB from last to first.
10319 2011-06-28 Joseph Myers <joseph@codesourcery.com>
10321 * genattr-common.c: New. Based on genattr.c.
10322 * Makefile.in (INSN_ATTR_H): Include insn-attr-common.h.
10323 (MOSTLYCLEANFILES): Add insn-attr-common.h.
10324 (opts.o): Update dependencies.
10325 (.PRECIOUS): Add insn-attr-common.h.
10326 (simple_rtl_generated_h): Add insn-attr-common.h.
10327 (build/genattr-common.o): New.
10328 (genprogrtl): Add attr-common.
10329 * genattr.c (main): Include insn-attr-common.h. Don't generate
10330 definitions of DELAY_SLOTS or INSN_SCHEDULING.
10331 * opts.c: Include insn-attr-common.h instead of rtl.h and insn-attr.h.
10333 2011-06-28 Georg-Johann Lay <avr@gjlay.de>
10335 * config.gcc (tm_file): Add elfos.h and avr/elf.h for
10336 avr-*-* and avr-*-rtems* targets.
10338 * config/avr/elf.h: New file.
10339 (ASM_OUTPUT_BEFORE_CASE_LABEL): Define.
10340 (TARGET_ASM_SELECT_SECTION): Define.
10341 (INIT_SECTION_ASM_OP): Undefine.
10342 (FINI_SECTION_ASM_OP): Undefine.
10343 (READONLY_DATA_SECTION_ASM_OP): Undefine.
10344 (PCC_BITFIELD_TYPE_MATTERS): Undefine.
10345 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Undefine.
10346 * config/avr/avr.h:
10347 (PREFERRED_DEBUGGING_TYPE): Move to elf.h.
10348 (TARGET_ASM_NAMED_SECTION): Move to elf.h.
10349 (MAX_OFILE_ALIGNMENT): Move to elf.h.
10350 (STRING_LIMIT): Move to elf.h.
10351 (ASM_DECLARE_FUNCTION_NAME): Move to elf.h.
10352 (ASM_DECLARE_OBJECT_NAME): Remove.
10354 (ASM_OUTPUT_SKIP): Remove.
10355 (DWARF2_DEBUGGING_INFO): Remove.
10356 (OBJECT_FORMAT_ELF): Remove.
10357 (USER_LABEL_PREFIX): Remove.
10358 (ASM_OUTPUT_EXTERNAL): Remove.
10359 (ASM_OUTPUT_ASCII): Remove.
10360 (TYPE_ASM_OP): Remove.
10361 (SIZE_ASM_OP): Remove.
10362 (WEAK_ASM_OP): Remove.
10363 (STRING_ASM_OP): Remove.
10364 (SET_ASM_OP): Remove.
10365 (ASM_WEAKEN_LABEL): Remove.
10366 (TYPE_OPERAND_FMT): Remove.
10367 (ASM_DECLARE_FUNCTION_SIZE): Remove.
10368 (ASM_FINISH_DECLARE_OBJECT): Remove.
10369 (NO_DOLLAR_IN_LABEL): Remove.
10370 (ASM_GENERATE_INTERNAL_LABEL): Remove.
10371 (ASM_OUTPUT_CASE_LABEL): Remove.
10372 * config/avr/avr.c (avr_asm_output_aligned_decl_common): Use
10373 ASM_OUTPUT_ALIGNED_LOCAL, ASM_OUTPUT_ALIGNED_COMMON.
10374 (gas_output_ascii): Remove.
10375 (gas_output_limited_string): Remove.
10376 (TARGET_ASM_FILE_START_FILE_DIRECTIVE): Remove.
10377 * config/avr/avr-protos.h
10378 (gas_output_ascii): Remove prototye.
10379 (gas_output_limited_string): Remove prototype.
10381 2011-06-27 Richard Earnshaw <rearnsha@arm.com>
10384 * arm.c (arm_print_operand): Allow sym+offset. Don't abort on invalid
10387 2011-06-27 Jan Hubicka <jh@suse.cz>
10389 * ipa.c (cgraph_address_taken_from_non_vtable_p): Walk references of
10390 node instead of references in node.
10392 2011-06-27 Richard Henderson <rth@redhat.com>
10394 * config/alpha/alpha.c (vms_patch_builtins): Provide dummy definition.
10395 * config/ia64/ia64.c (ia64_init_builtins): Call vms_patch_builtins
10398 2011-06-27 Jakub Jelinek <jakub@redhat.com>
10400 * c-decl.c (union lang_tree_node): Use it in chain_next expression.
10402 * builtin-types.def (BT_FN_PTR_CONST_PTR_SIZE_VAR): New.
10403 * builtins.def (BUILT_IN_ASSUME_ALIGNED): New builtin.
10404 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call,
10405 find_func_clobbers): Handle BUILT_IN_ASSUME_ALIGNED.
10406 * tree-ssa-ccp.c (bit_value_assume_aligned): New function.
10407 (evaluate_stmt, execute_fold_all_builtins): Handle
10408 BUILT_IN_ASSUME_ALIGNED.
10409 * tree-ssa-dce.c (propagate_necessity): Likewise.
10410 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
10411 call_may_clobber_ref_p_1): Likewise.
10412 * builtins.c (is_simple_builtin, expand_builtin): Likewise.
10413 (expand_builtin_assume_aligned): New function.
10414 * doc/extend.texi (__builtin_assume_aligned): Document.
10417 * cselib.c (promote_debug_loc): If cselib_preserve_constants
10418 and l has two DEBUG_INSN owned locs instead of just one, adjust
10419 the second location's setting_insn too.
10421 2011-06-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10423 PR libmudflap/38738
10424 * config/sol2.h [!USE_GLD] (MFLIB_SPEC): Define.
10426 2011-06-27 Nick Clifton <nickc@redhat.com>
10428 * config/mn10300/mn10300.md (clzsi2): Use XOR after BSCH to convert
10429 bit position of highest bit set into a count of the high zero bits.
10431 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
10433 * dwarf2out.c (TYPE_DECL_IS_STUB): Extend mechanism to all types.
10435 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
10438 * dwarf2out.c (dwarf2out_finish): Do not attach a DIE on the limbo list
10441 2011-06-27 Richard Guenther <rguenther@suse.de>
10443 PR tree-optimization/49394
10444 * passes.c (execute_one_pass): Restore current_pass after
10445 applying IPA transforms.
10447 2011-06-27 Kai Tietz <ktietz@redhat.com>
10449 * tree-ssa-math-opts.c (do_shift_rotate): Zero bits
10450 out of type precision after operation.
10451 (find_bswap): Take for limit value the integer auto-promotion
10454 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
10456 * reorg.c (fill_simple_delay_slots): Use stop_search_p to stop the
10457 forward scan as well.
10459 2011-06-27 Tristan Gingold <gingold@adacore.com>
10462 * config/vms/vms-protos.h: New file.
10463 * config/vms/vms-crtlmap.map: New file.
10464 * config/vms/vms.c: New file.
10465 * config/vms/make-crtlmap.awk: New file.
10466 * config/vms/vms-crtl.h: File removed.
10467 * config/vms/vms-crtl-64.h: File removed.
10468 * config/vms/t-vms (vms-crtlmap.h, vms.o): New targets.
10469 * config/alpha/vms64.h: Do not include vms-crtl-64.h
10470 * config/alpha/alpha.c (alpha_init_builtins): Remove code to
10471 clear some builtins on VMS. Calls vms_patch_builtins.
10472 (avms_asm_output_external): Remove.
10473 * config/alpha/vms.h (ASM_OUTPUT_EXTERNAL): Remove.
10474 (struct crtl_name_spec): Remove
10475 (DO_CTRL_NAMES): Remove.
10476 * config/ia64/vms.h (struct crtl_name_spec): Remove
10477 (DO_CTRL_NAMES): Remove.
10478 * config/ia64/ia64.c (alpha_init_builtins): Remove code to
10479 clear some builtins on VMS. Calls vms_patch_builtins.
10480 (ia64_asm_output_external): Remove DO_CRTL_NAME.
10481 * config/ia64/vms64.h: Do not include vms-crtl-64.h
10482 * config.gcc (*-*-*vms*): Define extra_objs, target_gtfiles, tm_p_file.
10484 2011-06-27 Tristan Gingold <gingold@adacore.com>
10486 * config/alpha/alpha.c (alpha_end_function): Always generate .end
10489 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
10491 * config/sparc/sparc.c (sparc_frame_pointer_required): Return true if
10492 the function receives nonlocal gotos.
10494 2011-06-27 Richard Guenther <rguenther@suse.de>
10496 PR tree-optimization/49536
10497 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size):
10498 For non-scalar inner types use a scalar type according to
10499 the scalar inner mode.
10501 2011-06-27 Richard Guenther <rguenther@suse.de>
10503 PR tree-optimization/49365
10504 * params.def (min-insn-to-prefetch-ratio): Reduce from 10 to 9.
10506 2011-06-27 Richard Guenther <rguenther@suse.de>
10508 PR tree-optimization/49169
10509 * fold-const.c (get_pointer_modulus_and_residue): Don't rely on
10510 the alignment of function decls.
10512 2011-06-26 Iain Sandoe <iains@gcc.gnu.org>
10515 * config/darwin.c (darwin_mergeable_string_section): Place string
10516 constants in '.cstring' rather than '.const' when CF/NSStrings are
10519 2011-06-26 Eric Botcazou <ebotcazou@adacore.com>
10521 * config/sparc/sparc.c (save_local_or_in_reg_p): Adjust comment.
10522 (emit_save_register_window): Likewise.
10523 (sparc_expand_prologue): Use SIZE_INT_RTX and SIZE_RTX variables.
10524 (sparc_flat_expand_prologue): Add comment. Always emit blockage.
10525 Swap back %o7/%i7 in register naming.
10527 2011-06-25 Iain Sandoe <iains@gcc.gnu.org>
10530 * config/darwin.c (darwin_override_options): Improve warning when
10531 mdynamic-no-pic is given together with fPIC/fpic, also warn when it
10532 is given with fpie/fPIE.
10533 * config/darwin.h (PIE_SPEC): New, (LINK_SPEC): Use PIE_SPEC.
10534 * config/darwin9.h (PIE_SPEC): New.
10536 2011-06-25 Basile Starynkevitch <basile@starynkevitch.net>
10538 * timevar.c (timevar_print): Increase width for display of timevar
10541 2011-06-24 Jakub Jelinek <jakub@redhat.com>
10544 * c-decl.c (union lang_tree_node): Use TYPE_NEXT_VARIANT
10545 instead of TYPE_CHAIN for chain_next for types.
10547 2011-06-24 Richard Henderson <rth@redhat.com>
10549 * config/sparc/sparc.md (create_flat_frame_1<P:mode>): Remove.
10550 (create_flat_frame_2<P:mode>, create_flat_frame_3<P:mode>): Remove.
10551 * config/sparc/sparc.c (gen_create_flat_frame_1): Remove.
10552 (gen_create_flat_frame_2, gen_create_flat_frame_3): Remove.
10553 (sparc_flat_expand_prologue): Emit individual instructions
10554 instead of one of the above.
10556 2011-06-24 Easwaran Raman <eraman@google.com>
10558 PR rtl-optimization/49429
10560 * expr.c (emit_block_move_hints): Mark MEM_EXPR(x) and
10561 MEM_EXPR(y) addressable if emit_block_move_via_libcall is
10562 used to copy y into x.
10563 * calls.c (initialize_argument_information): Mark
10564 an argument addressable if it is passed by invisible reference.
10565 (emit_library_call_value_1): Mark MEM_EXPR (val) addressable
10566 if it is passed by reference.
10568 2011-06-24 H.J. Lu <hongjiu.lu@intel.com>
10570 PR rtl-optimization/49504
10571 * rtlanal.c (nonzero_bits1): Properly handle addition or
10572 subtraction of a pointer in Pmode if pointers extend unsigned.
10573 (num_sign_bit_copies1): Likewise.
10575 2011-06-24 Martin Jambor <mjambor@suse.cz>
10577 PR tree-optimizations/49516
10578 * tree-sra.c (sra_modify_assign): Choose the safe path for
10579 aggregate copies if we also did scalar replacements.
10581 2011-06-24 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
10584 * config/arm/predicates.md (add_operator): New.
10585 * config/arm/arm.md ("*arith_shiftsi"): Fix for SP reg usage in Thumb2.
10587 2011-06-24 Andi Kleen <ak@linux.intel.com>
10589 * tree-sra.c (type_internals_preclude_sra_p): Add msg
10590 parameter. Split up ifs and report reason in *msg.
10592 (find_var_candiate): Add msg variable.
10593 Split up ifs and report reason to reject.
10594 (find_param_candidates): Add msg variable.
10595 Pass msg to type_internals_preclude_sra_p.
10597 2011-06-23 Jeff Law <law@redhat.com>
10599 PR middle-end/48770
10600 * reload.h (reload): Change to return a bool.
10601 * ira.c (ira): If requested by reload, run a fast DCE pass after
10602 reload has completed. Fix comment typo.
10603 * reload1.c (need_dce): New file scoped static.
10604 (reload): Set reload_completed here. Return whether or not a DCE
10605 pass after reload is needed.
10606 (delete_dead_insn): Set need_dce as needed.
10608 PR middle-end/49465
10609 * tree-ssa-threadupate.c (fix_duplicate_block_edges): Fix condition
10610 to detect threading through joiner block. If there was already
10611 an edge to the new target, then do not change the PHI nodes.
10613 2011-06-23 Jakub Jelinek <jakub@redhat.com>
10615 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Use
10616 get_pointer_alignment to see if base isn't sufficiently aligned.
10618 2011-06-23 Jan Hubicka <jh@suse.cz>
10620 PR tree-optimize/49373
10621 * tree-pass.h (all_late_ipa_passes): Declare.
10622 * cgraphunit.c (init_lowered_empty_function): Fix properties.
10623 (cgraph_optimize): Execute late passes; remove unreachable funcions
10624 after materialization.
10625 * ipa-inline.c (gate_ipa_inline): Enable only when optimizing or
10627 * passes.c (all_late_ipa_passes): Declare.
10628 (dump_passes, register_pass): Handle late ipa passes.
10629 (init_optimization_passes): Move ipa_pta to late passes; schedule
10630 fixup_cfg at beggining of all_passes.
10631 (apply_ipa_transforms): New function.
10632 (execute_one_pass): When doing simple ipa pass, apply all transforms.
10634 2011-06-23 Joseph Myers <joseph@codesourcery.com>
10636 * params.c: Include common/common-target.h. Don't include tm.h.
10637 (lang_independent_params): Move from toplev.c.
10638 (global_init_params): New.
10639 * params.h (global_init_params): Declare.
10640 * target.def (default_params): Move to common-target.def.
10641 * toplev.c (lang_independent_options): Remove.
10642 (lang_independent_params): Move to params.c.
10643 (general_init): Use global_init_params.
10644 * common/common-target.def (option_default_params): Move from
10646 * common/config/ia64/ia64-common.c: Include params.h.
10647 (ia64_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
10649 * common/config/rs6000/rs6000-common.c: Include params.h.
10650 (rs6000_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
10652 * common/config/sh/sh-common.c: Include params.h.
10653 (sh_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
10655 * common/config/spu/spu-common.c: Include params.h.
10656 (spu_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
10658 * config/ia64/ia64.c (ia64_option_default_params,
10659 TARGET_OPTION_DEFAULT_PARAMS): Move to ia64-common.c.
10660 * config/rs6000/rs6000.c (rs6000_option_default_params,
10661 TARGET_OPTION_DEFAULT_PARAMS): Move to rs6000-common.c.
10662 * config/sh/sh.c (sh_option_default_params,
10663 TARGET_OPTION_DEFAULT_PARAMS): Move to sh-common.c.
10664 * config/spu/spu.c (spu_option_default_params,
10665 TARGET_OPTION_DEFAULT_PARAMS): Move to spu-common.c.
10666 * Makefile.in (OBJS): Remove params.o.
10667 (OBJS-libcommon-target): Add params.o.
10668 (params.o, $(common_out_object_file)): Update dependencies.
10669 * doc/tm.texi: Regenerate.
10671 2011-06-23 Alan Modra <amodra@gmail.com>
10674 * config/rs6000/rs6000.c (call_ABI_of_interest): Adjust cgraph
10675 invocation for 2011-06-09 changes.
10677 2011-06-22 Jakub Jelinek <jakub@redhat.com>
10680 * omp-low.c (expand_omp_for_static_nochunk): Only
10681 use n ceil/ nthreads size for the first n % nthreads threads in the
10682 team instead of all threads except for the last few ones which
10683 get less work or none at all.
10686 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Ignore debug
10689 2011-06-22 Richard Guenther <rguenther@suse.de>
10691 PR tree-optimization/49493
10692 * tree-ssa-structalias.c (get_constraint_for_ssa_var):
10693 Refer to the alias target of variables.
10694 (associate_varinfo_to_alias_1): Remove.
10695 (ipa_pta_execute): Do not associate aliases with anything.
10696 * cgraph.h (varpool_alias_aliased_node): Fix cut&paste errors.
10697 (cgraph_function_node): Likewise.
10698 (cgraph_function_or_thunk_node): Likewise.
10699 (varpool_variable_node): Likewise.
10701 2011-06-22 Nathan Sidwell <nathan@codesourcery.com>
10703 * config/arm/arm.h (OPTION_DEFAULT_SPECS): Fix -mtls-dialect typo.
10704 * config.gcc (arm*-*-linux*): Default to gnu tls.
10705 (arm*-*-*): Add --with-tls option.
10706 (all_defaults): Add 'tls'.
10708 2011-06-22 Richard Henderson <rth@redhat.com>
10710 * reg-notes.def (REG_CFA_WINDOW_SAVE): New.
10711 * dwarf2out.c (dwarf2out_frame_debug): Handle it.
10712 (dwarf2out_frame_debug_cfa_window_save): Rename from
10713 dwarf2out_window_save; make static.
10714 * tree.h (dwarf2out_window_save): Don't declare.
10716 * config/sparc/sparc.c (sparc_dwarf_handle_frame_unspec): Remove.
10717 (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
10718 (emit_save_register_window): Rename from gen_save_register_window;
10719 emit the insn and add REG_CFA_* notes.
10720 (sparc_expand_prologue): Update to match.
10721 * config/sparc/sparc.md (save_register_window_1): Simplify from
10722 save_register_window<P:mode>.
10724 2011-06-22 H.J. Lu <hongjiu.lu@intel.com>
10727 * config/i386/i386.md (*lea_general_2): Always allow SImode.
10728 (*lea_general_2_zext): Likewise.
10729 (imul to lea peepholes): Use const359_operand and check
10730 TARGET_PARTIAL_REG_STALL.
10732 * config/i386/predicates.md (const359_operand): New.
10734 2011-06-22 Michael Matz <matz@suse.de>
10736 * cgraphunit.c (assemble_thunk): Use correct return type.
10738 2011-06-22 Dmitry Plotnikov <dplotnikov@ispras.ru>
10739 Dmitry Melnik <dm@ispras.ru>
10741 * config/arm/arm.c (neon_immediate_valid_for_shift): New function.
10742 (neon_output_shift_immediate): Ditto.
10743 * config/arm/arm-protos.h (neon_immediate_valid_for_shift): New
10745 (neon_output_shift_immediate): Ditto.
10746 * config/arm/neon.md (vashl<mode>3): Modified constraint.
10747 (vashr<mode>3_imm): New insn pattern.
10748 (vlshr<mode>3_imm): Ditto.
10749 (vashr<mode>3): Modified constraint.
10750 (vlshr<mode>3): Ditto.
10751 * config/arm/predicates.md (imm_for_neon_lshift_operand): New
10753 (imm_for_neon_rshift_operand): Ditto.
10754 (imm_lshift_or_reg_neon): Ditto.
10755 (imm_rshift_or_reg_neon): Ditto.
10757 * optabs.c (init_optabs): Init optab codes for vashl, vashr, vlshr.
10759 2011-06-22 Jakub Jelinek <jakub@redhat.com>
10761 * tree-ssa-ccp.c (evaluate_stmt): Try bitwise tracking for
10762 builtin calls even if likelyvalue is not CONSTANT.
10763 Handle BUILT_IN_STRDUP and BUILT_IN_STRNDUP like BUILT_IN_MALLOC.
10764 Return get_value_for_expr of first operand
10765 for BUILT_IN_{MEM{CPY,MOVE,SET},STR{,N}CPY}{,_CHK}.
10766 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
10767 BUILT_IN_{MEM{{,P}CPY,MOVE,SET},STR{,N}C{PY,AT},STPCPY}_CHK like
10768 their non-checking counterparts.
10769 (call_may_clobber_ref_p_1): Likewise.
10770 (stmt_kills_ref_p_1): Handle BUILT_IN_MEM{{,P}CPY,MOVE,SET}_CHK
10771 like their non-checking counterparts.
10772 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
10773 Handle BUILT_IN_{MEM{{,P}CPY,MOVE,SET},STR{,N}C{PY,AT},STPCPY}_CHK
10774 like their non-checking counterparts.
10775 (find_func_clobbers): Likewise.
10776 * tree-ssa-dce.c (propagate_necessity): Handle BUILT_IN_MEMSET_CHK
10777 like BUILT_IN_MEMSET and BUILT_IN_CALLOC like BUILT_IN_MALLOC.
10779 * dwarf2out.c (size_of_loc_descr, output_loc_operands,
10780 mark_base_types, hash_loc_operands, compare_loc_operands): Allow
10781 DW_OP_GNU_convert and DW_OP_GNU_reinterpret to use constant instead
10782 of base type reference as argument.
10783 (resolve_addr_in_expr): Likewise. Fix keep computation.
10784 (convert_descriptor_to_signed): Renamed to...
10785 (convert_descriptor_to_mode): ... this. For wider types convert to
10786 unsigned instead of signed, for <= DWARF2_ADDR_SIZE convert to untyped.
10787 (typed_binop): New function.
10788 (scompare_loc_descriptor, ucompare_loc_descriptor,
10789 minmax_loc_descriptor, mem_loc_descriptor): For wider integer modes
10790 default to unsigned type instead of signed.
10793 * gimple.h (enum gimple_debug_subcode): Add GIMPLE_DEBUG_SOURCE_BIND.
10794 (gimple_build_debug_source_bind_stat): New prototype.
10795 (gimple_build_debug_source_bind): Define.
10796 (gimple_debug_source_bind_p, gimple_debug_source_bind_get_var,
10797 gimple_debug_source_bind_get_value,
10798 gimple_debug_source_bind_get_value_ptr,
10799 gimple_debug_source_bind_set_var,
10800 gimple_debug_source_bind_set_value): New inlines.
10801 * gimple.c (gimple_build_debug_source_bind_stat): New function.
10802 * gimple-pretty-print.c (dump_gimple_debug): Handle
10803 GIMPLE_DEBUG_SOURCE_BIND.
10804 * sese.c (rename_uses): Handle gimple_debug_source_bind_p.
10805 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
10806 * tree-parloops.c (eliminate_local_variables,
10807 separate_decls_in_region): Likewise.
10808 (separate_decls_in_region_debug): Renamed from
10809 separate_decls_in_region_debug_bind. Handle
10810 gimple_debug_source_bind_p.
10811 * tree.h (decl_debug_args_lookup, decl_debug_args_insert): New
10813 (DECL_HAS_DEBUG_ARGS_P): Define.
10814 (struct tree_function_decl): Add has_debug_args_flag field.
10815 * tree.c (debug_args_for_decl): New variable.
10816 (decl_debug_args_lookup, decl_debug_args_insert): New functions.
10817 * tree-into-ssa.c (mark_def_sites): Handle uses in debug stmts.
10818 (rewrite_debug_stmt_uses): New function.
10819 (rewrite_stmt): Use it to rewrite debug stmt uses.
10820 * rtl.def (DEBUG_PARAMETER_REF): New.
10821 * rtl.h (DEBUG_PARAMETER_REF_DECL): Define.
10822 * cselib.c (rtx_equal_for_cselib_1, cselib_hash_rtx): Handle
10823 DEBUG_PARAMETER_REF.
10824 * rtl.c (rtx_equal_p_cb, rtx_equal_p, iterative_hash_rtx): Likewise.
10825 * print-rtl.c (print_rtx): Likewise.
10826 * tree-sra.c (sra_ipa_reset_debug_stmts): Prefer replacing of
10827 SSA_NAMEs with DEBUG_EXPR_DECLs initialized in source bind
10828 debug stmts in the first bb.
10829 * tree-inline.c (remap_ssa_name): If remapping default def
10830 of a PARM_DECL fails, map to a DEBUG_EXPR_DECL set in
10831 a source bind debug stmt.
10832 (remap_gimple_stmt): Handle gimple_debug_source_bind_p.
10833 (maybe_move_debug_stmts_to_successors): Likewise.
10834 (copy_debug_stmt): Likewise. Avoid shadowing a variable.
10835 (tree_function_versioning): If DECL_HAS_DEBUG_ARGS_P, copy
10836 debug args vector from old_decl to new_decl.
10837 * ipa-prop.c (ipa_modify_call_arguments): For optimized away
10838 or modified parameters, add debug bind stmts before call
10839 setting DEBUG_EXPR_DECL which is remembered in debug args vector.
10840 * cfgexpand.c (expand_call_stmt): Call expand_debug_expr
10841 on DECL_DEBUG_EXPRs from debug args vector.
10842 (expand_debug_source_expr): New function.
10843 (expand_debug_locations): Use it for source bind insns.
10844 (expand_gimple_basic_block): Handle gimple_debug_source_bind_p.
10845 * var-tracking.c (prepare_call_arguments): Add debug args
10846 to call_arguments if any.
10847 * dwarf2out.c (dwarf_stack_op_name, size_of_loc_descr,
10848 output_loc_operands, output_loc_operands_raw, resolve_addr_in_expr,
10849 compare_loc_operands): Handle DW_OP_GNU_parameter_ref.
10850 (get_ref_die_offset, parameter_ref_descriptor): New functions.
10851 (mem_loc_descriptor): Handle DEBUG_PARAMETER_REF.
10852 (gen_subprogram_die): Handle parameters identified by
10853 DEBUG_PARAMETER_REF.
10855 2011-06-22 Nathan Sidwell <nathan@codesourcery.com>
10857 * doc/invoke.texi (ARM Options): Document -mtls-dialect option.
10858 * doc/install.texi (Configuration): Document --with-tls.
10859 * config/arm/arm.c (enum tls_reloc): Add TLS_DESCSEQ.
10860 (arm_call_tls_get_addr): Clean up. Assert not tls descriptor.
10861 (arm_tls_descseq_addr): New.
10862 (legitimize_tls_address): Add tlsdesc support.
10863 (arm_cannot_copy_insn_p): Check for tlscall.
10864 (arm_emit_tls_decoration): Likewise.
10865 * config/arm/arm.h (TARGET_GNU2_TLS): New.
10866 (OPTION_DEFAULT_SPECS): Add with-tls support.
10867 * config/arm/arm.md (R1_REGNUM): Define.
10869 * config/arm/arm.opt (tls_type): New enumeration type and values.
10870 (mtls-dialect): New switch.
10871 * config/arm/arm-opts.h (enum tls_type): New.
10873 2011-06-21 Nicola Pero <nicola.pero@meta-innovation.com>
10875 * attribs.c (register_attribute): Added assert to check that all
10876 attribute specs are registered with a name that is not empty and
10877 does not start with '_'.
10878 (decl_attributes): Avoid the lookup of the "naked" attribute spec
10879 if the function has no attributes.
10880 * tree.c (is_attribute_with_length_p): Removed.
10881 (is_attribute_p): Removed.
10882 (private_is_attribute_p): New.
10883 (private_lookup_attribute): New.
10884 (lookup_attribute): Removed.
10885 (lookup_ident_attribute): New.
10886 (remove_attribute): Require the first argument to be in the form
10887 'text', not '__text__'. Updated asserts.
10888 (merge_attributes): Use lookup_ident_attributes instead of
10890 (merge_dllimport_decl_attributes): Use remove_attribute.
10891 (attribute_list_contained): Likewise.
10892 (attribute_list_equal): Immediately return 1 if the arguments are
10893 identical pointers.
10894 * tree.h (is_attribute_p): Made inline. Return a 'bool', not an
10895 'int'. Require the first argument to be in the form 'text', not
10896 '__text__'. Require the second argument to be an identifier.
10897 (lookup_attribute): Made inline. Require the first argument to be
10898 in the form 'text', not '__text__'.
10899 (private_is_attribute_p, private_lookup_attribute): New.
10902 2011-06-21 Andrew MacLeod <amacleod@redhat.com>
10904 * builtins.c: Add sync_ or SYNC__ to builtin names.
10905 * sync-builtins.def: Add sync_ or SYNC__ to builtin names.
10906 * omp-low.c: Add sync_ or SYNC__ to builtin names.
10908 2011-06-21 Georg-Johann Lay <avr@gjlay.de>
10911 * config/avr/avr.md (extzv): New expander.
10912 (*extzv): New insn.
10913 (*extzv.qihi1, *extzv.qihi2): New insn-and-split.
10914 * config/avr/constraints.md (C04): New constraint.
10915 * doc/md.texi (Machine Constraints): Document it.
10917 2011-06-21 Jakub Jelinek <jakub@redhat.com>
10919 PR middle-end/49489
10920 * builtins.c (expand_builtin_unop): Call expand_unop with 0 as
10921 unsignedp argument instead of 1 for clrsb_optab.
10922 (fold_builtin_bitop): Fix masking for width > HOST_BITS_PER_WIDE_INT
10923 and < 2 * HOST_BITS_PER_WIDE_INT. Optimize BUILT_IN_CLRSB*.
10924 (fold_builtin_1): Call fold_builtin_binop for BUILT_IN_CLRSB*.
10925 * optabs.c (widen_leading): Call widen_operand and expand_unop
10926 with 0 as unsignedp argument instead of 1 for clrsb_optab.
10927 (expand_unop): Subtract difference of mode sizes also for clrsb_optab.
10929 2011-06-21 Georg-Johann Lay <avr@gjlay.de>
10931 * config/avr/avr.md (*jcindirect_jump): Fix build warning.
10933 2011-06-21 Bernd Schmidt <bernds@codesourcery.com>
10935 * gensupport.c (add_define_attr): New static function.
10936 (is_predicable): Allow multi-alternative lists for the "predicable"
10938 (modify_attr_enabled_ce, alter_attrs_for_insn): New static functions.
10939 (process_one_cond_exec): Call alter_attrs_for_insn.
10940 * doc/md.texi (Defining Attributes): Mention some standard names.
10941 (Conditional Execution): Update documentation for "predicable".
10943 * doc/extend.texi (__builtin_clrsb, __builtin_clrsbl,
10944 __builtin_clrsbll): Document.
10945 * doc/rtl.texi (clrsb): New entry.
10946 * optabs.c (widen_leading): Renamed from widen_clz. New argument
10947 UNOPTAB. All callers changed. Use UNOPTAB instead of clz_optab.
10948 (expand_unop): Handle clrsb_optab.
10949 (init_optabs): Initialize it.
10950 * optabs.h (enum optab_index): New entry OTI_clrsb.
10951 (clrsb_optab): Define.
10952 * genopinit.c (optabs): Add an entry for it.
10953 * builtins.c (expand_builtin): Handle clrsb builtin functions.
10954 * builtins.def (BUILT_IN_CLRSB, BUILT_IN_CLRSBIMAX, BUILT_IN_CLRSBL,
10955 BUILT_IN_CLRSBLL): New.
10956 * rtl.def (CLRSB): New code.
10957 * dwarf2out.c (mem_loc_descriptor): Handle it.
10958 * simplify-rtx.c (simplify_const_unary_operation): Likewise.
10959 Use op_mode rather than mode when optimizing ffs, clz, ctz, parity
10961 * libgcc2.c (__clrsbSI2, __clrsbDI2): New functions.
10962 * libgcc2.h (__clrsbSI2, __clrsbDI2): Define and declare.
10963 (__ctzDI2): Move declaration.
10964 * config/bfin/bfin.md (clrsbsi2): New expander.
10965 (signbitssi2): Use the CLRSB rtx.
10966 (clrsbhi2): Renamed from signbitshi2. Use the CLRSB rtx.
10967 * config/bfin/bfin.c (bdesc_1arg): Changed accordingly.
10969 2011-06-21 Richard Guenther <rguenther@suse.de>
10971 * ipa-inline-transform.c (inline_transform): Fix previous change.
10973 2011-06-21 Ira Rosen <ira.rosen@linaro.org>
10975 PR tree-optimization/49478
10976 * tree-vect-loop.c (vectorizable_reduction): Handle DOT_PROD_EXPR
10977 with constant operand.
10979 2011-06-21 Richard Guenther <rguenther@suse.de>
10981 * ipa-inline-transform.c (inline_transform): Fix typo.
10983 2011-06-21 Richard Guenther <rguenther@suse.de>
10985 PR tree-optimization/49483
10986 * tree-vect-stmts.c (vectorizable_assignment): Also handle
10987 VIEW_CONVERT_EXPR conversions.
10989 2011-06-21 Joseph Myers <joseph@codesourcery.com>
10991 * config/avr/avr-mcus.def, config/avr/genopt.sh: New files.
10992 * config/avr/avr-tables.opt: New file (generated).
10993 * config.gcc (avr-*-*): Use avr/avr-tables.opt.
10994 * config/avr/avr-devices.c (avr_mcu_types): Move contents to
10996 * config/avr/avr.c (avr_help, TARGET_HELP): Remove.
10997 (avr_option_override): Don't process -mmcu= argument here. Set
10998 avr_current_device using avr_mcu_index.
10999 (avr_file_start): Use avr_current_device->name instead of avr_mcu_name.
11000 * config/avr/avr.opt (mmcu=): Use Enum.
11001 * config/avr/t-avr (avr-devices.o): Update dependencies.
11002 ($(srcdir)/config/avr/avr-tables.opt): New.
11003 * target.def (help): Remove.
11004 * doc/tm.texi.in (TARGET_HELP): Remove.
11005 * doc/tm.texi: Regenerate.
11006 * opts.c: Don't include target.h.
11007 (common_handle_option): Don't call targetm.help.
11008 * system.h (TARGET_HELP): Poison.
11009 * Makefile.in (opts.o): Update dependencies.
11011 2011-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11013 * config/usegld.h: New file.
11014 * config/sol2.h (PREFERRED_DEBUGGING_TYPE): Remove.
11015 (CPP_SUBTARGET_SPEC): Remove -compat-bsd support.
11016 (LIB_SPEC): Likewise. Search /lib.
11017 (LINK_ARCH32_SPEC_BASE): Remove -compat-bsd support.
11018 (RDYNAMIC_SPEC): Handle GNU ld.
11019 [HAVE_LD_EH_FRAME_HDR && TARGET_DL_ITERATE_PHDR] (LINK_EH_SPEC):
11021 (SUPPORTS_INIT_PRIORITY): Only disable for Sun ld.
11022 (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Define.
11023 [!USE_GAS] (NO_DBX_BNSYM_ENSYM): Redefine.
11024 (STACK_CHECK_STATIC_BUILTIN): Define.
11025 * config/sol2.opt (compat-bsd): Remove.
11026 * config/sol2-10.h (TARGET_C99_FUNCTIONS): Remove undef.
11027 * config/sol2-bi.h: New file.
11028 * config/sol2-gld.h: Remove.
11029 * config/i386/sol2.h (TLS_COMMON_ASM_OP): Only define if !USE_GAS.
11030 (NO_DBX_BNSYM_ENSYM): Remove.
11031 (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Remove.
11032 (STACK_CHECK_STATIC_BUILTIN): Remove.
11033 Test USE_GLD instead of TARGET_GNU_LD.
11034 * config/i386/sol2-10.h: Rename to ...
11035 * config/i386/sol2-bi.h .. this.
11036 (SUBTARGET_EXTRA_SPECS): Redefine.
11037 (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE): Remove.
11038 (MULTILIB_DEFAULTS): Remove.
11039 (DEFAULT_ARCH32_P): Define.
11040 (LINK_ARCH64_SPEC_BASE, LINK_ARCH64_SPEC): Remove.
11041 (ARCH64_SUBDIR): Define.
11042 Test USE_GLD instead of TARGET_GNU_LD.
11043 (I386_EMULATION): Rename to ...
11044 (ARCH32_EMULATION): ... this.
11045 (X86_64_EMULATION): Rename to ...
11046 (ARCH64_EMULATION): ... this.
11047 (TARGET_LD_EMULATION): Remove.
11048 (LINK_ARCH_SPEC): Remove.
11049 * config/i386/sol2-gas.h: Remove.
11050 * config/i386/t-sol2-10: Rename to ...
11051 * config/i386/t-sol2-64: ... this.
11052 * config/sparc/sol2.h (SPARC_DEFAULT_CMODEL): Redefine.
11053 (AS_SPARC64_FLAG): Define.
11054 (ASM_CPU32_DEFAULT_SPEC, ASM_CPU64_DEFAULT_SPEC): Redefine.
11055 (CPP_CPU64_DEFAULT_SPEC, ASM_CPU32_DEFAULT_SPEC): Redefine
11056 depending on TARGET_CPU_DEFAULT.
11057 (CPP_CPU_SPEC): Redefine.
11058 (ASM_CPU_SPEC): Handle DEFAULT_ARCH32_P.
11059 (CPP_CPU_DEFAULT_SPEC, ASM_CPU_DEFAULT_SPEC): Redefine.
11060 (CPP_ARCH32_SPEC, CPP_ARCH64_SPEC, CPP_ARCH_SPEC): Redefine.
11061 (ASM_ARCH_SPEC, ASM_ARCH32_SPEC, ASM_ARCH64_SPEC,
11062 ASM_ARCH_DEFAULT_SPEC): Redefine.
11063 (SUBTARGET_EXTRA_SPECS): Add LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
11064 LINK_ARCH_DEFAULT_SPEC.
11065 [USE_GLD] (ARCH32_EMULATION, ARCH64_EMULATION): Define.
11066 [USE_GLD] (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC): Redefine.
11067 (ARCH64_SUBDIR): Define.
11068 (LINK_ARCH64_SPEC): Redefine.
11069 (CC1_SPEC): Redefine.
11070 (OPTION_DEFAULT_SPECS): Redefine.
11071 (MULTILIB_DEFAULTS): Define.
11072 (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE): Redefine.
11073 [USE_GAS && HAVE_AS_TLS] (TARGET_SUN_TLS, TARGET_GNU_TLS): Redefine.
11074 [USE_GLD] (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undef.
11075 (NO_DBX_BNSYM_ENSYM): Remove.
11076 (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Remove.
11077 (ASM_OUTPUT_ALIGN_WITH_NOP): Only define if !USE_GAS.
11078 (TARGET_ASM_NAMED_SECTION): Likewise.
11079 (STACK_CHECK_STATIC_BUILTIN): Remove.
11080 * config/sparc/sol2-bi.h: Remove.
11081 * config/sparc/sol2-gas-bi.h: Remove.
11082 * config/sparc/sol2-gas.h: Remove.
11083 * config/sparc/sol2-gld-bi.h: Remove.
11084 * config.gcc (i[34567]86-*-solaris2*, sparc*-*-solaris2*): Move
11086 (*-*-solaris2*): ... here.
11088 2011-06-21 Christian Bruel <christian.bruel@st.com>
11091 * ipa-inline.c (can_inline_edge_p): Check
11092 !DECL_DISREGARD_INLINE_LIMITS.
11094 2011-06-21 Christian Bruel <christian.bruel@st.com>
11096 PR middle-end/49139
11097 * cgraphunit.c (process_function_and_variable_attributes): warn when
11098 always_inline functions that are not inline.
11099 * ipa-inline-transform.c (inline_transform): Always call
11101 * tree-inline.c (tree_inlinable_function_p): Use error instead
11103 (expand_call_inline): Likewise.
11105 2011-06-21 Jakub Jelinek <jakub@redhat.com>
11107 * Makefile.in (dg_target_exps): Set.
11108 (check_gcc_parallelize): Parallelize gcc testing into 10 jobs
11109 instead of 7, try to divide it more evenly.
11111 2011-06-20 Changpeng Fang <changpeng.fang@amd.com>
11114 * config/i386/i386.c (avx256_split_unaligned_load): New definition.
11115 (avx256_split_unaligned_store): New definition.
11116 (ix86_option_override_internal): Enable avx256 unaligned load/store
11117 splitting only when avx256_split_unaligned_load/store is set.
11119 2011-06-20 Bernd Schmidt <bernds@codesourcery.com>
11121 * regrename.c (scan_rtx_reg): Handle the case where we write to an
11122 open chain in a smaller mode without failing the entire block.
11124 2011-06-21 Alan Modra <amodra@gmail.com>
11126 * config/rs6000/rs6000.c (rs6000_cannot_force_const_mem): Match
11127 CONST high part large-toc address.
11128 (rs6000_tls_referenced_p): Make static.
11129 * config/rs6000/rs6000-protos.h (rs6000_tls_referenced_p): Delete.
11131 2011-06-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
11134 * config/arm/thumb2.md (*thumb2_movhi_insn): Make sure atleast
11135 one of the operands is a register.
11137 2011-06-20 Kai Tietz <ktietz@redhat.com>
11139 * fold-const.c (fold_binary_loc): Add missing folding for truth-not
11140 operations in combination with binary and.
11142 2011-06-20 Bernd Schmidt <bernds@codesourcery.com>
11144 * regrename.c (do_replace): Don't update notes.
11146 2011-06-20 Alan Modra <amodra@gmail.com>
11148 * config/rs6000/rs6000.c (create_TOC_reference): Wrap high part
11149 of toc-relative address in CONST.
11150 (rs6000_delegitimize_address): Recognize changed address.
11151 (rs6000_legitimize_reload_address): Likewise.
11152 (rs6000_emit_move): Don't force these constants to memory.
11153 * config/rs6000/rs6000.md (tls_gd, tls_gd_high): Wrap high part of
11154 toc-relative address in CONST.
11155 (tls_ld, tls_ld_high, tls_got_dtprel, tls_got_dtprel_high): Likewise.
11156 (tls_got_tprel, tls_got_tprel_high, largetoc_high): Likewise.
11158 2011-06-18 H.J. Lu <hongjiu.lu@intel.com>
11160 * longlong.h (count_leading_zeros): Use long long builtin for x86-64.
11161 (count_trailing_zeros): Likewise.
11163 2011-06-18 H.J. Lu <hongjiu.lu@intel.com>
11166 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Properly check if
11167 .init_array can be used with .ctors on targets.
11168 * configure: Regenerated.
11170 2011-06-18 Eric Botcazou <ebotcazou@adacore.com>
11172 * tree-sra.c (type_internals_preclude_sra_p) <ARRAY_TYPE>: Return true
11173 if the element type is volatile.
11175 2011-06-18 Jan Hubicka <jh@suse.cz>
11177 * lto-symtab.c (lto_varpool_replace_node): Remove code handling
11178 extra name aliases.
11179 (lto_symtab_resolve_can_prevail_p): Likewise.
11180 (lto_symtab_merge_cgraph_nodes): Update alias_of pointers.
11181 * cgraphbuild.c (record_reference): Remove extra body alias code.
11182 (mark_load): Likewise.
11183 (mark_store): Likewise.
11184 * cgraph.h (varpool_node): Remove extra_name filed;
11185 add alias_of and extraname_alias.
11186 (varpool_create_variable_alias, varpool_for_node_and_aliases): Declare.
11187 (varpool_alias_aliased_node): New inline function.
11188 (varpool_variable_node): New function.
11189 * cgraphunit.c (handle_alias_pairs): Handle also variable aliases.
11190 * ipa-ref.c (ipa_record_reference): Allow aliases on variables.
11191 * lto-cgraph.c (lto_output_varpool_node): Update streaming.
11192 (input_varpool_node): Likewise.
11193 * lto-streamer-out.c (produce_symtab): Remove extra name aliases.
11194 (varpool_externally_visible_p): Remove extra body alias code.
11195 (function_and_variable_visibility): Likewise.
11196 * tree-ssa-structalias.c (associate_varinfo_to_alias_1): New function.
11197 (ipa_pta_execute): Use it.
11198 * varpool.c (varpool_remove_node): Remove extra name alias code.
11199 (varpool_mark_needed_node): Likewise.
11200 (varpool_analyze_pending_decls): Analyze aliases.
11201 (assemble_aliases): New functoin.
11202 (varpool_assemble_decl): Use it.
11203 (varpool_create_variable_alias): New function.
11204 (varpool_extra_name_alias): Rewrite.
11205 (varpool_for_node_and_aliases): New function.
11207 2011-06-18 Jakub Jelinek <jakub@redhat.com>
11210 * config/i386/i386.c (ix86_expand_multi_arg_builtins): If
11211 last_arg_constant and last argument doesn't match its predicate,
11212 for xop_vpermil2<mode>3 error out and for xop_rotl<mode>3
11213 if it is CONST_INT, mask it, otherwise expand using rotl<mode>3.
11214 (ix86_expand_sse_pcmpestr, ix86_expand_sse_pcmpistr): Fix
11215 spelling of error message.
11216 * config/i386/sse.md (sse4a_extrqi, sse4a_insertqi,
11217 vcvtps2ph, *vcvtps2ph, *vcvtps2ph_store, vcvtps2ph256): Use
11218 const_0_to_255_operand instead of const_int_operand.
11221 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
11223 * config/i386/sse.md (blendbits): Remove mode attribute.
11224 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
11225 instead of const_0_to_<blendbits>_operand for operand 3 predicate.
11226 Check integer value of operand 3 in insn constraint.
11228 2011-06-17 Hans-Peter Nilsson <hp@axis.com>
11230 PR rtl-optimization/48542
11231 * reload.c (find_equiv_reg): Stop looking when finding a
11233 * reload1.c (reload_as_needed): Invalidate all reload
11234 registers when crossing a setjmp-type call.
11236 2011-06-16 Jeff Law <law@redhat.com>
11238 * tree-ssa-threadupdate.c (struct redirection_data): New field
11240 (THREAD_TARGET2): Define.
11241 (redirection_data_eq): Also check that the intermediate edge is equal.
11242 (lookup_redirection_data): Drop useless argument. Extract the
11243 outgoing_edge and intermediate edge from E. Callers updated.
11244 (copy_phi_args, update_destination_phis): New functions.
11245 (fix_duplicate_block_edges): Likewise.
11246 (create_edge_and_update_destination_phis): Duplicate all the edges
11247 hung off e->aux. Use copy_phi_args.
11248 (create_duplicates): Use fix_duplicate_block_edges.
11249 (fixup_template_block): Likewise.
11250 (redirect_edges): If necessary, redirect the joiner block's incoming
11251 edge to the duplicate of the joiner block.
11252 (thread_block): Don't muck up loops when threading through a joiner
11254 (thread_through_loop_header): Handle threading through a joiner block.
11255 (mark_threaded_blocks, register_jump_thread): Likewise.
11256 * tree-flow.h (register_jump_thread): Add new argument. Callers
11258 * tree-ssa-threadedge.c (phi_args_equal_on_edges): New function.
11259 (thread_across_edge): Handle threading through a joiner block.
11261 2011-06-16 Martin Jambor <mjambor@suse.cz>
11263 PR tree-optimization/49343
11264 * tree-sra.c (build_ref_for_model): Use component_ref_field_offset to
11265 calculate offset, provide 2nd operand for the new COMPONENT_REF.
11267 2011-06-16 Iain Sandoe <iains@gcc.gnu.org>
11269 * config/darwin-protos.h (machopic_select_rtx_section): Move to
11270 inside RTX_CODE ifdef.
11272 2011-06-16 Tom de Vries <tom@codesourcery.com>
11275 * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith):
11276 Disallow NULL pointer for pointer arithmetic.
11278 2011-06-16 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
11282 2011-06-10 Wei Guozhi <carrot@google.com>
11285 * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
11286 stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
11287 (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
11289 (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
11291 * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
11292 (arm_legitimate_ldrd_p): New prototype.
11293 (arm_output_ldrd): New prototype.
11294 * config/arm/arm.c (arm_check_ldrd_operands): New function.
11295 (arm_legitimate_ldrd_p): New function.
11296 (arm_output_ldrd): New function.
11298 2011-06-16 Joern Rennecke <joern.rennecke@embecosm.com>
11300 PR middle-end/46500
11301 * doc/tm.texi.in: Update Copyright date.
11302 * doc/tm.texi: Regenerate.
11303 * targhooks.c (default_setup_incoming_varargs): Replace
11304 CUMULATIVE_ARGS* argument type with cumulative_args_t.
11305 (default_pretend_outgoing_varargs_named): Likewise.
11306 (hook_pass_by_reference_must_pass_in_stack): Likewise.
11307 (hook_callee_copies_named): Likewise.
11308 (default_function_arg_advance): Likewise.
11309 (default_function_arg): Likewise.
11310 (default_function_incoming_arg): Likewise.
11311 (hook_bool_CUMULATIVE_ARGS_false): Likewise.
11312 (hook_bool_CUMULATIVE_ARGS_true): Likewise.
11313 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Likewise.
11314 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
11315 (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Likewise.
11316 * targhooks.h (default_setup_incoming_varargs): Likewise.
11317 (default_pretend_outgoing_varargs_named): Likewise.
11318 (hook_pass_by_reference_must_pass_in_stack): Likewise.
11319 (hook_callee_copies_named): Likewise.
11320 (default_function_arg_advance): Likewise.
11321 (default_function_arg): Likewise.
11322 (default_function_incoming_arg): Likewise.
11323 (hook_bool_CUMULATIVE_ARGS_false): Likewise.
11324 (hook_bool_CUMULATIVE_ARGS_true): Likewise.
11325 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Likewise.
11326 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
11327 (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Likewise.
11328 * target.def (pass_by_reference): Likewise.
11329 (setup_incoming_varargs, strict_argument_naming): Likewise.
11330 (pretend_outgoing_varargs_named, callee_copies): Likewise.
11331 (arg_partial_bytes, function_arg_advance, function_arg): Likewise.
11332 (function_incoming_arg): Likewise.
11333 * target.h: Don't include "tm.h" .
11334 (cumulative_args_t): New typedef.
11335 [GCC_TM_H] (get_cumulative_args): New static inline function.
11336 [GCC_TM_H] (pack_cumulative_args): Likewise.
11337 * config/alpha/alpha.c (alpha_function_arg): Replace CUMULATIVE_ARGS*
11338 argument type with cumulative_args_t.
11339 (alpha_function_arg_advance, alpha_arg_partial_bytes): Likewise.
11340 (alpha_pass_by_reference, alpha_setup_incoming_varargs): Likewise.
11341 * config/frv/frv.c (frv_setup_incoming_varargs): Likewise.
11342 (frv_arg_partial_bytes, frv_function_arg): Likewise.
11343 (frv_function_incoming_arg, frv_function_arg_advance): Likewise.
11344 (frv_function_arg_1): Likewise.
11345 * config/s390/s390.c (s390_pass_by_reference): Likewise.
11346 (s390_function_arg_advance, s390_function_arg): Likewise.
11347 * config/m32c/m32c.c (m32c_function_arg): Likewise.
11348 (m32c_pass_by_reference, m32c_function_arg_advance): Likewise.
11349 (m32c_strict_argument_naming): Likewise.
11350 * config/spu/spu.c (spu_pass_by_reference, spu_function_arg): Likewise.
11351 (spu_function_arg_advance): Likewise.
11352 (spu_setup_incoming_varargs): Likewise. Make static.
11353 * config/spu/spu-protos.h (spu_setup_incoming_varargs):
11355 * config/sparc/sparc.c (sparc_strict_argument_naming): Replace
11356 CUMULATIVE_ARGS* argument type with cumulative_args_t.
11357 (sparc_pass_by_reference, sparc_function_arg_advance): Likewise.
11358 (sparc_function_arg, sparc_function_incoming_arg): Likewise.
11359 (sparc_arg_partial_bytes, sparc_function_arg_1): Likewise.
11360 * config/mep/mep.c (mep_setup_incoming_varargs): Likewise.
11361 (mep_pass_by_reference, mep_function_arg): Likewise.
11362 (mep_function_arg_advance): Likewise.
11363 * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
11364 (m32r_pass_by_reference, m32r_arg_partial_bytes): Likewise.
11365 (m32r_function_arg, m32r_function_arg_advance): Likewise.
11366 * config/rx/rx.c (rx_function_arg, rx_function_arg_advance): Likewise.
11367 * config/i386/i386.c (ix86_function_arg_advance): Likewise.
11368 (ix86_function_arg, ix86_pass_by_reference): Likewise.
11369 (ix86_setup_incoming_varargs): Likewise.
11370 * config/sh/sh.c (sh_setup_incoming_varargs): Likewise.
11371 (sh_strict_argument_naming): Likewise.
11372 (sh_pretend_outgoing_varargs_named, sh_pass_by_reference): Likewise.
11373 (sh_callee_copies, sh_arg_partial_bytes): Likewise.
11374 (sh_function_arg_advance, sh_function_arg): Likewise.
11375 * config/pdp11/pdp11.c (pdp11_function_arg): Likewise.
11376 (pdp11_function_arg_advance): Likewise.
11377 * config/microblaze/microblaze.c (microblaze_function_arg_advance):
11379 (microblaze_function_arg, function_arg_partial_bytes): Likewise.
11380 * config/avr/avr.c (avr_function_arg): Likewise.
11381 (avr_function_arg_advance): Likewise.
11382 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Likewise.
11383 (xtensa_function_arg, xtensa_function_incoming_arg): Likewise.
11384 (xtensa_function_arg_1): Likewise.
11385 * config/stormy16/stormy16.c (xstormy16_function_arg_advance):
11387 (xstormy16_function_arg): Likewise.
11388 * config/fr30/fr30.c (fr30_setup_incoming_varargs): Likewise.
11389 (fr30_arg_partial_bytes, fr30_function_arg): Likewise.
11390 (fr30_function_arg_advance): Likewise.
11391 * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
11392 (lm32_function_arg, lm32_function_arg_advance): Likewise.
11393 * config/moxie/moxie.c (moxie_setup_incoming_varargs): Likewise.
11394 (moxie_function_arg, moxie_function_arg_advance): Likewise.
11395 (moxie_pass_by_reference, moxie_arg_partial_bytes): Likewise.
11396 * config/cris/cris.c (cris_setup_incoming_varargs): Likewise.
11397 (cris_pass_by_reference, cris_arg_partial_bytes): Likewise.
11398 (cris_function_arg, cris_function_incoming_arg): Likewise.
11399 (cris_function_arg_advance, cris_function_arg_1): Likewise.
11400 * config/iq2000/iq2000.c (iq2000_setup_incoming_varargs): Likewise.
11401 (iq2000_pass_by_reference, iq2000_arg_partial_bytes): Likewise.
11402 (iq2000_function_arg, iq2000_function_arg_advance): Likewise.
11403 * config/mn10300/mn10300.c (mn10300_pass_by_reference): Likewise.
11404 (mn10300_function_arg, mn10300_function_arg_advance): Likewise.
11405 (mn10300_arg_partial_bytes): Likewise.
11406 * config/ia64/ia64.c (ia64_setup_incoming_varargs): Likewise.
11407 (ia64_arg_partial_bytes, ia64_function_arg): Likewise.
11408 (ia64_function_incoming_arg, ia64_function_arg_advance): Likewise.
11409 (ia64_function_arg_1): Likewise.
11410 * config/m68k/m68k.c (m68k_function_arg_advance): Likewise.
11411 (m68k_function_arg): Likewise.
11412 * config/rs6000/rs6000.c (rs6000_function_arg_advance): Likewise.
11413 (rs6000_function_arg, setup_incoming_varargs): Likewise.
11414 (rs6000_pass_by_reference, rs6000_arg_partial_bytes): Likewise.
11415 * config/picochip/picochip.c (picochip_arg_partial_bytes): Likewise.
11416 (picochip_function_arg, picochip_incoming_function_arg): Likewise.
11417 (picochip_arg_advance): Likewise.
11418 * config/mcore/mcore.c (mcore_setup_incoming_varargs): Likewise.
11419 (mcore_arg_partial_bytes, mcore_function_arg): Likewise.
11420 (mcore_function_arg_advance): Likewise.
11421 * config/score/score.c (score_pass_by_reference): Likewise.
11422 (score_function_arg_advance): Likewise.
11423 (score_arg_partial_bytes): Likewise. Make static.
11424 * config/score/score-protos.h (score_arg_partial_bytes): Don't declare.
11425 * config/arm/arm.c (arm_arg_partial_bytes): Replace
11426 CUMULATIVE_ARGS* argument type with cumulative_args_t.
11427 (arm_function_arg, arm_function_arg_advance): Likewise.
11428 (arm_setup_incoming_varargs, arm_pass_by_reference): Likewise.
11429 * config/pa/pa.c (pa_pass_by_reference): Likewise.
11430 (pa_arg_partial_bytes, pa_function_arg_advance): Likewise.
11431 (pa_function_arg): Likewise.
11432 * config/mips/mips.c (mips_strict_argument_naming): Likewise.
11433 (mips_function_arg, mips_function_arg_advance): Likewise.
11434 (mips_arg_partial_bytes, mips_pass_by_reference): Likewise.
11435 (mips_callee_copies, mips_setup_incoming_varargs): Likewise.
11436 * config/vax/vax.c (vax_function_arg): Likewise.
11437 (vax_function_arg_advance): Likewise.
11438 * config/h8300/h8300.c (h8300_function_arg): Likewise.
11439 (h8300_function_arg_advance): Likewise.
11440 * config/v850/v850.c (v850_pass_by_reference): Likewise.
11441 (v850_strict_argument_naming, v850_function_arg): Likewise.
11442 (v850_arg_partial_bytes, v850_function_arg_advance): Likewise.
11443 (v850_setup_incoming_varargs): Likewise.
11444 * config/mmix/mmix.c (mmix_setup_incoming_varargs): Likewise.
11445 (mmix_function_arg_advance, mmix_function_incoming_arg): Likewise.
11446 (mmix_function_arg, mmix_pass_by_reference): Likewise.
11447 (mmix_function_arg_1): Replace const CUMULATIVE_ARGS* argument type
11449 * config/bfin/bfin.c (setup_incoming_varargs): Replace
11450 CUMULATIVE_ARGS* argument type with cumulative_args_t.
11451 (bfin_function_arg_advance, bfin_function_arg): Likewise.
11452 (bfin_arg_partial_bytes, bfin_pass_by_reference): Likewise.
11453 * calls.c (emit_call_1): Change type of args_so_far to
11454 cumulative_args_t. Changed all callers.
11455 (initialize_argument_information): Likewise.
11456 (expand_call, emit_library_call_value_1): Use pack_cumulative_args.
11457 * dse.c (get_call_args): Likewise.
11458 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
11459 * function.c (pass_by_reference, reference_callee_copied): Likewise.
11460 (struct assign_parm_data_all): Rename args_so_far to args_so_far_v.
11461 New member args_so_far_v. Changed all users.
11462 * var-tracking.c (prepare_call_arguments): Use pack_cumulative_args.
11463 * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
11464 * config/mips/mips.c (mips_output_args_xfer): Likewise.
11465 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
11466 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
11467 * config/microblaze/microblaze.c (microblaze_expand_prologue):
11469 * config/m32r/m32r.c (m32r_return_in_memory): Adjust for changed
11470 m32r_pass_by_reference.
11472 2011-06-16 Ira Rosen <ira.rosen@linaro.org>
11474 * tree-vectorizer.h (vect_recog_func_ptr): Change the first
11475 argument to be a VEC of statements.
11476 * tree-vect-loop.c (vect_determine_vectorization_factor): Remove the
11477 assert that pattern statements have to have their vector type set.
11478 * tree-vect-patterns.c (vect_recog_widen_sum_pattern):
11479 Change the first argument to be a VEC of statements. Update
11481 (vect_recog_dot_prod_pattern, vect_recog_pow_pattern): Likewise.
11482 (vect_handle_widen_mult_by_const): New function.
11483 (vect_recog_widen_mult_pattern): Change the first argument to be a
11484 VEC of statements. Update documentation. Check that the constant is
11485 INTEGER_CST. Support multiplication by a constant that fits an
11486 intermediate type - call vect_handle_widen_mult_by_const.
11487 (vect_pattern_recog_1): Update vect_recog_func_ptr and its
11488 call. Handle additional pattern statements if necessary.
11490 2011-06-16 Nick Clifton <nickc@redhat.com>
11493 * config.gcc: Set cpu_type to v850 for any V850 architecture.
11494 (v850*-*-*): Delete explicit setting of tm_p_file, tmake_file,
11495 md_file, extra_modes, out_file and extra_options are these are all
11496 deduced from cpu_type.
11498 2011-06-16 Georg-Johann Lay <avr@gjlay.de>
11500 * config/avr/libgcc.S (__ashldi3, __ashrdi3, __lshrdi3): Set shift
11501 truncation mask to 63.
11503 2011-06-16 Georg-Johann Lay <avr@gjlay.de>
11507 * longlong.h: Add AVR support:
11508 (count_leading_zeros): New macro.
11509 (count_trailing_zeros): New macro.
11510 (COUNT_LEADING_ZEROS_0): New macro.
11511 * config/avr/t-avr (LIB1ASMFUNCS): Add _ffssi2, _ffshi2, _loop_ffsqi2,
11512 _ctzsi2, _ctzhi2, _clzdi2, _clzsi2, _clzhi2, _paritydi2, _paritysi2,
11513 _parityhi2, _popcounthi2,_popcountsi2, _popcountdi2, _popcountqi2,
11514 _bswapsi2, _bswapdi2, _ashldi3, _ashrdi3, _lshrdi3.
11515 (LIB2FUNCS_EXCLUDE): Add _clz.
11516 * config/avr/libgcc.S (XCALL): Move up in file.
11517 (XJMP): New C Macro.
11518 (DEFUN): New asm macro.
11519 (ENDF): New asm macro.
11520 (__ffssi2): New function.
11521 (__ffshi2): New function.
11522 (__loop_ffsqi2): New function.
11523 (__ctzsi2): New function.
11524 (__ctzhi2): New function.
11525 (__clzdi2): New function.
11526 (__clzsi2): New function.
11527 (__clzhi2): New function.
11528 (__paritydi2): New function.
11529 (__paritysi2): New function.
11530 (__parityhi2): New function.
11531 (__parityqi2): New function.
11532 (__popcounthi2): New function.
11533 (__popcountsi2): New function.
11534 (__popcountdi2): New function.
11535 (__popcountqi2): New function.
11536 (__bswapsi2): New function.
11537 (__bswapdi2): New function.
11538 (__ashldi3): New function.
11539 (__ashrdi3): New function.
11540 (__lshrdi3): New function.
11541 Fix suspicous lines.
11543 2011-06-16 Richard Guenther <rguenther@suse.de>
11545 * gimple.c (canonicalize_cond_expr_cond): (bool)x is not
11546 the same as x != 0.
11547 * fold-const.c (fold_binary_loc): Do not fold X & 1 != 0
11549 * ipa-prop.c (ipa_analyze_indirect_call_uses): Also allow
11550 equality compares against zero for the lower bit.
11552 2011-06-16 Jakub Jelinek <jakub@redhat.com>
11554 PR tree-optimization/49419
11555 * tree-vrp.c (execute_vrp): Call init_range_assertions
11556 before estimate_numbers_of_iterations, call
11557 free_number_of_iterations_estimates before calling
11558 remove_range_assertions.
11560 2011-06-16 Revital Eres <revital.eres@linaro.org>
11562 * modulo-sched.c (struct ps_insn): Remove row_rest_count field.
11563 (struct partial_schedule): Add rows_length field.
11564 (verify_partial_schedule): Check rows_length.
11565 (ps_insert_empty_row): Handle rows_length.
11566 (create_partial_schedule): Likewise.
11567 (free_partial_schedule): Likewise.
11568 (reset_partial_schedule): Likewise.
11569 (create_ps_insn): Remove rest_count argument.
11570 (remove_node_from_ps): Update rows_length.
11571 (add_node_to_ps): Update rows_length and call create_ps_insn
11572 without passing row_rest_count.
11573 (rotate_partial_schedule): Update rows_length.
11575 2011-06-16 Revital Eres <revital.eres@linaro.org>
11577 * ddg.c (add_intra_loop_mem_dep): New function.
11578 (build_intra_loop_deps): Call it.
11580 2011-06-13 Jeff Law <law@redhat.com>
11582 * df-problems.c (df_lr_local_compute): Manually CSE
11583 PIC_OFFSET_TABLE_REGNUM.
11584 * df-scan.c (df_get_regular_block_artificial_uses): Likewise.
11585 (df_get_entry_block_def_set, df_get_exit_block_use_set): Likewise.
11587 2011-06-13 Jan Hubicka <jh@suse.cz>
11589 * cgraphunit.c (handle_alias_pairs): New function.
11590 (cgraph_finalize_compilation_unit): Use it.
11591 * ipa.c (cgraph_externally_visible_p): Remove hack marking asm names
11592 as externally visible.
11594 2011-06-15 Richard Guenther <rguenther@suse.de>
11596 * expr.c (expand_expr_real_2): Reduce all integral types to
11597 bitfield precision.
11598 (expand_expr_real_1): Likewise.
11600 2011-06-15 Martin Jambor <mjambor@suse.cz>
11602 PR tree-optimization/48613
11603 * ipa-prop.c (ipa_prop_write_jump_functions): Return immediately if
11604 ipa_node_params_vector is NULL.
11606 2011-06-15 Jakub Jelinek <jakub@redhat.com>
11609 * dwarf2out.c (dw_loc_list_node): Add force field.
11610 (add_var_loc_to_decl): For PARM_DECL, attempt to keep the incoming
11611 location in the list, even if it is modified before first real insn.
11612 (output_loc_list): Emit empty ranges with force flag set.
11613 (dw_loc_list): If first range of a PARM_DECL is empty, set force flag.
11615 2011-06-15 Alexander Monakov <amonakov@ispras.ru>
11618 * sel-sched.c (find_place_for_bookkeeping): Add new parameter
11619 (fence_to_rewind). Use it to notice when bookkeeping will be placed
11620 above a fence. Update comments.
11621 (generate_bookkeeping_insn): Rewind fence when bookkeeping code is
11622 placed just above it. Do not allow NULL place_to_insert.
11624 2011-06-15 Ira Rosen <ira.rosen@linaro.org>
11626 * tree-vect-loop-manip.c (remove_dead_stmts_from_loop): Remove.
11627 (slpeel_tree_peel_loop_to_edge): Don't call
11628 remove_dead_stmts_from_loop.
11629 * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
11630 remove irrelevant pattern statements. For irrelevant statements
11631 check if it is the last statement of a detected pattern, use
11632 corresponding pattern statement instead.
11633 (destroy_loop_vec_info): No need to remove pattern statements,
11634 only free stmt_vec_info.
11635 (vect_transform_loop): For irrelevant statements check if it is
11636 the last statement of a detected pattern, use corresponding
11637 pattern statement instead.
11638 * tree-vect-patterns.c (vect_pattern_recog_1): Don't insert
11639 pattern statements. Set basic block for the new statement.
11640 (vect_pattern_recog): Update documentation.
11641 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Scan
11642 operands of pattern statements.
11643 (vectorizable_call): Fix printing. In case of a pattern statement
11644 use the lhs of the original statement when creating a dummy
11645 statement to replace the original call.
11646 (vect_analyze_stmt): For irrelevant statements check if it is
11647 the last statement of a detected pattern, use corresponding
11648 pattern statement instead.
11649 * tree-vect-slp.c (vect_schedule_slp_instance): For pattern
11650 statements use gsi of the original statement.
11652 2011-06-14 Joseph Myers <joseph@codesourcery.com>
11654 * target-def.h (TARGET_HAVE_NAMED_SECTIONS): Move to
11655 common/common-target-def.h.
11656 * target.def (default_target_flags, handle_option,
11657 supports_split_stack, optimization_table, init_struct,
11658 except_unwind_info, unwind_tables_default, have_named_sections):
11659 Move to common/common-target.def.
11660 * target.h (enum opt_levels, struct default_options): Move to
11661 common/common-target.h.
11662 * targhooks.c (default_except_unwind_info,
11663 dwarf2_except_unwind_info, sjlj_except_unwind_info,
11664 default_target_handle_option, empty_optimization_table): Move to
11665 common/common-targhooks.c.
11666 * targhooks.h (default_except_unwind_info,
11667 dwarf2_except_unwind_info, sjlj_except_unwind_info,
11668 default_target_handle_option, empty_optimization_table): Move to
11669 common/common-targhooks.h.
11670 * common/common-target-def.h: Include common/common-targhooks.h.
11671 (TARGET_HAVE_NAMED_SECTIONS): Define if TARGET_ASM_NAMED_SECTION
11673 * common/common-target.def (handle_option, option_init_struct,
11674 option_optimization_table, default_target_flags,
11675 except_unwind_info, supports_split_stack, unwind_tables_default,
11676 have_named_sections): Move from target.def.
11677 (HOOK_PREFIX): Undefine at end of file.
11678 * common/common-target.h: Include input.h.
11679 (enum opt_levels, struct default_options): Move from target.h.
11680 * common/common-targhooks.c, common/common-targhooks.h: New.
11681 * config.gcc (target_has_targetm_common): Default to yes.
11682 (moxie*): Set target_has_targetm_common=no.
11683 (hppa*-*-*): Don't set target_has_targetm_common=yes.
11684 * doc/tm.texi: Regenerate.
11685 * Makefile.in (COMMON_TARGET_H): Add $(INPUT_H).
11686 (C_TARGET_DEF_H): Add common/common-targhooks.h.
11687 (GCC_OBJS): Remove vec.o.
11688 (OBJS): Remove hooks.o and vec.o.
11689 (OBJS-libcommon-target): Add vec.o, hooks.o and
11690 common/common-targhooks.o.
11691 (c-family/c-common.o, c-family/c-cppbuiltin.o, lto-opts.o, tree.o,
11692 tree-tailcall.o, opts.o, toplev.o, varasm.o, function.o, except.o,
11693 expr.o, explow.o, dbxout.o, dwarf2out.o, cfgrtl.o, haifa-sched.o,
11694 cfglayout.o, $(out_object_file), $(common_out_object_file)):
11695 Update dependencies.
11696 (common/common-targhooks.o): New.
11697 * common/config/default-common.c: Include tm.h. Add FIXME comment.
11698 * common/config/pa/pa-common.c: Include more headers. Take
11699 copyright dates from pa.c.
11700 (pa_option_optimization_table, pa_handle_option,
11701 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS,
11702 TARGET_HANDLE_OPTION): Move from pa.c.
11703 * common/config/alpha/alpha-common.c,
11704 common/config/arm/arm-common.c, common/config/avr/avr-common.c,
11705 common/config/bfin/bfin-common.c,
11706 common/config/cris/cris-common.c,
11707 common/config/fr30/fr30-common.c, common/config/frv/frv-common.c,
11708 common/config/h8300/h8300-common.c,
11709 common/config/i386/i386-common.c,
11710 common/config/ia64/ia64-common.c,
11711 common/config/iq2000/iq2000-common.c,
11712 common/config/lm32/lm32-common.c,
11713 common/config/m32c/m32c-common.c,
11714 common/config/m32r/m32r-common.c,
11715 common/config/m68k/m68k-common.c,
11716 common/config/mcore/mcore-common.c,
11717 common/config/mep/mep-common.c,
11718 common/config/microblaze/microblaze-common.c,
11719 common/config/mips/mips-common.c,
11720 common/config/mmix/mmix-common.c,
11721 common/config/mn10300/mn10300-common.c,
11722 common/config/pdp11/pdp11-common.c,
11723 common/config/picochip/picochip-common.c,
11724 common/config/rs6000/rs6000-common.c,
11725 common/config/rx/rx-common.c, common/config/s390/s390-common.c,
11726 common/config/score/score-common.c, common/config/sh/sh-common.c,
11727 common/config/sparc/sparc-common.c,
11728 common/config/spu/spu-common.c, common/config/v850/v850-common.c,
11729 common/config/vax/vax-common.c,
11730 common/config/xstormy16/xstormy16-common.c,
11731 common/config/xtensa/xtensa-common.c: New.
11732 * config/alpha/alpha.c: Include common/common-target.h.
11733 (alpha_option_optimization_table, alpha_handle_option,
11734 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
11735 TARGET_OPTION_OPTIMIZATION_TABLE): Move to alpha-common.c.
11736 * config/arm/arm-protos.h (arm_except_unwind_info): Declare.
11737 * config/arm/arm.c (arm_option_optimization_table,
11738 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
11739 TARGET_EXCEPT_UNWIND_INFO, arm_except_unwind_info): Move to
11741 * config/avr/avr.c (avr_option_optimization_table,
11742 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
11744 * config/bfin/bfin.c (struct bfin_cpu): Move to bfin.h.
11745 (bfin_cpus, bfin_handle_option, TARGET_HANDLE_OPTION,
11746 TARGET_DEFAULT_TARGET_FLAGS): Move to bfin-common.c.
11747 * config/bfin/bfin.h struct bfin_cpu): Move from bfin.c.
11748 * config/cris/cris.c (cris_option_optimization_table,
11749 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
11750 TARGET_OPTION_OPTIMIZATION_TABLE, cris_handle_option): Move to
11752 * config/fr30/fr30.c (fr30_option_optimization_table,
11753 TARGET_EXCEPT_UNWIND_INFO, TARGET_OPTION_OPTIMIZATION_TABLE): Move
11755 * config/frv/frv.c (frv_option_optimization_table,
11756 MASK_DEFAULT_ALLOC_CC, TARGET_DEFAULT_TARGET_FLAGS,
11757 TARGET_OPTION_OPTIMIZATION_TABLE): Move to frv-common.c.
11758 * config/h8300/h8300.c (h8300_option_optimization_table,
11759 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
11760 TARGET_EXCEPT_UNWIND_INFO): Move to h8300-common.c.
11761 * config/i386/i386-protos.h (ix86_handle_option): Declare.
11762 * config/i386/i386.c: Include common/common-target.h.
11763 (OPTION_MASK_ISA_MMX_SET, OPTION_MASK_ISA_3DNOW_SET,
11764 OPTION_MASK_ISA_SSE_SET, OPTION_MASK_ISA_SSE2_SET,
11765 OPTION_MASK_ISA_SSE3_SET, OPTION_MASK_ISA_SSSE3_SET,
11766 OPTION_MASK_ISA_SSE4_1_SET, OPTION_MASK_ISA_SSE4_2_SET,
11767 OPTION_MASK_ISA_AVX_SET, OPTION_MASK_ISA_FMA_SET,
11768 OPTION_MASK_ISA_SSE4_SET, OPTION_MASK_ISA_SSE4A_SET,
11769 OPTION_MASK_ISA_FMA4_SET, OPTION_MASK_ISA_XOP_SET,
11770 OPTION_MASK_ISA_LWP_SET, OPTION_MASK_ISA_AES_SET,
11771 OPTION_MASK_ISA_PCLMUL_SET, OPTION_MASK_ISA_ABM_SET,
11772 OPTION_MASK_ISA_BMI_SET, OPTION_MASK_ISA_TBM_SET,
11773 OPTION_MASK_ISA_POPCNT_SET, OPTION_MASK_ISA_CX16_SET,
11774 OPTION_MASK_ISA_SAHF_SET, OPTION_MASK_ISA_MOVBE_SET,
11775 OPTION_MASK_ISA_CRC32_SET, OPTION_MASK_ISA_FSGSBASE_SET,
11776 OPTION_MASK_ISA_RDRND_SET, OPTION_MASK_ISA_F16C_SET,
11777 OPTION_MASK_ISA_MMX_UNSET, OPTION_MASK_ISA_3DNOW_UNSET,
11778 OPTION_MASK_ISA_3DNOW_A_UNSET, OPTION_MASK_ISA_SSE_UNSET,
11779 OPTION_MASK_ISA_SSE2_UNSET, OPTION_MASK_ISA_SSE3_UNSET,
11780 OPTION_MASK_ISA_SSSE3_UNSET, OPTION_MASK_ISA_SSE4_1_UNSET,
11781 OPTION_MASK_ISA_SSE4_2_UNSET, OPTION_MASK_ISA_AVX_UNSET,
11782 OPTION_MASK_ISA_FMA_UNSET, OPTION_MASK_ISA_SSE4_UNSET,
11783 OPTION_MASK_ISA_SSE4A_UNSET, OPTION_MASK_ISA_FMA4_UNSET,
11784 OPTION_MASK_ISA_XOP_UNSET, OPTION_MASK_ISA_LWP_UNSET,
11785 OPTION_MASK_ISA_AES_UNSET, OPTION_MASK_ISA_PCLMUL_UNSET,
11786 OPTION_MASK_ISA_ABM_UNSET, OPTION_MASK_ISA_BMI_UNSET,
11787 OPTION_MASK_ISA_TBM_UNSET, OPTION_MASK_ISA_POPCNT_UNSET,
11788 OPTION_MASK_ISA_CX16_UNSET, OPTION_MASK_ISA_SAHF_UNSET,
11789 OPTION_MASK_ISA_MOVBE_UNSET, OPTION_MASK_ISA_CRC32_UNSET,
11790 OPTION_MASK_ISA_FSGSBASE_UNSET, OPTION_MASK_ISA_RDRND_UNSET,
11791 OPTION_MASK_ISA_F16C_UNSET, ix86_handle_option,
11792 ix86_option_optimization_table, ix86_option_init_struct,
11793 ix86_supports_split_stack, TARGET_DEFAULT_TARGET_FLAGS,
11794 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
11795 TARGET_OPTION_INIT_STRUCT, TARGET_SUPPORTS_SPLIT_STACK): Move to
11797 * config/i386/t-i386 (i386.o): Update dependencies.
11798 * config/ia64/ia64-protos.h (ia64_except_unwind_info): Declare.
11799 * config/ia64/ia64.c (ia64_option_optimization_table,
11800 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
11801 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
11802 ia64_handle_option): Move to ia64-common.c.
11803 * config/iq2000/iq2000.c (iq2000_option_optimization_table,
11804 TARGET_OPTION_OPTIMIZATION_TABLE): Move to iq2000-common.c.
11805 * config/lm32/lm32.c (lm32_option_optimization_table,
11806 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
11808 * config/m32c/m32c.c (TARGET_HAVE_NAMED_SECTIONS): Move to
11810 * config/m32r/m32r.c (m32r_option_optimization_table,
11811 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
11812 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
11813 m32r_handle_option): Move to m32r-common.c.
11814 (m32r_memory_move_cost): Remove comment referring to
11815 TARGET_HANDLE_OPTION.
11816 * config/m68k/m68k.c (TARGET_HANDLE_OPTION, m68k_handle_option):
11817 Move to m68k-common.c.
11818 * config/mcore/mcore.c (mcore_option_optimization_table,
11819 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
11820 TARGET_EXCEPT_UNWIND_INFO): Move to mcore-common.c.
11821 * config/mep/mep.c (mep_option_optimization_table,
11822 mep_handle_option, TARGET_HANDLE_OPTION,
11823 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS):
11824 Move to mep-common.c.
11825 * config/microblaze/microblaze.c
11826 (microblaze_option_optimization_table,
11827 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
11828 TARGET_EXCEPT_UNWIND_INFO): Move to microblaze-common.c.
11829 * config/mips/mips.c (mips_handle_option,
11830 mips_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
11831 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Move to
11833 * config/mmix/mmix.c (mmix_option_optimization_table,
11834 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
11835 Move to mmix-common.c.
11836 * config/mn10300/mn10300.c (mn10300_option_optimization_table,
11837 mn10300_handle_option, TARGET_EXCEPT_UNWIND_INFO,
11838 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
11839 TARGET_OPTION_OPTIMIZATION_TABLE): Move to mn10300-common.c.
11840 * config/pa/pa.c: Include common/common-target.h.
11841 (pa_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
11842 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
11843 pa_handle_option): Move to pa-common.c.
11844 (pa_option_override): Use targetm_common.except_unwind_info.
11845 (pa_asm_output_mi_thunk, pa_function_section): Use
11846 targetm_common.have_named_sections.
11847 * config/pdp11/pdp11.c (pdp11_option_optimization_table,
11848 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
11849 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
11850 pdp11_handle_option, pdp11_option_init_struct): Move to
11852 * config/picochip/picochip.c (picochip_option_optimization_table,
11853 TARGET_HAVE_NAMED_SECTIONS, TARGET_OPTION_OPTIMIZATION_TABLE,
11854 TARGET_EXCEPT_UNWIND_INFO): Move to picochip-common.c.
11855 * config/rs6000/rs6000.c: Include common/common-target.h.
11856 (rs6000_option_optimization_table, TARGET_HANDLE_OPTION,
11857 TARGET_OPTION_INIT_STRUCT, TARGET_OPTION_OPTIMIZATION_TABLE,
11858 TARGET_DEFAULT_TARGET_FLAGS, rs6000_option_init_struct,
11859 rs6000_handle_option): Move to rs6000-common.c.
11860 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
11861 * config/rx/rx.c (rx_handle_option, rx_option_optimization_table,
11862 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
11863 TARGET_EXCEPT_UNWIND_INFO): Move to rx-common.c.
11864 * config/s390/s390.c (processor_flags_table,
11865 s390_option_optimization_table, s390_option_init_struct,
11866 s390_handle_option, TARGET_DEFAULT_TARGET_FLAGS,
11867 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
11868 TARGET_OPTION_INIT_STRUCT): Move to s390-common.c.
11869 * config/s390/s390.h (processor_flags_table): Declare.
11870 * config/score/score.c (score_option_optimization_table,
11871 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
11872 TARGET_OPTION_OPTIMIZATION_TABLE, MASK_ALL_CPU_BITS,
11873 score_handle_option): Move to score-common.c.
11874 * config/sh/sh.c (sh_option_optimization_table,
11875 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
11876 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
11877 sh_handle_option, sh_option_init_struct): Move to sh-common.c.
11878 * config/sparc/sparc.c: Include common/common-target.h.
11879 (sparc_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
11880 TARGET_OPTION_OPTIMIZATION_TABLE): Move to sparc-common.c.
11881 * config/spu/spu.c (TARGET_DEFAULT_TARGET_FLAGS,
11882 TARGET_OPTION_INIT_STRUCT, TARGET_EXCEPT_UNWIND_INFO,
11883 spu_option_init_struct): Move to spu-common.c.
11884 * config/stormy16/stormy16.c (xstorym16_option_optimization_table,
11885 TARGET_OPTION_OPTIMIZATION_TABLE): Move to xstormy16-common.c.
11886 * config/v850/v850.c (small_memory_physical_max,
11887 v850_handle_memory_optionn v850_handle_option,
11888 v850_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
11889 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE): Move to
11891 * config/vax/vax.c (TARGET_DEFAULT_TARGET_FLAGS): Move to vax-common.c.
11892 * config/xtensa/xtensa.c (xtensa_option_optimization_table,
11893 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
11894 Move to xtensa-common.c.
11895 * cfglayout.c: Include common/common-target.h.
11896 (fixup_reorder_chain): Use targetm_common.have_named_sections.
11897 * cfgrtl.c: Include common/common-target.h.
11898 (force_nonfallthru_and_redirect, commit_one_edge_insertion): Use
11899 targetm_common.have_named_sections.
11900 * dbxout.c: Include common/common-target.h.
11901 (dbxout_function_end): Use targetm_common.have_named_sections.
11902 * defaults.h (STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT): Use
11903 targetm_common.except_unwind_info.
11904 * dwarf2out.c: Include common/common-target.h.
11905 (dwarf2out_do_frame, dwarf2out_do_cfi_asm,
11906 dwarf2out_begin_prologue, dwarf2out_frame_init,
11907 dwarf2out_frame_finish, dwarf2out_assembly_start): Use
11908 targetm_common.except_unwind_info.
11909 * except.c: Include common/common-target.h.
11910 (init_eh, finish_eh_generation,
11911 output_one_function_exception_table): Use
11912 targetm_common.except_unwind_info.
11913 (switch_to_exception_section): Use targetm_common.have_named_sections.
11914 * explow.c: Include common/common-target.h.
11915 * expr.c: Include common/common-target.h.
11916 (build_personality_function): Use targetm_common.except_unwind_info.
11917 * function.c: Include common/common-target.h.
11918 (expand_function_end): Use targetm_common.except_unwind_info.
11919 * haifa-sched.c: Include common/common-target.h.
11920 (sched_create_recovery_edges): Use targetm_common.have_named_sections.
11921 * lto-opts.c: Include common/common-target.h instead of target.h.
11922 (lto_reissue_options): Use targetm_common.handle_option.
11923 * opts.c: Include common/common-target.h.
11924 (target_handle_option): Use targetm_common.handle_option.
11925 (init_options_struct): Update comment referring to
11926 targetm.target_option.optimization. Use
11927 targetm_common.default_target_flags,
11928 targetm_common.unwind_tables_default and
11929 targetm_common.option_init_struct.
11930 (default_options_optimization): Use
11931 targetm_common.option_optimization_table.
11932 (finish_options): Use targetm_common.except_unwind_info,
11933 targetm_common.unwind_tables_default,
11934 targetm_common.have_named_sections and
11935 targetm_common.supports_split_stack.
11936 * toplev.c: Include common/common-target.h.
11937 (process_options): Use targetm_common.have_named_sections.
11938 * tree-tailcall.c: Include common/common-target.h.
11939 (suitable_for_tail_call_opt_p): Use targetm_common.except_unwind_info.
11940 * tree.c: Include common/common-target.h.
11941 (build_common_builtin_nodes): Use targetm_common.except_unwind_info.
11942 * varasm.c: Include common/common-target.h.
11943 (resolve_unique_section, hot_function_section,
11944 default_function_section): Use targetm_common.have_named_sections.
11946 2011-06-14 Easwaran Raman <eraman@google.com>
11948 PR rtl-optimization/44194
11949 * dse.c: Include tree-flow.h
11950 (insn_info): Add new field non_frame_wild_read.
11951 (group_info): Add new fields escaped_n and escaped_p.
11952 (kill_on_calls): New variable.
11953 (get_group_info): Initialize gi->escaped_n and gi->escaped_p.
11954 (dse_step0): Initialize kill_on_calls.
11955 (can_escape): New function.
11956 (set_usage_bits): Add additional parameter; record information
11957 about escaped locations.
11958 (record_store): Pass EXPR corresponding to MEM to set_usage_bits.
11959 (dse_step2_nospill): Set kill_on_calls based on
11960 group->escaped_n and group->escaped_n.
11961 (add_wild_read): Refactor into...
11962 (reset_active_stores): ... New function, and
11963 (free_read_records): ... New function.
11964 (add_non_frame_wild_read): New function.
11965 (scan_insn): Call add_non_frame_wild_read on non-const calls.
11966 (scan_reads_nospill): Handle instructions with non_frame_wild_read.
11967 (dse_step5_nospill): Call scan_reads_nospill for instructions
11968 marked as non_frame_wild_read.
11969 (dse_step7): Free escaped_n, escaped_p and kill_on_calls bitmaps.
11971 2011-06-14 Joseph Myers <joseph@codesourcery.com>
11973 * common/common-target-def.h, common/common-target.def,
11974 common/common-target.h, common/config/default-common.c,
11975 common/config/pa/pa-common.c: New files.
11976 * Makefile.in (common_out_file, common_out_object_file,
11977 COMMON_TARGET_H, COMMON_TARGET_DEF_H): New.
11978 (OBJS-libcommon-target): Include $(common_out_object_file).
11979 (prefix.o): Update dependencies.
11980 ($(common_out_object_file), common/common-target-hooks-def.h,
11981 s-common-target-hooks-def-h): New.
11982 (s-tm-texi): Also check timestamp on common-target.def.
11983 (build/genhooks.o): Update dependencies.
11984 * config.gcc (common_out_file, target_has_targetm_common): Define.
11985 * config/pa/som.h (ALWAYS_STRIP_DOTDOT): Replace with
11986 TARGET_ALWAYS_STRIP_DOTDOT.
11987 * configure.ac (common_out_object_file): Define.
11988 (common_out_file, common_out_object_file): Substitute.
11989 (common): Create directory.
11990 * configure: Regenerate.
11991 * doc/tm.texi.in (targetm_common): Document.
11992 (TARGET_ALWAYS_STRIP_DOTDOT): Add @hook entry.
11993 * doc/tm.texi: Regenerate.
11994 * genhooks.c (hook_array): Also include common/common-target.def.
11995 * prefix.c (tm.h): Don't include.
11996 (common/common-target.h): Include.
11997 (ALWAYS_STRIP_DOTDOT): Don't define.
11998 (update_path): Use targetm_common.always_strip_dotdot instead of
11999 ALWAYS_STRIP_DOTDOT.
12000 * system.h (ALWAYS_STRIP_DOTDOT): Poison.
12002 2011-06-14 David Li <davidxl@google.com>
12004 * passes.c (execute_function_todo): Remove TODO_dump_func.
12005 (execute_one_pass): Remove TODO_dump_func.
12006 (execute_function_dump): New function.
12007 * tree-vrp.c: Remove TODO_dump_func.
12008 * regrename.c: Remove TODO_dump_func.
12009 * fwprop.c: Remove TODO_dump_func.
12010 * tree-into-ssa.c: Remove TODO_dump_func.
12011 * tree-complex.c: Remove TODO_dump_func.
12012 * tracer.c: Remove TODO_dump_func.
12013 * tree-loop-distribution.c: Remove TODO_dump_func.
12014 * postreload-gcse.c: Remove TODO_dump_func.
12015 * postreload.c: Remove TODO_dump_func.
12016 * tree-ssa-loop-ch.c: Remove TODO_dump_func.
12017 * tree-tailcall.c: Remove TODO_dump_func.
12018 * ipa-cp.c: Remove TODO_dump_func.
12019 * final.c: Remove TODO_dump_func.
12020 * tree-emutls.c: Remove TODO_dump_func.
12021 * omp-low.c: Remove TODO_dump_func.
12022 * tree-ssa-dse.c: Remove TODO_dump_func.
12023 * tree-ssa-uncprop.c: Remove TODO_dump_func.
12024 * auto-inc-dec.c: Remove TODO_dump_func.
12025 * reorg.c: Remove TODO_dump_func.
12026 * tree-ssa-copyrename.c: Remove TODO_dump_func.
12027 * tree-ssa-ccp.c: Remove TODO_dump_func.
12028 * compare-elim.c: Remove TODO_dump_func.
12029 * mode-switching.c: Remove TODO_dump_func.
12030 * modulo-sched.c: Remove TODO_dump_func.
12031 * tree-call-cdce.c: Remove TODO_dump_func.
12032 * cse.c: Remove TODO_dump_func.
12033 * web.c: Remove TODO_dump_func.
12034 * tree-stdarg.c: Remove TODO_dump_func.
12035 * lto-streamer-out.c: Remove TODO_dump_func.
12036 * tree-ssa-math-opts.c: Remove TODO_dump_func.
12037 * tree-ssa-dom.c: Remove TODO_dump_func.
12038 * tree-nrv.c: Remove TODO_dump_func.
12039 * loop-init.c: Remove TODO_dump_func.
12040 * gimple-low.c: Remove TODO_dump_func.
12041 * ipa-inline.c: Remove TODO_dump_func.
12042 * tree-ssa-sink.c: Remove TODO_dump_func.
12043 * jump.c: Remove TODO_dump_func.
12044 * ifcvt.c: Remove TODO_dump_func.
12045 * tree-ssa-loop.c: Remove TODO_dump_func.
12046 * recog.c: Remove TODO_dump_func.
12047 * dse.c: Remove TODO_dump_func.
12048 * tree-ssa-ifcombine.c: Remove TODO_dump_func.
12049 * matrix-reorg.c: Remove TODO_dump_func.
12050 * tree-eh.c: Remove TODO_dump_func.
12051 * regmove.c: Remove TODO_dump_func.
12052 * function.c: Remove TODO_dump_func.
12053 * tree-vectorizer.c: Remove TODO_dump_func.
12054 * ipa-split.c: Remove TODO_dump_func.
12055 * gcse.c: Remove TODO_dump_func.
12056 * tree-if-conv.c: Remove TODO_dump_func.
12057 * init-regs.c: Remove TODO_dump_func.
12058 * tree-ssa-phiopt.c: Remove TODO_dump_func.
12059 * implicit-zee.c: Remove TODO_dump_func.
12060 * lower-subreg.c: Remove TODO_dump_func.
12061 * bt-load.c: Remove TODO_dump_func.
12062 * tree-dfa.c: Remove TODO_dump_func.
12063 * except.c: Remove TODO_dump_func.
12064 * emit-rtl.c: Remove TODO_dump_func.
12065 * store-motion.c: Remove TODO_dump_func.
12066 * cfgexpand.c: Remove TODO_dump_func.
12067 * tree-cfgcleanup.c: Remove TODO_dump_func.
12068 * cfgcleanup.c: Remove TODO_dump_func.
12069 * tree-ssa-pre.c: Remove TODO_dump_func.
12070 * tree-sra.c: Remove TODO_dump_func.
12071 * tree-mudflap.c: Remove TODO_dump_func.
12072 * tree-ssa-copy.c: Remove TODO_dump_func.
12073 * cfglayout.c: Remove TODO_dump_func.
12074 * tree-ssa-forwprop.c: Remove TODO_dump_func.
12075 * tree-ssa-dce.c: Remove TODO_dump_func.
12076 * ira.c: Remove TODO_dump_func.
12077 * tree-ssa.c: Remove TODO_dump_func.
12078 * integrate.c: Remove TODO_dump_func.
12079 * tree-optimize.c: Remove TODO_dump_func.
12080 * tree-ssa-phiprop.c: Remove TODO_dump_func.
12081 * tree-object-size.c: Remove TODO_dump_func.
12082 * combine.c: Remove TODO_dump_func.
12083 * bb-reorder.c: Remove TODO_dump_func.
12084 * cprop.c: Remove TODO_dump_func.
12085 * var-tracking.c: Remove TODO_dump_func.
12086 * tree-profile.c: Remove TODO_dump_func.
12087 * tree-vect-generic.c: Remove TODO_dump_func.
12088 * reg-stack.c: Remove TODO_dump_func.
12089 * sched-rgn.c: Remove TODO_dump_func.
12090 * tree-ssa-structalias.c: Remove TODO_dump_func.
12091 * tree-switch-conversion.c: Remove TODO_dump_func.
12092 * tree-cfg.c: Remove TODO_dump_func.
12093 * tree-ssa-reassoc.c: Remove TODO_dump_func.
12094 * combine-stack-adj.c: Remove TODO_dump_func.
12095 * dce.c: Remove TODO_dump_func.
12096 * tree-ssanames.c: Remove TODO_dump_func.
12097 * regcprop.c: Remove TODO_dump_func.
12099 2011-06-14 H.J. Lu <hongjiu.lu@intel.com>
12101 PR middle-end/47364
12102 * builtins.c (expand_builtin_strlen): Expand strlen to Pmode
12103 and properly handle result not in Pmode.
12105 2011-06-14 Robert Millan <rmh@gnu.org>
12107 * config/i386/kfreebsd-gnu.h: Resync with `config/i386/linux.h'.
12108 * config/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER): Resync with
12111 * config/i386/kfreebsd-gnu64.h: New file.
12112 * config.gcc (x86_64-*-kfreebsd*-gnu): Replace `i386/kfreebsd-gnu.h'
12113 with `i386/kfreebsd-gnu64.h'.
12115 * config/i386/linux64.h (GNU_USER_LINK_EMULATION32)
12116 (GNU_USER_LINK_EMULATION64): New macros.
12117 * config/i386/gnu-user64.h (LINK_SPEC): Rely on
12118 `GNU_USER_LINK_EMULATION32' and `GNU_USER_LINK_EMULATION64' instead
12119 of hardcoding `elf_i386' and `elf_x86_64'.
12121 2011-06-14 Nick Clifton <nickc@redhat.com>
12124 * config/v850/v850.c (v850_memory_move_cost): Add reg_class_t parameter.
12127 * config.gcc(v850*-*-*): Avoid duplication of v850.opt.
12129 2011-06-14 Jakub Jelinek <jakub@redhat.com>
12132 * tree.h (DECL_NONSHAREABLE): Define.
12133 (struct tree_decl_common): Change decl_common_unused to
12134 decl_nonshareable_flag.
12135 * cfgexpand.c (expand_used_vars_for_block, clear_tree_used):
12136 Ignore vars with DECL_NONSHAREABLE bit set.
12137 * tree-cfg.c (gimple_duplicate_bb): Set DECL_NONSHAREABLE
12138 on stores to automatic aggregate vars.
12140 PR rtl-optimization/49390
12142 2010-06-29 Bernd Schmidt <bernds@codesourcery.com>
12144 * cse.c (exp_equiv_p): For MEMs, if for_gcse, only compare
12147 2011-06-14 Zdenek Dvorak <ook@ucw.cz>
12148 Tom de Vries <tom@codesourcery.com>
12151 * cfgloop.h (nb_iterations_upper_bound, nb_iterations_estimate):
12152 Document changed semantics.
12153 (max_stmt_executions, max_stmt_executions_int): Declare.
12154 * tree-data-ref.c (estimated_loop_iterations)
12155 (estimated_loop_iterations_int): Move functions...
12156 * tree-ssa-loop-niter.c (estimated_loop_iterations)
12157 (estimated_loop_iterations_int): here.
12158 (record_estimate): Change nb_iterations_upper_bound and
12159 nb_iterations_estimate semantics.
12160 (max_stmt_executions, max_stmt_executions_int): New function.
12161 * tree-data-ref.c (estimated_loop_iterations_tree): Rename to ...
12162 (max_stmt_executions_tree): this.
12163 (analyze_miv_subscript): Use max_stmt_executions_tree instead of
12164 estimated_loop_iterations_tree.
12165 tree-ssa-loop-ivopts.c (avg_loop_niter): Use
12166 max_stmt_executions_int instead of estimated_loop_iterations_int.
12167 * predict.c (predict_loops): Idem.
12168 * tree-parloops.c (parallelize_loops): Idem.
12169 * tree-data-ref.c (analyze_siv_subscript_cst_affine)
12170 (compute_overlap_steps_for_affine_1_2, analyze_subscript_affine_affine)
12171 (init_omega_for_ddr_1): Idem.
12172 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse)
12173 (loop_prefetch_arrays): Idem
12174 * graphite-sese-to-poly.c (build_loop_iteration_domains): Use
12175 max_stmt_executions instead of estimated_loop_iterations.
12176 * tree-data-ref.c (estimated_loop_iterations_tree): Idem.
12177 * tree-vrp.c (adjust_range_with_scev): Use estimated_loop_iterations
12178 instead of nb_iterations_upper_bound.
12180 2011-06-13 Jan Hubicka <jh@suse.cz>
12182 * ipa.c (cgraph_address_taken_from_non_vtable_p): Check the ref type.
12184 2011-06-14 Richard Henderson <rth@redhat.com>
12187 * dwarf2out.c (frame_pointer_fb_offset_valid): New.
12188 (based_loc_descr): Assert it's true.
12189 (compute_frame_pointer_to_fb_displacement): Set it, rather than
12190 aborting immediately.
12192 2011-06-14 Sanjin Liu <scliu@faraday-tech.com>
12193 Mingfeng Wu <mingfeng@faraday-tech.com>
12195 * doc/invoke.texi: Re-add missing -mcpu docs for Faraday cores.
12197 2011-06-13 Jan Hubicka <jh@suse.cz>
12199 * ipa-cp.c (ipcp_iterate_stage): Revert accidental commit.
12201 2011-06-13 Jan Hubicka <jh@suse.cz>
12203 * cgraph.c (cgraph_make_decl_local): Handle DECL_ONE_ONLY
12204 similarly to DECL_COMDAT.
12205 * cgraphunit.c (cgraph_analyze_function): Likewise.
12206 * ipa.c (function_and_variable_visibility): Likewise.
12208 2011-06-13 Jan Hubicka <jh@suse.cz>
12210 * lto-streamer-out.c (lto_output_ts_binfo_tree_pointers): Do not output
12211 BINFO_VIRTUALS when streaming for ltrans unit.
12213 2011-06-13 David Edelsohn <dje.gcc@gmail.com>
12215 * config/rs6000/rs6000.md (movdi_mfpgpr): Remove POWER mnemonic.
12216 (movdi_internal64): Same.
12218 2011-06-13 Edmar Wienskoski <edmar@freescale.com>
12221 * config/rs6000/rs6000.md (save_gpregs_<mode>): Replaced pattern with
12222 a set of similar patterns, where the MATCH_OPERAND for the function
12223 argument is replaced with individual references to hardware registers.
12224 (save_fpregs_<mode>): Ditto
12225 (restore_gpregs_<mode>): Ditto
12226 (return_and_restore_gpregs_<mode>): Ditto
12227 (return_and_restore_fpregs_<mode>): Ditto
12228 (return_and_restore_fpregs_aix_<mode>): Ditto
12230 2011-06-13 Jan Hubicka <jh@suse.cz>
12232 * ipa-utils.c (postorder_stack): New structure.
12233 (ipa_reverse_postorder): Handle aliases.
12235 2011-06-13 Jan Hubicka <jh@suse.cz>
12237 * ipa-inline.c (reset_edge_caches): Walk aliases.
12238 (update_caller_keys): Do not test inlinability of aliases.
12239 * ipa-inline-analysis.c (do_estimate_edge_time): Look through alias.
12240 (do_estimate_growth): Fix typo.
12242 2011-06-13 Jan Hubicka <jh@suse.cz>
12244 * ipa-inline-transform.c (+can_remove_node_now_p_1): Break out from...
12245 (can_remove_node_now_p): ... here; handle same comdat groups.
12246 (clone_inlined_nodes): Update use of can_remove_node_now_p add TODO.
12247 (inline_call): Update use of can_remove_node_now_p.
12249 2011-06-13 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
12251 * config/h8300/h8300.md (bsetqi_msx, bclrqi_msx, bnotqi_msx): Added
12252 condition to disallow non-identical memory locations.
12253 (*andqi3_2, andqi3_1, iorqi3_1, xorqi3_1): Reorder insn to give
12254 preference to bit manipulation instructions.
12256 2011-06-13 Jan Hubicka <jh@suse.cz>
12258 * cgraph.c (cgraph_for_node_thunks_and_aliases,
12259 cgraph_for_node_and_aliases): Fix thinko in recursive walking.
12260 (nonremovable_p): New function.
12261 (cgraph_can_remove_if_no_direct_calls_p): New function.
12262 (used_from_object_file_p): New functoin.
12263 (cgraph_will_be_removed_from_program_if_no_direct_calls): Look for
12264 references from aliases.
12265 * cgraph.h (cgraph_can_remove_if_no_direct_calls_p): Bring offline.
12266 * ipa-inline.c (check_caller_edge): New function.
12267 (want_inline_function_called_once_p): Use it; accept aliases called
12269 * ipa-inline-analysis.c (do_estimate_growth): Remove FIXME.
12271 2011-06-13 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
12274 * config/arm/neon.md (vec_pack_trunc): Set the lengths
12275 correctly for the case with Quad vectors.
12277 2011-06-13 Jakub Jelinek <jakub@redhat.com>
12278 Ira Rosen <ira.rosen@linaro.org>
12280 PR tree-optimization/49352
12281 * tree-vect-loop.c (vect_is_slp_reduction): Don't count debug uses at
12282 all, make sure loop_use_stmt after the loop is a def stmt of a used
12283 SSA_NAME that is the only one defined inside of the loop. Don't
12284 check for COND_EXPR and GIMPLE_BINARY_RHS.
12285 (vect_is_simple_reduction_1): Call vect_is_slp_reduction only if
12286 check_reduction is true.
12288 2011-06-11 Jan Hubicka <jh@suse.cz>
12290 PR middle-end/49373
12291 * ipa.c (cgraph_externally_visible_p): Check resolution info.
12293 2011-06-11 Jan Hubicka <jh@suse.cz>
12295 PR middle-end/48836
12296 * ipa-inline-transform.c: Include tree-pass.h
12297 (inline_transform): Set TODO_update_ssa_only_virtuals.
12298 * Makefile.in (ipa-inline-transform.o): Add tree-pass.h.
12300 2011-06-11 Jan Hubicka <jh@suse.cz>
12302 PR middle-end/49378
12303 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p): Rule out
12304 aliases and thunks.
12306 2011-06-12 Ira Rosen <ira.rosen@linaro.org>
12308 * tree-vect-data-refs.c (vect_peeling_hash_get_most_frequent):
12309 Take number of iterations to peel into account for equally frequent
12310 misalignment values.
12312 2011-06-11 Jan Hubicka <jh@suse.cz>
12314 * lto-streamer-out.c (produce_symtab): Stream out the newly
12315 represented aliases.
12317 2011-06-11 Jan Hubicka <jh@suse.cz>
12319 * ipa-prop.c (ipa_make_edge_direct_to_target): Fix code setting
12321 (ipa_update_after_lto_read): Likewise.
12322 (ipa_write_node_info): Do not sream call_with_var_arguments.
12323 (ipa_read_node_info): Likewise.
12325 2011-06-11 Jan Hubicka <jh@suse.cz>
12327 * ipa.c (cgraph_comdat_can_be_unshared_p): Fix pasto.
12329 2011-06-11 Jan Hubicka <jh@suse.cz>
12331 * lto-symtab.c (lto_cgraph_replace_node): Kill same body alias code.
12332 (lto_symtab_resolve_can_prevail_p): Likewise.
12333 (lto_symtab_merge_cgraph_nodes): Update merging of aliases.
12334 * cgraph.c (same_body_aliases_done): New global var.
12335 (cgraph_same_body_alias_1): Rename to ...
12336 (cgraph_create_function_alias): ... this one; reorg to new
12338 (cgraph_same_body_alias): Use cgraph_create_function_alias;
12339 record references when asked to.
12340 (cgraph_add_thunk): Fix formating.
12341 (cgraph_get_node): Kill same body alias code.
12342 (cgraph_node_for_asm): Likewise.
12343 (cgraph_remove_same_body_alias): Remove.
12344 (cgraph_remove_node): Kill same body alias code.
12345 (cgraph_mark_address_taken_node): Mark also the aliased function
12346 as having address taken.
12347 (dump_cgraph_node): Dump same body aliases.
12348 (cgraph_for_node_thunks_and_aliases): Update for new alias
12350 (cgraph_for_node_and_aliases): Likewise.
12351 * cgraph.h (same_body): Kll pointer.
12352 (same_body_alias): Update comment.
12353 (same_body_aliases_done): Declare.
12354 (cgraph_remove_same_body_alias): Remove declaration.
12355 (cgraph_create_function_alias): Declare.
12356 (cgraph_process_same_body_aliases): Declare.
12357 (cgraph_function_with_gimple_body_p): Check for alias.
12358 (cgraph_can_remove_if_no_direct_calls_p): Look for aliases.
12359 (cgraph_alias_aliased_node): New function.
12360 (cgraph_function_node): Update for new aliases.
12361 (cgraph_function_or_thunk_node): Likewise.
12362 * ipa-inline-transform.c (can_remove_node_now_p): Look for aliases.
12363 (inline_call): Remove dead aliases.
12364 * cgraphunit.c (cgraph_decide_is_function_needed): Disable assembler
12365 name hack for same body aliases.
12366 (clone_of_p): Look through aliases.
12367 (verify_cgraph_node): Verify aliases.
12368 (cgraph_analyze_function): Analyze aliases; fixup C++ bugs.
12369 (cgraph_process_same_body_aliases): New function.
12370 (process_function_and_variable_attributes): Disable weakref warning on
12372 (cgraph_analyze_functions): Handle aliases.
12373 (cgraph_mark_functions_to_output): Handle aliases same way as thunks.
12374 (assemble_thunks): Rename to ...
12375 (assemble_thunks_and_aliases): ... this one; handle aliases, too.
12376 (cgraph_expand_function): Remove alias output code.
12377 (cgraph_output_in_order): Skip aliases.
12378 (cgraph_preserve_function_body_p): Aliases don't need preserving.
12379 * ipa-ref.c (ipa_ref_use_name): Add alias reference.
12380 (ipa_record_reference): Do not assert on alias references.
12381 (ipa_ref_has_aliases_p): New function.
12382 * ipa-ref.h (enum ipa_ref_use): Add IPA_REF_ALIAS.
12383 (ipa_ref_has_aliases_p): Declare.
12384 * lto-cgraph.c (lto_output_node): Handle aliases.
12385 (input_node): Likewise.
12386 * lto-streamer-out.c (lto_output): Skip aliases.
12387 (produce_symtab): Kill same_body_alias code.
12388 * ipa-utils.c (ipa_reverse_postorder): Add FIXME.
12389 (ipa_reverse_postorder): Use cgraph_only_called_directly_or_aliased_p.
12390 * ipa-inline.c (update_caller_keys): Walk aliases.
12391 (inline_small_functions): Fix thinko in previous patch.
12392 * ipa.c (cgraph_externally_visible_p): Do not walk aliases.
12393 (function_and_variable_visibility): Do not walk same body aliases.
12394 * tree-ssa-structalias.c (associate_varinfo_to_alias): New function.
12395 (ipa_pta_execute): Use it.
12397 2011-06-11 Uros Bizjak <ubizjak@gmail.com>
12399 * config/i386/sse.md (vec_dupv4sf): Correct mode of forced register.
12400 (*vec_dupv2df): Rename from vec_dupv2df.
12401 (vec_dupv2df): New expander.
12403 2011-06-11 Uros Bizjak <ubizjak@gmail.com>
12405 * config/i386/sse.md (AVX_VEC_DUP_MODE): Rename from AVX256MODE24P.
12407 2011-06-11 Uros Bizjak <ubizjak@gmail.com>
12409 * config/i386/i386.md: Use default value in "isa" attribute.
12410 * config/i386/sse.md: Ditto.
12411 * config/i386/mmx.md: Ditto.
12413 2011-06-10 Wei Guozhi <carrot@google.com>
12416 * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
12417 stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
12418 (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
12420 (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
12422 * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
12423 (arm_legitimate_ldrd_p): New prototype.
12424 (arm_output_ldrd): New prototype.
12425 * config/arm/arm.c (arm_check_ldrd_operands): New function.
12426 (arm_legitimate_ldrd_p): New function.
12427 (arm_output_ldrd): New function.
12429 2011-06-10 David Li <davidxl@google.com>
12431 * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
12432 * passes.c (passr_eq): New function.
12433 (create_pass_tab): New function.
12434 (pass_traverse): New function.
12435 (dump_one_pass): New function.
12436 (dump_pass_list): New function.
12437 (dump_passes): New function.
12439 2011-06-10 Jan Hubicka <jh@suse.cz>
12441 * cgraph.c (cgraph_set_nothrow_flag_1): Update cgraph after
12442 setting the nothrow flag.
12443 * ipa-reference.c (propagate): Skip aliases.
12444 * ipa-pure-const.c (propagate_pure_const): Skip aliases.
12445 (propagate_nothrow): Skip aliases; do not update cgraph.
12446 (local_pure_const): Do not update cgraph.
12447 * tree-profile.c (tree_profiling): Do fixup_cfg.
12449 2011-06-10 Jan Hubicka <jh@suse.cz>
12451 * ipa.c (cgraph_non_local_node_p_1): Break out from ...;
12452 (cgraph_local_node_p): ... here; handle aliases.
12453 (has_addr_references_p): Break out from ...;
12454 (cgraph_remove_unreachable_nodes) ... here.
12456 2011-06-10 Jan Hubicka <jh@suse.cz>
12458 * opts.c (default_options): Enlist OPT_finline_functions_called_once.
12459 * common.opt (flag_inline_functions_called_once): Do not
12462 2011-06-10 Jan Hubicka <jh@suse.cz>
12464 * ipa-cp.c (ipcp_versionable_function_p): Thunks are not versionable.
12465 (ipcp_initialize_node_lattices): Do not deal with aliases;
12466 Do not try to propagate through thunks.
12467 (ipcp_change_tops_to_bottom): Do not deal with aliases.
12469 2011-06-10 Jan Hubicka <jh@suse.cz>
12471 * ipa-prop.c (ipa_write_node_info): Stream jump functions
12472 for indirect calls.
12473 (ipa_read_node_info): Likewise.
12475 2011-06-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12478 * tree-ssa-math-opts.c (powi_as_mults): Minor cleanup.
12479 (build_and_insert_call): Likewise.
12480 (build_and_insert_ref): New.
12481 (gimple_expand_builtin_pow): Minor cleanup.
12482 (gimple_expand_builtin_cabs): New.
12483 (execute_cse_sincos): Add case for BUILT_IN_CABS.
12485 2011-06-10 Jan Hubicka <jh@suse.cz>
12487 * ipa-cp.c (ipcp_versionable_function_p): Aliases are not versionable.
12488 (ipcp_cloning_candidate_p): Aliases are not clonning candidates.
12489 (ipcp_initialize_node_lattices): We don't propagate through an aliases.
12490 (ipcp_propagate_stage): Skip aliases when propagating.
12491 (ipcp_need_redirect_p): Skip aliases.
12492 (ipcp_insert_stage): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY and
12493 collect_callers_of_node.
12494 * ipa-prop.c (ipa_init_func_list): Do not analyze datastructures
12496 (ipa_compute_jump_functions): Look through aliases.
12498 2011-06-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12500 * doc/sourcebuild.texi (Effective-Target Keywords, pie): Document it.
12502 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
12504 * ira-costs.c: Remove #ifdefs on dead FORBIDDEN_INC_DEC_CLASSES.
12506 * system.h (FORBIDDEN_INC_DEC_CLASSES): Poison.
12508 2011-06-10 Jan Hubicka <jh@suse.cz>
12510 * ipa-cp.c (ipcp_process_devirtualization_opportunities):
12511 Update call of gimple_get_virt_method_for_binfo.
12512 * gimple-fold.c (gimple_get_virt_method_for_binfo): Remove
12513 refuse_thunks parameter.
12514 (gimple_fold_call): Update.
12515 * ipa-prop.c (try_make_edge_direct_virtual_call): Update.
12517 2011-06-10 Jan Hubicka <jh@suse.cz>
12519 * tree-sra.c (all_callers_have_enough_arguments_p): Rename to ...
12520 (not_all_callers_have_enough_arguments_p): ... this one; turn into
12521 worker for cgraph_for_node_and_aliases.
12522 (convert_callers_for_node): Break out from ...
12523 (convert_callers): ... here.
12524 (modify_function): Use collect_callers_of_node.
12525 (ipa_early_sra): Use cgraph_for_node_and_aliases.
12527 2011-06-10 Richard Guenther <rguenther@suse.de>
12529 PR tree-optimization/49361
12530 * fold-const.c (fold_binary_loc): Only fold x * x to pow (x, 2.0)
12531 when not already in gimple form.
12533 2011-06-10 Richard Guenther <rguenther@suse.de>
12536 * tree-ssa-math-opts.c (convert_mult_to_fma): Use
12537 FOR_EACH_PHI_OR_STMT_USE.
12539 2011-06-10 Jan Hubicka <jh@suse.cz>
12541 * ipa-inline-transform.c (can_remove_node_now_p): Move out of...
12542 (clone_inlined_nodes): ... here.
12543 (inline_call): Use cgraph_function_or_thunk_node; redirect edge
12544 to real destination prior inlining.
12545 * ipa-inline.c (caller_growth_limits, can_inline_edge_p,
12546 can_early_inline_edge_p, want_early_inline_function_p,
12547 want_early_inline_function_p, want_inline_small_function_p,
12548 want_inline_self_recursive_call_p, want_inline_function_called_once_p,
12549 edge_badness, update_all_callee_keys, lookup_recursive_calls,
12550 add_new_edges_to_heap, inline_small_functions, flatten_function,
12551 inline_always_inline_functions, early_inline_small_functions): Use
12552 cgraph_function_or_thunk_node.
12553 * ipa-inline-analysis.c (evaluate_conditions_for_edge,
12554 dump_inline_edge_summary, estimate_function_body_sizes): Likewise.
12555 (do_estimate_edge_growth_1): Break out from ...
12556 (do_estimate_growth) ... here; walk aliases.
12557 (inline_generate_summary): Skip aliases.
12559 2011-06-10 Richard Guenther <rguenther@suse.de>
12561 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Scan stmts
12562 forward when combining, visit inserted stmts when a stmt was changed.
12564 2011-06-10 Paolo Carlini <paolo.carlini@oracle.com>
12566 * tree.h (error_operand_p): Add.
12567 * dbxout.c (dbxout_type_fields): Use the latter.
12568 * c-decl.c (add_stmt): Likewise.
12569 * gimplify.c (omp_add_variable, omp_notice_variable,
12570 gimplify_scan_omp_clauses): Likewise.
12572 2011-06-10 Georg-Johann Lay <avr@gjlay.de>
12574 * config/avr/avr.c (avr_function_arg_advance): Fix thinko about
12575 when a value is actually passed in regs.
12577 2011-06-10 Eric Botcazou <ebotcazou@adacore.com>
12578 Laurent Rougé <laurent.rouge@menta.fr>
12580 * doc/invoke.texi (SPARC options): Add -mflat.
12581 * config/sparc/sparc.opt: Likewise.
12582 * config/sparc/sparc-protos.h (sparc_expand_epilogue): Add parameter.
12583 (sparc_flat_expand_prologue): Declare.
12584 (sparc_flat_expand_epilogue): Likewise.
12585 * config/sparc/sparc.h (CPP_CPU_SPEC): Do not handle -msoft-float.
12586 (CPP_ENDIAN_SPEC): Replace with...
12587 (CPP_OTHER_SPEC): ...this. Also handle -mflat and -msoft-float.
12588 (CPP_SPEC): Adjust to above change.
12589 (EXTRA_SPECS): Likewise.
12590 (SPARC_INCOMING_INT_ARG_FIRST): Add TARGET_FLAT handling.
12591 (INCOMING_REGNO): Likewise.
12592 (OUTGOING_REGNO): Likewise.
12593 (LOCAL_REGNO): Likewise.
12594 (SETUP_FRAME_ADDRESSES): Likewise.
12595 (FIXED_REGISTERS): Set 0 for %fp.
12596 (CALL_USED_REGISTERS): Likewise.
12597 (INITIAL_ELIMINATION_OFFSET): Pass current_function_is_leaf.
12598 (EXIT_IGNORE_STACK): Define to 1 unconditionally.
12599 (RETURN_ADDR_REGNUM): Define.
12600 (RETURN_ADDR_RTX): Use it.
12601 (INCOMING_RETURN_ADDR_REGNUM): Define.
12602 (INCOMING_RETURN_ADDR_RTX): Use it.
12603 (DWARF_FRAME_RETURN_COLUMN): Likewise.
12604 (EH_RETURN_REGNUM): Define.
12605 (EH_RETURN_STACKADJ_RTX): Use it.
12606 (EH_RETURN_HANDLER_RTX): Delete.
12607 (EPILOGUE_USES): Use them and add TARGET_FLAT handling.
12608 * config/sparc/sparc.c (apparent_fsize, actual_fsize, num_gfregs):
12610 (struct machine_function): Add frame_size, apparent_frame_size,
12611 frame_base_reg, frame_base_offset, n_global_fp_regs and
12612 save_local_in_regs_p fields.
12613 (sparc_frame_size, sparc_apparent_frame_size, sparc_frame_base_reg,
12614 sparc_frame_base_offset, sparc_n_global_fp_regs,
12615 sparc_save_local_in_regs_p): New macros.
12616 (sparc_option_override): Error out if -fcall-saved-REG is specified
12618 (eligible_for_restore_insn): Fix formatting.
12619 (eligible_for_return_delay): Likewise. Add TARGET_FLAT handling.
12620 (eligible_for_sibcall_delay): Likewise.
12621 (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Add MODE parameter.
12622 (sparc_legitimate_address_p): Adjust to above change.
12623 (save_global_or_fp_reg_p): New predicate.
12624 (return_addr_reg_needed_p): Likewise.
12625 (save_local_or_in_reg_p): Likewise.
12626 (sparc_compute_frame_size): Use them. Add TARGET_FLAT handling.
12627 (SORR_SAVE, SORR_RESTORE): Delete.
12628 (sorr_pred_t): New typedef.
12629 (sorr_act_t): New enum.
12630 (save_or_restore_regs): Rename to...
12631 (emit_save_or_restore_regs): ...this. Change type of LOW and HIGH
12632 parameters, remove ACTION parameter, add LEAF_FUNCTION_P, SAVE_P,
12633 ACTION_TRUE and ACTION_FALSE parameters. Implement more general
12634 mechanism. Add CFI information for double-word saves in 32-bit mode.
12635 (emit_adjust_base_to_offset): New function extracted from...
12636 (emit_save_or_restore_regs): ...this. Rename the rest to...
12637 (emit_save_or_restore_regs_global_fp_regs): ...this.
12638 (emit_save_or_restore_regs_local_in_regs): New function.
12639 (gen_create_flat_frame_[123]): New functions.
12640 (sparc_expand_prologue): Use SIZE local variable. Adjust.
12641 (sparc_flat_expand_prologue): New function.
12642 (sparc_asm_function_prologue): Add TARGET_FLAT handling.
12643 (sparc_expand_epilogue): Use SIZE local variable. Adjust.
12644 (sparc_flat_expand_epilogue): New function.
12645 (sparc_can_use_return_insn_p): Add TARGET_FLAT handling.
12646 (output_return): Likewise.
12647 (output_sibcall): Likewise.
12648 (sparc_output_mi_thunk): Likewise.
12649 (sparc_frame_pointer_required): Likewise.
12650 (sparc_conditional_register_usage): If TARGET_FLAT, disable the leaf
12651 function optimization.
12652 * config/sparc/sparc.md (flat): New attribute.
12653 (prologue): Add TARGET_FLAT handling.
12654 (save_register_window): Disable if TARGET_FLAT.
12655 (create_flat_frame_[123]): New patterns.
12656 (epilogue): Add TARGET_FLAT handling.
12657 (sibcall_epilogue): Likewise.
12658 (eh_return): New expander.
12659 (eh_return_internal): New insn and splitter.
12660 (return_internal): Add TARGET_FLAT handling.
12661 (untyped_return): Remove bogus test and use RETURN_ADDR_REGNUM.
12662 (save_stack_nonlocal): Use RETURN_ADDR_REGNUM.
12663 (nonlocal_goto): Add TARGET_FLAT handling.
12664 * config/sparc/t-elf: Add -mflat multilib.
12665 * config/sparc/t-leon: Likewise.
12667 2011-06-10 Jan Hubicka <jh@suse.cz>
12669 * ipa-utils.c (searchc): Use cgraph_function_or_thunk_node.
12670 * ipa-pure-const.c (analyze_function): Aliases don't need analysis.
12671 (self_recursive_p): Use cgraph_function_node.
12672 (propagate_pure_const): Likewise.
12673 (propagate_nothrow): Likewise.
12674 * ipa-reference.c (ipa_reference_get_not_read_global): Use
12675 cgraph_function_node.
12676 (propagate_bits): Likewise.
12677 (propagate): Likewise.
12679 2011-06-10 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
12680 Richard Earnshaw <rearnsha@arm.com>
12682 * config/arm/arm.c (const_ok_for_op): Check to see if mvn can be used.
12683 * config/arm/vfp.md (*arm_movdi_vfp): Delete.
12684 (*thumb2_movdi_vfp): Delete.
12685 (*arm_movdi_vfp_cortexa8): Delete.
12686 (*movdi_vfp): Consolidate from *arm_movdi_vfp and *thumb2_movdi_vfp.
12687 (*movdi_vfp_cortexa8): Likewise.
12689 2011-06-10 Richard Guenther <rguenther@suse.de>
12691 * stor-layout.c (initialize_sizetypes): Give names to all
12694 2011-06-10 Ira Rosen <ira.rosen@linaro.org>
12696 PR tree-optimization/49318
12697 * tree-vect-loop.c (vect_determine_vectorization_factor): Remove
12698 irrelevant pattern statements.
12700 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
12702 * system.h (SETJMP_VIA_SAVE_AREA): Poison.
12705 * ira-costs.c (setup_regno_cost_classes_by_mode): Add missing cast
12706 to last assignment.
12708 2011-06-09 Jan Hubicka <jh@suse.cz>
12710 * cgraphunit.c (cgraph_reset_node): Do not set redefined_extern_inline;
12711 do not recompute reachable flag.
12712 (cgraph_finalize_function, cgraph_analyze_functions): Set
12713 redefined_extern_inline here.
12715 2011-06-09 Jan Hubicka <jh@suse.cz>
12717 * cgraph.h (cgraph_only_called_directly_or_aliased_p): Rename from ...
12718 (cgraph_only_called_directly_p): ... this one; bring offline.
12719 (resolution_used_from_other_file_p, cgraph_used_from_object_file_p,
12720 varpool_used_from_object_file_p): Drop names from the declaratoin.
12721 (cgraph_for_node_thunks_and_aliases, cgraph_for_node_and_aliases,
12722 collect_callers_of_node): New.
12723 (cgraph_function_node, cgraph_function_or_thunk_node): New functions.
12724 (cgraph_edge_recursive_p): Use cgraph_function_node.
12725 * cgraph.c (cgraph_add_thunk): Check that thunk is not already alias.
12726 (cgraph_node_cannot_be_local_p_1): Break out from ...
12727 (cgraph_node_can_be_local_p): ... here; walk aliases.
12728 (cgraph_for_node_thunks_and_aliases): New function.
12729 (cgraph_for_node_and_aliases): New function.
12730 (cgraph_make_node_local_1): Break out from ...
12731 (cgraph_make_node_local) ... here; use
12732 cgraph_for_node_thunks_and_aliases.
12733 (cgraph_set_nothrow_flag_1): Break out from ...
12734 (cgraph_set_nothrow_flag) ... here;
12735 use cgraph_for_node_thunks_and_aliases.
12736 (cgraph_set_const_flag_1): Break out from ...
12737 (cgraph_set_const_flag) ... here;
12738 use cgraph_for_node_thunks_and_aliases.
12739 (cgraph_set_pure_flag_1): Break out from ...
12740 (cgraph_set_pure_flag) ... here;
12741 use cgraph_for_node_thunks_and_aliases.
12742 (cgraph_propagate_frequency_1): Break out from ...
12743 (cgraph_propagate_frequency) ... here; use
12744 cgraph_for_node_thunks_and_aliases.
12745 (cgraph_used_from_object_file_p): Do not care about aliases.
12746 (cgraph_not_only_called_directly_p_1, cgraph_only_called_directly_p):
12748 (collect_callers_of_node_1, collect_callers_of_node): New functions.
12750 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
12752 PR rtl-optimization/49154
12753 * config/cris/cris.h (FIXED_REGISTERS): Include CRIS_CC0_REGNUM.
12754 (enum reg_class): Add SRP_REGS and MOF_SRP_REGS.
12755 (REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGNO_REG_CLASS)
12756 (PREFERRED_RELOAD_CLASS, SECONDARY_RELOAD_CLASS): Adjust to fit.
12757 * config/cris/cris.h (cris_register_move_cost): Remove
12758 !TARGET_V32 code. Tweak comments.
12760 2011-06-09 Jan Hubicka <jh@suse.cz>
12762 * cgraphbuild.c (record_eh_tables): Mark personality function as having
12765 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
12767 PR rtl-optimization/49154
12768 * ira-costs.c (setup_regno_cost_classes_by_mode): If there already
12769 is a matching slot in the hashtable, assign it to classes_ptr.
12771 PR rtl-optimization/49154
12772 * doc/tm.texi.in (Register Classes): Document rule for the narrowest
12774 * doc/tm.texi: Regenerate.
12776 2011-06-09 Kaz Kojima <kkojima@gcc.gnu.org>
12779 * config/sh/sh.md (UNSPEC_CHKADD): New.
12780 (chk_guard_add): New define_insn_and_split.
12781 (symGOT_load): Use chk_guard_add instead of blockage.
12783 2011-06-09 Kai Tietz <ktietz@redhat.com>
12785 * libgcc2.c (L_trampoline): Include windows.h for mingw targets.
12787 2011-06-09 Eric Botcazou <ebotcazou@adacore.com>
12789 * config/sparc/sparc.md (return_internal): Adjust 'length' attribute.
12791 2011-06-09 Wei Guozhi <carrot@google.com>
12794 * config/arm/arm.md (*addsi3_carryin_compare0_<optab>): New pattern.
12795 (peephole2 for conditional move): Generate 16 bit instructions.
12797 2011-06-09 Uros Bizjak <ubizjak@gmail.com>
12799 * config/i386/i386.md (*movdi_internal_rex64): Merge
12800 alternatives 6 and 8.
12802 2011-06-09 David Li <davidxl@google.com>
12804 * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
12805 * passes.c (passr_eq): New function.
12806 (create_pass_tab): New function.
12807 (pass_traverse): New function.
12808 (dump_one_pass): New function.
12809 (dump_pass_list): New function.
12810 (dump_passes): New function.
12812 2011-06-09 David Li <davidxl@google.com>
12814 * tree-complex.c (tree_lower_complex): Gate cleanup.
12815 * tree-stdarg.c (check_all_va_list_escapes): Ditto.
12816 (execute_optimize_stdarg): Ditto.
12817 * tree-eh.c (execute_lower_eh_dispatch): Ditto.
12818 (execute_cleanup_eh_1): Ditto.
12819 (execute_cleanup_eh): Ditto.
12820 * gcse.c (gate_rtl_pre): Ditto.
12821 (execute_rtl_pre): Ditto.
12822 * except.c (finish_eh_generation): Ditto.
12823 (convert_to_eh_region_ranges): Ditto.
12824 * cprop.c (one_cprop_pass): Ditto.
12826 2011-06-09 Bernd Schmidt <bernds@codesourcery.com>
12829 * config/ia64/ia64.c (ia64_reorg): Clear BB_DISABLE_SCHEDULE flag
12830 in all basic blocks.
12832 2011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12834 * config/alpha/netbsd.h (ENABLE_EXECUTE_STACK): Remove.
12835 (HAVE_ENABLE_EXECUTE_STACK): Define.
12836 * config/alpha/osf5.h (ENABLE_EXECUTE_STACK): Remove.
12837 (HAVE_ENABLE_EXECUTE_STACK): Define.
12838 * config/darwin.h (ENABLE_EXECUTE_STACK): Remove.
12839 (HAVE_ENABLE_EXECUTE_STACK): Define.
12840 * config/i386/mingw32.h (MINGW_ENABLE_EXECUTE_STACK): Remove.
12841 (ENABLE_EXECUTE_STACK): Remove.
12842 (HAVE_ENABLE_EXECUTE_STACK): Define.
12843 [IN_LIBGCC2]: Don't include <windows.h>.
12844 * config/i386/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
12845 (HAVE_ENABLE_EXECUTE_STACK): Define.
12846 * config/i386/netbsd64.h (ENABLE_EXECUTE_STACK): Remove.
12847 (HAVE_ENABLE_EXECUTE_STACK): Define.
12848 * config/netbsd.h (NETBSD_ENABLE_EXECUTE_STACK): Remove.
12849 * config/openbsd.h (ENABLE_EXECUTE_STACK): Remove.
12850 (HAVE_ENABLE_EXECUTE_STACK): Define.
12851 * config/sol2.h (ENABLE_EXECUTE_STACK): Remove.
12852 (HAVE_ENABLE_EXECUTE_STACK): Define.
12853 * config/sparc/freebsd.h (ENABLE_EXECUTE_STACK): Remove.
12854 (HAVE_ENABLE_EXECUTE_STACK): Define.
12855 * config/sparc/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
12856 (HAVE_ENABLE_EXECUTE_STACK): Define.
12857 * config/alpha/alpha.c (alpha_trampoline_init): Test
12858 HAVE_ENABLE_EXECUTE_STACK.
12859 * config/i386/i386.c (ix86_trampoline_init): Likewise.
12860 * config/sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
12861 (sparc64_initialize_trampoline): Likewise.
12862 * libgcc2.c [L_enable_execute_stack]: Remove.
12863 * system.h (ENABLE_EXECUTE_STACK): Poison.
12864 * doc/tm.texi.in (Trampolines, ENABLE_EXECUTE_STACK): Remove.
12865 * doc/tm.texi: Regenerate.
12866 * Makefile.in (LIBGCC2_CFLAGS): Add -fbuilding-libgcc.
12868 2011-06-09 Jakub Jelinek <jakub@redhat.com>
12870 PR middle-end/49308
12871 * dce.c (reset_unmarked_insns_debug_uses): Avoid shadowing insn
12872 variable. After resetting and rescanning insn continue with previous
12875 2011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12877 * configure.ac (gcc_cv_as_hidden): Enable on *-*-darwin*.
12878 (gcc_cv_ld_hidden): Likewise.
12879 * configure: Regenerate.
12880 * config/i386/i386.c (USE_HIDDEN_LINKONCE): Remove TARGET_MACHO.
12881 (ix86_stack_protect_fail): Mark unused.
12882 (TARGET_STACK_PROTECT_FAIL) [TARGET_MACHO]: Don't redefine.
12883 * config/rs6000/rs6000.c (rs6000_assemble_visibility)
12884 [TARGET_MACHO]: Don't define.
12885 (TARGET_ASM_ASSEMBLE_VISIBILITY): Likewise.
12886 (TARGET_STACK_PROTECT_FAIL): Likewise.
12887 (rs6000_stack_protect_fail): Mark unused.
12888 * dwarf2asm.c (dw2_output_indirect_constant_1): Mark decl hidden if
12889 USE_LINKONCE_INDIRECT. Don't emit .hidden expicitly.
12891 2011-06-08 Andi Kleen <ak@linux.intel.com>
12893 * varasm.c (get_section): Print location of other conflict
12894 for section conflicts.
12896 2011-06-08 Andi Kleen <ak@linux.intel.com>
12898 * config/i386/driver-i386.c (host_detect_local_cpu):
12899 Add model 0x2d Intel CPU.
12901 2011-06-08 Andi Kleen <ak@linux.intel.com>
12903 * reginfo.c (global_regs_decl): Add.
12904 (globalize_reg): Add decl parameter. Compute location. Pass location
12905 to warnings and add inform. Store decl in global_regs_decl.
12906 * rtl.h (globalize_reg): Update prototype.
12907 * varasm.c (make_decl_rtl): Pass decl to globalize_reg().
12909 2011-06-09 Mingjie Xing <mingjie.xing@gmail.com>
12911 * treestruct.def (TS_TYPE_DECL): Fix the printable name typo.
12913 2011-06-08 Kaz Kojima <kkojima@gcc.gnu.org>
12916 * config/sh/predicates.md (general_movsrc_operand): Check
12917 mode for memory with indexed address for QI and HImode.
12918 (general_movdst_operand): Likewise.
12920 2011-06-09 Nicola Pero <nicola.pero@meta-innovation.com>
12922 * doc/objc.texi (Traditional GNU Objective-C runtime API): Updated.
12924 2011-06-08 Alexandre Oliva <aoliva@redhat.com>
12926 * tree-flow-inline.h (op_iter_init): Reject GIMPLE_PHI stmts.
12927 (num_ssa_operands): Likewise.
12928 (op_iter_init_phiuse): Forward-declare.
12929 (delink_stmt_imm_use): Iterate with FOR_EACH_PHI_OR_STMT_USE.
12931 2011-06-08 Nick Clifton <nickc@redhat.com>
12933 * doc/invoke.texi (ARM Options): Update description of
12936 2011-06-08 H.J. Lu <hongjiu.lu@intel.com>
12938 * config/i386/driver-i386.c (host_detect_local_cpu): Support
12939 unknown Intel family 0x6 CPUs.
12941 2011-06-08 Martin Jambor <mjambor@suse.cz>
12943 * tree-sra.c (mark_rw_status): Removed.
12944 (analyze_access_subtree): New parameter parent instead of
12945 mark_read and mark_write, propagate from that.
12947 2011-06-08 Julian Brown <julian@codesourcery.com>
12949 * config/arm/arm.c (arm_libcall_uses_aapcs_base): Use correct ABI
12950 for double-precision helper functions in hard-float mode if only
12951 single-precision arithmetic is supported in hardware.
12953 2011-06-08 Alexander Monakov <amonakov@ispras.ru>
12955 PR rtl-optimization/49303
12956 * sel-sched.c (move_op): Use correct type for 'res'. Verify that
12957 code_motion_path_driver returned 0 or 1.
12958 (sel_region_finish): Clear h_d_i_d.
12960 2011-06-08 Kaz Kojima <kkojima@gcc.gnu.org>
12962 * config/sh/sh.c (prepare_move_operands): Set pic register
12963 appropriately for global and local dynamic tls models even
12964 if flag_pic is unset.
12966 2011-06-07 Jason Merrill <jason@redhat.com>
12968 * pretty-print.h (ATTRIBUTE_GCC_PPDIAG): Use GCC_DIAG_STYLE if set.
12970 2011-06-07 Xinliang David Li <davidxl@google.com>
12971 * passes.c (enable_disable_pass): Handle assembler name.
12972 (is_pass_explicitly_enabled_or_disabled): Ditto.
12974 2011-06-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12976 PR tree-optimization/48497
12977 * doc/sourcebuild.texi (Directives, dg-additional-options): Document.
12979 2011-06-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12981 PR tree-optimization/46728
12982 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Change FIXME
12983 to use gimple_val_nonnegative_real_p.
12984 * gimple-fold.c (gimple_val_nonnegative_real_p): New function.
12985 * gimple.h (gimple_val_nonnegative_real_p): New declaration.
12987 2011-06-07 H.J. Lu <hongjiu.lu@intel.com>
12989 * config/i386/i386.md (*movsf_internal): Optimize AVX check.
12991 2011-06-07 Sergey Grechanik <mouseentity@ispras.ru>
12993 * config/arm/arm.c (coproc_secondary_reload_class): Return NO_REGS for
12996 2011-06-07 Richard Guenther <rguenther@suse.de>
12998 * stor-layout.c (initialize_sizetypes): Initialize all
12999 sizetypes based on target definitions.
13000 (set_sizetype): Remove.
13001 * tree.c (build_common_tree_nodes): Do not call set_sizetype.
13002 * tree.h (set_sizetype): Remove.
13004 2011-06-07 Nick Clifton <nickc@redhat.com>
13006 * config.gcc: Unify V850 architecture options and add support for
13007 newer V850 architectures.
13008 * config/v850/t-v850e: Delete.
13010 2011-06-07 Richard Guenther <rguenther@suse.de>
13012 * tree.c (build_common_tree_nodes): Also initialize size_type_node.
13013 Call set_sizetype from here.
13015 2011-06-07 Andrew Stubbs <ams@codesourcery.com>
13017 * config/arm/arm.md (*maddhidi4tb, *maddhidi4tt): New define_insns.
13018 (*maddhisi4tb, *maddhisi4tt): New define_insns.
13020 2011-06-07 Bernd Schmidt <bernds@codesourcery.com>
13021 Andrew Stubbs <ams@codesourcery.com>
13023 * simplify-rtx.c (simplify_unary_operation_1): Canonicalize widening
13025 * doc/md.texi (Canonicalization of Instructions): Document widening
13026 multiply canonicalization.
13028 2011-06-07 Jakub Jelinek <jakub@redhat.com>
13030 PR gcov-profile/49299
13031 * value-prof.c (gimple_ic): Don't assume icall has a fallthru edge.
13033 2011-06-07 Ira Rosen <ira.rosen@linaro.org>
13035 * tree-vectorizer.h (vect_recog_func_ptr): Make last argument to be
13037 * tree-vect-patterns.c (vect_recog_widen_sum_pattern,
13038 vect_recog_widen_mult_pattern, vect_recog_dot_prod_pattern,
13039 vect_recog_pow_pattern): Likewise.
13040 (vect_pattern_recog_1): Remove declaration.
13041 (widened_name_p): Remove declaration. Add new argument to specify
13042 whether to check that both types are either signed or unsigned.
13043 (vect_recog_widen_mult_pattern): Update documentation. Handle
13044 unsigned patterns and multiplication by constants.
13045 (vect_pattern_recog_1): Update vect_recog_func references. Use
13046 statement information from the statement returned from pattern
13047 detection functions.
13048 (vect_pattern_recog): Update vect_recog_func reference.
13049 * tree-vect-stmts.c (vectorizable_type_promotion): For widening
13050 multiplication by a constant use the type of the other operand.
13052 2011-06-06 Richard Sandiford <rdsandiford@googlemail.com>
13054 PR rtl-optimization/49145
13055 * combine.c (make_compound_operation): Handle ZERO_EXTEND specially.
13057 2011-06-06 Jakub Jelinek <jakub@redhat.com>
13060 * dwarf2out.c (native_encode_initializer): Decrement count in each
13064 * dwarf2out.c (mem_loc_descriptor) <do_shift>: Give up for
13065 non-MODE_INT modes.
13068 * gimple-fold.c (fold_stmt_1): Don't try to fold *& on the lhs
13069 if stmt folded into nothing.
13070 * tree-inline.c (fold_marked_statements): If a builtin at the end of
13071 a bb folded into nothing, just update cgraph edges and move to next bb.
13072 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Allow new_stmt
13073 to be NULL. Don't compute count and frequency if new_call is NULL.
13075 2011-06-04 Diego Novillo <dnovillo@google.com>
13077 * Makefile.in (lto-compress.o): Add dependency on LTO_STREAMER_H.
13078 (cgraph.o): Likewise.
13079 (cgraphunit.o): Likewise.
13080 * cgraphunit.c: Include lto-streamer.h
13081 (cgraph_finalize_compilation_unit): Call lto_streamer_hooks_init
13083 * lto-streamer-in.c (unpack_value_fields): Call
13084 streamer_hooks.unpack_value_fields if set.
13085 (lto_materialize_tree): For unhandled nodes, first try to
13086 call lto_streamer_hooks.alloc_tree, if it exists.
13087 (lto_input_ts_decl_common_tree_pointers): Move reading of
13088 DECL_INITIAL to lto_streamer_read_tree.
13089 (lto_read_tree): Call lto_streamer_hooks.read_tree if set.
13090 (lto_streamer_read_tree): New.
13091 (lto_reader_init): Rename from lto_init_reader.
13092 Move initialization code to lto/lto.c.
13093 * lto-streamer-out.c (pack_value_fields): Call
13094 streamer_hooks.pack_value_fields if set.
13095 (lto_output_tree_ref): For tree nodes that are not normally indexable,
13096 call streamer_hooks.indexable_with_decls_p before giving up.
13097 (lto_output_ts_decl_common_tree_pointers): Move handling
13098 for FUNCTION_DECL and TRANSLATION_UNIT_DECL to lto_streamer_write_tree.
13099 (lto_output_tree_header): Call streamer_hooks.is_streamable instead of
13100 lto_is_streamable. Call lto_streamer_hooks.output_tree_header if set.
13101 (lto_write_tree): Call lto_streamer_hooks.write_tree if set.
13102 (lto_streamer_write_tree): New.
13103 (lto_output): Call lto_streamer_init directly.
13104 (lto_writer_init): Remove.
13105 * lto-streamer.c (streamer_hooks): New.
13106 (lto_streamer_cache_create): Call streamer_hooks.preload_common_nodes
13107 instead of lto_preload_common_nodes.
13108 (lto_is_streamable): Move from lto-streamer.h
13109 (lto_streamer_hooks_init): New.
13110 (streamer_hooks): New.
13111 (streamer_hooks_init): New.
13112 * lto-streamer.h (struct output_block): Forward declare.
13113 (struct lto_input_block): Likewise.
13114 (struct data_in): Likewise.
13115 (struct bitpack_d): Likewise.
13116 (struct streamer_hooks): Declare.
13117 (streamer_hooks): Declare.
13118 (lto_streamer_hooks_init): Declare.
13119 (lto_streamer_write_tree): Declare.
13120 (lto_streamer_read_tree): Declare.
13121 (streamer_hooks_init): Declare.
13122 (lto_is_streamable): Move to lto-streamer.c
13124 2011-06-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13126 * longlong.h (smul_ppmm): The resulting register pair contains the
13127 higher order word first.
13129 2011-06-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13131 PR tree-optimization/46728
13132 * builtins.c (powi_table): Remove.
13133 (powi_lookup_cost): Remove.
13134 (powi_cost): Remove.
13135 (expand_powi_1): Remove.
13136 (expand_powi): Remove.
13137 (expand_builtin_pow_root): Remove.
13138 (expand_builtin_pow): Remove.
13139 (expand_builtin_powi): Eliminate handling of constant exponent.
13140 (expand_builtin): Use expand_builtin_mathfn_2 for BUILT_IN_POW.
13142 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
13144 * cprop.c (local_cprop_pass): Don't set changed for debug insns.
13146 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
13148 * dce.c (reset_unmarked_insns_debug_uses): New.
13149 (delete_unmarked_insns): Skip debug insns.
13150 (prescan_insns_for_dce): Likewise.
13151 (rest_of_handle_ud_dce): Reset debug uses of removed sets.
13152 * reg-stack.c (subst_stack_regs_in_debug_insn): Signal when no
13153 active reg can be found.
13154 (subst_all_stack_regs_in_debug_insn): New. Reset debug insn then.
13155 (convert_regs_1): Use it.
13157 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
13159 * tree-pretty-print.c (dump_function_header): Add flags.
13160 Don't dump decl_uid with nouid.
13161 * tree-pretty-print.h (dump_function_header): Adjust.
13162 * final.c (rest_of_clean_state): Pass dump_flags on, with nouid.
13163 * passes.c (pass_init_dump_file): Pass dump_flags on.
13164 * tree-cfg.c (gimple_dump_cfg): Pass flags on.
13166 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
13169 * ipa-inline-analysis.c (read_predicate): Initialize all clauses.
13171 2011-06-06 Mikael Pettersson <mikpe@it.uu.se>
13173 PR tree-optimization/49243
13174 * calls.c (setjmp_call_p): Also check if fndecl has the
13175 returns_twice attribute.
13177 2011-06-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13179 * config/mips/iris6.h (ENDFILE_SPEC): Use crtfastmath.o if
13182 2011-06-06 Richard Henderson <rth@redhat.com>
13183 Georg-Johann Lay <avr@gjlay.de>
13186 * config/avr/predicates.md (const1_operand, const_0_to_7_operand):
13188 * config/avr/avr.md ("insv"): New insn expander.
13189 ("*movbitqi.1-6.a", "*movbitqi.1-6.b", "*movbitqi.0", "*insv.io",
13190 "*insv.not.io", "*insv.reg"): New insns.
13192 2011-06-06 Hans-Peter Nilsson <hp@bitrange.com>
13195 * config/mmix/mmix.md ("truncdfsf2", "extendsfdf2"): Correct predicate
13196 to nonimmediate_operand from memory_operand for the operand that is to
13197 be forced to memory by the expander. Lose the constraints.
13199 2011-06-05 Eric Botcazou <ebotcazou@adacore.com>
13201 * config/sparc/sparc.c (output_return): Fix thinko in the output of an
13202 EH return when delayed branches are disabled.
13204 2011-06-05 Uros Bizjak <ubizjak@gmail.com>
13206 * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>:
13207 Remove MODE_TI handling. Remove SSE1 handling in attribute "mode"
13209 (*movdf_internal_rex64) <case 6,7,8>: Remove MODE_TI handling.
13210 Simplify MODE_V1DF and MODE_V2SF handling.
13211 (*movsf_internal): Remove x constraint from alternative 7 of operand 1.
13212 Simplify MODE_SF handling.
13214 2011-06-04 Jan Hubicka <jh@suse.cz>
13216 PR tree-optimization/48893
13217 PR tree-optimization/49091
13218 PR tree-optimization/49179
13219 * ipa-inline-analysis.c (evaluate_conditions_for_known_args):
13222 2011-06-04 Jan Hubicka <jh@suse.cz>
13225 * lto-cgraph.c (output_node_opt_summary): Handle NULL skip args
13228 2011-06-04 Jonathan Wakely <jwakely.gcc@gmail.com>
13230 * doc/invoke.texi: Document -Wdelete-non-virtual-dtor.
13232 2011-06-04 Jakub Jelinek <jakub@redhat.com>
13235 * config/i386/i386.md (*lea_general_4): Require INTVAL (operands[3])
13236 to be strictly smaller than 1 << shiftcount.
13238 2011-06-04 Jan Hubicka <jh@suse.cz>
13240 PR tree-optimize/48929
13241 * ipa-inline-analysis.c (remap_edge_predicates): Fix handling
13242 of empty predicate.
13244 2011-06-04 Alexandre Oliva <aoliva@redhat.com>
13247 * calls.c (emit_call_1): Prefer the __builtin declaration of
13250 2011-06-03 Diego Novillo <dnovillo@google.com>
13252 * lto-streamer-in.c (unpack_value_fields): Remove unneeded asserts.
13253 (lto_input_tree_pointers): Likewise.
13254 * lto-streamer-out.c (pack_value_fields): Likewise.
13255 (lto_output_tree_pointers): Likewise.
13256 * lto-streamer.h (lto_is_streamable): Add check for OMP_CLAUSE
13257 and OPTIMIZATION_NODE.
13259 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13261 * config/alpha/linux.h (MD_UNWIND_SUPPORT): Remove.
13262 * config/alpha/osf5.h (MD_UNWIND_SUPPORT): Remove.
13263 * config/alpha/vms.h (MD_UNWIND_SUPPORT): Remove.
13264 * config/bfin/linux.h (MD_UNWIND_SUPPORT): Remove.
13265 * config/bfin/uclinux.h (MD_UNWIND_SUPPORT): Remove.
13266 * config/i386/linux.h (MD_UNWIND_SUPPORT): Remove.
13267 * config/i386/linux64.h (MD_UNWIND_SUPPORT): Remove.
13268 * config/i386/sol2.h (MD_UNWIND_SUPPORT): Remove.
13269 * config/i386/mingw32.h (MD_UNWIND_SUPPORT): Remove.
13270 * config/ia64/linux.h (MD_UNWIND_SUPPORT): Remove.
13271 * config/ia64/vms.h (MD_UNWIND_SUPPORT): Remove.
13272 * config/m68k/linux.h (MD_UNWIND_SUPPORT): Remove.
13273 * config/mips/linux.h (MD_UNWIND_SUPPORT): Remove.
13274 * config/pa/pa-hpux.h (MD_UNWIND_SUPPORT): Remove.
13275 * config/pa/pa32-linux.h (MD_UNWIND_SUPPORT): Remove.
13276 * config/rs6000/darwin.h (MD_UNWIND_SUPPORT): Remove.
13277 * config/rs6000/linux.h (MD_UNWIND_SUPPORT): Remove.
13278 * config/rs6000/linux64.h (MD_UNWIND_SUPPORT): Remove.
13279 * config/s390/linux.h (MD_UNWIND_SUPPORT): Remove.
13280 * config/s390/tpf.h (MD_UNWIND_SUPPORT): Remove.
13281 * config/sh/linux.h (MD_UNWIND_SUPPORT): Remove.
13282 * config/sparc/linux.h (MD_UNWIND_SUPPORT): Remove.
13283 * config/sparc/linux64.h (MD_UNWIND_SUPPORT): Remove.
13284 * config/sparc/sol2.h (MD_UNWIND_SUPPORT): Remove.
13285 * config/xtensa/linux.h (MD_UNWIND_SUPPORT): Remove.
13286 * config/alpha/linux-unwind.h: Move to ../libgcc/config/alpha.
13287 * config/alpha/osf5-unwind.h: Move to ../libgcc/config/alpha.
13288 * config/alpha/vms-unwind.h: Move to ../libgcc/config/alpha.
13289 * config/bfin/linux-unwind.h: Move to ../libgcc/config/bfin.
13290 * config/i386/linux-unwind.h: Move to ../libgcc/config/i386.
13291 * config/i386/sol2-unwind.h: Move to ../libgcc/config/i386.
13292 * config/i386/w32-unwind.h: Move to ../libgcc/config/i386.
13293 * config/ia64/linux-unwind.h: Move to ../libgcc/config/ia64.
13294 * config/ia64/vms-unwind.h: Move to ../libgcc/config/ia64.
13295 * config/m68k/linux-unwind.h: Move to ../libgcc/config/m68k.
13296 * config/mips/linux-unwind.h: Move to ../libgcc/config/mips.
13297 * config/pa/hpux-unwind.h: Move to ../libgcc/config/pa.
13298 * config/pa/linux-unwind.h: Move to ../libgcc/config/pa.
13299 * config/rs6000/darwin-unwind.h: Move to ../libgcc/config/rs6000.
13300 * config/rs6000/linux-unwind.h: Move to ../libgcc/config/rs6000.
13301 * config/s390/linux-unwind.h: Move to ../libgcc/config/s390.
13302 * config/s390/tpf-unwind.h: Move to ../libgcc/config/s390.
13303 * config/sh/linux-unwind.h: Move to ../libgcc/config/sh.
13304 * config/sparc/linux-unwind.h: Move to ../libgcc/config/sparc.
13305 * config/sparc/sol2-unwind.h: Move to ../libgcc/config/sparc.
13306 * config/xtensa/linux-unwind.h: Move to ../libgcc/config/xtensa.
13307 * config/darwin9.h (DARWIN_LIBSYSTEM_HAS_UNWIND): Remove.
13308 * system.h (MD_UNWIND_SUPPORT): Poison.
13309 * doc/tm.texi.in (Exception Handling, MD_UNWIND_SUPPORT): Remove.
13310 * doc/tm.texi: Regenerate.
13311 * unwind-dw2.c: Include md-unwind-support.h instead of
13313 * config/ia64/unwind-ia64.c: Likewise.
13314 * config/xtensa/unwind-dw2-xtensa.c: Likewise.
13316 2011-06-03 Jack Howarth <howarth@bromo.med.uc.edu>
13318 * varpool.c (varpool_extra_name_alias): Return NULL, not false.
13320 2011-06-03 Richard Henderson <rth@redhat.com>
13321 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13323 * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]
13324 (sigill_hdlr): Correct insn, insn size.
13325 (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Use movaps.
13327 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13329 * config.gcc (mips-sgi-irix6.5*): Set tmake_file to mips/t-irix6
13331 * config/mips/irix-crti.asm: Move to ../libgcc/config/mips/irix-crti.S.
13332 * config/mips/irix-crtn.asm: Move to ../libgcc/config/mips/irix-crtn.S.
13333 * config/mips/t-iris: Remove.
13334 * config/mips/t-irix6: New file.
13335 * config/mips/t-slibgcc-irix: Move to ../libgcc/config/mips.
13337 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13339 * Makefile.in (LIB2ADDEHDEP): Remove.
13340 * config/arm/t-bpabi (LIB2ADDEHDEP): Remove.
13341 * config/arm/t-symbian (LIB2ADDEHDEP): Remove.
13342 * config/picochip/t-picochip (LIB2ADDEHDEP): Remove.
13343 * config/t-darwin (LIB2ADDEHDEP): Remove.
13344 * config/t-freebsd (LIB2ADDEHDEP): Remove.
13345 * config/t-linux (LIB2ADDEHDEP): Remove.
13347 2011-06-03 Diego Novillo <dnovillo@google.com>
13349 * lto-streamer-in.c (get_resolution): Move to lto/lto.c.
13350 (lto_register_var_decl_in_symtab): Likewise.
13351 (lto_register_function_decl_in_symtab): Likewise.
13352 (lto_read_tree): Move VAR_DECL and FUNCTION_DECL registration
13353 logic to uniquify_nodes.
13355 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13357 * config/alpha/t-osf5: Remove.
13358 * config/alpha/t-osf-pthread: Remove.
13359 * config.gcc (alpha*-dec-osf5.1*): Set tmake_file to t-slibgcc-dummy.
13360 * mkmap-flat.awk: Handle osf_export for Tru64 UNIX linker -input file.
13362 2011-06-03 Julian Brown <julian@codesourcery.com>
13364 * config/arm/arm-cores.def (strongarm, strongarm110, strongarm1100)
13365 (strongarm1110): Use strongarm tuning.
13366 * config/arm/arm-protos.h (tune_params): Add max_insns_skipped field.
13367 * config/arm/arm.c (arm_strongarm_tune): New.
13368 (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
13369 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a5_tune)
13370 (arm_cortex_a9_tune, arm_fa726te_tune): Add max_insns_skipped field
13371 setting, using previous defaults or 1 for Cortex-A5.
13372 (arm_option_override): Set max_insns_skipped from current tuning.
13374 2011-06-03 Nathan Sidwell <nathan@codesourcery.com>
13376 * doc/install.texi (Options specification): Document --with-specs.
13378 2011-06-02 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
13380 * config/arm/neon.md (orndi3_neon): Actually split it.
13382 2011-06-02 Alexandre Oliva <aoliva@redhat.com>
13384 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): Bump default to 10.
13385 * var-tracking.c (reverse_op): Limite recurse depth to 5.
13387 2011-06-02 Alexandre Oliva <aoliva@redhat.com>
13390 * target.def (delay_sched2, delay_vartrack): New.
13391 * doc/tm.texi.in: Update.
13392 * doc/tm.texi: Rebuild.
13393 * sched-rgn.c (gate_handle_sched2): Fail if delay_sched2.
13394 * var-tracking.c (gate_handle_var_tracking): Likewise.
13395 * config/bfin/bfin.c (bfin_flag_schedule_insns2): Drop.
13396 (bfin_flag_var_tracking): Drop.
13397 (output_file_start): Don't save and override flag_var_tracking.
13398 (bfin_option_override): Ditto flag_schedule_insns_after_reload.
13399 (bfin_reorg): Test original variables.
13400 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
13401 * config/ia64/ia64.c (ia64_flag_schedule_insns2): Drop.
13402 (ia64_flag_var_tracking): Drop.
13403 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
13404 (ia64_file_start): Don't save and override flag_var_tracking.
13405 (ia64_override_options_after_change): Ditto
13406 flag_schedule_insns_after_reload.
13407 (ia64_reorg): Test original variables.
13408 * config/picochip/picochip.c (picochip_flag_schedule_insns2): Drop.
13409 (picochip_flag_var_tracking): Drop.
13410 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
13411 (picochip_option_override): Don't save and override
13412 flag_schedule_insns_after_reload.
13413 (picochip_asm_file_start): Ditto flag_var_tracking.
13414 (picochip_reorg): Test original variables.
13415 * config/spu/spu.c (spu_flag_var_tracking): Drop.
13416 (TARGET_DELAY_VARTRACK): Define.
13417 (spu_var_tracking): New.
13418 (spu_machine_dependent_reorg): Call it.
13419 (asm_file_start): Don't save and override flag_var_tracking.
13421 2011-06-02 Kaz Kojima <kkojima@gcc.gnu.org>
13424 * config/sh/predicates.md (general_movsrc_operand): Return 0
13425 for memory and memory subreg of which address is an invalid
13426 indexed address for QI and HImode.
13427 (general_movdst_operand): Likewise.
13429 2011-06-02 Eric Botcazou <ebotcazou@adacore.com>
13431 * cse.c (cse_find_path): Refine change to exclude EDGE_ABNORMAL_CALL
13432 edges only, when there is a non-local label in the function.
13433 * postreload-gcse.c (bb_has_well_behaved_predecessors): Likewise.
13435 2011-06-02 Uros Bizjak <ubizjak@gmail.com>
13437 * config/i386/constraints.md (Y3): New register constraint.
13438 * config/i386/sse.md (*vec_interleave_highv2df): Merge with
13439 *sse3_interleave_highv2df and *sse2_interleave_highv2df.
13440 (*vec_interleave_lowv2df): Merge with *sse3_interleave_lowv2df and
13441 *sse2_interleave_lowv2df.
13443 2011-06-02 Julian Brown <julian@codesourcery.com>
13445 * config/arm/arm-cores.def (cortex-a5): Use cortex_a5 tuning.
13446 * config/arm/arm.c (arm_cortex_a5_branch_cost): New.
13447 (arm_cortex_a5_tune): New.
13449 2011-06-02 Julian Brown <julian@codesourcery.com>
13451 * config/arm/arm-protos.h (tune_params): Add branch_cost hook.
13452 * config/arm/arm.c (arm_default_branch_cost): New.
13453 (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
13454 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a9_tune)
13455 (arm_fa726_tune): Set branch_cost field using
13456 arm_default_branch_cost.
13457 * config/arm/arm.h (BRANCH_COST): Use branch_cost hook from
13458 current_tune structure.
13459 * dojump.c (tm_p.h): Include file.
13461 2011-06-02 Julian Brown <julian@codesourcery.com>
13463 * config/arm/arm-cores.def (arm1156t2-s, arm1156t2f-s): Use v6t2
13465 (cortex-a5, cortex-a8, cortex-a15, cortex-r4, cortex-r4f, cortex-m4)
13466 (cortex-m3, cortex-m1, cortex-m0): Use cortex tuning.
13467 * config/arm/arm-protos.h (tune_params): Add prefer_constant_pool
13469 * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune)
13470 (arm_xscale_tune, arm_9e_tune, arm_cortex_a9_tune)
13471 (arm_fa726te_tune): Add prefer_constant_pool setting.
13472 (arm_v6t2_tune, arm_cortex_tune): New.
13473 * config/arm/arm.h (TARGET_USE_MOVT): Make dependent on
13474 prefer_constant_pool setting.
13476 2011-06-02 Uros Bizjak <ubizjak@gmail.com>
13478 * config/i386/i386.c (standard_sse_constant_p) <case 1>: Simplify
13480 * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>: Ditto.
13481 (*movdf_internal) <case 6,7,8>: Ditto.
13483 * config/i386/constraints.md (Y4): New register constraint.
13484 * config/i386/sse.md (vec_set<mode>_0): Merge with
13485 *vec_set<mode>_0_sse4_1 and *vec_set<mode>_0_sse2.
13486 (*vec_extractv2di_1): Merge from *vec_extractv2di_1_sse2 and
13487 *vec_extractv2di_1_sse.
13488 (*vec_concatv2di_rex64): Merge from *vec_concatv2di_rex64_sse4_1
13489 and *vec_concatv2di_rex64_sse.
13491 2011-06-02 Stuart Henderson <shenders@gcc.gnu.org>
13494 * config/bfin/bfin.c (bfin_function_ok_for_sibcall): Check return value
13495 of cgraph_local_info for null before attempting to use it.
13497 2011-06-02 Eric Botcazou <ebotcazou@adacore.com>
13499 * function.h (struct stack_usage): Remove dynamic_alloc_count field.
13500 (current_function_dynamic_alloc_count): Delete.
13501 * builtins.c (expand_builtin_setjmp_setup): Do not set calls_setjmp.
13502 (expand_builtin_nonlocal_goto): Remove obsolete comment.
13503 (expand_builtin_update_setjmp_buf): Remove dead code.
13504 * cse.c (cse_find_path): Do not follow a single abnormal incoming edge.
13505 * explow.c (allocate_dynamic_stack_space): Remove SETJMP_VIA_SAVE_AREA
13507 * function.c (instantiate_virtual_regs): Likewise.
13508 * postreload-gcse.c (bb_has_well_behaved_predecessors): Return false
13509 for a block with a single abnormal incoming edge.
13510 * config/sparc/sparc.h (STACK_SAVEAREA_MODE): Define.
13511 (SETJMP_VIA_SAVE_AREA): Delete.
13512 * config/sparc/sparc-protos.h (load_got_register): Declare.
13513 * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Define.
13514 (load_got_register): Make global.
13515 (sparc_frame_pointer_required): Add 'static'.
13516 (sparc_can_eliminate): Likewise. Call sparc_frame_pointer_required.
13517 (sparc_builtin_setjmp_frame_value): New function.
13518 * config/sparc/sparc.md (UNSPECV_SETJMP): Remove.
13519 (save_stack_nonlocal): New expander.
13520 (restore_stack_nonlocal): Likewise.
13521 (nonlocal_goto): Remove modes, adjust predicates and reimplement.
13522 (nonlocal_goto_internal): New insn.
13523 (goto_handler_and_restore): Delete.
13524 (builtin_setjmp_setup): Likewise.
13525 (do_builtin_setjmp_setup): Likewise.
13526 (setjmp): Likewise.
13527 (builtin_setjmp_receiver): New expander.
13529 2011-06-01 David Li <davidxl@google.com>
13531 PR middle-end/49261
13532 * tree-pretty-print.c (dump_function_header): Format cleanup.
13534 2011-06-01 Kaz Kojima <kkojima@gcc.gnu.org>
13537 * config/sh/sh.c (expand_cbranchdi4): Use a scratch register if
13538 needed when original operands are used for msw_skip comparison.
13540 2011-06-01 Jakub Jelinek <jakub@redhat.com>
13543 * var-tracking.c (add_uses, add_stores): Don't call
13544 cselib_subst_to_values on ENTRY_VALUE.
13546 2011-06-01 Diego Novillo <dnovillo@google.com>
13548 * lto-streamer-out.c (lto_output_ts_decl_with_vis_tree_pointers): Call
13549 output_record_start with LTO_null instead of output_zero.
13550 (lto_output_ts_binfo_tree_pointers): Likewise.
13551 (lto_output_tree): Likewise.
13552 (output_eh_try_list): Likewise.
13553 (output_eh_region): Likewise.
13554 (output_eh_lp): Likewise.
13555 (output_eh_regions): Likewise.
13556 (output_bb): Likewise.
13557 (output_function): Likewise.
13558 (output_unreferenced_globals): Likewise.
13559 * lto-streamer.h (enum LTO_tags): Reserve MAX_TREE_CODES
13560 instead of NUM_TREE_CODES.
13561 (lto_tag_is_tree_code_p): Check max value against MAX_TREE_CODES.
13562 (lto_output_int_in_range): Change << to >> when shifting VAL.
13564 2011-06-01 Diego Novillo <dnovillo@google.com>
13566 * lto-streamer-out.c (lto_output_ts_decl_non_common_tree_pointers):
13567 Remove assertion for DECL_SAVED_TREE in FUNCTION_DECL nodes.
13569 2011-06-01 Richard Sandiford <rdsandiford@googlemail.com>
13572 * optabs.h (valid_multiword_target_p): Declare.
13573 * expmed.c (extract_bit_field_1): Check valid_multiword_target_p when
13574 doing multi-word operations.
13575 * optabs.c (expand_binop): Likewise.
13576 (expand_doubleword_bswap): Likewise.
13577 (expand_absneg_bit): Likewise.
13578 (expand_unop): Likewise.
13579 (expand_copysign_bit): Likewise.
13580 (multiword_target_p): New function.
13582 2011-06-01 Richard Sandiford <rdsandiford@googlemail.com>
13584 PR rtl-optimization/48830
13585 PR rtl-optimization/48808
13586 PR rtl-optimization/48792
13587 * reload.c (push_reload): Check contains_reg_of_mode.
13588 * reload1.c (strip_paradoxical_subreg): New function.
13589 (gen_reload_chain_without_interm_reg_p): Use it to handle
13590 paradoxical subregs.
13591 (emit_output_reload_insns, gen_reload): Likewise.
13593 2011-06-01 David Li <davidxl@google.com>
13595 * predict.c : Change pass name
13598 * tree-profile.c: Ditto.
13601 2011-06-01 David Li <davidxl@google.com>
13603 * tree-pretty-print.c (dump_function_header): New function.
13604 * final.c (rest_of_clean_state): Use header dumper.
13605 * tree-cfg.c (gimple_dump_cfg): Use header dumper.
13606 * passes.c (pass_init_dump_file): Use header dumper.
13608 2011-06-01 Jakub Jelinek <jakub@redhat.com>
13610 * dwarf2out.c (compare_loc_descriptor, scompare_loc_descriptor,
13611 ucompare_loc_descriptor, minmax_loc_descriptor, clz_loc_descriptor,
13612 popcount_loc_descriptor, bswap_loc_descriptor, rotate_loc_descriptor):
13614 (mem_loc_descriptor): Use them.
13616 * var-tracking.c (create_entry_value): New function.
13617 (vt_add_function_parameter): Use it.
13619 2011-06-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13621 * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]:
13622 Include <signal.h>, <ucontext.h>.
13623 (sigill_caught): Define.
13624 (sigill_hdlr): New function.
13625 (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Check if SSE
13626 insns can be executed.
13627 * config/sol2.h (ENDFILE_SPEC): Use crtfastmath.o if -ffast-math etc.
13628 * config/sparc/sol2.h (ENDFILE_SPEC): Remove.
13630 2011-06-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13632 * config/t-slibgcc-darwin: Move to ...
13633 * config/t-slibgcc-dummy: ... this. Clarify comments.
13634 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*,
13635 powerpc-*-darwin*, powerpc64-*-darwin*): Reflect this.
13636 (i[3456x]86-*-netware*): Add t-slibgcc-dummy to tmake_file.
13637 (i[34567]86-*-rtems*): Remove extra_parts. Use i386/t-rtems.
13638 Remove i386/t-crtstuff from tmake_file.
13639 (i[34567]86-*-solaris2*): Remove t-svr4,
13640 t-slibgcc-elf-ver, t-slibgcc-sld from tmake_file, add
13642 (sparc-*-elf*, sparc64-*-elf*): Remove tmake_file, extra_parts.
13643 (sparc-*-rtems*, sparc64-*-rtems*): Remove sparc/t-crtin,
13644 sparc/t-crtfm from tmake_file.
13645 (sparc*-*-solaris2*): Remove sparc/t-sol2, sparc/t-crtfm,
13646 t-slibgcc-elf-ver, t-slibgcc-sld, add t-slibgcc-dummy.
13647 Remove extra_parts.
13648 * config/t-sol2 (TARGET_LIBGCC2_CFLAGS): Define.
13649 * config/i386/t-nwld (SHLIB_LINK): Remove.
13650 * config/i386/t-rtems-i386: Rename to ...
13651 * config/i386/t-rtems: ... this.
13652 ($(T)crti.o, $(T)crtn.o): Remove.
13653 (FPBIT, DPBIT, LIB2FUNCS_EXTRA): Remove.
13654 (dp-bit.c, fp-bit.c, xp-bit.c): Remove.
13655 (EXTRA_MULTILIB_PARTS, LIBGCC, INSTALL_LIBGCC): Remove.
13656 * config/i386/t-sol2-10 (LIBGCC, INSTALL_LIBGCC,
13657 EXTRA_MULTILIB_PARTS): Remove.
13658 * config/sparc/t-sol2-64: Likewise.
13659 * config/sparc/t-sol2: Remove.
13660 * config/sparc/t-crtin: Remove.
13661 * config/sparc/gmon-sol2.c: Move to ../libgcc/config.
13662 * config/i386/gmon-sol2.c: Remove.
13663 * config/i386/sol2-c1.asm: Move to ../libgcc/config/i386/sol2-c1.S.
13664 * config/i386/sol2-ci.asm: Move to ../libgcc/config/i386/sol2-ci.S.
13665 * config/i386/sol2-cn.asm: Move to ../libgcc/config/i386/sol2-cn.S.
13666 * config/i386/sol2-gc1.asm: Remove.
13667 * config/sparc/sol2-c1.asm: Move to ../libgcc/config/sparc/sol2-c1.S.
13668 * config/sparc/sol2-ci.asm: Move to ../libgcc/config/sparc/sol2-ci.S.
13669 * config/sparc/sol2-cn.asm: Move to ../libgcc/config/sparc/sol2-cn.S.
13670 * config/t-slibgcc-sld: Remove.
13672 2011-06-01 Jakub Jelinek <jakub@redhat.com>
13674 * dwarf2out.c (mem_loc_descriptor) <do_ucompare>: Call
13675 base_type_for_mode with op_mode instead of mode.
13677 2011-06-01 Paul Brook <paul@cpodesourcery.com>
13679 * config/arm/arm-cores.def: Add cortex-r5. Add DIV flags to
13681 * config/arm/arm-tune.md: Regenerate.
13682 * config/arm/arm-tables.opt: Regenerate.
13683 * config/arm/arm.c (FL_DIV): Rename...
13684 (FL_THUMB_DIV): ... to this.
13685 (FL_ARM_DIV): Define.
13686 (FL_FOR_ARCH7R, FL_FOR_ARCH7M): Use FL_THUMB_DIV.
13687 (arm_arch_hwdiv): Remove.
13688 (arm_arch_thumb_hwdiv, arm_arch_arm_hwdiv): New variables.
13689 (arm_issue_rate): Add cortexr5.
13690 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Set
13691 __ARM_ARCH_EXT_IDIV__.
13692 (TARGET_IDIV): Define.
13693 (arm_arch_hwdiv): Remove.
13694 (arm_arch_arm_hwdiv, arm_arch_thumb_hwdiv): New prototypes.
13695 * config/arm/arm.md (tune_cortexr4): Add cortexr5.
13696 (divsi3, udivsi3): New patterns.
13697 * config/arm/thumb2.md (divsi3, udivsi3): Remove.
13698 * doc/invoke.texi: Document ARM -mcpu=cortex-r5
13700 2011-06-01 Martin Jambor <mjambor@suse.cz>
13702 * ipa-utils.c (ipa_dfs_info): New field scc_no.
13703 * ipa-utils.c (searchc): Set scc_no.
13705 2011-06-01 Martin Jambor <mjambor@suse.cz>
13707 * ipa-utils.c (searchc_env): New field allow_overwritable.
13708 (searchc): do not ignore edges to overwritable nodes if indicated
13709 by env->allow_overwritable.
13710 (ipa_reduced_postorder): Set env.allow_overwritable.
13712 2011-06-01 Richard Guenther <rguenther@suse.de>
13714 * tree.c (free_lang_data): Do not reset boolean_type_node nor
13716 * lto-streamer.c (lto_record_common_node): Take node pointer,
13717 do not register types.
13718 (lto_preload_common_nodes): Explicitly skip preloading nodes
13719 that differ between frontends.
13721 2011-05-31 Pat Haugen <pthaugen@us.ibm.com>
13723 * config/rs6000/rs6000.h (REG_CLASS_CONTENTS): Remove vr0..vr2 from
13726 2011-05-31 Pat Haugen <pthaugen@us.ibm.com>
13728 * config/rs6000/rs6000.c (rs6000_register_move_cost): Preserve from
13729 parameter value for dump. Dump cost on outermost call only.
13730 (rs6000_memory_move_cost): Dump cost on outermost call only.
13732 2011-05-31 Jakub Jelinek <jakub@redhat.com>
13734 * dwarf2out.c (resolve_addr_in_expr): Optimize away redundant
13735 DW_OP_GNU_convert ops.
13737 * cselib.c (promote_debug_loc): Allow l->next non-NULL for
13738 cselib_preserve_constants.
13739 (cselib_lookup_1): If cselib_preserve_constants,
13740 a new VALUE is being created for REG and there is a VALUE for the
13741 same register in wider mode, add another loc with lowpart SUBREG of
13743 (cselib_subst_to_values): Handle ENTRY_VALUE.
13744 * var-tracking.c (replace_expr_with_values): Return NULL for
13746 * dwarf2out.c (convert_descriptor_to_signed): New function.
13747 (mem_loc_descriptor) <case ZERO_EXTEND>: Optimize using DW_OP_and
13748 instead of two shifts.
13749 (mem_loc_descriptor) <do_shift>: ZERO_EXTEND second argument to
13750 the right mode if needed.
13751 (mem_loc_descriptor) <case MOD>: For typed ops just use DW_OP_mod.
13752 (mem_loc_descriptor) <case UNSIGNED_FIX>: Use
13753 convert_descriptor_to_signed.
13754 (mem_loc_descriptor) <case UDIV, CLZ, CTZ, FFS, POPCOUNT, PARITY,
13755 BSWAP, ROTATE, ROTATERT>: Handle these rtls.
13758 * config/i386/i386.md (*lea_general_4): New define_insn_and_split.
13760 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
13762 * config/i386/i386.md: Use SWI248x instead of X87MODEI, SWI24 instead
13763 of X87MODEI12 and SWI48x instead of SSEMODEI24.
13764 (SWI248x): New mode iterator, rename from X87MODEI.
13765 (X87MODEI): Remove mode iterator.
13766 (X87MODEI12): Ditto.
13767 (SSEMODEI24): Ditto.
13769 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
13771 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): New.
13772 * doc/invoke.texi: Document max-vartrack-expr-depth.
13773 * var-tracking.c (EXPR_DEPTH): New.
13774 (reverse_op, vt_expand_loc, vt_expand_loc_dummy): Use it.
13776 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
13778 * config/i386/i386.c (ix86_rtx_costs): Drop NEG from sub for FMA.
13779 * config/i386/sse.md: Add n to negated FMA pattern names.
13781 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
13783 * gcc.c (driver_handle_option): Fix disabling of -fcompare-debug.
13785 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
13787 * gengtype-state.c (read_state_params_structs): Initialize previous.
13789 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
13791 * config/i386/i386.md (*pushxf_nointeger): Merge alternatives 1 and 2.
13792 (FP push_operand splitters): Merge {TF,XF,DF}mode splitters.
13794 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
13796 * config/i386/i386.md (*movtf_internal): Avoid allocating general
13797 registers. Penalize F*r->o alternative to prevent partial memory
13798 stalls. Slightly penalize *roF->*r alternative. Generate SSE
13799 CONST_DOUBLE immediates when optimizing function for size. Do not move
13800 CONST_DOUBLEs directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
13801 (*movxf_internal): Slightly penalize Yx*roF->Yx*r alternative.
13802 (*movdf_internal): Slightly penalize Yd*roF->Yd*r alternative.
13803 (*movdf_internal_rex64): Slightly penalize rm->r, F->m and r->m
13805 (*movsf_internal): Slightly penalize rmF->r and Fr->m alternatives.
13807 (fp_register_operand splitters): Use fp_register_operand
13808 constraint. Do not use FP_REG_P in insn condition.
13809 (any_fp_register_operand splitters): Use any_fp_register_operand
13810 constraint. Do not use ANY_FP_REG_P in insn condition.
13812 2011-05-31 Jan Hubicka <jh@suse.cz>
13814 * cgraph.h (cgraph_inline_failed_t): Give enum a name
13815 * lto-cgraph.c (LDPR_NUM_KNOWN): New macro.
13816 (LTO_cgraph_tags): Add LTO_cgraph_last_tag.
13817 (lto_output_edge): Use output_enum and var_len_unsigned.
13818 (lto_output_varpool_node): Likewise.
13819 (input_overwrite_node): Do not take resolution parameter;
13820 extract it from a bitpack.
13821 (input_node): Do not read resolution; use input_enum and
13823 (input_varpool_node): Likewise.
13824 (input_edge): Likewise.
13825 (input_cgraph_1): Likewise.
13827 2011-05-31 Richard Guenther <rguenther@suse.de>
13829 * gimple.c (gimple_register_canonical_type): Do not register
13830 any types via gimple_register_type.
13832 2011-05-31 Jan Hubicka <jh@suse.cz>
13834 * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Merge alias decl
13837 2011-05-31 Jakub Jelinek <jakub@redhat.com>
13839 PR rtl-optimization/49235
13840 * tree-ssa-address.c (gen_addr_rtx): Ignore base if it is const0_rtx.
13841 (create_mem_ref_raw): Create MEM_REF even if base is INTEGER_CST.
13843 2011-05-31 Ira Rosen <ira.rosen@linaro.org>
13845 PR tree-optimization/49093
13846 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail for volatile
13849 2011-05-31 Dodji Seketeli <dodji@redhat.com>
13852 * dwarf2out.c (gen_subprogram_die): Emit linkage name attribute
13853 for concrete functions containing the code of cloned functions.
13855 2011-05-31 Richard Guenther <rguenther@suse.de>
13857 * tree-ssa-forwprop.c (forward_propagate_into_comparison): Rename
13859 (forward_propagate_into_comparison_1): ... this.
13860 (forward_propagate_comparison): Rename to ...
13861 (forward_propagate_into_comparison): ... this. Split out
13862 real forward propagation code to ...
13863 (forward_propagate_comparison): ... this.
13864 (forward_propagate_into_gimple_cond): Remove looping.
13865 (forward_propagate_into_cond): Likewise.
13866 (simplify_not_neg_expr): Return whether we have done something.
13867 (simplify_gimple_switch): Likewise.
13868 (tree_ssa_forward_propagate_single_use_vars): Rename to ...
13869 (ssa_forward_propagate_and_combine): ... this. Re-structure
13870 to do a forward forward-propagation walk on BBs and a backward
13871 stmt combining walk on BBs. Consistently re-scan changed statements.
13872 (pass_forwprop): Adjust.
13874 2011-05-30 Ian Lance Taylor <iant@google.com>
13876 * godump.c (go_format_type): Correct length of name added to
13877 obstack for anonymous field.
13879 2011-05-30 Kaz Kojima <kkojima@gcc.gnu.org>
13882 * config/sh/sh.c (expand_cbranchdi4): Set msw_skip when the high
13883 part of the second operand is 0.
13885 2011-05-30 Uros Bizjak <ubizjak@gmail.com>
13887 * config/i386/i386.md (*movxf_internal): Penalize FYx*r->o alternative
13888 to prevent partial memory stalls. Do not move CONST_DOUBLEs directly
13889 to memory for !TARGET_MEMORY_MISMATCH_STALL.
13890 (*movdf_internal_rex64): Do not penalize F->r alternative.
13891 (*movdf_internal): Penalize FYd*r->o alternative to prevent partial
13892 memory stalls. Generate SSE and x87 CONST_DOUBLE immediates only
13893 when optimizing function for size. Do not move CONST_DOUBLEs
13894 directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
13895 (FP move splitters): Merge {TF,XF,DF}mode splitters. Do not handle
13896 SUBREGs. Do not check for MEM_P operands in the insn condition,
13897 check for ANY_FP_REGNO_P instead.
13898 * config/i386/constraints.md (Yd): Enable GENERAL_REGS for
13899 TARGET_64BIT and for TARGET_INTEGER_DFMODE_MOVES when optimizing
13900 function for speed.
13901 * config/i386/i386.c (ix86_option_override_internal): Do not
13902 set TARGET_INTEGER_DFMODE_MOVES here.
13904 2011-05-30 H.J. Lu <hongjiu.lu@intel.com>
13907 * config/i386/i386.md (*movtf_internal): Handle misaligned load/store.
13909 2011-05-30 Jakub Jelinek <jakub@redhat.com>
13911 * dwarf2out.c (modified_type_die, gen_reference_type_die): Use
13912 DW_TAG_rvalue_reference_type even for
13913 -gdwarf-4 -fno-debug-types-section.
13915 2011-05-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13917 PR tree-optimization/46728
13918 * tree-ssa-math-opts.c (build_and_insert_call): Reorder parms.
13919 (build_and_insert_binop): New.
13920 (gimple_expand_builtin_pow): Reorder args for
13921 build_and_insert_call; use build_and_insert_binop; add more
13922 optimizations for fractional exponents.
13924 2011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
13929 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
13931 * tree.h (struct tree_identifier): Inherit from tree_typed, not
13933 (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
13934 * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
13935 TS_BASE instead of TS_COMMON.
13936 * varasm.c (assemble_name): Remove assert.
13938 2011-05-30 Richard Sandiford <rdsandiford@googlemail.com>
13940 * config.gcc: Keep obselete list sorted.
13942 2011-05-30 Jakub Jelinek <jakub@redhat.com>
13943 Eric Botcazou <ebotcazou@adacore.com>
13945 * var-tracking.c (vt_add_function_parameter): Remap incoming MEMs with
13946 crtl->args.internal_arg_pointer based address to arg_pointer_rtx if
13947 there is a DRAP register and arg_pointer_rtx is the CFA pointer.
13948 (vt_init_cfa_base): Don't equate cfa_base_rtx if stack was realigned.
13949 (vt_initialize): Initialize cfa_base_rtx if there is a DRAP register.
13951 2011-05-30 Richard Guenther <rguenther@suse.de>
13953 * gimple.c (gimple_types_compatible_p_1): Compare record
13954 and union type members properly.
13956 2011-05-30 Richard Guenther <rguenther@suse.de>
13958 PR tree-optimization/49210
13959 * ipa-split.c (split_function): Care for the case where the call
13960 result is not trivially convertible to the result holding variable.
13962 2011-05-30 Richard Guenther <rguenther@suse.de>
13964 PR tree-optimization/49218
13965 * tree-vrp.c (adjust_range_with_scev): Properly check whether
13968 2011-05-30 Richard Guenther <rguenther@suse.de>
13970 * tree-ssa-forwprop.c (forward_propagate_into_comparison):
13971 New function split out from ...
13972 (forward_propagate_into_gimple_cond): ... here. Adjust.
13973 (forward_propagate_into_cond): Likewise.
13974 (forward_propagate_comparison): Also propagate into
13975 comparisons on assignment RHS. Change return value to
13976 behave similar to forward_propagate_into_cond.
13977 (tree_ssa_forward_propagate_single_use_vars): Handle
13978 strict-overflow warnings properly for forward_propagate_comparison.
13980 2011-05-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13982 * configure.ac (gcc_cv_lto_plugin): Determine lto plugin support
13983 from plugin linker.
13984 * configure: Regenerate.
13986 2011-05-30 Ira Rosen <ira.rosen@linaro.org>
13988 PR tree-optimization/49199
13989 * tree-vect-loop.c (vect_is_slp_reduction): Check that the
13990 non-reduction operands are either defined in the loop or by induction.
13992 2011-05-29 Xinliang David Li <davidxl@google.com>
13994 * opts-global.c (handle_common_deferred_options): Handle new options.
13995 * passes.c (register_one_dump_file): Call register_pass_name.
13996 (execute_one_pass): Check explicit enable/disable flag.
13997 (passr_hash): New function.
13999 (register_pass_name): Ditto.
14000 (get_pass_by_name): Ditto.
14001 (pass_hash): Ditto.
14003 (enable_pass): Ditto.
14004 (disable_pass): Ditto.
14005 (is_pass_explicitly_enabled_or_disabled): Ditto.
14007 2011-05-29 Uros Bizjak <ubizjak@gmail.com>
14009 * config/i386/i386.md (*movoi_internal_avx): Use
14010 standard_sse_constant_opcode for alternative 0.
14011 (*movti_internal_sse): Ditto.
14012 (*movti_internal_rex64): Use standard_sse_constant_opcode for
14014 (*movdi_internal_rex64): Use standard_sse_constant_opcode for
14015 sselog1 type moves.
14016 (*movsi_internal): Ditto.
14017 (*movdi_internal): Ditto. Add ssecvt type moves.
14019 2011-05-29 Eric Botcazou <ebotcazou@adacore.com>
14022 * rtlanal.c (simplify_subreg_regno): Adjust comment.
14024 2011-05-29 Jakub Jelinek <jakub@redhat.com>
14026 PR rtl-optimization/49095
14027 * config/i386/predicates.md (plusminuslogic_operator): New predicate.
14028 * config/i386/i386.md: Add peepholes for mem {+,-,&,|,^}= x; mem != 0.
14030 2011-05-29 Richard Sandiford <rdsandiford@googlemail.com>
14033 * config/mips/mips.c (mips_pic_call_symbol_from_set): Add a
14034 recurse_p argument. Only follow register copies if it is set,
14035 and prevent mips_find_pic_call_symbol from recursing.
14036 (mips_find_pic_call_symbol): Add a recurse_p argument.
14037 Pass it to mips_pic_call_symbol_from_set.
14038 (mips_annotate_pic_calls): Update accordingly.
14040 2011-05-29 Richard Sandiford <rdsandiford@googlemail.com>
14042 * emit-rtl.c (try_split): Use a loop to search for
14043 NOTE_INSN_CALL_ARG_LOCATIONs.
14045 2011-05-29 Richard Guenther <rguenther@suse.de>
14047 PR tree-optimization/49217
14048 * ipa-pure-const.c (propagate_pure_const): Fix typos.
14050 2011-05-28 Jan Hubicka <jh@suse.cz>
14052 * lto-streamer-out.c (hash_string_slot_node): Hash string based on its
14054 (string_slot_free): Remove
14055 (create_output_block): Initialize obstack.
14056 (destroy_output_block): Free obstack.
14057 (lto_string_index): Add PERSISTENT parameter; do not duplicate
14058 the string unless it needs to be added into the hash.
14059 (lto_output_string_with_length): Add persistent attribute;
14060 handle NULL strings.
14061 (lto_output_string): Add PERSISTENT parameter.
14062 (output_string_cst, output_identifier): Simplify.
14063 (lto_output_location_bitpack): Update.
14064 (lto_output_builtin_tree): Update.
14065 * lto-streamer.h (struct output_block): Add obstack.
14066 (lto_output_string, lto_output_string_with_length): Remove
14067 declarations; functions are static now.
14069 2011-05-28 Jan Hubicka <jh@suse.cz>
14071 * lto-streamer-out.c (pack_ts_fixed_cst_value_fields,
14072 pack_ts_decl_common_value_fields, pack_ts_decl_with_vis_value_fields,
14073 pack_ts_function_decl_value_fields, lto_output_builtin_tree,
14074 output_cfg, output_gimple_stmt): Use enum and variable length i/o.
14075 * lto-streamer-in.c (input_cfg, input_gimple_stmt,
14076 unpack_ts_fixed_cst_value_fields, unpack_ts_decl_common_value_fields,
14077 unpack_ts_decl_with_vis_value_fields,
14078 unpack_ts_type_common_value_fields, unpack_ts_block_value_fields,
14079 lto_get_builtin_tree): Use enum and variable length i/o.
14080 * basic-block.h (profile_status_d): Add PROFILE_LAST.
14081 * lto-streamer.h (bp_pack_int_in_range, bp_unpack_int_in_range):
14083 (bp_pack_enum, bp_unpack_enum): New macros.
14085 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
14087 * genrecog.c: Remove redundant forward declarations.
14089 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
14091 * config.gcc: Deprecate mips*-*-openbsd*.
14093 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
14096 * genrecog.c (add_to_sequence): Use XEXP rather than XVECEXP
14099 2011-05-27 Andrew Pinski <pinskia@gmail.com>
14101 PR middle-end/48981
14102 * gengtype.c (vec_prefix_type): New function.
14103 (note_def_vec): Use vec_prefix_type and change the length
14104 attribute to be based on the prefix.
14105 * vec.c: Include coretypes.h before vec.h.
14106 (struct vec_prefix): Remove.
14107 (vec_gc_p_reserve): Change the offsetof to sizeof.
14108 (vec_gc_p_reserve_exact): Likewise.
14109 (vec_heap_p_reserve): Likewise.
14110 (vec_heap_p_reserve_exact): Likewise.
14111 (vec_stack_o_reserve_1): Copy from +1 instead of from vec.
14112 (vec_stack_p_reserve): Change the offsetof to sizeof.
14113 (vec_stack_p_reserve_exact): Likewise.
14114 * vec.h (struct vec_prefix): New struct definition.
14115 (VEC_T(T,B)): Use vec_prefix instead of having num/alloc fields.
14116 (VEC_T_GTY(T,B)): Likewise.
14117 (DEF_VEC_FUNC_P(T)): Use prefix field.
14118 (DEF_VEC_NONALLOC_FUNCS_O(T,A)): Likewise.
14119 (DEF_VEC_NONALLOC_FUNCS_I(T,A)): Likewise.
14121 2011-05-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14123 PR tree-optimization/46728
14124 * tree-ssa-math-opts.c (powi_as_mults_1): Add gimple_set_location.
14125 (powi_as_mults): Add gimple_set_location.
14126 (build_and_insert_call): New.
14127 (gimple_expand_builtin_pow): Add handling for pow(x,y) when y is
14128 0.5, 0.25, 0.75, 1./3., or 1./6.
14130 2011-05-27 Alexander Monakov <amonakov@ispras.ru>
14132 * doc/contrib.texi: Update copyright years.
14133 (Contributors): Add Zdenek Sojka.
14135 2011-05-27 Nathan Froyd <froydnj@codesourcery.com>
14137 * c-decl.c (c_push_function_context): Copy the current statement
14139 (add_stmt): Check building_stmt_list_p and push_stmt if necessary.
14140 (finish_struct): Call building_stmt_list_p instead of checking
14142 * c-parser.c (c_parser_postfix_expression): Likewise.
14143 * c-typeck.c (c_end_compound_stmt): Likewise.
14144 * print-tree.c (print_node) [STATEMENT_LIST]: Don't print TREE_CHAIN.
14145 * tree-iterator.c (stmt_list_cache): Change to a VEC.
14146 (alloc_stmt_list): Adjust for stmt_list_cache's new type.
14147 (free_stmt_list): Likewise.
14148 * tree.h (struct tree_statement_list): Include typed_tree instead
14150 * tree.c (initialize_tree_contains_struct): Mark TS_STATEMENT_LIST
14151 as TS_TYPED instead of TS_COMMON.
14153 2011-05-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14154 Uros Bizjak <ubizjak@gmail.com>
14156 * configure.ac (gcc_cv_as_ix86_tlsgdplt): Check for @tlsgdplt
14157 (HAVE_AS_IX86_TLSGDPTL): Define.
14158 (gcc_cv_as_ix86_tlsldmplt): Check for @tlsldmplt.
14159 (HAVE_AS_IX86_TLSLDMPLT): Define.
14160 * configure: Regenerate.
14161 * config.in: Regenerate.
14162 * config/i386/i386.c (ix86_print_operand): Handle code 'p'.
14163 * config/i386/i386.md (*tls_global_dynamic_32_gnu): If
14164 TARGET_SUN_TLS, use @tlsgdplt or @plt.
14165 (*tls_global_dynamic_64): Use @plt if TARGET_SUN_TLS.
14166 (*tls_local_dynamic_base_32_gnu): If TARGET_SUN_TLS, use
14167 @tlsldmplt or @plt.
14168 (*tls_local_dynamic_base_64): Use @plt if TARGET_SUN_TLS.
14170 2011-05-27 Bernd Schmidt <bernds@codesourcery.com>
14172 * sched-int.h (struct _haifa_deps_insn_data): New members cond
14174 (INSN_COND, INSN_REVERSE_COND): New macros.
14175 * sched-deps.c (deps_analyze_insn): Call sched_get_condition_with_rev
14177 (sched_get_condition_with_rev): Cache the results, and look them up
14179 (sched_analyze_insn): Destroy INSN_COND of previous insns if they
14180 are clobbered by the current insn.
14181 * target.def (exposed_pipline): New sched data hook.
14182 * doc/tm.texi.in: TARGET_SCHED_EXPOSED_PIPELINE: Add hook.
14183 * doc/tm.texi: Regenerate.
14185 2011-05-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14187 PR tree-optimization/49170
14188 * tree-ssa-math-opts.c (execute_cse_sincos): Add checks for
14191 2011-05-27 Richard Guenther <rguenther@suse.de>
14193 PR middle-end/49189
14194 * fold-const.c (fold_unary_loc): Do not re-fold folding conversions
14197 2011-05-27 Bernd Schmidt <bernds@codesourcery.com>
14199 * haifa-sched.c (sched_scan_info): Remove.
14200 (schedule_block): Call sched_extend_luids rather than sched_init_luids
14202 (extend_bb, init_bb, extend_insn, init_insn, init_insns_in_bb):
14204 (sched_scan): Remove.
14205 (sched_extend_luids): Renamed from luids_extend_insn and no longer
14206 static. All callers changed.
14207 (sched_init_insn_luid): Renamed from luids_init_insn and no longer
14208 static. All callers changed.
14209 (sched_init_luids): Remove all arguments except the first. All
14210 callers changed. Don't use sched_scan.
14211 (haifa_init_h_i_d): Likewise.
14212 (haifa_init_insn): Call sched_extend_luids and sched_init_insn_luid
14213 manually rather than using sched_init_luids. Likewise with
14214 extend_h_i_d, init_h_i_d and haifa_init_h_i_d.
14215 * sel-sched.c (sel_region_target_finish): Call sched_extend_luids
14216 rather than sched_init_luids with NULL args.
14217 * sel-sched-ir.c (new_insns): Remove variable.
14218 (sched_scan): New static function, previously in haifa-sched.c. Remove
14219 all arguments but the first two; all callers changed.
14220 (sel_init_new_insn): Call sched_extend_luids and sched_init_insn_luid
14221 rather than sched_init_luids.
14222 (sel_init_bbs): Remove second argument. All callers changed.
14223 (sel_add_bb): Call sched_extend_luids rather than sched_init_luids
14224 with NULL arguments.
14225 (create_insn_rtx_from_pattern): Likewise.
14226 * sel-sched-ir.h (sel_init_bbs): Adjust declaration.
14227 * sched-int.h (sched_init_luids, haifa_init_h_i_d): Likewise.
14228 (sched_init_insn_luid, sched_extend_luids): Declare.
14229 (sched_scan_info_def, sched_scan_info, sched_scan): Remove
14232 2011-05-27 Richard Guenther <rguenther@suse.de>
14234 PR middle-end/49177
14235 * fold-const.c (fold_unary_loc): Fold (T)(A CMP B) to
14236 A CMP B ? (T) true : (T) false for non-integral types T again.
14238 2011-05-27 Jan Hubicka <jh@suse.cz>
14240 * lto-streamer-out.c (lto_string_index): break out from...; offset by 1
14241 so 0 means NULL string.
14242 (lto_output_string_with_length): ... here.
14243 (lto_output_string, output_string_cst, output_identifier): Update
14244 handling of NULL strings.
14245 (lto_output_location_bitpack): New function.
14246 (lto_output_location): Use it.
14247 (lto_output_tree_ref): Use output_record_start.
14248 (pack_ts_type_common_value_fields): Pack aliagn & alias set in var
14250 * lto-streamer-in.c (string_for_index): Break out from ...; offset
14252 (input_string_internal): ... here;
14253 (input_string_cst, input_identifier, lto_input_string): Update handling
14255 (lto_input_location_bitpack): New function
14256 (lto_input_location): Use it.
14257 (unpack_ts_type_common_value_fields): Pack align & alias in var len
14259 * lto-streamer.h (bp_pack_val_len_unsigned, bp_pack_val_len_int,
14260 bp_unpack_val_len_unsigned, bp_unpack_val_len_int): Declare.
14261 (bp_pack_value): Sanity check the value range.
14262 * lto-section-in.c (bp_unpack_val_len_unsigned, bp_unpack_val_len_int):
14264 * lto-section-out.h (bp_pack_val_len_unsigned, bp_pack_val_len_int):
14267 2011-05-27 Hariharan Sandanagobalane <hariharan@picochip.com>
14269 * config/picochip/picochip.c (reorder_var_tracking_notes): Drop
14270 call_arg_location instructions down the floor.
14272 2011-05-26 Vladimir Makarov <vmakarov@redhat.com>
14274 PR rtl-optimization/49154
14275 * ira.c (setup_pressure_classes): Process class without sublcasses
14276 as a candidate for pressure classes.
14278 2011-05-26 Richard Sandiford <rdsandiford@googlemail.com>
14280 PR rtl-optimization/48575
14281 * genrecog.c (position_type): New enum.
14282 (position): New structure.
14283 (decision): Use position structure instead of a string.
14284 (root_pos, peep2_insn_pos_list): New variables.
14285 (next_position, compare_positions): New functions.
14286 (new_decision): Use position structures instead of strings.
14287 (maybe_both_true): Likewise.
14288 (change_state): Likewise.
14289 (write_tree): Likewise.
14290 (make_insn_sequence): Likewise.
14292 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
14294 * tree.c (initialize_tree_contains_struct): Mark TS_BLOCK as
14295 TS_BASE instead of TS_COMMON.
14296 (find_decls_types_r): Check for TS_TYPED structure before looking at
14298 * tree.h (struct tree_block): Inherit from tree_base, not tree_common.
14300 (BLOCK_CHAIN): Use new chain field.
14302 2011-05-26 Pat Haugen <pthaugen@us.ibm.com>
14304 * config/rs6000/rs6000.c (rs6000_register_move_cost): Make LR/CTR
14305 moves expensive on Power7 also.
14307 2011-05-26 Richard Guenther <rguenther@suse.de>
14309 * fold-const.c (fold_unary_loc): Remove bogus code.
14311 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
14313 * tree.h (struct tree_identifier): Inherit from tree_typed, not
14315 (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
14316 * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
14317 TS_BASE instead of TS_COMMON.
14318 * varasm.c (assemble_name): Remove assert.
14320 2011-05-26 Bernd Schmidt <bernds@codesourcery.com>
14322 * Makefile.in (srcdirify): Change order so that libgcc_objdir is
14324 * libgcc-std.ver: Delete file.
14326 2011-05-26 Richard Guenther <rguenther@suse.de>
14328 PR tree-optimization/48702
14329 * tree-ssa-address.c (create_mem_ref_raw): Create MEM_REFs
14330 only when we know the base address is within bounds.
14331 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Do not
14332 assume the base address of TARGET_MEM_REFs is in bounds.
14334 2011-05-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14337 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Wrap
14338 declaration in TARGET_SOLARIS.
14340 2011-05-26 Hariharan Sandanagobalane <hariharan@picochip.com>
14342 * config/picochip/picochip.md (cbranchhi4): No :CC for match_operator.
14343 The instruction is then expanded explicitly.
14344 (supported_compare): Callable instruction.
14345 (compare): Likewise.
14347 2011-05-26 Jakub Jelinek <jakub@redhat.com>
14350 * gimplify.c (shortcut_cond_r): Don't special case
14351 COND_EXPRs if they have void type on one of their arms.
14353 2011-05-26 Bernd Schmidt <bernds@codesourcery.com>
14355 * haifa-sched.c (schedule-block): Reorder the inner scheduling loop
14356 to reduce duplication, and to achieve a slightly more logical order
14359 2011-05-26 Jakub Jelinek <jakub@redhat.com>
14361 PR tree-optimization/49161
14362 * tree-vrp.c (struct case_info): New type.
14363 (compare_case_labels): Sort case_info structs instead of
14364 trees, and not primarily by CASE_LABEL uids but by
14365 label_for_block indexes.
14366 (find_switch_asserts): Put case labels into struct case_info
14367 array instead of TREE_VEC, adjust sorting, compare label_for_block
14368 values instead of CASE_LABELs.
14370 2011-05-26 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
14372 * config/arm/neon.md ("orn<mode>3_neon"): Canonicalize not.
14373 ("orndi3_neon"): Likewise.
14374 ("bic<mode>3_neon"): Likewise.
14376 2011-05-26 Ira Rosen <ira.rosen@linaro.org>
14378 PR tree-optimization/49038
14379 * tree-vect-loop-manip.c (vect_generate_tmps_on_preheader):
14380 Ensure at least one epilogue iteration if required by data
14381 accesses with gaps.
14382 * tree-vectorizer.h (struct _loop_vec_info): Add new field
14383 to mark loops that require peeling for gaps.
14384 * tree-vect-loop.c (new_loop_vec_info): Initialize new field.
14385 (vect_get_known_peeling_cost): Take peeling for gaps into
14387 (vect_transform_loop): Generate epilogue if required by data
14389 * tree-vect-data-refs.c (vect_analyze_group_access): Mark the
14390 loop as requiring an epilogue if there are gaps in the end of
14393 2011-05-25 Ian Lance Taylor <iant@google.com>
14395 * godump.c (go_format_type): Output the first field with a usable
14398 2011-05-25 Ian Lance Taylor <iant@google.com>
14400 * godump.c (go_format_type): Check for invalid type names, pointer
14401 target types, and struct field types.
14403 2011-05-25 Jason Merrill <jason@redhat.com>
14405 * print-tree.c (print_node): Only look at TREE_TYPE if TS_TYPED.
14407 2011-05-25 Uros Bizjak <ubizjak@gmail.com>
14409 * config/i386/sse.md (*<sse>_maskcmp<mode>3_comm): New pattern.
14411 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
14413 * config/i386/i386.md (*movqi_extv_1)): Put back
14414 "register_operand" check in "type" calculation.
14415 (*movqi_extzv_2): Likewise.
14417 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
14419 * doc/extend.texi (X86 Built-in Functions): Update pause intrinsic.
14421 2011-05-25 Bernd Schmidt <bernds@codesourcery.com>
14424 * libgcc2.h (__powisf2, __powidf2, __powitf2, __powixf2,
14425 __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3,
14426 __divxc3, __divtc3): Wrap definitions in #ifndef.
14428 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
14431 * config/i386/i386.md (*movqi_extv_1_rex64): Remove
14432 "register_operand" check and replace q_regs_operand with
14433 QIreg_operand in "type" calculation.
14434 (*movqi_extv_1): Likewise.
14435 (*movqi_extzv_2_rex64): Likewise.
14436 (*movqi_extzv_2): Likewise.
14438 * config/i386/predicates.md (QIreg_operand): New.
14440 2011-05-25 Richard Guenther <rguenther@suse.de>
14442 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
14443 type-based offset disambiguation, streamline MEM_REF and
14444 TARGET_MEM_REF handling.
14446 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
14448 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_PAUSE.
14449 (bdesc_special_args): Add pause intrinsic.
14451 * config/i386/i386.md (UNSPEC_PAUSE): New.
14453 (*pause): Likewise.
14454 * config/i386/ia32intrin.h (__pause): Likewise.
14456 * doc/extend.texi (X86 Built-in Functions): Add documentation for
14459 2011-05-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14461 PR tree-optimization/46728
14462 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): New.
14463 (execute_cse_sincos): Add switch case for BUILT_IN_POW.
14465 2011-05-25 Nathan Froyd <froydnj@codesourcery.com>
14467 * tree.h (struct tree_exp): Inherit from struct tree_typed.
14468 * tree.c (initialize_tree_contains_struct): Mark TS_EXP as TS_TYPED
14469 instead of TS_COMMON.
14471 2011-05-25 Bernd Schmidt <bernds@codesourcery.com>
14473 * libgcc2.h (__NW, __NDW): Define using a __gnu_ prefix if
14474 LIBGCC2_GNU_PREFIX is defined.
14476 (__powisf2, __powidf2, __powitf2, __powixf2, __bswapsi2, __bswapdi2,
14477 __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3, __divxc3,
14478 __divtc3, __udiv_w_sdiv, __clear_cache, __enable_execute_stack,
14479 __clz_tab): Define using __N.
14480 (__absvsi2, __negvsi2, __addvsi3, __subvsi3, __mulvsi3): Likewise if
14481 COMPAT_SIMODE_TRAPPING_ARITHMETIC.
14482 * target.def (libfunc_gnu_prefix): New hook.
14483 * doc/tm.texi.in (LIBGCC2_GNU_PREFIX): Document.
14484 (TARGET_LIBFUNC_GNU_PREFIX): Add hook.
14485 * doc/tm.texi: Regenerate.
14486 * system.h (LIBGCC2_GNU_PREFIX): Poison.
14487 * optabs.c (gen_libfunc): Take the libfunc_gnu_prefix hook into
14489 (gen_interclass_conv_libfunc, gen_intraclass_conv_libfunc): Likewise.
14490 (init_optabs): Likewise for the bswap libfuncs.
14491 * tree.c (build_common_builtin_nodes): Likewise for complex multiply
14493 * config/t-slibgcc-elf-ver (SHLIB_MAPFILES): Use $$(libgcc_objdir).
14494 * config/t-slibgcc-sld (SHLIB_MAPFILES): Likewise.
14495 * libgcc-std.ver: Remove.
14496 * Makefile.in (srcdirify): Handle $$(libgcc_objdir).
14497 * config/frv/t-linux (SHLIB_MAPFILES): Use $$(libgcc_objdir) for
14499 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
14500 * config/mips/t-slibgcc-irix (SHLIB_MAPFILES): Likewise.
14501 * config/rs6000/t-aix43 (SHLIB_MAPFILES): Likewise.
14502 * config/rs6000/t-aix52 (SHLIB_MAPFILES): Likewise.
14503 * config/sparc/t-linux (SHLIB_MAPFILES): Likewise.
14504 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
14505 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
14506 * config/fixed-bit.h (FIXED_OP): Define differently depending on
14507 LIBGCC2_GNU_PREFIX. All uses changed not to pass leading underscores.
14508 (FIXED_CONVERT_OP, FIXED_CONVERT_OP2): Likewise.
14510 2011-05-25 Jan Hubicka <jh@suse.cz>
14512 * lto-streamer-out.c (output_record_start): Use lto_output_enum
14513 (lto_output_tree): Use output_record_start.
14514 * lto-streamer-in.c (input_record_start): Use lto_input_enum
14515 (lto_get_pickled_tree): Use input_record_start.
14516 * lto-section-in.c (lto_section_overrun): Turn into fatal error.
14517 (lto_value_range_error): New function.
14518 * lto-streamer.h (lto_value_range_error): Declare.
14519 (lto_output_int_in_range, lto_input_int_in_range): New functions.
14520 (lto_output_enum, lto_input_enum): New macros.
14522 2011-05-25 Eric Botcazou <ebotcazou@adacore.com>
14524 * common.opt (flag_stack_usage_info): New variable.
14525 (-Wstack-usage): New option.
14526 * doc/invoke.texi (Warning options): Document -Wstack-usage.
14527 * opts.c (common_handle_option) <OPT_Wstack_usage_>: New case.
14528 <OPT_fstack_usage>: Likewise.
14529 * toplev.c (output_stack_usage): Handle -Wstack-usage.
14530 * calls.c (expand_call): Test flag_stack_usage_info variable instead
14531 of flag_stack_usage.
14532 (emit_library_call_value_1): Likewise.
14533 * explow.c (allocate_dynamic_stack_space): Likewise.
14534 * function.c (instantiate_virtual_regs ): Likewise.
14535 (prepare_function_start): Likewise.
14536 (rest_of_handle_thread_prologue_and_epilogue): Likewise.
14537 * config/alpha/alpha.c (alpha_expand_prologue): Likewise.
14538 * config/arm/arm.c (arm_expand_prologue): Likewise.
14539 (thumb1_expand_prologue): Likewise.
14540 * config/avr/avr.c (expand_prologue): Likewise.
14541 * config/i386/i386.c (ix86_expand_prologue): Likewise.
14542 * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
14543 * config/m68k/m68k.c (m68k_expand_prologue): Likewise.
14544 * config/mips/mips.c (mips_expand_prologue): Likewise.
14545 * config/pa/pa.c (hppa_expand_prologue): Likewise.
14546 * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
14547 * config/s390/s390.c (s390_emit_prologue): Likewise.
14548 * config/sh/sh.c (sh_expand_prologue): Likewise.
14549 * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
14550 * config/spu/spu.c (spu_expand_prologue): Likewise.
14552 2011-05-25 Richard Guenther <rguenther@suse.de>
14554 * gimple.c (iterative_hash_canonical_type): Skip non-FIELD_DECLs.
14555 (gimple_canonical_types_compatible_p): Likewise.
14557 2011-05-25 Jan Hubicka <jh@suse.cz>
14559 PR middle-end/49062
14560 * ipa.c (function_and_variable_visibility): Only add to same
14561 comdat group list if DECL_ONE_ONLY.
14563 2011-05-25 Andrey Belevantsev <abel@ispras.ru>
14565 PR rtl-optimization/49014
14566 * config/i386/athlon.md (athlon_ssecomi): Change type to ssecomi.
14568 2011-05-25 Jakub Jelinek <jakub@redhat.com>
14571 * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
14573 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
14575 PR rtl-optimization/48757
14576 * ira-build.c (loop_with_eh_edge_p): Rename to
14577 loop_with_complex_edge_p, check edges on complexity, make function
14579 (mark_loops_for_removal): Make call of loop_with_complex_edge_p
14582 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
14584 * config/sparc/sparc.c (sparc_option_override): If not set by the user,
14585 force flag_ira_share_save_slots to 0.
14587 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
14589 * var-tracking.c (compute_cfa_pointer): Adjust head comment.
14590 (vt_initialize): Set PROLOGUE_BB unconditionally.
14591 Add block comment about CFA_BASE_RTX machinery.
14592 Reset FP_CFA_OFFSET to -1 on all invalid paths.
14593 Call vt_init_cfa_base only if FP_CFA_OFFSET isn't equal to -1.
14595 2011-05-24 Nicola Pero <nicola.pero@meta-innovation.com>
14598 * c-parser.c (c_parser_objc_class_instance_variables): More robust
14599 parsing of syntax error in ObjC instance variable lists. In
14600 particular, avoid an infinite loop if there is a stray ']'.
14601 Updated error message.
14603 2011-05-24 Ian Lance Taylor <iant@google.com>
14605 * godump.c (go_define): Don't accept a string immediately after
14608 2011-05-24 Ian Lance Taylor <iant@google.com>
14610 * godump.c (struct godump_container): Add invalid_hash field.
14611 (go_format_type): Return false if type is found in invalid_hash.
14612 (go_output_typedef): Add invalid type to invalid_hash.
14613 (go_finish): Create and delete invalid_hash.
14615 2011-05-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14617 PR tree-optimization/46728
14618 * tree-ssa-math-opts.c (powi_table): New.
14619 (powi_lookup_cost): New.
14621 (powi_as_mults_1): New.
14622 (powi_as_mults): New.
14623 (gimple_expand_builtin_powi): New.
14624 (execute_cse_sincos): Add switch case for BUILT_IN_POWI.
14625 (gate_cse_sincos): Remove sincos/cexp restriction.
14627 2011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14630 * config.gcc (alpha*-dec-osf5.1*): Only build mips-tfile,
14632 * mips-tfile.c: Remove CROSS_DIRECTORY_STRUCTURE handling.
14633 * mips-tdump.c: Likewise.
14635 2011-05-24 H.J. Lu <hongjiu.lu@intel.com>
14638 * config/i386/driver-i386.c (host_detect_local_cpu): Always
14639 add -mno-XXX. Handle FMA.
14641 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
14643 PR rtl-optimization/48633
14644 * ira-build.c (loop_with_eh_edge_p): New function.
14645 (mark_loops_for_removal): Use it.
14647 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
14649 PR rtl-optimization/48971
14650 * ira.c (setup_pressure_classes): Don't check register move cost
14651 for classes with one registers. Don't add pressure class if there
14652 is a pressure class with the same available hard registers.
14653 Check contains_reg_of_mode. Fix a typo in collecting
14654 temp_hard_regset. Ignore hard registers not belonging to a class.
14656 2011-05-24 Uros Bizjak <ubizjak@gmail.com>
14659 * config/i386/sse.md (sse2_loadhpd): Remove shufpd alternative.
14661 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
14662 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14664 PR gcov-profile/48845
14665 * config/sol2.h (LIB_SPEC): Link TLS support for tree profiling.
14667 2011-05-24 Richard Guenther <rguenther@suse.de>
14669 * gimple.c (compare_type_names_p): Remove for_completion_p arg.
14670 (gimple_compatible_complete_and_incomplete_subtype_p): Remove.
14671 (gimple_types_compatible_p_1): Adjust.
14672 (iterative_hash_canonical_type): Do not bother about complete vs.
14674 (gimple_canonical_types_compatible_p): Likewise.
14676 2011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14678 * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Remove.
14680 2011-05-24 Richard Guenther <rguenther@suse.de>
14683 * gimple.c (gimple_register_canonical_type): Revert
14685 * alias.c (get_alias_set): Only assert that TYPE_CANONICAL
14686 does not for a tree for the case where it matters. Cache
14687 pointer-type alias-sets.
14689 2011-05-24 Joseph Myers <joseph@codesourcery.com>
14691 * Makefile.in (GCC_OBJS): Remove opts-common.o and options.o.
14692 (OBJS): Remove options.o, opts-common.o and prefix.o.
14693 (OBJS-libcommon-target): New.
14694 (ALL_HOST_BACKEND_OBJS): Include $(OBJS-libcommon-target).
14695 (BACKEND): Include libcommon-target.a.
14696 (MOSTLYCLEANFILES): Include libcommon-target.a.
14697 (libcommon-target.a): New.
14698 (xgcc$(exeext), cpp$(exeext)): Use libcommon-target.a instead of
14701 2011-05-23 Joseph Myers <joseph@codesourcery.com>
14703 * optc-save-gen.awk: New. Based on optc-gen.awk. Don't generate
14704 parts of output shared with the driver.
14705 * optc-gen.awk: Don't generate parts of output not shared with the
14707 * opth-gen.awk: Remove GCC_DRIVER conditionals.
14708 * doc/options.texi (SourcerInclude): Mention options-save.c.
14709 * Makefile.in (GCC_OBJS): Use options.o instead of gcc-options.o.
14710 (OBJS): Add options-save.o.
14711 (options-save.c, options-save.o): New.
14712 (options.o): Update dependencies.
14713 (gcc-options.o): Remove.
14714 (mostlyclean): Remove options-save.c.
14716 2011-05-23 Jakub Jelinek <jakub@redhat.com>
14719 * dbxout.c: Include cgraph.h.
14720 (dbxout_expand_expr): If a VAR_DECL is TREE_STATIC, not written
14721 and without value expr, return NULL if no varpool node exists for
14722 it or if it is not needed.
14723 * Makefile.in (dbxout.o): Depend on $(CGRAPH_H).
14726 * c-decl.c (start_decl): Convert expr to void_type_node.
14728 2011-05-23 Richard Sandiford <rdsandiford@googlemail.com>
14730 PR rtl-optimization/48826
14731 * emit-rtl.c (try_split): When splitting a call that is followed
14732 by a NOTE_INSN_CALL_ARG_LOCATION, move the note after the new call.
14734 2011-05-23 Jakub Jelinek <jakub@redhat.com>
14736 * cfgexpand.c (expand_debug_expr): For unused non-addressable
14737 parameters passed in memory prefer using DECL_INCOMING_RTL over
14738 the pseudos it will be copied into.
14740 2011-05-23 H.J. Lu <hongjiu.lu@intel.com>
14743 * config/i386/i386.c (ix86_option_override_internal): Save the
14744 initial options after checking vzeroupper.
14746 2011-05-23 David Li <davidxl@google.com>
14748 PR tree-optimization/48988
14749 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds):
14750 Initialize has_valid_pred for each pred chain.
14752 2011-05-23 Richard Guenther <rguenther@suse.de>
14754 * gimple.c (gimple_types_compatible_p_1): Always compare type names.
14755 (iterative_hash_gimple_type): Always hash type names.
14757 2011-05-23 Nathan Froyd <froydnj@codesourcery.com>
14759 * c-typeck.c (build_function_call_vec): Tweak call to
14760 check_function_arguments.
14762 2011-05-23 Richard Guenther <rguenther@suse.de>
14764 PR tree-optimization/49115
14765 * tree-ssa-alias.c (stmt_kills_ref_p_1): If the assignment
14766 is not necessarily carried out, do not claim it kills the ref.
14767 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
14769 2011-05-23 Richard Guenther <rguenther@suse.de>
14771 PR middle-end/15419
14772 * builtins.c (fold_builtin_memory_op): Be less restrictive about
14773 what pointer types we accept for folding.
14775 2011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14777 * gthr-gnat.c: Remove.
14778 * gthr-gnat.h: Remove.
14779 * Makefile.in (LIB2ADDEH): Remove $(srcdir)/gthr-gnat.c.
14780 * config/t-freebsd (LIB2ADDEH): Likewise.
14781 * config/t-linux (LIB2ADDEH): Likewise.
14782 * config/t-sol2 (LIB2ADDEH): Likewise.
14783 * config/ia64/t-vms (LIB2ADDEH): Likewise.
14784 * configure.ac (target_thread_file): Remove gnat handling.
14785 * configure: Regenerate.
14786 * doc/install.texi (Configuration, --enable-threads): Remove gnat.
14788 2011-05-23 Tristan Gingold <gingold@adacore.com>
14789 Eric Botcazou <ebotcazou@adacore.com>
14791 * gcov.c (create_file_names): If no object directory is specified,
14792 keep the directory of the file.
14794 2011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14796 * configure.ac (enable_threads): Remove irix; add lynx, tpf; sort list.
14797 * configure: Regenerate.
14799 2011-05-23 Jakub Jelinek <jakub@redhat.com>
14801 PR middle-end/48973
14802 * expr.c (expand_expr_real_2) <case LT_EXPR>: If do_store_flag
14803 failed and the comparison has a single bit signed type, use
14804 constm1_rtx instead of const1_rtx for true value.
14805 (do_store_flag): If ops->type is single bit signed type, disable
14806 signel bit test optimization and pass -1 instead of 1 as last
14807 parameter to emit_store_flag_force.
14809 2011-05-23 Tom de Vries <tom@codesourcery.com>
14812 * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith): New
14814 (infer_loop_bounds_from_undefined): Use new function.
14816 2011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
14818 * config/mips/mips.h (SUBTARGET_ASM_OPTIMIZING_SPEC): Delete.
14819 (ASM_SPEC): Add a -O* option here. Pass -O0 for -noasmopt,
14820 -O1 for -fno-delayed-branch, -O2 if optimization is enabled,
14822 (EXTRA_SPECS): Remove subtarget_asm_optimizing_spec.
14824 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
14826 * cfgcleanup.c (try_forward_edges): Do not update BB_FORWARDER_BLOCK.
14827 (try_optimize_cfg): Update BB_FORWARDER_BLOCK if try_forward_edges
14830 2011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
14832 * config/mips/mips.c (mips_default_arch): Honor MIPS_ISA_DEFAULT.
14834 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
14836 * config/sparc/sparc.c (sparc_delegitimize_address): Handle
14837 UNSPEC_MOVE_PIC pattern.
14839 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
14841 * config.gcc (sparc-*-elf*): Add sparc/t-crtin.
14842 (sparc-*-rtems*): Likewise.
14843 (sparc64-*-elf*): Likewise.
14844 (sparc64-*-rtems*): Likewise.
14845 (sparc*-*-solaris2*): Likewise. Remove crti.o crtn.o extra parts.
14846 * config/sparc/t-crtin: New file.
14847 * config/sparc/t-sol2 (crti.o): Delete rule.
14848 (crtn.o): Likewise.
14849 * config/sparc/t-linux64 (EXTRA_MULTILIB_PARTS): Delete.
14850 * config/sparc/t-sol2-64 (EXTRA_MULTILIB_PARTS): Likewise.
14851 * config/sparc/sp64-elf.h (STARTFILE_SPEC): Tidy and add crti.o.
14852 (ENDFILE_SPEC): Add crtn.o.
14854 2011-05-22 Tom de Vries <tom@codesourcery.com>
14856 PR middle-end/48689
14857 * fold-const.c (fold_checksum_tree): Guard TREE_CHAIN use with
14858 CODE_CONTAINS_STRUCT (TS_COMMON).
14860 2011-05-22 Jakub Jelinek <jakub@redhat.com>
14862 PR middle-end/49029
14863 * expmed.c (extract_fixed_bit_field): Test whether target can be used
14864 only after deciding which mode to use.
14866 2011-05-22 Tom de Vries <tom@codesourcery.com>
14869 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Fix const test
14870 for call to get_shiftadd_cost.
14872 2011-05-22 Uros Bizjak <ubizjak@gmail.com>
14875 * config/i386/cpuid.h (bit_MMXEXT): New define.
14877 2011-05-22 Nick Clifton <nickc@redhat.com>
14879 * config/stormy16/stormy16.c (xstormy16_init_builtins): prevent
14880 initialisation of non-existant args[2] element. Use args[] array
14881 not arg[] array to pass arguments to build_function_type_list.
14883 2011-05-22 Ira Rosen <ira.rosen@linaro.org>
14885 PR tree-optimization/49087
14886 * tree-vect-loop.c (vect_is_slp_reduction): Fail if LHS has no uses.
14888 2011-05-21 Jason Merrill <jason@redhat.com>
14891 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Check for
14892 static storage duration.
14894 2011-05-21 Eric Botcazou <ebotcazou@adacore.com>
14896 * config/sparc/sparc.md (setjmp): Handle PIC mode and use the hard
14899 2011-05-21 Eric Botcazou <ebotcazou@adacore.com>
14901 * config/sparc/sparc.c (eligible_for_return_delay): Do not return
14902 false if there are call-saved registers here...
14903 (sparc_can_use_return_insn_p): ...but here instead.
14904 (save_or_restore_regs): Fix thinko.
14905 (sparc_expand_prologue): Use current_function_is_leaf.
14906 (sparc_frame_pointer_required): Likewise.
14908 2011-05-21 Nick Clifton <nickc@redhat.com>
14911 * config/rx/rx.c (rx_memory_move_cost): Note unused parameters.
14913 2011-05-21 Nicola Pero <nicola.pero@meta-innovation.com>
14915 * gengtype.c (walk_type): Implemented "atomic" GTY option.
14916 * doc/gty.texi (GTY Options): Document "atomic" GTY option.
14918 2011-05-21 Joseph Myers <joseph@codesourcery.com>
14920 * opt-read.awk: New. Split out of optc-gen.awk and opth-gen.awk.
14921 * optc-gen.awk: Move common code to opt-read.awk.
14922 * opth-gen.awk: Likewise.
14923 * Makefile.in (options.c, s-options-h): Update to use opt-read.awk.
14925 2011-05-20 Nathan Froyd <froydnj@codesourcery.com>
14927 * godump.c (go_format_type): Don't use TYPE_ARG_TYPES.
14929 2011-05-20 Tom de Vries <tom@codesourcery.com>
14932 * tree-ssa-loop-ivopts.c: Include expmed.h.
14933 (get_shiftadd_cost): New function.
14934 (force_expr_to_var_cost): Declare forward. Use get_shiftadd_cost.
14936 2011-05-20 Jakub Jelinek <jakub@redhat.com>
14939 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL
14940 for PHI args that are SSA_NAME_IS_DEFAULT_DEF.
14942 2011-05-20 Joseph Myers <joseph@codesourcery.com>
14944 * Makefile.in: Update comment referring to $(OBJS-common).
14946 2011-05-20 Ian Lance Taylor <iant@google.com>
14948 * godump.c (go_output_typedef): Put enum constants in the macro
14949 hash table to avoid duplicate Go const definitions.
14951 2011-05-20 Joseph Myers <joseph@codesourcery.com>
14953 * Makefile.in (LIBDEPS): Add libcommon.a.
14955 (GCC_OBJS): Remove diagnostic.o, pretty-print.o and input.o.
14956 (OBJS-common): Remove diagnostic.o, input.o, intl.o,
14957 pretty-print.o and version.o.
14958 (OBJS-libcommon): New.
14959 (ALL_HOST_BACKEND_OBJS): Add $(OBJS-libcommon).
14960 (BACKEND): Add libcommon.a.
14961 (MOSTLYCLEANFILES): Likewise.
14962 (libcommon.a): New.
14963 (xgcc$(exeext)): Don't explicitly use version.o and intl.o.
14964 (cpp$(exeext)): Likewise.
14965 (COLLECT2_OBJS): Remove intl.o, version.o, diagnostic.o,
14966 pretty-print.o and input.o.
14967 (lto-wrapper$(exeext)): Don't explicitly use intl.o.
14968 (lto-wrapper.o): Depend on $(DIAGNOSTIC_H).
14969 (errors.o): Remove.
14970 (mips-tfile): Don't explicitly use version.o.
14971 (mips-tdump): Likewise.
14972 (gcov.o): Depend on $(DIAGNOSTIC_H).
14973 (gcov-dump.o): Depend on intl.h and $(DIAGNOSTIC_H).
14974 (GCOV_OBJS): Remove intl.o, version.o and errors.o.
14975 (GCOV_DUMP_OBJS): Remove version.o and errors.o.
14976 * gcov-dump.c: Include intl.h and diagnostic.h.
14977 (main): Initialize diagnostics.
14978 * gcov.c: Include diagnostic.h.
14980 (main): Initialize diagnostics.
14981 * lto-wrapper.c: Include diagnostic.h.
14982 (main): Initialize diagnostics.
14984 2011-05-20 Michael Matz <matz@suse.de>
14986 * Makefile.in (OBJS-common, OBJS-md, OBJS-archive): Merge into OBJS.
14988 2011-05-20 Michael Matz <matz@suse.de>
14989 Richard Guenther <rguenther@suse.de>
14991 * lto-streamer.c (lto_record_common_node): Don't track seen nodes,
14992 use lto_streamer_cache_append directly instead of returning a VEC.
14993 (preload_common_node): Remove.
14994 (lto_get_common_nodes): Rename to lto_preload_common_nodes, don't
14996 (lto_streamer_cache_create): Call lto_preload_common_nodes.
14998 2011-05-20 Richard Guenther <rguenther@suse.de>
15000 PR tree-optimization/49079
15001 * tree-dfa.c (get_ref_base_and_extent): Handle view-converting
15002 MEM_REFs correctly for the trailing array access detection.
15003 Special case constants the same way as decls for overall size
15006 2011-05-20 Uros Bizjak <ubizjak@gmail.com>
15008 * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Fix macro
15009 argument expansion.
15011 2011-05-20 Jakub Jelinek <jakub@redhat.com>
15013 PR tree-optimization/49073
15014 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL if
15015 PHI argument is SSA_NAME, whose def_stmt is dominated by the PHI.
15016 * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Calculate dominators.
15018 2011-05-20 Richard Guenther <rguenther@suse.de>
15020 PR middle-end/48849
15021 * gimple.c (gimple_register_canonical_type): Compute TYPE_CANONICAL
15022 of pointer types the same way the middle-end does.
15024 2011-05-20 Richard Guenther <rguenther@suse.de>
15026 * gimple.c (gimple_register_type_1): Do not fiddle with main-variant
15027 or pointer-to chains. Delay all fixup to uniquify_nodes.
15029 2011-05-19 Quentin Neill <quentin.neill@amd.com>
15031 * config/i386/sse.md (fma4_fmsubadd): Use <ssemodesuffix>.
15032 (fma4_fmaddsub): Likewise
15034 2011-05-19 Jan Hubicka <jh@suse.cz>
15036 * gimple.c (gtc_visited, gtc_ob, type_pair_hash, type_pair_eq): Remove.
15037 (GIMPLE_TYPE_PAIR_SIZE): New macro.
15038 (type_pair_cache): New static var.
15039 (lookup_type_pair): Use fixed sized custom hash; make inline.
15040 (gtc_visit, gimple_types_compatible_p, gimple_register_type_1): Update
15041 calls of lookup_type_pair.
15042 (print_gimple_types_stats): Remove cache stats.
15043 (free_gimple_type_tables): Free type_pair_cache instead of gtc_visited
15046 2011-05-19 Uros Bizjak <ubizjak@gmail.com>
15048 * config/i386/i386.c (option_override_internal): Enable TARGET_CMOVE
15049 when TARGET_RDRND is active.
15050 (ix86_expand_builtin) <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>:
15051 Generate dummy SImode target register when target is NULL.
15053 2011-05-19 Joseph Myers <joseph@codesourcery.com>
15055 * config/arm/arm-fpus.def: New.
15056 * config/arm/genopt.sh: Generate Enum and EnumValue entries from
15058 * config/arm/arm-tables.opt: Regenerate.
15059 * config/arm/arm.c (all_fpus): Move contents to arm-fpus.def.
15060 (arm_option_override): Don't decode FPU name to string here.
15061 * config/arm/arm.opt (mfpu=): Use Enum.
15062 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt, arm.o):
15063 Update dependencies.
15065 2011-05-19 Joseph Myers <joseph@codesourcery.com>
15067 * collect2.c: Include diagnostic.h.
15068 (fatal_perror, fatal, error, fancy_abort): Remove.
15069 (main): Set progname. Call xmalloc_set_program_name and
15070 diagnostic_initialize.
15071 (maybe_run_lto_and_relink, main, collect_execute, scan_prog_file,
15072 scan_libraries, resolve_lib_name): Call fatal_error instead of
15073 fatal and fatal_perror.
15074 * collect2.h (error, fatal, fatal_perror): Don't declare.
15075 * tlink.c: Include diagnostic-core.h.
15076 (recompile_files): Call fatal_error instead of fatal_perror.
15077 * Makefile.in (COLLECT2_OBJS): Include diagnostic.o,
15078 pretty-print.o and input.o.
15079 (collect2.o, tlink.o): Update dependencies.
15081 2011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15083 * config/i386/i386.md (tls_initial_exec_64_sun): Add semicolon.
15085 2011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15088 * configure.ac (gcc_cv_as_comdat_group_group): Check for Sun as
15089 COMDAT group syntax, both SPARC and x86 variants.
15090 (HAVE_COMDAT_GROUP): Also define if gcc_cv_as_comdat_group_group.
15091 * configure: Regenerate.
15092 * config/sol2.h (TARGET_SOLARIS): Define.
15093 (PUSHSECTION_FORMAT): Remove.
15094 (SECTION_NAME_FORMAT): Define.
15095 * config/sol2.c: Include hashtab.h.
15096 (solaris_output_init_fini): Replace PUSHSECTION_FORMAT by its
15097 expansion, using SECTION_NAME_FORMAT.
15098 (solaris_comdat_htab): New variable.
15099 (struct comdat_entry): Define.
15100 (comdat_hash): New function.
15101 (comdat_eq): New function.
15102 (solaris_elf_asm_comdat_section): New function.
15103 (solaris_define_comdat_signature): New function.
15104 (solaris_code_end): New function.
15105 * config/sol2-protos.h (solaris_elf_asm_comdat_section): Declare.
15106 (solaris_code_end): Declare.
15107 * config/t-sol2 (sol2.o): Add $HASHTAB_H dependency.
15108 * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Call
15110 (i386_solaris_elf_named_section): Wrap in TARGET_SOLARIS.
15111 Remove ATTRIBUTE_UNUSED.
15112 [!USE_GAS]: Call solaris_elf_asm_comdat_section for
15113 SECTION_LINKONCE sections if HAVE_COMDAT_GROUP.
15114 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Likewise.
15115 * config/i386/sol2-10.h (TARGET_ASM_NAMED_SECTION): Moved ...
15116 * config/i386/sol2.h (TARGET_ASM_NAMED_SECTION): ... here.
15117 * config/sparc/sol2.h (TARGET_ASM_CODE_END): Redefine.
15118 (PUSHSECTION_FORMAT): Remove.
15119 (SECTION_NAME_FORMAT): Redefine.
15121 2011-05-19 Kai Tietz <ktietz@redhat.com>
15123 * tree-cfg.c (verify_gimple_assign_binary): Barf on
15124 TRUTH_AND_EXPR, TRUTH_OR_EXPR, and TRUTH_XOR_EXPR.
15125 (gimplify_expr): Move TRUTH_AND|OR|XOR_EXPR to its binary form.
15127 2011-05-19 Anatoly Sokolov <aesok@post.ru>
15128 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15130 * config/t-sol2 (sol2.o): Add $(TARGET_H) dependency.
15132 2011-05-19 Richard Guenther <rguenther@suse.de>
15134 PR middle-end/48985
15135 * tree-object-size.c (addr_object_size): If the pointed-to
15136 variable is a decl use DECL_SIZE_UNIT instead of TYPE_SIZE_UNIT.
15138 2011-05-19 Richard Guenther <rguenther@suse.de>
15140 * gimple.c (gimple_types_compatible_p_1): Compare names of
15141 the types themselves.
15142 (iterative_hash_gimple_type): And hash them that way.
15143 (gimple_register_type_1): If we register a main variant properly
15144 initialize the leader to ourselves.
15146 2011-05-19 Tom de Vries <tom@codesourcery.com>
15149 * tree-ssa-loop-ivopts.c (get_expr_id): Factored new function out of
15150 get_loop_invariant_expr_id.
15151 (get_loop_invariant_expr_id): Use get_expr_id.
15152 (parm_decl_cost): New function.
15153 (determine_use_iv_cost_condition): Use get_expr_id and parm_decl_cost.
15154 Improve bound cost estimation. Use different inv_expr_id for elim and
15157 2011-05-19 Tom de Vries <tom@codesourcery.com>
15160 * tree-ssa-loop-ivopts.c (determine_iv_cost): Prevent
15161 cost_base.cost == 0.
15163 2011-05-18 H.J. Lu <hongjiu.lu@intel.com>
15166 * config/i386/sse.md
15167 (avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>): Properly handle
15170 2011-05-18 Jakub Jelinek <jakub@redhat.com>
15172 PR tree-optimization/49039
15173 * tree-vrp.c (extract_range_from_binary_expr): For
15174 MIN_EXPR <~[a, b], ~[c, d]> and MAX_EXPR <~[a, b], ~[c, d]>
15175 return ~[MAX_EXPR <a, c>, MIN_EXPR <b, d>].
15177 2011-05-18 Tom de Vries <tom@codesourcery.com>
15180 * tree-ssa-loop-ivopts.c (computation_cost): Prevent cost of 0.
15182 2011-05-18 Uros Bizjak <ubizjak@gmail.com>
15184 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Split asm template.
15185 (*tls_global_dynamic_64): Ditto.
15186 (*tls_local_dynamic_base_32_gnu): Ditto.
15187 (*tls_local_dynamic_base_64): Ditto.
15188 (tls_initial_exec_64_sun): Ditto.
15190 2011-05-18 Stuart Henderson <shenders@gcc.gnu.org>
15192 * doc/invoke.texi (Blackfin Options): -mcpu accepts bf592.
15193 * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
15195 * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
15196 * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
15197 * config/bfin/bfin.c (bfin_cpus): Add bf592.
15198 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
15199 __ADSPBF592__ and __ADSPBF59x__ for BFIN_CPU_BF592.
15200 * config/bfin/bfin-opts.h (bfin_cpu_type): Add BFIN_CPU_BF592.
15201 * config/bfin/elf.h (LIB_SPEC): Add bf592.
15203 2011-05-18 Joseph Myers <joseph@codesourcery.com>
15205 * config/arm/arm-opts.h (enum arm_fp16_format_type, enum
15206 arm_abi_type, enum float_abi_type, enum arm_tp_type): Move from arm.h.
15207 * config/arm/arm.c (arm_float_abi, arm_fp16_format, arm_abi,
15208 target_thread_pointer, arm_structure_size_boundary, struct
15209 float_abi, all_float_abis, struct fp16_format, all_fp16_formats,
15210 struct abi_name, arm_all_abis): Remove.
15211 (arm_option_override) Don't process most enumerated option values here.
15212 Don't process target_fpe_name here. Work with integer not string for
15213 structure size boundary; use separate diagnostics for each case.
15214 * config/arm/arm.h (enum float_abi_type, enum
15215 arm_fp16_format_type, enum arm_abi_type, enum arm_tp_type): Move
15217 (arm_float_abi, arm_fp16_format, arm_abi, target_thread_pointer,
15218 arm_structure_size_boundary): Remove.
15219 * config/arm/arm.opt (mabi=): Use Enum and Init.
15220 (arm_abi_type): New Enum and EnumValue entries.
15221 (mfloat-abi=): Use Enum and Init.
15222 (float_abi_type): New Enum and EnumValue entries.
15223 (mfp=, mfpe=): Replace by separate Alias entries for each argument.
15224 (mfp16-format=): Use Enum and Init.
15225 (arm_fp16_format_type): New Enum and EnumValue entries.
15226 (mstructure-size-boundary=): Use UInteger and Init.
15227 (mtp=): Use Enum and Init.
15228 (arm_tp_type): New Enum and EnumValue entries.
15230 2011-05-18 Richard Guenther <rguenther@suse.de>
15232 PR tree-optimization/49018
15233 * gimple.c (gimple_has_side_effects): Volatile asms have side-effects.
15234 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Use
15235 gimple_has_side_effects.
15237 2011-05-18 Richard Guenther <rguenther@suse.de>
15239 * gimple.c (gimple_register_type_1): New function, split out from ...
15240 (gimple_register_type): ... here. Avoid infinite recursion.
15242 2011-05-18 Ira Rosen <ira.rosen@linaro.org>
15244 PR tree-optimization/41881
15245 * tree-vectorizer.h (struct _loop_vec_info): Add new field
15246 reduction_chains along with a macro for its access.
15247 * tree-vect-loop.c (new_loop_vec_info): Initialize reduction chains.
15248 (destroy_loop_vec_info): Free reduction chains.
15249 (vect_analyze_loop_2): Return false if vect_analyze_slp() returns false.
15250 (vect_is_slp_reduction): New function.
15251 (vect_is_simple_reduction_1): Call vect_is_slp_reduction.
15252 (vect_create_epilog_for_reduction): Support SLP reduction chains.
15253 * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow different
15254 definition types for reduction chains.
15255 (vect_supported_load_permutation_p): Don't allow permutations for
15257 (vect_analyze_slp_instance): Support reduction chains.
15258 (vect_analyze_slp): Try to build SLP instance from reduction chains.
15259 (vect_get_constant_vectors): Handle reduction chains.
15260 (vect_schedule_slp_instance): Mark the first statement of the
15261 reduction chain as reduction.
15263 2011-05-18 Ira Rosen <ira.rosen@linaro.org>
15265 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Use new
15266 names for group elements access.
15267 * tree-vectorizer.h (struct _stmt_vec_info): Use interleaving info for
15268 reduction chains as well. Remove data reference and interleaving
15269 related words from the fields names.
15270 * tree-vect-loop.c (vect_transform_loop): Use new names for group
15272 * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain,
15273 vect_insert_into_interleaving_chain, vect_update_interleaving_chain,
15274 vect_update_interleaving_chain, vect_same_range_drs,
15275 vect_analyze_data_ref_dependence, vect_update_misalignment_for_peel,
15276 vect_verify_datarefs_alignment, vector_alignment_reachable_p,
15277 vect_peeling_hash_get_lowest_cost, vect_enhance_data_refs_alignment,
15278 vect_analyze_group_access, vect_analyze_data_ref_access,
15279 vect_create_data_ref_ptr, vect_transform_strided_load,
15280 vect_record_strided_load_vectors): Likewise.
15281 * tree-vect-stmts.c (vect_model_simple_cost, vect_model_store_cost,
15282 vect_model_load_cost, vectorizable_store, vectorizable_load,
15283 vect_remove_stores, new_stmt_vec_info): Likewise.
15284 * tree-vect-slp.c (vect_build_slp_tree,
15285 vect_supported_slp_permutation_p, vect_analyze_slp_instance): Likewise.
15287 2011-05-18 Richard Guenther <rguenther@suse.de>
15289 PR middle-end/48989
15290 * tree-cfg.c (verify_gimple_assign_unary): Adjust TRUTH op
15291 operand verification.
15292 (verify_gimple_assign_binary): Likewise.
15293 * tree-ssa.c (useless_type_conversion_p): Preserve conversions
15294 to non-1-precision BOOLEAN_TYPEs.
15296 2011-05-18 Tom de Vries <tom@codesourcery.com>
15299 * tree-ssa-loop-ivopts.c (seq_cost): Fix call to rtx_cost.
15301 2011-05-18 Jakub Jelinek <jakub@redhat.com>
15303 PR tree-optimization/49000
15304 * tree-ssa.c (execute_update_addresses_taken): Call
15305 maybe_rewrite_mem_ref_base on debug stmt value. If it couldn't
15306 be rewritten and decl has been marked for renaming, reset
15309 2011-05-17 Joseph Myers <joseph@codesourcery.com>
15311 * config/i386/i386.c (ix86_valid_target_attribute_tree): Use
15312 enum_opts_set when testing if attributes have set -mfpmath=.
15314 2011-05-17 Richard Sandiford <rdsandiford@googlemail.com>
15316 * config/mips/mips.c (mips_handle_option): Remove unused variable.
15318 2011-05-17 Uros Bizjak <ubizjak@gmail.com>
15320 * ipa-inline-analysis.c (inline_node_duplication_hook): Initialize
15322 * tree-inline.c (maybe_inline_call_in_expr): Initialize
15323 id.transform_lang_insert_block with NULL.
15325 2011-05-17 Uros Bizjak <ubizjak@gmail.com>
15327 * config/i386/i386-protos.h (output_fix_trunc): Change arg 3 to bool.
15328 (output_fp_compare): Change args 3 and 4 to bool.
15329 (ix86_expand_call): Change arg 6 to bool.
15330 (ix86_attr_length_immediate_default): Change arg 2 to bool.
15331 (ix86_attr_length_vex_default): Change arg 3 to bool.
15332 * config/i386/i386.md: Update all uses.
15333 * config/i386/i386.c: Ditto.
15334 (ix86_flags_dependent): Change return type to bool.
15336 2011-05-17 Richard Guenther <rguenther@suse.de>
15338 * gimple.c (type_hash_pair_compare): Fix comparison.
15340 2011-05-17 Richard Guenther <rguenther@suse.de>
15342 * gimple.c (iterative_hash_gimple_type): Simplify singleton
15343 case some more, fix final hash value of the non-singleton case.
15345 2011-05-17 Richard Guenther <rguenther@suse.de>
15349 2011-05-16 Richard Guenther <rguenther@suse.de>
15351 * gimple.c (gimple_types_compatible_p_1): Use names of the
15352 type itself, not its main variant.
15353 (iterative_hash_gimple_type): Likewise.
15355 2011-05-17 Richard Guenther <rguenther@suse.de>
15357 * gimple.c (gimple_register_canonical_type): Use the main-variant
15358 leader for computing the canonical type.
15360 2011-05-17 Nick Clifton <nickc@redhat.com>
15362 * config/rx/rx.c (rx_memory_move_cost): Include cost of register
15365 * config/rx/rx.md: Add peephole to remove redundant extensions
15367 (bitset_in_memory): Use rx_restricted_mem_operand.
15368 (bitinvert_in_memory): Likewise.
15369 (bitclr_in_memory): Likewise.
15371 2011-05-17 Kazuhio Inaoka <kazuhiro.inaoka.ud@renesas.com>
15372 Nick Clifton <nickc@redhat.com>
15374 * config/rx/rx.md: Add peepholes to match a register move followed
15375 by a comparison of the moved register. Replace these with an
15376 addition of zero that does both actions in one instruction.
15378 2011-05-17 Jakub Jelinek <jakub@redhat.com>
15381 * config/i386/sync.md (sync_old_add<mode>): Relax operand 2
15382 predicate to allow CONST_INT.
15383 (*sync_old_add_cmp<mode>): New insn and peephole2 for it.
15385 2011-05-16 Joseph Myers <joseph@codesourcery.com>
15387 * opts-common.c (opt_enum_arg_to_value): New.
15388 * opts.h (opt_enum_arg_to_value): Declare.
15389 * config/i386/i386.opt (fpmath): Remove.
15390 (mfpmath=): Use Enum, Init and Save.
15391 (fpmath_unit): New Enum and EnumValue entries.
15392 * config/i386/i386-c.c (ix86_pragma_target_parse): Update field
15393 name for function fpmath state.
15394 * config/i386/i386-opts.h (enum fpmath_unit): Move from i386.h.
15395 * config/i386/i386.c: Include diagnostic.h.
15396 (ix86_fpmath, IX86_FUNCTION_SPECIFIC_FPMATH): Remove.
15397 (ix86_target_string): Take enum fpmath_unit value instead of string.
15398 (ix86_debug_options): Update call to ix86_target_string.
15399 (ix86_option_override_internal): Don't process fpmath strings here.
15400 (x86_function_specific_save, ix86_function_specific_restore):
15401 Don't handle fpmath state specially.
15402 (ix86_function_specific_print): Pass fpmath state to
15403 ix86_target_string instead of printing in this function.
15404 (ix86_valid_target_attribute_inner_p): Take gcc_options pointer.
15405 Handle enum attributes.
15406 (IX86_ATTR_ENUM, ix86_opt_enum): New.
15407 (ix86_valid_target_attribute_tree): Update option_strings
15408 handling. Handle fpmath as enum option.
15409 (ix86_can_inline_p): Update field names for function fpmath state.
15410 (ix86_expand_builtin): Update call to ix86_target_string.
15411 * config/i386/i386.h (enum fpmath_unit): Move to i386-opts.h.
15412 (ix86_fpmath): Remove.
15413 * config/i386/t-i386 (i386.o): Update dependencies.
15415 2011-05-16 Joseph Myers <joseph@codesourcery.com>
15417 PR preprocessor/48677
15418 * cppspec.c (lang_specific_driver): Set new_decoded_options[0]
15419 from decoded_options[0], not from itself.
15421 2011-05-16 Uros Bizjak <ubizjak@gmail.com>
15423 * config/i386/constraints.md (z): New constraint.
15424 * config/i386/i386.c (c): New mode attribute.
15425 (*call): Merge insn pattern from *call_0, *call_1, *call_1_rex64 and
15426 *call_1_rex64_large patterns using "P" mode iterator. Use "<c>zm"
15427 constraint for operand 0.
15428 (*call_vzeroupper): Ditto.
15429 (*call_rex64_ms_sysv): Ditto. Use "rzm" constraint for operand 0.
15430 (*call_rex64_ms_sysv_vzeroupper): Ditto.
15431 (*call_pop): Merge insn pattern from *call_pop_0 and *call_pop_1.
15432 Use "lzm" constraint for operand 0.
15433 (*call_pop_vzeroupper): Ditto.
15434 (*sibcall): Merge insn pattern from *sibcall_0, *sibcall_1 and
15435 *sibcall_1_rex64 patterns using "P" mode iterator. Use "Uz"
15436 constraint for operand 0.
15437 (*sibcall_vzeroupper): Ditto.
15438 (*sibcall_rex64_ms_sysv): Ditto.
15439 (*sibcall_rex64_ms_sysv_vzeroupper): Ditto.
15440 (*sibcall_pop): Merge insn pattern from *sibcall_pop_0 and
15441 *sibcall_pop_1. Use "Uz" constraint for operand 0.
15442 (*sibcall_pop_vzeroupper): Ditto.
15443 (*call_value): Merge insn pattern from *call_value_0, *call_value_1,
15444 *call_value_1_rex64 and *call_value_1_rex64_large patterns using "P"
15445 mode iterator. Use "<c>zm" constraint for operand 1.
15446 (*call_value_vzeroupper): Ditto.
15447 (*call_value_rex64_ms_sysv): Ditto. Use "rzm" constraint
15449 (*call_value_rex64_ms_sysv_vzeroupper): Ditto.
15450 (*call_value_pop): Merge insn pattern from *call_value_pop_0 and
15451 *call_value_pop_1. Use "lzm" constraint for operand 1.
15452 (*call_value_pop_vzeroupper): Ditto.
15453 (*sibcall_value): Merge insn pattern from *sibcall_value_0,
15454 *sibcall_value_1 and *sibcall_value_1_rex64 patterns using "P"
15455 mode iterator. Use "Uz" constraint for operand 1.
15456 (*sibcall_value_vzeroupper): Ditto.
15457 (*sibcall_value_rex64_ms_sysv): Ditto.
15458 (*sibcall_value_rex64_ms_sysv_vzeroupper): Ditto.
15459 (*sibcall_value_pop): Rename from *sibcall_pop_1. Use "Uz"
15460 constraint for operand 1.
15461 (*sibcall_value_pop_vzeroupper): Ditto.
15462 (*tls_global_dynamic_64): Use constant_call_address_operand predicate
15463 and "z" constraint for operand 2.
15464 (*tls_global_dynamic_32_gnu): Ditto.
15465 (*tls_local_dynamic_base_32_gnu): Ditto.
15466 (*tls_local_dynamic_base_64): Ditto.
15467 (*tls_local_dynamic_32_once): Ditto.
15468 * config/i386/i386.c (ix86_output_call_insn): Remove int_addr argument.
15469 Update all callers.
15470 * config/i386/i386-protos.h (ix86_output_call_insn): Update prototype.
15472 2011-05-16 Richard Guenther <rguenther@suse.de>
15474 * gimple.c (gimple_types_compatible_p_1): Use names of the
15475 type itself, not its main variant.
15476 (iterative_hash_gimple_type): Likewise.
15478 2011-05-16 Richard Guenther <rguenther@suse.de>
15480 * gimple.c (iterative_hash_gimple_type): Re-instantiate change to
15481 always visit pointer target and function result and argument types.
15483 2011-05-16 Jason Merrill <jason@redhat.com>
15486 * tree-inline.c (copy_statement_list): Put back recursion.
15488 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
15492 * config/avr/predicates.md (const_8_16_24_operand): New predicate.
15493 * config/avr/avr.md ("*ior<mode>qi.byte0",
15494 "*ior<mode>qi.byte1-3"): New define_insn_and_split patterns.
15496 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
15499 * config/avr/avr.c (avr_function_arg_advance): Error if a fixed
15500 register is needed for a function argument.
15502 2011-05-16 Richard Guenther <rguenther@suse.de>
15504 * gimple.c (struct type_hash_pair): New type.
15505 (type_hash_pair_compare): New function.
15506 (iterative_hash_gimple_type): Mix in SCC member hashes in hash-order.
15508 2011-05-16 Revital Eres <revital.eres@linaro.org>
15510 * modulo-sched.c (doloop_register_get): Check !DEBUG_INSN_P first.
15512 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
15514 * config/i386/i386.md (floating point move splitters): Fix
15515 usage of standard_80387_constant_p.
15516 * config/i386/i386.c (ix86_preferred_reload_class): Ditto.
15518 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
15520 * config/i386/i386.md (*movdf_internal): Simplify insn condition.
15522 2011-05-14 Eric Botcazou <ebotcazou@adacore.com>
15524 * tree-ssa-loop-im.c (SET_ALWAYS_EXECUTED_IN): New macro.
15525 (fill_always_executed_in): Use [SET_]ALWAYS_EXECUTED_IN.
15526 (tree_ssa_lim_finalize): Likewise.
15528 2011-05-14 Uros Bizjak <ubizjak@gmail.com>
15530 * config/i386/constraint.md (Yd, Yx): New register constraints.
15531 * config/i386/i386.md (*pushdf): Merge with *pushdf_nointeger. Use
15532 Yd conditional register constraint.
15533 (*movtf_internal): Use standard_sse_constant_opcode.
15534 (*movxf_internal): Merge with *movxf_internal_nointeger. Use
15535 Yx conditional register constraint.
15536 (*movdf_internal): Merge with *movdf_internal_nointeger. Use
15537 Yd conditional register constraint. Use standard_sse_constant_p to
15538 check for valid SSE constants and call standard_sse_constant_opcode to
15540 (*movsf_internal): Use standard_sse_constant_p to check for valid SSE
15541 constants and call standard_sse_constant_opcode to output SSE insn.
15542 * config/i386/i386.c (ix86_option_ovverride_internal): Set
15543 TARGET_INTEGER_DFMODE_MOVES for 64bit targets. Clear it when
15544 optimize_size is set.
15545 (standard_sse_constant_opcode): Output conditional AVX insn templates.
15547 2011-05-14 Tobias Burnus <burnus@net-b.de>
15549 * doc/invoke.texi (-Ofast): Also enables -fstack-arrays.
15551 2011-05-13 Martin Jambor <mjambor@suse.cz>
15553 * ipa-prop.c (ipa_cst_from_jfunc): New function.
15554 * ipa-prop.h (ipa_cst_from_jfunc): Declare.
15555 * ipa-inline-analysis.c (evaluate_conditions_for_edge): Use it.
15556 (evaluate_conditions_for_ipcp_clone): Removed.
15557 (estimate_ipcp_clone_size_and_time): Accept vector of known constants.
15558 * ipa-cp.c (ipcp_estimate_growth): Build vector of known constants.
15559 * ipa-inline.h (estimate_ipcp_clone_size_and_time): Update.
15561 2011-05-13 Eric Botcazou <ebotcazou@adacore.com>
15563 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Adjust dump message.
15564 * regcprop.c (copyprop_hardreg_forward): Test MAY_HAVE_DEBUG_INSNS in
15565 lieu of MAY_HAVE_DEBUG_STMTS.
15566 * tree-cfgcleanup.c (remove_forwarder_block): Do not attempt to move
15567 debug statements if !MAY_HAVE_DEBUG_STMTS.
15569 2011-05-13 Martin Thuresson <martint@google.com>
15571 PR gcov-profile/47793
15572 * libgcov.c (gcov_exit): Support relative profile paths.
15573 * doc/invoke.texi (-fprofile-dir): Update for above change.
15575 2011-05-13 Richard Guenther <rguenther@suse.de>
15577 * gimple.c (gimple_canonical_types_compatible_p): Do not use
15578 type-pair caching, do not compare hashes.
15580 2011-05-13 Nathan Froyd <froydnj@codesourcery.com>
15582 PR middle-end/48965
15583 * tree-cfg.c (edge_to_cases_cleanup): Return true.
15584 (verify_expr) [CASE_LABEL_EXPR]: Add checking.
15586 2011-05-13 Kai Tietz <ktietz@redhat.com>
15588 * gimplify.c (gimplify_expr): Make sure operand is boolified.
15589 * tree-cfg.c (verify_gimple_assign_unary): Check for boolean
15590 compatible type for TRUTH_NOT_EXPR.
15592 2011-05-13 H.J. Lu <hongjiu.lu@intel.com>
15594 * config/i386/i386.c (ix86_save_reg): Change return type to bool.
15595 (ix86_hard_regno_mode_ok): Change return value to bool. Use
15596 can_create_pseudo_p ().
15598 2011-05-13 Richard Guenther <rguenther@suse.de>
15601 * gimple.c (iterative_hash_gimple_type): Revert change in
15602 pointer target and function result and argument hashing.
15604 2011-05-13 Uros Bizjak <ubizjak@gmail.com>
15606 * config/i386/i386.md (*movxf_internal): Use !can_create_pseudo ().
15607 (*movxf_internal_nointeger): Ditto.
15608 (*movdf_internal_rex64): Ditto.
15609 (*movdf_internal): Ditto.
15610 (*movdf_internal_nointeger): Ditto.
15611 (*movsf_internal): Ditto.
15612 (sincos splitters): Use can_create_pseudo ().
15614 2011-05-13 Joseph Myers <joseph@codesourcery.com>
15616 * config/i386/i386-opts.h: New.
15617 * gcc/config/i386/i386.c (stringop_alg, ix86_cmodel,
15618 ix86_asm_dialect, ix86_regparm, ix86_abi, ix86_branch_cost,
15619 ix86_section_threshold): Remove.
15620 (ix86_handle_option): Move MAX_CODE_ALIGN define here. Handle
15621 OPT_malign_loops_, OPT_malign_jumps_, OPT_malign_functions_ and
15623 (ix86_option_override_internal): Don't decode strings for options
15624 other than -march=, -mtune= and -mfpmath=. Don't allow for
15625 __attribute__ uses in remaining diagnostics for options with
15626 string arguments. Don't check for integer arguments being negative.
15627 * gcc/config/i386/i386.h (enum stringop_alg, enum calling_abi,
15628 enum tls_dialect, enum cmodel, enum asm_dialect): Move to i386-opts.h.
15629 (ix86_abi, ix86_tls_dialect, ix86_cmodel, ix86_asm_dialect,
15630 ix86_branch_cost, ix86_section_threshold): Remove.
15631 * gcc/config/i386/i386.opt (config/i386/i386-opts.h): New
15633 (malign-functions=, malign-jumps=, malign-loops=): Use UInteger
15635 (masm=): Use Enum and Init.
15636 (asm_dialect): New Enum and EnumValue entries.
15637 (mbranch-cost=): Use UInteger.
15638 (mlarge-data-threshold=): Use UInteger and Init.
15639 (mcmodel=): Use Enum and Init.
15640 (cmodel): New Enum and EnumValue entries.
15641 (mpc): Replace with separate mpc32, mpc64 and mpc80 entries.
15642 (mpreferred-stack-boundary=, mincoming-stack-boundary=,
15643 mregparm=): Use UInteger.
15644 (mstringop-strategy=): Use Enum and Init.
15645 (stringop_alg): New Enum and EnumValue entries.
15646 (mtls-dialect=): Use Enum and Init.
15647 (tls_dialect): New Enum and EnumValue entries.
15648 (mabi=): Use Enum and Init.
15649 (calling_abi): New Enum and EnumValue entries.
15650 (mveclibabi=): Use Enum and Init.
15651 (ix86_veclibabi): New Enum and EnumValue entries.
15653 2011-05-13 Nick Clifton <nickc@redhat.com>
15655 * config/rx/rx.md (mov expander): Fix use of rx_legitimate_constant_p.
15656 * config/rx/rx-protos.h (rx_legitimate_constant_p): Rename prototype.
15658 2011-05-13 Kai Tietz <ktietz@redhat.com>
15660 PR middle-end/48984
15661 * gimplify.c (gimplify_expr): Check for boolean_type_node instead
15662 for BOOLEAN_TYPE for TRUTH-NOT/AND/OR/XOR.
15663 (gimple_boolify): Check for cast for boolean_type_node instead for
15666 2011-05-13 Richard Guenther <rguenther@suse.de>
15668 PR tree-optimization/48172
15669 * tree-vect-loop-manip.c (vect_vfa_segment_size): Avoid
15670 multiplying by number of iterations for equal step.
15671 (vect_create_cond_for_alias_checks): Likewise.
15673 2011-05-13 Andreas Schwab <schwab@redhat.com>
15675 * configure.ac: Use AS_HELP_STRING throughout.
15676 * configure: Regenerate.
15678 2011-05-12 H.J. Lu <hongjiu.lu@intel.com>
15680 * config/i386/i386.c (ix86_save_reg): Change maybe_eh_return to bool.
15681 (ix86_emit_restore_regs_using_mov): Likewise.
15682 (ix86_emit_restore_sse_regs_using_mov): Likewise.
15684 2011-05-12 Anatoly Sokolov <aesok@post.ru>
15686 * config/sparc/sparc.h (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P,
15687 SYMBOLIC_CONST, RTX_OK_FOR_BASE_P, RTX_OK_FOR_INDEX_P): Remove.
15688 (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Move to...
15689 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P,
15690 RTX_OK_FOR_OLO10_P): ...here.
15691 (sparc_mode_dependent_address_p): Use symbolic_operand instead of
15694 2011-05-12 Kai Tietz <ktietz@redhat.com>
15696 * gimplify.c (gimple_boolify): Re-boolify expression
15697 arguments even if expression type is of kind BOOLEAN_TYPE.
15698 (gimplify_boolean_expr): Removed.
15699 (gimplify_expr): Boolify truth opcodes AND, ANDIF, OR, ORIF,
15700 and XOR. Additional take care that we keep expression's type.
15701 * tree-cfg.c (verify_gimple_assign_binary): Adjust check for type
15702 of TRUTH_AND|OR|XOR_EXPR.
15704 2011-05-12 Jakub Jelinek <jakub@redhat.com>
15706 PR tree-optimization/48975
15707 * tree-if-conv.c (combine_blocks): Call free_bb_predicate
15708 on all bbs here and free and clear ifc_bbs at the end.
15710 2011-05-12 Richard Guenther <rguenther@suse.de>
15712 * gimple.c (gtc_visit): Compare TREE_ADDRESSABLE, handle
15713 NULLPTR_TYPE similar to VOID_TYPE. Defer type-leader lookup
15714 until after simple checks.
15715 (gimple_types_compatible_p): Likewise.
15716 (iterative_hash_gimple_type): Always hash pointer targets
15717 and function return and argument types.
15718 (iterative_hash_canonical_type): Do not hash TYPE_QUALS,
15719 hash TYPE_ALIGN. Do not hash TYPE_MIN/MAX_VALUE.
15720 (gimple_canonical_types_compatible_p): Compare TREE_ADDRESSABLE,
15721 handle NULLPTR_TYPE similar to VOID_TYPE. Handle non-aggregates
15722 completely in the simple compare section.
15723 (gimple_register_canonical_type): Query the cache again after
15726 2011-05-12 Richard Guenther <rguenther@suse.de>
15728 PR tree-optimization/48172
15729 * tree-vect-loop-manip.c (vect_vfa_segment_size): Do not exclude
15730 the number of iterations from the segment size calculation.
15731 (vect_create_cond_for_alias_checks): Adjust.
15733 2011-05-12 Jakub Jelinek <jakub@redhat.com>
15736 * var-tracking.c (use_narrower_mode_test) <case REG>: Return 1
15737 if validate_subreg fails.
15739 2011-05-12 Hariharan Sandanagobalane <hariharan@picochip.com>
15741 * ira.c (clarify_prohibited_class_mode_regs): Prevent the function from
15742 accessing beyond the end of REGNO_REG_CLASS array by stopping the loop
15745 2011-05-12 DJ Delorie <dj@redhat.com>
15747 * config/rx/rx.c (rx_builtins): New arrays - holds builtin functions.
15748 (ADD_RX_BUILTIN1, ADD_RX_BUILTIN2, ADD_RX_BUILTIN3): Install
15749 created builtin into rx_builtins array.
15750 (rx_builtin_decl): New function.
15751 (TARGET_BUITLIN_DECL): Define. Include gt-rx.h.
15753 2011-05-12 DJ Delorie <dj@redhat.com>
15754 Nick Clifton <nickc@redhat.com>
15756 * config/rx/rx.h (HAVE_PRE_DECREMENT): Fix typo.
15757 * config/rx/rx.c (CC_FLAG_FP): Fix comment.
15758 (rx_is_legitimate_address): Add pre-decrement and post-increment
15759 addressing in HImode and QImode. Fix test for out of range
15760 REG+INT addressing.
15761 (rx_legitimate_constant_p): Rename to rx_is_legitimate_constant.
15762 (rx_align_for_label): Test label before extracting its usage count.
15763 (rx_adjust_insn_lengths): Fix selection of insn codes.
15764 (TARGET_LEGITIMATE_CONSTANT_P): Use renamed function.
15766 2011-05-11 Jason Merrill <jason@redhat.com>
15768 * tree.c (type_hash_canon): Use struct tree_type_non_common.
15770 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
15772 * cfgrtl.c (commit_one_edge_insertion): Remove always-true test and
15773 reindent the subsequent block.
15775 2011-05-11 Satoru Takabayashi <satorux@google.com>
15776 Paul Pluzhnikov <ppluzhnikov@google.com>
15778 * doc/install.texi (Configuration): Document --with-linker-hash-style.
15779 * gcc.c (init_spec): Handle LINKER_HASH_STYLE.
15780 * config.in: Add LINKER_HASH_STYLE.
15781 * configure.ac: Add --with-linker-hash-style.
15782 * configure: Regenerate.
15784 2011-05-11 Richard Guenther <rguenther@suse.de>
15786 PR middle-end/48964
15787 * gimple.c (iterative_hash_canonical_type): Fix typo.
15789 2011-05-11 Uros Bizjak <ubizjak@gmail.com>
15791 * config/i386/i386.c (legitimize_tls_address)
15792 <case TLS_MODEL_GLOBAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
15793 expanders directly for TARGET_GNU2_TLS. Determine pic and
15794 __tls_get_addr symbol reference here. Update call to
15795 gen_tls_global_dynamic_{32,64} for added arguments.
15796 <case TLS_MODEL_LOCAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
15797 expanders directly for TARGET_GNU2_TLS. Determine
15798 __tls_get_addr symbol reference here. Update call to
15799 gen_tls_local_dynamic_base_{32,64} for added arguments. Attach
15800 unique UNSPEC REG_EQUIV to libcall block.
15801 (ix86_tls_get_addr): Declare static.
15802 * config/i386/i386-protos.h (ix86_tls_get_addr): Remove declaration.
15803 * config/i386/i386.md (tls_global_dynamic_32): Add operand 2 and 3.
15804 Do not determine pic and __tls_get_addr symbol reference here. Do not
15805 call gen_tls_dynamic_gnu2_32 for TARGET_GNU2_TLS.
15806 (tls_local_dynamic_base_32): Ditto for operands 1 and 2.
15807 (tls_global_dynamic_64): Add operand 2. Do not determine
15808 __tls_get_addr symbol reference here. Do not call
15809 gen_tls_dynamic_gnu2_64 for TARGET_GNU2_TLS here.
15810 (tls_local_dynamic_base64): Ditto for operand 1.
15812 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
15814 * function.c (expand_function_start): Initialize stack_check_probe_note
15815 only if the generic stack checking mechanism is used.
15817 2011-05-11 Richard Guenther <rguenther@suse.de>
15819 PR tree-optimization/15256
15820 * tree-ssa-forwprop.c (simplify_bitwise_binary): Canonicalize
15821 (A & B) | C, combine (A op CST1) op CST2.
15822 (tree_ssa_forward_propagate_single_use_vars): Only bother to
15823 visit assigns that have uses.
15825 2011-05-11 Nathan Froyd <froydnj@codesourcery.com>
15827 * ggc-page.c (extra_order_size_table): Use struct tree_type_non_common.
15828 * lto-streamer-in.c (unpack_ts_type_value_fields): Rename to...
15829 (unpack_ts_type_common_value_fields): ...this. Update comment.
15830 (unpack_value_fields): Adjust for renaming.
15831 (lto_input_ts_type_tree_pointers): Split into...
15832 (lto_input_ts_type_common_tree_pointer): ...this and...
15833 (lto_input_ts_type_non_common_tree_pointers): ...this.
15834 (lto_input_tree_pointers): Adjust for above split.
15835 * lto-streamer-out.c (pack_ts_type_value_fields): Rename to...
15836 (pack_ts_type_common_value_fields): ...this. Update comment.
15837 (lto_output_ts_type_tree_pointers): Split into...
15838 (lto_output_ts_type_common_tree_pointers): ...this and...
15839 (lto_output_ts_type_non_common_tree_pointers): ...this.
15840 (lto_output_tree_pointers): Adjust for above split.
15841 * lto-streamer.c (check_handled_ts_structures): Mark TS_TYPE_COMMON,
15842 TS_TYPE_WITH_LANG_SPECIFIC, and TS_TYPE_NON_COMMON as handled.
15843 * stor-layout.c (vector_type_mode): Adjust location of mode field.
15844 * tree.h (MARK_TS_TYPE_COMMON, MARK_TS_TYPE_WITH_LANG_SPECIFIC):
15846 (struct tree_type): Split into...
15847 (struct tree_type_common: ...this and...
15848 (struct tree_type_with_lang_specific): ...this and...
15849 (struct tree_type_non_common): ...this. Adjust accessor macros
15851 (TYPE_VALUES_RAW): Define.
15852 (union tree_node): Update for above changes.
15853 * tree.c (tree_node_structure_for_code) [tcc_type]: Return
15854 TS_TYPE_NON_COMMON.
15855 (initialize_tree_contains_struct) [TS_TYPE]: Use TS_TYPE_COMMON.
15856 Add TS_TYPE_WITH_LANG_SPECIFIC and TS_TYPE_NON_COMMON.
15857 (tree_code_size) [tcc_type]: Use struct tree_type_non_common.
15858 * treestructu.def (TS_TYPE): Remove.
15859 (TS_TYPE_COMMON, TS_TYPE_WITH_LANG_SPECIFIC, TS_TYPE_NON_COMMON):
15862 2011-05-11 Jakub Jelinek <jakub@redhat.com>
15865 * tree-ssa.c (reset_debug_uses): New function.
15866 * tree-flow.h (reset_debug_uses): New prototype.
15867 * tree-data-ref.c (stmts_from_loop): Ignore debug stmts.
15868 * tree-loop-distribution.c (generate_loops_for_partition): Call
15869 reset_debug_uses on the stmts that will be removed. Keep around
15870 all debug stmts, don't count them as bits in partition bitmap.
15871 (generate_builtin): Don't count debug stmts or labels as bits in
15874 2011-05-11 Richard Guenther <rguenther@suse.de>
15876 * gimple.c (gimple_type_hash_1): Merge with ...
15877 (gimple_type_hash): ... this.
15878 (gtc_visit): Remove mode parameter and simplify accordingly.
15879 (gimple_types_compatible_p_1): Likewise.
15880 (gimple_types_compatible_p): Likewise.
15881 (iterative_hash_gimple_type): Likewise.
15883 (gimple_type_eq): Adjust.
15885 2011-05-11 Revital Eres <revital.eres@linaro.org>
15887 * ddg.c (create_ddg_dep_from_intra_loop_link): If a true dep edge
15888 enters the branch create an anti edge in the opposite direction
15889 to prevent the creation of reg-moves.
15890 * modulo-sched.c: Adjust comment to reflect the fact we are
15891 scheduling closing branch.
15892 (PS_STAGE_COUNT): Rename to CALC_STAGE_COUNT and redefine.
15893 (stage_count): New field in struct partial_schedule.
15894 (calculate_stage_count): New function.
15895 (normalize_sched_times): Rename to reset_sched_times and handle
15896 incrementing the sched time of the nodes by a constant value
15897 passed as parameter.
15898 (duplicate_insns_of_cycles): Skip closing branch.
15899 (sms_schedule_by_order): Schedule closing branch.
15900 (ps_insn_find_column): Handle closing branch.
15901 (sms_schedule): Call reset_sched_times and adjust the code to
15902 support scheduling of the closing branch.
15903 (ps_insert_empty_row): Update calls to normalize_sched_times
15904 and rotate_partial_schedule functions.
15906 2011-05-11 Richard Guenther <rguenther@suse.de>
15908 PR middle-end/48953
15909 * tree-inline.c (remap_gimple_op_r): Also remap types of MEM_REFs.
15911 2011-05-11 Joseph Myers <joseph@codesourcery.com>
15913 * opts.c (finish_options): Move warning settings from process_options.
15914 * toplev.c (process_options): Move warning settings to finish_options.
15916 2011-05-11 Richard Guenther <rguenther@suse.de>
15918 PR tree-optimization/18041
15919 * tree-ssa-forwprop.c (simplify_bitwise_and): Rename to ...
15920 (simplify_bitwise_binary): ... this. Handle operand conversions
15921 by applying them to the result instead.
15922 (tree_ssa_forward_propagate_single_use_vars): Adjust. CSE tree code.
15924 2011-05-11 Richard Guenther <rguenther@suse.de>
15926 * gimple.c (gimple_canonical_types_compatible_p): Split out
15927 from gimple_types_compatible_p and friends. Do not recurse
15928 to pointed-to types.
15929 (gimple_canonical_type_eq): Use it.
15930 (iterative_hash_canonical_type): Split out from
15931 iterative_hash_gimple_type and friends. Do not recurse
15932 to pointed-to types.
15933 (gimple_canonical_type_hash): Use it, allocate the hash here.
15935 2011-05-11 Revital Eres <revital.eres@linaro.org>
15937 * modulo-sched.c (doloop_register_get): Ignore DEBUG_INSNs while
15938 recognizing doloop.
15940 2011-05-11 Revital Eres <revital.eres@linaro.org>
15942 * loop-doloop.c (doloop_condition_get): Use prev_nondebug_insn
15943 instead of PREV_INSN.
15945 2011-05-11 Revital Eres <revital.eres@linaro.org>
15947 * modulo-sched.c (sms_schedule): Support new form of doloop pattern
15948 * loop-doloop.c (doloop_condition_get): Likewise.
15949 * config/arm/thumb2.md (*thumb2_addsi3_compare0): Remove "*".
15951 * config/arm/arm.md (*addsi3_compare0): Remove "*".
15953 2011-05-10 Nathan Froyd <froydnj@codesourcery.com>
15955 * tree.def (CASE_LABEL_EXPR): Add an operand.
15956 * tree.h (CASE_CHAIN): Use TREE_OPERAND instead of TREE_CHAIN.
15958 2011-05-10 Joseph Myers <joseph@codesourcery.com>
15960 * c-decl.c (c_override_global_bindings_to_false): Remove.
15961 (global_bindings_p): Don't check
15962 c_override_global_bindings_to_false.
15963 * c-tree.h (c_override_global_bindings_to_false): Remove.
15964 * c-typeck.c (composite_type): Don't set
15965 c_override_global_bindings_to_false.
15967 2011-05-10 Michael Meissner <meissner@linux.vnet.ibm.com>
15969 PR target/48857, 48495
15970 * config/rs6000/rs6000.h (VSX_SCALAR_MODE): Delete.
15972 (VSX_MOVE_MODE): Ditto.
15973 (ALTIVEC_OR_VSX_VECTOR_MODE): New macro, combine all Altivec and
15974 VSX vector types. Add V2DImode.
15975 (HARD_REGNO_CALLER_SAVE_MODE): Use it instead of
15976 ALTIVEC_VECTOR_MODE and VSX_VECTOR_MODE calls.
15977 (MODES_TIEABLE_P): Ditto.
15979 * config/rs6000/rs6000.c (rs6000_emit_move): Use
15980 ALTIVEC_OR_VSX_MODE instead of ALTIVEC_VECTOR_MODE and
15982 (init_cumulative_args): Ditto.
15983 (rs6000_function_arg_boundary): Ditto.
15984 (rs6000_function_arg_advance_1): Ditto.
15985 (rs6000_function_arg): Ditto.
15986 (rs6000_function_ok_for_sibcall): Ditto.
15987 (emit_frame_save): Ditto.
15988 (rs6000_function_value): Ditto.
15989 (rs6000_libcall_value): Ditto.
15991 2011-05-10 Joseph Myers <joseph@codesourcery.com>
15993 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
15994 i386/darwin-lib.h to $libgcc_tm_file.
15995 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Remove.
15997 2011-05-10 Joseph Myers <joseph@codesourcery.com>
15999 * doc/sourcebuild.texi (Back End): Mention contrib/config-list.mk.
16001 2011-05-10 Joseph Myers <joseph@codesourcery.com>
16003 * config/rs6000/genopt.sh, config/rs6000/rs6000-cpus.def: New files.
16004 * config/rs6000/rs6000-tables.opt: New file (generated).
16005 * config.gcc (powerpc*-*-*, rs6000*-*-*): Add
16006 rs6000/rs6000-tables.opt to extra_options.
16007 * config/rs6000/rs6000-opts.h (RS6000_CPU_OPTION_NATIVE): Define.
16008 * config/rs6000/rs6000.c (rs6000_select): Remove.
16009 (processor_target_table): Move contents to rs6000-cpus.def.
16010 (darwin_rs6000_override_options): Check
16011 global_options_set.x_rs6000_cpu_index instead of
16012 rs6000_select[1].string.
16013 (rs6000_option_override_internal): Likewise.
16014 (rs6000_handle_option): Don't assert that global structures are in
16015 use. Don't handle OPT_mcpu_ and OPT_mtune_ here.
16016 (rs6000_default_cpu): New variable.
16017 (rs6000_file_start): Set it instead of local default_cpu. Check
16018 rs6000_default_cpu, global_options_set.x_rs6000_cpu_index and
16019 global_options_set.x_rs6000_tune_index instead of rs6000_select.
16020 (rs6000_darwin_file_start): Check rs6000_default_cpu and
16021 global_options_set.x_rs6000_cpu_index instead of rs6000_select.
16022 * config/rs6000/rs6000.h (struct rs6000_cpu_select,
16023 rs6000_select): Remove.
16024 * config/rs6000/rs6000.opt (rs6000_cpu_index, rs6000_tune_index):
16026 (mcpu=, mtune=): Use Var, Init, Enum and Save.
16027 * config/rs6000/t-rs6000
16028 ($(srcdir)/config/rs6000/rs6000-tables.opt): New.
16029 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
16030 global_options_set.x_rs6000_cpu_index instead of
16031 rs6000_select[1].string.
16032 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
16033 global_options_set.x_rs6000_cpu_index instead of
16034 rs6000_select[1].string.
16036 2011-05-10 Joseph Myers <joseph@codesourcery.com>
16038 * config.gcc (libgcc_tm_file): Define instead of including files
16039 from ../../libgcc/config/ in tm_file.
16040 * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list): Define.
16041 * configure: Regenerate.
16042 * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list,
16043 libgcc_tm.h, cs-libgcc_tm.h): New.
16044 (TM_H): Include libgcc_tm.h and $(libgcc_tm_file_list).
16045 (clean): Remove libgcc_tm.h.
16046 * config/arm/symbian.h (RENAME_LIBRARY): Remove.
16047 * mkconfig.sh: Include libgcc_tm.h in tm.h if USED_FOR_TARGET.
16048 * system.h (DECLARE_LIBRARY_RENAMES): Poison.
16050 2011-05-10 Georg-Johann Lay <avr@gjlay.de>
16053 * config/avr/avr.c (avr_ret_register): Return unsigned int
16055 (avr_function_value): Mark fn_decl_or_type as unused, don't pass
16056 it to avr_libcall_value.
16057 avr_expand_builtin): Use EXPAND_NORMAL as arg 4 in calls to
16059 (avr_expand_binop_builtin): Ditto.
16060 (avr_expand_unop_builtin): Ditto.
16062 2011-05-10 DJ Delorie <dj@redhat.com>
16064 * config/rx/rx.h (JUMP_ALIGN, LABEL_ALIGN, LOOP_ALIGN): Define.
16065 (LABEL_ALIGN_AFTER_BARRIER): Pass label to rx_align_for_label
16066 * config/rx/rx.c (rx_align_for_label): Add label and
16067 uses_threshold parameters. Do not align when the label is not
16069 * config/rx/rx-protos.h (rx_align_for_label): Update prototype.
16071 2011-05-10 Richard Guenther <rguenther@suse.de>
16073 * tree-ssa-forwprop.c (combine_conversions): Pattern-match
16074 a series of conversions and apply foldings similar to what
16076 (tree_ssa_forward_propagate_single_use_vars): Call it.
16078 2011-05-10 Jakub Jelinek <jakub@redhat.com>
16080 PR tree-optimization/48611
16081 PR tree-optimization/48794
16082 * tree-eh.c (remove_unreachable_handlers): Don't remove regions
16083 referenced from RESX or EH_DISPATCH arguments.
16086 * dfp.c (decimal_to_decnumber): Handle conversion from
16087 dconst{1,2,m1,half}.
16089 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
16091 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Return 0
16092 for !flag_prefer_avx128.
16093 (ix86_preferred_simd_mode): Return word_mode for DFmode without SSE2.
16095 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
16097 * fold-const.c (fold_range_test): Pass LOC to build_range_check.
16098 (fold_ternary_loc): Use expr_location_or.
16100 2011-05-09 H.J. Lu <hongjiu.lu@intel.com>
16103 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: If
16104 POINTERS_EXTEND_UNSIGNED is defined, don't give up if mode is
16105 Pmode and mem_mode is not VOIDmode.
16107 2011-05-09 Ville Voutilainen <ville.voutilainen@gmail.com>
16109 * tree.h (TYPE_UNQUALIFIED, TYPE_QUAL_CONST, TYPE_QUAL_VOLATILE,
16110 TYPE_QUAL_RESTRICT): Convert to enum.
16112 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
16114 * config/i386/predicates.md (const_pow2_1_to_2_operand): Remove.
16115 (const_pow2_1_to_8_operand): Ditto.
16116 (const_pow2_1_to_128_operand): Ditto.
16117 (const_pow2_1_to_32768_operand): Ditto.
16118 * config/i386/mmx.md (*mmx_pinsrw): Use const_int_operand instead of
16119 const_pow2_1_to_8_operand for operand 3 predicate. Use exact_log2
16120 in insn constraint to check integer value of operand 3.
16121 * config/i386/sse.md (*vec_setv4sf_sse4_1): Ditto.
16123 (PINSR_MODE): New mode iterator.
16124 (sse2p4_1): New mode attribute.
16125 (<sse2p4_1>_pinsr<ssemodesuffix>): Merge insn from sse4_1_pinsrb,
16126 sse2_pinsrw, sse4_1_pinsrd and sse4_1_pinsrq using PINSR_MODE mode
16127 iterator. Use const_int_operand instead of
16128 const_pow2_1_to_{2,8,128,32768}_operand for operand 3 predicate. Use
16129 exact_log2 in insn constraint to check integer value of operand 3.
16131 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
16133 * config/i386/sse.md (blendbits): Remove mode attribute.
16134 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
16135 instead of const_0_to_<blendbits>_operand for operand 3 predicate.
16136 Check integer value of operand 3 in insn constraint.
16138 2011-05-09 Richard Guenther <rguenther@suse.de>
16140 * lto-symtab.c (lto_cgraph_replace_node): Use types_compatible_p
16142 (lto_symtab_merge): Likewise. Do not register types here.
16143 (lto_symtab_merge_decls_2): Likewise.
16144 (lto_symtab_merge_decls_1): Likewise.
16145 * gimple.h (enum gtc_mode, gimple_types_compatible_p): Do not declare.
16146 * gimple.c (enum gtc_mode): Declare.
16147 (gimple_types_compatible_p): Make static.
16149 2011-05-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
16151 * config/s390/s390.md (TD/TF mem to reg move splitter): Make the
16152 temporary register to match Pmode.
16154 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
16156 * config/i386/sse.md (*vec_concatv4si): Merge from *vec_concatv4si_1
16157 and *vec_concatv4si_1_avx.
16159 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
16161 PR rtl-optimization/48927
16162 * ira-conflicts.c (commutative_constraint_p): Use
16163 recog_data.alternative_enabled_p to disable alternatives where
16164 "enabled" attribute is false.
16165 (get_dup_num): Ditto.
16166 * ira-lives.c (single_reg_class): Ditto.
16167 (ira_implicitly_set_insn_hard_regs): Ditto.
16169 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
16171 * var-tracking.c (find_mem_expr_in_1pdv): Fix thinko.
16172 (dataflow_set_preserve_mem_locs): Likewise.
16174 2011-05-09 Philipp Thomas <pth@suse.de>
16176 * config/mep/mep.c (mep_validate_vliw): Syntax description
16177 should not be translated.
16179 2011-05-09 Joseph Myers <joseph@codesourcery.com>
16181 * config/mips/genopt.sh, config/mips/mips-cpus.def: New files.
16182 * config/mips/mips-tables.opt: New file (generated).
16183 * config.gcc (mips*-*-*): Add mips/mips-tables.opt to extra_options.
16184 * config/mips/mips-opts.h (MIPS_ARCH_OPTION_FROM_ABI,
16185 MIPS_ARCH_OPTION_NATIVE): Define.
16186 * config/mips/mips.c (mips_cpu_info_table): Move contents to
16188 (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p,
16189 mips_parse_cpu): Remove.
16190 (mips_cpu_info_from_opt, mips_default_arch): New.
16191 (mips_handle_option): Don't assert that global structures are in
16192 use. Don't handle OPT_march_, OPT_mtune_ and OPT_mips here.
16193 (mips_option_override): Use new variables and functions to set
16194 state of these options. Use strcmp to check for individual CPU names.
16195 * config/mips/mips.h (MIPS_CPU_STRING_DEFAULT): Remove default
16197 * config/mips/mips.opt (march=): Use ToLower and Enum.
16198 (mips): Use ToLower, Enum and Var.
16199 (mtune=): Use ToLower and Enum.
16200 * config/mips/t-mips ($(srcdir)/config/mips/mips-tables.opt): New.
16202 2011-05-08 Jan Hubicka <jh@suse.cz>
16204 * gimple.c (type_pair_hash, type_pair_eq, lookup_type_pair):
16205 Arrange type pairs to be UID ordered.
16206 (gimple_lookup_type_leader): Make inline.
16208 2011-05-09 Nick Clifton <nickc@redhat.com>
16211 * config/iq2000/iq2000.opt (iq2000_tune): Initialise to
16215 * config/mn10300/mn10300.c (extract_bundle): Remove spurious local
16218 2011-05-08 Chung-Lin Tang <cltang@codesourcery.com>
16220 * combine.c (simplify_comparison): Abstract out parts into...
16221 (simplify_compare_const): ... new function.
16222 (try_combine): Generalize parallel arithmetic/compare combining
16223 to call simplify_compare_const() and CANONICALIZE_COMPARE().
16225 2011-05-08 Jan Hubicka <jh@suse.cz>
16227 * cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter.
16228 (cgraph_create_virtual_clone): Call hooks once virtual clone
16230 * cgraph.h (cgraph_clone_node): Update prototype.
16231 * ipa-cp.c (ipcp_estimate_growth): Use
16232 estimate_ipcp_clone_size_and_time.
16233 * ipa-inline-transform.c (clone_inlined_nodes): Update.
16234 * lto-cgraph.c (input_node): Update.
16235 * ipa-inline.c (recursive_inlining): Update.
16236 * ipa-inline.h (estimate_ipcp_clone_size_and_time): New function.
16237 (evaluate_conditions_for_known_args): Break out from ...
16238 (evaluate_conditions_for_edge): ... here.
16239 (evaluate_conditions_for_ipcp_clone): New function.
16240 (inline_node_duplication_hook): Update clone summary based
16242 (estimate_callee_size_and_time): Rename to ...
16243 (estimate_node_size_and_time): take NODE instead of EDGE;
16244 take POSSIBLE_TRUTHS as argument.
16245 (estimate_callee_size_and_time): Update.
16246 (estimate_ipcp_clone_size_and_time): New function.
16247 (do_estimate_edge_time): Update.
16249 2011-05-08 Richard Guenther <rguenther@suse.de>
16251 PR middle-end/48908
16252 PR middle-end/48905
16253 * expmed.c (expand_shift_1): Compute adjusted constant shift
16256 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
16258 * config/avr/avr.c (print_operand_address): Fix invalid RTL access.
16260 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
16262 * config/rs6000/rs6000.c (output_profile_hook): Fix thinko.
16264 2011-05-08 Jonathan Wakely <jwakely.gcc@gmail.com>
16266 * doc/invoke.texi (-fuse-linker-plugin): Improve grammar.
16268 2011-05-07 Jan Hubicka <jh@suse.cz>
16270 * ipa-inline-transform.c (inline_call): Account when program size
16272 * ipa-inline.c (relative_time_benefit): New function.
16273 (edge_badness): Reorganize to be power 2 based; fix thinko when
16274 computing badness for negative growth; update comments to match
16275 reality; better dumps.
16277 2011-05-07 Eric Botcazou <ebotcazou@adacore.com>
16279 * langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
16280 type to bool and adjust comment.
16281 * fold-const.c (fold_range_test): Adjust call to global_bindings_p.
16282 (fold_mathfn_compare): Remove calls to global_bindings_p.
16283 (fold_inf_compare): Likewise.
16284 * stor-layout.c (variable_size): Adjust call to global_bindings_p.
16285 * c-tree.h (global_bindings_p): Adjust prototype.
16286 * c-decl.c (global_bindings_p): Return bool and simplify.
16288 2011-05-07 Zdenek Dvorak <ook@ucw.cz>
16290 PR tree-optimization/48837
16291 * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
16292 when accumulator transformation is performed.
16294 2011-05-06 Jan Hubicka <jh@suse.cz>
16296 * i386.h (ix86_tune_indices): Add
16297 X86_TUNE_SOFTWARE_PREFETCHING_BENEFICIAL.
16298 (TARGET_SOFTWARE_PREFETCHING_BENEFICIAL): New macro.
16299 * i386.c (initial_ix86_tune_features): Add
16300 X86_SOFTARE_PREFETCHING_BENEFICIAL.
16301 (software_prefetching_beneficial_p): Remove predicate.
16302 (ix86_option_override_internal): Use new macro.
16304 2011-05-06 Jan Hubicka <jh@suse.cz>
16306 * ipa-inline.c (update_callee_keys): Don't reset node growth cache.
16308 2011-05-06 Jan Hubicka <jh@suse.cz>
16310 * cgraph.c (cgraph_add_thunk): Create real function node instead
16311 of alias node; finalize it and mark needed/reachale; arrange visibility
16312 to be right and add it into the corresponding same comdat group list.
16313 (dump_cgraph_node): Dump thunks.
16314 * cgraph.h (cgraph_first_defined_function, cgraph_next_defined_function,
16315 cgraph_function_with_gimple_body_p,
16316 cgraph_first_function_with_gimple_body,
16317 cgraph_next_function_with_gimple_body): New functions.
16318 (FOR_EACH_FUNCTION_WITH_GIMPLE_BODY, FOR_EACH_DEFINED_FUNCTION):
16320 * ipa-cp.c (ipcp_need_redirect_p): Thunks can't be redirected.
16321 (ipcp_generate_summary): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
16322 * cgraphunit.c (cgraph_finalize_function): Only look into possible
16323 devirtualization when optimizing.
16324 (verify_cgraph_node): Verify thunks.
16325 (cgraph_analyze_function): Analyze thunks.
16326 (cgraph_mark_functions_to_output): Output thunks only in combination
16327 with function they are assigned to.
16328 (assemble_thunk): Turn thunk into non-thunk; don't try to turn
16329 alias into normal node.
16330 (assemble_thunks): New functoin.
16331 (cgraph_expand_function): Use it.
16332 * lto-cgraph.c (lto_output_node): Stream thunks.
16333 (input_overwrite_node): Stream in thunks.
16334 * ipa-pure-const.c (analyze_function): Thunks do nothing interesting.
16335 * lto-streamer-out.c (lto_output): Do not try to output thunk's body.
16336 * ipa-inline.c (inline_small_functions): Use FOR_EACH_DEFINED_FUNCTION.
16337 * ipa-inline-analysis.c (compute_inline_parameters): "Analyze" thunks.
16338 (inline_analyze_function): Do not care about thunk jump functions.
16339 (inline_generate_summary):Use FOR_EACH_DEFINED_FUNCTION.
16340 * ipa-prop.c (ipa_prop_write_jump_functions): Use
16341 cgraph_function_with_gimple_body_p.
16342 * passes.c (do_per_function_toporder): Use
16343 cgraph_function_with_gimple_body_p.
16344 (execute_one_pass);Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
16345 (ipa_write_summaries): Use cgraph_function_with_gimple_body_p.
16346 (function_called_by_processed_nodes_p): Likewise.
16348 2011-05-06 Joseph Myers <joseph@codesourcery.com>
16350 * config/rs6000/rs6000.opt (rs6000_ieeequad, rs6000_altivec_abi,
16351 rs6000_spe_abi, rs6000_darwin64_abi): Remove TargetVariable
16353 (mabi=): Replace with separate entries for mabi=altivec,
16354 mabi=no-altivec, mabi=spe, mabi=no-spe, mabi=d64, mabi=d32,
16355 mabi=ieeelongdouble and mabi=ibmlongdouble.
16356 * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
16357 check for -mabi=spe without SPE ABI support here.
16358 (rs6000_handle_option): Replace OPT_mabi_ handling with
16359 OPT_mabi_altivec and OPT_mabi_spe handling.
16361 2011-05-06 Cary Coutant <ccoutant@google.com>
16363 * dwarf2out.c (contains_subprogram_definition): New function.
16364 (should_move_die_to_comdat): Call it.
16366 2011-05-06 Jeff Law <law@redhat.com>
16368 * tree-ssa-threadupdate.c (create_block_for_threading): Do not call
16369 remove_ctrl_stmt_and_useless_edges.
16370 (create_duplicates): Call remove_ctrl_stmt_and_useless_edges.
16371 (fixup_template_block, thread_single_edge): Likewise.
16372 (mark_threaded_blocks): Use THREAD_TARGET.
16374 2011-05-06 Alan Modra <amodra@gmail.com>
16377 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
16378 const0_rtx as the arg to the dummy __tls_get_addr libcall.
16380 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
16382 * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
16383 constraint modifier to "r".
16385 2011-05-06 Joseph Myers <joseph@codesourcery.com>
16387 * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
16388 fall through for OPT_mcmodel_.
16390 2011-05-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
16392 * config/s390/s390.c (s390_asm_trampoline_template): Comment
16394 (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
16396 2011-05-06 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
16399 * config/arm/arm.opt (marm): Document it.
16400 (mthumb): Reject negative variant.
16402 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
16405 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
16406 Fix typo in "ccvt" variable name.
16408 2011-05-06 Tristan Gingold <gingold@adacore.com>
16411 * config/vms/vms-ar.c (main): Remove cwd variable.
16413 2011-05-06 Jakub Jelinek <jakub@redhat.com>
16416 * var-tracking.c (prepare_call_arguments): Move else before #endif.
16418 2011-05-05 Nathan Froyd <froydnj@codesourcery.com>
16420 * except.c (sjlj_emit_dispatch_table): Call build_case_label.
16421 * gimplify.c (gimplify_switch_expr): Likewise.
16422 * omp-low.c (expand_omp_sections): Likewise.
16423 * tree-eh.c (lower_try_finally_switch): Likewise.
16424 (lower_eh_dispatch): Likewise.
16425 * tree.h (build_case_label): Declare.
16426 * tree.c (build_case_label): Define.
16428 2011-05-05 Jason Merrill <jason@redhat.com>
16431 * tree-inline.c (copy_tree_r): Use copy_statement_list.
16432 (copy_statement_list): Don't recurse.
16433 * stor-layout.c (copy_self_referential_tree_r): Don't allow
16436 2011-05-05 Joseph Myers <joseph@codesourcery.com>
16438 * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
16439 through from -mfpu= handling.
16440 * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
16442 2011-05-05 Bernd Schmidt <bernds@codesourcery.com>
16444 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
16447 2011-05-05 Steve Ellcey <sje@cup.hp.com>
16449 * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
16451 (hppa[12]*-*-hpux11*): Ditto.
16452 (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
16453 * config/ia64/hpux-unix2003.h: New.
16454 * config/pa/pa-hpux1131.opt: New.
16455 * config/pa/pa-hpux1131.h: New.
16456 * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
16457 * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
16458 * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
16460 2011-05-05 Jakub Jelinek <jakub@redhat.com>
16463 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
16464 instead of mode as 3rd argument to recursive call.
16465 (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
16466 emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
16468 (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
16469 don't give up if mode is Pmode and mem_mode is not VOIDmode.
16470 (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
16471 use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
16473 2011-05-05 Julian Brown <julian@codesourcery.com>
16475 * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
16476 parenthesis in D-register case.
16478 2011-05-05 Joseph Myers <joseph@codesourcery.com>
16480 * opt-functions.awk (var_type_struct): Handle Enum options.
16481 * optc-gen.awk: Don't check range of variables of character type.
16482 * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
16483 rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
16484 rs6000_sdata_name, rs6000_explicit_options): Remove.
16485 (rs6000_option_override_internal): Check for -malign-power here.
16486 Use global_options_set instead of rs6000_explicit_options.
16487 (rs6000_parse_fpu_option): Remove.
16488 (rs6000_handle_option): Access variables via opts and opts_set
16489 pointers. Use error_at and warning_at. Add fall-through
16490 comments. Don't handle OPT_mcmodel_, OPT_maix_struct_return,
16491 OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
16492 OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
16493 OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
16494 here. Don't use rs6000_parse_fpu_option.
16495 * config/rs6000/rs6000.h (fpu_type): Remove declaration.
16496 * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
16497 rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
16498 (mrecip=): Use Var.
16499 (mspe): Use Var and Save.
16500 (mtraceback=): Use Enum and Var.
16501 (rs6000_traceback_type): New Enum and EnumValue entries.
16502 (mfloat-gprs=): Use Enum, Var and Save.
16503 (rs6000_float_gprs): New Enum and EnumValue entries.
16504 (mlong-double-): use Var and Save.
16505 (msched-costly-dep=, minsert-sched-nops=): Use Var.
16506 (malign-): Use Enum and Var.
16507 (rs6000_alignment_flags): New Enum and EnumValue entries.
16509 (fpu_type_t): New Enum and EnumValue entries.
16510 * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
16511 global_options_set instead of rs6000_explicit_options.
16512 * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
16513 global_options_set instead of rs6000_explicit_options.
16514 * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
16515 global_options_set instead of rs6000_explicit_options.
16516 * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
16517 global_options_set instead of rs6000_explicit_options.
16518 * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
16519 global_options_set instead of rs6000_explicit_options.
16520 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
16521 global_options_set instead of rs6000_explicit_options.
16522 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
16524 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
16525 global_options_set instead of rs6000_explicit_options.
16526 * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
16527 (rs6000_cmodel): New Enum and EnumValue entries.
16528 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
16529 global_options_set instead of rs6000_explicit_options.
16530 * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
16531 (mtls-size=): Use Enum and Var.
16532 (rs6000_tls_size): New Enum and EnumValue entries.
16534 2011-05-05 Michael Matz <matz@suse.de>
16536 * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
16537 * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
16538 * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
16539 * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
16540 * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
16541 * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
16542 * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
16543 * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
16544 * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
16545 * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
16546 * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
16547 * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
16548 * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
16549 * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
16550 * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
16551 * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
16553 2011-05-05 Richard Guenther <rguenther@suse.de>
16555 * expmed.c (expand_variable_shift): Rename to ...
16556 (expand_shift_1): ... this. Take an expanded shift amount.
16557 For rotates recurse directly not building trees for the shift amount.
16558 (expand_variable_shift): Wrap around expand_shift_1.
16559 (expand_shift): Adjust.
16561 2011-05-05 Jakub Jelinek <jakub@redhat.com>
16563 * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
16565 2011-05-05 Eric Botcazou <ebotcazou@adacore.com>
16567 * tree.h (get_pending_sizes): Remove prototype.
16568 (put_pending_size): Likewise.
16569 (put_pending_sizes): Likewise.
16570 * stor-layout.c (pending_sizes): Delete.
16571 (get_pending_sizes): Likewise.
16572 (put_pending_size): Likewise.
16573 (put_pending_sizes): Likewise.
16574 (variable_size): Do not call put_pending_size and tidy up.
16575 * function.h (struct function): Remove dont_save_pending_sizes_p.
16576 * lto-streamer-in.c (input_function): Do not stream it.
16577 * lto-streamer-out.c (output_function): Likewise.
16578 * tree-inline.c (initialize_cfun): Do not copy it.
16579 * c-decl.c (store_parm_decls): Do not set it.
16580 * omp-low.c (create_task_copyfn): Likewise.
16581 * tree-optimize.c (tree_rest_of_compilation): Likewise.
16583 2011-05-05 Uros Bizjak <ubizjak@gmail.com>
16585 * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
16587 (*movdf_internal): Ditto.
16588 (*movdf_internal_nointeger): Ditto.
16589 (*movsf_internal): Ditto.
16591 2011-05-05 Joseph Myers <joseph@codesourcery.com>
16593 * c-decl.c (finish_decl): Don't call get_pending_sizes.
16594 (grokparm): Add parameter expr. Pass it to grokdeclarator.
16595 (push_parm_decl): Add parameter expr. Pass it to grokdeclarator.
16596 (c_variable_size): Remove.
16597 (grokdeclarator): Use save_expr instead of c_variable_size. Don't
16598 call put_pending_sizes.
16599 (get_parm_info): Add parameter expr. Use it to set
16600 arg_info->pending_sizes.
16601 (store_parm_decls): Use arg_info->pending_sizes instead or calling
16603 * c-parser.c (c_parser_parms_declarator): Update call to
16604 c_parser_parms_list_declarator.
16605 (c_parser_parms_list_declarator): Take parameter expr. Update
16606 call to push_parm_decl. Update recursive call. Don't call
16607 get_pending_sizes. Update calls to get_parm_info.
16608 (c_parser_objc_method_definition): Update calls to
16609 c_parser_objc_method_decl and objc_start_method_definition.
16610 (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
16611 (c_parser_objc_method_decl): Add parameter expr. Update call to
16613 (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
16614 * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
16615 (get_parm_info, grokparm, push_parm_decl): Update prototypes.
16617 2011-05-05 Michael Hope <michael.hope@linaro.org>
16620 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
16621 __ARM_EABI__ hosts.
16623 2011-05-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16625 * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
16626 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
16627 (spu_output_mi_thunk): New function.
16629 2011-05-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16631 * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
16632 targetm.asm_out.print_operand.
16633 * config/sol2.c: Include target.h.
16635 2011-05-04 Jan Hubicka <jh@suse.cz>
16637 * ipa-inline.c (reset_edge_caches): New function.
16638 (update_caller_keys): Add check_inlinablity_for; do not
16639 reset edge caches; remove now unnecesary loop.
16640 (update_callee_keys): Add comments; reset node_growth_cache of callee.
16641 (update_all_callee_keys): Likewise.
16642 (inline_small_functions): Sanity check cache; update code
16645 2011-05-04 Bernd Schmidt <bernds@codesourcery.com>
16647 PR rtl-optimization/47612
16648 * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
16649 as the last insn of the sequence to be moved.
16651 2011-05-04 Tobias Burnus <burnus@net-b.de>
16654 * doc/invoke.texi (Ofast): Document that it
16655 enables Fortran's -fno-protect-parens.
16657 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
16659 * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
16661 2011-05-04 Eric Botcazou <ebotcazou@adacore.com>
16663 * stor-layout.c (variable_size): Do not issue errors.
16665 2011-05-04 Richard Guenther <rguenther@suse.de>
16667 * coverage.c (tree_coverage_counter_ref): Use integer_type_node
16668 for array-ref indices.
16669 (tree_coverage_counter_addr): Likewise.
16670 (build_fn_info_type): Use size_int for index types.
16671 (build_gcov_info): Likewise.
16673 2011-05-04 Richard Guenther <rguenther@suse.de>
16675 * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
16677 * c-typeck.c (really_start_incremental_init): Use bitsize_int
16678 for constructor indices.
16679 (push_init_level): Likewise.
16681 2011-05-04 Richard Guenther <rguenther@suse.de>
16683 * explow.c (promote_mode): Move variable declarations before code.
16685 2011-05-04 Nathan Froyd <froydnj@codesourcery.com>
16687 * tree.h (build_function_type_array): Declare.
16688 (build_varargs_function_type_array): Declare.
16689 (build_function_type_vec, build_varargs_function_type_vec): Define.
16690 * tree.c (build_function_type_array_1): New function.
16691 (build_function_type_array): New function.
16692 (build_varargs_function_type_array): New function.
16694 2011-05-04 Richard Sandiford <richard.sandiford@linaro.org>
16696 * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
16697 before setting STMT_VINFO_TYPE.
16699 2011-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16701 * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
16702 instead of spu_pass_by_reference.
16704 2011-05-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
16706 * calls.c (emit_library_call_value_1): Invoke
16707 promote_function_mode hook on libcall arguments.
16708 * explow.c (promote_function_mode, promote_mode): Handle TYPE
16709 argument being NULL.
16710 * targhooks.c (default_promote_function_mode): Lisewise.
16711 * config/s390/s390.c (s390_promote_function_mode): Likewise.
16712 * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
16714 * doc/tm.texi: Document that TYPE argument might be NULL.
16716 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
16718 * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
16720 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
16723 * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
16725 2011-05-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16727 * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
16728 (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
16730 * mips-tfile.c: ... here.
16731 Don't include coretypes.h, tm.h, filenames.h.
16732 (saber_stop): Remove definition and all calls.
16733 [__SABER__]: Remove.
16734 (__LINE__): Remove default.
16735 (Size_t, Ptrdiff_t): Remove definitions.
16736 Replace by size_t, ptrdiff_t.
16737 [!MIPS_DEBUGGING_INFO]: Remove.
16738 (SHASH_SIZE, THASH_SIZE): Remove defaults.
16739 (progname): Add const.
16741 Replace all uses by static.
16742 (ALIGN_SYMTABLE_OFFSET): Remove default.
16743 * mips-tdump.c: Don't include coretypes.h, tm.h.
16744 Remove !MIPS_IS_STAB guard.
16745 * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
16746 $(TM_H), filenames.h dependencies.
16747 (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
16749 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
16752 *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
16753 (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
16755 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
16758 * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
16759 account and save/restore RETS.
16760 (PROFILE_BEFORE_PROLOGUE): Define.
16761 (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character. Correct
16762 the push insn to use predecrement.
16764 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
16767 * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
16769 2011-05-04 Nick Clifton <nickc@redhat.com>
16771 * config/mn10300/mn10300.c: Include cfgloop.h.
16773 (mn10300_insert_setlb_lcc): New function. Inserts a SETLB and a
16774 Lcc or a FLcc insn into the instruction stream.
16775 (mn10300_block_contains_call): New function. Returns true if the
16776 given basic block contains a CALL insn.
16777 (mn10300_loop_contains_call_insn): New function. Returns true if
16778 the given loop contains a CALL insn.
16779 (mn10300_scan_for_setlb_lcc): New function. Finds opportunities
16780 to use the SETLB and Lcc or FLcc insns.
16781 (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
16782 (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
16783 * config/mn10300/mn10300.opt (msetlb): New option. Used to
16784 disable the SETLB optimization.
16785 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
16786 __SETLB__ or __NO_SETLB__.
16787 * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
16788 (movsf_internal): Handle MDR register.
16789 (cmpsi): Make visible.
16790 (setlb): New pattern.
16791 (Lcc): New pattern.
16792 (FLcc): New pattern.
16794 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
16797 * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
16798 for reg<->xmm moves.
16799 * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
16800 (vec_concatv2di_rex64_sse): Ditto.
16801 (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
16802 (*vec_extractv2di_1_rex64): Ditto.
16805 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
16807 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
16809 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
16811 2011-05-04 Richard Guenther <rguenther@suse.de>
16813 * tree.h (int_const_binop): Remove notrunc argument.
16814 * fold-const.c (int_const_binop): Remove notrunc argument. Always
16815 create integer constants that are properly truncated.
16816 (extract_muldiv_1): Expand one notrunc int_const_binop caller.
16817 (const_binop): Remove zero notrunc argument to int_const_binop.
16818 (size_binop_loc): Likewise.
16819 (fold_div_compare): Likewise.
16820 (maybe_canonicalize_comparison_1): Likewise.
16821 (fold_comparison): Likewise.
16822 (fold_binary_loc): Likewise.
16823 (multiple_of_p): Likewise.
16824 * expr.c (store_constructor): Likewise.
16825 * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
16826 (maybe_fold_stmt_addition): Likewise.
16827 * ipa-prop.c (ipa_modify_call_arguments): Likewise.
16828 * stor-layout.c (layout_type): Likewise.
16829 * tree-data-ref.c (tree_fold_divides_p): Likewise.
16830 * tree-sra.c (build_ref_for_offset): Likewise.
16831 (build_user_friendly_ref_for_offset): Likewise.
16832 * tree-ssa-address.c (maybe_fold_tmr): Likewise.
16833 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
16834 * tree-ssa-loop-niter.c (inverse): Likewise.
16835 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
16836 * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
16837 * tree-switch-conversion.c (check_range): Likewise.
16838 (build_constructors): Likewise.
16839 * tree-vect-generic.c (expand_vector_piecewise): Likewise.
16840 * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
16841 (extract_range_from_assert): Likewise.
16842 (vrp_int_const_binop): Likewise.
16843 (extract_range_from_binary_expr): Likewise.
16844 (extract_range_from_unary_expr): Likewise.
16845 (check_array_ref): Likewise.
16846 (find_case_label_range): Likewise.
16847 (simplify_div_or_mod_using_ranges): Likewise.
16848 * tree-cfg.c (group_case_labels_stmt): Use double-ints for
16849 comparing case labels for merging.
16851 2011-05-03 Mark Wielaard <mjw@redhat.com>
16853 * dwarf2out.c (debug_str_hash_forced): Removed.
16854 (gen_label_for_indirect_string): Removed.
16855 (get_debug_string_label): Removed.
16856 (AT_string_form): Generate label directly.
16857 (output_indirect_string): Test indirect_string_node for
16858 DW_FORM_strp instead of checking label and refcount.
16859 (prune_indirect_string): Removed.
16860 (prune_unused_types): Don't check debug_str_hash_forced or
16861 call prune_indirect_string.
16863 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
16866 * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
16868 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
16872 * combine.c (try_combine): Skip debug insns at m_split tests.
16874 2011-04-26 Mark Wielaard <mjw@redhat.com>
16877 * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
16878 when info_section_emitted.
16880 2011-05-03 Joseph Myers <joseph@codesourcery.com>
16882 * config/mips/mips-opts.h: New.
16883 * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
16885 (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
16886 (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
16887 or OPT_mr10k_cache_barrier_ here. Access mips_cache_flush_func
16889 * config/mips/mips.h (enum mips_code_readable_setting): Move to
16891 (mips_abi, mips_code_readable): Don't declare.
16892 * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
16893 (mabi=): Use Enum and Var.
16894 (mips_abi): New Enum and EnumValue entries.
16895 (mcode-readable=): Use Enum and Var.
16896 (mips_code_readable_setting): New Enum and EnumValue entries.
16897 (mr10k-cache-barrier=): Use Enum and Var.
16898 (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
16900 2011-05-03 Jan Hubicka <jh@suse.cz>
16902 * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
16903 replace hash by pointer map.
16904 (cgraph_node_set_element_def, cgraph_node_set_element,
16905 const_cgraph_node_set_element, varpool_node_set_element_def,
16906 varpool_node_set_element, const_varpool_node_set_element): Remove.
16907 (free_cgraph_node_set, free_varpool_node_set): New function.
16908 (cgraph_node_set_size, varpool_node_set_size): Use vector size.
16909 * tree-emutls.c: Free varpool node set.
16910 * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
16911 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
16912 debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
16913 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
16914 dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
16915 Move here from ipa.c; implement using pointer_map
16916 * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
16917 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
16918 debug_cgraph_node_set, varpool_node_set_new,
16919 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
16920 dump_varpool_node_set, debug_varpool_node_set):
16921 Move to ipa-uitls.c.
16922 * passes.c (ipa_write_summaries): Update.
16924 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
16926 From Mike Frysinger:
16927 * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
16928 bf542/bf544/bf547/bf548/bf549.
16930 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
16932 * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
16934 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
16936 From Bernd Schmidt:
16937 * config/bfin/bfin.md (MOVCC): New mode_macro.
16938 (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
16939 movsicc_insn1, movsicc_insn2 and movsicc and macroized. Remove
16940 comments from generated assembly.
16942 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
16945 * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
16946 * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
16947 * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
16948 * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
16949 * config/bfin/lib1funcs.asm (___muldi3): New function.
16951 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
16953 * config/stormy16/stormy16 (xstormy16_init_builtins): Call
16954 build_function_type_list instead of build_function_type.
16955 Rearrange initialization of `args' to do so.
16957 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
16959 * config/i386/i386.c (ix86_code_end): Call build_function_type_list
16960 instead of build_function_type.
16962 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
16964 * config/rs6000/rs6000.c (spe_init_builtins): Call
16965 build_function_type_list instead of build_function_type.
16966 (paired_init_builtins, altivec_init_builtins): Likewise.
16967 (builtin_function_type): Likewise.
16969 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
16971 * config/sh/sh.c (sh_media_init_builtins): Call
16972 build_function_type_list instead of build_function_type.
16974 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
16976 * config/sparc/sparc.c (sparc_file_end): Call
16977 build_function_type_list instead of build_function_type.
16979 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
16981 * config/alpha/alpha.c (alpha_init_builtins): Call
16982 build_function_type_list instead of build_function_type.
16984 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
16986 * config/xtensa/xtensa.c (xtensa_init_builtins): Call
16987 build_function_type_list instead of build_function_type.
16989 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
16991 * config/iq2000/i2000.c (iq2000_init_builtins): Call
16992 build_function_type_list instead of build_function_type.
16993 Delete `endlink' variable.
16995 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
16997 * config/avr/avr.c (avr_init_builtins): Call
16998 build_function_type_list instead of build_function_type.
17000 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
17002 * config/picochip/picochip.c (picochip_init_builtins): Call
17003 build_function_type_list instead of build_function_type.
17004 Delete `endlink' variable.
17006 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
17008 * config/bfin/bfin.c (bfin_init_builtins): Call
17009 build_function_type_list instead of build_function_type.
17011 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
17014 * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
17015 that's not CONST_INT. Seemingly redundant check is due to PR39768.
17017 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
17020 * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
17021 libbffastfp overrides libgcc when -mfast-fp.
17023 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
17025 Originally from Bernd Schmidt
17026 * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
17027 * config/bfin/bfin.c (override_options): Test it and error if
17030 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
17032 Originally From Bernd Schmidt
17033 * config/bfin/bfin.c (override_options): Disable -fstack-limit for
17036 2011-05-03 Jeff Law <law@redhat.com>
17038 * tree-ssa-threadupdate.c (THREAD_TARGET): define.
17039 (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
17040 (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
17041 than accessing AUX field directly. Free the AUX field before
17043 (thread_block, thread_through_loop_header): Likewise.
17044 (thread_single_edge, mark_threaded_blocks): Likewise.
17045 (redirect_edges): Delay clearing the AUX field. Free the AUX field.
17046 (register_jump_thread): Do not attempt to thread to a NULL edge.
17048 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
17050 * function.c (init_function_start): Call decide_function_section.
17051 * varasm.c (decide_function_section): New function.
17052 (assemble_start_function): When not using
17053 flag_reorder_blocks_and_partition, don't compute in_cold_section_p
17054 or first_function_block_is_cold.
17055 * rtl.h (decide_function_section): Declare.
17057 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
17058 Jakub Jelinek <jakub@redhat.com>
17061 * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
17062 only succeed if req_mode is the same as set_mode.
17064 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
17066 * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
17067 * genemit.c (gen_exp): Handle RETURN.
17068 * emit-rtl.c (verify_rtx_sharing): Likewise.
17069 (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
17070 * rtl.c (copy_rtx): RETURN is shared.
17071 * rtl.h (enum global_rtl_index): Add GR_RETURN.
17073 * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
17074 * config/s390/s390.c (s390_emit_epilogue): Likewise.
17075 * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
17076 * config/cris/cris.c (cris_expand_return): Likewise.
17077 * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
17078 * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
17079 rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
17080 * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
17081 * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
17083 * config/v850/v850.c (expand_epilogue): Likewise.
17084 * config/bfin/bfin.c (bfin_expand_call): Likewise.
17085 * config/arm/arm.md (epilogue): Likewise.
17086 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
17087 * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
17088 variable to ret_reg.
17090 2011-05-03 Richard Guenther <rguenther@suse.de>
17093 * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
17094 Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
17095 * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
17097 2011-05-03 Richard Guenther <rguenther@suse.de>
17099 * c-decl.c (grokdeclarator): Instead of looking at
17100 TREE_OVERFLOW check if the constant fits in the index type.
17102 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
17104 * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
17105 (vec_store_lanes<mode><mode>): Likewise.
17107 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
17109 * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
17110 * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
17111 convert_optab_index values.
17112 (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
17113 * genopinit.c (optabs): Initialize the new optabs.
17114 * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
17115 * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
17116 (expand_STORE_LANES): New functions.
17117 * tree.h (build_array_type_nelts): Declare.
17118 * tree.c (build_array_type_nelts): New function.
17119 * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
17120 (vect_model_load_cost): Likewise.
17121 (vect_store_lanes_supported, vect_load_lanes_supported)
17122 (vect_record_strided_load_vectors): Declare.
17123 * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
17124 (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
17125 (vect_transform_strided_load): Split out statement recording into...
17126 (vect_record_strided_load_vectors): ...this new function.
17127 * tree-vect-stmts.c (create_vector_array, read_vector_array)
17128 (write_vector_array, create_array_ref): New functions.
17129 (vect_model_store_cost): Add store_lanes_p argument.
17130 (vect_model_load_cost): Add load_lanes_p argument.
17131 (vectorizable_store): Try to use store-lanes functions for
17132 interleaved stores.
17133 (vectorizable_load): Likewise load-lanes and loads.
17134 * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
17135 to vect_model_store_cost.
17136 (vect_build_slp_tree): Likewise vect_model_load_cost.
17138 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
17140 * hooks.h (hook_bool_mode_uhwi_false): Declare.
17141 * hooks.c (hook_bool_mode_uhwi_false): New function.
17142 * target.def (array_mode_supported_p): New hook.
17143 * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
17144 * doc/tm.texi: Regenerate.
17145 * stor-layout.c (mode_for_array): New function.
17146 (layout_type): Use it.
17147 * config/arm/arm.c (arm_array_mode_supported_p): New function.
17148 (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
17150 2011-05-03 Eric Botcazou <ebotcazou@adacore.com>
17153 * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
17154 for -fstack-check if the size to allocate is negative.
17156 2011-05-02 Lawrence Crowl <crowl@google.com>
17158 * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
17159 (timevar_cond_start): New for starting a timer only when it is not
17161 (timevar_cond_stop): New for stopping a timer when it was not already
17164 * timevar.c (timevar_stop): Enable start/stop timers to start again.
17165 (timevar_cond_start): New as above.
17166 (timevar_cond_stop): New as above.
17168 * timevar.def: Add start/stop timers for compiler phases,
17169 TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
17170 TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
17171 and TV_PHASE_FINALIZE.
17172 Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
17173 Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
17174 TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
17175 Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
17176 Make unused TV_OVERLOAD into a start/stop timer.
17178 Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
17179 Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
17180 to indicate that they are start/stop timers.
17182 * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
17183 Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
17184 Move initialization to do_compile.
17185 (do_compile): Add initialization from above.
17186 Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
17188 * c-decl.c (c_write_global_declarations): Add start/stop of
17189 TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
17191 * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
17192 or TV_PARSE_INLINE, as appropriate.
17193 (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
17194 (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
17196 2011-05-02 Jason Merrill <jason@redhat.com>
17199 * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
17201 2011-05-02 Simon Martin <simartin@users.sourceforge.net>
17204 * c-decl.c (finish_decl): Only create a composite if the types are
17207 2011-05-02 Joseph Myers <joseph@codesourcery.com>
17209 * config/fr30/fr30-protos.h (Mmode): Don't define.
17210 * config/m32r/m32r-protos.h (Mmode): Don't define. Expand
17211 definition where used.
17212 * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
17213 define. Expand definitions where used.
17214 * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
17215 Expand definitions where used.
17216 * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
17217 rx_function_arg, rx_function_arg_advance,
17218 rx_function_arg_boundary): Expand definitions of those macros.
17219 * config/v850/v850-protos.h (Mmode): Don't define. Expand
17220 definition where used.
17222 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
17224 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
17226 (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
17227 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves. Merge
17228 with *movv2sf_internal_rex64_avx.
17229 (*movv2sf_internal): Merge with *movv2sf_internal_avx.
17230 * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
17231 Use %v prefix in insn mnemonic to handle TARGET_AVX.
17232 (*movdi_internal): Add "isa" attribute. Use "maybe_vex" instead of
17233 "vex" in "prefix" attribute calculation.
17234 (*movdf_internal): Output AVX mnemonics. Add "prefix" attribute.
17236 2011-05-02 Stuart Henderson <shenders@gcc.gnu.org>
17239 * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
17240 inputs match the output.
17242 2011-05-02 Andreas Schwab <schwab@linux-m68k.org>
17245 * config/m68k/m68k.c (m68k_expand_prologue): Set
17246 current_function_static_stack_size.
17248 2011-05-02 Jan Hubicka <jh@suse.cz>
17250 * lto-streamer.c (lto_streamer_cache_insert_1,
17251 lto_streamer_cache_lookup, lto_streamer_cache_create,
17252 lto_streamer_cache_delete): Use pointer map instead of hashtable.
17253 * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
17255 2011-05-02 Joseph Myers <joseph@codesourcery.com>
17257 * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
17258 config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
17259 config/m68k/t-opts: New files.
17260 * config/m68k/m68k-tables.opt: New file (generated).
17261 * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
17262 extra_options and m68k/t-opts to tmake_file.
17263 * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
17264 (all_isas): Initialize using m68k-isas.def.
17265 (all_microarchs): Initialize using m68k-microarchs.def.
17266 (m68k_find_selection): Remove.
17267 (m68k_handle_option): Don't assert that global structures are in
17268 use. Use error_at. Access variables via opts pointer. Don't
17269 handle -march=, -mcpu= and -mtune= here. Set gcc_options fields
17270 directly for -m68020-40 and -m68020-60.
17271 (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
17272 m68k_tune_entry here.
17273 * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
17275 (m68k_library_id_string): Remove declaration.
17276 * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
17277 (m68k_library_id_string): New Variable.
17278 (march=, mcpu=, mtune=): Use Enum and Var.
17280 2011-05-02 Richard Guenther <rguenther@suse.de>
17282 * varasm.c (output_constructor_regular_field): Compute zero-based
17283 index with double-ints. Make sure to ICE instead of producing
17285 * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
17286 in asserts. Properly use a signed type.
17288 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
17290 * config/i386/sse.md (V): New mode iterator.
17291 (V_128): Rename from SSEMODE. Make V2DF mode conditional on
17293 (V_256): Rename from AVX256MODE.
17294 (VF): Make V4SF mode unconditional. Add TARGET_SSE instruction
17295 condition to all users.
17297 (VF2): Make V2DF mode unconditional. Add TARGET_SSE2 instruction
17298 condition to all users.
17299 (VF_128): Make V4SF mode unconditional.
17300 (VF_256): Rename from AVX256MODEF2P.
17301 (VI4F_128): Rename from SSEMODE4S.
17302 (VI8F_128): Rename from SSEMODE2D.
17303 (VI4F_256): Rename from AVX256MODE8P.
17304 (VI8F_256): Rename from AVX256MODE4P.
17305 (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
17306 (ssescalarmodesuffix): Remove SF and DF modes.
17307 (SSEMODE124): Remove.
17308 (SSEMODE1248): Ditto.
17309 (SSEMODEF2P): Ditto.
17310 (AVXMODEF2P): Ditto.
17311 (AVXMODEFDP): Ditto.
17312 (AVXMODEFSP): Ditto.
17313 (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
17315 (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO. Make V4SF mode
17317 (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
17318 xop_pcmov_<mode>256. Use V mode iterator.
17320 Adjust RTX patterns globally for renamed mode attributes.
17322 2011-05-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17324 * haifa-sched.c (sched_emit_insn): Emit insn before first
17325 non-scheduled insn. Inform back-end about new insn. Add
17326 new insn to scheduled_insns list.
17328 2011-05-02 Richard Guenther <rguenther@suse.de>
17330 PR tree-optimization/48822
17331 * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
17332 (process_scc): Indicate which iteration we start.
17334 2011-05-02 Jan Hubicka <jh@suse.cz>
17336 * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
17337 (lto_section_overrun): New.
17338 * lto-section-out.c (append_block): Rename to ...
17339 (lto_append_block): ... this one; export.
17340 (lto_output_1_stream): Move lto lto-streamer.h
17341 (lto_output_data_stream): Update.
17342 * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
17343 (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
17346 2011-05-02 Richard Guenther <rguenther@suse.de>
17348 * tree.c (tree_code_counts): New global array.
17349 (record_node_allocation_statistics): Count individual tree codes.
17350 (dump_tree_statistics): Dump individual code stats.
17352 2011-05-01 Jan Hubicka <jh@suse.cz>
17354 * ipa-inline.c (caller_growth_limits): Fix thinko when
17355 looking for largest stack frame.
17356 * ipa-inline.h (dump_inline_summary): Declare.
17357 * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
17359 (dump_inline_summary): Export.
17360 (debug_inline_summary): Declare as DEBUG_FUNCTION.
17362 2011-05-01 Anatoly Sokolov <aesok@post.ru>
17364 * reginfo.c (memory_move_cost): Change rclass argument type form
17365 'enum reg_class' to reg_class_t.
17366 * reload.h (memory_move_cost): Update prototype.
17367 * postreload.c reload_cse_simplify_set): Change type dclass var to
17369 * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
17371 (ira_allocate_and_set_costs): Change aclass argument type form
17372 'enum reg_class' to reg_class_t.
17373 * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
17374 Change aclass argument type to reg_class_t.
17375 (update_conflict_hard_reg_costs): Change type aclass and pref vars
17377 * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
17378 memory_move_cost call.
17380 * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
17381 'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
17382 Change type tmp var to reg_class_t.
17384 2011-04-30 Jan Hubicka <jh@suse.cz>
17386 * ipa-inline.c (can_inline_edge_p): Disregard limits when
17387 inlining into function with flatten attribute.
17388 (want_inline_small_function_p): Be more realistic about inlining
17389 cold calls where callee size grows.
17391 2011-04-30 Jan Hubicka <jh@suse.cz>
17393 * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
17396 2011-04-30 Anatoly Sokolov <aesok@post.ru>
17398 * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
17399 PRINT_OPERAND_PUNCT_VALID_P): Remove.
17400 * config/sparc/sparc-protos.h (print_operand): Remove declaration.
17401 * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
17402 TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
17403 (print_operand): Rename to...
17404 (sparc_print_operand): ...this. Make static. Adjust
17405 sparc_print_operand function call.
17406 (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
17409 2011-04-30 Jan Hubicka <jh@suse.cz>
17411 PR middle-end/48752
17412 * ipa-inline.c (early_inliner): Disable when doing late
17413 addition of function.
17415 2011-04-30 Jakub Jelinek <jakub@redhat.com>
17417 * dwarf2out.c (get_address_mode): New inline.
17418 (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
17419 if not dwarf_strict emit
17420 DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
17421 desirable. Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
17422 UNSIGNED_FLOAT, FIX and UNSIGNED_FIX. Just return NULL for
17423 FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
17424 (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
17425 dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
17426 mem_loc_descriptor callers.
17427 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
17428 output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
17429 Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
17430 DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
17431 (base_types): New variable.
17432 (get_base_type_offset, calc_base_type_die_sizes,
17433 base_type_for_mode, mark_base_types, base_type_cmp,
17434 move_marked_base_types): New functions.
17435 (calc_die_sizes): Assert that die_offset is 0 or equal to
17437 (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
17438 others defer to mem_loc_descriptor. Adjust mem_loc_descriptor
17439 callers. If not dwarf_strict, call mem_loc_descriptor even for
17440 non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
17441 (gen_subprogram_die): Don't give up on call site parameters
17442 with non-integral or large integral modes. Adjust
17443 mem_loc_descriptor callers.
17444 (prune_unused_types): Call prune_unused_types_mark on base_types
17446 (resolve_addr): Call mark_base_types.
17447 (dwarf2out_finish): Call move_marked_base_types.
17449 PR tree-optimization/48809
17450 * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
17452 (gen_inbound_check): Don't compute index_expr - range_min in utype
17453 again, instead reuse SSA_NAME initialized in build_arrays.
17454 Remove two useless gsi_for_stmt calls.
17456 2011-04-29 Jeff Law <law@redhat.com>
17458 * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
17460 2011-04-29 Martin Jambor <mjambor@suse.cz>
17462 * cgraph.h (cgraph_postorder): Remove declaration.
17463 * ipa-utils.h (ipa_free_postorder_info): Declare.
17464 (ipa_reverse_postorder): Likewise.
17465 * cgraphunit.c: Include ipa-utils.h.
17466 (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
17467 * ipa-inline.c: Include ipa-utils.h.
17468 (ipa_inline): Update call to ipa_reverse_postorder.
17469 * ipa-pure-const.c (propagate_pure_const): Update call to
17470 ipa_reduced_postorder and ipa_print_order. Call
17471 ipa_free_postorder_info to clean up.
17472 (propagate_nothrow): Likewise.
17473 * ipa-reference.c (propagate): Removed a useless call to
17474 ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
17475 and ipa_print_order. Call ipa_free_postorder_info to clean up.
17476 * ipa.c: Include ipa-utils.h.
17477 (ipa_profile): Update call to ipa_reverse_postorder.
17478 (cgraph_postorder): Moved to...
17479 * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
17480 (ipa_utils_print_order): Renamed to ipa_print_order.
17481 (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
17483 (ipa_free_postorder_info): New function.
17484 * passes.c: Include ipa-utils.h.
17485 (do_per_function_toporder): Update call to ipa_reverse_postorder.
17486 (ipa_write_summaries): Likewise.
17487 * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
17488 (cgraphunit.o): Likewise.
17490 (ipa-inline.o): Likewise.
17492 2011-04-29 Jan Hubicka <jh@suse.cz>
17494 * gcc.dg/tree-ssa/inline-10.c: New testcase.
17495 * gcc.dg/tree-ssa/inline-9.c: Disable partial inlining.
17496 * ipa-inline.h (clause_t): Turn into unsigned int.
17497 * ipa-inline-analysis.c (add_clause): Do more simplification.
17498 (and_predicates): Shortcut more cases.
17499 (predicates_equal_p): Move forward; check that clauses are properly
17501 (or_predicates): Shortcut more cases.
17502 (edge_execution_predicate): Rewrite as...
17503 (set_cond_stmt_execution_predicate): ... this function; handle
17504 __builtin_constant_p.
17505 (set_switch_stmt_execution_predicate): New .
17506 (compute_bb_predicates): New.
17507 (will_be_nonconstant_predicate): Update TODO.
17508 (estimate_function_body_sizes): Use compute_bb_predicates
17509 and free them later, always try to estimate if stmt is constant.
17510 (estimate_time_after_inlining, estimate_size_after_inlining):
17511 Gracefully handle optimized out edges.
17512 (read_predicate): Fix off by one error.
17514 2011-04-29 Nicola Pero <nicola.pero@meta-innovation.com>
17516 * Makefile.in (ENABLE_MAINTAINER_RULES): New.
17518 2011-04-27 Xinliang David Li <davidxl@google.com>
17520 * tree-profile.c (init_ic_make_global_vars): Set
17521 tls attribute on ic vars.
17522 * coverage.c (coverage_end_function): Initialize
17523 function_list with zero.
17525 2011-04-29 Richard Guenther <rguenther@suse.de>
17527 * builtins.c (fold_builtin_classify_type): Use integer_type_node
17528 for the type of the result.
17529 (fold_builtin_isascii): Likewise.
17530 (fold_builtin_toascii): Use integer_type_node where appropriate.
17531 (fold_builtin_logb): Likewise.
17532 (fold_builtin_frexp): Likewise.
17533 (fold_builtin_strstr): Likewise.
17534 (fold_builtin_strpbrk): Likewise.
17535 (fold_builtin_fputs): Likewise.
17536 (fold_builtin_sprintf): Likewise.
17537 (fold_builtin_snprintf): Likewise.
17538 (fold_builtin_printf): Likewise.
17539 (do_mpfr_remquo): Use a proper type for the assigned constant.
17540 (do_mpfr_lgamma_r): Likewise.
17541 * dwarf2out.c (resolve_one_addr): Use size_int.
17542 * except.c (init_eh): Likewise.
17543 (assign_filter_values): Use integer_type_node for filter values.
17544 (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
17546 * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
17547 for EH region numbers.
17548 * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
17549 for the shift amount.
17551 2011-04-29 Richard Guenther <rguenther@suse.de>
17553 * expr.h (expand_shift): Rename to ...
17554 (expand_variable_shift): ... this.
17555 (expand_shift): Take a constant shift amount.
17556 * expmed.c (expand_shift): Rename to ...
17557 (expand_variable_shift): ... this.
17558 (expand_shift): New wrapper around expand_variable_shift.
17559 * expr.c (convert_move, emit_group_load_1, emit_group_store,
17560 optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
17561 expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
17562 * expmed.c (store_fixed_bit_field, extract_bit_field_1,
17563 extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
17564 expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
17565 extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
17566 emit_store_flag_1, emit_store_flag): Likewise.
17567 * builtins.c (expand_builtin_signbit): Likewise.
17568 * calls.c (load_register_parameters): Likewise.
17569 * function.c (assign_parm_setup_block): Likewise.
17570 * lower-subreg.c (resolve_shift_zext): Likewise.
17571 * optabs.c (widen_bswap, expand_abs_nojump,
17572 expand_one_cmpl_abs_nojump, expand_float): Likewise.
17573 * spu/spu.c (spu_expand_extv): Likewise.
17574 * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
17576 2011-04-29 Richard Guenther <rguenther@suse.de>
17578 * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
17579 for the remapped region number.
17580 * predict.c (build_predict_expr): Use integer_type_node for the
17582 * fold-const.c (fold_binary_loc): Use integer_type_node for
17583 the shift amount. Use a proper type for the PLUS_EXPR operand.
17585 2011-04-29 Michael Matz <matz@suse.de>
17587 * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
17588 other trees that just builtins.
17589 (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
17591 2011-04-29 Richard Guenther <rguenther@suse.de>
17593 * tree-nested.c (get_trampoline_type): Use size_int.
17594 (get_nl_goto_field): Likewise.
17595 * tree-eh.c (lower_try_finally_switch): Use integer_type_node
17597 (lower_eh_constructs_2): Likewise.
17598 (lower_resx): Likewise.
17599 (lower_eh_dispatch): Likewise.
17600 * tree-mudflap.c (mf_build_string): Use size_int.
17601 (mudflap_register_call): Use integer_type_node for the flag.
17602 (mudflap_enqueue_constant): Use size_int.
17603 * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
17604 instead of rebuilding it.
17606 2011-04-29 Richard Guenther <rguenther@suse.de>
17608 * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
17609 Handle OBJ_TYPE_REF.
17610 (find_func_aliases_for_call): Use it more consistently.
17612 2011-04-29 Alexandre Oliva <aoliva@redhat.com>
17614 * haifa-sched.c (last_nondebug_scheduled_insn): New.
17615 (rank_for_schedule): Use it.
17616 (schedule_block): Set it.
17618 2011-04-28 David Li <davidxl@google.com>
17620 * tree.c (crc32_string): Use crc32_byte.
17621 (crc32_byte): New function.
17622 * tree.h (crc32_byte): New function.
17623 * gcov.c (read_graph_file): Handle new cfg_cksum.
17624 (read_count_file): Ditto.
17625 * profile.c (instrument_values): Ditto.
17626 (get_exec_counts): Ditto.
17627 (read_profile_edge_counts): Ditto.
17628 (compute_branch_probabilities): Ditto.
17629 (compute_value_histograms): Ditto.
17630 (branch_prob): Ditto.
17631 (end_branch_prob): Ditto.
17632 * coverage.c (read_counts_file): Ditto.
17633 (get_coverage_counts): Ditto.
17634 (tree_coverage_counter_addr): Ditto.
17635 (coverage_checksum_string): Ditto.
17636 (coverage_begin_output): Ditto.
17637 (coverage_end_function): Ditto.
17638 (build_fn_info_type): Ditto.
17639 (build_fn_info_value): Ditto.
17640 * libgcov.c (gcov_exit): Ditto.
17641 * gcov-dump.c (tag_function): Ditto.
17642 (compute_checksum): Remove.
17644 2011-04-29 Alan Modra <amodra@gmail.com>
17646 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
17647 unspec plus offset. Tidy macho code.
17649 2011-04-29 Martin Jambor <mjambor@suse.cz>
17651 * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
17652 node instead of a decl. Update all callers.
17653 * cgraph.h: Update declaration.
17655 2011-04-28 Ira Rosen <ira.rosen@linaro.org>
17657 PR tree-optimization/48765
17658 * tree-vectorizer.h (vect_make_slp_decision): Return bool.
17659 * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
17660 to indicate if loop aware SLP is being used. Scan the statements
17661 and update the vectorization factor according to the type of
17662 vectorization before statement analysis.
17663 (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
17664 pass it to vect_analyze_loop_operations.
17665 (vectorizable_reduction): Set number of copies to 1 in case of pure
17667 * tree-vect-stmts.c (vectorizable_conversion,
17668 vectorizable_assignment, vectorizable_shift,
17669 vectorizable_operation, vectorizable_type_demotion,
17670 vectorizable_type_promotion, vectorizable_store, vectorizable_load):
17672 (vectorizable_condition): Move the check that it is not SLP
17673 vectorization before the number of copies check.
17674 * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
17675 to vectorize the loop using SLP.
17677 2011-04-28 Jakub Jelinek <jakub@redhat.com>
17679 PR middle-end/48597
17680 * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
17683 2011-04-28 Joseph Myers <joseph@codesourcery.com>
17685 * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
17686 *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
17687 (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
17688 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
17689 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
17691 * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
17692 * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
17693 * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
17694 * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
17695 * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
17696 * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
17698 * config/i386/linux.h (REG_NAME): Don't define.
17699 * config/i386/linux64.h (REG_NAME): Don't define.
17700 * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
17701 Undefine before defining.
17703 2011-04-28 Jan Hubicka <jh@suse.cz>
17705 * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
17706 nonconstant_names array.
17707 (estimate_function_body_sizes): Build nonconstant_names array; handle
17708 BUILT_IN_CONSTANT_P.
17710 2011-04-28 Richard Guenther <rguenther@suse.de>
17714 2011-04-28 Richard Guenther <rguenther@suse.de>
17716 * tree-ssa-structalias.c (solve_constraints): Build succ graph
17717 as late as possible.
17719 2011-04-28 Richard Guenther <rguenther@suse.de>
17721 * tree-ssa-structalias.c (dump_constraint): Don't end the line.
17722 (debug_constraint): Do it here.
17723 (dump_constraints): And here.
17724 (rewrite_constraints): And here.
17725 (dump_constraint_edge): Remove.
17726 (dump_constraint_graph): Rewrite to produce DOT output.
17727 (solve_constraints): Build succ graph as late as possible.
17728 Dump constraint graphs before and after solving.
17730 2011-04-28 Richard Guenther <rguenther@suse.de>
17732 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
17733 New function split out from ...
17734 (find_func_aliases): ... here. Call it.
17735 (find_func_aliases_for_call): Likewise.
17737 2011-04-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
17739 * internal-fn.h (internal_fn_name_array): Declare.
17740 (internal_fn_flags_array): Likewise.
17742 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
17744 * config/i386/i386.md (ssemodesuffix): Merge with ssevecsize,
17745 ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
17747 (ssemodefsuffix): Remove.
17748 (ssevecmodesuffix): New mode attribute.
17749 (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
17750 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
17751 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
17752 *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
17753 *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
17754 *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
17755 *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
17756 ssemodesuffix mode attribute.
17757 (float splitters): Use ssevecmodesuffix mode attribute.
17758 * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
17759 (sseinsmode): Rename from avxvecmode.
17760 (avxsizesuffix): Rename from avxmodesuffix.
17761 (sseintvecmode): Rename from avxpermvecmode.
17762 (ssedoublevecmode): Rename from ssedoublesizemode.
17763 (ssehalfvecmode): Rename from avxhalfvecmode.
17764 (ssescalarmode): Rename from avxscalarmode.
17765 (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
17766 templates for ssemodesuffix mode attribute.
17767 (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
17770 Adjust RTX patterns globally for renamed mode attributes.
17772 2011-04-27 Jan Hubcika <jh@suse.cz>
17774 * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
17775 * ipa-inline-analysis.c: Include alloc-pool.h.
17776 (edge_predicate_pool): New.
17777 (trye_predicate_p): New function
17778 (false_predicate_p): New function.
17779 (add_clause): Sanity check that false clauses are "optimized";
17780 never add clauses to predicate that is already known to be false.
17781 (and_predicate): Use flase_predicate_p.
17782 (evaulate_predicate): Rename to ...
17783 (evaluate_predicate): ... this one; update all callers; assert
17784 that false is not listed among possible truths.
17785 (dump_predicate): Use true_predicate_p.
17786 (account_size_time): Use false_predicate_p.
17787 (evaulate_conditions_for_edge): Rename to ...
17788 (evaluate_conditions_for_edge) ... this one.
17789 (edge_set_predicate): New function.
17790 (inline_edge_duplication_hook): Duplicate edge predicates.
17791 (inline_edge_removal_hook): Free edge predicates.
17792 (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
17793 (dump_inline_summary): Update.
17794 (estimate_function_body_sizes): Set edge predicates.
17795 (estimate_calls_size_and_time): Handle predicates.
17796 (estimate_callee_size_and_time): Update.
17797 (remap_predicate): Add toplev_predicate; update comment.
17798 (remap_edge_predicates): New function.
17799 (inline_merge_summary): Compute toplev predicate; update.
17800 (read_predicate): New function.
17801 (read_inline_edge_summary): Use it.
17802 (inline_read_section): Likewise.
17803 (write_predicate): New function.
17804 (write_inline_edge_summary): Use it.
17805 (inline_write_summary): Likewise.
17806 (inline_free_summary): Free alloc pool and edge summary vec.
17808 2011-04-27 Richard Guenther <rguenther@suse.de>
17810 * tree-ssa-structalias.c (changed_count): Remove.
17811 (changed): Use a bitmap.
17812 (unify_nodes): Adjust.
17813 (do_sd_constraint): Likewise.
17814 (do_ds_constraint): Likewise.
17815 (do_complex_constraint): Likewise.
17816 (solve_graph): Likewise.
17818 2011-04-27 Jan Hubicka <jh@suse.cz>
17820 * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
17822 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
17824 * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
17825 (avx_vperm2f128_*_operand): Ditto.
17826 * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
17827 Use avx_vpermilp_parallel in insn condition.
17828 (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
17829 Use avx_vperm2f128_parallel in insn condition.
17831 2011-04-27 Richard Guenther <rguenther@suse.de>
17833 * Makefile.in (tree-ssa-structalias.o): Remove
17834 gt-tree-ssa-structalias.h dependency.
17835 (GTFILES): Remove tree-ssa-structalias.c.
17836 * tree.c (allocate_decl_uid): New function.
17837 (make_node_stat): Use it.
17838 (copy_node_stat): Likewise.
17839 * tree.h (allocate_decl_uid): Declare.
17840 * tree-ssa-alias.h (delete_alias_heapvars): Remove.
17841 * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
17842 * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
17843 * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
17844 * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
17845 (struct heapvar_map): Likewise.
17846 (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
17847 heapvar_insert): Likewise.
17848 (make_heapvar_for): Rename to ...
17849 (make_heapvar): ... this. Simplify.
17850 (fake_var_decl_obstack): New global var.
17851 (build_fake_var_decl): New function.
17852 (make_constraint_from_heapvar): Adjust.
17853 (handle_lhs_call): Likewise.
17854 (create_function_info_for): Likewise.
17855 (intra_create_variable_infos): Likewise.
17856 (init_alias_vars): Allocate fake_var_decl_obstack.
17857 (init_alias_heapvars, delete_alias_heapvars): Remove.
17858 (compute_points_to_sets): Do not call init_alias_heapvars.
17859 (ipa_pta_execute): Likewise.
17860 (delete_points_to_sets): Free fake_var_decl_obstack.
17862 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17864 * config/spu/divmovti4.c (union qword_UTItype): New data type.
17865 (si_from_UTItype, si_to_UTItype): New functions.
17866 (__udivmodti4): Use them to implement type-punning.
17867 * config/spu/multi3.c (union qword_TItype): New data type.
17868 (si_from_TItype, si_to_TItype): New functions.
17869 (__multi3): Use them to implement type-punning.
17871 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17873 * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
17875 2011-04-27 Jan Hubicka <jh@suse.cz>
17877 * ipa-prop.c (function_insertion_hook_holder): New holder.
17878 (ipa_add_new_function): New function.
17879 (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
17880 Register/deregister holder.
17882 2011-04-27 Richard Guenther <rguenther@suse.de>
17884 PR tree-optimization/48772
17885 * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
17887 2011-04-27 Richard Guenther <rguenther@suse.de>
17889 * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
17890 TARGET_MEM_REF handling.
17892 2011-04-27 Nick Clifton <nickc@redhat.com>
17894 * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
17895 ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
17896 (REG_CLASS_NAMES): Likewise.
17897 (REG_CLASS_CONTENTS): Likewise.
17898 (EVEN_ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
17899 (ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
17900 (FEVEN_REGS): New macro. Alias for QUAD_ACC_REGS.
17901 (FPR_REGS): New macro. Alias for QUAD_ACC_REGS.
17902 (EVEN_REGS): New macro. Alias for QUAD_REGS.
17903 * config/frv/frv.c (frv_secondary_reload_class): Remove use of
17904 duplicate register classes.
17905 (frv_class_likely_spilled_p): Likewise.
17906 (frv_register_move_cost): Likewise.
17908 * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
17909 end of the regno_reg_class array.
17911 2011-04-27 Jakub Jelinek <jakub@redhat.com>
17914 * c-typeck.c (build_binary_op): Don't wrap arguments if
17915 int_operands is true.
17917 2011-04-26 Kaz Kojima <kkojima@gcc.gnu.org>
17920 * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
17921 targetm.calls.must_pass_in_stack for void type.
17923 2011-04-26 Jan Hubicka <jh@suse.cz>
17925 * cgraphbuild.c (build_cgraph_edges): Update call
17926 of cgraph_create_edge and cgraph_create_indirect_edge.
17927 * cgraph.c (cgraph_create_edge_including_clones,
17928 cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
17929 cgraph_update_edges_for_call_stmt_node): Do not take nest
17930 argument; do not initialize call_stmt_size/time.
17931 (dump_cgraph_node): Do not dump nest.
17932 (cgraph_clone_edge): Do not take loop_nest argument;
17933 do not propagate it; do not clone call_stmt_size/time.
17934 (cgraph_clone_node): Likewise.
17935 (cgraph_create_virtual_clone): Update.
17936 * cgraph.h (struct cgraph_edge): Remove
17937 call_stmt_size/call_stmt_time/loop_nest.
17938 (cgraph_create_edge, cgraph_create_indirect_edge,
17939 cgraph_create_edge_including_clones, cgraph_clone_node): Update
17941 * tree-emutls.c (gen_emutls_addr): Update.
17942 * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
17943 loop_nest; handle indirect calls, too.
17944 (clone_inlined_nodes): Do not care about updating inline summaries.
17945 * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
17946 * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
17947 stream call_stmt_size/call_stmt_time/loop_nest.
17948 * ipa-inline.c (edge_badness): Update.
17949 (ipa_inline): dump summaries after inlining.
17950 * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
17952 (inline_edge_summary): New function.
17953 * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
17954 (inline_edge_removal_hook): Handle edge summaries.
17955 (inline_edge_duplication_hook): New hook.
17956 (inline_summary_alloc): Alloc hooks.
17957 (initialize_growth_caches): Do not register removal hooks.
17958 (free_growth_caches); Do not free removal hook.
17959 (dump_inline_edge_summary): New function.
17960 (dump_inline_summary): Use it.
17961 (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
17962 (inline_update_callee_summaries): New function.
17963 (inline_merge_summary): Use it.
17964 (do_estimate_edge_time, do_estimate_edge_growth): Update.
17965 (read_inline_edge_summary): New function.
17966 (inline_read_section): Use it.
17967 (write_inline_edge_summary): New function.
17968 (inline_write_summary): Use it.
17969 (inline_free_summary): Free edge new holders.
17970 * tree-inline.c (copy_bb): Update.
17972 2011-04-26 Jason Merrill <jason@redhat.com>
17974 * tree-eh.c (lower_try_finally_switch): Create the label along with
17975 the CASE_LABEL_EXPR.
17977 2011-04-26 David S. Miller <davem@davemloft.net>
17978 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17980 * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
17981 * configure: Regenerate.
17983 2011-04-26 Michael Meissner <meissner@linux.vnet.ibm.com>
17986 * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
17988 (VEC_reduc): New code iterator and splitters for vector reduction.
17989 (VEC_reduc_name): Ditto.
17990 (VEC_reduc_rtx): Ditto.
17991 (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
17992 (reduc_<VEC_reduc_name>_v4sf): Ditto.
17994 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
17995 support for extracting SF on VSX.
17997 * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
17998 generating xscvspdp.
17999 (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
18000 (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
18001 double add, minimum, maximum vector reduction.
18002 (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
18003 (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
18004 optimize double vector reduction.
18005 (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
18007 2011-04-26 Joseph Myers <joseph@codesourcery.com>
18009 * config/fr30/fr30.h (inhibit_libc): Don't define.
18010 * config/m32r/m32r-protos.h: Correct comment.
18011 * config/v850/v850.h (GHS_default_section_names,
18012 GHS_current_section_names): Use tree, not union tree_node *.
18014 2011-04-26 Xinliang David Li <davidxl@google.com>
18016 * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
18017 * c-family/c-opts.c (c_common_handle_option): Set
18018 warn_maybe_uninitialized.
18019 * opts.c (common_handle_option): Ditto.
18020 * common.opt: New option.
18021 * tree-ssa.c (warn_uninit): Add one more parameter.
18022 (warn_uninitialized_var): Pass warning code.
18023 * tree-flow.h: Interface change.
18025 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18027 * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
18028 (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
18029 (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
18031 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18033 * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
18034 * config/mips/mips.opt (mmips-tfile): Remove.
18036 * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
18037 mips-tdump reference to ...
18038 (Specific, alpha*-dec-osf5.1): ... here. Adapt for Tru64 UNIX.
18039 * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
18040 reference by Tru64 UNIX.
18042 2011-04-26 Jakub Jelinek <jakub@redhat.com>
18045 * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
18046 is error_mark_node, set value to NULL.
18048 PR tree-optimization/48734
18049 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
18050 if return value from maybe_fold_*_comparsions isn't something
18051 the code is prepared to handle.
18053 2011-04-26 Uros Bizjak <ubizjak@gmail.com>
18055 * config/i386/predicates.md (ext_QIreg_operand): Remove extra
18057 (ext_QIreg_nomode_operands): Remove.
18058 * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
18062 2011-04-26 Andrew Stubbs <ams@codesourcery.com>
18064 * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
18066 2011-04-26 Richard Guenther <rguenther@suse.de>
18068 * c-typeck.c (build_unary_op): Do not expand array-refs via
18069 pointer arithmetic. Only adjust qualifiers for function types.
18071 2011-04-26 Richard Guenther <rguenther@suse.de>
18073 PR middle-end/48694
18074 * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
18075 * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
18076 compare the operands with OEP_CONSTANT_ADDRESS_OF. Treat trees
18077 with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
18079 2011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
18081 * doc/extend.texi: Document __underlying_type.
18083 2011-04-25 Segher Boessenkool <segher@kernel.crashing.org>
18085 * config/rs6000/titan.md (automata_option "progress"): Remove.
18087 2011-04-25 Jeff Law <law@redhat.com>
18089 * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
18091 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
18093 * system.h (ENUM_BITFIELD): Remove.
18095 2011-04-25 Maxim Kuvyrkov <maxim@codesourcery.com>
18096 Eric Botcazou <ebotcazou@adacore.com>
18098 * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
18099 for STORE_FLAG_VALUE==-1 case.
18101 2011-04-24 Richard Sandiford <richard.sandiford@linaro.org>
18104 * config/m68k/constraints.md (T): Allow PIC operands that satisfy
18105 LEGITIMATE_PIC_OPERAND_P.
18107 2011-04-24 Jan Hubicka <jh@suse.cz>
18109 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
18111 * ipa-prop.h (ipa_get_param, ipa_is_param_used,
18112 ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
18113 ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
18114 * ipa-inline-analysis.c (add_clause): Fix clause ordering.
18115 (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
18116 Sanity check predicate length.
18117 (remap_predicate): Likewise; sanity check jump functions.
18118 (inline_read_section, inline_write_summary): Sanity check
18121 2011-04-24 Paolo Carlini <paolo.carlini@oracle.com>
18124 * doc/extend.texi (Type Traits): Document __is_standard_layout,
18125 __is_literal_type, and __is_trivial; update throughout about
18126 possibly cv-qualified void types.
18128 2011-04-24 Gerald Pfeifer <gerald@pfeifer.com>
18130 * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
18131 testsuite and make it version agnostic.
18133 2011-04-22 Jan Hubicka <jh@suse.cz>
18135 * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
18137 2011-04-23 Jakub Jelinek <jakub@redhat.com>
18140 * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
18141 to VOID_TYPE even around MODIFY_EXPR.
18143 2011-04-22 Mike Stump <mikestump@comcast.net>
18145 * gensupport.c (read_md_rtx): Fix typo in comment.
18146 * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
18149 2011-04-22 Jan Hubicka <jh@suse.cz>
18151 * gengtype.c (open_base_files): Add ipa-inline.h include.
18152 * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
18153 ipa-prop.c; update all uses.
18154 * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
18155 * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
18156 merge summary of inlined function into former caller.
18157 * ipa-inline.c (max_benefit): Remove.
18158 (edge_badness): Compensate for removal of benefits.
18159 (update_caller_keys): Use
18160 reset_node_growth_cache/reset_edge_growth_cache.
18161 (update_callee_keys): Likewise.
18162 (update_all_callee_keys): Likewise.
18163 (inline_small_functions): Do not collect max_benefit; do not reset
18164 estimated_growth; call free_growth_caches and initialize_growth_caches.
18165 * ipa-inline.h (struct condition, type clause_t, struct predicate,
18166 struct size_time_entry): New structures.
18167 (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
18168 (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
18169 and estimated_growth.
18170 (edge_growth_cache_entry): New structure.
18171 (node_growth_cache, edge_growth_cache): New global vars.
18172 (estimate_growth): Turn into inline.
18173 (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
18174 initialize_growth_caches, free_growth_caches): Declare.
18175 (estimate_edge_growth): Rewrite.
18176 (estimate_edge_time): Implement as inline cache lookup.
18177 (reset_node_growth_cache, reset_edge_growth_cache): New inline
18179 (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
18180 (NUM_CONDITIONS): New constant.
18181 (predicate_conditions): New enum.
18182 (IS_NOT_CONSTANT): New constant.
18183 (edge_removal_hook_holder): New var.
18184 (node_growth_cache, edge_growth_cache): New global vars.
18185 (true_predicate, single_cond_predicate, false_predicate,
18186 not_inlined_predicate, add_condition, add_clause, and_predicates,
18187 or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
18188 dump_clause, dump_predicate, account_size_time,
18189 evaulate_conditions_for_edge): New functions.
18190 (inline_summary_alloc): Move to heap.
18191 (inline_node_removal_hook): Clear condition and entry vectors.
18192 (inline_edge_removal_hook): New function.
18193 (initialize_growth_caches, free_growth_caches): New function.
18194 (dump_inline_summary): Update.
18195 (edge_execution_predicate): New function.
18196 (will_be_nonconstant_predicate): New function.
18197 (estimate_function_body_sizes): Compute BB and constantness predicates.
18198 (compute_inline_parameters): Do not clear estimated_growth.
18199 (estimate_edge_size_and_time): New function.
18200 (estimate_calls_size_and_time): New function.
18201 (estimate_callee_size_and_time): New function.
18202 (remap_predicate): New function.
18203 (inline_merge_summary): New function.
18204 (do_estimate_edge_time): New function based on...
18205 (estimate_edge_time): ... this one.
18206 (do_estimate_edge_growth): New function.
18207 (do_estimate_growth): New function based on....
18208 (estimate_growth): ... this one.
18209 (inline_analyze_function): Analyze after deciding on jump functions.
18210 (inline_read_section): New function.
18211 (inline_read_summary): Use it.
18212 (inline_write_summary): Write all the new data.
18213 * ipa-prop.c (ipa_get_param_decl_index): Export.
18214 (ipa_lattice_from_jfunc): Move here from ipa-cp.c
18215 * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
18217 (ipa_get_lattice): Move here from ipa-cp.c
18218 * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
18219 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
18220 * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
18221 cgraph_edge_inlinable_p): Remove.
18222 * cgraphunit.c: Include ipainline.h
18223 (cgraph_process_new_functions): Update call of
18224 compute_inline_parameters.
18226 2011-04-22 Richard Guenther <rguenther@suse.de>
18228 * tree.c (build_int_cst): Properly create canonicalized integer
18230 (build_int_cst_type): Remove scary comments.
18232 2011-04-22 Xinliang David Li <davidxl@google.com>
18234 * toplev.c (process_options): Enable -Werror=coverage-mismatch
18235 by default when -Wno-error is not specified.
18236 * opts-global.c (decode_options): Remove call to
18237 control_warning_options.
18239 2011-04-22 Jakub Jelinek <jakub@redhat.com>
18241 PR tree-optimization/48717
18242 * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
18243 ~A + A optimizations use build_int_cst_type instead of build_int_cst.
18245 2011-04-22 Joseph Myers <joseph@codesourcery.com>
18247 * config/bfin/bfin-protos.h (Mmode): Don't define. Expand
18248 definition where used.
18250 2011-04-22 Jakub Jelinek <jakub@redhat.com>
18253 * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
18254 TREE_STATIC variables declared inside of some OpenMP construct.
18256 2011-04-22 Martin Jambor <mjambor@suse.cz>
18258 PR middle-end/48585
18259 * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
18261 2011-04-22 Alexander Monakov <amonakov@ispras.ru>
18264 * c-typeck.c (pop_init_level): Do not warn about initializing
18267 2011-04-22 Alan Modra <amodra@gmail.com>
18269 * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
18270 when returning call_cookie.
18271 (rs6000_function_ok_for_sibcall): Allow sibcalls via function
18272 pointers, to functions with no more vector args than the current
18273 function, and some non-local calls for ABI_V4.
18274 * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
18275 sibcall_nonlocal_aix64): Combine to ..
18276 (sibcall_nonlocal_aix<mode>): ..this. Handle function pointer calls.
18277 (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
18278 (sibcall_value_nonlocal_aix<mode>): ..likewise.
18279 (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
18280 (sibcall_value_nonlocal_sysv<mode>): Likewise. Correct call cookie
18282 * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
18283 sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
18284 sibcall_value_symbolic_64): Delete.
18286 2011-04-21 Xinliang David Li <davidxl@google.com>
18288 * cgraph.h: Remove pid.
18289 * cgraph.c: Remove pid.
18290 * value-prof.c (init_node_map): New function.
18291 (del_node_map): New function.
18292 (find_func_by_funcdef_no): New function.
18293 (gimple_ic_transform): Call new function.
18294 * cgraphunit.c (cgraph_finalize_function): Remove pid.
18295 * function.c (get_last_funcdef_no): New function.
18296 * function.h (get_last_funcdef_no): New function.
18297 * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
18298 to libgcov function.
18299 (tree-profiling): Call node map init and delete function.
18301 2011-04-21 Ian Lance Taylor <iant@google.com>
18303 * godump.c (go_format_type): Use exported Go name for anonymous
18306 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
18308 * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
18309 Call builtin_function_type_list instead of builtin_function_type.
18310 (UNARY, BINARY, TRINARY, QUAD): Likewise.
18312 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
18314 * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
18315 build_function_type_list instead of build_function_type.
18316 Delete variable `endlink'.
18318 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
18320 * config/s390/s390.c (s390_init_builtins): Call
18321 build_function_type_list instead of build_function_type.
18323 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
18325 * config/ia64/ia64.c (ia64_init_builtins): Call
18326 build_function_type_list instead of builtin_function_type.
18328 2011-04-21 Easwaran Raman <eraman@google.com>
18330 * cfgexpand.c (stack_var): Remove OFFSET...
18331 (add_stack_var): ...and its reference here...
18332 (expand_stack_vars): ...and here.
18333 (stack_var_cmp): Sort by descending order of size.
18334 (partition_stack_vars): Change heuristic.
18335 (union_stack_vars): Fix to reflect changes in partition_stack_vars.
18336 (dump_stack_var_partition): Add newline after each partition.
18338 2011-04-21 Dimitrios Apostolou <jimis@gmx.net>
18339 Jeff Law <law@redhat.com>
18341 * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
18342 * gengtype.c (matching_file_name_substitute): Likewise.
18344 2011-04-21 Richard Guenther <rguenther@suse.de>
18347 * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
18349 2011-04-21 Eric Botcazou <ebotcazou@adacore.com>
18351 * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
18353 2011-04-21 Richard Guenther <rguenther@suse.de>
18355 * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
18358 2011-04-21 Richard Guenther <rguenther@suse.de>
18360 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
18361 MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
18362 Use DECL_P, not SSA_VAR_P.
18363 (ptr_derefs_may_alias_p): Likewise.
18364 (ptr_deref_may_alias_ref_p_1): Likewise.
18365 (decl_refs_may_alias_p): Likewise.
18366 (refs_may_alias_p_1): Likewise.
18367 (ref_maybe_used_by_call_p_1): Likewise.
18368 (call_may_clobber_ref_p_1): Likewise.
18369 (indirect_ref_may_alias_decl_p): Assume indirect refrences
18370 are either MEM_REF or TARGET_MEM_REF.
18371 (indirect_refs_may_alias_p): Likewise.
18372 * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
18373 for MEM_EXPR of indirect calls.
18375 2011-04-21 Tristan Gingold <gingold@adacore.com>
18377 * vmsdbgout.c (write_srccorr): Compute file length from the string.
18378 (dst_file_info_struct): Remove flen field.
18379 (lookup_filename): Remove code that set flen field.
18381 2011-04-21 Tristan Gingold <gingold@adacore.com>
18383 * config/ia64/ia64.c (ia64_start_function): Add a guard.
18385 2011-04-21 Uros Bizjak <ubizjak@gmail.com>
18388 * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
18389 vec_extract and vec_concat for non-SSE4_1 targets.
18391 2011-04-21 Richard Guenther <rguenther@suse.de>
18393 * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
18396 2011-04-21 Joseph Myers <joseph@codesourcery.com>
18398 * config/i386/cygming.h (union tree_node, TREE): Don't define or
18400 (FILE): Don't undefine.
18402 2011-04-21 Joseph Myers <joseph@codesourcery.com>
18404 * config/alpha/alpha.c (struct machine_function): Use rtx, not
18406 * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
18408 * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
18409 * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
18410 * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
18412 * config/m32c/m32c-protos.h (MM, UINT): Don't define. Expand
18413 definitions where used.
18414 * config/microblaze/microblaze.h (struct microblaze_args): Use
18415 rtx, not struct rtx_def *.
18416 * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
18418 * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
18419 * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
18420 * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
18421 not struct rtx_def *.
18422 * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
18424 * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
18426 * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
18428 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
18430 * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
18431 operand_equal_p to compare DR_BASE_ADDRESSes.
18432 (vect_check_interleaving): Likewise.
18434 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
18437 * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
18438 for all Neon struct constants.
18440 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
18442 * target.def (legitimate_constant_p): New hook.
18443 * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
18444 (TARGET_LEGITIMATE_CONSTANT_P): ...this.
18445 * doc/tm.texi: Regenerate.
18446 * hooks.h (hook_bool_mode_rtx_true): Declare.
18447 * hooks.c (hook_bool_mode_rtx_true): Define.
18448 * system.h (LEGITIMATE_CONSTANT_P): Poison.
18449 * calls.c (precompute_register_parameters): Replace uses of
18450 LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
18451 (emit_library_call_value_1): Likewise.
18452 * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
18453 (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
18454 * ira-costs.c (scan_one_insn): Likewise.
18455 * recog.c (general_operand, immediate_operand): Likewise.
18456 * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
18457 * reload1.c (init_eliminable_invariants): Likewise.
18459 * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
18461 * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
18462 * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
18464 (TARGET_LEGITIMATE_CONSTANT_P): Define.
18465 * config/alpha/predicates.md (input_operand): Update call to
18466 alpha_legitimate_constant_p.
18468 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
18469 * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
18470 (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
18471 * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
18472 (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
18473 (arm_legitimate_constant_p): New functions.
18474 (arm_cannot_force_const_mem): Make static.
18476 * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
18478 * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
18479 * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
18480 * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
18481 instead of bfin_legitimate_constant_p.
18482 (bfin_legitimate_constant_p): Make static. Add a mode argument.
18483 (TARGET_LEGITIMATE_CONSTANT_P): Define.
18485 * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
18487 * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
18489 * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
18490 * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
18491 * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
18492 (frv_legitimate_constant_p): Make static. Add a mode argument.
18494 * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
18495 * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
18496 * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
18498 * config/i386/i386-protos.h (legitimate_constant_p): Delete.
18499 * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
18500 * config/i386/i386.c (legitimate_constant_p): Rename to...
18501 (ix86_legitimate_constant_p): ...this. Make static. Add a mode
18503 (ix86_cannot_force_const_mem): Update accordingly.
18504 (ix86_legitimate_address_p): Likewise.
18505 (TARGET_LEGITIMATE_CONSTANT_P): Define.
18506 * config/i386/i386.md: Update commentary.
18508 * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
18509 * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
18510 * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
18511 (ia64_legitimate_constant_p): Make static. Add a mode argument.
18513 * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
18515 * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
18516 * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
18517 * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
18518 (lm32_legitimate_constant_p): Make static. Add a mode argument.
18520 * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
18521 * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
18522 * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
18524 * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
18525 * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
18526 (m32r_legitimate_constant_p): New function.
18528 * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
18529 * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
18530 LEGITIMATE_CONSTANT_P.
18531 (LEGITIMATE_CONSTANT_P): Delete.
18532 * config/m68k/m68k.c (m68k_expand_prologue): Call
18533 m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
18534 (m68k_legitimate_constant_p): New function.
18535 * config/m68k/m68k.md: Update comments.
18537 * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
18538 * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
18539 (mcore_legitimate_constant_p): New function.
18541 * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
18542 * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
18543 * config/mep/mep.c (mep_legitimate_constant_p): Make static.
18544 Add a mode argument.
18545 (mep_legitimate_address): Update accordingly.
18546 (TARGET_LEGITIMATE_CONSTANT_P): Define.
18548 * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
18550 * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
18551 * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
18552 static. Check OP's mode for VOIDmode.
18553 (microblaze_legitimate_constant_p): New function.
18554 (TARGET_LEGITIMATE_CONSTANT_P): Define.
18556 * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
18557 * config/mips/mips.c (mips_legitimate_constant_p): New function.
18558 (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
18559 (TARGET_LEGITIMATE_CONSTANT_P): Define.
18560 * config/mips/predicates.md: Update comments.
18562 * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
18563 * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
18564 * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
18565 (mmix_legitimate_constant_p): Make static, return a bool, and take
18567 (mmix_print_operand_address): Update accordingly.
18569 * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
18571 * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
18572 * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
18573 static. Add a mode argument.
18574 (TARGET_LEGITIMATE_CONSTANT_P): Define.
18576 * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
18578 * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
18579 * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
18580 (pa_legitimate_constant_p): New function.
18582 * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
18584 * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
18585 * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
18586 (pdp11_legitimate_constant_p): New function.
18588 * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
18589 * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
18590 (rs6000_legitimate_constant_p): New function.
18592 * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
18593 (rx_legitimate_constant_p): ...this.
18594 * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
18595 * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
18596 (rx_legitimate_constant_p): ...this.
18597 (TARGET_LEGITIMATE_CONSTANT_P): Define.
18598 * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
18600 * config/s390/s390-protos.h (legitimate_constant_p): Delete.
18601 * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
18602 * config/s390/s390.c (legitimate_constant_p): Rename to...
18603 (s390_legitimate_constant_p): ...this. Make static, return a bool,
18604 and add a mode argument.
18605 (TARGET_LEGITIMATE_CONSTANT_P): Define.
18607 * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
18609 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
18610 * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
18611 (sh_legitimate_constant_p): New function.
18613 * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
18614 * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
18615 * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
18616 (legitimate_constant_p): Rename to...
18617 (sparc_legitimate_constant_p): ...this. Make static. Add a mode
18619 (constant_address_p): Update accordingly.
18621 * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
18622 argument and return a bool.
18623 * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
18624 * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
18625 (spu_legitimate_constant_p): Add a mode argument and return a bool.
18626 (spu_rtx_costs): Update accordingly.
18627 * config/spu/predicates.md (vec_imm_operand): Likewise.
18629 * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
18631 * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
18632 * config/v850/v850.c (v850_legitimate_constant_p): New function.
18633 (TARGET_LEGITIMATE_CONSTANT_P): Define.
18635 * config/vax/vax-protos.h (legitimate_constant_p): Delete.
18636 * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
18637 * config/vax/vax.c (legitimate_constant_p): Likewise.
18639 * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
18640 * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
18641 (xtensa_legitimate_constant_p): New function.
18643 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
18645 * target.def (cannot_force_const_mem): Add a mode argument.
18646 * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
18647 * doc/tm.texi: Regenerate.
18648 * hooks.h (hook_bool_mode_rtx_false): Declare.
18649 * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
18650 (hook_bool_mode_const_rtx_true): Likewise.
18651 (hook_bool_mode_rtx_false): New function.
18652 * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
18653 to be non-VOID. Update call to cannot_force_const_mem.
18654 (find_reloads): Update accordingly.
18655 * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
18656 * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
18658 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
18659 * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
18660 * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
18661 * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
18662 * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
18663 * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
18664 * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
18665 * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
18666 (m68k_cannot_force_const_mem): ...this new function.
18667 * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
18669 (mips_const_insns, mips_legitimize_const_move): Update calls.
18670 (mips_secondary_reload_class): Likewise.
18671 * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
18672 (pa_cannot_force_const_mem): ...this new function.
18673 * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
18674 (rs6000_cannot_force_const_mem): ...this new function.
18675 * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
18677 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
18678 * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
18680 (xtensa_cannot_force_const_mem): ...this new function.
18682 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
18684 * config/mips/mips.c (mips16_build_function_stub): Call
18685 build_function_type_list instead of build_function_type.
18686 (mips16_build_call_stub): Likewise.
18688 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
18690 * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
18691 instead of build_function_type.
18693 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
18695 * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
18696 instead of build_function_type.
18698 2011-04-20 Uros Bizjak <ubizjak@gmail.com>
18701 * config/i386/i386.md (insv): Change operand 0 constraint to
18702 "register_operand". Change operand 1 and 2 constraint to
18703 "const_int_operand". Expand to pinsr{b,w,d,q} * when appropriate.
18704 * config/i386/sse.md (sse4_1_pinsrb): Export.
18705 (sse2_pinsrw): Ditto.
18706 (sse4_1_pinsrd): Ditto.
18707 (sse4_1_pinsrq): Ditto.
18708 * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
18709 * config/i386/i386.c (ix86_expand_pinsr): New.
18711 2011-04-20 Easwaran Raman <eraman@google.com>
18713 * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
18714 containing union type only with -fstrict-aliasing.
18716 2011-04-20 Jim Meyering <meyering@redhat.com>
18718 Remove useless if-before-free tests.
18719 * calls.c (expand_call, save_area): Likewise.
18720 * cfgcleanup.c (try_forward_edges): Likewise.
18721 * collect2.c (collect_execute): Likewise.
18722 * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
18723 * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
18724 * coverage.c (coverage_checksum_string): Likewise.
18725 * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
18726 * cselib.c (cselib_init): Likewise.
18727 * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
18728 (df_set_clean_cfg): Likewise.
18729 * function.c (free_after_compilation): Likewise.
18730 * gcc.c (do_spec_1, main): Likewise.
18731 * gcov.c (create_file_names): Likewise.
18732 * gensupport.c (identify_predicable_attribute): Likewise.
18733 * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
18734 * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
18735 * haifa-sched.c (haifa_finish_h_i_d): Likewise.
18736 * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
18737 * ipa-pure-const.c (local_pure_const): Likewise.
18738 * ipa-reference.c (propagate): Likewise.
18739 * ira-costs.c (free_ira_costs): Likewise.
18740 * ira.c (free_register_move_costs, build_insn_chain): Likewise.
18741 * matrix-reorg.c (mat_free): Likewise.
18742 * prefix.c (get_key_value): Likewise.
18743 * profile.c (compute_value_histograms): Likewise.
18744 * reload1.c (free_reg_equiv): Likewise.
18745 * sched-deps.c (free_deps): Likewise.
18746 * sel-sched-ir.c (fence_clear): Likewise.
18747 * sese.c (set_rename, if_region_set_false_region): Likewise.
18748 * tree-data-ref.c (free_rdg): Likewise.
18749 * tree-eh.c (lower_try_finally): Likewise.
18750 * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
18751 * tree-ssa-live.c (delete_var_map): Likewise.
18752 * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
18753 * tree-ssa-pre.c (phi_trans_add): Likewise.
18755 2011-04-20 Jakub Jelinek <jakub@redhat.com>
18757 PR tree-optimization/48611
18758 * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
18759 beyond ERT_MUST_NOT_THROW region.
18761 2011-04-20 Catherine Moore <clm@codesourcery.com>
18763 * config/mips/mips.opt (mfix-24k): New.
18764 * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
18765 * config/mips/mips.md (length): Increase by 4 for stores if
18767 * config/mips/mips.c (mips_reorg_process_insns): Do not allow
18768 all noreorder if fixing 24K errata.
18769 * doc/invoke.texi: Document mfix-24k.
18771 2011-04-20 Chung-Lin Tang <cltang@codesourcery.com>
18773 * config/arm/arm.c (arm_legitimize_reload_address): For NEON
18774 quad-word modes, reduce to 9-bit index range when above 1016 limit.
18776 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
18778 * config/arm/arm.c (arm_gen_constant): Move movw support ....
18779 (const_ok_for_op): ... to here.
18781 2011-04-20 Kai Tietz <ktietz@redhat.com>
18783 * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
18784 and (X && !Y) | (!X && Y) optimization to (X ^ Y).
18786 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
18788 * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
18790 2011-04-20 Richard Guenther <rguenther@suse.de>
18792 PR tree-optimization/47892
18793 * tree-if-conv.c (if_convertible_stmt_p): Const builtins
18794 are if-convertible.
18796 2011-04-20 Eric Botcazou <ebotcazou@adacore.com>
18798 * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
18800 2011-04-20 Tristan Gingold <gingold@adacore.com>
18802 * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
18804 2011-04-20 Georg-Johann Lay <avr@gjlay.de>
18808 * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
18809 (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
18810 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
18811 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
18812 (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
18814 * config/avr/avr-protos.h (avr_asm_output_aligned_common):
18817 * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
18818 (avr_asm_named_section, avr_asm_output_aligned_common,
18819 avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
18820 New functions to update...
18821 (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
18822 (avr_asm_init_sections): Overwrite section callbacks for
18823 data_section, bss_section.
18824 (avr_file_start): Move output of __do_copy_data, __do_clear_bss
18826 (avr_file_end): ...here.
18828 2011-04-20 Richard Guenther <rguenther@suse.de>
18830 PR middle-end/48695
18831 * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
18832 objects and types here. Adjust for their offset before comparing.
18834 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
18836 * tree-vect-stmts.c (vectorizable_store): Only chain one related
18837 statement per copy.
18839 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
18841 * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
18842 (GIMPLE_H): Include $(INTERNAL_FN_H).
18843 (OBJS-common): Add internal-fn.o.
18844 (internal-fn.o): New rule.
18845 * internal-fn.def: New file.
18846 * internal-fn.h: Likewise.
18847 * internal-fn.c: Likewise.
18848 * gimple.h: Include internal-fn.h.
18849 (GF_CALL_INTERNAL): New gf_mask.
18850 (gimple_statement_call): Put fntype into a union with a new
18852 (gimple_build_call_internal): Declare.
18853 (gimple_build_call_internal_vec): Likewise.
18854 (gimple_call_same_target_p): Likewise.
18855 (gimple_call_internal_p): New function.
18856 (gimple_call_internal_fn): Likewise.
18857 (gimple_call_fntype): Return null for internal calls.
18858 (gimple_call_set_fntype): Assert that the function is not internal.
18859 (gimple_call_set_fn): Likewise.
18860 (gimple_call_set_fndecl): Likewise.
18861 (gimple_call_set_internal_fn): New function.
18862 (gimple_call_addr_fndecl): Handle null functions.
18863 (gimple_call_return_type): Likewise null types.
18864 * gimple.c (gimple_build_call_internal_1): New function.
18865 (gimple_build_call_internal): Likewise.
18866 (gimple_build_call_internal_vec): Likewise.
18867 (gimple_call_same_target_p): Likewise.
18868 (gimple_call_flags): Handle calls to internal functions.
18869 (gimple_call_fnspec): New function.
18870 (gimple_call_arg_flags, gimple_call_return_flags): Use it.
18871 (gimple_has_side_effects): Handle null functions.
18872 (gimple_rhs_has_side_effects): Likewise.
18873 (gimple_call_copy_skip_args): Handle calls to internal functions.
18874 * cfgexpand.c (expand_call_stmt): Likewise.
18875 * expr.c (expand_expr_real_1): Assert that the call isn't internal.
18876 * gimple-fold.c (gimple_fold_call): Handle null functions.
18877 (gimple_fold_stmt_to_constant_1): Don't fold
18878 calls to internal functions.
18879 * gimple-low.c (gimple_check_call_args): Handle calls to internal
18881 * gimple-pretty-print.c (dump_gimple_call): Likewise.
18882 * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
18883 * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
18884 (do_warn_unused_result): Likewise.
18885 * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
18886 * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
18887 * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
18888 the target of a call.
18889 (initialize_hash_element): Update accordingly.
18890 (hashable_expr_equal_p): Use gimple_call_same_target_p.
18891 (iterative_hash_hashable_expr): Handle calls to internal functions.
18892 (print_expr_hash_elt): Likewise.
18893 * tree-ssa-pre.c (can_value_number_call): Likewise.
18894 (eliminate): Handle null functions.
18895 * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
18896 * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
18897 (find_func_aliases): Likewise.
18898 * value-prof.c (gimple_ic_transform): Likewise.
18899 (gimple_indirect_call_to_profile): Likewise.
18900 * lto-streamer-in.c (input_gimple_stmt): Likewise.
18901 * lto-streamer-out.c (output_gimple_stmt): Likewise.
18903 2011-04-19 Jan Hubicka <jh@suse.cz>
18905 * ipa-inline-transform.c (save_inline_function_body): Add comments.
18906 * ipa-inline.c (inline_small_functions): Compute summaries first,
18907 populate heap later.
18909 2011-04-19 Jan Hubicka <jh@suse.cz>
18911 * cgraph.h (save_inline_function_body): Remove.
18912 * ipa-inline-transform.c: New file, broke out of...
18913 * ipa-inline.c: ... this one; Update toplevel comment.
18914 (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
18916 (update_noncloned_frequencies): Move to ipa-inline-transform.c
18917 (cgraph_mark_inline_edge): Rename to inline_call; move to
18918 ipa-inline-transform.c.
18919 (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
18920 move to ipa-inline-transform.c
18921 (recursive_inlining, inline_small_functions, flatten_function,
18922 ipa_inline, inline_always_inline_functions,
18923 early_inline_small_functions): Update.
18924 (inline_transform): Move to ipa-inline-transform.c.
18925 * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
18927 * Makefile.in (ipa-inline-transform.o): New file.
18928 * cgraphunit.c (save_inline_function_body): Move to
18929 ipa-inline-transform.c
18931 2011-04-19 DJ Delorie <dj@redhat.com>
18933 * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
18934 registers if we already know there aren't any.
18935 (m32c_emit_epilogue): Don't emit a barrier here.
18936 (m32c_emit_eh_epilogue): Likewise.
18937 * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
18938 operands at expand time.
18939 * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
18941 (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
18942 duplicates. Provide aliases instead.
18943 * config/m32c/prologue.md (eh_return): Emit a barrier here.
18944 (eh_epilogue): Add a "(return)" here as a hint to other parts of
18947 2011-04-19 Anatoly Sokolov <aesok@post.ru>
18949 * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
18950 * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
18951 (general_or_i64_p, sparc_register_move_cost): New function.
18953 2011-04-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18955 * doc/install.texi (Configuration, --enable-threads): Remove mach.
18956 Add lynx, mipssde. Sort table.
18958 2011-04-19 Xinliang David Li <davidxl@google.com>
18960 * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
18963 2011-04-19 Jakub Jelinek <jakub@redhat.com>
18966 * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
18967 is a SUBREG with non-MODE_INT mode inside of it.
18969 2011-04-19 Martin Jambor <mjambor@suse.cz>
18971 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
18972 also according to actual contants.
18973 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
18974 (gimple_fold_call): Use it.
18975 * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
18977 2011-04-19 Martin Jambor <mjambor@suse.cz>
18979 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
18980 non-pointer assignments.
18982 2011-04-19 Martin Jambor <mjambor@suse.cz>
18984 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
18985 account anc_offset and otr_type from the indirect edge info.
18986 * ipa-prop.c (get_ancestor_addr_info): New function.
18987 (compute_complex_ancestor_jump_func): Assignment analysis moved to
18988 get_ancestor_addr_info, call it.
18989 (ipa_note_param_call): Do not initialize information about polymorphic
18990 calls, return the indirect call graph edge. Remove the last
18991 parameter, adjust all callers.
18992 (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
18993 parameters. Initialize polymorphic information in the indirect edge.
18995 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
18998 * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
18999 the types if they have different enumeration identifiers.
19001 2011-04-19 Jan Hubicka <jh@suse.cz>
19003 * cgraph.h (cgraph_optimize_for_size_p): Declare.
19004 * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
19005 * predict.c (cgraph_optimize_for_size_p): Break out from ...
19006 (optimize_function_for_size_p) ... here.
19008 2011-04-19 Richard Guenther <rguenther@suse.de>
19011 * tree.c (free_lang_data): Do not reset the decl-assembler-name
19014 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
19016 * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
19017 if DECL_NO_INLINE_WARNING_P is set on the function.
19019 2011-04-19 Bernd Schmidt <bernds@codesourcery.com>
19022 * reload1.c (inc_for_reload): Return void. All callers changed.
19023 (emit_input_reload_insns): Don't try to delete previous output
19024 reloads to a register, or record spill_reg_store for autoincs.
19026 2011-04-19 Basile Starynkevitch <basile@starynkevitch.net>
19028 * gengtype.h: Updated copyright year.
19029 (struct input_file_st): Add inpisplugin field.
19030 (type_fileloc): New function.
19032 (write_typed_struct_alloc_def): Add gcc_assert.
19033 (write_typed_alloc_defns): Ditto. Don't output for plugin files.
19034 (write_typed_alloc_defns): Don't output for plugin files.
19035 (input_file_by_name): Clear inpisplugin field.
19036 (main): Set inpisplugin field for plugin files.
19038 2011-04-19 Nicola Pero <nicola.pero@meta-innovation.com>
19040 * gengtype-state.c (string_eq): New.
19041 (read_state): Use string_eq instead of strcmp when creating the
19044 2011-04-19 Wei Guozhi <carrot@google.com>
19047 * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
19048 * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
19050 * config/arm/constraints.md (Uu): New constraint.
19051 * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
19053 2011-04-19 Tristan Gingold <gingold@adacore.com>
19055 * config.gcc (-*-*-*vms): Added.
19056 (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
19058 * config/vms/vms-ld.c: New file.
19059 * config/vms/vms-ar.c: New file.
19060 * config/vms/t-vmsnative: New file.
19062 2011-04-18 Xinliang David Li <davidxl@google.com>
19064 * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
19066 2011-04-18 Jakub Jelinek <jakub@redhat.com>
19068 PR middle-end/48661
19069 * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
19070 if TREE_TYPE (v) is non-NULL.
19072 * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
19073 gimple_get_virt_mehtod_for_binfo.
19074 * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
19075 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
19077 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
19079 2011-04-18 Michael Matz <matz@suse.de>
19080 Steve Ellcey <sje@cup.hp.com>
19082 * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
19083 use its mode as source mode if it isn't VOIDmode.
19085 2011-04-18 Dennis, CHENG Renquan <crquan@fedoraproject.org>
19087 * doc/passes.texi: Fill crossref nodes.
19089 2011-04-18 Jim Meyering <meyering@redhat.com>
19091 Fix doubled-word typos in comments and strings
19092 * config/alpha/vms-unwind.h: s/for for/for/
19093 * config/arm/unwind-arm.h: Likewise.
19094 * config/microblaze/microblaze.c: Likewise.
19095 * config/sh/constraints.md: s/in in/in/
19096 * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
19098 2011-04-18 Uros Bizjak <ubizjak@gmail.com>
19100 * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
19101 (AVX_FLOAT_MODE_P): Ditto.
19102 (AVX128_VEC_FLOAT_MODE_P): Ditto.
19103 (AVX256_VEC_FLOAT_MODE_P): Ditto.
19104 (AVX_VEC_FLOAT_MODE_P): Ditto.
19105 * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
19106 (UNSPEC_MASKSTORE): Ditto.
19107 * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
19108 Merge from <sse>_movmsk<ssemodesuffix> and
19109 avx_movmsk<ssemodesuffix>256. Use VF mode iterator.
19110 (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64. Use P mode
19112 (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
19113 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
19114 (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
19116 2011-04-18 Jan Hubicka <jh@suse.cz>
19118 * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
19120 * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
19121 (want_inline_function_called_once_p): Break out the logic from
19123 (edge_badness): Ensure that profile is not misupdated.
19124 (lookup_recursive_calls): Prioritize by call frequencies.
19125 (inline_small_functions): Move program size estimates here;
19126 actually process whole queue even when unit growth has been
19127 met. (to properly compute inline_failed reasons and for the
19128 case unit size decrease.) Revisit comments on recursive inlining.
19129 (ipa_inline): Remove unit summary code; first inline hot calls
19130 of functions called once, cold calls next.
19131 (order, nnodes): Remove unused variables.
19132 * Makefile.in (ipa-inline.o): No longer depent on ggc files.
19133 (GTFILES): Remove ipa-inline.c
19134 * sel-sched.c (fill_insns): Silence uninitialized var warning.
19136 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
19138 * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
19140 2011-04-18 Jie Zhang <jie@codesourcery.com>
19141 Richard Earnshaw <rearnsha@arm.com>
19143 * arm.c (neon_builtin_type_bits): Remove.
19144 (typedef enum neon_builtin_mode): New.
19145 (T_MAX): Don't define.
19146 (typedef enum neon_builtin_datum): Remove bits, codes[],
19147 num_vars and base_fcode. Add mode, code and fcode.
19148 (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
19149 VAR10): Change accordingly.
19150 (neon_builtin_data[]): Change accordingly
19151 (arm_init_neon_builtins): Change accordingly.
19152 (neon_builtin_compare): Remove.
19153 (locate_neon_builtin_icode): Remove.
19154 (arm_expand_neon_builtin): Change accordingly.
19156 * arm.h (enum arm_builtins): Move to ...
19157 * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
19159 * arm.c (arm_builtin_decl): Declare.
19160 (TARGET_BUILTIN_DECL): Define.
19161 (enum arm_builtins): Correct ARM_BUILTIN_MAX.
19162 (arm_builtin_decls[]): New.
19163 (arm_init_neon_builtins): Store builtin declarations in
19164 arm_builtin_decls[].
19165 (arm_init_tls_builtins): Likewise.
19166 (arm_init_iwmmxt_builtins): Likewise. Refactor initialization code.
19167 (arm_builtin_decl): New.
19169 2011-04-18 Richard Guenther <rguenther@suse.de>
19171 * tree.c (upper_bound_in_type): Build properly canonicalized
19173 (lower_bound_in_type): Likewise.
19175 2011-04-18 Richard Guenther <rguenther@suse.de>
19177 * gimple.h (gimple_call_addr_fndecl): New function.
19178 (gimple_call_fndecl): Use it.
19179 * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
19181 * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
19182 * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
19184 2011-04-18 Richard Guenther <rguenther@suse.de>
19186 PR middle-end/48650
19187 * tree.c (build_string): STRING_CST is now derived from tree_typed.
19189 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
19192 * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
19193 DECL_IN_CONSTANT_POOL without RTL.
19195 2011-04-18 Ulrich Weigand <ulrich.weigand@linaro.org>
19196 Ira Rosen <ira.rosen@linaro.org>
19199 * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
19200 to match neon_vzip/vuzp/vtrn_internal.
19201 * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
19202 outputs explicitly dependent on both inputs.
19203 (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
19205 2011-04-18 Jakub Jelinek <jakub@redhat.com>
19207 PR tree-optimization/48616
19208 * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
19209 whether the shift is by scalar or vector based on whether all SLP
19210 scalar stmts have the same rhs.
19212 2011-04-17 Chung-Lin Tang <cltang@codesourcery.com>
19214 * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
19217 2011-04-17 Richard Sandiford <rdsandiford@googlemail.com>
19220 * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
19223 2011-04-17 Jan Hubicka <jh@suse.cz>
19225 * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
19226 * cgrpahunit.c (cgraph_finalize_function): Do not set
19227 finalized_by_frontend.
19228 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
19229 finalized_by_frontend.
19231 2011-04-17 Jan Hubicka <jh@suse.cz>
19233 * cgraph.c (cgraph_clone_node): Do not handle vtable_method
19234 * cgraph.h (struct cgraph_local_info): Drop vtable_method.
19235 * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
19236 * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
19238 * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
19240 * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
19242 2011-04-17 Eric Botcazou <ebotcazou@adacore.com>
19245 * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
19246 is non-null before accessing it.
19247 (input_cgraph): Remove trailing spaces.
19249 2011-04-17 Revital Eres <revital.eres@linaro.org>
19251 * params.def (sms-min-sc): New param flag.
19252 * modulo-sched.c (sms_schedule): Use it.
19253 * doc/invoke.texi (sms-min-sc): Document it.
19255 2011-04-17 Jan Hubicka <jh@suse.cz>
19257 * lto-symtab.c (lto_cgraph_replace_node): When call statement is
19258 present, also set gimple_call_set_cannot_inline.
19259 * ipa-inline.c: Update toplevel comment.
19260 (MAX_TIME): Remove.
19261 (cgraph_clone_inlined_nodes): Fix linebreaks.
19262 (cgraph_check_inline_limits): Restructure to ...
19263 (caller_growth_limits): ... this one; be more tolerant
19264 on growth in nested inline chains; add explanatory comment;
19265 fix stack accounting thinko introduced by previous patch.
19266 (cgraph_default_inline_p): Remove.
19267 (report_inline_failed_reason): New function.
19268 (can_inline_edge_p): New function.
19269 (can_early_inline_edge_p): New function.
19270 (leaf_node_p): Move upwards in file.
19271 (want_early_inline_function_p): New function.
19272 (want_inline_small_function_p): New function.
19273 (want_inline_self_recursive_call_p): New function.
19274 (cgraph_edge_badness): Rename to ...
19275 (edge_badness) ... this one; fix linebreaks.
19276 (update_edge_key): Update call of edge_baddness; add
19277 detailed dump about queue updates.
19278 (update_caller_keys): Use can_inline_edge_p and
19279 want_inline_small_function_p.
19280 (cgraph_decide_recursive_inlining): Rename to...
19281 (recursive_inlining): Use can_inline_edge_p and
19282 want_inline_self_recursive_call_p; simplify and remove no longer
19284 (cgraph_set_inline_failed): Remove.
19285 (add_new_edges_to_heap): Use can_inline_edge_p and
19286 want_inline_small_function_p.
19287 (cgraph_decide_inlining_of_small_functions): Rename to ...
19288 (inline_small_functions): ... this one; cleanup; use
19289 can/want predicates; cleanup debug ouput; work edges till fibheap
19290 is exhausted and do not stop once unit growth is reached; remove
19291 later loop processing remaining edges.
19292 (cgraph_flatten): Rename to ...
19293 (flatten_function): ... this one; use can_inline_edge_p
19294 and can_early_inline_edge_p predicates.
19295 (cgraph_decide_inlining): Rename to ...
19296 (ipa_inline): ... this one; remove unreachable nodes before
19297 inlining functions called once; simplify the pass.
19298 (cgraph_perform_always_inlining): Rename to ...
19299 (inline_always_inline_functions): ... this one; use
19300 DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
19301 (cgraph_decide_inlining_incrementally): Rename to ...
19302 (early_inline_small_functions): ... this one; simplify
19303 using new predicates; cleanup; make dumps prettier.
19304 (cgraph_early_inlining): Rename to ...
19305 (early_inliner): newer inline regular functions into always-inlines;
19306 fix updating of call stmt summaries.
19307 (pass_early_inline): Update for new names.
19308 (inline_transform): Fix formating.
19309 (gate_cgraph_decide_inlining): Rename to ...
19310 (pass_ipa_inline): ... this one.
19311 * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
19312 * ipa-inline-analysis.c (dump_inline_summary): Update.
19313 (compute_inline_parameters): Do not compute disregard_inline_limits;
19314 look for mismatching arguments.
19315 (estimate_growth): Fix handlig of non-trivial self recursion.
19316 (inline_read_summary): Do not read info->disregard_inline_limits.
19317 (inline_write_summary): Do not write info->disregard_inline_limits.
19318 * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
19319 and move all checks into can_inline_edge_p predicate; re-enable code
19320 comparing optimization levels.
19321 (expand_call_inline): Do not test inline_forbidden_into_p.
19322 * Makefile.in (ipa-inline.o): Update arguments.
19324 2011-04-17 Revital Eres <revital.eres@linaro.org>
19326 * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
19328 2011-04-17 Revital Eres <revital.eres@linaro.org>
19330 * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
19332 2011-04-17 Michael Matz <matz@suse.de>
19334 PR tree-optimization/48622
19336 * ipa-inline-analysis.c (inline_read_summary): Read size/time
19337 in same order as they're written.
19339 2011-04-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
19341 * config/pa/predicates.md: Reorganize and simplify predicates.
19342 Eliminate duplicate code checks.
19343 (arith_operand): Rename to arith14_operand
19344 (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
19345 * config/pa/pa.md: Use renamed operands.
19346 * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
19347 (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
19348 arith11_operand, adddi3_operand, indexed_memory_operand,
19349 symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
19350 arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
19351 borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
19352 move_dest_operand, move_src_operand, prefetch_cc_operand,
19353 prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
19354 uint32_operand, reg_before_reload_operand, reg_or_0_operand,
19355 reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
19356 div_operand, int5_operand, movb_comparison_operator,
19357 ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
19358 arith_double_operand, ireg_operand, lhs_lshift_operand,
19359 pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
19360 integer_store_memory_operand): Likewise.
19361 * config/pa/pa.c (adddi3_operand): Move to predicates.md.
19362 (integer_store_memory_operand, read_only_operand,
19363 function_label_operand, borx_reg_operand,
19364 non_hard_reg_operand): Likewise.
19365 (eq_neq_comparison_operator): Delete unused operator.
19366 (legitimize_pic_address): Use VOIDmode for mode argument in calls to
19367 function_label_operand.
19368 (emit_move_sequence): Likewise.
19370 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
19372 * config/i386/sse.md (sseunpackmode): New mode attribute.
19373 (ssepackmode): Ditto.
19374 (vec_pack_trunc_<mode>): Macroize expander from
19375 vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
19376 (vec_unpacks_lo_<mode>): Macroize expander from
19377 vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
19378 (vec_unpacks_hi_<mode>): Macroize expander from
19379 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
19380 (vec_unpacku_lo_<mode>): Macroize expander from
19381 vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
19382 (vec_unpacku_hi_<mode>): Macroize expander from
19383 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
19384 * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
19385 ix86_expand_sse4_unpack.
19386 * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
19388 2011-04-16 Jan Hubicka <jh@suse.cz>
19390 * cgraphbuild.c: Include ipa-inline.h.
19391 (reset_inline_failed): Use initialize_inline_failed.
19392 * cgraph.c: Include ipa-inline.h.
19393 (cgraph_create_node_1): Do not initialize estimated_growth.
19394 (initialize_inline_failed): More to ipa-inline-analysis.c
19395 (dump_cgraph_node): Do not dump inline flags.
19396 * cgraph.h (cgraph_local_info): Remove inlineable, versionable
19397 and disregard_inline_limits flags.
19398 (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
19399 time, size, estimated_growth.
19400 * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
19402 * cgraphunit.c (cgraph_decide_is_function_needed): Use
19403 DECL_DISREGARD_INLINE_LIMITS.
19404 (cgraph_analyze_function): Do not initialize
19405 node->local.disregard_inline_limits.
19406 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
19407 inlinable, versionable and disregard_inline_limits.
19408 * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
19409 cgraph_check_inline_limits, cgraph_default_inline_p,
19410 cgraph_edge_badness, update_caller_keys, update_callee_keys,
19411 add_new_edges_to_heap): Update.
19412 (cgraph_decide_inlining_of_small_function): Update; set
19413 CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
19414 (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
19415 cgraph_decide_inlining_incrementally): Update.
19416 * ipa-inline.h (inline_summary): Add inlinable, versionable,
19417 disregard_inline_limits, estimated_stack_size, stack_frame_offset,
19418 time, size and estimated_growth parameters.
19419 (estimate_edge_growth): Update.
19420 (initialize_inline_failed): Declare.
19421 * ipa-split.c: Include ipa-inline.h
19422 (execute_split_functions): Update.
19423 * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
19424 (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
19425 (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
19426 * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
19427 estimated_growth to INT_MIN.
19428 (inline_node_duplication_hook): Likewise.
19429 (dump_inline_summary): Dump new fields.
19430 (compute_inline_parameters): Update.
19431 (estimate_edge_time, estimate_time_after_inlining,
19432 estimate_size_after_inlining, estimate_growth, inline_read_summary,
19433 inline_write_summary):
19434 (initialize_inline_failed): Move here from cgraph.c.
19435 * tree-sra.c: Include ipa-inline.h.
19436 (ipa_sra_preliminary_function_checks): Update.
19437 * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
19440 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
19442 * config/i386/sse.md (V16): New mode iterator.
19444 (AVXMODEQI, AVXMODEDI): Remove.
19445 (sse2, sse3): New mode attribute.
19446 (mov<mode>): Use V16 mode iterator.
19447 (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
19448 (push<mode>1): Use V16 mode iterator.
19449 (movmisalign<mode>): Ditto.
19450 (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
19451 <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
19452 (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
19453 *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
19454 (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
19455 avx_movdqu<avxmodesuffix>.
19456 (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
19457 *avx_movdqu<avxmodesuffix>.
19458 (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
19459 avx_lddqu<avxmodesuffix>.
19460 (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
19461 (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
19462 avx_movnt<AVXMODEDI:mode>.
19463 * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
19464 renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
19466 2011-04-16 Bernd Schmidt <bernds@codesourcery.com>
19469 * haifa-sched.c (prune_ready_list, schedule_block): Use
19470 sched_pressure_p rather than flag_sched_pressure.
19472 2011-04-15 Pat Haugen <pthaugen@us.ibm.com>
19474 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
19475 cgraph_get_node instead of cgraph_get_create_node.
19477 2011-04-15 Jakub Jelinek <jakub@redhat.com>
19479 * cfgexpand.c (expand_debug_expr): Use
19480 simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
19482 2011-04-15 Michael Matz <matz@suse.de>
19484 * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
19485 * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
19486 * function.c (gimplify_parameters): Ditto.
19487 * gimplify.c (gimplify_vla_decl): Ditto.
19489 * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
19490 (gimple_call_set_alloca_for_var): New inline function.
19491 (gimple_call_alloca_for_var_p): Ditto.
19492 * gimple.c (gimple_build_call_from_tree): Remember
19493 CALL_ALLOCA_FOR_VAR_P state.
19494 * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
19496 * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
19497 calls if they were for VLA objects.
19499 2011-04-15 Martin Jambor <mjambor@suse.cz>
19501 * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
19504 2011-04-15 Martin Jambor <mjambor@suse.cz>
19506 PR middle-end/48601
19507 * tree-emutls.c (lower_emutls_function_body): Call
19508 cgraph_get_create_node instead of cgraph_get_node. Do not assert the
19509 result is non-NULL.
19511 2011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
19513 * c-decl.c (detect_field_duplicates): Call
19514 objc_detect_field_duplicates instead of objc_get_interface_ivars.
19516 2011-04-15 Nathan Froyd <froydnj@codesourcery.com>
19518 * gimple.h (gimple_asm_clobbers_memory_p): Declare.
19519 * gimple.c (gimple_asm_clobbers_memory_p): Define.
19520 * ipa-pure-const.c (check_stmt): Call it.
19521 * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
19523 2011-04-15 Richard Guenther <rguenther@suse.de>
19525 PR tree-optimization/48290
19526 * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
19527 Properly decide inhibiting propagation based on the valueized
19528 operand. Do loop-closed SSA form preserving here ...
19529 (init_copy_prop): ... not here.
19531 2011-04-15 H.J. Lu <hongjiu.lu@intel.com>
19534 * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
19535 (*ieee_smax<mode>3): Likewise.
19537 2011-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
19539 * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
19540 Replace match_operand with match_dup for the third operand in
19543 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
19545 * combine.c (subst, combine_simlify_rtx): Add new argument, use it
19546 to track processing of conditionals. Update all callers.
19547 (try_combine, simplify_if_then_else): Update.
19549 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
19551 * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
19554 2011-04-15 Georg-Johann Lay <avr@gjlay.de>
19556 * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
19557 instead of match_operand for operand 3.
19559 2011-04-15 Richard Sandiford <richard.sandiford@linaro.org>
19561 * recog.h (insn_operand_data): Add an "allows_mem" field.
19562 * genoutput.c (output_operand_data): Initialize it.
19563 * optabs.c (maybe_legitimize_operand_same_code): New function.
19564 (maybe_legitimize_operand): Use it when matching the original
19567 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
19569 * gimplify.c: Fix issues in comments throughout.
19570 (voidify_wrapper_expr): Fix long line.
19571 (build_stack_save_restore): Likewise.
19572 (gimplify_loop_expr): Likewise.
19573 (gimplify_compound_lval): Likewise.
19574 (gimplify_init_ctor_eval): Likewise.
19575 (gimplify_modify_expr_rhs): Likewise.
19576 (omp_notice_threadprivate_variable): Likewise.
19578 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
19580 * cfgexpand.c (expand_call_stmt): Convert the function type to the
19581 original one if this is not a builtin function.
19583 2011-04-14 Jakub Jelinek <jakub@redhat.com>
19586 * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
19587 offset it as needed based on top 2 bits in operands[3], change
19588 MEM mode to SFmode and mask those 2 bits away from operands[3].
19590 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
19592 * c-parser.c (c_parser_objc_protocol_definition): Updated for
19593 change from objc_declare_protocols() to objc_declare_protocol().
19595 2011-04-14 Uros Bizjak <ubizjak@gmail.com>
19597 * config/i386/sse.md (sse4_1): New mode attribute.
19598 (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
19599 avx_blend<ssemodesuffix><avxmodesuffix> and
19600 sse4_1_blend<ssemodesuffix> using VF mode iterator.
19601 (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
19602 avx_blendv<ssemodesuffix><avxmodesuffix> and
19603 sse4_1_blendv<ssemodesuffix> using VF mode iterator.
19604 (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
19605 avx_dp<ssemodesuffix><avxmodesuffix> and
19606 sse4_1_dp<ssemodesuffix> using VF mode iterator.
19607 (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
19608 (sse4_1_packusdw): Merge with *avx_packusdw.
19609 (sse4_1_pblendvb): Merge with *avx_pblendvb.
19610 (sse4_1_pblendw): Merge with *avx_pblendw.
19611 (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
19612 (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
19613 avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
19615 (sse4_1_round<ssescalarmodesuffix>): Merge with
19616 *avx_round<ssescalarmodesuffix>.
19617 (aesenc): Merge with *avx_aesenc.
19618 (aesenclast): Merge with *avx_aesenclast.
19619 (aesdec): Merge with *avx_aesdec.
19620 (aesdeclast): Merge with *avx_aesdeclast.
19621 (pclmulqdq): Merge with *pclmulqdq.
19622 * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
19624 (nonimm_not_xmm0_operand_maybe_avx): Ditto.
19626 2011-04-14 H.J. Lu <hongjiu.lu@intel.com>
19628 PR middle-end/48608
19629 * cfgexpand.c (get_decl_align_unit): Renamed to ...
19630 (align_local_variable): This. Update DECL_ALIGN.
19631 (add_stack_var): Updated.
19632 (expand_one_stack_var): Likewise.
19634 2011-04-14 Richard Guenther <rguenther@suse.de>
19636 * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
19638 (dse_initialize_block_local_data, dse_leave_block,
19639 record_voperand_set, get_stmt_uid): Likewise.
19640 (dse_possible_dead_store_p): Allow any kind of killing stmt.
19641 (dse_optimize_stmt): Remove voperand set handling code.
19642 Simplify and improve to handle any kind of killing stmt.
19643 (dse_record_phi): Remove.
19644 (dse_enter_block): Simplify.
19645 (tree_ssa_dse): Likewise.
19646 * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
19648 2011-04-14 Jan Hubicka <jh@suse.cz>
19650 * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
19651 * cgraph.h (struct inline_summary): Move to ipa-inline.h
19652 (cgraph_local_info): Remove inline_summary.
19653 * ipa-cp.c: Include ipa-inline.h.
19654 (ipcp_cloning_candidate_p, ipcp_estimate_growth,
19655 ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
19657 * lto-cgraph.c (lto_output_node): Do not stream inline summary.
19658 (input_overwrite_node): Do not set inline summary.
19659 (input_node): Do not stream inline summary.
19660 * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
19661 (cgraph_decide_inlining_incrementally): Do not try to estimate overall
19662 growth; we do not have inline parameters computed for that anyway.
19663 (cgraph_early_inlining): After inlining compute call_stmt_sizes.
19664 * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
19665 (inline_summary_t): New type and VECtor.
19666 (debug_inline_summary, dump_inline_summaries): Declare.
19667 (inline_summary): Use VOCtor.
19668 (estimate_edge_growth): Kill hack computing call stmt size directly.
19669 * lto-section-in.c (lto_section_name): Add inline section.
19670 * ipa-inline-analysis.c: Include lto-streamer.h
19671 (node_removal_hook_holder, node_duplication_hook_holder): New holders
19672 (inline_node_removal_hook, inline_node_duplication_hook): New functions.
19673 (inline_summary_vec): Define.
19674 (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
19675 dump_inline_summaries): New functions.
19676 (estimate_function_body_sizes): Properly compute size/time of outgoing
19678 (compute_inline_parameters): Alloc inline_summary; do not compute
19679 size/time of incomming calls.
19680 (estimate_edge_time): Avoid missing time summary hack.
19681 (inline_read_summary): Read inline summary info.
19682 (inline_write_summary): Write inline summary info.
19683 (inline_free_summary): Free all hooks and inline summary vector.
19684 * lto-streamer.h: Add LTO_section_inline_summary section.
19685 * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
19686 * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
19688 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
19690 * tree-vectorizer.h (vect_strided_store_supported): Add a
19691 HOST_WIDE_INT argument.
19692 (vect_strided_load_supported): Likewise.
19693 (vect_permute_store_chain): Return void.
19694 (vect_transform_strided_load): Likewise.
19695 (vect_permute_load_chain): Delete.
19696 * tree-vect-data-refs.c (vect_strided_store_supported): Take a
19697 count argument. Check that the count is a power of two.
19698 (vect_strided_load_supported): Likewise.
19699 (vect_permute_store_chain): Return void. Update after above changes.
19700 Assert that the access is supported.
19701 (vect_permute_load_chain): Likewise.
19702 (vect_transform_strided_load): Return void.
19703 * tree-vect-stmts.c (vectorizable_store): Update calls after
19704 above interface changes.
19705 (vectorizable_load): Likewise.
19706 (vect_analyze_stmt): Don't check for strided powers of two here.
19708 2011-04-14 Richard Guenther <rguenther@suse.de>
19710 PR tree-optimization/48590
19711 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
19712 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
19713 (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
19714 BUILT_IN_STACK_SAVE.
19715 * tree-ssa-dce.c (propagate_necessity): Handle
19716 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
19718 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
19720 * c-parser.c (c_parser_objc_class_declaration): Updated call to
19721 objc_declare_class.
19723 2011-04-14 Richard Guenther <rguenther@suse.de>
19725 * tree.h (get_object_alignment_1): Declare.
19726 * builtins.c (get_object_alignment_1): Split out worker from ...
19727 (get_object_alignment): ... here.
19728 * fold-const.c (get_pointer_modulus_and_residue): Use
19729 get_object_alignment_1.
19731 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
19733 * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
19735 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
19736 parameter. Generalise code to handle arrays as well as vectors.
19737 (vect_setup_realignment): Update accordingly.
19738 * tree-vect-stmts.c (vectorizable_store): Likewise.
19739 (vectorizable_load): Likewise.
19741 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
19743 * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
19744 within the per-copy loop.
19746 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
19748 * tree-vect-stmts.c (vectorizable_load): Print the number of copies
19751 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
19753 * doc/options.texi (Negative): Explicitly mention that the
19754 Negative chain must be circular.
19756 2011-04-14 Nathan Froyd <froydnj@codesourcery.com>
19758 * function.h (block_chainon): Declare.
19759 * function.c (block_chainon): Define.
19761 2011-04-14 Anatoly Sokolov <aesok@post.ru>
19762 Eric Weddington <eric.weddington@atmel.com>
19763 Georg-Johann Lay <avr@gjlay.de>
19765 * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
19767 (avr_init_builtins, avr_expand_builtin,
19768 avr_expand_delay_cycles, avr_expand_unop_builtin,
19769 avr_expand_binop_builtin ): New functions.
19770 (avr_builtin_id): New enum
19771 (struct avr_builtin_description): New struct
19772 (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
19773 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
19775 * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
19776 UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
19777 UNSPECV_DELAY_CYCLES): new enumeration values
19778 (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
19779 ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
19780 ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
19781 ("*rotlqi3_4"): rename insn to "rotlqi3_4"
19782 ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
19783 "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
19784 "fmulsu"): New insns
19786 * config/avr/avr-c.c: fix line endings
19787 (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
19788 __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
19789 __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
19790 __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
19791 __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
19793 * doc/extend.texi (AVR Built-in Functions): New node
19794 (Target Builtins): Add documentation of AVR
19795 built-in functions.
19797 2011-04-14 Georg-Johann Lay <avr@gjlay.de>
19800 * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
19801 alone. Error if non-const data has attribute progmem.
19803 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
19805 * tree.h (struct tree_constructor): Include tree_typed instead of
19807 * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
19808 TS_TYPED instead of TS_COMMON.
19810 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
19812 * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
19813 (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
19814 (sse2_psadbw): Merge with *avx_psadbw.
19815 (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
19816 (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
19817 (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
19818 (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
19819 (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
19820 (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
19821 (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
19822 (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
19823 (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
19824 (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
19825 (ssse3_palignrti): Merge with *avx_palignrti.
19827 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
19829 * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
19830 * tree-ssanames.c (fini_ssanames): VEC_free it.
19831 (make_ssa_name_fn): Update for VECness of free_ssanames.
19832 (release_ssa_name, release_dead_ssa_names): Likewise.
19833 * tree.h (struct tree_ssa_name): Include tree_typed instead of
19835 * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
19836 TS_TYPED instead of TS_COMMON.
19838 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
19840 * postreload-gcse.c (gcse_after_reload_main): Add calls to
19841 statistics_counter_event.
19842 * tree-ssa-copyrename.c (stats): Define.
19843 (rename_ssa_copies): Count coalesced SSA_NAMEs. Add call to
19844 statistics_counter_event.
19845 * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
19846 (bswap_stats, widen_mul_stats): Define.
19847 (insert_reciprocals): Increment rdivs_inserted.
19848 (execute_cse_reciprocals): Zeroize reciprocal_stats. Increment
19849 rfuncs_inserted. Add calls to statistics_counter_event.
19850 (execute_cse_sincos_1): Increment inserted.
19851 (execute_cse_sincos): Zeroize sincos_stats. Add call to
19852 statistics_counter_event.
19853 (execute_optimize_bswap): Zeroize bswap_stats. Increment fields
19854 of bswap_stats. Add calls to statistics_counter_event.
19855 (convert_mult_to_widen): Increment widen_mults_inserted.
19856 (convert_plusminus_to_widen): Increment maccs_inserted.
19857 (convert_mult_to_fma): Increment fmas_inserted.
19858 (execute_optimize_widening_mul): Zeroize widen_mul_stats. Add
19859 calls to statistics_counter_event.
19861 2011-04-13 Vladimir Makarov <vmakarov@redhat.com>
19863 PR rtl-optimization/48455
19864 * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
19865 `temp_costs->mem_cost'.
19867 2011-04-13 Jan Hubicka <jh@suse.cz>
19869 * ipa-inline.h: New file.
19870 * ipa-inline-analysis.c: New file. Broken out of ...
19871 * ipa-inline.c: ... this file; update toplevel comment;
19872 include ipa-inline.h
19873 (inline_summary): Move to ipa-inline.h
19874 (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
19875 ipa-inline-analysis.c.
19876 (cgraph_estimate_time_after_inlining): Rename to
19877 estiamte_time_after_inlining; move to ipa-inline-analysis.c
19878 (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
19879 to estimate_edge_growth.
19880 (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
19881 rename to estimate_size_after_inlining.
19882 (cgraph_mark_inline_edge): Update for new naming convention.
19883 (cgraph_check_inline_limits): Likewise.
19884 (cgraph_edge_badness): Likewise.
19885 (cgraph_decide_recursive_inlining): Likewise.
19886 (cgraph_decide_inlining_of_small_functions): Likewise.
19887 (cgraph_decide_inlining_incrementally): Likewise.
19888 (cgraph_estimate_growth): Rename to estimate_growth; move to
19889 ipa-inline-analysis.c.
19890 (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
19891 (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
19892 (compute_inline_parameters): Likewise.
19893 (compute_inline_parameters_for_current): Likewise.
19894 (pass_inline_parameters): Likewise.
19895 (inline_indirect_intraprocedural_analysis): Likewise.
19896 (analyze_function): Rename to inline_analyze_function; likewise.
19897 (add_new_function): Move to ipa-inline-analysis.c.
19898 (inline_generate_summary): Likewise.
19899 (inline_read_summary): Likewise.
19900 (inline_write_summary): Likewise.
19901 * Makefile.in (ipa-inline-analysis.c): New file.
19903 2011-04-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19905 * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
19906 * configure: Regenerate.
19908 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
19910 * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
19911 instead of tree_common.
19912 (struct tree_fixed_cst, struct tree_string, struct tree_complex):
19914 * tree.c (initialize_tree_contains_struct): Mark such nodes as being
19915 TS_TYPED rather than TS_COMMON.
19916 * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
19918 2011-04-01 Georg-Johann Lay <avr@gjlay.de>
19921 * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
19922 r20 around calls of __tablejump_elpm__
19924 2011-04-13 Jakub Jelinek <jakub@redhat.com>
19926 PR middle-end/48591
19927 * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
19929 (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
19931 2011-04-13 Bernd Schmidt <bernds@codesourcery.com>
19933 * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
19934 (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
19935 (cfi_vec): New typedef.
19936 (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
19937 dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
19938 (cie_cfi_vec): New static variable.
19939 (cie_cfi_head): Delete.
19940 (add_cfi): Accept a cfi_vec * as first argument. All callers and
19941 declaration changed. Use vector rather than list operations.
19942 (new_cfi): Don't initialize the dw_cfi_next field.
19943 (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
19944 rather than list operations.
19945 (lookup_cfa): Use vector rather than list operations.
19946 (output_cfis): New argument upto. Accept a cfi_vec rather than
19947 a dw_cfi_ref list head as argument. All callers changed.
19948 Iterate over the vector using upto as a maximum index.
19949 (output_all_cfis): New static function.
19950 (output_fde): Use vector rather than list operations. Use the
19951 new upto argument for output_cfis rather than manipulating a
19953 (dwarf2out_begin_prologue): Change initializations to match
19954 new struct members.
19955 (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
19956 from the vector length rather than searching for the end of a list.
19957 Use output_all_cfis.
19958 (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
19960 2011-04-13 Nick Clifton <nickc@redhat.com>
19962 * config/rx/rx.md (movmemsi): Do not use this pattern when
19963 volatile pointers are involved.
19965 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
19967 * config/i386/sse.md (pinsrbits): Remove.
19968 (sse2_packsswb): Merge with *avx_packsswb.
19969 (sse2_packssdw): Merge with *avx_packssdw.
19970 (sse2_packuswb): Merge with *avx_packuswb.
19971 (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
19972 (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
19973 (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
19974 (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
19975 (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
19976 (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
19977 (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
19978 (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
19979 (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
19980 (*sse4_1_pinsrq): Merge with *avx_pinsrq.
19981 (sse2_loadld): Merge with *avx_loadld.
19982 (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
19983 (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
19984 (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
19985 (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
19986 (vec_concatv2di): Merge with *vec_concatv2di_avx.
19988 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
19990 * c-decl.c (union lang_tree_node): Check for TS_COMMON before
19991 calling TREE_CHAIN.
19992 * print-tree.c (print_node): Likewise.
19993 * tree-inline.c (copy_tree_r): Likewise.
19994 * c-lang.c (LANG_HOOKS_INIT_TS): Define.
19995 * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
19996 instead of TS_COMMON.
19997 * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
19998 * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
19999 (copy_node_stat): Zero TREE_CHAIN only if necessary.
20000 (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
20001 (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
20003 (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
20005 (TREE_CHAIN): Check for a TS_COMMON structure.
20006 (TREE_TYPE): Check for a TS_TYPED structure.
20008 2011-04-12 Pat Haugen <pthaugen@us.ibm.com>
20010 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
20011 cgraph_get_create_node instead of cgraph_node.
20013 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
20015 * c-parser.c (c_parser_initelt): Updated call to
20016 objc_build_message_expr.
20017 (c_parser_postfix_expression): Likewise.
20019 2011-04-12 Kai Tietz <ktietz@redhat.com>
20021 * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
20022 MASK_MS_BITFIELD_LAYOUT bit.
20024 2011-04-12 Jakub Jelinek <jakub@redhat.com>
20026 * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
20027 assert it is always true.
20028 (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
20031 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
20033 * c-parser.c (c_lex_one_token): Rewritten conditional used when
20034 compiling Objective-C to be more efficient.
20036 2011-04-12 Axel Freyn <axel-freyn@gmx.de>
20038 * opts-common.c (decode_cmdline_options_to_array): Remove variable
20041 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
20043 * recog.h, genoutput.c, optabs.c: Revert last patch.
20045 2011-04-12 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
20048 * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
20050 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
20052 * recog.h (insn_operand_data): Add an "allows_mem" field.
20053 * genoutput.c (output_operand_data): Initialize it.
20054 * optabs.c (maybe_legitimize_operand_same_code): New function.
20055 (maybe_legitimize_operand): Use it when matching the original
20058 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
20060 * genpreds.c (process_define_predicate): Move most processing
20061 to gensupport.c. Continue to validate the expression.
20062 * genrecog.c (did_you_mean_codes, compute_predicate_codes)
20063 (process_define_predicate): Move processing to gensupport.c.
20064 (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
20065 * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
20066 (compute_predicate_codes): Moved from genrecog.c. Add lineno
20068 (valid_predicate_name_p): New function, split out from old
20069 genpreds.c:process_define_predicate.
20070 (process_define_predicate): New function, combining code from
20071 old genpreds.c and genrecog.c functions.
20072 (process_rtx): Call it for DEFINE_PREDICATE and
20073 DEFINE_SPECIAL_PREDICATE.
20075 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
20077 * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
20078 size of a '%A' memory reference.
20079 (T_DREG, T_QREG): New neon_builtin_type_bits.
20080 (arm_init_neon_builtins): Assert that the load and store operands
20081 are neon_struct_operands.
20082 (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
20083 (NEON_ARG_MEMORY): New builtin_arg.
20084 (neon_dereference_pointer): New function.
20085 (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
20086 Handle NEON_ARG_MEMORY.
20087 (arm_expand_neon_builtin): Update after above interface changes.
20088 Use NEON_ARG_MEMORY for loads and stores.
20089 * config/arm/predicates.md (neon_struct_operand): New predicate.
20090 * config/arm/iterators.md (V_two_elem): Tweak formatting.
20091 (V_three_elem): Use BLKmode for accesses that have no associated mode.
20092 (V_four_elem): Tweak formatting.
20093 * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
20094 (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
20095 (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
20096 (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
20097 (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
20098 (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
20099 (neon_vst4<mode>): Replace pointer operand with a memory operand.
20100 Use %A in the output template.
20101 (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
20102 (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
20103 (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
20104 the width of the memory access. Remove post-increment.
20105 * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
20107 2011-04-12 Nick Clifton <nickc@redhat.com>
20109 * config/v850/v850.c (expand_prologue): Do not use the CALLT
20110 instruction for interrupt handlers if the target is the basic V850
20112 (expand_epilogue): Likewise.
20114 2011-04-12 Jakub Jelinek <jakub@redhat.com>
20116 PR rtl-optimization/48549
20117 * combine.c (propagate_for_debug): Also stop after BB_END of
20118 this_basic_block. Process LAST and just stop processing after it.
20119 (combine_instructions): If last_combined_insn has been deleted,
20120 set last_combined_insn to its PREV_INSN.
20122 2011-04-12 Richard Guenther <rguenther@suse.de>
20124 PR tree-optimization/46076
20125 * gimple.h (struct gimple_statement_call): Add fntype field.
20126 (gimple_call_fntype): Adjust.
20127 (gimple_call_set_fntype): New function.
20128 * gimple.c (gimple_build_call_1): Set the call function type.
20129 * gimplify.c (gimplify_call_expr): Preserve the function
20130 type the frontend used for the call.
20131 (gimplify_modify_expr): Likewise.
20132 * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
20134 * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
20136 * tree-ssa.c (useless_type_conversion_p): Function pointer
20137 conversions are useless.
20139 2011-04-12 Martin Jambor <mjambor@suse.cz>
20141 * cgraph.h (cgraph_node): Remove function declaration.
20142 (cgraph_create_node): Declare.
20143 (cgraph_get_create_node): Likewise.
20144 * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
20145 Updated all callers.
20146 (cgraph_node): Renamed to cgraph_create_node, assert that a node for
20147 the decl does not already exist. Call cgraph_get_create_node instead
20149 (cgraph_get_create_node): New function.
20150 (cgraph_same_body_alias): Update comment.
20151 (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
20152 assert it does not return NULL.
20153 (cgraph_update_edges_for_call_stmt): Likewise.
20154 (cgraph_clone_edge): Likewise.
20155 (cgraph_create_virtual_clone): Likewise.
20156 (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
20157 instead of cgraph_node.
20158 (cgraph_add_new_function): Call cgraph_create_node or
20159 cgraph_get_create_node instead of cgraph_node.
20160 * cgraphbuild.c (record_reference): Call cgraph_get_create_node
20161 instead of cgraph_node.
20162 (record_eh_tables): Likewise.
20163 (mark_address): Likewise.
20164 (mark_load): Likewise.
20165 (build_cgraph_edges): Call cgraph_get_create_node instead
20167 (rebuild_cgraph_edges): Likewise.
20168 * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
20169 instead of cgraph_node.
20170 (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
20172 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
20173 cgraph_create_node instead of cgraph_node.
20174 * c-decl.c (finish_function): Call cgraph_get_create_node instead
20176 * lto-cgraph.c (input_node): Likewise.
20177 * lto-streamer-in.c (input_function): Likewise.
20178 * varasm.c (mark_decl_referenced): Likewise.
20179 (assemble_alias): Likewise.
20181 2011-04-12 Martin Jambor <mjambor@suse.cz>
20183 * tree-inline.c (tree_function_versioning): Call cgraph_get_node
20184 instead of cgraph_node and assert it does not return NULL.
20185 * lto-streamer-in.c (lto_read_body): Likewise.
20186 * omp-low.c (new_omp_context): Likewise.
20187 (create_task_copyfn): Likewise.
20188 * tree-emutls.c (lower_emutls_function_body): Likewise.
20189 * matrix-reorg.c (transform_allocation_sites): Likewise.
20191 2011-04-12 Jakub Jelinek <jakub@redhat.com>
20194 * c-typeck.c (build_asm_expr): Error out on attempts to use
20195 void type outputs or inputs for constraints that allow reg or
20196 don't allow memory.
20198 2011-04-11 Chung-Lin Tang <cltang@codesourcery.com>
20199 Richard Earnshaw <rearnsha@arm.com>
20202 * config/arm/arm.c (arm_legitimize_reload_address): Update cases
20203 to use sign-magnitude offsets. Reject unsupported unaligned
20204 cases. Add detailed description in comments.
20205 * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
20206 condition from TARGET_32BIT to TARGET_ARM.
20208 2011-04-11 Nathan Froyd <froydnj@codesourcery.com>
20210 * tree.h (struct typed_tree): New.
20211 (struct tree_common): Include it instead of tree_base.
20212 (TREE_TYPE): Update for new location of type field.
20213 (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
20214 (DECL_USER_ALIGN, DECL_PACKED): Likewise.
20215 (union tree_node): Add typed field.
20216 * treestruct.def (TS_TYPED): New.
20217 * lto-streamer.c (check_handled_ts_structures): Handle it.
20218 * tree.c (MARK_TS_TYPED): New macro.
20219 (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
20221 2011-04-11 Eric Botcazou <ebotcazou@adacore.com>
20223 * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
20224 (force_nonfallthru): Do not alter the loop nest if no basic block
20227 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
20229 * config/i386/sse.md (VI): New mode iterator.
20230 (SSEMODEI): Remove.
20231 (AVX256MODEI): Ditto.
20232 (AVXMODEF4P): Ditto.
20233 (avxvecpsmode): Ditto.
20234 (one_cmpl<mode>2): Enable for TARGET_SSE. Use VI mode iterator.
20235 (sse2_andnot<mode>3): New expander.
20236 (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
20237 *avx_andnot<mode>3. Enable for TARGET_SSE. Use VI mode iterator.
20238 (<any_logic:code><mode>3): Use VI mode iterator.
20239 (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
20240 and *avx_<any_logic:code><mode>3. Use VI mode iterator.
20241 (*andnottf3): Handle AVX three-operand constraints.
20242 (*<any_logic:code>tf3): Handle AVX three-operand constraints.
20244 2011-04-11 Joseph Myers <joseph@codesourcery.com>
20245 Robert Millan <rmh@gnu.org>
20247 * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
20248 * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
20249 GNU_USER_DYNAMIC_LINKER64): Define.
20250 (REG_NAME): Don't undefine.
20251 (MD_UNWIND_SUPPORT): Undefine.
20252 * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
20253 (REG_NAME): Don't undefine.
20254 (MD_UNWIND_SUPPORT): Undefine.
20255 * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
20257 2011-04-11 Joseph Myers <joseph@codesourcery.com>
20259 * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
20260 (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
20262 2011-04-11 Xinliang David Li <davidxl@google.com>
20264 * value-profile.c (check_ic_target): New function.
20265 (gimple_ic_transform): Sanity check indirect call target.
20266 * gimple-low.c (gimple_check_call_args): Interface change.
20267 (gimple_check_call_matching_types): New function.
20268 * tree-inline.c (tree_can_inline_p): Call new function.
20270 2011-04-11 Basile Starynkevitch <basile@starynkevitch.net>
20272 * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
20273 tree-pretty-print.h & realmpfr.h.
20275 2011-04-11 Vladimir Makarov <vmakarov@redhat.com>
20277 PR middle-end/48464
20278 * ira.c (setup_pressure_classes): Fix typo in loop condition.
20279 (setup_allocno_and_important_classes): Ditto.
20281 2011-04-11 Joseph Myers <joseph@codesourcery.com>
20283 * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
20284 GNU_USER_DYNAMIC_LINKER.
20285 * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
20286 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
20287 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
20288 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
20289 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
20290 GNU_USER_TARGET_OS_CPP_BUILTINS.
20291 * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
20292 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
20293 * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
20294 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
20295 * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
20296 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
20297 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
20298 GNU_USER_TARGET_OS_CPP_BUILTINS.
20299 * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
20300 GNU_USER_DYNAMIC_LINKER.
20301 * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
20302 GNU_USER_TARGET_OS_CPP_BUILTINS.
20303 * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
20304 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
20305 * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
20306 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
20307 * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
20308 * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
20309 GNU_USER_DYNAMIC_LINKER64): Remove.
20310 * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
20311 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
20312 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
20313 GNU_USER_DYNAMIC_LINKER.
20314 * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
20315 GNU_USER_TARGET_OS_CPP_BUILTINS.
20316 * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
20317 GNU_USER_TARGET_OS_CPP_BUILTINS.
20318 * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
20319 to GNU_USER_TARGET_OS_CPP_BUILTINS.
20320 * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
20321 GNU_USER_TARGET_OS_CPP_BUILTINS.
20322 (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
20323 (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
20324 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
20325 * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
20326 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
20327 * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
20328 GNU_USER_DYNAMIC_LINKER.
20329 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
20330 GNU_USER_TARGET_OS_CPP_BUILTINS.
20331 * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
20332 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
20333 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
20334 GNU_USER_DYNAMIC_LINKER.
20335 * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
20336 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
20337 * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
20338 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
20339 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
20340 GNU_USER_DYNAMIC_LINKER.
20341 * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
20342 GNU_USER_DYNAMIC_LINKERN32.
20343 (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
20344 GNU_USER_DYNAMIC_LINKERN32. Change LINUX_DYNAMIC_LINKER64 to
20345 GNU_USER_DYNAMIC_LINKER64. Change LINUX_DYNAMIC_LINKER32 to
20346 GNU_USER_DYNAMIC_LINKER32.
20347 * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
20348 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
20349 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
20350 GNU_USER_DYNAMIC_LINKER.
20351 * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
20352 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
20353 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
20354 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
20355 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
20356 * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
20357 GNU_USER_DYNAMIC_LINKER32.
20358 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
20359 * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
20360 GNU_USER_DYNAMIC_LINKER.
20361 * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
20362 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
20363 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
20364 GNU_USER_DYNAMIC_LINKER32. Change LINUX_DYNAMIC_LINKER64 to
20365 GNU_USER_DYNAMIC_LINKER64.
20366 * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
20367 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
20368 (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
20369 GNU_USER_DYNAMIC_LINKER.
20370 * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
20371 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
20372 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
20373 GNU_USER_DYNAMIC_LINKER.
20374 * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
20375 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
20376 (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
20377 GNU_USER_DYNAMIC_LINKER32.
20378 (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
20379 GNU_USER_DYNAMIC_LINKER64.
20380 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
20381 GNU_USER_DYNAMIC_LINKER64.
20382 * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
20383 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
20384 * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
20385 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
20386 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
20388 2011-04-11 Joseph Myers <joseph@codesourcery.com>
20390 * config/i386/gnu-user.h: Copy from linux.h. Update comments.
20391 (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
20392 (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
20393 GNU_USER_DYNAMIC_LINKER.
20394 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
20395 * config/i386/gnu-user64.h: Copy from linux64.h. Update comments.
20396 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
20397 (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
20398 GNU_USER_DYNAMIC_LINKER64.
20399 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
20400 * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
20401 GNU_USER_LINK_EMULATION.
20402 * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
20403 DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
20404 ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
20405 MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
20406 PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
20407 CPP_SPEC, CC1_SPEC): Remove.
20408 (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
20409 (GNU_USER_DYNAMIC_LINKER): Define.
20410 (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
20411 ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
20412 ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
20413 LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
20414 TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
20415 STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
20416 TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
20417 * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
20418 CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
20419 TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
20420 LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
20421 LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
20422 (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
20423 (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
20424 TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
20425 TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
20426 * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
20427 GNU_USER_DYNAMIC_LINKER.
20428 * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
20429 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
20430 * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
20431 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
20432 * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
20433 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
20434 * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
20435 i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
20436 i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
20437 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
20439 2011-04-11 Kai Tietz <ktietz@redhat.com>
20443 * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
20444 * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
20446 (ix86_is_msabi_thiscall): Removed.
20447 (ix86_is_type_thiscall): Likewise.
20448 (ix86_get_callcvt): New function.
20449 (ix86_comp_type_attributes): Simplify check.
20450 (ix86_function_regparm): Use ix86_get_callcvt for calling
20451 convention attribute checks.
20452 (ix86_return_pops_args): Likewise.
20453 (ix86_static_chain): Likewise.
20454 (x86_this_parameter): Likewise.
20455 (x86_output_mi_thunk): Likewise.
20456 (ix86_function_type_abi): Optimize check for types without attributes.
20457 * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
20458 IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
20459 IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
20461 (IX86_BASE_CALLCVT): Helper macro.
20462 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
20463 Use ix86_get_callcvt for calling convention attribute checks and avoid
20464 symbol-decoration for stdcall in TARGET_RTD case.
20465 * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
20467 (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
20470 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
20472 * config/i386/sse.md (VI_128): New mode iterator.
20473 (VI12_128): Rename from SSEMODE12.
20474 (VI14_128): Rename from SSEMODE14.
20475 (VI124_128): New mode iterator.
20476 (VI24_128): Rename from SSEMODE248.
20477 (VI248_128): Rename from SSEMODE248.
20478 (SSEMODE124C8): Remove.
20479 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
20480 (*sse2_<plusminus_insn><mode>3): Merge with
20481 *avx_<plusminus_insn><mode>3.
20482 (*mulv8hi3): Merge with *avx_mulv8hi3.
20483 (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
20484 (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
20485 (*sse2_pmaddwd): Merge with *avx_pmaddwd.
20486 (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
20487 (ashr<mode>3): Merge with *avx_ashr<mode>3.
20488 (lshr<mode>3): Merge with *avx_lshr<mode>3.
20489 (ashl<mode>3): Merge with *avx_ashl<mode>3.
20490 (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
20491 (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
20492 (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
20493 (*<smaxmin:code>v8hi3): Ditto.
20494 (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
20495 (*<smaxmin:code>v16qi3): Ditto.
20496 (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
20497 (*sse2_eq<mode>3): Ditto.
20498 (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
20499 (*sse2_gt<mode>3): Ditto.
20500 (vcondv2di): Split out of vcond<mode>.
20501 (vconduv2di): Split out of vcondu<mode>.
20503 2011-04-11 Richard Guenther <rguenther@suse.de>
20505 * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
20506 before calling tree_low_cst.
20508 2011-04-11 Richard Guenther <rguenther@suse.de>
20510 * stor-layout.c (layout_type): Compute all array index size operations
20511 in the original type.
20512 (initialize_sizetypes): Add comment.
20513 (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
20515 2011-04-11 Joseph Myers <joseph@codesourcery.com>
20517 * common.opt (Tbss=, Tdata=, Ttext=): New options.
20519 2011-04-11 Martin Jambor <mjambor@suse.cz>
20521 * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
20522 of cgraph_node, handle NULL return value.
20523 (cgraph_global_info): Likewise.
20524 (cgraph_rtl_info): Likewise.
20525 * tree-inline.c (estimate_num_insns): Likewise.
20526 * gimplify.c (unshare_body): Likewise.
20527 (unvisit_body): Likewise.
20528 (gimplify_body): Likewise.
20529 * predict.c (optimize_function_for_size_p): Likewise.
20530 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
20531 (call_may_clobber_ref_p_1): Likewise.
20532 * varasm.c (function_section_1): Likewise.
20533 (assemble_start_function): Likewise.
20535 2011-04-11 Martin Jambor <mjambor@suse.cz>
20537 * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
20539 * final.c (rest_of_clean_state): Likewise.
20540 * gimple-iterator.c (update_call_edge_frequencies): Likewise.
20541 * passes.c (pass_init_dump_file): Likewise.
20542 (execute_all_ipa_transforms): Likewise.
20543 (function_called_by_processed_nodes_p): Likewise.
20544 * predict.c (maybe_hot_frequency_p): Likewise.
20545 (probably_never_executed_bb_p): Likewise.
20546 (compute_function_frequency): Likewise.
20547 * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
20548 (unnest_nesting_tree_1): Likewise.
20549 (lower_nested_functions): Likewise.
20550 * tree-optimize.c (execute_fixup_cfg): Likewise.
20551 (tree_rest_of_compilation): Likewise.
20552 * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
20553 * tree-sra.c (ipa_early_sra): Likewise.
20554 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
20555 * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
20556 * ipa.c (record_cdtor_fn): Likewise.
20557 * ipa-inline.c (cgraph_early_inlining): Likewise.
20558 (compute_inline_parameters_for_current): Likewise.
20559 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
20560 * ipa-pure-const.c (local_pure_const): Likewise.
20561 * ipa-split.c (split_function): Likewise.
20562 (execute_split_functions): Likewise.
20563 * cgraphbuild.c (build_cgraph_edges): Likewise.
20564 (rebuild_cgraph_edges): Likewise.
20565 (cgraph_rebuild_references): Likewise.
20566 (remove_cgraph_callee_edges): Likewise.
20567 * cgraphunit.c (cgraph_mark_if_needed): Likewise.
20568 (verify_cgraph_node): Likewise.
20569 (cgraph_analyze_functions): Likewise.
20570 (cgraph_preserve_function_body_p): Likewise.
20571 (save_inline_function_body): Likewise.
20572 (save_inline_function_body): Likewise.
20573 * tree-inline.c (copy_bb): Likewise.
20574 (optimize_inline_calls): Likewise.
20576 2011-04-11 Martin Jambor <mjambor@suse.cz>
20578 PR tree-optimization/48195
20579 * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
20580 ipa_check_create_edge_args.
20581 (ipcp_generate_summary): Do not call ipa_check_create_node_params and
20582 ipa_check_create_edge_args.
20583 * ipa-inline.c (inline_generate_summary): Do not call
20584 ipa_check_create_node_params and ipa_check_create_edge_args.
20585 * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
20586 ipa_check_create_edge_args.
20588 2011-04-09 Anatoly Sokolov <aesok@post.ru>
20590 * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
20592 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
20593 * function.c (record_hard_reg_sets): Likewise.
20594 * ira.c (compute_regs_asm_clobbered): Likewise.
20595 * sched-deps.c (sched_analyze_1): Likewise.
20596 * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
20598 2011-04-09 Xinliang David Li <davidxl@google.com>
20600 PR tree-optimization/PR48484
20601 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
20602 has_valid_pred lazily
20604 2011-04-09 Duncan Sands <baldrick@free.fr>
20606 * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
20608 2011-04-08 Eric Botcazou <ebotcazou@adacore.com>
20610 * combine.c (combine_validate_cost): Adjust comments. Set registered
20611 cost of I0 to zero at the end, if any.
20613 2011-04-08 Xinliang David Li <davidxl@google.com>
20615 * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
20616 to insane profile data.
20618 2011-04-08 Xinliang David Li <davidxl@google.com>
20620 * ipa-cp.c (ipcp_update_profiling): Correct
20621 negative scale factor due to insane profile data.
20623 2011-04-08 Xinliang David Li <davidxl@google.com>
20625 * final.c (dump_basic_block_info): New function.
20626 (final): Dump basic block.
20627 (final_scan_insn): Remove old dump.
20629 2011-04-08 Steven G. Kargl <kargl@gcc.gnu.org>
20632 * config.gcc (i386-*-freebsd): Disable unwind table generation for
20635 2011-04-08 Michael Matz <matz@suse.de>
20637 PR middle-end/48389
20638 * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
20640 (rebuild_jump_labels): Call rebuild_jump_labels_1.
20641 * rtl.h (rebuild_jump_labels_chain): Declare.
20642 * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
20643 insns inserted on edges.
20645 2011-04-08 Joseph Myers <joseph@codesourcery.com>
20647 * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
20648 * config/arm/arm-arches.def: New.
20649 * config/arm/arm-opts.h: New.
20650 * config/arm/genopt.sh: New.
20651 * config/arm/arm-tables.opt: New (generated).
20652 * config/arm/arm.c (arm_handle_option, arm_target_help,
20653 TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
20654 (all_architectures): Get most table contents from arm-arches.def.
20655 (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
20656 arm_selected_tune here.
20657 * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
20658 * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
20659 (march=, mcpu=, mtune=): Use Enum and Var.
20660 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
20661 (arm.o): Update dependencies.
20663 2011-04-08 Basile Starynkevitch <basile@starynkevitch.net>
20665 * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
20667 (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
20668 (write_typed_alloc_defns): Likewise.
20669 (main): Calls write_typed_alloc_defns with output_header.
20671 2011-04-08 Vladimir Makarov <vmakarov@redhat.com>
20673 PR inline-asm/48435
20674 * ira-color.c (setup_profitable_hard_regs): Add comments.
20675 Don't take prohibited hard regs into account.
20676 (setup_conflict_profitable_regs): Rename to
20677 get_conflict_profitable_regs.
20678 (check_hard_reg_p): Check prohibited hard regs.
20680 2011-04-08 Nathan Froyd <froydnj@codesourcery.com>
20682 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
20683 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
20684 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
20686 2011-04-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
20689 * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
20690 move from floating point to shift amount register.
20691 (emit_move_sequence): Remove secondary reload support for floating
20692 point to shift amount amount register copies.
20693 (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
20694 amount register copies.
20695 * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
20696 register, return false if mode isn't a scalar integer mode.
20697 * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
20699 2011-04-08 Richard Guenther <rguenther@suse.de>
20701 * gimple.c (gimple_call_flags): Remove kludge.
20703 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
20705 * sel-sched.c (sel_region_init): Move call to
20706 sel_setup_region_sched_flags after setup_current_loop_nest.
20708 2011-04-08 Andrey Belevantsev <abel@ispras.ru>
20710 PR rtl-optimization/48272
20711 * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
20712 init_insn_reg_pressure_info. Adjust a caller.
20713 * sched-int.h (init_insn_reg_pressure_info): Declare.
20714 * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
20715 when sched-pressure is enabled.
20717 2011-04-08 Richard Guenther <rguenther@suse.de>
20719 * gimple.c (gimple_set_modified): Do not queue calls to
20720 MODIFIED_NORETURN_CALLS here ...
20721 * tree-ssa-operands.c (update_stmt_operands): ... but here.
20723 2011-04-08 Richard Guenther <rguenther@suse.de>
20726 * toplev.c (lang_dependent_init): Do not open asm_out_file
20727 in WPA mode, nor perform debug machinery initialization.
20728 (finalize): Do not unlink asm_out_file in WPA mode.
20730 2011-04-08 Richard Guenther <rguenther@suse.de>
20732 * gimple.h (gimple_call_fntype): New function.
20733 (gimple_call_return_type): Use it.
20734 * expr.c (expand_expr_real_1): Use gimple_call_fntype.
20735 * gimple-low.c (gimple_check_call_args): Likewise.
20736 * gimple.c (gimple_call_flags): Likewise.
20737 (gimple_call_arg_flags): Likewise.
20738 (gimple_call_return_flags): Likewise.
20739 * tree-cfg.c (verify_gimple_call): Likewise.
20740 (do_warn_unused_result): Likewise.
20741 * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
20742 * value-prof.c (gimple_ic_transform): Fix fndecl check.
20744 2011-04-08 Dmitry Melnik <dm@ispras.ru>
20746 PR rtl-optimization/48235
20747 * sel-sched.c (code_motion_process_successors): Recompute the last
20748 insn in basic block if control flow changed.
20749 (code_motion_path_driver): Ditto. Recompute the first insn as well.
20750 Update condition for ilist_remove.
20752 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
20754 PR rtl-optimization/48302
20755 * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
20756 * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument. Use
20757 it to record added preheader blocks.
20758 * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument. Pass it
20759 on to sel_add_loop_preheaders.
20760 (sel_region_init): Move call to setup_current_loop_nest after
20763 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
20766 * cfgloop.h (loop_has_exit_edges): New helper.
20767 * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
20769 * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
20770 that have no exit edges.
20772 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
20774 PR rtl-optimization/48442
20775 * sel-sched.c (init_seqno): Remove number_of_insns argument. Update
20776 all callers. Adjust assert.
20778 2011-04-08 Jakub Jelinek <jakub@redhat.com>
20780 PR tree-optimization/48377
20781 * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
20782 is_packed to true even for types with smaller TYPE_ALIGN than
20785 2011-04-08 Richard Guenther <rguenther@suse.de>
20788 * doc/tm.texi: Re-generate.
20790 2011-04-08 Wei Guozhi <carrot@google.com>
20793 * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
20794 * config/arm/arm.c (arm_attr_length_push_multi): New function.
20795 * config/arm/arm.md (*push_multi): Change the length computation to
20798 2011-04-08 Anatoly Sokolov <aesok@post.ru>
20800 * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
20801 (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
20802 * doc/tm.texi: Regenerate.
20803 * system.h (ASM_OUTPUT_BSS): Poison.
20804 * varasm.c (asm_output_bss): Remove function.
20805 (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
20807 * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
20808 * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
20809 * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
20810 * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
20812 * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
20814 * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
20816 * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
20818 2011-04-07 Joseph Myers <joseph@codesourcery.com>
20820 * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
20823 2011-04-07 Joseph Myers <joseph@codesourcery.com>
20825 * config/m68k/m68k.c (m68k_handle_option): Don't handle
20826 OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
20827 OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
20829 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
20830 handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
20831 -m68030, -m68040, -m68060, -mcpu32 and -m68332.
20832 * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
20833 m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
20834 * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
20835 (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
20836 (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
20837 options. Don't map other m68k options manually. Don't handle
20838 old-style options as canonical.
20839 (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
20840 * doc/install.texi (m68k-*-*): Document binutils version requirement.
20842 2011-04-07 Eric Botcazou <ebotcazou@adacore.com>
20844 * basic-block.h (force_nonfallthru): Move to...
20845 * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
20846 (force_nonfallthru): ...here.
20847 * cfghooks.c (force_nonfallthru): New function.
20848 * cfgrtl.c (force_nonfallthru): Rename into...
20849 (rtl_force_nonfallthru): ...this.
20850 (commit_one_edge_insertion): Do not set AUX field.
20851 (commit_edge_insertions): Do not discover new basic blocks.
20852 (rtl_cfg_hooks): Add rtl_force_nonfallthru.
20853 (cfg_layout_rtl_cfg_hooks): Likewise.
20854 * function.c (thread_prologue_and_epilogue_insns): Remove bogus
20855 ATTRIBUTE_UNUSED. Discover new basic blocks in the prologue insns.
20856 * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
20858 2011-04-07 Anatoly Sokolov <aesok@post.ru>
20860 * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
20863 2011-04-07 Uros Bizjak <ubizjak@gmail.com>
20865 * config/i386/sse.md: Update copyright year.
20866 (avxcvtvecmode): Remove.
20867 (sse_movhlps): Merge with *avx_movhlps.
20868 (sse_movlhps): Merge with *avx_movlhps.
20869 (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
20870 (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
20871 (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
20872 (sse_loadhps): Merge with *avx_loadhps.
20873 (sse_storelps): Merge with *avx_storelps.
20874 (sse_loadlps): Merge with *avx_loadlps.
20875 (sse_movss): Merge with *avx_movss.
20876 (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
20877 (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
20878 (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
20879 (*vec_set<mode>_0_sse2): Split multi-unit alternative.
20880 (vec_set<mode>_0): Ditto.
20881 (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
20882 (sse4_1_insertps): Merge with *avx_insertps.
20883 (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
20884 (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
20885 (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
20886 (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
20887 (sse2_storehpd): Merge with *avx_storehpd.
20888 (sse2_loadhpd): Merge with *avx_loadhpd.
20889 (sse2_loadlpd): Merge with *avx_loadlpd.
20890 (sse2_movsd): Merge with *avx_movsd.
20891 (*vec_concatv2df): Merge with *vec_concatv2df.
20893 2011-04-07 Jakub Jelinek <jakub@redhat.com>
20896 * combine.c (combine_instructions): Add last_combined_insn,
20897 update it if insn is after it, pass it to all try_combine calls.
20898 (try_combine): Add last_combined_insn parameter, pass it instead of
20899 i3 to propagate_for_debug.
20901 2011-04-07 Nick Clifton <nickc@redhat.com>
20903 * config/mn10300/mn10300.md (movqi_internal): Add alternatives
20904 to handle MDR <-> data register transfers.
20905 (movhi_internal): Likewise.
20907 2011-04-07 Alan Modra <amodra@gmail.com>
20909 * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
20910 previous stack info.
20912 2011-04-07 Tom de Vries <tom@codesourcery.com>
20915 * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter. Pass dir to
20916 flow_find_cross_jump. Swap variables to implement backward replacement.
20917 (try_crossjump_bb): Add argument to try_crossjump_to_edge.
20919 2011-04-07 Tom de Vries <tom@codesourcery.com>
20922 * cfgcleanup.c (walk_to_nondebug_insn): New function.
20923 (flow_find_cross_jump): Use walk_to_nondebug_insn. Recalculate bb1
20925 (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
20926 src1 or src2. Redirect edges to the last basic block. Update
20927 frequency and count on multiple basic blocks in case of fallthru.
20929 2011-04-07 Tom de Vries <tom@codesourcery.com>
20932 * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
20934 (old_insns_match_p): Change return type. Replace return false/true
20935 with return dir_none/dir_both. Use can_replace_by.
20936 (flow_find_cross_jump): Add dir_p parameter. Init replacement
20937 direction from dir_p. Register replacement direction in dir, last_dir
20938 and afterlast_dir. Handle new return type of old_insns_match_p using
20939 merge_dir. Return replacement direction in dir_p.
20940 (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
20941 return type of old_insns_match_p.
20942 (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
20943 * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
20944 flow_find_cross_jump.
20945 * basic-block.h (enum replace_direction): New type.
20946 (flow_find_cross_jump): Add parameter to declaration.
20948 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
20950 * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
20951 (AVXMODEDCVTPS2DQ): Ditto.
20952 (VEC_FLOAT_MODE): Ditto.
20953 (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3. Use VF mode
20954 iterator. Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
20955 (<any_logic:code><mode>3): Use VF mode iterator.
20956 (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
20957 Use VF mode iterator.
20958 (copysign<mode>3): Use VF mode iterator.
20959 (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3. Handle
20960 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
20961 (*<any_logic:code><MODEF:mode>3): Merge with
20962 *avx_<any_logic:code><MODEF:mode>3.
20963 (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
20964 (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
20965 (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
20966 (avx_cvtdq2ps<avxmodesuffix>): Remove.
20967 (sse2_cvtdq2ps): Use %v modifier.
20968 (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
20969 (avx_cvtps2dq<avxmodesuffix>): Remove.
20970 (sse2_cvtps2dq): Use %v modifier.
20971 (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
20972 (avx_cvttps2dq<avxmodesuffix>): Remove.
20973 (sse2_cvttps2dq): Use %v modifier.
20974 (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
20975 (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
20976 (sse2_cvtsd2siq): Fix insn template.
20977 (sse2_cvtsd2siq_2): Ditto.
20978 (sse2_cvttsd2siq): Ditto.
20979 (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
20980 (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
20982 2011-04-06 Joseph Myers <joseph@codesourcery.com>
20984 * gcov-io.c: Use GCC Runtime Library Exception.
20986 2011-04-06 Jakub Jelinek <jakub@redhat.com>
20989 * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
20990 as base_reg whatever register reg has been eliminated to, instead
20991 of hardcoding STACK_POINTER_REGNUM.
20993 2011-04-06 Joseph Myers <joseph@codesourcery.com>
20995 * doc/tm.texi.in: Document C target hooks as separate from general
20997 * doc/tm.texi: Regenerate.
20998 * genhooks.c (struct hook_desc): Add docname field.
20999 (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC). Initialize
21001 (hook_array): Include c-target.def.
21002 (emit_documentation): Use docname field in output.
21003 (emit_init_macros): Take docname argument. Only emit definitions
21004 for hooks matching docname.
21005 (main): Expect additional arguments in all cases. Pass argument
21006 to emit_init_macros.
21007 * target.def: Move initial macro definitions and comments to
21008 target-hooks-macros.h.
21009 (gcc_targetcm): Move to c-family/c-target.def.
21010 * target.h (targetcm): Move declaration to c-family/c-target.h.
21011 * targhooks.c (default_handle_c_option): Move to
21013 * targhooks.h (default_handle_c_option): Move declaration to
21014 c-family/c-common.h.
21015 * target-hooks-macros.h: New file.
21016 * config.gcc (target_has_targetcm): Define and use to add to
21017 c_target_objs and cxx_target_objs.
21018 * config/default-c.c: New file.
21019 * config/darwin-c.c: Include c-target.h and c-target-def.h instead
21020 of target.h and target-def.h.
21021 (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
21022 (darwin_objc_construct_string, darwin_cfstring_ref_p,
21023 darwin_check_cfstring_format_arg): Make static.
21024 (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
21025 TARGET_STRING_OBJECT_REF_TYPE_P,
21026 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
21027 * config/darwin-protos.h (darwin_objc_construct_string,
21028 darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
21030 * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
21031 TARGET_STRING_OBJECT_REF_TYPE_P,
21032 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
21033 * config/t-darwin (darwin-c.o): Update dependencies.
21034 * system.h (TARGET_HAS_TARGETCM): Poison.
21035 * Makefile.in (TARGET_H): Update.
21036 (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
21037 (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
21038 (default-c.o): New target.
21039 (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
21040 (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
21041 (s-tm-texi): Pass -d option to genhooks. Also test timestamp on
21043 (build/genhooks.o): Update dependencies.
21045 2011-04-06 Richard Guenther <rguenther@suse.de>
21047 * ipa-inline.c (enum inlining_mode): Remove.
21048 (cgraph_flatten): Use some other token.
21049 (cgraph_edge_early_inlinable_p): New function, split out from ...
21050 (cgraph_perform_always_inlining): New function, split out from ...
21051 (cgraph_decide_inlining_incrementally): ... here.
21052 (cgraph_mark_inline_edge): Adjust.
21053 (cgraph_early_inlining): Re-structure.
21054 (pass_early_inline): Require SSA form.
21056 2011-04-06 Andrew Stubbs <ams@codesourcery.com>
21057 Julian Brown <julian@codesourcery.com>
21058 Mark Shinwell <shinwell@codesourcery.com>
21060 * config/arm/arm.h (arm_class_likely_spilled_p): Check against
21061 LO_REGS only for Thumb-1.
21062 (MODE_BASE_REG_CLASS): Restrict base registers to those which can
21063 be used in short instructions when optimising for size on Thumb-2.
21065 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
21067 * gimple-low.c (lower_gimple_return): When not optimizing, force labels
21068 associated with user returns to be preserved.
21070 2011-04-06 Tristan Gingold <gingold@adacore.com>
21072 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
21073 symbol_queue_size, DBXOUT_DECR_NESTING,
21074 (DBXOUT_DECR_NESTING_AND_RETURN): Also define
21075 if XCOFF_DEBUGGING_INFO.
21077 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
21079 * config/i386/i386.md (attribute isa): New.
21080 (attribute enabled): New.
21081 (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
21082 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
21083 (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
21084 (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
21085 (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
21086 (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
21087 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
21088 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
21090 * config/i386/sse.md (VF): New mode iterator.
21094 (SSEMODEF4): Remove.
21095 (attribute sse): Handle V8SF and V4DF modes.
21096 (<absneg:code><mode>2): Use VF mode iterator.
21097 (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2. Use VF
21099 (<plusminus_insn><mode>3): Use VF mode iterator.
21100 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
21101 Use VF mode iterator.
21102 (<sse>_vm<plusminus_insn><mode>3): Merge with
21103 *avx_vm<plusminus_insn><mode>3. Use VF_128 mode iterator.
21104 (mul<mode>3): Use VF mode iterator.
21105 (*mul<mode>3): Merge with *avx_mul<mode>3. Use VF mode iterator.
21106 (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3. Use VF_128
21108 (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
21109 (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
21110 (<sse>_div<mode>3): Merge with *avx_div<mode>3. Use VF mode iterator.
21111 (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3. Use VF_128
21113 (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
21114 Use VF1 mode iterator.
21115 (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
21116 (sqrt<VF2:mode>2): New expander.
21117 (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
21118 (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
21119 and sqrtv2df2. Use VF mode iterator.
21120 (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2. Use VF_128
21122 (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
21123 (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
21124 Use VF1 mode iterator.
21125 (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
21126 (<smaxmin:code><mode>3): Use VF mode iterator.
21127 (*<smaxmin:code><mode>3_finite): Merge with
21128 *avx_<smaxmin:code><mode>3_finite. Use VF mode iterator.
21129 (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
21130 (<sse>_vm<smaxmin:code><mode>2): Merge with
21131 *avx_vm<smaxmin:code><mode>2. Use VF_128 mode iterator.
21132 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3. Use VF
21134 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3. Use VF
21136 (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
21137 (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
21138 (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
21139 (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
21140 (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3. Use
21142 (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
21143 Use VF_128 mode iterator.
21144 (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3. Use VF
21146 (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3. Use
21147 VF_128 mode iterator.
21148 (vcond<mode>): Use VF mode iterator.
21149 * config/i386/predicates.md (sse_comparison_operator): Merge with
21150 avx_comparison_float_operator. Do not declare as special_predicate.
21151 * config/i386/i386.c (struct builtin_description): Update for renamed
21153 (ix86_expand_args_builtin): Ditto.
21154 (ix86_expand_sse_compare_mask): Ditto.
21156 2011-04-06 Richard Guenther <rguenther@suse.de>
21158 * tree-inline.c (estimate_num_insns): For calls simply account
21159 for all passed arguments and a used return value.
21161 2011-04-06 Richard Guenther <rguenther@suse.de>
21163 PR tree-optimization/47663
21164 * cgraph.h (struct cgraph_edge): Add call_stmt_size and
21165 call_stmt_time fields.
21166 (cgraph_edge_inlinable_p): Declare.
21167 (cgraph_edge_recursive_p): New inline function.
21168 * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
21169 (cgraph_clone_edge): Copy it.
21170 * ipa-inline.c (cgraph_estimate_edge_time): New function.
21171 Account for call stmt time.
21172 (cgraph_estimate_time_after_inlining): Take edge argument.
21173 (cgraph_estimate_edge_growth): Account call stmt size.
21174 (cgraph_estimate_size_after_inlining): Take edge argument.
21175 (cgraph_mark_inline_edge): Adjust.
21176 (cgraph_check_inline_limits): Likewise.
21177 (cgraph_recursive_inlining_p): Remove.
21178 (cgraph_edge_badness): Use cgraph_edge_recursive_p.
21179 (cgraph_decide_recursive_inlining): Take edge argument and
21181 (cgraph_decide_inlining_of_small_functions): Do not avoid
21182 diags for recursive inlining here.
21183 (cgraph_flatten): Adjust.
21184 (cgraph_decide_inlining_incrementally): Likewise.
21185 (estimate_function_body_sizes): Remove call cost handling.
21186 (compute_inline_parameters): Initialize caller edge call costs.
21187 (cgraph_estimate_edge_growth): New function.
21188 (cgraph_estimate_growth): Use it.
21189 (cgraph_edge_badness): Likewise.
21190 (cgraph_check_inline_limits): Take an edge argument.
21191 (cgraph_decide_inlining_of_small_functions): Adjust.
21192 (cgraph_decide_inlining): Likewise.
21193 * tree-inline.c (estimate_num_insns): Only account for call
21194 return value if it is used.
21195 (expand_call_inline): Avoid diagnostics on recursive inline
21197 * lto-cgraph.c (lto_output_edge): Output edge call costs.
21198 (input_edge): Input edge call costs.
21200 2011-04-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21202 * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
21204 2011-04-06 Jonathan Wakely <jwakely.gcc@gmail.com>
21206 * doc/invoke.texi (Spec Files): Fix typo.
21208 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
21210 * profile.c (branch_prob): Move declaration of local variable. Remove
21211 obsolete ??? comment. Expand the location explicitly instead of using
21212 the LOCATION_FILE and LOCATION_LINE macros.
21214 2011-04-06 Wei Guozhi <carrot@google.com>
21217 * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
21218 (arm_cond_branch): Likewise.
21219 (arm_cond_branch_reversed): Likewise.
21220 (arm_jump): Likewise.
21221 (push_multi): Likewise.
21222 * config/arm/constraints.md (Py): New constraint.
21224 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
21227 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
21229 (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
21230 (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
21231 #ifdef DBX_DEBUGGING_INFO.
21233 2011-04-05 Bernd Schmidt <bernds@codesourcery.com>
21236 * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
21237 if old and new states differ.
21239 2011-04-05 Joseph Myers <joseph@codesourcery.com>
21241 * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
21242 OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
21243 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
21244 handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
21245 * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
21246 mcfv4e): Use Alias.
21247 * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
21248 ColdFire options to -mcpu= options.
21250 2011-04-05 Jeff Law <law@redhat.com>
21252 * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
21253 check if BB is a successor of LOOP->header and return
21254 NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
21256 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
21258 * cprop.c (struct reg_use): Remove.
21259 (reg_use_table): Make an array of RTX.
21260 (find_used_regs, constprop_register, local_cprop_pass,
21261 bypass_block): Simplify users of reg_use_table.
21262 (cprop_insn): Likewise. Iterate if copy propagation succeeded
21263 on one of the uses found by find_used_regs.
21265 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
21268 * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
21271 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
21273 * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
21275 (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
21277 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
21279 PR middle-end/48441
21280 * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
21282 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
21284 * combine.c: Include obstack.h.
21285 (struct insn_link): Define.
21286 (uid_log_links): Adjust type.
21287 (FOR_EACH_LOG_LINK): New macro.
21288 (insn_link_obstack): Declare.
21289 (alloc_insn_link): Define.
21290 (create_log_links): Call it. Use FOR_EACH_LOG_LINK and adjust
21291 type of link variables.
21292 (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
21293 (try_combine, record_promoted_values, distribute_notes): Likewise.
21294 (distribute_links): Likewise. Tweak prototype.
21295 (clear_log_links): Delete.
21296 (adjust_for_new_dest): Call alloc_insn_link.
21297 * Makefile.in (combine.o): Depend on $(OBSTACK_H).
21299 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
21301 * gcse.c (modify_mem_list): Convert to an array of VECs.
21302 (canon_modify_mem_list, compute_transp): Tweak formatting.
21303 (alloc_gcse_mem): Likewise. Adjust for modify_mem_list change.
21304 (load_killed_in_block_p): Likewise.
21305 (record_last_mem_set_info): Likewise.
21306 (clear_modify_mem_tables): Likewise.
21308 2011-04-05 Tom de Vries <tom@codesourcery.com>
21310 PR middle-end/48461
21311 * function.c (emit_use_return_register_into_block): Only define if
21314 2011-04-05 Eric Botcazou <ebotcazou@adacore.com>
21316 * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
21318 2011-04-05 Joseph Myers <joseph@codesourcery.com>
21320 * config/rx/rx-opts.h: New.
21321 * config/rx/rx.c (rx_cpu_type): Remove.
21322 (rx_handle_option): Don't assert that global structures are in
21323 use. Access variables via opts pointer. Defer most handling of
21324 OPT_mint_register_. Use error_at.
21325 (rx_option_override): Handle deferred OPT_mint_register_ here.
21326 * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
21327 * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
21328 (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
21329 (rx_cpu_types): New Enum and EnumValue entries.
21330 (mint-register=): Use Defer and use Var accordingly.
21332 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
21334 * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
21335 (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
21336 * final.c (debug_flush_symbol_queue, debug_queue_symbol):
21338 (debug_free_queue, debug_nesting, symbol_queue_index):
21340 * dbxout.c: ...to here. Make static.
21342 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
21344 * gcse.c (modify_pair): Define. Define a VEC of it.
21345 (canon_modify_mem_list): Convert to an array of VECs.
21346 (free_insn_expr_list_list): Delete.
21347 (clear_modify_mem_tables): Call VEC_free instead.
21348 (record_last_mem_set_info): Don't modify canon_modify_mem_list.
21349 (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
21350 (canon_list_insert, compute_transp): Likewise.
21352 2011-04-05 Tom de Vries <tom@codesourcery.com>
21355 * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
21358 2011-04-05 Tom de Vries <tom@codesourcery.com>
21361 * function.c (emit_use_return_register_into_block): New function.
21362 (thread_prologue_and_epilogue_insns): Use
21363 emit_use_return_register_into_block.
21365 2011-04-05 Tom de Vries <tom@codesourcery.com>
21368 * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
21371 2011-04-05 Tom de Vries <tom@codesourcery.com>
21373 * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
21375 2011-04-05 Yufeng Zhang <yufeng.zhang@arm.com>
21377 * config/arm/arm.md (define_constants for unspec): Replace with
21379 (define_constants for unspecv): Replace with define_c_enum.
21380 * config/arm/neon.md (define_constants for unspec): Replace with
21383 2011-04-04 Richard Henderson <rth@redhat.com>
21386 * dwarf2out.c (output_line_info): Always emit line info from
21387 at least one section.
21388 (dwarf2out_init): Create text_section_line_info here ...
21389 (set_cur_line_info_table): ... not here.
21391 2011-04-04 Vladimir Makarov <vmakarov@redhat.com>
21394 * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
21397 * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
21399 2011-04-04 Steven Bosscher <steven@gcc.gnu.org>
21401 * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
21402 (expr_equiv_p): Remove.
21403 (insert_set_in_table): Look at <dest, src> pair instead of expr.
21404 (hash_scan_set): Update call to insert_set_in_table.
21405 (dump_hash_table): Dump <dest, src> pair.
21406 (lookup_set): Simplify. Lookup <dest, src> pair.
21407 (compute_transp): Remove, fold heavily simplified code into...
21408 (compute_local_properties): ...here. Expect COMP and TRANSP
21410 (find_avail_set): Take set directly from struct expr.
21411 (find_bypass-set): Likewise.
21412 (bypass_block): Likewise.
21413 (cprop_insn): Likewise. Remove redundant INSN_P test.
21415 * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
21416 checks on form of COND from find_implicit_sets to here.
21417 (find_implicit_sets): Cleanup control flow. Split critical edges
21418 if it exposes implicit sets. Allocate/resize implicit_sets as
21420 (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
21421 changed something. Run df_analyze after find_implicit_sets if any
21422 edges were split. Do not allocate implicit_sets here.
21424 * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
21425 (gcse_obstack): Renamed to cprop_obstack.
21426 (GNEW, GNEWVEC, GNEWVAR): Remove.
21428 (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
21429 (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
21430 (gcse_alloc): Likewise, and rename to cprop_alloc.
21431 (alloc_gcse_men, free_gcse_mem): Remove.
21432 (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
21433 (compute_hash_table_work): Allocate and free reg_set_bitmap here.
21434 (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
21436 * cprop.c (oprs_not_set_p): Remove.
21437 (mark_set, mark_clobber): Remove.
21438 (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
21439 (reg_not_set_p): New function.
21440 (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
21441 (cprop_insn): Likewise.
21442 (cprop_jump): Use FOR_EACH_EDGE.
21444 2011-04-04 Bernd Schmidt <bernds@codesourcery.com>
21447 * haifa-sched.c (nonscheduled_insns_begin): New static variable.
21448 (rank_for_schedule): Use scheduled_insns vector instead of
21449 last_scheduled_insn.
21450 (ok_for_early_queue_removal): Likewise.
21451 (queue_to_ready): Search forward in nonscheduled_insns_begin if
21453 (choose_ready): Likewise.
21454 (commit_schedule): Use VEC_iterate.
21455 (schedule_block): Initialize nonscheduled_insns_begin. If we have
21456 a dbg_cnt, use it and ensure the first insn is in the ready list.
21457 (haifa_sched_init): Allocate scheduled_insns.
21458 (sched_extend_ready_list): Don't allocate it; reserve space.
21459 (haifa_sched_finish): Free it.
21461 2011-04-04 Joseph Myers <joseph@codesourcery.com>
21463 * optc-gen.awk: Always remove type from Variable entry before
21464 recording in var_seen.
21466 2011-04-04 Eric Botcazou <ebotcazou@adacore.com>
21468 * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
21469 * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
21470 call to tidy_fallthru_edges.
21472 2011-04-04 Joseph Myers <joseph@codesourcery.com>
21474 * doc/options.texi (ToLower): Document.
21475 * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
21476 * opts-common.c (decode_cmdline_option): Handle cl_tolower.
21477 * opts.h (cl_option): Add cl_tolower field.
21478 * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
21479 arguments with lowercase strings.
21480 * config/rx/rx.opt (mcpu=): Add ToLower.
21481 * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
21484 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
21486 * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
21488 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
21490 * config/vax/vax.c: Include reload.h.
21492 2011-04-04 Anatoly Sokolov <aesok@post.ru>
21494 * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
21495 * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
21496 (sparc_preferred_reload_class): New function.
21498 2011-04-04 Jakub Jelinek <jakub@redhat.com>
21501 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
21502 Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
21504 2011-04-03 Nathan Froyd <froydnj@codesourcery.com>
21506 * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
21507 * tree.c (initialize_tree_contains_struct): Adjust accordingly.
21509 2011-04-03 Anatoly Sokolov <aesok@post.ru>
21511 * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
21512 (ASM_OUTPUT_ALIGNED_BSS): Define.
21514 2011-04-03 Michael Matz <matz@suse.de>
21516 * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
21517 and next_slot members.
21518 (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
21519 lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
21520 (lto_streamer_cache_append): Declare.
21521 * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
21522 unsigned index, remove offset parameter, ensure that we append
21523 or update existing entries.
21524 (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
21525 parameter, update next_slot for append.
21526 (lto_streamer_cache_insert): Use unsigned index, remove offset_p
21528 (lto_streamer_cache_insert_at): Likewise.
21529 (lto_streamer_cache_append): New function.
21530 (lto_streamer_cache_lookup): Use unsigned index.
21531 (lto_streamer_cache_get): Likewise.
21532 (lto_record_common_node): Don't test tree_node_can_be_shared.
21533 (preload_common_node): Adjust call to lto_streamer_cache_insert.
21534 (lto_streamer_cache_delete): Don't free offsets member.
21535 * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
21536 (lto_output_string_with_length): Use lto_output_data_stream.
21537 (lto_output_tree_header): Remove ix parameter, don't write it.
21538 (lto_output_builtin_tree): Likewise.
21539 (lto_write_tree): Adjust callers to above, don't track and write
21540 offset, write unsigned index.
21541 (output_unreferenced_globals): Don't emit all global vars.
21542 (write_global_references): Use unsigned indices.
21543 (lto_output_decl_state_refs): Likewise.
21544 (write_symbol): Likewise.
21545 * lto-streamer-in.c (lto_input_chain): Move earlier.
21546 (input_function): Use unsigned index.
21547 (input_alias_pairs): Don't read and then ignore all global vars.
21548 (lto_materialize_tree): Remove ix_p parameter, don't read index,
21549 don't pass it back, use lto_streamer_cache_append.
21550 (lto_register_var_decl_in_symtab): Use unsigned index.
21551 (lto_register_function_decl_in_symtab): Likewise.
21552 (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
21554 (lto_get_builtin_tree): Don't read index, use
21555 lto_streamer_cache_append.
21556 (lto_read_tree): Adjust call to lto_materialize_tree.
21558 * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
21559 don't use function calls in arguments to MIN.
21561 * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
21564 * gimple.c (gimple_type_leader_entry): Mark deletable.
21566 2011-04-03 Alan Modra <amodra@gmail.com>
21568 * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
21570 2011-04-03 Michael Matz <matz@suse.de>
21572 * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
21574 * tree.h (tree_decl_non_common.vindex): Adjust comment.
21576 2011-04-03 Michael Matz <matz@suse.de>
21578 * cgraphbuild.c (record_reference): Canonicalize constructor values.
21579 * gimple-fold.c (canonicalize_constructor_val): Accept being called
21580 without function context.
21581 * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
21582 current_function_decl and cfun.
21584 2011-04-03 Michael Matz <matz@suse.de>
21586 * tree.c (decl_init_priority_insert): Don't create entry for
21588 (decl_fini_priority_insert): Ditto.
21589 (fields_compatible_p, find_compatible_field): Remove.
21590 * tree.h (fields_compatible_p, find_compatible_field): Remove.
21591 * gimple.c (gimple_compare_field_offset): Adjust block comment.
21593 2011-04-03 Eric Botcazou <ebotcazou@adacore.com>
21595 * combine.c (try_combine): Remove useless local variable.
21597 2011-04-03 Richard Guenther <rguenther@suse.de>
21598 Ira Rosen <ira.rosen@linaro.org>
21600 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
21601 non-variable offsets and compare the remaining bases of the two
21602 accesses instead of looking for exact same data-ref.
21604 2011-04-02 Kai Tietz <ktietz@redhat.com>
21607 * i386.c (ix86_function_arg_boundary): Fix printf formatter.
21609 * i386.c (ix86_is_msabi_thiscall): New helper function.
21610 (ix86_is_type_thiscall): New helper function.
21611 (ix86_comp_type_attributes): Handle thiscall for method-functions
21613 (init_cumulative_args): Likewise.
21614 (find_drap_reg): Likewise.
21615 (ix86_static_chain): Likewise.
21616 (x86_this_parameter): Likewise.
21617 (x86_output_mi_thunk): Likewise.
21619 2011-04-01 Olivier Hainque <hainque@adacore.com>
21620 Nicolas Setton <setton@adacore.com>
21621 Eric Botcazou <ebotcazou@adacore.com>
21623 * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
21624 (add_gnat_descriptive_type_attribute): New function.
21625 (gen_array_type_die): Call it.
21626 (gen_enumeration_type_die): Likewise.
21627 (gen_struct_or_union_type_die): Likewise.
21628 (modified_type_die): Likewise.
21629 * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
21630 * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
21631 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
21633 2011-04-01 Jakub Jelinek <jakub@redhat.com>
21636 * dwarf2out.c (resolve_addr): Don't call force_decl_die
21637 if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
21640 2011-03-17 Richard Guenther <rguenther@suse.de>
21643 * lto-cgraph.c (input_overwrite_node): Clear the abstract
21644 origin for decls in other ltrans units.
21645 (input_varpool_node): Likewise.
21647 2011-04-01 Jakub Jelinek <jakub@redhat.com>
21649 PR middle-end/48335
21650 * expr.c (expand_assignment): Handle all possibilities
21651 if TO_RTX is CONCAT.
21652 * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
21653 (store_split_bit_field): If SUBREG_REG (op0) or
21654 op0 itself has smaller mode than word, return it
21655 for offset 0 and const0_rtx for out-of-bounds stores.
21656 If word is const0_rtx, skip it.
21658 2011-04-01 Naveen H.S <naveen.S@kpitcummins.com>
21660 * config/h8300/h8300.c (print_operand_address): Rename to...
21661 (h8300_print_operand_address): ...this. Make static. Adjust comments.
21662 Call h8300_print_operand and h8300_print_operand_address instead of
21663 print_operand and print_operand_address. Declare.
21664 (print_operand): Renake to...
21665 (h8300_print_operand): ...this. Make static. Adjust comments.
21666 Call h8300_print_operand instead of print_operand. Declare.
21667 (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
21668 (h8300_register_move_cost): Likewise.
21669 (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
21670 TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
21671 * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
21672 PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
21673 * config/h8300/h8300-protos.h (print_operand): Delete.
21674 (print_operand_address): Delete.
21676 2011-04-01 Richard Henderson <rth@redhat.com>
21679 * dwarf2out.c (dwarf2out_source_line): Disable discriminators
21680 in strict mode before dwarf4. Re-order tests to early out
21681 before switching sections.
21683 2011-04-01 Nathan Froyd <froydnj@codesourcery.com>
21685 * config/h8300/constraints.md: New file.
21686 * config/h8300/h8300.md: Include it. Use satisfies_constraint_J,
21687 satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
21688 (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
21689 * config/h8300/predicates.md (bit_operand): Likewise.
21690 (incdec_operand): Use satisfies_constraint_M and
21691 satisfies_constraint_O. Don't use C code block.
21692 * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
21693 * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
21694 (compute_mov_length): Use satisfies_constraint_G.
21695 (fix_bit_operand): Use satisfies_constraint_U.
21696 * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
21697 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
21698 (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
21699 (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
21700 (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
21701 (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
21702 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
21703 (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
21704 (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
21705 (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
21706 (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
21707 (EXTRA_MEMORY_CONSTRAINT): Delete.
21709 2011-04-01 Andrew Pinski <pinskia@gmail.com>
21710 Michael Meissner <meissner@linux.vnet.ibm.com>
21713 * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
21714 operands, as per the specifications.
21716 * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
21717 (vec_extract_evenv4sf): Ditto.
21718 (vec_extract_evenv8hi): Ditto.
21719 (vec_extract_evenv16qi): Ditto.
21720 (vec_extract_oddv4si): Ditto.
21722 2011-03-31 Mark Wielaard <mjw@redhat.com>
21724 * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
21725 high_pc attribute if the CU has no associated code. Only output
21726 DW_AT_entry_pc for CU if not generating strict dwarf and
21729 2011-04-01 Bernd Schmidt <bernds@codesourcery.com>
21731 * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
21732 * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
21734 (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
21735 * final.c (final_start_function): Call the new function rather
21736 than using a NULL argument for dwarf2out_frame_debug.
21738 * ifcvt.c (cond_exec_process_insns): Disallow converting a block
21739 that contains the prologue.
21741 * haifa-sched.c (queue_insn): New arg REASON. All callers
21742 changed. Print it in debugging output.
21744 * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
21746 * sched-ebb.c (begin_schedule_ready): Remove second argument.
21747 Split most of the code into...
21748 (begin_move_insn): ... here. New function.
21749 (ebb_sched_info): Add a pointer to it.
21750 * haifa-sched.c (scheduled_insns): New static variable.
21751 (sched_extend_ready_list): Allocate it.
21752 (schedule_block): Use it to record the order of scheduled insns.
21753 Perform RTL changes to move insns only after all scheduling
21754 decisions have been made.
21755 * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
21756 begin_move_insn field.
21757 * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
21758 * sched-int.h (struct haifa_sched_info): Remove second argument
21759 from begin_schedule_ready hook. Add new member begin_move_insn.
21760 * sched-rgn.c (begin_schedule_ready): Remove second argument.
21761 (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
21763 * haifa-sched.c (prune_ready_list): New function, broken out of
21765 (schedule_block): Use it.
21767 2011-04-01 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
21769 * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
21771 2011-04-01 Kai Tietz <ktietz@redhat.com>
21773 * config.gcc (*-*-mingw*): Allow as option the
21774 posix threading model.
21775 * config/i386/mingw32.h (SPEC_PTHREAD1, SPEC_PTHREAD2):
21776 New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
21778 (CPP_SPEC): Add pthread/no-pthread handling.
21779 (LIB_SPEC): Likewise.
21780 * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
21781 (LIB_SPEC): Likewise.
21782 * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
21783 flag to pass -pthread option for shared libgcc build.
21784 (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
21785 for shared libgcc build.
21786 * config/i386/t-mingw-pthread: New file.
21787 * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
21788 New define to enable use of library pthread by default.
21789 * config/i386/mingw.opt (pthread): New driver option.
21790 (no-pthread): New driver option.
21791 * config/i386/cygming.opt: Make sure trailing empty line is retained.
21792 * config/i386/mingw-w64.opt: Likewise.
21794 2011-04-01 Gary Funck <gary@intrepid.com>
21796 * c-decl.c (grokdeclarator): Fix formatting.
21798 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
21800 * expr.c (emit_block_move_via_movmem): Use n_generator_args
21801 instead of n_operands.
21802 (set_storage_via_setmem): Likewise.
21803 * optabs.c (maybe_gen_insn): Likewise.
21804 * config/arm/arm.c (arm_init_neon_builtins): Likewise.
21805 * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
21806 (mips_expand_builtin_direct): Likewise.
21807 * config/spu/spu.c (expand_builtin_args): Likewise.
21809 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
21811 * recog.h (insn_data_d): Add n_generator_args.
21812 * genoutput.c (data): Likewise.
21813 (output_insn_data): Print it.
21814 (max_opno, num_dups): Delete.
21815 (scan_operands): Just fill in "d->operand[...]".
21816 (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
21818 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
21820 * gensupport.h (pattern_stats): New structure.
21821 * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
21822 * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
21823 (max_operand_1, max_operand_vec): Delete.
21824 (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
21826 2011-03-31 Nathan Froyd <froydnj@codesourcery.com>
21828 * emit-rtl.c (emit_pattern_after_setloc): New function.
21829 (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
21830 (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
21831 (emit_pattern_after): New function.
21832 (emit_insn_after, emit_jump_insn_after): Call it.
21833 (emit_call_insn_after, emit_debug_insn_after): Likewise.
21834 (emit_pattern_before_setloc): New function.
21835 (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
21836 (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
21838 (emit_pattern_before): New function.
21839 (emit_insn_before, emit_jump_insn_before): Call it.
21840 (emit_call_insn_before, emit_debug_insn_before): Likewise.
21842 2011-03-31 Richard Henderson <rth@redhat.com>
21844 * dwarf2out.c (dw_separate_line_info_ref): Remove.
21845 (dw_separate_line_info_entry): Remove.
21846 (enum dw_line_info_opcode): New.
21847 (dw_line_info_entry): Use it.
21848 (dw_line_info_table, dw_line_info_table_p): New.
21849 (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
21850 (line_info_table, line_info_label_num): Remove.
21851 (line_info_table_in_use): Remove.
21852 (separate_line_info_table): Remove.
21853 (separate_line_info_table_allocated): Remove.
21854 (separate_line_info_table_in_use): Remove.
21855 (LINE_INFO_TABLE_INCREMENT): Remove.
21856 (line_info_label_num): New.
21857 (cur_line_info_table): New.
21858 (text_section_line_info, cold_text_section_line_info): New.
21859 (separate_line_info): New.
21860 (SEPARATE_LINE_CODE_LABEL): Remove.
21861 (print_dwarf_line_table): Remove.
21862 (debug_dwarf): Don't dump it.
21863 (output_one_line_info_table): New.
21864 (output_line_info): Use it.
21865 (new_line_info_table): New.
21866 (set_cur_line_info_table): New.
21867 (dwarf2out_switch_text_section): Use it.
21868 (dwarf2out_begin_function): Likewise.
21869 (push_dw_line_info_entry): New.
21870 (dwarf2out_source_line): Rewrite for new line info tables.
21871 (dwarf2out_init): Remove dead initailizations.
21873 2011-03-31 Joseph Myers <joseph@codesourcery.com>
21875 * opts.h (cl_option): Add comments to fields. Add bit-fields for
21877 (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
21878 CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
21879 CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
21880 CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
21881 (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
21882 * opt-functions.awk (flag_init, switch_bit_fields): New.
21883 (switch_flags): Don't handle flags moved to bit-fields. Don't
21884 generate CL_MISSING_OK or CL_SAVE.
21885 * optc-gen.awk: Update to generate bit-field output as well as
21887 * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
21888 bit-field instead of CL_REJECT_DRIVER flag.
21889 * opts-common.c (generate_canonical_option,
21890 decode_cmdline_option): Use bit-fields instead of CL_* flags.
21891 * opts.c (maybe_default_option): Use cl_reject_negative bit-field
21892 instead of CL_REJECT_NEGATIVE flag.
21893 * toplev.c (print_switch_values): Use cl_report bit-field instead
21896 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
21898 * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
21899 a zero minimum index only if it is redundant.
21901 2011-03-31 Vladimir Makarov <vmakarov@redhat.com>
21903 PR rtl-optimization/48381
21904 * ira-color.c (assign_hard_reg): Use hard reg set intersection
21905 instead of ira_class_hard_reg_index for calculating conflicting
21908 2011-03-31 Steven Bosscher <steven@gcc.gnu.org>
21910 * cprop.c: Clean up hash table building.
21911 (reg_avail_info): Remove.
21912 (oprs_available_p): Remove.
21913 (record_last_reg_set_info): Remove.
21914 (record_last_set_info): Remove.
21915 (reg_available_p): New function.
21916 (gcse_constant_p): Do not treat unfolded conditions as constants.
21917 (make_set_regs_unavailable): New function.
21918 (hash_scan_set): Simplify with new reg_available_p.
21919 (compute_hash_table_work): Traverse insns stream only once.
21920 Do not compute reg_avail_info. Traverse insns in reverse order.
21921 Record implicit sets after recording explicit sets from the block.
21923 2011-03-31 Michael Matz <matz@suse.de>
21925 * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
21927 2011-03-31 Anatoly Sokolov <aesok@post.ru>
21929 * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
21930 * config/h8300/h8300-protos.h (h8300_get_index): Remove.
21931 * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
21932 (h8300_mode_dependent_address_p): New function.
21933 (h8300_get_index): Make static.
21935 2011-03-31 Jeff Law <law@redhat.com>
21937 * reload1.c (elimination_effects): Fix typo in recent change.
21939 * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
21940 typo potentially leading to null pointer dereference.
21942 * caller-save.c (new_saved_hard_reg): Eliminate return value.
21943 (setup_save_areas): Corresponding changes to avoid useless
21946 * jump.c (reversed_comparison_code_parts): Avoid successive return
21947 statements when REVERSE_CONDITION is defined.
21949 * expr.c (expand_assignment): Avoid useless assignments.
21950 (expand_expr_real_1): Likewise.
21951 (expand_expr_real_2): Avoid useless statements.
21953 * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
21955 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
21957 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
21960 * stmt.c (expand_expr_stmt): Avoid useless assignment.
21962 2011-03-31 Joseph Myers <joseph@codesourcery.com>
21965 * doc/tm.texi.in (TARGET_VERSION): Remove.
21966 * doc/tm.texi: Regenerate.
21967 * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
21968 * collect2.c (main): Don't use TARGET_VERSION.
21969 * mips-tdump.c (main): Don't use TARGET_VERSION.
21970 * mips-tfile.c (main): Don't use TARGET_VERSION.
21971 * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
21972 * config/rs6000/vxworksae.h: Remove.
21973 * config/alpha/alpha.h (TARGET_VERSION): Remove.
21974 * config/alpha/freebsd.h (TARGET_VERSION): Remove.
21975 * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
21976 * config/alpha/netbsd.h (TARGET_VERSION): Remove.
21977 * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
21978 * config/arm/arm.h (TARGET_VERSION): Remove.
21979 * config/arm/coff.h (TARGET_VERSION): Remove.
21980 * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
21981 * config/arm/elf.h (TARGET_VERSION): Remove.
21982 * config/arm/freebsd.h (TARGET_VERSION): Remove.
21983 * config/arm/linux-elf.h (TARGET_VERSION): Remove.
21984 * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
21985 * config/arm/pe.h (TARGET_VERSION): Remove.
21986 * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
21987 * config/arm/semi.h (TARGET_VERSION): Remove.
21988 * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
21989 * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
21990 * config/arm/vxworks.h (TARGET_VERSION): Remove.
21991 * config/avr/avr.h (TARGET_VERSION): Remove.
21992 * config/bfin/bfin.h (TARGET_VERSION): Remove.
21993 * config/fr30/fr30.h (TARGET_VERSION): Remove.
21994 * config/frv/frv.h (TARGET_VERSION): Remove.
21995 * config/h8300/h8300.h (TARGET_VERSION): Remove.
21996 * config/i386/cygwin.h (TARGET_VERSION): Remove.
21997 * config/i386/darwin.h (TARGET_VERSION): Remove.
21998 * config/i386/darwin64.h (TARGET_VERSION): Remove.
21999 * config/i386/djgpp.h (TARGET_VERSION): Remove.
22000 * config/i386/freebsd.h (TARGET_VERSION): Remove.
22001 * config/i386/freebsd64.h (TARGET_VERSION): Remove.
22002 * config/i386/gnu.h (TARGET_VERSION): Remove.
22003 * config/i386/i386-interix.h (TARGET_VERSION): Remove.
22004 * config/i386/i386elf.h (TARGET_VERSION): Remove.
22005 * config/i386/linux.h (TARGET_VERSION): Remove.
22006 * config/i386/linux64.h (TARGET_VERSION): Remove.
22007 * config/i386/lynx.h (TARGET_VERSION): Remove.
22008 * config/i386/mingw32.h (TARGET_VERSION): Remove.
22009 * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
22010 * config/i386/netbsd64.h (TARGET_VERSION): Remove.
22011 * config/i386/netware.h (TARGET_VERSION): Remove.
22012 * config/i386/nto.h (TARGET_VERSION): Remove.
22013 * config/i386/openbsd.h (TARGET_VERSION): Remove.
22014 * config/i386/vxworks.h (TARGET_VERSION): Remove.
22015 * config/ia64/elf.h (TARGET_VERSION): Remove.
22016 * config/ia64/freebsd.h (TARGET_VERSION): Remove.
22017 * config/ia64/hpux.h (TARGET_VERSION): Remove.
22018 * config/ia64/linux.h (TARGET_VERSION): Remove.
22019 * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
22020 * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
22021 TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
22022 * config/lm32/lm32.h (TARGET_VERSION): Remove.
22023 * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
22024 * config/m32c/m32c.h (TARGET_VERSION): Remove.
22025 * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
22026 * config/m32r/m32r.h (TARGET_VERSION): Remove.
22027 * config/m68k/linux.h (TARGET_VERSION): Remove.
22028 * config/m68k/m68k.h (TARGET_VERSION): Remove.
22029 * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
22030 * config/m68k/uclinux.h (TARGET_VERSION): Remove.
22031 * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
22032 * config/mep/mep.h (TARGET_VERSION): Remove.
22033 * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
22034 MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
22035 * config/mips/iris6.h (MACHINE_TYPE): Remove.
22036 * config/mips/linux.h (TARGET_VERSION): Remove.
22037 * config/mips/netbsd.h (MACHINE_TYPE): Remove.
22038 * config/mips/vxworks.h (TARGET_VERSION): Remove.
22039 * config/mmix/mmix.h (TARGET_VERSION): Remove.
22040 * config/mn10300/linux.h (TARGET_VERSION): Remove.
22041 * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
22042 * config/pa/pa.h (TARGET_VERSION): Remove.
22043 * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
22044 * config/picochip/picochip.h (TARGET_VERSION): Remove.
22045 * config/rs6000/aix.h (TARGET_VERSION): Remove.
22046 * config/rs6000/darwin.h (TARGET_VERSION): Remove.
22047 * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
22048 * config/rs6000/eabi.h (TARGET_VERSION): Remove.
22049 * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
22050 * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
22051 * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
22052 * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
22053 * config/rs6000/linux.h (TARGET_VERSION): Remove.
22054 * config/rs6000/linux64.h (TARGET_VERSION): Remove.
22055 * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
22056 * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
22057 * config/rs6000/lynx.h (TARGET_VERSION): Remove.
22058 * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
22059 * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
22060 * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
22061 * config/s390/linux.h (TARGET_VERSION): Remove.
22062 * config/s390/s390.h (TARGET_VERSION): Remove.
22063 * config/s390/tpf.h (TARGET_VERSION): Remove.
22064 * config/score/score.h (TARGET_VERSION): Remove.
22065 * config/sh/linux.h (TARGET_VERSION): Remove.
22066 * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
22067 TARGET_VERSION_CPU, TARGET_VERSION): Remove.
22068 * config/sh/sh.h (TARGET_VERSION): Remove.
22069 * config/sh/sh64.h (TARGET_VERSION): Remove.
22070 * config/sh/superh.h (TARGET_VERSION): Remove.
22071 * config/sh/vxworks.h (TARGET_VERSION): Remove.
22072 * config/sparc/freebsd.h (TARGET_VERSION): Remove.
22073 * config/sparc/linux.h (TARGET_VERSION): Remove.
22074 * config/sparc/linux64.h (TARGET_VERSION): Remove.
22075 * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
22076 TARGET_NAME32, TARGET_NAME): Remove.
22077 * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
22078 * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
22079 * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
22080 * config/sparc/sysv4.h (TARGET_VERSION): Remove.
22081 * config/sparc/vxworks.h (TARGET_VERSION): Remove.
22082 * config/spu/spu.h (TARGET_VERSION): Remove.
22083 * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
22084 * config/v850/v850.h (TARGET_VERSION): Remove.
22085 * config/vax/linux.h (TARGET_VERSION): Remove.
22086 * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
22087 * config/xtensa/elf.h (TARGET_VERSION): Remove.
22088 * config/xtensa/linux.h (TARGET_VERSION): Remove.
22090 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
22093 * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
22094 frame-related from frame-unrelated adjustments to the stack pointer.
22096 2011-03-31 Jakub Jelinek <jakub@redhat.com>
22098 * common.opt (fdebug-types-section): Move earlier.
22099 * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
22101 2011-03-31 Andreas Tobler <andreast@fgznet.ch>
22103 * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
22106 2011-03-30 Nathan Froyd <froydnj@codesourcery.com>
22108 * tree.h (CASE_CHAIN): Define.
22109 * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
22110 (gimple_redirect_edge_and_branch): Likewise.
22112 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
22114 PR middle-end/48367
22115 * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
22118 2011-03-30 Jeff Law <law@redhat.com>
22120 * PR bootstrap/48371
22121 * reload1.c (reload): Fix botch in last change.
22123 * reload.h (struct reload): Fix typo introduced in last change.
22125 2011-03-30 Joseph Myers <joseph@codesourcery.com>
22127 * config/arm/arm.opt (mhard-float, msoft-float): Mark
22128 Undocumented. Remove help text.
22129 * doc/invoke.texi (ARM Options): Don't document -msoft-float and
22132 2011-03-30 Joseph Myers <joseph@codesourcery.com>
22134 * doc/options.texi (NegativeAlias): Document.
22135 (Alias): Mention NegativeAlias.
22136 * opt-functions.awk: Handle NegativeAlias.
22137 * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
22138 * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
22139 * opts.h (CL_NEGATIVE_ALIAS): Define.
22140 * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
22141 (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
22143 * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
22145 * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
22146 mno-spe and mno-isel instead of mspe=no and -misel=no.
22148 2011-03-29 Mark Wielaard <mjw@redhat.com>
22150 * common.opt (fdebug-types-section): New flag.
22151 * doc/invoke.texi: Document new -fno-debug-types-section flag.
22152 * dwarf2out.c (use_debug_types): New define.
22153 (struct die_struct): Mark die_id with GTY desc use_debug_types.
22154 (print_die): Guard output of type unit signatures using
22156 (build_abbrev_table): Replace assert of dwarf_version >= 4
22157 with assert on use_debug_types.
22158 (size_of_die): Likewise.
22159 (unmark_dies): Likewise.
22160 (value_format): Decide AT_ref_external form on use_debug_types.
22161 (output_die): Replace dwarf_version version check guard with
22162 use_debug_types where appropriate.
22163 (modified_type_die): Likewise.
22164 (gen_reference_type_die): Likewise.
22165 (dwarf2out_start_source_file): Likewise.
22166 (dwarf2out_end_source_file): Likewise.
22167 (prune_unused_types_walk_attribs): Likewise.
22168 (dwarf2out_finish): Likewise.
22170 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
22172 * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
22174 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
22176 PR rtl-optimization/48332
22177 * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
22178 mode of input operand N and modeN to its actual mode.
22180 2011-03-30 Jeff Law <law@redhat.com>
22182 * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
22183 define accessor macro.
22184 (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
22185 (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
22186 (reg_equiv_init): Likewise.
22187 (reg_equivs_size): New variable.
22188 (reg_equiv_init_size): Remove.
22189 (allocate_initial_values): Move prototype to here from....
22190 * integrate.h (allocate_initial_values): Remove prototype.
22191 * integrate.c: Include reload.h.
22192 (allocate_initial_values): Corresponding changes.
22193 * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
22194 (fix_reg_equiv_init, no_equiv): Corresponding changes.
22195 (update_equiv_regs): Corresponding changes.
22196 (ira): Corresponding changes.
22197 * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
22198 (push_secondary_reload): Corresponding changes.
22199 (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
22200 (make_memloc, find_reloads_address): Corresponding changes.
22201 (subst_reg_equivs, subst_indexed_address): Corresponding changes.
22202 (find_reloads_address_1): Corresponding changes.
22203 (find_reloads_subreg_address, subst_reloads): Corresponding changes.
22204 (refers_to_regno_for_reload_p): Corresponding changes.
22205 (reg_overlap_mentioned_for_reload_p): Corresponding changes.
22206 (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
22207 * reload1.c: Include ggc.h.
22208 (grow_reg_equivs): New function.
22209 (replace_pseudos_in, reload): Corresponding changes.
22210 (calculate_needs_all_insns, alter_regs): Corresponding changes.
22211 (eliminate_regs_1, elimination_effects): Corresponding changes.
22212 (emit_input_reload_insns, emit_output_reload_insns): Likewise.
22213 (delete_output_reload): Likewise.
22214 * caller-save.c (mark_referenced_regs): Corresponding changes.
22215 * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
22216 * frv/predicates.md (frv_load_operand): Corresponding changes.
22217 * microblaze/microblaze.c (double_memory_operand): Corresponding
22219 * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
22220 * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
22221 * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
22222 * m68k/m68k.c (emit_move_sequence): Corresponding changes.
22223 * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
22225 * pa/pa.c (emit_move_sequence): Corresponding changes.
22226 * vax/vax.c (nonindexed_address_p): Corresponding changes.
22228 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
22231 * config/arm/arm.c (coproc_secondary_reload_class): Handle
22232 structure modes. Don't check neon_vector_mem_operand for
22233 vector or structure modes.
22235 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
22236 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
22239 * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
22240 operand 1 and reshuffle the operands to match.
22241 (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
22243 2011-03-30 Christian Schüler <cschueler@gmx.de>
22246 * config/c.opt (F): Added 'Driver' to -F option.
22249 * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
22251 * config/darwin.opt: Added '-arch' option.
22253 2011-03-30 Nick Clifton <nickc@redhat.com>
22255 * config/rx/rx.md: Add peepholes and patterns to combine
22256 extending loads and simple arithmetic instructions.
22257 * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
22258 * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
22259 * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
22260 modes to use pre-decrement and post-increment addressing.
22261 (rx_is_restricted_memory_address): Add range checking of REG+INT
22263 (rx_print_operand): Add support for %Q. Fix handling of %Q.
22264 (rx_memory_move_cost): Adjust cost of stores.
22265 (rx_adjust_insn_length): New function.
22267 2011-03-30 Jakub Jelinek <jakub@redhat.com>
22270 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
22271 arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
22272 matching arg00/arg01 types.
22274 2011-03-30 Eric Botcazou <ebotcazou@adacore.com>
22276 * cfglayout.c (insn_locators_alloc): Initialize curr_location and
22277 last_location to UNKNOWN_LOCATION.
22279 2011-03-30 H.J. Lu <hongjiu.lu@intel.com>
22282 * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
22285 2011-03-30 Joseph Myers <joseph@codesourcery.com>
22286 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22289 * config/sparc/sparc.opt (sparc_cpu_and_features): Add
22290 Init(PROCESSOR_V7).
22291 (sparc_cpu): Likewise.
22292 * config/sparc/sparc.c (sparc_option_override): Replace 0 by
22295 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
22298 PR middle-end/48342
22299 PR rtl-optimization/48345
22300 * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
22301 hard regs for given mode from profitable regs when doing secondary
22304 2011-03-29 Jeff Law <law@redhat.com>
22307 * tree-ssa-threadupdate.c (struct redirection_data): Remove
22308 do_not_duplicate field.
22309 (lookup_redirection_data): Corresponding changes.
22310 (create_duplicates): Always create a template block.
22311 (redirect_edges): Remove code which reused the original block
22312 when it was going to become unreachable code.
22313 (thread_block): Don't set do_not_duplicate field.
22315 2011-03-29 Joseph Myers <joseph@codesourcery.com>
22317 * lto-opts.c (register_user_option_p, lto_register_user_option):
22318 Make type argument unsigned.
22319 * lto-streamer.h (lto_register_user_option): Make type argument
22321 * opth-gen.awk: Make CL_* macros unsigned.
22322 * opts-common.c (find_opt): Make lang_mask argument unsigned.
22323 * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
22324 CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
22325 CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
22326 CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
22327 CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
22328 (find_opt): Make lang_mask argument unsigned.
22330 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
22332 PR rtl-optimization/48331
22333 PR rtl-optimization/48334
22334 * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
22335 for any used algorithm.
22337 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
22339 * ira-conflicts.c (build_object_conflicts): Add unused attribute
22342 2011-03-29 Uros Bizjak <ubizjak@gmail.com>
22344 * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
22345 (alpha_option_override): Don't set alpha_sr_alias_set.
22346 (emit_frame_store_1): Use gen_frame_mem rather than calling
22348 (alpha_expand_epilogue): Ditto.
22350 2011-03-29 Ira Rosen <ira.rosen@linaro.org>
22352 PR tree-optimization/48290
22353 * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
22354 vectorization, check that relevant phis in the basic block after
22355 the inner loop are really inner loop's exit phis.
22357 2011-03-29 Richard Sandiford <richard.sandiford@linaro.org>
22360 * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
22361 (cached_dw_loc_list_def): New structure.
22362 (cached_dw_loc_list): New typedef.
22363 (cached_dw_loc_list_table): New variable.
22364 (cached_dw_loc_list_table_hash): New function.
22365 (cached_dw_loc_list_table_eq): Likewise.
22366 (add_location_or_const_value_attribute): Take a bool cache_p.
22367 Cache the list when the parameter is true.
22368 (gen_formal_parameter_die): Update caller.
22369 (gen_variable_die): Likewise.
22370 (dwarf2out_finish): Likewise.
22371 (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
22372 while generating debug info for the decl.
22373 (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
22374 (dwarf2out_init): Initialize cached_dw_loc_list_table.
22375 (resolve_addr): Cache the result of resolving a chain of
22378 2011-03-28 Vladimir Makarov <vmakarov@redhat.com>
22380 * ira-color.c (update_left_conflict_sizes_p): Don't assume that
22381 conflict object hard regset nodes have intersecting hard reg sets.
22383 * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
22384 after regstat_init_n_sets_and_refs.
22386 * ira.c: Add more comments at the top.
22387 (setup_stack_reg_pressure_class, setup_pressure_classes):
22388 Add comments how we compute the register pressure classes.
22389 (setup_allocno_and_important_classes): Add more comments.
22390 (setup_class_translate_array, reorder_important_classes)
22391 (setup_reg_class_relations): Add comments.
22393 * ira-emit.c: Add 2011 to the Copyright line. Add comments at the
22396 * ira-color.c: Add 2011 to the Copyright line.
22397 (assign_hard_reg): Add more comments.
22398 (improve_allocation): Ditto.
22400 * ira-costs.c: Add 2011 to the Copyright line.
22401 (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
22403 (setup_regno_cost_classes_by_mode): Ditto.
22405 Initial patches from ira-improv branch:
22407 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
22409 * ira-build.c (ira_create_object): Remove initialization of
22410 OBJECT_PROFITABLE_HARD_REGS. Initialize OBJECT_ADD_DATA.
22411 (ira_create_allocno): Remove initialization of
22412 ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
22413 ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
22414 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
22415 ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
22416 ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
22417 Initialize ALLOCNO_ADD_DATA.
22418 (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
22419 and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
22421 (ira_flattening): Ditto. Use ALLOCNO_EMIT_DATA instead of
22422 ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
22424 * ira.c (ira_reallocate): Remove.
22425 (setup_pressure_classes): Call
22426 ira_init_register_move_cost_if_necessary. Use
22427 ira_register_move_cost instead of ira_get_register_move_cost.
22428 (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
22429 (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
22431 * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
22432 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
22433 ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
22434 ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
22435 instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
22436 OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
22438 (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
22439 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
22440 (struct allocno_color_data): New.
22441 (allocno_color_data_t): New typedef.
22442 (allocno_color_data): New definition.
22443 (ALLOCNO_COLOR_DATA): New macro.
22444 (struct object_color_data): New.
22445 (object_color_data_t): New typedef.
22446 (object_color_data): New definition.
22447 (OBJECT_COLOR_DATA): New macro.
22448 (update_copy_costs, calculate_allocno_spill_cost): Call
22449 ira_init_register_move_cost_if_necessary. Use
22450 ira_register_move_cost instead of ira_get_register_move_cost.
22451 (move_spill_restore, update_curr_costs): Ditto.
22452 (allocno_spill_priority): Make it inline.
22453 (color_pass): Allocate and free allocno_color_dat and object_color_data.
22454 (struct coalesce_data, coalesce_data_t): New.
22455 (allocno_coalesce_data): New definition.
22456 (ALLOCNO_COALESCE_DATA): New macro.
22457 (merge_allocnos, coalesced_allocno_conflict_p): Use
22458 ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
22459 ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
22460 (coalesce_allocnos): Ditto.
22461 (setup_coalesced_allocno_costs_and_nums): Ditto.
22462 (collect_spilled_coalesced_allocnos): Ditto.
22463 (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
22464 (setup_slot_coalesced_allocno_live_ranges): Ditto.
22465 (coalesce_spill_slots): Ditto.
22466 (ira_sort_regnos_for_alter_reg): Ditto. Allocate, initialize and
22467 free allocno_coalesce_data.
22469 * ira-conflicts.c: Fix formatting.
22470 (process_regs_for_copy): Call
22471 ira_init_register_move_cost_if_necessary. Use
22472 ira_register_move_cost instead of ira_get_register_move_cost.
22473 (build_object_conflicts): Optimize.
22475 * ira-costs.c (record_reg_classes): Optimize. Call
22476 ira_init_register_move_cost_if_necessary. Use
22477 ira_register_move_cost, ira_may_move_in_cost, and
22478 ira_may_move_out_cost instead of ira_get_register_move_cost and
22479 ira_get_may_move_cost.
22480 (record_address_regs): Ditto.
22481 (scan_one_insn): Optimize.
22482 (find_costs_and_classes): Optimize.
22483 (process_bb_node_for_hard_reg_moves): Call
22484 ira_init_register_move_cost_if_necessary. Use
22485 ira_register_move_cost instead of ira_get_register_move_cost.
22487 * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
22488 ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
22489 ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
22490 (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
22492 (ira_initiate_emit_data, ira_finish_emit_data)
22493 (create_new_allocno): New functions.
22494 (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
22495 (emit_move_list): Call ira_init_register_move_cost_if_necessary.
22496 Use ira_register_move_cost instead of ira_get_register_move_cost.
22498 * ira-int.h: Fix some comments.
22499 (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
22500 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
22501 (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
22502 hard_regs_subnodes_start, hard_regs_subnodes_num. Add new member
22504 (struct ira_allocno): Make mode and aclass a bitfield. Move other
22505 bitfield after mode. Make hard_regno a short int. Make
22506 hard_regno short. Remove first_coalesced_allocno and
22507 next_coalesced_allocno. Move mem_optimized_dest_p,
22508 somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
22509 into struct ira_emit_data. Remove in_graph_p, may_be_spilled_p,
22510 available_regs_num, next_bucket_allocno, prev_bucket_allocno,
22511 temp, colorable_p. Add new member add_data.
22512 (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
22513 (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
22514 (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
22515 (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
22516 (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
22517 (ALLOCNO_ADD_DATA): New macro.
22518 (ira_emit_data_t): New typedef.
22519 (struct ira_emit_data): New. Move mem_optimized_dest_p,
22520 somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
22521 from struct ira_allocno.
22522 (ALLOCNO_EMIT_DATA): New macro.
22523 (ira_allocno_emit_data, allocno_emit_reg): New.
22524 (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
22525 (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
22526 (OBJECT_ADD_DATA): New macro.
22527 (ira_reallocate): Remove.
22528 (ira_initiate_emit_data, ira_finish_emit_data): New.
22529 (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
22530 (ira_init_register_move_cost_if_necessary): New.
22531 (ira_object_conflict_iter_next): Merge into
22532 ira_object_conflict_iter_cond.
22533 (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
22535 * ira-live.c (process_single_reg_class_operands): Call
22536 ira_init_register_move_cost_if_necessary. Use
22537 ira_register_move_cost instead of ira_get_register_move_cost.
22539 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
22541 * ira-int.h (struct target_ira_int): Remove x_cost_classes.
22543 * ira-costs.c: Fix formatting.
22544 (cost_classes, cost_classes_num): Remove.
22545 (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
22546 (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
22547 (cost_classes_del, cost_classes_htab): New.
22548 (cost_classes_aclass_cache, cost_classes_mode_cache): New.
22549 (initiate_regno_cost_classes, setup_cost_classes): New.
22550 (setup_regno_cost_classes_by_aclass): New.
22551 (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
22552 (record_reg_classes): Use regno_cost_classes instead of
22553 cost_classes. Move checking opposite operand up.
22554 (record_address_regs): Use regno_cost_classes
22555 instead of cost_classes.
22556 (scan_one_insn): Ditto. Use always general register.
22557 (print_allocno_costs): Use regno_cost_classes instead of
22559 (print_pseudo_costs): Ditto. Use Reg_N_REFS.
22560 (find_costs_and_classes): Set up cost classes for each registers.
22561 Use also their mode for this. Use regno_cost_classes instead of
22563 (setup_allocno_class_and_costs): Use regno_cost_classes instead of
22565 (free_ira_costs, ira_init_costs): Don't use cost_classes.
22566 (ira_costs, ira_set_pseudo_classes): Call
22567 initiate_regno_cost_classes and finish_regno_cost_classes.
22569 2010-10-04 Vladimir Makarov <vmakarov@redhat.com>
22571 * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
22573 * target.def (ira_cover_classes): Remove.
22575 * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
22577 * doc/tm.texi.in: Ditto.
22579 * ira-conflicts.c: Remove mentioning cover classes from the file.
22580 Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Use
22581 ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST. Fix formatting.
22583 * targhooks.c (default_ira_cover_classes): Remove.
22585 * targhooks.h (default_ira_cover_classes): Ditto.
22587 * haifa-sched.c: Remove mentioning cover classes from the file.
22588 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
22589 ira_pressure_classes and ira_pressure_classes_num instead of
22590 ira_reg_class_cover_size and ira_reg_class_cover. Use
22591 sched_regno_pressure_class instead of sched_regno_cover_class.
22592 (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
22593 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
22595 * ira-int.h: Add 2010 to Copyright. Remove mentioning cover
22596 classes from the file.
22597 (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
22598 (struct object_hard_regs, struct object_hard_regs_node): New.
22599 (struct ira_object): New members profitable_hard_regs,
22600 hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
22601 (struct ira_allocno): Rename cover_class to aclass. Rename
22602 cover_class_cost and updated_cover_class_cost to class_cost and
22603 updated_class_cost. Remove splay_removed_p and
22604 left_conflict_size. Add new members colorable_p.
22605 (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
22606 (ALLOCNO_COLORABLE_P): New macro.
22607 (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
22608 (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
22609 Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
22610 (OBJECT_...): Rename parameter C to O.
22611 (OBJECT_PROFITABLE_HARD_REGS): New macro.
22612 (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
22613 (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
22614 (struct target_ira_int): New members x_ira_max_memory_move_cost,
22615 x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
22616 x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
22617 x_ira_reg_pressure_class_p, x_ira_important_class_nums,
22618 x_ira_reg_class_superunion. Rename x_prohibited_class_mode_reg to
22619 x_ira_prohibited_class_mode_reg. Rename x_ira_reg_class_union to
22620 x_ira_reg_class_subunion.
22621 (ira_max_memory_move_cost, ira_max_register_move_cost)
22622 (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
22623 (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
22624 (ira_important_class_nums, ira_reg_class_superunion): New macros.
22625 (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
22626 (ira_reg_class_union): Rename to ira_reg_class_subunion.
22627 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
22628 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
22629 (ira_tune_allocno_costs_and_cover_classes): Rename to
22630 ira_tune_allocno_costs.
22631 (ira_debug_hard_regs_forest): New.
22632 (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
22633 (ira_object_conflict_iter_next): Fix comments.
22634 (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
22635 (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
22636 cover_class to aclass.
22637 (ira_allocate_and_accumulate_costs): Ditto.
22638 (ira_allocate_and_set_or_copy_costs): Ditto.
22640 * opts.c (decode_options): Remove ira_cover_class check.
22642 * ira-color.c: Remove mentioning cover classes from the file. Use
22643 ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
22644 instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
22645 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
22646 (splay-tree.h): Remove include.
22647 (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
22648 before copy_freq_compare_func.
22649 (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
22650 (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
22652 (hard_regs_roots, hard_regs_node_vec): Ditto.
22653 (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
22654 (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
22655 (finish_object_hard_regs, object_hard_regs_compare): Ditto.
22656 (create_new_object_hard_regs_node): Ditto.
22657 (add_new_object_hard_regs_node_to_forest): Ditto.
22658 (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
22659 (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
22661 (print_hard_reg_set, print_hard_regs_subforest): Ditto.
22662 (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
22663 (remove_unused_object_hard_regs_nodes): Ditto.
22664 (enumerate_object_hard_regs_nodes): Ditto.
22665 (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
22666 (object_hard_regs_subnode_t): Ditto.
22667 (struct object_hard_regs_subnode): Ditto.
22668 (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
22669 (setup_object_hard_regs_subnode_index): Ditto.
22670 (get_object_hard_regs_subnodes_num): Ditto.
22671 (form_object_hard_regs_nodes_forest): Ditto.
22672 (finish_object_hard_regs_nodes_tree): Ditto.
22673 (finish_object_hard_regs_nodes_forest): Ditto.
22674 (allocnos_have_intersected_live_ranges_p): Rename to
22675 allocnos_conflict_by_live_ranges_p. Move before copy_freq_compare_func.
22676 (pseudos_have_intersected_live_ranges_p): Rename to
22677 conflict_by_live_ranges_p. Move before copy_freq_compare_func.
22678 (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
22679 (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
22680 (update_copy_costs): Remove assert. Skip cost update if the hard
22681 reg does not belong the class.
22682 (assign_hard_reg): Process only profitable hard regs.
22683 (uncolorable_allocnos_num): Make it scalar.
22684 (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
22685 and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
22686 and ira_reg_class_max_nregs.
22687 (bucket_allocno_compare_func): Check frequency first.
22688 (sort_bucket): Add compare function as a parameter.
22689 (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
22690 (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
22691 (push_allocno_to_stack): Rewrite for checking new allocno
22693 (remove_allocno_from_bucket_and_push): Print cost too. Remove assert.
22694 (push_only_colorable): Pass new parameter to sort_bucket.
22695 (push_allocno_to_spill): Remove.
22696 (allocno_spill_priority_compare): Make it inline and rewrite.
22697 (splay_tree_allocate, splay_tree_free): Remove.
22698 (allocno_spill_sort_compare): New function.
22699 (push_allocnos_to_stack): Sort allocnos for spilling once. Don't
22700 build and use splay tree. Choose first allocno in uncolorable
22701 allocno bucket to spill. Remove setting spill cost.
22702 (all_conflicting_hard_regs): Remove.
22703 (setup_allocno_available_regs_num): Check only profitable hard
22704 regs. Print info about hard regs nodes.
22705 (setup_allocno_left_conflicts_size): Remove.
22706 (put_allocno_into_bucket): Don't call
22707 setup_allocno_left_conflicts_size. Use setup_left_conflict_sizes_p.
22708 (improve_allocation): New.
22709 (color_allocnos): Call setup_profitable_hard_regs,
22710 form_object_hard_regs_nodes_forest, improve_allocation,
22711 finish_object_hard_regs_nodes_forest. Setup spill cost.
22712 (print_loop_title): Use pressure classes.
22713 (color_allocnso): Ditto.
22714 (do_coloring): Remove allocation and freeing splay_tree_node_pool
22715 and allocnos_for_spilling.
22716 (ira_sort_regnos_for_alter_reg): Don't setup members
22717 {first,next}_coalesced_allocno.
22718 (color): Remove allocating and freeing removed_splay_allocno_vec.
22719 (fast_allocation): Use ira_prohibited_class_mode_regs instead of
22720 prohibited_class_mode_regs.
22722 * ira-lives.c: Remove mentioning cover classes from the file. Fix
22724 (update_allocno_pressure_excess_length): Use pressure classes.
22725 (inc_register_pressure, dec_register_pressure): Check for pressure
22727 (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
22728 pressure class. Use ira_reg_class_nregs instead of
22729 ira_reg_class_max_nregs.
22730 (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
22731 (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
22732 (single_reg_class): Use ira_reg_class_nregs instead of
22733 ira_reg_class_max_nregs.
22734 (process_bb_node_lives): Use pressure classes.
22736 * ira-emit.c: Remove mentioning cover classes from the file. Use
22737 ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Fix formatting.
22738 (change_loop): Use pressure classes.
22739 (modify_move_list): Call ira_set_allocno_class instead of
22740 ira_set_allocno_cover_class.
22742 * ira-build.c: Remove mentioning cover classes from the file. Use
22743 ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
22744 ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST. Use
22745 ALLOCNO_UPDATED_CLASS_COST instead of
22746 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
22747 (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
22748 (ira_create_allocno): Remove initialization of
22749 ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE. Initialize
22750 ALLOCNO_COLORABLE_P.
22751 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
22752 Update conflict regs for the objects.
22753 (create_cap_allocno): Remove assert. Don't propagate
22754 ALLOCNO_AVAILABLE_REGS_NUM.
22755 (ira_free_allocno_costs): New function.
22756 (finish_allocno): Change a part of code into call of
22757 ira_free_allocno_costs.
22758 (low_pressure_loop_node_p): Use pressure classes.
22759 (object_range_compare_func): Don't compare classes.
22760 (setup_min_max_conflict_allocno_ids): Ditto.
22762 * loop-invariant.c: Remove mentioning cover classes from the file.
22763 Use ira_pressure_classes and ira_pressure_classes_num instead of
22764 ira_reg_class_cover_size and ira_reg_class_cover. Fix formatting.
22765 (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
22766 Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
22767 Use reg_allocno_class instead of reg_cover_class.
22768 (get_inv_cost): Use instead ira_stack_reg_pressure_class of
22769 STACK_REG_COVER_CLASS.
22770 (get_regno_cover_class): Rename to get_regno_pressure_class.
22771 (move_loop_invariants): Initialize and finalize regstat.
22773 * ira.c: Remove mentioning cover classes from the file. Add
22774 comments about coloring without cover classes. Use ALLOCNO_CLASS
22775 instead of ALLOCNO_COVER_CLASS. Fix formatting.
22776 (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
22777 setup_class_subset_and_memory_move_costs.
22778 (setup_stack_reg_pressure_class, setup_pressure_classes): New.
22779 (setup_cover_and_important_classes): Rename to
22780 setup_allocno_and_important_classes.
22781 (setup_class_translate_array): New.
22782 (setup_class_translate): Call it for allocno and pressure classes.
22783 (cover_class_order): Rename to allocno_class_order.
22784 (comp_reg_classes_func): Use ira_allocno_class_translate instead
22785 of ira_class_translate.
22786 (reorder_important_classes): Set up ira_important_class_nums.
22787 (setup_reg_class_relations): Set up ira_reg_class_superunion.
22788 (print_class_cover): Rename to print_classes. Add parameter.
22789 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
22790 Print pressure classes too.
22791 (find_reg_class_closure): Rename to find_reg_classes. Don't call
22792 setup_reg_subclasses.
22793 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
22794 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
22795 (setup_prohibited_class_mode_regs): Use
22796 ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
22797 (clarify_prohibited_class_mode_regs): New function.
22798 (ira_init_register_move_cost): Set up ira_max_register_move_cost,
22799 ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
22800 (ira_init_once): Initialize them.
22801 (free_register_move_costs): Process them.
22802 (ira_init): Move calls of find_reg_classes and
22803 setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
22804 Call clarify_prohibited_class_mode_regs.
22805 (ira_no_alloc_reg): Remove.
22806 (too_high_register_pressure_p): Use pressure classes.
22808 * sched-deps.c: Remove mentioning cover classes from the file.
22809 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
22810 ira_pressure_classes and ira_pressure_classes_num instead of
22811 ira_reg_class_cover_size and ira_reg_class_cover.
22812 (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
22813 sched_regno_pressure_class instead of sched_regno_cover_class.
22814 (mark_insn_pseudo_birth, mark_pseudo_death): Ditto. Use
22815 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
22817 * ira.h: Add 2010 to Copyright.
22818 (ira_no_alloc_reg): Remove external.
22819 (struct target_ira): Rename x_ira_hard_regno_cover_class,
22820 x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
22821 x_ira_class_translate to x_ira_hard_regno_allocno_class,
22822 x_ira_allocno_classes_num, x_ira_allocno_classes, and
22823 x_ira_allocno_class_translate. Add x_ira_pressure_classes_num,
22824 x_ira_pressure_classes, x_ira_pressure_class_translate, and
22825 x_ira_stack_reg_pressure_class. Rename x_ira_reg_class_nregs to
22826 x_ira_reg_class_max_nregs. Add x_ira_reg_class_min_nregs and
22827 x_ira_no_alloc_regs.
22828 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
22829 (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
22830 ira_allocno_classes_num and ira_allocno_classes.
22831 (ira_class_translate): Rename to ira_allocno_class_translate.
22832 (ira_pressure_classes_num, ira_pressure_classes): New definitions.
22833 (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
22834 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
22835 (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
22836 (ira_no_alloc_regs): New.
22838 * ira-costs.c: Add 2010 to Copyright. Remove mentioning cover
22839 classes from the file. Use ALLOCNO_CLASS instead of
22840 ALLOCNO_COVER_CLASS. Use ALLOCNO_CLASS_COST instead of
22841 ALLOCNO_COVER_CLASS_COST.
22842 (regno_cover_class): Rename to regno_aclass.
22843 (record_reg_classes): Use ira_reg_class_subunion instead of
22844 ira_reg_class_union.
22845 (record_address_regs): Check overflow.
22846 (scan_one_insn): Ditto.
22847 (print_allocno_costs): Print total mem cost fore regional allocation.
22848 (print_pseudo_costs): Use REG_N_REFS.
22849 (find_costs_and_classes): Use classes intersected with them on the
22850 1st pass. Check overflow. Use ira_reg_class_subunion instead of
22851 ira_reg_class_union. Use ira_allocno_class_translate and
22852 regno_aclass instead of ira_class_translate and regno_cover_class.
22853 Modify code for finding regno_aclass. Setup preferred classes for
22855 (setup_allocno_cover_class_and_costs): Rename to
22856 setup_allocno_class_and_costs. Use regno_aclass instead of
22857 regno_cover_class. Use ira_set_allocno_class instead of
22858 ira_set_allocno_cover_class.
22859 (init_costs, finish_costs): Use regno_aclass instead of
22861 (ira_costs): Use setup_allocno_class_and_costs instead of
22862 setup_allocno_cover_class_and_costs.
22863 (ira_tune_allocno_costs_and_cover_classes): Rename to
22864 ira_tune_allocno_costs. Check overflow. Skip conflict hard regs
22865 by processing objects. Use ira_reg_class_max_nregs instead of
22866 ira_reg_class_nregs.
22868 * rtl.h (reg_cover_class): Rename to reg_allocno_class.
22870 * sched-int.h: Remove mentioning cover classes from the file.
22871 (sched_regno_cover_class): Rename to sched_regno_pressure_class.
22873 * reginfo.c: Add 2010 to Copyright. Remove mentioning cover
22874 classes from the file.
22875 (struct reg_pref): Rename coverclass into allocnoclass.
22876 (reg_cover_class): Rename to reg_allocno_class.
22878 * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
22880 * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
22882 * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
22884 * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
22886 * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
22888 * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
22890 * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
22892 * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
22894 * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
22896 * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
22898 * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
22899 (i386_ira_cover_classes): Ditto.
22901 * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
22903 * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
22905 * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
22907 * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
22909 * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
22911 * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
22913 * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
22914 (mips_ira_cover_classes): Ditto.
22916 * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
22918 * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
22920 * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
22922 * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
22924 * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
22926 * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
22927 (IRA_COVER_CLASSES_VSX): Ditto.
22929 * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
22930 (rs6000_ira_cover_classes): Ditto.
22932 * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
22934 * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
22936 * config/score/score.h (IRA_COVER_CLASSES): Ditto.
22938 * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
22940 * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
22942 * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
22944 * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
22946 * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
22948 * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
22950 * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
22952 2011-03-29 Jakub Jelinek <jakub@redhat.com>
22955 * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
22956 dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
22957 dw_fde_unlikely_section_end_label, cold_in_std_section,
22958 dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
22959 Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
22961 (output_fde): Use dw_fde_second_{begin,end} if second is
22962 true, otherwise dw_fde_{begin,end}.
22963 (output_call_frame_info): Test dw_fde_second_begin != NULL
22964 instead of dw_fde_switched_sections.
22965 (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
22966 fields, initialize new fields. Initialize in_std_section
22967 unconditionally from the first partition.
22968 (dwarf2out_end_epilogue): Don't override dw_fde_end when
22969 dw_fde_second_begin is non-NULL.
22970 (dwarf2out_switch_text_section): Stop initializing removed
22971 dw_fde_struct fields, initialize new fields, initialize
22972 also dw_fde_end here. Set dw_fde_switch_cfi even when
22973 dwarf2out_do_cfi_asm (). Call var_location_switch_text_section.
22974 (struct var_loc_list_def): Add last_before_switch field.
22975 (arange_table, arange_table_allocated, arange_table_in_use,
22976 ARANGE_TABLE_INCREMENT, add_arange): Removed.
22977 (size_of_aranges): Count !in_std_section and !second_in_std_section
22978 hunks in fdes, instead of looking at arange_table_in_use.
22979 (output_aranges): Add aranges_length argument, don't call
22980 size_of_aranges here. Instead of using aranges_table*
22981 emit ranges for fdes when !in_std_section resp.
22982 !second_in_std_section.
22983 (dw_loc_list): Break ranges crossing section switch.
22984 (convert_cfa_to_fb_loc_list): Likewise. If switched sections,
22985 use dw_fde_second_end instead of dw_fde_end as end of last range.
22986 (gen_subprogram_die): Don't call add_arange. Use
22987 dw_fde_{begin,end} for first partition and if switched
22988 section dw_fde_second_{begin,end} for the second.
22989 (var_location_switch_text_section_1,
22990 var_location_switch_text_section): New functions.
22991 (dwarf2out_begin_function): Initialize cold_text_section even
22992 when function_section () isn't text_section.
22993 (prune_unused_types): Don't walk arange_table.
22994 (dwarf2out_finish): Don't needlessly test
22995 flag_reorder_blocks_and_partition when testing cold_text_section_used.
22996 If info_section_emitted, call size_of_aranges and if it indicates
22997 non-empty .debug_aranges, call output_aranges with the computed
22998 size. Stop using removed dw_fde_struct fields, use
22999 dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
23003 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
23004 create ENTRY_VALUE if incoming or address of incoming's MEM
23006 * dwarf2out.c (mem_loc_descriptor): Don't emit
23007 DW_OP_GNU_entry_value of DW_OP_fbreg.
23008 * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
23009 on ENTRY_VALUE is able to find the canonical parameter VALUE.
23010 * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
23011 rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
23013 (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
23014 is a REG_P or MEM_P with REG_P address, compute hash directly
23015 instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
23016 (preserve_only_constants): Don't clear VALUES forwaring
23017 ENTRY_VALUE to some other VALUE.
23019 2011-03-28 Richard Sandiford <richard.sandiford@linaro.org>
23021 * builtins.c (expand_builtin_memset_args): Use gen_int_mode
23022 instead of GEN_INT.
23024 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
23026 * cfgexpand.c (expand_gimple_cond): Always set the source location and
23027 block before expanding the statement.
23028 (expand_gimple_stmt_1): Likewise. Set them here...
23029 (expand_gimple_stmt): ...and not here. Tidy.
23030 * cfglayout.c (curr_insn_locator): Return 0 if the current location is
23033 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
23035 * Makefile.in: New rule for cprop.o.
23036 * gcse.c: Move constant/copy propagation to cprop.c.
23037 (compute_local_properties): Only handle expression tables.
23038 (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
23039 (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
23040 (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
23041 next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
23042 mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
23043 compute_cprop_data, find_used_regs, try_replace_reg,
23044 find_avail_set, cprop_jump, constprop_register, cprop_insn,
23045 local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
23046 fis_get_condition, implicit_set_cond_p, find_implicit_sets,
23047 find_bypass_set, reg_killed_on_edge, bypass_block,
23048 bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
23049 execute_rtl_cprop, pass_rtl_cprop): Move to...
23050 * cprop.c: ...here. New file, constant/copy propagation for RTL
23051 moved from gcse.c to here with minor cleanups in duplicated code.
23053 2011-03-28 H.J. Lu <hongjiu.lu@intel.com>
23055 * config/i386/i386.c (flag_opts): Fix a typo in
23056 -mavx256-split-unaligned-store.
23058 2011-03-28 Anatoly Sokolov <aesok@post.ru>
23060 * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
23061 LIBCALL_VALUE): Remove macros.
23062 * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
23063 TARGET_FUNCTION_VALUE_REGNO_P): Define.
23064 (h8300_function_value, h8300_libcall_value,
23065 h8300_function_value_regno_p): New functions.
23067 2011-03-28 Anatoly Sokolov <aesok@post.ru>
23069 * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
23071 2011-03-28 Jeff Law <law@redhat.com>
23073 * tree-ssa-threadupdate.c (redirect_edges): Call
23074 create_edge_and_update_destination_phis as needed.
23075 (create_edge_and_update_destination_phis): Accept new BB argument.
23076 All callers updated.
23077 (thread_block): Do not update the profile when threading around
23078 intermediate blocks.
23079 (thread_single_edge): Likewise.
23080 (determine_bb_domination_status): If BB is not a successor of the
23081 loop header, return NONDOMINATING.
23082 (register_jump_thread): Note when we register a jump thread around
23083 an intermediate block.
23084 * tree-ssa-threadedge.c (thread_around_empty_block): New function.
23085 (thread_across_edge): Use it.
23087 2011-03-28 Tristan Gingold <gingold@adacore.com>
23089 * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
23090 when for_return is 2.
23092 2011-03-28 Jeff Law <law@redhat.com>
23094 * var-tracking.c (canonicalize_values_mark): Delete unused
23096 (canonicalize_values_star, set_variable_part): Likewise.
23097 (clobber_variable_part, delete_variable_part): Likewise.
23099 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
23101 * gcse.c (free_gcse_mem): Free reg_set_bitmap.
23103 2011-03-28 Martin Jambor <mjambor@suse.cz>
23105 * tree-inline.c (expand_call_inline): Do not check that destination
23107 (optimize_inline_calls): Assert that destination node is analyzed.
23108 * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
23109 not call tree_lowering_passes.
23110 * cgraph.h (cgraph_analyze_function): Declare.
23111 * cgraphunit.c (cgraph_analyze_function): Make public.
23113 2011-03-28 Joseph Myers <joseph@codesourcery.com>
23115 * config/sparc/sparc-opts.h: New.
23116 * config/sparc/sparc.c (sparc_handle_option, sparc_select,
23117 sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
23118 (sparc_option_override): Store processor_type enumeration rather
23119 than string in cpu_default. Remove name and enumeration from
23120 cpu_table. Directly default -mcpu then default -mtune from -mcpu
23121 without using sparc_select. Use target_flags_explicit instead of
23123 * config/sparc/sparc.h (enum processor_type): Move to
23125 (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
23126 * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
23127 HeaderInclude entry.
23128 (mcpu=, mtune=): Use Var and Enum.
23129 (sparc_processor_type): New Enum and EnumValue entries.
23131 2011-03-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23132 Iain Sandoe <iains@gcc.gnu.org>
23135 * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
23137 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
23139 * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
23140 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
23141 Insert new statements at it in lieu of STMT.
23142 (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
23143 * tree-vect-stmts.c (vectorizable_store): Likewise.
23144 (vectorizable_load): Likewise.
23146 2011-03-28 Uros Bizjak <ubizjak@gmail.com>
23148 * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
23153 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
23155 * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
23156 unaligned 256bit load/store.
23157 (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
23158 (*avx_movdqu<avxmodesuffix>): Likewise.
23160 2011-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
23163 * config/pa/predicates.md (reg_or_ior_operand): New predicate.
23164 * config/pa/pa.md (iordi3): Use new predicate in expander.
23165 (iorsi3): Likewise.
23167 2011-03-27 Anatoly Sokolov <aesok@post.ru>
23169 * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
23170 FUNCTION_VALUE_REGNO_P): Remove macros.
23171 * config/mips/mips-protos.h (mips_function_value): Remove.
23172 * config/mips/mips.c (mips_function_value): Rename to...
23173 (mips_function_value_1): ... this. Make static. Handle receiving
23174 the function type in 'fn_decl_or_type' argument.
23175 (mips_function_value, mips_libcall_value,
23176 mips_function_value_regno_p): New function.
23177 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
23178 TARGET_FUNCTION_VALUE_REGNO_P): Define.
23180 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
23182 * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
23183 and -mavx256-split-unaligned-store.
23184 (ix86_option_override_internal): Split 32-byte AVX unaligned
23185 load/store by default.
23186 (ix86_avx256_split_vector_move_misalign): New.
23187 (ix86_expand_vector_move_misalign): Use it.
23189 * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
23190 -mavx256-split-unaligned-store.
23192 * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
23193 256bit load/store. Generate unaligned store on misaligned memory
23195 (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
23197 (*avx_movdqu<avxmodesuffix>): Likewise.
23199 * doc/invoke.texi: Document -mavx256-split-unaligned-load and
23200 -mavx256-split-unaligned-store.
23202 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
23205 * config/mips/mips.md (extendsidi2): Add an "l" alternative.
23208 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
23210 * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
23211 opno arguments with an expand_operand. Use create_input_operand.
23212 (mips_prepare_builtin_target): Delete.
23213 (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
23215 (mips_expand_builtin_direct): Use create_output_operand and
23216 mips_expand_builtin_insn. Update call to mips_prepare_builtin_arg.
23217 (mips_expand_builtin_movtf): Likewise. Use mips_expand_fp_comparison.
23218 (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
23220 2011-03-27 Ira Rosen <ira.rosen@linaro.org>
23222 * config/arm/arm.c (arm_autovectorize_vector_sizes): New
23224 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
23226 2011-03-26 Eric Botcazou <ebotcazou@adacore.com>
23228 * basic-block.h (fixup_abnormal_edges): Adjust prototype.
23229 * reload1.c (reload): Adjust call to fixup_abnormal_edges. Rediscover
23230 basic blocks and call commit_edge_insertions directly.
23231 (fixup_abnormal_edges): Move from here to...
23232 * cfgrtl.c (fixup_abnormal_edges): ...here. Only insert instructions
23233 on the edges and return whether some have actually been inserted.
23234 * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
23237 2011-03-26 Andrey Belevantsev <abel@ispras.ru>
23239 PR rtl-optimization/48144
23240 * sel-sched-ir.c (merge_history_vect): Factor out from ...
23241 (merge_expr_data): ... here.
23242 (av_set_intersect): Rename to av_set_code_motion_filter.
23243 Update all callers. Call merge_history_vect when an expression
23244 is found in both sets.
23245 * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
23247 2011-03-26 Alan Modra <amodra@gmail.com>
23249 * config/rs6000/predicates.md (word_offset_memref_op): Handle
23250 cmodel medium addresses.
23251 * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
23252 64-bit gpr loads and stores.
23253 (rs6000_secondary_reload_ppc64): New function.
23254 * config/rs6000/rs6000-protos.h: Declare it.
23255 * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
23257 2011-03-26 Alan Modra <amodra@gmail.com>
23260 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
23261 GNU Go in traceback table.
23263 2011-03-25 Richard Henderson <rth@redhat.com>
23265 * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
23266 if there are exactly 6 operands.
23267 (set_storage_via_setmem): Similarly.
23269 2011-03-25 Kai Tietz <ktietz@redhat.com>
23271 * collect2.c (write_c_file_stat): Handle backslash
23272 as right-hand directory separator.
23273 (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
23274 checking just for slash.
23275 * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
23276 instead of checking for trailing slash.
23277 * gcc.c (record_temp_file): Use filename_cmp instead
23279 (do_spec_1): Likewise.
23280 (replace_outfile_spec_function): Likewise.
23281 (is_directory): Use filename_ncmp instead of strncmp.
23282 (print_multilib_info): Likewise.
23283 * gcov.c (find_source): Use filename_cmp instead
23285 (make_gcov_file_name): Fix order of slash/backslash
23287 * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
23288 (add_standard_paths): Likewise.
23289 * mips-tfile.c (saber_stop): Handle backslash.
23290 * prefix.c (update_path): Use filename_ncmp instead of
23292 * profile.c (output_location): Use filename_cmp instead
23294 * read-md.c (handle_toplevel_file): Handle backslash.
23295 * tlink.c (frob_extension): Likewise.
23296 * tree-cfg.c (same_line_p): Use filename_cmp instead of
23298 * tree-dump.c (dequeue_and_dump): Handle backslash.
23299 * tree.c (get_file_function_name): Likewise.
23300 * gengtype.c (read_input_list): Likewise.
23301 (get_file_realbasename): Likewise.
23302 (get_output_file_with_visibility): Use filename_cmp
23305 2011-03-25 Richard Sandiford <richard.sandiford@linaro.org>
23307 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
23310 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
23312 * fold-const.c (expr_location_or): New function.
23313 (fold_truth_not_expr): Call it.
23315 2011-03-25 Jeff Law <law@redhat.com>
23317 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
23319 * c-family/c-common.c (def_fn_type): Likewise.
23320 * ada/gcc-interface/utils.c (def_fn_type): Likewise.
23321 * emit-rtl.c (gen_rtvec): Likewise.
23322 * lto/lto-lang.c (def_fn_type): Likewise.
23324 2011-03-25 Richard Guenther <rguenther@suse.de>
23326 * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
23327 also generate copies.
23328 (fini_copy_prop): Handle constant values properly.
23330 2011-03-25 Jakub Jelinek <jakub@redhat.com>
23332 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
23333 mode size instead of bitsize with DWARF2_ADDR_SIZE.
23334 (hash_loc_operands, compare_loc_operands): Handle
23335 DW_OP_GNU_entry_value.
23337 2011-03-25 Kai Tietz <ktietz@redhat.com>
23339 * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
23340 (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
23341 * config/i386/i386.c (ix86_conditional_register_usage): Adjust
23342 comment and use macro TARGET_64BIT_MS_ABI instead.
23343 (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
23344 and change default behavior for 32-bit MS_ABI.
23345 (ix86_reg_parm_stack_space): Check additionally for bit-ness.
23346 (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
23348 (ix86_cfun_abi): Likewise.
23349 (ix86_maybe_switch_abi): Adjust comment.
23350 (init_cumulative_args): Check for bit-ness in MS_ABI case.
23351 (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
23352 instead of checking for SYSV_ABI.
23353 (ix86_nsaved_sseregs): Likewise.
23354 (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
23356 (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
23357 * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
23358 (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
23359 (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
23360 * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
23362 2011-03-25 Richard Guenther <rguenther@suse.de>
23364 * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
23365 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
23366 (verify_gimple): Remove.
23367 * tree-cfg.c (verify_gimple_call): Merge verification
23369 (verify_gimple_phi): Merge verification from verify_stmts.
23370 (verify_gimple_label): New function.
23371 (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
23372 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
23373 (verify_stmt): Merge into verify_gimple_in_cfg and callees.
23374 (verify_stmts): Rename to verify_gimple_in_cfg.
23375 (verify_gimple_in_cfg): New function.
23376 * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
23377 * tree-ssa.c (verify_ssa): Likewise.
23378 * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
23380 2011-03-25 Richard Guenther <rguenther@suse.de>
23382 * passes.c (init_optimization_passes): Add FRE pass after
23385 2011-03-25 Bernd Schmidt <bernds@codesourcery.com>
23386 Andrew Stubbs <ams@codesourcery.com>
23388 * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
23390 (arm_movdi_vfp_cortexa8): New pattern.
23391 * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
23392 iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
23393 instructions when tuning for Cortex-A8. Set attribute "arch".
23394 * config/arm/arm.md: Move include arm-tune.md up a bit.
23395 (define_attr "arch"): Add "onlya8" and "nota8" values.
23396 (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
23398 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
23402 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
23404 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
23405 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
23406 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
23407 * passes.c (init_optimization_passes): Move
23408 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
23410 2011-03-25 Kai Tietz <ktietz@redhat.com>
23412 * c-typeck.c (comptypes_internal): Replace target
23413 hook call of comp_type_attributes by version in tree.c file.
23414 * gimple.c (gimple_types_compatible_p_1): Likewise.
23415 * tree-ssa.c (useless_type_conversion_p): Likewise.
23416 * tree.c (build_type_attribute_qual_variant): Likewise.
23417 (attribute_value_equal): New static helper function.
23418 (comp_type_attributes): New function.
23419 (merge_attributes): Use attribute_value_equal for comparison.
23420 (attribute_list_contained): Likewise.
23421 * tree.h (comp_type_attributes): New prototype.
23423 2011-03-25 Richard Guenther <rguenther@suse.de>
23425 * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
23426 of complex types at -O0.
23427 (verify_gimple_assign_binary): Likewise.
23428 (verify_gimple_assign_ternary): Likewise.
23430 2011-03-24 Mark Wielaard <mjw@redhat.com>
23432 * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
23433 (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
23435 2011-03-24 Mark Wielaard <mjw@redhat.com>
23438 * dwarf2out.c (output_abbrev_section): Only write table when
23439 abbrev_die_table_in_use > 1.
23441 2011-02-24 Richard Henderson <rth@redhat.com>
23443 * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
23444 (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
23445 (alpha_expand_unaligned_load_words): Use extql.
23446 (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
23447 (emit_insxl): Handle all modes for consistency.
23449 2011-02-24 Richard Henderson <rth@redhat.com>
23451 * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
23452 (alpha_expand_unaligned_load): Likewise.
23453 (alpha_expand_unaligned_store): Likewise.
23454 (alpha_expand_unaligned_load_words): Likewise.
23455 (alpha_expand_unaligned_store_words): Likewise.
23456 (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
23457 (alpha_split_lock_test_and_set_12): Likewise.
23458 (print_operand, alpha_fold_builtin_extxx): Likewise.
23459 (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
23460 * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
23461 (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
23462 (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
23463 (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
23464 (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
23465 (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
23466 (unaligned_storeqi_be, unaligned_storehi_be): Remove.
23467 (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
23468 (extwl, extll, extql): Similarly.
23469 (inswh, inslh, insqh): Similarly.
23470 (mskbl, mskwl, mskll, mskql): Similarly.
23471 (mskwh, msklh, mskqh): Similarly.
23473 2011-02-24 Richard Henderson <rth@redhat.com>
23475 * config/alpha/alpha.md (attribute isa): Add er, ner.
23476 (attribute enabled): Handle them.
23477 (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
23479 2011-02-24 Richard Henderson <rth@redhat.com>
23481 * config/alpha/alpha.md (attribute isa): Add vms.
23482 (attribute enabled): Handle it.
23483 (*movsf): Merge *movsf_{nofix,fix,nofp}.
23484 (*movdf): Merge *movdf_{nofix,fix,nofp}.
23485 (*movtf): Rename from *movtf_internal for consistency.
23486 (*movsi): Merge with *movsi_nt_vms.
23487 (*movhi): Merge *movhi_nobwx, *movhi_bwx.
23488 (*movqi): Merge *movqi_nobwx, *movqi_bwx.
23489 (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
23490 * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
23492 2011-02-24 Richard Henderson <rth@redhat.com>
23494 * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
23495 (extendqisi2, extendhisi2): Likewise.
23496 (extendqidi2): Simplify BWX/non-BWX expansions.
23497 (extendhidi2): Similarly.
23499 2011-02-24 Richard Henderson <rth@redhat.com>
23501 * config/alpha/alpha.md (attribute isa): New.
23502 (attribute enabled): New.
23503 (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
23504 (zero_extendqisi2, zero_extendqidi2): Similarly.
23505 (zero_extendhisi2, zero_extendhidi2): Similarly.
23506 * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
23508 2011-02-24 Richard Henderson <rth@redhat.com>
23510 * config/alpha/predicates.md (input_operand): Revert last change;
23511 update comment to mention 32-bit VMS rather than Windows.
23513 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
23515 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
23516 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
23517 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
23518 * passes.c (init_optimization_passes): Move
23519 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
23521 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
23523 * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
23525 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
23527 * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
23530 2011-03-24 Jakub Jelinek <jakub@redhat.com>
23533 * simplify-rtx.c (simplify_const_unary_operation): Call
23534 real_convert when changing mode class with FLOAT_EXTEND.
23536 2011-03-24 Nick Clifton <nickc@redhat.com>
23538 * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
23539 (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
23540 * config/rx/rx.c (rx_option_override): Set align_jumps,
23541 align_loops and align_labels if not set by the user.
23542 (rx_align_for_label): New function.
23543 (rx_max_skip_for_label): New function.
23544 (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
23545 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
23546 (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
23547 (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
23548 * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
23550 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
23552 PR rtl-optimization/48263
23553 * optabs.c (expand_binop_directly): Reinstate convert_modes code
23554 and original commutative_p handling. Use maybe_gen_insn.
23556 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
23558 * reload.c (find_reloads_subreg_address): Add address_reloaded
23559 parameter and return true there if the full address has been
23561 (find_reloads_toplev): Pass address_reloaded flag.
23562 (find_reloads_address_1): Don't use address_reloaded parameter.
23564 2011-03-24 Jeff Law <law@redhat.com>
23566 * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
23567 unused variable "ann".
23568 (remove_unused_locals): Likewise.
23570 * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
23573 * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
23576 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
23578 * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
23579 for invalid symbolic addresses.
23580 (s390_secondary_reload): Don't use s390_check_symref_alignment for
23583 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
23585 * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
23586 the argument in calls to fold_truth_not_expr.
23588 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
23590 * tree.c (record_node_allocation_statistics): New function.
23591 (make_node_stat, copy_node_stat, build_string): Call it.
23592 (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
23593 (build1_stat, build_omp_clause): Likewise.
23595 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
23597 * builtins.c (expand_movstr): Fix endp == 1 adjustment after
23600 2011-03-24 Richard Guenther <rguenther@suse.de>
23602 PR tree-optimization/48271
23603 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
23604 blocks that still exist.
23606 2011-03-24 Richard Guenther <rguenther@suse.de>
23608 PR tree-optimization/48270
23609 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
23610 not free datarefs before ddrs.
23612 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
23614 * tree-sra.c (build_ref_for_offset): Strip useless type conversions
23615 from the address built for a reference with variable offset.
23617 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
23620 * config/i386/i386.md (*movdf_internal_rex64): Do not split
23621 alternatives that can be handled with movq or movabsq insn.
23622 (*movdf_internal): Disable for !TARGET_64BIT.
23623 (*movdf_internal_nointeger): Ditto.
23624 * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
23626 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
23628 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
23629 (FUNCTION_ARG_ADVANCE): Likewise.
23630 * tm.texi.in: Change references to them to hook references.
23631 * tm.texi: Regenerate.
23632 * targhooks.c (default_function_arg): Eliminate check for target macro.
23633 (default_function_incoming_arg): Likewise.
23634 (default_function_arg_advance): Likewise.
23635 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
23636 (function_arg_advance): Likewise.
23637 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
23639 2011-03-24 Richard Guenther <rguenther@suse.de>
23641 PR middle-end/48269
23642 * tree-object-size.c (addr_object_size): Do not double-account
23643 for MEM_REF offsets.
23645 2011-03-24 Diego Novillo <dnovillo@google.com>
23647 * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
23648 * lto-streamer-in.c (input_string_internal): Add clarifying comments.
23649 (lto_input_data_block): Move from lto-opts.c. Make extern.
23651 (lto_input_string): Rename from input_string. Make extern.
23653 * lto-streamer-out.c (lto_output_string_with_length): Rename from
23654 output_string_with_length.
23655 Output 0 to indicate a non-NULL string. Update all callers to
23657 (lto_output_string): Rename from output_string. Make extern.
23659 (lto_output_decl_state_streams): Make extern.
23660 (lto_output_decl_state_refs): Make extern.
23661 * lto-streamer.h (lto_input_string): Declare.
23662 (lto_input_data_block): Declare.
23663 (lto_output_string): Declare.
23664 (lto_output_string_with_length): Declare.
23665 (lto_output_decl_state_streams): Declare.
23666 (lto_output_decl_state_refs): Declare.
23668 2011-03-24 Richard Guenther <rguenther@suse.de>
23670 PR tree-optimization/46562
23671 * tree.c (build_invariant_address): New function.
23672 * tree.h (build_invariant_address): Declare.
23673 * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
23674 a renamed function moved ...
23675 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
23676 Take valueization callback parameter.
23677 * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
23678 * gimple-fold.h: New file.
23679 * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
23680 (ccp_fold, fold_const_aggregate_ref,
23681 fold_ctor_reference, fold_nonarray_ctor_reference,
23682 fold_array_ctor_reference, fold_string_cst_ctor_reference,
23683 get_base_constructor): Move ...
23684 * gimple-fold.c: ... here.
23685 (gimple_fold_stmt_to_constant_1): New function
23686 split out from ccp_fold. Take a valueization callback parameter.
23687 Valueize all operands.
23688 (gimple_fold_stmt_to_constant): New wrapper function.
23689 (fold_const_aggregate_ref_1): New function split out from
23690 fold_const_aggregate_ref. Take a valueization callback parameter.
23691 (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
23692 * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
23693 invariant POINTER_PLUS_EXPRs to invariant form.
23694 (vn_valueize): New function.
23695 (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
23696 * tree-vrp.c (vrp_valueize): New function.
23697 (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
23698 to fold statements to constants.
23699 * tree-ssa-pre.c (eliminate): Properly guard propagation of
23700 function declarations.
23701 * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
23702 tree-ssa-ccp.o): Add gimple-fold.h dependencies.
23704 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
23706 * config/h8300/predicates.md (jump_address_operand): Fix register
23709 2011-03-24 Ira Rosen <ira.rosen@linaro.org>
23711 * doc/invoke.texi (max-stores-to-sink): Document.
23712 * params.h (MAX_STORES_TO_SINK): Define.
23713 * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
23714 if either vectorization or if-conversion is disabled.
23715 * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
23716 tree-vect-data-refs.c vect_equal_offsets.
23717 (dr_equal_offsets_p): New function.
23718 (find_data_references_in_bb): Remove static.
23719 * tree-data-ref.h (find_data_references_in_bb): Declare.
23720 (dr_equal_offsets_p): Likewise.
23721 * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
23722 (vect_drs_dependent_in_basic_block): Update calls to
23723 vect_equal_offsets.
23724 (vect_check_interleaving): Likewise.
23725 * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
23726 (cond_if_else_store_replacement): Rename to...
23727 (cond_if_else_store_replacement_1): ... this. Change arguments and
23729 (cond_if_else_store_replacement): New function.
23730 * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
23731 * params.def (PARAM_MAX_STORES_TO_SINK): Define.
23733 2011-03-23 Chung-Lin Tang <cltang@codesourcery.com>
23736 * config/arm/arm.md (casesi): Use the gen_int_mode() function
23737 to subtract lower bound instead of GEN_INT().
23739 2011-03-23 Jonathan Wakely <jwakely.gcc@gmail.com>
23744 * doc/extend.texi (Alignment): Move section to match order in TOC.
23745 * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
23746 (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
23748 2011-03-23 Jeff Law <law@redhat.com>
23750 * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
23751 before removing the edge.
23753 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
23754 it may have been freed by redirect_branch_edge or
23755 redirect_edge_succ_nodup.
23757 2011-03-23 Richard Guenther <rguenther@suse.de>
23759 * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
23760 (check_va_list_escapes): Likewise.
23761 (check_all_va_list_escapes): Likewise.
23763 2011-03-23 Richard Guenther <rguenther@suse.de>
23765 * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
23766 (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
23767 (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
23768 (alias.o): Likewise.
23769 (ipa-type-escape.o): Remove.
23770 (ipa-struct-reorg.o): Likewise.
23771 (GTFILES): Remove ipa-struct-reorg.c.
23772 * alias.c: Do not include ipa-type-escape.h.
23773 * tree-ssa-alias.c: Likewise.
23774 * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
23775 * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
23776 * passes.c (init_optimization_passes): Remove ipa-struct-reorg
23777 and ipa-type-escape passes.
23778 * tree-pass.h (pass_ipa_type_escape): Remove.
23779 (pass_ipa_struct_reorg): Likewise.
23780 * ipa-struct-reorg.h: Remove.
23781 * ipa-struct-reorg.c: Likewise.
23782 * ipa-type-escape.h: Likewise.
23783 * ipa-type-escape.c: Likewise.
23784 * doc/invoke.texi (-fipa-struct-reorg): Remove.
23785 (--param struct-reorg-cold-struct-ratio): Likewise.
23786 * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
23787 * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
23788 * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
23790 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
23792 * config/s390/2084.md: Enable all insn reservations also for z9_ec
23793 cpu attribute value.
23794 * config/s390/s390-opts.h (enum s390_arch_option): Remove.
23795 (enum processor_type): Add PROCESSOR_2094_Z9_EC.
23796 * config/s390/s390.c (processor_flags_table): New constant array.
23797 (s390_handle_arch_option): Remove.
23798 (s390_handle_option): Remove s390_handle_arch_option invocations
23799 and OPT_mwarn_framesize_ handling.
23800 (s390_option_override): Remove s390_handle_arch_option invocation.
23801 (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
23803 * config/s390/s390.md (cpu attribute): Add z9_ec value.
23804 * config/s390/s390.opt (s390_tune, s390_arch)
23805 (march=): Replace s390_arch_option enum and values with
23806 processor_type. Set variable name to s390_arch. Set
23807 initialization value.
23808 (mtune=): Replace s390_arch_option with processor_type. Set
23809 variable name to s390_tune. Set initialization value.
23811 2011-03-23 Julian Brown <julian@codesourcery.com>
23813 * expr.c (expand_expr_real_1): Only use BLKmode for volatile
23814 accesses which are not naturally aligned.
23816 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
23819 * config/arm/predicates.md (neon_lane_number): Accept 0..15.
23821 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
23823 * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
23824 parameter from "int" to "enum insn_code".
23825 (expand_operand_type): New enum.
23826 (expand_operand): New structure.
23827 (create_expand_operand): New function.
23828 (create_fixed_operand, create_output_operand): Likewise
23829 (create_input_operand, create_convert_operand_to): Likewise.
23830 (create_convert_operand_from, create_address_operand): Likewise.
23831 (create_integer_operand): Likewise.
23832 (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
23833 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
23834 (expand_insn, expand_jump_insn): Likewise.
23835 * builtins.c (expand_builtin_prefetch): Use the new interfaces.
23836 (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
23837 (expand_movstr, expand_builtin___clear_cache): Likewise.
23838 (expand_builtin_lock_release): Likewise.
23839 * explow.c (allocate_dynamic_stack_space): Likewise.
23840 (probe_stack_range): Likewise. Allow check_stack to FAIL,
23841 and use the default handling in that case.
23842 * expmed.c (check_predicate_volatile_ok): Delete.
23843 (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
23844 (emit_cstore): Likewise.
23845 * expr.c (emit_block_move_via_movmem): Likewise.
23846 (set_storage_via_setmem, expand_assignment): Likewise.
23847 (emit_storent_insn, try_casesi): Likewise.
23848 (emit_single_push_insn): Likewise. Allow the expansion to fail.
23849 * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
23850 (expand_vec_shift_expr, expand_binop_directly): Likewise.
23851 (expand_twoval_unop, expand_twoval_binop): Likewise.
23852 (expand_unop_direct, emit_indirect_jump): Likewise.
23853 (emit_conditional_move, vector_compare_rtx): Likewise.
23854 (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
23855 (expand_sync_operation, expand_sync_fetch_operation): Likewise.
23856 (expand_sync_lock_test_and_set): Likewise.
23857 (maybe_emit_unop_insn): Likewise. Change icode to an insn_code.
23858 (emit_unop_insn): Likewise.
23859 (expand_copysign_absneg): Change icode to an insn_code.
23860 (create_convert_operand_from_type): New function.
23861 (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
23862 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
23863 (expand_insn, expand_jump_insn): Likewise.
23864 * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
23865 than const_int_operand for operand 2.
23867 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
23869 * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
23872 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
23874 * emit-rtl.c (emit_pattern_before_noloc): New function.
23875 (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
23876 (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
23877 (emit_pattern_after_noloc): New function.
23878 (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
23879 (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
23881 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
23883 * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
23884 (__ffsDI2): Likewise.
23886 2011-03-22 Richard Henderson <rth@redhat.com>
23888 * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
23889 of !TARGET_ABI_OPEN_VMS.
23890 (alpha_trampoline_init, alpha_start_function): Likewise.
23891 (alpha_expand_epilogue, alpha_file_start): Likewise.
23892 * config/alpha/alpha.md (divsi3, modsi3): Likewise.
23893 (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
23894 (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
23895 (*divmodsi_internal, *divmoddi_internal_er): Likewise.
23896 (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
23898 2011-03-22 Joseph Myers <joseph@codesourcery.com>
23900 * config/s390/s390-opts.h: New.
23901 * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
23902 s390_arch_flags, s390_warn_framesize, s390_stack_size,
23903 s390_stack_guard): Remove.
23904 (s390_handle_arch_option): Return void. Take enum
23905 s390_arch_option value instead of string and searching array.
23906 (s390_handle_option): Don't assert that global structures are in
23907 use. Access variables via opts pointer. Use error_at. Don't use
23908 sscanf for -mstack-guard= or -mstack-size=. Update call to
23909 s390_handle_arch_option.
23910 (s390_option_override): Update call to s390_handle_arch_option.
23911 (s390_emit_prologue): Use %d format for s390_stack_size in
23912 diagnostic. Use %wd for HOST_WIDE_INT.
23913 * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
23914 (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
23915 * config/s390/s390.opt (config/s390/s390-opts.h): New
23916 HeaderInclude entry.
23917 (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
23918 s390_arch_flags, s390_warn_framesize): New Variable entries.
23919 (s390_arch_option): New Enum and EnumValue entries.
23920 (march=): Use Enum instead of Var.
23921 (mstack-guard=, mstack-size=): Use UInteger and Var.
23922 (mtune=): Use Enum.
23924 2011-03-22 Joseph Myers <joseph@codesourcery.com>
23926 * config/score/score.c (score_handle_option): Don't assert that
23927 global structures are in use. Access target_flags via opts
23928 pointer. Use value of -march= option to determine target_flags
23930 * config/score/score.opt (march=): Use Enum.
23931 (score_arch): New Enum and EnumValue entries.
23933 2011-03-22 Joseph Myers <joseph@codesourcery.com>
23935 * config/mep/mep.c (option_mtiny_specified): Remove.
23936 (mep_option_override): Move register handling for -mivc2 from
23937 mep_handle_option. Use global_options_set.x_mep_tiny_cutoff
23938 instead of option_mtiny_specified.
23939 (mep_handle_option): Access target_flags via opts pointer. Don't
23940 assert that global structures are in use. Defer part of -mivc2
23941 handling and move it to mep_option_override.
23942 * config/mep/mep.opt (IVC2): New Mask entry.
23943 (mivc2): Use Var and Defer instead of Mask.
23945 2011-03-22 Joseph Myers <joseph@codesourcery.com>
23947 * config/v850/v850-opts.h: New.
23948 * config/v850/v850.c (small_memory): Replace with
23949 small_memory_physical_max array. Make that array static const.
23950 (v850_handle_memory_option): Take integer value of argument. Take
23951 gcc_options pointer, option text and location. Return void.
23952 Update for changes to small memory structures.
23953 (v850_handle_option): Access target_flags via opts pointer. Don't
23954 assert that global structures are in use. Update calls to
23955 v850_handle_memory_option.
23956 (v850_encode_data_area): Update references to small memory settings.
23957 * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
23958 (enum small_memory_type): Move to v850-opts.h.
23959 * config/v850/v850.opt (config/v850/v850-opts.h): New
23960 HeaderInclude entry.
23961 (small_memory_max): New Variable entry.
23962 (msda): Replace by pair of options msda= and msda-. Use UInteger.
23963 (mtda, mzda): Likewise.
23965 2011-03-22 Joseph Myers <joseph@codesourcery.com>
23967 * config/sh/sh.c (sh_handle_option): Access target_flags via opts
23968 pointer. Don't assert that global structures are in use.
23970 2011-03-22 Joseph Myers <joseph@codesourcery.com>
23972 * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
23973 via opts pointer. Don't assert that global structures are in use.
23975 2011-03-22 Joseph Myers <joseph@codesourcery.com>
23977 * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
23978 (munix=93): Use Var.
23979 * config/pa/pa-hpux1010.opt (munix=95): Use Var.
23980 * config/pa/pa-hpux1111.opt (munix=98): Use Var.
23981 * config/pa/pa-opts.h: New.
23982 * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
23983 (pa_handle_option): Don't assert that global structures are in
23984 use. Access target_flags via opts pointer. Don't handle
23985 OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
23987 (pa_option_override): Handle deferred OPT_mfixed_range_.
23989 2011-03-22 Joseph Myers <joseph@codesourcery.com>
23991 * config/mn10300/mn10300-opts.h: New.
23992 * config/mn10300/mn10300.c (mn10300_processor,
23993 mn10300_tune_string): Remove.
23994 (mn10300_handle_option): Don't assert that global structures are
23995 in use. Access mn10300_processor via opts pointer. Don't handle
23997 * config/mn10300/mn10300.h (enum processor_type): Move to
23999 (mn10300_processor): Remove.
24000 * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
24001 HeaderInclude entry.
24002 (mn10300_processor): New Variable entry.
24005 2011-03-22 Joseph Myers <joseph@codesourcery.com>
24007 * config/microblaze/microblaze.c: Don't include opts.h.
24008 (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
24009 * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
24010 (mno-clearbss): Use Var and Warn.
24012 2011-03-22 Joseph Myers <joseph@codesourcery.com>
24014 * config/m32r/m32r-opts.h: New.
24015 * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
24016 (m32r_handle_option): Don't assert that global structures are in
24017 use. Access target_flags and m32r_cache_flush_func via opts
24018 pointer. Don't handle OPT_mmodel_, OPT_msdata_ or
24019 OPT_mno_flush_trap here.
24020 * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
24021 include of m32r-opts.h.
24022 * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
24023 HeaderInclude entry.
24024 (m32r_model_selected, m32r_sdata_selected): New Variable entries.
24025 (mmodel=): Use Enum and Var.
24026 (m32r_model): New Enum and EnumValue entries.
24027 (mno-flush-trap): Use Var.
24028 (msdata=): Use Enum and Var.
24029 (m32r_sdata): New Enum and EnumValue entries.
24031 2011-03-22 Joseph Myers <joseph@codesourcery.com>
24033 * config/m32c/m32c.c: Don't include opts.h.
24034 (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
24035 m32c_handle_option): Remove.
24036 (m32c_option_override): Check global_options_set.x_target_memregs
24037 instead of target_memregs_set.
24038 * config/m32c/m32c.h (target_memregs): Remove.
24039 * config/m32c/m32c.opt (memregs=): Use UInteger with integer
24042 2011-03-22 Joseph Myers <joseph@codesourcery.com>
24044 * config/iq2000/iq2000-opts.h: New.
24045 * config/iq2000/iq2000.c: Don't include opts.h.
24046 (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
24047 * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
24048 * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
24049 HeaderInclude entry.
24050 (iq2000_tune): New Variable entry.
24051 (march=): Add comment. Use Enum.
24052 (iq2000_arch): New Enum and EnumValue entries.
24053 (mcpu=): Use Enum and Var.
24054 (iq2000_tune): New Enum and EnumValue entries.
24056 2011-03-22 Joseph Myers <joseph@codesourcery.com>
24058 * config/ia64/ia64-opts.h: New.
24059 * config/ia64/ia64.c (ia64_tune): Remove.
24060 (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
24061 here. Use error_at.
24062 (ia64_option_override): Handle deferred OPT_mfixed_range_.
24063 * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
24064 * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
24065 HeaderInclude entry.
24066 (ia64_tune): New Variable entry.
24067 (mfixed-range=): Use Defer and Var.
24068 (mtune=): Use Enum and Var.
24069 (ia64_tune): New Enum and EnumValue entries.
24071 2011-03-22 Joseph Myers <joseph@codesourcery.com>
24073 * config/frv/frv-opts.h: New.
24074 * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
24076 (frv_cpu_type): Remove.
24077 * config/frv/frv.c: Don't include opts.h.
24078 (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
24079 * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
24080 (frv_cpu_type): New Variable entry.
24081 (frv_cpu): New Enum and EnumValue entries.
24083 2011-03-22 Joseph Myers <joseph@codesourcery.com>
24085 * config/cris/cris.c (cris_handle_option): Access target_flags via
24086 opts pointer. Don't assert that global structures are in use.
24087 Don't call CRIS_SUBTARGET_HANDLE_OPTION.
24088 * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
24090 2011-03-22 Joseph Myers <joseph@codesourcery.com>
24092 * config/bfin/bfin-opts.h: New.
24093 * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
24094 bfin_si_revision, bfin_workarounds): Remove.
24095 (bfin_cpus): Make static const.
24096 (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
24097 not bfin_lib_id_given.
24098 (bfin_handle_option): Don't set bfin_lib_id_given. Access
24099 bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
24100 pointer. Use error_at. Don't assert that global structures are in use.
24101 * config/bfin/bfin.h: Include bfin-opts.h.
24102 (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
24103 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
24104 * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
24105 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
24108 2011-03-22 Joseph Myers <joseph@codesourcery.com>
24110 * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
24111 * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
24112 or -msoft-float here.
24113 * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
24114 -msoft-float and -mhard-float.
24115 (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
24116 * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
24118 * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
24120 (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
24121 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
24123 (LIBGCC_SPEC): Don't handle -msoft-float.
24124 * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
24126 * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
24128 * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
24129 -mfloat-abi=*, not -msoft-float and -mhard-float.
24130 * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
24132 * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
24133 Use mfloat-abi=hard and mfloat-abi=soft in comments, not
24134 mhard-float and msoft-float.
24135 * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
24136 mfloat-abi=soft in comments, not mhard-float and msoft-float.
24137 * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
24138 mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
24140 * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
24141 mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
24143 * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
24145 * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
24148 2011-03-22 Richard Henderson <rth@redhat.com>
24150 * config/alpha/alpha.c (alpha_expand_prologue): Don't test
24151 TARGET_ABI_WINDOWS_NT.
24152 (alpha_output_function_end_prologue): Likewise.
24153 * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
24154 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
24155 * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
24156 (trap, *movsi_nt_vms): Likewise.
24157 (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
24158 (*tablejump_osf_nt_internal): Remove.
24159 * config/alpha/predicates.md (input_operand): Only test Pmode.
24161 2011-03-22 Joseph Myers <joseph@codesourcery.com>
24163 * config/alpha/alpha.c (alpha_handle_option): Access target_flags
24164 via opts pointer. Use error_at. Don't assert that global
24165 structures are in use.
24167 2011-03-22 Joseph Myers <joseph@codesourcery.com>
24169 * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
24170 (ix86_handle_option): Access ix86_isa_flags and
24171 ix86_isa_flags_explicit via opts pointer. Don't assert that
24172 global structures are in use.
24173 (ix86_function_specific_save, ix86_function_specific_restore):
24174 Update ix86_isa_flags_explicit field name.
24175 * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
24176 (ix86_isa_flags_explicit): Rename TargetSave entry to
24177 x_ix86_isa_flags_explicit.
24179 2011-03-22 Richard Henderson <rth@redhat.com>
24181 * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
24182 (alpha_option_override, direct_return): Likewise.
24183 (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
24184 (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
24185 (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
24186 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
24187 (alpha_expand_epilogue, alpha_end_function): Likewise.
24188 (alpha_init_libfuncs): Likewise.
24189 (struct machine_function): Remove unicosmk members.
24190 (print_operand) ['t']: Remove.
24191 (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
24192 unicosmk_output_module_name, unicosmk_output_common,
24193 current_section_align, unicosmk_output_text_section_asm_op,
24194 unicosmk_output_data_section_asm_op, unicosmk_init_sections,
24195 unicosmk_section_type_flags, unicosmk_unique_section,
24196 unicosmk_asm_named_section, unicosmk_insert_attributes,
24197 unicosmk_output_align, unicosmk_defer_case_vector,
24198 unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
24199 SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
24200 unicosmk_output_ssib, unicosmk_add_call_info_word,
24201 unicosmk_extern_head, unicosmk_output_default_externs,
24202 unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
24203 unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
24204 unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
24205 * config/alpha/alpha-protos.h: Update.
24206 * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
24207 * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
24208 (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
24209 (mulsi3): Don't test TARGET_ABI_UNICOSMK.
24210 (*mulsi_se, mulvsi3): Likewise.
24211 (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
24212 (*divmodsi_internal, call, call_value, realign): Likewise.
24213 (moddi3, umoddi3): Likewise; remove duplicate expander.
24214 (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
24215 (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
24216 (*movdi_nofix): Remove r/U alternative.
24217 (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
24218 * config/alpha/constraints.md ("U"): Remove.
24219 * config/alpha/predicates.md (call_operand"): Don't test
24220 TARGET_ABI_UNICOSMK.
24222 2011-03-22 Joseph Myers <joseph@codesourcery.com>
24224 * target.def (handle_option): Take gcc_options and
24225 cl_decoded_option pointers and location_t.
24226 * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
24227 * doc/tm.texi: Regenerate.
24228 * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
24229 * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
24230 * lto-opts.c (lto_reissue_options): Generate option structure for
24231 targetm.handle_option call.
24232 * opts.c (target_handle_option): Update call to
24233 targetm.handle_option. Remove assertions about values now passed
24235 * targhooks.c (default_target_handle_option): New.
24236 * targhooks.h (default_target_handle_option): Declare.
24237 * config/alpha/alpha.c: Include opts.h.
24238 (alpha_handle_option): Update to new hook interface.
24239 * config/arm/arm.c: Include opts.h.
24240 (arm_handle_option): Update to new hook interface.
24241 * config/arm/t-arm (arm.o): Update dependencies.
24242 * config/bfin/bfin.c: Include opts.h.
24243 (bfin_handle_option): Update to new hook interface.
24244 * config/cris/cris.c: Include opts.h.
24245 (cris_handle_option): Update to new hook interface.
24246 * config/frv/frv.c: Include opts.h.
24247 (frv_handle_option): Update to new hook interface.
24248 * config/i386/i386.c: Include opts.h.
24249 (ix86_handle_option): Update to new hook interface.
24250 (ix86_valid_target_attribute_inner_p): Generate option structure
24251 for call to ix86_handle_option.
24252 * config/i386/t-i386 (i386.o): Update dependencies.
24253 * config/ia64/ia64.c: Include opts.h.
24254 (ia64_handle_option): Update to new hook interface.
24255 * config/ia64/t-ia64 (ia64.o): Update dependencies.
24256 * config/iq2000/iq2000.c: Include opts.h.
24257 (iq2000_handle_option): Update to new hook interface.
24258 * config/m32c/m32c.c: Include opts.h.
24259 (m32c_handle_option): Update to new hook interface.
24260 * config/m32r/m32r.c: Include opts.h.
24261 (m32r_handle_option): Update to new hook interface.
24262 * config/m68k/m68k.c: Include opts.h.
24263 (m68k_handle_option): Update to new hook interface.
24264 * config/mep/mep.c: Include opts.h.
24265 (mep_handle_option): Update to new hook interface.
24266 * config/microblaze/microblaze.c: Include opts.h.
24267 (microblaze_handle_option): Update to new hook interface.
24268 * config/mips/mips.c: Include opts.h.
24269 (mips_handle_option): Update to new hook interface.
24270 * config/mn10300/mn10300.c: Include opts.h.
24271 (mn10300_handle_option): Update to new hook interface.
24272 * config/pa/pa.c: Include opts.h.
24273 (pa_handle_option): Update to new hook interface.
24274 * config/pdp11/pdp11.c: Include opts.h.
24275 (pdp11_handle_option): Update to new hook interface.
24276 * config/rs6000/rs6000.c: Include opts.h.
24277 (rs6000_handle_option): Update to new hook interface.
24278 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
24279 * config/rx/rx.c: Include opts.h.
24280 (rx_handle_option): Update to new hook interface.
24281 * config/s390/s390.c: Include opts.h.
24282 (s390_handle_option): Update to new hook interface.
24283 * config/score/score.c: Include opts.h.
24284 (score_handle_option): Update to new hook interface.
24285 * config/sh/sh.c: Include opts.h.
24286 (sh_handle_option): Update to new hook interface.
24287 * config/sparc/sparc.c: Include opts.h.
24288 (sparc_handle_option): Update to new hook interface.
24289 * config/v850/v850.c: Include opts.h.
24290 (v850_handle_option): Update to new hook interface.
24292 2011-03-22 Joseph Myers <joseph@codesourcery.com>
24294 * gcc.c (driver_unknown_option_callback): Only permit and save
24295 unknown -Wno- options.
24296 (driver_wrong_lang_callback): Save options directly instead of via
24297 driver_unknown_option_callback.
24299 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
24301 * combine.c (simplify_set): Try harder to find the best CC mode when
24302 simplifying a nested COMPARE on the RHS.
24304 2011-03-22 Joseph Myers <joseph@codesourcery.com>
24306 * config/alpha/gnu.h: Remove.
24307 * config/arc: Remove directory.
24308 * config/arm/netbsd.h: Remove.
24309 * config/arm/t-pe: Remove.
24310 * config/crx: Remove directory.
24311 * config/i386/netbsd.h: Remove.
24312 * config/m68hc11: Remove directory.
24313 * config/m68k/uclinux-oldabi.h: Remove.
24314 * config/mcore/mcore-pe.h: Remove.
24315 * config/mcore/t-mcore-pe: Remove.
24316 * config/netbsd-aout.h: Remove.
24317 * config/rs6000/gnu.h: Remove.
24318 * config/sh/sh-symbian.h: Remove.
24319 * config/sh/symbian-base.c: Remove.
24320 * config/sh/symbian-c.c: Remove.
24321 * config/sh/symbian-cxx.c: Remove.
24322 * config/sh/symbian-post.h: Remove.
24323 * config/sh/symbian-pre.h: Remove.
24324 * config/sh/t-symbian: Remove.
24325 * config/svr3.h: Remove.
24326 * config/vax/netbsd.h: Remove.
24327 * config.build: Don't handle i[34567]86-*-pe.
24328 * config.gcc: Remove handling of deprecations for most deprecated
24330 (m68k-*-uclinuxoldabi*): Add to second deprecated list.
24331 (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
24332 i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
24333 m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
24334 powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
24335 sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
24337 * config.host: Don't handle i[34567]86-*-pe.
24338 * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
24339 (ASM_SPEC32): Don't handle -mcall-gnu.
24340 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
24342 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
24343 STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
24344 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
24345 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
24346 (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
24347 * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
24348 conditional on SYMBIAN.
24349 * configure.ac: Don't handle powerpc*-*-gnu*.
24350 * configure: Regenerate.
24351 * doc/extend.texi (interrupt attribute): Don't mention CRX.
24352 * doc/install-old.texi (m6811, m6812): Don't mention.
24353 * doc/install.texi (arc-*-elf*): Don't document multilib option.
24354 (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
24355 (m68k-uclinuxoldabi): Don't mention.
24356 * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
24358 (-mcall-gnu): Remove.
24359 * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
24360 families): Remove constraint documentation.
24362 2011-03-22 Marius Strobl <marius@FreeBSD.org>
24364 * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
24365 (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
24366 (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
24368 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
24371 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
24372 vector when peeking at the next token for vector, don't expand the
24375 2011-03-21 Georg-Johann Lay <avr@gjlay.de>
24377 * config/avr/avr-protos.h (expand_epilogue): Change prototype
24378 * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
24379 * config/avr/avr.c (init_cumulative_args)
24380 (avr_function_arg_advance): Use it.
24381 * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
24383 (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
24384 (avr_function_ok_for_sibcall): ...this new function.
24385 (avr_lookup_function_attribute1): New static Function.
24386 (avr_naked_function_p, interrupt_function_p)
24387 (signal_function_p, avr_OS_task_function_p)
24388 (avr_OS_main_function_p): Use it.
24389 * config/avr/avr.md ("sibcall", "sibcall_value")
24390 ("sibcall_epilogue"): New expander.
24391 ("*call_insn", "*call_value_insn"): New insn.
24392 ("call_insn", "call_value_insn"): Remove
24393 ("call", "call_value", "epilogue"): Change expander to handle
24396 2011-03-21 Nick Clifton <nickc@redhat.com>
24398 * doc/invoke.texi (Overall Options): Move closing brace to end of
24400 (Optimization Options): Add missing @gol.
24401 (Directory Options): Likewise.
24402 (i386 and x86-64 Options): Likewise.
24403 (RS6000 and PowerPC Options): Likewise.
24404 (i386 and x86-64 Windows Options): Likewise.
24405 (V850 Options): Add text missing from descriptions.
24407 2011-03-22 Richard Henderson <rth@redhat.com>
24409 * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
24410 (avr_incoming_return_addr_rtx): New.
24411 (emit_push_byte): New.
24412 (expand_prologue): Use it. Remove incorrect dwarf annotation for
24413 SREG, RAMPZ, zero register. Push frame pointer by bytes. Add dwarf
24414 annotation for __prologue_saves__. Fixup dwarf annotation for CFA.
24415 (emit_pop_byte): New.
24416 (expand_epilogue): Use it. Pop frame pointer by bytes.
24417 * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
24418 (INCOMING_RETURN_ADDR_RTX): New.
24419 (INCOMING_FRAME_SP_OFFSET): New.
24420 (ARG_POINTER_CFA_OFFSET): New.
24421 * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
24422 (*pushhi, *pushsi, *pushsf, popqi): Likewise.
24425 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
24427 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
24429 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
24430 (FUNCTION_ARG_ADVANCE): Likewise.
24431 * tm.texi.in: Change references to them to hook references.
24432 * tm.texi: Regenerate.
24433 * targhooks.c (default_function_arg): Eliminate check for target
24435 (default_function_incoming_arg): Likewise.
24436 (default_function_arg_advance): Likewise.
24437 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
24438 (function_arg_advance): Likewise.
24439 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
24441 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
24443 * tree.c (build_call_1): New function.
24444 (build_call_valist, build_call_array_loc, build_call_vec): Call it.
24446 2011-03-22 Richard Guenther <rguenther@suse.de>
24448 PR tree-optimization/48228
24449 * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
24450 for single-arg PHIs.
24452 2011-03-22 Andrey Belevantsev <abel@ispras.ru>
24454 PR rtl-optimization/48143
24455 * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
24456 (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
24457 sse2_cvtps2pd): Likewise.
24459 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
24461 * recog.c (canonicalize_change_group): Use validate_unshare_change.
24463 2011-03-22 Richard Guenther <rguenther@suse.de>
24465 * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
24466 a valid RHS. Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
24467 * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
24468 and REALIGN_LOAD_EXPR.
24469 (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
24470 DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
24471 * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
24472 DOT_PROD_EXPR case ...
24473 (expand_expr_real_2): ... here.
24474 * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
24475 and REALIGN_LOAD_EXPR.
24476 * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
24477 * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
24478 (vect_create_epilog_for_reduction): Likewise.
24479 (vectorizable_reduction): Likewise.
24480 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
24481 * tree-vect-stmts.c (vectorizable_load): Likewise.
24483 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
24485 * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
24487 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
24489 * config/s390/s390.c (s390_delegitimize_address): Fix offset
24490 handling for PLTOFF/GOTOFF.
24492 2011-03-22 Nick Clifton <nickc@redhat.com>
24494 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
24495 trailing backslash from the end of the macro definition.
24497 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
24499 * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
24502 2011-03-21 Richard Sandiford <richard.sandiford@linaro.org>
24504 * expr.h (prepare_operand): Move to...
24505 * optabs.h (prepare_operand): ...here and change the insn code
24506 parameter from "int" to "enum insn_code".
24507 (insn_operand_matches): Declare.
24508 * expr.c (init_expr_target): Use insn_operand_matches.
24509 (compress_float_constant): Likewise.
24510 * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
24511 * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
24512 (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
24513 (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
24515 (gen_cond_trap): Likewise.
24516 (prepare_operand): Likewise. Change icode to an insn_code.
24517 (insn_operand_matches): New function.
24518 * reload.c (find_reloads_address_1): Use insn_operand_matches.
24519 * reload1.c (gen_reload): Likewise.
24520 * targhooks.c (default_secondary_reload): Likewise.
24522 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
24524 * config/alpha/alpha.md (unspec): New define_c_enum.
24527 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
24530 * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
24531 between a call and its CALL_ARG_LOCATION note.
24533 2011-03-21 Eric Botcazou <ebotcazou@adacore.com>
24535 * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
24537 2011-03-21 Jakub Jelinek <jakub@redhat.com>
24541 * c-common.c (shorten_compare): If primopN is first sign-extended
24542 to opN and then zero-extended to result type, set primopN to opN.
24544 2011-03-21 Daniel Jacobowitz <dan@codesourcery.com>
24546 * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
24547 for barrier handlers.
24549 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
24551 * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
24552 UNSPEC constants to be in the unspec enumeration, and redefine
24553 all UNSPECV constants to be in the unspecv enumeration, so that
24554 dumps print which unspec/unspec_volatile this is.
24555 * config/rs6000/vector.md (UNSPEC_*): Ditto.
24556 * config/rs6000/paired.md (UNSPEC_*): Ditto.
24557 * config/rs6000/vsx.md (UNSPEC_*): Ditto.
24558 * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
24559 * config/rs6000/dfp.md (UNSPEC_*): Ditto.
24561 * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
24562 UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
24563 UNSPECV_LWSYNC, since these are used as unspec_volatile.
24564 * config/rs6000/sync.md (isync, lwsync): Ditto.
24566 2011-03-21 Richard Guenther <rguenther@suse.de>
24568 * params.def (lto-min-partition): Fix typo.
24570 2011-03-21 Richard Guenther <rguenther@suse.de>
24573 * c-decl.c (grokdeclarator): Drop to the main variant only
24574 for array types. Drop flag_gen_aux_info check.
24576 2011-03-21 Richard Guenther <rguenther@suse.de>
24578 PR translation/47911
24579 * params.def (lto-partitions): Fix typo.
24580 (lto-min-partition): Fix wording.
24582 2011-03-21 Andreas Tobler <andreast@fgznet.ch>
24584 * config/rs6000/t-freebsd: Remove duplication from file.
24586 2011-03-21 Richard Guenther <rguenther@suse.de>
24588 PR middle-end/47661
24589 * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
24591 2011-03-21 Richard Guenther <rguenther@suse.de>
24594 * params.def (lto-partitions): Require at least 1 partition.
24596 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24598 * gthr-solaris.h: Remove.
24599 * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
24600 * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
24601 (LIB_SPEC): Likewise.
24602 * config/sol2.opt (threads): Remove.
24603 * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
24604 (sparc*-*-solaris2*): Likewise.
24605 * configure.ac (enable_threads): Enable solaris support.
24606 * configure: Regenerate.
24607 * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
24608 * doc/install.texi (Configuration, --enable-threads=lib): Remove
24611 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24613 * config.gcc: Obsolete *-*-solaris2.8*.
24614 * doc/install.texi (Specific, *-*-solaris2*): Document it.
24616 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24619 * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
24620 reference. Solaris 8 perl works.
24622 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24625 * doc/install.texi (Prerequisites): Move jar etc. up.
24626 Explain support library version requirements.
24628 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24631 * doc/install.texi (Prerequisites): Move Perl to build
24632 requirements. Always necessary on Solaris 2 with Sun ld.
24634 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24636 * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
24638 (Specific, i?86-*-solaris2.[89]): Likewise.
24639 (Specific, i?86-*-solaris2.10): Likewise.
24640 (Specific, mips-sgi-irix6): Likewise.
24641 (Specific, *-*-solaris2*): Remove Sun Studio download URL.
24642 Update for binutils 2.21.
24644 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24646 * configure.ac (gcc_cv_lto_plugin): Fix typo.
24647 Allow -fuse-linker-plugin for non-default plugin linker.
24648 * configure: Regenerate.
24650 2011-03-21 Nicola Pero <nicola.pero@meta-innovation.com>
24653 * gengtype.c (files_rules): Added rule for cp/parser.h.
24655 2011-03-21 Jakub Jelinek <jakub@redhat.com>
24658 * config/s390/s390.c (s390_delegitimize_address): Don't call
24659 lowpart_subreg if orig_x has BLKmode.
24661 2011-03-21 Kai Tietz <ktietz@redhat.com>
24664 * doc/plugins.texi: Adjust documentation for plugin register_callback.
24665 * tree.h (attribute_spec): Add new member affects_type_identity.
24666 * attribs.c (empty_attribute_table): Adjust attribute_spec
24668 * config/alpha/alpha.c: Likewise.
24669 * config/arc/arc.c: Likewise.
24670 * config/arm/arm.c: Likewise.
24671 * config/avr/avr.c: Likewise.
24672 * config/bfin/bfin.c: Likewise.
24673 * config/crx/crx.c: Likewise.
24674 * config/darwin.h: Likewise.
24675 * config/h8300/h8300.c: Likewise.
24676 * config/i386/cygming.h: Likewise.
24677 * config/i386/i386.c: Likewise.
24678 * config/ia64/ia64.c: Likewise.
24679 * config/m32c/m32c.c: Likewise.
24680 * config/m32r/m32r.c: Likewise.
24681 * config/m68hc11/m68hc11.c: Likewise.
24682 * config/m68k/m68k.c: Likewise.
24683 * config/mcore/mcore.c: Likewise.
24684 * config/mep/mep.c: Likewise.
24685 * config/microblaze/microblaze.c: Likewise.
24686 * config/mips/mips.c: Likewise.
24687 * config/rs6000/rs6000.c: Likewise.
24688 * config/rx/rx.c: Likewise.
24689 * config/sh/sh.c: Likewise.
24690 * config/sol2.h: Likewise.
24691 * config/sparc/sparc.c: Likewise.
24692 * config/spu/spu.c: Likewise.
24693 * config/stormy16/stormy16.c: Likewise.
24694 * config/v850/v850.c: Likewise.
24696 2011-03-21 Chung-Lin Tang <cltang@codesourcery.com>
24698 * simplify-rtx.c (simplify_binary_operation_1): Handle
24699 (xor (and A B) C) case when B and C are both constants.
24701 2011-03-21 Mingjie Xing <mingjie.xing@gmail.com>
24703 * tree-dfa.c (add_referenced_var): Fix typo in comment.
24705 2011-03-20 Eric Botcazou <ebotcazou@adacore.com>
24708 * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
24710 2011-03-20 Jakub Jelinek <jakub@redhat.com>
24712 PR rtl-optimization/48156
24713 * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
24714 assume df and df_lr are not NULL.
24716 2011-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
24719 * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
24720 between a call and its CALL_ARG_LOCATION note.
24722 2011-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
24725 * config/sh/sh.c (find_barrier): Don't emit a constant pool
24726 between a call and its corresponding CALL_ARG_LOCATION note.
24728 2011-03-19 Anatoly Sokolov <aesok@post.ru>
24730 * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
24731 instead of loop. Use HARD_REGISTER_NUM_P predicate.
24732 * haifa-sched.c (setup_ref_regs): Ditto.
24733 * caller-save.c (add_used_regs_1): Ditto.
24734 * dse.c (look_for_hardregs): Ditto.
24735 * df-problems.c (df_simulate_one_insn_forwards): Ditto.
24736 * sched-rgn.c (check_live_1): Ditto.
24738 2011-03-18 Joseph Myers <joseph@codesourcery.com>
24740 * c-decl.c (diagnose_mismatched_decls): Give an error for
24741 redefining a typedef with variably modified type.
24743 2011-03-18 Joseph Myers <joseph@codesourcery.com>
24745 * c-decl.c (grokfield): Don't allow typedefs for structures or
24746 unions with no tag by default.
24747 * doc/extend.texi (Unnamed Fields): Update.
24749 2011-03-18 Uros Bizjak <ubizjak@gmail.com>
24751 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
24752 Rewrite using indirect functions.
24753 (lwp_slwpcb): Ditto.
24754 * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
24755 (avx_vinsertf128<mode>): Ditto.
24757 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
24759 * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
24762 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
24764 * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
24765 splitting between a call and its corresponding CALL_ARG_LOCATION note.
24767 2011-03-18 Maxim Kuvyrkov <maxim@codesourcery.com>
24769 PR rtl-optimization/48170
24770 * gcse.c (hoist_code): Remove bogus asserts.
24772 2011-03-18 Georg-Johann Lay <avr@gjlay.de>
24774 * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
24775 computation for prologue/epilogue.
24777 2011-03-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24779 * Makefile.in (check-consistency): Remove.
24781 2011-03-18 Jakub Jelinek <jakub@redhat.com>
24784 * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
24785 arange_table_in_use is 0, but either text_section_used or
24786 cold_text_section_used is true. Don't call it if
24787 !info_section_emitted.
24789 2011-03-18 Anatoly Sokolov <aesok@post.ru>
24791 * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
24792 FUNCTION_VALUE_REGNO_P): Remove.
24793 * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
24795 * config/avr/avr.c (avr_ret_register): Make static inline.
24796 (avr_function_value_regno_p): New function.
24797 (avr_libcall_value): Make static. Add 'func' argument.
24798 (avr_function_value): Make static. Rename 'func' argument to
24799 'fn_decl_or_type', forward it to avr_libcall_value. Call
24800 avr_ret_register function instead of RET_REGISTER macro.
24801 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
24803 2011-03-18 Jason Merrill <jason@redhat.com>
24806 * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
24808 2011-03-18 Richard Guenther <rguenther@suse.de>
24810 * doc/install.texi (--enable-gold): Remove.
24811 (--with-plugin-ld): Document.
24812 * doc/invoke.texi (-fuse-linker-plugin): Clarify.
24814 2011-03-18 Andrew Pinski <pinskia@gmail.com>
24816 PR middle-end/47790
24817 * expr.c (optimize_bitfield_assignment_op): Revamp to work
24818 again after expansion changes.
24820 2011-03-18 Chung-Lin Tang <cltang@codesourcery.com>
24822 * combine.c (try_combine): Do simplification only call of
24823 subst() on i2 even when i1 is present. Update comments.
24825 2011-03-18 Kaz Kojima <kkojima@gcc.gnu.org>
24827 * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
24828 and UNSPEC_PCREL_SYMOFF.
24830 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
24832 * config/s390/s390.md: Use define_c_enum for the unspec constant
24835 2011-03-18 Richard Henderson <rth@redhat.com>
24836 Jakub Jelinek <jakub@redhat.com>
24839 * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
24840 instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
24842 2011-03-17 Anatoly Sokolov <aesok@post.ru>
24844 * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
24845 * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
24846 * config/v850/v850.c (v850_output_addr_const_extra): Make static.
24847 Change return type to bool.
24848 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
24850 2011-03-17 Jakub Jelinek <jakub@redhat.com>
24853 * var-tracking.c (prepare_call_arguments): If CALL target
24854 is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
24855 pc instead of looking it up using cselib_lookup and use
24856 Pmode for it if x has VOIDmode.
24857 * dwarf2out.c (gen_subprogram_die): If also both first and
24858 second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
24861 * function.c (assign_parms): For data.passed_pointer parms
24862 use MEM of data.entry_parm instead of data.entry_parm itself
24863 as DECL_INCOMING_RTL.
24864 * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
24865 also when passed and declared mode is the same, DECL_RTL
24866 is a MEM with pseudo as address and DECL_INCOMING_RTL is
24869 2011-03-16 Jeff Law <law@redhat.com>
24871 PR rtl-optimization/37273
24872 * ira-costs.c (scan_one_insn): Detect constants living in memory and
24873 handle them like argument loads from stack slots. Do not double
24874 count memory for memory constants and argument loads from stack slots.
24876 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
24879 * var-tracking.c (prepare_call_arguments): Check SUBREG.
24881 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
24884 * config/i386/i386.opt: Add Save to -mavx and -mfma.
24886 2011-03-17 Jakub Jelinek <jakub@redhat.com>
24889 * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
24891 (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
24892 Clear call_arg_locations and call_arg_loc_last always.
24894 PR middle-end/48152
24895 * var-tracking.c (prepare_call_arguments): If argument needs to be
24896 passed by reference, adjust argtype and mode.
24898 2011-03-17 Richard Guenther <rguenther@suse.de>
24900 PR middle-end/48134
24901 * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
24902 a value make sure to fold the statement.
24904 2011-03-17 Chung-Lin Tang <cltang@codesourcery.com>
24907 * config/arm/arm.c (arm_get_frame_offsets): Adjust early
24908 return condition with !cfun->calls_alloca.
24910 2011-03-17 Richard Guenther <rguenther@suse.de>
24913 * lto-cgraph.c (input_overwrite_node): Clear the abstract
24914 origin for decls in other ltrans units.
24915 (input_varpool_node): Likewise.
24917 2011-03-17 Richard Guenther <rguenther@suse.de>
24919 PR middle-end/48165
24920 * tree-object-size.c (compute_object_offset): Properly return
24921 the offset operand of MEM_REFs as sizetype.
24923 2011-03-17 Jakub Jelinek <jakub@redhat.com>
24925 PR rtl-optimization/48141
24926 * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
24927 * dse.c: Include params.h.
24928 (active_local_stores_len): New variable.
24929 (add_wild_read, dse_step1): Clear it when setting active_local_stores
24931 (record_store, check_mem_read_rtx): Decrease it when removing
24933 (scan_insn): Likewise. Increase it when adding to chain, if it
24934 reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
24935 set active_local_stores to NULL before the addition.
24936 * Makefile.in (dse.o): Depend on $(PARAMS_H).
24938 PR rtl-optimization/48141
24939 * dse.c (record_store): If no positions are needed in an insn
24940 that cannot be deleted, at least unchain it from active_local_stores.
24942 2011-03-16 Dodji Seketeli <dodji@redhat.com>
24945 * dwarf2out.c (strip_naming_typedef): Factorize out of ...
24946 (lookup_type_die_strip_naming_typedef): ... here.
24947 (get_context_die): Use it.
24948 (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
24949 the anonymous struct named by the naming typedef.
24951 2011-03-16 H.J. Lu <hongjiu.lu@intel.com>
24954 * config/i386/i386.c (ix86_builtin_vectorized_function): Check
24955 TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
24957 2011-03-16 Jeff Law <law@redhat.com>
24959 * tree-vrp.c (identify_jump_threads): Slightly simplify type
24960 check for operands of conditional. Allow type to be a pointer.
24962 2011-03-16 Richard Guenther <rguenther@suse.de>
24964 PR tree-optimization/48149
24965 * fold-const.c (fold_binary_loc): Fold
24966 COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
24968 2011-03-16 Richard Guenther <rguenther@suse.de>
24970 PR tree-optimization/26134
24971 * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
24972 complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
24973 (non_rewritable_mem_ref_base): Handle complex type component
24974 accesses, constrain offsets for vector and complex extracts
24977 2011-03-16 Richard Guenther <rguenther@suse.de>
24979 PR tree-optimization/48146
24980 * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
24981 operands avoiding the need for renaming.
24983 2011-03-16 Richard Guenther <rguenther@suse.de>
24985 * gimple-fold.c (maybe_fold_reference): Open-code relevant
24986 constant folding. Move MEM_REF canonicalization first.
24987 Rely on fold_const_aggregate_ref for initializer folding.
24988 * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
24990 2011-03-16 Jakub Jelinek <jakub@redhat.com>
24992 PR middle-end/48136
24993 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
24994 arg0/arg1 or their arguments are always fold converted to matching
24997 * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
25000 2011-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25003 * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
25004 Handle in-tree gold.
25005 (ld_vers): Extract binutils version for gold.
25006 (gcc_cv_ld_hidden): Handle gold here.
25007 (gcc_cv_lto_plugin): Determine level of linker plugin support.
25008 * configure: Regenerate.
25009 * config.in: Regenerate.
25010 * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
25011 -fuse-linker-plugin otherwise.
25012 (LINK_PLUGIN_SPEC): Define. Extract from LINK_COMMAND_SPEC.
25013 (LINK_COMMAND_SPEC): Use it.
25014 (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
25016 2011-03-16 Jakub Jelinek <jakub@redhat.com>
25018 * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
25019 * calls.c: Remove debug.h include.
25020 (emit_call_1): Don't call virtual_call_token debug hook.
25021 * dwarf2out.c (debug_dcall_section, debug_vcall_section,
25022 dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
25023 vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
25024 size_of_dcall_table, output_dcall_table, size_of_vcall_table,
25025 output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
25026 vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
25027 dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
25028 dwarf2out_virtual_call): Remove.
25029 (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
25030 copy_call_info and virtual_call hooks.
25031 (dwarf2out_init): Don't initialize vcall_insn_table,
25032 debug_dcall_section and debug_vcall_section.
25033 (prune_unused_types): Don't mark nodes from dcall_table.
25034 (dwarf2out_finish): Don't output dcall or vcall tables.
25035 * final.c (final_scan_insn): Don't call direct_call or
25036 virtual_call debug hooks.
25037 * debug.h (struct gcc_debug_hooks): Remove direct_call,
25038 virtual_call_token, copy_call_info and virtual_call hooks.
25039 (debug_nothing_uid): Remove prototype.
25040 * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
25041 copy_call_info and virtual_call hooks.
25042 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
25043 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
25044 * debug.c (do_nothing_debug_hooks): Likewise.
25045 (debug_nothing_uid): Remove.
25046 * doc/invoke.texi (-fenable-icf-debug): Remove.
25047 * common.opt (-fenable-icf-debug): Likewise.
25049 * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
25050 * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
25051 call's MEM. Handle functions returning aggregate through a hidden
25052 first pointer. For virtual calls add clobbered pc to call arguments
25054 * dwarf2out.c (gen_subprogram_die): Emit
25055 DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
25059 * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
25060 * rtl.h (ENTRY_VALUE_EXP): Define.
25061 * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
25062 * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
25063 * print-rtl.c (print_rtx): Likewise.
25064 * gengtype.c (adjust_field_rtx_def): Likewise.
25065 * var-tracking.c (vt_add_function_parameter): Adjust
25066 gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
25067 * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
25068 * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
25069 partition is a default definition of a PARM_DECL, use ENTRY_VALUE
25070 of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
25072 * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
25073 Call var_location debug hook even on CALL_INSNs.
25074 (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
25075 * rtl.def (ENTRY_VALUE): New.
25076 * dwarf2out.c: Include cfglayout.h.
25077 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
25078 output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
25079 (struct call_arg_loc_node): New type.
25080 (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
25081 tail_call_site_count): New variables.
25082 (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
25083 DW_TAG_GNU_call_site_parameter.
25084 (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
25085 DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
25086 DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
25087 DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
25088 and DW_AT_GNU_all_source_call_sites.
25089 (mem_loc_descriptor): Handle ENTRY_VALUE.
25090 (add_src_coords_attributes): Don't add enything if
25091 DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
25092 (dwarf2out_abstract_function): Save and clear call_arg_location,
25093 call_site_count and tail_call_site_count around dwarf2out_decl call.
25094 (gen_call_site_die): New function.
25095 (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
25096 (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
25097 (dwarf2out_function_decl): Clear call_arg_locations,
25098 call_arg_loc_last, set call_site_count and tail_call_site_count
25099 to -1 and free block_map.
25100 (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
25101 CALL_INSNs. Add NOTE_DURING_CALL_P var location notes even when not
25102 followed by any real instructions.
25103 (dwarf2out_begin_function): Set call_site_count and
25104 tail_call_site_count to 0.
25105 (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
25106 is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
25107 attempt to force a DIE for it and worst case remove the attribute.
25108 (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
25109 check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
25111 * var-tracking.c: Include tm_p.h.
25112 (vt_stack_adjustments): For calls call note_register_arguments.
25113 (argument_reg_set): New variable.
25114 (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
25115 ensure the VALUE is resolved.
25116 (call_arguments): New variable.
25117 (prepare_call_arguments): New function.
25118 (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
25119 (struct expand_loc_callback_data): Add ignore_cur_loc field.
25120 (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
25121 always use the best expression.
25122 (vt_expand_loc): Add ignore_cur_loc argument.
25123 (vt_expand_loc_dummy): Clear ignore_cur_loc field.
25124 (emit_note_insn_var_location): Adjust vt_expand_loc callers.
25125 (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
25126 note for all calls.
25127 (vt_add_function_parameter): Use cselib_lookup_from_insn.
25128 If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
25129 argument. Don't call cselib_preserve_only_values and
25130 cselib_reset_table.
25131 (note_register_arguments): New function.
25132 (vt_initialize): Compute argument_reg_set. Call
25133 vt_add_function_parameters before processing basic blocks instead of
25134 afterwards. For calls call prepare_call_arguments before calling
25135 cselib_process_insn.
25136 * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
25137 * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
25138 (var-tracking.o): Depend on $(TM_P_H).
25139 * cfglayout.h (insn_scope): New prototype.
25140 * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
25141 * cfglayout.c (insn_scope): No longer static.
25142 * insn-notes.def (CALL_ARG_LOCATION): New.
25143 * calls.c (expand_call, emit_library_call_value_1): Put USEs for
25144 MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
25145 * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
25146 nothing for DECL_EXTERNAL BLOCK_VARS.
25148 2011-03-16 Alan Modra <amodra@gmail.com>
25151 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
25152 create invalid offset address for vsx splat insn.
25153 * config/rs6000/predicates.md (splat_input_operand): New.
25154 * config/rs6000/vsx.md (vsx_splat_*): Use it.
25156 2011-03-15 Xinliang David Li <davidxl@google.com>
25159 * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
25160 (normalize_preds): New function.
25161 (is_use_properly_guarded): Normalize def predicates.
25163 2011-03-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
25166 * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
25167 in the output template.
25169 2011-03-15 Richard Guenther <rguenther@suse.de>
25171 PR middle-end/47650
25172 * tree-pretty-print.c (dump_function_declaration): Properly
25173 dump unprototyped and varargs function types.
25175 2011-03-15 Richard Guenther <rguenther@suse.de>
25177 PR tree-optimization/13954
25178 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
25181 2011-03-15 Richard Guenther <rguenther@suse.de>
25183 PR tree-optimization/48037
25184 * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
25185 selects into BIT_FIELD_REFs.
25186 (non_rewritable_mem_ref_base): Check if a MEM_REF is a
25189 2011-03-15 Jakub Jelinek <jakub@redhat.com>
25191 PR tree-optimization/48129
25192 * builtins.c (fold_builtin_snprintf): Convert to type of
25193 built_in_decls[BUILT_IN_SNPRINTF] retval instead of
25194 implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
25196 2011-03-15 Richard Guenther <rguenther@suse.de>
25198 PR tree-optimization/41490
25199 * tree-ssa-dce.c (propagate_necessity): Handle returns without
25200 value but with VUSE.
25201 * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
25203 * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
25204 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
25205 * tree-tailcall.c (find_tail_calls): Ignore returns.
25207 2011-03-15 Richard Guenther <rguenther@suse.de>
25209 PR middle-end/48031
25210 * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
25211 or variable-indexed array accesses when in gimple form.
25213 2011-03-15 Richard Guenther <rguenther@suse.de>
25215 * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
25217 2011-03-15 Alan Modra <amodra@gmail.com>
25220 * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
25221 presume symbol_refs without a symbol_ref_decl are suitably
25222 aligned, nor other trees we may see here. Handle anchor symbols.
25223 (legitimate_constant_pool_address_p): Comment. Add mode param.
25224 Check cmodel=medium addresses. Adjust all calls.
25225 (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
25226 creating cmodel=medium optimized access to locals.
25227 * config/rs6000/constraints.md (R): Pass QImode to
25228 legitimate_constant_pool_address_p.
25229 * config/rs6000/predicates.md (input_operand): Pass mode to
25230 legitimate_constant_pool_address_p.
25231 * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
25234 2011-03-14 Michael Meissner <meissner@linux.vnet.ibm.com>
25237 * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
25238 64-bit constants being loaded into registers other than GPRs such
25239 as loading 0 into a VSX register.
25241 2011-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25243 * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
25245 2011-03-14 Jakub Jelinek <jakub@redhat.com>
25247 PR middle-end/47917
25248 * builtins.c (fold_builtin_snprintf): New function.
25249 (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
25250 (fold_builtin_4): Likewise.
25252 PR middle-end/38878
25253 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
25254 STRIP_NOPS on arg0 and arg1. When optimizing X +- C == X
25255 and C - X == X also strip nops from +/-/p+ operand.
25256 When optimizing -X == C, fold C to arg0's type.
25259 * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
25260 emit it as add_AT_int instead of add_AT_unsigned.
25262 2011-03-14 Tom Tromey <tromey@redhat.com>
25264 * unwind-dw2.c: Include sys/sdt.h if it exists.
25265 (_Unwind_DebugHook): Use STAP_PROBE2.
25266 * config.in, configure: Rebuild.
25267 * configure.ac: Check for sys/sdt.h.
25269 2011-03-14 Uros Bizjak <ubizjak@gmail.com>
25271 * config/i386/i386.md (ROUND_FLOOR): New constant.
25272 (ROUND_CEIL): Ditto.
25273 (ROUND_TRUNC): Ditto.
25274 (ROUND_MXCSR): Ditto.
25275 (ROUND_NO_EXC): Ditto.
25276 (rint<mode>2): Use new defines instead of numerical constants.
25277 (floor<mode>2): Ditto.
25278 (ceil<mode>2): Ditto.
25279 (btrunc<mode>2): Ditto.
25280 * config/i386/i386-builtin-types.def: Define ROUND function type
25282 * config/i386/i386.c (enum ix86_builtins): Add
25283 IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
25284 (struct builtin_description): Add
25285 __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
25286 (ix86_expand_sse_round): New static function.
25287 (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
25289 (ix86_builtin_vectorized_function): Handle
25290 BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
25292 2011-03-14 Tom Tromey <tromey@redhat.com>
25294 * c-parser.c (c_parser_asm_string_literal): Clear
25295 warn_overlength_strings.
25297 2011-03-14 Tom Tromey <tromey@redhat.com>
25299 * c-parser.c (disable_extension_diagnostics): Save
25300 warn_overlength_strings.
25301 (restore_extension_diagnostics): Restore warn_overlength_strings.
25303 2011-03-14 Jakub Jelinek <jakub@redhat.com>
25305 * BASE-VER: Change to 4.7.0.
25307 2011-03-14 Richard Guenther <rguenther@suse.de>
25309 PR middle-end/48098
25310 * tree.c (build_vector_from_val): Adjust assert to requirements
25313 2011-03-14 Jakub Jelinek <jakub@redhat.com>
25316 * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
25318 2011-03-14 Andreas Tobler <andreast@fgznet.ch>
25320 * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
25321 terms of target_flags_explicit. Adjust copyright year.
25323 * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
25324 * config/rs6000/t-freebsd: New file. Add override for
25327 2011-03-13 Chris Demetriou <cgd@google.com>
25329 * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
25330 (-fno-diagnostics-show-option): this, to reflect current default.
25331 (-Werror=): Update text about -fno-diagnostics-show-option.
25333 2011-03-12 Peter Bergner <bergner@vnet.ibm.com>
25336 * config/rs6000/predicates.md (easy_vector_constant_add_self,
25337 easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
25338 * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
25339 mode is not V2DImode or V2DFmode.
25340 (vspltis_constant): Do not handle V2DImode and V2DFmode.
25341 (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
25342 * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
25344 (movdi_internal64): Likewise.
25346 2011-03-12 Sebastian Pop <sebastian.pop@amd.com>
25348 PR tree-optimization/47127
25349 * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
25351 (set_cloog_options): Same.
25352 (scop_to_clast): Same.
25353 (print_clast_stmt): Do not call cloog_state_malloc and
25355 (print_generated_program): Same.
25357 * graphite-clast-to-gimple.h (cloog_state): Declared.
25358 (scop_to_clast): Adjust declaration.
25359 * graphite.c (cloog_state): Defined here.
25360 (graphite_initialize): Call cloog_state_malloc.
25361 (graphite_finalize): Call cloog_state_free.
25363 2011-03-11 Jason Merrill <jason@redhat.com>
25365 * attribs.c (lookup_attribute_spec): Take const_tree.
25368 2011-03-11 Joseph Myers <joseph@codesourcery.com>
25370 * config/sparc/sparc.c (sparc_option_override): Use
25371 PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
25373 2011-03-11 Richard Guenther <rguenther@suse.de>
25375 PR tree-optimization/48067
25376 * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
25377 multiplication result will be only used once on the target
25380 2011-03-11 Richard Guenther <rguenther@suse.de>
25382 * doc/invoke.texi (max-inline-insns-single): Adjust default value.
25384 2011-03-11 Richard Guenther <rguenther@suse.de>
25387 * tree.c (find_decls_types_r): Do not walk types only reachable
25388 from IDENTIFIER_NODEs.
25390 2011-03-11 Jakub Jelinek <jakub@redhat.com>
25392 PR middle-end/48044
25393 * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
25394 all vnode->force_output nodes as needed.
25396 2011-03-11 Jason Merrill <jason@redhat.com>
25399 * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
25400 COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
25402 2011-03-11 Martin Jambor <mjambor@suse.cz>
25404 * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
25407 2011-03-11 Jakub Jelinek <jakub@redhat.com>
25409 PR tree-optimization/48063
25410 * ipa-inline.c (cgraph_decide_inlining): Don't try to
25411 inline functions called once if !tree_can_inline_p (node->callers).
25413 2011-03-11 Chen Liqin <liqin.gcc@gmail.com>
25415 * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
25417 * config/score/score3.c: Delete.
25418 * config/score/score3.h: Delete.
25419 * config/score/mul-div.S: Delete.
25420 * config/score/sfp-machine.h: Add new file.
25421 * config/score/constraints.md: Add new file.
25422 * config/score/t-score-softfp: Add new file.
25423 * config/score/t-score-elf: Remove score3.o, do not generate multilib.
25424 * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
25425 (score7_extra_constraint): Delete.
25426 (score7_option_override): Remove unused code.
25427 * config/score/score.c: Remove score3 and score5 define and code.
25428 * config/score/score.h: Remove score3 and score5 define and code.
25429 * config/score/score.md: Remove score3 template and unusual insn.
25430 * config/score/score.opt: Remove score3 and score5 options.
25432 2011-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
25434 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
25435 when _HPUX_SOURCE is defined.
25436 (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
25438 2011-03-10 Jason Merrill <jason@redhat.com>
25441 * stor-layout.c (layout_type): Don't set structural equality
25442 on arrays of incomplete type.
25443 * tree.c (type_hash_eq): Handle comparing them properly.
25445 2011-03-10 Jakub Jelinek <jakub@redhat.com>
25448 * config/s390/s390.c (s390_delegitimize_address): Make sure the
25449 result mode matches original rtl mode.
25451 2011-03-10 Nick Clifton <nickc@redhat.com>
25453 * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
25454 (andsi3, andsi3_flags): Fix timings for three operand alternative.
25456 2011-03-09 Jakub Jelinek <jakub@redhat.com>
25458 PR rtl-optimization/47866
25459 * expr.c (store_field): If MEM_SCALAR_P (target), don't use
25460 MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
25461 if target wasn't scalar.
25462 * function.c (assign_stack_temp_for_type): Assert that neither
25463 MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
25464 MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
25466 * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
25468 2011-03-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
25470 * config/s390/s390-protos.h (s390_label_align): New prototype.
25471 * config/s390/s390.c (s390_label_align): New function.
25472 * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
25474 2011-03-08 Michael Meissner <meissner@linux.vnet.ibm.com>
25477 * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
25478 V2DI/V2DF constants. Only all 0's or all 1's are easy.
25479 (output_vec_const_move): Ditto.
25481 2011-03-08 Anatoly Sokolov <aesok@post.ru>
25483 * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
25484 * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
25485 * config/mips/mips.c (mips_preferred_reload_class): Make static.
25486 Change 'rclass' argument and result type to reg_class_t.
25487 (TARGET_PREFERRED_RELOAD_CLASS): Define.
25489 2011-03-08 Georg-Johann Lay <avr@gjlay.de>
25491 * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
25492 * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
25493 (TARGET_MEMORY_MOVE_COST): Define.
25494 (avr_register_move_cost, avr_memory_move_cost): New Functions.
25496 2011-03-08 Jakub Jelinek <jakub@redhat.com>
25499 * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
25502 PR tree-optimization/48022
25503 * fold-const.c (fold_comparison): Don't call fold_overflow_warning
25506 2011-03-07 Jakub Jelinek <jakub@redhat.com>
25509 * var-tracking.c (find_use_val): Return NULL for
25510 cui->sets && cui->store_p BLKmode MEMs.
25512 2011-03-07 Anatoly Sokolov <aesok@post.ru>
25514 * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
25516 * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
25517 xstormy16_print_operand_address): Remove.
25518 * config/stormy16/stormy16.c (xstormy16_print_operand,
25519 xstormy16_print_operand_address): Make static.
25520 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
25522 2011-03-07 Pat Haugen <pthaugen@us.ibm.com>
25525 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
25526 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
25529 2011-03-07 Zdenek Dvorak <ook@ucw.cz>
25532 * cfgloopmanip.c (fix_bb_placements): Return immediately
25533 if FROM is BASE_LOOP's header.
25535 2011-03-07 Paul Wögerer <paul_woegerer@mentor.com>
25537 * gimplify.c (gimplify_function_tree): Fix building calls
25538 to __builtin_return_address.
25540 2011-03-07 Alan Modra <amodra@gmail.com>
25542 * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
25543 * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
25544 * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
25545 * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
25547 * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
25548 (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
25549 (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
25550 (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
25551 * config/rs6000/rs6000.c
25552 (rs6000_elf_end_indicate_exec_stack): Rename to..
25553 (rs6000_elf_file_end): ..this. Only call file_end_indicate_exec_stack
25554 for POWERPC_LINUX. Move code emitting .gnu_attribute to here, from..
25555 (rs6000_file_start): ..here.
25556 (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
25557 file scope variables.
25558 (call_ABI_of_interest): New function.
25559 (init_cumulative_args): Set above vars when function return value
25560 is a float, vector, or small struct.
25561 (rs6000_function_arg_advance_1): Likewise for function args.
25562 (rs6000_va_start): Set rs6000_passes_float if variable arg function
25563 references float args.
25565 2011-03-07 Mingjie Xing <mingjie.xing@gmail.com>
25567 * doc/cfg.texi: Remove "See" before @ref.
25568 * doc/invoke.texi: Likewise.
25570 2011-03-05 Jason Merrill <jason@redhat.com>
25572 * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
25574 2011-03-05 Anthony Green <green@moxielogic.com>
25576 * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
25578 2011-03-05 Zdenek Dvorak <ook@ucw.cz>
25580 PR rtl-optimization/47899
25581 * cfgloopmanip.c (fix_bb_placements): Fix first argument
25582 to flow_loop_nested_p when moving the loop upward.
25584 2011-03-05 Richard Earnshaw <rearnsha@arm.com>
25587 * arm.md (movhi_insn_arch4): Accept any immediate constant.
25589 2011-03-05 Jakub Jelinek <jakub@redhat.com>
25591 PR tree-optimization/47967
25592 * ipa-cp.c (build_const_val): Return NULL instead of creating
25593 VIEW_CONVERT_EXPR for mismatching sizes.
25594 (ipcp_create_replace_map): Return NULL if build_const_val failed.
25595 (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
25596 give up on versioning.
25598 2011-03-05 Alan Modra <amodra@gmail.com>
25601 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
25602 full cmodel medium/large lo_sum + high addresses.
25604 2011-03-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
25606 * config/s390/s390.c (s390_decompose_address): Reject non-literal
25607 pool references in UNSPEC_LTREL_OFFSET.
25609 2011-03-04 Jan Hubicka <jh@suse.cz>
25612 * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
25613 (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
25614 * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
25616 * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
25617 cgraph_add_thunk): Add node pointers.
25618 * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
25619 associated to right node.
25620 (input_node): Update use of cgraph_same_body_alias
25621 and cgraph_add_thunk.
25623 2011-03-04 Changpeng Fang <changpeng.fang@amd.com>
25625 * config/i386/i386.opt (mprefer-avx128): New flag.
25626 * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
25627 modes when the flag -mprefer-avx128 is on.
25629 2011-03-04 Richard Sandiford <richard.sandiford@linaro.org>
25631 * dwarf2out.c (compare_loc_operands): Fix address handling.
25633 2011-03-04 Alan Modra <amodra@gmail.com>
25635 * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
25637 2011-03-04 Richard Guenther <rguenther@suse.de>
25639 PR middle-end/47968
25640 * expmed.c (extract_bit_field_1): Prefer vector modes that
25641 vec_extract patterns can handle.
25643 2011-03-04 Richard Guenther <rguenther@suse.de>
25645 PR middle-end/47975
25646 * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
25648 2011-03-04 Richard Henderson <rth@redhat.com>
25650 * explow.c (emit_stack_save): Remove 'after' parameter.
25651 (emit_stack_restore): Likewise.
25652 * expr.h: Update to match.
25653 * builtins.c, calls.c, stmt.c: Likewise.
25654 * config/alpha/alpha.md, config/avr/avr.md: Likewise.
25655 * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
25656 * function.c (expand_function_end): Insert the emit_stack_save
25657 sequence before parm_birth_insn instead of after.
25659 2011-03-03 Uros Bizjak <ubizjak@gmail.com>
25661 * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
25662 (ssse3_pmaddubsw128): Ditto.
25663 (ssse3_pmaddubsw): Ditto.
25665 2011-03-03 Steve Ellcey <sje@cup.hp.com>
25667 * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
25669 2011-03-03 Jakub Jelinek <jakub@redhat.com>
25672 * gimplify.c (omp_add_variable): Only call omp_notice_variable
25673 on TYPE_SIZE_UNIT if it is a DECL.
25676 * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
25677 first operand is not is_gimple_mem_ref_addr, try to fold it.
25678 If the operand still isn't is_gimple_mem_ref_addr, clear
25681 2011-03-03 Richard Guenther <rguenther@suse.de>
25683 PR middle-end/47283
25684 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
25686 (refs_may_alias_p_1): For release branches return true if
25687 we are confused by our input.
25689 2011-03-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
25691 * config/s390/s390.c (s390_function_value): Rename to ...
25692 (s390_function_and_libcall_value): ... this.
25693 (s390_function_value): New function.
25694 (s390_libcall_value): New function.
25695 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
25696 * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
25697 target macro definitions.
25698 * config/s390/s390-protos.h (s390_function_value): Remove prototype.
25700 2011-03-02 Joseph Myers <joseph@codesourcery.com>
25702 * config/i386/freebsd64.h (CC1_SPEC): Define.
25703 * config/i386/linux64.h (CC1_SPEC): Define.
25704 * config/i386/x86-64.h (CC1_SPEC): Don't define.
25706 2011-03-02 Anatoly Sokolov <aesok@post.ru>
25708 * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
25710 * config/stormy16/stormy16.c: Include reload.h.
25711 (xstormy16_memory_move_cost): New function.
25712 (TARGET_MEMORY_MOVE_COST): Define.
25714 2011-03-02 Richard Sandiford <richard.sandiford@linaro.org>
25716 PR rtl-optimization/47925
25717 * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
25718 with side effects. Remove the more-specific check for volatile asms.
25720 2011-03-02 Alan Modra <amodra@gmail.com>
25723 * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
25724 toc relative addresses for valid offsets.
25726 2011-03-01 Richard Guenther <rguenther@suse.de>
25728 PR tree-optimization/47890
25729 * tree-vect-loop.c (get_initial_def_for_induction): Set
25730 related stmt properly.
25732 2011-03-01 Richard Guenther <rguenther@suse.de>
25735 * lto-streamer.c (lto_record_common_node): Also register
25736 the canonical type.
25738 2011-03-01 Richard Guenther <rguenther@suse.de>
25741 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
25742 Do not stream DECL_ABSTRACT_ORIGIN.
25743 (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
25744 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
25745 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
25746 Do not stream DECL_ABSTRACT_ORIGIN.
25747 (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
25748 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
25750 2011-02-28 Anatoly Sokolov <aesok@post.ru>
25752 * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
25753 FUNCTION_VALUE_REGNO_P): Remove.
25754 * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
25755 * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
25756 Add 'outgoing' argument.
25757 (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
25759 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
25760 TARGET_FUNCTION_VALUE_REGNO_P): Define.
25762 2011-02-28 Kai Tietz <kai.tietz@onevision.com>
25765 * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
25766 (lookup_filename): Likewise.
25767 * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
25769 2011-02-28 Bernd Schmidt <bernds@codesourcery.com>
25770 Jakub Jelinek <jakub@redhat.com>
25772 PR middle-end/47893
25773 * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
25774 (assign_stack_local_1): Change last argument type to int.
25775 * function.c (assign_stack_local_1): Replace reduce_alignment_ok
25776 argument with kind. If bit ASLK_RECORD_PAD is not set in it,
25777 don't record padding space into frame_space_list nor use those areas.
25778 (assign_stack_local): Adjust caller.
25779 (assign_stack_temp_for_type): Call assign_stack_local_1 instead
25780 of assign_stack_local, pass 0 as last argument.
25781 * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
25784 2011-02-28 Jakub Jelinek <jakub@redhat.com>
25787 * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
25788 Use target address_mode and pointer_mode hooks instead of hardcoded
25789 Pmode and ptr_mode. Handle some simple cases of extending if
25790 POINTERS_EXTEND_UNSIGNED < 0.
25791 (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
25792 Call convert_debug_memory_address.
25793 (expand_debug_expr) <case ADDR_EXPR>: Pass as to
25794 convert_debug_memory_address.
25796 PR middle-end/46790
25797 * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
25798 * configure: Regenerated.
25799 * config.in: Regenerated.
25800 * varasm.c (default_function_section): Return NULL
25801 if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
25803 2011-02-28 Martin Jambor <mjambor@suse.cz>
25805 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
25806 the description to match the printed values.
25808 2011-02-28 Richard Guenther <rguenther@suse.de>
25810 * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
25811 of the copied scope tree.
25813 2011-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
25815 * doc/extend.texi (Function Attributes): Avoid deeply (and
25816 wrongly) nested tables.
25818 2011-02-27 Jakub Jelinek <jakub@redhat.com>
25820 PR middle-end/47903
25821 * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
25822 MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
25823 r isn't op0 nor op1.
25825 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
25827 * config/avr/avr.md: Remove magic comment for emacs.
25829 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
25832 * config/avr/avr.c (avr_option_override): Use error on bad options.
25833 (avr_help): New function.
25834 (TARGET_HELP): Define.
25836 2011-02-22 Georg-Johann Lay <avr@gjlay.de>
25839 * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
25840 (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
25842 2011-02-26 Gerald Pfeifer <gerald@pfeifer.com>
25844 * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
25845 (ARM Options): Ditto.
25846 (i386 and x86-64 Options): Ditto.
25847 (RX Options): Ditto.
25848 (SPARC Options): Ditto.
25850 2011-02-26 Tijl Coosemans <tijl@coosemans.org>
25852 * config.gcc (i386-*-freebsd*): Make i486 the default arch on
25853 FreeBSD 6 and later. Generally use cpu generic.
25855 2011-02-25 Gerald Pfeifer <gerald@pfeifer.com>
25857 * doc/cpp.texi: Update copyright years.
25859 2011-02-25 Sebastien Bourdeauducq <sebastien@milkymist.org>
25862 * config/lm32/lm32.md (ashrsi3): Added needed variable.
25864 2011-02-25 Jon Beniston <jon@beniston.com>
25867 * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
25868 * config/lm32/lm32.md (ashlsi3): Remove unused variable.
25869 * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
25870 (lm32_block_move_inline): Add type cast to remove warning.
25871 (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
25872 (gen_int_relational): Move declarations to start of function.
25874 2011-02-25 Eric Botcazou <ebotcazou@adacore.com>
25876 PR tree-optimization/45470
25877 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
25878 can throw internally only.
25879 * tree-vect-stmts.c (vectorizable_call): Likewise.
25881 2011-02-24 Anatoly Sokolov <aesok@post.ru>
25883 * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
25884 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
25885 * config/stormy16/stormy16-protos.h
25886 (xstormy16_preferred_reload_class): Remove.
25887 * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
25888 static. Change 'rclass' argument and return type to reg_class_t.
25889 (TARGET_PREFERRED_RELOAD_CLASS,
25890 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
25892 2011-02-24 Richard Guenther <rguenther@suse.de>
25894 * lto-streamer-in.c (input_bb): Do not find referenced vars
25895 in debug statements.
25897 2011-02-23 Jason Merrill <jason@redhat.com>
25899 * common.opt (fabi-version): Document v5 and v6.
25901 2011-02-23 Richard Guenther <rguenther@suse.de>
25903 PR tree-optimization/47849
25904 * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
25906 2011-02-23 Jie Zhang <jie@codesourcery.com>
25908 * opts-common.c (decode_cmdline_option): Print empty string
25909 argument as "" in decoded->orig_option_with_args_text.
25910 * gcc.c (execute): Print empty string argument as ""
25911 in the verbose output.
25912 (do_spec_1): Keep empty string argument.
25914 2011-02-23 Nathan Froyd <froydnj@codesourcery.com>
25916 * config.gcc: Declare score-* and crx-* obsolete.
25918 2011-02-23 Jie Zhang <jie@codesourcery.com>
25920 PR rtl-optimization/47763
25921 * web.c (web_main): Ignore naked clobber when replacing register.
25923 2011-02-22 Anatoly Sokolov <aesok@post.ru>
25925 * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
25928 2011-02-22 Sebastian Pop <sebastian.pop@amd.com>
25931 * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
25933 2011-02-22 Mike Stump <mikestump@comcast.net>
25935 * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
25937 * configure: Regenerate.
25939 2011-02-21 Chung-Lin Tang <cltang@codesourcery.com>
25941 PR rtl-optimization/46002
25942 * ira-color.c (update_copy_costs): Change class intersection
25943 test to reg_class_contents[] test of 'hard_regno'.
25945 2011-02-21 Joseph Myers <joseph@codesourcery.com>
25947 * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
25948 than Driver option.
25949 * config/hpux11.opt (mt): Likewise.
25950 * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
25951 * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
25952 * config/vax/elf.opt (mno-asm-pic): Likewise.
25953 * config/vms/vms.opt (map, mvms-return-codes): Likewise.
25955 2011-02-21 Mike Stump <mikestump@comcast.net>
25958 * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
25959 tree so we can get save the type.
25960 * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
25961 for CFString instead of trying to use past the end of the builtins.
25962 * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
25963 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
25964 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
25965 * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
25966 Rename to darwin_builtin_cfstring.
25967 (darwin_init_cfstring_builtins): Return the built type.
25969 2011-02-21 Uros Bizjak <ubizjak@gmail.com>
25972 * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
25973 (_mm256_insert_epi64): Use _mm_insert_epi64.
25975 2011-02-21 Anatoly Sokolov <aesok@post.ru>
25977 * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
25978 * config/stormy16/stormy16-protos.h
25979 (xstormy16_mode_dependent_address_p): Remove.
25980 * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
25981 Make static. Change return type to bool. Change argument type to
25982 const_rtx. Remove dead code.
25983 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
25985 2011-02-21 Richard Guenther <rguenther@suse.de>
25988 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
25989 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
25990 (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
25992 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
25993 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
25995 2011-02-20 Richard Guenther <rguenther@suse.de>
25998 * tree.c (free_lang_data_in_decl): Clean builtins from
25999 the TU decl BLOCK_VARS.
26001 2011-02-19 Alexandre Oliva <aoliva@redhat.com>
26005 * haifa-sched.c (fix_tick_ready): Skip tick computation
26008 2011-02-19 Richard Guenther <rguenther@suse.de>
26011 * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
26012 Remove lazy BLOCK_VARS streaming.
26013 (lto_input_ts_block_tree_pointers): Likewise.
26014 * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
26016 2011-02-19 Joseph Myers <joseph@codesourcery.com>
26018 * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
26020 2011-02-19 Joseph Myers <joseph@codesourcery.com>
26022 * config/i386/biarch32.h, config/i386/mach.h,
26023 config/rs6000/aix.opt, config/sh/superh64.h: Remove.
26025 2011-02-19 Jakub Jelinek <jakub@redhat.com>
26028 * config/i386/i386.md (peephole2 for shift and plus): Use
26029 operands[1] original mode in the first insn.
26031 2011-02-18 Mike Stump <mikestump@comcast.net>
26033 * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
26035 2011-02-18 Jan Hubicka <jh@suse.cz>
26037 PR middle-end/47788
26038 * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
26039 to zero when the function is not inlinable at all.
26041 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
26043 * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
26044 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
26045 pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
26046 * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
26047 * config/pa/t-pa64: Likewise.
26048 * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
26050 2011-02-18 Jakub Jelinek <jakub@redhat.com>
26053 * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
26055 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
26058 * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
26060 2011-02-18 Anatoly Sokolov <aesok@post.ru>
26062 * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
26063 RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
26064 LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
26065 GO_IF_LEGITIMATE_ADDRESS): Remove macros.
26066 * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
26067 (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
26068 m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
26069 m32r_load_postinc_p, m32r_store_preinc_predec_p,
26070 m32r_legitimate_address_p): New functions.
26071 * config/m32r/constraints.md (constraint "S"): Don't use
26072 STORE_PREINC_PREDEC_P.
26073 (constraint "U"): Don't use LOAD_POSTINC_P.
26075 2011-02-18 Chung-Lin Tang <cltang@codesourcery.com>
26077 PR rtl-optimization/46178
26078 * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
26079 compute ira_hard_regno_cover_class[].
26081 2011-02-18 Richard Guenther <rguenther@suse.de>
26084 * lto-streamer.h (lto_global_var_decls): Declare.
26085 * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
26086 statics for global var processing.
26088 2011-02-18 Richard Guenther <rguenther@suse.de>
26090 PR tree-optimization/47737
26091 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
26092 edge dominance check.
26094 2011-02-18 Jakub Jelinek <jakub@redhat.com>
26097 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
26098 avoid invalid rtx sharing.
26100 2011-02-18 Gerald Pfeifer <gerald@pfeifer.com>
26102 * doc/cpp.texi (Obsolete Features): Add background on the
26103 origin of assertions.
26105 2011-02-17 Iain Sandoe <iains@gcc.gnu.org>
26107 * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
26109 * config/darwin.c (output_objc_section_asm_op): Added support for
26111 (is_objc_metadata): New.
26112 (darwin_objc2_section): New.
26113 (darwin_objc1_section): New.
26114 (machopic_select_section): Added support for ABI v1 and v2.
26115 (darwin_emit_objc_zeroed): New.
26116 (darwin_output_aligned_bss): Detect objc metadata and treat it
26118 (darwin_asm_output_aligned_decl_common): Same.
26119 (darwin_asm_output_aligned_decl_local): Same.
26120 * config/darwin-sections.def: Updated for ABI v1 and v2.
26121 * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
26122 compiling Objective-C code for the NeXT runtime, default to using
26123 ABI version 0 for 32-bit, and version 2 for 64-bit.
26125 2011-02-17 Joseph Myers <joseph@codesourcery.com>
26127 * common.opt (optimize_fast): New Variable.
26128 * opts.c (default_options_optimization): Use opts->x_optimize_fast
26129 instead of local variable ofast.
26131 2011-02-17 Nicola Pero <nicola.pero@meta-innovation.com>
26133 * doc/invoke.texi (fobjc-abi-version): Documented.
26134 (fobjc-nilcheck): Documented.
26135 (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
26138 2011-02-17 Joseph Myers <joseph@codesourcery.com>
26141 * common.opt (export-dynamic): New Driver option.
26142 * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
26144 2011-02-17 Joseph Myers <joseph@codesourcery.com>
26146 * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
26148 2011-02-17 Alexandre Oliva <aoliva@redhat.com>
26149 Jan Hubicka <jh@suse.cz>
26153 * cfgexpand.c (account_used_vars_for_block): Remove.
26154 (estimated_stack_frame_size): Use referenced vars.
26155 * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
26156 that were referenced in the original function. Test src_fn
26157 rather than cfun. Drop redundant get_var_ann.
26158 (setup_one_parameter): Drop redundant get_var_ann.
26159 (declare_return_variable): Likewise.
26160 (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
26161 (copy_arguments_for_versioning): Drop redundant get_var_ann.
26162 * ipa-inline.c (compute_inline_parameters): Do not compute
26163 disregard_inline_limits here.
26164 (compute_inlinable_for_current, pass_inlinable): New.
26165 (pass_inline_parameters): Require PROP_referenced_vars.
26166 * cgraphunit.c (cgraph_process_new_functions): Don't run
26167 compute_inline_parameters explicitly unless function is in SSA form.
26168 (cgraph_analyze_function): Set .disregard_inline_limits.
26169 * tree-sra.c (convert_callers): Compute inliner parameters
26170 only for functions already in SSA form.
26172 2011-02-17 Joseph Myers <joseph@codesourcery.com>
26174 * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
26175 -mlittle-endian-data.
26177 2011-02-17 Joseph Myers <joseph@codesourcery.com>
26179 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
26180 -mno-fpu, not -fpu and -no-fpu.
26181 * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
26182 * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
26184 2011-02-17 Uros Bizjak <ubizjak@gmail.com>
26187 * config/i386/i386.c (ix86_secondary_reload): Handle SSE
26188 input reload with PLUS RTX.
26190 2011-02-16 Joseph Myers <joseph@codesourcery.com>
26192 * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
26193 of InverseVar(MDMX).
26195 2011-02-16 Joseph Myers <joseph@codesourcery.com>
26197 * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
26200 2011-02-16 Joseph Myers <joseph@codesourcery.com>
26202 * config/mn10300/mn10300.opt (mno-crt0): New.
26204 2011-02-16 Joseph Myers <joseph@codesourcery.com>
26206 * config/m68k/uclinux.opt (static-libc): New Driver option.
26208 2011-02-16 Joseph Myers <joseph@codesourcery.com>
26210 * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
26212 2011-02-16 Joseph Myers <joseph@codesourcery.com>
26214 * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
26215 %{muser-extend-enabled}.
26217 2011-02-16 Richard Guenther <rguenther@suse.de>
26219 PR tree-optimization/47738
26220 * tree-ssa-loop.c (run_tree_predictive_commoning): Return
26221 the TODO from tree_predictive_commoning.
26223 2011-02-15 Jeff Law <law@redhat.com>
26226 2011-01-25 Jeff Law <law@redhat.com>
26228 PR rtl-optimization/37273
26229 * ira-costs.c (scan_one_insn): Detect constants living in memory and
26230 handle them like argument loads from stack slots. Do not double
26231 count memory for memory constants and argument loads from stack slots.
26233 2011-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
26236 * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
26237 mode for vector constants. Remove code that checks for TImode.
26239 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
26243 * cgraph.h (compute_inline_parameters): Return void.
26244 * ipa-inline.c (compute_inline_parameters): Adjust.
26246 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
26250 * tree-inline.h (estimated_stack_frame_size): Take cgraph node
26252 * cfgexpand.c (estimated_stack_frame_size): Likewise.
26253 * ipa-inline.c (compute_inline_parameters): Adjust.
26255 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
26259 * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
26260 Adjust all users. Pass FN to...
26261 * tree-flow-inline.h (first_referenced_var): ... this. Add
26263 * ipa-struct-reorg.c: Adjust.
26264 * tree-dfa.c: Adjust.
26265 * tree-into-ssa.c: Adjust.
26266 * tree-sra.c: Adjust.
26267 * tree-ssa-alias.c: Adjust.
26268 * tree-ssa-live.c: Adjust.
26269 * tree-ssa.c: Adjust.
26270 * tree-ssanames.c: Adjust.
26271 * tree-tailcall.c: Adjust.
26273 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
26277 * tree-flow.h (referenced_var_lookup): Add fn parameter.
26278 Adjust all callers.
26279 * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
26280 * tree-flow-inline.h: Adjust.
26281 * gimple-pretty-print.c: Adjust.
26282 * tree-into-ssa.c: Adjust.
26283 * tree-ssa.c: Adjust.
26284 * cfgexpand.c: Adjust.
26286 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
26288 * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
26289 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
26290 (EXTRA_CONSTRAINT): Delete.
26291 * config/iq2000/constraints.md: New file.
26292 * config/iq2000/iq2000.md: Include it.
26293 (define_insn ""): Delete.
26294 (movsi_internal2, movhi_internal2, movqi_internal2): Delete
26295 unsupported constraint letters from patterns.
26296 (call_value, call_value_internal1): Likewise.
26297 (call_value_multiple_internal1): Likewise.
26299 2011-02-15 Nick Clifton <nickc@redhat.com>
26301 * config/mn10300/mn10300.c: Include tm-constrs.h.
26302 (struct liw_data): New data structure describing an LIW candidate
26304 (extract_bundle): Use struct liw_data. Allow small integer
26305 operands for some instructions.
26306 (check_liw_constraints): Use struct liw_data. Remove swapped
26307 parameter. Add comments describing the checks. Fix bug when
26308 assigning the source of liw1 to the source of liw2.
26309 (liw_candidate): Delete. Code moved into extract_bundle.
26310 (mn10300_bundle_liw): Use struct liw_data. Check constraints
26312 * config/mn10300/predicates.md (liw_operand): New predicate.
26313 Allows registers and small integer constants.
26314 * config/mn10300/constraints.md (O): New constraint. Accetps
26315 integers in the range -8 to +7 inclusive.
26316 * config/mn10300/mn10300.md (movesi_internal): Add an alternative
26317 for moving a small integer into a register. Give this alternative
26319 (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
26320 (ashlsi3): Likewise, plus give LIW attributes to the alternatives
26321 using the J,K,L and M constraints,
26322 (liw): Remove SI mode on second operands to allow for HI and QI
26324 (cmp_liw, liw_cmp): Likewise. Plus fix order of operands in the
26327 2011-02-15 Richard Guenther <rguenther@suse.de>
26329 PR tree-optimization/47743
26330 * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
26331 for a non-type-compatible VN lookup bail out.
26333 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
26335 * config/fr30/constraints.md: New file.
26336 * config/fr30/fr30.md: Include it.
26337 * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
26338 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
26339 (EXTRA_CONSTRAINT): Delete.
26341 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
26343 * config/frv/constraints.md: New file.
26344 * config/frv/predicates.md: Include it.
26345 * config/frv/frv.c (reg_class_from_letter): Delete.
26346 (frv_option_override): Don't initialize it.
26347 * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
26348 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
26349 (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
26350 (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
26351 (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
26352 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
26353 (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
26354 (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
26355 (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
26356 (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
26357 (REG_CLASS_FROM_CONSTRAINT): Delete.
26359 2011-02-15 Jakub Jelinek <jakub@redhat.com>
26361 PR middle-end/47581
26362 * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
26363 if frame size is 0 in a leaf function.
26365 2011-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26368 * config/alpha/host-osf.c: New file.
26369 * config/alpha/x-osf: New file.
26370 * config.host (alpha*-dec-osf*): Use it.
26372 2011-02-14 Anatoly Sokolov <aesok@post.ru>
26374 * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
26375 * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
26376 * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
26377 (rx_mode_dependent_address_p): ...this. Make static. Change argument
26379 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
26381 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
26383 * config/stormy16/constraints.md: New file.
26384 * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
26385 Use satisfies_constraint_Q and satisfies_constraint_R.
26386 * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
26388 (xstormy16_legitiamte_address_p): Declare.
26389 * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
26390 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
26391 (EXTRA_CONSTRAINT): Delete.
26392 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
26394 (xstormy16_extra_constraint_p): Delete.
26396 2011-02-14 Eric Botcazou <ebotcazou@adacore.com>
26398 PR tree-optimization/46494
26399 * loop-unroll.c (split_edge_and_insert): Adjust comment.
26400 * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
26401 (pass_rtl_loop_done): Add TODO_verify_flow.
26402 * fwprop.c (pass_rtl_fwprop): Likewise.
26403 * modulo-sched.c (pass_sms): Likewise.
26404 * tree-ssa-dom.c (pass_dominator): Likewise.
26405 * tree-ssa-loop-ch.c (pass_ch): Likewise.
26406 * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
26407 (pass_tree_loop_done): Likewise.
26408 * tree-ssa-pre.c (execute_pre): Likewise.
26409 * tree-ssa-reassoc.c (pass_reassoc): Likewise.
26410 * tree-ssa-sink.c (pass_sink_code): Likewise.
26411 * tree-vrp.c (pass_vrp): Likewise.
26413 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
26415 * config/v850/constraints.md: New file.
26416 * config/v850/v850.md: Include it.
26417 * config/v850/predicates.md (reg_or_0_operand): Use
26418 satisfies_constraint_G.
26419 (special_symbolref_operand): Use satisfies_constraint_K.
26420 * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
26421 (GO_IF_LEGITIMATE_ADDRESS): Likewise.
26422 (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
26423 (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
26424 (EXTRA_CONSTRAINT): Delete.
26425 (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
26426 (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
26427 (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
26429 2011-02-14 Anatoly Sokolov <aesok@post.ru>
26432 * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
26435 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
26437 * config/mcore/constraints.md: New file.
26438 * config/mcore/mcore.md: Include it.
26439 * config/mcore/mcore.c (reg_class_from_letter): Delete.
26440 * config/mcore/mcore.h (reg_class_from_letter): Delete.
26441 (REG_CLASS_FROM_LETTER): Delete.
26442 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
26443 insn_const_int_ok_for_constraint.
26444 (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
26445 (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
26446 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
26447 (EXTRA_CONSTRAINT): Delete.
26449 2011-02-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26452 * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
26453 (IS_SIGHANDLER): Define.
26454 (sparc64_is_sighandler): New function, split off from
26455 sparc64_fallback_frame_state.
26456 (sparc_is_sighandler): New function, split off from
26457 sparc_fallback_frame_state.
26458 (sparc64_fallback_frame_state): Merge with ...
26459 (sparc_fallback_frame_state): ... this into ...
26460 (MD_FALLBACK_FRAME_STATE_FOR): ... this.
26461 Change new_cfa to long. Remove regs_off, fpu_save_off, fpu_save.
26462 Define nframes, mctx. Use IS_SIGHANDLER, handler_args, mctx, walk
26463 stack instead of hardcoded offsets.
26465 2011-02-14 Andriy Gapon <avg@freebsd.org>
26468 * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
26470 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
26472 * configure: Regenerate.
26474 2011-02-12 Joseph Myers <joseph@codesourcery.com>
26477 * gcc.c (asm_options): Correct spec matching --target-help.
26479 2011-02-12 Martin Jambor <mjambor@suse.cz>
26481 * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
26482 to gimple call error.
26484 2011-02-12 Mike Stump <mikestump@comcast.net>
26486 * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
26487 comments in backslash regions.
26489 2011-02-12 Mike Stump <mikestump@comcast.net>
26490 Jakub Jelinek <jakub@redhat.com>
26491 Iain Sandoe <iains@gcc.gnu.org>
26494 * dwarf2out.c (output_cfa_loc): When required, apply the
26495 DWARF2_FRAME_REG_OUT macro to adjust register numbers.
26496 (output_loc_sequence): Likewise.
26497 (output_loc_operands_raw): Likewise.
26498 (output_loc_sequence_raw): Likewise.
26499 (output_cfa_loc): Likewise.
26500 (output_loc_list): Suppress register number adjustment when
26501 calling output_loc_sequence()
26502 (output_die): Likewise.
26504 2011-02-12 Anatoly Sokolov <aesok@post.ru>
26506 * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
26508 * config/xtensa/xtensa.c (xtensa_register_move_cost,
26509 xtensa_memory_move_cost): New functions.
26510 (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
26512 2011-02-12 Alexandre Oliva <aoliva@redhat.com>
26515 * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
26516 in the current directory.
26517 * configure: Rebuilt.
26519 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
26521 * config/darwin.c (darwin_override_options): Add a hunk missed
26522 from the commit of r168571. Trim comment line lengths and
26523 correct indents of the preceding block.
26525 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
26527 * gcc.c (driver_handle_option): Concatenate the argument to -F with
26530 2011-02-11 Joseph Myers <joseph@codesourcery.com>
26532 * common.opt (nostartfiles): New Driver option.
26534 2011-02-11 Xinliang David Li <davidxl@google.com>
26536 PR tree-optimization/47707
26537 * tree-chrec.c (convert_affine_scev): Keep type precision.
26539 2011-02-11 Eric Botcazou <ebotcazou@adacore.com>
26541 PR tree-optimization/47420
26542 * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
26544 2011-02-11 Pat Haugen <pthaugen@us.ibm.com>
26546 PR rtl-optimization/47614
26547 * rtl.h (check_for_inc_dec): Declare.
26548 * dse.c (check_for_inc_dec): Externalize...
26549 * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
26550 (reload_cse_simplify_operands): Don't simplify opnds with side effects.
26552 2011-02-11 Joseph Myers <joseph@codesourcery.com>
26555 * gcc.c (main): Do not compile inputs if there were errors in
26557 * opts-common.c (read_cmdline_option): Check for wrong language
26558 after other error checks.
26560 2011-02-11 Nathan Froyd <froydnj@codesourcery.com>
26562 * cgraph.c: Fix comment typos.
26563 * cgraph.h: Likewise.
26564 * cgraphunit.c: Likewise.
26565 * ipa-cp.c: Likewise.
26566 * ipa-inline.c: Likewise.
26567 * ipa-prop.c: Likewise.
26568 * ipa-pure-const.c: Likewise.
26569 * ipa-ref.c: Likewise.
26570 * ipa-reference.c: Likewise.
26572 2011-02-11 Jakub Jelinek <jakub@redhat.com>
26575 * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
26577 2011-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26580 * doc/sourcebuild.texi (Require Support): Document
26581 dg-require-ascii-locale.
26583 2011-02-11 Mingjie Xing <mingjie.xing@gmail.com>
26585 * doc/lto.texi (Write summary): Fix missing parentheses.
26587 2011-02-10 DJ Delorie <dj@redhat.com>
26589 * config/m32c/m32c.c (m32c_option_override): Disable
26590 -fcombine-stack-adjustments until flag value tracking and compare
26591 optimization can be rewritten.
26593 2011-02-10 Peter Bergner <bergner@vnet.ibm.com>
26595 * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
26597 (PROCESSOR_DEFAULT64): Likewise.
26599 2011-02-10 Richard Henderson <rth@redhat.com>
26601 * config/rx/predicates.md (rx_zs_comparison_operator): Revert
26602 change from 2011-02-03.
26603 * config/rx/rx.c (flags_from_code): Likewise.
26604 (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
26605 is valid, n/pz otherwise.
26606 (rx_select_cc_mode): Return CCmode if Y is not zero.
26608 2011-02-10 Richard Guenther <rguenther@suse.de>
26610 * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
26612 2011-02-10 Richard Guenther <rguenther@suse.de>
26614 PR tree-optimization/47677
26615 * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
26617 2011-02-10 Jakub Jelinek <jakub@redhat.com>
26620 * combine.c (make_compound_operation): Only change shifts into
26621 multiplication for SCALAR_INT_MODE_P.
26623 2011-02-10 Jie Zhang <jie@codesourcery.com>
26627 2011-02-05 Jie Zhang <jie@codesourcery.com>
26629 * web.c (entry_register): Don't clobber the number of the
26630 first uninitialized reference in used[].
26632 2011-02-09 Richard Guenther <rguenther@suse.de>
26634 PR tree-optimization/47664
26635 * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
26638 2011-02-09 David Edelsohn <dje.gcc@gmail.com>
26642 * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
26644 (PROCESSOR_DEFAULT64): Same.
26645 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
26647 2011-02-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26649 * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
26651 2011-02-09 Martin Jambor <mjambor@suse.cz>
26653 PR middle-end/45505
26654 * tree-sra.c (struct access): New flags grp_scalar_read and
26655 grp_scalar_write. Changed description of assignment read and write
26657 (dump_access): Dump new flags, reorder all of them.
26658 (sort_and_splice_var_accesses): Set the new flag accordingly, use them
26659 to detect multiple scalar reads.
26660 (analyze_access_subtree): Use the new scalar read write flags instead
26661 of the old flags. Adjusted comments.
26663 2011-02-08 DJ Delorie <dj@redhat.com>
26666 * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
26669 2011-02-08 Joseph Myers <joseph@codesourcery.com>
26671 * config/m68k/uclinux.opt: New.
26672 * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
26674 2011-02-08 Joseph Myers <joseph@codesourcery.com>
26676 * config/cris/elf.opt (sim): New Driver option.
26678 2011-02-08 Joseph Myers <joseph@codesourcery.com>
26680 * config/xtensa/elf.opt: New.
26681 * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
26683 2011-02-08 Joseph Myers <joseph@codesourcery.com>
26685 * config/vax/elf.opt: New.
26686 * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
26688 2011-02-08 Joseph Myers <joseph@codesourcery.com>
26690 * config/rs6000/aix64.opt (posix, pthread): New Driver options.
26692 2011-02-08 Joseph Myers <joseph@codesourcery.com>
26694 * config/gnu-user.opt: New.
26695 * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
26696 *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
26697 *-*-uclinux*): Use gnu-user.opt.
26699 2011-02-08 Thomas Schwinge <thomas@schwinge.name>
26701 * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
26702 * config/i386/gnu.h (CPP_SPEC): Likewise.
26704 2011-02-08 Ian Lance Taylor <iant@google.com>
26706 * common.opt (fcx-limited-range): Add SetByCombined flag.
26707 (ffinite-math-only, fmath-errno, frounding-math): Likewise.
26708 (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
26709 (fassociative-math, freciprocal-math): Likewise.
26710 (funsafe-math-optimizations): Likewise.
26711 * opth-gen.awk: Handle SetByCombined.
26712 * optc-gen.awk: Likewise.
26713 * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
26714 (set_unsafe_math_optimizations_flags): Likewise.
26715 * doc/options.texi (Option properties): Document SetByCombined.
26717 2011-02-08 Joseph Myers <joseph@codesourcery.com>
26719 * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
26720 i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
26721 m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
26722 m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
26723 sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
26725 2011-02-08 Sebastian Pop <sebastian.pop@amd.com>
26727 PR tree-optimization/46834
26728 PR tree-optimization/46994
26729 PR tree-optimization/46995
26730 * graphite-sese-to-poly.c (used_outside_reduction): New.
26731 (detect_commutative_reduction): Call used_outside_reduction.
26732 (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
26733 translate_scalar_reduction_to_array only when at least one
26734 loop-phi/close-phi tuple has been detected.
26736 2011-02-08 Richard Guenther <rguenther@suse.de>
26738 PR middle-end/47639
26739 * tree-vect-generic.c (expand_vector_operations_1): Update
26741 (expand_vector_operations): ... not here. Cleanup EH info
26742 and the CFG if required.
26744 2011-02-08 Richard Guenther <rguenther@suse.de>
26746 PR tree-optimization/47641
26747 * tree-ssa.c (execute_update_addresses_taken): For asm outputs
26748 require type compatibility.
26750 2011-02-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
26752 * gimple-low.c (lower_function_body): Don't remove the location of
26753 the return statement here.
26754 (lower_gimple_return): Do it here instead but only if the return
26755 statement is actually used twice.
26757 2011-02-08 Richard Guenther <rguenther@suse.de>
26759 PR tree-optimization/47632
26760 * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
26761 unused up_to_stmt parameter, return whether cfg-cleanup is
26762 necessary, remove EH info properly.
26763 (forward_propagate_into_gimple_cond): Adjust caller.
26764 (forward_propagate_into_cond): Likewise.
26765 (forward_propagate_comparison): Likewise.
26766 (tree_ssa_forward_propagate_single_use_vars): Make
26767 forward_propagate_comparison case similar to the two others.
26769 2011-02-08 Nick Clifton <nickc@redhat.com>
26771 * config/mn10300/mn10300.opt (mliw): New command line option.
26772 * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
26773 (liw_bundling): New automaton.
26774 (liw): New attribute.
26775 (liw_op): New attribute.
26776 (liw_op1, liw_op2, liw_both, liw_either): New reservations.
26777 (movsi_internal): Add LIW attributes.
26778 (andsi3): Likewise.
26779 (iorsi3): Likewise.
26780 (xorsi3): Likewise.
26781 (addsi3): Separate register and immediate alternatives.
26782 Add LIW attributes.
26783 (subsi3): Likewise.
26785 (aslsi3): Likewise.
26786 (lshrsi3): Likewise.
26787 (ashrsi3): Likewise.
26788 (liw): New pattern.
26789 * config/mn10300/mn10300.c (liw_op_names): New
26790 (mn10300_print_operand): Handle 'W' operand descriptor.
26791 (extract_bundle): New function.
26792 (check_liw_constraints): New function.
26793 (liw_candidate): New function.
26794 (mn10300_bundle_liw): New function.
26795 (mn10300_reorg): New function.
26796 (TARGET_MACHINE_DEPENDENT_REORG): Define.
26797 (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
26798 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
26799 __LIW__ or __NO_LIW__.
26800 * doc/invoke.texi: Describe the -mliw command line option.
26802 2011-02-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
26804 * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
26805 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
26806 pthread_mutex_unlock): Remove.
26807 * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
26808 * config/pa/t-pa64: Likewise.
26809 * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
26810 shared libc if not linking against libpthread.
26811 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
26813 2011-02-07 Iain Sandoe <iains@gcc.gnu.org>
26816 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
26817 on 10.6 and later to ensure that we always use the unwinder from
26818 the system. Only add -no_compact_unwind when tarteting darwin
26821 2011-02-07 Steve Ellcey <sje@cup.hp.com>
26824 * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
26825 (vec_interleave_lowv2sf): Ditto.
26826 (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
26827 (vec_extract_oddv2sf): Ditto.
26829 2011-02-07 Mike Stump <mikestump@comcast.net>
26832 Add __ieee_divdc3 entry point.
26833 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
26835 (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
26836 * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
26837 * config/darwin.c (darwin_rename_builtins): Add.
26838 * config/darwin-protos.h (darwin_rename_builtins): Add.
26840 2011-02-07 Michael Meissner <meissner@linux.vnet.ibm.com>
26843 * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
26846 2011-02-07 Mike Stump <mikestump@comcast.net>
26848 * config/darwin.opt (mmacosx-version-min): Update default OS version.
26850 2011-02-07 Denis Chertykov <chertykov@gmail.com>
26853 * config/avr/libgcc.S (exit): Move .endfunc
26855 2011-02-07 Richard Guenther <rguenther@suse.de>
26857 PR tree-optimization/47615
26858 * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
26859 * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
26860 (run_scc_vn): Initialize it.
26861 (visit_reference_op_load): Use it.
26862 * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
26864 2011-02-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
26866 * config/spu/spu.c (spu_init_libfuncs): Install SImode and
26867 DImode trapping arithmetic libfuncs.
26869 2011-02-07 Richard Guenther <rguenther@suse.de>
26871 PR tree-optimization/47621
26872 * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
26874 (execute_update_addresses_taken): ... here. Make it more
26875 conservative in what we accept.
26877 2011-02-06 Joseph Myers <joseph@codesourcery.com>
26879 * config/sparc/freebsd.h (ASM_SPEC): Define.
26880 * config/sparc/vxworks.h (ASM_SPEC): Define.
26882 2011-02-06 Joseph Myers <joseph@codesourcery.com>
26884 * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
26886 2011-02-06 Steven Bosscher <steven@gcc.gnu.org>
26888 * doc/invoke.texi: Remove reference to compiler internals from
26889 user documentation.
26891 * reg-notes.def: Remove REG_VALUE_PROFILE.
26892 * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
26894 2011-02-05 Jakub Jelinek <jakub@redhat.com>
26896 PR middle-end/47610
26897 * varasm.c (default_section_type_flags): If decl is NULL,
26898 and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
26900 2011-02-05 Jie Zhang <jie@codesourcery.com>
26903 * web.c (entry_register): Don't clobber the number of the
26904 first uninitialized reference in used[].
26906 2011-02-04 Sebastian Pop <sebastian.pop@amd.com>
26908 PR tree-optimization/46194
26909 * tree-data-ref.c (analyze_miv_subscript): Remove comment.
26910 (build_classic_dist_vector_1): Do not represent classic distance
26911 vectors when the access functions are variating in different loops.
26913 2011-02-04 Joseph Myers <joseph@codesourcery.com>
26915 * config/mips/iris6.opt: New.
26916 * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
26918 2011-02-04 Richard Henderson <rth@redhat.com>
26919 Steve Ellcey <sje@cup.hp.com>
26922 * config/ia64/predicates.md (mux1_brcst_element): New.
26923 * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
26924 * config/ia64/ia64.c (ia64_unpack_assemble): New.
26925 (ia64_unpack_sign): New.
26926 (ia64_expand_unpack): Rewrite using new routines.
26927 (ia64_expand_widen_sum): Ditto.
26928 (ia64_expand_dot_prod_v8qi): Ditto.
26929 * config/ia64/vect.md (mulv8qi3): Rewrite to use new
26930 routines, add endian check.
26931 (pmpy2_even): Rename from pmpy2_r, add endian check.
26932 (pmpy2_odd): Rename from pmpy2_l, add endian check.
26933 (vec_widen_smult_lo_v4hi): Rewrite using new routines.
26934 (vec_widen_smult_hi_v4hi): Ditto.
26935 (vec_widen_umult_lo_v4hi): Ditto.
26936 (vec_widen_umult_hi_v4hi): Ditto.
26937 (mulv2si3): Change endian checks.
26938 (sdot_prodv4hi): Rewrite with new calls.
26939 (udot_prodv4hi): New.
26940 (vec_pack_ssat_v4hi): Add endian check.
26941 (vec_pack_usat_v4hi): Ditto.
26942 (vec_pack_ssat_v2si): Ditto.
26943 (max1_even): Rename from max1_r, add endian check.
26944 (max1_odd): Rename from max1_l, add endian check.
26945 (*mux1_rev): Format change.
26946 (*mux1_mix): Ditto.
26947 (*mux1_shuf): Ditto.
26948 (*mux1_alt): Ditto.
26949 (*mux1_brcst_v8qi): Use new predicate.
26950 (vec_extract_evenv8qi): Remove endian check.
26951 (vec_extract_oddv8qi): Ditto.
26952 (vec_interleave_lowv4hi): Format change.
26953 (vec_interleave_highv4hi): Ditto.
26954 (mix2_even): Rename from mix2_r, add endian check.
26955 (mix2_odd): Rename from mux2_l, add endian check.
26956 (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
26957 (vec_extract_evenodd_helper): Format change.
26958 (vec_extract_evenv4hi): Remove endian check.
26959 (vec_extract_oddv4hi): Remove endian check.
26960 (vec_interleave_lowv2si): Format change.
26961 (vec_interleave_highv2si): Format change.
26962 (vec_initv2si): Remove endian check.
26963 (vecinit_v2si): Add endian check.
26964 (reduc_splus_v2sf): Add endian check.
26965 (reduc_smax_v2sf): Ditto.
26966 (reduc_smin_v2sf): Ditto.
26967 (vec_initv2sf): Remove endian check.
26968 (fpack): Add endian check.
26969 (fswap): Add endian check.
26970 (vec_interleave_highv2sf): Add endian check.
26971 (vec_interleave_lowv2sf): Add endian check.
26972 (fmix_lr): Add endian check.
26973 (vec_setv2sf): Format change.
26974 (*vec_extractv2sf_0_be): Use shift to extract operand.
26975 (*vec_extractv2sf_1_be): New.
26976 (vec_pack_trunc_v4hi): Add endian check.
26977 (vec_pack_trunc_v2si): Format change.
26979 2011-02-04 Jakub Jelinek <jakub@redhat.com>
26981 PR inline-asm/23200
26982 * tree-ssa-ter.c (is_replaceable_p): Add TER argument. Don't
26983 do bb, locus and block comparison and disallow loads if it is not set.
26984 (stmt_is_replaceable_p): New function.
26985 (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
26987 * expr.c (expand_expr_real_1) <case SSA_NAME>: If
26988 get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
26990 * tree-flow.h (stmt_is_replaceable_p): New prototype.
26992 2011-02-04 Joseph Myers <joseph@codesourcery.com>
26994 * config/rs6000/xilinx.opt: New.
26995 * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
26997 2011-02-04 Joseph Myers <joseph@codesourcery.com>
26999 * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
27001 2011-02-03 Anatoly Sokolov <aesok@post.ru>
27003 * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
27004 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
27005 * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
27006 secondary_reload_info, xtensa_secondary_reload): Remove.
27007 * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
27008 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
27009 (xtensa_preferred_reload_class): Make static. Change return and
27010 'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
27011 Use CONST_DOUBLE_P predicate.
27012 (xtensa_preferred_output_reload_class): New function.
27013 (xtensa_secondary_reload): Make static.
27015 2011-02-03 Joseph Myers <joseph@codesourcery.com>
27017 * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
27018 Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
27019 Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
27021 2011-02-03 Jakub Jelinek <jakub@redhat.com>
27023 PR middle-end/31490
27024 * output.h (SECTION_RELRO): Define.
27025 (SECTION_MACH_DEP): Adjust.
27026 (get_variable_section): New prototype.
27027 * varpool.c (varpool_finalize_named_section_flags): New function.
27028 (varpool_assemble_pending_decls): Call it.
27029 * cgraph.h (varpool_finalize_named_section_flags): New prototype.
27030 * cgraphunit.c (cgraph_output_in_order): Call
27031 varpool_finalize_named_section_flags.
27032 * varasm.c (get_section): Allow section flags conflicts between
27033 relro and read-only sections if the section hasn't been declared yet.
27034 Set SECTION_OVERRIDE after diagnosing section type conflict.
27035 (get_variable_section): No longer static.
27036 (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
27037 readonly sections that need relocations.
27038 (decl_readonly_section_1): New function.
27039 (decl_readonly_section): Use it.
27042 2010-11-17 Dinar Temirbulatov <dtemirbulatov@gmail.com>
27043 Steve Ellcey <sje@cup.hp.com>
27045 PR middle-end/31490
27046 * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
27047 if section attribute used.
27049 2011-02-03 Jakub Jelinek <jakub@redhat.com>
27051 * config/darwin.h (SECTION_NO_ANCHOR): Remove.
27052 * config/darwin.c (SECTION_NO_ANCHOR): Define.
27053 (darwin_init_sections): Remove assertion.
27055 2011-02-03 Nick Clifton <nickc@redhat.com>
27057 * config/rx/predicates.md (rx_zs_comparison_operator): Remove
27059 * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
27060 * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
27061 instead of "n" and "pz".
27062 (flags_from_code): LT and GE tests need CC_FLAG_O as well as
27065 2011-02-03 Jakub Jelinek <jakub@redhat.com>
27068 * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
27069 fma, expand FMA_EXPR as fma{,f,l} call.
27072 * lto-streamer-out.c (write_symbol): When writing kind and visibility,
27073 copy them into a unsigned char variable and pass address of it to
27074 lto_output_data_stream.
27077 * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
27078 around backend_init_target and lang_dependent_init_target calls.
27079 * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
27080 (verify_cgraph_node): Don't call set_cfun here. Use
27081 cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
27082 Set error_found for incorrectly represented calls to thunks.
27084 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
27087 PR rtl-optimization/43494
27088 * rtl.h (for_each_inc_dec_fn): New type.
27089 (for_each_inc_dec): Declare.
27090 * rtlanal.c (struct for_each_inc_dec_ops): New type.
27091 (for_each_inc_dec_find_inc_dec): New fn.
27092 (for_each_inc_dec_find_mem): New fn.
27093 (for_each_inc_dec): New fn.
27094 * dse.c (struct insn_size): Remove.
27095 (replace_inc_dec, replace_inc_dec_mem): Remove.
27096 (emit_inc_dec_insn_before): New fn.
27097 (check_for_inc_dec): Use it, along with for_each_inc_dec.
27098 (canon_address): Pass mem modes to cselib_lookup.
27099 * cselib.h (cselib_lookup): Add memmode argument. Adjust callers.
27100 (cselib_lookup_from_insn): Likewise.
27101 (cselib_subst_to_values): Likewise.
27102 * cselib.c (find_slot_memmode): New var.
27103 (cselib_find_slot): New fn. Use it instead of
27104 htab_find_slot_with_hash everywhere.
27105 (entry_and_rtx_equal_p): Use find_slot_memmode.
27106 (autoinc_split): New fn.
27107 (rtx_equal_for_cselib_p): Rename and implement in terms of...
27108 (rtx_equal_for_cselib_1): ... this. Take memmode, pass it on.
27109 Deal with autoinc. Special-case recursion into MEMs.
27110 (cselib_hash_rtx): Likewise.
27111 (cselib_lookup_mem): Infer pmode from address mode. Distinguish
27112 address and MEM modes.
27113 (cselib_subst_to_values): Add memmode, pass it on.
27115 (cselib_lookup): Add memmode argument, pass it on.
27116 (cselib_lookup_from_insn): Add memmode.
27117 (cselib_invalidate_rtx): Discard obsolete push_operand handling.
27118 (struct cselib_record_autoinc_data): New.
27119 (cselib_record_autoinc_cb): New fn.
27120 (cselib_record_sets): Use it, along with for_each_inc_dec. Pass MEM
27121 mode to cselib_lookup. Reset autoinced REGs here instead of...
27122 (cselib_process_insn): ... here.
27123 * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
27125 (add_uses): Likewise, also to cselib_subst_to_values.
27126 (add_stores): Likewise.
27127 * sched-deps.c (add_insn_mem_dependence): Pass mode to
27128 cselib_subst_to_values.
27129 (sched_analyze_1, sched_analyze_2): Likewise. Adjusted.
27130 * gcse.c (do_local_cprop): Adjusted.
27131 * postreload.c (reload_cse_simplify_set): Adjusted.
27132 (reload_cse_simplify_operands): Adjusted.
27133 * sel-sched-dump (debug_mem_addr_value): Pass mode.
27135 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
27137 PR tree-optimization/45122
27138 * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
27139 unsafe assumptions when there's more than one loop exit.
27141 2011-02-02 Michael Meissner <meissner@linux.vnet.ibm.com>
27144 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
27145 Document using vector double with the load/store builtins, and
27146 that the load/store builtins always use Altivec instructions.
27148 * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
27149 to use altivec memory instructions, even on VSX.
27150 (vector_altivec_store_<mode>): Ditto.
27152 * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
27155 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
27156 V2DF, V2DI support to load/store overloaded builtins.
27158 * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
27159 altivec load/store builtins for V2DF/V2DI types.
27161 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
27162 set avoid indexed addresses on power6 if -maltivec.
27163 (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
27164 vector_altivec_load/vector_altivec_store builtins.
27165 (altivec_expand_st_builtin): Ditto.
27166 (altivec_expand_builtin): Add VSX memory builtins.
27167 (rs6000_init_builtins): Add V2DI types to internal types.
27168 (altivec_init_builtins): Add support for V2DF/V2DI altivec
27169 load/store builtins.
27170 (rs6000_address_for_altivec): Insure memory address is appropriate
27173 * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
27174 vec_vsx_ld and vec_vsx_st.
27175 (vsx_store_<mode>): Ditto.
27177 * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
27178 variables to hold long long types for VSX vector memory builtins.
27179 (RS6000_BTI_unsigned_long_long): Ditto.
27180 (long_long_integer_type_internal_node): Ditti.
27181 (long_long_unsigned_type_internal_node): Ditti.
27183 * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
27184 (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
27185 (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
27187 * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
27189 (vec_vsx_st): Ditto.
27191 2011-02-02 Joseph Myers <joseph@codesourcery.com>
27193 * config/pa/pa-hpux10.opt: New.
27194 * config/hpux11.opt (pthread): New Driver option.
27195 * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
27196 * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
27198 2011-02-02 Joseph Myers <joseph@codesourcery.com>
27200 * config/ia64/vms.opt: New.
27201 * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
27203 2011-02-01 Michael Meissner <meissner@linux.vnet.ibm.com>
27206 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
27207 gpc_reg_operand instead of vsx_register_operand to match rs6000.md
27208 generator functions.
27209 (vsx_floatuns<VSi><mode>2): Ditto.
27210 (vsx_fix_trunc<mode><VSi>2): Ditto.
27211 (vsx_fixuns_trunc<mode><VSi>2): Ditto.
27213 2011-02-02 Joseph Myers <joseph@codesourcery.com>
27215 * config/i386/djgpp.opt (posix): New Driver option.
27217 2011-02-02 Gerald Pfeifer <gerald@pfeifer.com>
27219 * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
27220 Move to the unsupported targets list.
27222 2011-02-02 Peter Bergner <bergner@vnet.ibm.com>
27224 PR rtl-optimization/47525
27225 * df-scan.c: Update copyright years.
27226 (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
27227 and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
27229 2011-02-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27231 * config/i386/sysv4.h (TARGET_VERSION): Remove.
27232 (SUBTARGET_RETURN_IN_MEMORY): Remove.
27233 (ASM_OUTPUT_ASCII): Remove.
27234 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
27236 2011-02-02 Jeff Law <law@redhat.com>
27238 PR middle-end/47543
27239 * reload.c (find_reloads_address): Handle reg+d address where both
27240 components are invalid by reloading the entire address.
27242 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
27243 Richard Guenther <rguenther@suse.de>
27245 PR tree-optimization/40979
27247 * passes.c (init_optimization_passes): After LIM call copy_prop
27248 and DCE to clean up.
27249 * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
27251 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
27253 PR tree-optimization/47576
27254 PR tree-optimization/47555
27255 * doc/invoke.texi (scev-max-expr-complexity): Documented.
27256 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
27257 (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
27258 * tree-scalar-evolution.c (follow_ssa_edge): Use
27259 PARAM_SCEV_MAX_EXPR_COMPLEXITY.
27261 2011-02-02 Richard Guenther <rguenther@suse.de>
27263 PR tree-optimization/47566
27264 * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
27266 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
27270 * tree-inline.c (declare_return_variable): Remove unused caller
27275 * tree-flow-inline.h (clear_is_used, is_used_p): New.
27276 * cfgexpand.c (account_used_vars_for_block): Use them.
27277 * tree-nrv.c (tree_nrv): Likewise.
27278 * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
27279 (dump_scope_block): Likewise.
27280 (remove_unused_locals): Likewise.
27284 * tree-inline.c (declare_return_variable): Add result decl to
27285 local decls only once.
27286 * gimple-low.c (record_vars_into): Mark newly-created variables
27289 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
27295 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
27297 (no_real_insns_p, schedule_block, set_priorities): Drop special
27298 treatment of boundary debug insns.
27299 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
27300 * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
27301 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
27302 (BOUNDARY_DEBUG_INSN_P): Likewise.
27303 (SCHEDULE_DEBUG_INSN_P): Likewise.
27304 * sched-rgn.c (init_ready_list): Drop special treatment of
27305 boundary debug insns.
27306 * final.c (rest_of_clean_state): Clear notes' BB.
27308 2011-02-01 Joseph Myers <joseph@codesourcery.com>
27310 * config/openbsd.opt (assert=): New Driver option.
27312 2011-02-01 Joseph Myers <joseph@codesourcery.com>
27314 * config/i386/nto.opt: New.
27315 * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
27317 2011-02-01 Joseph Myers <joseph@codesourcery.com>
27319 * config/i386/netware.opt: New.
27320 * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
27322 2011-02-01 Joseph Myers <joseph@codesourcery.com>
27324 * config/interix.opt (posix): New Driver option.
27326 2011-02-01 DJ Delorie <dj@redhat.com>
27328 * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
27330 * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
27333 2011-02-01 Sebastian Pop <sebastian.pop@amd.com>
27335 PR tree-optimization/47561
27336 * toplev.c (process_options): Print the Graphite flags. Add
27337 flag_loop_flatten to the list of options requiring Graphite.
27339 2011-02-01 Joseph Myers <joseph@codesourcery.com>
27341 * config/i386/cygming.opt (posix): New Driver option.
27343 2011-02-01 Joseph Myers <joseph@codesourcery.com>
27345 * config/arm/vxworks.opt: New.
27346 * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
27348 2011-02-01 Joseph Myers <joseph@codesourcery.com>
27350 * config/alpha/elf.opt: New.
27351 * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
27352 alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
27354 2011-02-01 Richard Guenther <rguenther@suse.de>
27356 PR tree-optimization/47559
27357 * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
27358 store-motion on references that can throw.
27360 2011-02-01 Bernd Schmidt <bernds@codesourcery.com>
27362 * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
27363 * tree-pass.h (TDF_CSELIB): New macro.
27364 * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
27365 cselib_lookup): Check for it rather than for TDF_DETAILS.
27367 2011-02-01 H.J. Lu <hongjiu.lu@intel.com>
27370 * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
27371 is HOST_BIT_BUCKET.
27373 * opts.c (finish_options): Don't add x_aux_base_name if it is
27376 2011-02-01 Richard Guenther <rguenther@suse.de>
27378 PR tree-optimization/47555
27380 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
27382 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
27384 2011-02-01 Sebastien Bourdeauducq <sebastien@milkymist.org>
27387 * config/lm32/t-lm32: Add multilib for all CPU options.
27389 2011-02-01 Richard Guenther <rguenther@suse.de>
27391 PR tree-optimization/47541
27392 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
27393 sure to have a field at offset zero.
27395 2011-01-31 Joseph Myers <joseph@codesourcery.com>
27397 * config/arc/arc.opt (EB, EL): New Driver options.
27399 2011-01-31 Joseph Myers <joseph@codesourcery.com>
27401 * config/alpha/osf5.opt: New.
27402 * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
27404 2011-01-31 Joseph Myers <joseph@codesourcery.com>
27406 * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
27408 2011-01-31 Sebastian Pop <sebastian.pop@amd.com>
27410 * common.opt (ftree-loop-linear): Use Alias to make it an alias of
27411 -floop-interchange.
27412 * invoke.texi (-ftree-loop-linear): Make it clear that this flag
27413 is an alias of -floop-interchange and that it requires the
27414 Graphite infrastructure.
27415 * tree-ssa-loop.c (gate_graphite_transforms): Do not set
27416 flag_loop_interchange based on the value of flag_tree_loop_linear.
27418 2011-01-31 Jakub Jelinek <jakub@redhat.com>
27419 Richard Guenther <rguenther@suse.de>
27421 PR tree-optimization/47538
27422 * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
27423 type instead of r1type, except for comparisons. For right
27424 shifts and comparisons punt if there are mismatches in
27425 sizetype vs. non-sizetype types.
27427 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27429 * doc/sourcebuild.texi (Effective-Target Keywords): Document
27432 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27434 * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
27436 * configure: Regenerate.
27438 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27440 * configure.ac (gcc_cv_ld_static_option): Define.
27441 (gcc_cv_ld_dynamic_option): Define.
27442 (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
27444 (HAVE_LD_STATIC_DYNAMIC): Update message.
27445 (LD_STATIC_OPTION): Define.
27446 (LD_DYNAMIC_OPTION): Define.
27447 * configure: Regenerate.
27448 * config.in: Regenerate.
27449 * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
27450 HAVE_LD_STATIC_DYNAMIC]: Use them.
27452 2011-01-31 Nick Clifton <nickc@redhat.com>
27454 * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
27455 registers inside interrupt handlers if the handler is not a leaf
27458 2011-01-31 Nick Clifton <nickc@redhat.com>
27460 * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
27461 reg_renumber returning an INVALID_REGNUM.
27463 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
27466 * doc/install.texi: Document host options discarded when cross
27467 configuring target libraries.
27469 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
27472 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
27475 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
27477 (no_real_insns_p, schedule_block, set_priorities): Drop special
27478 treatment of boundary debug insns.
27479 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
27480 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
27481 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
27482 (BOUNDARY_DEBUG_INSN_P): Likewise.
27483 (SCHEDULE_DEBUG_INSN_P): Likewise.
27484 * sched-rgn.c (init_ready_list): Drop special treatment of
27485 boundary debug insns.
27486 * final.c (rest_of_clean-state): Clear notes' BB.
27488 2011-01-31 Alan Modra <amodra@gmail.com>
27490 * config/rs6000/rs6000.c (print_operand): Rearrange addends in
27491 toc relative expressions as we do in print_operand_address.
27493 2011-01-30 Kazu Hirata <kazu@codesourcery.com>
27495 * doc/extend.texi: Follow spelling conventions.
27496 * doc/invoke.texi: Fix a typo.
27498 2011-01-30 Joseph Myers <joseph@codesourcery.com>
27500 * config/hpux11.opt: New.
27501 * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
27502 ia64*-*-hpux*): Use hpux11.opt.
27504 2011-01-30 Jonathan Yong <jon_y@users.sourceforge.net>
27506 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
27509 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
27511 * doc/install.texi (hppa-hp-hpux10): Remove references to HP
27514 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
27516 * doc/install.texi (Binaries): Remove outdated reference for
27517 Motorola 68HC11/68HC12 downloads.
27519 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
27521 * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
27524 2011-01-29 Jonathan Wakely <jwakely.gcc@gmail.com>
27527 * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
27530 2011-01-28 Ahmad Sharif <asharif@google.com>
27532 * value-prof.c (check_counter): Corrected error message.
27534 2011-01-29 Jie Zhang <jie@codesourcery.com>
27536 * config/arm/arm.c (arm_legitimize_reload_address): New.
27537 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
27538 arm_legitimize_reload_address.
27539 * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
27541 2011-01-28 Ian Lance Taylor <iant@google.com>
27543 * godump.c (go_define): Ignore macros whose definitions include
27544 two adjacent operands.
27546 2011-01-28 Jakub Jelinek <jakub@redhat.com>
27549 * varasm.c (force_const_mem): Store copy of x in desc->constant
27550 instead of x itself.
27551 * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
27552 itself into REG_EQUAL note.
27554 2011-01-28 Joseph Myers <joseph@codesourcery.com>
27556 * config/freebsd.opt (posix, rdynamic): New Driver options.
27558 2011-01-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27560 * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
27561 -Bstatic/-Bdynamic.
27562 * configure: Regenerate.
27564 2011-01-27 Joseph Myers <joseph@codesourcery.com>
27566 * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
27567 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
27569 2011-01-27 Anatoly Sokolov <aesok@post.ru>
27571 * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
27572 * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
27573 * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
27574 (s390_preferred_reload_class): Make static. Change return and
27575 'rclass' argument type to reg_class_t.
27577 2011-01-27 Jan Hubicka <jh@suse.cz>
27579 PR middle-end/46949
27580 * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
27581 (process_function_and_variable_attributes): Check defined weakrefs.
27583 2011-01-27 Martin Jambor <mjambor@suse.cz>
27585 PR tree-optimization/47228
27586 * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
27587 build_ref_for_offset.
27589 2011-01-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
27591 * config/spu/spu-elf.h (ASM_SPEC): Remove.
27593 2011-01-26 Mikael Pettersson <mikpe@it.uu.se>
27595 PR rtl-optimization/46856
27596 * postreload.c (reload_combine_recognize_const_pattern): Do not
27597 separate cc0 setter and user on cc0 targets.
27599 2011-01-26 Nicola Pero <nicola.pero@meta-innovation.com>
27602 * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
27603 passed a VOID_TYPE expression, immediately emit an error and
27604 return error_mark_node.
27606 2011-01-26 Jeff Law <law@redhat.com>
27608 PR rtl-optimization/47464
27609 * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
27610 rather than may_trap_p as needed.
27612 2011-01-26 DJ Delorie <dj@redhat.com>
27614 PR rtl-optimization/46878
27615 * combine.c (insn_a_feeds_b): Check for the implicit cc0
27616 setter/user dependency as well.
27618 2011-01-26 Eric Botcazou <ebotcazou@adacore.com>
27620 PR rtl-optimization/44469
27621 * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
27622 after removing trivially dead basic blocks.
27624 2011-01-26 Joseph Myers <joseph@codesourcery.com>
27626 * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
27627 * config/frv/frv.h (LINK_SPEC): Likewise.
27628 * config/i386/netware.h (LINK_SPEC): Likewise.
27629 * config/m68k/linux.h (ASM_SPEC): Likewise.
27630 * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
27631 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
27632 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
27633 * config/sparc/linux.h (ASM_SPEC): Likewise.
27634 * config/sparc/linux64.h (ASM_SPEC): Likewise.
27635 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
27637 2011-01-26 Joseph Myers <joseph@codesourcery.com>
27639 * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
27640 * config/frv/frv.h (ASM_SPEC): Likewise.
27641 * config/m68k/linux.h (ASM_SPEC): Likewise.
27642 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
27643 * config/rs6000/linux64.h (ASM_SPEC): Likewise.
27644 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
27645 * config/sparc/linux.h (ASM_SPEC): Likewise.
27646 * config/sparc/linux64.h (ASM_SPEC): Likewise.
27647 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
27649 2011-01-26 Joseph Myers <joseph@codesourcery.com>
27651 * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
27652 * config/frv/frv.h (LINK_SPEC): Likewise.
27653 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
27655 2011-01-26 Joseph Myers <joseph@codesourcery.com>
27657 * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
27658 * config/frv/frv.h (ASM_SPEC): Likewise.
27659 * config/i386/sol2-10.h (ASM_SPEC): Likewise.
27660 * config/m68k/linux.h (ASM_SPEC): Likewise.
27661 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
27662 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
27663 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
27664 * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
27665 * config/sparc/linux.h (ASM_SPEC): Likewise.
27666 * config/sparc/linux64.h (ASM_SPEC): Likewise.
27667 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
27668 * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
27670 2011-01-26 Steve Ellcey <sje@cup.hp.com>
27673 * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
27675 (vec_extract_evenodd_help): Ditto.
27676 (vec_extract_evenv4hi): Ditto.
27677 (vec_extract_oddv4hi): Ditto.
27678 (vec_interleave_lowv2si): Ditto.
27679 (vec_interleave_highv2si): Ditto.
27680 (vec_extract_evenv2si): Ditto.
27681 (vec_extract_oddv2si: Ditto.
27682 (vec_pack_trunc_v2si): Ditto.
27684 2011-01-22 Jan Hubicka <jh@suse.cz>
27687 * cgraph.h (cgraph_local_info): New field can_change_signature.
27688 * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
27689 signature can change.
27690 (ipcp_estimate_growth): Call sequence simplify only if calle signature
27692 (ipcp_insert_stage): Only compute args_to_skip if signature can change.
27693 (cgraph_function_versioning): We can not change signature of functions
27694 that don't allow that.
27695 * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
27696 (lto_input_node): Likewise.
27697 * ipa-inline.c (compute_inline_parameters): Compute
27698 local.can_change_signature.
27699 * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
27700 * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
27701 functions that can not change signature.
27702 * i386.c (ix86_function_regparm, ix86_function_sseregparm,
27703 init_cumulative_args): Do not use local calling conventions
27704 for functions that can not change signature.
27706 2011-01-22 Jan Hubicka <jh@suse.cz>
27708 * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
27710 2011-01-26 Richard Guenther <rguenther@suse.de>
27712 PR tree-optimization/47190
27713 * cgraphunit.c (process_common_attributes): New function.
27714 (process_function_and_variable_attributes): Use it.
27716 2011-01-26 Richard Guenther <rguenther@suse.de>
27719 * cgraphbuild.c (record_eh_tables): Record reference to personality
27722 2011-01-26 Alexandre Oliva <aoliva@redhat.com>
27725 * sel-sched.c (moveup_expr): Don't let debug insns prevent
27726 non-debug insns from moving up.
27728 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
27731 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
27732 t-dlldir{,-x} fragment for build and add it to tmake_file.
27733 (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
27734 * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
27735 * config/i386/t-dlldir: New file.
27736 (SHLIB_DLLDIR): Define.
27737 * config/i386/t-dlldir-x: New file.
27738 (SHLIB_DLLDIR): Define.
27739 * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
27740 (SHLIB_INSTALL): Use it.
27742 2011-01-26 Chung-Lin Tang <cltang@codesourcery.com>
27745 * config/arm/arm.c (thumb2_legitimate_index_p): Change the
27746 lower bound of the allowed Thumb-2 coprocessor load/store
27747 index range to -256. Add explaining comment.
27749 2011-01-25 Ian Lance Taylor <iant@google.com>
27751 * godump.c (go_define): Improve lexing of macro expansion to only
27752 accept expressions which match Go spec.
27754 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
27757 * tree.c (handle_dll_attribute): Handle it.
27758 * doc/extend.texi (@item dllexport): Mention it.
27759 * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
27761 2011-01-25 Ian Lance Taylor <iant@google.com>
27763 PR tree-optimization/26854
27764 * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
27765 (decl_jump_unsafe): Move higher in file, with no other change.
27766 (bind): Set has_jump_unsafe_decl if appropriate.
27767 (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
27768 (check_earlier_gotos): Likewise.
27769 (c_check_switch_jump_warnings): Likewise.
27771 2011-01-25 Jonathan Wakely <jwakely.gcc@gmail.com>
27773 * doc/invoke.texi (Warning Options): Add missing hyphen.
27774 (-fprofile-dir): Minor grammatical fixes.
27775 (-fbranch-probabilities): Likewise.
27777 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
27781 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
27783 (no_real_insns_p, schedule_block, set_priorities): Drop special
27784 treatment of boundary debug insns.
27785 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
27786 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
27787 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
27788 (BOUNDARY_DEBUG_INSN_P): Likewise.
27789 (SCHEDULE_DEBUG_INSN_P): Likewise.
27790 * sched-rgn.c (init_ready_list): Drop special treatment of
27791 boundary debug insns.
27792 * final.c (rest_of_clean-state): Clear notes' BB.
27794 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
27796 * Makefile.in (LAMBDA_H): Removed.
27797 (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
27798 (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
27799 lambda-trans.o, and tree-loop-linear.o.
27800 (lto-symtab.o): Remove dependence on LAMBDA_H.
27801 (tree-loop-linear.o): Remove rule.
27802 (lambda-mat.o): Same.
27803 (lambda-trans.o): Same.
27804 (lambda-code.o): Same.
27805 (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
27806 (tree-vect-slp.o): Same.
27807 * hwint.h (gcd): Moved here.
27808 (least_common_multiple): Same.
27809 * lambda-code.c: Removed.
27810 * lambda-mat.c: Removed.
27811 * lambda-trans.c: Removed.
27812 * lambda.h: Removed.
27813 * tree-loop-linear.c: Removed.
27814 * lto-symtab.c: Do not include lambda.h.
27815 * omega.c (gcd): Removed.
27816 * passes.c (init_optimization_passes): Remove pass_linear_transform.
27817 * tree-data-ref.c (print_lambda_vector): Moved here.
27818 (lambda_vector_copy): Same.
27819 (lambda_matrix_copy): Same.
27820 (lambda_matrix_id): Same.
27821 (lambda_vector_first_nz): Same.
27822 (lambda_matrix_row_add): Same.
27823 (lambda_matrix_row_exchange): Same.
27824 (lambda_vector_mult_const): Same.
27825 (lambda_vector_negate): Same.
27826 (lambda_matrix_row_negate): Same.
27827 (lambda_vector_equal): Same.
27828 (lambda_matrix_right_hermite): Same.
27829 * tree-data-ref.h: Do not include lambda.h.
27830 (lambda_vector): Moved here.
27831 (lambda_matrix): Same.
27832 (dependence_level): Same.
27833 (lambda_transform_legal_p): Removed declaration.
27834 (lambda_collect_parameters): Same.
27835 (lambda_compute_access_matrices): Same.
27836 (lambda_vector_gcd): Same.
27837 (lambda_vector_new): Same.
27838 (lambda_vector_clear): Same.
27839 (lambda_vector_lexico_pos): Same.
27840 (lambda_vector_zerop): Same.
27841 (lambda_matrix_new): Same.
27842 * tree-flow.h (least_common_multiple): Removed declaration.
27843 * tree-parloops.c (lambda_trans_matrix): Moved here.
27844 (LTM_MATRIX): Same.
27845 (LTM_ROWSIZE): Same.
27846 (LTM_COLSIZE): Same.
27847 (LTM_DENOMINATOR): Same.
27848 (lambda_trans_matrix_new): Same.
27849 (lambda_matrix_vector_mult): Same.
27850 (lambda_transform_legal_p): Same.
27851 * tree-pass.h (pass_linear_transform): Removed declaration.
27852 * tree-ssa-loop.c (tree_linear_transform): Removed.
27853 (gate_tree_linear_transform): Removed.
27854 (pass_linear_transform): Removed.
27855 (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
27856 flag_loop_interchange.
27858 2011-01-25 Jakub Jelinek <jakub@redhat.com>
27860 PR tree-optimization/47265
27861 PR tree-optimization/47443
27862 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
27863 if name still has some uses.
27865 2011-01-25 Martin Jambor <mjambor@suse.cz>
27867 PR tree-optimization/47382
27868 * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
27869 (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
27871 2011-01-25 Joel Sherrill <joel.sherrill@oarcorp.com>
27873 * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
27874 sjlj_except_unwind_info.
27876 2011-01-25 Richard Guenther <rguenther@suse.de>
27878 PR tree-optimization/47426
27879 * tree-ssa-structalias.c (ipa_pta_execute): Make externally
27880 visible functions results escape.
27882 2011-01-25 Jakub Jelinek <jakub@redhat.com>
27885 * config/arm/arm.c (any_sibcall_uses_r3): New function.
27886 (arm_get_frame_offsets): Use it.
27888 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
27889 Jakub Jelinek <jakub@redhat.com>
27891 PR tree-optimization/47271
27892 * tree-if-conv.c (bb_postdominates_preds): New.
27893 (if_convertible_bb_p): Call bb_postdominates_preds.
27894 (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
27895 (predicate_scalar_phi): Call bb_postdominates_preds.
27897 2011-01-25 Nick Clifton <nickc@redhat.com>
27899 * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
27900 * config/rx/rx.c (rx_function_value): Likewise.
27901 (rx_promote_function_mode): Likewise.
27902 (gen_safe_add): Place an outsized immediate value inside an UNSPEC
27903 in order to make it legitimate.
27904 * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
27905 make sure that the first operand is the same as the result register.
27906 (addsi3_unspec): Delete.
27907 (subdi3): Do not accept immediate operands.
27908 (subdi3_internal): Likewise.
27910 2011-01-25 Jeff Law <law@redhat.com>
27912 PR rtl-optimization/37273
27913 * ira-costs.c (scan_one_insn): Detect constants living in memory and
27914 handle them like argument loads from stack slots. Do not double
27915 count memory for memory constants and argument loads from stack slots.
27917 2011-01-25 Jakub Jelinek <jakub@redhat.com>
27919 PR tree-optimization/47427
27920 PR tree-optimization/47428
27921 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
27922 coalesce if the new root var would be TREE_READONLY.
27924 2011-01-25 Richard Guenther <rguenther@suse.de>
27926 PR middle-end/47414
27927 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
27928 correct type for TBAA.
27930 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
27932 * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
27933 (close_phi_written_to_memory): Call for_each_index with
27934 dr_indices_valid_in_loop.
27936 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
27938 * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
27939 when it is initialized.
27941 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
27943 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
27944 call to graphite_find_data_references_in_stmt.
27945 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
27946 (try_generate_gimple_bb): Call outermost_loop_in_sese_1. Update
27947 call to graphite_find_data_references_in_stmt.
27948 (analyze_drs_in_stmts): Same.
27949 * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
27950 in which the scalar analysis of indices is performed.
27951 (create_data_ref): Same. Update call to dr_analyze_indices.
27952 (find_data_references_in_stmt): Update call to create_data_ref.
27953 (graphite_find_data_references_in_stmt): Same.
27954 * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
27956 (create_data_ref): Same.
27957 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
27958 call to create_data_ref.
27960 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
27962 * graphite-sese-to-poly.c (build_poly_scop): Move
27963 rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
27965 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
27967 * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
27968 VAR_DECL, PARM_DECL, and RESULT_DECL.
27970 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
27972 * graphite-dependences.c (reduction_dr_1): Allow several reductions
27973 in a reduction PBB.
27974 * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
27975 that have already been marked as PBB_IS_REDUCTION.
27977 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
27979 * graphite-scop-detection.c (same_close_phi_node): New.
27980 (remove_duplicate_close_phi): New.
27981 (make_close_phi_nodes_unique): New.
27982 (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
27984 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
27986 * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
27987 * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
27988 of both data references to be the same.
27990 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
27992 * graphite-dependences.c (build_lexicographical_constraint): Remove
27993 the gdim parameter.
27994 (build_lexicographical_constraint): Adjust call to
27995 ppl_powerset_is_empty.
27996 (dependence_polyhedron): Same.
27997 (graphite_legal_transform_dr): Same.
27998 (graphite_carried_dependence_level_k): Same.
27999 * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
28001 * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
28003 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
28005 * graphite-sese-to-poly.c
28006 (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
28007 (close_phi_written_to_memory): New.
28008 (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
28011 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
28013 * doc/install.texi: Update the expected version number of PPL to 0.11.
28014 * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
28015 #if PPL_VERSION_MINOR < 11.
28017 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
28019 * graphite-dependences.c: Include graphite-cloog-util.h.
28020 (new_poly_ddr): Inlined into dependence_polyhedron.
28021 (free_poly_ddr): Moved close by new_poly_ddr.
28022 (dependence_polyhedron_1): Renamed dependence_polyhedron.
28023 Early return NULL when ppl_powerset_is_empty returns true.
28024 (dependence_polyhedron): Renamed new_poly_ddr. Call only once
28025 poly_drs_may_alias_p. Avoid one call to ppl_powerset_is_empty.
28026 (graphite_legal_transform_dr): Call new_poly_ddr.
28027 (graphite_carried_dependence_level_k): Same.
28028 (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2. Use new_poly_ddr.
28029 (dot_transformed_deps_stmt_1): Removed.
28030 (dot_deps_stmt_1): Call dot_deps_stmt_2.
28031 (dot_original_deps): Renamed dot_deps_2. Call new_poly_ddr.
28032 (dot_deps_1): Call dot_deps_2.
28033 * Makefile.in (graphite-dependences.o): Add missing dependence on
28034 graphite-cloog-util.h.
28036 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
28038 * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
28039 (build_lexicographical_constraint): Same.
28040 (dependence_polyhedron_1): Same.
28041 (graphite_legal_transform_dr): Same.
28042 (graphite_carried_dependence_level_k): Same.
28043 * graphite-ppl.c (ppl_powerset_is_empty): New.
28044 * graphite-ppl.h (ppl_powerset_is_empty): Declared.
28045 * tree-data-ref.c (dump_data_reference): Print the basic block index.
28047 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
28049 * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
28050 the "a followed by b" relation and document it.
28052 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
28054 * graphite-dependences.c (build_lexicographical_constraint): Stop the
28055 iteration when the bag of constraints is empty.
28057 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
28059 * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
28061 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
28063 * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
28064 nest and two loop depths as parameters.
28065 (lst_try_interchange_loops): Call lst_interchange_profitable_p after
28066 lst_perfect_nestify.
28068 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
28070 * graphite-dependences.c (print_pddr): Call
28071 ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
28073 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
28075 * graphite-ppl.c (debug_gmp_value): New.
28076 * graphite-ppl.h (debug_gmp_value): Declared.
28078 2011-01-25 Tobias Grosser <grosser@fim.uni-passau.de>
28080 * doc/install.texi: Document availability of cloog-0.16.
28082 2011-01-25 Vladimir Kargov <kargov@gmail.com>
28084 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
28085 invalid postdominance info.
28087 2011-01-24 Jan Hubicka <jh@suse.cz>
28090 * doc/extend.texi (weak pragma): Drop claim that it must
28091 appear before definition.
28092 * varasm.c (merge_weak, declare_weak): Only sanity check
28093 that DECL is not output at a time it is declared weak.
28095 2011-01-24 Kenneth Zadeck <zadeck@naturalbridge.com>
28097 * machmode.def: Fixed comments.
28099 2011-01-24 Kai Tietz <kai.tietz@onevision.com>
28101 * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
28103 2011-01-24 Paul Koning <ni1d@arrl.net>
28105 * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
28108 2011-01-24 H.J. Lu <hongjiu.lu@intel.com>
28111 * config/i386/i386.c: Include sbitmap.h and fibheap.h.
28112 (block_info): Add scanned and prev.
28113 (move_or_delete_vzeroupper_2): Return if the basic block
28114 has been scanned and the upper 128bit state is unchanged
28115 from the last scan.
28116 (move_or_delete_vzeroupper_1): Return true if the exit
28118 (move_or_delete_vzeroupper): Visit basic blocks using the
28119 work-list based algorithm based on vt_find_locations in
28122 * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
28124 2011-01-24 Nick Clifton <nickc@redhat.com>
28126 * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
28127 * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
28128 -mv850e1 to the assembler. If -mv850e1 or -mv850es is specified
28129 then define __v850e1__.
28130 * doc/invoke.texi: Document -mv850es.
28132 2011-01-24 Richard Henderson <rth@redhat.com>
28134 * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
28135 compound unordered comparisons.
28136 * config/rx/rx.c (rx_split_fp_compare): Remove.
28137 * config/rx/rx-protos.h: Update.
28138 * config/rx/rx.md (gcc_conds, rx_conds): Remove.
28139 (cbranchsf4): Don't call rx_split_fp_compare.
28140 (*cbranchsf4): Use rx_split_cbranch.
28141 (*cmpsf): Don't accept "i" constraint.
28142 (*conditional_branch): Only valid after reload.
28143 (cstoresf4): Merge expander with insn. Don't call rx_split_fp_compare.
28145 2011-01-24 Michael Meissner <meissner@linux.vnet.ibm.com>
28148 * config/rs6000/altivec.md (vector constant splitters): Add
28149 support for creating vector single precision constants if -mvsx is
28150 used and we would create the constant using Altivec primitives.
28152 2011-01-23 Bernd Schmidt <bernds@codesourcery.com>
28153 Richard Sandiford <rdsandiford@googlemail.com>
28155 PR rtl-optimization/47166
28156 * reload1.c (emit_reload_insns): Disable the spill_reg_store
28157 mechanism for PRE_MODIFY and POST_MODIFY.
28158 (inc_for_reload): For PRE_MODIFY, return the insn that sets the
28161 2011-01-23 Andreas Schwab <schwab@linux-m68k.org>
28163 * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
28165 2011-01-22 Jan Hubicka <jh@suse.cz>
28168 * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
28170 2011-01-22 Jan Hubicka <jh@suse.cz>
28172 PR tree-optimization/43884
28174 * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
28175 * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
28177 2011-01-22 Anatoly Sokolov <aesok@post.ru>
28179 * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
28180 * config/s390/s390.c (s390_register_move_cost,
28181 s390_memory_move_cost): New.
28182 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
28184 2011-01-22 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
28186 PR middle-end/47401
28187 * except.c (sjlj_assign_call_site_values): Move setting the
28188 crtl->uses_eh_lsda flag to ...
28189 (sjlj_mark_call_sites): ... here.
28190 (sjlj_emit_function_enter): Support NULL dispatch label.
28191 (sjlj_build_landing_pads): In a function with no landing pads
28192 that still has must-not-throw regions, generate code to register
28193 a personality function with empty LSDA.
28195 2011-01-21 Richard Henderson <rth@redhat.com>
28197 * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
28199 * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
28201 * compare-elim.c: New file.
28202 * Makefile.in (OBJS-common): Add it.
28203 (compare-elim.o): New.
28204 * common.opt (fcompare-elim): New.
28205 * opts.c (default_options_table): Add OPT_fcompare_elim.
28206 * tree-pass.h (pass_compare_elim_after_reload): New.
28207 * passes.c (init_optimization_passes): Add it.
28208 * recog.h: Protect against re-inclusion.
28209 * target.def (TARGET_FLAGS_REGNUM): New POD hook.
28210 * doc/invoke.texi (-fcompare-elim): Document it.
28211 * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
28212 * doc/tm.texi: Rebuild.
28214 2011-01-22 Nick Clifton <nickc@redhat.com>
28216 * config/rx/rx.md (cstoresf4): Pass comparison operator to
28217 rx_split_fp_compare.
28219 2011-01-22 Nick Clifton <nickc@redhat.com>
28221 * config/rx/rx.md (UNSPEC_CONST): New.
28222 (deallocate_and_return): Wrap the amount popped off the stack in
28223 an UNSPEC_CONST in order to stop it being rejected by
28224 -mmax-constant-size.
28225 (pop_and_return): Add a "(return)" rtx.
28226 (call): Drop the immediate operand.
28227 (call_internal): Likewise.
28228 (call_value): Likewise.
28229 (call_value_internal): Likewise.
28230 (sibcall_internal): Likewise.
28231 (sibcall_value_internal): Likewise.
28232 (sibcall): Likewise. Generate an explicit call using
28234 (sibcall_value): Likewise.
28235 (mov<>): FAIL if a constant operand is not legitimate.
28236 (addsi3_unpsec): New pattern.
28238 * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
28239 (ok_for_max_constant): New function.
28240 (gen_safe_add): New function.
28241 (rx_expand_prologue): Use gen_safe_add.
28242 (rx_expand_epilogue): Likewise.
28243 (rx_is_legitimate_constant): Use ok_for_max_constant. Handle
28246 2011-01-21 Jeff Law <law@redhat.com>
28248 PR tree-optimization/47053
28249 * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
28250 (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
28251 statements are deleted.
28252 (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP. If NEED_EH_CLEANUP
28253 is nonempty, then purge dead edges and cleanup the CFG.
28255 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
28258 Temporarily revert:
28259 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
28261 * tree-dfa.c (create_var_ann): Mark variable as used.
28263 2011-01-21 Jakub Jelinek <jakub@redhat.com>
28265 PR middle-end/45566
28266 * except.c (convert_to_eh_region_ranges): Emit queued no-region
28267 notes from other section in hot/cold partitioning even if
28268 last_action is -3. Increment call_site_base.
28270 PR rtl-optimization/47366
28271 * fwprop.c (forward_propagate_into): Return bool. If
28272 any changes are made, -fnon-call-exceptions is used and
28273 REG_EH_REGION note is present, call purge_dead_edges
28274 and return true if it purged anything.
28275 (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
28276 any EH edges were purged.
28278 2011-01-21 Jeff Law <law@redhat.com>
28280 PR rtl-optimization/41619
28281 * caller-save.c (setup_save_areas): Break out code to determine
28282 which hard regs are live across calls by examining the reload chains
28283 so that it is always used.
28284 Eliminate code which checked REG_N_CALLS_CROSSED.
28286 2011-01-21 Jakub Jelinek <jakub@redhat.com>
28288 PR tree-optimization/47355
28289 * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
28290 NOP has non-debug uses beyond PHIs in new_bb.
28292 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
28295 * cfgexpand.c (account_used_vars_for_block): Only account vars
28296 that are annotated as used.
28297 (estimated_stack_frame_size): Don't set TREE_USED.
28298 * tree-dfa.c (create_var_ann): Mark variable as used.
28300 2011-01-21 Richard Guenther <rguenther@suse.de>
28302 PR middle-end/47395
28303 * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
28305 2011-01-21 Richard Guenther <rguenther@suse.de>
28307 PR tree-optimization/47365
28308 * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
28309 (vn_reference_lookup_pieces): Adjust.
28310 (vn_reference_lookup): Likewise.
28311 * tree-ssa-sccvn.c (vn_walk_kind): New static global.
28312 (vn_reference_lookup_3): Only look through kills if in
28313 VN_WALKREWRITE mode.
28314 (vn_reference_lookup_pieces): Adjust.
28315 (vn_reference_lookup): Likewise.
28316 (visit_reference_op_load): Likewise.
28317 (visit_reference_op_store): Likewise.
28318 * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
28319 (compute_avail): Likewise.
28320 (eliminate): Likewise.
28322 2011-01-21 Jakub Jelinek <jakub@redhat.com>
28324 * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
28325 DECL_IGNORED_P non-reg vars if they are used.
28327 PR tree-optimization/47391
28328 * varpool.c (const_value_known_p): Return false if
28331 2011-01-21 Kai Tietz <kai.tietz@onevision.com>
28334 * config/i386/i386.c (ix86_local_alignment): Handle
28335 case for va_list_type_node is nil.
28336 (ix86_canonical_va_list_type): Likewise.
28338 2011-01-21 Alan Modra <amodra@gmail.com>
28340 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
28341 builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
28343 2011-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
28345 * config/arm/arm.md (define_attr type): Rename f_load
28346 and f_store to f_fpa_load and f_fpa_store. Update.
28347 (write_conflict): Deal with rename fallout.
28348 (*push_fp_multi): Likewise.
28349 * config/arm/fpa.md (f_load): Use f_fpa_load.
28350 (f_store): Use f_fpa_store.
28351 (*movsf_fpa): Likewise.
28352 (*movdf_fpa): Likewise.
28353 (*movxf_fpa): Likewise.
28354 (*thumb2_movsf_fpa): Likewise.
28355 (*thumb2_movdf_fpa): Likewise.
28356 (*thumb2_movxf_fpa): Likewise.
28357 * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
28358 f_loadd and f_stored.
28359 (*thumb2_movdi_vfp): Likewise.
28360 (*thumb2_movsf_vfp): Fix attribute to f_loads.
28361 (*thumb2_movsi_vfp): Likewise.
28362 * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
28363 Use f_loads instead of f_load.
28364 * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
28366 2011-01-20 Anatoly Sokolov <aesok@post.ru>
28368 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
28369 * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
28370 * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
28371 (xtensa_mode_dependent_address_p): New function.
28372 (constantpool_address_p): Make static. Change return type to bool.
28373 Change argument type to const_rtx. Use CONST_INT_P predicate.
28375 2011-01-20 Alexandre Oliva <aoliva@redhat.com>
28378 * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
28380 2011-01-20 Jakub Jelinek <jakub@redhat.com>
28383 * cfgexpand.c (expand_debug_expr): Instead of generating
28384 (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
28387 2011-01-20 Richard Guenther <rguenther@suse.de>
28389 PR middle-end/47370
28390 * tree-inline.c (remap_gimple_op_r): Recurse manually for
28391 the pointer operand of MEM_REFs.
28393 2011-01-20 Jakub Jelinek <jakub@redhat.com>
28395 PR tree-optimization/46130
28396 * ipa-split.c (consider_split): If return_bb contains non-virtual
28397 PHIs other than for retval or if split_function would not adjust it,
28400 2011-01-20 Richard Guenther <rguenther@suse.de>
28402 PR tree-optimization/47167
28403 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
28404 Revert previous change, only avoid enumeral type changes.
28406 2011-01-19 Mike Stump <mikestump@comcast.net>
28408 * doc/tm.texi.in (BRANCH_COST): Englishify.
28409 * doc/tm.texi (BRANCH_COST): Likewise.
28411 2011-01-19 Dodji Seketeli <dodji@redhat.com>
28414 * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
28415 (gen_scheduled_generic_parms_dies): New functions.
28416 (gen_struct_or_union_type_die): Schedule template parameters DIEs
28417 generation for the end of CU compilation.
28418 (dwarf2out_finish): Generate template parameters DIEs here.
28420 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
28423 * tree-into-ssa.c (maybe_register_def): Do not attempt to add
28424 debug bind stmt on merge edges.
28426 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
28430 * function.c (instantiate_expr): Instantiate incoming rtl of
28431 implicit arguments, and recurse on VALUE_EXPRs.
28432 (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
28433 * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
28435 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
28437 * c-parser.c (c_parser_for_statement): Initialize
28438 collection_expression.
28440 2011-01-19 Joseph Myers <joseph@codesourcery.com>
28442 * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
28444 2011-01-19 Joseph Myers <joseph@codesourcery.com>
28446 * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
28447 (LINK_SHLIB_SPEC): Don't use %(link_path).
28448 (SUBTARGET_EXTRA_SPECS): Remove link_path.
28450 2011-01-19 Joseph Myers <joseph@codesourcery.com>
28452 * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
28453 (NO_SHARED_LIB_SUPPORT): Remove.
28454 (LINK_SHLIB_SPEC): Remove one conditional definition.
28456 2011-01-19 Joseph Myers <joseph@codesourcery.com>
28458 * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
28460 * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
28461 * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
28462 * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
28463 %{call_shared} and conditionals on these options not being passed.
28464 * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
28467 2011-01-19 Jakub Jelinek <jakub@redhat.com>
28469 * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
28472 * ipa-split.c: Spelling fixes.
28474 2011-01-19 Richard Henderson <rth@redhat.com>
28476 * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
28477 (*mulsi3): Likewise.
28479 * longlong.h [__mn10300__] (count_leading_zeros): New.
28480 [__mn10300__] (umul_ppmm, smul_ppmm): New.
28481 [__mn10300__] (add_ssaaaa, subddmmss): New.
28482 [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
28483 [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
28485 2011-01-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
28487 * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
28489 2011-01-19 Richard Henderson <rth@redhat.com>
28491 * config/mn10300/mn10300.md (addsi3_flags): New.
28492 (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
28493 (subsi3_flags, subc_internal, subdi3): New.
28494 (subdi3_internal, *subdi3_degenerate): New.
28495 * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
28497 * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
28498 (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
28499 (mn10300_expand_epilogue): Use it. Compute REG_SAVE_BYTES once.
28500 * config/mn10300/mn10300-protos.h: Update.
28501 * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
28502 (return_ret): Likewise. Rename from return_internal_regs.
28503 (return_internal): Remove.
28505 * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
28506 (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
28507 (mn10300_legitimate_constant_p): Likewise.
28508 (mn10300_can_use_return_insn): Use mn10300_initial_offset.
28509 (mn10300_frame_size): New.
28510 (mn10300_expand_prologue): Use it.
28511 (mn10300_expand_epilogue): Likewise.
28512 (mn10300_initial_offset): Likewise.
28513 * config/mn10300/mn10300-protos.h: Update.
28514 * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
28515 * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
28516 (prologue, epilogue, return_internal): Tidy output code.
28517 (mn10300_store_multiple_operation, return): Likewise.
28518 (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
28519 (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
28520 (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
28521 (load_pic, am33_load_pic): New.
28522 (mn10300_load_pic0, mn10300_load_pic1): New.
28524 * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
28525 * config/mn10300/mn10300.c (CC_FLAG_Z): New.
28526 (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
28527 (cc_flags_for_mode, cc_flags_for_code): New.
28528 (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
28529 overflow flag is not valid. Validate that the flags we need
28530 for the comparison are valid.
28531 (mn10300_output_cmp): Remove.
28532 (mn10300_output_add): New.
28533 (mn10300_select_cc_mode): Use cc_flags_for_code.
28534 (mn10300_split_cbranch): New.
28535 (mn10300_match_ccmode): New.
28536 (mn10300_split_and_operand_count): New.
28537 * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
28539 * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
28540 (addsi3): ... here. Use mn10300_output_add.
28541 (*addsi3_flags): New.
28542 (*am33_subsi3, *mn10300_subsi3): Merge...
28543 (subsi3): ... here. Use attribute isa.
28544 (*subsi3_flags): New.
28545 (negsi2): Rewrite from expander to insn_and_split. Use NOT+INC
28547 (*am33_andsi3, *mn10300_andsi3): Merge...
28548 (andsi3): ... here.
28549 (*andsi3_flags): New.
28550 (andsi3 splitters): New.
28551 (*am33_iorsi3, *mn10300_iorsi3): Merge...
28552 (iorsi3): ... here.
28553 (*iorsi3_flags): New.
28554 (*am33_xorsi3, *mn10300_xorsi3): Merge...
28555 (xorsi3): ... here.
28556 (*xorsi3_flags): New.
28557 (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
28558 (one_cmplsi2): ... here.
28559 (*one_cmplsi2_flags): New.
28560 (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload. Use "r"
28561 instead of "dax" in constraints. Use mn10300_split_cbranch.
28562 (*cmpsi): Rename from cmpsi. Do not use mn10300_output_cmp. Do not
28563 use matching constraints to eliminate a self-comparison.
28564 (*integer_conditional_branch): Rename from integer_conditional_branch.
28565 Use int_mode_flags to match CC_REG.
28566 (*cbranchsi4_btst, *btstsi): New.
28567 (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload. Use
28568 mn10300_split_cbranch.
28569 (*am33_cmpsf): Rename from am33_cmpsf.
28570 (*float_conditional_branch): Rename from float_conditional_branch.
28571 (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
28572 (zero_extendqisi2): ... here.
28573 (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
28574 (zero_extendhisi2): ... here.
28575 (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
28576 (extendqisi2): ... here.
28577 (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
28578 (extendhisi2): ... here.
28579 (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
28580 (ashlsi3): ... here.
28581 (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
28582 (lshrsi3): ... here.
28583 (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
28584 (ashrsi3): ... here.
28585 (consecutive add peephole): Remove.
28586 * config/mn10300/predicates.md (label_ref_operand): New.
28587 (int_mode_flags): New.
28588 (CCZN_comparison_operator): New.
28590 * config/mn10300/mn10300.md (UNSPEC_EXT): New.
28591 (throughput_42_latency_43): New reservation.
28592 (mulsidi3, umulsidi3): New expanders.
28593 (mulsidi3_internal): Rewrite from old mulsidi3 pattern. Expose
28594 the MDR register to allocation; separately allocate the low and
28595 high parts of the DImode result.
28596 (umulsidi3_internal): Similarly.
28597 (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
28598 (*mulsi3): ... here. Clobber MDR as a scratch as necessary.
28599 (udivsi3, umodsi3): Remove.
28600 (udivmodsi4, divmodsi4): New expanders.
28601 (*udivmodsi4): Rename from udivmodsi4. Expose MDR properly.
28602 (*divmodsi4): Simiarly.
28603 (ext_internal): New.
28605 * config/mn10300/constraints.md ("z"): New constraint.
28606 * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
28607 (FIXED_REGISTERS): Don't fix MDR.
28608 (CALL_USED_REGSITERS): Reformat nicely.
28609 (REG_ALLOC_ORDER): Add MDR.
28610 (enum regclass): Add MDR_REGS.
28611 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
28612 (IRA_COVER_CLASSES): Add MDR_REGS.
28613 (REGNO_REG_CLASS): Handle MDR_REG.
28614 * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
28615 (mn10300_register_move_cost): Likewise.
28616 * config/mn10300/mn10300.md (MDR_REG): New.
28617 (*movsi_internal): Handle moves to/from MDR_REGS.
28619 * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
28621 (mn10300_secondary_reload): Tidy combination reload classes.
28622 (mn10300_legitimate_address_p): Allow post-modify and reg+reg
28623 addresses for AM33. Allow symbolic offsets for reg+imm.
28624 (mn10300_regno_in_class_p): New.
28625 (mn10300_legitimize_reload_address): New.
28626 * config/mn10300/mn10300.h (enum reg_class): Remove
28627 DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
28628 SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS. Add
28629 SP_OR_GENERAL_REGS.
28630 (REG_CLASS_NAMES): Update to match.
28631 (REG_CLASS_CONTENTS): Likewise.
28632 (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
28633 (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
28634 (REGNO_IN_RANGE_P): Remove.
28635 (REGNO_DATA_P): Use mn10300_regno_in_class_p.
28636 (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
28637 (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
28638 (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
28639 (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
28640 (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
28641 (REGNO_GENERAL_P): New.
28642 (HAVE_POST_MODIFY_DISP): New.
28643 (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
28644 (LEGITIMIZE_RELOAD_ADDRESS): New.
28645 * config/mn10300/mn10300-protos.h: Update.
28647 * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
28648 DATA_REGS for AM33 stack-pointer destination.
28649 (mn10300_preferred_output_reload_class): Likewise.
28650 (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
28651 into a form appropriate for ...
28652 (TARGET_SECONDARY_RELOAD): New.
28653 * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
28654 * config/mn10300/mn10300-protos.h: Update.
28655 * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
28656 reload_insi; use the "A" constraint for the scratch; handle AM33
28657 moves of sp to non-address registers.
28659 * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
28660 (*movqi_internal): ... here.
28661 (*am33_movhi, *mn10300_movhi): Merge into...
28662 (*movhi_internal): ... here.
28663 (*movsi_internal): Use "r" instead of "dax" in constraints. Use "A"
28664 as the source/destination of moves from/to SP.
28665 (movsf): Only allow for AM33-2.
28666 (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
28667 any integer constant constraint. Only allow for AM33-2. Tidy
28668 all of the alternative outputs.
28669 (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
28670 (udivmodsi4): Delete expander and promote *udivmodsi4. Disallow
28672 (udivsi3, umodsi3): New patterns for MN103 only.
28674 2011-01-19 Joern Rennecke <amylaar@spamcop.net>
28676 * doc/tm.texi.in: Spell out that a lack of register class unions
28678 * doc/tm.texi: Regenerate.
28680 2011-01-19 Jakub Jelinek <jakub@redhat.com>
28682 PR rtl-optimization/47337
28683 * dce.c (check_argument_store): New function.
28684 (find_call_stack_args): Ignore debug insns. Use check_argument_store.
28686 PR tree-optimization/47290
28687 * tree-eh.c (infinite_empty_loop_p): New function.
28688 (cleanup_empty_eh): Use it.
28690 2011-01-18 Steve Ellcey <sje@cup.hp.com>
28693 * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
28694 (a64_expand_widen_sum): Ditto.
28695 * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
28696 (vec_extract_evenodd_help): Ditto.
28697 (vec_extract_evenv4hi): Ditto.
28698 (vec_extract_oddv4hi): Ditto.
28699 (vec_extract_evenv2si): Ditto.
28700 (vec_extract_oddv2si): Ditto.
28701 (vec_extract_evenv2sf): Ditto.
28702 (vec_extract_oddv2sf): Ditto.
28703 (vec_pack_trunc_v4hi: Ditto.
28704 (vec_pack_trunc_v2si): Ditto.
28705 (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
28706 (vec_interleave_highv8qi): Ditto.
28708 (vec_extract_oddv8qi): Ditto.
28709 (vec_interleave_lowv4hi): Ditto.
28710 (vec_interleave_highv4hi): Ditto.
28711 (vec_interleave_lowv2si): Ditto.
28712 (vec_interleave_highv2si): Ditto.
28714 2011-01-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
28716 * doc/extend.texi: Mention __float128 support on hppa HP-UX.
28717 * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
28718 * config/pa/pa.c (pa_expand_builtin): New. Include "langhooks.h".
28719 (pa_c_mode_for_suffix): New.
28720 (TARGET_EXPAND_BUILTIN): Define.
28721 (TARGET_C_MODE_FOR_SUFFIX): Define.
28722 (pa_builtins): Define.
28723 (pa_init_builtins): Register __float128 type and init new support
28725 * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
28726 * config/pa/quadlib.c (_U_Qfcopysign): New.
28728 2011-01-18 Eric Botcazou <ebotcazou@adacore.com>
28730 PR middle-end/46894
28731 * explow.c (allocate_dynamic_stack_space): Do not assume more than
28732 BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
28735 2011-01-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
28737 PR tree-optimization/47179
28738 * config/spu/spu.c (spu_ref_may_alias_errno): New function.
28739 (TARGET_REF_MAY_ALIAS_ERRNO): Define.
28741 2011-01-18 Richard Guenther <rguenther@suse.de>
28743 PR rtl-optimization/47216
28744 * emit-rtl.c: Include tree-flow.h.
28745 (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
28746 of replicating it with different semantics.
28747 * Makefile.in (emit-rtl.o): Adjust.
28749 2011-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
28751 * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
28752 (cortex_a9_dp): Handle neon types correctly.
28754 2011-01-18 Jakub Jelinek <jakub@redhat.com>
28756 PR rtl-optimization/47299
28757 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
28758 subtarget. Use normal multiplication if both operands are constants.
28759 * expmed.c (expand_widening_mult): Don't try to optimize constant
28760 multiplication if op0 has VOIDmode. Convert op1 constant to mode
28763 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
28765 * doc/lto.texi (LTO): Ensure two spaces after period. Fix
28766 spacing after 'e.g.', typos, comma, hyphenation.
28768 2011-01-17 Richard Henderson <rth@redhat.com>
28770 * config/rx/predicates.md (rx_constshift_operand): Use match_test.
28771 (rx_restricted_mem_operand): New.
28772 (rx_shift_operand): Use register_operand.
28773 (rx_source_operand, rx_compare_operand): Likewise.
28774 * config/rx/rx.md (addsi3_flags): New expander.
28775 (adddi3): Rewrite as expander.
28776 (adc_internal, *adc_flags, adddi3_internal): New patterns.
28777 (subsi3_flags): New expander.
28778 (subdi3): Rewrite as expander.
28779 (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
28781 * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
28782 (rx_init_builtins): Remove sat builtin.
28783 (rx_expand_builtin): Likewise.
28784 * config/rx/rx.md (ssaddsi3): New.
28785 (*sat): Rename from sat. Represent the CC_REG input.
28787 * config/rx/predicates.md (rshift_operator): New.
28788 * config/rx/rx.c (rx_expand_insv): Remove.
28789 * config/rx/rx-protos.h: Update.
28790 * config/rx/rx.md (*bitset): Rename from bitset. Swap the ashift
28791 operand to the canonical position.
28792 (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
28793 (*bitclr, *bitclr_in_memory): Similarly.
28794 (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
28795 (insv): Retain the zero_extract in the expansion.
28797 * config/rx/rx.md (bswapsi2): Use = not + for output reload.
28798 (bswaphi2, bitinvert, revw): Likewise.
28800 * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
28801 (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
28802 * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
28803 (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
28804 (bitset, bitset_in_memory): Likewise.
28805 (bitinvert, bitinvert_in_memory): Likewise.
28806 (bitclr, bitclr_in_memory): Likewise.
28807 (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
28808 (rx_strend, rx_cmpstrn): Likewise.
28809 (rx_setmem): Likewise. Make the source BLKmode to match the dest.
28810 (bitop peep2 patterns): Remove.
28812 * config/rx/rx.c (rx_match_ccmode): New.
28813 * config/rx/rx-protos.h: Update.
28814 * config/rx/rx.md (abssi2): Clobber, don't set flags.
28815 (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
28816 (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
28817 (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
28818 (fix_truncsfsi2, floatsisf2): Likewise.
28819 (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
28820 (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
28821 (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
28822 (*subsi3_flags, *xorsi3_flags): New.
28824 * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
28826 * config/rx/rx.c (rx_print_operand): Remove workaround for
28827 unsplit comparison operations.
28829 * config/rx/rx.md (movsicc): Split after reload.
28830 (*movsicc): Merge *movsieq and *movsine via match_operator.
28831 (*stcc): New pattern.
28833 * config/rx/rx.c (rx_float_compare_mode): Remove.
28834 * config/rx/rx.h (rx_float_compare_mode): Remove.
28835 * config/rx/rx.md (cstoresi4): Split after reload.
28836 (*sccc): New pattern.
28838 * config/rx/predicates.md (label_ref_operand): New.
28839 (rx_z_comparison_operator): New.
28840 (rx_zs_comparison_operator): New.
28841 (rx_fp_comparison_operator): New.
28842 * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
28843 Validate that the flags are set properly for the comparison.
28844 (rx_gen_cond_branch_template): Remove.
28845 (rx_cc_modes_compatible): Remove.
28846 (mode_from_flags): New.
28847 (flags_from_code): Rename from flags_needed_for_conditional.
28848 (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
28849 (rx_select_cc_mode): Likewise.
28850 (rx_split_fp_compare): New.
28851 (rx_split_cbranch): New.
28852 * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
28853 (*cbranchsi4): Use match_operator and rx_split_cbranch.
28854 (*cbranchsf4): Similarly.
28855 (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>. Use
28856 match_operator and rx_split_cbranch.
28857 (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
28858 tstbranchsi4m_ne. Use match_operator and rx_split_cbranch.
28859 (*cmpsi): Rename from cmpsi.
28860 (*tstsi): Rename from tstsi.
28861 (*cmpsf): Rename from cmpsf; use CC_Fmode.
28862 (*conditional_branch): Rename from conditional_branch.
28863 (*reveresed_conditional_branch): Remove.
28864 (b<code>): Remove expander.
28865 * config/rx/rx-protos.h: Update.
28867 * config/rx/rx.c (rx_compare_redundant): Remove.
28868 * config/rx/rx.md (cmpsi): Don't use it.
28869 * config/rx/rx-protos.h: Update.
28871 * config/rx/rx-modes.def (CC_F): New mode.
28872 * config/rx/rx.c (rx_select_cc_mode): New.
28873 * config/rx/rx.h (SELECT_CC_MODE): Use it.
28874 * config/rx/rx-protos.h: Update.
28876 2011-01-17 Richard Henderson <rth@redhat.com>
28878 * except.c (dump_eh_tree): Fix stray ; after for statement.
28880 2011-01-17 Richard Guenther <rguenther@suse.de>
28882 PR tree-optimization/47313
28883 * tree-inline.c (tree_function_versioning): Move DECL_RESULT
28884 handling before copying the body. Properly deal with
28885 by-reference result in SSA form.
28887 2011-01-17 Ian Lance Taylor <iant@google.com>
28890 * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
28891 (struct_value_alias_set): Don't define.
28892 (sparc_option_override): Don't set sparc_sr_alias_set and
28893 struct_value_alias_set.
28894 (save_or_restore_regs): Use gen_frame_mem rather than calling
28896 (sparc_struct_value_rtx): Likewise.
28898 2011-01-17 H.J. Lu <hongjiu.lu@intel.com>
28901 * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
28902 (_mm_maskstore_pd): Likewise.
28903 (_mm_maskload_ps): Likewise.
28904 (_mm_maskstore_ps): Likewise.
28905 (_mm256_maskload_pd): Change mask to __m256i.
28906 (_mm256_maskstore_pd): Likewise.
28907 (_mm256_maskload_ps): Likewise.
28908 (_mm256_maskstore_ps): Likewise.
28910 * config/i386/i386-builtin-types.def: Updated.
28911 (ix86_expand_special_args_builtin): Likewise.
28913 * config/i386/i386.c (bdesc_special_args): Update
28914 __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
28915 __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
28916 __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
28917 __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
28919 * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
28920 Use <avxpermvecmode> on mask register.
28921 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
28923 2011-01-17 Olivier Hainque <hainque@adacore.com>
28924 Michael Haubenwallner <michael.haubenwallner@salomon.at>
28925 Eric Botcazou <ebotcazou@adacore.com>
28928 * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
28929 if <= USHRT_MAX in 32-bit mode.
28931 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
28933 * doc/install.texi (Configuration, Specific): Wrap long
28934 lines in examples. Allow line wrapping in long options
28935 and URLs where beneficial for PDF output.
28937 2011-01-16 Richard Sandiford <rdsandiford@googlemail.com>
28939 * config/mips/mips.c (mips_classify_symbol): Don't return
28940 SYMBOL_PC_RELATIVE for nonlocal labels.
28942 2011-01-15 Eric Botcazou <ebotcazou@adacore.com>
28944 * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
28946 2011-01-15 Jan Hubicka <jh@suse.cz>
28948 PR tree-optimization/47276
28949 * ipa.c (function_and_variable_visibility): Do not try to mark alias
28950 declarations as needed.
28952 2011-01-15 Martin Jambor <mjambor@suse.cz>
28954 * common.opt (fdevirtualize): New flag.
28955 * doc/invoke.texi (Option Summary): Document it.
28956 * opts.c (default_options_table): Add devirtualize flag.
28957 * ipa-prop.c (detect_type_change): Return immediately if
28958 devirtualize flag is not set.
28959 (detect_type_change_ssa): Likewise.
28960 (compute_known_type_jump_func): Likewise.
28961 (ipa_analyze_virtual_call_uses): Likewise.
28963 2011-01-14 Martin Jambor <mjambor@suse.cz>
28965 PR tree-optimization/45934
28966 PR tree-optimization/46302
28967 * ipa-prop.c (type_change_info): New type.
28968 (stmt_may_be_vtbl_ptr_store): New function.
28969 (check_stmt_for_type_change): Likewise.
28970 (detect_type_change): Likewise.
28971 (detect_type_change_ssa): Likewise.
28972 (compute_complex_assign_jump_func): Check for dynamic type change.
28973 (compute_complex_ancestor_jump_func): Likewise.
28974 (compute_known_type_jump_func): Likewise.
28975 (compute_scalar_jump_functions): Likewise.
28976 (ipa_analyze_virtual_call_uses): Likewise.
28977 (ipa_analyze_node): Push and pop cfun, set current_function_decl.
28979 2011-01-14 Joseph Myers <joseph@codesourcery.com>
28981 * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
28982 * config/i386/i386.opt (msse5): New Alias.
28984 2011-01-14 Joseph Myers <joseph@codesourcery.com>
28986 * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
28987 * config/sparc/linux64.h (CC1_SPEC): Likewise.
28988 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
28989 * config/sparc/sparc.h (CC1_SPEC): Likewise.
28991 2011-01-14 Joseph Myers <joseph@codesourcery.com>
28993 * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
28995 * config/sparc/linux64.h (CC1_SPEC): Likewise.
28996 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
28997 * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
28998 * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
29000 * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
29002 2011-01-14 Joseph Myers <joseph@codesourcery.com>
29004 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
29006 2011-01-14 Mike Stump <mikestump@comcast.net>
29008 * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
29009 * config/fr30/fr30.md: Likweise
29010 (movsi_push): Likewise.
29011 (movsi_pop): Likewise.
29012 (enter_func): Likewise.
29013 * config/moxie/moxie.md (movsi_push): Likewise.
29014 (movsi_pop): Likewise.
29016 2011-01-14 Joseph Myers <joseph@codesourcery.com>
29018 * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
29019 %{no_archive} %{exact_version}.
29020 * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
29021 * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
29022 %{no_archive} %{exact_version}.
29023 * config/mips/openbsd.h (LINK_SPEC): Likewise.
29024 * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
29025 * config/mips/vxworks.h: Likewise.
29027 2011-01-14 Joseph Myers <joseph@codesourcery.com>
29029 * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
29031 2011-01-14 Joseph Myers <joseph@codesourcery.com>
29033 * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
29034 ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
29036 2011-01-14 Joseph Myers <joseph@codesourcery.com>
29038 * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
29041 2011-01-14 Joseph Myers <joseph@codesourcery.com>
29043 * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
29045 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
29046 CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
29048 (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
29049 Don't handle -shlib.
29051 2011-01-14 Joseph Myers <joseph@codesourcery.com>
29053 * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
29054 (CC1_SPEC): Don't handle -profile.
29056 2011-01-14 Joseph Myers <joseph@codesourcery.com>
29058 * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
29059 * config/mips/mips.h (CC1_SPEC): Likewise.
29061 2011-01-14 Joseph Myers <joseph@codesourcery.com>
29063 * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
29064 * config/mips/mips.h (CC1_SPEC): Likewise.
29066 2011-01-14 Joseph Myers <joseph@codesourcery.com>
29068 * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
29069 * config/m32r/linux.h (LINK_SPEC): Likewise.
29070 * config/mips/linux.h (LINK_SPEC): Likewise.
29071 * config/mips/linux64.h (LINK_SPEC): Likewise.
29072 * config/sparc/linux.h (LINK_SPEC): Likewise.
29073 * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
29074 LINK_SPEC): Likewise.
29075 * config/xtensa/linux.h (LINK_SPEC): Likewise.
29077 2011-01-14 Joseph Myers <joseph@codesourcery.com>
29079 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
29081 * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
29083 2011-01-14 Joseph Myers <joseph@codesourcery.com>
29085 * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
29086 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
29088 2011-01-14 Joseph Myers <joseph@codesourcery.com>
29090 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
29092 2011-01-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
29094 * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
29095 supports -Bstatic/-Bdynamic.
29096 * configure: Regenerate.
29098 2011-01-14 Jan Hubicka <jh@suse.cz>
29099 Jack Howarth <howarth@bromo.med.uc.edu>
29102 * config/darwin.c (darwin_override_options): Honor flag_gtoggle
29103 when checking debug_info_level. Test write_symbols instead of
29104 debug_hooks->var_location when setting flag_var_tracking_uninit.
29106 2011-01-14 Richard Guenther <rguenther@suse.de>
29108 PR tree-optimization/47179
29109 * target.def (ref_may_alias_errno): New target hook.
29110 * targhooks.h (default_ref_may_alias_errno): Declare.
29111 * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
29112 (default_ref_may_alias_errno): New function.
29113 * target.h (struct ao_ref_s): Declare.
29114 * tree-ssa-alias.c: Include target.h.
29115 (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
29116 * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
29117 (targhooks.o): Likewise.
29118 * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
29119 * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
29121 2011-01-14 Richard Guenther <rguenther@suse.de>
29123 * tree-ssa-structalias.c (new_var_info): Use DECL_HARD_REGISTER.
29125 2011-01-14 Richard Guenther <rguenther@suse.de>
29127 PR tree-optimization/47280
29128 * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
29129 return CFG changes.
29130 (tree_ssa_forward_propagate_single_use_vars): Deal with
29131 CFG changes from associate_plusminus.
29133 2011-01-14 Richard Guenther <rguenther@suse.de>
29135 PR middle-end/47281
29137 2011-01-11 Richard Guenther <rguenther@suse.de>
29139 PR tree-optimization/46076
29140 * tree-ssa.c (useless_type_conversion_p): Conversions from
29141 unprototyped to empty argument list function types are useless.
29143 2011-01-14 Richard Guenther <rguenther@suse.de>
29145 PR tree-optimization/47286
29146 * tree-ssa-structalias.c (new_var_info): Register variables are global.
29148 2011-01-14 Martin Jambor <mjambor@suse.cz>
29150 PR middle-end/46823
29151 * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
29153 2011-01-13 Anatoly Sokolov <aesok@post.ru>
29155 * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
29156 LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
29157 * config/xtensa/xtensa.c (xtensa_libcall_value,
29158 xtensa_function_value_regno_p): New functions.
29159 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
29161 2011-01-13 Kai Tietz <kai.tietz@onevision.com>
29164 * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
29166 * config/i386/i386-protos.h (i386_pe_assemble_visibility):
29167 New function prototype.
29168 * config/i386/winnt.c (i386_pe_assemble_visibility):
29169 Warn only if attribute was specified by user.
29171 2011-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
29174 * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
29176 (floatunsdidf2_fcfidu): Ditto.
29178 2011-01-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
29180 * config/s390/s390.c (print_operand_address): Replace 'error' with
29181 'output_operand_lossage'.
29182 (print_operand): Likewise.
29184 2011-01-13 Jeff Law <law@redhat.com>
29186 PR rtl-optimization/39077
29187 * doc/invoke.texi (max-gcse-insertion-ratio): Document.
29188 * params.h (MAX_GCSE_INSERTION_RATIO): Define.
29189 * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
29190 * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
29191 * gcse.c (prune_insertions_deletions): New function.
29192 (compute_pre_data): Use it.
29194 2011-01-13 Dodji Seketeli <dodji@redhat.com>
29197 * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
29199 (prune_unused_types_mark): Use it.
29201 2011-01-13 Andrey Belevantsev <abel@ispras.ru>
29203 PR rtl-optimization/45352
29204 * sel-sched.c: Update copyright years.
29205 (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
29206 in the advancing loop when we have issued issue_rate insns.
29208 2011-01-12 Richard Henderson <rth@redhat.com>
29210 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
29211 (TARGET_MD_ASM_CLOBBERS): New.
29213 * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
29214 (TARGET_DELEGITIMIZE_ADDRESS): New.
29216 * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
29217 (clzsi2, *bsch): New patterns.
29219 * config/mn10300/mn10300.md (INT): New mode iterator.
29220 (*mov<INT>_clr): New pattern, and peep2 to generate it.
29222 * config/mn10300/mn10300.c (mn10300_option_override): Force enable
29223 flag_split_wide_types.
29225 * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
29226 (mn10300_trampoline_init): Rewrite without a template, an immediate
29227 load and a direct branch.
29228 * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
29230 2011-01-12 Anatoly Sokolov <aesok@post.ru>
29232 * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
29233 * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
29234 * config/s390/s390.c (s390_output_addr_const_extra): Make static.
29235 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
29237 2011-01-12 Kai Tietz <kai.tietz@onevision.com>
29240 * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
29243 2011-01-12 Jan Hubicka <jh@suse.cz>
29246 * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
29247 (PLUGIN_COND_CLOSE): New macro.
29248 (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
29250 2011-01-12 Richard Guenther <rguenther@suse.de>
29253 * lto-streamer-out.c (output_gimple_stmt): Do not wrap
29254 register variables in a MEM_REF.
29256 2011-01-12 Joseph Myers <joseph@codesourcery.com>
29258 * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
29259 crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
29260 hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
29261 i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
29262 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
29263 x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
29264 ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
29265 m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
29266 mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
29267 s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
29268 sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
29269 am33_2.0-*-linux*): Use gnu-user.h before linux.h.
29270 * config/gnu-user.h: New. Copied from linux.h.
29271 (LINUX_TARGET_STARTFILE_SPEC): Rename to
29272 GNU_USER_TARGET_STARTFILE_SPEC.
29273 (LINUX_TARGET_ENDFILE_SPEC): Rename to
29274 GNU_USER_TARGET_ENDFILE_SPEC.
29275 (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
29276 (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
29277 (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
29278 LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
29279 CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
29280 UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
29281 BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
29282 BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
29283 LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
29284 TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
29285 * config/arm/linux-eabi.h (CC1_SPEC): Use
29286 GNU_USER_TARGET_CC1_SPEC.
29287 (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
29288 (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
29289 (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
29290 * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
29291 LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
29292 LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
29293 CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
29294 LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
29296 2011-01-12 Richard Guenther <rguenther@suse.de>
29299 * doc/invoke.texi (ffast-math): Document it is turned on
29302 2011-01-12 Jan Hubicka <jh@suse.cz>
29304 PR tree-optimization/47233
29305 * opts.c (common_handle_option): Disable ipa-reference with profile
29308 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
29310 * c-parser.c (c_parser_objc_at_property_declaration): Improved
29313 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
29315 * c-parser.c (c_lex_one_token): Updated and reindented some
29316 comments. No changes in code.
29318 2011-01-11 Ian Lance Taylor <iant@google.com>
29320 * godump.c (go_output_var): Don't output the variable if there is
29321 already a type with the same name.
29323 2011-01-11 Ian Lance Taylor <iant@google.com>
29325 * godump.c (go_format_type): Don't generate float80.
29327 2011-01-11 Richard Henderson <rth@redhat.com>
29329 * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
29330 declaration. Rewrite for both speed and size.
29331 (mn10300_address_cost_1): Remove.
29332 (mn10300_register_move_cost): New.
29333 (mn10300_memory_move_cost): New.
29334 (mn10300_rtx_costs): Rewrite for both speed and size. Don't handle
29335 ZERO_EXTRACT. Do handle UNSPEC, arithmetic, logicals, compare,
29336 extensions, shifts, BSWAP, CLZ.
29337 (mn10300_wide_const_load_uses_clr): Remove.
29338 (TARGET_REGISTER_MOVE_COST): New.
29339 (TARGET_MEMORY_MOVE_COST): New.
29340 * config/mn10300/mn10300-protos.h: Update.
29341 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
29343 * config/mn10300/constraints.md ("R", "T"): Remove constraints.
29344 * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
29345 * config/mn10300/mn10300-protos.h: Update.
29346 * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
29347 (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
29348 (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
29349 (*test_int_bitfield, *test_byte_bitfield): Remove.
29350 (*bit_test, *subreg_bit_test): Remove.
29351 * config/mn10300/predicates.md (const_8bit_operand): Remove.
29353 * config/mn10300/constraints.md ("c"): Rename from "A".
29354 ("A", "D"): New constraint letters.
29355 * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
29356 (fmssf4, fnmasf4, fnmssf4): Likewise.
29358 * config/mn10300/mn10300.md (isa): New attribute.
29359 (enabled): New attribute.
29361 * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
29362 (abssf2, negsf2): Define only for hardware fp.
29363 (sqrtsf2): Reformat.
29364 (addsf3, subsf3, mulsf3): Merge expander and insn.
29366 * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
29367 (DEBUGGER_AUTO_OFFSET): Remove.
29368 (DEBUGGER_ARG_OFFSET): Remove.
29370 * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
29371 Emit register stores with the same offsets as the hardware.
29372 (mn10300_store_multiple_operation): Don't check that the register
29373 save offsets are monotonic.
29374 * config/mn10300/mn10300-protos.h: Update.
29376 * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
29378 * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
29379 in terms of the value on the stack, not the MDR register.
29381 2011-01-11 Jan Hubicka <jh@suse.cz>
29385 * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
29386 (symbol_alias_set_destroy, symbol_alias_set_contains,
29387 propagate_aliases_backward): Declare.
29388 * lto-streamer-out.c (struct sets): New sturcture.
29389 (trivally_defined_alias): New function.
29390 (output_alias_pair_p): Rewrite.
29391 (output_unreferenced_globals): Fix output of alias pairs.
29392 (produce_symtab): Likewise.
29393 * ipa.c (function_and_variable_visibility): Set weak alias destination
29395 * varasm.c (symbol_alias_set_t): Remove.
29396 (symbol_alias_set_destroy): Export.
29397 (propagate_aliases_forward, propagate_aliases_backward): New functions
29399 (compute_visible_aliases): ... this one; remove.
29400 (trivially_visible_alias): New
29401 (trivially_defined_alias): New.
29402 (remove_unreachable_alias_pairs): Rewrite.
29403 (finish_aliases_1): Reorganize code checking if alias is defined.
29404 * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
29407 2011-01-11 Richard Guenther <rguenther@suse.de>
29409 PR tree-optimization/46076
29410 * tree-ssa.c (useless_type_conversion_p): Conversions from
29411 unprototyped to empty argument list function types are useless.
29413 2011-01-11 Richard Guenther <rguenther@suse.de>
29415 PR middle-end/45235
29416 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
29417 volatile MEMs as MEM_READONLY_P.
29419 2011-01-11 Richard Guenther <rguenther@suse.de>
29421 PR tree-optimization/47239
29422 * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
29424 2011-01-11 Jeff Law <law@redhat.com>
29426 PR tree-optimization/47086
29427 * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
29428 IVs from statements that might throw.
29430 2011-01-10 Jan Hubicka <jh@suse.cz>
29433 * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
29435 2011-01-10 Jan Hubicka <jh@suse.cz>
29438 * profile.c (read_profile_edge_counts): Ignore profile inconistency
29439 when correcting profile.
29441 2011-01-10 Jan Hubicka <jh@suse.cz>
29444 * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
29445 DECL_FINI_PRIORITY.
29446 * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
29447 Restore DECL_FINI_PRIORITY.
29449 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
29451 * doc/gimple.texi: Fix quoting of multi-word return values in
29452 @deftypefn statements. Ensure presence of return value. Wrap
29453 overlong @deftypefn lines.
29454 (is_gimple_operand, is_gimple_min_invariant_address): Remove
29455 descriptions of removed functions.
29456 * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
29457 of multi-word return value in @deftypefn statement.
29459 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
29461 * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
29462 (Conditional Expressions, Logical Operators)
29463 (Statement and operand traversals): Do not indent smallexample
29464 code. Fix duplicate function argument in example.
29466 2011-01-10 Jeff Law <law@redhat.com>
29468 PR tree-optimization/47141
29469 * ipa-split.c (split_function): Handle case where we are
29470 returning a value and the return block has a virtual operand phi.
29472 2011-01-10 Jan Hubicka <jh@suse.cz>
29474 PR tree-optimization/47234
29475 * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
29476 (pass_feedback_split_functions): Declare.
29477 * passes.c (init_optimization_passes): Add ipa-split as subpass of
29479 * ipa-split.c (gate_split_functions): Update comments; disable
29480 split-functions for profile_arc_flag and branch_probabilities.
29481 (gate_feedback_split_functions): New function.
29482 (execute_feedback_split_functions): New function.
29483 (pass_feedback_split_functions): New global var.
29485 2011-01-10 H.J. Lu <hongjiu.lu@intel.com>
29488 * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
29489 calling gimple_call_set_cannot_inline.
29491 2011-01-10 Iain Sandoe <iains@gcc.gnu.org>
29493 * config/darwin-sections.def: Remove unused section.
29495 2011-01-10 Dave Korn <dave.korn.cygwin@gmail.com>
29498 * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
29500 2011-01-09 Nicola Pero <nicola.pero@meta-innovation.com>
29503 * c-parser.c (c_parser_declaration_or_fndef): Improved
29506 2011-01-09 Kai Tietz <kai.tietz@onevision.com>
29508 * config/i386/winnt.c (i386_pe_start_function): Make sure
29509 to switch back to function's section.
29511 2011-01-09 Iain Sandoe <iains@gcc.gnu.org>
29515 * plugin.c: Move include of dlfcn.h from here...
29516 * system.h: ... to here.
29518 2011-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
29520 * doc/cpp.texi (C++ Named Operators): Fix markup for header
29522 * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
29523 two extra empty pages in PDF output.
29525 2011-01-08 Nicola Pero <nicola.pero@meta-innovation.com>
29528 * c-parser.c (c_parser_objc_type_name): If the type is unknown,
29529 for error recovery purposes behave as if it was not specified so
29530 that the default type is usd.
29532 2011-01-07 Jan Hubicka <jh@suse.cz>
29534 PR tree-optmization/46469
29535 * ipa.c (function_and_variable_visibility): Clear needed flags on
29536 nodes with external decls; handle weakrefs merging correctly.
29538 2011-01-07 Joseph Myers <joseph@codesourcery.com>
29540 * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
29543 2011-01-07 Jan Hubicka <jh@suse.cz>
29545 * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
29546 and no longer claim that gold is required for linker plugin.
29547 * configure: Regenerate.
29548 * gcc.c (PLUGIN_COND): New macro.
29549 (LINK_COMMAND_SPEC): Use it.
29550 (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
29551 * config.in (HAVE_LTO_PLUGIN): New.
29552 * configure.ac (--with-lto-plugin): New parameter; autodetect
29555 2011-01-07 Jan Hubicka <jh@suse.cz>
29557 PR tree-optimization/46367
29558 * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
29559 when we can update original.
29560 (cgraph_mark_inline_edge): Sanity check.
29561 * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
29563 2011-01-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
29565 * config/spu/spu.h (ASM_COMMENT_START): Define.
29567 2011-01-07 H.J. Lu <hongjiu.lu@intel.com>
29570 * gcc.c (%>S): New.
29571 (SWITCH_KEEP_FOR_GCC): Likewise.
29572 (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
29573 (do_spec_1): Handle "%>".
29575 * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
29577 2011-01-07 Jakub Jelinek <jakub@redhat.com>
29580 * config/i386/i386.c (ix86_delegitimize_address): If
29581 simplify_gen_subreg fails, return orig_x.
29584 * value-prof.c (gimple_stringop_fixed_value): Handle
29585 lhs of the call properly.
29587 2011-01-07 Jan Hubicka <jh@suse.cz>
29590 * lto-opt.c (lto_reissue_options): Set flag_shlib.
29592 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
29594 * target.def (function_switched_text_sections): New hook.
29595 * doc/tm.texi: Regenerated.
29596 * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
29597 * final.c (default_function_switched_text_sections): New.
29598 (final_scan_insn): Call function_switched_text_sections when a
29599 mid-function section change occurs.
29600 * output.h (default_function_switched_text_sections): Declare.
29601 * config/darwin-protos.h (darwin_function_switched_text_sections):
29603 * config/darwin.c (darwin_function_switched_text_sections): New.
29604 * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
29606 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
29608 * dwarf2out.c (gen_subprogram_die): Add pubnames with code ranges for
29609 DWARF >= 3. Add pubnames for the primary section and a reduced DIE for
29610 the secondary code fragment when outputting for DWARF == 2.
29612 2011-01-07 Anatoly Sokolov <aesok@post.ru>
29614 * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
29615 * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
29617 * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
29618 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
29620 2011-01-06 Eric Botcazou <ebotcazou@adacore.com>
29623 * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
29624 when it is not empty.
29626 2011-01-06 Changpeng Fang <changpeng.fang@amd.com>
29629 * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
29630 (case ${target}): Add btver1.
29631 * config/i386/driver-i386.c (host_detect_local_cpu): Let
29632 -march=native recognize btver1 processors.
29633 * config/i386/i386-c.c (ix86_target_macros_internal): Add
29634 btver1 def_and_undef
29635 * config/i386/i386.c (struct processor_costs btver1_cost): New
29637 (m_BTVER1): New definition.
29638 (m_AMD_MULTIPLE): Includes m_BTVER1.
29639 (initial_ix86_tune_features): Add btver1 tune.
29640 (processor_target_table): Add btver1 entry.
29641 (static const char *const cpu_names): Add btver1 entry.
29642 (software_prefetching_beneficial_p): Add btver1.
29643 (ix86_option_override_internal): Add btver1 instruction sets.
29644 (ix86_issue_rate): Add btver1.
29645 (ix86_adjust_cost): Add btver1.
29646 * config/i386/i386.h (TARGET_BTVER1): New definition.
29647 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
29648 (enum processor_type): Add PROCESSOR_BTVER1.
29649 * config/i386/i386.md (define_attr "cpu"): Add btver1.
29651 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
29654 * config/i386/i386.c (legitimize_tls_address)
29655 <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
29656 * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
29657 (tls_initial_exec_64_sun): New pattern.
29659 2011-01-06 Gerald Pfeifer <gerald@pfeifer.com>
29661 * doc/invoke.texi (Overall Options): Improve wording and markup
29662 of the description of -wrapper.
29664 2011-01-06 Joseph Myers <joseph@codesourcery.com>
29666 * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
29667 rdynamic, threads): New Driver options.
29669 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
29672 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
29673 if coming from .tdata.
29674 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
29676 2011-01-06 Jan Hubicka <jh@suse.cz>
29679 * collect2.c (main): Do not enable LTOmode when plugin is active.
29681 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
29684 * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
29685 --version output if supported.
29686 * configure: Regenerate.
29688 2011-01-06 Joseph Myers <joseph@codesourcery.com>
29690 * config/linux-android.opt (tno-android-cc, tno-android-ld): New
29693 2011-01-06 Jakub Jelinek <jakub@redhat.com>
29696 * c-convert.c (convert): When converting a complex expression
29697 other than COMPLEX_EXPR to a different complex type, ensure
29698 c_save_expr is called instead of save_expr, unless in_late_binary_op.
29699 * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
29700 when converting COMPLEX_TYPE.
29702 2011-01-06 Ira Rosen <irar@il.ibm.com>
29704 PR tree-optimization/47139
29705 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
29706 only the last reduction value is used outside the loop. Update
29709 2011-01-05 Joseph Myers <joseph@codesourcery.com>
29711 * config/rtems.opt: New.
29712 * config.gcc (*-*-rtems*): Use rtems.opt.
29714 2011-01-05 Changpeng Fang <changpeng.fang@amd.com>
29716 * config/i386/i386.c (ix86_option_override_internal): Bulldozer
29717 processors do not support 3DNow instructions.
29719 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
29721 * config/spu/spu.c (spu_option_override): Set parameter
29722 PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
29724 2011-01-05 Jan Hubicka <jh@suse.cz>
29726 * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
29727 at the command line.
29729 2011-01-05 Martin Jambor <mjambor@suse.cz>
29732 * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
29733 deltas on streamed outgoing edges.
29734 (output_node_opt_summary): Output info for outgoing edges only when
29735 the node is in new parameter set.
29736 (output_cgraph_opt_summary): New parameter set, passed to the two
29737 aforementioned functions. Update its forward declaration and its
29740 2011-01-05 Tom Tromey <tromey@redhat.com>
29742 * c-parser.c (c_parser_omp_atomic): Pass location of assignment
29743 operator to c_finish_omp_atomic.
29744 * c-typeck.c (lvalue_or_else): Add 'loc' argument.
29745 (build_unary_op): Update.
29746 (build_modify_expr): Update.
29747 (build_asm_expr): Update.
29749 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
29751 * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
29752 newly inserted insns.
29753 (pad_bb): Likewise.
29754 (spu_emit_branch_hint): Likewise.
29755 (insert_hbrp_for_ilb_runout): Likewise.
29756 (spu_machine_dependent_reorg): Call df_finish_pass after
29757 schedule_insns returns.
29759 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
29761 * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
29763 2011-01-05 Eric Botcazou <ebotcazou@adacore.com>
29765 PR tree-optimization/47005
29766 * tree-sra.c (struct access): Add 'non_addressable' bit.
29767 (create_access): Set it for a DECL_NONADDRESSABLE_P field.
29768 (decide_one_param_reduction): Return 0 if the parameter is passed by
29769 reference and one of the accesses in the group is non_addressable.
29771 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
29773 PR tree-optimization/47056
29774 * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
29775 (mark_load): Likewise. Handle FUNCTION_DECL specially.
29776 (mark_store): Likewise. Pass STMT to ipa_record_reference.
29778 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
29780 * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
29781 initializer. Skip view conversions from aggregate types.
29783 2011-01-04 Kai Tietz <kai.tietz@onevision.com>
29786 * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
29788 2011-01-04 Philipp Thomas <pth@suse.de>
29790 * config/microblaze/microbalse.opt (mxl-float-convert): Fix
29793 2011-01-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
29795 * function.c (thread_prologue_and_epilogue_insns): Do not crash
29796 on empty epilogue sequences.
29798 2011-01-04 Joseph Myers <joseph@codesourcery.com>
29800 * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
29801 non-static): New Driver options.
29803 2011-01-04 Jie Zhang <jie@codesourcery.com>
29806 * gcc.c (default_compilers[]): Set combinable field to 0
29807 for all assembly languages.
29809 2011-01-04 Mingjie Xing <mingjie.xing@gmail.com>
29811 * config/mips/loongson3a.md: New file.
29812 * config/mips/mips.md: Include loongson3a.md.
29813 * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
29816 2011-01-03 Eric Botcazou <ebotcazou@adacore.com>
29818 PR middle-end/47017
29819 * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
29820 instead of convert_memory_address_addr_space on the base expression.
29822 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
29824 * config/spu/spu.c (spu_option_override): Update error text
29825 for bad -march= / -mtune= values.
29827 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
29829 * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
29830 if branch-hint optimization will be performed.
29832 2011-01-03 Jakub Jelinek <jakub@redhat.com>
29834 PR tree-optimization/47148
29835 * ipa-split.c (split_function): Convert arguments to
29836 DECL_ARG_TYPE if possible.
29838 PR tree-optimization/47155
29839 * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
29840 when computing uns.
29842 PR rtl-optimization/47157
29843 * combine.c (try_combine): If undobuf.other_insn becomes
29844 (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
29845 and set *new_direct_jump_p too.
29847 2011-01-03 Sebastian Pop <sebastian.pop@amd.com>
29849 PR tree-optimization/47021
29850 * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
29852 2011-01-03 Jakub Jelinek <jakub@redhat.com>
29854 * gcc.c (process_command): Update copyright notice dates.
29855 * gcov.c (print_version): Likewise.
29856 * gcov-dump.c (print_version): Likewise.
29857 * mips-tfile.c (main): Likewise.
29858 * mips-tdump.c (main): Likewise.
29860 2011-01-03 Martin Jambor <mjambor@suse.cz>
29862 PR tree-optimization/46801
29863 * tree-sra.c (type_internals_preclude_sra_p): Check whether
29864 aggregate fields start at byte boundary instead of the bit-field flag.
29866 2011-01-03 H.J. Lu <hongjiu.lu@intel.com>
29869 * gcc.c (main): Revert revision 168407.
29871 2011-01-03 Martin Jambor <mjambor@suse.cz>
29873 * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
29875 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
29877 * tree-vect-generic.c (expand_vector_operations_1): When using vector/
29878 vector optab to expand vector/scalar shift, update gimple to vector.
29880 2011-01-03 Martin Jambor <mjambor@suse.cz>
29882 * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
29885 2011-01-03 Martin Jambor <mjambor@suse.cz>
29887 PR tree-optimization/46984
29888 * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
29890 (cgraph_create_indirect_edge): Fixed line length.
29891 (cgraph_indirect_call_info): Declare.
29892 (cgraph_make_edge_direct) Update declaration.
29893 * cgraph.c (cgraph_allocate_init_indirect_info): New function.
29894 (cgraph_create_indirect_edge): Use it.
29895 (cgraph_make_edge_direct): Made delta HOST_WIDE_INT. Updated all
29897 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
29898 the new thunk_delta representation.
29899 * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
29901 (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
29902 (ipa_read_indirect_edge_info): Likewise.
29903 * lto-cgraph.c (output_edge_opt_summary): New function.
29904 (output_node_opt_summary): Call it on all outgoing edges.
29905 (input_edge_opt_summary): New function.
29906 (input_node_opt_summary): Call it on all outgoing edges.
29908 2011-01-02 H.J. Lu <hongjiu.lu@intel.com>
29911 * gcc.c (main): Don't check have_o when settting combine_inputs.
29913 2011-01-02 Eric Botcazou <ebotcazou@adacore.com>
29915 * regrename.c: Add general comment describing the pass.
29916 (struct du_head): Remove 'length' field.
29917 (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
29918 (regrename_optimize): Do not sort chains. Rework comments, add others.
29919 Force renaming to the preferred class (if any) in the first pass and do
29920 not consider registers that belong to it in the second pass.
29921 (create_new_chain): Do not set 'length' field.
29922 (scan_rtx_reg): Likewise.
29924 2011-01-02 Jakub Jelinek <jakub@redhat.com>
29926 PR tree-optimization/47140
29927 * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
29928 TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
29929 to bit_value_binop.
29931 PR rtl-optimization/47028
29932 * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
29933 parm_birth_insn instead of at the beginning of first bb.
29935 2011-01-02 Mingjie Xing <mingjie.xing@gmail.com>
29937 * doc/generic.texi: Remove duplicated "@subsubsection Statements".
29938 Remove the word "see" before "@pxref".
29939 * doc/rtl.texi: Remove the word "see" before "@pxref".
29941 2011-01-01 Jan Hubicka <jh@suse.cz>
29943 * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
29946 2011-01-01 Kai Tietz <kai.tietz@onevision.com>
29949 * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
29952 Copyright (C) 2011 Free Software Foundation, Inc.
29954 Copying and distribution of this file, with or without modification,
29955 are permitted in any medium without royalty provided the copyright
29956 notice and this notice are preserved.