1 2011-10-02 Richard Henderson <rth@redhat.com>
2 David S. Miller <davem@davemloft.net>
4 * config/sparc/sparc.md (ashlsi3, *ashldi3_sp64): Remove
5 conditional insn type setting, we always emit a shift.
6 (*ashlsi3_extend, *lshrsi3_extend0): New patterns.
7 (*lshrsi3_extend): Rename to *lshrsi3_extend1.
8 * config/sparc/predicates.md (const_one_operand): Delete.
10 2011-10-02 Gerald Pfeifer <gerald@pfeifer.com>
12 * invoke.texi (SPARC Options): Refer to GNU/Linux.
14 2011-10-02 Richard Sandiford <rdsandiford@googlemail.com>
16 * config/mips/mips.c (mips_frame_barrier): New function.
17 (mips_expand_prologue): Call it after allocating stack space.
18 (mips_deallocate_stack): New function.
19 (mips_expand_epilogue): Call mips_frame_barrier and
20 mips_deallocate_stack.
22 2011-10-02 Richard Sandiford <rdsandiford@googlemail.com>
25 * config/mips/sync.md (sync_<optab>_12): Allow zero operands.
26 (sync_old_<optab>_12, sync_new_<optab>_12, sync_nand_12): Likewise.
27 (sync_old_nand_12, sync_new_nand_12, test_and_set_12): Likewise.
29 2011-10-02 Jan Hubicka <jh@suse.cz>
31 * cgraphunit.c (verify_edge_count_and_frequency): Bounds check.
33 * cgraphunit.c (ipa_passes): Remove unrechable nodes.
34 * lto-streamer-out.c (produce_symtab): Skip unused extern declarations.
35 * ipa.c (cgraph_remove_unreachable_nodes): Do not assume that external
36 functions are reachable when address is taken.
37 * tree-sra.c (modify_function): Free dominance info.
39 2011-10-02 Jan Hubicka <jh@suse.cz>
41 * ipa-inline-analysis.c (inline_summary_alloc): Bounds check.
43 * ipa-inline-analysis.c (reset_inline_edge_summary): New function.
44 (reset_inline_summary): New function.
45 (compute_inline_parameters, inline_node_removal_hook,
46 inline_edge_removal_hook): Use it.
47 (inline_free_summary): Reset holders correctly.
48 (inline_generate_summary): Free summary before computing it.
50 2011-10-02 Paolo Carlini <paolo.carlini@oracle.com>
53 * incpath.c (merge_include_chains): Call free_path on
54 heads[QUOTE] and tails[QUOTE].
56 2011-10-02 Jan Hubicka <jh@suse.cz>
59 * lto-symtab.c (lto_symtab_resolve_symbols): Do not resolve
60 when resolution is already availbale from plugin.
61 (lto_symtab_merge_decls_1): Handle LDPR_PREVAILING_DEF_IRONLY_EXP.
62 * cgraph.c (ld_plugin_symbol_resolution): Add prevailing_def_ironly_exp.
63 * lto-cgraph.c (LDPR_NUM_KNOWN): Update.
64 * ipa.c (varpool_externally_visible_p): IRONLY variables are never
66 * varasm.c (resolution_to_local_definition_p): Add
67 LDPR_PREVAILING_DEF_IRONLY_EXP.
68 (resolution_local_p): Likewise.
70 2011-10-01 David S. Miller <davem@davemloft.net>
72 * config/sparc/sparc.opt (VIS3): New option.
73 * doc/invoke.texi: Document it.
74 * config/sparc/sparc.h: Force TARGET_VIS3 to zero if assembler is
75 not capable of such instructions.
76 * config/sparc/sparc-c.c (sparc_target_macros): Define __VIS__
77 to 0x300 when TARGET_VIS3.
78 * config/sparc/sparc-modes.def: Create 16-byte vector modes.
79 * config/sparc/sparc.md (UNSPEC_CMASK8, UNSPEC_CMASK16, UNSPEC_CMASK32,
80 UNSPEC_FCHKSM16, UNSPEC_PDISTN, UNSPC_FUCMP): New unspecs.
81 (V64N8, VASS): New mode iterators.
82 (vis3_shift, vis3_addsub_ss): New code iterators.
83 (vbits, vconstr): New mode attributes.
84 (vis3_shift_insn, vis3_addsub_ss_insn): New code attributes.
85 (cmask8<P:mode>_vis, cmask16<P:mode>_vis, cmask32<P:mode>_vis,
86 fchksm16_vis, <vis3_shift_insn><vbits>_vis, pdistn<mode>_vis,
87 fmean16_vis, fpadd64_vis, fpsub64_vis, <vis3_addsub_ss_insn><vbits>_vis,
88 fucmp<code>8<P:mode>_vis): New VIS 3.0 instruction patterns.
89 * config/sparc/sparc.c (sparc_option_override): Set MASK_VIS3 by
90 default when targetting capable cpus. TARGET_VIS3 implies
91 TARGET_VIS2 and TARGET_VIS, and clear them when TARGET_FPU is
93 (sparc_vis_init_builtins): Emit new VIS 3.0 builtins.
94 (sparc_fold_builtin): Do not eliminate cmask{8,16,32} when result
96 * config/sparc/visintrin.h (__vis_cmask8, __vis_cmask16,
97 __vis_cmask32, __vis_fchksm16, __vis_fsll16, __vis_fslas16,
98 __vis_fsrl16, __vis_fsra16, __vis_fsll32, __vis_fslas32,
99 __vis_fsrl32, __vis_fsra32, __vis_pdistn, __vis_fmean16,
100 __vis_fpadd64, __vis_fpsub64, __vis_fpadds16, __vis_fpadds16s,
101 __vis_fpsubs16, __vis_fpsubs16s, __vis_fpadds32, __vis_fpadds32s,
102 __vis_fpsubs32, __vis_fpsubs32s, __vis_fucmple8, __vis_fucmpne8,
103 __vis_fucmpgt8, __vis_fucmpeq8): New VIS 3.0 interfaces.
104 * doc/extend.texi: Document new VIS 3.0 builtins.
106 2011-10-01 Eric Botcazou <ebotcazou@adacore.com>
108 * ira-color.c (assign_hard_reg): Fix typo.
110 2011-09-30 H.J. Lu <hongjiu.lu@intel.com>
112 * doc/extend.texi: Add missing ','.
114 2011-09-30 Bernd Schmidt <bernds@codesourcery.com>
116 * common/config/c6x/c6x-common.c (c6x_option_optimization_table):
117 Enable -fmodulo-sched at -O2 and above.
118 * config/c6x/c6x.md (doloop_end): New expander.
119 (mvilc, sploop, spkernel, loop_end): New patterns.
120 (loop_end with memory destination splitter): New.
121 * config/c6x/c6x.c: Include "hw-doloop.h".
122 (enum unitreqs): New.
123 (unit_req_table): New typedef.
124 (unit_reqs): New static variable.
125 (unit_req_factor, get_unit_reqs, count_unit_reqs, merge_unit_reqs,
126 res_mii, split_delayed_nonbranch, undo_split_delayed_nonbranch,
127 hwloop_pattern_reg, bb_earliest_end_cycle, filter_insns_above,
128 hwloop_optimize, hwloop_fail, c6x_hwloops): New static functions.
129 (struct c6x_sched_context): New member last_scheduled_iter0.
130 (init_sched_state): Initialize it.
131 (c6x_variable_issue): Update it.
132 (sploop_max_uid_iter0): New static variable.
133 (c6x_sched_reorder_1): Be careful about issuing sploop.
134 (c6x_reorg): Call c6x_hwlooops before the final schedule.
136 2011-09-30 Georg-Johann Lay <avr@gjlay.de>
139 * config/avr/avr-protos.h (avr_log_t): New field address_cost.
140 * config/avr/avr.c (avr_address_cost): Use it.
141 * config/avr/avr-log.c (avr_log_set_avr_log): Initialize it.
142 (avr_log_vadump): Unknown %-codes finish printing.
144 2011-09-30 Jakub Jelinek <jakub@redhat.com>
147 * gimple-fold.c (fold_stmt_1) <case GIMPLE_ASM>: If
148 input constraints allow mem and not reg, pass true instead of
149 false as second argument to maybe_fold_reference.
151 PR tree-optimization/46309
152 * fold-const.c (make_range, merge_ranges): Remove prototypes.
153 (make_range_step): New function.
154 (make_range): Use it.
155 * tree.h (make_range_step): New prototypes.
156 * Makefile.in (tree-ssa-reassoc.o): Depend on $(DIAGNOSTIC_CORE_H).
157 * tree-ssa-reassoc.c: Include diagnostic-core.h.
158 (struct range_entry): New type.
159 (init_range_entry, range_entry_cmp, update_range_test,
160 optimize_range_tests): New functions.
161 (reassociate_bb): Call optimize_range_tests.
163 2011-09-30 Jakub Jelinek <jakub@redhat.com>
164 Richard Guenther <rguenther@suse.de>
166 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Handle
167 BUILT_IN_STRDUP and BUILT_IN_STRNDUP.
168 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Likewise. Fix
169 handling of BUILT_IN_STRNCAT and BUILT_IN_STRNCAT_CHK.
170 (ref_maybe_used_by_call_p_1): Fix handling of BUILT_IN_STRCAT,
171 BUILT_IN_STRNCAT, BUILT_IN_STRCAT_CHK and BUILT_IN_STRNCAT_CHK.
173 2011-09-30 Jan Beulich <jbeulich@suse.com>
175 * lto-cgraph.c (output_cgraph): Remove processing of
176 'cgraph_asm_nodes', call lto_output_toplevel_asms() instead.
177 (input_cgraph_1): Remove loop calling cgraph_add_asm_node(), call
178 lto_input_toplevel_asms() instead.
179 * lto-section-in.c (lto_section_name): Add "asm" entry.
180 * lto-streamer-in.c (lto_input_toplevel_asms): New.
181 * lto-streamer-out.c (lto_output_toplevel_asms): New.
182 * lto-streamer.h (LTO_minor_version): Bump.
183 (enum lto_section_type): Add LTO_section_asm.
184 (struct lto_asm_header): New.
185 (lto_input_toplevel_asms, lto_output_toplevel_asms): Declare.
186 * tree-streamer.h (streamer_write_string_cst): Declare.
187 * tree-streamer-out.c (write_string_cst): Rename to
188 streamer_write_string_cst and make global. Handle incoming string
190 (streamer_write_tree_header): Adjust call to renamed function.
192 2011-09-30 Bernd Schmidt <bernds@codesourcery.com>
194 * haifa-sched.c (modulo_ii, modulo_max_states, modulo_n_insns,
195 modulo_insns_scheduled, modulo_iter0_max_uid, modulo_backtracks_left,
196 modulo_last_stage): New static variables.
197 (set_modulo_params, discard_delay_pairs_above): New functions.
198 (struct delay_pair): New member stages.
199 (htab_i2_traverse, htab_i1_traverse): New static functions.
200 (record_delay_slot_pair): New arg stages. All callers changed.
202 (pair_delay): Take stages into account.
203 (add_delay_dependencies): Don't do so for stage pairs.
204 (struct sched_block_state): New member modulo_epilogue.
205 (save_backtrack_point): Don't set SHADOW_P for stage pairs.
206 (unschedule_insns_until): Decrease modulo_insns_scheduled.
207 Set HARD_DEP without using or.
208 (resolve_dependencies): New static function.
209 (prune_ready_list): New arg modulo_epilogue_p. All callers changed.
210 If it is true, allow only insns with INSN_EXACT_TICK set.
211 (schedule_block): Return bool, always true for normal scheduling,
212 true or false depending on modulo scheduling success otherwise.
213 Add bookkeeping for modulo scheduling, and call resolve_dependencies
214 on everything left over after a modulo schedule.
215 (haifa_sched_init): Remove check_cfg call. Clear modulo_ii.
216 * sched-int.h (schedule_block, record_delay_slot_pair): Adjust
218 (set_modulo_params, discard_delay_pairs_above): Declare.
219 * params.def (PARAM_MAX_MODULO_BACKTRACK_ATTEMPS): New.
220 * doc/invoke.texi (--param): Document it.
222 * sched-ebb.c (schedule_ebb): No longer static. Remove declaration.
223 New arg modulo_scheduling. All callers changed. Move note handling
224 code here from schedule_ebbs.
225 (schedule_ebbs_finish, schedule_ebbs_init): New functions, broken
226 out of schedule_ebbs.
227 (schedule_ebbs): Call them. Remove note handling code moved to
229 * sched-int.h (schedule_ebb, schedule_ebbs_init,
230 schedule_ebbs_finish): Declare.
232 2011-09-30 Richard Guenther <rguenther@suse.de>
235 * tree-cfg.c (verify_gimple_comparison): Compare component
236 mode sizes for vector comparisons.
238 2011-09-30 Revital Eres <revital.eres@linaro.org>
240 * ddg.c (autoinc_var_is_used_p): New function.
241 (create_ddg_dep_from_intra_loop_link,
242 add_cross_iteration_register_deps): Call it.
243 * ddg.h (autoinc_var_is_used_p): Declare.
244 * modulo-sched.c (generate_reg_moves): Call autoinc_var_is_used_p.
245 (sms_schedule): Handle instructions with REG_INC.
247 2011-09-30 Revital Eres <revital.eres@linaro.org>
249 * modulo-sched.c (generate_reg_moves): Skip instructions that
250 do not set a register and verify no regmoves are created for
251 !single_set instructions.
253 2011-09-30 Bernd Schmidt <bernds@codesourcery.com>
255 * hw-doloop.c (scan_loop): Compute register usage only for non-debug
258 2011-09-30 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
261 * config/arm/iterators.md (qhs_zextenddi_cstr): New.
262 (qhs_zextenddi_op): New.
263 * config/arm/arm.md ("zero_extend<mode>di2"): Use them.
264 * config/arm/predicates.md ("arm_extendqisi_mem_op"):
265 Distinguish between ARM and Thumb2 states.
267 2011-09-30 David S. Miller <davem@davemloft.net>
269 * config/sparc/sparc.opt (VIS2): New option.
270 * doc/invoke.texi: Document it.
271 * config/sparc/sparc.md (UNSPEC_EDGE8N, UNSPEC_EDGE8LN,
272 UNSPEC_EDGE16N, UNSPEC_EDGE16LN, UNSPEC_EDGE32N,
273 UNSPEC_EDGE32LN, UNSPEC_BSHUFFLE): New unspecs.
274 (define_attr type): New insn type 'edgen'.
275 (bmask<P:mode>_vis, bshuffle<V64I:mode>_vis, edge8n<P:mode>_vis,
276 edge8ln<P:mode>_vis, edge16n<P:mode>_vis, edge16ln<P:mode>_vis,
277 edge32n<P:mode>_vis, edge32ln<P:mode>_vis): New insn VIS 2.0
279 * niagara.md: Handle edgen.
280 * niagara2.md: Likewise.
281 * ultra1_2.md: Likewise.
282 * ultra3.md: Likewise.
283 * config/sparc/sparc-c.c (sparc_target_macros): Define __VIS__
284 to 0x200 when TARGET_VIS2.
285 * config/sparc/sparc.c (sparc_option_override): Set MASK_VIS2 by
286 default when targetting capable cpus. TARGET_VIS2 implies
287 TARGET_VIS, clear and it when TARGET_FPU is disabled.
288 (sparc_vis_init_builtins): Emit new VIS 2.0 builtins.
289 (sparc_expand_builtin): Fix predicate indexing when builtin returns
291 (sparc_fold_builtin): Do not eliminate bmask when result is ignored.
292 * config/sparc/visintrin.h (__vis_bmask, __vis_bshuffledi,
293 __vis_bshufflev2si, __vis_bshufflev4hi, __vis_bshufflev8qi,
294 __vis_edge8n, __vis_edge8ln, __vis_edge16n, __vis_edge16ln,
295 __vis_edge32n, __vis_edge32ln): New VIS 2.0 interfaces.
296 * doc/extend.texi: Document new VIS 2.0 builtins.
298 2011-09-29 Nick Clifton <nickc@redhat.com>
299 Bernd Schmidt <bernds@codesourcery.com>
301 * config/frv/frvbegin.c: Fix location of unwind-dw2-fde.h header
303 * config/frv/frvend.c: Likewise.
304 * config/frv/frv.c (frv_function_prologue): Move misplaced
305 CALL_ARG_LOCATION notes back to their proper locations.
307 2011-09-29 Georg-Johann Lay <avr@gjlay.de>
310 * config/avr/avr-log.c (avr_log_vadump): Use %b to print bool.
311 * config/avr/avr.c (avr_rtx_costs_1): New static function, renamed
313 (avr_legitimate_address_p): Use avr_edump to print log information
315 (extra_constraint_Q): Ditto.
316 (avr_legitimize_address): Ditto.
317 (avr_rtx_costs): Ditto. Rewrite as wrapper for avr_rtx_costs_1.
318 (final_prescan_insn): Use avr_log.rtx_costs as filter.
320 2011-09-29 Richard Sandiford <richard.sandiford@linaro.org>
322 * config/arm/arm-protos.h (arm_modes_tieable_p): Declare.
323 * config/arm/arm.h (MODES_TIEABLE_P): Use it.
324 * config/arm/arm.c (arm_modes_tieable_p): New function. Allow
325 NEON vector and structure modes to be tied.
327 2011-09-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
329 * graphite-scop-detection.c (make_close_phi_nodes_unique): New
331 (remove_duplicate_close_phi): Detect and repair creation of
332 duplicate close-phis for a containing loop.
334 2011-09-27 Andi Kleen <ak@linux.intel.com>
336 * gcc.c (get_local_tick). Rename to get_random_number.
337 Read from /dev/urandom.
339 (compare_debug_dump_opt_spec_function): Drop getpid call.
341 2011-09-26 Andi Kleen <ak@linux.intel.com>
343 * toplev.c (init_local_tick): Try reading random seed from /dev/urandom
345 2011-09-26 Andi Kleen <ak@linux.intel.com>
347 * hwint.h (HOST_WIDE_INT_PRINT_HEX_PURE): Add.
348 * lto-streamer.c (lto_get_section_name): Remove crc32_string.
349 Handle numerical random seed.
350 * lto-streamer.h (lto_file_decl_data): Change id to unsigned HOST_WIDE_INT.
351 * toplev.c (random_seed): Add.
352 (init_random_seed): Change for numerical random seed.
353 (get_random_seed): Return as HOST_WIDE_INT.
354 (set_random_seed): Crc32 existing string.
355 * toplev.h (get_random_seed): Change to numercal return.
356 * tree.c (get_file_function_name): Remove CRC. Handle numerical random seed.
358 2011-09-29 Georg-Johann Lay <avr@gjlay.de>
361 * config.gcc (extra_objs): Add avr-log.o for $target in:
362 avr-*-rtems*, avr-*-*.
363 * config/avr/t-avr (avr-log.o): New rule to compile...
364 * config/avr/avr-log.c: ...this new file.
365 * config/avr/avr.opt (mlog=): New option.
366 * config/avr/avr-protos.h (avr_edump, avr_fdump): New macros.
367 (avr_log_set_caller_e, avr_log_set_caller_f): New prototypes.
368 (avr_log_set_avr_log): New prototype.
369 (avr_log_t): New typedef.
370 (avr_log): New declaration.
371 * config/avr/avr.c (avr_option_override): Call avr_log_set_avr_log.
373 2011-09-29 Artjoms Sinkarovs <artyom.shinkaroff@gmail.com>
375 * expr.c (do_store_flag): Expand vector comparison by
376 building an appropriate VEC_COND_EXPR.
377 * c-typeck.c (build_binary_op): Typecheck vector comparisons.
378 (c_objc_common_truthvalue_conversion): Adjust.
379 * tree-vect-generic.c (do_compare): Helper function.
380 (expand_vector_comparison): Check if hardware supports
381 vector comparison of the given type or expand vector
383 (expand_vector_operation): Treat comparison as binary
384 operation of vector type.
385 (expand_vector_operations_1): Adjust.
387 2011-09-29 Richard Guenther <rguenther@suse.de>
389 * tree.c (build_opaque_vector_type): Make opaque vectors
390 variant types of the corresponding non-opaque type. Make
391 sure to share opaque vector types properly.
393 2011-09-29 David S. Miller <davem@davemloft.net>
395 * config/sparc/sparc.md (UNSPEC_ARRAY8, UNSPEC_ARRAY16,
396 UNSPEC_ARRAY32): New unspec.
397 (define_attr type): New type 'array'.
398 (array{8,16,32}<P:mode>_vis): New patterns.
399 * config/sparc/ultra1_2.md: Add reservations for 'array'.
400 * config/sparc/ultra3.md: Likewise.
401 * config/sparc/niagara.md: Likewise.
402 * config/sparc/niagara2.md: Likewise.
403 * config/sparc/sparc.c (sparc_vis_init_builtins): Build new
405 * config/sparc/visintrin.h (__vis_array8, __vis_array16,
407 * doc/extend.texi: Document new VIS builtins.
409 * config/sparc/sparc.md (gcond_name): Delete unnecessary code attr.
410 (VIS pixel-compare insn): Just use <gcond:name>.
412 * config/sparc/sparc.md (VIS pixel-compare insn): There is only one
413 code iterator used, so just use <code>. There are two mode iterators
414 so explicitly use <GCM:gcm_name>.
416 2011-09-29 Iain Sandoe <iains@gcc.gnu.org>
418 * config/darwin9.h (STACK_CHECK_STATIC_BUILTIN): Enable for
421 2011-09-28 David S. Miller <davem@davemloft.net>
423 * config/sparc/sparc.md (UNSPEC_FCMPLE, UNSPEC_FCMPNE,
424 UNSPEC_FCMPGT, UNSPEC_FCMPEQ): Delete and reduce to...
425 (UNSPEC_FCMP): New unspec.
426 (gcond): New code iterator.
427 (gcond_name): New code attr.
428 (GCM): New mode iterator.
429 (gcm_name): New mode attr.
430 (fcmp{le,ne,gt,eq}{16,32}_vis): Reimplement using iterators.
432 2011-09-28 Oleg Endo <oleg.endo@t-online.de>
435 * config/sh/sh.md (negdi2): Move expansion into split to
436 allow more combination options. Add T_REG clobber.
437 (abssi2): New expander.
438 (*negdi2, *abssi2, *negabssi2): New insns.
439 (cneg): Change from insn to insn_and_split. Rename to
440 negsi_cond. Add alternative for non-SH4.
442 2011-09-28 Richard Sandiford <richard.sandiford@linaro.org>
444 * config/arm/neon.md (neon_move_lo_quad_<mode>): Delete.
445 (neon_move_hi_quad_<mode>): Likewise.
446 (move_hi_quad_<mode>, move_lo_quad_<mode>): Use subreg moves.
448 2011-09-28 Nick Clifton <nickc@redhat.com>
450 * config/rx/predicates.md (rx_minmax_operand): New predicate.
451 Accepts immediates and a restricted subset of MEMs.
452 * config/rx/rx.md (int_modes): New iterator.
453 (smaxsi3, sminsi3): Delete and replace with...
454 (smax<int_mode>3, smin<int_mode>3): New patterns.
455 (umax<>3_u, umax<>3_ur, umax<>3, umin<>3): New patterns.
457 2011-09-28 Richard Guenther <rguenther@suse.de>
460 * fold-const.c (try_move_mult_to_index): Handle &a.array the
463 2011-09-28 Kai Tietz <ktietz@redhat.com>
465 * configure.ac: Add test for new section attribute
466 specifier "e" via define HAVE_GAS_SECTION_EXCLUDE.
467 * config.in: Regenerated.
468 * configure: Regenerated.
469 * config/i386/winnt.c (i386_pe_asm_named_section): Emit
470 new section flag "e" for excluded sections, if supported.
471 Otherwise we mark section withc SECTION_EXCLUDE flag as never-load.
473 2011-09-28 Richard Sandiford <rdsandiford@googlemail.com>
475 * config/m32r/m32r.md: Use match_test rather than eq/ne symbol_ref
478 2011-09-28 Richard Sandiford <rdsandiford@googlemail.com>
480 * config/iq2000/iq2000.md: Use match_test rather than eq/ne symbol_ref
483 2011-09-27 Sriraman Tallam <tmsriram@google.com>
485 * output.h (SECTION_EXCLUDE): New macro.
486 * varasm.c (default_elf_asm_named_section): Check for SECTION_EXCLUDE.
488 2011-09-27 Richard Sandiford <rdsandiford@googlemail.com>
490 * fwprop.c (forward_propagate_and_simplify): After checking
491 reg/subreg combinations, check whether the modes are the same.
493 2011-09-27 Bernd Schmidt <bernds@codesourcery.com>
494 Richard Sandiford <rdsandiford@googlemail.com>
496 * config/mips/mips.c (mips_add_cfa_restore): New function.
497 (mips16e_save_restore_reg): Use it.
498 (mips_restore_reg): Likewise. Split double FPRs for
499 REG_CFA_RESTORE notes.
501 2011-09-27 Richard Sandiford <rdsandiford@googlemail.com>
505 * tree-sra.c (build_ref_for_model): Use the type of the field as
506 the type of the COMPONENT_REF.
508 2011-09-27 Jeff Law <law@redhat.com>
510 * ifcvt.c (cheap_bb_rtx_cost_p): Add SCALE argument. Scale
511 non-jumping insns by REG_BR_PROB_BASE and the maximum cost by SCALE.
512 (find_if_case_1): Use the probability of the THEN clause when
513 determining if speculation is profitable.
514 (find_if_case_2): Similarly for the ELSE clause.
516 2011-09-27 Jakub Jelinek <jakub@redhat.com>
518 * common.opt: Add -foptimize-strlen option.
519 * Makefile.in (OBJS): Add tree-ssa-strlen.o.
520 (tree-sssa-strlen.o): Add dependencies.
521 * opts.c (default_options_table): Enable -foptimize-strlen
522 by default at -O2 if not -Os.
523 * passes.c (init_optimization_passes): Add pass_strlen
524 after pass_object_sizes.
525 * timevar.def (TV_TREE_STRLEN): New timevar.
526 * params.def (PARAM_MAX_TRACKED_STRLENS): New parameter.
527 * tree-pass.h (pass_strlen): Declare.
528 * tree-ssa-strlen.c: New file.
529 * c-decl.c (merge_decls): If compatible stpcpy prototype
530 is seen, set implicit_built_in_decls[BUILT_IN_STPCPY].
532 2011-09-27 Tom de Vries <tom@codesourcery.com>
535 * tree-ssa-tail-merge.c: New file.
536 (struct same_succ_def): Define.
537 (same_succ, const_same_succ): New typedef.
538 (struct bb_cluster_def): Define.
539 (bb_cluster, const_bb_cluster): New typedef.
540 (struct aux_bb_info): Define.
541 (BB_SIZE, BB_SAME_SUCC, BB_CLUSTER, BB_VOP_AT_EXIT): Define.
542 (gvn_uses_equal): New function.
543 (same_succ_print, same_succ_print_traverse, update_dep_bb)
544 (stmt_update_dep_bb, local_def, same_succ_hash)
545 (inverse_flags, same_succ_equal, same_succ_alloc, same_succ_delete)
546 (same_succ_reset): New function.
547 (same_succ_htab, same_succ_edge_flags)
548 (deleted_bbs, deleted_bb_preds): New var.
549 (debug_same_succ): New function.
551 (print_worklist, add_to_worklist, find_same_succ_bb, find_same_succ)
552 (init_worklist, delete_worklist, delete_basic_block_same_succ)
553 (same_succ_flush_bbs, purge_bbs, update_worklist): New function.
554 (print_cluster, debug_cluster, update_rep_bb)
555 (add_bb_to_cluster, new_cluster, delete_cluster): New function.
556 (all_clusters): New var.
557 (alloc_cluster_vectors, reset_cluster_vectors, delete_cluster_vectors)
558 (merge_clusters, set_cluster): New function.
559 (gimple_equal_p, gsi_advance_bw_nondebug_nonlocal, find_duplicate)
560 (same_phi_alternatives_1, same_phi_alternatives, bb_has_non_vop_phi)
561 (deps_ok_for_redirect_from_bb_to_bb, deps_ok_for_redirect)
562 (find_clusters_1, find_clusters): New function.
563 (update_vuses, vop_phi, vop_at_entry, replace_block_by): New function.
564 (update_bbs): New var.
565 (apply_clusters): New function.
566 (update_debug_stmt, update_debug_stmts): New function.
567 (tail_merge_optimize): New function.
568 tree-pass.h (tail_merge_optimize): Declare.
569 * tree-ssa-pre.c (execute_pre): Use tail_merge_optimize.
570 * Makefile.in (OBJS-common): Add tree-ssa-tail-merge.o.
571 (tree-ssa-tail-merge.o): New rule.
572 * opts.c (default_options_table): Set OPT_ftree_tail_merge by
573 default at OPT_LEVELS_2_PLUS.
574 * tree-ssa-sccvn.c (vn_valueize): Move to ...
575 * tree-ssa-sccvn.h (vn_valueize): Here.
576 * timevar.def (TV_TREE_TAIL_MERGE): New timevar.
577 * common.opt (ftree-tail-merge): New switch.
578 * params.def (PARAM_MAX_TAIL_MERGE_COMPARISONS)
579 (PARAM_MAX_TAIL_MERGE_ITERATIONS): New parameter.
580 * doc/invoke.texi (Optimization Options, -O2): Add -ftree-tail-merge.
581 (-ftree-tail-merge, max-tail-merge-comparisons)
582 (max-tail-merge-iterations): New item.
584 2011-09-27 Jan Hubicka <jh@suse.cz>
586 * ipa-inline-analysis.c (MAX_TIME): Reduce to avoid overflows.
588 2011-09-27 Jan Hubicka <jh@suse.cz>
590 * ipa-inline-analysis.c (eliminated_by_inlining_prob): Handle
591 parameters passed by reference; handle loads from non-SSA scalars
594 2011-09-27 Bernd Schmidt <bernds@codesourcery.com>
596 PR rtl-optimization/50249
597 * reload1.c (reload_reg_reaches_end_p): Accept a reloadnum argument
598 instead of opnum and type. All callers changed. Remove useless
600 Search forward for other reloads of the same type for the same operand
601 using the same register; if any are found, return false.
602 (reload_regs_reach_end_p): Same argument changes; all callers changed.
604 2011-09-27 Andi Kleen <ak@linux.intel.com>
605 Jan Hubicka <jh@suse.cz>
607 * doc/invoke.texi (ffat-lto-objects): Document.
608 * toplev.c (compile_file): Do not output assembly when doing slim lto;
609 Output __gnu_slim_lto when doing slim lto.
610 * cgraphunit.c (ipa_passes): Do only analysis when producing slim lto.
611 (cgraph_optimize): Return early when doing slim lto.
612 * opts.c (finish_options): Complain about lack of linker plugin
614 * common.opt (ffat-lto-objects): New.
616 2011-09-27 Richard Sandiford <richard.sandiford@linaro.org>
618 * ipa-inline-analysis.c (predicate_probability): Avoid comparison
619 between signed and unsigned.
621 2011-09-27 Ira Rosen <ira.rosen@linaro.org>
623 * tree-vect-stmts.c (vectorizable_type_demotion): Handle basic block
625 (vectorizable_type_promotion): Likewise.
626 (vect_analyze_stmt): Call vectorizable_type_demotion and
627 vectorizable_type_promotion for basic blocks.
628 (supportable_widening_operation): Don't assume loop vectorization.
629 * tree-vect-slp.c (vect_build_slp_tree): Allow multiple types for
630 basic blocks. Update vectorization factor for basic block
632 (vect_analyze_slp_instance): Allow multiple types for basic block
633 vectorization. Recheck unrolling factor after construction of SLP
636 2011-09-27 Richard Guenther <rguenther@suse.de>
638 * tree-object-size.c (compute_object_sizes): Fix dumping of
641 2011-09-27 Richard Guenther <rguenther@suse.de>
643 PR tree-optimization/50363
644 * tree-ssa-pre.c (create_expression_by_pieces): Handle
645 pointer conversions in POINTER_PLUS_EXPRs properly.
647 2011-09-27 Richard Sandiford <richard.sandiford@linaro.org>
649 * config/arm/neon.md (neon_vget_highv16qi, neon_vget_highv8hi)
650 (neon_vget_highv4si, neon_vget_highv4sf, neon_vget_highv2di)
651 (neon_vget_lowv16qi, neon_vget_lowv8hi, neon_vget_lowv4si)
652 (neon_vget_lowv4sf, neon_vget_lowv2di): Turn into define_expands
653 that produce subreg moves. Define using VQX iterators.
655 2011-09-27 Georg-Johann Lay <avr@gjlay.de>
657 * config/avr/avr.md (ashrqi3): Split alternative "n"
658 into its remaining parts C03, C04, C05, C06, C07 and describe
659 impact in CC by attribute "cc" appropriately.
660 * config/avr/avr.c (notice_update_cc): Clean-up: Don't patch CC0
663 2011-09-27 Jakub Jelinek <jakub@redhat.com>
665 * rtl.h (const_tiny_rtx): Change into array of 4 x MAX_MACHINE_MODE
666 from 3 x MAX_MACHINE_MODE.
667 (CONSTM1_RTX): Define.
668 * emit-rtl.c (const_tiny_rtx): Change into array of
669 4 x MAX_MACHINE_MODE from 3 x MAX_MACHINE_MODE.
670 (gen_rtx_CONST_VECTOR): Use CONSTM1_RTX if all inner constants are
672 (init_emit_once): Initialize CONSTM1_RTX for MODE_INT and
673 MODE_VECTOR_INT modes.
674 * simplify-rtx.c (simplify_binary_operation_1) <case IOR, XOR, AND>:
675 Optimize if one operand is CONSTM1_RTX.
676 * config/i386/i386.c (ix86_expand_sse_movcc): Optimize mask ? -1 : x
679 2011-09-26 David S. Miller <davem@davemloft.net>
681 * config/sparc/sparc.md (edge{8,16,32}{,l}): Return Pmode.
682 (fcmp{le,ne,gt,eq}{16,32}): Likewise.
683 * config/sparc/visintrin.h: Update edge and pixel-compare
684 intrinsics to return 'long' instead of 'int'.
685 * doc/extend.texi: Update documentation to match.
686 * config/sparc/sparc.c (eligible_for_return_delay): When leaf or
687 flat, allow any instruction. Otherwise, when V9 allow parallels
688 which consist only of sets to registers outside of %o0 to %o5.
689 (sparc_vis_init_builtins): Update VIS builtin types for edge
692 * config/sparc/sparc.c (sparc_conditional_register_usage): When VIS
693 is enabled, mark %gsr as global.
694 * config/sparc/sparc.md (UNSPEC_WRGSR): Delete.
695 (wrgsr_vis, *wrgsr_sp64, wrgsr_v8plus): Don't wrap in an unspec.
697 * config/sparc/sparc-c.c: New file implementing sparc_target_macros,
698 which will now define __VIS and __VIS__ when -mvis is enabled.
699 * config/sparc/t-sparc: Likewise.
700 * config.gcc: Add sparc-c.o to c_target_objs and cxx_target_objs,
701 and add t-sparc to tmake_file for all sparc targets.
702 * config/sparc/sparc-protos.h (sparc_target_macros): Declare.
703 * config/sparc/sparc.h (TARGE_CPU_CPP_BUILTINS): Call it.
705 * config/sparc/sparc.c (sparc_vis_init_builtins): Add explicit
706 builtins for VIS vector addition and subtraction.
707 * config/sparc/visintrin.h (__vis_fpadd16, __vis_fpadd16s,
708 __vis_fpadd32, __vis_fpadd32s, __vis_fpsub16, __vis_fpsub16s,
709 __vis_fpsub32, __vis_fpsub32s): New.
710 * doc/extend.texi: Document new VIS intrinsics.
712 2011-09-26 Georg-Johann Lay <avr@gjlay.de>
714 * config/avr/avr.md (peephole casesi+2): Use -1 instead of 65536.
715 * config/avr/avr.c (avr_out_compare): Print shorter sequence for
716 EQ/NE comparisons against +/-1 in the case of unused-after,
719 2011-09-26 Jakub Jelinek <jakub@redhat.com>
721 * gimple-fold.c (gimplify_and_update_call_from_tree): Set
722 gctx.into_ssa after push_gimplify_context.
724 * gimple.c (gimple_build_call_valist): New function.
725 * gimple.h (gimple_build_call_valist): New prototype.
726 * tree-ssa-propagate.c (finish_update_gimple_call): New function.
727 (update_gimple_call): Likewise.
728 (update_call_from_tree): Use finish_update_gimple_call.
729 * tree-ssa-propagate.h (update_gimple_call): New prototype.
731 2011-09-26 Richard Guenther <rguenther@suse.de>
733 PR tree-optimization/50472
734 * gimple-fold.c (fold_const_aggregate_ref_1): Do not fold
737 2011-09-26 Bingfeng Mei <bmei@broadcom.com>
739 * doc/tm.texi: Correct documentation for TARGET_ADDR_SPACE_SUBSET_P.
740 * target.def: (addr_space_subset_p): Likewise.
742 2011-09-26 Tom de Vries <tom@codesourcery.com>
744 * tree-ssa-alias.h (pt_solution_singleton_p): Declare.
745 * tree-ssa-structalias.c (pt_solution_singleton_p): New function.
746 * tree-ssa-ccp.c (fold_builtin_alloca_for_var): Set points-to solution
749 2011-09-26 Georg-Johann Lay <avr@gjlay.de>
752 * config/avr/avr-protos.h (output_reload_insisf): Don't pass insn.
753 * config/avr/avr.md (*reload_insi, *reload_insf): Change call to
754 output_reload_insisf.
755 (adjust_len): Set default to "no".
756 Remove alternative "yes". Add alternatives: "mov8", "mov16",
757 "mov32", "ashlqi", "ashrqi", "lshrqi", "ashlhi", "ashrhi",
758 "lshrhi", "ashlsi, "ashrsi", "lshrsi".
759 (*movqi, *movhi, *movsi, *ashlqi3, ashlhi3, ashlsi3,
760 *ashlhi3_const, *ashlsi3_const, ashrqi3, ashrhi3, ashrsi3,
761 *ashrhi3_const, *ashrsi3_const, *lshrqi3, lshrhi3, *lshrhi3_const,
762 *lshrsi3_const): Set attribute "adjust_len".
763 * config/avr/avr.c (output_reload_insisf): Remove parameter "insn".
764 (output_movsisf): Don't pass insn to output_reload_insisf.
765 (adjust_insn_length): Handle new alternatives to adjust_len.
766 Remove handling of ADJUST_LEN_YES. Clean-up code.
768 2011-09-26 Eric Botcazou <ebotcazou@adacore.com>
770 * ifcvt.c (noce_try_cmove_arith): Use may_trap_or_fault_p in lieu of
771 may_trap_p to detect loads that may trap of fault.
773 2011-09-26 Georg-Johann Lay <avr@gjlay.de>
775 * config/avr/avr-protos.h (output_reload_inhi): Change prototype.
776 * config/avr/avr.md (adjust_len): Add "reload_in16" alternative.
777 (*reload_inhi): Use it. Adapt call to output_reload_inhi to new
779 (*movhi): Split constraint alternative "r,rL" into "r,r" and "r,L".
780 * config/avr/avr.c: Rename output_reload_insisf_1 to
781 output_reload_in_const.
782 (avr_popcount_each_byte): Handle SFmode, too.
783 (output_reload_in_const): Change so it can handle HI loads, too.
784 Use avr_popcount_each_byte to work out if scratch register must be
786 (output_reload_inhi): Rewrite using output_reload_in_const and...
787 (output_movhi): ...use it to print constants' loads.
788 (adjust_insn_length): New case ADJUST_LEN_RELOAD_IN16. Cleanup code.
790 2011-09-25 David S. Miller <davem@davemloft.net>
792 * config/sparc/constraints.md (C, P, Z): New constraints for
793 const_doube, const_int, and const_vector "all ones" values.
794 Make unused constraint letters comment match reality.
795 * config/sparc/predicates.md (const_all_ones_operand,
796 register_or_zero_or_all_ones_operand): New predicates.
797 * config/sparc/sparc.c (sparc_expand_move): Allow all ones
798 as well as zero constants when VIS.
799 (sparc_legitimate_constant_p): Likewise.
800 * config/sparc/sparc.md (movsi_insn): Add fones alternative.
801 (movsf_insn): Likewise
802 (movdi_insn_sp64): Add fone alternative.
803 (movdf_insn_sp32_v9): Likewise.
804 (movdf_insn_sp64): Likewise.
806 * configure.ac: Add feature check to make sure the assembler
807 supports the FMAF, HPC, and VIS 3.0 instructions found on
808 Niagara-3 and later cpus.
809 * configure: Rebuild.
810 * config.in: Likewise.
811 * config/sparc/sparc.opt: New option '-mfmaf'.
812 * config/sparc/sparc.md: Add float fused multiply-add patterns.
813 * config/sparc/sparc.h (AS_NIAGARA3_FLAG): New macro.
814 (ASM_CPU64_DEFAULT_SPEC, ASM_CPU_SPEC): Use it, as needed.
815 * config/sparc/sol2.h (ASM_CPU32_DEFAULT_SPEC,
816 ASM_CPU64_DEFAULT_SPEC, ASM_CPU_SPEC): Likewise.
817 * config/sparc/sparc.c (sparc_option_override): Turn MASK_FMAF on
818 by default for Niagara-3 and later. Turn it off if TARGET_FPU is
820 (sparc_rtx_costs): Handle 'FMA'.
821 * doc/invoke.texi: Document -mfmaf.
823 2011-09-25 Jakub Jelinek <jakub@redhat.com>
825 * tree-ssa-structalias.c (intra_create_variable_infos): Treat
826 TYPE_RESTRICT REFERENCE_TYPE parameters like restricted
827 DECL_BY_REFERENCE parameters.
829 2011-09-25 Eric Botcazou <ebotcazou@adacore.com>
831 * tree-eh.c (cleanup_empty_eh): Allow a call to __builtin_stack_restore
832 if there is no outgoing edge.
834 * tree-scalar-evolution.c (simple_iv): Accept all kinds of pointer and
837 2011-09-25 Ira Rosen <ira.rosen@linaro.org>
839 * tree-vect-slp.c (vect_slp_analyze_bb_1): Split out core part
840 of vect_analyze_bb here.
841 (vect_analyze_bb): Loop over vector sizes calling vect_analyze_bb_1.
843 2011-09-25 Ira Rosen <ira.rosen@linaro.org>
845 * tree-data-ref.c (dr_analyze_innermost): Add new argument.
846 Allow not simple iv if analyzing basic block.
847 (create_data_ref): Update call to dr_analyze_innermost.
848 (stmt_with_adjacent_zero_store_dr_p, ref_base_address): Likewise.
849 * tree-loop-distribution.c (generate_memset_zero): Likewise.
850 * tree-predcom.c (find_looparound_phi): Likewise.
851 * tree-data-ref.h (dr_analyze_innermost): Add new argument.
853 2011-09-24 David S. Miller <davem@davemloft.net>
855 * config/sparc/sparc.h (FIRST_PSEUDO_REGISTER): Bump to 103.
856 (SPARC_GSR_REG): Define.
857 (FIXED_REGISTERS): Mark GSR as fixed.
858 (CALL_USED_REGISTERS): Mark GSR as call used.
859 (HARD_REGNO_NREGS): GSR is always 1 register.
860 (REG_CLASS_CONTENTS): Add GSR to ALL_REGS.
861 (REG_ALLOC_ORDER, REG_LEAF_ALLOC_ORDER): Add GSR to the end.
862 (REGISTER_NAMES): Add "%gsr".
863 * config/sparc/sparc.md (UNSPEC_ALIGNADDR, UNSPEC_ALIGNADDRL): Delete.
864 (UNSPEC_WRGSR): New unspec.
865 (GSR_REG): New constant.
866 (type): Add new insn type 'gsr'.
867 (fpack16_vis, fpackfix_vis, fpack32_vis,
868 faligndata<V64I:MODE>_vis)): Add use of GSR_REG.
869 (wrgsr_vis, *wrgsr_sp64, wrgsr_v8plus, rdgsr_vis, *rdgsr_sp64,
870 rdgsr_v8plus): New expanders and insns.
871 (alignaddr<P:mode>_vis, alignaddrl<P:mode>_vis): Reimplement
872 using patterns which show that this is a plus in addition to a
873 modification of GSR_REG, instead of an unspec.
874 * config/sparc/ultra1_2.md: Handle 'gsr'.
875 * config/sparc/ultra3.md: Likewise.
876 * config/sparc/niagara.md: Likewise.
877 * config/sparc/niagara2.md: Likewise.
878 * config/sparc/sparc.c (leaf_reg_remap, sparc_leaf_regs): Fill out
880 (sparc_option_override): Make -mvis imply -mv8plus.
881 (hard_32bit_mode_classes, hard_64bit_mode_classes): Add entries
883 (sparc_vis_init_builtins): Build __builtin_vis_write_gsr and
884 __builtin_vis_read_gsr.
885 (sparc_expand_buildin): Handle builtins that take one argument and
887 (sparc_fold_builtin): Never fold writes to %gsr.
888 * config/sparc/visintrin.h (__vis_write_gsr, __vis_read_gsr): New.
889 * doc/extend.texi: Document new VIS intrinsics.
891 2011-09-23 Jan Hubicka <jh@suse.cz>
893 * ipa-inline-transform.c (inline_call): Add comment.
894 * ipa-inline.h (inline_param_summary): New structure and vector.
895 (struct inline_edge_summary): Add param field.
896 * ipa-inline-analysis.c (CHANGED): New constant.
897 (add_clause): Handle CHANGED and NOT_CONSTANT.
898 (predicate_probability): New function.
899 (dump_condition): Dump CHANGED predicate.
900 (evaluate_conditions_for_known_args): Handle ERROR_MARK as marker
901 of unknown function wide invariant.
902 (evaluate_conditions_for_edge): Handle change probabilities.
903 (inline_edge_duplication_hook): Copy param summaries.
904 (inline_edge_removal_hook): Free param summaries.
905 (dump_inline_edge_summary): Fix dumping of indirect edges and callee
906 sizes; dump param summaries.
907 (will_be_nonconstant_predicate): Use CHANGED predicate.
908 (record_modified_bb_info): New structure.
909 (record_modified): New function.
910 (param_change_prob): New function.
911 (estimate_function_body_sizes): Compute param summaries.
912 (estimate_edge_size_and_time): Add probability argument.
913 (estimate_node_size_and_time): Add inline_param_summary argument;
914 handle predicate probabilities.
915 (remap_predicate): Fix formating.
916 (remap_edge_change_prob): New function.
917 (remap_edge_summaries): Rename from ...; use remap_edge_change_prob.
918 (remap_edge_predicates): ... this one.
919 (inline_merge_summary): Remap edge summaries; handle predicate
920 probabilities; remove param summaries after we are done.
921 (do_estimate_edge_time): Update.
922 (do_estimate_edge_growth): Update.
923 (read_inline_edge_summary): Read param info.
924 (inline_read_summary): Fix formating.
925 (write_inline_edge_summary): Write param summaries.
927 2011-09-23 Jakub Jelinek <jakub@redhat.com>
929 * config/i386/i386.c (ix86_print_operand): Handle %~.
930 (ix86_print_operand_punct_valid_p): Return true also for '~'.
931 * config/i386/sse.md (i128): New mode_attr.
932 (vec_extract_hi_<mode>, vec_extract_hi_<mode>,
933 avx_vbroadcastf128_<mode>, *avx_vperm2f128<mode>_full,
934 *avx_vperm2f128<mode>_nozero, vec_set_lo_<mode>,
935 vec_set_hi_<mode>, *vec_concat<mode>_avx): Use <i128> in the
936 patterns, use "<sseinsnmode>" for "mode" attribute.
937 (vec_extract_hi_v16hi, vec_extract_hi_v32qi, vec_set_lo_v16hi,
938 vec_set_hi_v16hi, vec_set_lo_v32qi, vec_set_hi_v32qi): Use
939 %~128 in the patterns, use "OI" for "mode" attribute.
941 2011-09-23 Georg-Johann Lay <avr@gjlay.de>
944 * config/avr/avr.md (adjust_len): Add alternatives "tsthi",
946 (*cmpqi_sign_extend): Use s8_operand.
947 (*cmphi, *cmpsi): Rewrite using avr_out_compare.
948 * config/avr/avr-protos.h (compare_diff_p, compare_eq_p): Remove
950 (out_tsthi, out_tstsi): Remove prototypes.
951 (avr_out_tsthi, avr_out_tstsi): New prototypes.
952 * config/avr/avr.c (out_tsthi, out_tstsi): Remove functions.
953 (avr_asm_len): Negative length now sets *plen to -length.
954 (compare_sign_p): Return bool instead of int.
955 (compare_diff_p, compare_eq_p): Ditto and make static.
956 (avr_out_tsthi): New function.
957 (avr_out_tstsi): New function.
958 (avr_out_compare): New function.
959 (adjust_insn_length): Handle ADJUST_LEN_TSTHI, ADJUST_LEN_TSTSI,
962 2011-09-23 Georg-Johann Lay <avr@gjlay.de>
965 * config/avr/avr.md: (adjust_len): Add alternative "out_plus".
966 (addsi3): Rewrite using QI scratch register. Adjust text
967 peepholes using plus:SI.
968 (*addsi3_zero_extend.hi): New insn.
969 (*subsi3_zero_extend.hi): New insn.
970 (*subhi3_zero_extend1): Set attribute "cc" to "set_czn".
971 (*subsi3_zero_extend): Ditto.
972 (subsi3): Change predicate #2 to register_operand.
973 * config/avr/avr-protos.h (avr_out_plus): New prototype.
974 (avr_out_plus_1): New static function.
975 (avr_out_plus): New function.
976 (adjust_insn_length): Handle ADJUST_LEN_OUT_PLUS.
978 2011-09-23 Jakub Jelinek <jakub@redhat.com>
980 * config/i386/i386.c (ix86_prepare_sse_fp_compare_args): For
981 GE/GT/UNLE/UNLT swap arguments and condition even for TARGET_AVX.
983 2011-09-23 Ian Lance Taylor <iant@google.com>
985 * godump.c (go_define): Treat a single character in single quotes,
986 or a string, as an operand.
988 2011-09-23 Martin Jambor <mjambor@suse.cz>
990 * ipa-prop.h (jump_func_type): Updated comments.
991 (ipa_known_type_data): New type.
992 (ipa_jump_func): Use it to describe known type jump functions.
993 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Updated to
994 reflect the new known type jump function contents.
995 (compute_known_type_jump_func): Likewise.
996 (combine_known_type_and_ancestor_jfs): Likewise.
997 (try_make_edge_direct_virtual_call): Likewise.
998 (ipa_write_jump_function): Likewise.
999 (ipa_read_jump_function): Likewise.
1000 * ipa-cp.c (ipa_value_from_known_type_jfunc): New function.
1001 (ipa_value_from_jfunc): Use ipa_value_from_known_type_jfunc.
1002 (propagate_accross_jump_function): Likewise.
1004 2011-09-23 Georg-Johann Lay <avr@gjlay.de>
1007 * config/avr/avr.md (rotlqi3): Support all offsets 0..7.
1008 (rotlqi3_4): Turn insn into expander.
1009 (*rotlqi3): New insn.
1010 (rotlhi3, rotlsi3): Support rotate left/right by 1.
1011 (*rotlhi2.1, *rotlhi2.15): New insns.
1012 (*rotlsi2.1, *rotlsi2.31): New insns.
1013 * config/avr/constraints.md (C03, C05, C06, C07): New constraints.
1015 2011-09-23 Bin Cheng <bin.cheng@arm.com>
1017 * config/arm/bpabi.h (BE8_LINK_SPEC): Add cortex-m arch and processors.
1019 2011-09-22 Maxim Kuvyrkov <maxim@codesourcery.com>
1021 * ipa-prop.c (ipa_print_node_jump_functions): Fix typos.
1023 2011-09-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1025 * reload.c (find_reloads): Set operand_mode to Pmode for address
1026 operands consisting of just a CONST_INT.
1028 2011-09-22 Uros Bizjak <ubizjak@gmail.com>
1031 * config/i386/i386.c (ix86_expand_sse_movcc): When generating
1032 blendv, force op_true to register if it doesn't satisfy
1033 nonimmediate_operand predicate.
1035 2011-09-22 Richard Sandiford <rdsandiford@googlemail.com>
1039 * calls.c (emit_library_call_value_1): Use BLOCK_REG_PADDING to
1040 get the locate.where_pad value for register-only arguments.
1041 * config/arm/arm.c (arm_pad_arg_upward): Remove HFmode handling.
1042 (arm_pad_reg_upward): Handle null types.
1044 2011-09-22 Jan Hubicka <jh@suse.cz>
1046 * ipa-inline-analysis.c: Fix overly long lines.
1048 2011-09-22 Jan Hubicka <jh@suse.cz>
1050 * ipa-inline-transform.c (inline_call): Always update jump functions
1052 * ipa-inline.c (ipa_inline): Likewise; do not call
1053 ipa_create_all_structures_for_iinln.
1054 (ipa_inline): Always free jump functions.
1055 * ipa-inline-analysis.c (evaluate_conditions_for_edge): Remove hack.
1056 (remap_edge_predicates): Fix pasto.
1057 (inline_merge_summary): Remove nlined edge predicate; remove hack.
1058 (inline_analyze_function): Always initialize jump functions.
1059 (inline_generate_summary): Likewise.
1060 (inline_write_summary): Always write jump functions when ipa-cp
1062 (inline_read_summary): Always read jump functions when ipa-cp
1064 * ipa-prop.c (iinlining_processed_edges): Remove.
1065 (update_indirect_edges_after_inlining): Do not use
1066 iinlining_processed_edges; instead set param_index to -1.
1067 (propagate_info_to_inlined_callees): Only try to indirect inlining
1068 when asked to do so; update jump functions of indirect calls, too;
1069 remove jump functions of the inlined edge.
1070 (ipa_edge_duplication_hook): Do not copy iinlining_processed_edges.
1071 (ipa_create_all_structures_for_iinln): Remove.
1072 (ipa_free_all_structures_after_iinln): Do not free
1073 iinlining_processed_edges.
1074 * ipa-prop.h (ipa_create_all_structures_for_iinln): Remove.
1076 2011-09-22 Richard Sandiford <richard.sandiford@linaro.org>
1078 * config/arm/predicates.md (expandable_comparison_operator): New
1079 predicate, extracted from...
1080 (arm_comparison_operator): ...here.
1081 * config/arm/arm.md (cbranchsi4, cbranchsf4, cbranchdf4, cbranchdi4)
1082 (cstoresi4, cstoresf4, cstoredf4, cstoredi4, movsicc, movsfcc)
1083 (movdfcc): Use expandable_comparison_operator.
1085 2011-09-22 Georg-Johann Lay <avr@gjlay.de>
1089 * config/avr/avr-protos.h (avr_out_bitop): New prototype.
1090 (avr_popcount_each_byte): New prototype.
1091 * config/avr/avr.c (avr_popcount): New static function.
1092 (avr_popcount_each_byte): New function.
1093 (avr_out_bitop): New function.
1094 (adjust_insn_length): ADJUST_LEN_OUT_BITOP dispatches to
1095 avr_out_bitop. Cleanup code.
1096 * config/avr/constraints.md (Ca2, Co2, Cx2): New constraints.
1097 (Ca4, Co4, Cx4): New constraints.
1098 * config/avr/avr.md (adjust_len): Add "out_bitop" insn attribute
1100 (andhi3, iorhi3, xorhi3): Rewrite insns using avr_out_bitop.
1101 (andsi3, iorsi3, xorsi3): Ditto.
1102 (*iorhi3_clobber, *iorsi3_clobber): Remove insns.
1104 2011-09-22 Ira Rosen <ira.rosen@linaro.org>
1106 PR tree-optimization/50451
1107 * tree-vect-slp.c (vect_get_constant_vectors): Don't fail for
1108 constant operands in reduction.
1109 (vect_get_slp_defs): Don't create vector operand for NULL scalar
1112 2011-09-22 David S. Miller <davem@davemloft.net>
1114 * config/sparc/sparc.c (sparc_vis_init_builtins): Do not mark
1115 fpack16, fpack32, fpackfix as const.
1117 * config/sparc/sparc.md (G[0-7]_REG, O[0-7]_REG, L[0-7]_REG,
1118 I[0-7]_REG, F[0-62]_REG, FCC[0-3]_REG, CC_REG, SFP_REG): New
1119 constants. Use them everywhere.
1121 2011-09-22 Oleg Endo <oleg.endo@t-online.de>
1123 * config/sh/sh.c (andcosts): Renamed to and_xor_ior_costs.
1124 Added AND special case. Adapted comments.
1125 (sh_rtx_costs): Added XOR and IOR case.
1127 2011-09-21 Jan Hubicka <jh@suse.cz>
1129 * ipa-inline-analsis.c (compute_inline_parameters): Set
1130 cfun and current_function_decl.
1132 2011-09-21 Jan Hubicka <jh@suse.cz>
1134 * ipa-inline-analysis.c (set_cond_stmt_execution_predicate): Allow
1135 handled components in parameter of builtin_constant_p.
1136 (will_be_nonconstant_predicate): Allow loads of non-SSA parameters.
1138 2011-09-21 Jan Hubicka <jh@suse.cz>
1140 * ipa-inline.c (relative_time_benefit): Fix wrong bracketting.
1141 * ipa-inline.h (estimate_edge_time): Fix pasto.
1142 * ipa-inline-analysis.c (do_estiamte_edge_time): Remove capping.
1144 2011-09-21 Jakub Jelinek <jakub@redhat.com>
1146 * config/i386/i386.c (ix86_expand_sse_movcc): Use
1147 blendvps, blendvpd and pblendvb if possible.
1149 2011-09-21 Uros Bizjak <ubizjak@gmail.com>
1152 * config/i386/sse.md (xop_pcmov_<mode><avxsizesuffix>): Change
1153 operand 1 predicate to register_operand and operand 2 predicate
1154 to nonimmediate_operand.
1155 * config/i386/i386.c (ix86_expand_sse_movcc): When generating
1156 xop_pcmov, force op_true to register. Also, force op_false to
1157 register if it doesn't satisfy nonimmediate_operand predicate.
1159 2011-09-21 Kirill Yukhin <kirill.yukhin@intel.com>
1161 * config/i386/bmi2intrin.h (_mulx_u64): New.
1164 2011-09-21 Jan Hubicka <jh@suse.cz>
1166 PR tree-optimization/50433
1167 * ipa-inline-analysis.c (eliminated_by_inlining_prob):
1168 Use get_base_address.
1170 2011-09-21 Jakub Jelinek <jakub@redhat.com>
1172 * config/i386/sse.md (<code><mode>3 smaxmin:VI124_128 expander): Use
1173 nonimmediate_operand instead of register_operand predicate for operands
1174 1 and 2, force them into registers if expanding them as comparison.
1175 (<code><mode>3 umaxmin:VI124_128 expander): Similarly. For UMAX
1176 V8HImode force into register just operand 1.
1178 2011-09-21 Georg-Johann Lay <avr@gjlay.de>
1181 * config/avr/avr.c (avr_function_arg_advance): Change error to
1182 warning if a fixed register is needed as function argument.
1184 2011-09-21 Georg-Johann Lay <avr@gjlay.de>
1188 * config/avr/avr.md (adjust_len): New insn attribute.
1189 (*reload_insi, *reload_insf): Use it.
1190 (*movsi, *movsf): Use new interface of output_movsisf.
1191 * config/avr/avr-protos.h (output_movsisf): Change prototype.
1192 * config/avr/avr.c (output_movsisf): Ditto.
1193 (adjust_insn_length): Use insn attribute "adjust_len" to adjust
1194 lengths of insns *reload_insi, *reload_insf.
1195 (output_reload_insisf_1): New static function.
1196 (output_reload_insisf): Use it.
1198 2011-09-21 David S. Miller <davem@davemloft.net>
1200 * config/sparc/sparc.c (def_builtin): Change from macro into function.
1201 (def_builtin_const): New.
1202 (sparc_vis_init_builtins): Use def_builtin_const for all VIS builtins
1203 other than alignaddr and falignaddr.
1205 * config/sparc/sparc.md (UNSPEC_FCMPLE, UNSPEC_FCMPNE, UNSPEC_FCMPGT,
1206 UNSPEC_FCMPEQ): New unspec codes.
1207 (fcmple16_vis, fcmple32_vis, fcmpne16_vis, fcmpne32_vis, fcmpgt16_vis,
1208 fcmpgt32_vis, fcmpeq16_vis, fcmpeq32_vis): New patterns.
1209 * config/sparc/sparc.c (sparc_vis_init_builtins): Create builtins for
1210 new pixel compare VIS patterns.
1211 * config/sparc/visintrin.h (__vis_fcmple16, __vis_fcmple32,
1212 __vis_fcmpne16, __vis_fcmpne32, __vis_fcmpgt16, __vis_fcmpgt32,
1213 __vis_fcmpeq16, __vis_fcmpeq32): New.
1214 * doc/extend.texi: Document new pixel compare VIS intrinsics.
1216 2011-09-21 Tom de Vries <tom@codesourcery.com>
1218 * final.c (final): Handle if JUMP_LABEL is not LABEL_P.
1220 2011-09-20 David S. Miller <davem@davemloft.net>
1222 * config/sparc/sparc.md (UNSPEC_ALIGNADDRL): New unspec.
1223 (aligneddrl<P:mode>_vis): New pattern.
1224 (edge8_vis, edge8l_vis, edge16_vis, edge16l_vis, edge32_vis,
1225 edge32l_vis): Adjust to take Pmode arguments, and return SImode.
1226 * config/sparc/sparc.c (sparc_vis_init_builtins): Handle new
1227 alignaddrl insn, and adjust edge operations for updated types.
1228 * config/sparc/visintrin.h: Likewise.
1229 * doc/extend.texi: Make typing in VIS documentation match reality.
1231 2011-09-20 Terry Guo <terry.guo@arm.com>
1233 * config/arm/arm-arches.def: Add armv6s-m.
1234 * config/arm/arm-tables.opt: Regenerate.
1236 2011-09-20 Wei Guozhi <carrot@google.com>
1238 PR rtl-optimization/49452
1239 * postreload.c (reload_combine): Invalidate use information when across
1242 2011-09-19 Maxim Kuvyrkov <maxim@codesourcery.com>
1244 * haifa-sched.c (has_edge_p, prev_non_location_insn, check_cfg):
1245 Remove maintenance overhead.
1246 (haifa_sched_init, sched_finish): Update.
1248 2011-09-19 Uros Bizjak <ubizjak@gmail.com>
1250 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use if_then_else RTX
1251 to calculate unit, prefix_rep and prefix_data16 attributes.
1252 (*mov<mode>_internal): Ditto for unit attribute.
1253 (*movv2sf_internal_rex64): Ditto for unit and prefix_rep attributes.
1254 (*movv2sf_internal): Ditto.
1255 * config/i386/sse.md (VI1248_256): Remove mode iterator.
1256 (avx2_eq<mode>3): Use VI_256 instead of VI1248_256.
1257 (*avx2_eq<mode>3): Ditto.
1258 (avx2_gt<mode>3): Ditto.
1260 2011-09-19 Uros Bizjak <ubizjak@gmail.com>
1262 * config/i386/i386.md (maxmin): New code iterator.
1263 * config/i386/sse.md (<maxmin:code><mode>3): Macroize expander
1264 from <umaxmin:code><mode>3 and <smaxmin:code><mode>3 using maxmin
1266 (*avx2_<maxmin:code><mode>3): Macroize isn from
1267 *avx2_<umaxmin:code><mode>3 and *avx2_<smaxmin:code><mode>3 using
1268 maxmin code iterator.
1269 (<smaxmin:code><VI124_128:mode>3): Merge with <smaxmin:code>v8hi3.
1270 (<umaxmin:code><VI124_128:mode>3): Merge with umaxv4si3 and
1271 <umaxmin:code>v16qi3.
1273 2011-09-19 Alan Modra <amodra@gmail.com>
1274 Michael Meissner <meissner@linux.vnet.ibm.com>
1277 * config/rs6000/rs6000.md (call_indirect_aix<ptrsize>): Do not
1278 split the load of the indirect function's TOC from the call to
1279 prevent the compiler from moving the load of the new TOC above
1280 code that references the current function's TOC.
1281 (call_indirect_aix<ptrsize>_internal): Ditto.
1282 (call_indirect_aix<ptrsize>_nor11): Ditto.
1283 (call_indirect_aix<ptrsize>_internal2): Ditto.
1284 (call_value_indirect_aix<ptrsize>): Ditto.
1285 (call_value_indirect_aix<ptrsize>_internal): Ditto.
1286 (call_value_indirect_aix<ptrsize>_nor11): Ditto.
1287 (call_value_indirect_aix<ptrsize>_internal2): Ditto.
1289 2011-09-19 Jakub Jelinek <jakub@redhat.com>
1291 * config/i386/sse.md (*sse4_1_extractps): Change into
1292 define_insn_and_split, add =x 0 n and =x x n alternatives
1293 and split them after reload.
1295 2011-09-19 Alexandre Oliva <aoliva@redhat.com>
1297 * tree.h (TREE_NOT_CHECK4): Rename from bogus NON_TREE_CHECK4.
1299 2011-09-19 Alexandre Oliva <aoliva@redhat.com>
1301 * emit-rtl.c (copy_insn_1): Do not copy DEBUG_EXPRs.
1303 2011-09-19 Ira Rosen <ira.rosen@linaro.org>
1305 PR tree-optimization/50413
1306 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail to vectorize
1307 a basic block if one of its data-refs can't be analyzed.
1309 2011-09-19 Paul Brook <paul@codesourcery.com>
1311 * config/arm/predicates.md (shift_amount_operand): Check constant
1312 shift count is in range.
1313 (const_shift_operand): Remove.
1315 2011-09-18 Eric Botcazou <ebotcazou@adacore.com>
1316 Iain Sandoe <developer@sandoe-acoustics.co.uk>
1319 * config/rs6000/rs6000.md (probe_stack): Use explicit operand.
1320 * config/rs6000/rs6000.c (output_probe_stack_range): Likewise.
1322 2011-09-18 H.J. Lu <hongjiu.lu@intel.com>
1324 * config/i386/bmiintrin.h: Remove tmp.
1325 * config/i386/tbmintrin.h: Likewise.
1327 2011-09-18 Ira Rosen <ira.rosen@linaro.org>
1329 PR tree-optimization/50414
1330 * tree-vect-slp.c (vect_get_constant_vectors): Handle MAX_EXPR and
1333 2011-09-18 Ira Rosen <ira.rosen@linaro.org>
1335 PR tree-optimization/50412
1336 * tree-vect-data-refs.c (vect_analyze_group_access): Fail for
1337 acceses that require epilogue loop if vectorizing outer loop.
1339 2011-09-17 David S. Miller <davem@davemloft.net>
1341 * config/sparc/sparc.md (UNSPEC_EDGE8, UNSPEC_EDGE8L,
1342 UNSPEC_EDGE16, UNSPEC_EDGE16L, UNSPEC_EDGE32, UNSPEC_EDGE32L):
1344 (define_attr type): New type 'edge'.
1345 (edge8_vis, edge8l_vis, edge16_vis, edge16l_vis, edge32_vis,
1346 edge32l_vis): New patterns.
1347 * config/sparc/ultra1_2.md: Add insn reservation for 'edge'.
1348 * config/sparc/ultra3.md: Likewise.
1349 * config/sparc/niagara.md: Likewise.
1350 * config/sparc/niagara2.md: Likewise.
1351 * config/sparc/sparc.d (sparc_vis_init_builtins): Generate
1352 builtins for VIS edge instructions.
1353 * config/sparc/visintrin.h (__vis_edge8, __vis_edge8l)
1354 (__vis_edge16, __vis_edge16l, __vis_edge32, __vis_edge32l): New
1356 (__v8qi, __v4qi): Make unsigned.
1357 (__vis_faligndatadi, ___vis_faligndatav2si, __vis_faligndatav4hi,
1358 __vis_faligndatav8qi, __vis_fmul8x16au, __vis_fmul8x16al,
1359 __vis_fpack32): Fix types.
1360 * doc/extend.texi: Document new 'edge' VIS intrinsics.
1362 * gcc/config/sparc/sparc.c (niagara2_costs): Adjust integer
1364 (niagara3_costs): New.
1365 (sparc_option_override): Use it.
1366 * gcc/config/sparc/niagara2.md: Adjust with more accurate
1367 Niagara-3 reservations.
1369 2011-09-17 Jakub Jelinek <jakub@redhat.com>
1371 * config/i386/sse.md (VIMAX_AVX2): Change V4DI to V2TI.
1372 (sse2_avx, sseinsnmode): Add V2TI.
1373 (REDUC_SMINMAX_MODE): New mode iterator.
1374 (reduc_smax_v4sf, reduc_smin_v4sf, reduc_smax_v8sf,
1375 reduc_smin_v8sf, reduc_smax_v4df, reduc_smin_v4df): Remove.
1376 (reduc_<code>_<mode>): New smaxmin and umaxmin expanders.
1377 (sse2_lshrv1ti3): Rename to...
1378 (<sse2_avx2>_lshr<mode>3): ... this. Use VIMAX_AVX2 mode
1379 iterator. Move before umaxmin expanders.
1380 * config/i386/i386.h (VALID_AVX256_REG_MODE,
1381 SSE_REG_MODE_P): Accept V2TImode.
1382 * config/i386/i386.c (ix86_expand_reduc): Handle V32QImode,
1383 V16HImode, V8SImode and V4DImode.
1385 * config/i386/i386.c (ix86_build_const_vector): Handle V8SImode
1387 (ix86_build_signbit_mask): Likewise.
1388 (ix86_expand_int_vcond): Likewise. Handle V16HImode and V32QImode.
1389 (bdesc_args): Use CODE_FOR_{s,u}m{ax,in}v{32q,16h,8s}i3
1390 instead of CODE_FOR_avx2_{s,u}m{ax,in}v{32q,16h,8s}i3.
1391 * config/i386/sse.md (avx2_<code><mode>3 umaxmin expand): Rename to...
1392 (<code><mode>3) ... this.
1393 (avx2_<code><mode>3 smaxmin expand): Rename to...
1394 (<code><mode>3) ... this.
1395 (smax<mode>3, smin<mode>3): Macroize using smaxmin code iterator.
1396 (smaxv2di3, sminv2di3): Macroize using smaxmin code iterator and
1397 VI8_AVX2 mode iterator.
1398 (umaxv2di3, uminv2di3): Macroize using umaxmin code iterator and
1399 VI8_AVX2 mode iterator.
1400 (vcond<V_256:mode><VI_256:mode>, vcondu<V_256:mode><VI_256:mode>):
1403 2011-09-17 Richard Sandiford <rdsandiford@googlemail.com>
1405 * config/ia64/itanium2.md: Use match_test rather than eq/ne symbol_ref
1408 2011-09-16 David S. Miller <davem@davemloft.net>
1410 * config/sparc/visintrin.h: New file.
1411 * config.gcc: Add it to extra_headers on sparc.
1413 2011-09-16 Jakub Jelinek <jakub@redhat.com>
1415 * config/i386/i386.c (ix86_expand_reduc_v4sf): Rename to ...
1416 (ix86_expand_reduc): ... this. Handle also V8SFmode and V4DFmode.
1417 * config/i386/sse.md (reduc_splus_v4sf, reduc_smax_v4sf,
1418 reduc_smin_v4sf): Adjust callers.
1419 (reduc_smax_v8sf, reduc_smin_v8sf, reduc_smax_v4df, reduc_smin_v4df):
1422 * config/i386/sse.md (vec_extract_hi_<mode>,
1423 vec_extract_hi_v16hi, vec_extract_hi_v32qi): Use
1424 vextracti128 instead of vextractf128 for -mavx2 and
1425 integer vectors. For V4DFmode fix up mode attribute.
1426 (VEC_EXTRACT_MODE): For TARGET_AVX add 32-byte vectors.
1427 (vec_set_lo_<mode>, vec_set_hi_<mode>): For VI8F_256 modes use V4DF
1428 instead of V8SF mode attribute.
1429 (avx2_extracti128): Change into define_expand.
1430 * config/i386/i386.c (ix86_expand_vector_extract): Handle
1431 32-byte vector modes if TARGET_AVX.
1433 2011-09-16 Georg-Johann Lay <avr@gjlay.de>
1435 * config/avr/avr.md: (umulqihi3, mulqihi3): Write as one pattern.
1436 (umulqi3_highpart, smulqi3_highpart): Ditto.
1437 (*maddqihi4.const, *umaddqihi4.uconst): Ditto.
1438 (*msubqihi4.const, *umsubqihi4.uconst): Ditto.
1439 (*muluqihi3.uconst, *mulsqihi3.sconst): Ditto.
1441 2011-09-16 Georg-Johann Lay <avr@gjlay.de>
1444 * config/avr/avr.md (*ashiftqihi2.signx.1): New insn.
1445 (*maddqi4, *maddqi4.const): New insns.
1446 (*msubqi4, *msubqi4.const): New insns.
1447 * config/avr/avr.c (avr_rtx_costs): Record costs of above in cases
1448 PLUS:QI and MINUS:QI. Increase costs of multiply-add/-sub for
1449 HImode by 1 in the case of multiplying with a CONST_INT.
1450 Record cost of *ashiftqihi2.signx.1 in case ASHIFT:QI.
1452 2011-09-15 Jan Hubicka <jh@suse.cz>
1455 * gimple-fold.c (gimple_get_virt_method_for_binfo): Do not ICE on
1456 error_mark_node in the DECL_INITIAL of vtable.
1458 2011-09-15 Diego Novillo <dnovillo@google.com>
1460 * Makefile.in (SYSROOT_CFLAGS_FOR_TARGET): Define from
1461 @SYSROOT_CFLAGS_FOR_TARGET@.
1462 * configure.ac (SYSROOT_CFLAGS_FOR_TARGET): Set from build-sysroot.
1463 * configure: Regenerate.
1464 (site.exp): Add definition of TEST_ALWAYS_FLAGS.
1465 Remove setting of GCC_UNDER_TEST.
1467 2011-09-15 Uros Bizjak <ubizjak@gmail.com>
1469 * config/i386/i386.c (output_fp_compare): Return %v prefixed
1470 instruction mnemonics for TARGET_AVX.
1472 * config/i386/i386.md (*movdf_internal_rex64): use cond RTX in
1473 "type" attribute calculation.
1474 (*movdf_internal): Ditto.
1475 (*movsf_internal): Ditto.
1477 2011-09-15 James Greenhalgh <james.greenhalgh@arm.com>
1479 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): New builtin macro.
1481 2011-09-15 Jason Merrill <jason@redhat.com>
1484 * expr.c (count_type_elements): Handle NULLPTR_TYPE.
1486 2011-09-15 Jan Hubicka <jh@suse.cz>
1488 * ipa-inline-analysis.c (add_condition): Add conditions parameter;
1489 simplify obviously true clauses.
1490 (and_predicates, or_predicates): Add conditions parameter.
1491 (inline_duplication_hoook): Update.
1492 (mark_modified): New function.
1493 (unmodified_parm): New function.
1494 (eliminated_by_inlining_prob, (set_cond_stmt_execution_predicate,
1495 set_switch_stmt_execution_predicate, will_be_nonconstant_predicate):
1496 Use unmodified_parm.
1497 (estimate_function_body_sizes): Update.
1498 (remap_predicate): Update.
1500 2011-09-15 Ira Rosen <ira.rosen@linaro.org>
1502 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Allow
1503 read-after-read dependencies in basic block SLP.
1505 2011-09-14 Richard Sandiford <rdsandiford@googlemail.com>
1507 * config/sparc/sparc.md: Use match_test rather than eq/ne symbol_ref
1510 2011-09-14 Richard Sandiford <rdsandiford@googlemail.com>
1512 * config/sh/sh.md: Use match_test rather than eq/ne symbol_ref
1515 2011-09-14 Richard Sandiford <rdsandiford@googlemail.com>
1517 * config/s390/s390.md: Use match_test rather than eq/ne symbol_ref
1520 2011-09-14 Richard Sandiford <rdsandiford@googlemail.com>
1522 * config/rs6000/rs6000.md: Use match_test rather than eq/ne symbol_ref
1524 * config/rs6000/constraints.md: Likewise.
1526 2011-09-14 Richard Sandiford <rdsandiford@googlemail.com>
1528 * config/microblaze/microblaze.md: Use match_test rather than
1529 eq/ne symbol_ref throughout file.
1531 2011-09-14 Richard Sandiford <rdsandiford@googlemail.com>
1533 * config/bfin/bfin.md: Use match_test rather than eq/ne symbol_ref
1536 2011-09-14 Tom de Vries <tom@codesourcery.com>
1539 * explow.c (emit_stack_restore): Set crtl->need_drap if
1540 stack_restore is emitted.
1542 2011-09-14 Julian Brown <julian@codesourcery.com>
1544 * config/arm/arm.c (arm_override_options): Add unaligned_access
1546 (arm_file_start): Emit attribute for unaligned access as appropriate.
1547 * config/arm/arm.md (UNSPEC_UNALIGNED_LOAD)
1548 (UNSPEC_UNALIGNED_STORE): Add constants for unspecs.
1549 (insv, extzv): Add unaligned-access support.
1550 (extv): Change to expander. Likewise.
1551 (extzv_t1, extv_regsi): Add helpers.
1552 (unaligned_loadsi, unaligned_loadhis, unaligned_loadhiu)
1553 (unaligned_storesi, unaligned_storehi): New.
1554 (*extv_reg): New (previous extv implementation).
1555 * config/arm/arm.opt (munaligned_access): Add option.
1556 * config/arm/constraints.md (Uw): New constraint.
1557 * expmed.c (store_bit_field_1): Adjust bitfield numbering according
1558 to size of access, not size of unit, when BITS_BIG_ENDIAN !=
1559 BYTES_BIG_ENDIAN. Don't use bitfield accesses for
1560 volatile accesses when -fstrict-volatile-bitfields is in effect.
1561 (extract_bit_field_1): Likewise.
1563 2011-09-14 Richard Sandiford <richard.sandiford@linaro.org>
1565 * simplify-rtx.c (simplify_subreg): Check that the inner mode is
1566 a scalar integer before applying integer-only optimisations to
1569 2011-09-14 Bernd Schmidt <bernds@codesourcery.com>
1571 * config/mips/mips.c (mips_expand_epilogue): Generate a
1572 simple_return only if the return address is in r31.
1574 2011-09-13 Bernd Schmidt <bernds@codesourcery.com>
1576 * cfgcleanup.c (try_head_merge_bb): If get_condition returns
1577 NULL for a jump that is a cc0 insn, pick the previous insn for
1580 2011-09-13 Richard Sandiford <rdsandiford@googlemail.com>
1582 * config/v850/v850.md: Use match_test rather than eq/ne symbol_ref
1585 2011-09-13 Richard Sandiford <rdsandiford@googlemail.com>
1587 * config/pa/pa.md: Use match_test rather than eq/ne symbol_ref
1590 2011-09-13 Richard Sandiford <rdsandiford@googlemail.com>
1592 * config/mn10300/mn10300.md: Use match_test rather than eq/ne
1593 symbol_ref throughout file.
1595 2011-09-13 Richard Sandiford <rdsandiford@googlemail.com>
1597 * config/m68k/m68k.md: Use match_test rather than eq/ne symbol_ref
1600 2011-09-13 Richard Sandiford <rdsandiford@googlemail.com>
1602 * config/h8300/h8300.md: Use match_test rather than eq/ne symbol_ref
1605 2011-09-13 Richard Sandiford <rdsandiford@googlemail.com>
1607 * config/arm/arm.md: Use match_test rather than eq/ne symbol_ref
1609 * config/arm/neon.md: Likewise.
1610 * config/arm/vfp.md: Likewise.
1611 * config/arm/thumb2.md: Likewise.
1612 * config/arm/cortex-m4.md: Likewise.
1614 2011-09-13 Sevak Sargsyan <sevak.sargsyan@ispras.ru>
1616 * config/arm/neon.md (neon_vabd<mode>_2, neon_vabd<mode>_3): New
1617 define_insn patterns for combine.
1619 2011-09-13 Giuseppe Scrivano <gscrivano@gnu.org>
1621 * reorg.c: Always define make_return_insns.
1623 2011-09-13 Jan Hubicka <jh@suse.cz>
1626 * cgraphunit.c (assemble_thunks_and_aliases): Force alias to be output.
1628 2011-09-13 Jan Hubicka <jh@suse.cz>
1631 * ipa-inline-transform.c (can_remove_node_now_p): Fix thunkos.
1633 2011-09-13 Paul Brook <paul@codesourcery.com>
1635 * config/arm/arm.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
1636 (ARM_TARGET2_DWARF_FORMAT): Provide default definition.
1637 * config/arm/linux-eabi.h (ARM_TARGET2_DWARF_FORMAT): Define.
1638 * config/arm/symbian.h (ARM_TARGET2_DWARF_FORMAT): Define.
1639 * config/arm/uclinux-eabi.h(ARM_TARGET2_DWARF_FORMAT): Define.
1640 * config/arm/t-bpabi (EXTRA_HEADERS): Add unwind-arm-common.h.
1641 * config/arm/t-symbian (EXTRA_HEADERS): Add unwind-arm-common.h.
1642 * config/c6x/c6x.c (c6x_output_file_unwind): Don't rely on dwarf2 code
1643 enabling unwind tables.
1644 (c6x_debug_unwind_info): New function.
1645 (TARGET_ARM_EABI_UNWINDER): Define.
1646 (TARGET_DEBUG_UNWIND_INFO): Define.
1647 * config/c6x/c6x.h (DWARF_FRAME_RETURN_COLUMN): Define.
1648 (TARGET_EXTRA_CFI_SECTION): Remove.
1649 * config/c6x/t-c6x-elf (EXTRA_HEADERS): Set.
1650 * ginclude/unwind-arm-common.h: New file.
1652 2011-09-13 Georg-Johann Lay <avr@gjlay.de>
1655 * config/avr/predicates.md (const_1_to_6_operand): New predicate.
1656 * config/avr/avr.md: (extend_s): New code attribute.
1657 (mul_r_d): New code attribute.
1658 (*maddqihi4, *umaddqihi4): New insns.
1659 (*msubqihi4, *umsubqihi4): New insns.
1660 (*usmaddqihi4, *sumaddqihi4): New insns.
1661 (*usmsubqihi4, *susubdqihi4): New insns.
1662 (*umaddqihi4.uconst, *maddqihi4.sconst): New insn-and-splits.
1663 (*umsubqihi4.uconst, *msubqihi4.sconst): New insn-and-splits.
1664 (*umsubqihi4.uconst.ashift): New insn-and-split.
1665 (*msubqihi4.sconst.ashift): New insn-and-split.
1666 (*sumaddqihi4.uconst): New insn-and-split.
1667 (*sumsubqihi4.uconst): New insn-and-split.
1668 * config/avr/avr.c (avr_rtx_costs): Report costs of above in case
1669 PLUS:HI and MINUS:HI.
1671 2011-09-13 Revital Eres <revital.eres@linaro.org>
1673 modulo-sched.c (remove_node_from_ps): Return void instead of bool.
1674 (optimize_sc): Adjust call to remove_node_from_ps.
1675 (sms_schedule): Add print info.
1677 2011-09-13 Bernd Schmidt <bernds@codesourcery.com>
1679 * rtl.c (copy_rtx): Do not handle frame_related, jump or call
1682 2011-09-12 Jakub Jelinek <jakub@redhat.com>
1685 * dwarf2cfi.c (add_cfis_to_fde): Ignore non-active insns in between
1686 NOTE_INSN_CFI notes, with the exception of
1687 NOTE_INSN_SWITCH_TEXT_SECTIONS.
1689 2011-09-12 Bernd Schmidt <bernds@codesourcery.com>
1690 Richard Sandiford <rdsandiford@googlemail.com>
1692 * config/mips/mips.c (mips_epilogue): New structure.
1693 (mips16e_save_restore_reg): Queue REG_CFA_RESTORE notes when
1694 restoring registers.
1695 (mips_epilogue_emit_cfa_restores): New function.
1696 (mips_epilogue_set_cfa): Likewise.
1697 (mips_restore_reg): Queue REG_CFA_RESTORE notes. When restoring
1698 the current CFA register from the stack, redefine the CFA in terms
1699 of the stack pointer.
1700 (mips_expand_epilogue): Set up mips_epilogue. Attach CFA information
1701 to the epilogue instructions.
1703 2011-09-12 Richard Sandiford <rdsandiford@googlemail.com>
1705 * config/mips/mips.c (mips16e_save_restore_reg): Add a reg_parm_p
1707 (mips16e_build_save_restore): Update accordingly.
1709 2011-09-12 Jakub Jelinek <jakub@redhat.com>
1711 PR rtl-optimization/50212
1712 * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
1713 Skip also lps with NULL landing_pad or non-LABEL_P landing_pad.
1716 * calls.c (load_register_parameters): Use use_reg_mode instead
1717 of use_reg when adding a single register CALL_INSN_FUNCTION_USAGE
1719 (expand_call): Set EXPR_LIST mode to TYPE_MODE of the argument
1720 for stack CALL_INSN_FUNCTION_USAGE uses.
1721 * expr.h (use_reg_mode): New prototype.
1722 (use_reg): Changed into inline around use_reg_mode.
1723 * expr.c (use_reg): Renamed to...
1724 (use_reg_mode): ... this. Added MODE argument, set EXPR_LIST
1725 mode to that mode instead of VOIDmode.
1726 * var-tracking.c (prepare_call_arguments): Don't track parameters
1727 whose EXPR_LIST mode is VOIDmode, BLKmode or X mode isn't convertible
1728 to it using lowpart_subreg. Convert VALUE and REG/MEM to the
1731 2011-09-12 Georg-Johann Lay <avr@gjlay.de>
1734 * config/avr/avr.c (AVR_SECTION_PROGMEM): New Define.
1735 (progmem_section): New Variable.
1736 (avr_asm_init_sections): Initialize it.
1737 (TARGET_ASM_SELECT_SECTION): Define to...
1738 (avr_asm_select_section): ... this new Function.
1739 (avr_replace_prefix): New Function.
1740 (avr_asm_function_rodata_section): Use it.
1741 (avr_insert_attributes): Don't add section attribute for PROGMEM.
1742 (avr_section_type_flags): Use avr_progmem_p instead of section
1743 name to detect if object is in PROGMEM.
1744 (avr_asm_named_section): Set section name prefix for objects in
1747 2011-09-12 Jakub Jelinek <jakub@redhat.com>
1750 * config/arm/arm.md (*push_fp_multi): Add % before %( and %) in the
1751 sprintf format string.
1753 2011-09-12 Richard Guenther <rguenther@suse.de>
1755 PR tree-optimization/50343
1756 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Check
1757 that the reduction is over an SSA name before checking its definition.
1759 2011-09-11 Richard Sandiford <rdsandiford@googlemail.com>
1761 * config/cris/cris.md: Use match_test rather than eq/ne symbol_ref
1764 2011-09-11 Richard Sandiford <rdsandiford@googlemail.com>
1766 * config/mips/mips.md: Use match_test rather than eq/ne symbol_ref
1768 * config/mips/sb1.md: Likewise.
1769 * config/mips/predicates.md: Replace (match_test "!...")
1770 with (not (match_test "..."))
1771 * config/mips/constraints.md: Likewise.
1773 2011-09-09 Andrew Stubbs <ams@codesourcery.com>
1775 * config/arm/arm-cores.def (generic-armv7-a): New architecture.
1776 * config/arm/arm-tables.opt: Regenerate.
1777 * config/arm/arm-tune.md: Regenerate.
1778 * config/arm/arm.c (arm_file_start): Output .arch directive when
1779 user passes -mcpu=generic-*.
1780 (arm_issue_rate): Add genericv7a support.
1781 * config/arm/arm.h (EXTRA_SPECS): Add asm_cpu_spec.
1782 (ASM_CPU_SPEC): New define.
1783 * config/arm/elf.h (ASM_SPEC): Use %(asm_cpu_spec).
1784 * config/arm/semi.h (ASM_SPEC): Likewise.
1785 * doc/invoke.texi (ARM Options): Document -mcpu=generic-*
1786 and -mtune=generic-*.
1788 2011-09-09 Richard Guenther <rguenther@suse.de>
1790 PR tree-optimization/50328
1791 * tree-vect-loop.c (vect_is_simple_reduction_1): Allow one
1792 constant or default-def operand.
1794 2011-09-09 Richard Guenther <rguenther@suse.de>
1796 * tree-ssa-pre.c (create_expression_by_pieces): Fold the
1799 2011-09-09 Richard Guenther <rguenther@suse.de>
1801 * gimple.h (fold_stmt_inplace): Adjust to take a gimple_stmt_iterator
1802 instead of a statement.
1803 * gimple-fold.c (fold_stmt_inplace): Likewise.
1804 * sese.c (graphite_copy_stmts_from_block): Adjust.
1805 * tree-ssa-dom.c (propagate_rhs_into_lhs): Likewise.
1806 * tree-ssa-forwprop.c (forward_propagate_into_comparison): Use
1808 (forward_propagate_addr_into_variable_array_index): Likewise.
1809 (forward_propagate_addr_expr_1): adjust.
1810 (associate_plusminus): Likewise.
1811 (ssa_forward_propagate_and_combine): Likewise.
1812 * tree-ssa-mathopts.c (replace_reciprocal): Adjust.
1813 (execute_cse_reciprocals): Likewise.
1814 * tree-ssa.c (insert_debug_temp_for_var_def): Adjust.
1816 2011-09-09 Nick Clifton <nickc@redhat.com>
1818 * config/mn10300/mn10300.c (mn10300_split_and_operand_count):
1819 Return a positive value to indicate that the bits at the
1820 bottom of the register should be cleared.
1822 2011-09-09 Richard Guenther <rguenther@suse.de>
1824 * tree-ssa-operands.c (swap_tree_operands): Always adjust
1825 existing operand positions.
1827 2011-09-09 Richard Guenther <rguenther@suse.de>
1830 * tree-data-ref.c (split_constant_offset): Do not try to handle
1833 2011-09-08 Andrew Stubbs <ams@codesourcery.com>
1835 PR tree-optimization/50318
1836 * tree-ssa-math-opts.c (convert_plusminus_to_widen): Correct
1837 typo in use of mult_rhs1 and mult_rhs2.
1839 2011-09-08 Uros Bizjak <ubizjak@gmail.com>
1841 * config/i386/i386.c (standard_sse_constant_p): Handle AVX2 modes.
1842 (standard_sse_constant_opcode) <case 2>: Change vpcmpeqd template.
1844 2011-09-08 Bernd Schmidt <bernds@codesourcery.com>
1846 * config/arm/arm.md (push_multi): Emit predicates.
1847 (push_fp_multi): Likewise.
1848 * config/arm/arm.c (vfp_output_fstmd): Likewise.
1850 2011-09-08 Dodji Seketeli <dodji@redhat.com>
1852 PR c++/33255 - Support -Wunused-local-typedefs warning
1853 * c-decl.c (lookup_name): Use the new maybe_record_typedef_use.
1854 (pushdecl): Use the new record_locally_defined_typedef.
1855 (store_parm_decls): Allocate cfun->language.
1856 (finish_function): Use the new maybe_warn_unused_local_typedefs,
1857 and free cfun->language.
1858 (c_push_function_context): Allocate cfun->language here only if needed.
1859 (c_pop_function_context): Likewise, mark cfun->language
1860 for collection only when it should be done.
1861 * c-common.c (handle_used_attribute): Don't ignore TYPE_DECL nodes.
1862 * c-typeck.c (c_expr_sizeof_type, c_cast_expr): Use the new
1863 maybe_record_local_typedef_use.
1864 * doc/invoke.texi: Update documentation for
1865 -Wunused-local-typedefs.
1867 2011-09-08 Enkovich Ilya <ilya.enkovich@intel.com>
1869 * config/i386/i386-protos.h (ix86_lea_outperforms): New.
1870 (ix86_avoid_lea_for_add): Likewise.
1871 (ix86_avoid_lea_for_addr): Likewise.
1872 (ix86_split_lea_for_addr): Likewise.
1874 * config/i386/i386.c (LEA_MAX_STALL): New.
1875 (increase_distance): Likewise.
1876 (insn_defines_reg): Likewise.
1877 (insn_uses_reg_mem): Likewise.
1878 (distance_non_agu_define_in_bb): Likewise.
1879 (distance_agu_use_in_bb): Likewise.
1880 (ix86_lea_outperforms): Likewise.
1881 (ix86_ok_to_clobber_flags): Likewise.
1882 (ix86_avoid_lea_for_add): Likewise.
1883 (ix86_avoid_lea_for_addr): Likewise.
1884 (ix86_split_lea_for_addr): Likewise.
1885 (distance_non_agu_define): Search in pred BBs added.
1886 (distance_agu_use): Search in succ BBs added.
1887 (IX86_LEA_PRIORITY): Value changed from 2 to 0.
1888 (LEA_SEARCH_THRESHOLD): Now depends on LEA_MAX_STALL.
1889 (ix86_lea_for_add_ok): Use ix86_lea_outperforms to make decision.
1891 * config/i386/i386.md: Split added to transform non destructive
1892 add into move and add.
1893 (lea_1): transformed into insn_and_split to avoid AGU stalls.
1894 (lea<mode>_2): Likewise.
1896 2011-09-08 Martin Jambor <mjambor@suse.cz>
1898 PR tree-optimization/50287
1899 * ipa-split.c (split_function): Do not create SSA names for
1900 non-gimple-registers.
1902 2011-09-08 Richard Guenther <rguenther@suse.de>
1904 PR tree-optimization/19831
1905 * tree-ssa-dce.c (mark_all_reaching_defs_necessary_1): Also
1906 skip builtins with vdefs that do not really store something.
1907 (propagate_necessity): For calls to free that we can associate
1908 with an allocation function do not mark the freed pointer
1909 definition necessary.
1910 (eliminate_unnecessary_stmts): Remove a call to free if
1911 the associated call to an allocation function is not necessary.
1913 2011-09-08 Richard Guenther <rguenther@suse.de>
1915 PR tree-optimization/19831
1916 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Do not mark
1917 allocation functions as necessary.
1919 2011-09-08 Iain Sandoe <iains@gcc.gnu.org>
1921 * config/darwin-driver.c (darwin_find_version_from_kernel): New routine
1923 (darwin_default_min_version): Amended to provide defaults
1924 for the cross directory case.
1925 (darwin_driver_init): call darwin_default_min_version unconditionally.
1926 * config/darwin.h (DEF_MIN_OSX_VERSION): New.
1927 * config/darwin9.h: Likewise.
1928 * config/darwin10.h: Likewise.
1929 * config/rs6000/darwin7.h: Likewise.
1931 2011-09-08 Jakub Jelinek <jakub@redhat.com>
1934 * config/i386/i386.c (ix86_prepare_sse_fp_compare_args): Return
1935 code early if TARGET_AVX.
1936 (ix86_expand_fp_vcond): Handle LTGT and UNEQ.
1938 2011-09-07 Jakub Jelinek <jakub@redhat.com>
1940 * config/i386/sse.md (sseinsnmode): Remove 32-byte integer vector
1944 * config/i386/sse.md (*andnot<mode>3, *<code><mode>3): Fix up
1945 "mode" attribute computation.
1947 2011-09-07 Bernd Schmidt <bernds@codesourcery.com>
1949 * regrename.c (struct du_head): Make nregs signed.
1950 (closed_chains): Remove.
1951 (create_new_chain): Return the new chain.
1952 (chain_from_id): New static function.
1953 (dump_def_use_chain): Change argument to be an int, indicating
1954 the first ID to print. All callers changed.
1955 (merge_overlapping_regs): Use chain_from_id. Assert that
1956 chains don't conflict with themselves.
1957 (rename_chains): Take no argument. Iterate over id_to_chain
1958 rather to find chains to rename. Clear tick before the main loop.
1959 (struct incoming_reg_info): New struct.
1960 (struct bb_rename_info): New struct.
1961 (init_rename_info, set_incoming_from_chain, merge_chains): New
1963 (regrename_analyze): New static function, broken out of
1964 regrename_optimize. Record and make use of open chain information
1965 at basic block boundaries, and merge chains where possible.
1966 (scan_rtx_reg): Make this_nregs signed. Don't update
1968 (build_def_use): Return a bool to indicate success. All callers
1969 changed. Don't initialize global data here.
1970 (regrename_optimize): Move most code out of here into
1972 * regs.h (add_range_to_hard_reg_set, remove_range_from_hard_reg_set,
1973 range_overlaps_hard_reg_set_p, range_in_hard_reg_set_p): New
1974 static inline functions.
1975 * vec.h (FOR_EACH_VEC_ELT_FROM): New macro.
1977 * bb-reorder.c (insert_section_boundary_note): Don't check
1978 optimize_function_for_speed_p.
1979 (gate_handle_partition_blocks): Do it here instead.
1980 (gate_handle_reorder_blocks): Move preliminary checks here ...
1981 (rest_of_handle_reorder_blocks): ... from here.
1983 2011-09-07 Martin Jambor <mjambor@suse.cz>
1986 * ipa-cp.c (find_more_values_for_callers_subset): Check jump
1987 function index bounds.
1988 (perhaps_add_new_callers): Likewise.
1990 2011-09-07 Martin Jambor <mjambor@suse.cz>
1992 PR tree-optimization/49911
1993 * tree-sra.c (analyze_access_subtree): Change type of to-be-replaced
1994 enumerations to the corresponding plain integer type.
1996 2011-09-07 Richard Guenther <rguenther@suse.de>
1998 PR tree-optimization/50319
1999 * tree-if-conv.c (set_bb_predicate): Assert we only set
2000 canonical predicates.
2001 (add_to_predicate_list): Simplify. Allow TRUTH_NOT_EXPR
2002 around canonical predicates.
2003 (predicate_bbs): Do not re-gimplify already canonical
2004 predicates. Properly unshare them though.
2005 (find_phi_replacement_condition): Simplify.
2007 2011-09-07 Richard Sandiford <richard.sandiford@linaro.org>
2010 * config/arm/arm-protos.h (maybe_get_arm_condition_code): Declare.
2011 * config/arm/arm.c (maybe_get_arm_condition_code): New function,
2012 reusing the old code from get_arm_condition_code. Return ARM_NV
2013 for invalid comparison codes.
2014 (get_arm_condition_code): Redefine in terms of
2015 maybe_get_arm_condition_code.
2016 * config/arm/predicates.md (arm_comparison_operator): Use
2017 maybe_get_arm_condition_code.
2019 2011-09-07 Richard Guenther <rguenther@suse.de>
2021 * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond):
2022 Canonicalize negated predicates by swapping edges.
2023 (forward_propagate_into_cond): Likewise.
2025 2011-09-07 Richard Guenther <rguenther@suse.de>
2027 PR tree-optimization/50213
2028 * tree-flow.h (simple_iv_increment_p): Declare.
2029 * tree-ssa-dom.c (simple_iv_increment_p): Export. Also handle
2031 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Do
2032 not propagate simple IV counter increments.
2034 2011-09-07 Eric Botcazou <ebotcazou@adacore.com>
2035 Iain Sandoe <iains@gcc.gnu.org>
2037 * config/rs6000/rs6000.c (compute_save_world_info): Test
2038 cfun->has_nonlocal_label to determine if the out-of-line save
2039 world call may be used.
2041 2011-09-07 Nick Clifton <nickc@redhat.com>
2043 * config/mn10300/mn10300.c (mn10300_insert_setlb_lcc): Set the jump
2044 label on the parallel part of the insn.
2046 2011-09-07 Jakub Jelinek <jakub@redhat.com>
2049 * dwarf2out.c (mem_loc_descriptor) <case MEM>: Try
2050 avoid_constant_pool_reference first instead of last.
2052 2011-09-06 Michael Meissner <meissner@linux.vnet.ibm.com>
2054 * doc/configfiles.texi (Configuration Files): Update documentation
2055 about tm_p.h and remove FIXME comment.
2057 2011-09-06 Uros Bizjak <ubizjak@gmail.com>
2059 * config/i386/i386.c (ix86_function_value_regno_p): Use AX_REG.
2060 (function_value_32): Do not check TARGET_MMX, TARGET_SSE or TARGET_AVX.
2062 2011-09-06 Iain Sandoe <iains@gcc.gnu.org>
2064 * config/darwin10.h Remove duplicate LIB_SPEC.
2066 2011-09-06 Enkovich Ilya <ilya.enkovich@intel.com>
2069 * target.def (reassociation_width): New hook.
2071 * doc/tm.texi.in (reassociation_width): Likewise.
2073 * doc/tm.texi (reassociation_width): Likewise.
2075 * doc/invoke.texi (tree-reassoc-width): New param documented.
2077 * hooks.h (hook_int_uint_mode_1): New default hook.
2079 * hooks.c (hook_int_uint_mode_1): Likewise.
2081 * config/i386/i386.h (ix86_tune_indices): Add
2082 X86_TUNE_REASSOC_INT_TO_PARALLEL and X86_TUNE_REASSOC_FP_TO_PARALLEL.
2084 (TARGET_REASSOC_INT_TO_PARALLEL): New.
2085 (TARGET_REASSOC_FP_TO_PARALLEL): Likewise.
2087 * config/i386/i386.c (initial_ix86_tune_features): Add
2088 X86_TUNE_REASSOC_INT_TO_PARALLEL and X86_TUNE_REASSOC_FP_TO_PARALLEL.
2090 (ix86_reassociation_width): New function.
2092 * params.def (PARAM_TREE_REASSOC_WIDTH): New param added.
2094 * tree-ssa-reassoc.c (get_required_cycles): New function.
2095 (get_reassociation_width): Likewise.
2096 (swap_ops_for_binary_stmt): Likewise.
2097 (rewrite_expr_tree_parallel): Likewise.
2099 (rewrite_expr_tree): Refactored. Part of code moved into
2100 swap_ops_for_binary_stmt.
2102 (reassociate_bb): Now checks reassociation width to be used and
2103 call rewrite_expr_tree_parallel instead of rewrite_expr_tree if needed.
2105 2011-09-06 Richard Guenther <rguenther@suse.de>
2107 PR tree-optimization/47025
2108 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): BUILT_IN_VA_END
2110 (call_may_clobber_ref_p_1): BUILT_IN_VA_END is a barrier like
2112 (stmt_kills_ref_p_1): BUILT_IN_VA_END kills what its argument
2113 definitely points to.
2114 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
2115 BUILT_IN_VA_START doesn't let its va_list argument escape.
2116 * tree-ssa-dce.c (propagate_necessity): BUILT_IN_VA_END does
2117 not make any previous stores necessary.
2119 2011-09-06 Martin Jambor <mjambor@suse.cz>
2121 * ipa-inline.h (struct inline_summary): Move versionable flag...
2122 * cgraph.h (struct cgraph_local_info): ...here
2123 * ipa-cp.c (determine_versionability): Use the new versionable flag.
2124 (determine_versionability): Likewise.
2125 (ipcp_versionable_function_p): Likewise.
2126 (ipcp_generate_summary): Likewise.
2127 * ipa-inline-analysis.c (dump_inline_summary): Do not dump the
2129 (compute_inline_parameters): Do not clear the versionable flag.
2130 (inline_read_section): Do not stream the versionable flag.
2131 (inline_write_summary): Likewise.
2132 * lto-cgraph.c (lto_output_node): Stream the versionable flag.
2133 (input_overwrite_node): Likewise.
2135 2011-09-06 Richard Guenther <rguenther@suse.de>
2137 PR tree-optimization/48149
2138 * tree-ssa-sccvn.c (vn_get_expr_for): Simplify. Fix tuplification bug.
2139 (vn_valueize): Move earlier.
2140 (valueize_expr): Use vn_valueize.
2141 (simplify_binary_expression): Simplify, also combine COMPLEX_EXPR
2143 (simplify_unary_expression): Simplify.
2145 2011-09-06 Richard Guenther <rguenther@suse.de>
2147 PR tree-optimization/48317
2148 * tree-ssa-sccvn.h (struct vn_nary_op_s): Make op a true
2150 (sizeof_vn_nary_op): New inline function.
2151 (vn_nary_op_lookup_pieces): Adjust.
2152 (vn_nary_op_insert_pieces): Likewise.
2153 * tree-ssa-sccvn.c (vn_nary_op_eq): Also compare the length.
2154 (init_vn_nary_op_from_pieces): Adjust signature. Deal with
2155 any number of operands.
2156 (vn_nary_length_from_stmt): New function.
2157 (init_vn_nary_op_from_stmt): Adjust for CONSTRUCTOR handling.
2158 (vn_nary_op_lookup_pieces): Adjust signature and allocate properly
2160 (vn_nary_op_lookup): Likewise.
2161 (vn_nary_op_lookup_stmt): Likewise.
2162 (vn_nary_op_insert_into): Likewise.
2163 (vn_nary_op_insert_stmt): Likewise.
2164 (visit_use): Handle CONSTRUCTOR as nary.
2165 * tree-ssa-pre.c (phi_translate_1): Adjust.
2166 (create_expression_by_pieces): Likewise.
2167 (compute_avail): Likewise.
2169 2011-09-06 Ira Rosen <ira.rosen@linaro.org>
2171 * config/arm/arm.c (arm_preferred_simd_mode): Check
2172 TARGET_NEON_VECTORIZE_DOUBLE instead of
2173 TARGET_NEON_VECTORIZE_QUAD.
2174 (arm_autovectorize_vector_sizes): Likewise.
2175 * config/arm/arm.opt (mvectorize-with-neon-quad): Make inverse
2176 mask of mvectorize-with-neon-double. Add RejectNegative.
2177 (mvectorize-with-neon-double): New.
2179 2011-09-06 Richard Guenther <rguenther@suse.de>
2181 * tree-ssa-sccvn.c (visit_use): CSE stmt pieces and simplify matching.
2183 2011-09-06 Tom de Vries <tom@codesourcery.com>
2185 * recog.c (asm_labels_ok): New function.
2186 (check_asm_operands): Use asm_labels_ok.
2188 2011-09-05 Richard Sandiford <rdsandiford@googlemail.com>
2191 * config/mips/mips.h (ABI_HAS_64BIT_SYMBOLS): Check Pmode.
2192 (PMODE_INSN): New macro.
2193 * config/mips/mips.c (gen_load_const_gp): Use PMODE_INSN.
2194 (mips_got_load, mips_expand_synci_loop): Likewise.
2195 (mips_save_gp_to_cprestore_slot): Handle SImode and DImode
2197 (mips_emit_loadgp): Use PMODE_INSN. Handle SImode and DImode
2198 copygp_mips16 patterns.
2199 (mips_expand_prologue): Handle SImode and DImode potential_cprestore
2200 and use_cprestore patterns.
2201 (mips_override_options): Check for incompatible -mabi and -mlong
2203 * config/mips/mips.md (unspec_got<mode>): Rename to...
2204 (unspec_got_<mode>): ...this.
2205 (copygp_mips16): Use the Pmode iterator.
2206 (potential_cprestore, cprestore, use_cprestore): Likewise.
2207 (clear_cache, indirect_jump): Use PMODE_INSN.
2208 (indirect_jump<mode>): Rename to...
2209 (indirect_jump_<mode>): ...this.
2210 (tablejump): Use PMODE_INSN.
2211 (tablejump<mode>): Rename to...
2212 (tablejump_<mode>): ...this.
2213 (exception_receiver): Handle restore_gp_si and restore_gp_di.
2214 (restore_gp): Use the Pmode iterator.
2215 * config/mips/mips-dsp.md (mips_lbux, mips_lhx, mips_lwx): Use
2218 2011-09-05 Richard Sandiford <rdsandiford@googlemail.com>
2220 * config/mips/mips.c (mips_gimplify_va_arg_expr): Unshare off.
2221 Fix the type of the BIT_AND_EXPR.
2223 2011-09-05 David S. Miller <davem@davemloft.net>
2225 * config.host: Add driver-sparc.o and sparc/x-sparc on
2226 native sparc*-*-linux* builds.
2227 * config/sparc/driver-sparc.c: Correct Linux strings.
2228 * config/sparc/linux.h: Add DRIVER_SELF_SPECS.
2229 * config/sparc/linux64.h: Likewise.
2230 * doc/invoke.texi: Document that Linux also supports
2231 -mcpu=native and -mtune=native on sparc.
2233 * config/sparc/sparc-opts.h (PROCESSOR_NIAGARA3,
2234 PROCESSOR_NIAGARA4): New.
2235 * config/sparc/sparc.opt: Handle new processor types.
2236 * config/sparc/sparc.md: Add to "cpu" attribute.
2237 * config/sparc/sparc.h (TARGET_CPU_niagara3,
2238 TARGET_CPU_niagara4): New, treat as niagara2.
2239 * config/sparc/linux64.h: Handle niagara3 and niagara4 like niagara2.
2240 * config/sparc/sol2.h: Likewise.
2241 * config/sparc/niagara2.md: Schedule niagara3 like niagara2.
2242 * config/sparc/sparc.c (sparc_option_override): Add
2243 niagara3 and niagara4 handling.
2244 (sparc32_initialize_trampoline): Likewise.
2245 (sparc64_initialize_trampoline): Likewise.
2246 (sparc_use_sched_lookahead): Likewise.
2247 (sparc_issue_rate): Likewise.
2248 (sparc_register_move_cost): Likewise.
2249 * config/sparc/driver-sparc.c (cpu_names): Use niagara3
2250 and niagara4 as appropriate.
2251 * doc/invoke.texi: Document new processor types.
2252 * config.gcc: Recognize niagara3 and niagara4 in --with-cpu
2253 and --with-tune options.
2255 * config/sparc/sol2-64.h: Move ...
2256 * config/sparc/default-64.h: ... to here. Update comment.
2257 * config.gcc: Update Solaris sparc to use default-64.h, also
2258 prefix this header into the list on sparc64-*-linux.
2259 * config/sparc/linux64.h (TARGET_DEFAULT): Only override if
2260 TARGET_64BIT_DEFAULT is defined. Remove commented out reference
2263 2011-09-05 Georg-Johann Lay <avr@gjlay.de>
2266 * config/avr/avr.c (sequent_regs_live): Don't recognize sequences
2267 that contain global register variable.
2269 2011-09-05 Richard Guenther <rguenther@suse.de>
2271 * tree-cfg.c (replace_uses_by): Use fold_stmt, not fold_stmt_inplace.
2273 2011-09-05 Richard Guenther <rguenther@suse.de>
2275 * stor-layout.c (layout_type): Use size_binop for array size
2278 2011-09-05 Georg-Johann Lay <avr@gjlay.de>
2280 * config/avr/avr.h (progmem_section): Remove Declaration.
2281 * config/avr/avr.c (progmem_section): Make static and rename to
2282 progmem_swtable_section.
2283 (avr_output_addr_vec_elt): No need to switch sections.
2284 (avr_asm_init_sections): Use output_section_asm_op as section
2285 callback for progmem_swtable_section.
2286 (avr_output_progmem_section_asm_op): Remove Function.
2287 (TARGET_ASM_FUNCTION_RODATA_SECTION): New Define.
2288 (avr_asm_function_rodata_section): New static Function.
2289 * config/avr/elf.h (ASM_OUTPUT_BEFORE_CASE_LABEL): Output
2290 alignment 2**1 for jump tables.
2292 2011-09-04 Jan Hubicka <jh@suse.cz>
2294 * ipa-inline-analysis.c (set_cond_stmt_execution_predicate): Check that
2295 parameter is SSA name.
2297 2011-09-04 Richard Guenther <rguenther@suse.de>
2300 2011-08-31 Richard Guenther <rguenther@suse.de>
2302 * fold-const.c (extract_muldiv_1): Remove bogus TYPE_IS_SIZETYPE
2305 2011-09-04 Iain Sandoe <iains@gcc.gnu.org>
2308 * config/darwin.h (DEBUG_MACRO_SECTION): New macro.
2310 2011-09-04 Jakub Jelinek <jakub@redhat.com>
2311 Ira Rosen <ira.rosen@linaro.org>
2313 PR tree-optimization/50208
2314 * tree-vect-patterns.c (vect_handle_widen_mult_by_const): Add an
2315 argument. Check that def_stmt is inside the loop.
2316 (vect_recog_widen_mult_pattern): Update calls to
2317 vect_handle_widen_mult_by_cons.
2318 (vect_operation_fits_smaller_type): Check that def_stmt is
2321 2011-09-04 Ira Rosen <ira.rosen@linaro.org>
2323 * tree-vectorizer.c (vect_print_dump_info): Print line
2324 number when dumping to a file.
2325 (vectorize_loops): Add new messages to dump file.
2327 2011-09-03 Martin Jambor <mjambor@suse.cz>
2329 * ipa-prop.h (ipa_jump_func_t): New typedef.
2330 (struct ipa_edge_args): Removed field argument_count, field
2331 jump_functions turned into a vector.
2332 (ipa_set_cs_argument_count): Removed.
2333 (ipa_get_cs_argument_count): Updated to work on vectors.
2334 (ipa_get_ith_jump_func): Likewise.
2335 * ipa-prop.c (ipa_count_arguments): Removed.
2336 (compute_scalar_jump_functions): Use ipa_get_ith_jump_func to access
2337 jump functions. Update caller.
2338 (compute_pass_through_member_ptrs): Likewise.
2339 (compute_cst_member_ptr_arguments): Likewise.
2340 (ipa_compute_jump_functions_for_edge): Get number of arguments from
2341 the statement, allocate vector.
2342 (ipa_compute_jump_functions): Do not call ipa_count_arguments.
2343 (duplicate_ipa_jump_func_array): Removed.
2344 (ipa_edge_duplication_hook): Use VEC_copy, do not copy argument count.
2345 (ipa_read_node_info): Allocate vector.
2347 2011-09-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2350 * config/pa/pa.md (return): Define "return" insn pattern.
2351 (epilogue): Use it when no epilogue is needed.
2352 * config/pa/pa.c (pa_can_use_return_insn): New function.
2353 * config/pa/pa-protos.h (pa_can_use_return_insn): Declare.
2355 2011-09-03 Eric Botcazou <ebotcazou@adacore.com>
2357 * cfgexpand.c (add_stack_var): Assert that the alignment is not zero.
2358 * tree-ssa-ccp.c (fold_builtin_alloca_for_var): Revert latest change.
2359 Force at least BITS_PER_UNIT alignment on the new variable.
2361 2011-09-02 Gary Funck <gary@intrepid.com>
2363 * opts.c (print_specific_help): Fix off-by-one compare in
2365 * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
2366 CL_TARGET, CL_COMMON, CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED):
2367 Increase by +5 to allow for more languages.
2368 * optc-gen.awk: Generate #if that ensures that the number of
2369 languages is within the implementation-defined limit.
2371 2011-09-02 Michael Matz <matz@suse.de>
2374 * ipa-split.c (split_function): Call add_referenced_var.
2376 * tree-ssa-phiopt.c (cond_store_replacement): Don't call get_var_ann.
2377 (cond_if_else_store_replacement_1): Ditto.
2378 * tree-ssa-pre.c (get_representative_for): Ditto.
2379 (create_expression_by_pieces): Ditto.
2380 (insert_into_preds_of_block): Ditto.
2381 * tree-sra.c (create_access_replacement): Ditto.
2382 (get_replaced_param_substitute): Ditto.
2384 2011-09-02 Bernd Schmidt <bernds@codesourcery.com>
2386 * config/c6x/c6x.md (collapse-ndfa, no-comb-vect): New
2388 (d1, l1, s1, m1, d2, l2, s2, m2): Changed to define_query_cpu_unit.
2389 (l1w, s1w, l2w, s2w): Define in the main automaton.
2390 (fps1, fpl1, adddps1, adddpl1, fps2, fpl2, adddps2, adddpl2): New
2392 * config/c6x/c6x.c (c6x_sched_insn_info): Add unit_mask member.
2393 (c6x_unit_names): Add the new units.
2394 (c6x_unit_codes): New static array.
2395 (UNIT_QID_D1, UNIT_QID_L1, UNIT_QID_S1, UNIT_QID_M1, UNIT_QID_FPS1,
2396 UNIT_QID_FPL1, UNIT_QID_ADDDPS1, UNIT_QID_ADDDPL1,
2397 UNIT_QID_SIDE_OFFSET): New macros.
2398 (RESERVATION_S2): Adjust value.
2399 (c6x_option_override): Compute c6x_unit_codes.
2400 (assign_reservations): Take the unit_mask of the last instruction
2401 into account. Detect floating point reservations by looking for
2402 the new units. Don't assign reservations if the field is already
2404 (struct c6x_sched_context): Add member prev_cycle_state_ctx.
2405 (init_sched_state): Initialize it.
2406 (c6x_clear_sched_context): Free it.
2407 (insn_set_clock): Clear reservation.
2408 (prev_cycle_state): New static variable.
2409 (c6x_init_sched_context): Save it.
2410 (c6x_sched_init): Allocate space for it and clear it.
2411 (c6x_sched_dfa_pre_cycle_insn): New static function.
2412 (c6x_dfa_new_cycle): Save state at the start of a new cycle.
2413 (c6x_variable_issue): Only record units in the unit_mask that
2414 were not set at the start of the cycle.
2415 (c6x_variable_issue): Compute and store the unit_mask from the
2417 (reorg_split_calls): Ensure the new information remains correct.
2418 (TARGET_SCHED_DFA_NEW_CYCLE, TARGET_SCHED_CLEAR_SCHED_CONTEXT,
2419 TARGET_SCHED_DFA_PRE_CYCLE_INSN): Define.
2420 * config/c6x/c6x.h (CPU_UNITS_QUERY): Define.
2421 * config/c6x/c6x-sched.md.in (fp4_ls_N__CROSS_, adddp_ls_N__CROSS_):
2422 Add special reservations.
2423 * config/c6x/c6x-sched.md: Regenerate.
2425 2011-09-02 Martin Jambor <mjambor@suse.cz>
2427 * ipa-prop.h (ipa_node_params): Removed fields
2428 called_with_var_arguments and node_versionable.
2429 (ipa_set_called_with_variable_arg): Removed.
2430 (ipa_is_called_with_var_arguments): Likewise.
2431 * ipa-cp.c (ipa_get_lattice): Fixed index check in an assert.
2432 (determine_versionability): Do not check for type attributes and va
2433 builtins. Record versionability into inline summary.
2434 (initialize_node_lattices): Do not check
2435 ipa_is_called_with_var_arguments.
2436 (propagate_constants_accross_call): Likewise, ignore arguments we do
2437 not have PARM_DECLs for, set variable flag for parameters that were
2439 (create_specialized_node): Dump info that we cannot change signature.
2440 * ipa-prop.c (ipa_compute_jump_functions): Do not care about variable
2441 number of arguments.
2442 (ipa_make_edge_direct_to_target): Likewise.
2443 (ipa_update_after_lto_read): Likewise.
2444 (ipa_node_duplication_hook): Do not copy called_with_var_arguments flag.
2445 * tree-inline.c (copy_arguments_for_versioning): Copy PARM_DECLs if
2448 2011-09-02 Richard Guenther <rguenther@suse.de>
2450 PR tree-optimization/27460
2452 * doc/md.texi (vcond): Document.
2453 * genopinit.c (optabs): Turn vcond{,u}_optab into a conversion
2454 optab with two modes.
2455 * optabs.h (enum convert_optab_index): Add COI_vcond, COI_vcondu.
2456 (enum direct_optab_index): Remove DOI_vcond, DOI_vcondu.
2457 (vcond_optab): Adjust.
2458 (vcondu_optab): Likewise.
2459 (expand_vec_cond_expr_p): Adjust prototype.
2460 * optabs.c (get_vcond_icode): Adjust.
2461 (expand_vec_cond_expr_p): Likewise.
2462 (expand_vec_cond_expr): Likewise.
2463 * tree-vect-stmts.c (vect_is_simple_cond): Return the comparison
2465 (vectorizable_condition): Allow differing types for comparison
2467 * config/i386/i386.c (ix86_expand_sse_cmp): Use proper mode
2469 * config/i386/sse.md (vcond<mode>): Split to
2470 vcond<V_256:mode><VF_256:mode>, vcond<V_128:mode><VF_128:mode>,
2471 vcond<V_128:mode><VI124_128:mode> and
2472 vcondu<V_128:mode><VI124_128:mode>.
2473 (vcondv2di): Change to vcond<VI8F_128:mode>v2di.
2474 (vconduv2di): Likewise.
2475 * config/arm/neon.md (vcond<mode>): Change to vcond*<mode><mode>.
2476 (vcondu<mode>): Likewise.
2477 * config/ia64/vect.md (vcond<mode>): Likewise.
2478 (vcondu<mode>): Likewise.
2479 (vcondv2sf): Likewise.
2480 * config/mips/mips-ps-3d.md (vcondv2sf): Likewise.
2481 * config/rs6000/paired.md (vcondv2sf): Likewise.
2482 * config/rs6000/vector.md (vcond<mode>): Likewise.
2483 (vcondu<mode>): Likewise.
2484 * config/spu/spu.md (vcond<mode>): Likewise.
2485 (vcondu<mode>): Likewise.
2487 2011-09-02 Richard Guenther <rguenther@suse.de>
2489 * pretty-print.h (pp_unsigned_wide_integer): New.
2490 * tree-pretty-print.c (dump_generic_node): Print unsigned
2491 host-wide-int fitting INTEGER_CSTs with pp_unsigned_wide_integer.
2493 2011-09-02 Richard Sandiford <richard.sandiford@linaro.org>
2496 * config/rs6000/rs6000.c (paired_expand_vector_init): Check for
2497 valid CONST_VECTOR operands.
2498 (rs6000_expand_vector_init): Likewise.
2500 2011-09-02 Martin Jambor <mjambor@suse.cz>
2502 * cgraph.h (cgraph_indirect_call_info): Removed field thunk_delta.
2503 * gimple-fold.c (gimple_get_virt_method_for_binfo): Rewritten to use
2504 BINFO_VTABLE. Parameter delta removed, all callers updated.
2505 * tree.c (free_lang_data_in_binfo): Clear BINFO_VIRTUALs instead
2507 * cgraph.c (cgraph_make_edge_direct): Removed parameter delta, updated
2509 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Removed
2510 handling of thunk_delta.
2511 * ipa-cp.c (get_indirect_edge_target): Removed parameter delta.
2512 (devirtualization_time_bonus): Do not handle thunk deltas.
2513 (ipcp_discover_new_direct_edges): Likewise.
2514 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
2515 (try_make_edge_direct_simple_call): Likewise.
2516 (try_make_edge_direct_virtual_call): Likewise.
2517 * lto-cgraph.c (output_cgraph_opt_summary_p): Likewise. Mark
2518 parameter set as unused.
2519 (output_edge_opt_summary): Likewise. Mark both parameters as unused.
2520 * lto-cgraph.c (output_cgraph_opt_summary_p): Likewise. Mark
2521 parameter set as unused.
2522 (output_edge_opt_summary): Likewise. Mark both parameters as unused.
2523 (input_edge_opt_summary): Likewise.
2524 * lto-streamer-out.c (lto_output_ts_binfo_tree_pointers): Do not stream
2525 BINFO_VIRTUALS at all.
2526 * lto-streamer-in.c (lto_input_ts_binfo_tree_pointers): Likewise.
2528 2011-09-02 Richard Guenther <rguenther@suse.de>
2530 * tree-ssa-ccp.c (fold_builtin_alloca_for_var): Do not fold alloca (0).
2531 (ccp_fold_stmt): Continue replacing args when folding alloca fails.
2533 2011-08-31 Richard Guenther <rguenther@suse.de>
2535 * expr.c (expand_expr_real_2): Move COND_EXPR and VEC_COND_EXPR
2536 handling here, from ...
2537 (expand_expr_real_1): ... here.
2538 * gimple-pretty-print.c (dump_ternary_rhs): Handle COND_EXPR
2540 * gimple.c (gimple_rhs_class_table): Make COND_EXPR and VEC_COND_EXPR
2541 a GIMPLE_TERNARY_RHS.
2542 * tree-cfg.c (verify_gimple_assign_ternary): Handle COND_EXPR
2543 and VEC_COND_EXPR here ...
2544 (verify_gimple_assign_single): ... not here.
2545 * gimple-fold.c (fold_gimple_assign): Move COND_EXPR folding.
2546 * tree-object-size.c (cond_expr_object_size): Adjust.
2547 (collect_object_sizes_for): Likewise.
2548 * tree-scalar-evolution.c (interpret_expr): Don't handle ternary RHSs.
2549 * tree-ssa-forwprop.c (forward_propagate_into_cond): Fix and simplify.
2550 (ssa_forward_propagate_and_combine): Adjust.
2551 * tree-ssa-loop-im.c (move_computations_stmt): Build the COND_EXPR
2553 * tree-ssa-threadedge.c (fold_assignment_stmt): Adjust.
2554 * tree-vect-loop.c (vect_is_simple_reduction_1): Likewise.
2555 * tree-vect-stmt.c (vectorizable_condition): Likewise.
2556 * tree-vrp.c (extract_range_from_cond_expr): Likewise.
2557 (extract_range_from_assignment): Likewise.
2559 2011-08-31 Richard Sandiford <rdsandiford@googlemail.com>
2561 * config/i386/i386.md: Use (match_test ...) for attribute tests.
2562 * config/i386/mmx.md: Likewise.
2563 * config/i386/sse.md: Likewise.
2564 * config/i386/predicates.md (call_insn_operand): Use
2565 (not (match_test "...")) instead of (match_test "!...")
2566 * config/i386/constraints.md (w): Likewise.
2568 2011-08-31 Richard Sandiford <rdsandiford@googlemail.com>
2570 * doc/md.texi: Describe the use of match_tests in attribute tests.
2571 * rtl.def (MATCH_TEST): Update commentary.
2572 * genattrtab.c (attr_copy_rtx, check_attr_test, clear_struct_flag)
2573 (write_test_expr, walk_attr_value): Handle MATCH_TEST.
2575 2011-08-31 Richard Sandiford <rdsandiford@googlemail.com>
2577 * genattrtab.c (attr_rtx_1): Hash SYMBOL_REFs.
2578 (attr_string): Use copy_md_ptr_loc.
2580 2011-08-31 Martin Jambor <mjambor@suse.cz>
2583 * ipa-inline-analysis.c (compute_inline_parameters): Set
2584 can_change_signature of noes with typde attributes.
2585 * ipa-split.c (split_function): Do not skip any arguments if
2586 can_change_signature is set.
2588 2011-08-31 Martin Jambor <mjambor@suse.cz>
2590 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Alias
2593 2011-08-31 Richard Guenther <rguenther@suse.de>
2595 * fold-const.c (extract_muldiv_1): Remove bogus TYPE_IS_SIZETYPE
2598 2011-08-31 Marc Glisse <marc.glisse@inria.fr>
2600 * doc/generic.texi (Types for C++): CP_TYPE_QUALS -> cp_type_quals.
2602 2011-08-31 Tom de Vries <tom@codesourcery.com>
2605 * Makefile.in (tree-ssa-ccp.o): Add $(PARAMS_H) to rule.
2606 * tree-ssa-ccp.c (params.h): Include.
2607 (fold_builtin_alloca_for_var): New function.
2608 (ccp_fold_stmt): Use fold_builtin_alloca_for_var.
2610 2011-08-30 Uros Bizjak <ubizjak@gmail.com>
2612 * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
2615 2011-08-30 Andrew Stubbs <ams@codesourcery.com>
2617 * config/arm/arm.c (optimal_immediate_sequence_1): Make b1, b2,
2620 2011-08-30 Andrew Stubbs <ams@codesourcery.com>
2622 * config/arm/arm.c (arm_gen_constant): Set can_negate correctly
2625 2011-08-30 Richard Guenther <rguenther@suse.de>
2628 * gimple.h (maybe_fold_offset_to_address): Remove.
2629 (maybe_fold_offset_to_reference): Likewise.
2630 (maybe_fold_stmt_addition): Likewise.
2631 (may_propagate_address_into_dereference): Likewise.
2632 * tree-inline.c (remap_gimple_op_r): Do not reconstruct
2634 * gimple-fold.c (canonicalize_constructor_val): Likewise.
2635 Canonicalize invariant POINTER_PLUS_EXPRs to invariant MEM_REF
2637 (may_propagate_address_into_dereference): Remove.
2638 (maybe_fold_offset_to_array_ref): Likewise.
2639 (maybe_fold_offset_to_reference): Likewise.
2640 (maybe_fold_offset_to_address): Likewise.
2641 (maybe_fold_stmt_addition): Likewise.
2642 (fold_gimple_assign): Do not reconstruct array references but
2643 instead canonicalize invariant POINTER_PLUS_EXPRs to invariant
2645 (gimple_fold_stmt_to_constant_1): Likewise.
2646 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
2647 * gimplify.c (gimplify_conversion): Likewise.
2648 (gimplify_expr): Likewise.
2650 2011-08-30 Ilya Tocar <ilya.tocar@intel.com>
2652 * config/i386/fmaintrin.h: New.
2653 * config.gcc: Add fmaintrin.h.
2654 * config/i386/i386.c
2655 (enum ix86_builtins) <IX86_BUILTIN_VFMADDSS3>: New.
2656 <IX86_BUILTIN_VFMADDSD3>: Likewise.
2657 * config/i386/sse.md (fmai_vmfmadd_<mode>): New.
2658 (*fmai_fmadd_<mode>): Likewise.
2659 (*fmai_fmsub_<mode>): Likewise.
2660 (*fmai_fnmadd_<mode>): Likewise.
2661 (*fmai_fnmsub_<mode>): Likewise.
2662 * config/i386/immintrin.h: Add fmaintrin.h.
2664 2011-08-30 Bernd Schmidt <bernds@codesourcery.com>
2666 * genautomata.c (NO_COMB_OPTION): New macro.
2667 (no_comb_flag): New static variable.
2668 (gen_automata_option): Handle NO_COMB_OPTION.
2669 (comb_vect_p): False if no_comb_flag.
2670 (add_vect): Move computation of min/max values. Return early if
2672 * doc/md.texi (automata_option): Document no-comb-vect.
2674 * config/i386/i386.c (get_pc_thunk_name): Change prefix to
2675 "__x86.get_pc_thunk".
2677 * bb-reorder.c (insert_section_boundary_note): Only do it if
2678 we reordered the blocks; i.e. not if !optimize_function_for_speed_p.
2680 2011-08-30 Christian Bruel <christian.bruel@st.com>
2682 * coverage.c (coverage_init): Check flag_branch_probabilities instead of
2685 2011-08-29 Michael Meissner <meissner@linux.vnet.ibm.com>
2687 * config/rs6000/rs6000.opt (-msave-toc-indirect): Change default
2688 to off. Document switch.
2689 * doc/invoke.texi (-msave-toc-indirect): Ditto.
2691 2011-08-29 Jakub Jelinek <jakub@redhat.com>
2693 * gthr-posix.h (__gthread_active_p): Do not use preprocessor
2694 conditionals and comments inside macro arguments.
2696 2011-08-29 Artjoms Sinkarovs <artyom.shinkaroff@gmail.com>
2697 Richard Guenther <rguenther@suse.de>
2699 * tree.h (constant_boolean_node): Adjust prototype.
2700 * fold-const.c (fold_convert_loc): Move aggregate conversion
2702 (constant_boolean_node): Make value parameter boolean, add
2703 vector type handling.
2704 (fold_unary_loc): Use constant_boolean_node.
2705 (fold_binary_loc): Preserve types properly when folding
2706 COMPLEX_EXPR <__real x, __imag x>.
2707 * gimplify.c (gimplify_expr): Handle vector comparison.
2708 * tree.def (EQ_EXPR, ...): Document behavior on vector typed
2710 * tree-cfg.c (verify_gimple_comparison): Verify vector typed
2713 2011-08-29 Jakub Jelinek <jakub@redhat.com>
2716 * emit-rtl.c (unshare_all_rtl_again): For CALL_INSNs,
2717 reset_used_flags also in CALL_INSN_FUNCTION_USAGE.
2718 (verify_rtl_sharing): Likewise and verify_rtx_sharing
2720 (unshare_all_rtl_in_chain): For CALL_INSNs
2721 copy_rtx_if_shared also CALL_INSN_FUNCTION_USAGE.
2723 2011-08-29 Richard Guenther <rguenther@suse.de>
2725 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Set a location
2726 on the built ADDR_EXPR.
2728 2011-08-29 Jakub Jelinek <jakub@redhat.com>
2731 * var-tracking.c (create_entry_value): Call cselib_lookup_from_insn
2732 before adding ENTRY_VALUE to val->locs.
2734 2011-08-28 Mikael Pettersson <mikpe@it.uu.se>
2737 * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Initialize
2740 2011-08-27 Bernd Schmidt <bernds@codesourcery.com>
2742 * doc/rtl.texi (simple_return): Document.
2743 (parallel, PATTERN): Here too.
2744 * doc/md.texi (return): Mention it's allowed to expand to simple_return
2746 (simple_return): Document standard pattern.
2747 * gengenrtl.c (special_rtx): SIMPLE_RETURN is special.
2748 * final.c (final_scan_insn): Use ANY_RETURN_P on body.
2749 * reorg.c (function_return_label, function_simple_return_label):
2750 New static variables, replacing...
2751 (end_of_function_label): ... this.
2752 (simplejump_or_return_p): New static function.
2753 (optimize_skip, steal_delay_list_from_fallthrough,
2754 fill_slots_from_thread): Use it.
2755 (relax_delay_slots): Likewise. Use ANY_RETURN_P on body.
2756 (rare_destination, follow_jumps): Use ANY_RETURN_P on body.
2757 (find_end_label): Take a new arg which is one of the two return
2758 rtxs. Depending on which, set either function_return_label or
2759 function_simple_return_label. All callers changed.
2760 (make_return_insns): Make both kinds.
2761 (dbr_schedule): Adjust for two kinds of end labels.
2762 * function.c (emit_return_into_block): Set JUMP_LABEL properly.
2763 * genemit.c (gen_exp): Handle SIMPLE_RETURN.
2764 (gen_expand, gen_split): Use ANY_RETURN_P.
2765 * df-scan.c (df_uses_record): Handle SIMPLE_RETURN.
2766 * rtl.def (SIMPLE_RETURN): New code.
2767 * ifcvt.c (find_if_case_1): Be more careful about
2768 redirecting jumps to the EXIT_BLOCK.
2769 * jump.c (condjump_p, condjump_in_parallel_p, any_condjump_p,
2770 returnjump_p_1): Handle SIMPLE_RETURNs.
2771 * print-rtl.c (print_rtx): Likewise.
2772 * rtl.c (copy_rtx): Likewise.
2773 * bt-load.c (compute_defs_uses_and_gen): Use ANY_RETURN_P.
2774 * combine.c (simplify_set): Likewise.
2775 * resource.c (find_dead_or_set_registers, mark_set_resources):
2777 * emit-rtl.c (verify_rtx_sharing, classify_insn, copy_insn_1,
2778 copy_rtx_if_shared_1, mark_used_flags): Handle SIMPLE_RETURNs.
2779 (init_emit_regs): Initialize simple_return_rtx.
2780 * cfglayout.c (fixup_reorder_chain): Pass a JUMP_LABEL to
2781 force_nonfallthru_and_redirect.
2782 * rtl.h (ANY_RETURN_P): Allow SIMPLE_RETURN.
2783 (GR_SIMPLE_RETURN): New enum value.
2784 (simple_return_rtx): New macro.
2785 * basic-block.h (force_nonfallthru_and_redirect): Adjust
2787 * cfgrtl.c (force_nonfallthru_and_redirect): Take a new jump_label
2788 argument. All callers changed. Be careful about what kinds of
2789 returnjumps to generate.
2790 * config/i386/3i86.c (ix86_pad_returns, ix86_count_insn_bb,
2791 ix86_pad_short_function): Likewise.
2792 * config/arm/arm.c (arm_final_prescan_insn): Handle both kinds
2794 * config/mips/mips.md (any_return): New code_iterator.
2795 (optab): Add cases for return and simple_return.
2796 (return): Expand to a simple_return.
2797 (simple_return): New pattern.
2798 (*<optab>, *<optab>_internal for any_return): New patterns.
2799 (return_internal): Remove.
2800 * config/mips/mips.c (mips_expand_epilogue): Make the last insn
2801 a simple_return_internal.
2803 2011-08-27 Uros Bizjak <ubizjak@gmail.com>
2805 * config/i386/sse.md (*absneg<mode>2): Fix split condition.
2806 (vec_extract_lo_<mode>): Prevent both operands in memory.
2807 (vec_extract_lo_v16hi): Ditto.
2808 (*vec_extract_v4sf_mem): Add TARGET_SSE insn constraint.
2810 2011-08-27 Uros Bizjak <ubizjak@gmail.com>
2812 * config/i386/sse.md (mulv16qi3): Attach REG_EQUAL note.
2813 (*sse2_mulv4si3): Ditto.
2815 * config/i386/i386.c (legitimize_tls_address): Change REG_EQIV
2818 2011-08-27 Uros Bizjak <ubizjak@gmail.com>
2821 * config/i386/sse.md (sse4_2_pcmpestr): Emit NOTE_INSN_DELETED note
2822 when all outputs are unused.
2823 (sse4_2_pcmpistr): Ditto.
2825 2011-08-26 Uros Bizjak <ubizjak@gmail.com>
2827 * config/i386/i386.md (round<mode>2): New expander.
2828 * config/i386/i386.c (enum ix86_builtins): Add
2829 IX86_BUILTIN_ROUND{PS,PD}_AZ{,256}.
2830 (struct builtin_description): Add __builtin_ia32_round{ps,pd}_az{,256}
2832 (ix86_builtin_vectorized_function): Handle BUILT_IN_ROUND{,F} builtins.
2833 (ix86_build_const_vector): Rewrite using loop with RTVEC_ELT accessor.
2835 2011-08-26 Uros Bizjak <ubizjak@gmail.com>
2838 * convert.c (convert_to_integer) <BUIT_IN_ROUND{,F,L}>: Convert
2839 only when TARGET_C99_FUNCTIONS.
2840 <BUILT_IN_NEARBYINT{,F,L}>: Ditto.
2841 <BUILT_IN_RINT{,F,L}>: Ditto.
2843 2011-08-26 Michael Matz <matz@suse.de>
2844 Jakub Jelinek <jakub@redhat.com>
2847 * lto-streamer-in.c (canon_file_name): Initialize new_slot->len;
2848 don't call strlen twice, use memcpy.
2850 2011-08-26 H.J. Lu <hongjiu.lu@intel.com>
2852 * config/i386/bmi2intrin.h: Allow in <immintrin.h>.
2853 * config/i386/bmiintrin.h: Likewise.
2854 * config/i386/lzcntintrin.h: Likewise.
2856 * config/i386/immintrin.h: Include <lzcntintrin.h>,
2857 <bmiintrin.h> and <bmi2intrin.h>.
2859 2011-08-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2862 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Check count in main.
2863 * configure: Regenerate.
2865 2011-08-26 Jakub Jelinek <jakub@redhat.com>
2868 * c-typeck.c (c_process_expr_stmt): Skip over nops and
2869 call mark_exp_read even if exprv is ADDR_EXPR.
2871 2011-08-26 Richard Sandiford <richard.sandiford@linaro.org>
2873 * df-problems.c (df_note_bb_compute): Pass uses rather than defs
2874 to df_set_dead_notes_for_mw.
2876 2011-08-26 Richard Guenther <rguenther@suse.de>
2878 * varasm.c (decode_addr_const): Handle MEM_REF[&X, OFF].
2880 2011-08-26 Zdenek Dvorak <ook@ucw.cz>
2881 Tom de Vries <tom@codesourcery.com>
2883 * tree-ssa-loop-ivopts.c (struct cost_pair): Add comp field.
2884 (struct ivopts_data): Add loop_single_exit_p field.
2885 (niter_for_exit): Change parameter desc_p into return value. Return
2886 desc if desc->may_be_zero. Free desc if unused.
2887 (niter_for_single_dom_exit): Change return type.
2888 (find_induction_variables): Handle changed return type of
2889 niter_for_single_dom_exit. Dump may_be_zero.
2890 (add_candidate_1): Keep original base and step type for IP_ORIGINAL.
2891 (set_use_iv_cost): Add and handle comp parameter.
2892 (determine_use_iv_cost_generic, determine_use_iv_cost_address): Add
2893 comp argument to set_use_iv_cost.
2894 (strip_wrap_conserving_type_conversions, expr_equal_p)
2895 (difference_cannot_overflow_p, iv_elimination_compare_lt): New function.
2896 (may_eliminate_iv): Add comp parameter. Handle new return type of
2897 niter_for_exit. Use loop_single_exit_p. Use iv_elimination_compare_lt.
2898 (determine_use_iv_cost_condition): Add comp argument to set_use_iv_cost
2899 and may_eliminate_iv.
2900 (rewrite_use_compare): Move call to iv_elimination_compare to ...
2901 (may_eliminate_iv): Here.
2902 (tree_ssa_iv_optimize_loop): Initialize loop_single_exit_p.
2904 2011-08-26 Tom de Vries <tom@codesourcery.com>
2906 * tree-pretty-print (dump_generic_node): Test for NULL_TREE before
2907 accessing TREE_TYPE.
2909 2011-08-26 Jiangning Liu <jiangning.liu@arm.com>
2911 * config/arm/arm.md (*ior_scc_scc): Enable for Thumb2 as well.
2912 (*ior_scc_scc_cmp): Likewise
2913 (*and_scc_scc): Likewise.
2914 (*and_scc_scc_cmp): Likewise.
2915 (*and_scc_scc_nodom): Likewise.
2916 (*cmp_ite0, *cmp_ite1, *cmp_and, *cmp_ior): Handle Thumb2.
2918 2011-08-26 Jakub Jelinek <jakub@redhat.com>
2920 * rtlanal.c (nonzero_bits1): Handle CLRSB.
2922 2011-08-26 Richard Guenther <rguenther@suse.de>
2924 * expr.c (string_constant): Handle &MEM_REF.
2926 2011-08-26 Andrew Stubbs <ams@codesourcery.com>
2928 * config/arm/arm.c (struct four_ints): New type.
2929 (count_insns_for_constant): Delete function.
2930 (find_best_start): Delete function.
2931 (optimal_immediate_sequence): New function.
2932 (optimal_immediate_sequence_1): New function.
2933 (arm_gen_constant): Move constant splitting code to
2934 optimal_immediate_sequence.
2935 Rewrite constant negation/invertion code.
2937 2011-08-26 Andrew Stubbs <ams@codesourcery.com>
2939 * config/arm/arm-protos.h (const_ok_for_op): Add prototype.
2940 * config/arm/arm.c (const_ok_for_op): Add support for addw/subw.
2941 Remove prototype. Remove static function type.
2942 * config/arm/arm.md (*arm_addsi3): Add addw/subw support.
2944 * config/arm/constraints.md (Pj, PJ): New constraints.
2946 2011-08-26 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2948 * config/arm/cortex-a9.md ("cortex_a9_mult_long"): New.
2949 ("cortex_a9_multiply_long"): New and use above. Handle all
2950 long multiply cases.
2951 ("cortex_a9_multiply"): Handle smmul and smmulr.
2952 ("cortex_a9_mac"): Handle smmla.
2954 2011-08-25 Richard Henderson <rth@redhat.com>
2958 * cfgcleanup.c (old_insns_match_p): Don't allow cross-jump for
2959 non-constant stack adjutment.
2960 * expr.c (find_args_size_adjust): Break out from ...
2961 (fixup_args_size_notes): ... here.
2962 * rtl.h (find_args_size_adjust): Declare.
2964 2011-08-25 Uros Bizjak <ubizjak@gmail.com>
2966 * config/i386/i386.md (isa): Add sse2, sse2_noavx, sse3,
2967 sse4 and sse4_noavx.
2968 (enabled): Handle sse2, sse2_noavx, sse3, sse4 and sse4_noavx.
2969 (*pushdf_rex64): Change Y2 register constraint to x.
2970 (*movdf_internal_rex64): Ditto.
2971 (*zero_extendsidi2_rex64): Ditto.
2972 (*movdi_internal): Change Y2 register constraint to x
2973 and update "isa" attribute.
2975 (*movdf internal): Ditto.
2976 (zero_extendsidi2_1): Ditto.
2977 (*truncdfdf_mixed): Ditto.
2978 (*truncxfdf2_mixed): Ditto.
2979 * config/i386/mmx.md (*mov<mode>_internal_rex64): Change Y2
2980 register constraint to x.
2981 (*movv2sf_internal_rex64): Ditto.
2982 (*mov<mode>_internal): Change Y2 register constraint to x
2983 and add "isa" attribute.
2984 (*movv2sf_internal): Ditto.
2985 (*vec_extractv2si_1): Ditto.
2986 * config/i386/sse.md ("vec_set<mode>_0): Change Y2 and Y4 register
2987 constraints to x and update "isa" attribute.
2988 (*vec_interleave_highv2df): Change Y3 registerconstraint
2989 to x and update "isa" attribute.
2990 (*vec_interleave_lowv2df): Ditto.
2991 (*vec_concatv2df): Change Y2 register constraint to x and
2992 update "isa" attribute.
2993 (sse2_loadld): Ditto.
2994 (*vec_extractv2di_1): Ditto.
2995 (*vec_dupv4si): Ditto.
2996 (*vec_dupv2di): Ditto.
2997 (*vec_concatv4si): Ditto.
2998 (vec_concatv2di): Ditto.
2999 * config/i386/constraints.md (Y2): Remove.
3003 2011-08-25 Bernd Schmidt <bernds@codesourcery.com>
3005 * regrename.c (scan_rtx_reg, scan_rtx_address, build_def_use,
3006 dump_def_use_chain): Don't declare.
3007 (mark_conflict, create_new_chain): Move before users.
3008 (regrename_optimize): Move to near end of file.
3010 2011-08-25 Georg-Johann Lay <avr@gjlay.de>
3012 * config/avr-protos.h (byte_immediate_operand): Remove Prototype.
3013 (secondary_input_reload_class): Remove Prototype.
3014 * config/avr/avr.c (byte_immediate_operand): Remove Function.
3015 * config/avr/avr.md (setmemhi): Use u8_operand.
3016 (strlenhi): Use const0_rtx for comparison.
3017 * config/avr/avr.h (avr_reg_order): Remove Declaration.
3019 2011-08-25 Georg-Johann Lay <avr@gjlay.de>
3021 * config/avr/avr.c (reg_class_tab): Make local to
3022 avr_regno_reg_class. Return smallest register class available.
3024 2011-08-25 Georg-Johann Lay <avr@gjlay.de>
3026 * config/avr/avr.c (STR_PREFIX_P): New Define.
3027 (avr_asm_declare_function_name): Use it.
3028 (avr_asm_named_section): Use it.
3029 (avr_section_type_flags): Use it.
3031 2011-08-25 Bernd Schmidt <bernds@codesourcery.com>
3033 * doc/md.texi (automata_option): Document collapse-ndfa.
3034 * genautomata.c (COLLAPSE_OPTION): New macro.
3035 (collapse_flag): New static variable.
3036 (struct description): New member normal_decls_num.
3037 (struct automaton): New members advance_ainsn and collapse_ainsn.
3038 (gen_automata_option): Check for COLLAPSE_OPTION.
3039 (collapse_ndfa_insn_decl): New static variable.
3040 (add_collapse_ndfa_insn_decl, special_decl_p): New functions.
3041 (find_arc): If insn is the collapse-ndfa insn, accept any arc we find.
3042 (transform_insn_regexps): Call add_collapse_ndfa_insn_decl if
3043 necessary. Use normal_decls_num rather than decls_num, remove
3044 test for special decls.
3045 (create_alt_states, form_ainsn_with_same_reservs): Use special_decl_p.
3046 (make_automaton); Likewise. Use the new advance_cycle_insn member
3047 of struct automaton.
3048 (create_composed_state): Disallow advance-cycle arcs if collapse_flag
3050 (NDFA_to_DFA): Don't create composed states for the collapse-ndfa
3051 transition. Create the necessary transitions for it.
3052 (create_ainsns): Return void. Take an automaton_t argument, and
3053 update its ainsn_list, advance_ainsn and collapse_ainsn members. All
3055 (COLLAPSE_NDFA_VALUE_NAME): New macro.
3056 (output_tables): Output code to define it.
3057 (output_internal_insn_code_evaluation): Output code to accept
3058 const0_rtx as collapse-ndfa transition.
3059 (output_default_latencies, output_print_reservation_func,
3060 output_print_description): Reorganize loops to use normal_decls_num
3061 as loop bound; remove special case for advance_cycle_insn_decl.
3062 (initiate_automaton_gen): Handle COLLAPSE_OPTION.
3063 (check_automata_insn_issues): Check for collapse_ainsn.
3064 (expand_automate): Allocate sufficient space. Initialize
3067 2011-08-25 Georg-Johann Lay <avr@gjlay.de>
3069 * config/avr/avr.md: Fix indentation from r177991.
3071 2011-08-25 Bernd Schmidt <bernds@codesourcery.com>
3073 * regrename.c (struct du_head): Remove member terminated.
3074 (create_new_chain): Don't initialize it.
3075 (scan_rtx_reg): Don't set or test it, test the open_chains_set
3077 (tick, this_tick): New global variables, moved out of
3079 (current_id, open_chains, closed_chains, open_chains_set,
3080 live_in_chains, live_hard_regs): Reorder declarations.
3081 (dump_def_use_chain): Move function earlier in the file.
3082 (rename_chains): New static function, broken out of
3084 (regrename_optimize): Use it. Remove #if 0'ed code.
3086 2011-08-25 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
3088 * varasm.c: (default_binds_local_p_1): Commentary typo fix.
3090 2011-08-24 H.J. Lu <hongjiu.lu@intel.com>
3093 * config/i386/i386.c (ix86_expand_builtin): Convert to Pmode if needed.
3095 2011-08-24 Richard Guenther <rguenther@suse.de>
3097 * tree-data-ref.c (dr_analyze_indices): Avoid unsharing the
3098 ref in the basic-block case. Move stripping array-refs
3099 to the place we create an access-function for it. Remove
3100 bogus stripping down a MEM_REF to its base.
3102 2011-08-24 Richard Guenther <rguenther@suse.de>
3104 * fold-const.c (fold_comparison): Fold &a < &a + 4 even
3105 with -fno-strict-overflow.
3107 2011-08-24 Richard Guenther <rguenther@suse.de>
3109 * tree-vectorizer.c (vect_print_dump_info): Avoid the
3110 file and location clutter when dumping to dump files.
3112 2011-08-24 Simon Baldwin <simonb@google.com>
3114 * gengtype-state.c (write_state): Remove timestamped header line.
3116 2011-08-24 Joseph Myers <joseph@codesourcery.com>
3118 * Makefile.in (CFLAGS-collect2.o, CFLAGS-c-family/c-opts.o)
3119 (CFLAGS-c-family/c-pch.o, CFLAGS-prefix.o, CFLAGS-version.o)
3120 (CFLAGS-lto-compress.o, CFLAGS-toplev.o, CFLAGS-intl.o)
3121 (CFLAGS-cppbuiltin.o, CFLAGS-cppdefault.o): New.
3122 (collect2.o, c-family/c-cppbuiltin.o, c-family/c-opts.o)
3123 (c-family/c-pch.o, prefix.o, version.o, lto-compress.o, toplev.o)
3124 (intl.o, cppbuiltin.o, cppdefault.o): Remove explicit compilation
3126 (lto-wrapper$(exeext)): Use $(LINKER) not $(COMPILER).
3128 2011-08-24 Joseph Myers <joseph@codesourcery.com>
3130 * Makefile.in (ALL_CXXFLAGS): Include $(CFLAGS-$@).
3132 2011-08-24 Richard Guenther <rguenther@suse.de>
3134 PR tree-optimization/50067
3135 * tree-data-ref.c (dr_analyze_indices): Do not add an access
3136 function for a MEM_REF base that has no evolution in the loop
3137 nest or that is not analyzable.
3139 2011-08-23 Vladimir Makarov <vmakarov@redhat.com>
3141 * ira.c (ira_init_register_move_cost): Check small subclasses
3142 through ira_reg_class_max_nregs and ira_available_class_regs.
3144 2011-08-23 Uros Bizjak <ubizjak@gmail.com>
3146 * config/i386/constraints.md (Yp): New register constraint.
3147 * config/i386/i386.md (*addhi_1): Merge with *addhi_1_lea using
3148 Yp register constraint.
3149 (*addqi_1): Merge with *addqi_1_lea using Yp register constraint.
3150 (*ashlhi3_1): Merge with *ashlhi3_1_lea using Yp register constraint.
3151 (*ashlqi3_1): Merge with *ashlqi3_1_lea using Yp register constraint.
3153 2011-08-23 Kirill Yukhin <kirill.yukhin@intel.com>
3155 * config/i386/sse.md (<s>mul<mode>3_highpart): Update.
3157 2011-08-23 Mark Heffernan <meheff@google.com>
3160 * common.opt (Wfree-nonheap-object): New option.
3161 * doc/invoke.texi (Warning options): Document -Wfree-nonheap-object.
3162 * builtins.c (maybe_emit_free_warning): Add OPT_Wfree_nonheap_object
3164 (expand_builtin): Make warning conditional.
3166 2011-08-23 Uros Bizjak <ubizjak@gmail.com>
3168 * config/i386/i386.md (type): Add imulx, ishiftx and rotatex.
3169 (length_immediate): Handle imulx, ishiftx and rotatex.
3172 (enabled): Handle bmi2.
3173 (*mul<mode><dwi>3): Split from *<u>mul<mode><dwi>3.
3174 (*umul<mode><dwi>3): Ditto. Add imulx BMI2 alternative.
3175 (*bmi2_umulditi3_1): New insn pattern.
3176 (*bmi2_umulsidi3_1): Ditto.
3177 (*umul<mode><dwi>3 splitter): New splitter to avoid flags dependency.
3178 (*bmi2_ashl<mode>3_1): New insn pattern.
3179 (*ashl<mode>3_1): Add ishiftx BMI2 alternative.
3180 (*ashl<mode>3_1 splitter): New splitter to avoid flags dependency.
3181 (*bmi2_ashlsi3_1_zext): New insn pattern.
3182 (*ashlsi3_1_zext): Add ishiftx BMI2 alternative.
3183 (*ashlsi3_1_zext splitter): New splitter to avoid flags dependency.
3184 (*bmi2_<shiftrt_insn><mode>3_1): New insn pattern.
3185 (*<shiftrt_insn><mode>3_1): Add ishiftx BMI2 alternative.
3186 (*<shiftrt_insn><mode>3_1 splitter): New splitter to avoid
3188 (*bmi2_<shiftrt_insn>si3_1_zext): New insn pattern.
3189 (*<shiftrt_insn>si3_1_zext): Add ishiftx BMI2 alternative.
3190 (*<shiftrt_insn>si3_1_zext splitter): New splitter to avoid
3192 (*bmi2_rorx<mode>3_1): New insn pattern.
3193 (*<rotate_insn><mode>3_1): Add rotatex BMI2 alternative.
3194 (*rotate<mode>3_1 splitter): New splitter to avoid flags dependency.
3195 (*rotatert<mode>3_1 splitter): Ditto.
3196 (*bmi2_rorxsi3_1_zext): New insn pattern.
3197 (*<rotate_insn>si3_1_zext): Add rotatex BMI2 alternative.
3198 (*rotatesi3_1_zext splitter): New splitter to avoid flags dependency.
3199 (*rotatertsi3_1_zext splitter): Ditto.
3201 2011-08-23 Kirill Yukhin <kirill.yukhin@intel.com>
3203 * common/config/i386/i386-common.c (OPTION_MASK_ISA_BMI2_SET): New.
3204 (OPTION_MASK_ISA_BMI2_UNSET): Likewise.
3205 (ix86_handle_option): Handle OPT_mbmi2 case.
3206 * config.gcc (i[34567]86-*-*): Add bmi2intrin.h.
3207 (x86_64-*-*): Likewise.
3208 * config/i386/bmi2intrin.h: New file.
3209 * config/i386/cpuid.h (bit_BMI2): New.
3210 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
3212 * config/i386/i386-c.c (ix86_target_macros_internal):
3213 Conditionally define __BMI2__.
3214 * config/i386/i386.c (ix86_option_override_internal): Define PTA_BMI2.
3216 (ix86_valid_target_attribute_inner_p): Handle BMI2 option.
3217 (print_reg): New code.
3218 (ix86_print_operand): Likewise.
3219 (ix86_builtins): Add IX86_BUILTIN_BZHI32, IX86_BUILTIN_BZHI64,
3220 IX86_BUILTIN_PDEP32, IX86_BUILTIN_PDEP64, IX86_BUILTIN_PEXT32,
3221 IX86_BUILTIN_PEXT64.
3222 (bdesc_args): Add IX86_BUILTIN_BZHI32, IX86_BUILTIN_BZHI64,
3223 IX86_BUILTIN_PDEP32, IX86_BUILTIN_PDEP64, IX86_BUILTIN_PEXT32,
3224 IX86_BUILTIN_PEXT64.
3225 * config/i386/i386.h (TARGET_BMI2): New.
3226 * config/i386/i386.md (UNSPEC_PDEP): New.
3227 (UNSPEC_PEXT): Likewise.
3228 (*bmi2_bzhi_<mode>3): Likewise.
3229 (*bmi2_pdep_<mode>3): Likewise.
3230 (*bmi2_pext_<mode>3): Likewise.
3231 * config/i386/i386.opt (mbmi2): New.
3232 * config/i386/x86intrin.h: Include bmi2intrin.h when __BMI2__
3234 * doc/extend.texi: Document BMI2 built-in functions.
3235 * doc/invoke.texi: Document -mbmi2.
3237 2011-08-23 Jakub Jelinek <jakub@redhat.com>
3240 * simplify-rtx.c (simplify_const_unary_operation): If
3241 op is CONST_INT, don't look at op_mode, but use instead mode.
3242 * optabs.c (add_equal_note): For FFS, CLZ, CTZ,
3243 CLRSB, POPCOUNT, PARITY and BSWAP use operand mode for
3244 operation and TRUNCATE/ZERO_EXTEND if needed.
3245 * doc/rtl.texi (ffs, clrsb, clz, ctz, popcount, parity, bswap):
3246 Document that operand mode must be same as operation mode,
3248 * config/avr/avr.md (paritysi2, *parityqihi2.libgcc,
3249 *paritysihi2.libgcc, popcountsi2, *popcountsi2.libgcc,
3250 *popcountqihi2.libgcc, clzsi2, *clzsihi2.libgcc, ctzsi2,
3251 *ctzsihi2.libgcc, ffssi2, *ffssihi2.libgcc): For unary ops
3252 use the mode of operand for the operation and add truncate
3253 or zero_extend around if needed.
3254 * config/c6x/c6x.md (ctzdi2): Likewise.
3255 * config/bfin/bfin.md (clrsbsi2, signbitssi2): Likewise.
3257 2011-08-12 Michael Matz <matz@suse.de>
3259 * cfgexpand.c (expand_one_register_var): Use get_pointer_alignment.
3260 (gimple_expand_cfg): Merge alignment info for coalesced pointer
3263 2011-08-23 Richard Guenther <rguenther@suse.de>
3265 * Makefile.in (tree-data-ref.o): Add tree-affine.h dependency.
3266 * tree-affine.h (aff_comb_cannot_overlap_p): Declare.
3267 * tree-affine.c (aff_comb_cannot_overlap_p): New function, moved
3269 * tree-ssa-loop-im.c (cannot_overlap_p): ... here.
3270 (mem_refs_may_alias_p): Adjust.
3271 * tree-data-ref.h (dr_may_alias_p): Adjust.
3272 * tree-data-ref.c: Include tree-affine.h.
3273 (dr_analyze_indices): Do nothing for the non-loop case.
3274 (dr_may_alias_p): Distinguish loop and non-loop case. Disambiguate
3275 more cases in the non-loop case.
3276 * graphite-sese-to-poly.c (write_alias_graph_to_ascii_dimacs): Adjust
3277 calls to dr_may_alias_p.
3278 (write_alias_graph_to_ascii_ecc): Likewise.
3279 (write_alias_graph_to_ascii_dot): Likewise.
3280 (build_alias_set_optimal_p): Likewise.
3282 2011-08-23 Richard Guenther <rguenther@suse.de>
3284 PR tree-optimization/50162
3285 * tree-vect-stmts.c (vectorizable_call): Fix argument lookup.
3287 2011-08-23 Richard Guenther <rguenther@suse.de>
3289 * tree-data-ref.c (dr_analyze_indices): Add comments, handle
3290 REALPART_EXPR and IMAGPART_EXPR similar to ARRAY_REFs.
3291 (create_data_ref): Also dump access functions for the created data-ref.
3293 2011-08-22 Uros Bizjak <ubizjak@gmail.com>
3294 Kirill Yukhin <kirill.yukhin@intel.com>
3297 * config/i386/sse.md (VI_AVX2): New.
3298 (<plusminus_insn><mode>3): Use VI_AVX2 mode iterator.
3299 (*<plusminus_insn><mode>3): Ditto.
3300 (<sse2_avx2>_andnot<mode>3): Ditto.
3301 (*andnot<mode>3): Fix order of cond operands.
3302 Add asserts for correct TARGET_xxx.
3303 (*<any_logic:code><mode>3): Ditto.
3305 2011-08-22 Anatoly Sokolov <aesok@post.ru>
3307 * config/m32c/m32c.h (CLASS_MAX_NREGS): Remove macro.
3308 * config/m32c/m32c-protos.h (m32c_class_max_nregs): Remove.
3309 * config/m32c/m32c.c (m32c_class_max_nregs): Make static. Change
3310 regclass argument type to reg_class_t. Change 'max' and 'v' vars
3311 and return types to unsigned char. Use reg_class_contents instead
3313 (TARGET_CLASS_MAX_NREGS): Define.
3315 2011-08-22 Bernd Schmidt <bernds@codesourcery.com>
3317 * config/c6x/c6x.md (indirect_jump_shadow): Tweak representation
3318 to make computed_jump_p return true.
3320 2011-08-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3322 * configure.ac (GCC_PICFLAG_FOR_TARGET): Call it.
3323 (PICFLAG_FOR_TARGET): Substitute.
3324 * aclocal.m4: Regenerate.
3325 * configure: Regenerate.
3327 2011-08-22 Dodji Seketeli <dodji@redhat.com>
3329 * c-family/c-pch.c (c_common_read_pch): Re-set line table right
3330 after reading in the pch.
3332 2011-08-22 H.J. Lu <hongjiu.lu@intel.com>
3334 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Error if __ELF__ isn't defined.
3335 * configure: Regenerated.
3337 2011-08-22 Jakub Jelinek <jakub@redhat.com>
3339 PR tree-optimization/50133
3340 * tree-vect-stmts.c (vect_finish_stmt_generation): Copy location
3341 from stmt instead of some statement around gsi.
3344 * expr.c (get_bit_range): Only use DECL_THREAD_LOCAL_P if
3345 innerdecl is a VAR_DECL.
3347 2011-08-22 Kirill Yukhin <kirill.yukhin@intel.com>
3349 * config/i386/avx2intrin.h: New file.
3350 * config/i386/i386-builtin-types.def (PCINT, PCINT64, PV4SI,
3351 PV8SI, V32QI_FTYPE_V32QI, V32QI_FTYPE_V16QI, V16HI_FTYPE_V16HI,
3352 V16HI_FTYPE_V8HI, V8SI_FTYPE_V8SI, V16HI_FTYPE_V16QI,
3353 V8SI_FTYPE_V16QI, V4DI_FTYPE_V16QI, V8SI_FTYPE_V8HI,
3354 V4DI_FTYPE_V8HI, V4DI_FTYPE_V4SI, V4DI_FTYPE_PV4DI,
3355 V4DI_FTYPE_V2DI, V2DI_FTYPE_PCV2DI_V2DI, V4SI_FTYPE_PCV4SI_V4SI,
3356 V32QI_FTYPE_V16HI_V16HI, V16HI_FTYPE_V8SI_V8SI,
3357 V32QI_FTYPE_V32QI_V32QI, V16HI_FTYPE_V32QI_V32QI,
3358 V16HI_FTYPE_V16HI_V8HI, V16HI_FTYPE_V16HI_V16HI,
3359 V16HI_FTYPE_V16HI_INT, V16HI_FTYPE_V16HI_SI,
3360 V16HI_FTYPE_V16HI_V16HI_INT, V32QI_FTYPE_V32QI_V32QI_INT,
3361 V8SI_FTYPE_V8SI_V4SI, V8SI_FTYPE_V8SI_V8SI,
3362 V8SI_FTYPE_V16HI_V16HI, V8SI_FTYPE_V8SI_INT, V8SI_FTYPE_V8SI_SI,
3363 V8SI_FTYPE_PCV8SI_V8SI, V4DI_FTYPE_V4DI_V4DI,
3364 V4DI_FTYPE_V8SI_V8SI, V4DI_FTYPE_V4DI_V2DI,
3365 V4DI_FTYPE_PCV4DI_V4DI, V4DI_FTYPE_V4DI_INT,
3366 V2DI_FTYPE_V4DI_INT, V4DI_FTYPE_V4DI_V4DI_INT,
3367 V4DI_FTYPE_V4DI_V2DI_INT, VOID_FTYPE_PV2DI_V2DI_V2DI,
3368 VOID_FTYPE_PV4DI_V4DI_V4DI, VOID_FTYPE_PV4SI_V4SI_V4SI,
3369 VOID_FTYPE_PV8SI_V8SI_V8SI,
3370 V2DF_FTYPE_V2DF_PCDOUBLE_V4SI_V2DF_INT,
3371 V4DF_FTYPE_V4DF_PCDOUBLE_V4SI_V4DF_INT,
3372 V2DF_FTYPE_V2DF_PCDOUBLE_V2DI_V2DF_INT,
3373 V4DF_FTYPE_V4DF_PCDOUBLE_V4DI_V4DF_INT,
3374 V4SF_FTYPE_V4SF_PCFLOAT_V4SI_V4SF_INT,
3375 V8SF_FTYPE_V8SF_PCFLOAT_V8SI_V8SF_INT,
3376 V4SF_FTYPE_V4SF_PCFLOAT_V2DI_V4SF_INT,
3377 V4SF_FTYPE_V4SF_PCFLOAT_V4DI_V4SF_INT,
3378 V2DI_FTYPE_V2DI_PCINT64_V4SI_V2DI_INT,
3379 V4DI_FTYPE_V4DI_PCINT64_V4SI_V4DI_INT,
3380 V2DI_FTYPE_V2DI_PCINT64_V2DI_V2DI_INT,
3381 V4DI_FTYPE_V4DI_PCINT64_V4DI_V4DI_INT,
3382 V4SI_FTYPE_V4SI_PCINT_V4SI_V4SI_INT,
3383 V8SI_FTYPE_V8SI_PCINT_V8SI_V8SI_INT,
3384 V4SI_FTYPE_V4SI_PCINT_V2DI_V4SI_INT,
3385 V4SI_FTYPE_V4SI_PCINT_V4DI_V4SI_INT,
3386 V16HI_FTYPE_V16HI_SI_COUNT, V16HI_FTYPE_V16HI_V8HI_COUNT,
3387 V8SI_FTYPE_V8SI_SI_COUNT, V8SI_FTYPE_V8SI_V4SI_COUNT,
3388 V4DI_FTYPE_V4DI_INT_COUNT, V4DI_FTYPE_V4DI_V2DI_COUNT,
3389 V4DI_FTYPE_V4DI_INT_CONVERT,
3390 V4DI_FTYPE_V4DI_V4DI_INT_CONVERT): New.
3391 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_MPSADBW256,
3392 IX86_BUILTIN_PABSB256, IX86_BUILTIN_PABSW256,
3393 IX86_BUILTIN_PABSD256, IX86_BUILTIN_PACKSSDW256,
3394 IX86_BUILTIN_PACKSSWB256, IX86_BUILTIN_PACKUSDW256,
3395 IX86_BUILTIN_PACKUSWB256, IX86_BUILTIN_PADDB256,
3396 IX86_BUILTIN_PADDW256, IX86_BUILTIN_PADDD256,
3397 IX86_BUILTIN_PADDQ256, IX86_BUILTIN_PADDSB256,
3398 IX86_BUILTIN_PADDSW256, IX86_BUILTIN_PADDUSB256,
3399 IX86_BUILTIN_PADDUSW256, IX86_BUILTIN_PALIGNR256,
3400 IX86_BUILTIN_AND256I, IX86_BUILTIN_ANDNOT256I,
3401 IX86_BUILTIN_PAVGB256, IX86_BUILTIN_PAVGW256,
3402 IX86_BUILTIN_PBLENDVB256, IX86_BUILTIN_PBLENDVW256,
3403 IX86_BUILTIN_PCMPEQB256, IX86_BUILTIN_PCMPEQW256,
3404 IX86_BUILTIN_PCMPEQD256, IX86_BUILTIN_PCMPEQQ256,
3405 IX86_BUILTIN_PCMPGTB256, IX86_BUILTIN_PCMPGTW256,
3406 IX86_BUILTIN_PCMPGTD256, IX86_BUILTIN_PCMPGTQ256,
3407 IX86_BUILTIN_PHADDW256, IX86_BUILTIN_PHADDD256,
3408 IX86_BUILTIN_PHADDSW256, IX86_BUILTIN_PHSUBW256,
3409 IX86_BUILTIN_PHSUBD256, IX86_BUILTIN_PHSUBSW256,
3410 IX86_BUILTIN_PMADDUBSW256, IX86_BUILTIN_PMADDWD256,
3411 IX86_BUILTIN_PMAXSB256, IX86_BUILTIN_PMAXSW256,
3412 IX86_BUILTIN_PMAXSD256, IX86_BUILTIN_PMAXUB256,
3413 IX86_BUILTIN_PMAXUW256, IX86_BUILTIN_PMAXUD256,
3414 IX86_BUILTIN_PMINSB256, IX86_BUILTIN_PMINSW256,
3415 IX86_BUILTIN_PMINSD256, IX86_BUILTIN_PMINUB256,
3416 IX86_BUILTIN_PMINUW256, IX86_BUILTIN_PMINUD256,
3417 IX86_BUILTIN_PMOVMSKB256, IX86_BUILTIN_PMOVSXBW256,
3418 IX86_BUILTIN_PMOVSXBD256, IX86_BUILTIN_PMOVSXBQ256,
3419 IX86_BUILTIN_PMOVSXWD256, IX86_BUILTIN_PMOVSXWQ256,
3420 IX86_BUILTIN_PMOVSXDQ256, IX86_BUILTIN_PMOVZXBW256,
3421 IX86_BUILTIN_PMOVZXBD256, IX86_BUILTIN_PMOVZXBQ256,
3422 IX86_BUILTIN_PMOVZXWD256, IX86_BUILTIN_PMOVZXWQ256,
3423 IX86_BUILTIN_PMOVZXDQ256, IX86_BUILTIN_PMULDQ256,
3424 IX86_BUILTIN_PMULHRSW256, IX86_BUILTIN_PMULHUW256,
3425 IX86_BUILTIN_PMULHW256, IX86_BUILTIN_PMULLW256,
3426 IX86_BUILTIN_PMULLD256, IX86_BUILTIN_PMULUDQ256,
3427 IX86_BUILTIN_POR256, IX86_BUILTIN_PSADBW256,
3428 IX86_BUILTIN_PSHUFB256, IX86_BUILTIN_PSHUFD256,
3429 IX86_BUILTIN_PSHUFHW256, IX86_BUILTIN_PSHUFLW256,
3430 IX86_BUILTIN_PSIGNB256, IX86_BUILTIN_PSIGNW256,
3431 IX86_BUILTIN_PSIGND256, IX86_BUILTIN_PSLLDQI256,
3432 IX86_BUILTIN_PSLLWI256, IX86_BUILTIN_PSLLW256,
3433 IX86_BUILTIN_PSLLDI256, IX86_BUILTIN_PSLLD256,
3434 IX86_BUILTIN_PSLLQI256, IX86_BUILTIN_PSLLQ256,
3435 IX86_BUILTIN_PSRAWI256, IX86_BUILTIN_PSRAW256,
3436 IX86_BUILTIN_PSRADI256, IX86_BUILTIN_PSRAD256,
3437 IX86_BUILTIN_PSRLDQI256, IX86_BUILTIN_PSRLWI256,
3438 IX86_BUILTIN_PSRLW256, IX86_BUILTIN_PSRLDI256,
3439 IX86_BUILTIN_PSRLD256, IX86_BUILTIN_PSRLQI256,
3440 IX86_BUILTIN_PSRLQ256, IX86_BUILTIN_PSUBB256,
3441 IX86_BUILTIN_PSUBW256, IX86_BUILTIN_PSUBD256,
3442 IX86_BUILTIN_PSUBQ256, IX86_BUILTIN_PSUBSB256,
3443 IX86_BUILTIN_PSUBSW256, IX86_BUILTIN_PSUBUSB256,
3444 IX86_BUILTIN_PSUBUSW256, IX86_BUILTIN_PUNPCKHBW256,
3445 IX86_BUILTIN_PUNPCKHWD256, IX86_BUILTIN_PUNPCKHDQ256,
3446 IX86_BUILTIN_PUNPCKHQDQ256, IX86_BUILTIN_PUNPCKLBW256,
3447 IX86_BUILTIN_PUNPCKLWD256, IX86_BUILTIN_PUNPCKLDQ256,
3448 IX86_BUILTIN_PUNPCKLQDQ256, IX86_BUILTIN_PXOR256,
3449 IX86_BUILTIN_MOVNTDQA256, IX86_BUILTIN_VBROADCASTSS_PS,
3450 IX86_BUILTIN_VBROADCASTSS_PS256,
3451 IX86_BUILTIN_VBROADCASTSD_PD256,
3452 IX86_BUILTIN_VBROADCASTSI256, IX86_BUILTIN_PBLENDD256,
3453 IX86_BUILTIN_PBLENDD128, IX86_BUILTIN_PBROADCASTB256,
3454 IX86_BUILTIN_PBROADCASTW256, IX86_BUILTIN_PBROADCASTD256,
3455 IX86_BUILTIN_PBROADCASTQ256, IX86_BUILTIN_PBROADCASTB128,
3456 IX86_BUILTIN_PBROADCASTW128, IX86_BUILTIN_PBROADCASTD128,
3457 IX86_BUILTIN_PBROADCASTQ128, IX86_BUILTIN_VPERMVARSI256,
3458 IX86_BUILTIN_VPERMDF256, IX86_BUILTIN_VPERMVARSF256,
3459 IX86_BUILTIN_VPERMDI256, IX86_BUILTIN_VPERMTI256,
3460 IX86_BUILTIN_VEXTRACT128I256, IX86_BUILTIN_VINSERT128I256,
3461 IX86_BUILTIN_MASKLOADD, IX86_BUILTIN_MASKLOADQ,
3462 IX86_BUILTIN_MASKLOADD256, IX86_BUILTIN_MASKLOADQ256,
3463 IX86_BUILTIN_MASKSTORED, IX86_BUILTIN_MASKSTOREQ,
3464 IX86_BUILTIN_MASKSTORED256, IX86_BUILTIN_MASKSTOREQ256,
3465 IX86_BUILTIN_PSLLVV4DI, IX86_BUILTIN_PSLLVV2DI,
3466 IX86_BUILTIN_PSLLVV8SI, IX86_BUILTIN_PSLLVV4SI,
3467 IX86_BUILTIN_PSRAVV8SI, IX86_BUILTIN_PSRAVV4SI,
3468 IX86_BUILTIN_PSRLVV4DI, IX86_BUILTIN_PSRLVV2DI,
3469 IX86_BUILTIN_PSRLVV8SI, IX86_BUILTIN_PSRLVV4SI,
3470 IX86_BUILTIN_GATHERSIV2DF, IX86_BUILTIN_GATHERSIV4DF,
3471 IX86_BUILTIN_GATHERDIV2DF, IX86_BUILTIN_GATHERDIV4DF,
3472 IX86_BUILTIN_GATHERSIV4SF, IX86_BUILTIN_GATHERSIV8SF,
3473 IX86_BUILTIN_GATHERDIV4SF, IX86_BUILTIN_GATHERDIV8SF,
3474 IX86_BUILTIN_GATHERSIV2DI, IX86_BUILTIN_GATHERSIV4DI,
3475 IX86_BUILTIN_GATHERDIV2DI, IX86_BUILTIN_GATHERDIV4DI,
3476 IX86_BUILTIN_GATHERSIV4SI, IX86_BUILTIN_GATHERSIV8SI,
3477 IX86_BUILTIN_GATHERDIV4SI, IX86_BUILTIN_GATHERDIV8SI.
3478 (bdesc_special_args): Add IX86_BUILTIN_MOVNTDQA256,
3479 IX86_BUILTIN_MASKLOADD, IX86_BUILTIN_MASKLOADQ,
3480 IX86_BUILTIN_MASKLOADD256, IX86_BUILTIN_MASKLOADQ256,
3481 IX86_BUILTIN_MASKSTORED, IX86_BUILTIN_MASKSTOREQ,
3482 IX86_BUILTIN_MASKSTORED256, IX86_BUILTIN_MASKSTOREQ256.
3483 (bdesc_args): Add IX86_BUILTIN_MPSADBW256,
3484 IX86_BUILTIN_PABSB256, IX86_BUILTIN_PABSW256,
3485 IX86_BUILTIN_PABSD256, IX86_BUILTIN_PACKSSDW256,
3486 IX86_BUILTIN_PACKSSWB256, IX86_BUILTIN_PACKUSDW256,
3487 IX86_BUILTIN_PACKUSWB256, IX86_BUILTIN_PADDB256,
3488 IX86_BUILTIN_PADDW256, IX86_BUILTIN_PADDD256,
3489 IX86_BUILTIN_PADDQ256, IX86_BUILTIN_PADDSB256,
3490 IX86_BUILTIN_PADDSW256, IX86_BUILTIN_PADDUSB256,
3491 IX86_BUILTIN_PADDUSW256, IX86_BUILTIN_PALIGNR256,
3492 IX86_BUILTIN_AND256I, IX86_BUILTIN_ANDNOT256I,
3493 IX86_BUILTIN_PAVGB256, IX86_BUILTIN_PAVGW256,
3494 IX86_BUILTIN_PBLENDVB256, IX86_BUILTIN_PBLENDVW256,
3495 IX86_BUILTIN_PCMPEQB256, IX86_BUILTIN_PCMPEQW256,
3496 IX86_BUILTIN_PCMPEQD256, IX86_BUILTIN_PCMPEQQ256,
3497 IX86_BUILTIN_PCMPGTB256, IX86_BUILTIN_PCMPGTW256,
3498 IX86_BUILTIN_PCMPGTD256, IX86_BUILTIN_PCMPGTQ256,
3499 IX86_BUILTIN_PHADDW256, IX86_BUILTIN_PHADDD256,
3500 IX86_BUILTIN_PHADDSW256, IX86_BUILTIN_PHSUBW256,
3501 IX86_BUILTIN_PHSUBD256, IX86_BUILTIN_PHSUBSW256,
3502 IX86_BUILTIN_PMADDUBSW256, IX86_BUILTIN_PMADDWD256,
3503 IX86_BUILTIN_PMAXSB256, IX86_BUILTIN_PMAXSW256,
3504 IX86_BUILTIN_PMAXSD256, IX86_BUILTIN_PMAXUB256,
3505 IX86_BUILTIN_PMAXUW256, IX86_BUILTIN_PMAXUD256,
3506 IX86_BUILTIN_PMINSB256, IX86_BUILTIN_PMINSW256,
3507 IX86_BUILTIN_PMINSD256, IX86_BUILTIN_PMINUB256,
3508 IX86_BUILTIN_PMINUW256, IX86_BUILTIN_PMINUD256,
3509 IX86_BUILTIN_PMOVMSKB256, IX86_BUILTIN_PMOVSXBW256,
3510 IX86_BUILTIN_PMOVSXBD256, IX86_BUILTIN_PMOVSXBQ256,
3511 IX86_BUILTIN_PMOVSXWD256, IX86_BUILTIN_PMOVSXWQ256,
3512 IX86_BUILTIN_PMOVSXDQ256, IX86_BUILTIN_PMOVZXBW256,
3513 IX86_BUILTIN_PMOVZXBD256, IX86_BUILTIN_PMOVZXBQ256,
3514 IX86_BUILTIN_PMOVZXWD256, IX86_BUILTIN_PMOVZXWQ256,
3515 IX86_BUILTIN_PMOVZXDQ256, IX86_BUILTIN_PMULDQ256,
3516 IX86_BUILTIN_PMULHRSW256, IX86_BUILTIN_PMULHUW256,
3517 IX86_BUILTIN_PMULHW256, IX86_BUILTIN_PMULLW256,
3518 IX86_BUILTIN_PMULLD256, IX86_BUILTIN_PMULUDQ256,
3519 IX86_BUILTIN_POR256, IX86_BUILTIN_PSADBW256,
3520 IX86_BUILTIN_PSHUFB256, IX86_BUILTIN_PSHUFD256,
3521 IX86_BUILTIN_PSHUFHW256, IX86_BUILTIN_PSHUFLW256,
3522 IX86_BUILTIN_PSIGNB256, IX86_BUILTIN_PSIGNW256,
3523 IX86_BUILTIN_PSIGND256, IX86_BUILTIN_PSLLDQI256,
3524 IX86_BUILTIN_PSLLWI256, IX86_BUILTIN_PSLLW256,
3525 IX86_BUILTIN_PSLLDI256, IX86_BUILTIN_PSLLD256,
3526 IX86_BUILTIN_PSLLQI256, IX86_BUILTIN_PSLLQ256,
3527 IX86_BUILTIN_PSRAWI256, IX86_BUILTIN_PSRAW256,
3528 IX86_BUILTIN_PSRADI256, IX86_BUILTIN_PSRAD256,
3529 IX86_BUILTIN_PSRLDQI256, IX86_BUILTIN_PSRLWI256,
3530 IX86_BUILTIN_PSRLW256, IX86_BUILTIN_PSRLDI256,
3531 IX86_BUILTIN_PSRLD256, IX86_BUILTIN_PSRLQI256,
3532 IX86_BUILTIN_PSRLQ256, IX86_BUILTIN_PSUBB256,
3533 IX86_BUILTIN_PSUBW256, IX86_BUILTIN_PSUBD256,
3534 IX86_BUILTIN_PSUBQ256, IX86_BUILTIN_PSUBSB256,
3535 IX86_BUILTIN_PSUBSW256, IX86_BUILTIN_PSUBUSB256,
3536 IX86_BUILTIN_PSUBUSW256, IX86_BUILTIN_PUNPCKHBW256,
3537 IX86_BUILTIN_PUNPCKHWD256, IX86_BUILTIN_PUNPCKHDQ256,
3538 IX86_BUILTIN_PUNPCKHQDQ256, IX86_BUILTIN_PUNPCKLBW256,
3539 IX86_BUILTIN_PUNPCKLWD256, IX86_BUILTIN_PUNPCKLDQ256,
3540 IX86_BUILTIN_PUNPCKLQDQ256, IX86_BUILTIN_PXOR256,
3541 IX86_BUILTIN_VBROADCASTSS_PS, IX86_BUILTIN_VBROADCASTSS_PS256,
3542 IX86_BUILTIN_VBROADCASTSD_PD256,
3543 IX86_BUILTIN_VBROADCASTSI256, IX86_BUILTIN_PBLENDD256,
3544 IX86_BUILTIN_PBLENDD128, IX86_BUILTIN_PBROADCASTB256,
3545 IX86_BUILTIN_PBROADCASTW256, IX86_BUILTIN_PBROADCASTD256,
3546 IX86_BUILTIN_PBROADCASTQ256, IX86_BUILTIN_PBROADCASTB128,
3547 IX86_BUILTIN_PBROADCASTW128, IX86_BUILTIN_PBROADCASTD128,
3548 IX86_BUILTIN_PBROADCASTQ128, IX86_BUILTIN_VPERMVARSI256,
3549 IX86_BUILTIN_VPERMDF256, IX86_BUILTIN_VPERMVARSF256,
3550 IX86_BUILTIN_VPERMDI256, IX86_BUILTIN_VPERMTI256,
3551 IX86_BUILTIN_VEXTRACT128I256, IX86_BUILTIN_VINSERT128I256,
3552 IX86_BUILTIN_PSLLVV4DI, IX86_BUILTIN_PSLLVV2DI,
3553 IX86_BUILTIN_PSLLVV8SI, IX86_BUILTIN_PSLLVV4SI,
3554 IX86_BUILTIN_PSRAVV8SI, IX86_BUILTIN_PSRAVV4SI,
3555 IX86_BUILTIN_PSRLVV4DI, IX86_BUILTIN_PSRLVV2DI,
3556 IX86_BUILTIN_PSRLVV8SI, IX86_BUILTIN_PSRLVV4SI.
3557 (ix86_init_mmx_sse_builtins): Add IX86_BUILTIN_GATHERSIV2DF,
3558 IX86_BUILTIN_GATHERSIV4DF, IX86_BUILTIN_GATHERDIV2DF,
3559 IX86_BUILTIN_GATHERDIV4DF, IX86_BUILTIN_GATHERSIV4SF,
3560 IX86_BUILTIN_GATHERSIV8SF, IX86_BUILTIN_GATHERDIV4SF,
3561 IX86_BUILTIN_GATHERDIV8SF, IX86_BUILTIN_GATHERSIV2DI,
3562 IX86_BUILTIN_GATHERSIV4DI, IX86_BUILTIN_GATHERDIV2DI,
3563 IX86_BUILTIN_GATHERDIV4DI, IX86_BUILTIN_GATHERSIV4SI,
3564 IX86_BUILTIN_GATHERSIV8SI, IX86_BUILTIN_GATHERDIV4SI,
3565 IX86_BUILTIN_GATHERDIV8SI.
3566 (ix86_preferred_simd_mode): Support AVX2 modes.
3567 (ix86_expand_args_builtin): Support AVX2 builtins.
3568 (ix86_expand_special_args_builtin): Likewise.
3569 (ix86_expand_builtin): Likewise.
3570 * config/i386/i386.md (UNSPEC_VPERMSI): New.
3571 (UNSPEC_VPERMDF): Likewise.
3572 (UNSPEC_VPERMSF): Likewise.
3573 (UNSPEC_VPERMDI): Likewise.
3574 (UNSPEC_VPERMTI): Likewise.
3575 (UNSPEC_GATHER): Likewise.
3576 (ssemodesuffix): Extend.
3577 * config/i386/immintrin.h: Include avx2intrin.h when __AVX2__
3579 * config/i386/predicates.md (const1248_operand): New.
3580 * config/i386/sse.md (VI1_AVX2): New mode iterator.
3581 (VI2_AVX2): Likewise.
3582 (VI4_AVX2): Likewise.
3583 (VI8_AVX2): Likewise.
3584 (VIMAX_AVX2): Likewise.
3585 (SSESCALARMODE): Likewise.
3586 (VI12_AVX2): Likewise.
3587 (VI24_AVX2): Likewise.
3588 (VI124_AVX2): Likewise.
3589 (VI248_AVX2): Likewise.
3590 (VI48_AVX2): Likewise.
3591 (VI4SD_AVX2): Likewise.
3592 (V48_AVX2): Likewise.
3593 (AVX256MODE2P): Likewise.
3594 (AVXMODE48P_DI): Likewise.
3595 (sse2_avx2): New mode attribute.
3596 (ssse3_avx2): Likewise.
3597 (sse4_1_avx2): Likewise.
3598 (avx_avx2): Likewise.
3599 (ssebytemode): Likewise.
3600 (AVXTOSSEMODE): Likewise.
3601 (AVXMODE48P_DI): Likewise.
3602 (gthrfirstp): Likewise.
3603 (gthrlastp): Likewise.
3604 (lshift): New code_iterator
3605 (lshift): New code attribute.
3607 (ssescalarmodesuffix): Update.
3608 (sseunpackmode): Likewise.
3609 (ssepackmode): Likewise.
3610 (avx2_vec_dupv4sf): New insn pattern.
3611 (avx2_vec_dupv8sf): Likewise.
3612 (avx2_interleave_highv4di): Likewise.
3613 (avx2_interleave_lowv4di): Likewise.
3614 (avx2_umulv4siv4di3): Likewise
3615 (*avx2_umulv4siv4di3): Likewise
3616 (avx2_pmaddwd): Likewise.
3617 (*avx2_pmaddwd): Likewise.
3618 (avx2_lshrqv4di3): Likewise.
3619 (avx2_lshlqv4di3): Likewise.
3620 (avx2_lshl<mode>3): Likewise.
3621 (avx2_<umaxmin:code><mode>3): Likewise.
3622 (*avx2_<umaxmin:code><mode>3): Likewise.
3623 (avx2_<smaxmin:code><mode>3): Likewise.
3624 (*avx2_<smaxmin:code><mode>3): Likewise.
3625 (avx2_eq<mode>3): Likewise.
3626 (*avx2_eq<mode>3): Likewise.
3627 (avx2_gt<mode>3): Likewise.
3628 (avx2_interleave_highv32qi): New.
3629 (avx2_interleave_lowv32qi): Likewise.
3630 (avx2_interleave_highv16hi): Likewise.
3631 (avx2_interleave_lowv16hi): Likewise.
3632 (avx2_interleave_highv8si): Likewise.
3633 (avx2_interleave_lowv8si): Likewise.
3634 (avx2_pshufd): Likewise.
3635 (avx2_pshufd_1): Likewise.
3636 (avx2_pshuflwv3): Likewise.
3637 (avx2_pshuflw_1): Likewise.
3638 (avx2_pshufhwv3): Likewise.
3639 (avx2_pshufhw_1): Likewise.
3640 (avx2_uavgv32qi3): Likewise.
3641 (*avx2_uavgv32qi3): Likewise.
3642 (avx2_uavgv16hi3): Likewise.
3643 (*avx2_uavgv16hi3): Likewise.
3644 (avx2_pmovmskb): Likewise.
3645 (avx2_phaddwv16hi3): Likewise.
3646 (avx2_phadddv8si3): Likewise.
3647 (avx2_phaddswv16hi3): Likewise.
3648 (avx2_phsubwv16hi3): Likewise.
3649 (avx2_phsubdv8si3): Likewise.
3650 (avx2_phsubswv16hi3): Likewise.
3651 (avx2_pmaddubsw256): Likewise.
3652 (avx2_umulhrswv16hi3): Likewise.
3653 (*avx2_umulhrswv16hi3): Likewise.
3654 (avx2_packusdw): Likewise.
3655 (avx2_pblendd<mode>): Likewise.
3656 (avx2_<code>v16qiv16hi2): Likewise.
3657 (avx2_<code>v8qiv8si2): Likewise.
3658 (avx2_<code>v8hiv8si2): Likewise.
3659 (avx2_<code>v4qiv4di2): Likewise.
3660 (avx2_<code>v4hiv4di2): Likewise.
3661 (avx2_<code>v4siv4di2): Likewise.
3662 (avx2_pbroadcast<mode>): Likewise.
3663 (avx2_permvarv8si): Likewise.
3664 (avx2_permv4df): Likewise.
3665 (avx2_permvarv8sf): Likewise.
3666 (avx2_permv4di): Likewise.
3667 (avx2_permv2ti): Likewise.
3668 (avx2_vec_dupv4df): Likewise.
3669 (avx2_vbroadcasti128_<mode>): Likewise.
3670 (avx2_vec_set_lo_v4di): Likewise.
3671 (avx2_vec_set_hi_v4di): Likewise.
3672 (*avx2_maskmov<avx2modesuffix><avxmodesuffix>): Likewise.
3673 (avx2_extracti128): Likewise.
3674 (avx2_inserti128): Likewise.
3675 (avx2_ashrvv8si): Likewise.
3676 (avx2_ashrvv4si): Likewise.
3677 (avx2_<lshift>vv8si): Likewise.
3678 (avx2_<lshift>v<mode>): Likewise.
3679 (avx2_<lshift>vv2di): Likewise.
3680 (avx2_gathersi<mode>): Likewise.
3681 (*avx2_gathersi<mode>): Likewise.
3682 (avx2_gatherdi<mode>): Likewise.
3683 (*avx2_gatherdi<mode>): Likewise.
3684 (avx2_gatherdi<mode>256): Likewise.
3685 (*avx2_gatherdi<mode>256): Likewise.
3686 (<plusminus_insn><mode>3): Use VI mode iterator.
3687 (*<plusminus_insn><mode>3): Use VI mode iterator.
3688 (<sse2_avx2>_<plusminus_insn><mode>3): Rename from
3689 sse2_<plusminus_insn><mode>3. Use VI12_AVX2 mode iterator.
3690 (*<sse2_avx2>_<plusminus_insn><mode>3): Rename from
3691 *sse2_<plusminus_insn><mode>3. Use VI12_AVX2 mode iterator.
3692 (mul<mode>3): Rename from mulv8hi3. Use VI2_AVX2 mode iterator.
3693 (*mul<mode>3): Rename from *mulv8hi3. Use VI2_AVX2 mode iterator.
3694 (<s>mul<mode>3_highpart): Rename from <s>mulv8hi3_highpart.
3695 Use VI2_AVX2 mode iterator.
3696 (*<s>mul<mode>3_highpart): Rename from *<s>mulv8hi3_highpart.
3697 Use VI2_AVX2 mode iterator.
3698 (mul<mode>3): Rename from mulv4si3. Use VI4_AVX2 mode iterator.
3699 (*mul<mode>3): Rename from *mulv4si3. Use VI4_AVX2 mode iterator.
3700 (*<sse4_1_avx2>_mulv2siv2di3): Rename from *sse4_1_mulv4si3.
3701 Use VI4_AVX2 mode iterator.
3702 (ashr<mode>3): Use VI24_AVX2 mode iterator.
3703 (lshr<mode>3): Use VI248_AVX2 mode iterator.
3704 (<sse2_avx2>_ashl<mode>3): Rename from sse2_ashlv1ti3.
3705 Use VIMAX_AVX2 mode iterator.
3706 (<sse2_avx2>_andnot<mode>3): Rename from sse2_andnot<mode>3.
3707 Use VI mode iterator.
3708 (*andnot<mode>3): Update for AVX2.
3709 (*<any_logic:code><mode>3): Likewise.
3710 (<sse2_avx2>_packsswb): Rename from sse2_packsswb.
3711 Use VI1_AVX mode iterator.
3712 (<sse2_avx2>_packssdw): Rename from sse2_packssdw.
3713 Use VI2_AVX mode iterator.
3714 (<sse2_avx2>_packuswb): Rename from sse2_packsswb.
3715 Use VI1_AVX mode iterator.
3716 (<sse2_avx2>_psadbw): Rename from sse2_psadbw.
3717 Use VI8_AVX2 mode iterator.
3718 (<ssse3_avx2>_pshufb<mode>3): Rename from ssse3_pshufbv16qi3.
3719 Use VI1_AVX2 mode iterator.
3720 (<ssse3_avx2>_psign<mode>3): Rename from ssse3_psign<mode>3.
3721 Use VI124_AVX2 mode iterator.
3722 (<ssse3_avx2>_palignr<mode>): Rename from ssse3_palignrti.
3723 Use SSESCALARMODE mode iterator.
3724 (abs<mode>2): Use VI124_AVX2 mode iterator.
3725 (<sse4_1_avx2>_movntdqa): Rename from sse4_1_movntdqa.
3726 Use VI8_AVX2 mode iterator.
3727 (<sse4_1_avx2>_mpsadbw): Rename from sse4_1_mpsadbw.
3728 Use VI1_AVX2 mode iterator.
3729 (<sse4_1_avx2>_pblendvb): Rename from sse4_1_pblendvb.
3730 Use VI1_AVX2 mode iterator.
3731 (<sse4_1_avx2>_pblendw): Rename from sse4_1_pblendvb.
3732 Use VI2_AVX2 mode iterator.
3733 (<avx_avx2>_maskload<avx2modesuffix><avxmodesuffix>): Rename from
3734 avx_maskload<ssemodesuffix><avxsizesuffix>. Use V48_AVX2 mode iterator.
3735 (<avx_avx2>_maskstore<avx2modesuffix><avxmodesuffix>): Rename from
3736 avx_maskstore<ssemodesuffix><avxsizesuffix>.
3737 Use V48_AVX2 mode iterator.
3738 * doc/extend.texi: Document AVX2 built-in functions.
3739 * doc/invoke.texi: Document -mavx2.
3741 2011-08-22 Matthias Klose <doko@debian.org>
3744 2011-07-11 Arthur Loiret <aloiret@debian.org>
3745 Matthias Klose <doko@debian.org>
3746 * config/mips/t-linux64 (MULTILIB_DIRNAMES): Set to 'n32 . 64' if
3747 tm_defines contains MIPS_ABI_DEFAULT ABI_32, to follow the glibc
3749 * config.gcc (tm_defines): Add MIPS_ABI_DEFAULT=ABI_32.
3751 2011-08-22 Mikael Pettersson <mikpe@it.uu.se>
3754 * ira-color.c (assign_hard_reg): Move saved_nregs declaration
3755 to #ifndef HONOR_REG_ALLOC_ORDER block.
3757 2011-08-21 Richard Henderson <rth@redhat.com>
3759 * rtl.h (INSN_ANNULLED_BRANCH_P): Only allow JUMP_INSN.
3760 * dwarf2cfi.c (scan_trace): Test JUMP_P before INSN_ANNULLED_BRANCH_P.
3761 * resource.c (next_insn_no_annul): Likewise.
3762 (mark_set_resources): Likewise.
3763 * reorg.c (delete_from_delay_slot): Likewise.
3764 (dbr_schedule, redundant_insn, try_merge_delay_insns): Likewise.
3765 (get_branch_condition): Test pc_rtx and LABEL_REF before dereferencing.
3767 2011-08-21 Uros Bizjak <ubizjak@gmail.com>
3769 * config/i386/i386.md (any_div): Remove.
3770 (sgnprefix): Update for removal.
3773 2011-08-20 Vladimir Makarov <vmakarov@redhat.com>
3775 * ira-lives.c (mark_pseudo_regno_subword_live): Use allocno class
3776 for ira_reg_class_max_nregs. Increase pressure by 1.
3777 (mark_pseudo_regno_subword_dead): Use allocno class
3778 for ira_reg_class_max_nregs.
3780 2011-08-20 Richard Henderson <rth@redhat.com>
3782 * config/c6x/eqd.c, config/c6x/eqf.c, config/c6x/ged.c,
3783 config/c6x/gef.c, config/c6x/gtd.c, config/c6x/gtf.c,
3784 config/c6x/led.c, config/c6x/lef.c, config/c6x/ltd.c,
3785 config/c6x/ltf.c: Adjust include path for soft-fp.
3787 2011-08-20 H.J. Lu <hongjiu.lu@intel.com>
3790 * config.gcc (tm_file): Add initfini-array.h if
3791 .init_arrary/.fini_array are supported.
3793 * crtstuff.c: Don't generate .ctors nor .dtors sections if
3794 USE_INITFINI_ARRAY is defined.
3796 * output.h (default_elf_init_array_asm_out_constructor): New.
3797 (default_elf_fini_array_asm_out_destructor): Likewise.
3798 * varasm.c (elf_init_array_section): Likewise.
3799 (elf_fini_array_section): Likewise.
3800 (get_elf_initfini_array_priority_section): Likewise.
3801 (default_elf_init_array_asm_out_constructor): Likewise.
3802 (default_elf_fini_array_asm_out_destructor): Likewise.
3804 * config/initfini-array.h: New.
3806 2011-08-20 Richard Sandiford <rdsandiford@googlemail.com>
3808 * config/mips/mips.c (mips_class_max_nregs): Check that the mode is
3809 OK for ST_REGS and FP_REGS before taking those classes into account.
3811 2011-08-20 Richard Sandiford <rdsandiford@googlemail.com>
3813 * config/mips/mips.c (mips_reorg_process_insns): Check for jumps
3814 before checking for annulled branches.
3816 2011-08-20 Uros Bizjak <ubizjak@gmail.com>
3818 * config/i386/i386.c (ix86_binary_operator_ok): Use
3819 satisfies_constraint_L.
3821 2011-08-20 Uros Bizjak <ubizjak@gmail.com>
3822 Michael Matz <matz@suse.de>
3824 * config/i386/i386.c (ix86_expand_round_sse4): Expand as
3825 trunc (a + copysign (nextafter (0.5, 0.0), a)).
3827 2011-08-20 Anatoly Sokolov <aesok@post.ru>
3829 * doc/tm.texi.in (PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
3830 * doc/tm.texi: Regenerate.
3831 * targhooks.c (default_preferred_output_reload_class): Don't use
3832 PREFERRED_OUTPUT_RELOAD_CLASS macro.
3833 * system.h (PREFERRED_OUTPUT_RELOAD_CLASS): Poison.
3835 2011-08-20 Jakub Jelinek <jakub@redhat.com>
3837 PR tree-optimization/48739
3838 * tree-ssa.c: Include cfgloop.h.
3839 (execute_update_addresses_taken): When updating ssa, if in loop closed
3840 SSA form, call rewrite_into_loop_closed_ssa instead of update_ssa.
3841 * Makefile.in (tree-ssa.o): Depend on $(CFGLOOP_H).
3843 2011-08-19 Vladimir Makarov <vmakarov@redhat.com>
3845 PR rtl-optimization/49936
3846 * ira.c (ira_init_register_move_cost): Ignore too small subclasses
3847 for calculation of max register move costs.
3849 2011-08-19 Joseph Myers <joseph@codesourcery.com>
3851 * c-parser.c (c_parser_postfix_expression): Convert operands of
3852 __builtin_complex to their semantic types.
3854 2011-08-19 H.J. Lu <hongjiu.lu@intel.com>
3857 * explow.c (convert_memory_address_addr_space): Also permute the
3858 conversion and addition of constant for zero-extend.
3860 2011-08-19 Joseph Myers <joseph@codesourcery.com>
3862 * c-parser.c (c_parser_postfix_expression): Handle RID_BUILTIN_COMPLEX.
3863 * doc/extend.texi (__builtin_complex): Document.
3865 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
3867 * tree-ssa-math-opts.c (is_widening_mult_rhs_p): Handle constants
3869 (convert_mult_to_widen): Convert constant inputs to the right type.
3870 (convert_plusminus_to_widen): Don't automatically reject inputs that
3871 are not an SSA_NAME.
3872 Convert constant inputs to the right type.
3874 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
3876 * tree-ssa-math-opts.c (convert_plusminus_to_widen): Convert add_rhs
3877 to the correct type.
3879 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
3881 * tree-ssa-math-opts.c (convert_mult_to_widen): Better handle
3882 unsigned inputs of different modes.
3883 (convert_plusminus_to_widen): Likewise.
3885 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
3887 * tree-ssa-math-opts.c (is_widening_mult_rhs_p): Add new argument
3889 Use 'type' from caller, not inferred from 'rhs'.
3890 Don't reject non-conversion statements. Do return lhs in this case.
3891 (is_widening_mult_p): Add new argument 'type'.
3892 Use 'type' from caller, not inferred from 'stmt'.
3893 Pass type to is_widening_mult_rhs_p.
3894 (convert_mult_to_widen): Pass type to is_widening_mult_p.
3895 (convert_plusminus_to_widen): Likewise.
3897 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
3899 * tree-ssa-math-opts.c (is_widening_mult_p): Remove FIXME.
3900 Ensure the the larger type is the first operand.
3902 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
3904 * tree-ssa-math-opts.c (convert_mult_to_widen): Convert
3905 unsupported unsigned multiplies to signed.
3906 (convert_plusminus_to_widen): Likewise.
3908 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
3910 * tree-ssa-math-opts.c (convert_plusminus_to_widen): Permit a single
3911 conversion statement separating multiply-and-accumulate.
3913 2011-08-19 Richard Guenther <rguenther@suse.de>
3915 PR tree-optimization/50067
3916 * tree-data-ref.c (dr_analyze_indices): Simplify, strip MEM_REF
3917 offset only if we accounted for it.
3919 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
3921 * config/arm/arm.md (maddhidi4): Remove '*' from name.
3922 * expr.c (expand_expr_real_2): Use find_widening_optab_handler.
3923 * optabs.c (find_widening_optab_handler_and_mode): New function.
3924 (expand_widen_pattern_expr): Use find_widening_optab_handler.
3925 (expand_binop_directly): Likewise.
3926 (expand_binop): Likewise.
3927 * optabs.h (find_widening_optab_handler): New macro define.
3928 (find_widening_optab_handler_and_mode): New prototype.
3929 * tree-cfg.c (verify_gimple_assign_binary): Adjust WIDEN_MULT_EXPR
3930 type precision rules.
3931 (verify_gimple_assign_ternary): Likewise for WIDEN_MULT_PLUS_EXPR.
3932 * tree-ssa-math-opts.c (build_and_insert_cast): New function.
3933 (is_widening_mult_rhs_p): Allow widening by more than one mode.
3934 Explicitly disallow mis-matched input types.
3935 (convert_mult_to_widen): Use find_widening_optab_handler, and cast
3936 input types to fit the new handler.
3937 (convert_plusminus_to_widen): Likewise.
3939 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
3941 * expr.c (expand_expr_real_2): Use widening_optab_handler.
3942 * genopinit.c (optabs): Use set_widening_optab_handler for $N.
3943 (gen_insn): $N now means $a must be wider than $b, not consecutive.
3944 * optabs.c (widened_mode): New function.
3945 (expand_widen_pattern_expr): Use widening_optab_handler.
3946 (expand_binop_directly): Likewise.
3947 (expand_binop): Likewise.
3948 * optabs.h (widening_optab_handlers): New struct.
3949 (optab_d): New member, 'widening'.
3950 (widening_optab_handler): New function.
3951 (set_widening_optab_handler): New function.
3952 * tree-ssa-math-opts.c (convert_mult_to_widen): Use
3953 widening_optab_handler.
3954 (convert_plusminus_to_widen): Likewise.
3956 2011-08-19 Joseph Myers <joseph@codesourcery.com>
3958 * c-decl.c (grokdeclarator): Diagnose _Noreturn for non-C1X if
3960 * c-parser.c (c_parser_declspecs): Include _Noreturn in syntax comment.
3961 * ginclude/stdnoreturn.h (noreturn): Don't define for C++.
3963 2011-08-19 Joseph Myers <joseph@codesourcery.com>
3965 * opth-gen.awk: Do not declare target save/restore structures and
3966 functions if IN_RTS defined.
3968 2011-08-19 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
3971 * config/arm/arm.c (arm_output_epilogue): Properly handle epilogue
3972 when stack was realigned in interrupt handler prologue.
3974 2011-08-18 Joseph Myers <joseph@codesourcery.com>
3976 * c-decl.c (shadow_tag_warned): Check for _Noreturn.
3977 (quals_from_declspecs): Assert _Noreturn not present.
3978 (grokdeclarator): Handle _Noreturn.
3979 (build_null_declspecs): Initialize noreturn_p.
3980 (declspecs_add_scspec): Handle RID_NORETURN.
3981 * c-parser.c (c_token_starts_declspecs, c_parser_declspecs)
3982 (c_parser_attributes): Handle RID_NORETURN.
3983 * c-tree.h (struct c_declspecs): Add noreturn_p.
3984 * ginclude/stdnoreturn.h: New.
3985 * Makefile.in (USER_H): Add stdnoreturn.h.
3987 2011-08-18 Kirill Yukhin <kirill.yukhin@intel.com>
3989 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX2_SET): New.
3990 (OPTION_MASK_ISA_AVX_UNSET): Update.
3991 (OPTION_MASK_ISA_AVX2_UNSET): New.
3992 (ix86_handle_option): Handle OPT_mavx2 case.
3993 * config/i386/cpuid.h (bit_AVX2): New.
3994 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
3996 * config/i386/i386-c.c (ix86_target_macros_internal):
3997 Conditionally define __AVX2__.
3998 * config/i386/i386.c (ix86_option_override_internal): Define PTA_AVX2.
3999 Define "core-avx2" processor alias. Handle avx2 option.
4000 (ix86_valid_target_attribute_inner_p): Handle avx2 option.
4001 * config/i386/i386.h (TARGET_AVX2): New.
4002 * config/i386/i386.opt (mavx2): New.
4003 * doc/invoke.texi: Document -mavx2.
4005 2011-08-18 Vladimir Makarov <vmakarov@redhat.com>
4007 PR rtl-optimization/49890
4008 * ira-costs.c (setup_regno_cost_classes_by_aclass): Don't exclude
4009 subclasses of class which is superset of a pressure class.
4011 2011-08-18 H.J. Lu <hongjiu.lu@intel.com>
4012 Igor Zamyatin <igor.zamyatin@intel.com>
4014 * config/i386/i386-c.c (ix86_target_macros_internal): Replace int
4015 with HOST_WIDE_INT for isa_flag.
4016 (ix86_pragma_target_parse): Replace int with HOST_WIDE_INT for
4019 * config/i386/i386.c (ix86_target_string): Replace int with
4020 HOST_WIDE_INT for isa. Use HOST_WIDE_INT_PRINT to print isa.
4021 (ix86_target_opts): Replace int with HOST_WIDE_INT on mask.
4022 (pta_flags): Removed.
4023 (PTA_XXX): Redefined as (HOST_WIDE_INT_1 << X).
4024 (pta): Use HOST_WIDE_INT on flags.
4025 (builtin_isa): Use HOST_WIDE_INT on isa.
4026 (ix86_add_new_builtins): Likewise.
4027 (def_builtin): Use HOST_WIDE_INT on mask.
4028 (def_builtin_const): Likewise.
4029 (builtin_description): Likewise.
4031 * config/i386/i386.opt (ix86_isa_flags): Replace int with
4033 (ix86_isa_flags_explicit): Likewise.
4034 (x_ix86_isa_flags_explicit): Likewise.
4036 2011-08-17 Vladimir Makarov <vmakarov@redhat.com>
4038 PR rtl-optimization/50107
4039 * ira-int.h (ira_hard_reg_not_in_set_p): Remove.
4040 (ira_hard_reg_in_set_p): New.
4042 * ira-color.c (calculate_saved_nregs): New.
4043 (assign_hard_reg): Use it. Set up allocated_hard_reg_p for all
4045 (allocno_reload_assign, fast_allocation): Use
4046 ira_hard_reg_set_intersection_p instead of
4047 ira_hard_reg_not_in_set_p.
4049 * ira.c (setup_reg_renumber): Use
4050 ira_hard_reg_set_intersection_p instead of
4051 ira_hard_reg_not_in_set_p.
4052 (setup_allocno_assignment_flags, calculate_allocation_cost): Use
4053 ira_hard_reg_in_set_p instead of ira_hard_reg_not_in_set_p.
4055 * ira-costs.c (ira_tune_allocno_costs): Use
4056 ira_hard_reg_set_intersection_p instead of
4057 ira_hard_reg_not_in_set_p.
4059 2011-08-18 H.J. Lu <hongjiu.lu@intel.com>
4060 Igor Zamyatin <igor.zamyatin@intel.com>
4062 * hwint.h (HOST_WIDE_INT_1): New.
4064 * opt-functions.awk (switch_bit_fields): Initialize the
4065 host_wide_int field.
4066 (host_wide_int_var_name): New.
4067 (var_type_struct): Check and return HOST_WIDE_INT.
4069 * opt-read.awk: Handle HOST_WIDE_INT for "Variable".
4071 * optc-save-gen.awk: Support HOST_WIDE_INT on var_target_other.
4073 * opth-gen.awk: Use HOST_WIDE_INT_1 on HOST_WIDE_INT. Properly
4074 check masks for HOST_WIDE_INT.
4076 * opts-common.c (set_option): Support HOST_WIDE_INT flag_var.
4077 (option_enabled): Likewise.
4078 (get_option_state): Likewise.
4080 * opts.h (cl_option): Add cl_host_wide_int. Change var_value
4083 2011-08-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4084 Marc Glisse <marc.glisse@normalesup.org>
4086 PR libstdc++-v3/1773
4087 * target.def (decl_mangling_context): New C++ hook.
4088 * doc/tm.texi: Regenerate.
4089 * config/sol2-cxx.c, config/sol2-stubs.c: New files.
4090 * config/sol2-protos.h: Group by source file.
4091 (solaris_cxx_decl_mangling_context): Declare.
4092 * config/sol2.h (TARGET_CXX_DECL_MANGLING_CONTEXT): Define.
4093 * config/t-sol2 (sol2-cxx.o, sol2-stubs.o): New targets.
4095 * config.gcc (*-*-solaris2*): Add sol2-cxx.o to cxx_target_objs.
4096 Add sol2-stubs.o to extra_objs.
4098 2011-08-18 Jakub Jelinek <jakub@redhat.com>
4101 * stor-layout.c (update_alignment_for_field): Don't ICE on
4102 packed flexible array members if ms_bitfield_layout_p.
4105 * config/i386/i386.c (assign_386_stack_local): Call validize_mem
4106 on the result before returning it.
4109 * tree-vect-stmts.c (vect_finish_stmt_generation): If gsi_stmt (*gsi)
4110 is a debug stmt, use location of the first non-debug stmt after it.
4112 2011-08-18 Richard Sandiford <richard.sandiford@linaro.org>
4114 * config/arm/arm.c (arm_rtx_costs_1): Don't modify the costs of SET.
4115 (arm_size_rtx_costs): Likewise.
4117 2011-08-18 Richard Guenther <rguenther@suse.de>
4119 * tree.h (tree_int_cst_msb): Remove.
4120 * tree.c (tree_int_cst_msb): Likewise.
4121 (tree_int_cst_sign_bit): Move from ...
4122 * tree-ssa-loop-ivopts.c (tree_int_cst_sign_bit): ... here.
4124 2011-08-18 Richard Sandiford <richard.sandiford@linaro.org>
4126 * doc/tm.texi.in (TARGET_RTX_COSTS): Add an opno paramter.
4127 * doc/tm.texi: Regenerate.
4128 * target.def (rtx_costs): Add an opno parameter.
4129 * hooks.h (hook_bool_rtx_int_int_intp_bool_false): Replace with...
4130 (hook_bool_rtx_int_int_int_intp_bool_false): ...this.
4131 * hooks.c (hook_bool_rtx_int_int_intp_bool_false): Replace with...
4132 (hook_bool_rtx_int_int_int_intp_bool_false): ...this.
4133 * cse.c (COST_IN): Add an opno parameter.
4134 (notreg_cost): Likewise. Update call to rtx_cost.
4135 (COST, fold_rtx): Update accordingly.
4136 * dojump.c (prefer_and_bit_test): Update call to rtx_cost.
4137 * expmed.c (emit_store_flag): Likewise.
4138 * optabs.c (avoid_expensive_constant): Add an opno parameter.
4139 Update call to rtx_cost.
4140 (expand_binop_directly, expand_binop): Likewise.
4141 (expand_twoval_binop, prepare_cmp_insn): Likewise.
4142 * rtl.h (rtx_cost, get_full_rtx_cost): Add opno parameters.
4143 (set_src_cost, get_full_set_src_cost): Update accordingly.
4144 * rtlanal.c (rtx_cost): Add an opno parameter. Update call
4146 (get_full_rtx_cost): Add an opno paramter. Update calls to rtx_cost.
4147 (default_adress_cost): Update calls to rtx_cost.
4149 * config/arm/arm.c (arm_rtx_costs_1, arm_size_rtx_costs)
4150 (arm_slowmul_rtx_costs): Adjust calls to rtx_cost.
4151 (arm_rtx_costs): Add an opno parameter.
4152 * config/alpha/alpha.c (alpha_rtx_costs): Add an opno parameter and
4153 adjust any recursive rtx-cost calls.
4154 * config/avr/avr.c (avr_operand_rtx_cost, avr_rtx_costs): Likewise.
4155 * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
4156 * config/c6x/c6x.c (c6x_rtx_costs): Likewise.
4157 * config/cris/cris.c (cris_rtx_costs): Likewise.
4158 * config/frv/frv.c (frv_rtx_costs): Likewise.
4159 * config/h8300/h8300.c (h8300_rtx_costs): Likewise.
4160 * config/i386/i386.c (ix86_rtx_costs): Likewise.
4161 * config/ia64/ia64.c (ia64_rtx_costs): Likewise.
4162 * config/iq2000/iq2000.c (iq2000_rtx_costs): Likewise.
4163 * config/lm32/lm32.c (lm32_rtx_costs): Likewise.
4164 * config/m32c/m32c.c (m32c_rtx_costs): Likewise.
4165 * config/m32r/m32r.c (m32r_rtx_costs): Likewise.
4166 * config/m68k/m68k.c (m68k_rtx_costs): Likewise.
4167 * config/mcore/mcore.c (mcore_rtx_costs): Likewise.
4168 * config/mep/mep.c (mep_rtx_cost): Likewise.
4169 * config/microblaze/microblaze.c (microblaze_rtx_costs): Likewise.
4170 * config/mips/mips.c (mips_binary_cost): Update call to rtx_cost.
4171 (mips_zero_extend_cost): Add an opno parameter.
4172 * config/mmix/mmix.c (mmix_rtx_costs): Likewise.
4173 * config/mn10300/mn10300.c (mn10300_address_cost): Update call
4175 (mn10300_rtx_costs): Add an opno parameter and adjust any recursive
4177 * config/pa/pa.c (hppa_rtx_costs): Likewise.
4178 * config/pdp11/pdp11.c (pdp11_rtx_costs): Likewise.
4179 * config/picochip/picochip.c (picochip_rtx_costs): Likewise.
4180 * config/rs6000/rs6000.c (rs6000_rtx_costs): Likewise.
4181 (rs6000_debug_rtx_costs): Likewise.
4182 * config/s390/s390.c (s390_rtx_costs): Likewise.
4183 * config/score/score-protos.h (score_rtx_costs): Likewise.
4184 * config/score/score.c (score_rtx_costs): Likewise.
4185 * config/sh/sh.c (andcosts): Update call to rtx_cost.
4186 (sh_rtx_costs): Add an opno parameter.
4187 * config/sparc/sparc.c (sparc_rtx_costs): Likewise.
4188 * config/spu/spu.c (spu_rtx_costs): Likewise.
4189 * config/stormy16/stormy16.c (xstormy16_rtx_costs): Likewise.
4190 * config/v850/v850.c (v850_rtx_costs): Likewise.
4191 * config/vax/vax.c (vax_rtx_costs): Likewise.
4192 * config/xtensa/xtensa.c (xtensa_rtx_costs): Likewise.
4194 2011-08-18 Richard Sandiford <richard.sandiford@linaro.org>
4196 * rtl.h (set_src_cost, get_full_set_src_cost): New functions.
4197 * auto-inc-dec.c (attempt_change): Use set_src_cost instead of
4199 * calls.c (precompute_register_parameters): Likewise.
4200 * combine.c (expand_compound_operation, make_extraction): Likewise.
4201 (force_to_mode, distribute_and_simplify_rtx): Likewise.
4202 * dse.c (find_shift_sequence): Likewise.
4203 * expmed.c (init_expmed, expand_mult, expand_smod_pow2): Likewise.
4204 * expr.c (compress_float_constant): Likewise.
4205 * fwprop.c (should_replace_address, try_fwprop_subst): Likewise.
4206 * gcse.c (want_to_gcse_p): Likewise.
4207 * ifcvt.c (noce_try_sign_mask): Likewise.
4208 * loop-doloop.c (doloop_optimize): Likewise.
4209 * loop-invariant.c (create_new_invariant): Likewise.
4210 * optabs.c (avoid_expensive_constant): Likewise.
4211 * postreload.c (reload_cse_simplify_set, reload_cse_simplify_operands)
4212 (try_replace_in_use, reload_cse_move2add): Likewise.
4213 * reload1.c (calculate_elim_costs_all_insns): Likewise.
4214 (note_reg_elim_costly): Likewise.
4215 * rtlanal.c (insn_rtx_cost): Likewise.
4216 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
4217 * stmt.c (lshift_cheap_p): Likewise.
4218 * tree-ssa-loop-ivopts.c (seq_cost, computation_cost): Likewise.
4219 * config/avr/avr.c (final_prescan_insn): Likewise.
4220 * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
4221 * config/mips/mips.c (mips_binary_cost, mips_rtx_costs): Likewise.
4223 2011-08-18 Richard Sandiford <richard.sandiford@linaro.org>
4225 * rtl.h (set_rtx_cost, get_full_set_rtx_cost): New functions.
4226 * auto-inc-dec.c (attempt_change): Use set_rtx_cost.
4227 * cfgloopanal.c (seq_cost): Likewise.
4228 * loop-invariant.c (create_new_invariant): Likewise.
4229 * postreload.c (move2add_use_add2_insn, move2add_use_add3_insn)
4230 (reload_cse_move2add): Use get_full_set_rtx_cost.
4232 2011-08-18 Richard Guenther <rguenther@suse.de>
4234 * expr.c (get_inner_reference): Fix typo in last change.
4236 2011-08-18 Paolo Carlini <paolo.carlini@oracle.com>
4237 Joseph Myers <joseph@codesourcery.com>
4239 PR tree-optimization/49963
4240 * hwint.c (absu_hwi): Define.
4241 * hwint.h (absu_hwi): Declare.
4242 * fold-const.c (fold_plusminus_mult_expr): Use absu_hwi instead
4244 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Likewise.
4245 * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Likewise.
4247 2011-08-18 Richard Guenther <rguenther@suse.de>
4249 * expr.c (get_inner_reference): Sign-extend the constant
4250 twos-complement offset before doing arbitrary precision
4252 * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Likewise.
4253 (get_constraint_for_1): Pass the offset of a MEM_REF unchanged
4254 to get_constraint_for_ptr_offset.
4256 2011-08-17 Kaz Kojima <kkojima@gcc.gnu.org>
4259 * config/sh/sh.c (sh_output_mi_thunk): Don't call dbr_schedule.
4261 2011-08-17 Richard Guenther <rguenther@suse.de>
4263 * tree.h (convert_to_ptrofftype_loc): New function.
4264 (convert_to_ptrofftype): Define.
4265 * builtins.c (expand_builtin_bzero): Use size_type_node.
4266 (fold_builtin_bzero): Likewise.
4267 (std_gimplify_va_arg_expr): Build the BIT_AND_EXPR on the pointer.
4268 * c-typeck.c (build_unary_op): Use convert_to_ptrofftype_loc.
4269 * cgraphunit.c (thunk_adjust): Use fold_build_pointer_plus_loc.
4270 (cgraph_redirect_edge_call_stmt_to_callee): Use size_int.
4271 * expr.c (expand_expr_addr_expr_1): Use fold_build_pointer_plus.
4272 * fold-const.c (build_range_check): Negate using the original type.
4273 (fold_unary_loc): Use fold_build_pointer_plus_loc.
4274 * gimple-fold.c (gimple_adjust_this_by_delta): Use
4275 convert_to_ptrofftype.
4276 * gimplify.c (gimplify_self_mod_expr): Likewise.
4277 * graphite-clast-to-gimple.c (clast_to_gcc_expression): Likewise.
4278 (graphite_create_new_loop_guard): Likewise.
4279 * graphite-sese-to-poly.c (my_long_long): Remove.
4280 (scop_ivs_can_be_represented): Adjust.
4281 * tree-cfg.c (verify_gimple_assign_unary): Use ptrofftype_p.
4282 * tree-chrec.c (chrec_fold_plus_1): Use fold_build_pointer_plus.
4283 * tree-loop-distribution.c (build_size_arg_loc): Use
4285 (generate_memset_zero): Simplify.
4286 * tree-mudflap.c: Use fold_convert, not convert.
4287 * tree-predcom.c (suitable_reference_p): Expand DR_OFFSET in
4289 (determine_offset): Likewise for DR_STEP.
4290 (valid_initializer_p): Likewise.
4291 * tree-profile.c (prepare_instrumented_value): Convert the pointer
4292 to an integer type of same size.
4293 * tree-scalar-evolution.c (interpret_rhs_expr): Do not refer
4294 to sizetype without need.
4295 * tree-ssa-address.c (tree_mem_ref_addr): Likewise.
4296 * tree-ssa-loop-ivopts.c (find_bivs): Use convert_to_ptrofftype.
4297 * tree-ssa-loop-manip.c (create_iv): Likewise.
4298 (determine_exit_conditions): Adjust comment.
4299 * tree-ssa-pre.c (create_expression_by_pieces): Use
4300 convert_to_ptrofftype.
4301 * tree-ssa-structalias.c (get_constraint_for_1): Likewise.
4302 * varasm.c (array_size_for_constructor): Compute using double_ints.
4304 2011-08-16 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4306 * config/spu/spu.c (spu_emit_branch_or_set): Avoid reverse tests
4307 when generating an integer result where possible. Short-cut
4308 comparison against 0 also for QImode.
4310 2011-08-16 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4312 * config/spu/spu.h (LEGITIMIZE_RELOAD_ADDRESS): New macro.
4313 * config/spu/spu-protos.h (spu_legitimize_reload_address): Add
4315 * config/spu/spu.c (spu_legitimize_reload_address): New function.
4316 (spu_legitimate_address_p): Do not check displacement if the base
4317 is an eliminable stack register.
4319 2011-08-16 Anatoly Sokolov <aesok@post.ru>
4321 * config/m32c/m32c.h (PREFERRED_RELOAD_CLASS,
4322 PREFERRED_OUTPUT_RELOAD_CLASS): Remove macro.
4323 * config/m32c/m32c-protos.h (m32c_preferred_reload_class,
4324 m32c_preferred_output_reload_class): Remove.
4325 * config/m32c/m32c.c (m32c_preferred_reload_class): Make static.
4326 Change rclass argument and return types to reg_class_t. Use
4327 reg_class_subset_p instead of class_sizes.
4328 (m32c_preferred_output_reload_class): Make static. Change rclass
4329 argument and return types to reg_class_t.
4330 (TARGET_PREFERRED_RELOAD_CLASS,
4331 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
4333 2011-08-16 Kai Tietz <ktietz@redhat.com>
4335 * config/i386/mingw32.h (GOMP_SELF_SPEC): Add -pthread option.
4337 2011-08-16 Richard GUenther <rguenther@suse.de>
4339 PR tree-optimization/50082
4340 * tree-ssa-forwprop.c (combine_cond_expr_cond): Handle overflow
4341 warnings here, instead of ...
4342 (ssa_forward_propagate_and_combine): ... here.
4343 (forward_propagate_into_comparison_1): Adjust.
4344 (forward_propagate_into_comparison): Likewise.
4345 (forward_propagate_into_gimple_cond): Likewise.
4346 (forward_propagate_into_cond): Likewise.
4348 2011-08-16 Andreas Schwab <schwab@redhat.com>
4350 * ggc.h (ggc_alloc_rtvec_sized): Use ggc_alloc_zone_rtvec_def
4351 instead of ggc_alloc_zone_vec_rtvec_def.
4353 2011-08-16 Richard Guenther <rguenther@suse.de>
4355 * tree.h (ptrofftype_p): New helper function.
4356 * tree-cfg.c (verify_expr): Use ptrofftype_p for POINTER_PLUS_EXPR
4357 offset verification.
4358 (verify_gimple_assign_binary): Likewise.
4359 * tree.c (build2_stat): Likewise.
4360 * tree-chrec.c (chrec_fold_plus_poly_poly): Likewise.
4361 (reset_evolution_in_loop): Likewise.
4362 * tree-chrec.h (build_polynomial_chrec): Likewise.
4364 2011-08-16 Liang Wang <lwang1@marvell.com>
4366 * ggc.h (ggc_alloc_rtvec_sized): Change arguments of
4367 ggc_alloc_zone_vec_rtvec_def.
4369 2011-08-16 Richard Guenther <rguenther@suse.de>
4371 * tree-vrp.c (extract_range_from_multiplicative_op_1): New
4372 helper factored out from ...
4373 (extract_range_from_binary_expr_1): ... here. Re-structure
4374 to not glob handling too different tree codes.
4376 2011-08-15 Richard Henderson <rth@redhat.com>
4379 * explow.c (allocate_dynamic_stack_space): Move suppress_reg_args_size
4380 setting out to include allocate_stack named pattern as well.
4381 * builtins.c (expand_builtin_apply): Add ARG_SIZE 0 note.
4382 * stmt.c (expand_stack_restore): Likewise.
4384 2011-08-15 Richard Guenther <rguenther@suse.de>
4387 * fold-const.c (maybe_canonicalize_comparison_1): Properly
4388 convert the modified operand to the other operand type.
4389 (fold_comparison): Call maybe_canonicalize_comparison_1 with
4390 useless conversions stripped from comparison operands.
4392 2011-08-15 Richard Guenther <rguenther@suse.de>
4394 * tree-vrp.c (value_range_nonnegative_p): Fix anti-range case.
4395 (extract_range_from_unary_expr_1): Restructure.
4397 2011-08-15 Richard Guenther <rguenther@suse.de>
4399 PR tree-optimization/50058
4400 * tree-ssa-sccvn.c (vn_reference_lookup_3): Relax aggregate
4403 2011-08-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
4406 * config/arm/arm.c (output_move_double): Add 2 parameters
4407 to count the number of insns emitted and whether to emit or not.
4408 Use the flag to decide when to emit and count number of instructions
4409 that will be emitted.
4410 Handle case where output_move_double might be called for calculating
4411 lengths with an invalid constant.
4412 (arm_count_output_move_double_insns): Define.
4413 * config/arm/arm-protos.h (arm_count_output_move_double_insns): Declare.
4414 (output_move_double): Adjust prototype.
4415 * config/arm/vfp.md ("*movdi_vfp"): Adjust call to
4417 ("*movdi_vfp_cortexa8"): Likewise and add attribute
4419 * config/arm/arm.md ("*arm_movdi"): Adjust call to output_move_double.
4420 ("*movdf_soft_insn"): Likewise.
4421 * config/arm/cirrus.md ("*cirrus_arm_movdi"): Likewise.
4422 ("*cirrus_thumb2_movdi"): Likewise.
4423 ("*thumb2_cirrus_movdf_hard_insn"): Likewise.
4424 ("*cirrus_movdf_hard_insn"): Likewise.
4425 * config/arm/neon.md (*neon_mov<mode> VD): Likewise.
4426 * config/arm/iwmmxt.md ("*iwmmxt_arm_movdi"): Likewise.
4427 ("mov<mode>_internal VMMX"): Likewise.
4428 * config/arm/fpa.md (*movdf_fpa, *thumb2_movdf_fpa): Likewise.
4430 2011-08-14 Uros Bizjak <ubizjak@gmail.com>
4432 * config/i386/i386.c (ix86_expand_round_sse4): New function.
4433 * config/i386/i386-protos.h (ix86_expand_round_sse4): New prototype.
4434 * config/i386/i386.md (round<mode>2): Use ix86_expand_round_sse4
4437 (rint<mode>2): Simplify TARGET_ROUND check.
4438 (floor<mode>2): Ditto.
4439 (ceil<mode>2): Ditto.
4440 (btrunc<mode>2): Ditto.
4442 2011-08-14 Anatoly Sokolov <aesok@post.ru>
4444 * config/mmix/mmix.c (TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Redefine
4445 as mmix_preferred_output_reload_class.
4447 2011-08-14 Georg-Johann Lay <avr@gjlay.de>
4450 * config/avr/avr.md (UNSPEC_IDENTITY): New c_enum.
4451 (branch_unspec): New insn.
4452 (branch): Beauty farm.
4453 * config/avr/avr.c (compare_condition): Use JUMP_P. Test SET_SRC
4455 (avr_compare_pattern, avr_reorg_remove_redundant_compare):
4456 New static functions.
4457 (avr_reorg): Use them. Use next_real_insn instead of NEXT_INSN.
4458 Use CONST_INT_P. Beauty.
4460 2011-08-12 Richard Henderson <rth@redhat.com>
4463 * sched-init.h (struct deps_desc): Add sched_before_next_jump.
4464 * sched-deps.c (init_deps): Clear it.
4465 (deps_analyze_insn): Consume it.
4466 (sched_analyze_insn): Fill it.
4468 2011-08-12 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
4471 * config/arm/arm.h (CASE_VECTOR_SHORTEN_MODE): Fix distance
4472 for tbh instructions.
4474 2011-08-12 Diego Novillo <dnovillo@google.com>
4476 * data-streamer.h (streamer_write_zero): Rename from output_zero.
4477 (streamer_write_uhwi): Rename from lto_output_uleb128.
4478 (streamer_write_hwi): Rename from output_sleb128.
4479 (streamer_write_string): Rename from lto_output_string.
4480 (streamer_string_index): Rename from lto_string_index.
4481 (streamer_write_string_with_length): Rename from
4482 lto_output_string_with_length.
4483 (streamer_write_uhwi_stream): Rename from lto_output_uleb128_stream.
4484 (streamer_write_hwi_stream): Rename from lto_output_sleb128_stream.
4485 (streamer_read_string): Rename from lto_input_string.
4486 (streamer_read_indexed_string): Rename from input_string_internal.
4487 (streamer_read_uhwi): Rename from lto_input_uleb128.
4488 (streamer_read_hwi): Rename from lto_input_sleb128.
4489 (streamer_write_hwi_in_range): Rename from lto_output_int_in_range.
4490 (streamer_read_hwi_in_range): Rename from lto_input_int_in_range.
4491 (streamer_write_enum): Rename from lto_output_enum.
4492 (streamer_read_enum): Rename from lto_input_enum.
4493 (streamer_write_record_start): Rename from output_record_start.
4494 (streamer_read_record_start): Rename from input_record_start.
4495 (streamer_write_bitpack): Rename from lto_output_bitpack.
4496 (streamer_read_bitpack): Rename from lto_input_bitpack.
4497 (streamer_write_char_stream): Rename from lto_output_1_stream.
4498 (streamer_read_uchar): Rename from lto_input_1_unsigned.
4499 * tree-streamer.h (streamer_cache_d): Rename from lto_streamer_cache_d.
4500 (streamer_handle_as_builtin_p): Rename from lto_stream_as_builtin_p.
4501 (streamer_read_string_cst): Rename from input_string_cst.
4502 (streamer_read_chain): Rename from lto_input_chain.
4503 (streamer_alloc_tree): Rename from lto_materialize_tree.
4504 (streamer_read_tree_body): Rename from lto_input_tree_pointers.
4505 (streamer_get_pickled_tree): Rename from lto_get_pickled_tree.
4506 (streamer_get_builtin_tree): Rename from lto_get_builtin_tree.
4507 (streamer_read_integer_cst): Rename from lto_input_integer_cst.
4508 (streamer_read_tree_bitfields): Rename from tree_read_bitfields.
4509 (streamer_write_chain): Rename from lto_output_chain.
4510 (streamer_write_tree_header): Rename from lto_output_tree_header.
4511 (streamer_pack_tree_bitfields): Rename from pack_value_fields.
4512 (streamer_write_tree_body): Rename from lto_output_tree_pointers.
4513 (streamer_write_integer_cst): Rename from lto_output_integer_cst.
4514 (streamer_write_builtin): Rename from lto_output_builtin_tree.
4515 (streamer_check_handled_ts_structures): Rename from
4516 check_handled_ts_structures.
4517 (streamer_tree_cache_insert): Rename from lto_streamer_cache_insert.
4518 (streamer_tree_cache_insert_at): Rename from
4519 lto_streamer_cache_insert_at.
4520 (streamer_tree_cache_append): Rename from lto_streamer_cache_append.
4521 (streamer_tree_cache_lookup): Rename from lto_streamer_cache_lookup.
4522 (streamer_tree_cache_get): Rename from lto_streamer_cache_get.
4523 (streamer_tree_cache_create): Rename from lto_streamer_cache_create.
4524 (streamer_tree_cache_delete): Rename from lto_streamer_cache_delete.
4525 * tree-streamer-out.c (write_string_cst): Rename from output_string_cst.
4526 (write_identifier): Rename from output_identifier.
4527 (write_ts_common_tree_pointers): Rename from
4528 lto_output_ts_common_tree_pointers.
4529 (write_ts_vector_tree_pointers): Rename from
4530 lto_output_ts_vector_tree_pointers.
4531 (write_ts_complex_tree_pointers): Rename from
4532 lto_output_ts_complex_tree_pointers.
4533 (write_ts_decl_minimal_tree_pointers): Rename from
4534 lto_output_ts_decl_minimal_tree_pointers.
4535 (write_ts_decl_common_tree_pointers): Rename from
4536 lto_output_ts_decl_common_tree_pointers.
4537 (write_ts_decl_non_common_tree_pointers): Rename from
4538 lto_output_ts_decl_non_common_tree_pointers.
4539 (write_ts_decl_with_vis_tree_pointers): Rename from
4540 lto_output_ts_decl_with_vis_tree_pointers.
4541 (write_ts_field_decl_tree_pointers): Rename from
4542 lto_output_ts_field_decl_tree_pointers.
4543 (write_ts_function_decl_tree_pointers): Rename from
4544 lto_output_ts_function_decl_tree_pointers.
4545 (write_ts_type_common_tree_pointers): Rename from
4546 lto_output_ts_type_common_tree_pointers.
4547 (write_ts_type_non_common_tree_pointers): Rename from
4548 lto_output_ts_type_non_common_tree_pointers.
4549 (write_ts_list_tree_pointers): Rename from
4550 lto_output_ts_list_tree_pointers.
4551 (write_ts_vec_tree_pointers): Rename from
4552 lto_output_ts_vec_tree_pointers.
4553 (write_ts_exp_tree_pointers): Rename from
4554 lto_output_ts_exp_tree_pointers.
4555 (write_ts_block_tree_pointers): Rename from
4556 lto_output_ts_block_tree_pointers.
4557 (write_ts_binfo_tree_pointers): Rename from
4558 lto_output_ts_binfo_tree_pointers.
4559 (write_ts_constructor_tree_pointers): Rename from
4560 lto_output_ts_constructor_tree_pointers.
4561 (write_ts_target_option): Rename from lto_output_ts_target_option.
4562 (write_ts_translation_unit_decl_tree_pointers): Rename from
4563 lto_output_ts_translation_unit_decl_tree_pointers.
4564 * tree-streamer.c (streamer_tree_cache_add_to_node_array):
4565 Rename from lto_streamer_cache_add_to_node_array.
4566 (streamer_tree_cache_insert_1): Rename from lto_streamer_cache_insert_1.
4567 (record_common_node): Rename from lto_record_common_node.
4569 * streamer-hooks.h (bitpack_d, lto_streamer_cache_d): Remove forward
4571 * data-streamer-in.c (lto_input_widest_uint_uleb128): Remove unused
4573 * data-streamer-out.c (lto_output_widest_uint_uleb128_stream): Remove
4575 * Makefile.in (lto-section-out.o): Add dependency on DATA_STREAMER_H.
4576 (ipa-reference.o): Likewise.
4577 * lto-section-out.c: Include data-streamer.h.
4578 * ipa-reference.c: Include data-streamer.h.
4580 2011-08-12 Nick Clifton <nickc@redhat.com>
4582 * builtins.c (expand_builtin_memcmp): Do not use cmpstrnsi pattern.
4583 * doc/md.texi (cmpstrn): Note that the comparison stops if both
4584 fetched bytes are zero.
4586 (cmpmem): Note that the comparison does not stop if both of the
4587 fetched bytes are zero.
4589 2011-08-12 Uros Bizjak <ubizjak@gmail.com>
4591 * builtins.def (BUILT_IN_ICEIL{,F,L}, BUILT_IN_IFLOOR{,F,L}
4592 BUILT_IN_IRINT{,F,L}, BUILT_IN_IROUND{,F,L}: New builtin definitions.
4593 * convert.c (convert_to_integer): Convert to BUILT_IN_ICEIL,
4594 BUILT_IN_IFLOOR, BUILT_IN_IRINT or BUILT_INT_IROUND when converting
4595 to integer_type_node.
4596 * fold-const.c (tree_call_nonnegative_warnv_p): Handle BUILT_IN_ICEIL,
4597 BUILT_IN_IFLOOR, BUILT_IN_IRINT and BUILT_INT_IROUND.
4598 * builtins.c (expand_builtin_in): Ditto.
4599 (mathfn_built_in_1): Ditto.
4600 (expand_builtin_int_roundingfn): Handle BUILT_IN_ICEIL and
4602 (expand_builtin_int_roundingfn_2): Handle BUILT_IN_IRINT and
4604 (fold_fixed_mathfn): Canonicalize BUILT_IN_ICEIL, BUILTIN_IN_IFLOOR
4605 BUILT_IN_IRINT and BUILT_IN_IROUND to BUILT_IN_LCEIL,
4606 BUILTIN_IN_LFLOOR, BUILT_IN_LRINT and BUILT_IN_LROUND on ILP32 targets.
4608 2011-08-12 Richard Guenther <rguenther@suse.de>
4610 * tree-vrp.c (extract_range_from_unary_expr_1): Implement -X as 0 - X.
4612 2011-08-12 Romain Geissler <romain.geissler@gmail.com>
4614 * Makefile.in (PLUGIN_HEADERS): Add C_TREE_H.
4616 2011-08-12 Richard Sandiford <rdsandiford@googlemail.com>
4618 * config/arm/arm.c (get_label_padding): New function.
4619 (create_fix_barrier, arm_reorg): Use it.
4621 2011-08-11 Uros Bizjak <ubizjak@gmail.com>
4624 * config/i386/i386.md (*lea_5_zext): New.
4625 (*lea_6_zext): Ditto.
4626 * config/i386/predicates.md (const_32bit_mask): New predicate.
4627 (lea_address_operand): Reject AND.
4628 * config/i386/i386.c (ix86_decompose_address): Allow Dimode AND with
4629 const_32bit_mask immediate.
4630 (ix86_print_operand_address): Handle AND.
4631 (memory_address_length): Ditto.
4633 2011-08-11 Romain Geissler <romain.geissler@gmail.com>
4634 Brian Hackett <bhackett1024@gmail.com>
4636 * plugin.def: Add event for finish_decl.
4637 * plugin.c (register_callback, invoke_plugin_callbacks): Same.
4638 * c-decl.c (finish_decl): Invoke callbacks on above event.
4639 * doc/plugins.texi: Document above event.
4641 2011-08-11 Richard Guenther <rguenther@suse.de>
4643 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid redundant
4644 lookups, make looking through aggregate copies stronger.
4646 2011-08-11 Richard Henderson <rth@redhat.com>
4649 * expr.c (fixup_args_size_notes): Accept and ignore normal calls.
4651 2011-08-11 Richard Guenther <rguenther@suse.de>
4653 * lto-cgraph.c (input_node): Use DECL_BUILT_IN.
4654 * tree-vrp.c (stmt_interesting_for_vrp): Likewise.
4655 (vrp_visit_stmt): Likewise.
4657 2011-08-11 Richard Guenther <rguenther@suse.de>
4660 * gimplify.c (gimplify_modify_expr_complex_part): Mark the
4661 load of the other piece with TREE_NO_WARNING.
4662 * tree-flow.h (warn_uninit): Adjust prototype.
4663 * tree-ssa.c (warn_uninit): Take uninitialized SSA name,
4664 the base variable and the expression that is used separately.
4665 Properly query all TREE_NO_WARNING flags.
4666 (struct walk_data): Remove.
4667 (warn_uninitialized_var): Likewise.
4668 (warn_uninitialized_vars): Do not walk gimple pieces but simply
4669 look at all SSA uses of the statement. Handle unused memory
4671 * tree-ssa-uninit.c (warn_uninitialized_phi): Adjust.
4673 2011-08-11 Kazuhiro Inaoka <kazuhiro.inaoka.ud@renesas.com>
4675 * config/rx/rx.md (movsicc): Allow register to register transfers.
4676 (*movsicc): Likewise.
4677 (*stcc): Restrict this pattern to EQ and NE compares.
4678 (*stcc_reg): New pattern. Works for any comparison but only for
4681 2011-08-11 Diego Novillo <dnovillo@google.com>
4683 * tree-streamer-out.c (lto_output_ts_decl_with_vis_tree_pointers):
4684 Call stream_write_tree instead of output_record_start.
4685 (lto_output_ts_binfo_tree_pointers): Likewise.
4687 * streamer-hooks.h (stream_write_tree): Move from tree-streamer.h.
4688 Convert it to a macro.
4689 (stream_read_tree): Likewise.
4691 * lto-streamer.h (lto_stream_as_builtin_p): Move ...
4692 * tree-streamer.h (lto_stream_as_builtin_p): ... here.
4694 * lto-streamer-in.c (lto_read_tree): Call lto_streamer_cache_append
4695 and tree_read_bitfields.
4696 * lto-streamer-out.c (lto_is_streamable): Move from lto-streamer.c
4697 (lto_write_tree): Call it.
4698 * lto-streamer.c (lto_is_streamable): Move to lto-streamer-out.c
4699 * streamer-hooks.h (struct streamer_hooks): Remove fields
4700 name, is_streamable and alloc_tree. Update all users.
4701 * tree-streamer-in.c (tree_read_bitfields): Factor out of ...
4702 (lto_materialize_tree): ... here.
4703 Handle CALL_EXPR codes.
4704 Remove call to lto_streamer_cache_append.
4705 * tree-streamer-out.c (lto_output_tree_header): Handle CALL_EXPR nodes.
4706 * tree-streamer.h (tree_read_bitfields): Declare.
4708 * Makefile.in (TREE_STREAMER_H): Add STREAMER_HOOKS_H.
4709 (gimple-streamer-in.o): Add dependency on TREE_STREAMER_H.
4710 * tree-streamer.h (stream_read_tree): New. Replace all calls
4711 to lto_input_tree with it.
4712 (stream_write_tree): New. Replace all calls to lto_output_tree,
4713 lto_output_tree_ref and lto_output_tree_or_ref with it.
4714 * lto-streamer-in.c (lto_read_tree): Inline code from
4715 lto_streamer_read_tree.
4716 (lto_input_tree): Move from tree-streamer-in.c.
4717 * lto-streamer-out.c (lto_output_tree_ref): Make static.
4718 Remove handling of NULL values for EXPR.
4719 Do not handle EXPRs that are not indexable.
4720 (lto_write_tree): Move from tree-streamer-out.c.
4721 Inline lto_streamer_write_tree.
4722 (lto_output_tree): Move from tree-streamer-out.c.
4723 If REF_P is true and EXPR is indexable, call lto_output_tree_ref.
4724 * lto-streamer.c (lto_record_common_node): Move to tree-streamer.c.
4725 (lto_preload_common_nodes): Likewise.
4726 Remove assertions and adjustments for nodes
4727 main_identifier_node, ptrdiff_type_node and fileptr_type_node.
4728 (lto_streamer_hooks_init): Set streamer_hooks.write_tree to
4729 lto_output_tree and streamer_hooks.read_tree to lto_input_tree.
4730 * lto-streamer.h (lto_input_tree): Declare.
4731 (lto_output_tree_ref): Remove.
4732 * streamer-hooks.h (struct streamer_hooks): Remove fields
4733 preload_common_nodes, indexable_with_decls_p,
4734 pack_value_fields, unpack_value_fields and output_tree_header.
4736 * tree-streamer-in.c (lto_materialize_tree): Make extern.
4737 (lto_input_tree_pointers): Likewise.
4738 (lto_read_tree): Move to lto-streamer-in.c.
4739 (lto_input_integer_cst): Make extern.
4740 (lto_get_pickled_tree): Likewise.
4741 (lto_get_builtin_tree): Likewise.
4742 (lto_input_tree): Move to lto-streamer-in.c.
4743 * tree-streamer-out.c (pack_value_fields): Make extern.
4744 (lto_output_tree_or_ref): Remove. Replace all callers with
4745 calls to stream_write_tree.
4746 (lto_output_builtin_tree): Make extern.
4747 (lto_streamer_write_tree): Inline into lto_write_tree.
4748 (lto_output_tree_pointers): Make extern.
4749 (lto_output_tree_header): Likewise.
4750 (lto_output_integer_cst): Likewise.
4751 (lto_write_tree): Move to lto-streamer-out.c.
4752 (lto_output_tree): Likewise.
4753 * tree-streamer.c (lto_record_common_node): Move from lto-streamer.c
4754 (preload_common_nodes): Likewise.
4755 (lto_streamer_cache_create): Call it.
4756 * tree-streamer.h: Include streamer-hooks.h.
4757 (stream_write_tree): New.
4758 (stream_read_tree): New.
4759 (lto_input_tree): Remove.
4760 (lto_materialize_tree): Declare.
4761 (lto_input_tree_pointers): Declare.
4762 (lto_get_pickled_tree): Declare.
4763 (lto_get_builtin_tree): Declare.
4764 (lto_input_integer_cst): Declare.
4765 (lto_output_tree_header): Declare.
4766 (pack_value_fields): Declare.
4767 (lto_output_tree_pointers): Declare.
4768 (lto_output_integer_cst): Declare.
4769 (lto_output_builtin_tree): Declare.
4771 2011-08-11 Sergey Grechanik <mouseentity@ispras.ru>
4773 * sel-sched-ir.c (has_dependence_note_reg_use): Call ds_full_merge
4774 only if producer writes to the register given by regno.
4776 2011-08-11 Sergey Grechanik <mouseentity@ispras.ru>
4777 Alexander Monakov <amonakov@ispras.ru>
4779 * sched-deps.c (sched_get_condition_with_rev): Rename to ...
4780 (sched_get_condition_with_rev_uncached): ... this. Factor out
4781 condition caching logic into ...
4782 (sched_get_condition_with_rev): ... this. Reimplement. Do not
4783 attempt to use cache for instructions with zero luid.
4784 (sched_analyze_insn): Use INSN_CACHED_COND instead of INSN_COND.
4785 * sched-int.h (INSN_COND): Rename to INSN_CACHED_COND.
4787 2011-08-11 Sergey Grechanik <mouseentity@ispras.ru>
4789 * sel-sched-ir.c (get_seqno_of_a_pred): Rename to
4790 get_seqno_for_a_jump. Update the caller.
4791 (get_seqno_by_succs): New. Use it ...
4792 (get_seqno_for_a_jump): ... here to find a seqno if looking at
4793 predecessors was not sufficient.
4794 (get_seqno_by_preds): Include head in iteration range, exclude insn.
4796 2011-08-11 Dmitry Melnik <dm@ispras.ru>
4798 * sel-sched-ir.c (invalidate_av_set): Remove the assert.
4800 2011-08-11 Sergey Grechanik <mouseentity@ispras.ru>
4802 * sel-sched-ir.h (register_unavailable_p): Declare.
4803 * sel-sched-ir.c (register_unavailable_p): New. Use it...
4804 (set_unavailable_target_for_expr): ... here to properly test
4805 availability of a register.
4806 (speculate_expr): Ditto.
4807 * sel-sched.c (substitute_reg_in_expr): Ditto.
4808 (av_set_could_be_blocked_by_bookkeeping_p): Ditto.
4810 2011-08-11 Sergey Grechanik <mouseentity@ispras.ru>
4812 * sel-sched.c (verify_target_availability): Fix usage of
4815 2011-08-11 Dmitry Melnik <dm@ispras.ru>
4817 * sel-sched-ir.c (init_global_and_expr_for_insn): Forbid copying of
4818 recognized by cannot_copy_insn_p hook and volatile instructions.
4820 2011-08-11 Dmitry Melnik <dm@ispras.ru>
4822 * sel-sched-ir.c (merge_expr_data): Take maximum spec.
4824 2011-08-11 Richard Sandiford <richard.sandiford@linaro.org>
4826 * doc/md.texi (define_bypass): Say that the instruction names can
4827 be filename-style globs.
4828 * Makefile.in (FNMATCH_H): Define.
4829 (build/genattrtab.o, build/genautomata.o): Depend on $(FNMATCH_H).
4830 * genattrtab.c: Include fnmatch.h.
4831 (bypass_list): Change field name from "insn" to "pattern".
4832 (gen_bypass_1): Update accordingly.
4833 (process_bypasses): Use fnmatch to check for matches between
4834 insn reservations and define_bypasses.
4835 * genautomata.c: Include fnmatch.h.
4836 (bypass_decl): Rename in_insn_name and out_insn_name to in_pattern
4837 and out_pattern respectively.
4838 (gen_bypass, insert_bypass): Update accordingly.
4839 (for_each_matching_insn, process_bypass_2, process_bypass_1)
4840 (process_bypass): New functions.
4841 (process_decls): Use process_bypass. Update after field name changes.
4843 2011-08-11 Georg-Johann Lay <avr@gjlay.de>
4846 * config/avr/avr.md (smulqi3_highpart): New insn.
4847 (umulqi3_highpart): New insn.
4848 (*subqi3.ashiftrt7): New insn.
4849 (smulhi3_highpart): New expander.
4850 (umulhi3_highpart): Nex expander.
4851 (*smulhi3_highpart_call): New insn.
4852 (*umulhi3_highpart_call): New insn.
4853 (extend_u): New code attribute.
4854 (extend_prefix): Rename code attribute to extend_su.
4855 * config/avr/avr.c (avr_rtx_costs): Report costs of highpart of
4856 widening QI/HI multiply.
4858 2011-08-11 Ira Rosen <ira.rosen@linaro.org>
4860 PR tree-optimization/50039
4861 * tree-vect-patterns.c (vect_operation_fits_smaller_type): Check
4862 that DEF_STMT has a stmt_vec_info.
4864 2011-08-10 Richard Guenther <rguenther@suse.de>
4866 * tree.h (can_trust_pointer_alignment): Remove.
4867 * builtins.c (can_trust_pointer_alignment): Remove.
4869 2011-08-10 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
4871 * c-typeck.c (scalar_to_vector): New function. Try scalar to
4873 (stv_conv): New enum for scalar_to_vector return type.
4874 (build_binary_op): Adjust.
4875 * doc/extend.texi: Description of scalar to vector expansion.
4877 2011-08-10 Richard Guenther <rguenther@suse.de>
4879 * tree.h (get_pointer_alignment): Remove max-align argument.
4880 (get_object_alignment): Likewise.
4881 * builtins.c (get_object_alignment_1): Adjust.
4882 (get_object_alignment): Remove max-align argument.
4883 (get_pointer_alignment): Likewise.
4884 (expand_builtin_strlen): Adjust.
4885 (expand_builtin_memcpy): Likewise.
4886 (expand_builtin_mempcpy_args): Likewise.
4887 (expand_builtin_strncpy): Likewise.
4888 (expand_builtin_memset_args): Likewise.
4889 (expand_builtin_memcmp): Likewise.
4890 (expand_builtin_strcmp): Likewise.
4891 (expand_builtin_strncmp): Likewise.
4892 (get_builtin_sync_mem): Likewise.
4893 (fold_builtin_memset): Likewise.
4894 (fold_builtin_memory_op): Likewise.
4895 (expand_builtin_memory_chk): Likewise.
4896 * emit-rtl.c (get_mem_align_offset): Likewise.
4897 (set_mem_attributes_minus_bitpos): Likewise.
4898 * expr.c (expand_assignment): Likewise.
4899 (expand_expr_real_1): Likewise.
4900 * tree-sra.c (tree_non_mode_aligned_mem_p): Likewise.
4901 * tree-ssa-forwprop.c (simplify_builtin_call): Likewise.
4902 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Likewise.
4903 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Likewise.
4904 * value-prof.c (gimple_stringops_transform): Likewise.
4906 2011-08-10 Paulo J. Matos <paulo.matos@csr.com>
4908 * doc/tm.texi.in (CLASS_MAX_NREGS): Fix typo.
4909 * doc/tm.texi: Regenerate.
4911 2011-08-10 Georg-Johann Lay <avr@gjlay.de>
4914 * config/avr/avr.md (*ashlhiqi3): New insn-and-split.
4915 (*ashl<extend_prefix>qihiqi3): New insn-and-splits.
4916 (*ashl<extend_prefix>qihiqi3.mem): New insn-and-splits.
4917 Add peephole2 to map ashlhi3 to ashlqi3 if high part of
4918 shift target is unused.
4920 2011-08-10 Richard Guenther <rguenther@suse.de>
4922 PR tree-optimization/49937
4923 * tree-ssa-ccp.c (get_value_from_alignment): Re-implement
4924 using get_object_alignment_1.
4926 2011-08-09 Uros Bizjak <ubizjak@gmail.com>
4928 * config/i386/i386.c (ix86_emit_i387_round): New function.
4929 * config/i386/i386-protos.h (ix86_emit_i387_round): Declare.
4930 * config/i386/i386.md (round<mode>2): Use X87MODEF mode iterator.
4931 Use ix86_emit_i387_round to expand round function for i387 math.
4932 (lround<X87MODEF:mode><SWI248x:mode>2): Use X87MODEF mode iterator.
4933 Use ix86_emit_i387_round to expand {l,ll}round function for i387 math.
4935 2011-08-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4937 * config/sync.c: Move to ../libgcc.
4938 * Makefile.in (libgcc.mvars): Remove LIBGCC_SYNC, LIBGCC_SYNC_CFLAGS.
4939 * config/mips/t-libgcc-mips16 (LIBGCC_SYNC, LIBGCC_SYNC_CFLAGS):
4942 2011-08-09 Anatoly Sokolov <aesok@post.ru>
4944 * config/mmix/mmix.h (REGISTER_MOVE_COST): Remove macro.
4945 * config/mmix/mmix-protos.h (mmix_register_move_cost): Remove.
4946 * config/mmix/mmix.c (mmix_register_move_cost): Make static.
4947 Change 'from' and 'to' arguments type to reg_class_t.
4948 (TARGET_REGISTER_MOVE_COST): Define.
4950 2011-08-09 Vladimir Makarov <vmakarov@redhat.com>
4954 PR rtl-optimization/49990
4955 * ira-costs.c (print_allocno_costs, print_pseudo_costs): Don't
4956 ignore classes which can not change mode.
4957 (find_costs_and_classes): Ditto.
4959 2011-08-09 Richard Guenther <rguenther@suse.de>
4961 * tree-vrp.c (zero_nonzero_bits_from_vr): Also return precise
4962 information for ranges with only negative values.
4963 (extract_range_from_binary_expr_1): Adjust BIT_IOR_EXPR and
4964 BIT_AND_EXPR handling to handle ranges with negative values.
4966 2011-08-09 Kirill Yukhin <kirill.yukhin@intel.com>
4968 * config/i386/i386.c: Remove traling spaces.
4969 * config/i386/sse.md: Likewise.
4970 (*fma_fmadd_<mode>): Fix insn alternative 1 mnemonic.
4971 (*fma_fmsub_<mode>): Likewise.
4972 (*fma_fnmadd_<mode>): Likewise.
4973 (*fma_fnmsub_<mode>): Likewise.
4975 2011-08-09 Nick Clifton <nickc@redhat.com>
4977 * config/rx/rx.md: Disable extender peepholes at -O3.
4979 2011-08-09 Uros Bizjak <ubizjak@gmail.com>
4982 * config/i386/i386.md (reload_noff_load): New.
4983 (reload_noff_store): Ditto.
4984 * config/i386/i386.c (ix86_secondary_reload): Use
4985 CODE_FOR_reload_noff_load and CODE_FOR_reload_noff_store to handle
4986 double-word moves from/to non-offsetable addresses instead of
4987 generating XMM temporary.
4989 2011-08-09 Anatoly Sokolov <aesok@post.ru>
4991 * config/mmix/mmix.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P): Remove.
4993 2011-08-09 Ira Rosen <ira.rosen@linaro.org>
4995 PR tree-optimization/50014
4996 * tree-vect-loop.c (vectorizable_reduction): Get def type before
4997 calling vect_get_vec_def_for_stmt_copy ().
4999 2011-08-08 Vladimir Makarov <vmakarov@redhat.com>
5001 PR rtl-optimization/49990
5002 * ira-costs.c (print_allocno_costs, print_pseudo_costs): Don't
5003 ignore classes which can not change mode.
5004 (find_costs_and_classes): Ditto.
5006 2011-08-08 Richard Henderson <rth@redhat.com>
5009 * config/i386/i386.c (ix86_expand_prologue): Call
5010 for SEH target gen_prologue_use instead of gen_blockage
5013 2011-08-08 Martin Jambor <mjambor@suse.cz>
5016 * tree-sra.c (access_precludes_ipa_sra_p): Also check access
5019 2011-08-08 Diego Novillo <dnovillo@google.com>
5021 * Makefile.in (LTO_STREAMER_H): Add DIAGNOSTIC_H.
5022 (DATA_STREAMER_H): New.
5023 (GIMPLE_STREAMER_H): New.
5024 (TREE_STREAMER_H): New.
5025 (STREAMER_HOOKS_H): New.
5026 (OBJS): Add data-streamer.o, data-streamer-in.o, data-streamer-out.o,
5027 gimple-streamer-in.o, gimple-streamer-out.o, streamer-hooks.o,
5028 tree-streamer.o, tree-streamer-in.o and tree-streamer-out.o.
5029 (data-streamer.o): New.
5030 (data-streamer-in.o): New.
5031 (data-streamer-out.o): New.
5032 (gimple-streamer-in.o): New.
5033 (gimple-streamer-out.o): New.
5034 (streamer-hooks.o): New.
5035 (tree-streamer.o): New.
5036 (tree-streamer-in.o): New.
5037 (tree-streamer-out.o): New.
5038 (lto-cgraph.o): Add dependency on DATA_STREAMER_H and TREE_STREAMER_H.
5039 (lto-streamer-in.o): Add dependency on DATA_STREAMER_H,
5040 GIMPLE_STREAMER_H and TREE_STREAMER_H.
5041 (lto-streamer-out.o): Add dependency on DATA_STREAMER_H,
5042 GIMPLE_STREAMER_H and TREE_STREAMER_H.
5043 (lto-streamer.o): Add dependency on STREAMER_HOOKS_H.
5044 (ipa-prop.o): Add dependency on DATA_STREAMER_H and TREE_STREAMER_H.
5045 (ipa-inline-analysis.o): Likewise.
5046 (ipa-pure-const.o): Likewise.
5047 * data-streamer-in.c: New.
5048 * data-streamer-out.c: New.
5049 * data-streamer.c: New.
5050 * data-streamer.h: New.
5051 * gimple-streamer-in.c: New.
5052 * gimple-streamer-out.c: New.
5053 * gimple-streamer.h: New.
5054 * ipa-inline-analysis.c: Include data-streamer.h.
5055 * ipa-prop.c: Include data-streamer.h.
5056 * ipa-pure-const.c: Include data-streamer.h.
5057 * lto-cgraph.c: Include data-streamer.h.
5058 * lto-section-in.c (lto_input_uleb128): Move to data-streamer-in.c.
5059 (lto_input_widest_uint_uleb128): Likewise.
5060 (lto_input_sleb128): Likewise.
5061 (bp_unpack_var_len_unsigned): Likewise.
5062 (bp_unpack_var_len_int): Likewise.
5063 * lto-section-out.c (lto_output_uleb128_stream): Move to
5064 data-streamer-out.c.
5065 (lto_output_widest_uint_uleb128_stream): Likewise.
5066 (lto_output_sleb128_stream): Likewise.
5067 (bp_pack_var_len_unsigned): Likewise.
5068 (bp_pack_var_len_int): Likewise.
5069 * lto-streamer-in.c: Include data-streamer.h and gimple-streamer.h.
5070 (struct string_slot): Remove. Update all users.
5071 (lto_tag_check_set): Make extern.
5072 (lto_tag_check_range): Move to lto-streamer.h.
5073 (lto_tag_check): Likewise.
5074 (hash_string_slot_node): Remove. Update all users.
5075 (eq_string_slot_node): Remove. Update all users.
5076 (string_for_index): Move to data-streamer-in.c
5077 (input_string_internal): Likewise.
5078 (input_string_cst): Move to tree-streamer-in.c.
5079 (input_identifier): Likewise.
5080 (lto_input_string): Move to data-streamer-in.c
5081 (input_record_start): Move to data-streamer.h
5082 (canon_file_name): Use new definition of struct string_slot
5083 from data-streamer.h. Set S_SLOT.LEN.
5084 (lto_input_location): Make extern.
5085 (lto_input_chain): Move to tree-streamer-in.c.
5086 (lto_init_eh): Make extern.
5087 (input_phi): Move to gimple-streamer-in.c.
5088 (input_gimple_stmt): Likewise.
5089 (input_bb): Likewise.
5090 (unpack_ts_base_value_fields): Move to tree-streamer-in.c.
5091 (unpack_ts_real_cst_value_fields): Likewise.
5092 (unpack_ts_fixed_cst_value_fields): Likewise.
5093 (unpack_ts_decl_common_value_fields): Likewise.
5094 (unpack_ts_decl_wrtl_value_fields): Likewise.
5095 (unpack_ts_decl_with_vis_value_fields): Likewise.
5096 (unpack_ts_function_decl_value_fields): Likewise.
5097 (unpack_ts_type_common_value_fields): Likewise.
5098 (unpack_ts_block_value_fields): Likewise.
5099 (unpack_ts_translation_unit_decl_value_fields): Likewise.
5100 (unpack_value_fields): Likewise.
5101 (lto_materialize_tree): Likewise.
5102 (lto_input_ts_common_tree_pointers): Likewise.
5103 (lto_input_ts_vector_tree_pointers): Likewise.
5104 (lto_input_ts_complex_tree_pointers): Likewise.
5105 (lto_input_ts_decl_minimal_tree_pointers): Likewise.
5106 (lto_input_ts_decl_common_tree_pointers): Likewise.
5107 (lto_input_ts_decl_non_common_tree_pointers): Likewise.
5108 (lto_input_ts_decl_with_vis_tree_pointers): Likewise.
5109 (lto_input_ts_field_decl_tree_pointers): Likewise.
5110 (lto_input_ts_function_decl_tree_pointers): Likewise.
5111 (lto_input_ts_type_common_tree_pointers): Likewise.
5112 (lto_input_ts_type_non_common_tree_pointers): Likewise.
5113 (lto_input_ts_list_tree_pointers): Likewise.
5114 (lto_input_ts_vec_tree_pointers): Likewise.
5115 (lto_input_ts_exp_tree_pointers): Likewise.
5116 (lto_input_ts_block_tree_pointers): Likewise.
5117 (lto_input_ts_binfo_tree_pointers): Likewise.
5118 (lto_input_ts_constructor_tree_pointers): Likewise.
5119 (lto_input_ts_target_option): Likewise.
5120 (lto_input_ts_translation_unit_decl_tree_pointers): Likewise.
5121 (lto_input_tree_pointers): Likewise.
5122 (lto_get_pickled_tree): Likewise.
5123 (lto_get_builtin_tree): Likewise.
5124 (lto_read_tree): Likewise.
5125 (lto_input_integer_cst): Likewise.
5126 (lto_input_tree): Likewise.
5127 * lto-streamer-out.c: Include data-streamer.h,
5128 gimple-streamer.h and streamer-hooks.h.
5129 (struct string_slot): Move to data-streamer.h.
5130 (hash_string_slot_node): Likewise.
5131 (eq_string_slot_node): Likewise.
5132 (lto_string_index): Move to data-streamer-out.c.
5133 (lto_output_string_with_length): Likewise.
5134 (lto_output_string): Likewise.
5135 (output_string_cst): Move to tree-streamer-out.c.
5136 (output_identifier): Likewise.
5137 (output_zero): Move to data-streamer-out.c
5138 (output_uleb128): Likewise.
5139 (output_sleb128): Likewise.
5140 (output_record_start): Move to data-streamer.h
5141 (pack_ts_base_value_fields): Move to tree-streamer-out.c.
5142 (pack_ts_real_cst_value_fields): Likewise.
5143 (pack_ts_fixed_cst_value_fields): Likewise.
5144 (pack_ts_decl_common_value_fields): Likewise.
5145 (pack_ts_decl_wrtl_value_fields): Likewise.
5146 (pack_ts_decl_with_vis_value_fields): Likewise.
5147 (pack_ts_function_decl_value_fields): Likewise.
5148 (pack_ts_type_common_value_fields): Likewise.
5149 (pack_ts_block_value_fields): Likewise.
5150 (pack_ts_translation_unit_decl_value_fields): Likewise.
5151 (pack_value_fields): Likewise.
5152 (lto_output_chain): Likewise.
5153 (lto_output_ts_common_tree_pointers): Likewise.
5154 (lto_output_ts_vector_tree_pointers): Likewise.
5155 (lto_output_ts_complex_tree_pointers): Likewise.
5156 (lto_output_ts_decl_minimal_tree_pointers): Likewise.
5157 (lto_output_ts_decl_common_tree_pointers): Likewise.
5158 (lto_output_ts_decl_non_common_tree_pointers): Likewise.
5159 (lto_output_ts_decl_with_vis_tree_pointers): Likewise.
5160 (lto_output_ts_field_decl_tree_pointers): Likewise.
5161 (lto_output_ts_function_decl_tree_pointers): Likewise.
5162 (lto_output_ts_type_common_tree_pointers): Likewise.
5163 (lto_output_ts_type_non_common_tree_pointers): Likewise.
5164 (lto_output_ts_list_tree_pointers): Likewise.
5165 (lto_output_ts_vec_tree_pointers): Likewise.
5166 (lto_output_ts_exp_tree_pointers): Likewise.
5167 (lto_output_ts_block_tree_pointers): Likewise.
5168 (lto_output_ts_binfo_tree_pointers): Likewise.
5169 (lto_output_ts_constructor_tree_pointers): Likewise.
5170 (lto_output_ts_target_option): Likewise.
5171 (lto_output_ts_translation_unit_decl_tree_pointers): Likewise.
5172 (lto_output_tree_pointers): Likewise.
5173 (lto_output_tree_header): Likewise.
5174 (lto_output_builtin_tree): Likewise.
5175 (lto_write_tree): Likewise.
5176 (lto_output_integer_cst): Likewise.
5177 (lto_output_tree): Likewise.
5178 (output_phi): Move to gimple-streamer-out.c.
5179 (output_gimple_stmt): Likewise.
5180 (output_bb): Likewise.
5181 * lto-streamer.c: Include tree-streamer.h and streamer-hooks.h.
5182 (streamer_hooks): Move to streamer-hooks.c.
5183 (check_handled_ts_structures): Move to tree-streamer.c
5184 (lto_streamer_cache_add_to_node_array): Likewise.
5185 (lto_streamer_cache_insert_1): Likewise.
5186 (lto_streamer_cache_insert): Likewise.
5187 (lto_streamer_cache_insert_at): Likewise.
5188 (lto_streamer_cache_append): Likewise.
5189 (lto_streamer_cache_lookup): Likewise.
5190 (lto_streamer_cache_get): Likewise.
5191 (lto_record_common_node): Likewise.
5192 (lto_preload_common_nodes): Likewise.
5193 (lto_streamer_cache_create): Likewise.
5194 (lto_streamer_cache_delete): Likewise.
5195 (streamer_hooks_init): Move to streamer-hooks.c.
5196 * lto-streamer.h: Include diagnostic.h
5197 (struct output_block, struct lto_input_block,
5198 struct data_in, struct bitpack_d): Remove forward declarations.
5199 (struct bitpack_d): Move to data-streamer.h.
5200 (struct lto_streamer_cache_d): Move to tree-streamer.h.
5201 (struct streamer_hooks): Move to streamer-hooks.h.
5202 (bp_pack_var_len_unsigned): Move to data-streamer.h.
5203 (bp_pack_var_len_int): Likewise.
5204 (bp_unpack_var_len_unsigned): Likewise.
5205 (bp_unpack_var_len_int): Likewise.
5206 (lto_input_location): Declare.
5207 (lto_tag_check_set): Declare.
5208 (lto_init_eh): Declare.
5209 (lto_output_tree_ref): Declare.
5210 (lto_output_location): Declare.
5211 (bitpack_create): Move to data-streamer.h.
5212 (bp_pack_value): Likewise.
5213 (lto_output_bitpack): Likewise.
5214 (lto_input_bitpack): Likewise.
5215 (bp_unpack_value): Likewise.
5216 (lto_output_1_stream): Likewise.
5217 (lto_input_1_unsigned): Likewise.
5218 (lto_output_int_in_range): Likewise.
5219 (lto_input_int_in_range): Likewise.
5220 (bp_pack_int_in_range): Likewise.
5221 (bp_unpack_int_in_range): Likewise.
5222 (lto_output_enum): Likewise.
5223 (lto_input_enum): Likewise.
5224 (bp_pack_enum): Likewise.
5225 (bp_unpack_enum): Likewise.
5226 * streamer-hooks.c: New.
5227 * streamer-hooks.h: New.
5228 * tree-streamer-in.c: New.
5229 * tree-streamer-out.c: New.
5230 * tree-streamer.c: New.
5231 * tree-streamer.h: New.
5233 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5235 * gthr-posix95.h: Remove.
5236 * gthr.h [_PTHREADS95]: Remove.
5237 * configure.ac (enable_threads): Remove posix95.
5238 * configure: Regenerate.
5239 * doc/install.texi (Configuration, --enable-threads): Remove posix95.
5241 2011-08-08 Uros Bizjak <ubizjak@gmail.com>
5244 * config/i386/i386.c (ix86_decompose_address): Allow zero-extended
5246 (ix86_print_operand_address): Handle zero-extended addresses.
5247 (memory_address_length): Add length of addr32 prefix for
5248 zero-extended addresses.
5249 (ix86_secondary_reload): Handle moves to/from double-word general
5250 registers from/to zero-extended addresses.
5251 * config/i386/predicates.md (lea_address_operand): Reject
5252 zero-extended operands.
5254 2011-08-08 H.J. Lu <hongjiu.lu@intel.com>
5257 * config.gcc (libgcc_tm_file): Add i386/value-unwind.h for Linux/x86.
5259 * system.h (REG_VALUE_IN_UNWIND_CONTEXT): Poisoned.
5260 (ASSUME_EXTENDED_UNWIND_CONTEXT): Likewise.
5262 * unwind-dw2.c (ASSUME_EXTENDED_UNWIND_CONTEXT): New.
5263 (_Unwind_Context_Reg_Val): Likewise.
5264 (_Unwind_Get_Unwind_Word): Likewise.
5265 (_Unwind_Get_Unwind_Context_Reg_Val): Likewise.
5266 (_Unwind_Context): Use _Unwind_Context_Reg_Val on the reg field.
5267 (_Unwind_IsExtendedContext): Check ASSUME_EXTENDED_UNWIND_CONTEXT
5268 for EXTENDED_CONTEXT_BIT.
5269 (__frame_state_for): Likewise.
5270 (uw_init_context_1): Likewise.
5271 (_Unwind_GetGR): Updated.
5272 (_Unwind_SetGR): Likewise.
5273 (_Unwind_GetGRPtr): Likewise.
5274 (_Unwind_SetGRPtr): Likewise.
5275 (_Unwind_SetGRValue): Likewise.
5276 (_Unwind_GRByValue): Likewise.
5277 (uw_install_context_1): Likewise.
5279 * doc/tm.texi.in: Document REG_VALUE_IN_UNWIND_CONTEXT and
5280 ASSUME_EXTENDED_UNWIND_CONTEXT.
5281 * doc/tm.texi: Regenerated.
5283 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5285 * Makefile.in (gengtype$(exeext)): Add $(LDFLAGS).
5287 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5289 * doc/invoke.texi (DEC Alpha Options, -mcpu): native support isn't
5291 (DEC Alpha Options, -mtune): Likewise.
5292 (MIPS Options, -march): native is supported on IRIX.
5294 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5296 * config/sparc/driver-sparc.c: New file.
5297 * config/sparc/x-sparc: New file.
5298 * config.host: Use driver-sparc.o, sparc/x-sparc on sparc*-*-solaris2*.
5299 * config/sparc/sparc.opt (native): New value for enum processor_type.
5300 * config/sparc/sparc-opts.h (PROCESSOR_NATIVE): Declare.
5301 * config/sparc/sparc.c (sparc_option_override): Abort if
5302 PROCESSOR_NATIVE gets here.
5303 * config/sparc/sol2.h [__sparc__] (host_detect_local_cpu): Declare.
5304 (EXTRA_SPEC_FUNCTIONS, MCPU_MTUNE_NATIVE_SPECS,
5305 DRIVER_SELF_SPECS): Define.
5306 * doc/invoke.texi (SPARC Options, -mcpu): Document native.
5307 (SPARC Options, -mtune): Likewise.
5308 * configure.ac (EXTRA_GCC_LIBS): Check for libkstat.
5310 * configure: Regenerate.
5311 * Makefile.in (EXTRA_GCC_LIBS): Set.
5312 (xgcc$(exeext)): Add $(EXTRA_GCC_LIBS).
5313 (cpp$(exeext)): Likewise.
5315 2011-08-08 Richard Guenther <rguenther@suse.de>
5317 * tree-vrp.c (extract_range_from_unary_expr_1): New function,
5319 (extract_range_from_unary_expr): ... here. Handle BIT_NOT_EXPR
5322 2011-08-08 Mikael Pettersson <mikpe@it.uu.se>
5324 PR tree-optimization/50005
5325 * ipa-inline-analysis (remap_predicate): Add cast to
5326 silence signed/unsigned comparison warning.
5328 2011-08-08 Richard Sandiford <richard.sandiford@linaro.org>
5330 * modulo-sched.c (get_sched_window): Use a table for the debug output.
5331 Print the current ii.
5332 (sms_schedule_by_order): Reduce whitespace in dump line.
5334 2011-08-08 Richard Sandiford <richard.sandiford@linaro.org>
5336 * modulo-sched.c (get_sched_window): Use just one loop for predecessors
5337 and one loop for successors. Fix upper bound of memory range.
5339 2011-08-06 Uros Bizjak <ubizjak@gmail.com>
5342 * config/alpha/alpha.c (alpha_instantiate_decls): New function.
5343 (TARGET_INSTANTIATE_DECLS): New define.
5345 2011-08-06 Paolo Bonzini <bonzini@gnu.org>
5346 Mikael Morin <mikael.morin@sfr.fr>
5348 * Makefile.in (INCLUDES_FOR_TARGET): New.
5349 (LIBGCC2_CFLAGS): Use it.
5350 (CRTSTUFF_CFLAGS): Use it instead of INCLUDES.
5352 2011-08-06 Uros Bizjak <ubizjak@gmail.com>
5354 * config/i386/i386.c (ix86_compute_frame_layout): Simplify
5355 frame->save_regs_using_mov calculation.
5357 2011-08-06 Uros Bizjak <ubizjak@gmail.com>
5359 * config/i386/i386.md (ssemodesuffix): Remove V8SI mode.
5360 * config/i386/sse.md (castmode): New mode attribute.
5361 (avx_<castmode><avxsizesuffix>_<castmode>): Rename from
5362 avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>.
5364 2011-08-05 Jan Hubicka <jh@suse.cz>
5367 * ipa-inline-analysis.c (remap_predicate): Add bounds check.
5369 2011-08-05 Jan Hubicka <jh@suse.cz>
5372 * tree-emultls.c (new_emutls_decl):Add alias_of parameter;
5374 (create_emultls_var):New function.
5375 (ipa_lower_emutls): Handle aliases correctly.
5377 2011-08-05 Jan Hubicka <jh@suse.cz>
5380 * ipa-inline.c (recursive_inlining): Look through aliases.
5382 2011-08-05 Jason Merrill <jason@redhat.com>
5384 * config/i386/i386.c (setup_incoming_varargs_ms_64): Move
5385 declarations to beginning of function.
5387 2011-08-05 Bernd Schmidt <bernds@codesourcery.com>
5389 PR rtl-optimization/49900
5390 * sched-ebb.c (add_deps_for_risky_insns): Also add dependencies to
5391 ensure basic blocks stay in the same order.
5393 2011-08-05 Aldy Hernandez <aldyh@redhat.com>
5395 * config/s390/s390.c (s390_expand_cs_hqi): Add new arguments to
5397 (s390_expand_atomic): Same.
5399 2011-08-05 Richard Henderson <rth@redhat.com>
5402 * dwarf2cfi.c (scan_insn_after): Split out of ...
5403 (scan_trace): ... here. Correctly place notes wrt sequences.
5405 2011-08-05 Kaz Kojima <kkojima@gcc.gnu.org>
5406 Richard Henderson <rth@redhat.com>
5409 * expr.c (fixup_args_size_notes): Look through no-op moves.
5411 2011-08-05 Uros Bizjak <ubizjak@gmail.com>
5413 * config/i386/i386.md (*push<mode>2): Use "o" constraint instead
5414 of "m" for operand 0. Add type and mode attribute.
5415 (*pushxf_nointeger"): Use "<" constraint for operand 0.
5416 (*pushdf_rex64): New pattern, split out of *pushdf. Use "m"
5417 constraint instead of "o" for opreand 1.
5418 (*pushdf): Disable for TARGET_64BIT. Correct mode attribute.
5419 (*movdi_internal_rex64): Use "!o" constraint instead of "!m" for
5420 operand 0, alternative 4.
5421 (*movdf_internal_rex64): Ditto for operand 0, alernative 6.
5423 2011-08-05 Uros Bizjak <ubizjak@gmail.com>
5425 * config/i386/predicates.md (lea_address_operand): Rename from
5426 no_seg_address_operand.
5427 * config/i386/i386.md (*lea_1): Update operand 1 predicate for rename.
5428 (*lea_1_zext): Ditto.
5430 (*lea_2_zext): Ditto.
5432 2011-08-05 Uros Bizjak <ubizjak@gmail.com>
5434 * config/i386/i386.c (ix86_print_operand_address): Handle SUBREGs of
5435 parts.base and parts.index.
5436 * config/i386/predicates.md (aligned_operand): Ditto.
5437 (cmpxchg8b_pic_memory_operand): Ditto.
5439 2011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5441 * config/soft-fp: Move to ../libgcc.
5442 * Makefile.in (SFP_MACHINE): Remove.
5443 (libgcc-support): Remove $(SFP_MACHINE) dependency.
5444 * config/arm/sfp-machine.h: Move to ../libgcc/config/arm.
5445 * config/arm/t-arm-softfp: Move to
5446 ../libgcc/config/arm/t-softfp.
5447 * config/c6x/sfp-machine.h: Move to ../libgcc/config/c6x.
5448 * config/c6x/t-c6x-softfp: Remove.
5449 * config/i386/sfp-machine.h: Move to ../libgcc/config/i386.
5450 * config/i386/t-fprules-softfp: Move to
5451 ../libgcc/config/t-softfp-tf.
5452 * config/ia64/sfp-machine.h: Move to ../libgcc/config/ia64.
5453 * config/ia64/t-fprules-softfp: Remove.
5454 * config/lm32/sfp-machine.h: Move to ../libgcc/config/lm32.
5455 * config/lm32/t-fprules-softfp: Remove.
5456 * config/moxie/sfp-machine.h: Remove.
5457 * config/moxie/t-moxie-softfp: Remove.
5458 * config/rs6000/darwin-ldouble-format: Move to
5459 ../libgcc/config/rs6000/ibm-ldouble-format.
5460 * config/rs6000/darwin-ldouble.c: Move to
5461 ../libgcc/config/rs6000/ibm-ldouble.c
5462 * config/rs6000/libgcc-ppc-glibc.ver: Move to ../libgcc/config/rs6000.
5463 * config/rs6000/libgcc-ppc64.ver: Likewise.
5464 * config/rs6000/sfp-machine.h: Likewise.
5465 * config/rs6000/t-aix43 (SHLIB_MAPFILES): Remove
5466 $(srcdir)/config/rs6000/libgcc-ppc64.ver.
5467 (LIB2FUNCS_EXTRA): Remove.
5468 (TARGET_LIBGCC2_CFLAGS): Remove.
5469 * config/rs6000/t-aix52: Likewise
5470 * config/rs6000/t-darwin (LIB2FUNCS_EXTRA): Remove
5471 $(srcdir)/config/rs6000/darwin-ldouble.c.
5472 (SHLIB_MAPFILES): Remove.
5473 * config/rs6000/t-darwin64 (LIB2FUNCS_EXTRA): Remove
5474 $(srcdir)/config/rs6000/darwin-ldouble.c.
5475 * config/rs6000/t-fprules-softfp: Move to
5476 ../libgcc/config/t-softfp-sfdf.
5477 * config/rs6000/t-freebsd: Move to ../libgcc/config/rs6000.
5478 * config/rs6000/t-linux64 (softfp_wrap_start, softfp_wrap_end): Remove.
5479 * config/rs6000/t-ppccomm (LIB2FUNCS_EXTRA): Remove
5480 $(srcdir)/config/rs6000/darwin-ldouble.c.
5481 * config/score/sfp-machine.h: Move to ../libgcc/config/score.
5482 * config/score/t-score-softfp: Remove.
5483 * config.gcc (arm*-*-linux*): Remove arm/t-arm-softfp,
5484 soft-fp/t-softfp from tmake_file.
5485 (arm*-*-uclinux*): Likewise.
5486 (arm*-*-ecos-elf): Likewise.
5487 (arm*-*-eabi*, arm*-*-symbianelf*): Likewise.
5488 (arm*-*-rtems*): Likewise.
5489 (arm*-*-elf): Likewise.
5490 (moxie-*-elf): Remove moxie/t-moxie-softfp, soft-fp/t-softfp from
5492 (moxie-*-uclinux*): Likewise.
5493 (moxie-*-rtems*): Likewise.
5494 (lm32-*-elf*): Remove lm32/t-fprules-softfp, soft-fp/t-softfp from
5496 (lm32-*-rtems*): Likewise.
5497 (lm32-*-uclinux*): Likewise.
5498 (powerpc-*-freebsd*): Remove rs6000/t-freebsd,
5499 rs6000/t-fprules-softfp, soft-fp/t-softfp from tmake_file.
5500 (powerpc-*-linux*, powerpc64-*-linux*): Remove
5501 rs6000/t-fprules-softfp, soft-fp/t-softfp from tmake_file.
5502 (score-*-elf): Remove score/t-score-softfp, soft-fp/t-softfp from
5504 (tic6x-*-elf): Remove c6x/t-c6x-softfp, soft-fp/t-softfp from
5506 (tic6x-*-uclinux): Likewise.
5507 (i[34567]86-*-darwin*, x86_64-*-darwin*): Remove i386/t-fprules-softfp,
5508 soft-fp/t-softfp from tmake_file.
5509 (i[34567]86-*-linux*, x86_64-*-linux*, i[34567]86-*-kfreebsd*-gnu)
5510 (x86_64-*-kfreebsd*-gnu, i[34567]86-*-gnu*): Likewise.
5511 (i[34567]86-*-solaris2*, x86_64-*-solaris2.1[0-9]*): Likewise.
5512 (i[34567]86-*-cygwin*, i[34567]86-*-mingw*, x86_64-*-mingw*): Likewise.
5513 (i[34567]86-*-freebsd*, x86_64-*-freebsd*): Likewise.
5515 2011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5517 * Makefile.in (FPBIT_FUNCS, DPBIT_FUNCS, TPBIT_FUNCS): Remove.
5518 (libgcc-support): Remove $(FPBIT), $(DPBIT), $(TPBIT) dependencies.
5519 (libgcc.mvars): Remove FPBIT, FPBIT_FUNCS, DPBIT, DPBIT_FUNCS,
5521 * config/fp-bit.c, config/fp-bit.h: Move to ../libgcc.
5522 * config/arm/t-strongarm-elf (FPBIT, DPBIT, dp-bit.c, fp-bit.c):
5524 * config/arm/t-vxworks: Likewise.
5525 * config/arm/t-wince-pe: Likewise.
5526 * config/avr/t-avr (fp-bit.c, FPBIT): Remove.
5527 * config/bfin/t-bfin (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
5528 * config/bfin/t-bfin-elf: Likewise.
5529 * config/bfin/t-bfin-linux: Likewise.
5530 * config/bfin/t-bfin-uclinux: Likewise.
5531 * config/cris/t-cris (FPBIT, DPBIT, dp-bit.c, tmplibgcc_fp_bit.c):
5533 * config/fr30/t-fr30: Likewise.
5534 * config/frv/t-frv: Likewise.
5535 * config/h8300/t-h8300 (FPBIT, fp-bit.c): Remove.
5536 * config/iq2000/t-iq2000 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
5537 * config/m32c/t-m32c: Likewise.
5538 * config/m32r/t-linux: (LIB2FUNCS_EXTRA, fp-bit.c, dp-bit.c): Remove.
5539 * config/m32r/t-m32r (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
5540 * config/mcore/t-mcore: Likewise.
5541 * config/mep/t-mep: Likewise.
5542 * config/microblaze/t-microblaze: Likewise.
5543 * config/mips/t-linux64 (TPBIT, tp-bit.c): Remove.
5544 * config/mips/t-mips (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
5545 * config/mips/t-sdemtk (FPBIT, DPBIT): Remove.
5546 * config/mips/t-sr71k (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
5547 * config/mn10300/t-linux: Remove.
5548 * config/mn10300/t-mn10300 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
5549 * config/pdp11/t-pdp11: Likewise.
5550 * config/picochip/t-picochip (FPBIT, fp-bit.c): Remove.
5551 * config/rs6000/ppc64-fp.c: Move to ../libgcc/config/rs6000.
5552 * config/rs6000/t-aix43 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
5553 (LIB2FUNCS_EXTRA): Remove $(srcdir)/config/rs6000/ppc64-fp.c.
5554 * config/rs6000/t-aix52: Likewise.
5555 * config/rs6000/t-darwin (LIB2FUNCS_EXTRA): Remove
5556 $(srcdir)/config/rs6000/ppc64-fp.c.
5557 * config/rs6000/t-fprules-fpbit: Remove.
5558 * config/rs6000/t-linux64 (LIB2FUNCS_EXTRA): Remove.
5559 * config/rs6000/t-lynx (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
5560 * config/sh/t-netbsd (FPBIT, DPBIT): Remove.
5561 * config/sh/t-sh (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
5562 * config/sparc/t-elf: Likewise.
5563 * config/sparc/t-leon: Likewise.
5564 * config/sparc/t-leon3: Likewise.
5565 * config/spu/t-spu-elf: Likewise.
5566 (DPBIT_FUNCS): Remove.
5567 * config/stormy16/t-stormy16 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
5568 * config/v850/t-v850: Likewise.
5569 * config.gcc (avr-*-rtems*): Add avr/avr-lib.h to libgcc_tm_file.
5570 (avr-*-*): Likewise.
5571 (h8300-*-rtems*): Set libgcc_tm_file.
5572 (h8300-*-elf*): Likewise.
5573 (powerpc-*-eabisimaltivec*): Remove rs6000/t-fprules-fpbit from
5575 (powerpc-*-eabisim*): Likewise.
5576 (powerpc-*-elf*): Likewise.
5577 (powerpc-*-eabialtivec*): Likewise.
5578 (powerpc-xilinx-eabi*): Likewise.
5579 (powerpc-*-eabi*): Likewise.
5580 (powerpc-*-rtems*): Likewise.
5581 (powerpc-wrs-vxworks, powerpc-wrs-vxworksae): Likewise.
5582 (powerpcle-*-elf*): Likewise.
5583 (powerpcle-*-eabisim*): Likewise.
5584 (powerpcle-*-eabi*): Likewise.
5585 (rx-*-elf*): Add rx/rx-lib.h to libgcc_tm_file.
5586 (am33_2.0-*-linux*): Remove mn10300/t-linux from tmake_file.
5587 * doc/fragments.texi (Target Fragment, Floating Point Emulation):
5590 2011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5592 * Makefile.in (UNWIND_H): Remove.
5593 (LIB2ADDEH, LIB2ADDEHSTATIC, LIB2ADDEHSHARED): Move to
5594 ../libgcc/Makefile.in.
5595 (LIBUNWIND, SHLIBUNWIND_LINK, SHLIBUNWIND_INSTALL): Likewise.
5596 (LIBUNWINDDEP): Remove.
5597 (libgcc-support): Remove LIB2ADDEH, $(srcdir)/emutls.c dependencies.
5598 (libgcc.mvars): Remove LIB2ADDEH, LIB2ADDEHSTATIC, LIB2ADDEHSHARED,
5599 LIBUNWIND, SHLIBUNWIND_LINK, SHLIBUNWIND_INSTALL.
5600 (stmp-int-hdrs): Remove $(UNWIND_H) dependency.
5601 Don't copy $(UNWIND_H).
5602 * config.gcc (ia64*-*-linux*): Remove with_system_libunwind handling.
5603 * configure.ac (GCC_CHECK_UNWIND_GETIPINFO): Remove.
5604 * aclocal.m4: Regenerate.
5605 * configure: Regenerate.
5606 * emutls.c, unwind-c.c, unwind-compat.c, unwind-compat.h,
5607 unwind-dw2-fde-compat.c, unwind-dw2-fde-glibc.c, unwind-dw2-fde.c,
5608 unwind-dw2-fde.h, unwind-dw2.c, unwind-dw2.h, unwind-generic.h,
5609 unwind-pe.h, unwind-sjlj.c, unwind.inc: Move to ../libgcc.
5610 * unwind-dw2-fde-darwin.c: Move to ../libgcc/config.
5611 * config/arm/libunwind.S, config/arm/pr-support.c,
5612 config/arm/unwind-arm.c, config/arm/unwind-arm.h: Move to
5613 ../libgcc/config/arm.
5614 * config/arm/t-bpabi (UNWIND_H, LIB2ADDEH): Remove.
5615 * config/arm/t-symbian (UNWIND_H, LIB2ADDEH): Remove.
5616 * config/frv/t-frv ($(T)frvbegin$(objext)): Use
5617 $(srcdir)/../libgcc to refer to unwind-dw2-fde.h.
5618 ($(T)frvend$(objext)): Likewise.
5619 * config/ia64/t-glibc (LIB2ADDEH): Remove.
5620 * config/ia64/t-glibc-libunwind: Move to ../libgcc/config/ia64.
5621 * config/ia64/fde-glibc.c, config/ia64/fde-vms.c,
5622 config/ia64/unwind-ia64.c, config/ia64/unwind-ia64.h: Move to
5623 ../libgcc/config/ia64.
5624 * config/ia64/t-hpux (LIB2ADDEH): Remove.
5625 * config/ia64/t-ia64 (LIB2ADDEH): Remove.
5626 * config/ia64/t-vms (LIB2ADDEH): Remove.
5627 * config/ia64/vms.h (UNW_IVMS_MODE,
5628 MD_UNW_COMPATIBLE_PERSONALITY_P): Remove.
5629 * config/picochip/t-picochip (LIB2ADDEH): Remove.
5630 * config/rs6000/aix.h (R_LR, MD_FROB_UPDATE_CONTEXT): Remove.
5631 * config/rs6000/t-darwin (LIB2ADDEH): Remove.
5632 * config/rs6000/darwin-fallback.c: Move to ../libgcc/config/rs6000.
5633 * config/sh/t-sh ($(T)unwind-dw2-Os-4-200.o): Use
5634 $(srcdir)/../libgcc to refer to unwinder sources.
5635 * config/spu/t-spu-elf (LIB2ADDEH): Remove.
5636 * config/t-darwin (LIB2ADDEH): Remove.
5637 * config/t-freebsd (LIB2ADDEH): Remove.
5638 * config/t-libunwind (LIB2ADDEH, LIB2ADDEHSTATIC): Remove.
5639 * config/t-libunwind-elf: Move to ../libgcc/config.
5640 * config/t-linux (LIB2ADDEH): Remove.
5641 * config/t-sol2 (LIB2ADDEH): Remove.
5642 * config/xtensa/t-xtensa (LIB2ADDEH): Remove.
5643 * system.h (MD_FROB_UPDATE_CONTEXT): Poison.
5645 2011-08-05 H.J. Lu <hongjiu.lu@intel.com>
5647 * config/i386/i386.c (processor_alias_table): Add core-avx-i.
5649 * doc/invoke.texi: Document core-avx-i.
5651 2011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5653 * tsystem.h (CONST_CAST2, CONST_CAST): Define.
5655 2011-08-05 Ira Rosen <ira.rosen@linaro.org>
5657 * tree-vect-loop.c (vect_create_epilog_for_reduction): Use the
5658 result of multiple results reduction when extracting the final
5659 value using scalar code.
5661 2011-08-05 Richard Guenther <rguenther@suse.de>
5663 PR tree-optimization/49984
5664 * tree-vrp.c (extract_range_from_binary_expr_1): Handle BIT_XOR_EXPR.
5666 2011-08-05 Richard Guenther <rguenther@suse.de>
5668 * tree-vrp.c (zero_nonzero_bits_from_vr): Make sure to always
5669 return true for constant integer ranges.
5670 (extract_range_from_binary_expr_1): Simplify BIT_AND_EXPR and
5671 BIT_IOR_EXPR handling.
5673 2011-08-04 Kai Tietz <ktietz@redhat.com>
5675 * config/i386/i386.c (setup_incoming_varargs_ms_64): Set
5676 ix86_varargs_gpr_size and ix86_varargs_fpr_size to zero.
5678 2011-08-04 Ira Rosen <ira.rosen@linaro.org>
5680 * tree-vectorizer.h (struct _stmt_vec_info): Add new field for
5681 pattern def statement, and its access macro.
5682 (NUM_PATTERNS): Set to 5.
5683 * tree-vect-loop.c (vect_determine_vectorization_factor): Handle
5684 pattern def statement.
5685 (vect_transform_loop): Likewise.
5686 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Add new
5687 function vect_recog_over_widening_pattern ().
5688 (vect_operation_fits_smaller_type): New function.
5689 (vect_recog_over_widening_pattern, vect_mark_pattern_stmts):
5691 (vect_pattern_recog_1): Move the code that marks pattern
5692 statements to vect_mark_pattern_stmts (), and call it. Update
5694 * tree-vect-stmts.c (vect_supportable_shift): New function.
5695 (vect_analyze_stmt): Handle pattern def statement.
5696 (new_stmt_vec_info): Initialize pattern def statement.
5698 2011-08-04 Richard Henderson <rth@redhat.com>
5701 * config/i386/i386.c (ix86_expand_call): Don't create nested
5702 PARALLELs for TARGET_VZEROUPPER.
5703 (ix86_split_call_vzeroupper): Fix extraction of the original call.
5704 * config/i386/i386.md (*call_rex64_ms_sysv_vzeroupper): Don't
5705 recognize nested PARALLELs.
5706 (*call_pop_vzeroupper, *sibcall_pop_vzeroupper,
5707 *call_value_rex64_ms_sysv_vzeroupper, *call_value_pop_vzeroupper,
5708 *sibcall_value_pop_vzeroupper): Likewise.
5710 2011-08-04 Richard Henderson <rth@redhat.com>
5713 * calls.c (expand_call): Use fixup_args_size_notes for
5715 * expr.c (fixup_args_size_notes): Allow STACK_POINTER_REGNUM sets
5716 in non-standard modes.
5718 2011-08-04 Jakub Jelinek <jakub@redhat.com>
5720 * gcc.c (self_spec): New variable.
5721 (static_specs): Add self_spec.
5722 (main): Call do_self_spec on "self_spec" specs after reading
5723 user specs files. Move compare_debug handling right after that.
5725 2011-08-04 Richard Guenther <rguenther@suse.de>
5727 * tree-vrp.c (vrp_expr_computes_nonnegative): Remove.
5728 (value_range_nonnegative_p): New function.
5729 (ssa_name_nonnegative_p): Use it.
5730 (value_range_constant_singleton): New function.
5731 (op_with_constant_singleton_value_range): Use it.
5732 (extract_range_from_binary_expr_1): New function, split out from ...
5733 (extract_range_from_binary_expr): ... this. Remove fallback
5734 constant folding done here.
5736 2011-08-04 Richard Guenther <rguenther@suse.de>
5738 PR tree-optimization/49806
5739 * tree-vrp.c (op_with_boolean_value_range_p): New function.
5740 (simplify_truth_ops_using_ranges): Simplify. Allow inserting
5741 a new statement for a final conversion to bool.
5743 2011-08-04 Romain Geissler <romain.geissler@gmail.com>
5745 * gengtype-state.c: Include "bconfig.h" if
5746 GENERATOR_FILE is defined, "config.h" otherwise.
5747 * gengtype.c: Likewise.
5748 * gengtype-lex.l: Likewise.
5749 * gengtype-parse.c: Likewise.
5750 * Makefile.in (gengtype-lex.o-warn): New variable.
5751 (plugin_resourcesdir): Likewise.
5752 (plugin_bindir): Likewise.
5753 (plugin_includedir): Use $(plugin_resourcesdir) as prefix base.
5754 (MOSTLYCLEANFILES): Add gengtype$(exeext).
5755 (native): Depend on gengtype$(exeext) is $enable_plugin
5757 (gtype.state): Depend on s-gtype. Use temporary file.
5758 (gengtype-lex.o): New rule.
5759 (gengtype-parse.o): Likewise.
5760 (gengtype-state.o): Likewise.
5761 (gengtype$(exeext)): Likewise.
5762 (install-gengtype): Likewise.
5763 (gengtype.o): Likewise.
5764 (build/gengtype.o): Depend on version.h.
5765 (build/gengtype-state): Depend on double-int.h, version.h,
5766 $(HASHTAB_H), $(OBSTACK_H), $(XREGEX_H) and build/errors.o.
5767 (install-plugin): Depend on install-gengtype.
5769 2011-08-04 Jakub Jelinek <jakub@redhat.com>
5772 * tree.h (init_attributes): New prototype.
5773 * attribs.c (init_attributes): No longer static.
5775 2011-08-04 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
5777 * config/arm/arm.c (arm_set_fixed_optab_libfunc): Constify
5780 2011-08-03 David Li <davidxl@google.com>
5782 * tree-optimize.c (execute_fixup_cfg): Fix up entry
5783 outgoing edge counts after inlining.
5785 2011-08-03 David Li <davidxl@google.com>
5787 * profile.c (compute_branch_probabilities): Compute
5788 function frequency after profile annotation.
5790 2011-08-04 Alan Modra <amodra@gmail.com>
5792 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Simplify
5793 use_backchain_to_restore_sp initialisation.
5794 (rs6000_legitimate_offset_address_p): Simplify offset test.
5796 2011-08-03 Richard Henderson <rth@redhat.com>
5798 * config/spu/spu.md: Use define_c_enum instead of define_constants.
5799 (UNSPECV_BLOCKAGE, UNSPECV_LNOP, UNSPECV_SYNC): Rename from UNSPEC_*.
5802 2011-08-03 Richard Henderson <rth@redhat.com>
5805 * config/avr/avr.md: New splitter for REG_ARGS_SIZE 0.
5807 2011-08-03 Jakub Jelinek <jakub@redhat.com>
5809 PR tree-optimization/49948
5810 * gimple.c (walk_stmt_load_store_addr_ops): Walk CONSTRUCTOR elements.
5812 2011-08-03 Anatoly Sokolov <aesok@post.ru>
5814 * config/m32c/m32c.c (class_sizes): Remove.
5815 (reduce_class): Change arguments and return type to reg_class_t.
5816 Change type cc var to HARD_REG_SET. Change type best var to
5817 reg_class_t. Change type best_size var to unsigned int. Remove
5818 initialization class_sizes var. Use reg_class_size array instead
5819 of class_sizes. Use reg_class_contents array instead
5822 2011-08-03 Richard Guenther <rguenther@suse.de>
5825 * fold-const.c (fold_binary_loc): Only associate
5826 (+ (+ (* a b) c) (* d e)) as (+ (+ (* a b) (* d e)) c) if
5829 2011-08-03 Alan Modra <amodra@gmail.com>
5831 PR rtl-optimization/49941
5832 * jump.c (mark_jump_label): Comment.
5833 (mark_jump_label_1): Set JUMP_LABEL for return jumps.
5834 * emit-rtl.c (copy_rtx_if_shared_1, copy_insn_1): Leave RETURN shared.
5835 (mark_used_flags): Don't mark RETURN.
5837 2011-08-03 Richard Guenther <rguenther@suse.de>
5839 PR tree-optimization/49938
5840 * tree-scalar-evolution.c (interpret_loop_phi): Gracefully
5841 deal with a POLYNOMIAL_CHREC.
5843 2011-08-03 Revital Eres <revital.eres@linaro.org>
5845 * modulo-sched.c (calculate_stage_count,
5846 calculate_must_precede_follow, get_sched_window,
5847 try_scheduling_node_in_cycle, remove_node_from_ps): Add
5849 (update_node_sched_params, set_must_precede_follow, optimize_sc):
5851 (reset_sched_times): Call update_node_sched_params.
5852 (sms_schedule): Call optimize_sc.
5853 (get_sched_window): Change function arguments.
5854 (sms_schedule_by_order): Update call to get_sched_window.
5855 Call set_must_precede_follow.
5856 (calculate_stage_count): Add function argument.
5858 2011-08-02 Richard Henderson <rth@redhat.com>
5862 * reg-notes.def (REG_ARGS_SIZE): New.
5863 * calls.c (emit_call_1): Emit REG_ARGS_SIZE for call_pop.
5864 (expand_call): Add REG_ARGS_SIZE to emit_stack_restore.
5865 * cfgcleanup.c (old_insns_match_p): Don't allow cross-jumping to
5866 different stack levels.
5867 * combine-stack-adj.c (adjust_frame_related_expr): Remove.
5868 (maybe_move_args_size_note): New.
5869 (combine_stack_adjustments_for_block): Use it.
5870 * combine.c (distribute_notes): Place REG_ARGS_SIZE.
5871 * dwarf2cfi.c (dw_cfi_row_struct): Remove args_size member.
5872 (dw_trace_info): Add beg_true_args_size, end_true_args_size,
5873 beg_delay_args_size, end_delay_args_size, eh_head, args_size_undefined.
5875 (queued_args_size): Remove.
5876 (add_cfi_args_size): Assert size is non-negative.
5877 (stack_adjust_offset, dwarf2out_args_size): Remove.
5878 (dwarf2out_stack_adjust, dwarf2out_notice_stack_adjust): Remove.
5879 (notice_args_size, notice_eh_throw): New.
5880 (dwarf2out_frame_debug_def_cfa): Use cur_cfa.
5881 (dwarf2out_frame_debug_adjust_cfa): Likewise.
5882 (dwarf2out_frame_debug_cfa_offset): Likewise.
5883 (dwarf2out_frame_debug_expr): Likewise. Don't stack_adjust_offset.
5884 (dwarf2out_frame_debug): Don't handle non-frame-related-p insns.
5885 (change_cfi_row): Don't emit args_size.
5886 (maybe_record_trace_start_abnormal): Split out from ...
5887 (maybe_record_trace_start): Here. Set args_size_undefined.
5888 (create_trace_edges): Update to match.
5889 (scan_trace): Handle REG_ARGS_SIZE.
5890 (connect_traces): Connect args_size between EH insns.
5891 * emit-rtl.c (try_split): Handle REG_ARGS_SIZE.
5892 * explow.c (suppress_reg_args_size): New.
5893 (adjust_stack_1): Split out from ...
5894 (adjust_stack): ... here.
5895 (anti_adjust_stack): Use it.
5896 (allocate_dynamic_stack_space): Suppress REG_ARGS_SIZE.
5897 * expr.c (mem_autoinc_base): New.
5898 (fixup_args_size_notes): New.
5899 (emit_single_push_insn_1): Rename from emit_single_push_insn.
5900 (emit_single_push_insn): New. Generate REG_ARGS_SIZE.
5901 * recog.c (peep2_attempt): Handle REG_ARGS_SIZE.
5902 * reload1.c (reload_as_needed): Likewise.
5903 * rtl.h (fixup_args_size_notes): Declare.
5905 2011-08-02 Paolo Carlini <paolo.carlini@oracle.com>
5908 * fold-const.c (fold_plusminus_mult_expr): Use abs_hwi instead
5910 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Likewise.
5911 * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Likewise.
5913 2011-08-02 Richard Henderson <rth@redhat.com>
5915 * config/h8300/h8300.c (push, pop): Return the insn.
5916 (h8300_swap_into_er6): Generate correct unwind info.
5917 (h8300_swap_out_of_er6): Likewise.
5918 * dwarf2cfi.c (def_cfa_1): Clear cfa_cfi if we no longer have a
5919 complex cfa expression.
5920 (dwarf2out_frame_debug_def_cfa): Allow (plus (mem) (const_int)) too.
5922 2011-08-02 H.J. Lu <hongjiu.lu@intel.com>
5924 * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
5926 2011-08-02 Richard Henderson <rth@redhat.com>
5929 * config/h8300/h8300.c (h8300_move_ok): New.
5930 * config/h8300/h8300-protos.h: Declare it.
5931 * config/h8300/h8300.md (P): New mode iterator.
5932 (*movqi_h8300, *movqi_h8300hs, movqi): Use h8300_move_ok.
5933 (*movqi_h8sx, *movhi_h8300, *movhi_h8300hs, movhi): Likewise.
5934 (movsi, *movsi_h8300, *movsi_h8300hs): Likewise.
5935 (*pushqi1_h8300): Rename from pushqi1_h8300; use PRE_MODIFY.
5936 (*pushqi1_h8300hs_<P>): Macroize from pushqi1_h8300hs_advanced
5937 and pushqi1_h8300hs_normal; use PRE_MODIFY and
5938 register_no_sp_elim_operand.
5939 (*pushhi1_h8300hs_<P>): Similarly.
5940 (pushqi1, pushhi1, pushhi1_h8300): Remove.
5941 * config/h8300/predicates.md (register_no_sp_elim_operand): New.
5943 2011-08-02 Richard Henderson <rth@redhat.com>
5946 * config/avr/avr.md (push<MPUSH>1): Don't constrain the operand.
5948 2011-08-02 Jakub Jelinek <jakub@redhat.com>
5950 * c-parser.c (enum c_parser_prec): New enum, moved from within
5951 c_parser_binary_expression.
5952 (c_parser_binary_expression): Add PREC argument. Stop parsing
5953 if operator has lower or equal precedence than PREC.
5954 (c_parser_conditional_expression, c_parser_omp_for_loop): Adjust
5956 (c_parser_omp_atomic): Handle parsing OpenMP 3.1 atomics.
5957 Adjust c_finish_omp_atomic caller.
5958 (c_parser_omp_taskyield): New function.
5959 (c_parser_pragma): Handle PRAGMA_OMP_TASKYIELD.
5960 (c_parser_omp_clause_name): Handle final and mergeable clauses.
5961 (c_parser_omp_clause_final, c_parser_omp_clause_mergeable): New
5963 (c_parser_omp_all_clauses): Handle PRAGMA_OMP_CLAUSE_FINAL
5964 and PRAGMA_OMP_CLAUSE_MERGEABLE.
5965 (OMP_TASK_CLAUSE_MASK): Allow final and mergeable clauses.
5966 (c_parser_omp_clause_reduction): Handle min and max.
5967 * c-typeck.c (c_finish_omp_clauses): Don't complain about
5968 const qualified predetermined vars in firstprivate clause.
5969 andle OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
5970 Handle MIN_EXPR and MAX_EXPR.
5971 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_FINAL
5972 and OMP_CLAUSE_MERGEABLE.
5973 (dump_generic_node): Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD
5974 and OMP_ATOMIC_CAPTURE_NEW.
5975 * tree.c (omp_clause_num_ops): Add OMP_CLAUSE_FINAL and
5976 OMP_CLAUSE_MERGEABLE.
5977 (omp_clause_code_name): Likewise.
5978 (walk_tree_1): Handle OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
5979 * tree.h (enum omp_clause_code): Add OMP_CLAUSE_FINAL
5980 and OMP_CLAUSE_MERGEABLE.
5981 (OMP_CLAUSE_FINAL_EXPR): Define.
5982 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE_FINAL and
5983 OMP_CLAUSE_MERGEABLE.
5984 (expand_task_call): Likewise.
5985 (expand_omp_atomic_load, expand_omp_atomic_store): New functions.
5986 (expand_omp_atomic_fetch_op): Handle cases where old or new
5987 value is needed afterwards.
5988 (expand_omp_atomic): Call expand_omp_atomic_load resp.
5989 expand_omp_atomic_store.
5990 * gimplify.c (gimplify_omp_atomic, gimplify_expr): Handle
5991 OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and OMP_ATOMIC_CAPTURE_NEW.
5992 (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
5993 OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
5994 * tree-nested.c (convert_nonlocal_omp_clauses,
5995 convert_local_omp_clauses): Likewise.
5996 * tree.def (OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD,
5997 OMP_ATOMIC_CAPTURE_NEW): New.
5998 * gimple.h (GF_OMP_ATOMIC_NEED_VALUE): New.
5999 (gimple_omp_atomic_need_value_p, gimple_omp_atomic_set_need_value):
6001 * omp-builtins.def (BUILT_IN_GOMP_TASKYIELD): New builtin.
6002 * doc/generic.texi: Mention OMP_CLAUSE_COLLAPSE,
6003 OMP_CLAUSE_UNTIED, OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
6005 2011-08-02 Kai Tietz <ktietz@redhat.com>
6007 * gimple.c (canonicalize_cond_expr_cond): Handle cast from
6009 (ssa_forward_propagate_and_combine): Interprete result of
6010 forward_propagate_comparison.
6011 * gcc/gimple-fold.c (fold_gimple_assign): Add canonicalization for
6012 boolean-typed operands for comparisons.
6014 2011-08-02 Georg-Johann Lay <avr@gjlay.de>
6016 * config/avr/libgcc.S: Gather related function in the
6018 (__mulqihi3, __mulqihi3, __divmodqi4, __divmodhi4, __udivmodsi4,
6019 __divmodsi4): Use XCALL/XJMP instead of rcall/rjmp for external
6021 (__udivmodqi4, __divmodqi4, __udivmodhi4, __divmodhi4,
6022 __udivmodsi4, __divmodsi4, __prologue_saves__,
6023 __epilogue_restores__, _exit, __tablejump2__, __tablejump__,
6024 __do_copy_data, __do_clear_bss, __do_global_ctors,
6025 __do_global_dtors, __tablejump_elpm__): Enclose in DEFUN/ENDF.
6027 2011-08-02 Uros Bizjak <ubizjak@gmail.com>
6030 * doc/md.texi (stack_protect_set): The pattern moves ptr_mode value.
6031 (stack_protect_test): The pattern compares ptr_mode value.
6033 2011-08-02 Alan Modra <amodra@gmail.com>
6035 * config/rs6000/rs6000.c (rs6000_emit_prologue): Add REG_CFA_RESTORE
6036 note for save_LR_around_toc_setup sequence.
6038 2011-08-01 H.J. Lu <hongjiu.lu@intel.com>
6040 * config/i386/lzcntintrin.h (__lzcnt64): Replace long with long long.
6042 2011-08-01 Sebastian Pop <sebastian.pop@amd.com>
6043 Joseph Myers <joseph@codesourcery.com>
6045 * Makefile.in (hwint.o): Depend on DIAGNOSTIC_CORE_H.
6046 * hwint.c: Include diagnostic-core.h.
6048 (gcd): Moved here...
6051 (least_common_multiple): Moved here...
6052 * hwint.h (gcd): ... from here.
6053 (least_common_multiple): ... from here.
6054 (HOST_WIDE_INT_MIN): New.
6055 (HOST_WIDE_INT_MAX): New.
6056 (abs_hwi): Declared.
6058 (pos_mul_hwi): Declared.
6059 (mul_hwi): Declared.
6060 (least_common_multiple): Declared.
6061 * omega.c (check_pos_mul): Removed.
6062 (check_mul): Removed.
6063 (omega_solve_geq): Use pos_mul_hwi instead of check_pos_mul and
6064 mul_hwi instead of check_mul.
6066 2011-08-01 Richard Henderson <rth@redhat.com>
6069 * config/avr/avr.h (PUSH_ROUNDING): New.
6070 * config/avr/avr.md (pushqi1): Rename from *pushqi.
6071 (*pushhi, *pushsi, *pushsf): Remove.
6072 (MPUSH): New mode iterator.
6073 (push<MPUSH>1): New expander.
6075 2011-08-01 Anatoly Sokolov <aesok@post.ru>
6077 * config/mmix/mmix.h (PREFERRED_RELOAD_CLASS,
6078 PREFERRED_OUTPUT_RELOAD_CLASS): Remove macro.
6079 * config/mmix/mmix-protos.h (mmix_preferred_reload_class,
6080 mmix_preferred_output_reload_class): Remove.
6081 * config/mmix/mmix.c (mmix_preferred_reload_class,
6082 mmix_preferred_output_reload_class): Make static. Change rclass
6083 argument and return type to reg_class_t.
6084 (TARGET_PREFERRED_RELOAD_CLASS,
6085 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
6087 2011-08-01 Joern Rennecke <joern.rennecke@embecosm.com>
6089 * mode-switching.c (optimize_mode_switching): Fix bug in MODE_AFTER
6092 2011-08-01 H.J. Lu <hongjiu.lu@intel.com>
6095 * config/i386/i386.md (PTR): New.
6096 (stack_protect_set: Check TARGET_LP64 instead of TARGET_64BIT.
6097 (stack_protect_test): Likewise.
6098 (stack_protect_set_<mode>): Replace ":P" with ":PTR".
6099 (stack_tls_protect_set_<mode>): Likewise.
6100 (stack_tls_protect_test_<mode>): Likewise.
6102 2011-08-01 Uros Bizjak <ubizjak@gmail.com>
6105 * config/i386/i386.c (ix86_address_subreg_operand): New.
6106 (ix86_decompose_address): Use ix86_address_subreg_operand.
6107 (ix86_legitimate_address_p): Do not assert that subregs satisfy
6108 register_no_elim_operand in DImode.
6110 2011-08-01 Ira Rosen <ira.rosen@linaro.org>
6112 PR tree-optimization/49926
6113 * tree-vect-loop.c (vect_is_slp_reduction): Check that a statement
6114 in a chain doesn't have uses both inside and outside the loop.
6116 2011-08-01 Georg-Johann Lay <avr@gjlay.de>
6118 * config/avr/avr.h (mcu_type_s): Add errata_skip field.
6119 * config/avr/avr-devices.c (avr_mcu_types): Use it.
6120 * config/avr/avr-mcus.def (AVR_MCU): Use it.
6121 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Use it to builtin
6122 define __AVR_ERRATA_SKIP__ and __AVR_ERRATA_SKIP_JMP_CALL__.
6123 * config/avr/libgcc.S (__mulshisi3, __ffshi2, __fmulsu_exit):
6124 Use __AVR_ERRATA_SKIP_JMP_CALL__ instead of __AVR_HAVE_JMP_CALL__
6125 to detect if XJMP must not be skipped.
6127 2011-08-02 Alan Modra <amodra@gmail.com>
6129 * config/rs6000/rs6000-protos.h (rs6000_save_toc_in_prologue_p):
6131 * config/rs6000/rs6000.c (rs6000_save_toc_in_prologue_p): Make static.
6132 (rs6000_emit_prologue): Don't prematurely return when
6133 TARGET_SINGLE_PIC_BASE. Don't emit eh_frame info in
6134 save_toc_in_prologue case.
6135 (rs6000_call_indirect_aix): Only disallow save_toc_in_prologue for
6138 2011-08-01 Georg-Johann Lay <avr@gjlay.de>
6140 * config/avr/avr-devices.c: Delete SVN property svn:executable.
6141 * config/avr/predicates.md: Ditto.
6142 * config/avr/driver-avr.c: Ditto.
6143 * config/avr/genopt.sh: Set SVN property svn:executable to *.
6145 2011-08-01 H.J. Lu <hongjiu.lu@intel.com>
6147 * calls.c (emit_library_call_value_1): Declare size only if
6148 BLOCK_REG_PADDING is defined.
6150 2011-08-01 Kirill Yukhin <kirill.yukhin@intel.com>
6153 * config.gcc (i[34567]86-*-*): Replace abmintrin.h with lzcntintrin.h.
6154 (x86_64-*-*): Likewise.
6155 * config/i386/i386.opt (mlzcnt): New.
6156 * config/i386/abmintrin.h: File removed.
6157 (__lzcnt_u16, __lzcnt, __lzcnt_u64): Moved to ...
6158 * config/i386/lzcntintrin.h: ... here. New file.
6159 (__lzcnt): Rename to ...
6160 (__lzcnt32): ... this.
6161 * config/i386/bmiintrin.h (head): Update copyright year.
6162 (__lzcnt_u16): Removed.
6163 (__lzcnt_u32): Likewise.
6164 (__lzcnt_u64): Likewise.
6165 * config/i386/x86intrin.h: Include lzcntintrin.h when __LZCNT__
6166 is defined, remove abmintrin.h.
6167 * config/i386/cpuid.h (bit_LZCNT): New.
6168 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
6170 * config/i386/i386-c.c (ix86_target_macros_internal): Define
6171 __LZCNT__ if needed.
6172 * config/i386/i386.c (ix86_target_string): New option -mlzcnt.
6173 (ix86_option_override_internal): Handle LZCNT option.
6174 (ix86_valid_target_attribute_inner_p): Likewise.
6175 (struct builtin_description bdesc_args) <IX86_BUILTIN_CLZS>: Update.
6176 * config/i386/i386.h (TARGET_LZCNT): New.
6177 (CLZ_DEFINED_VALUE_AT_ZERO): Update.
6178 * config/i386/i386.md (clz<mode>2): Update insn constraint.
6179 (clz<mode>2_lzcnt): Likewise.
6180 * doc/invoke.texi: Mention -mlzcnt option.
6181 * doc/extend.texi: Likewise.
6183 2011-08-01 Julian Brown <julian@codesourcery.com>
6185 * configure.ac (fixed-point): Add ARM support.
6186 * configure: Regenerate.
6187 * config/arm/arm.c (arm_fixed_mode_set): New struct.
6188 (arm_set_fixed_optab_libfunc): New.
6189 (arm_set_fixed_conv_libfunc): New.
6190 (arm_init_libfuncs): Initialise fixed-point helper libfuncs with
6192 (aapcs_libcall_value): Return sub-word-size fixed-point libcall
6193 return values in SImode.
6194 (arm_return_in_msb): Return fixed-point types in the msb.
6195 (arm_pad_reg_upwards, arm_pad_arg_upwards): Pad fixed-point types
6197 (arm_scalar_mode_supported_p): Support fixed-point modes.
6198 (arm_vector_mode_supported_p): Support vector fixed-point modes.
6199 * config/arm/arm.h (SHORT_FRACT_TYPE_SIZE, FRACT_TYPE_SIZE)
6200 (LONG_FRACT_TYPE_SIZE, LONG_LONG_FRACT_TYPE_SIZE)
6201 (SHORT_ACCUM_TYPE_SIZE, ACCUM_TYPE_SIZE, LONG_ACCUM_TYPE_SIZE)
6202 (LONG_LONG_ACCUM_TYPE_SIZE, MAX_FIXED_MODE_SIZE): Define.
6203 * config/arm/iterators.md (FIXED, ADDSUB, UQADDSUB, QADDSUB, QMUL):
6205 (qaddsub_suf): New mode attribute.
6206 * config/arm/arm-modes.def (FRACT, UFRACT, ACCUM, UACCUM): Declare
6208 * config/arm/predicates.md (sat_shift_operator): New predicate.
6209 * config/arm/arm-fixed.md: New.
6210 * config/arm/arm.md: Include arm-fixed.md.
6211 * config/arm/t-arm (MD_INCLUDES): Add arm-fixed.md.
6213 2011-08-01 Julian Brown <julian@codesourcery.com>
6215 * calls.c (emit_library_call_value_1): Support padding for libcall
6216 arguments and return values.
6217 * config/arm/arm.c (arm_pad_arg_upward): Pad half-float values
6218 downwards in big-endian mode.
6220 2011-08-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6223 * config/sol2.c (solaris_code_end): Rename to solaris_file_end.
6224 * config/sol2-protos.h: Likewise.
6225 * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Don't call
6227 * config/i386/sol2.h [!USE_GAS] (TARGET_ASM_FILE_END): Redefine.
6228 * config/sparc/sparc.c (sparc_file_end) [TARGET_SOLARIS]: Call
6230 * config/sparc/sol2.h (TARGET_ASM_CODE_END): Remove.
6232 2011-08-01 Julian Brown <julian@codesourcery.com>
6234 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Support FIXED_CST.
6236 2011-08-01 Julian Brown <julian@codesourcery.com>
6238 * final.c (output_addr_const): Print fixed-point constants as
6241 2011-08-01 Richard Guenther <rguenther@suse.de>
6243 * stor-layout.c (initialize_sizetypes): Properly sign-extend
6244 bitsiztype TYPE_MAX_VALUE.
6246 2011-08-01 Julian Brown <julian@codesourcery.com>
6248 * optabs.c (prepare_cmp_insn): Use correct biasing for fixed-point
6251 2011-07-31 Richard Henderson <rth@redhat.com>
6253 * config/h8300/crti.asm: Add flags to .section directive.
6254 * config/h8300/crtn.asm: Likewise.
6256 2011-07-31 Richard Henderson <rth@redhat.com>
6258 * stor-layout.c (initialize_sizetypes): Handle unsigned short.
6259 * tree.c (build_common_tree_nodes): Likewise.
6261 2011-07-31 Kaz Kojima <kkojima@gcc.gnu.org>
6264 * config/sh/sh.md (udivsi3_i1): Enable for TARGET_DIVIDE_CALL_DIV1.
6265 (divsi3_i1): Likewise.
6267 2011-07-31 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6269 PR tree-optimization/49749
6270 * tree-ssa-reassoc.c (get_rank): New forward declaration.
6271 (PHI_LOOP_BIAS): New macro.
6272 (phi_rank): New function.
6273 (loop_carried_phi): Likewise.
6274 (propagate_rank): Likewise.
6275 (get_rank): Add calls to phi_rank and propagate_rank.
6277 2011-07-31 H.J. Lu <hongjiu.lu@intel.com>
6279 * config/i386/x86-64.h (SIZE_TYPE): Check TARGET_LP64 instead
6281 (PTRDIFF_TYPE): Likewise.
6283 2011-07-31 Uros Bizjak <ubizjak@gmail.com>
6286 * config/i386/i386.md (strset): Do not expand strset_singleop
6287 when %eax or $edi are fixed.
6288 (*strsetdi_rex_1): Disable when %eax or %edi are fixed.
6289 (*strsetsi_1): Ditto.
6290 (*strsethi_1): Ditto.
6291 (*strsetqi_1): Ditto.
6292 (*rep_stosdi_rex64): Disable when %eax, %ecx or %edi are fixed.
6293 (*rep_stossi): Ditto.
6294 (*rep_stosqi): Ditto.
6295 (*strlenqi_1): Ditto.
6296 (cmpstrnsi): Also fail when %ecx is fixed.
6297 (*cmpstrnqi_nz_1): Disable when %ecx, %esi or %edi are fixed.
6298 (*cmpstrnqi_1): Ditto.
6299 (*strmovdi_rex_1): Disable when %esi or %edi are fixed.
6300 (*strmovsi_1): Ditto.
6301 (*strmovhi_1): Ditto.
6302 (*strmovqi_1): Ditto.
6303 (*rep_movdi_rex64): Disable when %ecx, %esi or %edi are fixed.
6304 (*rep_movsi): Ditto.
6305 (*rep_movqi): Ditto.
6307 2011-07-31 Mikael Pettersson <mikpe@it.uu.se>
6310 * config/m68k/m68k.c (m68k_override_options_after_change): New function.
6311 Disable instruction scheduling for non-ColdFire targets.
6312 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define.
6314 2011-07-31 Revital Eres <revital.eres@linaro.org>
6316 * ddg.c (create_ddg_dep_from_intra_loop_link): Remove the creation
6317 of anti-dep edge from a branch.
6318 (add_cross_iteration_register_deps): Create anti-dep edge from
6321 2011-07-31 Revital Eres <revital.eres@linaro.org>
6323 * modulo-sched.c: Change comment.
6324 (reset_sched_times): Fix print message.
6325 (print_partial_schedule): Add print info.
6327 2011-07-31 Tom de Vries <tom@codesourcery.com>
6330 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Use max of
6331 get_object_alignment and TYPE_ALIGN.
6333 2011-07-30 Tom de Vries <tom@codesourcery.com>
6336 * tree-ssa-dce.c (ref_may_be_aliased): Add assert.
6337 (propagate_necessity): Handle WITH_SIZE_EXPR call arg.
6339 2011-07-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6341 * config/mips/driver-native.c [__sgi__]: Include <invent.h>,
6343 (cpu_types): New array.
6344 (cputype): New function.
6345 (host_detect_local_cpu): Only define buf, f if !__sgi__.
6346 Use scaninvent instead of /proc/cpuinfo if __sgi__.
6347 * config.host: Also use driver-native.o, mips/x-native on
6349 * config/mips/iris6.h [__mips__] (host_detect_local_cpu): Declare.
6350 (EXTRA_SPEC_FUNCTIONS, MARCH_MTUNE_NATIVE_SPECS): Define.
6351 (DRIVER_SELF_SPECS): Add MARCH_MTUNE_NATIVE_SPECS.
6353 2011-07-29 Jakub Jelinek <jakub@redhat.com>
6357 * omp-low.c (use_pointer_for_field): If disallowing copy-in/out
6358 in nested parallel and outer is a gimple_reg, mark it as addressable
6359 and set its bit in task_shared_vars bitmap too.
6361 2011-07-29 Uros Bizjak <ubizjak@gmail.com>
6363 * config/i386/predicates.md (tp_or_register_operand): Remove predicate.
6365 2011-07-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6367 * config/alpha/driver-alpha.c (IMPLVER_EV4_FAMILY,
6368 IMPLVER_EV5_FAMILY, IMPLVER_EV6_FAMILY, IMPLVER_EV7_FAMILY): Define.
6369 (AMASK_BWX, AMASK_FIX, AMASK_CIX, AMASK_MVI, AMASK_PRECISE,
6370 AMASK_LOCKPFTCHOK): Define.
6371 (host_detect_local_cpu): Remove buf, f, cpu_names.
6372 Define cpu_types, implver, amask.
6373 Use __builtin_alpha_implver, __builtin_alpha_amask to determine
6375 * config.host: Also use driver-alpha.o, alpha/x-alpha on
6377 * config/alpha/osf5.h [__alpha__ || __alpha]
6378 (host_detect_local_cpu): Declare.
6379 (EXTRA_SPEC_FUNCTIONS, MCPU_MTUNE_NATIVE_SPECS)
6380 (DRIVER_SELF_SPECS): Define.
6382 2011-07-29 Uros Bizjak <ubizjak@gmail.com>
6385 * config/i386/i386.md (*load_tp_x32): New.
6386 (*load_tp_x32_zext): Ditto.
6387 (*add_tp_x32): Ditto.
6388 (*add_tp_x32_zext): Ditto.
6389 (*load_tp_<mode>): Disable for TARGET_X32 targets.
6390 (*add_tp_<mode>): Ditto.
6391 * config/i386/i386.c (get_thread_pointer): Load thread pointer in
6392 ptr_mode and convert to Pmode if needed.
6394 2011-07-29 Georg-Johann Lay <avr@gjlay.de>
6397 * config/avr/avr.md (mulsi3, *mulsi3, mulu<mode>si3,
6398 muls<mode>si3, mulohisi3, mulhisi3, umulhisi3, usmulhisi3,
6399 *<any_extend:extend_prefix><any_extend2:extend_prefix>mul<QIHI:mode><QIHI2:mode>si3):
6400 Add X to register footprint: Clobber r26/r27.
6402 2011-07-29 Richard Guenther <rguenther@suse.de>
6404 * builtins.c (fold_builtin_signbit): Build the comparison
6407 2011-07-29 Richard Guenther <rguenther@suse.de>
6409 PR tree-optimization/49893
6410 * tree-predcom.c (suitable_reference_p): Volatile references
6413 2011-07-29 Georg-Johann Lay <avr@gjlay.de>
6416 * config/avr/libgcc.S (__ffshi2): Don't skip 2-word instruction.
6417 (__ctzsi2): Result for 0 may be undefined.
6418 (__ctzhi2): Result for 0 may be undefined.
6419 (__popcounthi2): Don't clobber r30. Use __popcounthi2_tail.
6420 (__popcountsi2): Ditto. And don't clobber r26.
6421 (__popcountdi2): Ditto. And don't clobber r27.
6422 * config/avr/avr.md (UNSPEC_COPYSIGN): New c_enum.
6423 (parityhi2): New expand.
6424 (paritysi2): New expand.
6425 (popcounthi2): New expand.
6426 (popcountsi2): New expand.
6427 (clzhi2): New expand.
6428 (clzsi2): New expand.
6429 (ctzhi2): New expand.
6430 (ctzsi2): New expand.
6431 (ffshi2): New expand.
6432 (ffssi2): New expand.
6433 (copysignsf3): New insn.
6434 (bswapsi2): New expand.
6435 (*parityhi2.libgcc): New insn.
6436 (*parityqihi2.libgcc): New insn.
6437 (*paritysihi2.libgcc): New insn.
6438 (*popcounthi2.libgcc): New insn.
6439 (*popcountsi2.libgcc): New insn.
6440 (*popcountqi2.libgcc): New insn.
6441 (*popcountqihi2.libgcc): New insn-and-split.
6442 (*clzhi2.libgcc): New insn.
6443 (*clzsihi2.libgcc): New insn.
6444 (*ctzhi2.libgcc): New insn.
6445 (*ctzsihi2.libgcc): New insn.
6446 (*ffshi2.libgcc): New insn.
6447 (*ffssihi2.libgcc): New insn.
6448 (*bswapsi2.libgcc): New insn.
6450 2011-07-29 Richard Guenther <rguenther@suse.de>
6452 * tree-vrp.c (get_value_range): Only set parameter default
6453 definitions to varying, leave others at undefined.
6454 (extract_range_from_binary_expr): Fix undefined handling.
6455 (vrp_visit_phi_node): Handle merged undefined state.
6457 2011-07-29 Wei Guozhi <carrot@google.com>
6459 PR rtl-optimization/49799
6460 * combine.c (make_compound_operation): Check if the bit field is valid
6461 before change it to bit field extraction.
6463 2011-07-29 Bernd Schmidt <bernds@codesourcery.com>
6465 PR rtl-optimization/49891
6466 * cfgrtl.c (force_nonfallthru_and_redirect): Set JUMP_LABEL for
6467 newly created returnjumps.
6469 2011-07-28 DJ Delorie <dj@redhat.com>
6471 * expr.c (expand_expr_addr_expr_1): Detect a user request for a
6472 local frame in a naked function, and produce a suitable error for
6475 * config/m32c/m32c.c (m32c_secondary_reload_class): Allow PSI
6476 registers to be reloaded in HI classes when the target is HI.
6478 2011-07-28 Sebastian Pop <sebastian.pop@amd.com>
6480 * graphite-clast-to-gimple.c: Replace v1, v2, lb, ub with
6481 bound_one, bound_two.
6483 2011-07-28 Sebastian Pop <sebastian.pop@amd.com>
6486 * graphite-clast-to-gimple.c (clast_get_body_of_loop): Handle
6488 (translate_clast): Same.
6489 (translate_clast_assignment): New.
6491 2011-07-28 Sebastian Pop <sebastian.pop@amd.com>
6493 PR tree-optimization/49876
6494 * sese.c (rename_uses): Do not return false on gloog_error: set
6495 the new_expr to integer_zero_node and continue code generation.
6496 (graphite_copy_stmts_from_block): Remove early exit on gloog_error.
6498 2011-07-28 Jakub Jelinek <jakub@redhat.com>
6501 * var-tracking.c (prepare_call_arguments): For non-MODE_INT stack
6502 arguments also check if they aren't initialized with a MODE_INT
6503 mode of the same size.
6505 2011-07-28 Aldy Hernandez <aldyh@redhat.com>
6507 * expr.c (get_bit_range): Handle *MEM_REF's.
6509 2011-07-28 Bernd Schmidt <bernds@codesourcery.com>
6511 * rtlanal.c (tablejump_p): False for returns.
6512 * reorg.c (first_active_target_insn): New static function.
6513 (find_end_label): Set JUMP_LABEL for a new returnjump.
6514 (optimize_skip, get_jump_flags, rare_destination,
6515 mostly_true_jump, get_branch_condition,
6516 steal_delay_list_from_target, own_thread_p,
6517 fill_simple_delay_slots, follow_jumps, fill_slots_from_thread,
6518 fill_eager_delay_slots, relax_delay_slots, make_return_insns,
6519 dbr_schedule): Adjust to handle ret_rtx in JUMP_LABELs.
6520 * jump.c (delete_related_insns): Likewise.
6521 (jump_to_label_p): New function.
6522 (redirect_target): New static function.
6523 (redirect_exp_1): Use it. Adjust to handle ret_rtx in JUMP_LABELS.
6524 (redirect_jump_1): Assert that the new label is nonnull.
6525 (redirect_jump): Likewise.
6526 (redirect_jump_2): Check for ANY_RETURN_P rather than NULL labels.
6527 * ifcvt.c (find_if_case_1): Take care when redirecting jumps to the
6529 (dead_or_predicable): Change NEW_DEST arg to DEST_EDGE. All callers
6530 changed. Ensure that the right label is passed to redirect_jump.
6531 * function.c (emit_return_into_block,
6532 thread_prologue_and_epilogue_insns): Ensure new returnjumps have
6533 ret_rtx in their JUMP_LABEL.
6534 * print-rtl.c (print_rtx): Handle ret_rtx in a JUMP_LABEL.
6535 * emit-rtl.c (skip_consecutive_labels): Allow the caller to
6536 pass ret_rtx as label.
6537 * cfglayout.c (fixup_reorder_chain): Use
6538 force_nonfallthru_and_redirect rather than force_nonfallthru.
6539 (duplicate_insn_chain): Copy JUMP_LABELs for returns.
6540 * rtl.h (ANY_RETURN_P): New macro.
6541 (jump_to_label_p): Declare.
6542 * resource.c (find_dead_or_set_registers): Handle ret_rtx in
6544 (mark_target_live_regs): Likewise.
6545 * basic-block.h (force_nonfallthru_and_redirect): Declare.
6546 * cfgrtl.c (force_nonfallthru_and_redirect): No longer static.
6547 * config/alpha/alpha.c (alpha_tablejump_addr_vec,
6548 alpha_tablejump_best_label): Remove functions.
6549 * config/alpha/alpha-protos.c (alpha_tablejump_addr_vec,
6550 alpha_tablejump_best_label): Remove declarations.
6551 * config/sh/sh.c (barrier_align, split_branches): Adjust for
6552 ret_rtx in JUMP_LABELs.
6553 * config/arm/arm.c (is_jump_table): Likewise.
6555 2011-07-28 Uros Bizjak <ubizjak@gmail.com>
6557 * config/i386/predicates.md (pic_32bit_opreand): Do not define as
6558 special predicate. Remove explicit mode checks.
6560 2011-07-28 Jakub Jelinek <jakub@redhat.com>
6562 * dwarf2out.c (resolve_addr): For -gdwarf-2 don't optimize
6563 DW_AT_data_member_location containing just DW_OP_plus_uconst.
6566 * dwarf2out.c (size_of_die, value_format, output_die): Use
6567 DW_FORM_udata instead of DW_FORM_data[48] for
6568 dw_val_class_unsigned_const DW_AT_data_member_location for DWARF 3.
6570 2011-07-28 H.J. Lu <hongjiu.lu@intel.com>
6572 * config/i386/i386.md (*tls_global_dynamic_64): Update
6575 2011-07-28 Uros Bizjak <ubizjak@gmail.com>
6578 * config/i386/i386.md (*tls_global_dynamic_64): Remove mode from
6579 tls_symbolic_operand check. Update code sequence for TARGET_X32.
6580 (tls_global_dynamic_64): Remove mode from tls_symbolic_operand check.
6581 (tls_dynamic_gnu2_64): Ditto.
6582 (*tls_dynamic_gnu2_lea_64): Ditto.
6583 (*tls_dynamic_gnu2_call_64): Ditto.
6584 (*tls_dynamic_gnu2_combine_64): Ditto.
6586 2011-07-28 H.J. Lu <hongjiu.lu@intel.com>
6588 * config.gcc: Set need_64bit_hwint to yes for x86 targets.
6590 2011-07-28 H.J. Lu <hongjiu.lu@intel.com>
6593 * config/i386/i386.md (strlen<mode>): Replace SWI48x with P.
6595 2011-07-28 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
6597 * config/arm/vfp.md ("*movdf_vfp"): Handle the VFP constraints
6598 before the core constraints. Adjust attributes.
6599 ("*thumb2_movdf_vfp"): Likewise.
6601 2011-07-28 Kai Tietz <ktietz@redhat.com>
6603 * tree-vrp.c (simplify_stmt_using_ranges): Remove TRUTH_NOT_EXPR case.
6604 (simplify_truth_ops_using_ranges): Likewise.
6605 (build_assert_expr_for): Likewise.
6606 (build_assert_expr_for_1): Remove TRUTH_NOT_EXPR case
6607 and handle BIT_NOT_EXPR for truth-operation.
6609 2011-07-28 Georg-Johann Lay <avr@gjlay.de>
6612 Undo r176835 from trunk
6613 2011-07-27 Georg-Johann Lay
6615 2011-07-28 Georg-Johann Lay <avr@gjlay.de>
6618 * config/avr/t-avr (LIB1ASMFUNCS): Remove _xmulhisi3_exit.
6619 Add _muluhisi3, _mulshisi3, _usmulhisi3.
6620 * config/avr/libgcc.S (__mulsi3): Rewrite.
6621 (__mulhisi3): Rewrite.
6622 (__umulhisi3): Rewrite.
6623 (__usmulhisi3): New.
6627 (__mulqi3, __mulqihi3, __umulqihi3, __mulhi3): Use DEFUN/ENDF to
6629 * config/avr/predicates.md (pseudo_register_operand): Rewrite.
6630 (pseudo_register_or_const_int_operand): New.
6631 (combine_pseudo_register_operand): New.
6635 * config/avr/avr.c (avr_rtx_costs): Handle costs for mult:SI.
6636 * config/avr/avr.md (QIHI, QIHI2): New mode iterators.
6637 (any_extend, any_extend2): New code iterators.
6638 (extend_prefix): New code attribute.
6639 (mulsi3): Rewrite. Turn insn to expander.
6642 (usmulhisi3): New expander.
6643 (*mulsi3): New insn-and-split.
6644 (mulu<mode>si3): New insn-and-split.
6645 (muls<mode>si3): New insn-and-split.
6646 (mulohisi3): New insn-and-split.
6647 (*uumulqihisi3, *uumulhiqisi3, *uumulhihisi3, *uumulqiqisi3,
6648 *usmulqihisi3, *usmulhiqisi3, *usmulhihisi3, *usmulqiqisi3,
6649 *sumulqihisi3, *sumulhiqisi3, *sumulhihisi3, *sumulqiqisi3,
6650 *ssmulqihisi3, *ssmulhiqisi3, *ssmulhihisi3, *ssmulqiqisi3): New
6652 (*mulsi3_call): Rewrite.
6653 (*mulhisi3_call): Rewrite.
6654 (*umulhisi3_call): Rewrite.
6655 (*usmulhisi3_call): New insn.
6656 (*muluhisi3_call): New insn.
6657 (*mulshisi3_call): New insn.
6658 (*mulohisi3_call): New insn.
6659 (extendqihi2): Use combine_pseudo_register_operand as predicate
6661 (extendqisi2): Ditto.
6662 (zero_extendqihi2): Ditto.
6663 (zero_extendqisi2): Ditto.
6664 (zero_extendhisi2): Ditto.
6665 (extendhisi2): Ditto. Don't early-clobber operand 0.
6667 2011-07-28 Uros Bizjak <ubizjak@gmail.com>
6669 * config/i386/i386.c (add->lea splitter): Add SWI mode to PLUS RTX.
6671 2011-07-27 Sebastian Pop <sebastian.pop@amd.com>
6673 PR tree-optimization/49471
6674 * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Build an unsigned
6675 iv only when the largest type is unsigned. Do not call
6676 lang_hooks.types.type_for_size.
6678 2011-07-27 Sebastian Pop <sebastian.pop@amd.com>
6681 * graphite-poly.c (apply_poly_transforms): Disable legality check
6682 after an openscop read.
6684 2011-07-27 Sebastian Pop <sebastian.pop@amd.com>
6687 * graphite-clast-to-gimple.c (translate_clast_user): Update use of
6688 copy_bb_and_scalar_dependences.
6689 * sese.c (rename_uses): Do not call gcc_assert. Set gloog_error.
6690 (graphite_copy_stmts_from_block): Update call to rename_uses.
6691 (copy_bb_and_scalar_dependences): Update call to
6692 graphite_copy_stmts_from_block.
6693 * sese.h (copy_bb_and_scalar_dependences): Update declaration.
6695 2011-07-27 Georg-Johann Lay <avr@gjlay.de>
6698 * config/avr/libgcc.S (__ffshi2): Don't skip 2-word instruction.
6699 (__ctzsi2): Result for 0 may be undefined.
6700 (__ctzhi2): Result for 0 may be undefined.
6701 (__popcounthi2): Don't clobber r30. Use __popcounthi2_tail.
6702 (__popcountsi2): Ditto. And don't clobber r26.
6703 (__popcountdi2): Ditto. And don't clobber r27.
6704 * config/avr/avr.md (UNSPEC_COPYSIGN): New c_enum.
6705 (parityhi2): New expand.
6706 (paritysi2): New expand.
6707 (popcounthi2): New expand.
6708 (popcountsi2): New expand.
6709 (clzhi2): New expand.
6710 (clzsi2): New expand.
6711 (ctzhi2): New expand.
6712 (ctzsi2): New expand.
6713 (ffshi2): New expand.
6714 (ffssi2): New expand.
6715 (copysignsf3): New insn.
6716 (bswapsi2): New expand.
6717 (*parityhi2.libgcc): New insn.
6718 (*parityqihi2.libgcc): New insn.
6719 (*paritysihi2.libgcc): New insn.
6720 (*popcounthi2.libgcc): New insn.
6721 (*popcountsi2.libgcc): New insn.
6722 (*popcountqi2.libgcc): New insn.
6723 (*popcountqihi2.libgcc): New insn-and-split.
6724 (*clzhi2.libgcc): New insn.
6725 (*clzsihi2.libgcc): New insn.
6726 (*ctzhi2.libgcc): New insn.
6727 (*ctzsihi2.libgcc): New insn.
6728 (*ffshi2.libgcc): New insn.
6729 (*ffssihi2.libgcc): New insn.
6730 (*bswapsi2.libgcc): New insn.
6732 2011-07-27 Uros Bizjak <ubizjak@gmail.com>
6734 * config/i386/i386.c (ix86_expand_move): Do not explicitly check
6735 the mode of symbolic_opreand RTXes.
6737 2011-07-27 Uros Bizjak <ubizjak@gmail.com>
6739 * config/i386/predicates.md (x86_64_movabs_operand): Return false
6740 for pic_32bit_operand RTXes.
6741 * config/i386/i386.c (ix86_expand_move): Check x86_64_movabs_operand
6744 2011-07-27 Kai Tietz <ktietz@redhat.com>
6746 * config/i386/i386.c (ix86_option_override_internal): Allow -mabi
6748 (ix86_handle_abi_attribute): Allow function attributes
6749 ms_abi/sysv_abi in 32-bit mode, too.
6750 * doc/extend.texi: Adjust attribute documentation.
6752 * gimple-fold.c (or_comparisons_1): Remove TRUTH_AND/OR
6753 expression handling.
6754 (and_var_with_comparison_1): Likewise.
6756 2011-07-27 Aldy Hernandez <aldyh@redhat.com>
6758 * params.h (ALLOW_STORE_DATA_RACES): New.
6759 * params.def (PARAM_ALLOW_STORE_DATA_RACES): New.
6760 * Makefile.in (expr.o): Depend on PARAMS_H.
6761 * machmode.h (get_best_mode): Add argument.
6762 * fold-const.c (optimize_bit_field_compare): Add argument to
6764 (fold_truthop): Same.
6765 * ifcvt.c (noce_emit_move_insn): Add argument to store_bit_field.
6766 * expr.c (emit_group_store): Same.
6767 (copy_blkmode_from_reg): Same.
6768 (write_complex_part): Same.
6769 (optimize_bitfield_assignment_op): Add argument.
6770 Add argument to get_best_mode.
6771 (get_bit_range): New.
6772 (expand_assignment): Calculate maxbits and pass it down accordingly.
6773 (store_field): New argument.
6774 (expand_expr_real_2): New argument to store_field. Include params.h.
6775 * expr.h (store_bit_field): New argument.
6776 * stor-layout.c (get_best_mode): Restrict mode expansion by taking
6777 into account maxbits.
6778 * calls.c (store_unaligned_arguments_into_pseudos): New argument
6780 * expmed.c (store_bit_field_1): New argument. Use it.
6781 (store_bit_field): Same.
6782 (store_fixed_bit_field): Same.
6783 (store_split_bit_field): Same.
6784 (extract_bit_field_1): Pass new argument to get_best_mode.
6785 (extract_bit_field): Same.
6786 * stmt.c (store_bit_field): Pass new argument to store_bit_field.
6787 * doc/invoke.texi: Document parameter allow-store-data-races.
6789 2011-07-27 Jakub Jelinek <jakub@redhat.com>
6791 * dwarf2out.c (gen_producer_string): Ignore also -fverbose-asm option.
6793 2011-07-27 Kai Tietz <ktietz@redhat.com>
6795 * tree-vrp.c (extract_range_from_binary_expr): Remove
6796 TRUTH-binary cases and add new bitwise-cases.
6797 (extract_range_from_assignment): Likewise.
6798 (register_edge_assert_for_1): Likeiwise.
6799 (register_edge_assert_for): Likewise.
6800 (simplify_truth_ops_using_ranges): Likewise.
6801 (simplify_stmt_using_ranges): Likewise.
6803 2011-07-26 H.J. Lu <hongjiu.lu@intel.com>
6806 * config/i386/i386.c (ix86_delegitimize_address): Call
6807 simplify_gen_subreg for PIC with mode of x only if modes of
6808 x and orig_x are different.
6810 2011-07-26 Jakub Jelinek <jakub@redhat.com>
6812 * dwarf2out.c (output_macinfo_op): Ensure fd->filename points
6813 to GC allocated copy of the string.
6814 (dwarf2out_finish): Emit .debug_macinfo or .debug_macro sections
6815 before .debug_line, not after it.
6817 2011-07-26 Sebastian Pop <sebastian.pop@amd.com>
6820 * tree-chrec.h (evolution_function_is_affine_p): Recursively call
6821 evolution_function_is_affine_p on CHREC_RIGHT.
6823 2011-07-26 Sebastian Pop <sebastian.pop@amd.com>
6825 * tree-data-ref.c (max_stmt_executions_tree): Do not call
6826 lang_hooks.types.type_for_size.
6828 2011-07-26 Sebastian Pop <sebastian.pop@amd.com>
6831 * graphite-scop-detection.c (graphite_can_represent_loop): Discard
6832 loops using wrapping semantics.
6834 2011-07-26 Sebastian Pop <sebastian.pop@amd.com>
6837 * tree-scalar-evolution.c (instantiate_scev_r): Return
6838 chrec_dont_know for ADDR_EXPR.
6840 2011-07-26 Uros Bizjak <ubizjak@gmail.com>
6841 H.J. Lu <hongjiu.lu@intel.com>
6845 * config/i386/i386.c (ix86_expand_move): Call convert_to_mode
6846 if legitimize_tls_address returned operand in wrong mode. Allow
6847 SImode and DImode symbolic operand for PIC. Call convert_to_mode
6848 if legitimize_pic_address returned operand in wrong mode.
6850 2011-07-26 Martin Jambor <mjambor@suse.cz>
6852 * tree-sra.c (tree_non_mode_aligned_mem_p): Strip conversions and
6853 return false for invariants.
6855 2011-07-26 Uros Bizjak <ubizjak@gmail.com>
6857 * config/i386/i386.md (add->lea splitter): Implement using SWI
6858 mode iterator. Change operand 2 predicate to <nonmemory_operand>.
6859 (add->lea zext splitter): Change operand 2 predicate to
6860 x86_64_nonmemory_operand.
6862 2011-07-26 Richard Guenther <rguenther@suse.de>
6864 * predict.c (maybe_hot_frequency_p): Make sure a zero entry-block
6865 frequency makes everything hot.
6867 2011-07-26 Richard Guenther <rguenther@suse.de>
6869 PR tree-optimization/49840
6870 * tree-vrp.c (range_fits_type_p): Properly handle full
6871 double-int precision.
6873 2011-07-26 Martin Jambor <mjambor@suse.cz>
6876 * ipa-cp.c (update_profiling_info): Avoid overflow when updating
6878 (update_specialized_profile): Likewise.
6880 2011-07-26 Uros Bizjak <ubizjak@gmail.com>
6881 H.J. Lu <hongjiu.lu@intel.com>
6886 * config/i386/i386.md (i): Change SImode attribute to "e".
6887 (g): Change SImode attribute to "rme".
6888 (di): Change SImode attribute to "nF".
6889 (general_operand): Change SImode attribute to x86_64_general_operand.
6890 (general_szext_operand): Change SImode attribute to
6891 x86_64_szext_general_operand.
6892 (immediate_operand): Change SImode attribute to
6893 x86_64_immediate_operand.
6894 (nonmemory_operand): Change SImode attribute to
6895 x86_64_nonmemory_operand.
6896 (*movdi_internal_rex64): Remove mode from pic_32bit_operand check.
6897 (*movsi_internal): Ditto. Use "e" constraint in alternative 2.
6898 (*lea_1): Use SWI48 mode iterator.
6899 (*lea_1_zext): New insn pattern.
6900 (testsi_ccno_1): Use x86_64_nonmemory_operand predicate for operand 2.
6902 (*add<mode>1): Use x86_64_general_operand predicate for operand 2.
6903 Update operand constraints.
6904 (addsi_1_zext): Ditto.
6905 (*add<mode>2): Ditto.
6906 (*addsi_3_zext): Ditto.
6907 (*subsi_1_zext): Ditto.
6908 (*subsi_2_zext): Ditto.
6909 (*subsi_3_zext): Ditto.
6910 (*addsi3_carry_zext): Ditto.
6911 (*<plusminus_insn>si3_zext_cc_overflow): Ditto.
6912 (*mulsi3_1_zext): Ditto.
6914 (*andsi_1_zext): Ditto.
6915 (*andsi_2_zext): Ditto.
6916 (*<any_or:code>si_1_zext): Ditto.
6917 (*<any_or:code>si_2_zext): Ditto.
6918 (*test<mode>_1): Use <general_operand> predicate for operand 1.
6919 (*and<mode>_2): Ditto.
6920 (mov<mode>cc): Use <general_operand> predicate for operands 1 and 2.
6921 (add->lea splitter): Check operand modes in insn constraint. Extend
6922 operands less than SImode wide to SImode.
6923 (add->lea zext splitter): Do not extend input operands to DImode.
6924 (*lea_general_1): Handle only QImode and HImode operands.
6925 (*lea_general_2): Ditto.
6926 (*lea_general_3): Ditto.
6927 (*lea_general_1_zext): Remove.
6928 (*lea_general_2_zext): Ditto.
6929 (*lea_general_3_zext): Ditto.
6930 (*lea_general_4): Check operand modes in insn constraint. Extend
6931 operands less than SImode wide to SImode.
6932 (ashift->lea splitter): Ditto.
6933 * config/i386/i386.c (ix86_print_operand_address): Print address
6934 registers with 'q' modifier on 64bit targets.
6935 * config/i386/predicates.md (pic_32bit_opreand): Define as special
6936 predicate. Reject non-SI and non-DI modes.
6938 2011-07-25 Andrew Pinski <apinski@cavium.com>
6941 * tree-inline.c (remap_gimple_op_r): Copy TREE_THIS_VOLATILE and
6942 TREE_THIS_NOTRAP into the inner most MEM_REF.
6943 Always copy TREE_THIS_VOLATILE.
6944 * tree-sra.c (ptr_parm_has_direct_uses): Check that the lhs, rhs and
6945 arguments are not volatile references.
6947 2011-07-25 Richard Henderson <rth@redhat.com>
6949 * insn-notes.def (NOTE_INSN_CFA_RESTORE_STATE): Remove.
6950 * final.c (final_scan_insn): Don't test for it.
6951 (rest_of_clean_state): Likewise.
6953 2011-07-25 Richard Henderson <rth@redhat.com>
6956 * config/rs6000/rs6000.c (rs6000_frame_related): Return the insn.
6957 (emit_frame_save): Likewise.
6958 (rs6000_emit_prologue): Move the FRAME_RELATED_EXPR from the save
6959 insn onto a dummy blockage insn after the join label.
6961 2011-07-25 Richard Henderson <rth@redhat.com>
6963 * dwarf2cfi.c (dw_trace_info): Add ID member.
6964 (get_trace_index): Remove. Change users to use ID member.
6965 (before_next_cfi_note): New.
6966 (connect_traces): Remove unreachable traces before the main loop.
6967 Look across one trace and generate remember/restore_state if needed.
6969 2011-07-25 Richard Henderson <rth@redhat.com>
6971 * dwarf2cfi.c (dump_cfi_row, debug_cfi_row): New.
6973 2011-07-25 Joern Rennecke <joern.rennecke@embecosm.com>
6975 * genattr.c (write_upcase, gen_attr <enum definition writing>):
6977 * genattr-common.c ... here.
6978 (main): Call gen_attr.
6979 * optc-gen.awk: Make generated program include insn-attr-common.h .
6980 * Makefile.in (oprions.o): Depend on insn-attr-common.h
6982 2011-07-25 Anatoly Sokolov <aesok@post.ru>
6984 * config/m32c/m32c.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
6985 PRINT_OPERAND_PUNCT_VALID_P): Remove macro.
6986 * config/m32c/m32c-protos.h (m32c_print_operand_punct_valid_p,
6987 m32c_print_operand, m32c_print_operand_address): Remove.
6988 * config/m32c/m32c.c (m32c_print_operand_punct_valid_p): Make static.
6989 Change return type to bool. Change argument type to bool.
6990 (m32c_print_operand, m32c_print_operand_address): Make static.
6991 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS,
6992 TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
6994 2011-07-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6996 * doc/sourcebuild.texi (Effective-Target Keywords, Environment
6997 attributes): Document mmap.
6999 2011-07-25 Anatoly Sokolov <aesok@post.ru>
7001 * config/mmix/mmix.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
7002 PRINT_OPERAND_PUNCT_VALID_P): Remove macro.
7003 * config/mmix/mmix-protos.h (mmix_print_operand_punct_valid_p,
7004 mmix_print_operand, mmix_print_operand_address): Remove.
7005 * config/mmix/mmix.c (mmix_print_operand_punct_valid_p): Make static.
7006 Change return type to bool. Change argument type to bool.
7007 (mmix_print_operand, mmix_print_operand_address): Make static.
7008 (mmix_intval, mmix_output_condition): Change 'x' argument type
7010 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS,
7011 TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
7013 2011-07-25 Georg-Johann Lay <avr@gjlay.de>
7016 * config/avr/avr.c (out_shift_with_cnt): Use tmp_reg as
7017 shift counter for x << x and x >> x shifts.
7019 2011-07-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7022 * config.gcc: Reject *-*-solaris2 configuration.
7024 2011-07-25 Richard Sandiford <richard.sandiford@linaro.org>
7026 PR tree-optimization/49809
7027 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Use
7028 gimple_get_lhs instead of gimple_assign_lhs.
7030 2011-07-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7032 * system.h [__cplusplus]: Wrap C function declarations in extern "C".
7034 2011-07-25 Richard Guenther <rguenther@suse.de>
7036 PR tree-optimization/49822
7037 * tree-ssa-forwprop.c (remove_prop_source_from_use): Robustify
7038 more. Make sure to preserve stmts with side-effects. Properly
7039 handle virtual defs, follow a longer def chain.
7041 2011-07-22 Romain Geissler <romain.geissler@gmail.com>
7046 * Makefile.in: Do not flatten c-family directory when installing
7049 2011-07-25 Eric Botcazou <ebotcazou@adacore.com>
7051 * ipa-inline.c (can_inline_edge_p): Look into DECL_STRUCT_FUNCTION of
7052 original nodes if we are dealing with virtual clones.
7054 2011-07-25 Bernd Schmidt <bernds@codesourcery.com>
7056 * common/config/c6x/c6x-common.c: New file.
7058 2011-07-25 Roman Zhuykov <zhroma@ispras.ru>
7060 * tree-flow.h (tree_ssa_loop_version): Remove unused declaration.
7062 2011-07-25 Richard Guenther <rguenther@suse.de>
7064 PR tree-optimization/49715
7065 * tree-vrp.c: Include expr.h and optabs.h.
7066 (range_fits_type_): New function.
7067 (simplify_float_conversion_using_ranges): Likewise.
7068 (simplify_stmt_using_ranges): Call it.
7069 * Makefile.in (tree-vrp.o): Add $(EXPR_H) and $(OPTABS_H) dependencies.
7070 * optabs.c (can_float_p): Export.
7071 * optabs.h (can_float_p): Declare.
7073 2011-07-25 Richard Guenther <rguenther@suse.de>
7075 * tree-vrp.c (num_vr_values, values_propagated): New global vars.
7076 (get_value_range): For out-of-range SSA names or names created
7077 after propagation return a read-only varying range.
7078 (dump_all_value_ranges): Adjust.
7079 (vrp_initialize): Likewise.
7080 (vrp_finalize): Likewise.
7082 2011-07-24 Richard Henderson <rth@redhat.com>
7085 * dwarf2cfi.c (connect_traces): Allow unvisited traces. Skip
7088 2011-07-24 Richard Henderson <rth@redhat.com>
7091 * dwarf2cfi.c (dwarf2out_stack_adjust): Move A_O_A test earlier.
7092 (dwarf2out_notice_stack_adjust): Use args_size from call_insn.
7094 2011-07-24 Richard Henderson <rth@redhat.com>
7097 * dwarf2cfi.c (create_trace_edges): Handle sequences properly.
7099 2011-07-24 Richard Henderson <rth@redhat.com>
7101 * dwarf2cfi.c (maybe_record_trace_start): Add abnormal parameter.
7102 Zero args_size for abnormal edges. Adjust all callers.
7104 2011-07-24 Richard Henderson <rth@redhat.com>
7107 * dwarf2cfi.c (cfi_row_equal_p): Don't compare args_size.
7109 2011-07-24 H.J. Lu <hongjiu.lu@intel.com>
7112 * collect2.c (demangle_flag): Removed.
7114 2011-07-24 Sandra Loosemore <sandra@codesourcery.com>
7116 * configure.ac (demangler_in_ld): Default to yes.
7117 * configure: Regenerated.
7118 * collect2.c (main): When HAVE_LD_DEMANGLE is defined, don't
7119 mess with COLLECT_NO_DEMANGLE, and just pass --demangle and
7120 --no-demangle options straight through to ld. When
7121 HAVE_LD_DEMANGLE is not defined, set COLLECT_NO_DEMANGLE in a
7122 way that has the intended effect on Windows.
7124 2011-07-23 Richard Henderson <rth@redhat.com>
7126 * dwarf2cfi.c: Include basic-block.h.
7127 (dw_label_info): Remove.
7128 (trace_work_list, trace_index): New.
7129 (remember_row, emit_cfa_remember): Remove.
7130 (dw_trace_info_hash, dw_trace_info_eq): New.
7131 (get_trace_index, get_trace_info): New.
7132 (save_point_p): New.
7133 (free_cfi_row): Remove.
7134 (add_cfi): Do not emit DW_CFA_remember_state.
7135 (cfa_row_equal_p): New.
7136 (barrier_args_size): Remove.
7137 (compute_barrier_args_size_1, compute_barrier_args_size): Remove.
7138 (dwarf2out_notice_stack_adjust): Don't compute_barrier_args_size.
7139 (maybe_record_trace_start, create_trace_edges, scan_trace): New.
7140 (dwarf2out_cfi_begin_epilogue): Remove.
7141 (dwarf2out_frame_debug_restore_state): Remove.
7142 (connect_traces, create_pseudo_cfg): New.
7143 (create_cfi_notes, execute_dwarf2_frame): Rewrite using traces.
7144 * Makefile.in (dwarf2cfi.o): Update.
7146 2011-07-23 Richard Henderson <rth@redhat.com>
7148 * dwarf2cfi.c (dw_trace_info): New.
7149 (dw_label_info): New.
7150 (cie_return_save): New.
7152 (queued_args_size): Rename from args_size. Update all users.
7153 (cfa_store, cfa_temp, regs_saved_in_regs): Remove.
7154 (def_cfa_1): Use cur_trace instead of cfa_*.
7155 (dwarf2out_stack_adjust, record_reg_saved_in_reg): Likewise.
7156 (clobbers_queued_reg_save, reg_saved_in): Likewise.
7157 (dwarf2out_frame_debug_expr): Likewise.
7158 (create_cie_data): Split out from ...
7159 (execute_dwarf2_frame): ... here. Initialize cur_trace.
7161 2011-07-23 Richard Henderson <rth@redhat.com>
7163 * dwarf2cfi.c (regs_saved_in_regs): Allocate from heap, not gc.
7164 Update all users to match.
7165 (execute_dwarf2_frame): Free reg_saved_in_data.
7167 2011-07-23 Richard Henderson <rth@redhat.com>
7169 * dwarf2cfi.c (queued_reg_save): Reorder for packing. Don't GTY.
7170 (queued_reg_saves): Don't GTY. Change to a VEC.
7171 (queue_reg_save): Update to match.
7172 (dwarf2out_flush_queued_reg_saves): Likewise.
7173 (clobbers_queued_reg_save): Likewise.
7174 (reg_saved_in): Likewise.
7175 (execute_dwarf2_frame): Free queued_reg_saves.
7177 2011-07-23 Richard Henderson <rth@redhat.com>
7179 * dwarf2cfi.c (dw_cfi_row_ref): Remove. Update all users.
7181 2011-07-23 Richard Henderson <rth@redhat.com>
7183 * dwarf2cfi.c (add_cfi_args_size): Split out from...
7184 (dwarf2out_args_size): ... here.
7185 (add_cfi_restore): Split out from ...
7186 (dwarf2out_frame_debug_cfa_restore): ... here.
7187 (def_cfa_0): Split out from ...
7188 (def_cfa_1): ... here.
7189 (cfi_oprnd_equal_p, cfi_equal_p): New.
7190 (change_cfi_row): New.
7191 (add_cfis_to_fde): Set fde->dw_fde_switch_cfi_index.
7192 (create_cfi_notes): Use change_cfi_row at SWITCH_TEXT note.
7193 (output_cfis): Remove.
7194 * dwarf2out.c (output_fde): Simplify output_cfi loop.
7195 (dwarf2out_switch_text_section): Don't call output_cfis.
7196 (dw_val_equal_p, loc_descr_equal_p_1, loc_descr_equal_p): New.
7197 * dwarf2out.h: Update decls.
7198 (enum dw_val_class): Add dw_val_class_none.
7200 2011-07-23 Richard Henderson <rth@redhat.com>
7202 * dwarf2cfi.c (update_row_reg_save): New.
7203 (dwarf2out_frame_debug_cfa_expression): Use it.
7204 (dwarf2out_frame_debug_cfa_restore): Likewise.
7205 (reg_save): Likewise. Do not emit DW_CFA_same_value.
7207 2011-07-23 Richard Henderson <rth@redhat.com>
7209 * dwarf2cfi.c (add_cfi_insn): Rename from cfi_insn. Update all users.
7211 2011-07-23 Richard Henderson <rth@redhat.com>
7213 * dwarf2cfi.c (dw_cfi_row, dw_cfi_row_ref): New.
7215 (new_cfi_row, copy_cfi_row, free_cfi_row): New.
7216 (cfa, old_cfa, cfa_remember, old_cfa_remember, old_args_size): Remove.
7217 (cur_row, remember_row): New.
7218 (def_cfa_1): Use cur_row instead of the old_* variables.
7219 (dwarf2out_frame_debug_restore_state): Similarly.
7220 (dwarf2out_args_size, dwarf2out_notice_stack_adjust): Likewise.
7221 (dwarf2out_frame_debug_def_cfa): Use a local variable instead of cfa.
7222 (dwarf2out_frame_debug_adjust_cfa): Likewise.
7223 (dwarf2out_frame_debug_cfa_offset): Likewise.
7224 (dwarf2out_frame_debug_expr): Likewise.
7225 (execute_dwarf2_frame): Set up cur_row.
7226 * dwarf2out.h (struct cfa_loc): Mark for GTY.
7228 2011-07-23 Richard Henderson <rth@redhat.com>
7230 * basic-block.h (EDGE_PRESERVE): New.
7231 (EDGE_ALL_FLAGS, EDGE_COMPLEX): Include it.
7232 * bb-reorder.c: Include except.h.
7233 (fix_up_crossing_landing_pad): New.
7234 (find_rarely_executed_basic_blocks_and_crossing_edges): Place
7235 landing pads in the right partition. Duplicate as necessary.
7236 (partition_hot_cold_basic_blocks): Fix up DF info after
7237 duplicating landing pads.
7238 * cfg.c (dump_edge_info): Add crossing and preserve to bitnames.
7239 * cfgrtl.c (rtl_verify_flow_info_1): Validate that EDGE_CROSSING
7240 is set properly. Validate that EH edges are not CROSSING.
7241 * except.c (expand_dw2_landing_pad_for_region): Split out from ...
7242 (dw2_build_landing_pads): ... here.
7243 (convert_to_eh_region_ranges): Remove code to fixup crossing
7245 * except.h (expand_dw2_landing_pad_for_region): Declare.
7246 * tree-cfg.c (gimple_can_merge_blocks_p): Don't merge PRESERVE edges.
7248 2011-07-23 Richard Earnshaw <rearnsha@arm.com>
7251 * arm.c (aapcs_vfp_allocate_return_reg): Return NULL on failure.
7253 2011-07-22 Jason Merrill <jason@redhat.com>
7255 * doc/invoke.texi (C++ Dialect Options): Document -Wno-narrowing.
7257 2011-07-22 Richard Henderson <rth@redhat.com>
7259 * bb-reorder.c (gate_handle_partition_blocks): Honor optimize.
7261 2011-07-22 Richard Henderson <rth@redhat.com>
7263 * jump.c (maybe_propagate_label_ref): Split out of...
7264 (mark_all_labels): ... here. Do not attempt label_ref
7265 propagation while in cfglayout mode.
7267 2011-07-22 Jakub Jelinek <jakub@redhat.com>
7269 * dwarf2out.c (struct macinfo_struct): Change code to unsigned char.
7270 (DEBUG_MACRO_SECTION, DEBUG_MACRO_SECTION_LABEL): Define.
7271 (dwarf_attr_name): Handle DW_AT_GNU_macros.
7272 (dwarf2out_define): If the vector is empty and
7273 lineno is 0, emit a dummy entry first.
7274 (dwarf2out_undef): Likewise. Remove redundant semicolon.
7275 (htab_macinfo_hash, htab_macinfo_eq, output_macinfo_op,
7276 optimize_macinfo_range): New functions.
7277 (output_macinfo): Use them. If !dwarf_strict and .debug_str is
7278 mergeable, optimize longer strings using
7279 DW_MACRO_GNU_{define,undef}_indirect and if HAVE_COMDAT_GROUP,
7280 optimize longer sequences of define/undef ops from headers
7281 using DW_MACRO_GNU_transparent_include. For !dwarf_strict
7282 emit a section headers.
7283 (dwarf2out_init): For !dwarf_strict set debug_macinfo_section
7284 and macinfo_section_label to DEBUG_MACRO_SECTION
7285 resp. DEBUG_MACRO_SECTION_LABEL.
7286 (dwarf2out_finish): For !dwarf_strict emit DW_AT_GNU_macros
7287 instead of DW_AT_macro_info.
7290 * common.opt (grecord-gcc-switches, gno-record-gcc-switches): New
7292 * dwarf2out.c: Include opts.h.
7293 (dchar_p): New typedef. Define heap VEC for it.
7294 (producer_string): New variable.
7295 (gen_producer_string): New function.
7296 (gen_compile_unit_die): Use it.
7297 (dwarf2out_finish): Fix up comp_unit_die () DW_AT_producer if needed.
7298 * Makefile.in (dwarf2out.o): Depend on $(OPTS_H).
7299 * doc/invoke.texi: Document -grecord-gcc-switches and
7300 -gno-record-gcc-switches, add a -grecord-gcc-switches reference
7301 to -frecord-gcc-switches description.
7303 2011-07-22 Jason Merrill <jason@redhat.com>
7306 * c-decl.c (c_linkage_bindings): Define.
7308 2011-07-22 Eric Botcazou <ebotcazou@adacore.com>
7311 * var-tracking.c (vt_finalize): Always free windowed_parm_regs.
7313 2011-07-22 H.J. Lu <hongjiu.lu@intel.com>
7315 * config/i386/i386.c (ix86_option_override_internal): Disallow
7317 (ix86_init_builtins): Call ix86_init_builtins_va_builtins_abi
7318 only for TARGET_LP64.
7319 (ix86_handle_abi_attribute): Check TARGET_LP64 instead of TARGET_64BIT.
7321 2011-07-22 Michael Meissner <meissner@linux.vnet.ibm.com>
7323 * config/rs6000/rs6000.c (rs6000_xcoff_strip_dollar): Rewrite to
7324 avoid warnings when GCC is built with a C++ compiler.
7326 2011-07-22 Martin Jambor <mjambor@suse.cz>
7329 * cgraphunit.c (verify_edge_corresponds_to_fndecl): Return false
7330 if decl node is in another partition, call cgraph_get_node only once.
7332 2011-07-22 Uros Bizjak <ubizjak@gmail.com>
7334 * config.gcc (x86_64-*-linux*): Set
7335 default_gnu_indirect_function to yes.
7337 2011-07-22 Richard Guenther <rguenther@suse.de>
7339 PR tree-optimization/45819
7340 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Properly
7341 preserve volatile and notrap flags.
7343 2011-07-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7344 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7347 * configure.ac: Test AM_ICONV with CXX.
7348 * configure: Regenerate.
7349 * config/sol2-c.c (solaris_format_types): Use EXPORTED_CONST.
7351 2011-07-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7354 * graphite-clast-to-gimple.c (CLOOG_LANGUAGE_C): Provide if missing.
7355 (set_cloog_options): Use it.
7357 2011-07-22 Jakub Jelinek <jakub@redhat.com>
7360 * gcc.c (main): Call stack_limit_increase (64MB).
7361 * toplev.c (toplev_main): Likewise.
7363 2011-07-21 H.J. Lu <hongjiu.lu@intel.com>
7365 * config/i386/i386.c (ix86_expand_call): Call copy_to_mode_reg
7366 instead of force_reg.
7368 2011-07-21 H.J. Lu <hongjiu.lu@intel.com>
7370 * config/i386/i386.c (ix86_expand_move): Convert to Pmode if
7371 needed and use force_reg after convert.
7372 (ix86_expand_call): Likewise.
7373 (ix86_expand_special_args_builtin): Likewise.
7374 (ix86_expand_builtin): Likewise.
7376 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
7380 * graphite-clast-to-gimple.c (type_for_clast_term): Pass v1 and v2
7381 in parameter. Initialize v1 and v2 based on the values returned
7382 by clast_name_to_lb_ub.
7383 (type_for_clast_red): Pass v1 and v2 in parameter, and set their
7385 (type_for_clast_bin): Same.
7386 (type_for_clast_expr): Same.
7387 (type_for_clast_eq): Update calls to type_for_clast_expr.
7388 (type_for_clast_for): Same.
7389 (build_iv_mapping): Same.
7390 * graphite-ppl.h (value_min): New.
7392 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
7394 * graphite-clast-to-gimple.c (type_for_interval): Generate signed
7395 types whenever possible.
7397 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
7399 * graphite-clast-to-gimple.c (struct clast_name_index): Add lb
7401 (new_clast_name_index): Add lb and ub parameters.
7402 (free_clast_name_index): New.
7403 (clast_name_to_lb_ub): New.
7404 (save_clast_name_index): Add lb and ub parameters.
7405 (compute_bounds_for_param): New.
7406 (type_for_level): Removed.
7407 (type_for_clast_for): Removed level parameter. Do not call
7409 (graphite_create_new_loop): Store the lb and ub for the clast_name
7410 of the iterator of the loop that has been generated.
7411 (graphite_create_new_loop_guard): Remove parameter level.
7412 (create_params_index): Store the lb and ub of each parameter.
7413 (gloog): Use free_clast_name_index. Pass to create_params_index
7416 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
7418 * graphite-clast-to-gimple.c (max_signed_precision_type): Removed.
7419 (max_precision_type): Inline max_signed_precision_type.
7420 (type_for_clast_red): Use max_precision_type.
7421 (type_for_clast_bin): Same.
7422 (type_for_clast_for): Same.
7424 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
7426 * graphite-clast-to-gimple.c (gcc_type_for_interval): Renamed
7428 (gcc_type_for_value): Renamed type_for_value.
7429 (gcc_type_for_clast_term): Renamed type_for_clast_term.
7430 (gcc_type_for_clast_expr): Renamed type_for_clast_expr.
7431 (gcc_type_for_clast_red): Renamed type_for_clast_red.
7432 (gcc_type_for_clast_bin): Renamed type_for_clast_bin.
7433 (gcc_type_for_clast_eq): Renamed type_for_clast_eq.
7434 (graphite_translate_clast_equation): Update calls.
7435 (compute_type_for_level): Renamed type_for_level.
7436 (gcc_type_for_iv_of_clast_loop): Renamed type_for_clast_for.
7437 (build_iv_mapping): Update calls.
7438 (graphite_create_new_loop_guard): Same.
7440 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
7442 * graphite-clast-to-gimple.c (clast_get_body_of_loop): Add fixme
7445 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
7447 * graphite-clast-to-gimple.c (struct ivs_params): New.
7448 (clast_name_to_gcc): Use ivs_params to pass around parameters.
7449 (clast_to_gcc_expression): Same.
7450 (clast_to_gcc_expression_red): Same.
7451 (gcc_type_for_clast_term): Same.
7452 (gcc_type_for_clast_expr): Same.
7453 (gcc_type_for_clast_red): Same.
7454 (gcc_type_for_clast_bin): Same.
7455 (gcc_type_for_clast_eq): Same.
7456 (graphite_translate_clast_equation): Same.
7457 (graphite_create_guard_cond_expr): Same.
7458 (graphite_create_new_guard): Same.
7459 (graphite_create_new_loop): Same.
7460 (build_iv_mapping): Same.
7461 (translate_clast_user): Same.
7462 (graphite_create_new_loop_guard): Same.
7463 (translate_clast): Same.
7464 (translate_clast_for_loop): Same.
7465 (translate_clast_for): Same.
7466 (translate_clast_guard): Same.
7467 (initialize_cloog_names): Fix typo.
7468 (gloog): Initialize an ivs_params struct, pass it to translate_clast.
7470 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
7472 * graphite-clast-to-gimple.c (struct clast_name_index): Add level.
7473 (new_clast_name_index): Add level parameter.
7474 (clast_name_to_level): New.
7475 (save_clast_name_index): Add level parameter.
7476 (newivs_to_depth_to_newiv): Removed.
7477 (clast_name_to_gcc): Inlined newivs_to_depth_to_newiv.
7478 (graphite_create_new_loop): Add level parameter. Pass level to
7479 save_clast_name_index.
7480 (translate_clast_for_loop): Pass level to graphite_create_new_loop.
7481 (create_params_index): Pass level to save_clast_name_index.
7483 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
7485 * graphite-clast-to-gimple.c (graphite_create_new_loop): Do not
7486 recompute type, lb, and ub. Get them from...
7487 (graphite_create_new_loop_guard): ...here. Pass in parameter
7488 pointers to type, lb, and ub.
7489 (translate_clast_for_loop): Update function calls.
7490 (translate_clast_for): Same.
7492 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
7494 * graphite-clast-to-gimple.c (compute_bounds_for_level): Call
7496 (translate_clast_for_loop): Pass loop level to dependency_in_loop_p.
7497 (gcc_type_for_iv_of_clast_loop): Update use of level.
7498 (gloog): Start counting nesting level from 0.
7499 * graphite-clast-to-gimple.h (get_scattering_level): Removed.
7500 * graphite-dependences.c (graphite_carried_dependence_level_k): Call
7501 psct_dynamic_dim on level.
7503 2011-07-21 H.J. Lu <hongjiu.lu@intel.com>
7505 * config/i386/i386.c (ix86_legitimize_address): Convert to
7508 2011-07-21 H.J. Lu <hongjiu.lu@intel.com>
7510 * config/i386/i386.c (function_value_64): Always return pointers
7512 (ix86_promote_function_mode): New.
7513 (TARGET_PROMOTE_FUNCTION_MODE): Likewise.
7515 2011-07-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7517 PR tree-optimization/49749
7518 * tree-ssa-reassoc.c (get_rank): Fix operand scan conditions and
7519 remove no-longer-used maxrank variable.
7521 2011-07-21 Georg-Johann Lay <avr@gjlay.de>
7523 * config/avr/avr.c (final_prescan_insn): Fix printing of rtx_costs.
7525 2011-07-21 Jason Merrill <jason@redhat.com>
7527 * system.h (HAVE_DESIGNATED_UNION_INITIALIZERS): New.
7528 * recog.h (struct insn_data_d): Check it instead of
7529 HAVE_DESIGNATED_INITIALIZERS.
7530 * genoutput.c (output_insn_data): Likewise.
7532 2011-07-21 Richard Guenther <rguenther@suse.de>
7534 PR tree-optimization/49770
7535 * tree-ssa-sccvn.c (valueize_refs_1): Return whether we
7536 valueized any operand. Renamed from ...
7537 (valueize_refs): ... this. New wrapper around valueize_refs_1.
7538 (valueize_shared_reference_ops_from_ref): Return whether we
7539 valueized any operand.
7540 (vn_reference_lookup): Only when we valueized any operand
7541 use the valueized reference for alias analysis. Do not preserve
7542 the original reference tree in this case.
7544 2011-07-21 Uros Bizjak <ubizjak@gmail.com>
7546 * config/i386/i386.c (ix86_decompose_address): Reject all but
7547 register operands and subregs of DImode hard registers in index.
7549 2011-07-21 Kai Tietz <ktietz@redhat.com>
7551 * fold-const.c (fold_unary_loc): Preserve indirect
7552 comparison cast to none-boolean type.
7553 * tree-ssa.c (useless_type_conversion_p): Preserve cast
7554 from/to boolean-type.
7555 * gimplify.c (gimple_boolify): Handle boolification of comparisons.
7556 (gimplify_expr): Boolifiy non aggregate-typed comparisons.
7557 * tree-cfg.c (verify_gimple_comparison): Check result
7558 type of comparison expression.
7559 * tree-ssa-forwprop.c (forward_propagate_comparison): Adjust test
7560 of condition result and disallow type-cast sinking into comparison.
7562 2011-07-21 Richard Guenther <rguenther@suse.de>
7564 * tree-ssa-forwprop.c (combine_conversions): Return whether
7565 we have to run cfg-cleanup. Properly remove dead stmts.
7566 (ssa_forward_propagate_and_combine): Adjust.
7568 2011-07-21 Richard Sandiford <richard.sandiford@linaro.org>
7570 * regcprop.c (maybe_mode_change): Check HARD_REGNO_MODE_OK.
7572 2011-07-21 Kai Tietz <ktietz@redhat.com>
7574 * tree-ssa-propagate.c (substitute_and_fold): Use
7575 do_dce flag to deside, if BB's statements are scanned
7576 in last to first, or first to last order.
7578 2011-07-21 Georg-Johann Lay <avr@gjlay.de>
7580 * config/avr/avr.c (avr_rtx_costs): Set cost of CONST, LABEL_REF to 0.
7582 2011-07-20 H.J. Lu <hongjiu.lu@intel.com>
7583 Uros Bizjak <ubizjak@gmail.com>
7584 Richard Henderson <rth@redhat.com>
7586 * config/i386/constraints.md (w): New.
7588 * config/i386/i386.c (ix86_output_addr_vec_elt): Check
7589 TARGET_LP64 instead of TARGET_64BIT for ASM_QUAD.
7591 * config/i386/i386.h (CASE_VECTOR_MODE): Check TARGET_LP64
7592 instead of TARGET_64BIT.
7594 * config/i386/i386.md (indirect_jump): Replace
7595 nonimmediate_operand with indirect_branch_operand.
7596 (*indirect_jump): Likewise. Replace constraint "m" with "w".
7597 (tablejump): Replace nonimmediate_operand with indirect_branch_operand.
7598 Convert operand 0 to Pmode for x32 if not PIC.
7599 (*tablejump_1): Replace nonimmediate_operand with
7600 indirect_branch_operand. Replace constraint "m" with "w".
7601 (*call_vzeroupper): Replace constraint "m" with "w".
7603 (*call_rex64_ms_sysv_vzeroupper): Likewise.
7604 (*call_rex64_ms_sysv): Likewise.
7605 (*call_value_vzeroupper): Likewise.
7606 (*call_value): Likewise.
7607 (*call_value_rex64_ms_sysv_vzeroupper): Likewise.
7608 (*call_value_rex64_ms_sysv): Likewise.
7609 (set_got_offset_rex64): Check TARGET_LP64 instead of TARGET_64BIT.
7611 * config/i386/predicates.md (indirect_branch_operand): New.
7612 (call_insn_operand): Support x32.
7614 2011-07-20 Michael Eager <eager@eagercon.com>
7616 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): Default to 12.
7618 2011-07-20 Richard Henderson <rth@redhat.com>
7620 * cfg.c (dump_bb_info): Dump basic_block->flags.
7621 * cfgrtl.c (print_rtl_with_bb): Use dump_bb_info.
7623 2011-07-20 Uros Bizjak <ubizjak@gmail.com>
7625 * config/i386/i386.c (ix86_decompose_address): Allow only subregs
7626 of DImode hard registers in index.
7627 (ix86_legitimate_address_p): Allow subregs of base and index to span
7628 more than a word. Assert that subregs of base and index satisfy
7629 register_no_elim_operand predicates. Reject addresses where
7630 base and index have different modes.
7632 2011-07-20 Robert Millan <rmh@gnu.org>
7634 * config.gcc (mips*-*-linux*): Remove redundant tm_file entry.
7636 2011-07-20 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7638 * bb-reorder.c (fix_crossing_conditional_branches): Fix crash by
7639 removing now-unnecessary assignment.
7641 2011-07-20 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7643 * emit-rtl.c (set_mem_attributes_minus_bitpos): Restore setting
7644 memory address space to the type's address space.
7646 2011-07-20 Georg-Johann Lay <avr@gjlay.de>
7650 * config/avr/avr.md (mulhi3): Use register_or_s9_operand for operand2
7651 and expand appropriately if there is a CONST_INT in operand2.
7652 (usmulqihi3): New insn.
7653 (*sumulqihi3): New insn.
7654 (*osmulqihi3): New insn.
7655 (*oumulqihi3): New insn.
7656 (*muluqihi3.uconst): New insn_and_split.
7657 (*muluqihi3.sconst): New insn_and_split.
7658 (*mulsqihi3.sconst): New insn_and_split.
7659 (*mulsqihi3.uconst): New insn_and_split.
7660 (*mulsqihi3.oconst): New insn_and_split.
7661 (*ashifthi3.signx.const): New insn_and_split.
7662 (*ashifthi3.signx.const7): New insn_and_split.
7663 (*ashifthi3.zerox.const): New insn_and_split.
7664 (mulsqihi3): New insn.
7665 (muluqihi3): New insn.
7666 (muloqihi3): New insn.
7667 * config/avr/predicates.md (const_2_to_7_operand): New.
7668 (const_2_to_6_operand): New.
7673 (register_or_s9_operand): New.
7675 2011-07-20 Kai Tietz <ktietz@redhat.com>
7677 * builtins.c (fold_builtin_expect): See through the cast
7678 from truthvalue_type_node to long.
7680 2011-07-20 Michael Meissner <meissner@linux.vnet.ibm.com>
7682 * config/rs6000/vsx.md (vsx_fma*): Use 4 argument fma instructions
7683 where we can use them from the standard and altivec instruction
7684 sets, instead of always using the 3 operand VSX forms that require
7685 the destination to overlap one of the inputs.
7690 * config/rs6000/rs6000.md (fmadf4_fpr): Set fp_type fp_maddsub_d
7692 (fmsdf4_fpr): Ditto.
7693 (nfmadf4_fpr): Ditto.
7694 (nfmsdf4_fpr): Ditto.
7696 2011-07-20 Sandra Loosemore <sandra@codesourcery.com>
7698 * genrecog.c (make_insn_sequence): Correct position numbering
7699 when filtering out match_scratch and match_dup.
7701 2011-07-20 Richard Guenther <rguenther@suse.de>
7703 * tree-ssa-forwprop.c (remove_prop_source_from_use): Robustify
7704 against already removed statements.
7705 (forward_propagate_into_comparison): Remove dead defining stmts.
7706 (forward_propagate_into_gimple_cond): Likewise.
7707 (forward_propagate_into_cond): Simplify.
7708 (ssa_forward_propagate_and_combine): Handle changed cfg from
7709 forward_propagate_into_comparison.
7710 * tree-ssa-phiopt.c (conditional_replacement): Use proper
7711 locations for newly built statements.
7713 2011-07-20 Georg-Johann Lay <avr@gjlay.de>
7715 * config/avr/avr.c (avr_rtx_costs): Set cost of SYMBOL_REF to 0.
7717 2011-07-20 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7719 * config/s390/s390.c (s390_class_max_nregs): Fix return type.
7720 * config/s390/s390-protos.h (s390_class_max_nregs): Likewise.
7722 2011-07-20 Richard Guenther <rguenther@suse.de>
7725 * tree.c (integer_all_onesp): Use TYPE_PRECISION, not mode precision.
7726 * tree-ssa-forwprop.c (simplify_bitwise_binary): Remove bogus
7727 ADDR_EXPR folding. Canonicalize X ^ ~0 as ~X.
7729 2011-07-20 Vladimir Makarov <vmakarov@redhat.com>
7731 * config/frv/frv.c (frv_register_move_cost): Define explicitly
7732 costs for subclasses of GR_REGS.
7734 2011-07-20 Uros Bizjak <ubizjak@gmail.com>
7737 * config/i386/predicates.md (no_seg_addres_operand): No more special.
7738 * config/i386/i386.c (ix86_decompose_address): Allow only subregs
7739 of DImode hard registers in base.
7740 (ix86_legitimate_address_p): Allow SImode and DImode base and index
7743 2011-07-20 Richard Guenther <rguenther@suse.de>
7745 * tree-ssa-structalias.c (new_var_info): Allocate oldsolution lazily.
7746 (unify_nodes): Deal with that.
7747 (solve_graph): Likewise.
7749 2011-07-20 Chung-Lin Tang <cltang@codesourcery.com>
7751 * config/arm/arm.c (arm_canonicalize_comparison): Add case to
7752 canonicalize left operand from ZERO_EXTEND to AND.
7754 2011-07-20 Anatoly Sokolov <aesok@post.ru>
7756 * target.def (class_max_nregs): New hook.
7757 * doc/tm.texi.in (TARGET_CLASS_MAX_NREGS): Document.
7758 * doc/tm.texi: Regenerate.
7759 * targhooks.c (default_class_max_nregs): New function.
7760 * targhooks.h (default_class_max_nregs): Declare.
7761 * ira.h (target_ira): Change type x_ira_reg_class_max_nregs and
7762 x_ira_reg_class_min_nregs arrays to unsigned char.
7763 * ira.c (setup_reg_class_nregs): Use TARGET_CLASS_MAX_NREGS target
7764 hook instead of CLASS_MAX_NREGS macro.
7765 * reginfo.c (restore_register_info): Ditto.
7766 * ira-conflicts.c (process_regs_for_copy): Use
7767 ira_reg_class_max_nregs array instead of CLASS_MAX_NREGS macro.
7768 Change type rclass and aclass vars to reg_class_t.
7769 * ira-costs.c (record_reg_classes): Use ira_reg_class_max_nregs
7770 array instead of CLASS_MAX_NREGS macro. Change type rclass var to
7772 * reload.c (combine_reloads, find_reloads, find_reloads_address_1):
7773 Use ira_reg_class_max_nregs array instead of CLASS_MAX_NREGS macro.
7775 * config/i386/i386.h (CLASS_MAX_NREGS): Remove.
7776 * config/i386/i386.c (ix86_class_max_nregs): New function.
7777 (ix86_register_move_cost): Use TARGET_CLASS_MAX_NREGS target hook
7778 instead of CLASS_MAX_NREGS macro.
7779 (TARGET_CLASS_MAX_NREGS): Define.
7780 * config/avr/avr.h (CLASS_MAX_NREGS): Remove.
7781 * config/avr/avr-protos.h (class_max_nregs): Remove declaration.
7782 * config/avr/avr.c (class_max_nregs): Remove function.
7783 * config/alpha/alpha.h (CLASS_MAX_NREGS): Remove.
7784 * config/spu/spu.h (CLASS_MAX_NREGS): Remove.
7785 * config/mep/mep.h (CLASS_MAX_NREGS): Remove.
7786 * config/m32r/m32r.h (CLASS_MAX_NREGS): Remove.
7787 * config/microblaze/microblaze.h (CLASS_MAX_NREGS): Remove.
7788 * config/xtensa/xtensa.h (CLASS_MAX_NREGS): Remove.
7789 * config/stormy16/stormy16.h (CLASS_MAX_NREGS): Remove.
7790 * config/lm32/lm32.h (CLASS_MAX_NREGS): Remove.
7791 * config/moxie/moxie.h (CLASS_MAX_NREGS): Remove.
7792 * config/iq2000/iq2000.h (CLASS_MAX_NREGS): Remove.
7793 * config/mn10300/mn10300.h (CLASS_MAX_NREGS): Remove.
7794 * config/score/score.h (CLASS_MAX_NREGS): Remove.
7795 * config/vax/vax.h (CLASS_MAX_NREGS): Remove.
7796 * config/h8300/h8300.h (CLASS_MAX_NREGS): Remove.
7797 * config/v850/v850.h (CLASS_MAX_NREGS): Remove.
7799 2011-07-19 Eric Botcazou <ebotcazou@adacore.com>
7801 * cif-code.def (OVERWRITABLE): Fix typo and move around.
7802 (TARGET_OPTIMIZATION_MISMATCH): Delete.
7803 (EH_PERSONALITY): Fix typo.
7804 (NON_CALL_EXCEPTIONS): Fix message.
7805 (OPTIMIZATION_MISMATCH): Adjust message.
7806 * ipa-inline.c (can_inline_edge_p): Use CIF_OPTIMIZATION_MISMATCH.
7808 2011-07-19 Ian Lance Taylor <iant@google.com>
7810 * doc/install.texi (Configuration): Document
7811 --enable-build-poststage1-with-cxx.
7813 2011-07-19 Robert Millan <rmh@gnu.org>
7815 * config/mips/gnu-user.h: Copy from linux.h. Update comments.
7816 (GLIBC_DYNAMIC_LINKER): Remove.
7818 * config/mips/gnu-user64.h: Copy from linux64.h. Update comments.
7819 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64)
7820 (GLIBC_DYNAMIC_LINKERN32, UCLIBC_DYNAMIC_LINKERN32)
7821 (BIONIC_DYNAMIC_LINKERN32, GNU_USER_DYNAMIC_LINKERN32): Remove.
7822 (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32,
7823 GNU_USER_DYNAMIC_LINKER64 and GNU_USER_LINK_EMULATIONN32.
7825 * config/mips/linux.h: Remove everything except for ...
7826 (GLIBC_DYNAMIC_LINKER): ... this macro.
7828 * config/mips/linux64.h: Remove everything except for ...
7829 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64)
7830 (GLIBC_DYNAMIC_LINKERN32, UCLIBC_DYNAMIC_LINKERN32)
7831 (BIONIC_DYNAMIC_LINKERN32): ... these macros.
7832 (GNU_USER_LINK_EMULATION32, GNU_USER_LINK_EMULATION64)
7833 (GNU_USER_LINK_EMULATIONN32): New macros.
7835 * config.gcc (mips64*-*-linux* | mipsisa64*-*-linux* | mips-*-linux*):
7836 Use the new headers.
7838 2011-07-19 Richard Sandiford <rdsandiford@googlemail.com>
7840 * rtl.h (mem_attrs): Turn offset and size fields into HOST_WIDE_INTs.
7841 Add offset_known_p and size_known_p fields.
7842 (MEM_OFFSET_KNOWN_P): Update accordingly.
7843 (MEM_OFFSET, MEM_SIZE_KNOWN_P, MEM_SIZE): Likewise.
7844 * emit-rtl.c (mem_attrs_htab_hash): Update after mem_attrs changes.
7845 (mem_attrs_eq_p, set_mem_attributes_minus_bitpos, set_mem_offset)
7846 (clear_mem_offset, set_mem_size, clear_mem_size, change_address)
7847 (adjust_address_1, widen_memory_access, set_mem_attrs_for_spill)
7848 (init_emit_regs): Likewise.
7850 2011-07-19 Richard Sandiford <rdsandiford@googlemail.com>
7852 * doc/rtl.texi (MEM_OFFSET_KNOWN_P): Document.
7853 (MEM_OFFSET): Change from returning an rtx to returning a
7855 * rtl.h (MEM_OFFSET_KNOWN_P): New macro.
7856 (MEM_OFFSET): Return a HOST_WIDE_INT rather than an rtx.
7857 * emit-rtl.h (set_mem_offset): Take a HOST_WIDE_INT rather than an rtx.
7858 (clear_mem_offset): Declare.
7859 * alias.c (ao_ref_from_mem): Adjust uses of MEM_OFFSET, using
7860 MEM_OFFSET_KNOWN_P to test whether the offset is known, and
7861 MEM_OFFSET to get a HOST_WIDE_INT offset.
7862 (nonoverlapping_memrefs_p): Likewise. Adjust calls to...
7863 (adjust_offset_for_component_ref): Take a bool "known_p"
7864 parameter and a HOST_WIDE_INT "offset" parameter.
7865 * builtins.c (get_memory_rtx): As for ao_ref_from_mem.
7866 Adjust calls to set_mem_offset, passing a HOST_WIDE_INT rather
7867 than an rtx. Use clear_mem_offset to clear the offset.
7868 * cfgcleanup.c (merge_memattrs): Likewise.
7869 * dwarf2out.c (tls_mem_loc_descriptor): Likewise.
7870 * function.c (assign_parm_find_stack_rtl): Likewise.
7871 (assign_parm_setup_stack): Likewise.
7872 * print-rtl.c (print_rtx): Likewise.
7873 * reload.c (find_reloads_subreg_address): Likewise.
7874 * simplify-rtx.c (delegitimize_mem_from_attrs): Likewise.
7875 * var-tracking.c (INT_MEM_OFFSET): Likewise.
7876 * emit-rtl.c (set_reg_attrs_from_value): Likewise.
7877 (get_mem_align_offset): Likewise.
7878 (set_mem_offset): Take a HOST_WIDE_INT rather than an rtx.
7879 (clear_mem_offset): New function.
7880 * config/mips/mips.c (r10k_safe_mem_expr_p): Take a HOST_WIDE_INT
7881 offset rather than an rtx. Assume both the expressio and offset
7883 (r10k_needs_protection_p_1): Update accordingly, checking the
7884 expression and offset availability here instead.
7886 2011-07-19 Richard Sandiford <rdsandiford@googlemail.com>
7888 * doc/rtl.texi (MEM_SIZE_KNOWN_P): Document.
7889 (MEM_SIZE): Change from returning an rtx to returning a HOST_WIDE_INT.
7890 * rtl.h (MEM_SIZE_KNOWN_P): New macro.
7891 (MEM_SIZE): Return a HOST_WIDE_INT rather than an rtx.
7892 * emit-rtl.h (set_mem_size): Take a HOST_WIDE_INT rather than an rtx.
7893 (clear_mem_size): Declare.
7894 * emit-rtl.c (set_mem_size): Take a HOST_WIDE_INT rather than an rtx.
7895 (clear_mem_size): New function.
7896 * alias.c (ao_ref_from_mem): Adjust uses of MEM_SIZE, using
7897 MEM_SIZE_KNOWN_P to test whether the size is known, and MEM_SIZE
7898 to get a HOST_WIDE_INT size. Adjust calls to set_mem_size,
7899 passing a HOST_WIDE_INT rather than an rtx. Use clear_mem_size
7901 (nonoverlapping_memrefs_p): Likewise.
7902 * builtins.c (get_memory_rtx, expand_builtin_memcmp): Likewise.
7903 (expand_builtin_init_trampoline): Likewise.
7904 * calls.c (compute_argument_addresses): Likewise.
7905 * cfgcleanup.c (merge_memattrs): Likewise.
7906 * dce.c (find_call_stack_args): Likewise.
7907 * dse.c (record_store, scan_insn): Likewise.
7908 * dwarf2out.c (dw_sra_loc_expr): Likewise.
7909 * expr.c (emit_block_move_hints): Likewise.
7910 * function.c (assign_parm_find_stack_rtl): Likewise.
7911 * print-rtl.c (print_rtx): Likewise.
7912 * reload.c (find_reloads_subreg_address): Likewise.
7913 * rtlanal.c (may_trap_p_1): Likewise.
7914 * var-tracking.c (track_expr_p): Likewise.
7915 * varasm.c (assemble_trampoline_template): Likewise.
7916 * config/arm/arm.c (arm_print_operand): Likewise.
7917 * config/h8300/h8300.c (h8sx_emit_movmd): Likewise.
7918 * config/i386/i386.c (expand_movmem_via_rep_mov): Likewise.
7919 (expand_setmem_via_rep_stos, expand_constant_movmem_prologue)
7920 (expand_constant_setmem_prologue): Likewise.
7921 * config/mips/mips.c (mips_get_unaligned_mem): Likewise.
7922 * config/rs6000/rs6000.c (expand_block_move): Likewise.
7923 (adjacent_mem_locations): Likewise.
7924 * config/s390/s390.c (s390_expand_setmem): Likewise.
7925 (s390_expand_insv): Likewise.
7926 * config/s390/s390.md (*extzv<mode>, *extv<mode>): Likewise.
7927 (*extendqi<mode>2_short_displ): Likewise.
7928 * config/sh/sh.c (expand_block_move): Likewise.
7929 * config/sh/sh.md (extv, extzv): Likewise.
7931 2011-07-19 Richard Sandiford <rdsandiford@googlemail.com>
7933 * emit-rtl.c (mem_attrs_eq_p): New function, split out from...
7934 (mem_attrs_htab_eq): ...here.
7935 (find_mem_attrs): Replace with...
7936 (set_mem_attrs): ...this function. Take a mem_attrs structure
7937 rather than individual fields.
7938 (set_mem_attributes_minus_bitpos, set_mem_alias_set)
7939 (set_mem_addr_space, set_mem_align, set_mem_expr, set_mem_offset)
7940 (set_mem_size, change_address, adjust_address_1, offset_address)
7941 (widen_memory_access, get_spill_slot_decl, set_mem_attrs_for_spill):
7944 2011-07-19 Richard Sandiford <rdsandiford@googlemail.com>
7946 * rtl.h (MEM_ALIAS_SET, MEM_EXPR, MEM_OFFSET, MEM_ADDR_SPACE)
7947 (MEM_SIZE, MEM_ALIGN): Redefine in terms of get_mem_attrs.
7948 Provide a dummy definition of MEM_ADDR_SPACE for generators.
7949 (target_rtl): Add x_mode_mem_attrs.
7950 (mode_mem_attrs): New macro.
7951 (get_mem_attrs): New function.
7952 * emit-rtl.c (get_mem_attrs): Rename to...
7953 (find_mem_attrs): ...this.
7954 (set_mem_attributes_minus_bitpos, set_mem_alias_set)
7955 (set_mem_addr_space, set_mem_align, set_mem_expr, set_mem_offset)
7956 (set_mem_size, change_address, adjust_address_1, offset_address)
7957 (widen_memory_access, get_spill_slot_decl, set_mem_attrs_for_spill):
7959 (init_emit_regs): Initialize mode_mem_attrs.
7961 2011-07-19 Richard Guenther <rguenther@suse.de>
7963 * tree-ssa-forwprop.c (lookup_logical_inverted_value): Remove
7964 TRUTH_*_EXPR handling.
7965 * tree-ssa-operands.c (get_expr_operands): Likewise.
7966 * tree-ssa-pre.c (fully_constant_expression): Likewise.
7967 * tree-ssa-uninit.c (use_pred_not_overlap_with_undef_path_pre):
7969 (is_and_or_or): Likewise.
7970 (is_norm_cond_subset_of): Likewise.
7972 2011-07-19 Richard Guenther <rguenther@suse.de>
7974 * tree.h (fold_build_pointer_plus_loc): New helper function.
7975 (fold_build_pointer_plus_hwi_loc): Likewise.
7976 (fold_build_pointer_plus): Define.
7977 (fold_build_pointer_plus_hwi): Likewise.
7978 * builtins.c (std_gimplify_va_arg_expr): Use fold_build_pointer_plus.
7979 (fold_builtin_memory_op): Likewise.
7980 (fold_builtin_stpcpy): Likewise.
7981 (fold_builtin_memchr): Likewise.
7982 (fold_builtin_strstr): Likewise.
7983 (fold_builtin_strchr): Likewise.
7984 (fold_builtin_strrchr): Likewise.
7985 (fold_builtin_strpbrk): Likewise.
7986 (fold_builtin_strcat): Likewise.
7987 (expand_builtin_memory_chk): Likewise.
7988 (fold_builtin_memory_chk): Likewise.
7989 * c-typeck.c (build_unary_op): Likewise.
7990 * cgraphunit.c (thunk_adjust): Likewise.
7991 * fold-const.c (build_range_check): Likewise.
7992 (fold_binary_loc): Likewise.
7993 * omp-low.c (extract_omp_for_data): Likewise.
7994 (expand_omp_for_generic): Likewise.
7995 (expand_omp_for_static_nochunk): Likewise.
7996 (expand_omp_for_static_chunk): Likewise.
7997 * tree-affine.c (add_elt_to_tree): Likewise.
7998 * tree-data-ref.c (split_constant_offset_1): Likewise.
7999 * tree-loop-distribution.c (generate_memset_zero): Likewise.
8000 * tree-mudflap.c (mf_xform_derefs_1): Likewise.
8001 * tree-predcom.c (ref_at_iteration): Likewise.
8002 * tree-ssa-address.c (tree_mem_ref_addr): Likewise.
8003 (add_to_parts): Likewise.
8004 (create_mem_ref): Likewise.
8005 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Likewise.
8006 * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Likewise.
8007 (number_of_iterations_le): Likewise.
8008 * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Likewise.
8009 * tree-vect-data-refs.c (vect_analyze_data_refs): Likewise.
8010 (vect_create_addr_base_for_vector_ref): Likewise.
8011 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer): Likewise.
8012 (vect_create_cond_for_alias_checks): Likewise.
8013 * tree-vrp.c (extract_range_from_assert): Likewise.
8014 * config/alpha/alpha.c (alpha_va_start): Likewise.
8015 (alpha_gimplify_va_arg_1): Likewise.
8016 * config/i386/i386.c (ix86_va_start): Likewise.
8017 (ix86_gimplify_va_arg): Likewise.
8018 * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
8019 * config/mep/mep.c (mep_expand_va_start): Likewise.
8020 (mep_gimplify_va_arg_expr): Likewise.
8021 * config/mips/mips.c (mips_va_start): Likewise.
8022 (mips_gimplify_va_arg_expr): Likewise.
8023 * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
8024 * config/rs6000/rs6000.c (rs6000_va_start): Likewise.
8025 (rs6000_gimplify_va_arg): Likewise.
8026 * config/s390/s390.c (s390_va_start): Likewise.
8027 (s390_gimplify_va_arg): Likewise.
8028 * config/sh/sh.c (sh_va_start): Likewise.
8029 (sh_gimplify_va_arg_expr): Likewise.
8030 * config/sparc/sparc.c (sparc_gimplify_va_arg): Likewise.
8031 * config/spu/spu.c (spu_va_start): Likewise.
8032 (spu_gimplify_va_arg_expr): Likewise.
8033 * config/stormy16/stormy16.c (xstormy16_expand_builtin_va_start):
8035 (xstormy16_gimplify_va_arg_expr): Likewise.
8036 * config/xtensa/xtensa.c (xtensa_va_start): Likewise.
8037 (xtensa_gimplify_va_arg_expr): Likewise.
8039 2011-07-19 Richard Guenther <rguenther@suse.de>
8041 * expr.c (expand_expr_real_2): Remove TRUTH_*_EXPR handling.
8042 (expand_expr_real_1): Remove TRUTH_*IF_EXPR and STATEMENT_LIST
8046 * expr.c (expand_expr_real_2): Do not unnecessarily truncate the
8047 result of BIT_*_EXPR to bitfield precision.
8049 2011-07-19 Richard Sandiford <richard.sandiford@linaro.org>
8051 PR tree-optimization/49742
8052 * tree-data-ref.c (get_references_in_stmt): Treat the lhs of a call
8053 as a potential write.
8055 2011-07-19 Richard Guenther <rguenther@suse.de>
8057 * Makefile.in (tree-ssa-forwprop.o): Depend on gimple-pretty-print.h.
8058 * tree-ssa-forwprop.c: Include gimple-pretty-print.h.
8059 (forward_propagate_comparison): Simplify, remove obsolete code.
8061 2011-07-19 Richard Guenther <rguenther@suse.de>
8063 * gimplify.c (gimplify_expr): Gimplify TRUTH_NOT_EXPR as
8064 BIT_XOR_EXPR, same as the RTL expander does.
8065 * tree-cfg.c (verify_expr): Disallow TRUTH_NOT_EXPR in the gimple IL.
8066 (verify_gimple_assign_unary): Likewise.
8067 * tree-ssa-propagate.c (valid_gimple_rhs_p): Disallow TRUTH_*_EXPR.
8068 * tree-ssa-forwprop.c (forward_propagate_comparison): Handle
8069 BIT_NOT_EXPR and BIT_XOR_EXPR instead of TRUTH_NOT_EXPR.
8071 2011-07-19 Jakub Jelinek <jakub@redhat.com>
8073 PR tree-optimization/49768
8074 * gimple-fold.c (fold_nonarray_ctor_reference): Return NULL
8075 if offset is smaller than bitoffset, but offset+size is bigger
8078 2011-07-19 Ira Rosen <ira.rosen@linaro.org>
8080 PR tree-optimization/49771
8081 * tree-vect-loop-manip.c (vect_vfa_segment_size): In case of
8082 zero step, set segment length to the size of the data-ref's type.
8084 2011-07-18 Martin Jambor <mjambor@suse.cz>
8086 * ipa-prop.h: Include alloc-pool.h, all sorts of updates to general
8088 (ipcp_values_pool): Declare.
8089 (ipcp_sources_pool): Likewise.
8090 (ipcp_lattice): Changed to forward declaration.
8091 (ipa_param_descriptor): Removed fields ipcp_lattice, types and
8092 cannot_devirtualize.
8093 (ipa_node_params): New fields descriptors, lattices, known_vals,
8094 clone_for_all_contexts and node dead, removed fields params and
8096 (ipa_set_param_count): Removed.
8097 (ipa_get_param_count): Made to work with descriptors vector.
8098 (ipa_get_param): Updated.
8099 (ipa_param_cannot_devirtualize_p): Removed.
8100 (ipa_param_types_vec_empty): Likewise.
8101 (ipa_set_param_used): New function.
8102 (ipa_get_param_used): Updated to use descriptors vector.
8103 (ipa_func_list): Removed.
8104 (ipa_init_func_list): Removed declaration.
8105 (ipa_push_func_to_list_1): Likewise.
8106 (ipa_pop_func_from_list): Likewise.
8107 (ipa_push_func_to_list): Removed.
8108 (ipa_lattice_from_jfunc): Remove declaration.
8109 (ipa_get_jf_pass_through_result): Declare.
8110 (ipa_get_jf_ancestor_result): Likewise.
8111 (ipa_value_from_jfunc): Likewise.
8112 (ipa_get_lattice): Update.
8113 (ipa_lat_is_single_const): New function.
8114 * ipa-prop.c (ipa_push_func_to_list_1): Removed.
8115 (ipa_init_func_list): Likewise.
8116 (ipa_pop_func_from_list): Likewise.
8117 (ipa_get_param_decl_index): Fix coding style.
8118 (count_formal_params): Removed.
8119 (count_formal_params_1): Renamed to count_formal_params.
8120 (ipa_populate_param_decls): Update to use descriptors vector.
8121 (ipa_initialize_node_params): Likewise.
8122 (visit_ref_for_mod_analysis): Use ipa_set_param_used.
8123 (ipa_analyze_params_uses): Likewise.
8124 (ipa_free_node_params_substructures): Likewise and free also lattices
8126 (duplicate_array): Removed.
8127 (ipa_edge_duplication_hook): Add the new edge to the list of edge
8129 (ipa_node_duplication_hook): Update to use new lattices.
8130 (ipa_free_all_structures_after_ipa_cp): Free alloc pools.
8131 (ipa_free_all_structures_after_iinln): Likewise.
8132 (ipa_write_node_info): Update to use new lattices.
8133 (ipa_read_node_info): Likewise.
8134 (ipa_get_jf_pass_through_result): New function.
8135 (ipa_get_jf_ancestor_result): Likewise.
8136 (ipa_value_from_jfunc): Likewise.
8137 (ipa_cst_from_jfunc): Reimplemented using ipa_value_from_jfunc.
8138 * ipa-cp.c: Reimplemented.
8139 * params.def (PARAM_DEVIRT_TYPE_LIST_SIZE): Removed.
8140 (PARAM_IPA_CP_VALUE_LIST_SIZE): New parameter.
8141 (PARAM_IPA_CP_EVAL_THRESHOLD): Likewise.
8142 * Makefile.in (IPA_PROP_H): Added alloc-pool.h to dependencies.
8143 * doc/invoke.texi (devirt-type-list-size): Removed description.
8144 (ipa-cp-value-list-size): Added description.
8146 2011-07-18 Richard Henderson <rth@redhat.com>
8148 * bb-reorder.c (fix_crossing_conditional_branches): Emit all insns
8149 before calling create_basic_block.
8151 2011-07-18 Jakub Jelinek <jakub@redhat.com>
8154 * tree.c (build_common_builtin_nodes): Register
8155 __builtin_return_address, __cyg_profile_func_enter
8156 and __cyg_profile_func_exit.
8158 2011-07-18 Richard Henderson <rth@redhat.com>
8160 * bb-reorder.c (emit_barrier_after_bb): Split out of ...
8161 (add_labels_and_missing_jumps): ... here.
8162 (fix_up_fall_thru_edges, fix_crossing_conditional_branches): Use it.
8164 2011-07-18 Uros Bizjak <ubizjak@gmail.com>
8167 * config/i386/i386.c (ix86_decompose_address): Allow only subregs
8168 of DImode hard registers in PLUS address chains.
8170 2011-07-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8173 * config.gcc (alpha*-*-linux*): Add crtfastmath.o to extra_parts.
8174 (alpha*-*-freebsd*): Likewise.
8175 (i[34567]86-*-linux*, i[34567]86-*-kfreebsd*-gnu,
8176 i[34567]86-*-knetbsd*-gnu, i[34567]86-*-gnu*,
8177 i[34567]86-*-kopensolaris*-gnu): Add crtprec32.o, crtprec64.o,
8178 crtprec80.o, crtfastmath.o to extra_parts for all targets.
8179 (ia64*-*-elf*): Remove extra_parts.
8180 (sparc-*-linux*): Add crtfastmath.o to extra_parts.
8181 (sparc64-*-linux*): Likewise.
8182 (sparc64-*-freebsd*): Likewise.
8185 * config.gcc (ia64*-*-freebsd*): Remove crtfastmath.o from extra_parts.
8186 (ia64*-*-linux*): Likewise.
8187 (mips64*-*-linux*): Likewise.
8188 (mips*-*-linux*): Likewise.
8190 2011-07-18 David Edelsohn <dje.gcc@gmail.com>
8192 * doc/install.texi (Specific, *-ibm-aix*): AIX assembler bug.
8194 2011-07-18 Richard Guenther <rguenther@suse.de>
8196 * gimplify.c (gimplify_expr): Use input_location, not saved_location
8197 when building new trees.
8199 2011-07-18 Richard Guenther <rguenther@suse.de>
8201 * expr.c (expand_expr_real_2): Properly truncate the BIT_NOT_EXPR
8202 expansion result to bitfield precision if required.
8204 2011-07-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8206 * config.gcc (i[3456x]86-*-netware*): Remove.
8208 * gthr-nks.h: Remove.
8209 * configure.ac (enable_threads): Remove nks.
8210 * configure: Regenerate.
8212 * config/i386/i386.c (ix86_encode_section_info): Remove netware
8214 * config/i386/i386.h (KEEP_AGGREGATE_RETURN_POINTER): Remove
8215 <netware.h> reference.
8217 * config/i386/netware-libgcc.c,
8218 gcc/config/i386/netware-libgcc.def,
8219 gcc/config/i386/netware-libgcc.exp, gcc/config/i386/netware.c,
8220 gcc/config/i386/netware.h, gcc/config/i386/netware.opt,
8221 gcc/config/i386/nwld.c, gcc/config/i386/nwld.h,
8222 gcc/config/i386/t-netware, gcc/config/i386/t-nwld: Remove
8224 * doc/extend.texi (Function Attributes,
8225 callee_pop_aggregate_return): Remove i?86-netware reference.
8226 * doc/install.texi (Configuration, --enable-threads): Remove nks.
8228 2011-07-17 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8232 2010-12-30 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8234 * config/pa/pa.md: Add ",*" condition to 64-bit add/subtract boolean
8237 2011-07-17 Eric Botcazou <ebotcazou@adacore.com>
8240 * tree.c (walk_tree_1) <DECL_EXPR>: Do not walk a pointed-to type.
8242 2011-07-16 Matthias Klose <doko@ubuntu.com>
8244 * doc/install.texi: Document --enable-static-libjava.
8246 2011-07-15 Richard Henderson <rth@redhat.com>
8248 * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
8249 Replace all three arguments by returning a VEC of edges.
8250 (add_labels_and_missing_jumps): Accept a VEC of edges, not bare
8251 pointers and counts.
8252 (fix_edges_for_rarely_executed_code): Merge ...
8253 (rest_of_handle_partition_blocks): ... into...
8254 (partition_hot_cold_basic_blocks): ... here. Return todo items if
8255 any work was performed.
8256 (pass_partition_blocks): Clear todo_flags_finish.
8258 2011-07-15 Paolo Carlini <paolo.carlini@oracle.com>
8259 Jakub Jelinek <jakub@redhat.com>
8260 Jonathan Wakely <jwakely.gcc@gmail.com>
8263 * gthr-posix.h: Do not include <unistd.h> unconditionally; use
8264 _GTHREADS_USE_MUTEX_TIMEDLOCK instead of _POSIX_TIMEOUTS.
8266 2011-07-15 Jason Merrill <jason@redhat.com>
8269 * Makefile.in ($(lang_checks_parallelized)): Allow --extra_opts
8270 rather than --tool_opts.
8272 2011-07-15 Basile Starynkevitch <basile@starynkevitch.net>
8274 * doc/plugins.texi (Building GCC plugins): gengtype needs its
8275 corresponding gtype.state.
8277 2011-07-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8280 * config/pa/pa.md (casesi): Use gen_int_mode instead of GEN_INT.
8282 2011-07-15 Eric Botcazou <ebotcazou@adacore.com>
8285 * doc/md.texi (Standard Names): Document window_save.
8286 * cfgexpand.c (expand_debug_parm_decl): New function extracted from
8287 expand_debug_expr and expand_debug_source_expr. If the target has
8288 a window_save instruction, adjust the ENTRY_VALUE_EXP.
8289 (expand_debug_expr) <SSA_NAME>: Call expand_debug_parm_decl if the
8290 SSA_NAME_VAR is a parameter.
8291 (expand_debug_source_expr) <PARM_DECL>: Call expand_debug_parm_decl.
8292 * var-tracking.c (parm_reg_t): New type and associated vector type.
8293 (windowed_parm_regs): New variable.
8294 (adjust_insn): If the target has a window_save instruction and this
8295 is the instruction, make its effect on parameter registers explicit.
8296 (next_non_note_insn_var_location): New function.
8297 (emit_notes_in_bb): Use it instead of NEXT_INSN throughout.
8298 (vt_add_function_parameter): If the target has a window_save insn,
8299 adjust the incoming RTL and record that in windowed_parm_regs.
8300 (vt_finalize): Free windowed_parm_regs.
8302 2011-07-15 Bernd Schmidt <bernds@codesourcery.com>
8304 * doc/invoke.texi (C6X Options): New section.
8305 * doc/md.texi (TI C6X family): New section.
8306 * config.gcc: Handle tic6x, in particular tic6x-*-elf and
8308 * longlong.h (add_ssaaaa, __umulsidi3, umul_ppmm,
8309 count_leading_zeros, count_trailing_zeros, UMUL_TIME, UDIV_TIME):
8310 Provide C6X definitions.
8311 * config/c6x/c6x.md: New file.
8312 * config/c6x/constraints.md: New file.
8313 * config/c6x/predicates.md: New file.
8314 * config/c6x/c6x-sched.md.in: New file.
8315 * config/c6x/c6x-sched.md: New file.
8316 * config/c6x/gensched.sh: New file.
8317 * config/c6x/c6x-mult.md.in: New file.
8318 * config/c6x/genmult.sh: New file.
8319 * config/c6x/c6x-mult.md: New file.
8320 * config/c6x/sync.md: New file.
8321 * config/c6x/c6x-protos.h: New file.
8322 * config/c6x/sfp-machine.h: New file.
8323 * config/c6x/c6x.c: New file.
8324 * config/c6x/c6x.h: New file.
8325 * config/c6x/crti.s: New file.
8326 * config/c6x/crtn.s: New file.
8327 * config/c6x/lib1funcs.asm: New file.
8328 * config/c6x/c6x-modes.def: New file.
8329 * config/c6x/genopt.sh: New file.
8330 * config/c6x/c6x.opt: New file.
8331 * config/c6x/c6x-tables.opt: New file.
8332 * config/c6x/c6x-opts.h: New file.
8333 * config/c6x/c6x-isas.def: New file.
8334 * config/c6x/elf.h: New file.
8335 * config/c6x/elf-common.h: New file.
8336 * config/c6x/uclinux-elf.h: New file.
8337 * config/c6x/t-c6x: New file.
8338 * config/c6x/t-c6x-elf: New file.
8339 * config/c6x/t-c6x-uclinux: New file.
8340 * config/c6x/t-c6x-softfp: New file.
8341 * config/c6x/gtd.c: New file.
8342 * config/c6x/gtf.c: New file.
8343 * config/c6x/ltd.c: New file.
8344 * config/c6x/ltf.c: New file.
8345 * config/c6x/ged.c: New file.
8346 * config/c6x/gef.c: New file.
8347 * config/c6x/led.c: New file.
8348 * config/c6x/lef.c: New file.
8349 * config/c6x/eqd.c: New file.
8350 * config/c6x/eqf.c: New file.
8351 * config/c6x/libgcc-c6xeabi.ver: New file.
8354 2003-07-10 Eric Botcazou <ebotcazou@libertysurf.fr>
8355 PR rtl-optimization/11320
8356 * sched-int.h (struct deps) [reg_conditional_sets]: New field.
8357 (struct sched_info) [compute_jump_reg_dependencies]: New prototype.
8358 * sched-deps.c (sched_analyze_insn) [JUMP_INSN]: Update call to
8359 current_sched_info->compute_jump_reg_dependencies. Record which
8360 registers are used and which registers are set by the jump.
8361 Clear deps->reg_conditional_sets after a barrier.
8362 Set deps->reg_conditional_sets if the insn is a COND_EXEC.
8363 Clear deps->reg_conditional_sets if the insn is not a COND_EXEC.
8364 (init_deps): Initialize reg_conditional_sets.
8365 (free_deps): Clear reg_conditional_sets.
8366 * sched-ebb.c (compute_jump_reg_dependencies): New prototype.
8367 Mark registers live on entry of the fallthrough block and conditionally
8368 set as set by the jump. Mark registers live on entry of non-fallthrough
8369 blocks as used by the jump.
8370 * sched-rgn.c (compute_jump_reg_dependencies): New prototype.
8371 Mark new parameters as unused.
8373 2011-07-14 Andrew Pinski <pinskia@gmail.com>
8376 * tree-mudflap.c (mf_xform_derefs_1 <case MEM_REF>):
8377 Use fold_build2_loc instead of build2.
8378 Use the correct type for the new tree.
8380 2011-07-14 Bernd Schmidt <bernds@codesourcery.com>
8382 PR rtl-optimization/11320
8383 * config/ia64/ia64.md (load_symptr_low): Show a MEM.
8384 * config/ia64/ia64.c (ia64_expand_load_address): Generate it.
8386 2011-07-14 Georg-Johann Lay <avr@gjlay.de>
8389 * config/avr/avr.md (rotl<mode>3): Generate SCRATCH instead
8391 (*rotw<mode>): Use const_int_operand for operand2.
8392 Use match_scatch for operand3.
8393 (*rotb<mode>): Ditto
8394 * config/avr/avr.c (avr_rotate_bytes): Treat SCRATCH.
8396 2011-07-14 Richard Guenther <rguenther@suse.de>
8398 PR tree-optimization/49651
8399 * tree-ssa-structalias.c (get_constraint_for_1): Properly
8400 handle dereferences with subvariables.
8402 2011-07-14 Richard Guenther <rguenther@suse.de>
8404 * gimple-fold.c (fold_gimple_assign): Remove operand swapping.
8405 (fold_stmt_1): Do it here directly on gimple and as a first thing.
8407 2011-07-14 Richard Guenther <rguenther@suse.de>
8409 * fold-const.c (fold_binary_loc): Convert the !bool_var result,
8410 not bool_var when folding bool_var != 1 or bool_var == 0.
8412 2011-07-14 Bernd Schmidt <bernds@codesourcery.com>
8414 * haifa-sched.c (schedule_insns): Remove outdated comment.
8415 (schedule_block): When computing a known value for TODO_SPEC,
8416 just set it rather than using logical operations.
8417 (try_ready): Likewise. Use a local variable rather than a
8418 pointer to TODO_SPEC. Reorder an if statement to move the
8419 easy case to the then block.
8420 * sched-deps.c (dep_spec_p): New static function.
8421 (update_dep): Use it to decide whether to call
8422 change_spec_dep_to_hard.
8423 (get_back_and_forw_lists): Use it.
8424 (sd_resolve_dep): Likewise.
8425 (init_dep): If !USE_DEPS_LIST, use zero to initialize status.
8426 (haifa_note_mem_dep): Likewise.
8427 (check_dep): Likewise.
8428 (sd_add_dep): Also clear SPECULATIVE bits if not DO_SPECULATION.
8429 (sched_free_deps): Free in two passes.
8431 2011-07-14 Richard Sandiford <richard.sandiford@linaro.org>
8434 * expr.c (all_zeros_p): Undo bogus part of last change.
8436 2011-07-14 Matthias Klose <doko@ubuntu.com>
8438 * doc/extend.texi (optimize attribute): Fix typo.
8440 2011-07-14 Richard Guenther <rguenther@suse.de>
8442 * gimplify.c (gimplify_expr): Only do required conversions.
8444 2011-07-14 Georg-Johann Lay <avr@gjlay.de>
8447 * config/avr/elf.h (TARGET_ASM_SELECT_SECTION): Remove,
8448 i.e. use default_elf_select_section.
8449 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Remove.
8450 (READONLY_DATA_SECTION_ASM_OP): Remove.
8451 (TARGET_ASM_NAMED_SECTION): Move from here...
8452 * config/avr/avr.c: ...to here.
8453 (avr_asm_init_sections): Set unnamed callback of readonly_data_section.
8454 (avr_asm_named_section): Make static.
8456 2011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8459 * config.gcc (extra_parts): Add crtprec32.o crtprec64.o crtprec80.o
8460 and crtfastmath.o for Linux/x86.
8462 2011-07-14 Bernd Schmidt <bernds@codesourcery.com>
8464 * haifa-sched.c: Include "hashtab.h"
8465 (sched_no_dce): New global variable.
8466 (INSN_EXACT_TICK, INSN_TICK_ESTIMATE, FEEDS_BACKTRACK_INSN,
8467 SHADOW_P): New macros.
8468 (last_clock_var, cycle_issued_insns): Move declarations.
8469 (must_backtrack): New static variable.
8470 (struct delay_pair): New structure.
8471 (delay_htab, delay_htab_i2): New static variables.
8472 (delay_hash_i1, delay_hash_i2, delay_i1_eq, delay_i2_eq,
8473 record_delay_slot_pair, pair_delay, add_delay_dependencies): New
8475 (dep_cost_1): If delay pairs exist, try to look up the insns and
8476 use the correct pair delay if we find them.
8477 (rank-for_schedule): Tweak priority for insns that must be scheduled
8478 soon to avoid backtracking.
8479 (queue_insn): Detect conditions which force backtracking.
8480 (ready_add): Likewise.
8481 (struct sched_block_state): Add member shadows_only_p.
8482 (struct haifa_save_data): New structure.
8483 (backtrack_queue): New static variable.
8484 (mark_backtrack_feeds, copy_insn_list, save_backtrack_point,
8485 unschedule_insns_until, restore_last_backtrack_point,
8486 free_topmost_backtrack_point, free_backtrack_queue,
8487 estimate_insn_tick, estimate_shadow_tick): New functions.
8488 (prune_ready_list): New arg shadows_only_p. All callers changed.
8489 If true, remove everything that isn't SHADOW_P. Look up delay
8490 pairs and estimate ticks to avoid scheduling the first insn too early.
8491 (verify_shadows): New function.
8492 (schedule_block): Add machinery to enable backtracking.
8493 (sched_init): Take sched_no_dce into account when setting
8495 (free_delay_pairs): New function.
8496 (init_h_i_d): Initialize INSN_EXACT_TICK.
8497 * Makefile.in (haifa-sched.o): Add $(HASHTAB_H).
8498 * sched-deps.c (sd_unresolve_dep): New function.
8499 * sched-int. (struct haifa_sched_info): New fields save_state
8501 (struct _haifa_insn_data): New fields exact_tick, tick_estimate,
8502 feeds_backtrack_insn and shadow_p.
8503 (DO_BACKTRACKING): New value in enum SCHED_FLAGS.
8504 (sched_no_dce): Declare variable.
8505 (record_delay_slot_pair, free_delay_pairs, add_delay_dependencies,
8506 sd_unresolve_dep): Declare functions.
8507 * modulo-sched.c (sms_sched_info): Clear the two new fields.
8508 * sched-rgn.c (rgn_const_sched_info): Likewise.
8509 * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
8510 * sched-ebb.c (save_ebb_state, restore_ebb_state): New functions.
8511 (ebb_sched_info): Add them for the two new fields.
8512 (add_deps_for_risky_insns): Call add_delay_dependencies.
8514 2011-07-13 Michael Meissner <meissner@linux.vnet.ibm.com>
8516 * config/rs6000/rs6000.opt (-mpointers-to-nested-functions):
8518 * config/rs6000/rs6000.c (rs6000_trampoline_init): Ditto.
8519 (rs6000_call_indirect_aix): Ditto.
8520 * config/rs6000/rs6000.md (call_indirect_aix<ptrsize>): Ditto.
8521 (call_indirect_aix<ptrsize>_internal): Ditto.
8522 (call_indirect_aix<ptrsize>_nor11): Ditto.
8523 (call_indirect_aix<ptrsize>_internal2): Ditto.
8524 (call_value_indirect_aix<ptrsize>): Ditto.
8525 (call_value_indirect_aix<ptrsize>_internal): Ditto.
8526 (call_value_indirect_aix<ptrsize>_nor11): Ditto.
8527 (call_value_indirect_aix<ptrsize>_internal2): Ditto.
8528 * doc/invoke.texi (RS/6000 and PowerPC Options): Ditto.
8530 2011-07-13 Jason Merrill <jason@redhat.com>
8532 * Makefile.in ($(lang_checks_parallelized)): Allow --tool_opts.
8534 2011-07-13 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8536 * config/spu/spu.c (spu_init_libfuncs): Install __clrsbdi2.
8537 * config/spu/spu.md ("clrsb<mode>2"): New expander.
8539 2011-07-13 Thomas Schwinge <thomas@schwinge.name>
8541 * acinclude.m4 (gcc_GAS_CHECK_FEATURE): Use AS_ECHO instead of echo.
8542 * configure: Regenerate.
8544 2011-07-13 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8546 * config/spu/spu.c (TARGET_ASM_FILE_START): Do not define.
8547 (asm_file_start): Remove.
8548 (spu_machine_dependent_reorg): Call compute_bb_for_insn and
8549 free_bb_for_insn around code that modifies insns before
8550 restarting df analysis.
8552 2011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8555 * config/sol2.h (LIB_SPEC): Simplify. Move LIB_THREAD_LDFLAGS_SPEC ...
8556 (LINK_SPEC): ... here.
8558 2011-07-13 Bernd Schmidt <bernds@codesourcery.com>
8560 * haifa-sched.c (struct sched_block_state): New.
8561 (schedule_block): Move some local variables into such a structure.
8563 2011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8565 * config/i386/crtprec.c: Move to ../libgcc/config/i386.
8566 * config/i386/t-crtpc: Remove.
8567 * config/t-darwin (EXTRA_MULTILIB_PARTS): Remove.
8568 * config.gcc (i[34567]86-*-darwin*): Remove i386/t-crtpc from
8570 (x86_64-*-darwin*): Likewise.
8571 (i[34567]86-*-linux*): Likewise.
8572 (x86_64-*-linux*): Likewise.
8574 * config/i386/sol2.h (ENDFILE_SPEC): Redefine.
8575 Handle -mpc32, -mpc64, -mpc80.
8577 2011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8579 * config/alpha/crtfastmath.c: Move to ../libgcc/config/alpha.
8580 * config/alpha/t-crtfm: Remove.
8581 * config/i386/crtfastmath.c: Move to ../libgcc/config/i386.
8582 * config/i386/t-crtfm: Remove.
8583 * config/ia64/crtfastmath.c: Move to ../libgcc/config/ia64.
8584 * config/mips/crtfastmath.c: Move to ../libgcc/config/mips.
8585 * config/sparc/crtfastmath.c: Move to ../libgcc/config/sparc.
8586 * config/sparc/t-crtfm: Remove.
8588 * config.gcc (alpha*-*-linux*): Remove alpha/t-crtfm from tmake_file.
8589 (alpha*-*-freebsd*): Likewise.
8590 (i[34567]86-*-darwin*): Remove i386/t-crtfm from tmake_file.
8591 (x86_64-*-darwin*): Likewise.
8592 (i[34567]86-*-linux*): Likewise.
8593 (x86_64-*-linux*): Likewise.
8594 (x86_64-*-mingw*): Likewise.
8595 (ia64*-*-elf*): Remove crtfastmath.o from extra_parts.
8596 (ia64*-*-freebsd*): Likewise.
8597 (ia64*-*-linux*): Likewise.
8598 (mips64*-*-linux*): Likewise.
8599 (mips*-*-linux*): Likewise.
8600 (sparc-*-linux*): Remove sparc/t-crtfm from tmake_file.
8601 (sparc64-*-linux*): Likewise.
8602 (sparc64-*-freebsd*): Likewise.
8604 2011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8606 * config/darwin-crt2.c: Move to ../libgcc/config/rs6000.
8607 * config/darwin-crt3.c: Move to ../libgcc/config.
8608 * config/t-darwin (EXTRA_MULTILIB_PARTS): Remove.
8609 ($(T)crt3$(objext)): Remove.
8610 * config/rs6000/t-darwin (DARWIN_EXTRA_CRT_BUILD_CFLAGS): Remove.
8611 ($(T)crt2$(objext)): Remove.
8612 * config.gcc (powerpc-*-darwin*): Remove extra_parts.
8613 (powerpc64-*-darwin*): Likewise.
8615 2011-07-13 H.J. Lu <hongjiu.lu@intel.com>
8617 * config/i386/i386.c (x86_output_mi_thunk): Support ptr_mode != Pmode.
8619 * config/i386/i386.md (*addsi_1_zext): Renamed to ...
8620 (addsi_1_zext): This.
8622 2011-07-13 Bernd Schmidt <bernds@codesourcery.com>
8624 * doc/tm.texi.in (TARGET_ASM_MERGEABLE_RODATA_PREFIX): Add hook.
8625 * doc/tm.texi: Regenerate.
8626 * target.def (mergeable_rodata_prefix): New defhookpod.
8627 * varasm.c (mergeable_string_section, mergeable_constant_section):
8628 Use it. Allocate name with alloca.
8630 2011-07-13 H.J. Lu <hongjiu.lu@intel.com>
8632 * doc/invoke.texi (x86): Remove -mfused-madd and add -mfma.
8634 2011-07-13 Richard Sandiford <richard.sandiford@linaro.org>
8636 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Tighten
8639 2011-07-13 Richard Sandiford <richard.sandiford@linaro.org>
8641 * tree.h (categorize_ctor_elements): Remove comment. Fix long line.
8642 (count_type_elements): Delete.
8643 (complete_ctor_at_level_p): Declare.
8644 * expr.c (flexible_array_member_p): New function, split out from...
8645 (count_type_elements): ...here. Make static. Replace allow_flexarr
8646 parameter with for_ctor_p. When for_ctor_p is true, return the
8647 number of elements that should appear in the top-level constructor,
8648 otherwise return an estimate of the number of scalars.
8649 (categorize_ctor_elements): Replace p_must_clear with p_complete.
8650 (categorize_ctor_elements_1): Likewise. Use complete_ctor_at_level_p.
8651 (complete_ctor_at_level_p): New function, borrowing union logic
8652 from old categorize_ctor_elements_1.
8653 (mostly_zeros_p): Return true if the constructor is not complete.
8654 (all_zeros_p): Update call to categorize_ctor_elements.
8655 * gimplify.c (gimplify_init_constructor): Update call to
8656 categorize_ctor_elements. Don't call count_type_elements.
8657 Unconditionally prevent clearing for variable-sized types,
8658 otherwise rely on categorize_ctor_elements to detect
8659 incomplete initializers.
8661 2011-07-13 Richard Guenther <rguenther@suse.de>
8663 * tree-vrp.c (simplify_conversion_using_ranges): Make sure
8664 the final type is integral.
8666 2011-07-13 Bernd Schmidt <bernds@codesourcery.com>
8668 * sched-int.h (struct _dep): Add member cost.
8669 (DEP_COST, UNKNOWN_DEP_COST): New macros.
8670 * sched-deps.c (init_dep_1): Initialize DEP_COST.
8671 * haifa-sched.c (dep_cost_1): Use and set DEP_COST.
8672 (sched_change_pattern): Reset it for dependent insns.
8674 2011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8676 * Makefile.in (CRT0STUFF_T_CFLAGS): Remove.
8677 ($(T)crt0.o, $(T)mcrt0.o, s-crt0): Remove.
8678 * config/i386/netware-crt0.c: Move to ../libgcc/config/i386.
8679 * config/i386/t-nwld (CRTSTUFF_T_CFLAGS, CRT0STUFF_T_CFLAGS): Remove.
8680 (CRT0_S, MCRT0_S): Remove.
8681 ($(T)libgcc.def, $(T)libc.def, $(T)libcpre.def, $(T)posixpre.def):
8684 * config.gcc (i[3456x]86-*-netware*): Remove extra_parts.
8686 2011-07-12 Eric Botcazou <ebotcazou@adacore.com>
8688 * cse.c (insert_with_costs): Put semi-colon after empty loop body
8690 * emit-rtl.c (push_to_sequence): Likewise.
8691 * haifa-sched.c (max_issue): Likewise.
8692 * matrix-reorg.c (add_allocation_site): Likewise.
8693 * postreload-gcse.c (eliminate_partially_redundant_load): Likewise.
8694 * reload.c (alternative_allows_const_pool_ref): Likewise.
8695 * sched-rgn.c (rgn_add_block): Likewise.
8696 (rgn_fix_recovery_cfg): Likewise.
8697 * tree.c (attribute_list_contained): Likewise.
8699 2011-07-12 Uros Bizjak <ubizjak@gmail.com>
8701 * config/i386/i386.c: Tidy processor feature bitmasks.
8704 2011-07-12 Andrew Pinski <pinskia@gmail.com>
8707 * cprop.c (find_implicit_sets): Correct the condition.
8709 2011-07-12 Richard Henderson <rth@redhat.com>
8712 * dwarf2out.h (dwarf_frame_regnum): Remove.
8713 * dwarf2out.c (based_loc_descr): Revert last change. Initialize regno
8714 earlier from DWARF_FRAME_REGNUM. Never use dbx_reg_number.
8715 * dwarf2cfi.c (dw_stack_pointer_regnum, dw_frame_pointer_regnum): New.
8716 (execute_dwarf2_frame): Initialize them.
8717 (DW_STACK_POINTER_REGNUM, DW_FRAME_POINTER_REGNUM): Remove; replace
8718 users of the macros with the variables.
8719 (expand_builtin_dwarf_sp_column): Revert last change.
8720 (expand_builtin_init_dwarf_reg_sizes): Likewise. Compute the
8721 result of DWARF_FRAME_REGNUM into a local variable.
8723 2011-07-12 Richard Henderson <rth@redhat.com>
8726 * config/i386/i386.c (x86_output_mi_thunk): Use
8727 machopic_indirect_call_target instead of machopic_indirection_name
8730 2011-07-12 Laurent GUERBY <laurent@guerby.net>
8731 Eric Botcazou <ebotcazou@adacore.com>
8733 * prefix.h: Wrap up in extern "C" block.
8735 2011-07-12 Harsha Jagasia <harsha.jagasia@amd.com>
8737 AMD bdver2 Enablement
8738 * config.gcc (i[34567]86-*-linux* | ...): Add bdver2.
8739 (case ${target}): Add bdver2.
8740 * config/i386/driver-i386.c (host_detect_local_cpu): Let
8741 -march=native recognize bdver2 processors.
8742 * config/i386/i386-c.c (ix86_target_macros_internal): Add
8743 bdver2 def_and_undef
8744 * config/i386/i386.c (struct processor_costs bdver2_cost): New
8746 (m_BDVER2): New definition.
8747 (m_AMD_MULTIPLE): Includes m_BDVER2.
8748 (initial_ix86_tune_features): Add bdver2 tuning.
8749 (processor_target_table): Add bdver2 entry.
8750 (static const char *const cpu_names): Add bdver2 entry.
8751 (ix86_option_override_internal): Add bdver2 instruction sets.
8752 (ix86_issue_rate): Add bdver2.
8753 (ix86_adjust_cost): Add bdver2.
8754 (has_dispatch): Add bdver2.
8755 * config/i386/i386.h (TARGET_BDVER2): New definition.
8756 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_bdver2.
8757 (enum processor_type): Add PROCESSOR_BDVER2.
8758 * config/i386/i386.md (define_attr "cpu"): Add bdver2.
8759 * config/i386/i386.opt ( mdispatch-scheduler): Add bdver2 to
8762 2011-07-12 Richard Henderson <rth@redhat.com>
8765 * config/i386/i386.c (x86_output_mi_thunk): Fix mode for
8766 destination address in memory on some paths.
8768 2011-07-12 Bernd Schmidt <bernds@codesourcery.com>
8770 * doc/tm.texi.in (FUNCTION_ARG_PADDING): Mention
8771 TARGET_FUNCTION_ARG_ROUND_BOUNDARY.
8772 (TARGET_FUNCTION_ARG_ROUND_BOUNDARY): Add hook.
8773 * function.c (locate_and_pad_parm): Take it into account.
8774 * target.def (function_arg_round_boundary): New hook.
8775 * targhooks.c (default_function_arg_round_boundary): New function.
8776 * targhooks.h (default_function_arg_round_boundary): Declare.
8777 * doc/tm.texi: Regenerate.
8779 2011-07-12 Richard Guenther <rguenther@suse.de>
8781 * tree-ssa-copyrename.c (rename_ssa_copies): Zero statistics.
8782 Do not perform no-op changes.
8784 2011-07-12 Richard Sandiford <richard.sandiford@linaro.org>
8786 * config/arm/predicates.md (neon_struct_operand): Make a normal
8788 (neon_struct_or_register_operand): New predicate.
8789 * config/arm/neon.md (movmisalign<mode>): Replace predicates
8790 with neon_struct_or_register_operand.
8791 (*movmisalign<mode>_neon_store, *movmisalign<mode>_neon_load): Use
8792 neon_struct_operand instead of memory_operand.
8794 2011-07-12 Martin Jambor <mjambor@suse.cz>
8796 * cgraph.h (cgraph_get_node_or_alias): Removed declaration.
8797 * cgraph.c (cgraph_get_node_or_alias): Removed.
8798 (change_decl_assembler_name): Changed all calls to
8799 cgraph_get_node_or_alias to a call to cgraph_get_node.
8800 (cgraph_make_decl_local): Likewise.
8801 * lto-symtab.c (lto_symtab_resolve_symbols): Likewise.
8802 * varasm.c (default_binds_local_p_1): Likewise.
8803 (decl_binds_to_current_def_p): Likewise.
8805 2011-07-12 Jakub Jelinek <jakub@redhat.com>
8807 PR tree-optimization/49712
8808 * tree-ssa-loop-im.c (gen_lsm_tmp_name): Handle TARGET_MEM_REF.
8810 2011-07-11 Bernd Schmidt <bernds@codesourcery.com>
8812 * genautomata.c (add_arc): Return void. All callers changed.
8813 (make_automaton): Remove dead code.
8815 2011-07-11 Richard Henderson <rth@redhat.com>
8817 * dwarf2cfi.c (DW_STACK_POINTER_REGNUM): New.
8818 (DW_FRAME_POINTER_REGNUM): New.
8819 (expand_builtin_init_dwarf_reg_sizes): Use unsigned for rnum.
8820 (def_cfa_1): Do not convert reg to DWARF_FRAME_REGNUM here.
8822 (dwarf2out_flush_queued_reg_saves, dwarf2out_frame_debug_def_cfa,
8823 dwarf2out_frame_debug_adjust_cfa, dwarf2out_frame_debug_cfa_register,
8824 dwarf2out_frame_debug_cfa_expression, dwarf2out_frame_debug_expr):
8826 * dwarf2out.c (based_loc_descr): Use dwarf_frame_regnum.
8827 * dwarf2out.h (dwarf_frame_regnum): New.
8828 (struct cfa_loc): Document the domain of the reg member.
8830 2011-07-11 Uros Bizjak <ubizjak@gmail.com>
8832 * config/i386/i386.c (ix86_trampoline_init): Switch arms of if expr.
8833 Use offset everywhere. Always assert that offset <= TRAMPOLINE_SIZE.
8835 2011-07-11 Jakub Jelinek <jakub@redhat.com>
8838 * dwarf2out.c (int_shift_loc_descriptor): New function.
8839 (int_loc_descriptor): If shorter, emit i as
8840 (i >> shift), shift, DW_OP_shl for suitable shift value.
8841 Similarly, try to optimize large negative values using
8842 DW_OP_neg of a positive value if shorter.
8843 (size_of_int_shift_loc_descriptor): New function.
8844 (size_of_int_loc_descriptor): Adjust to match int_loc_descriptor
8846 (mem_loc_descriptor) <case CONST_INT>: Emit zero-extended constants
8847 that fit into DWARF2_ADDR_SIZE bytes as int_loc_descriptor +
8848 DW_OP_GNU_convert instead of DW_OP_GNU_const_type if the former
8850 (resolve_addr_in_expr): Optimize DW_OP_plus_uconst with a large
8851 addend as added DW_OP_plus if it is shorter.
8853 2011-07-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8855 * config/i386/sol2.h [!USE_GLD] (CTORS_SECTION_ASM_OP): Define.
8856 (DTORS_SECTION_ASM_OP): Define.
8858 2011-07-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8860 * config/dfp-bit.c, config/dfp-bit.h: Move to ../libgcc.
8861 * config/t-dfprules: Move to ../libgcc/config.
8862 * config.gcc (i[34567]86-*-linux*, i[34567]86-*-kfreebsd*-gnu,
8863 i[34567]86-*-knetbsd*-gnu, i[34567]86-*-gnu*,
8864 i[34567]86-*-kopensolaris*-gnu): Remove t-dfprules from tmake_file.
8865 (x86_64-*-linux*, x86_64-*-kfreebsd*-gnu, x86_64-*-knetbsd*-gnu):
8867 (i[34567]86-*-cygwin*): Likewise.
8868 (i[34567]86-*-mingw*, x86_64-*-mingw*): Likewise.
8869 (powerpc-*-linux*, powerpc64-*-linux*): Likewise.
8870 * Makefile.in (D32PBIT_FUNCS, D64PBIT_FUNCS, D128PBIT_FUNCS): Remove.
8871 (libgcc.mvars): Remove DFP_ENABLE, DFP_CFLAGS, D32PBIT_FUNCS,
8872 D64PBIT_FUNCS, D128PBIT_FUNCS.
8874 2011-07-11 Richard Guenther <rguenther@suse.de>
8876 * tree-vrp.c (simplify_conversion_using_ranges): Manually
8877 translate the source value-range through the conversion chain.
8879 2011-07-11 Richard Sandiford <richard.sandiford@linaro.org>
8881 * expr.c (expand_expr_real_1): Use expand_insn for movmisalign.
8883 2011-07-11 Arthur Loiret <aloiret@debian.org>
8885 * config.gcc (s390-*-linux*): If 'enabled_targets' is 'all', build
8886 a bi-arch compiler defaulting to 31-bit. In this case:
8887 (tmake_file): Add s390/t-linux64.
8888 * doc/install.texi: Add s390-linux to the list of targets supporting
8889 --enable-targets=all.
8891 2011-07-11 Arthur Loiret <aloiret@debian.org>
8892 Matthias Klose <doko@debian.org>
8894 * config.gcc (mips*-*-linux*): If 'enabled_targets' is 'all', build
8895 a tri-arch compiler defaulting to 32-bit (ABI o32). In this case:
8896 (tm_file): Add mips/linux64.h.
8897 (tmake_file): Add mips/t-linux64.
8898 (tm_defines): Add MIPS_ABI_DEFAULT=ABI_32.
8899 * config/mips/linux64.h (DRIVER_SELF_SPECS): Use MULTILIB_ABI_DEFAULT
8900 instead of hardcoded mabi=n32.
8901 * config/mips/t-linux64 (MULTILIB_DIRNAMES): Set to 'n32 . 64' if
8902 tm_defines contains MIPS_ABI_DEFAULT ABI_32, to follow the glibc
8905 2011-07-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8907 * passes.c (init_optimization_passes): Add invariant motion pass
8908 after induction variable optimization.
8910 2011-07-11 Georg-Johann Lay <avr@gjlay.de>
8913 * config/avr/avr.c (notice_update_cc): For ashiftrt:QI, only
8914 offsets 1..5 set cc0 in a usable way.
8916 2011-07-11 Romain Geissler <romain.geissler@gmail.com>
8918 * tree.h (call_expr_arg): Remove.
8919 (call_expr_argp): Likewise.
8921 2011-07-11 Eric Botcazou <ebotcazou@adacore.com>
8923 * config/sparc/sparc.md (save_register_window_1): Rename to...
8924 (window_save): ...this.
8925 * config/sparc/sparc.c (emit_save_register_window): Rename to...
8926 (emit_window_save): ...this.
8927 (sparc_expand_prologue): Adjust to above renaming.
8929 2011-07-10 H.J. Lu <hongjiu.lu@intel.com>
8931 * config/i386/i386.c (ix86_trampoline_init): Use movl instead
8934 2011-07-10 Richard Henderson <rth@redhat.com>
8936 * config/i386/i386.c (x86_output_mi_thunk): Generate rtl and
8937 run final, instead of emitting text directly.
8939 2011-07-10 H.J. Lu <hongjiu.lu@intel.com>
8941 * config/i386/i386.c (ix86_option_override_internal): Turn on
8942 OPTION_MASK_ISA_64BIT for TARGET_X32. Only allow small and
8943 small PIC models for TARGET_X32.
8945 2011-07-10 Hans-Peter Nilsson <hp@axis.com>
8948 * config/cris/t-elfmulti (CRTSTUFF_T_CFLAGS): Don't include
8952 * config/cris/cris.c (cris_asm_output_case_end): Robustify against
8953 stray notes and debug insns by using prev_nonnote_nondebug_insn
8954 instead of PREV_INSN.
8956 2011-07-09 Richard Henderson <rth@redhat.com>
8958 * defaults.h (DWARF2_ADDR_SIZE, DWARF_OFFSET_SIZE,
8959 DWARF_TYPE_SIGNATURE_SIZE): Move from ...
8960 * dwarf2out.c: ... here.
8961 (output_all_cfis): Remove.
8962 (dwarf2out_switch_text_section): Use output_cfis directly.
8963 (size_of_locs): Export.
8964 (output_loc_sequence, output_loc_sequence_raw): Export.
8965 (div_data_align, need_data_align_sf_opcode, dwarf_cfi_name, output_cfi,
8966 output_cfi_directive, dwarf2out_emit_cfi, output_cfis, output_cfa_loc,
8967 output_cfa_loc_raw): Move to ...
8968 * dwarfcfi.c: ... here.
8969 * dwarf2out.h: Update decls.
8971 2011-07-09 Richard Henderson <rth@redhat.com>
8973 * defaults.h (DWARF_CIE_DATA_ALIGNMENT, DWARF_FRAME_RETURN_COLUMN,
8974 DWARF_FRAME_REGNUM, DWARF2_FRAME_REG_OUT): Move from ...
8975 * dwarf2cfi.c: ... here.
8976 (PTR_SIZE, DWARF_OFFSET_SIZE, DWARF_INITIAL_LENGTH_SIZE): Remove.
8977 (DWARF_ROUND, DWARF_CIE_ID): Remove.
8978 * dwarf2out.c (INCOMING_RETURN_ADDR_RTX): Remove.
8979 (DWARF2_FRAME_REG_OUT, DWARF_CIE_DATA_ALIGNMENT): Remove.
8980 (DWARF_FRAME_RETURN_COLUMN, DWARF_FRAME_REGNUM): Remove.
8982 2011-07-09 Richard Henderson <rth@redhat.com>
8984 * dwarf2cfi.c (cie_return_save): New.
8985 (queue_reg_save): Use compare_reg_or_pc.
8986 (dwarf2out_flush_queued_reg_saves): Handle pc_rtx as return column.
8987 (dwarf2out_frame_debug_expr): Likewise.
8988 (dwarf2out_frame_debug_cfa_register): Record saved reg for pc too.
8989 (initial_return_save): Likewise.
8990 (execute_dwarf2_frame): Save and restore initial return save from
8992 * config/mips/mips.c (mips_frame_set): Remove special case for
8993 DWARF_FRAME_RETURN_COLUMN.
8995 2011-07-09 Richard Henderson <rth@redhat.com>
8997 * dwarf2cfi.c (lookup_cfa): Remove.
8998 (execute_dwarf2_frame): Assert queues are empty on entry.
8999 Setup initial cfa directly, not via lookup_cfa.
9000 Don't clear args_size state here.
9002 2011-07-09 Richard Henderson <rth@redhat.com>
9004 * dwarf2cfi.c (add_cfi_vec): New.
9005 (add_cfi): Rename from add_fde_cfi. Add the element to add_cfi_vec.
9006 (def_cfa_1, reg_save): Remove for_cie argument. Update all callers.
9007 (execute_dwarf2_frame): Set add_cfi_vec.
9009 2011-07-09 Richard Henderson <rth@redhat.com>
9011 * defaults.h (ASM_COMMENT_START): Move here...
9012 * dwarf2asm.c: ... from here.
9013 * dwarf2out.c, final.c, vmsdbgout.c: Remove duplicates.
9014 * toplev.c: Remove ifndef tests of ASM_COMMENT_START.
9015 * varasm.c: Likewise.
9017 2011-07-09 Richard Henderson <rth@redhat.com>
9020 * dwarf2cfi.c (dwarf2out_frame_debug): Don't set cfi_insn here...
9021 (create_cfi_notes): ... do it here instead.
9023 2011-07-09 Jakub Jelinek <jakub@redhat.com>
9026 * dwarf2out.c (size_of_int_loc_descriptor): New function.
9027 (address_of_int_loc_descriptor): Use it.
9028 (scompare_loc_descriptor): Optimize EQ/NE comparison with constant.
9030 2011-07-09 Richard Henderson <rth@redhat.com>
9032 * config/pdp11/pdp11.md (define_c_enum "unspecv"): New.
9033 (prologue, epilogue): New.
9034 (return, *rts): New.
9035 (blockage, setd, seti): New.
9036 * config/pdp11/pdp11.c (TARGET_ASM_FUNCTION_PROLOGUE): Remove.
9037 (TARGET_ASM_FUNCTION_EPILOGUE): Remove.
9038 (pdp11_saved_regno): New.
9039 (pdp11_expand_prologue): Rename from pdp11_output_function_prologue;
9040 generate rtl instead of text.
9041 (pdp11_expand_epilogue): Similarly from pdp11_output_function_epilogue.
9042 (pdp11_sp_frame_offset): Export. Use pdp11_saved_regno.
9043 * config/pdp11/pdp11-protos.h: Update.
9045 2011-07-09 Richard Henderson <rth@redhat.com>
9047 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Don't
9048 try to insert an rtl prologue here.
9049 (rs6000_output_function_epilogue): Similarly.
9050 * config/rs6000/rs6000.md (prologue): Emit a barrier to
9051 satisfy !TARGET_SCHED_PROLOG.
9052 (epilogue, sibcall_epilogue): Likewise.
9054 2011-07-09 Eric Botcazou <ebotcazou@adacore.com>
9056 * config/sparc/sparc.h (STACK_SAVEAREA_MODE): Move around.
9058 (IN_OR_GLOBAL_P): Likewise.
9060 2011-07-08 Jason Merrill <jason@redhat.com>
9063 * gimplify.c (goa_stabilize_expr): Handle RHS preevaluation in
9064 compound assignment.
9066 * cgraph.c (cgraph_add_to_same_comdat_group): New.
9067 * cgraph.h: Declare it.
9068 * ipa.c (function_and_variable_visibility): Make sure thunks
9069 have the right visibility.
9071 2011-07-08 Richard Henderson <rth@redhat.com>
9074 * dwarf2cfi.c (dwarf2out_frame_debug): Insert cfi notes after
9075 any tablejump vector.
9078 * dwarf2cfi.c (create_cfi_notes): Flush queued saves at the
9079 end of the prologue.
9081 2011-07-08 Jakub Jelinek <jakub@redhat.com>
9084 * config/rs6000/rs6000.c (rs6000_emit_vector_cond_expr): Use
9085 CONST0_RTX (dest_mode) instead of const0_rtx as second operand of NE.
9086 * config/rs6000/vector.md (vector_select_<mode>,
9087 vector_select_<mode>_uns): Change second operand of NE to
9088 CONST0_RTX (<MODE>mode) instead of const0_rtx.
9089 * config/rs6000/altivec.md (*altivec_vsel<mode>,
9090 *altivec_vsel<mode>_uns): Expect second operand of NE to be
9091 zero_constant of the corresponding vector mode.
9092 * config/rs6000/vsx.md (*vsx_xxsel<mode>, *vsx_xxsel<mode>_uns):
9095 2011-07-08 Sebastian Pop <sebastian.pop@amd.com>
9097 * graphite-dependences.c (build_alias_set_powerset): Remove
9098 continue from loop, add one more assert.
9100 2011-07-08 Georg-Johann Lay <avr@gjlay.de>
9103 * config/avr/avr.c (avr_hard_regno_mode_ok): Rewrite.
9104 In particular, allow 8-bit values in r28 and r29.
9105 (avr_hard_regno_scratch_ok): Disallow any register that might be
9106 part of the frame pointer.
9107 (avr_hard_regno_rename_ok): Same.
9108 (avr_legitimate_address_p): Don't allow SUBREGs.
9110 2011-07-08 Julian Brown <julian@codesourcery.com>
9112 * config/arm/neon.md (vec_shr_<mode>, vec_shl_<mode>): Disable in
9114 (reduc_splus_<mode>, reduc_uplus_<mode>, reduc_smin_<mode>)
9115 (reduc_smax_<mode>, reduc_umin_<mode>, reduc_umax_<mode>)
9116 (neon_vec_unpack<US>_lo_<mode>, neon_vec_unpack<US>_hi_<mode>)
9117 (vec_unpack<US>_hi_<mode>, vec_unpack<US>_lo_<mode>)
9118 (neon_vec_<US>mult_lo_<mode>, vec_widen_<US>mult_lo_<mode>)
9119 (neon_vec_<US>mult_hi_<mode>, vec_widen_<US>mult_hi_<mode>)
9120 (vec_pack_trunc_<mode>, neon_vec_pack_trunc_<mode>): Disable for Q
9121 registers in big-endian mode.
9123 2011-07-08 Bernd Schmidt <bernds@codesourcery.com>
9125 * genattrtab.c (evaluate_eq_attr): Allow an attribute to be defined
9126 in terms of another.
9127 (write_attr_value): Write a cast if necessary.
9129 * defaults.h (REG_WORDS_BIG_ENDIAN): Provide a default.
9130 * doc/tm.texi.in (WORDS_BIG_ENDIAN): Mention REG_WORDS_BIG_ENDIAN.
9131 (REG_WORDS_BIG_ENDIAN): Document.
9132 * doc/tm.texi: Regenerate.
9133 * reload.c (operands_match_p): Take it into account.
9134 (reload_adjust_reg_for_mode): Likewise.
9135 * rtlanal.c (subreg_get_info): Likewise.
9137 2011-07-08 Richard Guenther <rguenther@suse.de>
9139 * fold-const.c (fold_binary_loc): Remove index +p PTR -> PTR +p index
9142 2011-07-08 Kai Tietz <ktietz@redhat.com>
9144 * fold-const.c (fold_truth_andor): Factored out truth_andor
9145 label from fold_binary as function.
9146 (fold_binary_loc): Replace truth_andor lable
9147 by function fold_truth_andor.
9149 2011-07-08 Kirill Yukhin <kirill.yukhin@intel.com>
9152 * calls.c (mem_overlaps_already_clobbered_arg_p): Additional
9153 check if address is stored in register. If so - give up.
9154 (check_sibcall_argument_overlap_1): Do not perform check of
9155 overlapping when it is call to address.
9157 2011-07-08 Georg-Johann Lay <avr@gjlay.de>
9159 * config/avr/avr.c (output_reload_insisf): Use 'REG_Z+1' instead
9162 2011-07-08 Bernd Schmidt <bernds@codesourcery.com>
9164 * optabs.c (expand_binop): Use GET_MODE_PRECISION instead of
9165 GET_MODE_BITSIZE where appropriate.
9166 (widen_leading, expand_parity, expand_ctz, expand_ffs,
9167 expand_unop, expand_abs_nojump, expand_one_cmpl_abs_nojump,
9168 expand_float, expand_fix): Likewise.
9169 * expr.c (convert_move, convert_modes, expand_expr_real_2,
9170 expand_expr_real_1, reduce_to_bit_field_precision): Likewise.
9171 * stor-layout.c (get_mode_bounds): Likewise.
9172 * cfgexpand.c (convert_debug_memory_address, expand_debug_expr):
9174 * convert.c (convert_to_integer): Likewise.
9175 * expmed.c (expand_shift_1): Likewise.
9177 * rtlanal.c (nonzero_bits1): Don't compare GET_MODE_SIZE against
9180 * optabs.c (expand_binop): Tighten conditions for doubleword
9182 (widen_bswap): Assert that mode bitsize and precision are the same.
9183 * stor-layout.c (get_best_mode): Skip modes that have lower
9184 precision than bitsize.
9185 * recog.c (simplify_while_replacing): Assert that bitsize and
9186 precision are the same.
9188 2011-07-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9190 * Makefile.in (LIBGCOV): Remove.
9191 (libgcc.mvars): Remove LIBGCOV.
9192 * libgov.c: Move to ../libgcc.
9194 2011-07-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9196 * config/fixed-bit.c, config/fixed-bit.h: Move to ../libgcc.
9198 2011-07-08 Martin Jambor <mjambor@suse.cz>
9200 * tree-sra.c (analyze_all_variable_accesses): Dump that a struture
9201 is too big for total scalarization.
9203 2011-07-07 Richard Henderson <rth@redhat.com>
9205 * config/alpha/elf.h (MIPS_DEBUGGING_INFO): Undef.
9206 (DBX_DEBUGGING_INFO): Undef.
9208 2011-07-07 Richard Henderson <rth@redhat.com>
9210 * dwarf2out.c (output_cfi_directive): Export. Add FILE parameter.
9211 Handle some opcodes specially for debugging.
9212 * print-rtl.c: Include dwarf2out.h
9213 (print_rtx): Handle NOTE_INSN_CFI.
9214 * Makefile.in (print-rtl.o): Update.
9216 2011-07-07 Richard Henderson <rth@redhat.com>
9218 * tree-pass.h (pass_dwarf2_frame): Declare.
9219 * passes.c (init_optimization_passes): Add it.
9220 * dwarf2cfi.c (dwarf2out_frame_debug): Make static.
9221 (create_cfi_notes): Rename from dwarf2out_frame_debug_after_prologue;
9222 make static, do not call add_cfis_to_fde.
9223 (dwarf2out_frame_debug_init, dwarf2cfi_function_init,
9224 dwarf2out_frame_init): Merge into...
9225 (execute_dwarf2_frame): ... here. New function.
9226 (dwarf2out_do_frame, dwarf2out_do_cfi_asm): Make boolean. Change
9227 saved_do_cfi_asm to a tri-state variable.
9228 (gate_dwarf2_frame, pass_dwarf2_frame): New.
9229 * dwarf2out.c (dwarf2out_begin_prologue): Only allocate the fde
9230 if it has yet to be done. Don't call dwarf2cfi_function_init.
9231 * dwarf2out.h, debug.h: Update decls.
9232 * final.c (final_start_function): Don't call
9233 dwarf2out_frame_debug_init or dwarf2out_frame_debug_after_prologue.
9234 * lto-streamer-in.c (lto_init_eh): Don't call dwarf2out_frame_init.
9235 * toplev.c (lang_dependent_init): Likewise.
9237 2011-07-07 Richard Henderson <rth@redhat.com>
9239 * dwarf2out.c (fde_table, fde_table_allocated, fde_table_in_use,
9240 FDE_TABLE_INCREMENT): Replace with...
9241 (fde_vec): ... this, a new vector.
9242 (current_fde): Remove. Replace all users with cfun->fde.
9243 (output_call_frame_info): Use FOR_EACH_VEC_ELT over fde_vec.
9244 (size_of_aranges, dwarf2out_finish): Likewise.
9245 (dwarf2out_alloc_current_fde): Break out from ...
9246 (dwarf2out_begin_prologue): ... here.
9247 (dwarf2out_frame_init): Remove.
9248 * dwarf2cfi.c: Update all users of current_fde.
9249 (dwarf2out_frame_init): Rename from dwarf2cfi_frame_init.
9250 * dwarf2out.h: Update decls.
9251 (dw_fde_node): Add fde_index member.
9252 * function.h (struct function): Add fde member.
9254 2011-07-07 Bernd Schmidt <bernds@codesourcery.com>
9255 Richard Henderson <rth@redhat.com>
9257 * dwarf2cfi.c (add_cfi): Remove.
9258 (dwarf2out_cfi_label): Remove force argument. Only generate the
9260 (add_fde_cfi): Simplify the different code paths.
9262 (old_cfa, old_cfa_remember): New.
9263 (def_cfa_1, reg_save): Remove label, add for_cie parameter.
9264 (last_reg_save_label): Remove.
9265 (dwarf2out_args_size, dwarf2out_stack_adjust, queue_reg_save,
9266 dwarf2out_frame_debug_def_cfa, dwarf2out_frame_debug_adjust_cfa,
9267 dwarf2out_frame_debug_cfa_offset, dwarf2out_frame_debug_cfa_register,
9268 dwarf2out_frame_debug_cfa_expression,
9269 dwarf2out_frame_debug_cfa_restore,
9270 dwarf2out_frame_debug_cfa_window_save,
9271 dwarf2out_frame_debug_expr): Remove label parameter.
9272 (cfi_label_required_p, add_cfis_to_fde): New.
9273 (dwarf2out_frame_debug_after_prologue): New.
9274 (dwarf2cfi_frame_init): Initialize old_cfa.
9275 (dwarf2out_frame_debug_restore_state): Likewise.
9276 * dwarf2out.c (dwarf2out_emit_cfi): Only do output for cfi_asm.
9277 (dwarf2out_switch_text_section): Don't clear dw_fde_current_label here.
9278 * final.c (final_start_function): Call
9279 dwarf2out_frame_debug_after_prologue.
9281 2011-07-07 Bernd Schmidt <bernds@codesourcery.com>
9282 Richard Henderson <rth@redhat.com>
9284 * dwarf2cfi.c (cfi_insn): New.
9285 (dwarf2out_cfi_label): Don't emit cfi label here.
9286 (add_fde_cfi): Create a NOTE_INSN_CFI.
9287 (dwarf2out_frame_debug): Setup cfi_insn.
9288 (dwarf2out_frame_debug_init): Loop over insns creating CFI notes.
9289 (dwarf2out_cfi_begin_epilogue): Make static.
9290 (dwarf2out_frame_debug_restore_state): Make static.
9291 * dwarf2out.c (output_cfi_directive): Make static.
9292 (dwarf2out_emit_cfi): New.
9293 * dwarf2out.h: Update.
9294 * final.c (final): Remove CFI notes.
9295 (final_scan_insn): Don't call dwarf2out_cfi_begin_epilogue,
9296 dwarf2out_frame_debug_restore_state, dwarf2out_frame_debug.
9297 Handle NOTE_INSN_CFI and NOTE_INSN_CFI_LABEL.
9298 * insn-notes.def (NOTE_INSN_CFI): New.
9299 (NOTE_INSN_CFI_LABEL): New.
9300 * rtl.h (union rtunion_def): Add rt_cfi member.
9301 (XCFI, XCCFI, NOTE_CFI, NOTE_LABEL_NUMBER): New.
9303 2011-07-07 Richard Henderson <rth@redhat.com>
9305 * dwarf2cfi.c: New file.
9306 * Makefile.in (OBJS): Add it.
9307 (GTFILES): Add dwarf2cfi.c and dwarf2out.h.
9308 * gengtype.c (open_base_files): Include dwarf2out.h.
9309 * coretypes.h (enum var_init_status): Move from ...
9311 * dwarf2out.c (saved_do_cfi_asm, dwarf2out_do_frame,
9312 dwarf2out_do_cfi_asm, cie_cfi_vec, dwarf2out_cfi_label_num,
9313 expand_builtin_dwarf_sp_column, init_return_column_size,
9314 expand_builtin_init_dwarf_reg_sizes, new_cfi, add_cfi,
9315 dwarf2out_cfi_label, emit_cfa_remember, any_cfis_emitted, add_fde_cfi,
9316 lookup_cfa_1, lookup_cfa, cfa, cfa_store, cfa_remember, args_size,
9317 old_args_size, cfa_equal_p, def_cfa_1, reg_save, initial_return_save,
9318 stack_adjust_offset, barrier_args_size, compute_barrier_args_size_1,
9319 compute_barrier_args_size, dwarf2out_args_size,
9320 dwarf2out_stack_adjust, dwarf2out_notice_stack_adjust,
9321 queued_reg_saves, reg_saved_in_data, regs_saved_in_regs,
9322 compare_reg_or_pc, record_reg_saved_in_reg, last_reg_save_label,
9323 queue_reg_save, dwarf2out_flush_queued_reg_saves,
9324 clobbers_queued_reg_save, reg_saved_in, cfa_temp,
9325 dwarf2out_frame_debug_def_cfa, dwarf2out_frame_debug_adjust_cfa,
9326 dwarf2out_frame_debug_cfa_offset, dwarf2out_frame_debug_cfa_register,
9327 dwarf2out_frame_debug_cfa_expression,
9328 dwarf2out_frame_debug_cfa_restore,
9329 dwarf2out_frame_debug_cfa_window_save, dwarf2out_frame_debug_expr,
9330 dwarf2out_frame_debug, dwarf2out_frame_debug_init,
9331 dwarf2out_cfi_begin_epilogue, dwarf2out_frame_debug_restore_state,
9332 get_cfa_from_loc_descr): Move to dwarf2cfi.c.
9333 (dw_cfi_ref, dw_fde_ref, dw_cfi_oprnd_ref, enum dw_cfi_oprnd_type,
9334 dw_cfi_oprnd, dw_cfi_node, cfi_vec, dw_cfa_location, dw_fde_node,
9335 dw_val_ref, dw_die_ref, const_dw_die_ref, dw_loc_descr_ref,
9336 dw_loc_list_ref, enum dw_val_class, dw_vec_const, dw_val_node,
9337 dw_loc_descr_node): Move to dwarf2out.h.
9338 (current_fde, output_cfi_directive, build_cfa_loc, get_address_mode,
9339 mem_loc_descriptor): Export.
9340 (build_cfa_aligned_loc): Export. Take CFA as a parameter.
9341 (dwarf2out_frame_init): Extract CIE generation code to
9342 dwarf2cfi_frame_init.
9344 2011-07-07 Eric Botcazou <ebotcazou@adacore.com>
9347 * config/sparc/sol2.h [TARGET_64BIT_DEFAULT] (TARGET_DEFAULT): Add
9348 MASK_V8PLUS, remove commented out flag and reorder.
9350 2011-07-07 Jakub Jelinek <jakub@redhat.com>
9353 * c-typeck.c (build_binary_op): For MULT_EXPR and TRUNC_DIV_EXPR with
9354 one non-complex and one complex argument, call c_save_expr on both
9357 2011-07-07 Martin Jambor <mjambor@suse.cz>
9360 * cgraphunit.c (verify_edge_corresponds_to_fndecl): New function.
9361 (verify_cgraph_node): Some functinality moved to
9362 verify_edge_corresponds_to_fndecl, call it.
9364 2011-07-07 Joseph Myers <joseph@codesourcery.com>
9366 * config.gcc (*local*): Remove.
9367 * doc/install-old.texi: Don't mention local configurations.
9369 2011-07-07 Jakub Jelinek <jakub@redhat.com>
9372 * df-problems.c (dead_debug_reset): Remove dead_debug_uses
9373 referencing debug insns that have been reset.
9374 (dead_debug_insert_before): Don't assert reg is non-NULL,
9375 instead return immediately if it is NULL.
9377 2011-07-07 Joseph Myers <joseph@codesourcery.com>
9379 * config/i386/t-crtpic, config/i386/t-svr3dbx, config/pa/t-pa: Remove.
9381 2011-07-07 Bernd Schmidt <bernds@codesourcery.com>
9383 * hw-doloop.c: New file.
9384 * hw-doloop.h: New file.
9385 * Makefile.in (OBJS): Add hw-doloop.o.
9386 (hw-doloop.o): New rule.
9387 ($(obj_out_file)): Add hw-doloop.h dependency.
9388 * config/bfin/bfin.c: Include "hw-doloop.h".
9389 (loop_info, DEF_VEC_P for loop_info, loop_info_d): Remove.
9390 (bfin_dump_loops, bfin_bb_in_loop, bfin_scan_loop): Remove.
9391 (hwloop_optimize): Renamed from bfin_optimize_loop. Argument
9392 type changed to hwloop_info. Return bool, true if the loop was
9393 successfully optimized. Remove code that was moved to
9394 hw-doloop.c, and adjust other parts.
9395 (hwloop_fail): New static function, containing parts that used
9396 to be in bfin_optimize_loop.
9397 (bfin_discover_loop, bfin_discover_loops, free_loops,
9398 bfin_reorder_loops): Remove.
9399 (hwloop_pattern_reg): New static function.
9400 (bfin_doloop_hooks): New variable.
9401 (bfin_reorg_loops): Remove most code, call reorg_loops.
9402 * config/bfin/bfin.md (doloop_end splitter): Also enable if
9403 loop counter is a memory_operand.
9405 2011-07-07 H.J. Lu <hongjiu.lu@intel.com>
9407 * config.gcc: Support --with-multilib-list for x86 Linux targets.
9409 * configure.ac: Mention x86-64 for --with-multilib-list.
9410 * configure: Regenerated.
9412 * config/i386/gnu-user64.h (SPEC_64): Support x32.
9413 (SPEC_32): Likewise.
9414 (ASM_SPEC): Likewise.
9415 (LINK_SPEC): Likewise.
9416 (TARGET_THREAD_SSP_OFFSET): Likewise.
9417 (TARGET_THREAD_SPLIT_STACK_OFFSET): Likewise.
9420 * config/i386/i386.h (TARGET_X32): New.
9422 (LONG_TYPE_SIZE): Likewise.
9423 (POINTER_SIZE): Likewise.
9424 (POINTERS_EXTEND_UNSIGNED): Likewise.
9425 (OPT_ARCH64): Support x32.
9426 (OPT_ARCH32): Likewise.
9428 * config/i386/i386.opt (mx32): New.
9430 * config/i386/kfreebsd-gnu64.h (GNU_USER_LINK_EMULATIONX32): New.
9431 (GLIBC_DYNAMIC_LINKERX32): Likewise.
9432 * config/i386/linux64.h (GNU_USER_LINK_EMULATIONX32): Likewise.
9433 (GLIBC_DYNAMIC_LINKERX32): Likewise.
9435 * config/linux.h (UCLIBC_DYNAMIC_LINKERX32): New.
9436 (BIONIC_DYNAMIC_LINKERX32): Likewise.
9437 (GNU_USER_DYNAMIC_LINKERX32): Likewise.
9439 * config/i386/t-linux64: Support TM_MULTILIB_CONFIG.
9441 * doc/install.texi: Document --with-multilib-list for Linux/x86-64.
9443 * doc/invoke.texi: Document -mx32.
9445 2011-07-07 Richard Sandiford <richard.sandiford@linaro.org>
9447 * doc/invoke.texi (mwords-little-endian): Deprecate.
9448 * config/arm/arm.opt (mwords-little-endian): Likewise.
9449 * config/arm/arm.c (arm_option_override): Warn about the deprecation
9450 of -mwords-little-endian.
9452 2011-07-07 Richard Sandiford <richard.sandiford@linaro.org>
9454 * reload1.c (choose_reload_regs): Use mode sizes to check whether
9455 an old reload register completely defines the required value.
9457 2011-07-07 Richard Guenther <rguenther@suse.de>
9459 * fold-const.c (fold_unary_loc): Do not strip sign-changes
9462 2011-07-07 Richard Guenther <rguenther@suse.de>
9464 * tree-vrp.c (simplify_conversion_using_ranges): New function.
9465 (simplify_stmt_using_ranges): Call it.
9467 2011-07-07 Kai Tietz <ktietz@redhat.com>
9469 * tree-ssa-forwprop.c (truth_valued_ssa_name): New function.
9470 (lookup_logical_inverted_value): Likewise.
9471 (simplify_bitwise_binary_1): Likewise.
9472 (simplify_bitwise_binary): Use simplify_bitwise_binary_1.
9474 2011-07-07 Joseph Myers <joseph@codesourcery.com>
9476 * gcc.c (%[Spec]): Don't document.
9477 (struct spec_list): Update comment.
9478 (do_spec_1): Don't handle %[Spec].
9479 * doc/invoke.texi (%[@var{name}]): Remove documentation of spec.
9481 2011-07-07 Joseph Myers <joseph@codesourcery.com>
9483 * common/common-target-def.h (TARGET_HAVE_NAMED_SECTIONS): Don't
9484 default based on TARGET_ASM_NAMED_SECTION.
9485 * common/common-target.def (have_named_sections): Default to true.
9486 * common/config/default-common.c: Don't include tm.h.
9487 * common/config/picochip/picochip-common.c
9488 (TARGET_HAVE_NAMED_SECTIONS): Don't define.
9489 * common/config/m32c/m32c-common.c: Remove.
9490 * config.gcc (m32c*-*-*): Set target_has_targetm_common=no.
9491 * config/alpha/osf5.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
9492 * config/i386/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
9493 * config/m68k/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
9494 * config/pa/som.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
9495 * config/pdp11/pdp11.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
9496 * config/vax/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
9498 2011-07-07 Jakub Jelinek <jakub@redhat.com>
9501 * gimplify.c (gimplify_compound_lval): For last 2 ARRAY_*REF operands
9502 and last COMPONENT_REF operand call gimplify_expr on it if non-NULL.
9504 2011-07-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9507 * gcc.c (MFWRAP_SPEC): Also wrap mmap64.
9509 2011-07-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9512 * configure.ac (gcc_cv_as_hidden): Also accept
9513 x86_64-*-solaris2.1[0-9]*.
9514 (gcc_cv_as_cfi_directive): Likewise.
9515 (gcc_cv_as_comdat_group_group): Likewise.
9516 (set_have_as_tls): Likewise.
9517 * configure: Regenerate.
9518 * config.gcc (i[34567]86-*-solaris2*): Also handle
9519 x86_64-*-solaris2.1[0-9]*.
9520 * config.host (i[34567]86-*-solaris2*): Likewise.
9521 * config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Remove.
9522 * config/sol2-bi.h (ASM_CPU_DEFAULT_SPEC): Redefine.
9523 [USE_GLD] (ARCH_DEFAULT_EMULATION): Define.
9524 (TARGET_LD_EMULATION): Use it.
9525 * config/i386/sol2.h (ASM_CPU_DEFAULT_SPEC): Define.
9526 (SUBTARGET_CPU_EXTRA_SPECS): Add asm_cpu_default.
9527 * config/i386/sol2-bi.h (ASM_CPU32_DEFAULT_SPEC): Define.
9528 (ASM_CPU64_DEFAULT_SPEC): Define.
9529 (ASM_CPU_SPEC): Use %(asm_cpu_default).
9530 (ASM_SPEC): Redefine.
9531 (DEFAULT_ARCH32_P): Define using TARGET_64BIT_DEFAULT.
9532 * config/host-solaris.c [__x86_64__] (TRY_EMPTY_VM_SPACE): Reduce.
9533 * doc/install.texi (Specific, amd64-*-solaris2.1[0-9]*): Document.
9534 (Specific, i?86-*-solaris2.10): Mention x86_64-*-solaris2.1[0-9]*
9536 (Specific, x86_64-*-solaris2.1[0-9]*): Document.
9538 2011-07-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9540 * config/sol2.h (ASM_SPEC): Split into ...
9541 (ASM_SPEC_BASE, ASM_PIC_SPEC): ... this.
9542 * config/i386/sol2.h (ASM_SPEC): Define using ASM_SPEC_BASE.
9543 * config/i386/sol2-bi.h (ASM_CPU_SPEC): Redefine.
9544 (ASM_SPEC): Use ASM_SPEC_BASE.
9545 * config/sparc/sol2.h (ASM_SPEC): Redefine.
9547 2011-07-07 Georg-Johann Lay <avr@gjlay.de>
9549 * config/avr/avr.md (*reload_insi): Change predicate #1 to
9550 const_int_operand. Ditto for peep2 producing this insn.
9551 Add argument to output_reload_insisf call.
9552 (*movsi,*movsf): Add argument to output_movsisf call.
9553 (*reload_insf): New insn and new peep2 to produce it.
9554 * config/avr/avr-protos.h (output_movsisf): Change prototype.
9555 (output_reload_insisf): Change prototype.
9556 * config/avr/avr.c (avr_asm_len): New function.
9557 (output_reload_insisf): Rewrite.
9558 (output_movsisf): Change prototype. output_reload_insisf for
9559 all CONST_INT and CONST_DOUBLE. ALlow moving 0.0f to memory.
9560 (adjust_insn_length): Add argument to output_movsisf and
9561 output_reload_insisf call.
9563 2011-07-07 Bernd Schmidt <bernds@codesourcery.com>
9565 * emit-rtl.c (paradoxical_subreg_p): New function.
9566 * rtl.h (paradoxical_subreg_p): Declare.
9567 * combine.c (set_nonzero_bits_and_sign_copies, get_last_value,
9568 apply_distributive_law, simplify_comparison, simplify_set): Use it.
9569 * cse.c (record_jump_cond, cse_insn): Likewise.
9570 * expr.c (force_operand): Likewise.
9571 * rtlanal.c (num_sign_bit_copies1): Likewise.
9572 * reload1.c (eliminate_regs_1, strip_paradoxical_subreg): Likewise.
9573 * reload.c (push_secondary_reload, find_reloads_toplev): Likewise.
9574 (push_reload): Use precision to check for paradoxical subregs.
9575 * expmed.c (extract_bit_field_1): Likewise.
9577 * machmode.h (HWI_COMPUTABLE_MODE_P): New macro.
9578 * combine.c (set_nonzero_bits_and_sign_copies): Use it.
9579 (find_split-point, combine_simplify_rtx, simplify_if_then_else,
9580 simplify_set, simplify_logical, expand_compound_operation,
9581 make_extraction, force_to_mode, if_then_else_cond, extended_count,
9582 try_widen_shift_mode, simplify_shift_const_1, simplify_comparison,
9583 record_value_for_reg): Likewise.
9584 * expmed.c (expand_widening_mult, expand_mult_highpart): Likewise.
9585 * simplify-rtx. c (simplify_unary_operation_1,
9586 simplify_binary_operation_1, simplify_const_relational_operation):
9589 * explow.c (trunc_int_for_mode): Use GET_MODE_PRECISION
9590 instead of GET_MODE_BITSIZE where appropriate.
9591 * rtlanal.c (subreg_lsb_1, subreg_get_info, nonzero_bits1,
9592 num_sign_bit_copies1, canonicalize_condition, low_bitmask_len,
9593 init_num_sign_bit_copies_in_rep): Likewise.
9594 * cse.c (fold_rtx, cse_insn): Likewise.
9595 * loop-doloop.c (doloop_modify, doloop_optimize): Likewise.
9596 * simplify-rtx.c (simplify_unary_operation_1,
9597 simplify_const_unary_operation, simplify_binary_operation_1,
9598 simplify_const_binary_operation, simplify_ternary_operation,
9599 simplify_const_relational_operation, simplify_subreg): Likewise.
9600 * combine.c (try_combine, find_split_point, combine_simplify_rtx,
9601 simplify_if_then_else, simplify_set, expand_compound_operation,
9602 expand_field_assignment, make_extraction, if_then_else_cond,
9603 make_compound_operation, force_to_mode, make_field_assignment,
9604 reg_nonzero_bits_for_combine, reg_num_sign_bit_copies_for_combine,
9605 extended_count, try_widen_shift_mode, simplify_shift_const_1,
9606 simplify_comparison, record_promoted_value, simplify_compare_const,
9607 record_dead_and_set_regs_1): Likewise.
9610 * simplify-rtx.c (simplify_const_binary_operation): Use the
9611 shift_truncation_mask hook instead of performing modulo by width.
9612 Compare against mode precision, not bitsize.
9613 * combine.c (combine_simplify_rtx, simplify_shift_const_1):
9614 Use shift_truncation_mask instead of constructing the value manually.
9616 2011-07-06 Michael Meissner <meissner@linux.vnet.ibm.com>
9618 * config/rs6000/rs6000-protos.h (rs6000_call_indirect_aix): New
9620 (rs6000_save_toc_in_prologue_p): Ditto.
9622 * config/rs6000/rs6000.opt (-mr11): New switch to disable loading
9623 up the static chain (r11) during indirect function calls.
9624 (-msave-toc-indirect): New undocumented debug switch.
9626 * config/rs6000/rs6000.c (struct machine_function): Add
9627 save_toc_in_prologue field to note whether the prologue needs to
9628 save the TOC value in the reserved stack location.
9629 (rs6000_emit_prologue): Use TOC_REGNUM instead of 2. If we need
9630 to save the TOC in the prologue, do so.
9631 (rs6000_trampoline_init): Don't allow creating AIX style
9632 trampolines if -mno-r11 is in effect.
9633 (rs6000_call_indirect_aix): New function to create AIX style
9634 indirect calls, adding support for -mno-r11 to suppress loading
9635 the static chain, and saving the TOC in the prologue instead of
9637 (rs6000_save_toc_in_prologue_p): Return true if we are saving the
9638 TOC in the prologue.
9640 * config/rs6000/rs6000.md (STACK_POINTER_REGNUM): Add more fixed
9642 (TOC_REGNUM): Ditto.
9643 (STATIC_CHAIN_REGNUM): Ditto.
9644 (ARG_POINTER_REGNUM): Ditto.
9645 (SFP_REGNO): Delete, unused.
9646 (TOC_SAVE_OFFSET_32BIT): Add constants for AIX TOC save and
9647 function descriptor offsets.
9648 (TOC_SAVE_OFFSET_64BIT): Ditto.
9649 (AIX_FUNC_DESC_TOC_32BIT): Ditto.
9650 (AIX_FUNC_DESC_TOC_64BIT): Ditto.
9651 (AIX_FUNC_DESC_SC_32BIT): Ditto.
9652 (AIX_FUNC_DESC_SC_64BIT): Ditto.
9653 (ptrload): New mode attribute for the appropriate load of a pointer.
9654 (call_indirect_aix32): Delete, rewrite AIX indirect function calls.
9655 (call_indirect_aix64): Ditto.
9656 (call_value_indirect_aix32): Ditto.
9657 (call_value_indirect_aix64): Ditto.
9658 (call_indirect_nonlocal_aix32_internal): Ditto.
9659 (call_indirect_nonlocal_aix32): Ditto.
9660 (call_indirect_nonlocal_aix64_internal): Ditto.
9661 (call_indirect_nonlocal_aix64): Ditto.
9662 (call): Rewrite AIX indirect function calls. Add support for
9663 eliminating the static chain, and for moving the save of the TOC
9664 to the function prologue.
9665 (call_value): Ditto.
9666 (call_indirect_aix<ptrsize>): Ditto.
9667 (call_indirect_aix<ptrsize>_internal): Ditto.
9668 (call_indirect_aix<ptrsize>_internal2): Ditto.
9669 (call_indirect_aix<ptrsize>_nor11): Ditto.
9670 (call_value_indirect_aix<ptrsize>): Ditto.
9671 (call_value_indirect_aix<ptrsize>_internal): Ditto.
9672 (call_value_indirect_aix<ptrsize>_internal2): Ditto.
9673 (call_value_indirect_aix<ptrsize>_nor11): Ditto.
9674 (call_nonlocal_aix32): Relocate in the rs6000.md file.
9675 (call_nonlocal_aix64): Ditto.
9677 * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mr11 and
9678 -mno-r11 documentation.
9680 2011-07-06 Jonathan Wakely <jwakely.gcc@gmail.com>
9683 * doc/extend.texi (Compound Literals): Fix typo.
9685 2011-07-06 James Greenhalgh <james.greenhalgh@arm.com>
9687 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Add __ARM_FEATURE_DSP.
9689 2011-07-06 Basile Starynkevitch <basile@starynkevitch.net>
9691 * configure.ac (plugin-version.h): Generate
9692 GCCPLUGIN_VERSION_MAJOR, GCCPLUGIN_VERSION_MINOR,
9693 GCCPLUGIN_VERSION_PATCHLEVEL, GCCPLUGIN_VERSION constant integer
9696 * configure: Regenerate.
9698 * doc/plugins.texi (Building GCC plugins): Mention
9699 GCCPLUGIN_VERSION ... constant macros in plugin-version.h.
9701 2011-07-06 Bernd Schmidt <bernds@codesourcery.com>
9703 * machmode.h (TRULY_NOOP_TRUNCATION_MODES_P): New macro.
9704 * combine.c (make_extraction, gen_lowpart_or_truncate,
9705 apply_distributive_law, simplify_comparison,
9706 reg_truncated_to_mode, record_truncated_value): Use it.
9707 * cse.c (notreg_cost): Likewise.
9708 * expmed.c (store_bit_field_1, extract_bit_field_1): Likewise.
9709 * expr.c (convert_move, convert_modes): Likewise.
9710 * optabs.c (expand_binop, expand_unop): Likewise.
9711 * postreload.c (move2add_last_label): Likewise.
9712 * regmove.c (optimize_reg_copy_3): Likewise.
9713 * rtlhooks.c (gen_lowpart_general): Likewise.
9714 * simplify-rtx.c (simplify_unary_operation_1): Likewise.
9716 2011-07-06 Joseph Myers <joseph@codesourcery.com>
9718 * config/rs6000/vxworks.h (WORDS_BIG_ENDIAN): Define.
9720 2011-07-06 Bernd Schmidt <bernds@codesourcery.com>
9722 * cse.c (find_comparison_args): Use val_mode_signbit_set_p.
9723 * simplify-rtx.c (mode_signbit_p): Use GET_MODE_PRECISION.
9724 (val_mode_signbit_p, val_mode_signbit_set_p): New functions.
9725 (simplify_const_unary_operation, simplify_binary_operation_1,
9726 simplify_const_binary_operation, simplify_const_relational_operation):
9727 Use them. Use GET_MODE_MASK for masking and sign-extensions.
9728 * combine.c (set_nonzero_bits_and_sign_copies, simplify_set,
9729 combine_simplify_rtx, force_to_mode, reg_nonzero_bits_for_combine,
9730 simplify_shift_const_1, simplify_comparison): Likewise.
9731 * expr.c (convert_modes): Likewise.
9732 * rtlanal.c (nonzero_bits1, canonicalize_condition): Likewise.
9733 * expmed.c (emit_cstore, emit_store_flag_1, emit_store_flag): Likewise.
9734 * rtl.h (val_mode_signbit_p, val_mode_signbit_set_p): Declare.
9736 * simplify-rtx.c (simplify_ternary_operation): Remove dead code.
9738 2011-07-06 Richard Guenther <rguenther@suse.de>
9740 PR tree-optimization/49645
9741 * c-decl.c (finish_decl): Also set DECL_HARD_REGISTER for global
9743 * tree-ssa-sccvn.c (vn_reference_op_eq): Disregard differences
9744 in type qualification here ...
9745 (copy_reference_ops_from_ref): ... not here.
9746 (vn_reference_lookup_3): ... or here.
9747 (copy_reference_ops_from_ref): Record decl bases as MEM[&decl].
9748 (vn_reference_lookup): Do the lookup with a valueized ao-ref.
9750 2011-07-06 Ian Lance Taylor <iant@google.com>
9752 * doc/install.texi (Configuration): It's
9753 --enable-gnu-indirect-function, not --enable-indirect-function.
9755 2011-07-06 Bernd Schmidt <bernds@codesourcery.com>
9757 * simplify-rtx.c (simplify_const_binary_operation): Use the
9758 shift_truncation_mask hook instead of performing modulo by width.
9759 Compare against mode precision, not bitsize.
9760 * combine.c (combine_simplify_rtx, simplify_shift_const_1):
9761 Use shift_truncation_mask instead of constructing the value manually.
9763 2011-07-06 H.J. Lu <hongjiu.lu@intel.com>
9766 * tree-ssa-address.c (addr_for_mem_ref): Use pointer_mode for
9767 address computation and convert to address_mode if needed.
9769 2011-07-06 Richard Guenther <rguenther@suse.de>
9771 * tree.c (build_common_tree_nodes_2): Merge with
9772 build_common_tree_nodes.
9773 * tree.h (build_common_tree_nodes): Adjust prototype.
9774 (build_common_tree_nodes_2): Remove.
9775 * doc/tm.texi.in (lang_hooks.builtin_function): Adjust.
9776 * doc/tm.texi (lang_hooks.builtin_function): Regenerate.
9778 2011-07-05 Jakub Jelinek <jakub@redhat.com>
9780 PR tree-optimization/49618
9781 * tree-eh.c (tree_could_trap_p) <case CALL_EXPR>: For DECL_WEAK
9782 t recurse on the decl.
9783 <case FUNCTION_DECL, case VAR_DECL>: For DECL_WEAK decls
9784 return true if expr isn't known to be defined in current
9785 TU or some other LTO partition.
9787 2011-07-05 Michael Meissner <meissner@linux.vnet.ibm.com>
9789 * params.def (PARAM_CASE_VALUES_THRESHOLD): New parameter to
9790 override CASE_VALUES_THRESHOLD.
9792 * stmt.c (toplevel): Include params.h.
9793 (case_values_threshold): Use the --param case-values-threshold
9794 value if non-zero, otherwise use machine dependent value.
9795 (expand_case): Use case_values_threshold.
9797 * Makefile.in (stmt.o): Add $(PARAMS_H) dependency.
9799 * doc/invoke.texi (--param case-values-threshold): Document.
9801 2011-07-05 Richard Henderson <rth@redhat.com>
9803 * dwarf2out.c (dwarf2out_cfi_label): Make static.
9804 (dwarf2out_flush_queued_reg_saves): Make static.
9805 (dwarf2out_reg_save): Remove.
9806 (dwarf2out_return_save): Remove.
9807 (dwarf2out_return_reg): Remove.
9808 (dwarf2out_reg_save_reg): Remove.
9809 (dwarf2out_def_cfa): Merge into ...
9810 (dwarf2out_frame_init): ... here.
9811 * dwarf2out.h, tree.h: Remove declarations as necessary.
9813 2011-07-05 Richard Henderson <rth@redhat.com>
9815 * config/ia64/ia64.c (ia64_dwarf_handle_frame_unspec): Remove.
9816 (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
9817 (ia64_expand_epilogue): Emit an empty FRAME_RELATED_EXPR for
9820 * config/ia64/ia64.c (ia64_emit_deleted_label_after_insn): Remove.
9821 (IA64_CHANGE_CFA_IN_EPILOGUE): Remove.
9822 (process_epilogue): Don't call dwarf2out_def_cfa.
9824 * config/ia64/ia64.c (ia64_expand_prologue): Use pc_rtx to
9825 indicate the return address save.
9826 (process_cfa_register): Likewise.
9828 * config/ia64/ia64.c (ia64_dwarf2out_def_steady_cfa): Remove.
9829 (process_cfa_adjust_cfa, ia64_asm_unwind_emit): Don't call it.
9831 * config/ia64/ia64.c (ia64_expand_prologue): Emit REG_CFA_REGISTER
9832 for ar.pfs save at alloc insn.
9834 2011-07-05 Richard Henderson <rth@redhat.com>
9836 * config/arm/arm.c (arm_dwarf_handle_frame_unspec): Remove.
9837 (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
9838 (arm_expand_prologue): Use REG_CFA_REGISTER to mark the
9840 (arm_unwind_emit_set): Don't recognize UNSPEC_STACK_ALIGN.
9841 (arm_unwind_emit): Walk REG_NOTES for unwinding notes. Emit
9842 proper unwind info for a REG_CFA_REGISTER save of stack pointer.
9843 * config/arm/arm.md (UNSPEC_STACK_ALIGN): Remove.
9845 2011-07-05 Richard Henderson <rth@redhat.com>
9847 * config/vax/vax.md (define_c_enum unspecv): New. Define the
9848 VUNSPEC_* constants here instead of via define_constants.
9849 (VUNSPEC_PEM): New constant.
9850 (procedure_entry_mask): New insn.
9851 (prologue): New expander.
9852 * config/vax/vax.c (vax_add_reg_cfa_offset): New.
9853 (vax_expand_prologue): Rename from vax_output_function_prologue;
9854 emit rtl instead of text.
9855 (TARGET_ASM_FUNCTION_PROLOGUE): Remove.
9856 (print_operand): Add 'x' prefix.
9858 2011-07-05 H.J. Lu <hongjiu.lu@intel.com>
9861 * calls.c (precompute_register_parameters): Promote the function
9862 argument before checking non-legitimate constant.
9864 2011-07-05 Sebastian Pop <sebastian.pop@amd.com>
9866 PR tree-optimization/47654
9867 * graphite-blocking.c (pbb_strip_mine_time_depth): Do not return bool.
9868 (lst_do_strip_mine_loop): Return an int.
9869 (lst_do_strip_mine): Same.
9870 (scop_do_strip_mine): Same.
9871 (scop_do_block): Loop blocking should strip-mine at least two loops.
9872 * graphite-interchange.c (lst_interchange_select_outer): Return an int.
9873 (scop_do_interchange): Same.
9874 * graphite-poly.h (scop_do_interchange): Update declaration.
9875 (scop_do_strip_mine): Same.
9877 2011-07-05 Sebastian Pop <sebastian.pop@amd.com>
9879 * graphite-clast-to-gimple.c (precision_for_value): Removed.
9880 (precision_for_interval): Removed.
9881 (gcc_type_for_interval): Use mpz_sizeinbase.
9883 2011-07-05 Sebastian Pop <sebastian.pop@amd.com>
9885 * graphite-ppl.h (value_max): Correct computation of max.
9887 2011-07-05 Sebastian Pop <sebastian.pop@amd.com>
9889 * graphite-clast-to-gimple.c (clast_name_to_index): Add missing space.
9891 2011-07-05 Richard Guenther <rguenther@suse.de>
9893 * c-decl.c (c_init_decl_processing): Defer building common
9894 tree nodes to c_common_nodes_and_builtins.
9896 2011-07-05 Razya Ladelsky <razya@il.ibm.com>
9898 PR tree-optimization/49580
9899 * tree-cfg.c (gimple_duplicate_sese_tail): Remove handling of
9900 the loop's number of iterations.
9901 * tree-parloops.c (transform_to_exit_first_loop): Add the
9902 handling of the loop's number of iterations before the call
9903 to gimple_duplicate_sese_tail.
9904 Insert the stmt caclculating the new rhs of the loop's
9905 condition stmt to the preheader instead of iters_bb.
9907 2011-07-05 H.J. Lu <hongjiu.lu@intel.com>
9909 PR rtl-optimization/47449
9910 * fwprop.c (forward_propagate_subreg): Don't propagate hard
9911 register nor zero/sign extended hard register.
9913 2011-07-05 Richard Guenther <rguenther@suse.de>
9915 PR tree-optimization/49518
9916 PR tree-optimization/49628
9917 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Skip
9918 irrelevant and invariant data-references.
9919 (vect_analyze_data_ref_access): For invariant loads clear the
9922 2011-07-04 Jakub Jelinek <jakub@redhat.com>
9924 PR rtl-optimization/49619
9925 * combine.c (combine_simplify_rtx): In PLUS -> IOR simplification
9926 pass VOIDmode as op0_mode to recursive call, and return temp even
9927 when different from tor, just if it is not IOR of the original
9930 PR rtl-optimization/49472
9931 * simplify-rtx.c (simplify_unary_operation_1) <case NEG>: When
9932 negating MULT, negate the second operand instead of first.
9933 (simplify_binary_operation_1) <case MULT>: If one operand is
9934 a NEG and the other is MULT, don't attempt to optimize by negation
9935 of the MULT operand if it only moves the NEG operation around.
9938 * tree-into-ssa.c (rewrite_debug_stmt_uses): Disregard
9939 get_current_def return value if it can't be trusted to be
9940 the current value of the variable in the current bb.
9942 2011-07-04 Uros Bizjak <ubizjak@gmail.com>
9945 * config/i386/i386.md (SSE2 int->float split): Push operand 1 in
9946 general register to memory for !TARGET_INTER_UNIT_MOVES.
9948 2011-07-04 Georg-Johann Lay <avr@gjlay.de>
9951 * config/avr/avr.c (avr_insert_attributes): Use TYPE_READONLY
9952 instead of TREE_READONLY.
9954 2011-07-04 Georg-Johann Lay <avr@gjlay.de>
9956 * doc/extend.texi (AVR Built-in Functions): Update documentation
9957 of __builtin_avr_fmul*.
9958 * config/avr/avr.c (avr_init_builtins): Don't depend on AVR_HAVE_MUL.
9959 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Ditto.
9960 * config/avr/avr.md (fmul): Rename to fmul_insn.
9961 (fmuls): Rename to fmuls_insn.
9962 (fmulsu): Rename to fmulsu_insn.
9963 (fmul,fmuls,fmulsu): New expander.
9964 (*fmul.call,*fmuls.call,*fmulsu.call): New Insn.
9965 * config/avr/t-avr (LIB1ASMFUNCS): Add _fmul, _fmuls, _fmulsu.
9966 * config/avr/libgcc.S (__fmul): New function.
9967 (__fmuls): New function.
9968 (__fmulsu,__fmulsu_exit): New function.
9970 2011-07-04 Richard Guenther <rguenther@suse.de>
9972 PR tree-optimization/49615
9973 * tree-cfgcleanup.c (split_bbs_on_noreturn_calls): Fix
9974 basic-block index check.
9976 2011-07-04 Georg-Johann Lay <avr@gjlay.de>
9978 * longlong.h (count_leading_zeros, count_trailing_zeros,
9979 COUNT_LEADING_ZEROS_0): Define for target avr if W_TYPE_SIZE is 16
9982 2011-07-03 Ira Rosen <ira.rosen@linaro.org>
9984 PR tree-optimization/49610
9985 * tree-vect-loop.c (vect_is_slp_reduction): Check that DEF_STMT has
9988 2011-07-02 Eric Botcazou <ebotcazou@adacore.com>
9989 Olivier Hainque <hainque@adacore.com>
9990 Nicolas Setton <setton@adacore.com>
9992 * tree.h (TYPE_ARTIFICIAL): New flag.
9993 * dwarf2out.c (modified_type_die): Add a DW_AT_artificial attribute to
9994 the DIE of the type if it is artificial.
9995 (gen_array_type_die): Likewise.
9996 (gen_enumeration_type_die): Likewise.
9997 (gen_struct_or_union_type_die): Likewise.
9998 * lto-streamer-in.c (unpack_ts_base_value_fields): Use TYPE_ARTIFICIAL.
9999 * lto-streamer-out.c (pack_ts_base_value_fields): Likewise.
10001 2011-07-01 Jakub Jelinek <jakub@redhat.com>
10003 * tree-object-size.c (pass_through_call): Handle
10004 BUILT_IN_ASSUME_ALIGNED.
10006 2011-07-01 Martin Jambor <mjambor@suse.cz>
10008 * tree-sra.c (tree_non_mode_aligned_mem_p): Also ignore MEM_REFs.
10010 2011-07-01 H.J. Lu <hongjiu.lu@intel.com>
10012 PR middle-end/48016
10013 * explow.c (update_nonlocal_goto_save_area): Use proper mode
10014 for stack save area.
10015 * function.c (expand_function_start): Likewise.
10017 2011-07-01 Richard Guenther <rguenther@suse.de>
10019 PR middle-end/49596
10020 * cgraph.h (varpool_all_refs_explicit_p): Not analyzed nodes
10021 may have unknown refs.
10023 2011-07-01 Kai Tietz <ktietz@redhat.com>
10025 * tree-ssa-forwprop.c (simplify_bitwise_binary): Fix typo.
10027 2011-07-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10029 * config.gcc: Obsolete alpha*-dec-osf5.1, mips-sgi-irix6.5.
10030 * doc/install.texi (Specific, alpha*-dec-osf5.1): Document it.
10031 (Specific, mips-sgi-irix6): Likewise.
10033 2011-07-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10035 PR libmudflap/49549
10036 * doc/sourcebuild.texi (Effective-Target Keywords): Document gld.
10038 2011-07-01 Jakub Jelinek <jakub@redhat.com>
10040 * tree-pretty-print.c (dump_generic_code) <case CONSTRUCTOR>: Print
10041 [idx]= and [idx1 ... idx2]= before initializers if needed for
10042 array initializers.
10044 2011-07-01 Chen Liqin <liqin.gcc@gmail.com>
10046 * config.gcc (score-*-elf): Remove score7.o.
10047 * config/score/t-score-elf: Likewise.
10048 * config/score/score.c: Merge score7 to score.c and
10049 remove forwarding functions.
10050 * config/score/score7.c: Deleted.
10051 * config/score/score7.h: Deleted.
10053 2011-07-01 Richard Guenther <rguenther@suse.de>
10055 PR tree-optimization/49603
10056 * tree-vect-stmts.c (vectorizable_load): Remove unnecessary assert.
10058 2011-06-30 Martin Jambor <mjambor@suse.cz>
10060 * tree-sra.c (struct access): Rename total_scalarization to
10061 grp_total_scalarization
10062 (completely_scalarize_var): New function.
10063 (sort_and_splice_var_accesses): Set total_scalarization in the
10064 representative access.
10065 (analyze_access_subtree): Propagate total scalarization accross the
10066 tree, no holes in totally scalarized trees, simplify coverage
10068 (analyze_all_variable_accesses): Call completely_scalarize_var instead
10069 of completely_scalarize_record.
10071 2011-06-30 Richard Henderson <rth@redhat.com>
10073 * config/i386/i386.h (X86_TUNE_DEEP_BRANCH_PREDICTION): Remove.
10074 (TARGET_DEEP_BRANCH_PREDICTION): Remove.
10075 * config/i386/i386.c: Don't include dwarf2out.h.
10076 (initial_ix86_tune_features): Remove X86_TUNE_DEEP_BRANCH_PREDICTION.
10077 (output_set_got): Don't test TARGET_DEEP_BRANCH_PREDICTION, delete
10078 all code dead thereafter. Don't do dwarf2out_flush_queued_reg_saves.
10079 (ix86_expand_prologue): Set REG_CFA_FLUSH_QUEUE on set_got insn.
10080 (machopic_output_stub): Don't test TARGET_DEEP_BRANCH_PREDICTION.
10082 2011-06-30 Richard Henderson <rth@redhat.com>
10084 * reg-notes.def (REG_CFA_FLUSH_QUEUE): New.
10085 * dwarf2out.c (dwarf2out_frame_debug): Handle it.
10086 * final.c (final_scan_insn): Look for it, and invoke
10087 dwarf2out_frame_debug before the insn if found.
10089 2011-06-30 Richard Henderson <rth@redhat.com>
10091 * dwarf2out.c (dwarf2out_frame_debug_cfa_offset): Allow PC_RTX
10092 as a source, and interpret that as DWARF_FRAME_RETURN_COLUMN.
10094 2011-06-30 Richard Henderson <rth@redhat.com>
10096 * dwarf2out.c (struct reg_saved_in_data): Provide a typedef.
10097 Define a vector of this type.
10098 (regs_saved_in_regs): Use a VEC.
10099 (num_regs_saved_in_regs): Remove.
10100 (compare_reg_or_pc): New.
10101 (record_reg_saved_in_reg): Split out from...
10102 (dwarf2out_flush_queued_reg_saves): ... here.
10103 (clobbers_queued_reg_save): Update for VEC.
10104 (reg_saved_in): Likewise.
10105 (dwarf2out_frame_debug_init): Likewise.
10106 (dwarf2out_reg_save_reg): Use record_reg_saved_in_reg.
10107 (dwarf2out_frame_debug_cfa_register): Likewise.
10109 2011-06-30 Eric Botcazou <ebotcazou@adacore.com>
10111 PR tree-optimization/49572
10112 * tree-ssa-dom.c (initialize_hash_element) <GIMPLE_SINGLE_RHS>: Use the
10113 type of the RHS instead of that of the LHS for the expression type.
10115 2011-06-30 Eric Botcazou <ebotcazou@adacore.com>
10117 * df-scan.c (df_get_entry_block_def_set): Use INCOMING_REGNO macro
10120 2011-06-30 Richard Guenther <rguenther@suse.de>
10122 * opts.c (finish_options): Do not disable IPA-PTA during ltrans.
10123 * tree-ssa-structalias.c (create_variable_info_for): Do not
10124 add initial constraints for non-var-decls. Properly handle
10125 globals in other ltrans partitions.
10126 (intra_create_variable_infos): Manually create constraints for
10127 the fake no-alias parameter.
10128 (ipa_pta_execute): Dump the cgraph, handle ltrans partitions properly
10129 and assert there are no clones.
10131 2011-06-30 Richard Guenther <rguenther@suse.de>
10133 PR tree-optimization/46787
10134 * tree-data-ref.c (dr_address_invariant_p): Remove.
10135 (find_data_references_in_stmt): Invariant accesses are ok now.
10136 * tree-vect-stmts.c (vectorizable_load): Handle invariant loads.
10137 * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
10140 2011-06-30 Martin Jambor <mjambor@suse.cz>
10142 PR tree-optimization/49094
10143 * tree-sra.c (tree_non_mode_aligned_mem_p): New function.
10144 (build_accesses_from_assign): Use it.
10146 2011-06-30 Jakub Jelinek <jakub@redhat.com>
10148 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Fix
10149 handling of BUILT_IN_ASSUME_ALIGNED.
10152 * dwarf2out.c (output_abbrev_section): Don't return early
10153 if abbrev_die_table_in_use is 1.
10154 (dwarf2out_finish): Instead don't call output_abbrev_section
10155 nor emit abbrev_section_label in that case.
10157 2011-06-30 Nick Clifton <nickc@redhat.com>
10159 * config/v850/v850.h (CPP_SPEC): Define __v850e__ when compiling
10162 2011-06-30 Jakub Jelinek <jakub@redhat.com>
10164 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Fix
10165 handling of BUILT_IN_MEMPCPY_CHK and BUILT_IN_STPCPY_CHK.
10167 2011-06-30 Ira Rosen <ira.rosen@linaro.org>
10169 * tree-vect-loop.c (vect_determine_vectorization_factor): Handle
10170 both pattern and original statements if necessary.
10171 (vect_transform_loop): Likewise.
10172 * tree-vect-patterns.c (vect_pattern_recog): Update documentation.
10173 * tree-vect-stmts.c (vect_mark_relevant): Add new argument.
10174 Mark the pattern statement only if the original statement doesn't
10176 (process_use): Call vect_mark_relevant with additional parameter.
10177 (vect_mark_stmts_to_be_vectorized): Likewise.
10178 (vect_get_vec_def_for_operand): Use vectorized pattern statement.
10179 (vect_analyze_stmt): Handle both pattern and original statements
10181 (vect_transform_stmt): Don't store vectorized pattern statement
10182 in the original statement.
10183 (vect_is_simple_use_1): Use related pattern statement only if the
10184 original statement is irrelevant.
10185 * tree-vect-slp.c (vect_get_and_check_slp_defs): Likewise.
10187 2011-06-29 Changpeng Fang <changpeng.fang@amd.com>
10189 * config/i386/i386.opt (mprefer-avx128): Redefine the flag as a Mask
10191 * config/i386/i386.h (ix86_tune_indices): Add X86_TUNE_AVX128_OPTIMAL
10193 (TARGET_AVX128_OPTIMAL): New definition.
10194 * config/i386/i386.c (initial_ix86_tune_features): Initialize
10195 X86_TUNE_AVX128_OPTIMAL entry.
10196 (ix86_option_override_internal): Enable the generation
10197 of the 128-bit instructions when TARGET_AVX128_OPTIMAL is set.
10198 (ix86_preferred_simd_mode): Use TARGET_PREFER_AVX128.
10199 (ix86_autovectorize_vector_sizes): Use TARGET_PREFER_AVX128.
10201 2011-06-29 Eric Botcazou <ebotcazou@adacore.com>
10203 PR tree-optimization/49539
10204 * tree-ssa-forwprop.c (can_propagate_from): Check for abnormal SSA
10205 names by means of stmt_references_abnormal_ssa_name.
10206 (associate_plusminus): Call can_propagate_from before propagating
10207 from definition statements.
10208 (ssa_forward_propagate_and_combine): Remove superfluous newline.
10210 2011-06-29 Richard Guenther <rguenther@suse.de>
10212 * doc/invoke.texi: Document -scev dump modifier.
10213 * tree-pass.h (TDF_SCEV): New dump flag.
10214 * tree-dump.c (dump_option_value_in): Add scev.
10215 * tree-chrec.c: Replace all TDF_DETAILS checks with TDF_SCEV.
10216 * tree-scalar-evolution.c: Likewise.
10218 2011-06-29 Nathan Sidwell <nathan@codesourcery.com>
10220 * config/arm/unwind-arm.c (enum __cxa_type_match_result): New.
10221 (cxa_type_match): Correct declaration.
10222 (__gnu_unwind_pr_common): Reconstruct additional indirection
10223 when __cxa_type_match returns succeeded_with_ptr_to_base.
10225 2011-06-29 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10227 PR rtl-optimization/49114
10228 * reload.c (struct replacement): Remove SUBREG_LOC member.
10229 (push_reload): Do not set it.
10230 (push_replacement): Likewise.
10231 (subst_reload): Remove dead code.
10232 (copy_replacements): Remove assertion.
10233 (copy_replacements_1): Do not handle SUBREG_LOC.
10234 (move_replacements): Likewise.
10235 (find_replacement): Remove dead code. Use reload_adjust_reg_for_mode.
10236 Detect subregs via recursive descent instead of via SUBREG_LOC.
10238 2011-06-29 Georg-Johann Lay <avr@gjlay.de>
10240 * config/avr/avr.c (avr_encode_section_info): Dispatch to
10241 default_encode_section_info.
10243 2011-06-29 Richard Sandiford <richard.sandiford@linaro.org>
10245 PR tree-optimization/49545
10246 * builtins.c (get_object_alignment_1): Update function comment.
10247 Do not use DECL_ALIGN for functions, but test
10248 TARGET_PTRMEMFUNC_VBIT_LOCATION instead.
10249 * fold-const.c (get_pointer_modulus_and_residue): Don't check
10250 for functions here.
10251 * tree-ssa-ccp.c (get_value_from_alignment): Likewise.
10253 2011-06-29 Jakub Jelinek <jakub@redhat.com>
10256 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTEND>: Give up for
10257 non-MODE_INT modes instead of asserting the mode has MODE_INT class.
10259 2011-06-29 Georg-Johann Lay <avr@gjlay.de>
10262 * config/avr/avr.c (avr_handle_progmem_attribute): Move warning
10263 about uninitialized data attributed 'progmem' from here...
10264 (avr_encode_section_info): ...to this new function.
10265 (TARGET_ENCODE_SECTION_INFO): New define.
10266 (avr_section_type_flags): For data in ".progmem.data", remove
10267 section flag SECTION_WRITE.
10269 2011-06-29 Georg-Johann Lay <avr@gjlay.de>
10271 * config/avr/t-avr (LIB1ASMFUNCS): Add _mulhisi3, _umulhisi3,
10273 * config/avr/libgcc.S (_xmulhisi3_exit): New Function.
10274 (__mulhisi3): Optimize if have MUL*. Use XJMP instead of rjmp.
10275 (__umulhisi3): Ditto.
10276 * config/avr/avr.md (mulhisi3): New insn expender.
10277 (umulhisi3): New insn expender.
10278 (*mulhisi3_call): New insn.
10279 (*umulhisi3_call): New insn.
10281 2011-06-28 Joseph Myers <joseph@codesourcery.com>
10283 * Makefile.in (LIBGCC2_CFLAGS): Remove -D__GCC_FLOAT_NOT_NEEDED.
10285 2011-06-28 Richard Henderson <rth@redhat.com>
10287 * config/arm/arm.c (thumb_pop): Rename from thumb_pushpop. Delete
10288 all code and arguments that handled pushes. Update all callers.
10290 2011-06-28 Richard Henderson <rth@redhat.com>
10292 * config/arm/arm.c (arm_output_function_prologue): Don't call
10293 thumb1_output_function_prologue.
10294 (arm_expand_prologue): Avoid dead store.
10295 (number_of_first_bit_set): Use ctz_hwi.
10296 (thumb1_emit_multi_reg_push): New.
10297 (thumb1_expand_prologue): Merge thumb1_output_function_prologue
10298 to emit the entire prologue as rtl.
10299 (thumb1_output_interwork): Split out from
10300 thumb1_output_function_prologue.
10301 (thumb1_output_function_prologue): Remove.
10302 (arm_attr_length_push_multi): Handle thumb1.
10303 * config/arm/arm.md (VUNSPEC_THUMB1_INTERWORK): New.
10304 (prologue_thumb1_interwork): New.
10305 (*push_multi): Allow thumb1; use push_mult_memory_operand.
10306 * config/arm/predicates.md (push_mult_memory_operand): New.
10308 2011-06-28 Eric Botcazou <ebotcazou@adacore.com>
10310 * config/sparc/sync.md (*stbar): Delete.
10311 (*membar_v8): New insn to implement UNSPEC_MEMBAR in SPARC-V8.
10313 2011-06-28 Eric Botcazou <ebotcazou@adacore.com>
10315 * tree-ssa-dom.c (initialize_hash_element): Fix oversight.
10317 2011-06-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10319 * config/sparc/sol2-64.h (TARGET_DEFAULT): Remove.
10320 (TARGET_64BIT_DEFAULT): Define.
10321 * config.gcc (sparc*-*-solaris2*): Move sparc/sol2-64.h to front
10323 * config/sparc/sol2.h [TARGET_64BIT_DEFAULT] (TARGET_DEFAULT): Define.
10325 2011-06-28 Joseph Myers <joseph@codesourcery.com>
10327 * common.opt (in_lto_p): New Variable entry.
10328 * flags.h (in_lto_p): Move to common.opt.
10329 * gcc.c: Include params.h.
10330 (set_option_handlers): Also use common_handle_option and
10331 target_handle_option.
10332 (main): Call global_init_params, finish_params and init_options_struct.
10333 * opts.c (debug_type_names): Move from toplev.c.
10334 (print_filtered_help): Access quiet_flag through opts pointer.
10335 (common_handle_option): Return early in the driver for some options.
10336 Access in_lto_p, dwarf_version and warn_maybe_uninitialized through
10338 * toplev.c (in_lto_p): Move to common.opt.
10339 (debug_type_names): Move to opts.c.
10340 * Makefile.in (OBJS): Remove opts.o.
10341 (OBJS-libcommon-target): Add opts.o.
10342 (gcc.o): Update dependencies.
10344 2011-06-28 Kai Tietz <ktietz@redhat.com>
10346 * tree-ssa-forwprop.c (simplify_bitwise_binary): Improve type sinking.
10348 2011-06-28 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
10350 * config/arm/vfp.md ("*divsf3_vfp"): Replace '+' constraint modifier
10351 with '=' constraint modifier.
10352 (*divdf3_vfp): Likewise.
10353 ("*mulsf3_vfp"): Likewise.
10354 ("*muldf3_vfp"): Likewise.
10355 ("*mulsf3negsf_vfp"): Likewise.
10356 ("*muldf3negdf_vfp"): Likewise.
10358 2011-06-28 Nick Clifton <nickc@redhat.com>
10360 * config/mn10300/mn10300.h (LINK_SPEC): Do not use linker
10361 relaxation when performing an incremental link.
10363 2011-06-28 Kai Tietz <ktietz@redhat.com>
10365 * tree-ssa-math-opts.c (execute_optimize_bswap): Search
10366 within BB from last to first.
10368 2011-06-28 Joseph Myers <joseph@codesourcery.com>
10370 * genattr-common.c: New. Based on genattr.c.
10371 * Makefile.in (INSN_ATTR_H): Include insn-attr-common.h.
10372 (MOSTLYCLEANFILES): Add insn-attr-common.h.
10373 (opts.o): Update dependencies.
10374 (.PRECIOUS): Add insn-attr-common.h.
10375 (simple_rtl_generated_h): Add insn-attr-common.h.
10376 (build/genattr-common.o): New.
10377 (genprogrtl): Add attr-common.
10378 * genattr.c (main): Include insn-attr-common.h. Don't generate
10379 definitions of DELAY_SLOTS or INSN_SCHEDULING.
10380 * opts.c: Include insn-attr-common.h instead of rtl.h and insn-attr.h.
10382 2011-06-28 Georg-Johann Lay <avr@gjlay.de>
10384 * config.gcc (tm_file): Add elfos.h and avr/elf.h for
10385 avr-*-* and avr-*-rtems* targets.
10387 * config/avr/elf.h: New file.
10388 (ASM_OUTPUT_BEFORE_CASE_LABEL): Define.
10389 (TARGET_ASM_SELECT_SECTION): Define.
10390 (INIT_SECTION_ASM_OP): Undefine.
10391 (FINI_SECTION_ASM_OP): Undefine.
10392 (READONLY_DATA_SECTION_ASM_OP): Undefine.
10393 (PCC_BITFIELD_TYPE_MATTERS): Undefine.
10394 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Undefine.
10395 * config/avr/avr.h:
10396 (PREFERRED_DEBUGGING_TYPE): Move to elf.h.
10397 (TARGET_ASM_NAMED_SECTION): Move to elf.h.
10398 (MAX_OFILE_ALIGNMENT): Move to elf.h.
10399 (STRING_LIMIT): Move to elf.h.
10400 (ASM_DECLARE_FUNCTION_NAME): Move to elf.h.
10401 (ASM_DECLARE_OBJECT_NAME): Remove.
10403 (ASM_OUTPUT_SKIP): Remove.
10404 (DWARF2_DEBUGGING_INFO): Remove.
10405 (OBJECT_FORMAT_ELF): Remove.
10406 (USER_LABEL_PREFIX): Remove.
10407 (ASM_OUTPUT_EXTERNAL): Remove.
10408 (ASM_OUTPUT_ASCII): Remove.
10409 (TYPE_ASM_OP): Remove.
10410 (SIZE_ASM_OP): Remove.
10411 (WEAK_ASM_OP): Remove.
10412 (STRING_ASM_OP): Remove.
10413 (SET_ASM_OP): Remove.
10414 (ASM_WEAKEN_LABEL): Remove.
10415 (TYPE_OPERAND_FMT): Remove.
10416 (ASM_DECLARE_FUNCTION_SIZE): Remove.
10417 (ASM_FINISH_DECLARE_OBJECT): Remove.
10418 (NO_DOLLAR_IN_LABEL): Remove.
10419 (ASM_GENERATE_INTERNAL_LABEL): Remove.
10420 (ASM_OUTPUT_CASE_LABEL): Remove.
10421 * config/avr/avr.c (avr_asm_output_aligned_decl_common): Use
10422 ASM_OUTPUT_ALIGNED_LOCAL, ASM_OUTPUT_ALIGNED_COMMON.
10423 (gas_output_ascii): Remove.
10424 (gas_output_limited_string): Remove.
10425 (TARGET_ASM_FILE_START_FILE_DIRECTIVE): Remove.
10426 * config/avr/avr-protos.h
10427 (gas_output_ascii): Remove prototye.
10428 (gas_output_limited_string): Remove prototype.
10430 2011-06-27 Richard Earnshaw <rearnsha@arm.com>
10433 * arm.c (arm_print_operand): Allow sym+offset. Don't abort on invalid
10436 2011-06-27 Jan Hubicka <jh@suse.cz>
10438 * ipa.c (cgraph_address_taken_from_non_vtable_p): Walk references of
10439 node instead of references in node.
10441 2011-06-27 Richard Henderson <rth@redhat.com>
10443 * config/alpha/alpha.c (vms_patch_builtins): Provide dummy definition.
10444 * config/ia64/ia64.c (ia64_init_builtins): Call vms_patch_builtins
10447 2011-06-27 Jakub Jelinek <jakub@redhat.com>
10449 * c-decl.c (union lang_tree_node): Use it in chain_next expression.
10451 * builtin-types.def (BT_FN_PTR_CONST_PTR_SIZE_VAR): New.
10452 * builtins.def (BUILT_IN_ASSUME_ALIGNED): New builtin.
10453 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call,
10454 find_func_clobbers): Handle BUILT_IN_ASSUME_ALIGNED.
10455 * tree-ssa-ccp.c (bit_value_assume_aligned): New function.
10456 (evaluate_stmt, execute_fold_all_builtins): Handle
10457 BUILT_IN_ASSUME_ALIGNED.
10458 * tree-ssa-dce.c (propagate_necessity): Likewise.
10459 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
10460 call_may_clobber_ref_p_1): Likewise.
10461 * builtins.c (is_simple_builtin, expand_builtin): Likewise.
10462 (expand_builtin_assume_aligned): New function.
10463 * doc/extend.texi (__builtin_assume_aligned): Document.
10466 * cselib.c (promote_debug_loc): If cselib_preserve_constants
10467 and l has two DEBUG_INSN owned locs instead of just one, adjust
10468 the second location's setting_insn too.
10470 2011-06-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10472 PR libmudflap/38738
10473 * config/sol2.h [!USE_GLD] (MFLIB_SPEC): Define.
10475 2011-06-27 Nick Clifton <nickc@redhat.com>
10477 * config/mn10300/mn10300.md (clzsi2): Use XOR after BSCH to convert
10478 bit position of highest bit set into a count of the high zero bits.
10480 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
10482 * dwarf2out.c (TYPE_DECL_IS_STUB): Extend mechanism to all types.
10484 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
10487 * dwarf2out.c (dwarf2out_finish): Do not attach a DIE on the limbo list
10490 2011-06-27 Richard Guenther <rguenther@suse.de>
10492 PR tree-optimization/49394
10493 * passes.c (execute_one_pass): Restore current_pass after
10494 applying IPA transforms.
10496 2011-06-27 Kai Tietz <ktietz@redhat.com>
10498 * tree-ssa-math-opts.c (do_shift_rotate): Zero bits
10499 out of type precision after operation.
10500 (find_bswap): Take for limit value the integer auto-promotion
10503 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
10505 * reorg.c (fill_simple_delay_slots): Use stop_search_p to stop the
10506 forward scan as well.
10508 2011-06-27 Tristan Gingold <gingold@adacore.com>
10511 * config/vms/vms-protos.h: New file.
10512 * config/vms/vms-crtlmap.map: New file.
10513 * config/vms/vms.c: New file.
10514 * config/vms/make-crtlmap.awk: New file.
10515 * config/vms/vms-crtl.h: File removed.
10516 * config/vms/vms-crtl-64.h: File removed.
10517 * config/vms/t-vms (vms-crtlmap.h, vms.o): New targets.
10518 * config/alpha/vms64.h: Do not include vms-crtl-64.h
10519 * config/alpha/alpha.c (alpha_init_builtins): Remove code to
10520 clear some builtins on VMS. Calls vms_patch_builtins.
10521 (avms_asm_output_external): Remove.
10522 * config/alpha/vms.h (ASM_OUTPUT_EXTERNAL): Remove.
10523 (struct crtl_name_spec): Remove
10524 (DO_CTRL_NAMES): Remove.
10525 * config/ia64/vms.h (struct crtl_name_spec): Remove
10526 (DO_CTRL_NAMES): Remove.
10527 * config/ia64/ia64.c (alpha_init_builtins): Remove code to
10528 clear some builtins on VMS. Calls vms_patch_builtins.
10529 (ia64_asm_output_external): Remove DO_CRTL_NAME.
10530 * config/ia64/vms64.h: Do not include vms-crtl-64.h
10531 * config.gcc (*-*-*vms*): Define extra_objs, target_gtfiles, tm_p_file.
10533 2011-06-27 Tristan Gingold <gingold@adacore.com>
10535 * config/alpha/alpha.c (alpha_end_function): Always generate .end
10538 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
10540 * config/sparc/sparc.c (sparc_frame_pointer_required): Return true if
10541 the function receives nonlocal gotos.
10543 2011-06-27 Richard Guenther <rguenther@suse.de>
10545 PR tree-optimization/49536
10546 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size):
10547 For non-scalar inner types use a scalar type according to
10548 the scalar inner mode.
10550 2011-06-27 Richard Guenther <rguenther@suse.de>
10552 PR tree-optimization/49365
10553 * params.def (min-insn-to-prefetch-ratio): Reduce from 10 to 9.
10555 2011-06-27 Richard Guenther <rguenther@suse.de>
10557 PR tree-optimization/49169
10558 * fold-const.c (get_pointer_modulus_and_residue): Don't rely on
10559 the alignment of function decls.
10561 2011-06-26 Iain Sandoe <iains@gcc.gnu.org>
10564 * config/darwin.c (darwin_mergeable_string_section): Place string
10565 constants in '.cstring' rather than '.const' when CF/NSStrings are
10568 2011-06-26 Eric Botcazou <ebotcazou@adacore.com>
10570 * config/sparc/sparc.c (save_local_or_in_reg_p): Adjust comment.
10571 (emit_save_register_window): Likewise.
10572 (sparc_expand_prologue): Use SIZE_INT_RTX and SIZE_RTX variables.
10573 (sparc_flat_expand_prologue): Add comment. Always emit blockage.
10574 Swap back %o7/%i7 in register naming.
10576 2011-06-25 Iain Sandoe <iains@gcc.gnu.org>
10579 * config/darwin.c (darwin_override_options): Improve warning when
10580 mdynamic-no-pic is given together with fPIC/fpic, also warn when it
10581 is given with fpie/fPIE.
10582 * config/darwin.h (PIE_SPEC): New, (LINK_SPEC): Use PIE_SPEC.
10583 * config/darwin9.h (PIE_SPEC): New.
10585 2011-06-25 Basile Starynkevitch <basile@starynkevitch.net>
10587 * timevar.c (timevar_print): Increase width for display of timevar
10590 2011-06-24 Jakub Jelinek <jakub@redhat.com>
10593 * c-decl.c (union lang_tree_node): Use TYPE_NEXT_VARIANT
10594 instead of TYPE_CHAIN for chain_next for types.
10596 2011-06-24 Richard Henderson <rth@redhat.com>
10598 * config/sparc/sparc.md (create_flat_frame_1<P:mode>): Remove.
10599 (create_flat_frame_2<P:mode>, create_flat_frame_3<P:mode>): Remove.
10600 * config/sparc/sparc.c (gen_create_flat_frame_1): Remove.
10601 (gen_create_flat_frame_2, gen_create_flat_frame_3): Remove.
10602 (sparc_flat_expand_prologue): Emit individual instructions
10603 instead of one of the above.
10605 2011-06-24 Easwaran Raman <eraman@google.com>
10607 PR rtl-optimization/49429
10609 * expr.c (emit_block_move_hints): Mark MEM_EXPR(x) and
10610 MEM_EXPR(y) addressable if emit_block_move_via_libcall is
10611 used to copy y into x.
10612 * calls.c (initialize_argument_information): Mark
10613 an argument addressable if it is passed by invisible reference.
10614 (emit_library_call_value_1): Mark MEM_EXPR (val) addressable
10615 if it is passed by reference.
10617 2011-06-24 H.J. Lu <hongjiu.lu@intel.com>
10619 PR rtl-optimization/49504
10620 * rtlanal.c (nonzero_bits1): Properly handle addition or
10621 subtraction of a pointer in Pmode if pointers extend unsigned.
10622 (num_sign_bit_copies1): Likewise.
10624 2011-06-24 Martin Jambor <mjambor@suse.cz>
10626 PR tree-optimizations/49516
10627 * tree-sra.c (sra_modify_assign): Choose the safe path for
10628 aggregate copies if we also did scalar replacements.
10630 2011-06-24 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
10633 * config/arm/predicates.md (add_operator): New.
10634 * config/arm/arm.md ("*arith_shiftsi"): Fix for SP reg usage in Thumb2.
10636 2011-06-24 Andi Kleen <ak@linux.intel.com>
10638 * tree-sra.c (type_internals_preclude_sra_p): Add msg
10639 parameter. Split up ifs and report reason in *msg.
10641 (find_var_candiate): Add msg variable.
10642 Split up ifs and report reason to reject.
10643 (find_param_candidates): Add msg variable.
10644 Pass msg to type_internals_preclude_sra_p.
10646 2011-06-23 Jeff Law <law@redhat.com>
10648 PR middle-end/48770
10649 * reload.h (reload): Change to return a bool.
10650 * ira.c (ira): If requested by reload, run a fast DCE pass after
10651 reload has completed. Fix comment typo.
10652 * reload1.c (need_dce): New file scoped static.
10653 (reload): Set reload_completed here. Return whether or not a DCE
10654 pass after reload is needed.
10655 (delete_dead_insn): Set need_dce as needed.
10657 PR middle-end/49465
10658 * tree-ssa-threadupate.c (fix_duplicate_block_edges): Fix condition
10659 to detect threading through joiner block. If there was already
10660 an edge to the new target, then do not change the PHI nodes.
10662 2011-06-23 Jakub Jelinek <jakub@redhat.com>
10664 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Use
10665 get_pointer_alignment to see if base isn't sufficiently aligned.
10667 2011-06-23 Jan Hubicka <jh@suse.cz>
10669 PR tree-optimize/49373
10670 * tree-pass.h (all_late_ipa_passes): Declare.
10671 * cgraphunit.c (init_lowered_empty_function): Fix properties.
10672 (cgraph_optimize): Execute late passes; remove unreachable funcions
10673 after materialization.
10674 * ipa-inline.c (gate_ipa_inline): Enable only when optimizing or
10676 * passes.c (all_late_ipa_passes): Declare.
10677 (dump_passes, register_pass): Handle late ipa passes.
10678 (init_optimization_passes): Move ipa_pta to late passes; schedule
10679 fixup_cfg at beggining of all_passes.
10680 (apply_ipa_transforms): New function.
10681 (execute_one_pass): When doing simple ipa pass, apply all transforms.
10683 2011-06-23 Joseph Myers <joseph@codesourcery.com>
10685 * params.c: Include common/common-target.h. Don't include tm.h.
10686 (lang_independent_params): Move from toplev.c.
10687 (global_init_params): New.
10688 * params.h (global_init_params): Declare.
10689 * target.def (default_params): Move to common-target.def.
10690 * toplev.c (lang_independent_options): Remove.
10691 (lang_independent_params): Move to params.c.
10692 (general_init): Use global_init_params.
10693 * common/common-target.def (option_default_params): Move from
10695 * common/config/ia64/ia64-common.c: Include params.h.
10696 (ia64_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
10698 * common/config/rs6000/rs6000-common.c: Include params.h.
10699 (rs6000_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
10701 * common/config/sh/sh-common.c: Include params.h.
10702 (sh_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
10704 * common/config/spu/spu-common.c: Include params.h.
10705 (spu_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
10707 * config/ia64/ia64.c (ia64_option_default_params,
10708 TARGET_OPTION_DEFAULT_PARAMS): Move to ia64-common.c.
10709 * config/rs6000/rs6000.c (rs6000_option_default_params,
10710 TARGET_OPTION_DEFAULT_PARAMS): Move to rs6000-common.c.
10711 * config/sh/sh.c (sh_option_default_params,
10712 TARGET_OPTION_DEFAULT_PARAMS): Move to sh-common.c.
10713 * config/spu/spu.c (spu_option_default_params,
10714 TARGET_OPTION_DEFAULT_PARAMS): Move to spu-common.c.
10715 * Makefile.in (OBJS): Remove params.o.
10716 (OBJS-libcommon-target): Add params.o.
10717 (params.o, $(common_out_object_file)): Update dependencies.
10718 * doc/tm.texi: Regenerate.
10720 2011-06-23 Alan Modra <amodra@gmail.com>
10723 * config/rs6000/rs6000.c (call_ABI_of_interest): Adjust cgraph
10724 invocation for 2011-06-09 changes.
10726 2011-06-22 Jakub Jelinek <jakub@redhat.com>
10729 * omp-low.c (expand_omp_for_static_nochunk): Only
10730 use n ceil/ nthreads size for the first n % nthreads threads in the
10731 team instead of all threads except for the last few ones which
10732 get less work or none at all.
10735 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Ignore debug
10738 2011-06-22 Richard Guenther <rguenther@suse.de>
10740 PR tree-optimization/49493
10741 * tree-ssa-structalias.c (get_constraint_for_ssa_var):
10742 Refer to the alias target of variables.
10743 (associate_varinfo_to_alias_1): Remove.
10744 (ipa_pta_execute): Do not associate aliases with anything.
10745 * cgraph.h (varpool_alias_aliased_node): Fix cut&paste errors.
10746 (cgraph_function_node): Likewise.
10747 (cgraph_function_or_thunk_node): Likewise.
10748 (varpool_variable_node): Likewise.
10750 2011-06-22 Nathan Sidwell <nathan@codesourcery.com>
10752 * config/arm/arm.h (OPTION_DEFAULT_SPECS): Fix -mtls-dialect typo.
10753 * config.gcc (arm*-*-linux*): Default to gnu tls.
10754 (arm*-*-*): Add --with-tls option.
10755 (all_defaults): Add 'tls'.
10757 2011-06-22 Richard Henderson <rth@redhat.com>
10759 * reg-notes.def (REG_CFA_WINDOW_SAVE): New.
10760 * dwarf2out.c (dwarf2out_frame_debug): Handle it.
10761 (dwarf2out_frame_debug_cfa_window_save): Rename from
10762 dwarf2out_window_save; make static.
10763 * tree.h (dwarf2out_window_save): Don't declare.
10765 * config/sparc/sparc.c (sparc_dwarf_handle_frame_unspec): Remove.
10766 (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
10767 (emit_save_register_window): Rename from gen_save_register_window;
10768 emit the insn and add REG_CFA_* notes.
10769 (sparc_expand_prologue): Update to match.
10770 * config/sparc/sparc.md (save_register_window_1): Simplify from
10771 save_register_window<P:mode>.
10773 2011-06-22 H.J. Lu <hongjiu.lu@intel.com>
10776 * config/i386/i386.md (*lea_general_2): Always allow SImode.
10777 (*lea_general_2_zext): Likewise.
10778 (imul to lea peepholes): Use const359_operand and check
10779 TARGET_PARTIAL_REG_STALL.
10781 * config/i386/predicates.md (const359_operand): New.
10783 2011-06-22 Michael Matz <matz@suse.de>
10785 * cgraphunit.c (assemble_thunk): Use correct return type.
10787 2011-06-22 Dmitry Plotnikov <dplotnikov@ispras.ru>
10788 Dmitry Melnik <dm@ispras.ru>
10790 * config/arm/arm.c (neon_immediate_valid_for_shift): New function.
10791 (neon_output_shift_immediate): Ditto.
10792 * config/arm/arm-protos.h (neon_immediate_valid_for_shift): New
10794 (neon_output_shift_immediate): Ditto.
10795 * config/arm/neon.md (vashl<mode>3): Modified constraint.
10796 (vashr<mode>3_imm): New insn pattern.
10797 (vlshr<mode>3_imm): Ditto.
10798 (vashr<mode>3): Modified constraint.
10799 (vlshr<mode>3): Ditto.
10800 * config/arm/predicates.md (imm_for_neon_lshift_operand): New
10802 (imm_for_neon_rshift_operand): Ditto.
10803 (imm_lshift_or_reg_neon): Ditto.
10804 (imm_rshift_or_reg_neon): Ditto.
10806 * optabs.c (init_optabs): Init optab codes for vashl, vashr, vlshr.
10808 2011-06-22 Jakub Jelinek <jakub@redhat.com>
10810 * tree-ssa-ccp.c (evaluate_stmt): Try bitwise tracking for
10811 builtin calls even if likelyvalue is not CONSTANT.
10812 Handle BUILT_IN_STRDUP and BUILT_IN_STRNDUP like BUILT_IN_MALLOC.
10813 Return get_value_for_expr of first operand
10814 for BUILT_IN_{MEM{CPY,MOVE,SET},STR{,N}CPY}{,_CHK}.
10815 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
10816 BUILT_IN_{MEM{{,P}CPY,MOVE,SET},STR{,N}C{PY,AT},STPCPY}_CHK like
10817 their non-checking counterparts.
10818 (call_may_clobber_ref_p_1): Likewise.
10819 (stmt_kills_ref_p_1): Handle BUILT_IN_MEM{{,P}CPY,MOVE,SET}_CHK
10820 like their non-checking counterparts.
10821 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
10822 Handle BUILT_IN_{MEM{{,P}CPY,MOVE,SET},STR{,N}C{PY,AT},STPCPY}_CHK
10823 like their non-checking counterparts.
10824 (find_func_clobbers): Likewise.
10825 * tree-ssa-dce.c (propagate_necessity): Handle BUILT_IN_MEMSET_CHK
10826 like BUILT_IN_MEMSET and BUILT_IN_CALLOC like BUILT_IN_MALLOC.
10828 * dwarf2out.c (size_of_loc_descr, output_loc_operands,
10829 mark_base_types, hash_loc_operands, compare_loc_operands): Allow
10830 DW_OP_GNU_convert and DW_OP_GNU_reinterpret to use constant instead
10831 of base type reference as argument.
10832 (resolve_addr_in_expr): Likewise. Fix keep computation.
10833 (convert_descriptor_to_signed): Renamed to...
10834 (convert_descriptor_to_mode): ... this. For wider types convert to
10835 unsigned instead of signed, for <= DWARF2_ADDR_SIZE convert to untyped.
10836 (typed_binop): New function.
10837 (scompare_loc_descriptor, ucompare_loc_descriptor,
10838 minmax_loc_descriptor, mem_loc_descriptor): For wider integer modes
10839 default to unsigned type instead of signed.
10842 * gimple.h (enum gimple_debug_subcode): Add GIMPLE_DEBUG_SOURCE_BIND.
10843 (gimple_build_debug_source_bind_stat): New prototype.
10844 (gimple_build_debug_source_bind): Define.
10845 (gimple_debug_source_bind_p, gimple_debug_source_bind_get_var,
10846 gimple_debug_source_bind_get_value,
10847 gimple_debug_source_bind_get_value_ptr,
10848 gimple_debug_source_bind_set_var,
10849 gimple_debug_source_bind_set_value): New inlines.
10850 * gimple.c (gimple_build_debug_source_bind_stat): New function.
10851 * gimple-pretty-print.c (dump_gimple_debug): Handle
10852 GIMPLE_DEBUG_SOURCE_BIND.
10853 * sese.c (rename_uses): Handle gimple_debug_source_bind_p.
10854 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
10855 * tree-parloops.c (eliminate_local_variables,
10856 separate_decls_in_region): Likewise.
10857 (separate_decls_in_region_debug): Renamed from
10858 separate_decls_in_region_debug_bind. Handle
10859 gimple_debug_source_bind_p.
10860 * tree.h (decl_debug_args_lookup, decl_debug_args_insert): New
10862 (DECL_HAS_DEBUG_ARGS_P): Define.
10863 (struct tree_function_decl): Add has_debug_args_flag field.
10864 * tree.c (debug_args_for_decl): New variable.
10865 (decl_debug_args_lookup, decl_debug_args_insert): New functions.
10866 * tree-into-ssa.c (mark_def_sites): Handle uses in debug stmts.
10867 (rewrite_debug_stmt_uses): New function.
10868 (rewrite_stmt): Use it to rewrite debug stmt uses.
10869 * rtl.def (DEBUG_PARAMETER_REF): New.
10870 * rtl.h (DEBUG_PARAMETER_REF_DECL): Define.
10871 * cselib.c (rtx_equal_for_cselib_1, cselib_hash_rtx): Handle
10872 DEBUG_PARAMETER_REF.
10873 * rtl.c (rtx_equal_p_cb, rtx_equal_p, iterative_hash_rtx): Likewise.
10874 * print-rtl.c (print_rtx): Likewise.
10875 * tree-sra.c (sra_ipa_reset_debug_stmts): Prefer replacing of
10876 SSA_NAMEs with DEBUG_EXPR_DECLs initialized in source bind
10877 debug stmts in the first bb.
10878 * tree-inline.c (remap_ssa_name): If remapping default def
10879 of a PARM_DECL fails, map to a DEBUG_EXPR_DECL set in
10880 a source bind debug stmt.
10881 (remap_gimple_stmt): Handle gimple_debug_source_bind_p.
10882 (maybe_move_debug_stmts_to_successors): Likewise.
10883 (copy_debug_stmt): Likewise. Avoid shadowing a variable.
10884 (tree_function_versioning): If DECL_HAS_DEBUG_ARGS_P, copy
10885 debug args vector from old_decl to new_decl.
10886 * ipa-prop.c (ipa_modify_call_arguments): For optimized away
10887 or modified parameters, add debug bind stmts before call
10888 setting DEBUG_EXPR_DECL which is remembered in debug args vector.
10889 * cfgexpand.c (expand_call_stmt): Call expand_debug_expr
10890 on DECL_DEBUG_EXPRs from debug args vector.
10891 (expand_debug_source_expr): New function.
10892 (expand_debug_locations): Use it for source bind insns.
10893 (expand_gimple_basic_block): Handle gimple_debug_source_bind_p.
10894 * var-tracking.c (prepare_call_arguments): Add debug args
10895 to call_arguments if any.
10896 * dwarf2out.c (dwarf_stack_op_name, size_of_loc_descr,
10897 output_loc_operands, output_loc_operands_raw, resolve_addr_in_expr,
10898 compare_loc_operands): Handle DW_OP_GNU_parameter_ref.
10899 (get_ref_die_offset, parameter_ref_descriptor): New functions.
10900 (mem_loc_descriptor): Handle DEBUG_PARAMETER_REF.
10901 (gen_subprogram_die): Handle parameters identified by
10902 DEBUG_PARAMETER_REF.
10904 2011-06-22 Nathan Sidwell <nathan@codesourcery.com>
10906 * doc/invoke.texi (ARM Options): Document -mtls-dialect option.
10907 * doc/install.texi (Configuration): Document --with-tls.
10908 * config/arm/arm.c (enum tls_reloc): Add TLS_DESCSEQ.
10909 (arm_call_tls_get_addr): Clean up. Assert not tls descriptor.
10910 (arm_tls_descseq_addr): New.
10911 (legitimize_tls_address): Add tlsdesc support.
10912 (arm_cannot_copy_insn_p): Check for tlscall.
10913 (arm_emit_tls_decoration): Likewise.
10914 * config/arm/arm.h (TARGET_GNU2_TLS): New.
10915 (OPTION_DEFAULT_SPECS): Add with-tls support.
10916 * config/arm/arm.md (R1_REGNUM): Define.
10918 * config/arm/arm.opt (tls_type): New enumeration type and values.
10919 (mtls-dialect): New switch.
10920 * config/arm/arm-opts.h (enum tls_type): New.
10922 2011-06-21 Nicola Pero <nicola.pero@meta-innovation.com>
10924 * attribs.c (register_attribute): Added assert to check that all
10925 attribute specs are registered with a name that is not empty and
10926 does not start with '_'.
10927 (decl_attributes): Avoid the lookup of the "naked" attribute spec
10928 if the function has no attributes.
10929 * tree.c (is_attribute_with_length_p): Removed.
10930 (is_attribute_p): Removed.
10931 (private_is_attribute_p): New.
10932 (private_lookup_attribute): New.
10933 (lookup_attribute): Removed.
10934 (lookup_ident_attribute): New.
10935 (remove_attribute): Require the first argument to be in the form
10936 'text', not '__text__'. Updated asserts.
10937 (merge_attributes): Use lookup_ident_attributes instead of
10939 (merge_dllimport_decl_attributes): Use remove_attribute.
10940 (attribute_list_contained): Likewise.
10941 (attribute_list_equal): Immediately return 1 if the arguments are
10942 identical pointers.
10943 * tree.h (is_attribute_p): Made inline. Return a 'bool', not an
10944 'int'. Require the first argument to be in the form 'text', not
10945 '__text__'. Require the second argument to be an identifier.
10946 (lookup_attribute): Made inline. Require the first argument to be
10947 in the form 'text', not '__text__'.
10948 (private_is_attribute_p, private_lookup_attribute): New.
10951 2011-06-21 Andrew MacLeod <amacleod@redhat.com>
10953 * builtins.c: Add sync_ or SYNC__ to builtin names.
10954 * sync-builtins.def: Add sync_ or SYNC__ to builtin names.
10955 * omp-low.c: Add sync_ or SYNC__ to builtin names.
10957 2011-06-21 Georg-Johann Lay <avr@gjlay.de>
10960 * config/avr/avr.md (extzv): New expander.
10961 (*extzv): New insn.
10962 (*extzv.qihi1, *extzv.qihi2): New insn-and-split.
10963 * config/avr/constraints.md (C04): New constraint.
10964 * doc/md.texi (Machine Constraints): Document it.
10966 2011-06-21 Jakub Jelinek <jakub@redhat.com>
10968 PR middle-end/49489
10969 * builtins.c (expand_builtin_unop): Call expand_unop with 0 as
10970 unsignedp argument instead of 1 for clrsb_optab.
10971 (fold_builtin_bitop): Fix masking for width > HOST_BITS_PER_WIDE_INT
10972 and < 2 * HOST_BITS_PER_WIDE_INT. Optimize BUILT_IN_CLRSB*.
10973 (fold_builtin_1): Call fold_builtin_binop for BUILT_IN_CLRSB*.
10974 * optabs.c (widen_leading): Call widen_operand and expand_unop
10975 with 0 as unsignedp argument instead of 1 for clrsb_optab.
10976 (expand_unop): Subtract difference of mode sizes also for clrsb_optab.
10978 2011-06-21 Georg-Johann Lay <avr@gjlay.de>
10980 * config/avr/avr.md (*jcindirect_jump): Fix build warning.
10982 2011-06-21 Bernd Schmidt <bernds@codesourcery.com>
10984 * gensupport.c (add_define_attr): New static function.
10985 (is_predicable): Allow multi-alternative lists for the "predicable"
10987 (modify_attr_enabled_ce, alter_attrs_for_insn): New static functions.
10988 (process_one_cond_exec): Call alter_attrs_for_insn.
10989 * doc/md.texi (Defining Attributes): Mention some standard names.
10990 (Conditional Execution): Update documentation for "predicable".
10992 * doc/extend.texi (__builtin_clrsb, __builtin_clrsbl,
10993 __builtin_clrsbll): Document.
10994 * doc/rtl.texi (clrsb): New entry.
10995 * optabs.c (widen_leading): Renamed from widen_clz. New argument
10996 UNOPTAB. All callers changed. Use UNOPTAB instead of clz_optab.
10997 (expand_unop): Handle clrsb_optab.
10998 (init_optabs): Initialize it.
10999 * optabs.h (enum optab_index): New entry OTI_clrsb.
11000 (clrsb_optab): Define.
11001 * genopinit.c (optabs): Add an entry for it.
11002 * builtins.c (expand_builtin): Handle clrsb builtin functions.
11003 * builtins.def (BUILT_IN_CLRSB, BUILT_IN_CLRSBIMAX, BUILT_IN_CLRSBL,
11004 BUILT_IN_CLRSBLL): New.
11005 * rtl.def (CLRSB): New code.
11006 * dwarf2out.c (mem_loc_descriptor): Handle it.
11007 * simplify-rtx.c (simplify_const_unary_operation): Likewise.
11008 Use op_mode rather than mode when optimizing ffs, clz, ctz, parity
11010 * libgcc2.c (__clrsbSI2, __clrsbDI2): New functions.
11011 * libgcc2.h (__clrsbSI2, __clrsbDI2): Define and declare.
11012 (__ctzDI2): Move declaration.
11013 * config/bfin/bfin.md (clrsbsi2): New expander.
11014 (signbitssi2): Use the CLRSB rtx.
11015 (clrsbhi2): Renamed from signbitshi2. Use the CLRSB rtx.
11016 * config/bfin/bfin.c (bdesc_1arg): Changed accordingly.
11018 2011-06-21 Richard Guenther <rguenther@suse.de>
11020 * ipa-inline-transform.c (inline_transform): Fix previous change.
11022 2011-06-21 Ira Rosen <ira.rosen@linaro.org>
11024 PR tree-optimization/49478
11025 * tree-vect-loop.c (vectorizable_reduction): Handle DOT_PROD_EXPR
11026 with constant operand.
11028 2011-06-21 Richard Guenther <rguenther@suse.de>
11030 * ipa-inline-transform.c (inline_transform): Fix typo.
11032 2011-06-21 Richard Guenther <rguenther@suse.de>
11034 PR tree-optimization/49483
11035 * tree-vect-stmts.c (vectorizable_assignment): Also handle
11036 VIEW_CONVERT_EXPR conversions.
11038 2011-06-21 Joseph Myers <joseph@codesourcery.com>
11040 * config/avr/avr-mcus.def, config/avr/genopt.sh: New files.
11041 * config/avr/avr-tables.opt: New file (generated).
11042 * config.gcc (avr-*-*): Use avr/avr-tables.opt.
11043 * config/avr/avr-devices.c (avr_mcu_types): Move contents to
11045 * config/avr/avr.c (avr_help, TARGET_HELP): Remove.
11046 (avr_option_override): Don't process -mmcu= argument here. Set
11047 avr_current_device using avr_mcu_index.
11048 (avr_file_start): Use avr_current_device->name instead of avr_mcu_name.
11049 * config/avr/avr.opt (mmcu=): Use Enum.
11050 * config/avr/t-avr (avr-devices.o): Update dependencies.
11051 ($(srcdir)/config/avr/avr-tables.opt): New.
11052 * target.def (help): Remove.
11053 * doc/tm.texi.in (TARGET_HELP): Remove.
11054 * doc/tm.texi: Regenerate.
11055 * opts.c: Don't include target.h.
11056 (common_handle_option): Don't call targetm.help.
11057 * system.h (TARGET_HELP): Poison.
11058 * Makefile.in (opts.o): Update dependencies.
11060 2011-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11062 * config/usegld.h: New file.
11063 * config/sol2.h (PREFERRED_DEBUGGING_TYPE): Remove.
11064 (CPP_SUBTARGET_SPEC): Remove -compat-bsd support.
11065 (LIB_SPEC): Likewise. Search /lib.
11066 (LINK_ARCH32_SPEC_BASE): Remove -compat-bsd support.
11067 (RDYNAMIC_SPEC): Handle GNU ld.
11068 [HAVE_LD_EH_FRAME_HDR && TARGET_DL_ITERATE_PHDR] (LINK_EH_SPEC):
11070 (SUPPORTS_INIT_PRIORITY): Only disable for Sun ld.
11071 (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Define.
11072 [!USE_GAS] (NO_DBX_BNSYM_ENSYM): Redefine.
11073 (STACK_CHECK_STATIC_BUILTIN): Define.
11074 * config/sol2.opt (compat-bsd): Remove.
11075 * config/sol2-10.h (TARGET_C99_FUNCTIONS): Remove undef.
11076 * config/sol2-bi.h: New file.
11077 * config/sol2-gld.h: Remove.
11078 * config/i386/sol2.h (TLS_COMMON_ASM_OP): Only define if !USE_GAS.
11079 (NO_DBX_BNSYM_ENSYM): Remove.
11080 (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Remove.
11081 (STACK_CHECK_STATIC_BUILTIN): Remove.
11082 Test USE_GLD instead of TARGET_GNU_LD.
11083 * config/i386/sol2-10.h: Rename to ...
11084 * config/i386/sol2-bi.h .. this.
11085 (SUBTARGET_EXTRA_SPECS): Redefine.
11086 (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE): Remove.
11087 (MULTILIB_DEFAULTS): Remove.
11088 (DEFAULT_ARCH32_P): Define.
11089 (LINK_ARCH64_SPEC_BASE, LINK_ARCH64_SPEC): Remove.
11090 (ARCH64_SUBDIR): Define.
11091 Test USE_GLD instead of TARGET_GNU_LD.
11092 (I386_EMULATION): Rename to ...
11093 (ARCH32_EMULATION): ... this.
11094 (X86_64_EMULATION): Rename to ...
11095 (ARCH64_EMULATION): ... this.
11096 (TARGET_LD_EMULATION): Remove.
11097 (LINK_ARCH_SPEC): Remove.
11098 * config/i386/sol2-gas.h: Remove.
11099 * config/i386/t-sol2-10: Rename to ...
11100 * config/i386/t-sol2-64: ... this.
11101 * config/sparc/sol2.h (SPARC_DEFAULT_CMODEL): Redefine.
11102 (AS_SPARC64_FLAG): Define.
11103 (ASM_CPU32_DEFAULT_SPEC, ASM_CPU64_DEFAULT_SPEC): Redefine.
11104 (CPP_CPU64_DEFAULT_SPEC, ASM_CPU32_DEFAULT_SPEC): Redefine
11105 depending on TARGET_CPU_DEFAULT.
11106 (CPP_CPU_SPEC): Redefine.
11107 (ASM_CPU_SPEC): Handle DEFAULT_ARCH32_P.
11108 (CPP_CPU_DEFAULT_SPEC, ASM_CPU_DEFAULT_SPEC): Redefine.
11109 (CPP_ARCH32_SPEC, CPP_ARCH64_SPEC, CPP_ARCH_SPEC): Redefine.
11110 (ASM_ARCH_SPEC, ASM_ARCH32_SPEC, ASM_ARCH64_SPEC,
11111 ASM_ARCH_DEFAULT_SPEC): Redefine.
11112 (SUBTARGET_EXTRA_SPECS): Add LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
11113 LINK_ARCH_DEFAULT_SPEC.
11114 [USE_GLD] (ARCH32_EMULATION, ARCH64_EMULATION): Define.
11115 [USE_GLD] (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC): Redefine.
11116 (ARCH64_SUBDIR): Define.
11117 (LINK_ARCH64_SPEC): Redefine.
11118 (CC1_SPEC): Redefine.
11119 (OPTION_DEFAULT_SPECS): Redefine.
11120 (MULTILIB_DEFAULTS): Define.
11121 (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE): Redefine.
11122 [USE_GAS && HAVE_AS_TLS] (TARGET_SUN_TLS, TARGET_GNU_TLS): Redefine.
11123 [USE_GLD] (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undef.
11124 (NO_DBX_BNSYM_ENSYM): Remove.
11125 (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Remove.
11126 (ASM_OUTPUT_ALIGN_WITH_NOP): Only define if !USE_GAS.
11127 (TARGET_ASM_NAMED_SECTION): Likewise.
11128 (STACK_CHECK_STATIC_BUILTIN): Remove.
11129 * config/sparc/sol2-bi.h: Remove.
11130 * config/sparc/sol2-gas-bi.h: Remove.
11131 * config/sparc/sol2-gas.h: Remove.
11132 * config/sparc/sol2-gld-bi.h: Remove.
11133 * config.gcc (i[34567]86-*-solaris2*, sparc*-*-solaris2*): Move
11135 (*-*-solaris2*): ... here.
11137 2011-06-21 Christian Bruel <christian.bruel@st.com>
11140 * ipa-inline.c (can_inline_edge_p): Check
11141 !DECL_DISREGARD_INLINE_LIMITS.
11143 2011-06-21 Christian Bruel <christian.bruel@st.com>
11145 PR middle-end/49139
11146 * cgraphunit.c (process_function_and_variable_attributes): warn when
11147 always_inline functions that are not inline.
11148 * ipa-inline-transform.c (inline_transform): Always call
11150 * tree-inline.c (tree_inlinable_function_p): Use error instead
11152 (expand_call_inline): Likewise.
11154 2011-06-21 Jakub Jelinek <jakub@redhat.com>
11156 * Makefile.in (dg_target_exps): Set.
11157 (check_gcc_parallelize): Parallelize gcc testing into 10 jobs
11158 instead of 7, try to divide it more evenly.
11160 2011-06-20 Changpeng Fang <changpeng.fang@amd.com>
11163 * config/i386/i386.c (avx256_split_unaligned_load): New definition.
11164 (avx256_split_unaligned_store): New definition.
11165 (ix86_option_override_internal): Enable avx256 unaligned load/store
11166 splitting only when avx256_split_unaligned_load/store is set.
11168 2011-06-20 Bernd Schmidt <bernds@codesourcery.com>
11170 * regrename.c (scan_rtx_reg): Handle the case where we write to an
11171 open chain in a smaller mode without failing the entire block.
11173 2011-06-21 Alan Modra <amodra@gmail.com>
11175 * config/rs6000/rs6000.c (rs6000_cannot_force_const_mem): Match
11176 CONST high part large-toc address.
11177 (rs6000_tls_referenced_p): Make static.
11178 * config/rs6000/rs6000-protos.h (rs6000_tls_referenced_p): Delete.
11180 2011-06-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
11183 * config/arm/thumb2.md (*thumb2_movhi_insn): Make sure atleast
11184 one of the operands is a register.
11186 2011-06-20 Kai Tietz <ktietz@redhat.com>
11188 * fold-const.c (fold_binary_loc): Add missing folding for truth-not
11189 operations in combination with binary and.
11191 2011-06-20 Bernd Schmidt <bernds@codesourcery.com>
11193 * regrename.c (do_replace): Don't update notes.
11195 2011-06-20 Alan Modra <amodra@gmail.com>
11197 * config/rs6000/rs6000.c (create_TOC_reference): Wrap high part
11198 of toc-relative address in CONST.
11199 (rs6000_delegitimize_address): Recognize changed address.
11200 (rs6000_legitimize_reload_address): Likewise.
11201 (rs6000_emit_move): Don't force these constants to memory.
11202 * config/rs6000/rs6000.md (tls_gd, tls_gd_high): Wrap high part of
11203 toc-relative address in CONST.
11204 (tls_ld, tls_ld_high, tls_got_dtprel, tls_got_dtprel_high): Likewise.
11205 (tls_got_tprel, tls_got_tprel_high, largetoc_high): Likewise.
11207 2011-06-18 H.J. Lu <hongjiu.lu@intel.com>
11209 * longlong.h (count_leading_zeros): Use long long builtin for x86-64.
11210 (count_trailing_zeros): Likewise.
11212 2011-06-18 H.J. Lu <hongjiu.lu@intel.com>
11215 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Properly check if
11216 .init_array can be used with .ctors on targets.
11217 * configure: Regenerated.
11219 2011-06-18 Eric Botcazou <ebotcazou@adacore.com>
11221 * tree-sra.c (type_internals_preclude_sra_p) <ARRAY_TYPE>: Return true
11222 if the element type is volatile.
11224 2011-06-18 Jan Hubicka <jh@suse.cz>
11226 * lto-symtab.c (lto_varpool_replace_node): Remove code handling
11227 extra name aliases.
11228 (lto_symtab_resolve_can_prevail_p): Likewise.
11229 (lto_symtab_merge_cgraph_nodes): Update alias_of pointers.
11230 * cgraphbuild.c (record_reference): Remove extra body alias code.
11231 (mark_load): Likewise.
11232 (mark_store): Likewise.
11233 * cgraph.h (varpool_node): Remove extra_name filed;
11234 add alias_of and extraname_alias.
11235 (varpool_create_variable_alias, varpool_for_node_and_aliases): Declare.
11236 (varpool_alias_aliased_node): New inline function.
11237 (varpool_variable_node): New function.
11238 * cgraphunit.c (handle_alias_pairs): Handle also variable aliases.
11239 * ipa-ref.c (ipa_record_reference): Allow aliases on variables.
11240 * lto-cgraph.c (lto_output_varpool_node): Update streaming.
11241 (input_varpool_node): Likewise.
11242 * lto-streamer-out.c (produce_symtab): Remove extra name aliases.
11243 (varpool_externally_visible_p): Remove extra body alias code.
11244 (function_and_variable_visibility): Likewise.
11245 * tree-ssa-structalias.c (associate_varinfo_to_alias_1): New function.
11246 (ipa_pta_execute): Use it.
11247 * varpool.c (varpool_remove_node): Remove extra name alias code.
11248 (varpool_mark_needed_node): Likewise.
11249 (varpool_analyze_pending_decls): Analyze aliases.
11250 (assemble_aliases): New functoin.
11251 (varpool_assemble_decl): Use it.
11252 (varpool_create_variable_alias): New function.
11253 (varpool_extra_name_alias): Rewrite.
11254 (varpool_for_node_and_aliases): New function.
11256 2011-06-18 Jakub Jelinek <jakub@redhat.com>
11259 * config/i386/i386.c (ix86_expand_multi_arg_builtins): If
11260 last_arg_constant and last argument doesn't match its predicate,
11261 for xop_vpermil2<mode>3 error out and for xop_rotl<mode>3
11262 if it is CONST_INT, mask it, otherwise expand using rotl<mode>3.
11263 (ix86_expand_sse_pcmpestr, ix86_expand_sse_pcmpistr): Fix
11264 spelling of error message.
11265 * config/i386/sse.md (sse4a_extrqi, sse4a_insertqi,
11266 vcvtps2ph, *vcvtps2ph, *vcvtps2ph_store, vcvtps2ph256): Use
11267 const_0_to_255_operand instead of const_int_operand.
11270 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
11272 * config/i386/sse.md (blendbits): Remove mode attribute.
11273 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
11274 instead of const_0_to_<blendbits>_operand for operand 3 predicate.
11275 Check integer value of operand 3 in insn constraint.
11277 2011-06-17 Hans-Peter Nilsson <hp@axis.com>
11279 PR rtl-optimization/48542
11280 * reload.c (find_equiv_reg): Stop looking when finding a
11282 * reload1.c (reload_as_needed): Invalidate all reload
11283 registers when crossing a setjmp-type call.
11285 2011-06-16 Jeff Law <law@redhat.com>
11287 * tree-ssa-threadupdate.c (struct redirection_data): New field
11289 (THREAD_TARGET2): Define.
11290 (redirection_data_eq): Also check that the intermediate edge is equal.
11291 (lookup_redirection_data): Drop useless argument. Extract the
11292 outgoing_edge and intermediate edge from E. Callers updated.
11293 (copy_phi_args, update_destination_phis): New functions.
11294 (fix_duplicate_block_edges): Likewise.
11295 (create_edge_and_update_destination_phis): Duplicate all the edges
11296 hung off e->aux. Use copy_phi_args.
11297 (create_duplicates): Use fix_duplicate_block_edges.
11298 (fixup_template_block): Likewise.
11299 (redirect_edges): If necessary, redirect the joiner block's incoming
11300 edge to the duplicate of the joiner block.
11301 (thread_block): Don't muck up loops when threading through a joiner
11303 (thread_through_loop_header): Handle threading through a joiner block.
11304 (mark_threaded_blocks, register_jump_thread): Likewise.
11305 * tree-flow.h (register_jump_thread): Add new argument. Callers
11307 * tree-ssa-threadedge.c (phi_args_equal_on_edges): New function.
11308 (thread_across_edge): Handle threading through a joiner block.
11310 2011-06-16 Martin Jambor <mjambor@suse.cz>
11312 PR tree-optimization/49343
11313 * tree-sra.c (build_ref_for_model): Use component_ref_field_offset to
11314 calculate offset, provide 2nd operand for the new COMPONENT_REF.
11316 2011-06-16 Iain Sandoe <iains@gcc.gnu.org>
11318 * config/darwin-protos.h (machopic_select_rtx_section): Move to
11319 inside RTX_CODE ifdef.
11321 2011-06-16 Tom de Vries <tom@codesourcery.com>
11324 * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith):
11325 Disallow NULL pointer for pointer arithmetic.
11327 2011-06-16 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
11331 2011-06-10 Wei Guozhi <carrot@google.com>
11334 * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
11335 stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
11336 (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
11338 (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
11340 * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
11341 (arm_legitimate_ldrd_p): New prototype.
11342 (arm_output_ldrd): New prototype.
11343 * config/arm/arm.c (arm_check_ldrd_operands): New function.
11344 (arm_legitimate_ldrd_p): New function.
11345 (arm_output_ldrd): New function.
11347 2011-06-16 Joern Rennecke <joern.rennecke@embecosm.com>
11349 PR middle-end/46500
11350 * doc/tm.texi.in: Update Copyright date.
11351 * doc/tm.texi: Regenerate.
11352 * targhooks.c (default_setup_incoming_varargs): Replace
11353 CUMULATIVE_ARGS* argument type with cumulative_args_t.
11354 (default_pretend_outgoing_varargs_named): Likewise.
11355 (hook_pass_by_reference_must_pass_in_stack): Likewise.
11356 (hook_callee_copies_named): Likewise.
11357 (default_function_arg_advance): Likewise.
11358 (default_function_arg): Likewise.
11359 (default_function_incoming_arg): Likewise.
11360 (hook_bool_CUMULATIVE_ARGS_false): Likewise.
11361 (hook_bool_CUMULATIVE_ARGS_true): Likewise.
11362 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Likewise.
11363 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
11364 (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Likewise.
11365 * targhooks.h (default_setup_incoming_varargs): Likewise.
11366 (default_pretend_outgoing_varargs_named): Likewise.
11367 (hook_pass_by_reference_must_pass_in_stack): Likewise.
11368 (hook_callee_copies_named): Likewise.
11369 (default_function_arg_advance): Likewise.
11370 (default_function_arg): Likewise.
11371 (default_function_incoming_arg): Likewise.
11372 (hook_bool_CUMULATIVE_ARGS_false): Likewise.
11373 (hook_bool_CUMULATIVE_ARGS_true): Likewise.
11374 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Likewise.
11375 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
11376 (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Likewise.
11377 * target.def (pass_by_reference): Likewise.
11378 (setup_incoming_varargs, strict_argument_naming): Likewise.
11379 (pretend_outgoing_varargs_named, callee_copies): Likewise.
11380 (arg_partial_bytes, function_arg_advance, function_arg): Likewise.
11381 (function_incoming_arg): Likewise.
11382 * target.h: Don't include "tm.h" .
11383 (cumulative_args_t): New typedef.
11384 [GCC_TM_H] (get_cumulative_args): New static inline function.
11385 [GCC_TM_H] (pack_cumulative_args): Likewise.
11386 * config/alpha/alpha.c (alpha_function_arg): Replace CUMULATIVE_ARGS*
11387 argument type with cumulative_args_t.
11388 (alpha_function_arg_advance, alpha_arg_partial_bytes): Likewise.
11389 (alpha_pass_by_reference, alpha_setup_incoming_varargs): Likewise.
11390 * config/frv/frv.c (frv_setup_incoming_varargs): Likewise.
11391 (frv_arg_partial_bytes, frv_function_arg): Likewise.
11392 (frv_function_incoming_arg, frv_function_arg_advance): Likewise.
11393 (frv_function_arg_1): Likewise.
11394 * config/s390/s390.c (s390_pass_by_reference): Likewise.
11395 (s390_function_arg_advance, s390_function_arg): Likewise.
11396 * config/m32c/m32c.c (m32c_function_arg): Likewise.
11397 (m32c_pass_by_reference, m32c_function_arg_advance): Likewise.
11398 (m32c_strict_argument_naming): Likewise.
11399 * config/spu/spu.c (spu_pass_by_reference, spu_function_arg): Likewise.
11400 (spu_function_arg_advance): Likewise.
11401 (spu_setup_incoming_varargs): Likewise. Make static.
11402 * config/spu/spu-protos.h (spu_setup_incoming_varargs):
11404 * config/sparc/sparc.c (sparc_strict_argument_naming): Replace
11405 CUMULATIVE_ARGS* argument type with cumulative_args_t.
11406 (sparc_pass_by_reference, sparc_function_arg_advance): Likewise.
11407 (sparc_function_arg, sparc_function_incoming_arg): Likewise.
11408 (sparc_arg_partial_bytes, sparc_function_arg_1): Likewise.
11409 * config/mep/mep.c (mep_setup_incoming_varargs): Likewise.
11410 (mep_pass_by_reference, mep_function_arg): Likewise.
11411 (mep_function_arg_advance): Likewise.
11412 * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
11413 (m32r_pass_by_reference, m32r_arg_partial_bytes): Likewise.
11414 (m32r_function_arg, m32r_function_arg_advance): Likewise.
11415 * config/rx/rx.c (rx_function_arg, rx_function_arg_advance): Likewise.
11416 * config/i386/i386.c (ix86_function_arg_advance): Likewise.
11417 (ix86_function_arg, ix86_pass_by_reference): Likewise.
11418 (ix86_setup_incoming_varargs): Likewise.
11419 * config/sh/sh.c (sh_setup_incoming_varargs): Likewise.
11420 (sh_strict_argument_naming): Likewise.
11421 (sh_pretend_outgoing_varargs_named, sh_pass_by_reference): Likewise.
11422 (sh_callee_copies, sh_arg_partial_bytes): Likewise.
11423 (sh_function_arg_advance, sh_function_arg): Likewise.
11424 * config/pdp11/pdp11.c (pdp11_function_arg): Likewise.
11425 (pdp11_function_arg_advance): Likewise.
11426 * config/microblaze/microblaze.c (microblaze_function_arg_advance):
11428 (microblaze_function_arg, function_arg_partial_bytes): Likewise.
11429 * config/avr/avr.c (avr_function_arg): Likewise.
11430 (avr_function_arg_advance): Likewise.
11431 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Likewise.
11432 (xtensa_function_arg, xtensa_function_incoming_arg): Likewise.
11433 (xtensa_function_arg_1): Likewise.
11434 * config/stormy16/stormy16.c (xstormy16_function_arg_advance):
11436 (xstormy16_function_arg): Likewise.
11437 * config/fr30/fr30.c (fr30_setup_incoming_varargs): Likewise.
11438 (fr30_arg_partial_bytes, fr30_function_arg): Likewise.
11439 (fr30_function_arg_advance): Likewise.
11440 * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
11441 (lm32_function_arg, lm32_function_arg_advance): Likewise.
11442 * config/moxie/moxie.c (moxie_setup_incoming_varargs): Likewise.
11443 (moxie_function_arg, moxie_function_arg_advance): Likewise.
11444 (moxie_pass_by_reference, moxie_arg_partial_bytes): Likewise.
11445 * config/cris/cris.c (cris_setup_incoming_varargs): Likewise.
11446 (cris_pass_by_reference, cris_arg_partial_bytes): Likewise.
11447 (cris_function_arg, cris_function_incoming_arg): Likewise.
11448 (cris_function_arg_advance, cris_function_arg_1): Likewise.
11449 * config/iq2000/iq2000.c (iq2000_setup_incoming_varargs): Likewise.
11450 (iq2000_pass_by_reference, iq2000_arg_partial_bytes): Likewise.
11451 (iq2000_function_arg, iq2000_function_arg_advance): Likewise.
11452 * config/mn10300/mn10300.c (mn10300_pass_by_reference): Likewise.
11453 (mn10300_function_arg, mn10300_function_arg_advance): Likewise.
11454 (mn10300_arg_partial_bytes): Likewise.
11455 * config/ia64/ia64.c (ia64_setup_incoming_varargs): Likewise.
11456 (ia64_arg_partial_bytes, ia64_function_arg): Likewise.
11457 (ia64_function_incoming_arg, ia64_function_arg_advance): Likewise.
11458 (ia64_function_arg_1): Likewise.
11459 * config/m68k/m68k.c (m68k_function_arg_advance): Likewise.
11460 (m68k_function_arg): Likewise.
11461 * config/rs6000/rs6000.c (rs6000_function_arg_advance): Likewise.
11462 (rs6000_function_arg, setup_incoming_varargs): Likewise.
11463 (rs6000_pass_by_reference, rs6000_arg_partial_bytes): Likewise.
11464 * config/picochip/picochip.c (picochip_arg_partial_bytes): Likewise.
11465 (picochip_function_arg, picochip_incoming_function_arg): Likewise.
11466 (picochip_arg_advance): Likewise.
11467 * config/mcore/mcore.c (mcore_setup_incoming_varargs): Likewise.
11468 (mcore_arg_partial_bytes, mcore_function_arg): Likewise.
11469 (mcore_function_arg_advance): Likewise.
11470 * config/score/score.c (score_pass_by_reference): Likewise.
11471 (score_function_arg_advance): Likewise.
11472 (score_arg_partial_bytes): Likewise. Make static.
11473 * config/score/score-protos.h (score_arg_partial_bytes): Don't declare.
11474 * config/arm/arm.c (arm_arg_partial_bytes): Replace
11475 CUMULATIVE_ARGS* argument type with cumulative_args_t.
11476 (arm_function_arg, arm_function_arg_advance): Likewise.
11477 (arm_setup_incoming_varargs, arm_pass_by_reference): Likewise.
11478 * config/pa/pa.c (pa_pass_by_reference): Likewise.
11479 (pa_arg_partial_bytes, pa_function_arg_advance): Likewise.
11480 (pa_function_arg): Likewise.
11481 * config/mips/mips.c (mips_strict_argument_naming): Likewise.
11482 (mips_function_arg, mips_function_arg_advance): Likewise.
11483 (mips_arg_partial_bytes, mips_pass_by_reference): Likewise.
11484 (mips_callee_copies, mips_setup_incoming_varargs): Likewise.
11485 * config/vax/vax.c (vax_function_arg): Likewise.
11486 (vax_function_arg_advance): Likewise.
11487 * config/h8300/h8300.c (h8300_function_arg): Likewise.
11488 (h8300_function_arg_advance): Likewise.
11489 * config/v850/v850.c (v850_pass_by_reference): Likewise.
11490 (v850_strict_argument_naming, v850_function_arg): Likewise.
11491 (v850_arg_partial_bytes, v850_function_arg_advance): Likewise.
11492 (v850_setup_incoming_varargs): Likewise.
11493 * config/mmix/mmix.c (mmix_setup_incoming_varargs): Likewise.
11494 (mmix_function_arg_advance, mmix_function_incoming_arg): Likewise.
11495 (mmix_function_arg, mmix_pass_by_reference): Likewise.
11496 (mmix_function_arg_1): Replace const CUMULATIVE_ARGS* argument type
11498 * config/bfin/bfin.c (setup_incoming_varargs): Replace
11499 CUMULATIVE_ARGS* argument type with cumulative_args_t.
11500 (bfin_function_arg_advance, bfin_function_arg): Likewise.
11501 (bfin_arg_partial_bytes, bfin_pass_by_reference): Likewise.
11502 * calls.c (emit_call_1): Change type of args_so_far to
11503 cumulative_args_t. Changed all callers.
11504 (initialize_argument_information): Likewise.
11505 (expand_call, emit_library_call_value_1): Use pack_cumulative_args.
11506 * dse.c (get_call_args): Likewise.
11507 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
11508 * function.c (pass_by_reference, reference_callee_copied): Likewise.
11509 (struct assign_parm_data_all): Rename args_so_far to args_so_far_v.
11510 New member args_so_far_v. Changed all users.
11511 * var-tracking.c (prepare_call_arguments): Use pack_cumulative_args.
11512 * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
11513 * config/mips/mips.c (mips_output_args_xfer): Likewise.
11514 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
11515 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
11516 * config/microblaze/microblaze.c (microblaze_expand_prologue):
11518 * config/m32r/m32r.c (m32r_return_in_memory): Adjust for changed
11519 m32r_pass_by_reference.
11521 2011-06-16 Ira Rosen <ira.rosen@linaro.org>
11523 * tree-vectorizer.h (vect_recog_func_ptr): Change the first
11524 argument to be a VEC of statements.
11525 * tree-vect-loop.c (vect_determine_vectorization_factor): Remove the
11526 assert that pattern statements have to have their vector type set.
11527 * tree-vect-patterns.c (vect_recog_widen_sum_pattern):
11528 Change the first argument to be a VEC of statements. Update
11530 (vect_recog_dot_prod_pattern, vect_recog_pow_pattern): Likewise.
11531 (vect_handle_widen_mult_by_const): New function.
11532 (vect_recog_widen_mult_pattern): Change the first argument to be a
11533 VEC of statements. Update documentation. Check that the constant is
11534 INTEGER_CST. Support multiplication by a constant that fits an
11535 intermediate type - call vect_handle_widen_mult_by_const.
11536 (vect_pattern_recog_1): Update vect_recog_func_ptr and its
11537 call. Handle additional pattern statements if necessary.
11539 2011-06-16 Nick Clifton <nickc@redhat.com>
11542 * config.gcc: Set cpu_type to v850 for any V850 architecture.
11543 (v850*-*-*): Delete explicit setting of tm_p_file, tmake_file,
11544 md_file, extra_modes, out_file and extra_options are these are all
11545 deduced from cpu_type.
11547 2011-06-16 Georg-Johann Lay <avr@gjlay.de>
11549 * config/avr/libgcc.S (__ashldi3, __ashrdi3, __lshrdi3): Set shift
11550 truncation mask to 63.
11552 2011-06-16 Georg-Johann Lay <avr@gjlay.de>
11556 * longlong.h: Add AVR support:
11557 (count_leading_zeros): New macro.
11558 (count_trailing_zeros): New macro.
11559 (COUNT_LEADING_ZEROS_0): New macro.
11560 * config/avr/t-avr (LIB1ASMFUNCS): Add _ffssi2, _ffshi2, _loop_ffsqi2,
11561 _ctzsi2, _ctzhi2, _clzdi2, _clzsi2, _clzhi2, _paritydi2, _paritysi2,
11562 _parityhi2, _popcounthi2,_popcountsi2, _popcountdi2, _popcountqi2,
11563 _bswapsi2, _bswapdi2, _ashldi3, _ashrdi3, _lshrdi3.
11564 (LIB2FUNCS_EXCLUDE): Add _clz.
11565 * config/avr/libgcc.S (XCALL): Move up in file.
11566 (XJMP): New C Macro.
11567 (DEFUN): New asm macro.
11568 (ENDF): New asm macro.
11569 (__ffssi2): New function.
11570 (__ffshi2): New function.
11571 (__loop_ffsqi2): New function.
11572 (__ctzsi2): New function.
11573 (__ctzhi2): New function.
11574 (__clzdi2): New function.
11575 (__clzsi2): New function.
11576 (__clzhi2): New function.
11577 (__paritydi2): New function.
11578 (__paritysi2): New function.
11579 (__parityhi2): New function.
11580 (__parityqi2): New function.
11581 (__popcounthi2): New function.
11582 (__popcountsi2): New function.
11583 (__popcountdi2): New function.
11584 (__popcountqi2): New function.
11585 (__bswapsi2): New function.
11586 (__bswapdi2): New function.
11587 (__ashldi3): New function.
11588 (__ashrdi3): New function.
11589 (__lshrdi3): New function.
11590 Fix suspicous lines.
11592 2011-06-16 Richard Guenther <rguenther@suse.de>
11594 * gimple.c (canonicalize_cond_expr_cond): (bool)x is not
11595 the same as x != 0.
11596 * fold-const.c (fold_binary_loc): Do not fold X & 1 != 0
11598 * ipa-prop.c (ipa_analyze_indirect_call_uses): Also allow
11599 equality compares against zero for the lower bit.
11601 2011-06-16 Jakub Jelinek <jakub@redhat.com>
11603 PR tree-optimization/49419
11604 * tree-vrp.c (execute_vrp): Call init_range_assertions
11605 before estimate_numbers_of_iterations, call
11606 free_number_of_iterations_estimates before calling
11607 remove_range_assertions.
11609 2011-06-16 Revital Eres <revital.eres@linaro.org>
11611 * modulo-sched.c (struct ps_insn): Remove row_rest_count field.
11612 (struct partial_schedule): Add rows_length field.
11613 (verify_partial_schedule): Check rows_length.
11614 (ps_insert_empty_row): Handle rows_length.
11615 (create_partial_schedule): Likewise.
11616 (free_partial_schedule): Likewise.
11617 (reset_partial_schedule): Likewise.
11618 (create_ps_insn): Remove rest_count argument.
11619 (remove_node_from_ps): Update rows_length.
11620 (add_node_to_ps): Update rows_length and call create_ps_insn
11621 without passing row_rest_count.
11622 (rotate_partial_schedule): Update rows_length.
11624 2011-06-16 Revital Eres <revital.eres@linaro.org>
11626 * ddg.c (add_intra_loop_mem_dep): New function.
11627 (build_intra_loop_deps): Call it.
11629 2011-06-13 Jeff Law <law@redhat.com>
11631 * df-problems.c (df_lr_local_compute): Manually CSE
11632 PIC_OFFSET_TABLE_REGNUM.
11633 * df-scan.c (df_get_regular_block_artificial_uses): Likewise.
11634 (df_get_entry_block_def_set, df_get_exit_block_use_set): Likewise.
11636 2011-06-13 Jan Hubicka <jh@suse.cz>
11638 * cgraphunit.c (handle_alias_pairs): New function.
11639 (cgraph_finalize_compilation_unit): Use it.
11640 * ipa.c (cgraph_externally_visible_p): Remove hack marking asm names
11641 as externally visible.
11643 2011-06-15 Richard Guenther <rguenther@suse.de>
11645 * expr.c (expand_expr_real_2): Reduce all integral types to
11646 bitfield precision.
11647 (expand_expr_real_1): Likewise.
11649 2011-06-15 Martin Jambor <mjambor@suse.cz>
11651 PR tree-optimization/48613
11652 * ipa-prop.c (ipa_prop_write_jump_functions): Return immediately if
11653 ipa_node_params_vector is NULL.
11655 2011-06-15 Jakub Jelinek <jakub@redhat.com>
11658 * dwarf2out.c (dw_loc_list_node): Add force field.
11659 (add_var_loc_to_decl): For PARM_DECL, attempt to keep the incoming
11660 location in the list, even if it is modified before first real insn.
11661 (output_loc_list): Emit empty ranges with force flag set.
11662 (dw_loc_list): If first range of a PARM_DECL is empty, set force flag.
11664 2011-06-15 Alexander Monakov <amonakov@ispras.ru>
11667 * sel-sched.c (find_place_for_bookkeeping): Add new parameter
11668 (fence_to_rewind). Use it to notice when bookkeeping will be placed
11669 above a fence. Update comments.
11670 (generate_bookkeeping_insn): Rewind fence when bookkeeping code is
11671 placed just above it. Do not allow NULL place_to_insert.
11673 2011-06-15 Ira Rosen <ira.rosen@linaro.org>
11675 * tree-vect-loop-manip.c (remove_dead_stmts_from_loop): Remove.
11676 (slpeel_tree_peel_loop_to_edge): Don't call
11677 remove_dead_stmts_from_loop.
11678 * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
11679 remove irrelevant pattern statements. For irrelevant statements
11680 check if it is the last statement of a detected pattern, use
11681 corresponding pattern statement instead.
11682 (destroy_loop_vec_info): No need to remove pattern statements,
11683 only free stmt_vec_info.
11684 (vect_transform_loop): For irrelevant statements check if it is
11685 the last statement of a detected pattern, use corresponding
11686 pattern statement instead.
11687 * tree-vect-patterns.c (vect_pattern_recog_1): Don't insert
11688 pattern statements. Set basic block for the new statement.
11689 (vect_pattern_recog): Update documentation.
11690 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Scan
11691 operands of pattern statements.
11692 (vectorizable_call): Fix printing. In case of a pattern statement
11693 use the lhs of the original statement when creating a dummy
11694 statement to replace the original call.
11695 (vect_analyze_stmt): For irrelevant statements check if it is
11696 the last statement of a detected pattern, use corresponding
11697 pattern statement instead.
11698 * tree-vect-slp.c (vect_schedule_slp_instance): For pattern
11699 statements use gsi of the original statement.
11701 2011-06-14 Joseph Myers <joseph@codesourcery.com>
11703 * target-def.h (TARGET_HAVE_NAMED_SECTIONS): Move to
11704 common/common-target-def.h.
11705 * target.def (default_target_flags, handle_option,
11706 supports_split_stack, optimization_table, init_struct,
11707 except_unwind_info, unwind_tables_default, have_named_sections):
11708 Move to common/common-target.def.
11709 * target.h (enum opt_levels, struct default_options): Move to
11710 common/common-target.h.
11711 * targhooks.c (default_except_unwind_info,
11712 dwarf2_except_unwind_info, sjlj_except_unwind_info,
11713 default_target_handle_option, empty_optimization_table): Move to
11714 common/common-targhooks.c.
11715 * targhooks.h (default_except_unwind_info,
11716 dwarf2_except_unwind_info, sjlj_except_unwind_info,
11717 default_target_handle_option, empty_optimization_table): Move to
11718 common/common-targhooks.h.
11719 * common/common-target-def.h: Include common/common-targhooks.h.
11720 (TARGET_HAVE_NAMED_SECTIONS): Define if TARGET_ASM_NAMED_SECTION
11722 * common/common-target.def (handle_option, option_init_struct,
11723 option_optimization_table, default_target_flags,
11724 except_unwind_info, supports_split_stack, unwind_tables_default,
11725 have_named_sections): Move from target.def.
11726 (HOOK_PREFIX): Undefine at end of file.
11727 * common/common-target.h: Include input.h.
11728 (enum opt_levels, struct default_options): Move from target.h.
11729 * common/common-targhooks.c, common/common-targhooks.h: New.
11730 * config.gcc (target_has_targetm_common): Default to yes.
11731 (moxie*): Set target_has_targetm_common=no.
11732 (hppa*-*-*): Don't set target_has_targetm_common=yes.
11733 * doc/tm.texi: Regenerate.
11734 * Makefile.in (COMMON_TARGET_H): Add $(INPUT_H).
11735 (C_TARGET_DEF_H): Add common/common-targhooks.h.
11736 (GCC_OBJS): Remove vec.o.
11737 (OBJS): Remove hooks.o and vec.o.
11738 (OBJS-libcommon-target): Add vec.o, hooks.o and
11739 common/common-targhooks.o.
11740 (c-family/c-common.o, c-family/c-cppbuiltin.o, lto-opts.o, tree.o,
11741 tree-tailcall.o, opts.o, toplev.o, varasm.o, function.o, except.o,
11742 expr.o, explow.o, dbxout.o, dwarf2out.o, cfgrtl.o, haifa-sched.o,
11743 cfglayout.o, $(out_object_file), $(common_out_object_file)):
11744 Update dependencies.
11745 (common/common-targhooks.o): New.
11746 * common/config/default-common.c: Include tm.h. Add FIXME comment.
11747 * common/config/pa/pa-common.c: Include more headers. Take
11748 copyright dates from pa.c.
11749 (pa_option_optimization_table, pa_handle_option,
11750 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS,
11751 TARGET_HANDLE_OPTION): Move from pa.c.
11752 * common/config/alpha/alpha-common.c,
11753 common/config/arm/arm-common.c, common/config/avr/avr-common.c,
11754 common/config/bfin/bfin-common.c,
11755 common/config/cris/cris-common.c,
11756 common/config/fr30/fr30-common.c, common/config/frv/frv-common.c,
11757 common/config/h8300/h8300-common.c,
11758 common/config/i386/i386-common.c,
11759 common/config/ia64/ia64-common.c,
11760 common/config/iq2000/iq2000-common.c,
11761 common/config/lm32/lm32-common.c,
11762 common/config/m32c/m32c-common.c,
11763 common/config/m32r/m32r-common.c,
11764 common/config/m68k/m68k-common.c,
11765 common/config/mcore/mcore-common.c,
11766 common/config/mep/mep-common.c,
11767 common/config/microblaze/microblaze-common.c,
11768 common/config/mips/mips-common.c,
11769 common/config/mmix/mmix-common.c,
11770 common/config/mn10300/mn10300-common.c,
11771 common/config/pdp11/pdp11-common.c,
11772 common/config/picochip/picochip-common.c,
11773 common/config/rs6000/rs6000-common.c,
11774 common/config/rx/rx-common.c, common/config/s390/s390-common.c,
11775 common/config/score/score-common.c, common/config/sh/sh-common.c,
11776 common/config/sparc/sparc-common.c,
11777 common/config/spu/spu-common.c, common/config/v850/v850-common.c,
11778 common/config/vax/vax-common.c,
11779 common/config/xstormy16/xstormy16-common.c,
11780 common/config/xtensa/xtensa-common.c: New.
11781 * config/alpha/alpha.c: Include common/common-target.h.
11782 (alpha_option_optimization_table, alpha_handle_option,
11783 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
11784 TARGET_OPTION_OPTIMIZATION_TABLE): Move to alpha-common.c.
11785 * config/arm/arm-protos.h (arm_except_unwind_info): Declare.
11786 * config/arm/arm.c (arm_option_optimization_table,
11787 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
11788 TARGET_EXCEPT_UNWIND_INFO, arm_except_unwind_info): Move to
11790 * config/avr/avr.c (avr_option_optimization_table,
11791 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
11793 * config/bfin/bfin.c (struct bfin_cpu): Move to bfin.h.
11794 (bfin_cpus, bfin_handle_option, TARGET_HANDLE_OPTION,
11795 TARGET_DEFAULT_TARGET_FLAGS): Move to bfin-common.c.
11796 * config/bfin/bfin.h struct bfin_cpu): Move from bfin.c.
11797 * config/cris/cris.c (cris_option_optimization_table,
11798 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
11799 TARGET_OPTION_OPTIMIZATION_TABLE, cris_handle_option): Move to
11801 * config/fr30/fr30.c (fr30_option_optimization_table,
11802 TARGET_EXCEPT_UNWIND_INFO, TARGET_OPTION_OPTIMIZATION_TABLE): Move
11804 * config/frv/frv.c (frv_option_optimization_table,
11805 MASK_DEFAULT_ALLOC_CC, TARGET_DEFAULT_TARGET_FLAGS,
11806 TARGET_OPTION_OPTIMIZATION_TABLE): Move to frv-common.c.
11807 * config/h8300/h8300.c (h8300_option_optimization_table,
11808 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
11809 TARGET_EXCEPT_UNWIND_INFO): Move to h8300-common.c.
11810 * config/i386/i386-protos.h (ix86_handle_option): Declare.
11811 * config/i386/i386.c: Include common/common-target.h.
11812 (OPTION_MASK_ISA_MMX_SET, OPTION_MASK_ISA_3DNOW_SET,
11813 OPTION_MASK_ISA_SSE_SET, OPTION_MASK_ISA_SSE2_SET,
11814 OPTION_MASK_ISA_SSE3_SET, OPTION_MASK_ISA_SSSE3_SET,
11815 OPTION_MASK_ISA_SSE4_1_SET, OPTION_MASK_ISA_SSE4_2_SET,
11816 OPTION_MASK_ISA_AVX_SET, OPTION_MASK_ISA_FMA_SET,
11817 OPTION_MASK_ISA_SSE4_SET, OPTION_MASK_ISA_SSE4A_SET,
11818 OPTION_MASK_ISA_FMA4_SET, OPTION_MASK_ISA_XOP_SET,
11819 OPTION_MASK_ISA_LWP_SET, OPTION_MASK_ISA_AES_SET,
11820 OPTION_MASK_ISA_PCLMUL_SET, OPTION_MASK_ISA_ABM_SET,
11821 OPTION_MASK_ISA_BMI_SET, OPTION_MASK_ISA_TBM_SET,
11822 OPTION_MASK_ISA_POPCNT_SET, OPTION_MASK_ISA_CX16_SET,
11823 OPTION_MASK_ISA_SAHF_SET, OPTION_MASK_ISA_MOVBE_SET,
11824 OPTION_MASK_ISA_CRC32_SET, OPTION_MASK_ISA_FSGSBASE_SET,
11825 OPTION_MASK_ISA_RDRND_SET, OPTION_MASK_ISA_F16C_SET,
11826 OPTION_MASK_ISA_MMX_UNSET, OPTION_MASK_ISA_3DNOW_UNSET,
11827 OPTION_MASK_ISA_3DNOW_A_UNSET, OPTION_MASK_ISA_SSE_UNSET,
11828 OPTION_MASK_ISA_SSE2_UNSET, OPTION_MASK_ISA_SSE3_UNSET,
11829 OPTION_MASK_ISA_SSSE3_UNSET, OPTION_MASK_ISA_SSE4_1_UNSET,
11830 OPTION_MASK_ISA_SSE4_2_UNSET, OPTION_MASK_ISA_AVX_UNSET,
11831 OPTION_MASK_ISA_FMA_UNSET, OPTION_MASK_ISA_SSE4_UNSET,
11832 OPTION_MASK_ISA_SSE4A_UNSET, OPTION_MASK_ISA_FMA4_UNSET,
11833 OPTION_MASK_ISA_XOP_UNSET, OPTION_MASK_ISA_LWP_UNSET,
11834 OPTION_MASK_ISA_AES_UNSET, OPTION_MASK_ISA_PCLMUL_UNSET,
11835 OPTION_MASK_ISA_ABM_UNSET, OPTION_MASK_ISA_BMI_UNSET,
11836 OPTION_MASK_ISA_TBM_UNSET, OPTION_MASK_ISA_POPCNT_UNSET,
11837 OPTION_MASK_ISA_CX16_UNSET, OPTION_MASK_ISA_SAHF_UNSET,
11838 OPTION_MASK_ISA_MOVBE_UNSET, OPTION_MASK_ISA_CRC32_UNSET,
11839 OPTION_MASK_ISA_FSGSBASE_UNSET, OPTION_MASK_ISA_RDRND_UNSET,
11840 OPTION_MASK_ISA_F16C_UNSET, ix86_handle_option,
11841 ix86_option_optimization_table, ix86_option_init_struct,
11842 ix86_supports_split_stack, TARGET_DEFAULT_TARGET_FLAGS,
11843 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
11844 TARGET_OPTION_INIT_STRUCT, TARGET_SUPPORTS_SPLIT_STACK): Move to
11846 * config/i386/t-i386 (i386.o): Update dependencies.
11847 * config/ia64/ia64-protos.h (ia64_except_unwind_info): Declare.
11848 * config/ia64/ia64.c (ia64_option_optimization_table,
11849 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
11850 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
11851 ia64_handle_option): Move to ia64-common.c.
11852 * config/iq2000/iq2000.c (iq2000_option_optimization_table,
11853 TARGET_OPTION_OPTIMIZATION_TABLE): Move to iq2000-common.c.
11854 * config/lm32/lm32.c (lm32_option_optimization_table,
11855 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
11857 * config/m32c/m32c.c (TARGET_HAVE_NAMED_SECTIONS): Move to
11859 * config/m32r/m32r.c (m32r_option_optimization_table,
11860 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
11861 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
11862 m32r_handle_option): Move to m32r-common.c.
11863 (m32r_memory_move_cost): Remove comment referring to
11864 TARGET_HANDLE_OPTION.
11865 * config/m68k/m68k.c (TARGET_HANDLE_OPTION, m68k_handle_option):
11866 Move to m68k-common.c.
11867 * config/mcore/mcore.c (mcore_option_optimization_table,
11868 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
11869 TARGET_EXCEPT_UNWIND_INFO): Move to mcore-common.c.
11870 * config/mep/mep.c (mep_option_optimization_table,
11871 mep_handle_option, TARGET_HANDLE_OPTION,
11872 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS):
11873 Move to mep-common.c.
11874 * config/microblaze/microblaze.c
11875 (microblaze_option_optimization_table,
11876 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
11877 TARGET_EXCEPT_UNWIND_INFO): Move to microblaze-common.c.
11878 * config/mips/mips.c (mips_handle_option,
11879 mips_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
11880 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Move to
11882 * config/mmix/mmix.c (mmix_option_optimization_table,
11883 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
11884 Move to mmix-common.c.
11885 * config/mn10300/mn10300.c (mn10300_option_optimization_table,
11886 mn10300_handle_option, TARGET_EXCEPT_UNWIND_INFO,
11887 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
11888 TARGET_OPTION_OPTIMIZATION_TABLE): Move to mn10300-common.c.
11889 * config/pa/pa.c: Include common/common-target.h.
11890 (pa_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
11891 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
11892 pa_handle_option): Move to pa-common.c.
11893 (pa_option_override): Use targetm_common.except_unwind_info.
11894 (pa_asm_output_mi_thunk, pa_function_section): Use
11895 targetm_common.have_named_sections.
11896 * config/pdp11/pdp11.c (pdp11_option_optimization_table,
11897 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
11898 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
11899 pdp11_handle_option, pdp11_option_init_struct): Move to
11901 * config/picochip/picochip.c (picochip_option_optimization_table,
11902 TARGET_HAVE_NAMED_SECTIONS, TARGET_OPTION_OPTIMIZATION_TABLE,
11903 TARGET_EXCEPT_UNWIND_INFO): Move to picochip-common.c.
11904 * config/rs6000/rs6000.c: Include common/common-target.h.
11905 (rs6000_option_optimization_table, TARGET_HANDLE_OPTION,
11906 TARGET_OPTION_INIT_STRUCT, TARGET_OPTION_OPTIMIZATION_TABLE,
11907 TARGET_DEFAULT_TARGET_FLAGS, rs6000_option_init_struct,
11908 rs6000_handle_option): Move to rs6000-common.c.
11909 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
11910 * config/rx/rx.c (rx_handle_option, rx_option_optimization_table,
11911 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
11912 TARGET_EXCEPT_UNWIND_INFO): Move to rx-common.c.
11913 * config/s390/s390.c (processor_flags_table,
11914 s390_option_optimization_table, s390_option_init_struct,
11915 s390_handle_option, TARGET_DEFAULT_TARGET_FLAGS,
11916 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
11917 TARGET_OPTION_INIT_STRUCT): Move to s390-common.c.
11918 * config/s390/s390.h (processor_flags_table): Declare.
11919 * config/score/score.c (score_option_optimization_table,
11920 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
11921 TARGET_OPTION_OPTIMIZATION_TABLE, MASK_ALL_CPU_BITS,
11922 score_handle_option): Move to score-common.c.
11923 * config/sh/sh.c (sh_option_optimization_table,
11924 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
11925 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
11926 sh_handle_option, sh_option_init_struct): Move to sh-common.c.
11927 * config/sparc/sparc.c: Include common/common-target.h.
11928 (sparc_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
11929 TARGET_OPTION_OPTIMIZATION_TABLE): Move to sparc-common.c.
11930 * config/spu/spu.c (TARGET_DEFAULT_TARGET_FLAGS,
11931 TARGET_OPTION_INIT_STRUCT, TARGET_EXCEPT_UNWIND_INFO,
11932 spu_option_init_struct): Move to spu-common.c.
11933 * config/stormy16/stormy16.c (xstorym16_option_optimization_table,
11934 TARGET_OPTION_OPTIMIZATION_TABLE): Move to xstormy16-common.c.
11935 * config/v850/v850.c (small_memory_physical_max,
11936 v850_handle_memory_optionn v850_handle_option,
11937 v850_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
11938 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE): Move to
11940 * config/vax/vax.c (TARGET_DEFAULT_TARGET_FLAGS): Move to vax-common.c.
11941 * config/xtensa/xtensa.c (xtensa_option_optimization_table,
11942 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
11943 Move to xtensa-common.c.
11944 * cfglayout.c: Include common/common-target.h.
11945 (fixup_reorder_chain): Use targetm_common.have_named_sections.
11946 * cfgrtl.c: Include common/common-target.h.
11947 (force_nonfallthru_and_redirect, commit_one_edge_insertion): Use
11948 targetm_common.have_named_sections.
11949 * dbxout.c: Include common/common-target.h.
11950 (dbxout_function_end): Use targetm_common.have_named_sections.
11951 * defaults.h (STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT): Use
11952 targetm_common.except_unwind_info.
11953 * dwarf2out.c: Include common/common-target.h.
11954 (dwarf2out_do_frame, dwarf2out_do_cfi_asm,
11955 dwarf2out_begin_prologue, dwarf2out_frame_init,
11956 dwarf2out_frame_finish, dwarf2out_assembly_start): Use
11957 targetm_common.except_unwind_info.
11958 * except.c: Include common/common-target.h.
11959 (init_eh, finish_eh_generation,
11960 output_one_function_exception_table): Use
11961 targetm_common.except_unwind_info.
11962 (switch_to_exception_section): Use targetm_common.have_named_sections.
11963 * explow.c: Include common/common-target.h.
11964 * expr.c: Include common/common-target.h.
11965 (build_personality_function): Use targetm_common.except_unwind_info.
11966 * function.c: Include common/common-target.h.
11967 (expand_function_end): Use targetm_common.except_unwind_info.
11968 * haifa-sched.c: Include common/common-target.h.
11969 (sched_create_recovery_edges): Use targetm_common.have_named_sections.
11970 * lto-opts.c: Include common/common-target.h instead of target.h.
11971 (lto_reissue_options): Use targetm_common.handle_option.
11972 * opts.c: Include common/common-target.h.
11973 (target_handle_option): Use targetm_common.handle_option.
11974 (init_options_struct): Update comment referring to
11975 targetm.target_option.optimization. Use
11976 targetm_common.default_target_flags,
11977 targetm_common.unwind_tables_default and
11978 targetm_common.option_init_struct.
11979 (default_options_optimization): Use
11980 targetm_common.option_optimization_table.
11981 (finish_options): Use targetm_common.except_unwind_info,
11982 targetm_common.unwind_tables_default,
11983 targetm_common.have_named_sections and
11984 targetm_common.supports_split_stack.
11985 * toplev.c: Include common/common-target.h.
11986 (process_options): Use targetm_common.have_named_sections.
11987 * tree-tailcall.c: Include common/common-target.h.
11988 (suitable_for_tail_call_opt_p): Use targetm_common.except_unwind_info.
11989 * tree.c: Include common/common-target.h.
11990 (build_common_builtin_nodes): Use targetm_common.except_unwind_info.
11991 * varasm.c: Include common/common-target.h.
11992 (resolve_unique_section, hot_function_section,
11993 default_function_section): Use targetm_common.have_named_sections.
11995 2011-06-14 Easwaran Raman <eraman@google.com>
11997 PR rtl-optimization/44194
11998 * dse.c: Include tree-flow.h
11999 (insn_info): Add new field non_frame_wild_read.
12000 (group_info): Add new fields escaped_n and escaped_p.
12001 (kill_on_calls): New variable.
12002 (get_group_info): Initialize gi->escaped_n and gi->escaped_p.
12003 (dse_step0): Initialize kill_on_calls.
12004 (can_escape): New function.
12005 (set_usage_bits): Add additional parameter; record information
12006 about escaped locations.
12007 (record_store): Pass EXPR corresponding to MEM to set_usage_bits.
12008 (dse_step2_nospill): Set kill_on_calls based on
12009 group->escaped_n and group->escaped_n.
12010 (add_wild_read): Refactor into...
12011 (reset_active_stores): ... New function, and
12012 (free_read_records): ... New function.
12013 (add_non_frame_wild_read): New function.
12014 (scan_insn): Call add_non_frame_wild_read on non-const calls.
12015 (scan_reads_nospill): Handle instructions with non_frame_wild_read.
12016 (dse_step5_nospill): Call scan_reads_nospill for instructions
12017 marked as non_frame_wild_read.
12018 (dse_step7): Free escaped_n, escaped_p and kill_on_calls bitmaps.
12020 2011-06-14 Joseph Myers <joseph@codesourcery.com>
12022 * common/common-target-def.h, common/common-target.def,
12023 common/common-target.h, common/config/default-common.c,
12024 common/config/pa/pa-common.c: New files.
12025 * Makefile.in (common_out_file, common_out_object_file,
12026 COMMON_TARGET_H, COMMON_TARGET_DEF_H): New.
12027 (OBJS-libcommon-target): Include $(common_out_object_file).
12028 (prefix.o): Update dependencies.
12029 ($(common_out_object_file), common/common-target-hooks-def.h,
12030 s-common-target-hooks-def-h): New.
12031 (s-tm-texi): Also check timestamp on common-target.def.
12032 (build/genhooks.o): Update dependencies.
12033 * config.gcc (common_out_file, target_has_targetm_common): Define.
12034 * config/pa/som.h (ALWAYS_STRIP_DOTDOT): Replace with
12035 TARGET_ALWAYS_STRIP_DOTDOT.
12036 * configure.ac (common_out_object_file): Define.
12037 (common_out_file, common_out_object_file): Substitute.
12038 (common): Create directory.
12039 * configure: Regenerate.
12040 * doc/tm.texi.in (targetm_common): Document.
12041 (TARGET_ALWAYS_STRIP_DOTDOT): Add @hook entry.
12042 * doc/tm.texi: Regenerate.
12043 * genhooks.c (hook_array): Also include common/common-target.def.
12044 * prefix.c (tm.h): Don't include.
12045 (common/common-target.h): Include.
12046 (ALWAYS_STRIP_DOTDOT): Don't define.
12047 (update_path): Use targetm_common.always_strip_dotdot instead of
12048 ALWAYS_STRIP_DOTDOT.
12049 * system.h (ALWAYS_STRIP_DOTDOT): Poison.
12051 2011-06-14 David Li <davidxl@google.com>
12053 * passes.c (execute_function_todo): Remove TODO_dump_func.
12054 (execute_one_pass): Remove TODO_dump_func.
12055 (execute_function_dump): New function.
12056 * tree-vrp.c: Remove TODO_dump_func.
12057 * regrename.c: Remove TODO_dump_func.
12058 * fwprop.c: Remove TODO_dump_func.
12059 * tree-into-ssa.c: Remove TODO_dump_func.
12060 * tree-complex.c: Remove TODO_dump_func.
12061 * tracer.c: Remove TODO_dump_func.
12062 * tree-loop-distribution.c: Remove TODO_dump_func.
12063 * postreload-gcse.c: Remove TODO_dump_func.
12064 * postreload.c: Remove TODO_dump_func.
12065 * tree-ssa-loop-ch.c: Remove TODO_dump_func.
12066 * tree-tailcall.c: Remove TODO_dump_func.
12067 * ipa-cp.c: Remove TODO_dump_func.
12068 * final.c: Remove TODO_dump_func.
12069 * tree-emutls.c: Remove TODO_dump_func.
12070 * omp-low.c: Remove TODO_dump_func.
12071 * tree-ssa-dse.c: Remove TODO_dump_func.
12072 * tree-ssa-uncprop.c: Remove TODO_dump_func.
12073 * auto-inc-dec.c: Remove TODO_dump_func.
12074 * reorg.c: Remove TODO_dump_func.
12075 * tree-ssa-copyrename.c: Remove TODO_dump_func.
12076 * tree-ssa-ccp.c: Remove TODO_dump_func.
12077 * compare-elim.c: Remove TODO_dump_func.
12078 * mode-switching.c: Remove TODO_dump_func.
12079 * modulo-sched.c: Remove TODO_dump_func.
12080 * tree-call-cdce.c: Remove TODO_dump_func.
12081 * cse.c: Remove TODO_dump_func.
12082 * web.c: Remove TODO_dump_func.
12083 * tree-stdarg.c: Remove TODO_dump_func.
12084 * lto-streamer-out.c: Remove TODO_dump_func.
12085 * tree-ssa-math-opts.c: Remove TODO_dump_func.
12086 * tree-ssa-dom.c: Remove TODO_dump_func.
12087 * tree-nrv.c: Remove TODO_dump_func.
12088 * loop-init.c: Remove TODO_dump_func.
12089 * gimple-low.c: Remove TODO_dump_func.
12090 * ipa-inline.c: Remove TODO_dump_func.
12091 * tree-ssa-sink.c: Remove TODO_dump_func.
12092 * jump.c: Remove TODO_dump_func.
12093 * ifcvt.c: Remove TODO_dump_func.
12094 * tree-ssa-loop.c: Remove TODO_dump_func.
12095 * recog.c: Remove TODO_dump_func.
12096 * dse.c: Remove TODO_dump_func.
12097 * tree-ssa-ifcombine.c: Remove TODO_dump_func.
12098 * matrix-reorg.c: Remove TODO_dump_func.
12099 * tree-eh.c: Remove TODO_dump_func.
12100 * regmove.c: Remove TODO_dump_func.
12101 * function.c: Remove TODO_dump_func.
12102 * tree-vectorizer.c: Remove TODO_dump_func.
12103 * ipa-split.c: Remove TODO_dump_func.
12104 * gcse.c: Remove TODO_dump_func.
12105 * tree-if-conv.c: Remove TODO_dump_func.
12106 * init-regs.c: Remove TODO_dump_func.
12107 * tree-ssa-phiopt.c: Remove TODO_dump_func.
12108 * implicit-zee.c: Remove TODO_dump_func.
12109 * lower-subreg.c: Remove TODO_dump_func.
12110 * bt-load.c: Remove TODO_dump_func.
12111 * tree-dfa.c: Remove TODO_dump_func.
12112 * except.c: Remove TODO_dump_func.
12113 * emit-rtl.c: Remove TODO_dump_func.
12114 * store-motion.c: Remove TODO_dump_func.
12115 * cfgexpand.c: Remove TODO_dump_func.
12116 * tree-cfgcleanup.c: Remove TODO_dump_func.
12117 * cfgcleanup.c: Remove TODO_dump_func.
12118 * tree-ssa-pre.c: Remove TODO_dump_func.
12119 * tree-sra.c: Remove TODO_dump_func.
12120 * tree-mudflap.c: Remove TODO_dump_func.
12121 * tree-ssa-copy.c: Remove TODO_dump_func.
12122 * cfglayout.c: Remove TODO_dump_func.
12123 * tree-ssa-forwprop.c: Remove TODO_dump_func.
12124 * tree-ssa-dce.c: Remove TODO_dump_func.
12125 * ira.c: Remove TODO_dump_func.
12126 * tree-ssa.c: Remove TODO_dump_func.
12127 * integrate.c: Remove TODO_dump_func.
12128 * tree-optimize.c: Remove TODO_dump_func.
12129 * tree-ssa-phiprop.c: Remove TODO_dump_func.
12130 * tree-object-size.c: Remove TODO_dump_func.
12131 * combine.c: Remove TODO_dump_func.
12132 * bb-reorder.c: Remove TODO_dump_func.
12133 * cprop.c: Remove TODO_dump_func.
12134 * var-tracking.c: Remove TODO_dump_func.
12135 * tree-profile.c: Remove TODO_dump_func.
12136 * tree-vect-generic.c: Remove TODO_dump_func.
12137 * reg-stack.c: Remove TODO_dump_func.
12138 * sched-rgn.c: Remove TODO_dump_func.
12139 * tree-ssa-structalias.c: Remove TODO_dump_func.
12140 * tree-switch-conversion.c: Remove TODO_dump_func.
12141 * tree-cfg.c: Remove TODO_dump_func.
12142 * tree-ssa-reassoc.c: Remove TODO_dump_func.
12143 * combine-stack-adj.c: Remove TODO_dump_func.
12144 * dce.c: Remove TODO_dump_func.
12145 * tree-ssanames.c: Remove TODO_dump_func.
12146 * regcprop.c: Remove TODO_dump_func.
12148 2011-06-14 H.J. Lu <hongjiu.lu@intel.com>
12150 PR middle-end/47364
12151 * builtins.c (expand_builtin_strlen): Expand strlen to Pmode
12152 and properly handle result not in Pmode.
12154 2011-06-14 Robert Millan <rmh@gnu.org>
12156 * config/i386/kfreebsd-gnu.h: Resync with `config/i386/linux.h'.
12157 * config/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER): Resync with
12160 * config/i386/kfreebsd-gnu64.h: New file.
12161 * config.gcc (x86_64-*-kfreebsd*-gnu): Replace `i386/kfreebsd-gnu.h'
12162 with `i386/kfreebsd-gnu64.h'.
12164 * config/i386/linux64.h (GNU_USER_LINK_EMULATION32)
12165 (GNU_USER_LINK_EMULATION64): New macros.
12166 * config/i386/gnu-user64.h (LINK_SPEC): Rely on
12167 `GNU_USER_LINK_EMULATION32' and `GNU_USER_LINK_EMULATION64' instead
12168 of hardcoding `elf_i386' and `elf_x86_64'.
12170 2011-06-14 Nick Clifton <nickc@redhat.com>
12173 * config/v850/v850.c (v850_memory_move_cost): Add reg_class_t parameter.
12176 * config.gcc(v850*-*-*): Avoid duplication of v850.opt.
12178 2011-06-14 Jakub Jelinek <jakub@redhat.com>
12181 * tree.h (DECL_NONSHAREABLE): Define.
12182 (struct tree_decl_common): Change decl_common_unused to
12183 decl_nonshareable_flag.
12184 * cfgexpand.c (expand_used_vars_for_block, clear_tree_used):
12185 Ignore vars with DECL_NONSHAREABLE bit set.
12186 * tree-cfg.c (gimple_duplicate_bb): Set DECL_NONSHAREABLE
12187 on stores to automatic aggregate vars.
12189 PR rtl-optimization/49390
12191 2010-06-29 Bernd Schmidt <bernds@codesourcery.com>
12193 * cse.c (exp_equiv_p): For MEMs, if for_gcse, only compare
12196 2011-06-14 Zdenek Dvorak <ook@ucw.cz>
12197 Tom de Vries <tom@codesourcery.com>
12200 * cfgloop.h (nb_iterations_upper_bound, nb_iterations_estimate):
12201 Document changed semantics.
12202 (max_stmt_executions, max_stmt_executions_int): Declare.
12203 * tree-data-ref.c (estimated_loop_iterations)
12204 (estimated_loop_iterations_int): Move functions...
12205 * tree-ssa-loop-niter.c (estimated_loop_iterations)
12206 (estimated_loop_iterations_int): here.
12207 (record_estimate): Change nb_iterations_upper_bound and
12208 nb_iterations_estimate semantics.
12209 (max_stmt_executions, max_stmt_executions_int): New function.
12210 * tree-data-ref.c (estimated_loop_iterations_tree): Rename to ...
12211 (max_stmt_executions_tree): this.
12212 (analyze_miv_subscript): Use max_stmt_executions_tree instead of
12213 estimated_loop_iterations_tree.
12214 tree-ssa-loop-ivopts.c (avg_loop_niter): Use
12215 max_stmt_executions_int instead of estimated_loop_iterations_int.
12216 * predict.c (predict_loops): Idem.
12217 * tree-parloops.c (parallelize_loops): Idem.
12218 * tree-data-ref.c (analyze_siv_subscript_cst_affine)
12219 (compute_overlap_steps_for_affine_1_2, analyze_subscript_affine_affine)
12220 (init_omega_for_ddr_1): Idem.
12221 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse)
12222 (loop_prefetch_arrays): Idem
12223 * graphite-sese-to-poly.c (build_loop_iteration_domains): Use
12224 max_stmt_executions instead of estimated_loop_iterations.
12225 * tree-data-ref.c (estimated_loop_iterations_tree): Idem.
12226 * tree-vrp.c (adjust_range_with_scev): Use estimated_loop_iterations
12227 instead of nb_iterations_upper_bound.
12229 2011-06-13 Jan Hubicka <jh@suse.cz>
12231 * ipa.c (cgraph_address_taken_from_non_vtable_p): Check the ref type.
12233 2011-06-14 Richard Henderson <rth@redhat.com>
12236 * dwarf2out.c (frame_pointer_fb_offset_valid): New.
12237 (based_loc_descr): Assert it's true.
12238 (compute_frame_pointer_to_fb_displacement): Set it, rather than
12239 aborting immediately.
12241 2011-06-14 Sanjin Liu <scliu@faraday-tech.com>
12242 Mingfeng Wu <mingfeng@faraday-tech.com>
12244 * doc/invoke.texi: Re-add missing -mcpu docs for Faraday cores.
12246 2011-06-13 Jan Hubicka <jh@suse.cz>
12248 * ipa-cp.c (ipcp_iterate_stage): Revert accidental commit.
12250 2011-06-13 Jan Hubicka <jh@suse.cz>
12252 * cgraph.c (cgraph_make_decl_local): Handle DECL_ONE_ONLY
12253 similarly to DECL_COMDAT.
12254 * cgraphunit.c (cgraph_analyze_function): Likewise.
12255 * ipa.c (function_and_variable_visibility): Likewise.
12257 2011-06-13 Jan Hubicka <jh@suse.cz>
12259 * lto-streamer-out.c (lto_output_ts_binfo_tree_pointers): Do not output
12260 BINFO_VIRTUALS when streaming for ltrans unit.
12262 2011-06-13 David Edelsohn <dje.gcc@gmail.com>
12264 * config/rs6000/rs6000.md (movdi_mfpgpr): Remove POWER mnemonic.
12265 (movdi_internal64): Same.
12267 2011-06-13 Edmar Wienskoski <edmar@freescale.com>
12270 * config/rs6000/rs6000.md (save_gpregs_<mode>): Replaced pattern with
12271 a set of similar patterns, where the MATCH_OPERAND for the function
12272 argument is replaced with individual references to hardware registers.
12273 (save_fpregs_<mode>): Ditto
12274 (restore_gpregs_<mode>): Ditto
12275 (return_and_restore_gpregs_<mode>): Ditto
12276 (return_and_restore_fpregs_<mode>): Ditto
12277 (return_and_restore_fpregs_aix_<mode>): Ditto
12279 2011-06-13 Jan Hubicka <jh@suse.cz>
12281 * ipa-utils.c (postorder_stack): New structure.
12282 (ipa_reverse_postorder): Handle aliases.
12284 2011-06-13 Jan Hubicka <jh@suse.cz>
12286 * ipa-inline.c (reset_edge_caches): Walk aliases.
12287 (update_caller_keys): Do not test inlinability of aliases.
12288 * ipa-inline-analysis.c (do_estimate_edge_time): Look through alias.
12289 (do_estimate_growth): Fix typo.
12291 2011-06-13 Jan Hubicka <jh@suse.cz>
12293 * ipa-inline-transform.c (+can_remove_node_now_p_1): Break out from...
12294 (can_remove_node_now_p): ... here; handle same comdat groups.
12295 (clone_inlined_nodes): Update use of can_remove_node_now_p add TODO.
12296 (inline_call): Update use of can_remove_node_now_p.
12298 2011-06-13 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
12300 * config/h8300/h8300.md (bsetqi_msx, bclrqi_msx, bnotqi_msx): Added
12301 condition to disallow non-identical memory locations.
12302 (*andqi3_2, andqi3_1, iorqi3_1, xorqi3_1): Reorder insn to give
12303 preference to bit manipulation instructions.
12305 2011-06-13 Jan Hubicka <jh@suse.cz>
12307 * cgraph.c (cgraph_for_node_thunks_and_aliases,
12308 cgraph_for_node_and_aliases): Fix thinko in recursive walking.
12309 (nonremovable_p): New function.
12310 (cgraph_can_remove_if_no_direct_calls_p): New function.
12311 (used_from_object_file_p): New functoin.
12312 (cgraph_will_be_removed_from_program_if_no_direct_calls): Look for
12313 references from aliases.
12314 * cgraph.h (cgraph_can_remove_if_no_direct_calls_p): Bring offline.
12315 * ipa-inline.c (check_caller_edge): New function.
12316 (want_inline_function_called_once_p): Use it; accept aliases called
12318 * ipa-inline-analysis.c (do_estimate_growth): Remove FIXME.
12320 2011-06-13 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
12323 * config/arm/neon.md (vec_pack_trunc): Set the lengths
12324 correctly for the case with Quad vectors.
12326 2011-06-13 Jakub Jelinek <jakub@redhat.com>
12327 Ira Rosen <ira.rosen@linaro.org>
12329 PR tree-optimization/49352
12330 * tree-vect-loop.c (vect_is_slp_reduction): Don't count debug uses at
12331 all, make sure loop_use_stmt after the loop is a def stmt of a used
12332 SSA_NAME that is the only one defined inside of the loop. Don't
12333 check for COND_EXPR and GIMPLE_BINARY_RHS.
12334 (vect_is_simple_reduction_1): Call vect_is_slp_reduction only if
12335 check_reduction is true.
12337 2011-06-11 Jan Hubicka <jh@suse.cz>
12339 PR middle-end/49373
12340 * ipa.c (cgraph_externally_visible_p): Check resolution info.
12342 2011-06-11 Jan Hubicka <jh@suse.cz>
12344 PR middle-end/48836
12345 * ipa-inline-transform.c: Include tree-pass.h
12346 (inline_transform): Set TODO_update_ssa_only_virtuals.
12347 * Makefile.in (ipa-inline-transform.o): Add tree-pass.h.
12349 2011-06-11 Jan Hubicka <jh@suse.cz>
12351 PR middle-end/49378
12352 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p): Rule out
12353 aliases and thunks.
12355 2011-06-12 Ira Rosen <ira.rosen@linaro.org>
12357 * tree-vect-data-refs.c (vect_peeling_hash_get_most_frequent):
12358 Take number of iterations to peel into account for equally frequent
12359 misalignment values.
12361 2011-06-11 Jan Hubicka <jh@suse.cz>
12363 * lto-streamer-out.c (produce_symtab): Stream out the newly
12364 represented aliases.
12366 2011-06-11 Jan Hubicka <jh@suse.cz>
12368 * ipa-prop.c (ipa_make_edge_direct_to_target): Fix code setting
12370 (ipa_update_after_lto_read): Likewise.
12371 (ipa_write_node_info): Do not sream call_with_var_arguments.
12372 (ipa_read_node_info): Likewise.
12374 2011-06-11 Jan Hubicka <jh@suse.cz>
12376 * ipa.c (cgraph_comdat_can_be_unshared_p): Fix pasto.
12378 2011-06-11 Jan Hubicka <jh@suse.cz>
12380 * lto-symtab.c (lto_cgraph_replace_node): Kill same body alias code.
12381 (lto_symtab_resolve_can_prevail_p): Likewise.
12382 (lto_symtab_merge_cgraph_nodes): Update merging of aliases.
12383 * cgraph.c (same_body_aliases_done): New global var.
12384 (cgraph_same_body_alias_1): Rename to ...
12385 (cgraph_create_function_alias): ... this one; reorg to new
12387 (cgraph_same_body_alias): Use cgraph_create_function_alias;
12388 record references when asked to.
12389 (cgraph_add_thunk): Fix formating.
12390 (cgraph_get_node): Kill same body alias code.
12391 (cgraph_node_for_asm): Likewise.
12392 (cgraph_remove_same_body_alias): Remove.
12393 (cgraph_remove_node): Kill same body alias code.
12394 (cgraph_mark_address_taken_node): Mark also the aliased function
12395 as having address taken.
12396 (dump_cgraph_node): Dump same body aliases.
12397 (cgraph_for_node_thunks_and_aliases): Update for new alias
12399 (cgraph_for_node_and_aliases): Likewise.
12400 * cgraph.h (same_body): Kll pointer.
12401 (same_body_alias): Update comment.
12402 (same_body_aliases_done): Declare.
12403 (cgraph_remove_same_body_alias): Remove declaration.
12404 (cgraph_create_function_alias): Declare.
12405 (cgraph_process_same_body_aliases): Declare.
12406 (cgraph_function_with_gimple_body_p): Check for alias.
12407 (cgraph_can_remove_if_no_direct_calls_p): Look for aliases.
12408 (cgraph_alias_aliased_node): New function.
12409 (cgraph_function_node): Update for new aliases.
12410 (cgraph_function_or_thunk_node): Likewise.
12411 * ipa-inline-transform.c (can_remove_node_now_p): Look for aliases.
12412 (inline_call): Remove dead aliases.
12413 * cgraphunit.c (cgraph_decide_is_function_needed): Disable assembler
12414 name hack for same body aliases.
12415 (clone_of_p): Look through aliases.
12416 (verify_cgraph_node): Verify aliases.
12417 (cgraph_analyze_function): Analyze aliases; fixup C++ bugs.
12418 (cgraph_process_same_body_aliases): New function.
12419 (process_function_and_variable_attributes): Disable weakref warning on
12421 (cgraph_analyze_functions): Handle aliases.
12422 (cgraph_mark_functions_to_output): Handle aliases same way as thunks.
12423 (assemble_thunks): Rename to ...
12424 (assemble_thunks_and_aliases): ... this one; handle aliases, too.
12425 (cgraph_expand_function): Remove alias output code.
12426 (cgraph_output_in_order): Skip aliases.
12427 (cgraph_preserve_function_body_p): Aliases don't need preserving.
12428 * ipa-ref.c (ipa_ref_use_name): Add alias reference.
12429 (ipa_record_reference): Do not assert on alias references.
12430 (ipa_ref_has_aliases_p): New function.
12431 * ipa-ref.h (enum ipa_ref_use): Add IPA_REF_ALIAS.
12432 (ipa_ref_has_aliases_p): Declare.
12433 * lto-cgraph.c (lto_output_node): Handle aliases.
12434 (input_node): Likewise.
12435 * lto-streamer-out.c (lto_output): Skip aliases.
12436 (produce_symtab): Kill same_body_alias code.
12437 * ipa-utils.c (ipa_reverse_postorder): Add FIXME.
12438 (ipa_reverse_postorder): Use cgraph_only_called_directly_or_aliased_p.
12439 * ipa-inline.c (update_caller_keys): Walk aliases.
12440 (inline_small_functions): Fix thinko in previous patch.
12441 * ipa.c (cgraph_externally_visible_p): Do not walk aliases.
12442 (function_and_variable_visibility): Do not walk same body aliases.
12443 * tree-ssa-structalias.c (associate_varinfo_to_alias): New function.
12444 (ipa_pta_execute): Use it.
12446 2011-06-11 Uros Bizjak <ubizjak@gmail.com>
12448 * config/i386/sse.md (vec_dupv4sf): Correct mode of forced register.
12449 (*vec_dupv2df): Rename from vec_dupv2df.
12450 (vec_dupv2df): New expander.
12452 2011-06-11 Uros Bizjak <ubizjak@gmail.com>
12454 * config/i386/sse.md (AVX_VEC_DUP_MODE): Rename from AVX256MODE24P.
12456 2011-06-11 Uros Bizjak <ubizjak@gmail.com>
12458 * config/i386/i386.md: Use default value in "isa" attribute.
12459 * config/i386/sse.md: Ditto.
12460 * config/i386/mmx.md: Ditto.
12462 2011-06-10 Wei Guozhi <carrot@google.com>
12465 * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
12466 stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
12467 (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
12469 (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
12471 * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
12472 (arm_legitimate_ldrd_p): New prototype.
12473 (arm_output_ldrd): New prototype.
12474 * config/arm/arm.c (arm_check_ldrd_operands): New function.
12475 (arm_legitimate_ldrd_p): New function.
12476 (arm_output_ldrd): New function.
12478 2011-06-10 David Li <davidxl@google.com>
12480 * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
12481 * passes.c (passr_eq): New function.
12482 (create_pass_tab): New function.
12483 (pass_traverse): New function.
12484 (dump_one_pass): New function.
12485 (dump_pass_list): New function.
12486 (dump_passes): New function.
12488 2011-06-10 Jan Hubicka <jh@suse.cz>
12490 * cgraph.c (cgraph_set_nothrow_flag_1): Update cgraph after
12491 setting the nothrow flag.
12492 * ipa-reference.c (propagate): Skip aliases.
12493 * ipa-pure-const.c (propagate_pure_const): Skip aliases.
12494 (propagate_nothrow): Skip aliases; do not update cgraph.
12495 (local_pure_const): Do not update cgraph.
12496 * tree-profile.c (tree_profiling): Do fixup_cfg.
12498 2011-06-10 Jan Hubicka <jh@suse.cz>
12500 * ipa.c (cgraph_non_local_node_p_1): Break out from ...;
12501 (cgraph_local_node_p): ... here; handle aliases.
12502 (has_addr_references_p): Break out from ...;
12503 (cgraph_remove_unreachable_nodes) ... here.
12505 2011-06-10 Jan Hubicka <jh@suse.cz>
12507 * opts.c (default_options): Enlist OPT_finline_functions_called_once.
12508 * common.opt (flag_inline_functions_called_once): Do not
12511 2011-06-10 Jan Hubicka <jh@suse.cz>
12513 * ipa-cp.c (ipcp_versionable_function_p): Thunks are not versionable.
12514 (ipcp_initialize_node_lattices): Do not deal with aliases;
12515 Do not try to propagate through thunks.
12516 (ipcp_change_tops_to_bottom): Do not deal with aliases.
12518 2011-06-10 Jan Hubicka <jh@suse.cz>
12520 * ipa-prop.c (ipa_write_node_info): Stream jump functions
12521 for indirect calls.
12522 (ipa_read_node_info): Likewise.
12524 2011-06-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12527 * tree-ssa-math-opts.c (powi_as_mults): Minor cleanup.
12528 (build_and_insert_call): Likewise.
12529 (build_and_insert_ref): New.
12530 (gimple_expand_builtin_pow): Minor cleanup.
12531 (gimple_expand_builtin_cabs): New.
12532 (execute_cse_sincos): Add case for BUILT_IN_CABS.
12534 2011-06-10 Jan Hubicka <jh@suse.cz>
12536 * ipa-cp.c (ipcp_versionable_function_p): Aliases are not versionable.
12537 (ipcp_cloning_candidate_p): Aliases are not clonning candidates.
12538 (ipcp_initialize_node_lattices): We don't propagate through an aliases.
12539 (ipcp_propagate_stage): Skip aliases when propagating.
12540 (ipcp_need_redirect_p): Skip aliases.
12541 (ipcp_insert_stage): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY and
12542 collect_callers_of_node.
12543 * ipa-prop.c (ipa_init_func_list): Do not analyze datastructures
12545 (ipa_compute_jump_functions): Look through aliases.
12547 2011-06-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12549 * doc/sourcebuild.texi (Effective-Target Keywords, pie): Document it.
12551 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
12553 * ira-costs.c: Remove #ifdefs on dead FORBIDDEN_INC_DEC_CLASSES.
12555 * system.h (FORBIDDEN_INC_DEC_CLASSES): Poison.
12557 2011-06-10 Jan Hubicka <jh@suse.cz>
12559 * ipa-cp.c (ipcp_process_devirtualization_opportunities):
12560 Update call of gimple_get_virt_method_for_binfo.
12561 * gimple-fold.c (gimple_get_virt_method_for_binfo): Remove
12562 refuse_thunks parameter.
12563 (gimple_fold_call): Update.
12564 * ipa-prop.c (try_make_edge_direct_virtual_call): Update.
12566 2011-06-10 Jan Hubicka <jh@suse.cz>
12568 * tree-sra.c (all_callers_have_enough_arguments_p): Rename to ...
12569 (not_all_callers_have_enough_arguments_p): ... this one; turn into
12570 worker for cgraph_for_node_and_aliases.
12571 (convert_callers_for_node): Break out from ...
12572 (convert_callers): ... here.
12573 (modify_function): Use collect_callers_of_node.
12574 (ipa_early_sra): Use cgraph_for_node_and_aliases.
12576 2011-06-10 Richard Guenther <rguenther@suse.de>
12578 PR tree-optimization/49361
12579 * fold-const.c (fold_binary_loc): Only fold x * x to pow (x, 2.0)
12580 when not already in gimple form.
12582 2011-06-10 Richard Guenther <rguenther@suse.de>
12585 * tree-ssa-math-opts.c (convert_mult_to_fma): Use
12586 FOR_EACH_PHI_OR_STMT_USE.
12588 2011-06-10 Jan Hubicka <jh@suse.cz>
12590 * ipa-inline-transform.c (can_remove_node_now_p): Move out of...
12591 (clone_inlined_nodes): ... here.
12592 (inline_call): Use cgraph_function_or_thunk_node; redirect edge
12593 to real destination prior inlining.
12594 * ipa-inline.c (caller_growth_limits, can_inline_edge_p,
12595 can_early_inline_edge_p, want_early_inline_function_p,
12596 want_early_inline_function_p, want_inline_small_function_p,
12597 want_inline_self_recursive_call_p, want_inline_function_called_once_p,
12598 edge_badness, update_all_callee_keys, lookup_recursive_calls,
12599 add_new_edges_to_heap, inline_small_functions, flatten_function,
12600 inline_always_inline_functions, early_inline_small_functions): Use
12601 cgraph_function_or_thunk_node.
12602 * ipa-inline-analysis.c (evaluate_conditions_for_edge,
12603 dump_inline_edge_summary, estimate_function_body_sizes): Likewise.
12604 (do_estimate_edge_growth_1): Break out from ...
12605 (do_estimate_growth) ... here; walk aliases.
12606 (inline_generate_summary): Skip aliases.
12608 2011-06-10 Richard Guenther <rguenther@suse.de>
12610 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Scan stmts
12611 forward when combining, visit inserted stmts when a stmt was changed.
12613 2011-06-10 Paolo Carlini <paolo.carlini@oracle.com>
12615 * tree.h (error_operand_p): Add.
12616 * dbxout.c (dbxout_type_fields): Use the latter.
12617 * c-decl.c (add_stmt): Likewise.
12618 * gimplify.c (omp_add_variable, omp_notice_variable,
12619 gimplify_scan_omp_clauses): Likewise.
12621 2011-06-10 Georg-Johann Lay <avr@gjlay.de>
12623 * config/avr/avr.c (avr_function_arg_advance): Fix thinko about
12624 when a value is actually passed in regs.
12626 2011-06-10 Eric Botcazou <ebotcazou@adacore.com>
12627 Laurent Rougé <laurent.rouge@menta.fr>
12629 * doc/invoke.texi (SPARC options): Add -mflat.
12630 * config/sparc/sparc.opt: Likewise.
12631 * config/sparc/sparc-protos.h (sparc_expand_epilogue): Add parameter.
12632 (sparc_flat_expand_prologue): Declare.
12633 (sparc_flat_expand_epilogue): Likewise.
12634 * config/sparc/sparc.h (CPP_CPU_SPEC): Do not handle -msoft-float.
12635 (CPP_ENDIAN_SPEC): Replace with...
12636 (CPP_OTHER_SPEC): ...this. Also handle -mflat and -msoft-float.
12637 (CPP_SPEC): Adjust to above change.
12638 (EXTRA_SPECS): Likewise.
12639 (SPARC_INCOMING_INT_ARG_FIRST): Add TARGET_FLAT handling.
12640 (INCOMING_REGNO): Likewise.
12641 (OUTGOING_REGNO): Likewise.
12642 (LOCAL_REGNO): Likewise.
12643 (SETUP_FRAME_ADDRESSES): Likewise.
12644 (FIXED_REGISTERS): Set 0 for %fp.
12645 (CALL_USED_REGISTERS): Likewise.
12646 (INITIAL_ELIMINATION_OFFSET): Pass current_function_is_leaf.
12647 (EXIT_IGNORE_STACK): Define to 1 unconditionally.
12648 (RETURN_ADDR_REGNUM): Define.
12649 (RETURN_ADDR_RTX): Use it.
12650 (INCOMING_RETURN_ADDR_REGNUM): Define.
12651 (INCOMING_RETURN_ADDR_RTX): Use it.
12652 (DWARF_FRAME_RETURN_COLUMN): Likewise.
12653 (EH_RETURN_REGNUM): Define.
12654 (EH_RETURN_STACKADJ_RTX): Use it.
12655 (EH_RETURN_HANDLER_RTX): Delete.
12656 (EPILOGUE_USES): Use them and add TARGET_FLAT handling.
12657 * config/sparc/sparc.c (apparent_fsize, actual_fsize, num_gfregs):
12659 (struct machine_function): Add frame_size, apparent_frame_size,
12660 frame_base_reg, frame_base_offset, n_global_fp_regs and
12661 save_local_in_regs_p fields.
12662 (sparc_frame_size, sparc_apparent_frame_size, sparc_frame_base_reg,
12663 sparc_frame_base_offset, sparc_n_global_fp_regs,
12664 sparc_save_local_in_regs_p): New macros.
12665 (sparc_option_override): Error out if -fcall-saved-REG is specified
12667 (eligible_for_restore_insn): Fix formatting.
12668 (eligible_for_return_delay): Likewise. Add TARGET_FLAT handling.
12669 (eligible_for_sibcall_delay): Likewise.
12670 (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Add MODE parameter.
12671 (sparc_legitimate_address_p): Adjust to above change.
12672 (save_global_or_fp_reg_p): New predicate.
12673 (return_addr_reg_needed_p): Likewise.
12674 (save_local_or_in_reg_p): Likewise.
12675 (sparc_compute_frame_size): Use them. Add TARGET_FLAT handling.
12676 (SORR_SAVE, SORR_RESTORE): Delete.
12677 (sorr_pred_t): New typedef.
12678 (sorr_act_t): New enum.
12679 (save_or_restore_regs): Rename to...
12680 (emit_save_or_restore_regs): ...this. Change type of LOW and HIGH
12681 parameters, remove ACTION parameter, add LEAF_FUNCTION_P, SAVE_P,
12682 ACTION_TRUE and ACTION_FALSE parameters. Implement more general
12683 mechanism. Add CFI information for double-word saves in 32-bit mode.
12684 (emit_adjust_base_to_offset): New function extracted from...
12685 (emit_save_or_restore_regs): ...this. Rename the rest to...
12686 (emit_save_or_restore_regs_global_fp_regs): ...this.
12687 (emit_save_or_restore_regs_local_in_regs): New function.
12688 (gen_create_flat_frame_[123]): New functions.
12689 (sparc_expand_prologue): Use SIZE local variable. Adjust.
12690 (sparc_flat_expand_prologue): New function.
12691 (sparc_asm_function_prologue): Add TARGET_FLAT handling.
12692 (sparc_expand_epilogue): Use SIZE local variable. Adjust.
12693 (sparc_flat_expand_epilogue): New function.
12694 (sparc_can_use_return_insn_p): Add TARGET_FLAT handling.
12695 (output_return): Likewise.
12696 (output_sibcall): Likewise.
12697 (sparc_output_mi_thunk): Likewise.
12698 (sparc_frame_pointer_required): Likewise.
12699 (sparc_conditional_register_usage): If TARGET_FLAT, disable the leaf
12700 function optimization.
12701 * config/sparc/sparc.md (flat): New attribute.
12702 (prologue): Add TARGET_FLAT handling.
12703 (save_register_window): Disable if TARGET_FLAT.
12704 (create_flat_frame_[123]): New patterns.
12705 (epilogue): Add TARGET_FLAT handling.
12706 (sibcall_epilogue): Likewise.
12707 (eh_return): New expander.
12708 (eh_return_internal): New insn and splitter.
12709 (return_internal): Add TARGET_FLAT handling.
12710 (untyped_return): Remove bogus test and use RETURN_ADDR_REGNUM.
12711 (save_stack_nonlocal): Use RETURN_ADDR_REGNUM.
12712 (nonlocal_goto): Add TARGET_FLAT handling.
12713 * config/sparc/t-elf: Add -mflat multilib.
12714 * config/sparc/t-leon: Likewise.
12716 2011-06-10 Jan Hubicka <jh@suse.cz>
12718 * ipa-utils.c (searchc): Use cgraph_function_or_thunk_node.
12719 * ipa-pure-const.c (analyze_function): Aliases don't need analysis.
12720 (self_recursive_p): Use cgraph_function_node.
12721 (propagate_pure_const): Likewise.
12722 (propagate_nothrow): Likewise.
12723 * ipa-reference.c (ipa_reference_get_not_read_global): Use
12724 cgraph_function_node.
12725 (propagate_bits): Likewise.
12726 (propagate): Likewise.
12728 2011-06-10 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
12729 Richard Earnshaw <rearnsha@arm.com>
12731 * config/arm/arm.c (const_ok_for_op): Check to see if mvn can be used.
12732 * config/arm/vfp.md (*arm_movdi_vfp): Delete.
12733 (*thumb2_movdi_vfp): Delete.
12734 (*arm_movdi_vfp_cortexa8): Delete.
12735 (*movdi_vfp): Consolidate from *arm_movdi_vfp and *thumb2_movdi_vfp.
12736 (*movdi_vfp_cortexa8): Likewise.
12738 2011-06-10 Richard Guenther <rguenther@suse.de>
12740 * stor-layout.c (initialize_sizetypes): Give names to all
12743 2011-06-10 Ira Rosen <ira.rosen@linaro.org>
12745 PR tree-optimization/49318
12746 * tree-vect-loop.c (vect_determine_vectorization_factor): Remove
12747 irrelevant pattern statements.
12749 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
12751 * system.h (SETJMP_VIA_SAVE_AREA): Poison.
12754 * ira-costs.c (setup_regno_cost_classes_by_mode): Add missing cast
12755 to last assignment.
12757 2011-06-09 Jan Hubicka <jh@suse.cz>
12759 * cgraphunit.c (cgraph_reset_node): Do not set redefined_extern_inline;
12760 do not recompute reachable flag.
12761 (cgraph_finalize_function, cgraph_analyze_functions): Set
12762 redefined_extern_inline here.
12764 2011-06-09 Jan Hubicka <jh@suse.cz>
12766 * cgraph.h (cgraph_only_called_directly_or_aliased_p): Rename from ...
12767 (cgraph_only_called_directly_p): ... this one; bring offline.
12768 (resolution_used_from_other_file_p, cgraph_used_from_object_file_p,
12769 varpool_used_from_object_file_p): Drop names from the declaratoin.
12770 (cgraph_for_node_thunks_and_aliases, cgraph_for_node_and_aliases,
12771 collect_callers_of_node): New.
12772 (cgraph_function_node, cgraph_function_or_thunk_node): New functions.
12773 (cgraph_edge_recursive_p): Use cgraph_function_node.
12774 * cgraph.c (cgraph_add_thunk): Check that thunk is not already alias.
12775 (cgraph_node_cannot_be_local_p_1): Break out from ...
12776 (cgraph_node_can_be_local_p): ... here; walk aliases.
12777 (cgraph_for_node_thunks_and_aliases): New function.
12778 (cgraph_for_node_and_aliases): New function.
12779 (cgraph_make_node_local_1): Break out from ...
12780 (cgraph_make_node_local) ... here; use
12781 cgraph_for_node_thunks_and_aliases.
12782 (cgraph_set_nothrow_flag_1): Break out from ...
12783 (cgraph_set_nothrow_flag) ... here;
12784 use cgraph_for_node_thunks_and_aliases.
12785 (cgraph_set_const_flag_1): Break out from ...
12786 (cgraph_set_const_flag) ... here;
12787 use cgraph_for_node_thunks_and_aliases.
12788 (cgraph_set_pure_flag_1): Break out from ...
12789 (cgraph_set_pure_flag) ... here;
12790 use cgraph_for_node_thunks_and_aliases.
12791 (cgraph_propagate_frequency_1): Break out from ...
12792 (cgraph_propagate_frequency) ... here; use
12793 cgraph_for_node_thunks_and_aliases.
12794 (cgraph_used_from_object_file_p): Do not care about aliases.
12795 (cgraph_not_only_called_directly_p_1, cgraph_only_called_directly_p):
12797 (collect_callers_of_node_1, collect_callers_of_node): New functions.
12799 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
12801 PR rtl-optimization/49154
12802 * config/cris/cris.h (FIXED_REGISTERS): Include CRIS_CC0_REGNUM.
12803 (enum reg_class): Add SRP_REGS and MOF_SRP_REGS.
12804 (REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGNO_REG_CLASS)
12805 (PREFERRED_RELOAD_CLASS, SECONDARY_RELOAD_CLASS): Adjust to fit.
12806 * config/cris/cris.h (cris_register_move_cost): Remove
12807 !TARGET_V32 code. Tweak comments.
12809 2011-06-09 Jan Hubicka <jh@suse.cz>
12811 * cgraphbuild.c (record_eh_tables): Mark personality function as having
12814 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
12816 PR rtl-optimization/49154
12817 * ira-costs.c (setup_regno_cost_classes_by_mode): If there already
12818 is a matching slot in the hashtable, assign it to classes_ptr.
12820 PR rtl-optimization/49154
12821 * doc/tm.texi.in (Register Classes): Document rule for the narrowest
12823 * doc/tm.texi: Regenerate.
12825 2011-06-09 Kaz Kojima <kkojima@gcc.gnu.org>
12828 * config/sh/sh.md (UNSPEC_CHKADD): New.
12829 (chk_guard_add): New define_insn_and_split.
12830 (symGOT_load): Use chk_guard_add instead of blockage.
12832 2011-06-09 Kai Tietz <ktietz@redhat.com>
12834 * libgcc2.c (L_trampoline): Include windows.h for mingw targets.
12836 2011-06-09 Eric Botcazou <ebotcazou@adacore.com>
12838 * config/sparc/sparc.md (return_internal): Adjust 'length' attribute.
12840 2011-06-09 Wei Guozhi <carrot@google.com>
12843 * config/arm/arm.md (*addsi3_carryin_compare0_<optab>): New pattern.
12844 (peephole2 for conditional move): Generate 16 bit instructions.
12846 2011-06-09 Uros Bizjak <ubizjak@gmail.com>
12848 * config/i386/i386.md (*movdi_internal_rex64): Merge
12849 alternatives 6 and 8.
12851 2011-06-09 David Li <davidxl@google.com>
12853 * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
12854 * passes.c (passr_eq): New function.
12855 (create_pass_tab): New function.
12856 (pass_traverse): New function.
12857 (dump_one_pass): New function.
12858 (dump_pass_list): New function.
12859 (dump_passes): New function.
12861 2011-06-09 David Li <davidxl@google.com>
12863 * tree-complex.c (tree_lower_complex): Gate cleanup.
12864 * tree-stdarg.c (check_all_va_list_escapes): Ditto.
12865 (execute_optimize_stdarg): Ditto.
12866 * tree-eh.c (execute_lower_eh_dispatch): Ditto.
12867 (execute_cleanup_eh_1): Ditto.
12868 (execute_cleanup_eh): Ditto.
12869 * gcse.c (gate_rtl_pre): Ditto.
12870 (execute_rtl_pre): Ditto.
12871 * except.c (finish_eh_generation): Ditto.
12872 (convert_to_eh_region_ranges): Ditto.
12873 * cprop.c (one_cprop_pass): Ditto.
12875 2011-06-09 Bernd Schmidt <bernds@codesourcery.com>
12878 * config/ia64/ia64.c (ia64_reorg): Clear BB_DISABLE_SCHEDULE flag
12879 in all basic blocks.
12881 2011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12883 * config/alpha/netbsd.h (ENABLE_EXECUTE_STACK): Remove.
12884 (HAVE_ENABLE_EXECUTE_STACK): Define.
12885 * config/alpha/osf5.h (ENABLE_EXECUTE_STACK): Remove.
12886 (HAVE_ENABLE_EXECUTE_STACK): Define.
12887 * config/darwin.h (ENABLE_EXECUTE_STACK): Remove.
12888 (HAVE_ENABLE_EXECUTE_STACK): Define.
12889 * config/i386/mingw32.h (MINGW_ENABLE_EXECUTE_STACK): Remove.
12890 (ENABLE_EXECUTE_STACK): Remove.
12891 (HAVE_ENABLE_EXECUTE_STACK): Define.
12892 [IN_LIBGCC2]: Don't include <windows.h>.
12893 * config/i386/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
12894 (HAVE_ENABLE_EXECUTE_STACK): Define.
12895 * config/i386/netbsd64.h (ENABLE_EXECUTE_STACK): Remove.
12896 (HAVE_ENABLE_EXECUTE_STACK): Define.
12897 * config/netbsd.h (NETBSD_ENABLE_EXECUTE_STACK): Remove.
12898 * config/openbsd.h (ENABLE_EXECUTE_STACK): Remove.
12899 (HAVE_ENABLE_EXECUTE_STACK): Define.
12900 * config/sol2.h (ENABLE_EXECUTE_STACK): Remove.
12901 (HAVE_ENABLE_EXECUTE_STACK): Define.
12902 * config/sparc/freebsd.h (ENABLE_EXECUTE_STACK): Remove.
12903 (HAVE_ENABLE_EXECUTE_STACK): Define.
12904 * config/sparc/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
12905 (HAVE_ENABLE_EXECUTE_STACK): Define.
12906 * config/alpha/alpha.c (alpha_trampoline_init): Test
12907 HAVE_ENABLE_EXECUTE_STACK.
12908 * config/i386/i386.c (ix86_trampoline_init): Likewise.
12909 * config/sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
12910 (sparc64_initialize_trampoline): Likewise.
12911 * libgcc2.c [L_enable_execute_stack]: Remove.
12912 * system.h (ENABLE_EXECUTE_STACK): Poison.
12913 * doc/tm.texi.in (Trampolines, ENABLE_EXECUTE_STACK): Remove.
12914 * doc/tm.texi: Regenerate.
12915 * Makefile.in (LIBGCC2_CFLAGS): Add -fbuilding-libgcc.
12917 2011-06-09 Jakub Jelinek <jakub@redhat.com>
12919 PR middle-end/49308
12920 * dce.c (reset_unmarked_insns_debug_uses): Avoid shadowing insn
12921 variable. After resetting and rescanning insn continue with previous
12924 2011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12926 * configure.ac (gcc_cv_as_hidden): Enable on *-*-darwin*.
12927 (gcc_cv_ld_hidden): Likewise.
12928 * configure: Regenerate.
12929 * config/i386/i386.c (USE_HIDDEN_LINKONCE): Remove TARGET_MACHO.
12930 (ix86_stack_protect_fail): Mark unused.
12931 (TARGET_STACK_PROTECT_FAIL) [TARGET_MACHO]: Don't redefine.
12932 * config/rs6000/rs6000.c (rs6000_assemble_visibility)
12933 [TARGET_MACHO]: Don't define.
12934 (TARGET_ASM_ASSEMBLE_VISIBILITY): Likewise.
12935 (TARGET_STACK_PROTECT_FAIL): Likewise.
12936 (rs6000_stack_protect_fail): Mark unused.
12937 * dwarf2asm.c (dw2_output_indirect_constant_1): Mark decl hidden if
12938 USE_LINKONCE_INDIRECT. Don't emit .hidden expicitly.
12940 2011-06-08 Andi Kleen <ak@linux.intel.com>
12942 * varasm.c (get_section): Print location of other conflict
12943 for section conflicts.
12945 2011-06-08 Andi Kleen <ak@linux.intel.com>
12947 * config/i386/driver-i386.c (host_detect_local_cpu):
12948 Add model 0x2d Intel CPU.
12950 2011-06-08 Andi Kleen <ak@linux.intel.com>
12952 * reginfo.c (global_regs_decl): Add.
12953 (globalize_reg): Add decl parameter. Compute location. Pass location
12954 to warnings and add inform. Store decl in global_regs_decl.
12955 * rtl.h (globalize_reg): Update prototype.
12956 * varasm.c (make_decl_rtl): Pass decl to globalize_reg().
12958 2011-06-09 Mingjie Xing <mingjie.xing@gmail.com>
12960 * treestruct.def (TS_TYPE_DECL): Fix the printable name typo.
12962 2011-06-08 Kaz Kojima <kkojima@gcc.gnu.org>
12965 * config/sh/predicates.md (general_movsrc_operand): Check
12966 mode for memory with indexed address for QI and HImode.
12967 (general_movdst_operand): Likewise.
12969 2011-06-09 Nicola Pero <nicola.pero@meta-innovation.com>
12971 * doc/objc.texi (Traditional GNU Objective-C runtime API): Updated.
12973 2011-06-08 Alexandre Oliva <aoliva@redhat.com>
12975 * tree-flow-inline.h (op_iter_init): Reject GIMPLE_PHI stmts.
12976 (num_ssa_operands): Likewise.
12977 (op_iter_init_phiuse): Forward-declare.
12978 (delink_stmt_imm_use): Iterate with FOR_EACH_PHI_OR_STMT_USE.
12980 2011-06-08 Nick Clifton <nickc@redhat.com>
12982 * doc/invoke.texi (ARM Options): Update description of
12985 2011-06-08 H.J. Lu <hongjiu.lu@intel.com>
12987 * config/i386/driver-i386.c (host_detect_local_cpu): Support
12988 unknown Intel family 0x6 CPUs.
12990 2011-06-08 Martin Jambor <mjambor@suse.cz>
12992 * tree-sra.c (mark_rw_status): Removed.
12993 (analyze_access_subtree): New parameter parent instead of
12994 mark_read and mark_write, propagate from that.
12996 2011-06-08 Julian Brown <julian@codesourcery.com>
12998 * config/arm/arm.c (arm_libcall_uses_aapcs_base): Use correct ABI
12999 for double-precision helper functions in hard-float mode if only
13000 single-precision arithmetic is supported in hardware.
13002 2011-06-08 Alexander Monakov <amonakov@ispras.ru>
13004 PR rtl-optimization/49303
13005 * sel-sched.c (move_op): Use correct type for 'res'. Verify that
13006 code_motion_path_driver returned 0 or 1.
13007 (sel_region_finish): Clear h_d_i_d.
13009 2011-06-08 Kaz Kojima <kkojima@gcc.gnu.org>
13011 * config/sh/sh.c (prepare_move_operands): Set pic register
13012 appropriately for global and local dynamic tls models even
13013 if flag_pic is unset.
13015 2011-06-07 Jason Merrill <jason@redhat.com>
13017 * pretty-print.h (ATTRIBUTE_GCC_PPDIAG): Use GCC_DIAG_STYLE if set.
13019 2011-06-07 Xinliang David Li <davidxl@google.com>
13020 * passes.c (enable_disable_pass): Handle assembler name.
13021 (is_pass_explicitly_enabled_or_disabled): Ditto.
13023 2011-06-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13025 PR tree-optimization/48497
13026 * doc/sourcebuild.texi (Directives, dg-additional-options): Document.
13028 2011-06-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13030 PR tree-optimization/46728
13031 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Change FIXME
13032 to use gimple_val_nonnegative_real_p.
13033 * gimple-fold.c (gimple_val_nonnegative_real_p): New function.
13034 * gimple.h (gimple_val_nonnegative_real_p): New declaration.
13036 2011-06-07 H.J. Lu <hongjiu.lu@intel.com>
13038 * config/i386/i386.md (*movsf_internal): Optimize AVX check.
13040 2011-06-07 Sergey Grechanik <mouseentity@ispras.ru>
13042 * config/arm/arm.c (coproc_secondary_reload_class): Return NO_REGS for
13045 2011-06-07 Richard Guenther <rguenther@suse.de>
13047 * stor-layout.c (initialize_sizetypes): Initialize all
13048 sizetypes based on target definitions.
13049 (set_sizetype): Remove.
13050 * tree.c (build_common_tree_nodes): Do not call set_sizetype.
13051 * tree.h (set_sizetype): Remove.
13053 2011-06-07 Nick Clifton <nickc@redhat.com>
13055 * config.gcc: Unify V850 architecture options and add support for
13056 newer V850 architectures.
13057 * config/v850/t-v850e: Delete.
13059 2011-06-07 Richard Guenther <rguenther@suse.de>
13061 * tree.c (build_common_tree_nodes): Also initialize size_type_node.
13062 Call set_sizetype from here.
13064 2011-06-07 Andrew Stubbs <ams@codesourcery.com>
13066 * config/arm/arm.md (*maddhidi4tb, *maddhidi4tt): New define_insns.
13067 (*maddhisi4tb, *maddhisi4tt): New define_insns.
13069 2011-06-07 Bernd Schmidt <bernds@codesourcery.com>
13070 Andrew Stubbs <ams@codesourcery.com>
13072 * simplify-rtx.c (simplify_unary_operation_1): Canonicalize widening
13074 * doc/md.texi (Canonicalization of Instructions): Document widening
13075 multiply canonicalization.
13077 2011-06-07 Jakub Jelinek <jakub@redhat.com>
13079 PR gcov-profile/49299
13080 * value-prof.c (gimple_ic): Don't assume icall has a fallthru edge.
13082 2011-06-07 Ira Rosen <ira.rosen@linaro.org>
13084 * tree-vectorizer.h (vect_recog_func_ptr): Make last argument to be
13086 * tree-vect-patterns.c (vect_recog_widen_sum_pattern,
13087 vect_recog_widen_mult_pattern, vect_recog_dot_prod_pattern,
13088 vect_recog_pow_pattern): Likewise.
13089 (vect_pattern_recog_1): Remove declaration.
13090 (widened_name_p): Remove declaration. Add new argument to specify
13091 whether to check that both types are either signed or unsigned.
13092 (vect_recog_widen_mult_pattern): Update documentation. Handle
13093 unsigned patterns and multiplication by constants.
13094 (vect_pattern_recog_1): Update vect_recog_func references. Use
13095 statement information from the statement returned from pattern
13096 detection functions.
13097 (vect_pattern_recog): Update vect_recog_func reference.
13098 * tree-vect-stmts.c (vectorizable_type_promotion): For widening
13099 multiplication by a constant use the type of the other operand.
13101 2011-06-06 Richard Sandiford <rdsandiford@googlemail.com>
13103 PR rtl-optimization/49145
13104 * combine.c (make_compound_operation): Handle ZERO_EXTEND specially.
13106 2011-06-06 Jakub Jelinek <jakub@redhat.com>
13109 * dwarf2out.c (native_encode_initializer): Decrement count in each
13113 * dwarf2out.c (mem_loc_descriptor) <do_shift>: Give up for
13114 non-MODE_INT modes.
13117 * gimple-fold.c (fold_stmt_1): Don't try to fold *& on the lhs
13118 if stmt folded into nothing.
13119 * tree-inline.c (fold_marked_statements): If a builtin at the end of
13120 a bb folded into nothing, just update cgraph edges and move to next bb.
13121 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Allow new_stmt
13122 to be NULL. Don't compute count and frequency if new_call is NULL.
13124 2011-06-04 Diego Novillo <dnovillo@google.com>
13126 * Makefile.in (lto-compress.o): Add dependency on LTO_STREAMER_H.
13127 (cgraph.o): Likewise.
13128 (cgraphunit.o): Likewise.
13129 * cgraphunit.c: Include lto-streamer.h
13130 (cgraph_finalize_compilation_unit): Call lto_streamer_hooks_init
13132 * lto-streamer-in.c (unpack_value_fields): Call
13133 streamer_hooks.unpack_value_fields if set.
13134 (lto_materialize_tree): For unhandled nodes, first try to
13135 call lto_streamer_hooks.alloc_tree, if it exists.
13136 (lto_input_ts_decl_common_tree_pointers): Move reading of
13137 DECL_INITIAL to lto_streamer_read_tree.
13138 (lto_read_tree): Call lto_streamer_hooks.read_tree if set.
13139 (lto_streamer_read_tree): New.
13140 (lto_reader_init): Rename from lto_init_reader.
13141 Move initialization code to lto/lto.c.
13142 * lto-streamer-out.c (pack_value_fields): Call
13143 streamer_hooks.pack_value_fields if set.
13144 (lto_output_tree_ref): For tree nodes that are not normally indexable,
13145 call streamer_hooks.indexable_with_decls_p before giving up.
13146 (lto_output_ts_decl_common_tree_pointers): Move handling
13147 for FUNCTION_DECL and TRANSLATION_UNIT_DECL to lto_streamer_write_tree.
13148 (lto_output_tree_header): Call streamer_hooks.is_streamable instead of
13149 lto_is_streamable. Call lto_streamer_hooks.output_tree_header if set.
13150 (lto_write_tree): Call lto_streamer_hooks.write_tree if set.
13151 (lto_streamer_write_tree): New.
13152 (lto_output): Call lto_streamer_init directly.
13153 (lto_writer_init): Remove.
13154 * lto-streamer.c (streamer_hooks): New.
13155 (lto_streamer_cache_create): Call streamer_hooks.preload_common_nodes
13156 instead of lto_preload_common_nodes.
13157 (lto_is_streamable): Move from lto-streamer.h
13158 (lto_streamer_hooks_init): New.
13159 (streamer_hooks): New.
13160 (streamer_hooks_init): New.
13161 * lto-streamer.h (struct output_block): Forward declare.
13162 (struct lto_input_block): Likewise.
13163 (struct data_in): Likewise.
13164 (struct bitpack_d): Likewise.
13165 (struct streamer_hooks): Declare.
13166 (streamer_hooks): Declare.
13167 (lto_streamer_hooks_init): Declare.
13168 (lto_streamer_write_tree): Declare.
13169 (lto_streamer_read_tree): Declare.
13170 (streamer_hooks_init): Declare.
13171 (lto_is_streamable): Move to lto-streamer.c
13173 2011-06-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13175 * longlong.h (smul_ppmm): The resulting register pair contains the
13176 higher order word first.
13178 2011-06-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13180 PR tree-optimization/46728
13181 * builtins.c (powi_table): Remove.
13182 (powi_lookup_cost): Remove.
13183 (powi_cost): Remove.
13184 (expand_powi_1): Remove.
13185 (expand_powi): Remove.
13186 (expand_builtin_pow_root): Remove.
13187 (expand_builtin_pow): Remove.
13188 (expand_builtin_powi): Eliminate handling of constant exponent.
13189 (expand_builtin): Use expand_builtin_mathfn_2 for BUILT_IN_POW.
13191 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
13193 * cprop.c (local_cprop_pass): Don't set changed for debug insns.
13195 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
13197 * dce.c (reset_unmarked_insns_debug_uses): New.
13198 (delete_unmarked_insns): Skip debug insns.
13199 (prescan_insns_for_dce): Likewise.
13200 (rest_of_handle_ud_dce): Reset debug uses of removed sets.
13201 * reg-stack.c (subst_stack_regs_in_debug_insn): Signal when no
13202 active reg can be found.
13203 (subst_all_stack_regs_in_debug_insn): New. Reset debug insn then.
13204 (convert_regs_1): Use it.
13206 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
13208 * tree-pretty-print.c (dump_function_header): Add flags.
13209 Don't dump decl_uid with nouid.
13210 * tree-pretty-print.h (dump_function_header): Adjust.
13211 * final.c (rest_of_clean_state): Pass dump_flags on, with nouid.
13212 * passes.c (pass_init_dump_file): Pass dump_flags on.
13213 * tree-cfg.c (gimple_dump_cfg): Pass flags on.
13215 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
13218 * ipa-inline-analysis.c (read_predicate): Initialize all clauses.
13220 2011-06-06 Mikael Pettersson <mikpe@it.uu.se>
13222 PR tree-optimization/49243
13223 * calls.c (setjmp_call_p): Also check if fndecl has the
13224 returns_twice attribute.
13226 2011-06-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13228 * config/mips/iris6.h (ENDFILE_SPEC): Use crtfastmath.o if
13231 2011-06-06 Richard Henderson <rth@redhat.com>
13232 Georg-Johann Lay <avr@gjlay.de>
13235 * config/avr/predicates.md (const1_operand, const_0_to_7_operand):
13237 * config/avr/avr.md ("insv"): New insn expander.
13238 ("*movbitqi.1-6.a", "*movbitqi.1-6.b", "*movbitqi.0", "*insv.io",
13239 "*insv.not.io", "*insv.reg"): New insns.
13241 2011-06-06 Hans-Peter Nilsson <hp@bitrange.com>
13244 * config/mmix/mmix.md ("truncdfsf2", "extendsfdf2"): Correct predicate
13245 to nonimmediate_operand from memory_operand for the operand that is to
13246 be forced to memory by the expander. Lose the constraints.
13248 2011-06-05 Eric Botcazou <ebotcazou@adacore.com>
13250 * config/sparc/sparc.c (output_return): Fix thinko in the output of an
13251 EH return when delayed branches are disabled.
13253 2011-06-05 Uros Bizjak <ubizjak@gmail.com>
13255 * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>:
13256 Remove MODE_TI handling. Remove SSE1 handling in attribute "mode"
13258 (*movdf_internal_rex64) <case 6,7,8>: Remove MODE_TI handling.
13259 Simplify MODE_V1DF and MODE_V2SF handling.
13260 (*movsf_internal): Remove x constraint from alternative 7 of operand 1.
13261 Simplify MODE_SF handling.
13263 2011-06-04 Jan Hubicka <jh@suse.cz>
13265 PR tree-optimization/48893
13266 PR tree-optimization/49091
13267 PR tree-optimization/49179
13268 * ipa-inline-analysis.c (evaluate_conditions_for_known_args):
13271 2011-06-04 Jan Hubicka <jh@suse.cz>
13274 * lto-cgraph.c (output_node_opt_summary): Handle NULL skip args
13277 2011-06-04 Jonathan Wakely <jwakely.gcc@gmail.com>
13279 * doc/invoke.texi: Document -Wdelete-non-virtual-dtor.
13281 2011-06-04 Jakub Jelinek <jakub@redhat.com>
13284 * config/i386/i386.md (*lea_general_4): Require INTVAL (operands[3])
13285 to be strictly smaller than 1 << shiftcount.
13287 2011-06-04 Jan Hubicka <jh@suse.cz>
13289 PR tree-optimize/48929
13290 * ipa-inline-analysis.c (remap_edge_predicates): Fix handling
13291 of empty predicate.
13293 2011-06-04 Alexandre Oliva <aoliva@redhat.com>
13296 * calls.c (emit_call_1): Prefer the __builtin declaration of
13299 2011-06-03 Diego Novillo <dnovillo@google.com>
13301 * lto-streamer-in.c (unpack_value_fields): Remove unneeded asserts.
13302 (lto_input_tree_pointers): Likewise.
13303 * lto-streamer-out.c (pack_value_fields): Likewise.
13304 (lto_output_tree_pointers): Likewise.
13305 * lto-streamer.h (lto_is_streamable): Add check for OMP_CLAUSE
13306 and OPTIMIZATION_NODE.
13308 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13310 * config/alpha/linux.h (MD_UNWIND_SUPPORT): Remove.
13311 * config/alpha/osf5.h (MD_UNWIND_SUPPORT): Remove.
13312 * config/alpha/vms.h (MD_UNWIND_SUPPORT): Remove.
13313 * config/bfin/linux.h (MD_UNWIND_SUPPORT): Remove.
13314 * config/bfin/uclinux.h (MD_UNWIND_SUPPORT): Remove.
13315 * config/i386/linux.h (MD_UNWIND_SUPPORT): Remove.
13316 * config/i386/linux64.h (MD_UNWIND_SUPPORT): Remove.
13317 * config/i386/sol2.h (MD_UNWIND_SUPPORT): Remove.
13318 * config/i386/mingw32.h (MD_UNWIND_SUPPORT): Remove.
13319 * config/ia64/linux.h (MD_UNWIND_SUPPORT): Remove.
13320 * config/ia64/vms.h (MD_UNWIND_SUPPORT): Remove.
13321 * config/m68k/linux.h (MD_UNWIND_SUPPORT): Remove.
13322 * config/mips/linux.h (MD_UNWIND_SUPPORT): Remove.
13323 * config/pa/pa-hpux.h (MD_UNWIND_SUPPORT): Remove.
13324 * config/pa/pa32-linux.h (MD_UNWIND_SUPPORT): Remove.
13325 * config/rs6000/darwin.h (MD_UNWIND_SUPPORT): Remove.
13326 * config/rs6000/linux.h (MD_UNWIND_SUPPORT): Remove.
13327 * config/rs6000/linux64.h (MD_UNWIND_SUPPORT): Remove.
13328 * config/s390/linux.h (MD_UNWIND_SUPPORT): Remove.
13329 * config/s390/tpf.h (MD_UNWIND_SUPPORT): Remove.
13330 * config/sh/linux.h (MD_UNWIND_SUPPORT): Remove.
13331 * config/sparc/linux.h (MD_UNWIND_SUPPORT): Remove.
13332 * config/sparc/linux64.h (MD_UNWIND_SUPPORT): Remove.
13333 * config/sparc/sol2.h (MD_UNWIND_SUPPORT): Remove.
13334 * config/xtensa/linux.h (MD_UNWIND_SUPPORT): Remove.
13335 * config/alpha/linux-unwind.h: Move to ../libgcc/config/alpha.
13336 * config/alpha/osf5-unwind.h: Move to ../libgcc/config/alpha.
13337 * config/alpha/vms-unwind.h: Move to ../libgcc/config/alpha.
13338 * config/bfin/linux-unwind.h: Move to ../libgcc/config/bfin.
13339 * config/i386/linux-unwind.h: Move to ../libgcc/config/i386.
13340 * config/i386/sol2-unwind.h: Move to ../libgcc/config/i386.
13341 * config/i386/w32-unwind.h: Move to ../libgcc/config/i386.
13342 * config/ia64/linux-unwind.h: Move to ../libgcc/config/ia64.
13343 * config/ia64/vms-unwind.h: Move to ../libgcc/config/ia64.
13344 * config/m68k/linux-unwind.h: Move to ../libgcc/config/m68k.
13345 * config/mips/linux-unwind.h: Move to ../libgcc/config/mips.
13346 * config/pa/hpux-unwind.h: Move to ../libgcc/config/pa.
13347 * config/pa/linux-unwind.h: Move to ../libgcc/config/pa.
13348 * config/rs6000/darwin-unwind.h: Move to ../libgcc/config/rs6000.
13349 * config/rs6000/linux-unwind.h: Move to ../libgcc/config/rs6000.
13350 * config/s390/linux-unwind.h: Move to ../libgcc/config/s390.
13351 * config/s390/tpf-unwind.h: Move to ../libgcc/config/s390.
13352 * config/sh/linux-unwind.h: Move to ../libgcc/config/sh.
13353 * config/sparc/linux-unwind.h: Move to ../libgcc/config/sparc.
13354 * config/sparc/sol2-unwind.h: Move to ../libgcc/config/sparc.
13355 * config/xtensa/linux-unwind.h: Move to ../libgcc/config/xtensa.
13356 * config/darwin9.h (DARWIN_LIBSYSTEM_HAS_UNWIND): Remove.
13357 * system.h (MD_UNWIND_SUPPORT): Poison.
13358 * doc/tm.texi.in (Exception Handling, MD_UNWIND_SUPPORT): Remove.
13359 * doc/tm.texi: Regenerate.
13360 * unwind-dw2.c: Include md-unwind-support.h instead of
13362 * config/ia64/unwind-ia64.c: Likewise.
13363 * config/xtensa/unwind-dw2-xtensa.c: Likewise.
13365 2011-06-03 Jack Howarth <howarth@bromo.med.uc.edu>
13367 * varpool.c (varpool_extra_name_alias): Return NULL, not false.
13369 2011-06-03 Richard Henderson <rth@redhat.com>
13370 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13372 * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]
13373 (sigill_hdlr): Correct insn, insn size.
13374 (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Use movaps.
13376 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13378 * config.gcc (mips-sgi-irix6.5*): Set tmake_file to mips/t-irix6
13380 * config/mips/irix-crti.asm: Move to ../libgcc/config/mips/irix-crti.S.
13381 * config/mips/irix-crtn.asm: Move to ../libgcc/config/mips/irix-crtn.S.
13382 * config/mips/t-iris: Remove.
13383 * config/mips/t-irix6: New file.
13384 * config/mips/t-slibgcc-irix: Move to ../libgcc/config/mips.
13386 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13388 * Makefile.in (LIB2ADDEHDEP): Remove.
13389 * config/arm/t-bpabi (LIB2ADDEHDEP): Remove.
13390 * config/arm/t-symbian (LIB2ADDEHDEP): Remove.
13391 * config/picochip/t-picochip (LIB2ADDEHDEP): Remove.
13392 * config/t-darwin (LIB2ADDEHDEP): Remove.
13393 * config/t-freebsd (LIB2ADDEHDEP): Remove.
13394 * config/t-linux (LIB2ADDEHDEP): Remove.
13396 2011-06-03 Diego Novillo <dnovillo@google.com>
13398 * lto-streamer-in.c (get_resolution): Move to lto/lto.c.
13399 (lto_register_var_decl_in_symtab): Likewise.
13400 (lto_register_function_decl_in_symtab): Likewise.
13401 (lto_read_tree): Move VAR_DECL and FUNCTION_DECL registration
13402 logic to uniquify_nodes.
13404 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13406 * config/alpha/t-osf5: Remove.
13407 * config/alpha/t-osf-pthread: Remove.
13408 * config.gcc (alpha*-dec-osf5.1*): Set tmake_file to t-slibgcc-dummy.
13409 * mkmap-flat.awk: Handle osf_export for Tru64 UNIX linker -input file.
13411 2011-06-03 Julian Brown <julian@codesourcery.com>
13413 * config/arm/arm-cores.def (strongarm, strongarm110, strongarm1100)
13414 (strongarm1110): Use strongarm tuning.
13415 * config/arm/arm-protos.h (tune_params): Add max_insns_skipped field.
13416 * config/arm/arm.c (arm_strongarm_tune): New.
13417 (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
13418 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a5_tune)
13419 (arm_cortex_a9_tune, arm_fa726te_tune): Add max_insns_skipped field
13420 setting, using previous defaults or 1 for Cortex-A5.
13421 (arm_option_override): Set max_insns_skipped from current tuning.
13423 2011-06-03 Nathan Sidwell <nathan@codesourcery.com>
13425 * doc/install.texi (Options specification): Document --with-specs.
13427 2011-06-02 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
13429 * config/arm/neon.md (orndi3_neon): Actually split it.
13431 2011-06-02 Alexandre Oliva <aoliva@redhat.com>
13433 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): Bump default to 10.
13434 * var-tracking.c (reverse_op): Limite recurse depth to 5.
13436 2011-06-02 Alexandre Oliva <aoliva@redhat.com>
13439 * target.def (delay_sched2, delay_vartrack): New.
13440 * doc/tm.texi.in: Update.
13441 * doc/tm.texi: Rebuild.
13442 * sched-rgn.c (gate_handle_sched2): Fail if delay_sched2.
13443 * var-tracking.c (gate_handle_var_tracking): Likewise.
13444 * config/bfin/bfin.c (bfin_flag_schedule_insns2): Drop.
13445 (bfin_flag_var_tracking): Drop.
13446 (output_file_start): Don't save and override flag_var_tracking.
13447 (bfin_option_override): Ditto flag_schedule_insns_after_reload.
13448 (bfin_reorg): Test original variables.
13449 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
13450 * config/ia64/ia64.c (ia64_flag_schedule_insns2): Drop.
13451 (ia64_flag_var_tracking): Drop.
13452 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
13453 (ia64_file_start): Don't save and override flag_var_tracking.
13454 (ia64_override_options_after_change): Ditto
13455 flag_schedule_insns_after_reload.
13456 (ia64_reorg): Test original variables.
13457 * config/picochip/picochip.c (picochip_flag_schedule_insns2): Drop.
13458 (picochip_flag_var_tracking): Drop.
13459 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
13460 (picochip_option_override): Don't save and override
13461 flag_schedule_insns_after_reload.
13462 (picochip_asm_file_start): Ditto flag_var_tracking.
13463 (picochip_reorg): Test original variables.
13464 * config/spu/spu.c (spu_flag_var_tracking): Drop.
13465 (TARGET_DELAY_VARTRACK): Define.
13466 (spu_var_tracking): New.
13467 (spu_machine_dependent_reorg): Call it.
13468 (asm_file_start): Don't save and override flag_var_tracking.
13470 2011-06-02 Kaz Kojima <kkojima@gcc.gnu.org>
13473 * config/sh/predicates.md (general_movsrc_operand): Return 0
13474 for memory and memory subreg of which address is an invalid
13475 indexed address for QI and HImode.
13476 (general_movdst_operand): Likewise.
13478 2011-06-02 Eric Botcazou <ebotcazou@adacore.com>
13480 * cse.c (cse_find_path): Refine change to exclude EDGE_ABNORMAL_CALL
13481 edges only, when there is a non-local label in the function.
13482 * postreload-gcse.c (bb_has_well_behaved_predecessors): Likewise.
13484 2011-06-02 Uros Bizjak <ubizjak@gmail.com>
13486 * config/i386/constraints.md (Y3): New register constraint.
13487 * config/i386/sse.md (*vec_interleave_highv2df): Merge with
13488 *sse3_interleave_highv2df and *sse2_interleave_highv2df.
13489 (*vec_interleave_lowv2df): Merge with *sse3_interleave_lowv2df and
13490 *sse2_interleave_lowv2df.
13492 2011-06-02 Julian Brown <julian@codesourcery.com>
13494 * config/arm/arm-cores.def (cortex-a5): Use cortex_a5 tuning.
13495 * config/arm/arm.c (arm_cortex_a5_branch_cost): New.
13496 (arm_cortex_a5_tune): New.
13498 2011-06-02 Julian Brown <julian@codesourcery.com>
13500 * config/arm/arm-protos.h (tune_params): Add branch_cost hook.
13501 * config/arm/arm.c (arm_default_branch_cost): New.
13502 (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
13503 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a9_tune)
13504 (arm_fa726_tune): Set branch_cost field using
13505 arm_default_branch_cost.
13506 * config/arm/arm.h (BRANCH_COST): Use branch_cost hook from
13507 current_tune structure.
13508 * dojump.c (tm_p.h): Include file.
13510 2011-06-02 Julian Brown <julian@codesourcery.com>
13512 * config/arm/arm-cores.def (arm1156t2-s, arm1156t2f-s): Use v6t2
13514 (cortex-a5, cortex-a8, cortex-a15, cortex-r4, cortex-r4f, cortex-m4)
13515 (cortex-m3, cortex-m1, cortex-m0): Use cortex tuning.
13516 * config/arm/arm-protos.h (tune_params): Add prefer_constant_pool
13518 * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune)
13519 (arm_xscale_tune, arm_9e_tune, arm_cortex_a9_tune)
13520 (arm_fa726te_tune): Add prefer_constant_pool setting.
13521 (arm_v6t2_tune, arm_cortex_tune): New.
13522 * config/arm/arm.h (TARGET_USE_MOVT): Make dependent on
13523 prefer_constant_pool setting.
13525 2011-06-02 Uros Bizjak <ubizjak@gmail.com>
13527 * config/i386/i386.c (standard_sse_constant_p) <case 1>: Simplify
13529 * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>: Ditto.
13530 (*movdf_internal) <case 6,7,8>: Ditto.
13532 * config/i386/constraints.md (Y4): New register constraint.
13533 * config/i386/sse.md (vec_set<mode>_0): Merge with
13534 *vec_set<mode>_0_sse4_1 and *vec_set<mode>_0_sse2.
13535 (*vec_extractv2di_1): Merge from *vec_extractv2di_1_sse2 and
13536 *vec_extractv2di_1_sse.
13537 (*vec_concatv2di_rex64): Merge from *vec_concatv2di_rex64_sse4_1
13538 and *vec_concatv2di_rex64_sse.
13540 2011-06-02 Stuart Henderson <shenders@gcc.gnu.org>
13543 * config/bfin/bfin.c (bfin_function_ok_for_sibcall): Check return value
13544 of cgraph_local_info for null before attempting to use it.
13546 2011-06-02 Eric Botcazou <ebotcazou@adacore.com>
13548 * function.h (struct stack_usage): Remove dynamic_alloc_count field.
13549 (current_function_dynamic_alloc_count): Delete.
13550 * builtins.c (expand_builtin_setjmp_setup): Do not set calls_setjmp.
13551 (expand_builtin_nonlocal_goto): Remove obsolete comment.
13552 (expand_builtin_update_setjmp_buf): Remove dead code.
13553 * cse.c (cse_find_path): Do not follow a single abnormal incoming edge.
13554 * explow.c (allocate_dynamic_stack_space): Remove SETJMP_VIA_SAVE_AREA
13556 * function.c (instantiate_virtual_regs): Likewise.
13557 * postreload-gcse.c (bb_has_well_behaved_predecessors): Return false
13558 for a block with a single abnormal incoming edge.
13559 * config/sparc/sparc.h (STACK_SAVEAREA_MODE): Define.
13560 (SETJMP_VIA_SAVE_AREA): Delete.
13561 * config/sparc/sparc-protos.h (load_got_register): Declare.
13562 * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Define.
13563 (load_got_register): Make global.
13564 (sparc_frame_pointer_required): Add 'static'.
13565 (sparc_can_eliminate): Likewise. Call sparc_frame_pointer_required.
13566 (sparc_builtin_setjmp_frame_value): New function.
13567 * config/sparc/sparc.md (UNSPECV_SETJMP): Remove.
13568 (save_stack_nonlocal): New expander.
13569 (restore_stack_nonlocal): Likewise.
13570 (nonlocal_goto): Remove modes, adjust predicates and reimplement.
13571 (nonlocal_goto_internal): New insn.
13572 (goto_handler_and_restore): Delete.
13573 (builtin_setjmp_setup): Likewise.
13574 (do_builtin_setjmp_setup): Likewise.
13575 (setjmp): Likewise.
13576 (builtin_setjmp_receiver): New expander.
13578 2011-06-01 David Li <davidxl@google.com>
13580 PR middle-end/49261
13581 * tree-pretty-print.c (dump_function_header): Format cleanup.
13583 2011-06-01 Kaz Kojima <kkojima@gcc.gnu.org>
13586 * config/sh/sh.c (expand_cbranchdi4): Use a scratch register if
13587 needed when original operands are used for msw_skip comparison.
13589 2011-06-01 Jakub Jelinek <jakub@redhat.com>
13592 * var-tracking.c (add_uses, add_stores): Don't call
13593 cselib_subst_to_values on ENTRY_VALUE.
13595 2011-06-01 Diego Novillo <dnovillo@google.com>
13597 * lto-streamer-out.c (lto_output_ts_decl_with_vis_tree_pointers): Call
13598 output_record_start with LTO_null instead of output_zero.
13599 (lto_output_ts_binfo_tree_pointers): Likewise.
13600 (lto_output_tree): Likewise.
13601 (output_eh_try_list): Likewise.
13602 (output_eh_region): Likewise.
13603 (output_eh_lp): Likewise.
13604 (output_eh_regions): Likewise.
13605 (output_bb): Likewise.
13606 (output_function): Likewise.
13607 (output_unreferenced_globals): Likewise.
13608 * lto-streamer.h (enum LTO_tags): Reserve MAX_TREE_CODES
13609 instead of NUM_TREE_CODES.
13610 (lto_tag_is_tree_code_p): Check max value against MAX_TREE_CODES.
13611 (lto_output_int_in_range): Change << to >> when shifting VAL.
13613 2011-06-01 Diego Novillo <dnovillo@google.com>
13615 * lto-streamer-out.c (lto_output_ts_decl_non_common_tree_pointers):
13616 Remove assertion for DECL_SAVED_TREE in FUNCTION_DECL nodes.
13618 2011-06-01 Richard Sandiford <rdsandiford@googlemail.com>
13621 * optabs.h (valid_multiword_target_p): Declare.
13622 * expmed.c (extract_bit_field_1): Check valid_multiword_target_p when
13623 doing multi-word operations.
13624 * optabs.c (expand_binop): Likewise.
13625 (expand_doubleword_bswap): Likewise.
13626 (expand_absneg_bit): Likewise.
13627 (expand_unop): Likewise.
13628 (expand_copysign_bit): Likewise.
13629 (multiword_target_p): New function.
13631 2011-06-01 Richard Sandiford <rdsandiford@googlemail.com>
13633 PR rtl-optimization/48830
13634 PR rtl-optimization/48808
13635 PR rtl-optimization/48792
13636 * reload.c (push_reload): Check contains_reg_of_mode.
13637 * reload1.c (strip_paradoxical_subreg): New function.
13638 (gen_reload_chain_without_interm_reg_p): Use it to handle
13639 paradoxical subregs.
13640 (emit_output_reload_insns, gen_reload): Likewise.
13642 2011-06-01 David Li <davidxl@google.com>
13644 * predict.c : Change pass name
13647 * tree-profile.c: Ditto.
13650 2011-06-01 David Li <davidxl@google.com>
13652 * tree-pretty-print.c (dump_function_header): New function.
13653 * final.c (rest_of_clean_state): Use header dumper.
13654 * tree-cfg.c (gimple_dump_cfg): Use header dumper.
13655 * passes.c (pass_init_dump_file): Use header dumper.
13657 2011-06-01 Jakub Jelinek <jakub@redhat.com>
13659 * dwarf2out.c (compare_loc_descriptor, scompare_loc_descriptor,
13660 ucompare_loc_descriptor, minmax_loc_descriptor, clz_loc_descriptor,
13661 popcount_loc_descriptor, bswap_loc_descriptor, rotate_loc_descriptor):
13663 (mem_loc_descriptor): Use them.
13665 * var-tracking.c (create_entry_value): New function.
13666 (vt_add_function_parameter): Use it.
13668 2011-06-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13670 * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]:
13671 Include <signal.h>, <ucontext.h>.
13672 (sigill_caught): Define.
13673 (sigill_hdlr): New function.
13674 (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Check if SSE
13675 insns can be executed.
13676 * config/sol2.h (ENDFILE_SPEC): Use crtfastmath.o if -ffast-math etc.
13677 * config/sparc/sol2.h (ENDFILE_SPEC): Remove.
13679 2011-06-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13681 * config/t-slibgcc-darwin: Move to ...
13682 * config/t-slibgcc-dummy: ... this. Clarify comments.
13683 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*,
13684 powerpc-*-darwin*, powerpc64-*-darwin*): Reflect this.
13685 (i[3456x]86-*-netware*): Add t-slibgcc-dummy to tmake_file.
13686 (i[34567]86-*-rtems*): Remove extra_parts. Use i386/t-rtems.
13687 Remove i386/t-crtstuff from tmake_file.
13688 (i[34567]86-*-solaris2*): Remove t-svr4,
13689 t-slibgcc-elf-ver, t-slibgcc-sld from tmake_file, add
13691 (sparc-*-elf*, sparc64-*-elf*): Remove tmake_file, extra_parts.
13692 (sparc-*-rtems*, sparc64-*-rtems*): Remove sparc/t-crtin,
13693 sparc/t-crtfm from tmake_file.
13694 (sparc*-*-solaris2*): Remove sparc/t-sol2, sparc/t-crtfm,
13695 t-slibgcc-elf-ver, t-slibgcc-sld, add t-slibgcc-dummy.
13696 Remove extra_parts.
13697 * config/t-sol2 (TARGET_LIBGCC2_CFLAGS): Define.
13698 * config/i386/t-nwld (SHLIB_LINK): Remove.
13699 * config/i386/t-rtems-i386: Rename to ...
13700 * config/i386/t-rtems: ... this.
13701 ($(T)crti.o, $(T)crtn.o): Remove.
13702 (FPBIT, DPBIT, LIB2FUNCS_EXTRA): Remove.
13703 (dp-bit.c, fp-bit.c, xp-bit.c): Remove.
13704 (EXTRA_MULTILIB_PARTS, LIBGCC, INSTALL_LIBGCC): Remove.
13705 * config/i386/t-sol2-10 (LIBGCC, INSTALL_LIBGCC,
13706 EXTRA_MULTILIB_PARTS): Remove.
13707 * config/sparc/t-sol2-64: Likewise.
13708 * config/sparc/t-sol2: Remove.
13709 * config/sparc/t-crtin: Remove.
13710 * config/sparc/gmon-sol2.c: Move to ../libgcc/config.
13711 * config/i386/gmon-sol2.c: Remove.
13712 * config/i386/sol2-c1.asm: Move to ../libgcc/config/i386/sol2-c1.S.
13713 * config/i386/sol2-ci.asm: Move to ../libgcc/config/i386/sol2-ci.S.
13714 * config/i386/sol2-cn.asm: Move to ../libgcc/config/i386/sol2-cn.S.
13715 * config/i386/sol2-gc1.asm: Remove.
13716 * config/sparc/sol2-c1.asm: Move to ../libgcc/config/sparc/sol2-c1.S.
13717 * config/sparc/sol2-ci.asm: Move to ../libgcc/config/sparc/sol2-ci.S.
13718 * config/sparc/sol2-cn.asm: Move to ../libgcc/config/sparc/sol2-cn.S.
13719 * config/t-slibgcc-sld: Remove.
13721 2011-06-01 Jakub Jelinek <jakub@redhat.com>
13723 * dwarf2out.c (mem_loc_descriptor) <do_ucompare>: Call
13724 base_type_for_mode with op_mode instead of mode.
13726 2011-06-01 Paul Brook <paul@cpodesourcery.com>
13728 * config/arm/arm-cores.def: Add cortex-r5. Add DIV flags to
13730 * config/arm/arm-tune.md: Regenerate.
13731 * config/arm/arm-tables.opt: Regenerate.
13732 * config/arm/arm.c (FL_DIV): Rename...
13733 (FL_THUMB_DIV): ... to this.
13734 (FL_ARM_DIV): Define.
13735 (FL_FOR_ARCH7R, FL_FOR_ARCH7M): Use FL_THUMB_DIV.
13736 (arm_arch_hwdiv): Remove.
13737 (arm_arch_thumb_hwdiv, arm_arch_arm_hwdiv): New variables.
13738 (arm_issue_rate): Add cortexr5.
13739 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Set
13740 __ARM_ARCH_EXT_IDIV__.
13741 (TARGET_IDIV): Define.
13742 (arm_arch_hwdiv): Remove.
13743 (arm_arch_arm_hwdiv, arm_arch_thumb_hwdiv): New prototypes.
13744 * config/arm/arm.md (tune_cortexr4): Add cortexr5.
13745 (divsi3, udivsi3): New patterns.
13746 * config/arm/thumb2.md (divsi3, udivsi3): Remove.
13747 * doc/invoke.texi: Document ARM -mcpu=cortex-r5
13749 2011-06-01 Martin Jambor <mjambor@suse.cz>
13751 * ipa-utils.c (ipa_dfs_info): New field scc_no.
13752 * ipa-utils.c (searchc): Set scc_no.
13754 2011-06-01 Martin Jambor <mjambor@suse.cz>
13756 * ipa-utils.c (searchc_env): New field allow_overwritable.
13757 (searchc): do not ignore edges to overwritable nodes if indicated
13758 by env->allow_overwritable.
13759 (ipa_reduced_postorder): Set env.allow_overwritable.
13761 2011-06-01 Richard Guenther <rguenther@suse.de>
13763 * tree.c (free_lang_data): Do not reset boolean_type_node nor
13765 * lto-streamer.c (lto_record_common_node): Take node pointer,
13766 do not register types.
13767 (lto_preload_common_nodes): Explicitly skip preloading nodes
13768 that differ between frontends.
13770 2011-05-31 Pat Haugen <pthaugen@us.ibm.com>
13772 * config/rs6000/rs6000.h (REG_CLASS_CONTENTS): Remove vr0..vr2 from
13775 2011-05-31 Pat Haugen <pthaugen@us.ibm.com>
13777 * config/rs6000/rs6000.c (rs6000_register_move_cost): Preserve from
13778 parameter value for dump. Dump cost on outermost call only.
13779 (rs6000_memory_move_cost): Dump cost on outermost call only.
13781 2011-05-31 Jakub Jelinek <jakub@redhat.com>
13783 * dwarf2out.c (resolve_addr_in_expr): Optimize away redundant
13784 DW_OP_GNU_convert ops.
13786 * cselib.c (promote_debug_loc): Allow l->next non-NULL for
13787 cselib_preserve_constants.
13788 (cselib_lookup_1): If cselib_preserve_constants,
13789 a new VALUE is being created for REG and there is a VALUE for the
13790 same register in wider mode, add another loc with lowpart SUBREG of
13792 (cselib_subst_to_values): Handle ENTRY_VALUE.
13793 * var-tracking.c (replace_expr_with_values): Return NULL for
13795 * dwarf2out.c (convert_descriptor_to_signed): New function.
13796 (mem_loc_descriptor) <case ZERO_EXTEND>: Optimize using DW_OP_and
13797 instead of two shifts.
13798 (mem_loc_descriptor) <do_shift>: ZERO_EXTEND second argument to
13799 the right mode if needed.
13800 (mem_loc_descriptor) <case MOD>: For typed ops just use DW_OP_mod.
13801 (mem_loc_descriptor) <case UNSIGNED_FIX>: Use
13802 convert_descriptor_to_signed.
13803 (mem_loc_descriptor) <case UDIV, CLZ, CTZ, FFS, POPCOUNT, PARITY,
13804 BSWAP, ROTATE, ROTATERT>: Handle these rtls.
13807 * config/i386/i386.md (*lea_general_4): New define_insn_and_split.
13809 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
13811 * config/i386/i386.md: Use SWI248x instead of X87MODEI, SWI24 instead
13812 of X87MODEI12 and SWI48x instead of SSEMODEI24.
13813 (SWI248x): New mode iterator, rename from X87MODEI.
13814 (X87MODEI): Remove mode iterator.
13815 (X87MODEI12): Ditto.
13816 (SSEMODEI24): Ditto.
13818 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
13820 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): New.
13821 * doc/invoke.texi: Document max-vartrack-expr-depth.
13822 * var-tracking.c (EXPR_DEPTH): New.
13823 (reverse_op, vt_expand_loc, vt_expand_loc_dummy): Use it.
13825 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
13827 * config/i386/i386.c (ix86_rtx_costs): Drop NEG from sub for FMA.
13828 * config/i386/sse.md: Add n to negated FMA pattern names.
13830 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
13832 * gcc.c (driver_handle_option): Fix disabling of -fcompare-debug.
13834 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
13836 * gengtype-state.c (read_state_params_structs): Initialize previous.
13838 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
13840 * config/i386/i386.md (*pushxf_nointeger): Merge alternatives 1 and 2.
13841 (FP push_operand splitters): Merge {TF,XF,DF}mode splitters.
13843 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
13845 * config/i386/i386.md (*movtf_internal): Avoid allocating general
13846 registers. Penalize F*r->o alternative to prevent partial memory
13847 stalls. Slightly penalize *roF->*r alternative. Generate SSE
13848 CONST_DOUBLE immediates when optimizing function for size. Do not move
13849 CONST_DOUBLEs directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
13850 (*movxf_internal): Slightly penalize Yx*roF->Yx*r alternative.
13851 (*movdf_internal): Slightly penalize Yd*roF->Yd*r alternative.
13852 (*movdf_internal_rex64): Slightly penalize rm->r, F->m and r->m
13854 (*movsf_internal): Slightly penalize rmF->r and Fr->m alternatives.
13856 (fp_register_operand splitters): Use fp_register_operand
13857 constraint. Do not use FP_REG_P in insn condition.
13858 (any_fp_register_operand splitters): Use any_fp_register_operand
13859 constraint. Do not use ANY_FP_REG_P in insn condition.
13861 2011-05-31 Jan Hubicka <jh@suse.cz>
13863 * cgraph.h (cgraph_inline_failed_t): Give enum a name
13864 * lto-cgraph.c (LDPR_NUM_KNOWN): New macro.
13865 (LTO_cgraph_tags): Add LTO_cgraph_last_tag.
13866 (lto_output_edge): Use output_enum and var_len_unsigned.
13867 (lto_output_varpool_node): Likewise.
13868 (input_overwrite_node): Do not take resolution parameter;
13869 extract it from a bitpack.
13870 (input_node): Do not read resolution; use input_enum and
13872 (input_varpool_node): Likewise.
13873 (input_edge): Likewise.
13874 (input_cgraph_1): Likewise.
13876 2011-05-31 Richard Guenther <rguenther@suse.de>
13878 * gimple.c (gimple_register_canonical_type): Do not register
13879 any types via gimple_register_type.
13881 2011-05-31 Jan Hubicka <jh@suse.cz>
13883 * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Merge alias decl
13886 2011-05-31 Jakub Jelinek <jakub@redhat.com>
13888 PR rtl-optimization/49235
13889 * tree-ssa-address.c (gen_addr_rtx): Ignore base if it is const0_rtx.
13890 (create_mem_ref_raw): Create MEM_REF even if base is INTEGER_CST.
13892 2011-05-31 Ira Rosen <ira.rosen@linaro.org>
13894 PR tree-optimization/49093
13895 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail for volatile
13898 2011-05-31 Dodji Seketeli <dodji@redhat.com>
13901 * dwarf2out.c (gen_subprogram_die): Emit linkage name attribute
13902 for concrete functions containing the code of cloned functions.
13904 2011-05-31 Richard Guenther <rguenther@suse.de>
13906 * tree-ssa-forwprop.c (forward_propagate_into_comparison): Rename
13908 (forward_propagate_into_comparison_1): ... this.
13909 (forward_propagate_comparison): Rename to ...
13910 (forward_propagate_into_comparison): ... this. Split out
13911 real forward propagation code to ...
13912 (forward_propagate_comparison): ... this.
13913 (forward_propagate_into_gimple_cond): Remove looping.
13914 (forward_propagate_into_cond): Likewise.
13915 (simplify_not_neg_expr): Return whether we have done something.
13916 (simplify_gimple_switch): Likewise.
13917 (tree_ssa_forward_propagate_single_use_vars): Rename to ...
13918 (ssa_forward_propagate_and_combine): ... this. Re-structure
13919 to do a forward forward-propagation walk on BBs and a backward
13920 stmt combining walk on BBs. Consistently re-scan changed statements.
13921 (pass_forwprop): Adjust.
13923 2011-05-30 Ian Lance Taylor <iant@google.com>
13925 * godump.c (go_format_type): Correct length of name added to
13926 obstack for anonymous field.
13928 2011-05-30 Kaz Kojima <kkojima@gcc.gnu.org>
13931 * config/sh/sh.c (expand_cbranchdi4): Set msw_skip when the high
13932 part of the second operand is 0.
13934 2011-05-30 Uros Bizjak <ubizjak@gmail.com>
13936 * config/i386/i386.md (*movxf_internal): Penalize FYx*r->o alternative
13937 to prevent partial memory stalls. Do not move CONST_DOUBLEs directly
13938 to memory for !TARGET_MEMORY_MISMATCH_STALL.
13939 (*movdf_internal_rex64): Do not penalize F->r alternative.
13940 (*movdf_internal): Penalize FYd*r->o alternative to prevent partial
13941 memory stalls. Generate SSE and x87 CONST_DOUBLE immediates only
13942 when optimizing function for size. Do not move CONST_DOUBLEs
13943 directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
13944 (FP move splitters): Merge {TF,XF,DF}mode splitters. Do not handle
13945 SUBREGs. Do not check for MEM_P operands in the insn condition,
13946 check for ANY_FP_REGNO_P instead.
13947 * config/i386/constraints.md (Yd): Enable GENERAL_REGS for
13948 TARGET_64BIT and for TARGET_INTEGER_DFMODE_MOVES when optimizing
13949 function for speed.
13950 * config/i386/i386.c (ix86_option_override_internal): Do not
13951 set TARGET_INTEGER_DFMODE_MOVES here.
13953 2011-05-30 H.J. Lu <hongjiu.lu@intel.com>
13956 * config/i386/i386.md (*movtf_internal): Handle misaligned load/store.
13958 2011-05-30 Jakub Jelinek <jakub@redhat.com>
13960 * dwarf2out.c (modified_type_die, gen_reference_type_die): Use
13961 DW_TAG_rvalue_reference_type even for
13962 -gdwarf-4 -fno-debug-types-section.
13964 2011-05-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13966 PR tree-optimization/46728
13967 * tree-ssa-math-opts.c (build_and_insert_call): Reorder parms.
13968 (build_and_insert_binop): New.
13969 (gimple_expand_builtin_pow): Reorder args for
13970 build_and_insert_call; use build_and_insert_binop; add more
13971 optimizations for fractional exponents.
13973 2011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
13978 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
13980 * tree.h (struct tree_identifier): Inherit from tree_typed, not
13982 (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
13983 * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
13984 TS_BASE instead of TS_COMMON.
13985 * varasm.c (assemble_name): Remove assert.
13987 2011-05-30 Richard Sandiford <rdsandiford@googlemail.com>
13989 * config.gcc: Keep obselete list sorted.
13991 2011-05-30 Jakub Jelinek <jakub@redhat.com>
13992 Eric Botcazou <ebotcazou@adacore.com>
13994 * var-tracking.c (vt_add_function_parameter): Remap incoming MEMs with
13995 crtl->args.internal_arg_pointer based address to arg_pointer_rtx if
13996 there is a DRAP register and arg_pointer_rtx is the CFA pointer.
13997 (vt_init_cfa_base): Don't equate cfa_base_rtx if stack was realigned.
13998 (vt_initialize): Initialize cfa_base_rtx if there is a DRAP register.
14000 2011-05-30 Richard Guenther <rguenther@suse.de>
14002 * gimple.c (gimple_types_compatible_p_1): Compare record
14003 and union type members properly.
14005 2011-05-30 Richard Guenther <rguenther@suse.de>
14007 PR tree-optimization/49210
14008 * ipa-split.c (split_function): Care for the case where the call
14009 result is not trivially convertible to the result holding variable.
14011 2011-05-30 Richard Guenther <rguenther@suse.de>
14013 PR tree-optimization/49218
14014 * tree-vrp.c (adjust_range_with_scev): Properly check whether
14017 2011-05-30 Richard Guenther <rguenther@suse.de>
14019 * tree-ssa-forwprop.c (forward_propagate_into_comparison):
14020 New function split out from ...
14021 (forward_propagate_into_gimple_cond): ... here. Adjust.
14022 (forward_propagate_into_cond): Likewise.
14023 (forward_propagate_comparison): Also propagate into
14024 comparisons on assignment RHS. Change return value to
14025 behave similar to forward_propagate_into_cond.
14026 (tree_ssa_forward_propagate_single_use_vars): Handle
14027 strict-overflow warnings properly for forward_propagate_comparison.
14029 2011-05-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14031 * configure.ac (gcc_cv_lto_plugin): Determine lto plugin support
14032 from plugin linker.
14033 * configure: Regenerate.
14035 2011-05-30 Ira Rosen <ira.rosen@linaro.org>
14037 PR tree-optimization/49199
14038 * tree-vect-loop.c (vect_is_slp_reduction): Check that the
14039 non-reduction operands are either defined in the loop or by induction.
14041 2011-05-29 Xinliang David Li <davidxl@google.com>
14043 * opts-global.c (handle_common_deferred_options): Handle new options.
14044 * passes.c (register_one_dump_file): Call register_pass_name.
14045 (execute_one_pass): Check explicit enable/disable flag.
14046 (passr_hash): New function.
14048 (register_pass_name): Ditto.
14049 (get_pass_by_name): Ditto.
14050 (pass_hash): Ditto.
14052 (enable_pass): Ditto.
14053 (disable_pass): Ditto.
14054 (is_pass_explicitly_enabled_or_disabled): Ditto.
14056 2011-05-29 Uros Bizjak <ubizjak@gmail.com>
14058 * config/i386/i386.md (*movoi_internal_avx): Use
14059 standard_sse_constant_opcode for alternative 0.
14060 (*movti_internal_sse): Ditto.
14061 (*movti_internal_rex64): Use standard_sse_constant_opcode for
14063 (*movdi_internal_rex64): Use standard_sse_constant_opcode for
14064 sselog1 type moves.
14065 (*movsi_internal): Ditto.
14066 (*movdi_internal): Ditto. Add ssecvt type moves.
14068 2011-05-29 Eric Botcazou <ebotcazou@adacore.com>
14071 * rtlanal.c (simplify_subreg_regno): Adjust comment.
14073 2011-05-29 Jakub Jelinek <jakub@redhat.com>
14075 PR rtl-optimization/49095
14076 * config/i386/predicates.md (plusminuslogic_operator): New predicate.
14077 * config/i386/i386.md: Add peepholes for mem {+,-,&,|,^}= x; mem != 0.
14079 2011-05-29 Richard Sandiford <rdsandiford@googlemail.com>
14082 * config/mips/mips.c (mips_pic_call_symbol_from_set): Add a
14083 recurse_p argument. Only follow register copies if it is set,
14084 and prevent mips_find_pic_call_symbol from recursing.
14085 (mips_find_pic_call_symbol): Add a recurse_p argument.
14086 Pass it to mips_pic_call_symbol_from_set.
14087 (mips_annotate_pic_calls): Update accordingly.
14089 2011-05-29 Richard Sandiford <rdsandiford@googlemail.com>
14091 * emit-rtl.c (try_split): Use a loop to search for
14092 NOTE_INSN_CALL_ARG_LOCATIONs.
14094 2011-05-29 Richard Guenther <rguenther@suse.de>
14096 PR tree-optimization/49217
14097 * ipa-pure-const.c (propagate_pure_const): Fix typos.
14099 2011-05-28 Jan Hubicka <jh@suse.cz>
14101 * lto-streamer-out.c (hash_string_slot_node): Hash string based on its
14103 (string_slot_free): Remove
14104 (create_output_block): Initialize obstack.
14105 (destroy_output_block): Free obstack.
14106 (lto_string_index): Add PERSISTENT parameter; do not duplicate
14107 the string unless it needs to be added into the hash.
14108 (lto_output_string_with_length): Add persistent attribute;
14109 handle NULL strings.
14110 (lto_output_string): Add PERSISTENT parameter.
14111 (output_string_cst, output_identifier): Simplify.
14112 (lto_output_location_bitpack): Update.
14113 (lto_output_builtin_tree): Update.
14114 * lto-streamer.h (struct output_block): Add obstack.
14115 (lto_output_string, lto_output_string_with_length): Remove
14116 declarations; functions are static now.
14118 2011-05-28 Jan Hubicka <jh@suse.cz>
14120 * lto-streamer-out.c (pack_ts_fixed_cst_value_fields,
14121 pack_ts_decl_common_value_fields, pack_ts_decl_with_vis_value_fields,
14122 pack_ts_function_decl_value_fields, lto_output_builtin_tree,
14123 output_cfg, output_gimple_stmt): Use enum and variable length i/o.
14124 * lto-streamer-in.c (input_cfg, input_gimple_stmt,
14125 unpack_ts_fixed_cst_value_fields, unpack_ts_decl_common_value_fields,
14126 unpack_ts_decl_with_vis_value_fields,
14127 unpack_ts_type_common_value_fields, unpack_ts_block_value_fields,
14128 lto_get_builtin_tree): Use enum and variable length i/o.
14129 * basic-block.h (profile_status_d): Add PROFILE_LAST.
14130 * lto-streamer.h (bp_pack_int_in_range, bp_unpack_int_in_range):
14132 (bp_pack_enum, bp_unpack_enum): New macros.
14134 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
14136 * genrecog.c: Remove redundant forward declarations.
14138 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
14140 * config.gcc: Deprecate mips*-*-openbsd*.
14142 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
14145 * genrecog.c (add_to_sequence): Use XEXP rather than XVECEXP
14148 2011-05-27 Andrew Pinski <pinskia@gmail.com>
14150 PR middle-end/48981
14151 * gengtype.c (vec_prefix_type): New function.
14152 (note_def_vec): Use vec_prefix_type and change the length
14153 attribute to be based on the prefix.
14154 * vec.c: Include coretypes.h before vec.h.
14155 (struct vec_prefix): Remove.
14156 (vec_gc_p_reserve): Change the offsetof to sizeof.
14157 (vec_gc_p_reserve_exact): Likewise.
14158 (vec_heap_p_reserve): Likewise.
14159 (vec_heap_p_reserve_exact): Likewise.
14160 (vec_stack_o_reserve_1): Copy from +1 instead of from vec.
14161 (vec_stack_p_reserve): Change the offsetof to sizeof.
14162 (vec_stack_p_reserve_exact): Likewise.
14163 * vec.h (struct vec_prefix): New struct definition.
14164 (VEC_T(T,B)): Use vec_prefix instead of having num/alloc fields.
14165 (VEC_T_GTY(T,B)): Likewise.
14166 (DEF_VEC_FUNC_P(T)): Use prefix field.
14167 (DEF_VEC_NONALLOC_FUNCS_O(T,A)): Likewise.
14168 (DEF_VEC_NONALLOC_FUNCS_I(T,A)): Likewise.
14170 2011-05-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14172 PR tree-optimization/46728
14173 * tree-ssa-math-opts.c (powi_as_mults_1): Add gimple_set_location.
14174 (powi_as_mults): Add gimple_set_location.
14175 (build_and_insert_call): New.
14176 (gimple_expand_builtin_pow): Add handling for pow(x,y) when y is
14177 0.5, 0.25, 0.75, 1./3., or 1./6.
14179 2011-05-27 Alexander Monakov <amonakov@ispras.ru>
14181 * doc/contrib.texi: Update copyright years.
14182 (Contributors): Add Zdenek Sojka.
14184 2011-05-27 Nathan Froyd <froydnj@codesourcery.com>
14186 * c-decl.c (c_push_function_context): Copy the current statement
14188 (add_stmt): Check building_stmt_list_p and push_stmt if necessary.
14189 (finish_struct): Call building_stmt_list_p instead of checking
14191 * c-parser.c (c_parser_postfix_expression): Likewise.
14192 * c-typeck.c (c_end_compound_stmt): Likewise.
14193 * print-tree.c (print_node) [STATEMENT_LIST]: Don't print TREE_CHAIN.
14194 * tree-iterator.c (stmt_list_cache): Change to a VEC.
14195 (alloc_stmt_list): Adjust for stmt_list_cache's new type.
14196 (free_stmt_list): Likewise.
14197 * tree.h (struct tree_statement_list): Include typed_tree instead
14199 * tree.c (initialize_tree_contains_struct): Mark TS_STATEMENT_LIST
14200 as TS_TYPED instead of TS_COMMON.
14202 2011-05-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14203 Uros Bizjak <ubizjak@gmail.com>
14205 * configure.ac (gcc_cv_as_ix86_tlsgdplt): Check for @tlsgdplt
14206 (HAVE_AS_IX86_TLSGDPTL): Define.
14207 (gcc_cv_as_ix86_tlsldmplt): Check for @tlsldmplt.
14208 (HAVE_AS_IX86_TLSLDMPLT): Define.
14209 * configure: Regenerate.
14210 * config.in: Regenerate.
14211 * config/i386/i386.c (ix86_print_operand): Handle code 'p'.
14212 * config/i386/i386.md (*tls_global_dynamic_32_gnu): If
14213 TARGET_SUN_TLS, use @tlsgdplt or @plt.
14214 (*tls_global_dynamic_64): Use @plt if TARGET_SUN_TLS.
14215 (*tls_local_dynamic_base_32_gnu): If TARGET_SUN_TLS, use
14216 @tlsldmplt or @plt.
14217 (*tls_local_dynamic_base_64): Use @plt if TARGET_SUN_TLS.
14219 2011-05-27 Bernd Schmidt <bernds@codesourcery.com>
14221 * sched-int.h (struct _haifa_deps_insn_data): New members cond
14223 (INSN_COND, INSN_REVERSE_COND): New macros.
14224 * sched-deps.c (deps_analyze_insn): Call sched_get_condition_with_rev
14226 (sched_get_condition_with_rev): Cache the results, and look them up
14228 (sched_analyze_insn): Destroy INSN_COND of previous insns if they
14229 are clobbered by the current insn.
14230 * target.def (exposed_pipline): New sched data hook.
14231 * doc/tm.texi.in: TARGET_SCHED_EXPOSED_PIPELINE: Add hook.
14232 * doc/tm.texi: Regenerate.
14234 2011-05-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14236 PR tree-optimization/49170
14237 * tree-ssa-math-opts.c (execute_cse_sincos): Add checks for
14240 2011-05-27 Richard Guenther <rguenther@suse.de>
14242 PR middle-end/49189
14243 * fold-const.c (fold_unary_loc): Do not re-fold folding conversions
14246 2011-05-27 Bernd Schmidt <bernds@codesourcery.com>
14248 * haifa-sched.c (sched_scan_info): Remove.
14249 (schedule_block): Call sched_extend_luids rather than sched_init_luids
14251 (extend_bb, init_bb, extend_insn, init_insn, init_insns_in_bb):
14253 (sched_scan): Remove.
14254 (sched_extend_luids): Renamed from luids_extend_insn and no longer
14255 static. All callers changed.
14256 (sched_init_insn_luid): Renamed from luids_init_insn and no longer
14257 static. All callers changed.
14258 (sched_init_luids): Remove all arguments except the first. All
14259 callers changed. Don't use sched_scan.
14260 (haifa_init_h_i_d): Likewise.
14261 (haifa_init_insn): Call sched_extend_luids and sched_init_insn_luid
14262 manually rather than using sched_init_luids. Likewise with
14263 extend_h_i_d, init_h_i_d and haifa_init_h_i_d.
14264 * sel-sched.c (sel_region_target_finish): Call sched_extend_luids
14265 rather than sched_init_luids with NULL args.
14266 * sel-sched-ir.c (new_insns): Remove variable.
14267 (sched_scan): New static function, previously in haifa-sched.c. Remove
14268 all arguments but the first two; all callers changed.
14269 (sel_init_new_insn): Call sched_extend_luids and sched_init_insn_luid
14270 rather than sched_init_luids.
14271 (sel_init_bbs): Remove second argument. All callers changed.
14272 (sel_add_bb): Call sched_extend_luids rather than sched_init_luids
14273 with NULL arguments.
14274 (create_insn_rtx_from_pattern): Likewise.
14275 * sel-sched-ir.h (sel_init_bbs): Adjust declaration.
14276 * sched-int.h (sched_init_luids, haifa_init_h_i_d): Likewise.
14277 (sched_init_insn_luid, sched_extend_luids): Declare.
14278 (sched_scan_info_def, sched_scan_info, sched_scan): Remove
14281 2011-05-27 Richard Guenther <rguenther@suse.de>
14283 PR middle-end/49177
14284 * fold-const.c (fold_unary_loc): Fold (T)(A CMP B) to
14285 A CMP B ? (T) true : (T) false for non-integral types T again.
14287 2011-05-27 Jan Hubicka <jh@suse.cz>
14289 * lto-streamer-out.c (lto_string_index): break out from...; offset by 1
14290 so 0 means NULL string.
14291 (lto_output_string_with_length): ... here.
14292 (lto_output_string, output_string_cst, output_identifier): Update
14293 handling of NULL strings.
14294 (lto_output_location_bitpack): New function.
14295 (lto_output_location): Use it.
14296 (lto_output_tree_ref): Use output_record_start.
14297 (pack_ts_type_common_value_fields): Pack aliagn & alias set in var
14299 * lto-streamer-in.c (string_for_index): Break out from ...; offset
14301 (input_string_internal): ... here;
14302 (input_string_cst, input_identifier, lto_input_string): Update handling
14304 (lto_input_location_bitpack): New function
14305 (lto_input_location): Use it.
14306 (unpack_ts_type_common_value_fields): Pack align & alias in var len
14308 * lto-streamer.h (bp_pack_val_len_unsigned, bp_pack_val_len_int,
14309 bp_unpack_val_len_unsigned, bp_unpack_val_len_int): Declare.
14310 (bp_pack_value): Sanity check the value range.
14311 * lto-section-in.c (bp_unpack_val_len_unsigned, bp_unpack_val_len_int):
14313 * lto-section-out.h (bp_pack_val_len_unsigned, bp_pack_val_len_int):
14316 2011-05-27 Hariharan Sandanagobalane <hariharan@picochip.com>
14318 * config/picochip/picochip.c (reorder_var_tracking_notes): Drop
14319 call_arg_location instructions down the floor.
14321 2011-05-26 Vladimir Makarov <vmakarov@redhat.com>
14323 PR rtl-optimization/49154
14324 * ira.c (setup_pressure_classes): Process class without sublcasses
14325 as a candidate for pressure classes.
14327 2011-05-26 Richard Sandiford <rdsandiford@googlemail.com>
14329 PR rtl-optimization/48575
14330 * genrecog.c (position_type): New enum.
14331 (position): New structure.
14332 (decision): Use position structure instead of a string.
14333 (root_pos, peep2_insn_pos_list): New variables.
14334 (next_position, compare_positions): New functions.
14335 (new_decision): Use position structures instead of strings.
14336 (maybe_both_true): Likewise.
14337 (change_state): Likewise.
14338 (write_tree): Likewise.
14339 (make_insn_sequence): Likewise.
14341 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
14343 * tree.c (initialize_tree_contains_struct): Mark TS_BLOCK as
14344 TS_BASE instead of TS_COMMON.
14345 (find_decls_types_r): Check for TS_TYPED structure before looking at
14347 * tree.h (struct tree_block): Inherit from tree_base, not tree_common.
14349 (BLOCK_CHAIN): Use new chain field.
14351 2011-05-26 Pat Haugen <pthaugen@us.ibm.com>
14353 * config/rs6000/rs6000.c (rs6000_register_move_cost): Make LR/CTR
14354 moves expensive on Power7 also.
14356 2011-05-26 Richard Guenther <rguenther@suse.de>
14358 * fold-const.c (fold_unary_loc): Remove bogus code.
14360 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
14362 * tree.h (struct tree_identifier): Inherit from tree_typed, not
14364 (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
14365 * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
14366 TS_BASE instead of TS_COMMON.
14367 * varasm.c (assemble_name): Remove assert.
14369 2011-05-26 Bernd Schmidt <bernds@codesourcery.com>
14371 * Makefile.in (srcdirify): Change order so that libgcc_objdir is
14373 * libgcc-std.ver: Delete file.
14375 2011-05-26 Richard Guenther <rguenther@suse.de>
14377 PR tree-optimization/48702
14378 * tree-ssa-address.c (create_mem_ref_raw): Create MEM_REFs
14379 only when we know the base address is within bounds.
14380 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Do not
14381 assume the base address of TARGET_MEM_REFs is in bounds.
14383 2011-05-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14386 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Wrap
14387 declaration in TARGET_SOLARIS.
14389 2011-05-26 Hariharan Sandanagobalane <hariharan@picochip.com>
14391 * config/picochip/picochip.md (cbranchhi4): No :CC for match_operator.
14392 The instruction is then expanded explicitly.
14393 (supported_compare): Callable instruction.
14394 (compare): Likewise.
14396 2011-05-26 Jakub Jelinek <jakub@redhat.com>
14399 * gimplify.c (shortcut_cond_r): Don't special case
14400 COND_EXPRs if they have void type on one of their arms.
14402 2011-05-26 Bernd Schmidt <bernds@codesourcery.com>
14404 * haifa-sched.c (schedule-block): Reorder the inner scheduling loop
14405 to reduce duplication, and to achieve a slightly more logical order
14408 2011-05-26 Jakub Jelinek <jakub@redhat.com>
14410 PR tree-optimization/49161
14411 * tree-vrp.c (struct case_info): New type.
14412 (compare_case_labels): Sort case_info structs instead of
14413 trees, and not primarily by CASE_LABEL uids but by
14414 label_for_block indexes.
14415 (find_switch_asserts): Put case labels into struct case_info
14416 array instead of TREE_VEC, adjust sorting, compare label_for_block
14417 values instead of CASE_LABELs.
14419 2011-05-26 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
14421 * config/arm/neon.md ("orn<mode>3_neon"): Canonicalize not.
14422 ("orndi3_neon"): Likewise.
14423 ("bic<mode>3_neon"): Likewise.
14425 2011-05-26 Ira Rosen <ira.rosen@linaro.org>
14427 PR tree-optimization/49038
14428 * tree-vect-loop-manip.c (vect_generate_tmps_on_preheader):
14429 Ensure at least one epilogue iteration if required by data
14430 accesses with gaps.
14431 * tree-vectorizer.h (struct _loop_vec_info): Add new field
14432 to mark loops that require peeling for gaps.
14433 * tree-vect-loop.c (new_loop_vec_info): Initialize new field.
14434 (vect_get_known_peeling_cost): Take peeling for gaps into
14436 (vect_transform_loop): Generate epilogue if required by data
14438 * tree-vect-data-refs.c (vect_analyze_group_access): Mark the
14439 loop as requiring an epilogue if there are gaps in the end of
14442 2011-05-25 Ian Lance Taylor <iant@google.com>
14444 * godump.c (go_format_type): Output the first field with a usable
14447 2011-05-25 Ian Lance Taylor <iant@google.com>
14449 * godump.c (go_format_type): Check for invalid type names, pointer
14450 target types, and struct field types.
14452 2011-05-25 Jason Merrill <jason@redhat.com>
14454 * print-tree.c (print_node): Only look at TREE_TYPE if TS_TYPED.
14456 2011-05-25 Uros Bizjak <ubizjak@gmail.com>
14458 * config/i386/sse.md (*<sse>_maskcmp<mode>3_comm): New pattern.
14460 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
14462 * config/i386/i386.md (*movqi_extv_1)): Put back
14463 "register_operand" check in "type" calculation.
14464 (*movqi_extzv_2): Likewise.
14466 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
14468 * doc/extend.texi (X86 Built-in Functions): Update pause intrinsic.
14470 2011-05-25 Bernd Schmidt <bernds@codesourcery.com>
14473 * libgcc2.h (__powisf2, __powidf2, __powitf2, __powixf2,
14474 __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3,
14475 __divxc3, __divtc3): Wrap definitions in #ifndef.
14477 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
14480 * config/i386/i386.md (*movqi_extv_1_rex64): Remove
14481 "register_operand" check and replace q_regs_operand with
14482 QIreg_operand in "type" calculation.
14483 (*movqi_extv_1): Likewise.
14484 (*movqi_extzv_2_rex64): Likewise.
14485 (*movqi_extzv_2): Likewise.
14487 * config/i386/predicates.md (QIreg_operand): New.
14489 2011-05-25 Richard Guenther <rguenther@suse.de>
14491 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
14492 type-based offset disambiguation, streamline MEM_REF and
14493 TARGET_MEM_REF handling.
14495 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
14497 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_PAUSE.
14498 (bdesc_special_args): Add pause intrinsic.
14500 * config/i386/i386.md (UNSPEC_PAUSE): New.
14502 (*pause): Likewise.
14503 * config/i386/ia32intrin.h (__pause): Likewise.
14505 * doc/extend.texi (X86 Built-in Functions): Add documentation for
14508 2011-05-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14510 PR tree-optimization/46728
14511 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): New.
14512 (execute_cse_sincos): Add switch case for BUILT_IN_POW.
14514 2011-05-25 Nathan Froyd <froydnj@codesourcery.com>
14516 * tree.h (struct tree_exp): Inherit from struct tree_typed.
14517 * tree.c (initialize_tree_contains_struct): Mark TS_EXP as TS_TYPED
14518 instead of TS_COMMON.
14520 2011-05-25 Bernd Schmidt <bernds@codesourcery.com>
14522 * libgcc2.h (__NW, __NDW): Define using a __gnu_ prefix if
14523 LIBGCC2_GNU_PREFIX is defined.
14525 (__powisf2, __powidf2, __powitf2, __powixf2, __bswapsi2, __bswapdi2,
14526 __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3, __divxc3,
14527 __divtc3, __udiv_w_sdiv, __clear_cache, __enable_execute_stack,
14528 __clz_tab): Define using __N.
14529 (__absvsi2, __negvsi2, __addvsi3, __subvsi3, __mulvsi3): Likewise if
14530 COMPAT_SIMODE_TRAPPING_ARITHMETIC.
14531 * target.def (libfunc_gnu_prefix): New hook.
14532 * doc/tm.texi.in (LIBGCC2_GNU_PREFIX): Document.
14533 (TARGET_LIBFUNC_GNU_PREFIX): Add hook.
14534 * doc/tm.texi: Regenerate.
14535 * system.h (LIBGCC2_GNU_PREFIX): Poison.
14536 * optabs.c (gen_libfunc): Take the libfunc_gnu_prefix hook into
14538 (gen_interclass_conv_libfunc, gen_intraclass_conv_libfunc): Likewise.
14539 (init_optabs): Likewise for the bswap libfuncs.
14540 * tree.c (build_common_builtin_nodes): Likewise for complex multiply
14542 * config/t-slibgcc-elf-ver (SHLIB_MAPFILES): Use $$(libgcc_objdir).
14543 * config/t-slibgcc-sld (SHLIB_MAPFILES): Likewise.
14544 * libgcc-std.ver: Remove.
14545 * Makefile.in (srcdirify): Handle $$(libgcc_objdir).
14546 * config/frv/t-linux (SHLIB_MAPFILES): Use $$(libgcc_objdir) for
14548 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
14549 * config/mips/t-slibgcc-irix (SHLIB_MAPFILES): Likewise.
14550 * config/rs6000/t-aix43 (SHLIB_MAPFILES): Likewise.
14551 * config/rs6000/t-aix52 (SHLIB_MAPFILES): Likewise.
14552 * config/sparc/t-linux (SHLIB_MAPFILES): Likewise.
14553 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
14554 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
14555 * config/fixed-bit.h (FIXED_OP): Define differently depending on
14556 LIBGCC2_GNU_PREFIX. All uses changed not to pass leading underscores.
14557 (FIXED_CONVERT_OP, FIXED_CONVERT_OP2): Likewise.
14559 2011-05-25 Jan Hubicka <jh@suse.cz>
14561 * lto-streamer-out.c (output_record_start): Use lto_output_enum
14562 (lto_output_tree): Use output_record_start.
14563 * lto-streamer-in.c (input_record_start): Use lto_input_enum
14564 (lto_get_pickled_tree): Use input_record_start.
14565 * lto-section-in.c (lto_section_overrun): Turn into fatal error.
14566 (lto_value_range_error): New function.
14567 * lto-streamer.h (lto_value_range_error): Declare.
14568 (lto_output_int_in_range, lto_input_int_in_range): New functions.
14569 (lto_output_enum, lto_input_enum): New macros.
14571 2011-05-25 Eric Botcazou <ebotcazou@adacore.com>
14573 * common.opt (flag_stack_usage_info): New variable.
14574 (-Wstack-usage): New option.
14575 * doc/invoke.texi (Warning options): Document -Wstack-usage.
14576 * opts.c (common_handle_option) <OPT_Wstack_usage_>: New case.
14577 <OPT_fstack_usage>: Likewise.
14578 * toplev.c (output_stack_usage): Handle -Wstack-usage.
14579 * calls.c (expand_call): Test flag_stack_usage_info variable instead
14580 of flag_stack_usage.
14581 (emit_library_call_value_1): Likewise.
14582 * explow.c (allocate_dynamic_stack_space): Likewise.
14583 * function.c (instantiate_virtual_regs ): Likewise.
14584 (prepare_function_start): Likewise.
14585 (rest_of_handle_thread_prologue_and_epilogue): Likewise.
14586 * config/alpha/alpha.c (alpha_expand_prologue): Likewise.
14587 * config/arm/arm.c (arm_expand_prologue): Likewise.
14588 (thumb1_expand_prologue): Likewise.
14589 * config/avr/avr.c (expand_prologue): Likewise.
14590 * config/i386/i386.c (ix86_expand_prologue): Likewise.
14591 * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
14592 * config/m68k/m68k.c (m68k_expand_prologue): Likewise.
14593 * config/mips/mips.c (mips_expand_prologue): Likewise.
14594 * config/pa/pa.c (hppa_expand_prologue): Likewise.
14595 * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
14596 * config/s390/s390.c (s390_emit_prologue): Likewise.
14597 * config/sh/sh.c (sh_expand_prologue): Likewise.
14598 * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
14599 * config/spu/spu.c (spu_expand_prologue): Likewise.
14601 2011-05-25 Richard Guenther <rguenther@suse.de>
14603 * gimple.c (iterative_hash_canonical_type): Skip non-FIELD_DECLs.
14604 (gimple_canonical_types_compatible_p): Likewise.
14606 2011-05-25 Jan Hubicka <jh@suse.cz>
14608 PR middle-end/49062
14609 * ipa.c (function_and_variable_visibility): Only add to same
14610 comdat group list if DECL_ONE_ONLY.
14612 2011-05-25 Andrey Belevantsev <abel@ispras.ru>
14614 PR rtl-optimization/49014
14615 * config/i386/athlon.md (athlon_ssecomi): Change type to ssecomi.
14617 2011-05-25 Jakub Jelinek <jakub@redhat.com>
14620 * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
14622 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
14624 PR rtl-optimization/48757
14625 * ira-build.c (loop_with_eh_edge_p): Rename to
14626 loop_with_complex_edge_p, check edges on complexity, make function
14628 (mark_loops_for_removal): Make call of loop_with_complex_edge_p
14631 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
14633 * config/sparc/sparc.c (sparc_option_override): If not set by the user,
14634 force flag_ira_share_save_slots to 0.
14636 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
14638 * var-tracking.c (compute_cfa_pointer): Adjust head comment.
14639 (vt_initialize): Set PROLOGUE_BB unconditionally.
14640 Add block comment about CFA_BASE_RTX machinery.
14641 Reset FP_CFA_OFFSET to -1 on all invalid paths.
14642 Call vt_init_cfa_base only if FP_CFA_OFFSET isn't equal to -1.
14644 2011-05-24 Nicola Pero <nicola.pero@meta-innovation.com>
14647 * c-parser.c (c_parser_objc_class_instance_variables): More robust
14648 parsing of syntax error in ObjC instance variable lists. In
14649 particular, avoid an infinite loop if there is a stray ']'.
14650 Updated error message.
14652 2011-05-24 Ian Lance Taylor <iant@google.com>
14654 * godump.c (go_define): Don't accept a string immediately after
14657 2011-05-24 Ian Lance Taylor <iant@google.com>
14659 * godump.c (struct godump_container): Add invalid_hash field.
14660 (go_format_type): Return false if type is found in invalid_hash.
14661 (go_output_typedef): Add invalid type to invalid_hash.
14662 (go_finish): Create and delete invalid_hash.
14664 2011-05-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14666 PR tree-optimization/46728
14667 * tree-ssa-math-opts.c (powi_table): New.
14668 (powi_lookup_cost): New.
14670 (powi_as_mults_1): New.
14671 (powi_as_mults): New.
14672 (gimple_expand_builtin_powi): New.
14673 (execute_cse_sincos): Add switch case for BUILT_IN_POWI.
14674 (gate_cse_sincos): Remove sincos/cexp restriction.
14676 2011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14679 * config.gcc (alpha*-dec-osf5.1*): Only build mips-tfile,
14681 * mips-tfile.c: Remove CROSS_DIRECTORY_STRUCTURE handling.
14682 * mips-tdump.c: Likewise.
14684 2011-05-24 H.J. Lu <hongjiu.lu@intel.com>
14687 * config/i386/driver-i386.c (host_detect_local_cpu): Always
14688 add -mno-XXX. Handle FMA.
14690 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
14692 PR rtl-optimization/48633
14693 * ira-build.c (loop_with_eh_edge_p): New function.
14694 (mark_loops_for_removal): Use it.
14696 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
14698 PR rtl-optimization/48971
14699 * ira.c (setup_pressure_classes): Don't check register move cost
14700 for classes with one registers. Don't add pressure class if there
14701 is a pressure class with the same available hard registers.
14702 Check contains_reg_of_mode. Fix a typo in collecting
14703 temp_hard_regset. Ignore hard registers not belonging to a class.
14705 2011-05-24 Uros Bizjak <ubizjak@gmail.com>
14708 * config/i386/sse.md (sse2_loadhpd): Remove shufpd alternative.
14710 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
14711 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14713 PR gcov-profile/48845
14714 * config/sol2.h (LIB_SPEC): Link TLS support for tree profiling.
14716 2011-05-24 Richard Guenther <rguenther@suse.de>
14718 * gimple.c (compare_type_names_p): Remove for_completion_p arg.
14719 (gimple_compatible_complete_and_incomplete_subtype_p): Remove.
14720 (gimple_types_compatible_p_1): Adjust.
14721 (iterative_hash_canonical_type): Do not bother about complete vs.
14723 (gimple_canonical_types_compatible_p): Likewise.
14725 2011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14727 * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Remove.
14729 2011-05-24 Richard Guenther <rguenther@suse.de>
14732 * gimple.c (gimple_register_canonical_type): Revert
14734 * alias.c (get_alias_set): Only assert that TYPE_CANONICAL
14735 does not for a tree for the case where it matters. Cache
14736 pointer-type alias-sets.
14738 2011-05-24 Joseph Myers <joseph@codesourcery.com>
14740 * Makefile.in (GCC_OBJS): Remove opts-common.o and options.o.
14741 (OBJS): Remove options.o, opts-common.o and prefix.o.
14742 (OBJS-libcommon-target): New.
14743 (ALL_HOST_BACKEND_OBJS): Include $(OBJS-libcommon-target).
14744 (BACKEND): Include libcommon-target.a.
14745 (MOSTLYCLEANFILES): Include libcommon-target.a.
14746 (libcommon-target.a): New.
14747 (xgcc$(exeext), cpp$(exeext)): Use libcommon-target.a instead of
14750 2011-05-23 Joseph Myers <joseph@codesourcery.com>
14752 * optc-save-gen.awk: New. Based on optc-gen.awk. Don't generate
14753 parts of output shared with the driver.
14754 * optc-gen.awk: Don't generate parts of output not shared with the
14756 * opth-gen.awk: Remove GCC_DRIVER conditionals.
14757 * doc/options.texi (SourcerInclude): Mention options-save.c.
14758 * Makefile.in (GCC_OBJS): Use options.o instead of gcc-options.o.
14759 (OBJS): Add options-save.o.
14760 (options-save.c, options-save.o): New.
14761 (options.o): Update dependencies.
14762 (gcc-options.o): Remove.
14763 (mostlyclean): Remove options-save.c.
14765 2011-05-23 Jakub Jelinek <jakub@redhat.com>
14768 * dbxout.c: Include cgraph.h.
14769 (dbxout_expand_expr): If a VAR_DECL is TREE_STATIC, not written
14770 and without value expr, return NULL if no varpool node exists for
14771 it or if it is not needed.
14772 * Makefile.in (dbxout.o): Depend on $(CGRAPH_H).
14775 * c-decl.c (start_decl): Convert expr to void_type_node.
14777 2011-05-23 Richard Sandiford <rdsandiford@googlemail.com>
14779 PR rtl-optimization/48826
14780 * emit-rtl.c (try_split): When splitting a call that is followed
14781 by a NOTE_INSN_CALL_ARG_LOCATION, move the note after the new call.
14783 2011-05-23 Jakub Jelinek <jakub@redhat.com>
14785 * cfgexpand.c (expand_debug_expr): For unused non-addressable
14786 parameters passed in memory prefer using DECL_INCOMING_RTL over
14787 the pseudos it will be copied into.
14789 2011-05-23 H.J. Lu <hongjiu.lu@intel.com>
14792 * config/i386/i386.c (ix86_option_override_internal): Save the
14793 initial options after checking vzeroupper.
14795 2011-05-23 David Li <davidxl@google.com>
14797 PR tree-optimization/48988
14798 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds):
14799 Initialize has_valid_pred for each pred chain.
14801 2011-05-23 Richard Guenther <rguenther@suse.de>
14803 * gimple.c (gimple_types_compatible_p_1): Always compare type names.
14804 (iterative_hash_gimple_type): Always hash type names.
14806 2011-05-23 Nathan Froyd <froydnj@codesourcery.com>
14808 * c-typeck.c (build_function_call_vec): Tweak call to
14809 check_function_arguments.
14811 2011-05-23 Richard Guenther <rguenther@suse.de>
14813 PR tree-optimization/49115
14814 * tree-ssa-alias.c (stmt_kills_ref_p_1): If the assignment
14815 is not necessarily carried out, do not claim it kills the ref.
14816 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
14818 2011-05-23 Richard Guenther <rguenther@suse.de>
14820 PR middle-end/15419
14821 * builtins.c (fold_builtin_memory_op): Be less restrictive about
14822 what pointer types we accept for folding.
14824 2011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14826 * gthr-gnat.c: Remove.
14827 * gthr-gnat.h: Remove.
14828 * Makefile.in (LIB2ADDEH): Remove $(srcdir)/gthr-gnat.c.
14829 * config/t-freebsd (LIB2ADDEH): Likewise.
14830 * config/t-linux (LIB2ADDEH): Likewise.
14831 * config/t-sol2 (LIB2ADDEH): Likewise.
14832 * config/ia64/t-vms (LIB2ADDEH): Likewise.
14833 * configure.ac (target_thread_file): Remove gnat handling.
14834 * configure: Regenerate.
14835 * doc/install.texi (Configuration, --enable-threads): Remove gnat.
14837 2011-05-23 Tristan Gingold <gingold@adacore.com>
14838 Eric Botcazou <ebotcazou@adacore.com>
14840 * gcov.c (create_file_names): If no object directory is specified,
14841 keep the directory of the file.
14843 2011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14845 * configure.ac (enable_threads): Remove irix; add lynx, tpf; sort list.
14846 * configure: Regenerate.
14848 2011-05-23 Jakub Jelinek <jakub@redhat.com>
14850 PR middle-end/48973
14851 * expr.c (expand_expr_real_2) <case LT_EXPR>: If do_store_flag
14852 failed and the comparison has a single bit signed type, use
14853 constm1_rtx instead of const1_rtx for true value.
14854 (do_store_flag): If ops->type is single bit signed type, disable
14855 signel bit test optimization and pass -1 instead of 1 as last
14856 parameter to emit_store_flag_force.
14858 2011-05-23 Tom de Vries <tom@codesourcery.com>
14861 * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith): New
14863 (infer_loop_bounds_from_undefined): Use new function.
14865 2011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
14867 * config/mips/mips.h (SUBTARGET_ASM_OPTIMIZING_SPEC): Delete.
14868 (ASM_SPEC): Add a -O* option here. Pass -O0 for -noasmopt,
14869 -O1 for -fno-delayed-branch, -O2 if optimization is enabled,
14871 (EXTRA_SPECS): Remove subtarget_asm_optimizing_spec.
14873 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
14875 * cfgcleanup.c (try_forward_edges): Do not update BB_FORWARDER_BLOCK.
14876 (try_optimize_cfg): Update BB_FORWARDER_BLOCK if try_forward_edges
14879 2011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
14881 * config/mips/mips.c (mips_default_arch): Honor MIPS_ISA_DEFAULT.
14883 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
14885 * config/sparc/sparc.c (sparc_delegitimize_address): Handle
14886 UNSPEC_MOVE_PIC pattern.
14888 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
14890 * config.gcc (sparc-*-elf*): Add sparc/t-crtin.
14891 (sparc-*-rtems*): Likewise.
14892 (sparc64-*-elf*): Likewise.
14893 (sparc64-*-rtems*): Likewise.
14894 (sparc*-*-solaris2*): Likewise. Remove crti.o crtn.o extra parts.
14895 * config/sparc/t-crtin: New file.
14896 * config/sparc/t-sol2 (crti.o): Delete rule.
14897 (crtn.o): Likewise.
14898 * config/sparc/t-linux64 (EXTRA_MULTILIB_PARTS): Delete.
14899 * config/sparc/t-sol2-64 (EXTRA_MULTILIB_PARTS): Likewise.
14900 * config/sparc/sp64-elf.h (STARTFILE_SPEC): Tidy and add crti.o.
14901 (ENDFILE_SPEC): Add crtn.o.
14903 2011-05-22 Tom de Vries <tom@codesourcery.com>
14905 PR middle-end/48689
14906 * fold-const.c (fold_checksum_tree): Guard TREE_CHAIN use with
14907 CODE_CONTAINS_STRUCT (TS_COMMON).
14909 2011-05-22 Jakub Jelinek <jakub@redhat.com>
14911 PR middle-end/49029
14912 * expmed.c (extract_fixed_bit_field): Test whether target can be used
14913 only after deciding which mode to use.
14915 2011-05-22 Tom de Vries <tom@codesourcery.com>
14918 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Fix const test
14919 for call to get_shiftadd_cost.
14921 2011-05-22 Uros Bizjak <ubizjak@gmail.com>
14924 * config/i386/cpuid.h (bit_MMXEXT): New define.
14926 2011-05-22 Nick Clifton <nickc@redhat.com>
14928 * config/stormy16/stormy16.c (xstormy16_init_builtins): prevent
14929 initialisation of non-existant args[2] element. Use args[] array
14930 not arg[] array to pass arguments to build_function_type_list.
14932 2011-05-22 Ira Rosen <ira.rosen@linaro.org>
14934 PR tree-optimization/49087
14935 * tree-vect-loop.c (vect_is_slp_reduction): Fail if LHS has no uses.
14937 2011-05-21 Jason Merrill <jason@redhat.com>
14940 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Check for
14941 static storage duration.
14943 2011-05-21 Eric Botcazou <ebotcazou@adacore.com>
14945 * config/sparc/sparc.md (setjmp): Handle PIC mode and use the hard
14948 2011-05-21 Eric Botcazou <ebotcazou@adacore.com>
14950 * config/sparc/sparc.c (eligible_for_return_delay): Do not return
14951 false if there are call-saved registers here...
14952 (sparc_can_use_return_insn_p): ...but here instead.
14953 (save_or_restore_regs): Fix thinko.
14954 (sparc_expand_prologue): Use current_function_is_leaf.
14955 (sparc_frame_pointer_required): Likewise.
14957 2011-05-21 Nick Clifton <nickc@redhat.com>
14960 * config/rx/rx.c (rx_memory_move_cost): Note unused parameters.
14962 2011-05-21 Nicola Pero <nicola.pero@meta-innovation.com>
14964 * gengtype.c (walk_type): Implemented "atomic" GTY option.
14965 * doc/gty.texi (GTY Options): Document "atomic" GTY option.
14967 2011-05-21 Joseph Myers <joseph@codesourcery.com>
14969 * opt-read.awk: New. Split out of optc-gen.awk and opth-gen.awk.
14970 * optc-gen.awk: Move common code to opt-read.awk.
14971 * opth-gen.awk: Likewise.
14972 * Makefile.in (options.c, s-options-h): Update to use opt-read.awk.
14974 2011-05-20 Nathan Froyd <froydnj@codesourcery.com>
14976 * godump.c (go_format_type): Don't use TYPE_ARG_TYPES.
14978 2011-05-20 Tom de Vries <tom@codesourcery.com>
14981 * tree-ssa-loop-ivopts.c: Include expmed.h.
14982 (get_shiftadd_cost): New function.
14983 (force_expr_to_var_cost): Declare forward. Use get_shiftadd_cost.
14985 2011-05-20 Jakub Jelinek <jakub@redhat.com>
14988 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL
14989 for PHI args that are SSA_NAME_IS_DEFAULT_DEF.
14991 2011-05-20 Joseph Myers <joseph@codesourcery.com>
14993 * Makefile.in: Update comment referring to $(OBJS-common).
14995 2011-05-20 Ian Lance Taylor <iant@google.com>
14997 * godump.c (go_output_typedef): Put enum constants in the macro
14998 hash table to avoid duplicate Go const definitions.
15000 2011-05-20 Joseph Myers <joseph@codesourcery.com>
15002 * Makefile.in (LIBDEPS): Add libcommon.a.
15004 (GCC_OBJS): Remove diagnostic.o, pretty-print.o and input.o.
15005 (OBJS-common): Remove diagnostic.o, input.o, intl.o,
15006 pretty-print.o and version.o.
15007 (OBJS-libcommon): New.
15008 (ALL_HOST_BACKEND_OBJS): Add $(OBJS-libcommon).
15009 (BACKEND): Add libcommon.a.
15010 (MOSTLYCLEANFILES): Likewise.
15011 (libcommon.a): New.
15012 (xgcc$(exeext)): Don't explicitly use version.o and intl.o.
15013 (cpp$(exeext)): Likewise.
15014 (COLLECT2_OBJS): Remove intl.o, version.o, diagnostic.o,
15015 pretty-print.o and input.o.
15016 (lto-wrapper$(exeext)): Don't explicitly use intl.o.
15017 (lto-wrapper.o): Depend on $(DIAGNOSTIC_H).
15018 (errors.o): Remove.
15019 (mips-tfile): Don't explicitly use version.o.
15020 (mips-tdump): Likewise.
15021 (gcov.o): Depend on $(DIAGNOSTIC_H).
15022 (gcov-dump.o): Depend on intl.h and $(DIAGNOSTIC_H).
15023 (GCOV_OBJS): Remove intl.o, version.o and errors.o.
15024 (GCOV_DUMP_OBJS): Remove version.o and errors.o.
15025 * gcov-dump.c: Include intl.h and diagnostic.h.
15026 (main): Initialize diagnostics.
15027 * gcov.c: Include diagnostic.h.
15029 (main): Initialize diagnostics.
15030 * lto-wrapper.c: Include diagnostic.h.
15031 (main): Initialize diagnostics.
15033 2011-05-20 Michael Matz <matz@suse.de>
15035 * Makefile.in (OBJS-common, OBJS-md, OBJS-archive): Merge into OBJS.
15037 2011-05-20 Michael Matz <matz@suse.de>
15038 Richard Guenther <rguenther@suse.de>
15040 * lto-streamer.c (lto_record_common_node): Don't track seen nodes,
15041 use lto_streamer_cache_append directly instead of returning a VEC.
15042 (preload_common_node): Remove.
15043 (lto_get_common_nodes): Rename to lto_preload_common_nodes, don't
15045 (lto_streamer_cache_create): Call lto_preload_common_nodes.
15047 2011-05-20 Richard Guenther <rguenther@suse.de>
15049 PR tree-optimization/49079
15050 * tree-dfa.c (get_ref_base_and_extent): Handle view-converting
15051 MEM_REFs correctly for the trailing array access detection.
15052 Special case constants the same way as decls for overall size
15055 2011-05-20 Uros Bizjak <ubizjak@gmail.com>
15057 * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Fix macro
15058 argument expansion.
15060 2011-05-20 Jakub Jelinek <jakub@redhat.com>
15062 PR tree-optimization/49073
15063 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL if
15064 PHI argument is SSA_NAME, whose def_stmt is dominated by the PHI.
15065 * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Calculate dominators.
15067 2011-05-20 Richard Guenther <rguenther@suse.de>
15069 PR middle-end/48849
15070 * gimple.c (gimple_register_canonical_type): Compute TYPE_CANONICAL
15071 of pointer types the same way the middle-end does.
15073 2011-05-20 Richard Guenther <rguenther@suse.de>
15075 * gimple.c (gimple_register_type_1): Do not fiddle with main-variant
15076 or pointer-to chains. Delay all fixup to uniquify_nodes.
15078 2011-05-19 Quentin Neill <quentin.neill@amd.com>
15080 * config/i386/sse.md (fma4_fmsubadd): Use <ssemodesuffix>.
15081 (fma4_fmaddsub): Likewise
15083 2011-05-19 Jan Hubicka <jh@suse.cz>
15085 * gimple.c (gtc_visited, gtc_ob, type_pair_hash, type_pair_eq): Remove.
15086 (GIMPLE_TYPE_PAIR_SIZE): New macro.
15087 (type_pair_cache): New static var.
15088 (lookup_type_pair): Use fixed sized custom hash; make inline.
15089 (gtc_visit, gimple_types_compatible_p, gimple_register_type_1): Update
15090 calls of lookup_type_pair.
15091 (print_gimple_types_stats): Remove cache stats.
15092 (free_gimple_type_tables): Free type_pair_cache instead of gtc_visited
15095 2011-05-19 Uros Bizjak <ubizjak@gmail.com>
15097 * config/i386/i386.c (option_override_internal): Enable TARGET_CMOVE
15098 when TARGET_RDRND is active.
15099 (ix86_expand_builtin) <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>:
15100 Generate dummy SImode target register when target is NULL.
15102 2011-05-19 Joseph Myers <joseph@codesourcery.com>
15104 * config/arm/arm-fpus.def: New.
15105 * config/arm/genopt.sh: Generate Enum and EnumValue entries from
15107 * config/arm/arm-tables.opt: Regenerate.
15108 * config/arm/arm.c (all_fpus): Move contents to arm-fpus.def.
15109 (arm_option_override): Don't decode FPU name to string here.
15110 * config/arm/arm.opt (mfpu=): Use Enum.
15111 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt, arm.o):
15112 Update dependencies.
15114 2011-05-19 Joseph Myers <joseph@codesourcery.com>
15116 * collect2.c: Include diagnostic.h.
15117 (fatal_perror, fatal, error, fancy_abort): Remove.
15118 (main): Set progname. Call xmalloc_set_program_name and
15119 diagnostic_initialize.
15120 (maybe_run_lto_and_relink, main, collect_execute, scan_prog_file,
15121 scan_libraries, resolve_lib_name): Call fatal_error instead of
15122 fatal and fatal_perror.
15123 * collect2.h (error, fatal, fatal_perror): Don't declare.
15124 * tlink.c: Include diagnostic-core.h.
15125 (recompile_files): Call fatal_error instead of fatal_perror.
15126 * Makefile.in (COLLECT2_OBJS): Include diagnostic.o,
15127 pretty-print.o and input.o.
15128 (collect2.o, tlink.o): Update dependencies.
15130 2011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15132 * config/i386/i386.md (tls_initial_exec_64_sun): Add semicolon.
15134 2011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15137 * configure.ac (gcc_cv_as_comdat_group_group): Check for Sun as
15138 COMDAT group syntax, both SPARC and x86 variants.
15139 (HAVE_COMDAT_GROUP): Also define if gcc_cv_as_comdat_group_group.
15140 * configure: Regenerate.
15141 * config/sol2.h (TARGET_SOLARIS): Define.
15142 (PUSHSECTION_FORMAT): Remove.
15143 (SECTION_NAME_FORMAT): Define.
15144 * config/sol2.c: Include hashtab.h.
15145 (solaris_output_init_fini): Replace PUSHSECTION_FORMAT by its
15146 expansion, using SECTION_NAME_FORMAT.
15147 (solaris_comdat_htab): New variable.
15148 (struct comdat_entry): Define.
15149 (comdat_hash): New function.
15150 (comdat_eq): New function.
15151 (solaris_elf_asm_comdat_section): New function.
15152 (solaris_define_comdat_signature): New function.
15153 (solaris_code_end): New function.
15154 * config/sol2-protos.h (solaris_elf_asm_comdat_section): Declare.
15155 (solaris_code_end): Declare.
15156 * config/t-sol2 (sol2.o): Add $HASHTAB_H dependency.
15157 * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Call
15159 (i386_solaris_elf_named_section): Wrap in TARGET_SOLARIS.
15160 Remove ATTRIBUTE_UNUSED.
15161 [!USE_GAS]: Call solaris_elf_asm_comdat_section for
15162 SECTION_LINKONCE sections if HAVE_COMDAT_GROUP.
15163 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Likewise.
15164 * config/i386/sol2-10.h (TARGET_ASM_NAMED_SECTION): Moved ...
15165 * config/i386/sol2.h (TARGET_ASM_NAMED_SECTION): ... here.
15166 * config/sparc/sol2.h (TARGET_ASM_CODE_END): Redefine.
15167 (PUSHSECTION_FORMAT): Remove.
15168 (SECTION_NAME_FORMAT): Redefine.
15170 2011-05-19 Kai Tietz <ktietz@redhat.com>
15172 * tree-cfg.c (verify_gimple_assign_binary): Barf on
15173 TRUTH_AND_EXPR, TRUTH_OR_EXPR, and TRUTH_XOR_EXPR.
15174 (gimplify_expr): Move TRUTH_AND|OR|XOR_EXPR to its binary form.
15176 2011-05-19 Anatoly Sokolov <aesok@post.ru>
15177 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15179 * config/t-sol2 (sol2.o): Add $(TARGET_H) dependency.
15181 2011-05-19 Richard Guenther <rguenther@suse.de>
15183 PR middle-end/48985
15184 * tree-object-size.c (addr_object_size): If the pointed-to
15185 variable is a decl use DECL_SIZE_UNIT instead of TYPE_SIZE_UNIT.
15187 2011-05-19 Richard Guenther <rguenther@suse.de>
15189 * gimple.c (gimple_types_compatible_p_1): Compare names of
15190 the types themselves.
15191 (iterative_hash_gimple_type): And hash them that way.
15192 (gimple_register_type_1): If we register a main variant properly
15193 initialize the leader to ourselves.
15195 2011-05-19 Tom de Vries <tom@codesourcery.com>
15198 * tree-ssa-loop-ivopts.c (get_expr_id): Factored new function out of
15199 get_loop_invariant_expr_id.
15200 (get_loop_invariant_expr_id): Use get_expr_id.
15201 (parm_decl_cost): New function.
15202 (determine_use_iv_cost_condition): Use get_expr_id and parm_decl_cost.
15203 Improve bound cost estimation. Use different inv_expr_id for elim and
15206 2011-05-19 Tom de Vries <tom@codesourcery.com>
15209 * tree-ssa-loop-ivopts.c (determine_iv_cost): Prevent
15210 cost_base.cost == 0.
15212 2011-05-18 H.J. Lu <hongjiu.lu@intel.com>
15215 * config/i386/sse.md
15216 (avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>): Properly handle
15219 2011-05-18 Jakub Jelinek <jakub@redhat.com>
15221 PR tree-optimization/49039
15222 * tree-vrp.c (extract_range_from_binary_expr): For
15223 MIN_EXPR <~[a, b], ~[c, d]> and MAX_EXPR <~[a, b], ~[c, d]>
15224 return ~[MAX_EXPR <a, c>, MIN_EXPR <b, d>].
15226 2011-05-18 Tom de Vries <tom@codesourcery.com>
15229 * tree-ssa-loop-ivopts.c (computation_cost): Prevent cost of 0.
15231 2011-05-18 Uros Bizjak <ubizjak@gmail.com>
15233 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Split asm template.
15234 (*tls_global_dynamic_64): Ditto.
15235 (*tls_local_dynamic_base_32_gnu): Ditto.
15236 (*tls_local_dynamic_base_64): Ditto.
15237 (tls_initial_exec_64_sun): Ditto.
15239 2011-05-18 Stuart Henderson <shenders@gcc.gnu.org>
15241 * doc/invoke.texi (Blackfin Options): -mcpu accepts bf592.
15242 * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
15244 * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
15245 * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
15246 * config/bfin/bfin.c (bfin_cpus): Add bf592.
15247 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
15248 __ADSPBF592__ and __ADSPBF59x__ for BFIN_CPU_BF592.
15249 * config/bfin/bfin-opts.h (bfin_cpu_type): Add BFIN_CPU_BF592.
15250 * config/bfin/elf.h (LIB_SPEC): Add bf592.
15252 2011-05-18 Joseph Myers <joseph@codesourcery.com>
15254 * config/arm/arm-opts.h (enum arm_fp16_format_type, enum
15255 arm_abi_type, enum float_abi_type, enum arm_tp_type): Move from arm.h.
15256 * config/arm/arm.c (arm_float_abi, arm_fp16_format, arm_abi,
15257 target_thread_pointer, arm_structure_size_boundary, struct
15258 float_abi, all_float_abis, struct fp16_format, all_fp16_formats,
15259 struct abi_name, arm_all_abis): Remove.
15260 (arm_option_override) Don't process most enumerated option values here.
15261 Don't process target_fpe_name here. Work with integer not string for
15262 structure size boundary; use separate diagnostics for each case.
15263 * config/arm/arm.h (enum float_abi_type, enum
15264 arm_fp16_format_type, enum arm_abi_type, enum arm_tp_type): Move
15266 (arm_float_abi, arm_fp16_format, arm_abi, target_thread_pointer,
15267 arm_structure_size_boundary): Remove.
15268 * config/arm/arm.opt (mabi=): Use Enum and Init.
15269 (arm_abi_type): New Enum and EnumValue entries.
15270 (mfloat-abi=): Use Enum and Init.
15271 (float_abi_type): New Enum and EnumValue entries.
15272 (mfp=, mfpe=): Replace by separate Alias entries for each argument.
15273 (mfp16-format=): Use Enum and Init.
15274 (arm_fp16_format_type): New Enum and EnumValue entries.
15275 (mstructure-size-boundary=): Use UInteger and Init.
15276 (mtp=): Use Enum and Init.
15277 (arm_tp_type): New Enum and EnumValue entries.
15279 2011-05-18 Richard Guenther <rguenther@suse.de>
15281 PR tree-optimization/49018
15282 * gimple.c (gimple_has_side_effects): Volatile asms have side-effects.
15283 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Use
15284 gimple_has_side_effects.
15286 2011-05-18 Richard Guenther <rguenther@suse.de>
15288 * gimple.c (gimple_register_type_1): New function, split out from ...
15289 (gimple_register_type): ... here. Avoid infinite recursion.
15291 2011-05-18 Ira Rosen <ira.rosen@linaro.org>
15293 PR tree-optimization/41881
15294 * tree-vectorizer.h (struct _loop_vec_info): Add new field
15295 reduction_chains along with a macro for its access.
15296 * tree-vect-loop.c (new_loop_vec_info): Initialize reduction chains.
15297 (destroy_loop_vec_info): Free reduction chains.
15298 (vect_analyze_loop_2): Return false if vect_analyze_slp() returns false.
15299 (vect_is_slp_reduction): New function.
15300 (vect_is_simple_reduction_1): Call vect_is_slp_reduction.
15301 (vect_create_epilog_for_reduction): Support SLP reduction chains.
15302 * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow different
15303 definition types for reduction chains.
15304 (vect_supported_load_permutation_p): Don't allow permutations for
15306 (vect_analyze_slp_instance): Support reduction chains.
15307 (vect_analyze_slp): Try to build SLP instance from reduction chains.
15308 (vect_get_constant_vectors): Handle reduction chains.
15309 (vect_schedule_slp_instance): Mark the first statement of the
15310 reduction chain as reduction.
15312 2011-05-18 Ira Rosen <ira.rosen@linaro.org>
15314 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Use new
15315 names for group elements access.
15316 * tree-vectorizer.h (struct _stmt_vec_info): Use interleaving info for
15317 reduction chains as well. Remove data reference and interleaving
15318 related words from the fields names.
15319 * tree-vect-loop.c (vect_transform_loop): Use new names for group
15321 * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain,
15322 vect_insert_into_interleaving_chain, vect_update_interleaving_chain,
15323 vect_update_interleaving_chain, vect_same_range_drs,
15324 vect_analyze_data_ref_dependence, vect_update_misalignment_for_peel,
15325 vect_verify_datarefs_alignment, vector_alignment_reachable_p,
15326 vect_peeling_hash_get_lowest_cost, vect_enhance_data_refs_alignment,
15327 vect_analyze_group_access, vect_analyze_data_ref_access,
15328 vect_create_data_ref_ptr, vect_transform_strided_load,
15329 vect_record_strided_load_vectors): Likewise.
15330 * tree-vect-stmts.c (vect_model_simple_cost, vect_model_store_cost,
15331 vect_model_load_cost, vectorizable_store, vectorizable_load,
15332 vect_remove_stores, new_stmt_vec_info): Likewise.
15333 * tree-vect-slp.c (vect_build_slp_tree,
15334 vect_supported_slp_permutation_p, vect_analyze_slp_instance): Likewise.
15336 2011-05-18 Richard Guenther <rguenther@suse.de>
15338 PR middle-end/48989
15339 * tree-cfg.c (verify_gimple_assign_unary): Adjust TRUTH op
15340 operand verification.
15341 (verify_gimple_assign_binary): Likewise.
15342 * tree-ssa.c (useless_type_conversion_p): Preserve conversions
15343 to non-1-precision BOOLEAN_TYPEs.
15345 2011-05-18 Tom de Vries <tom@codesourcery.com>
15348 * tree-ssa-loop-ivopts.c (seq_cost): Fix call to rtx_cost.
15350 2011-05-18 Jakub Jelinek <jakub@redhat.com>
15352 PR tree-optimization/49000
15353 * tree-ssa.c (execute_update_addresses_taken): Call
15354 maybe_rewrite_mem_ref_base on debug stmt value. If it couldn't
15355 be rewritten and decl has been marked for renaming, reset
15358 2011-05-17 Joseph Myers <joseph@codesourcery.com>
15360 * config/i386/i386.c (ix86_valid_target_attribute_tree): Use
15361 enum_opts_set when testing if attributes have set -mfpmath=.
15363 2011-05-17 Richard Sandiford <rdsandiford@googlemail.com>
15365 * config/mips/mips.c (mips_handle_option): Remove unused variable.
15367 2011-05-17 Uros Bizjak <ubizjak@gmail.com>
15369 * ipa-inline-analysis.c (inline_node_duplication_hook): Initialize
15371 * tree-inline.c (maybe_inline_call_in_expr): Initialize
15372 id.transform_lang_insert_block with NULL.
15374 2011-05-17 Uros Bizjak <ubizjak@gmail.com>
15376 * config/i386/i386-protos.h (output_fix_trunc): Change arg 3 to bool.
15377 (output_fp_compare): Change args 3 and 4 to bool.
15378 (ix86_expand_call): Change arg 6 to bool.
15379 (ix86_attr_length_immediate_default): Change arg 2 to bool.
15380 (ix86_attr_length_vex_default): Change arg 3 to bool.
15381 * config/i386/i386.md: Update all uses.
15382 * config/i386/i386.c: Ditto.
15383 (ix86_flags_dependent): Change return type to bool.
15385 2011-05-17 Richard Guenther <rguenther@suse.de>
15387 * gimple.c (type_hash_pair_compare): Fix comparison.
15389 2011-05-17 Richard Guenther <rguenther@suse.de>
15391 * gimple.c (iterative_hash_gimple_type): Simplify singleton
15392 case some more, fix final hash value of the non-singleton case.
15394 2011-05-17 Richard Guenther <rguenther@suse.de>
15398 2011-05-16 Richard Guenther <rguenther@suse.de>
15400 * gimple.c (gimple_types_compatible_p_1): Use names of the
15401 type itself, not its main variant.
15402 (iterative_hash_gimple_type): Likewise.
15404 2011-05-17 Richard Guenther <rguenther@suse.de>
15406 * gimple.c (gimple_register_canonical_type): Use the main-variant
15407 leader for computing the canonical type.
15409 2011-05-17 Nick Clifton <nickc@redhat.com>
15411 * config/rx/rx.c (rx_memory_move_cost): Include cost of register
15414 * config/rx/rx.md: Add peephole to remove redundant extensions
15416 (bitset_in_memory): Use rx_restricted_mem_operand.
15417 (bitinvert_in_memory): Likewise.
15418 (bitclr_in_memory): Likewise.
15420 2011-05-17 Kazuhio Inaoka <kazuhiro.inaoka.ud@renesas.com>
15421 Nick Clifton <nickc@redhat.com>
15423 * config/rx/rx.md: Add peepholes to match a register move followed
15424 by a comparison of the moved register. Replace these with an
15425 addition of zero that does both actions in one instruction.
15427 2011-05-17 Jakub Jelinek <jakub@redhat.com>
15430 * config/i386/sync.md (sync_old_add<mode>): Relax operand 2
15431 predicate to allow CONST_INT.
15432 (*sync_old_add_cmp<mode>): New insn and peephole2 for it.
15434 2011-05-16 Joseph Myers <joseph@codesourcery.com>
15436 * opts-common.c (opt_enum_arg_to_value): New.
15437 * opts.h (opt_enum_arg_to_value): Declare.
15438 * config/i386/i386.opt (fpmath): Remove.
15439 (mfpmath=): Use Enum, Init and Save.
15440 (fpmath_unit): New Enum and EnumValue entries.
15441 * config/i386/i386-c.c (ix86_pragma_target_parse): Update field
15442 name for function fpmath state.
15443 * config/i386/i386-opts.h (enum fpmath_unit): Move from i386.h.
15444 * config/i386/i386.c: Include diagnostic.h.
15445 (ix86_fpmath, IX86_FUNCTION_SPECIFIC_FPMATH): Remove.
15446 (ix86_target_string): Take enum fpmath_unit value instead of string.
15447 (ix86_debug_options): Update call to ix86_target_string.
15448 (ix86_option_override_internal): Don't process fpmath strings here.
15449 (x86_function_specific_save, ix86_function_specific_restore):
15450 Don't handle fpmath state specially.
15451 (ix86_function_specific_print): Pass fpmath state to
15452 ix86_target_string instead of printing in this function.
15453 (ix86_valid_target_attribute_inner_p): Take gcc_options pointer.
15454 Handle enum attributes.
15455 (IX86_ATTR_ENUM, ix86_opt_enum): New.
15456 (ix86_valid_target_attribute_tree): Update option_strings
15457 handling. Handle fpmath as enum option.
15458 (ix86_can_inline_p): Update field names for function fpmath state.
15459 (ix86_expand_builtin): Update call to ix86_target_string.
15460 * config/i386/i386.h (enum fpmath_unit): Move to i386-opts.h.
15461 (ix86_fpmath): Remove.
15462 * config/i386/t-i386 (i386.o): Update dependencies.
15464 2011-05-16 Joseph Myers <joseph@codesourcery.com>
15466 PR preprocessor/48677
15467 * cppspec.c (lang_specific_driver): Set new_decoded_options[0]
15468 from decoded_options[0], not from itself.
15470 2011-05-16 Uros Bizjak <ubizjak@gmail.com>
15472 * config/i386/constraints.md (z): New constraint.
15473 * config/i386/i386.c (c): New mode attribute.
15474 (*call): Merge insn pattern from *call_0, *call_1, *call_1_rex64 and
15475 *call_1_rex64_large patterns using "P" mode iterator. Use "<c>zm"
15476 constraint for operand 0.
15477 (*call_vzeroupper): Ditto.
15478 (*call_rex64_ms_sysv): Ditto. Use "rzm" constraint for operand 0.
15479 (*call_rex64_ms_sysv_vzeroupper): Ditto.
15480 (*call_pop): Merge insn pattern from *call_pop_0 and *call_pop_1.
15481 Use "lzm" constraint for operand 0.
15482 (*call_pop_vzeroupper): Ditto.
15483 (*sibcall): Merge insn pattern from *sibcall_0, *sibcall_1 and
15484 *sibcall_1_rex64 patterns using "P" mode iterator. Use "Uz"
15485 constraint for operand 0.
15486 (*sibcall_vzeroupper): Ditto.
15487 (*sibcall_rex64_ms_sysv): Ditto.
15488 (*sibcall_rex64_ms_sysv_vzeroupper): Ditto.
15489 (*sibcall_pop): Merge insn pattern from *sibcall_pop_0 and
15490 *sibcall_pop_1. Use "Uz" constraint for operand 0.
15491 (*sibcall_pop_vzeroupper): Ditto.
15492 (*call_value): Merge insn pattern from *call_value_0, *call_value_1,
15493 *call_value_1_rex64 and *call_value_1_rex64_large patterns using "P"
15494 mode iterator. Use "<c>zm" constraint for operand 1.
15495 (*call_value_vzeroupper): Ditto.
15496 (*call_value_rex64_ms_sysv): Ditto. Use "rzm" constraint
15498 (*call_value_rex64_ms_sysv_vzeroupper): Ditto.
15499 (*call_value_pop): Merge insn pattern from *call_value_pop_0 and
15500 *call_value_pop_1. Use "lzm" constraint for operand 1.
15501 (*call_value_pop_vzeroupper): Ditto.
15502 (*sibcall_value): Merge insn pattern from *sibcall_value_0,
15503 *sibcall_value_1 and *sibcall_value_1_rex64 patterns using "P"
15504 mode iterator. Use "Uz" constraint for operand 1.
15505 (*sibcall_value_vzeroupper): Ditto.
15506 (*sibcall_value_rex64_ms_sysv): Ditto.
15507 (*sibcall_value_rex64_ms_sysv_vzeroupper): Ditto.
15508 (*sibcall_value_pop): Rename from *sibcall_pop_1. Use "Uz"
15509 constraint for operand 1.
15510 (*sibcall_value_pop_vzeroupper): Ditto.
15511 (*tls_global_dynamic_64): Use constant_call_address_operand predicate
15512 and "z" constraint for operand 2.
15513 (*tls_global_dynamic_32_gnu): Ditto.
15514 (*tls_local_dynamic_base_32_gnu): Ditto.
15515 (*tls_local_dynamic_base_64): Ditto.
15516 (*tls_local_dynamic_32_once): Ditto.
15517 * config/i386/i386.c (ix86_output_call_insn): Remove int_addr argument.
15518 Update all callers.
15519 * config/i386/i386-protos.h (ix86_output_call_insn): Update prototype.
15521 2011-05-16 Richard Guenther <rguenther@suse.de>
15523 * gimple.c (gimple_types_compatible_p_1): Use names of the
15524 type itself, not its main variant.
15525 (iterative_hash_gimple_type): Likewise.
15527 2011-05-16 Richard Guenther <rguenther@suse.de>
15529 * gimple.c (iterative_hash_gimple_type): Re-instantiate change to
15530 always visit pointer target and function result and argument types.
15532 2011-05-16 Jason Merrill <jason@redhat.com>
15535 * tree-inline.c (copy_statement_list): Put back recursion.
15537 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
15541 * config/avr/predicates.md (const_8_16_24_operand): New predicate.
15542 * config/avr/avr.md ("*ior<mode>qi.byte0",
15543 "*ior<mode>qi.byte1-3"): New define_insn_and_split patterns.
15545 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
15548 * config/avr/avr.c (avr_function_arg_advance): Error if a fixed
15549 register is needed for a function argument.
15551 2011-05-16 Richard Guenther <rguenther@suse.de>
15553 * gimple.c (struct type_hash_pair): New type.
15554 (type_hash_pair_compare): New function.
15555 (iterative_hash_gimple_type): Mix in SCC member hashes in hash-order.
15557 2011-05-16 Revital Eres <revital.eres@linaro.org>
15559 * modulo-sched.c (doloop_register_get): Check !DEBUG_INSN_P first.
15561 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
15563 * config/i386/i386.md (floating point move splitters): Fix
15564 usage of standard_80387_constant_p.
15565 * config/i386/i386.c (ix86_preferred_reload_class): Ditto.
15567 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
15569 * config/i386/i386.md (*movdf_internal): Simplify insn condition.
15571 2011-05-14 Eric Botcazou <ebotcazou@adacore.com>
15573 * tree-ssa-loop-im.c (SET_ALWAYS_EXECUTED_IN): New macro.
15574 (fill_always_executed_in): Use [SET_]ALWAYS_EXECUTED_IN.
15575 (tree_ssa_lim_finalize): Likewise.
15577 2011-05-14 Uros Bizjak <ubizjak@gmail.com>
15579 * config/i386/constraint.md (Yd, Yx): New register constraints.
15580 * config/i386/i386.md (*pushdf): Merge with *pushdf_nointeger. Use
15581 Yd conditional register constraint.
15582 (*movtf_internal): Use standard_sse_constant_opcode.
15583 (*movxf_internal): Merge with *movxf_internal_nointeger. Use
15584 Yx conditional register constraint.
15585 (*movdf_internal): Merge with *movdf_internal_nointeger. Use
15586 Yd conditional register constraint. Use standard_sse_constant_p to
15587 check for valid SSE constants and call standard_sse_constant_opcode to
15589 (*movsf_internal): Use standard_sse_constant_p to check for valid SSE
15590 constants and call standard_sse_constant_opcode to output SSE insn.
15591 * config/i386/i386.c (ix86_option_ovverride_internal): Set
15592 TARGET_INTEGER_DFMODE_MOVES for 64bit targets. Clear it when
15593 optimize_size is set.
15594 (standard_sse_constant_opcode): Output conditional AVX insn templates.
15596 2011-05-14 Tobias Burnus <burnus@net-b.de>
15598 * doc/invoke.texi (-Ofast): Also enables -fstack-arrays.
15600 2011-05-13 Martin Jambor <mjambor@suse.cz>
15602 * ipa-prop.c (ipa_cst_from_jfunc): New function.
15603 * ipa-prop.h (ipa_cst_from_jfunc): Declare.
15604 * ipa-inline-analysis.c (evaluate_conditions_for_edge): Use it.
15605 (evaluate_conditions_for_ipcp_clone): Removed.
15606 (estimate_ipcp_clone_size_and_time): Accept vector of known constants.
15607 * ipa-cp.c (ipcp_estimate_growth): Build vector of known constants.
15608 * ipa-inline.h (estimate_ipcp_clone_size_and_time): Update.
15610 2011-05-13 Eric Botcazou <ebotcazou@adacore.com>
15612 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Adjust dump message.
15613 * regcprop.c (copyprop_hardreg_forward): Test MAY_HAVE_DEBUG_INSNS in
15614 lieu of MAY_HAVE_DEBUG_STMTS.
15615 * tree-cfgcleanup.c (remove_forwarder_block): Do not attempt to move
15616 debug statements if !MAY_HAVE_DEBUG_STMTS.
15618 2011-05-13 Martin Thuresson <martint@google.com>
15620 PR gcov-profile/47793
15621 * libgcov.c (gcov_exit): Support relative profile paths.
15622 * doc/invoke.texi (-fprofile-dir): Update for above change.
15624 2011-05-13 Richard Guenther <rguenther@suse.de>
15626 * gimple.c (gimple_canonical_types_compatible_p): Do not use
15627 type-pair caching, do not compare hashes.
15629 2011-05-13 Nathan Froyd <froydnj@codesourcery.com>
15631 PR middle-end/48965
15632 * tree-cfg.c (edge_to_cases_cleanup): Return true.
15633 (verify_expr) [CASE_LABEL_EXPR]: Add checking.
15635 2011-05-13 Kai Tietz <ktietz@redhat.com>
15637 * gimplify.c (gimplify_expr): Make sure operand is boolified.
15638 * tree-cfg.c (verify_gimple_assign_unary): Check for boolean
15639 compatible type for TRUTH_NOT_EXPR.
15641 2011-05-13 H.J. Lu <hongjiu.lu@intel.com>
15643 * config/i386/i386.c (ix86_save_reg): Change return type to bool.
15644 (ix86_hard_regno_mode_ok): Change return value to bool. Use
15645 can_create_pseudo_p ().
15647 2011-05-13 Richard Guenther <rguenther@suse.de>
15650 * gimple.c (iterative_hash_gimple_type): Revert change in
15651 pointer target and function result and argument hashing.
15653 2011-05-13 Uros Bizjak <ubizjak@gmail.com>
15655 * config/i386/i386.md (*movxf_internal): Use !can_create_pseudo ().
15656 (*movxf_internal_nointeger): Ditto.
15657 (*movdf_internal_rex64): Ditto.
15658 (*movdf_internal): Ditto.
15659 (*movdf_internal_nointeger): Ditto.
15660 (*movsf_internal): Ditto.
15661 (sincos splitters): Use can_create_pseudo ().
15663 2011-05-13 Joseph Myers <joseph@codesourcery.com>
15665 * config/i386/i386-opts.h: New.
15666 * gcc/config/i386/i386.c (stringop_alg, ix86_cmodel,
15667 ix86_asm_dialect, ix86_regparm, ix86_abi, ix86_branch_cost,
15668 ix86_section_threshold): Remove.
15669 (ix86_handle_option): Move MAX_CODE_ALIGN define here. Handle
15670 OPT_malign_loops_, OPT_malign_jumps_, OPT_malign_functions_ and
15672 (ix86_option_override_internal): Don't decode strings for options
15673 other than -march=, -mtune= and -mfpmath=. Don't allow for
15674 __attribute__ uses in remaining diagnostics for options with
15675 string arguments. Don't check for integer arguments being negative.
15676 * gcc/config/i386/i386.h (enum stringop_alg, enum calling_abi,
15677 enum tls_dialect, enum cmodel, enum asm_dialect): Move to i386-opts.h.
15678 (ix86_abi, ix86_tls_dialect, ix86_cmodel, ix86_asm_dialect,
15679 ix86_branch_cost, ix86_section_threshold): Remove.
15680 * gcc/config/i386/i386.opt (config/i386/i386-opts.h): New
15682 (malign-functions=, malign-jumps=, malign-loops=): Use UInteger
15684 (masm=): Use Enum and Init.
15685 (asm_dialect): New Enum and EnumValue entries.
15686 (mbranch-cost=): Use UInteger.
15687 (mlarge-data-threshold=): Use UInteger and Init.
15688 (mcmodel=): Use Enum and Init.
15689 (cmodel): New Enum and EnumValue entries.
15690 (mpc): Replace with separate mpc32, mpc64 and mpc80 entries.
15691 (mpreferred-stack-boundary=, mincoming-stack-boundary=,
15692 mregparm=): Use UInteger.
15693 (mstringop-strategy=): Use Enum and Init.
15694 (stringop_alg): New Enum and EnumValue entries.
15695 (mtls-dialect=): Use Enum and Init.
15696 (tls_dialect): New Enum and EnumValue entries.
15697 (mabi=): Use Enum and Init.
15698 (calling_abi): New Enum and EnumValue entries.
15699 (mveclibabi=): Use Enum and Init.
15700 (ix86_veclibabi): New Enum and EnumValue entries.
15702 2011-05-13 Nick Clifton <nickc@redhat.com>
15704 * config/rx/rx.md (mov expander): Fix use of rx_legitimate_constant_p.
15705 * config/rx/rx-protos.h (rx_legitimate_constant_p): Rename prototype.
15707 2011-05-13 Kai Tietz <ktietz@redhat.com>
15709 PR middle-end/48984
15710 * gimplify.c (gimplify_expr): Check for boolean_type_node instead
15711 for BOOLEAN_TYPE for TRUTH-NOT/AND/OR/XOR.
15712 (gimple_boolify): Check for cast for boolean_type_node instead for
15715 2011-05-13 Richard Guenther <rguenther@suse.de>
15717 PR tree-optimization/48172
15718 * tree-vect-loop-manip.c (vect_vfa_segment_size): Avoid
15719 multiplying by number of iterations for equal step.
15720 (vect_create_cond_for_alias_checks): Likewise.
15722 2011-05-13 Andreas Schwab <schwab@redhat.com>
15724 * configure.ac: Use AS_HELP_STRING throughout.
15725 * configure: Regenerate.
15727 2011-05-12 H.J. Lu <hongjiu.lu@intel.com>
15729 * config/i386/i386.c (ix86_save_reg): Change maybe_eh_return to bool.
15730 (ix86_emit_restore_regs_using_mov): Likewise.
15731 (ix86_emit_restore_sse_regs_using_mov): Likewise.
15733 2011-05-12 Anatoly Sokolov <aesok@post.ru>
15735 * config/sparc/sparc.h (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P,
15736 SYMBOLIC_CONST, RTX_OK_FOR_BASE_P, RTX_OK_FOR_INDEX_P): Remove.
15737 (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Move to...
15738 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P,
15739 RTX_OK_FOR_OLO10_P): ...here.
15740 (sparc_mode_dependent_address_p): Use symbolic_operand instead of
15743 2011-05-12 Kai Tietz <ktietz@redhat.com>
15745 * gimplify.c (gimple_boolify): Re-boolify expression
15746 arguments even if expression type is of kind BOOLEAN_TYPE.
15747 (gimplify_boolean_expr): Removed.
15748 (gimplify_expr): Boolify truth opcodes AND, ANDIF, OR, ORIF,
15749 and XOR. Additional take care that we keep expression's type.
15750 * tree-cfg.c (verify_gimple_assign_binary): Adjust check for type
15751 of TRUTH_AND|OR|XOR_EXPR.
15753 2011-05-12 Jakub Jelinek <jakub@redhat.com>
15755 PR tree-optimization/48975
15756 * tree-if-conv.c (combine_blocks): Call free_bb_predicate
15757 on all bbs here and free and clear ifc_bbs at the end.
15759 2011-05-12 Richard Guenther <rguenther@suse.de>
15761 * gimple.c (gtc_visit): Compare TREE_ADDRESSABLE, handle
15762 NULLPTR_TYPE similar to VOID_TYPE. Defer type-leader lookup
15763 until after simple checks.
15764 (gimple_types_compatible_p): Likewise.
15765 (iterative_hash_gimple_type): Always hash pointer targets
15766 and function return and argument types.
15767 (iterative_hash_canonical_type): Do not hash TYPE_QUALS,
15768 hash TYPE_ALIGN. Do not hash TYPE_MIN/MAX_VALUE.
15769 (gimple_canonical_types_compatible_p): Compare TREE_ADDRESSABLE,
15770 handle NULLPTR_TYPE similar to VOID_TYPE. Handle non-aggregates
15771 completely in the simple compare section.
15772 (gimple_register_canonical_type): Query the cache again after
15775 2011-05-12 Richard Guenther <rguenther@suse.de>
15777 PR tree-optimization/48172
15778 * tree-vect-loop-manip.c (vect_vfa_segment_size): Do not exclude
15779 the number of iterations from the segment size calculation.
15780 (vect_create_cond_for_alias_checks): Adjust.
15782 2011-05-12 Jakub Jelinek <jakub@redhat.com>
15785 * var-tracking.c (use_narrower_mode_test) <case REG>: Return 1
15786 if validate_subreg fails.
15788 2011-05-12 Hariharan Sandanagobalane <hariharan@picochip.com>
15790 * ira.c (clarify_prohibited_class_mode_regs): Prevent the function from
15791 accessing beyond the end of REGNO_REG_CLASS array by stopping the loop
15794 2011-05-12 DJ Delorie <dj@redhat.com>
15796 * config/rx/rx.c (rx_builtins): New arrays - holds builtin functions.
15797 (ADD_RX_BUILTIN1, ADD_RX_BUILTIN2, ADD_RX_BUILTIN3): Install
15798 created builtin into rx_builtins array.
15799 (rx_builtin_decl): New function.
15800 (TARGET_BUITLIN_DECL): Define. Include gt-rx.h.
15802 2011-05-12 DJ Delorie <dj@redhat.com>
15803 Nick Clifton <nickc@redhat.com>
15805 * config/rx/rx.h (HAVE_PRE_DECREMENT): Fix typo.
15806 * config/rx/rx.c (CC_FLAG_FP): Fix comment.
15807 (rx_is_legitimate_address): Add pre-decrement and post-increment
15808 addressing in HImode and QImode. Fix test for out of range
15809 REG+INT addressing.
15810 (rx_legitimate_constant_p): Rename to rx_is_legitimate_constant.
15811 (rx_align_for_label): Test label before extracting its usage count.
15812 (rx_adjust_insn_lengths): Fix selection of insn codes.
15813 (TARGET_LEGITIMATE_CONSTANT_P): Use renamed function.
15815 2011-05-11 Jason Merrill <jason@redhat.com>
15817 * tree.c (type_hash_canon): Use struct tree_type_non_common.
15819 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
15821 * cfgrtl.c (commit_one_edge_insertion): Remove always-true test and
15822 reindent the subsequent block.
15824 2011-05-11 Satoru Takabayashi <satorux@google.com>
15825 Paul Pluzhnikov <ppluzhnikov@google.com>
15827 * doc/install.texi (Configuration): Document --with-linker-hash-style.
15828 * gcc.c (init_spec): Handle LINKER_HASH_STYLE.
15829 * config.in: Add LINKER_HASH_STYLE.
15830 * configure.ac: Add --with-linker-hash-style.
15831 * configure: Regenerate.
15833 2011-05-11 Richard Guenther <rguenther@suse.de>
15835 PR middle-end/48964
15836 * gimple.c (iterative_hash_canonical_type): Fix typo.
15838 2011-05-11 Uros Bizjak <ubizjak@gmail.com>
15840 * config/i386/i386.c (legitimize_tls_address)
15841 <case TLS_MODEL_GLOBAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
15842 expanders directly for TARGET_GNU2_TLS. Determine pic and
15843 __tls_get_addr symbol reference here. Update call to
15844 gen_tls_global_dynamic_{32,64} for added arguments.
15845 <case TLS_MODEL_LOCAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
15846 expanders directly for TARGET_GNU2_TLS. Determine
15847 __tls_get_addr symbol reference here. Update call to
15848 gen_tls_local_dynamic_base_{32,64} for added arguments. Attach
15849 unique UNSPEC REG_EQUIV to libcall block.
15850 (ix86_tls_get_addr): Declare static.
15851 * config/i386/i386-protos.h (ix86_tls_get_addr): Remove declaration.
15852 * config/i386/i386.md (tls_global_dynamic_32): Add operand 2 and 3.
15853 Do not determine pic and __tls_get_addr symbol reference here. Do not
15854 call gen_tls_dynamic_gnu2_32 for TARGET_GNU2_TLS.
15855 (tls_local_dynamic_base_32): Ditto for operands 1 and 2.
15856 (tls_global_dynamic_64): Add operand 2. Do not determine
15857 __tls_get_addr symbol reference here. Do not call
15858 gen_tls_dynamic_gnu2_64 for TARGET_GNU2_TLS here.
15859 (tls_local_dynamic_base64): Ditto for operand 1.
15861 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
15863 * function.c (expand_function_start): Initialize stack_check_probe_note
15864 only if the generic stack checking mechanism is used.
15866 2011-05-11 Richard Guenther <rguenther@suse.de>
15868 PR tree-optimization/15256
15869 * tree-ssa-forwprop.c (simplify_bitwise_binary): Canonicalize
15870 (A & B) | C, combine (A op CST1) op CST2.
15871 (tree_ssa_forward_propagate_single_use_vars): Only bother to
15872 visit assigns that have uses.
15874 2011-05-11 Nathan Froyd <froydnj@codesourcery.com>
15876 * ggc-page.c (extra_order_size_table): Use struct tree_type_non_common.
15877 * lto-streamer-in.c (unpack_ts_type_value_fields): Rename to...
15878 (unpack_ts_type_common_value_fields): ...this. Update comment.
15879 (unpack_value_fields): Adjust for renaming.
15880 (lto_input_ts_type_tree_pointers): Split into...
15881 (lto_input_ts_type_common_tree_pointer): ...this and...
15882 (lto_input_ts_type_non_common_tree_pointers): ...this.
15883 (lto_input_tree_pointers): Adjust for above split.
15884 * lto-streamer-out.c (pack_ts_type_value_fields): Rename to...
15885 (pack_ts_type_common_value_fields): ...this. Update comment.
15886 (lto_output_ts_type_tree_pointers): Split into...
15887 (lto_output_ts_type_common_tree_pointers): ...this and...
15888 (lto_output_ts_type_non_common_tree_pointers): ...this.
15889 (lto_output_tree_pointers): Adjust for above split.
15890 * lto-streamer.c (check_handled_ts_structures): Mark TS_TYPE_COMMON,
15891 TS_TYPE_WITH_LANG_SPECIFIC, and TS_TYPE_NON_COMMON as handled.
15892 * stor-layout.c (vector_type_mode): Adjust location of mode field.
15893 * tree.h (MARK_TS_TYPE_COMMON, MARK_TS_TYPE_WITH_LANG_SPECIFIC):
15895 (struct tree_type): Split into...
15896 (struct tree_type_common: ...this and...
15897 (struct tree_type_with_lang_specific): ...this and...
15898 (struct tree_type_non_common): ...this. Adjust accessor macros
15900 (TYPE_VALUES_RAW): Define.
15901 (union tree_node): Update for above changes.
15902 * tree.c (tree_node_structure_for_code) [tcc_type]: Return
15903 TS_TYPE_NON_COMMON.
15904 (initialize_tree_contains_struct) [TS_TYPE]: Use TS_TYPE_COMMON.
15905 Add TS_TYPE_WITH_LANG_SPECIFIC and TS_TYPE_NON_COMMON.
15906 (tree_code_size) [tcc_type]: Use struct tree_type_non_common.
15907 * treestructu.def (TS_TYPE): Remove.
15908 (TS_TYPE_COMMON, TS_TYPE_WITH_LANG_SPECIFIC, TS_TYPE_NON_COMMON):
15911 2011-05-11 Jakub Jelinek <jakub@redhat.com>
15914 * tree-ssa.c (reset_debug_uses): New function.
15915 * tree-flow.h (reset_debug_uses): New prototype.
15916 * tree-data-ref.c (stmts_from_loop): Ignore debug stmts.
15917 * tree-loop-distribution.c (generate_loops_for_partition): Call
15918 reset_debug_uses on the stmts that will be removed. Keep around
15919 all debug stmts, don't count them as bits in partition bitmap.
15920 (generate_builtin): Don't count debug stmts or labels as bits in
15923 2011-05-11 Richard Guenther <rguenther@suse.de>
15925 * gimple.c (gimple_type_hash_1): Merge with ...
15926 (gimple_type_hash): ... this.
15927 (gtc_visit): Remove mode parameter and simplify accordingly.
15928 (gimple_types_compatible_p_1): Likewise.
15929 (gimple_types_compatible_p): Likewise.
15930 (iterative_hash_gimple_type): Likewise.
15932 (gimple_type_eq): Adjust.
15934 2011-05-11 Revital Eres <revital.eres@linaro.org>
15936 * ddg.c (create_ddg_dep_from_intra_loop_link): If a true dep edge
15937 enters the branch create an anti edge in the opposite direction
15938 to prevent the creation of reg-moves.
15939 * modulo-sched.c: Adjust comment to reflect the fact we are
15940 scheduling closing branch.
15941 (PS_STAGE_COUNT): Rename to CALC_STAGE_COUNT and redefine.
15942 (stage_count): New field in struct partial_schedule.
15943 (calculate_stage_count): New function.
15944 (normalize_sched_times): Rename to reset_sched_times and handle
15945 incrementing the sched time of the nodes by a constant value
15946 passed as parameter.
15947 (duplicate_insns_of_cycles): Skip closing branch.
15948 (sms_schedule_by_order): Schedule closing branch.
15949 (ps_insn_find_column): Handle closing branch.
15950 (sms_schedule): Call reset_sched_times and adjust the code to
15951 support scheduling of the closing branch.
15952 (ps_insert_empty_row): Update calls to normalize_sched_times
15953 and rotate_partial_schedule functions.
15955 2011-05-11 Richard Guenther <rguenther@suse.de>
15957 PR middle-end/48953
15958 * tree-inline.c (remap_gimple_op_r): Also remap types of MEM_REFs.
15960 2011-05-11 Joseph Myers <joseph@codesourcery.com>
15962 * opts.c (finish_options): Move warning settings from process_options.
15963 * toplev.c (process_options): Move warning settings to finish_options.
15965 2011-05-11 Richard Guenther <rguenther@suse.de>
15967 PR tree-optimization/18041
15968 * tree-ssa-forwprop.c (simplify_bitwise_and): Rename to ...
15969 (simplify_bitwise_binary): ... this. Handle operand conversions
15970 by applying them to the result instead.
15971 (tree_ssa_forward_propagate_single_use_vars): Adjust. CSE tree code.
15973 2011-05-11 Richard Guenther <rguenther@suse.de>
15975 * gimple.c (gimple_canonical_types_compatible_p): Split out
15976 from gimple_types_compatible_p and friends. Do not recurse
15977 to pointed-to types.
15978 (gimple_canonical_type_eq): Use it.
15979 (iterative_hash_canonical_type): Split out from
15980 iterative_hash_gimple_type and friends. Do not recurse
15981 to pointed-to types.
15982 (gimple_canonical_type_hash): Use it, allocate the hash here.
15984 2011-05-11 Revital Eres <revital.eres@linaro.org>
15986 * modulo-sched.c (doloop_register_get): Ignore DEBUG_INSNs while
15987 recognizing doloop.
15989 2011-05-11 Revital Eres <revital.eres@linaro.org>
15991 * loop-doloop.c (doloop_condition_get): Use prev_nondebug_insn
15992 instead of PREV_INSN.
15994 2011-05-11 Revital Eres <revital.eres@linaro.org>
15996 * modulo-sched.c (sms_schedule): Support new form of doloop pattern
15997 * loop-doloop.c (doloop_condition_get): Likewise.
15998 * config/arm/thumb2.md (*thumb2_addsi3_compare0): Remove "*".
16000 * config/arm/arm.md (*addsi3_compare0): Remove "*".
16002 2011-05-10 Nathan Froyd <froydnj@codesourcery.com>
16004 * tree.def (CASE_LABEL_EXPR): Add an operand.
16005 * tree.h (CASE_CHAIN): Use TREE_OPERAND instead of TREE_CHAIN.
16007 2011-05-10 Joseph Myers <joseph@codesourcery.com>
16009 * c-decl.c (c_override_global_bindings_to_false): Remove.
16010 (global_bindings_p): Don't check
16011 c_override_global_bindings_to_false.
16012 * c-tree.h (c_override_global_bindings_to_false): Remove.
16013 * c-typeck.c (composite_type): Don't set
16014 c_override_global_bindings_to_false.
16016 2011-05-10 Michael Meissner <meissner@linux.vnet.ibm.com>
16018 PR target/48857, 48495
16019 * config/rs6000/rs6000.h (VSX_SCALAR_MODE): Delete.
16021 (VSX_MOVE_MODE): Ditto.
16022 (ALTIVEC_OR_VSX_VECTOR_MODE): New macro, combine all Altivec and
16023 VSX vector types. Add V2DImode.
16024 (HARD_REGNO_CALLER_SAVE_MODE): Use it instead of
16025 ALTIVEC_VECTOR_MODE and VSX_VECTOR_MODE calls.
16026 (MODES_TIEABLE_P): Ditto.
16028 * config/rs6000/rs6000.c (rs6000_emit_move): Use
16029 ALTIVEC_OR_VSX_MODE instead of ALTIVEC_VECTOR_MODE and
16031 (init_cumulative_args): Ditto.
16032 (rs6000_function_arg_boundary): Ditto.
16033 (rs6000_function_arg_advance_1): Ditto.
16034 (rs6000_function_arg): Ditto.
16035 (rs6000_function_ok_for_sibcall): Ditto.
16036 (emit_frame_save): Ditto.
16037 (rs6000_function_value): Ditto.
16038 (rs6000_libcall_value): Ditto.
16040 2011-05-10 Joseph Myers <joseph@codesourcery.com>
16042 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
16043 i386/darwin-lib.h to $libgcc_tm_file.
16044 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Remove.
16046 2011-05-10 Joseph Myers <joseph@codesourcery.com>
16048 * doc/sourcebuild.texi (Back End): Mention contrib/config-list.mk.
16050 2011-05-10 Joseph Myers <joseph@codesourcery.com>
16052 * config/rs6000/genopt.sh, config/rs6000/rs6000-cpus.def: New files.
16053 * config/rs6000/rs6000-tables.opt: New file (generated).
16054 * config.gcc (powerpc*-*-*, rs6000*-*-*): Add
16055 rs6000/rs6000-tables.opt to extra_options.
16056 * config/rs6000/rs6000-opts.h (RS6000_CPU_OPTION_NATIVE): Define.
16057 * config/rs6000/rs6000.c (rs6000_select): Remove.
16058 (processor_target_table): Move contents to rs6000-cpus.def.
16059 (darwin_rs6000_override_options): Check
16060 global_options_set.x_rs6000_cpu_index instead of
16061 rs6000_select[1].string.
16062 (rs6000_option_override_internal): Likewise.
16063 (rs6000_handle_option): Don't assert that global structures are in
16064 use. Don't handle OPT_mcpu_ and OPT_mtune_ here.
16065 (rs6000_default_cpu): New variable.
16066 (rs6000_file_start): Set it instead of local default_cpu. Check
16067 rs6000_default_cpu, global_options_set.x_rs6000_cpu_index and
16068 global_options_set.x_rs6000_tune_index instead of rs6000_select.
16069 (rs6000_darwin_file_start): Check rs6000_default_cpu and
16070 global_options_set.x_rs6000_cpu_index instead of rs6000_select.
16071 * config/rs6000/rs6000.h (struct rs6000_cpu_select,
16072 rs6000_select): Remove.
16073 * config/rs6000/rs6000.opt (rs6000_cpu_index, rs6000_tune_index):
16075 (mcpu=, mtune=): Use Var, Init, Enum and Save.
16076 * config/rs6000/t-rs6000
16077 ($(srcdir)/config/rs6000/rs6000-tables.opt): New.
16078 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
16079 global_options_set.x_rs6000_cpu_index instead of
16080 rs6000_select[1].string.
16081 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
16082 global_options_set.x_rs6000_cpu_index instead of
16083 rs6000_select[1].string.
16085 2011-05-10 Joseph Myers <joseph@codesourcery.com>
16087 * config.gcc (libgcc_tm_file): Define instead of including files
16088 from ../../libgcc/config/ in tm_file.
16089 * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list): Define.
16090 * configure: Regenerate.
16091 * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list,
16092 libgcc_tm.h, cs-libgcc_tm.h): New.
16093 (TM_H): Include libgcc_tm.h and $(libgcc_tm_file_list).
16094 (clean): Remove libgcc_tm.h.
16095 * config/arm/symbian.h (RENAME_LIBRARY): Remove.
16096 * mkconfig.sh: Include libgcc_tm.h in tm.h if USED_FOR_TARGET.
16097 * system.h (DECLARE_LIBRARY_RENAMES): Poison.
16099 2011-05-10 Georg-Johann Lay <avr@gjlay.de>
16102 * config/avr/avr.c (avr_ret_register): Return unsigned int
16104 (avr_function_value): Mark fn_decl_or_type as unused, don't pass
16105 it to avr_libcall_value.
16106 avr_expand_builtin): Use EXPAND_NORMAL as arg 4 in calls to
16108 (avr_expand_binop_builtin): Ditto.
16109 (avr_expand_unop_builtin): Ditto.
16111 2011-05-10 DJ Delorie <dj@redhat.com>
16113 * config/rx/rx.h (JUMP_ALIGN, LABEL_ALIGN, LOOP_ALIGN): Define.
16114 (LABEL_ALIGN_AFTER_BARRIER): Pass label to rx_align_for_label
16115 * config/rx/rx.c (rx_align_for_label): Add label and
16116 uses_threshold parameters. Do not align when the label is not
16118 * config/rx/rx-protos.h (rx_align_for_label): Update prototype.
16120 2011-05-10 Richard Guenther <rguenther@suse.de>
16122 * tree-ssa-forwprop.c (combine_conversions): Pattern-match
16123 a series of conversions and apply foldings similar to what
16125 (tree_ssa_forward_propagate_single_use_vars): Call it.
16127 2011-05-10 Jakub Jelinek <jakub@redhat.com>
16129 PR tree-optimization/48611
16130 PR tree-optimization/48794
16131 * tree-eh.c (remove_unreachable_handlers): Don't remove regions
16132 referenced from RESX or EH_DISPATCH arguments.
16135 * dfp.c (decimal_to_decnumber): Handle conversion from
16136 dconst{1,2,m1,half}.
16138 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
16140 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Return 0
16141 for !flag_prefer_avx128.
16142 (ix86_preferred_simd_mode): Return word_mode for DFmode without SSE2.
16144 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
16146 * fold-const.c (fold_range_test): Pass LOC to build_range_check.
16147 (fold_ternary_loc): Use expr_location_or.
16149 2011-05-09 H.J. Lu <hongjiu.lu@intel.com>
16152 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: If
16153 POINTERS_EXTEND_UNSIGNED is defined, don't give up if mode is
16154 Pmode and mem_mode is not VOIDmode.
16156 2011-05-09 Ville Voutilainen <ville.voutilainen@gmail.com>
16158 * tree.h (TYPE_UNQUALIFIED, TYPE_QUAL_CONST, TYPE_QUAL_VOLATILE,
16159 TYPE_QUAL_RESTRICT): Convert to enum.
16161 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
16163 * config/i386/predicates.md (const_pow2_1_to_2_operand): Remove.
16164 (const_pow2_1_to_8_operand): Ditto.
16165 (const_pow2_1_to_128_operand): Ditto.
16166 (const_pow2_1_to_32768_operand): Ditto.
16167 * config/i386/mmx.md (*mmx_pinsrw): Use const_int_operand instead of
16168 const_pow2_1_to_8_operand for operand 3 predicate. Use exact_log2
16169 in insn constraint to check integer value of operand 3.
16170 * config/i386/sse.md (*vec_setv4sf_sse4_1): Ditto.
16172 (PINSR_MODE): New mode iterator.
16173 (sse2p4_1): New mode attribute.
16174 (<sse2p4_1>_pinsr<ssemodesuffix>): Merge insn from sse4_1_pinsrb,
16175 sse2_pinsrw, sse4_1_pinsrd and sse4_1_pinsrq using PINSR_MODE mode
16176 iterator. Use const_int_operand instead of
16177 const_pow2_1_to_{2,8,128,32768}_operand for operand 3 predicate. Use
16178 exact_log2 in insn constraint to check integer value of operand 3.
16180 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
16182 * config/i386/sse.md (blendbits): Remove mode attribute.
16183 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
16184 instead of const_0_to_<blendbits>_operand for operand 3 predicate.
16185 Check integer value of operand 3 in insn constraint.
16187 2011-05-09 Richard Guenther <rguenther@suse.de>
16189 * lto-symtab.c (lto_cgraph_replace_node): Use types_compatible_p
16191 (lto_symtab_merge): Likewise. Do not register types here.
16192 (lto_symtab_merge_decls_2): Likewise.
16193 (lto_symtab_merge_decls_1): Likewise.
16194 * gimple.h (enum gtc_mode, gimple_types_compatible_p): Do not declare.
16195 * gimple.c (enum gtc_mode): Declare.
16196 (gimple_types_compatible_p): Make static.
16198 2011-05-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
16200 * config/s390/s390.md (TD/TF mem to reg move splitter): Make the
16201 temporary register to match Pmode.
16203 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
16205 * config/i386/sse.md (*vec_concatv4si): Merge from *vec_concatv4si_1
16206 and *vec_concatv4si_1_avx.
16208 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
16210 PR rtl-optimization/48927
16211 * ira-conflicts.c (commutative_constraint_p): Use
16212 recog_data.alternative_enabled_p to disable alternatives where
16213 "enabled" attribute is false.
16214 (get_dup_num): Ditto.
16215 * ira-lives.c (single_reg_class): Ditto.
16216 (ira_implicitly_set_insn_hard_regs): Ditto.
16218 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
16220 * var-tracking.c (find_mem_expr_in_1pdv): Fix thinko.
16221 (dataflow_set_preserve_mem_locs): Likewise.
16223 2011-05-09 Philipp Thomas <pth@suse.de>
16225 * config/mep/mep.c (mep_validate_vliw): Syntax description
16226 should not be translated.
16228 2011-05-09 Joseph Myers <joseph@codesourcery.com>
16230 * config/mips/genopt.sh, config/mips/mips-cpus.def: New files.
16231 * config/mips/mips-tables.opt: New file (generated).
16232 * config.gcc (mips*-*-*): Add mips/mips-tables.opt to extra_options.
16233 * config/mips/mips-opts.h (MIPS_ARCH_OPTION_FROM_ABI,
16234 MIPS_ARCH_OPTION_NATIVE): Define.
16235 * config/mips/mips.c (mips_cpu_info_table): Move contents to
16237 (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p,
16238 mips_parse_cpu): Remove.
16239 (mips_cpu_info_from_opt, mips_default_arch): New.
16240 (mips_handle_option): Don't assert that global structures are in
16241 use. Don't handle OPT_march_, OPT_mtune_ and OPT_mips here.
16242 (mips_option_override): Use new variables and functions to set
16243 state of these options. Use strcmp to check for individual CPU names.
16244 * config/mips/mips.h (MIPS_CPU_STRING_DEFAULT): Remove default
16246 * config/mips/mips.opt (march=): Use ToLower and Enum.
16247 (mips): Use ToLower, Enum and Var.
16248 (mtune=): Use ToLower and Enum.
16249 * config/mips/t-mips ($(srcdir)/config/mips/mips-tables.opt): New.
16251 2011-05-08 Jan Hubicka <jh@suse.cz>
16253 * gimple.c (type_pair_hash, type_pair_eq, lookup_type_pair):
16254 Arrange type pairs to be UID ordered.
16255 (gimple_lookup_type_leader): Make inline.
16257 2011-05-09 Nick Clifton <nickc@redhat.com>
16260 * config/iq2000/iq2000.opt (iq2000_tune): Initialise to
16264 * config/mn10300/mn10300.c (extract_bundle): Remove spurious local
16267 2011-05-08 Chung-Lin Tang <cltang@codesourcery.com>
16269 * combine.c (simplify_comparison): Abstract out parts into...
16270 (simplify_compare_const): ... new function.
16271 (try_combine): Generalize parallel arithmetic/compare combining
16272 to call simplify_compare_const() and CANONICALIZE_COMPARE().
16274 2011-05-08 Jan Hubicka <jh@suse.cz>
16276 * cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter.
16277 (cgraph_create_virtual_clone): Call hooks once virtual clone
16279 * cgraph.h (cgraph_clone_node): Update prototype.
16280 * ipa-cp.c (ipcp_estimate_growth): Use
16281 estimate_ipcp_clone_size_and_time.
16282 * ipa-inline-transform.c (clone_inlined_nodes): Update.
16283 * lto-cgraph.c (input_node): Update.
16284 * ipa-inline.c (recursive_inlining): Update.
16285 * ipa-inline.h (estimate_ipcp_clone_size_and_time): New function.
16286 (evaluate_conditions_for_known_args): Break out from ...
16287 (evaluate_conditions_for_edge): ... here.
16288 (evaluate_conditions_for_ipcp_clone): New function.
16289 (inline_node_duplication_hook): Update clone summary based
16291 (estimate_callee_size_and_time): Rename to ...
16292 (estimate_node_size_and_time): take NODE instead of EDGE;
16293 take POSSIBLE_TRUTHS as argument.
16294 (estimate_callee_size_and_time): Update.
16295 (estimate_ipcp_clone_size_and_time): New function.
16296 (do_estimate_edge_time): Update.
16298 2011-05-08 Richard Guenther <rguenther@suse.de>
16300 PR middle-end/48908
16301 PR middle-end/48905
16302 * expmed.c (expand_shift_1): Compute adjusted constant shift
16305 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
16307 * config/avr/avr.c (print_operand_address): Fix invalid RTL access.
16309 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
16311 * config/rs6000/rs6000.c (output_profile_hook): Fix thinko.
16313 2011-05-08 Jonathan Wakely <jwakely.gcc@gmail.com>
16315 * doc/invoke.texi (-fuse-linker-plugin): Improve grammar.
16317 2011-05-07 Jan Hubicka <jh@suse.cz>
16319 * ipa-inline-transform.c (inline_call): Account when program size
16321 * ipa-inline.c (relative_time_benefit): New function.
16322 (edge_badness): Reorganize to be power 2 based; fix thinko when
16323 computing badness for negative growth; update comments to match
16324 reality; better dumps.
16326 2011-05-07 Eric Botcazou <ebotcazou@adacore.com>
16328 * langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
16329 type to bool and adjust comment.
16330 * fold-const.c (fold_range_test): Adjust call to global_bindings_p.
16331 (fold_mathfn_compare): Remove calls to global_bindings_p.
16332 (fold_inf_compare): Likewise.
16333 * stor-layout.c (variable_size): Adjust call to global_bindings_p.
16334 * c-tree.h (global_bindings_p): Adjust prototype.
16335 * c-decl.c (global_bindings_p): Return bool and simplify.
16337 2011-05-07 Zdenek Dvorak <ook@ucw.cz>
16339 PR tree-optimization/48837
16340 * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
16341 when accumulator transformation is performed.
16343 2011-05-06 Jan Hubicka <jh@suse.cz>
16345 * i386.h (ix86_tune_indices): Add
16346 X86_TUNE_SOFTWARE_PREFETCHING_BENEFICIAL.
16347 (TARGET_SOFTWARE_PREFETCHING_BENEFICIAL): New macro.
16348 * i386.c (initial_ix86_tune_features): Add
16349 X86_SOFTARE_PREFETCHING_BENEFICIAL.
16350 (software_prefetching_beneficial_p): Remove predicate.
16351 (ix86_option_override_internal): Use new macro.
16353 2011-05-06 Jan Hubicka <jh@suse.cz>
16355 * ipa-inline.c (update_callee_keys): Don't reset node growth cache.
16357 2011-05-06 Jan Hubicka <jh@suse.cz>
16359 * cgraph.c (cgraph_add_thunk): Create real function node instead
16360 of alias node; finalize it and mark needed/reachale; arrange visibility
16361 to be right and add it into the corresponding same comdat group list.
16362 (dump_cgraph_node): Dump thunks.
16363 * cgraph.h (cgraph_first_defined_function, cgraph_next_defined_function,
16364 cgraph_function_with_gimple_body_p,
16365 cgraph_first_function_with_gimple_body,
16366 cgraph_next_function_with_gimple_body): New functions.
16367 (FOR_EACH_FUNCTION_WITH_GIMPLE_BODY, FOR_EACH_DEFINED_FUNCTION):
16369 * ipa-cp.c (ipcp_need_redirect_p): Thunks can't be redirected.
16370 (ipcp_generate_summary): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
16371 * cgraphunit.c (cgraph_finalize_function): Only look into possible
16372 devirtualization when optimizing.
16373 (verify_cgraph_node): Verify thunks.
16374 (cgraph_analyze_function): Analyze thunks.
16375 (cgraph_mark_functions_to_output): Output thunks only in combination
16376 with function they are assigned to.
16377 (assemble_thunk): Turn thunk into non-thunk; don't try to turn
16378 alias into normal node.
16379 (assemble_thunks): New functoin.
16380 (cgraph_expand_function): Use it.
16381 * lto-cgraph.c (lto_output_node): Stream thunks.
16382 (input_overwrite_node): Stream in thunks.
16383 * ipa-pure-const.c (analyze_function): Thunks do nothing interesting.
16384 * lto-streamer-out.c (lto_output): Do not try to output thunk's body.
16385 * ipa-inline.c (inline_small_functions): Use FOR_EACH_DEFINED_FUNCTION.
16386 * ipa-inline-analysis.c (compute_inline_parameters): "Analyze" thunks.
16387 (inline_analyze_function): Do not care about thunk jump functions.
16388 (inline_generate_summary):Use FOR_EACH_DEFINED_FUNCTION.
16389 * ipa-prop.c (ipa_prop_write_jump_functions): Use
16390 cgraph_function_with_gimple_body_p.
16391 * passes.c (do_per_function_toporder): Use
16392 cgraph_function_with_gimple_body_p.
16393 (execute_one_pass);Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
16394 (ipa_write_summaries): Use cgraph_function_with_gimple_body_p.
16395 (function_called_by_processed_nodes_p): Likewise.
16397 2011-05-06 Joseph Myers <joseph@codesourcery.com>
16399 * config/rs6000/rs6000.opt (rs6000_ieeequad, rs6000_altivec_abi,
16400 rs6000_spe_abi, rs6000_darwin64_abi): Remove TargetVariable
16402 (mabi=): Replace with separate entries for mabi=altivec,
16403 mabi=no-altivec, mabi=spe, mabi=no-spe, mabi=d64, mabi=d32,
16404 mabi=ieeelongdouble and mabi=ibmlongdouble.
16405 * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
16406 check for -mabi=spe without SPE ABI support here.
16407 (rs6000_handle_option): Replace OPT_mabi_ handling with
16408 OPT_mabi_altivec and OPT_mabi_spe handling.
16410 2011-05-06 Cary Coutant <ccoutant@google.com>
16412 * dwarf2out.c (contains_subprogram_definition): New function.
16413 (should_move_die_to_comdat): Call it.
16415 2011-05-06 Jeff Law <law@redhat.com>
16417 * tree-ssa-threadupdate.c (create_block_for_threading): Do not call
16418 remove_ctrl_stmt_and_useless_edges.
16419 (create_duplicates): Call remove_ctrl_stmt_and_useless_edges.
16420 (fixup_template_block, thread_single_edge): Likewise.
16421 (mark_threaded_blocks): Use THREAD_TARGET.
16423 2011-05-06 Alan Modra <amodra@gmail.com>
16426 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
16427 const0_rtx as the arg to the dummy __tls_get_addr libcall.
16429 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
16431 * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
16432 constraint modifier to "r".
16434 2011-05-06 Joseph Myers <joseph@codesourcery.com>
16436 * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
16437 fall through for OPT_mcmodel_.
16439 2011-05-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
16441 * config/s390/s390.c (s390_asm_trampoline_template): Comment
16443 (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
16445 2011-05-06 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
16448 * config/arm/arm.opt (marm): Document it.
16449 (mthumb): Reject negative variant.
16451 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
16454 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
16455 Fix typo in "ccvt" variable name.
16457 2011-05-06 Tristan Gingold <gingold@adacore.com>
16460 * config/vms/vms-ar.c (main): Remove cwd variable.
16462 2011-05-06 Jakub Jelinek <jakub@redhat.com>
16465 * var-tracking.c (prepare_call_arguments): Move else before #endif.
16467 2011-05-05 Nathan Froyd <froydnj@codesourcery.com>
16469 * except.c (sjlj_emit_dispatch_table): Call build_case_label.
16470 * gimplify.c (gimplify_switch_expr): Likewise.
16471 * omp-low.c (expand_omp_sections): Likewise.
16472 * tree-eh.c (lower_try_finally_switch): Likewise.
16473 (lower_eh_dispatch): Likewise.
16474 * tree.h (build_case_label): Declare.
16475 * tree.c (build_case_label): Define.
16477 2011-05-05 Jason Merrill <jason@redhat.com>
16480 * tree-inline.c (copy_tree_r): Use copy_statement_list.
16481 (copy_statement_list): Don't recurse.
16482 * stor-layout.c (copy_self_referential_tree_r): Don't allow
16485 2011-05-05 Joseph Myers <joseph@codesourcery.com>
16487 * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
16488 through from -mfpu= handling.
16489 * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
16491 2011-05-05 Bernd Schmidt <bernds@codesourcery.com>
16493 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
16496 2011-05-05 Steve Ellcey <sje@cup.hp.com>
16498 * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
16500 (hppa[12]*-*-hpux11*): Ditto.
16501 (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
16502 * config/ia64/hpux-unix2003.h: New.
16503 * config/pa/pa-hpux1131.opt: New.
16504 * config/pa/pa-hpux1131.h: New.
16505 * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
16506 * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
16507 * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
16509 2011-05-05 Jakub Jelinek <jakub@redhat.com>
16512 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
16513 instead of mode as 3rd argument to recursive call.
16514 (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
16515 emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
16517 (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
16518 don't give up if mode is Pmode and mem_mode is not VOIDmode.
16519 (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
16520 use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
16522 2011-05-05 Julian Brown <julian@codesourcery.com>
16524 * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
16525 parenthesis in D-register case.
16527 2011-05-05 Joseph Myers <joseph@codesourcery.com>
16529 * opt-functions.awk (var_type_struct): Handle Enum options.
16530 * optc-gen.awk: Don't check range of variables of character type.
16531 * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
16532 rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
16533 rs6000_sdata_name, rs6000_explicit_options): Remove.
16534 (rs6000_option_override_internal): Check for -malign-power here.
16535 Use global_options_set instead of rs6000_explicit_options.
16536 (rs6000_parse_fpu_option): Remove.
16537 (rs6000_handle_option): Access variables via opts and opts_set
16538 pointers. Use error_at and warning_at. Add fall-through
16539 comments. Don't handle OPT_mcmodel_, OPT_maix_struct_return,
16540 OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
16541 OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
16542 OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
16543 here. Don't use rs6000_parse_fpu_option.
16544 * config/rs6000/rs6000.h (fpu_type): Remove declaration.
16545 * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
16546 rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
16547 (mrecip=): Use Var.
16548 (mspe): Use Var and Save.
16549 (mtraceback=): Use Enum and Var.
16550 (rs6000_traceback_type): New Enum and EnumValue entries.
16551 (mfloat-gprs=): Use Enum, Var and Save.
16552 (rs6000_float_gprs): New Enum and EnumValue entries.
16553 (mlong-double-): use Var and Save.
16554 (msched-costly-dep=, minsert-sched-nops=): Use Var.
16555 (malign-): Use Enum and Var.
16556 (rs6000_alignment_flags): New Enum and EnumValue entries.
16558 (fpu_type_t): New Enum and EnumValue entries.
16559 * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
16560 global_options_set instead of rs6000_explicit_options.
16561 * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
16562 global_options_set instead of rs6000_explicit_options.
16563 * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
16564 global_options_set instead of rs6000_explicit_options.
16565 * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
16566 global_options_set instead of rs6000_explicit_options.
16567 * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
16568 global_options_set instead of rs6000_explicit_options.
16569 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
16570 global_options_set instead of rs6000_explicit_options.
16571 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
16573 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
16574 global_options_set instead of rs6000_explicit_options.
16575 * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
16576 (rs6000_cmodel): New Enum and EnumValue entries.
16577 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
16578 global_options_set instead of rs6000_explicit_options.
16579 * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
16580 (mtls-size=): Use Enum and Var.
16581 (rs6000_tls_size): New Enum and EnumValue entries.
16583 2011-05-05 Michael Matz <matz@suse.de>
16585 * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
16586 * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
16587 * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
16588 * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
16589 * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
16590 * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
16591 * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
16592 * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
16593 * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
16594 * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
16595 * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
16596 * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
16597 * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
16598 * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
16599 * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
16600 * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
16602 2011-05-05 Richard Guenther <rguenther@suse.de>
16604 * expmed.c (expand_variable_shift): Rename to ...
16605 (expand_shift_1): ... this. Take an expanded shift amount.
16606 For rotates recurse directly not building trees for the shift amount.
16607 (expand_variable_shift): Wrap around expand_shift_1.
16608 (expand_shift): Adjust.
16610 2011-05-05 Jakub Jelinek <jakub@redhat.com>
16612 * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
16614 2011-05-05 Eric Botcazou <ebotcazou@adacore.com>
16616 * tree.h (get_pending_sizes): Remove prototype.
16617 (put_pending_size): Likewise.
16618 (put_pending_sizes): Likewise.
16619 * stor-layout.c (pending_sizes): Delete.
16620 (get_pending_sizes): Likewise.
16621 (put_pending_size): Likewise.
16622 (put_pending_sizes): Likewise.
16623 (variable_size): Do not call put_pending_size and tidy up.
16624 * function.h (struct function): Remove dont_save_pending_sizes_p.
16625 * lto-streamer-in.c (input_function): Do not stream it.
16626 * lto-streamer-out.c (output_function): Likewise.
16627 * tree-inline.c (initialize_cfun): Do not copy it.
16628 * c-decl.c (store_parm_decls): Do not set it.
16629 * omp-low.c (create_task_copyfn): Likewise.
16630 * tree-optimize.c (tree_rest_of_compilation): Likewise.
16632 2011-05-05 Uros Bizjak <ubizjak@gmail.com>
16634 * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
16636 (*movdf_internal): Ditto.
16637 (*movdf_internal_nointeger): Ditto.
16638 (*movsf_internal): Ditto.
16640 2011-05-05 Joseph Myers <joseph@codesourcery.com>
16642 * c-decl.c (finish_decl): Don't call get_pending_sizes.
16643 (grokparm): Add parameter expr. Pass it to grokdeclarator.
16644 (push_parm_decl): Add parameter expr. Pass it to grokdeclarator.
16645 (c_variable_size): Remove.
16646 (grokdeclarator): Use save_expr instead of c_variable_size. Don't
16647 call put_pending_sizes.
16648 (get_parm_info): Add parameter expr. Use it to set
16649 arg_info->pending_sizes.
16650 (store_parm_decls): Use arg_info->pending_sizes instead or calling
16652 * c-parser.c (c_parser_parms_declarator): Update call to
16653 c_parser_parms_list_declarator.
16654 (c_parser_parms_list_declarator): Take parameter expr. Update
16655 call to push_parm_decl. Update recursive call. Don't call
16656 get_pending_sizes. Update calls to get_parm_info.
16657 (c_parser_objc_method_definition): Update calls to
16658 c_parser_objc_method_decl and objc_start_method_definition.
16659 (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
16660 (c_parser_objc_method_decl): Add parameter expr. Update call to
16662 (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
16663 * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
16664 (get_parm_info, grokparm, push_parm_decl): Update prototypes.
16666 2011-05-05 Michael Hope <michael.hope@linaro.org>
16669 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
16670 __ARM_EABI__ hosts.
16672 2011-05-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16674 * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
16675 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
16676 (spu_output_mi_thunk): New function.
16678 2011-05-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16680 * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
16681 targetm.asm_out.print_operand.
16682 * config/sol2.c: Include target.h.
16684 2011-05-04 Jan Hubicka <jh@suse.cz>
16686 * ipa-inline.c (reset_edge_caches): New function.
16687 (update_caller_keys): Add check_inlinablity_for; do not
16688 reset edge caches; remove now unnecesary loop.
16689 (update_callee_keys): Add comments; reset node_growth_cache of callee.
16690 (update_all_callee_keys): Likewise.
16691 (inline_small_functions): Sanity check cache; update code
16694 2011-05-04 Bernd Schmidt <bernds@codesourcery.com>
16696 PR rtl-optimization/47612
16697 * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
16698 as the last insn of the sequence to be moved.
16700 2011-05-04 Tobias Burnus <burnus@net-b.de>
16703 * doc/invoke.texi (Ofast): Document that it
16704 enables Fortran's -fno-protect-parens.
16706 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
16708 * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
16710 2011-05-04 Eric Botcazou <ebotcazou@adacore.com>
16712 * stor-layout.c (variable_size): Do not issue errors.
16714 2011-05-04 Richard Guenther <rguenther@suse.de>
16716 * coverage.c (tree_coverage_counter_ref): Use integer_type_node
16717 for array-ref indices.
16718 (tree_coverage_counter_addr): Likewise.
16719 (build_fn_info_type): Use size_int for index types.
16720 (build_gcov_info): Likewise.
16722 2011-05-04 Richard Guenther <rguenther@suse.de>
16724 * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
16726 * c-typeck.c (really_start_incremental_init): Use bitsize_int
16727 for constructor indices.
16728 (push_init_level): Likewise.
16730 2011-05-04 Richard Guenther <rguenther@suse.de>
16732 * explow.c (promote_mode): Move variable declarations before code.
16734 2011-05-04 Nathan Froyd <froydnj@codesourcery.com>
16736 * tree.h (build_function_type_array): Declare.
16737 (build_varargs_function_type_array): Declare.
16738 (build_function_type_vec, build_varargs_function_type_vec): Define.
16739 * tree.c (build_function_type_array_1): New function.
16740 (build_function_type_array): New function.
16741 (build_varargs_function_type_array): New function.
16743 2011-05-04 Richard Sandiford <richard.sandiford@linaro.org>
16745 * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
16746 before setting STMT_VINFO_TYPE.
16748 2011-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16750 * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
16751 instead of spu_pass_by_reference.
16753 2011-05-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
16755 * calls.c (emit_library_call_value_1): Invoke
16756 promote_function_mode hook on libcall arguments.
16757 * explow.c (promote_function_mode, promote_mode): Handle TYPE
16758 argument being NULL.
16759 * targhooks.c (default_promote_function_mode): Lisewise.
16760 * config/s390/s390.c (s390_promote_function_mode): Likewise.
16761 * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
16763 * doc/tm.texi: Document that TYPE argument might be NULL.
16765 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
16767 * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
16769 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
16772 * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
16774 2011-05-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16776 * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
16777 (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
16779 * mips-tfile.c: ... here.
16780 Don't include coretypes.h, tm.h, filenames.h.
16781 (saber_stop): Remove definition and all calls.
16782 [__SABER__]: Remove.
16783 (__LINE__): Remove default.
16784 (Size_t, Ptrdiff_t): Remove definitions.
16785 Replace by size_t, ptrdiff_t.
16786 [!MIPS_DEBUGGING_INFO]: Remove.
16787 (SHASH_SIZE, THASH_SIZE): Remove defaults.
16788 (progname): Add const.
16790 Replace all uses by static.
16791 (ALIGN_SYMTABLE_OFFSET): Remove default.
16792 * mips-tdump.c: Don't include coretypes.h, tm.h.
16793 Remove !MIPS_IS_STAB guard.
16794 * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
16795 $(TM_H), filenames.h dependencies.
16796 (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
16798 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
16801 *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
16802 (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
16804 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
16807 * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
16808 account and save/restore RETS.
16809 (PROFILE_BEFORE_PROLOGUE): Define.
16810 (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character. Correct
16811 the push insn to use predecrement.
16813 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
16816 * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
16818 2011-05-04 Nick Clifton <nickc@redhat.com>
16820 * config/mn10300/mn10300.c: Include cfgloop.h.
16822 (mn10300_insert_setlb_lcc): New function. Inserts a SETLB and a
16823 Lcc or a FLcc insn into the instruction stream.
16824 (mn10300_block_contains_call): New function. Returns true if the
16825 given basic block contains a CALL insn.
16826 (mn10300_loop_contains_call_insn): New function. Returns true if
16827 the given loop contains a CALL insn.
16828 (mn10300_scan_for_setlb_lcc): New function. Finds opportunities
16829 to use the SETLB and Lcc or FLcc insns.
16830 (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
16831 (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
16832 * config/mn10300/mn10300.opt (msetlb): New option. Used to
16833 disable the SETLB optimization.
16834 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
16835 __SETLB__ or __NO_SETLB__.
16836 * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
16837 (movsf_internal): Handle MDR register.
16838 (cmpsi): Make visible.
16839 (setlb): New pattern.
16840 (Lcc): New pattern.
16841 (FLcc): New pattern.
16843 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
16846 * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
16847 for reg<->xmm moves.
16848 * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
16849 (vec_concatv2di_rex64_sse): Ditto.
16850 (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
16851 (*vec_extractv2di_1_rex64): Ditto.
16854 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
16856 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
16858 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
16860 2011-05-04 Richard Guenther <rguenther@suse.de>
16862 * tree.h (int_const_binop): Remove notrunc argument.
16863 * fold-const.c (int_const_binop): Remove notrunc argument. Always
16864 create integer constants that are properly truncated.
16865 (extract_muldiv_1): Expand one notrunc int_const_binop caller.
16866 (const_binop): Remove zero notrunc argument to int_const_binop.
16867 (size_binop_loc): Likewise.
16868 (fold_div_compare): Likewise.
16869 (maybe_canonicalize_comparison_1): Likewise.
16870 (fold_comparison): Likewise.
16871 (fold_binary_loc): Likewise.
16872 (multiple_of_p): Likewise.
16873 * expr.c (store_constructor): Likewise.
16874 * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
16875 (maybe_fold_stmt_addition): Likewise.
16876 * ipa-prop.c (ipa_modify_call_arguments): Likewise.
16877 * stor-layout.c (layout_type): Likewise.
16878 * tree-data-ref.c (tree_fold_divides_p): Likewise.
16879 * tree-sra.c (build_ref_for_offset): Likewise.
16880 (build_user_friendly_ref_for_offset): Likewise.
16881 * tree-ssa-address.c (maybe_fold_tmr): Likewise.
16882 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
16883 * tree-ssa-loop-niter.c (inverse): Likewise.
16884 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
16885 * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
16886 * tree-switch-conversion.c (check_range): Likewise.
16887 (build_constructors): Likewise.
16888 * tree-vect-generic.c (expand_vector_piecewise): Likewise.
16889 * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
16890 (extract_range_from_assert): Likewise.
16891 (vrp_int_const_binop): Likewise.
16892 (extract_range_from_binary_expr): Likewise.
16893 (extract_range_from_unary_expr): Likewise.
16894 (check_array_ref): Likewise.
16895 (find_case_label_range): Likewise.
16896 (simplify_div_or_mod_using_ranges): Likewise.
16897 * tree-cfg.c (group_case_labels_stmt): Use double-ints for
16898 comparing case labels for merging.
16900 2011-05-03 Mark Wielaard <mjw@redhat.com>
16902 * dwarf2out.c (debug_str_hash_forced): Removed.
16903 (gen_label_for_indirect_string): Removed.
16904 (get_debug_string_label): Removed.
16905 (AT_string_form): Generate label directly.
16906 (output_indirect_string): Test indirect_string_node for
16907 DW_FORM_strp instead of checking label and refcount.
16908 (prune_indirect_string): Removed.
16909 (prune_unused_types): Don't check debug_str_hash_forced or
16910 call prune_indirect_string.
16912 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
16915 * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
16917 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
16921 * combine.c (try_combine): Skip debug insns at m_split tests.
16923 2011-04-26 Mark Wielaard <mjw@redhat.com>
16926 * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
16927 when info_section_emitted.
16929 2011-05-03 Joseph Myers <joseph@codesourcery.com>
16931 * config/mips/mips-opts.h: New.
16932 * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
16934 (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
16935 (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
16936 or OPT_mr10k_cache_barrier_ here. Access mips_cache_flush_func
16938 * config/mips/mips.h (enum mips_code_readable_setting): Move to
16940 (mips_abi, mips_code_readable): Don't declare.
16941 * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
16942 (mabi=): Use Enum and Var.
16943 (mips_abi): New Enum and EnumValue entries.
16944 (mcode-readable=): Use Enum and Var.
16945 (mips_code_readable_setting): New Enum and EnumValue entries.
16946 (mr10k-cache-barrier=): Use Enum and Var.
16947 (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
16949 2011-05-03 Jan Hubicka <jh@suse.cz>
16951 * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
16952 replace hash by pointer map.
16953 (cgraph_node_set_element_def, cgraph_node_set_element,
16954 const_cgraph_node_set_element, varpool_node_set_element_def,
16955 varpool_node_set_element, const_varpool_node_set_element): Remove.
16956 (free_cgraph_node_set, free_varpool_node_set): New function.
16957 (cgraph_node_set_size, varpool_node_set_size): Use vector size.
16958 * tree-emutls.c: Free varpool node set.
16959 * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
16960 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
16961 debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
16962 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
16963 dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
16964 Move here from ipa.c; implement using pointer_map
16965 * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
16966 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
16967 debug_cgraph_node_set, varpool_node_set_new,
16968 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
16969 dump_varpool_node_set, debug_varpool_node_set):
16970 Move to ipa-uitls.c.
16971 * passes.c (ipa_write_summaries): Update.
16973 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
16975 From Mike Frysinger:
16976 * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
16977 bf542/bf544/bf547/bf548/bf549.
16979 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
16981 * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
16983 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
16985 From Bernd Schmidt:
16986 * config/bfin/bfin.md (MOVCC): New mode_macro.
16987 (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
16988 movsicc_insn1, movsicc_insn2 and movsicc and macroized. Remove
16989 comments from generated assembly.
16991 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
16994 * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
16995 * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
16996 * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
16997 * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
16998 * config/bfin/lib1funcs.asm (___muldi3): New function.
17000 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
17002 * config/stormy16/stormy16 (xstormy16_init_builtins): Call
17003 build_function_type_list instead of build_function_type.
17004 Rearrange initialization of `args' to do so.
17006 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
17008 * config/i386/i386.c (ix86_code_end): Call build_function_type_list
17009 instead of build_function_type.
17011 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
17013 * config/rs6000/rs6000.c (spe_init_builtins): Call
17014 build_function_type_list instead of build_function_type.
17015 (paired_init_builtins, altivec_init_builtins): Likewise.
17016 (builtin_function_type): Likewise.
17018 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
17020 * config/sh/sh.c (sh_media_init_builtins): Call
17021 build_function_type_list instead of build_function_type.
17023 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
17025 * config/sparc/sparc.c (sparc_file_end): Call
17026 build_function_type_list instead of build_function_type.
17028 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
17030 * config/alpha/alpha.c (alpha_init_builtins): Call
17031 build_function_type_list instead of build_function_type.
17033 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
17035 * config/xtensa/xtensa.c (xtensa_init_builtins): Call
17036 build_function_type_list instead of build_function_type.
17038 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
17040 * config/iq2000/i2000.c (iq2000_init_builtins): Call
17041 build_function_type_list instead of build_function_type.
17042 Delete `endlink' variable.
17044 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
17046 * config/avr/avr.c (avr_init_builtins): Call
17047 build_function_type_list instead of build_function_type.
17049 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
17051 * config/picochip/picochip.c (picochip_init_builtins): Call
17052 build_function_type_list instead of build_function_type.
17053 Delete `endlink' variable.
17055 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
17057 * config/bfin/bfin.c (bfin_init_builtins): Call
17058 build_function_type_list instead of build_function_type.
17060 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
17063 * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
17064 that's not CONST_INT. Seemingly redundant check is due to PR39768.
17066 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
17069 * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
17070 libbffastfp overrides libgcc when -mfast-fp.
17072 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
17074 Originally from Bernd Schmidt
17075 * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
17076 * config/bfin/bfin.c (override_options): Test it and error if
17079 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
17081 Originally From Bernd Schmidt
17082 * config/bfin/bfin.c (override_options): Disable -fstack-limit for
17085 2011-05-03 Jeff Law <law@redhat.com>
17087 * tree-ssa-threadupdate.c (THREAD_TARGET): define.
17088 (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
17089 (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
17090 than accessing AUX field directly. Free the AUX field before
17092 (thread_block, thread_through_loop_header): Likewise.
17093 (thread_single_edge, mark_threaded_blocks): Likewise.
17094 (redirect_edges): Delay clearing the AUX field. Free the AUX field.
17095 (register_jump_thread): Do not attempt to thread to a NULL edge.
17097 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
17099 * function.c (init_function_start): Call decide_function_section.
17100 * varasm.c (decide_function_section): New function.
17101 (assemble_start_function): When not using
17102 flag_reorder_blocks_and_partition, don't compute in_cold_section_p
17103 or first_function_block_is_cold.
17104 * rtl.h (decide_function_section): Declare.
17106 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
17107 Jakub Jelinek <jakub@redhat.com>
17110 * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
17111 only succeed if req_mode is the same as set_mode.
17113 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
17115 * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
17116 * genemit.c (gen_exp): Handle RETURN.
17117 * emit-rtl.c (verify_rtx_sharing): Likewise.
17118 (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
17119 * rtl.c (copy_rtx): RETURN is shared.
17120 * rtl.h (enum global_rtl_index): Add GR_RETURN.
17122 * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
17123 * config/s390/s390.c (s390_emit_epilogue): Likewise.
17124 * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
17125 * config/cris/cris.c (cris_expand_return): Likewise.
17126 * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
17127 * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
17128 rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
17129 * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
17130 * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
17132 * config/v850/v850.c (expand_epilogue): Likewise.
17133 * config/bfin/bfin.c (bfin_expand_call): Likewise.
17134 * config/arm/arm.md (epilogue): Likewise.
17135 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
17136 * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
17137 variable to ret_reg.
17139 2011-05-03 Richard Guenther <rguenther@suse.de>
17142 * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
17143 Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
17144 * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
17146 2011-05-03 Richard Guenther <rguenther@suse.de>
17148 * c-decl.c (grokdeclarator): Instead of looking at
17149 TREE_OVERFLOW check if the constant fits in the index type.
17151 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
17153 * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
17154 (vec_store_lanes<mode><mode>): Likewise.
17156 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
17158 * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
17159 * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
17160 convert_optab_index values.
17161 (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
17162 * genopinit.c (optabs): Initialize the new optabs.
17163 * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
17164 * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
17165 (expand_STORE_LANES): New functions.
17166 * tree.h (build_array_type_nelts): Declare.
17167 * tree.c (build_array_type_nelts): New function.
17168 * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
17169 (vect_model_load_cost): Likewise.
17170 (vect_store_lanes_supported, vect_load_lanes_supported)
17171 (vect_record_strided_load_vectors): Declare.
17172 * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
17173 (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
17174 (vect_transform_strided_load): Split out statement recording into...
17175 (vect_record_strided_load_vectors): ...this new function.
17176 * tree-vect-stmts.c (create_vector_array, read_vector_array)
17177 (write_vector_array, create_array_ref): New functions.
17178 (vect_model_store_cost): Add store_lanes_p argument.
17179 (vect_model_load_cost): Add load_lanes_p argument.
17180 (vectorizable_store): Try to use store-lanes functions for
17181 interleaved stores.
17182 (vectorizable_load): Likewise load-lanes and loads.
17183 * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
17184 to vect_model_store_cost.
17185 (vect_build_slp_tree): Likewise vect_model_load_cost.
17187 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
17189 * hooks.h (hook_bool_mode_uhwi_false): Declare.
17190 * hooks.c (hook_bool_mode_uhwi_false): New function.
17191 * target.def (array_mode_supported_p): New hook.
17192 * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
17193 * doc/tm.texi: Regenerate.
17194 * stor-layout.c (mode_for_array): New function.
17195 (layout_type): Use it.
17196 * config/arm/arm.c (arm_array_mode_supported_p): New function.
17197 (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
17199 2011-05-03 Eric Botcazou <ebotcazou@adacore.com>
17202 * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
17203 for -fstack-check if the size to allocate is negative.
17205 2011-05-02 Lawrence Crowl <crowl@google.com>
17207 * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
17208 (timevar_cond_start): New for starting a timer only when it is not
17210 (timevar_cond_stop): New for stopping a timer when it was not already
17213 * timevar.c (timevar_stop): Enable start/stop timers to start again.
17214 (timevar_cond_start): New as above.
17215 (timevar_cond_stop): New as above.
17217 * timevar.def: Add start/stop timers for compiler phases,
17218 TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
17219 TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
17220 and TV_PHASE_FINALIZE.
17221 Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
17222 Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
17223 TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
17224 Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
17225 Make unused TV_OVERLOAD into a start/stop timer.
17227 Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
17228 Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
17229 to indicate that they are start/stop timers.
17231 * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
17232 Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
17233 Move initialization to do_compile.
17234 (do_compile): Add initialization from above.
17235 Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
17237 * c-decl.c (c_write_global_declarations): Add start/stop of
17238 TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
17240 * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
17241 or TV_PARSE_INLINE, as appropriate.
17242 (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
17243 (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
17245 2011-05-02 Jason Merrill <jason@redhat.com>
17248 * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
17250 2011-05-02 Simon Martin <simartin@users.sourceforge.net>
17253 * c-decl.c (finish_decl): Only create a composite if the types are
17256 2011-05-02 Joseph Myers <joseph@codesourcery.com>
17258 * config/fr30/fr30-protos.h (Mmode): Don't define.
17259 * config/m32r/m32r-protos.h (Mmode): Don't define. Expand
17260 definition where used.
17261 * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
17262 define. Expand definitions where used.
17263 * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
17264 Expand definitions where used.
17265 * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
17266 rx_function_arg, rx_function_arg_advance,
17267 rx_function_arg_boundary): Expand definitions of those macros.
17268 * config/v850/v850-protos.h (Mmode): Don't define. Expand
17269 definition where used.
17271 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
17273 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
17275 (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
17276 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves. Merge
17277 with *movv2sf_internal_rex64_avx.
17278 (*movv2sf_internal): Merge with *movv2sf_internal_avx.
17279 * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
17280 Use %v prefix in insn mnemonic to handle TARGET_AVX.
17281 (*movdi_internal): Add "isa" attribute. Use "maybe_vex" instead of
17282 "vex" in "prefix" attribute calculation.
17283 (*movdf_internal): Output AVX mnemonics. Add "prefix" attribute.
17285 2011-05-02 Stuart Henderson <shenders@gcc.gnu.org>
17288 * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
17289 inputs match the output.
17291 2011-05-02 Andreas Schwab <schwab@linux-m68k.org>
17294 * config/m68k/m68k.c (m68k_expand_prologue): Set
17295 current_function_static_stack_size.
17297 2011-05-02 Jan Hubicka <jh@suse.cz>
17299 * lto-streamer.c (lto_streamer_cache_insert_1,
17300 lto_streamer_cache_lookup, lto_streamer_cache_create,
17301 lto_streamer_cache_delete): Use pointer map instead of hashtable.
17302 * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
17304 2011-05-02 Joseph Myers <joseph@codesourcery.com>
17306 * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
17307 config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
17308 config/m68k/t-opts: New files.
17309 * config/m68k/m68k-tables.opt: New file (generated).
17310 * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
17311 extra_options and m68k/t-opts to tmake_file.
17312 * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
17313 (all_isas): Initialize using m68k-isas.def.
17314 (all_microarchs): Initialize using m68k-microarchs.def.
17315 (m68k_find_selection): Remove.
17316 (m68k_handle_option): Don't assert that global structures are in
17317 use. Use error_at. Access variables via opts pointer. Don't
17318 handle -march=, -mcpu= and -mtune= here. Set gcc_options fields
17319 directly for -m68020-40 and -m68020-60.
17320 (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
17321 m68k_tune_entry here.
17322 * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
17324 (m68k_library_id_string): Remove declaration.
17325 * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
17326 (m68k_library_id_string): New Variable.
17327 (march=, mcpu=, mtune=): Use Enum and Var.
17329 2011-05-02 Richard Guenther <rguenther@suse.de>
17331 * varasm.c (output_constructor_regular_field): Compute zero-based
17332 index with double-ints. Make sure to ICE instead of producing
17334 * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
17335 in asserts. Properly use a signed type.
17337 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
17339 * config/i386/sse.md (V): New mode iterator.
17340 (V_128): Rename from SSEMODE. Make V2DF mode conditional on
17342 (V_256): Rename from AVX256MODE.
17343 (VF): Make V4SF mode unconditional. Add TARGET_SSE instruction
17344 condition to all users.
17346 (VF2): Make V2DF mode unconditional. Add TARGET_SSE2 instruction
17347 condition to all users.
17348 (VF_128): Make V4SF mode unconditional.
17349 (VF_256): Rename from AVX256MODEF2P.
17350 (VI4F_128): Rename from SSEMODE4S.
17351 (VI8F_128): Rename from SSEMODE2D.
17352 (VI4F_256): Rename from AVX256MODE8P.
17353 (VI8F_256): Rename from AVX256MODE4P.
17354 (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
17355 (ssescalarmodesuffix): Remove SF and DF modes.
17356 (SSEMODE124): Remove.
17357 (SSEMODE1248): Ditto.
17358 (SSEMODEF2P): Ditto.
17359 (AVXMODEF2P): Ditto.
17360 (AVXMODEFDP): Ditto.
17361 (AVXMODEFSP): Ditto.
17362 (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
17364 (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO. Make V4SF mode
17366 (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
17367 xop_pcmov_<mode>256. Use V mode iterator.
17369 Adjust RTX patterns globally for renamed mode attributes.
17371 2011-05-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17373 * haifa-sched.c (sched_emit_insn): Emit insn before first
17374 non-scheduled insn. Inform back-end about new insn. Add
17375 new insn to scheduled_insns list.
17377 2011-05-02 Richard Guenther <rguenther@suse.de>
17379 PR tree-optimization/48822
17380 * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
17381 (process_scc): Indicate which iteration we start.
17383 2011-05-02 Jan Hubicka <jh@suse.cz>
17385 * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
17386 (lto_section_overrun): New.
17387 * lto-section-out.c (append_block): Rename to ...
17388 (lto_append_block): ... this one; export.
17389 (lto_output_1_stream): Move lto lto-streamer.h
17390 (lto_output_data_stream): Update.
17391 * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
17392 (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
17395 2011-05-02 Richard Guenther <rguenther@suse.de>
17397 * tree.c (tree_code_counts): New global array.
17398 (record_node_allocation_statistics): Count individual tree codes.
17399 (dump_tree_statistics): Dump individual code stats.
17401 2011-05-01 Jan Hubicka <jh@suse.cz>
17403 * ipa-inline.c (caller_growth_limits): Fix thinko when
17404 looking for largest stack frame.
17405 * ipa-inline.h (dump_inline_summary): Declare.
17406 * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
17408 (dump_inline_summary): Export.
17409 (debug_inline_summary): Declare as DEBUG_FUNCTION.
17411 2011-05-01 Anatoly Sokolov <aesok@post.ru>
17413 * reginfo.c (memory_move_cost): Change rclass argument type form
17414 'enum reg_class' to reg_class_t.
17415 * reload.h (memory_move_cost): Update prototype.
17416 * postreload.c reload_cse_simplify_set): Change type dclass var to
17418 * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
17420 (ira_allocate_and_set_costs): Change aclass argument type form
17421 'enum reg_class' to reg_class_t.
17422 * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
17423 Change aclass argument type to reg_class_t.
17424 (update_conflict_hard_reg_costs): Change type aclass and pref vars
17426 * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
17427 memory_move_cost call.
17429 * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
17430 'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
17431 Change type tmp var to reg_class_t.
17433 2011-04-30 Jan Hubicka <jh@suse.cz>
17435 * ipa-inline.c (can_inline_edge_p): Disregard limits when
17436 inlining into function with flatten attribute.
17437 (want_inline_small_function_p): Be more realistic about inlining
17438 cold calls where callee size grows.
17440 2011-04-30 Jan Hubicka <jh@suse.cz>
17442 * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
17445 2011-04-30 Anatoly Sokolov <aesok@post.ru>
17447 * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
17448 PRINT_OPERAND_PUNCT_VALID_P): Remove.
17449 * config/sparc/sparc-protos.h (print_operand): Remove declaration.
17450 * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
17451 TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
17452 (print_operand): Rename to...
17453 (sparc_print_operand): ...this. Make static. Adjust
17454 sparc_print_operand function call.
17455 (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
17458 2011-04-30 Jan Hubicka <jh@suse.cz>
17460 PR middle-end/48752
17461 * ipa-inline.c (early_inliner): Disable when doing late
17462 addition of function.
17464 2011-04-30 Jakub Jelinek <jakub@redhat.com>
17466 * dwarf2out.c (get_address_mode): New inline.
17467 (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
17468 if not dwarf_strict emit
17469 DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
17470 desirable. Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
17471 UNSIGNED_FLOAT, FIX and UNSIGNED_FIX. Just return NULL for
17472 FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
17473 (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
17474 dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
17475 mem_loc_descriptor callers.
17476 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
17477 output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
17478 Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
17479 DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
17480 (base_types): New variable.
17481 (get_base_type_offset, calc_base_type_die_sizes,
17482 base_type_for_mode, mark_base_types, base_type_cmp,
17483 move_marked_base_types): New functions.
17484 (calc_die_sizes): Assert that die_offset is 0 or equal to
17486 (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
17487 others defer to mem_loc_descriptor. Adjust mem_loc_descriptor
17488 callers. If not dwarf_strict, call mem_loc_descriptor even for
17489 non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
17490 (gen_subprogram_die): Don't give up on call site parameters
17491 with non-integral or large integral modes. Adjust
17492 mem_loc_descriptor callers.
17493 (prune_unused_types): Call prune_unused_types_mark on base_types
17495 (resolve_addr): Call mark_base_types.
17496 (dwarf2out_finish): Call move_marked_base_types.
17498 PR tree-optimization/48809
17499 * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
17501 (gen_inbound_check): Don't compute index_expr - range_min in utype
17502 again, instead reuse SSA_NAME initialized in build_arrays.
17503 Remove two useless gsi_for_stmt calls.
17505 2011-04-29 Jeff Law <law@redhat.com>
17507 * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
17509 2011-04-29 Martin Jambor <mjambor@suse.cz>
17511 * cgraph.h (cgraph_postorder): Remove declaration.
17512 * ipa-utils.h (ipa_free_postorder_info): Declare.
17513 (ipa_reverse_postorder): Likewise.
17514 * cgraphunit.c: Include ipa-utils.h.
17515 (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
17516 * ipa-inline.c: Include ipa-utils.h.
17517 (ipa_inline): Update call to ipa_reverse_postorder.
17518 * ipa-pure-const.c (propagate_pure_const): Update call to
17519 ipa_reduced_postorder and ipa_print_order. Call
17520 ipa_free_postorder_info to clean up.
17521 (propagate_nothrow): Likewise.
17522 * ipa-reference.c (propagate): Removed a useless call to
17523 ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
17524 and ipa_print_order. Call ipa_free_postorder_info to clean up.
17525 * ipa.c: Include ipa-utils.h.
17526 (ipa_profile): Update call to ipa_reverse_postorder.
17527 (cgraph_postorder): Moved to...
17528 * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
17529 (ipa_utils_print_order): Renamed to ipa_print_order.
17530 (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
17532 (ipa_free_postorder_info): New function.
17533 * passes.c: Include ipa-utils.h.
17534 (do_per_function_toporder): Update call to ipa_reverse_postorder.
17535 (ipa_write_summaries): Likewise.
17536 * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
17537 (cgraphunit.o): Likewise.
17539 (ipa-inline.o): Likewise.
17541 2011-04-29 Jan Hubicka <jh@suse.cz>
17543 * gcc.dg/tree-ssa/inline-10.c: New testcase.
17544 * gcc.dg/tree-ssa/inline-9.c: Disable partial inlining.
17545 * ipa-inline.h (clause_t): Turn into unsigned int.
17546 * ipa-inline-analysis.c (add_clause): Do more simplification.
17547 (and_predicates): Shortcut more cases.
17548 (predicates_equal_p): Move forward; check that clauses are properly
17550 (or_predicates): Shortcut more cases.
17551 (edge_execution_predicate): Rewrite as...
17552 (set_cond_stmt_execution_predicate): ... this function; handle
17553 __builtin_constant_p.
17554 (set_switch_stmt_execution_predicate): New .
17555 (compute_bb_predicates): New.
17556 (will_be_nonconstant_predicate): Update TODO.
17557 (estimate_function_body_sizes): Use compute_bb_predicates
17558 and free them later, always try to estimate if stmt is constant.
17559 (estimate_time_after_inlining, estimate_size_after_inlining):
17560 Gracefully handle optimized out edges.
17561 (read_predicate): Fix off by one error.
17563 2011-04-29 Nicola Pero <nicola.pero@meta-innovation.com>
17565 * Makefile.in (ENABLE_MAINTAINER_RULES): New.
17567 2011-04-27 Xinliang David Li <davidxl@google.com>
17569 * tree-profile.c (init_ic_make_global_vars): Set
17570 tls attribute on ic vars.
17571 * coverage.c (coverage_end_function): Initialize
17572 function_list with zero.
17574 2011-04-29 Richard Guenther <rguenther@suse.de>
17576 * builtins.c (fold_builtin_classify_type): Use integer_type_node
17577 for the type of the result.
17578 (fold_builtin_isascii): Likewise.
17579 (fold_builtin_toascii): Use integer_type_node where appropriate.
17580 (fold_builtin_logb): Likewise.
17581 (fold_builtin_frexp): Likewise.
17582 (fold_builtin_strstr): Likewise.
17583 (fold_builtin_strpbrk): Likewise.
17584 (fold_builtin_fputs): Likewise.
17585 (fold_builtin_sprintf): Likewise.
17586 (fold_builtin_snprintf): Likewise.
17587 (fold_builtin_printf): Likewise.
17588 (do_mpfr_remquo): Use a proper type for the assigned constant.
17589 (do_mpfr_lgamma_r): Likewise.
17590 * dwarf2out.c (resolve_one_addr): Use size_int.
17591 * except.c (init_eh): Likewise.
17592 (assign_filter_values): Use integer_type_node for filter values.
17593 (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
17595 * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
17596 for EH region numbers.
17597 * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
17598 for the shift amount.
17600 2011-04-29 Richard Guenther <rguenther@suse.de>
17602 * expr.h (expand_shift): Rename to ...
17603 (expand_variable_shift): ... this.
17604 (expand_shift): Take a constant shift amount.
17605 * expmed.c (expand_shift): Rename to ...
17606 (expand_variable_shift): ... this.
17607 (expand_shift): New wrapper around expand_variable_shift.
17608 * expr.c (convert_move, emit_group_load_1, emit_group_store,
17609 optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
17610 expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
17611 * expmed.c (store_fixed_bit_field, extract_bit_field_1,
17612 extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
17613 expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
17614 extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
17615 emit_store_flag_1, emit_store_flag): Likewise.
17616 * builtins.c (expand_builtin_signbit): Likewise.
17617 * calls.c (load_register_parameters): Likewise.
17618 * function.c (assign_parm_setup_block): Likewise.
17619 * lower-subreg.c (resolve_shift_zext): Likewise.
17620 * optabs.c (widen_bswap, expand_abs_nojump,
17621 expand_one_cmpl_abs_nojump, expand_float): Likewise.
17622 * spu/spu.c (spu_expand_extv): Likewise.
17623 * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
17625 2011-04-29 Richard Guenther <rguenther@suse.de>
17627 * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
17628 for the remapped region number.
17629 * predict.c (build_predict_expr): Use integer_type_node for the
17631 * fold-const.c (fold_binary_loc): Use integer_type_node for
17632 the shift amount. Use a proper type for the PLUS_EXPR operand.
17634 2011-04-29 Michael Matz <matz@suse.de>
17636 * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
17637 other trees that just builtins.
17638 (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
17640 2011-04-29 Richard Guenther <rguenther@suse.de>
17642 * tree-nested.c (get_trampoline_type): Use size_int.
17643 (get_nl_goto_field): Likewise.
17644 * tree-eh.c (lower_try_finally_switch): Use integer_type_node
17646 (lower_eh_constructs_2): Likewise.
17647 (lower_resx): Likewise.
17648 (lower_eh_dispatch): Likewise.
17649 * tree-mudflap.c (mf_build_string): Use size_int.
17650 (mudflap_register_call): Use integer_type_node for the flag.
17651 (mudflap_enqueue_constant): Use size_int.
17652 * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
17653 instead of rebuilding it.
17655 2011-04-29 Richard Guenther <rguenther@suse.de>
17657 * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
17658 Handle OBJ_TYPE_REF.
17659 (find_func_aliases_for_call): Use it more consistently.
17661 2011-04-29 Alexandre Oliva <aoliva@redhat.com>
17663 * haifa-sched.c (last_nondebug_scheduled_insn): New.
17664 (rank_for_schedule): Use it.
17665 (schedule_block): Set it.
17667 2011-04-28 David Li <davidxl@google.com>
17669 * tree.c (crc32_string): Use crc32_byte.
17670 (crc32_byte): New function.
17671 * tree.h (crc32_byte): New function.
17672 * gcov.c (read_graph_file): Handle new cfg_cksum.
17673 (read_count_file): Ditto.
17674 * profile.c (instrument_values): Ditto.
17675 (get_exec_counts): Ditto.
17676 (read_profile_edge_counts): Ditto.
17677 (compute_branch_probabilities): Ditto.
17678 (compute_value_histograms): Ditto.
17679 (branch_prob): Ditto.
17680 (end_branch_prob): Ditto.
17681 * coverage.c (read_counts_file): Ditto.
17682 (get_coverage_counts): Ditto.
17683 (tree_coverage_counter_addr): Ditto.
17684 (coverage_checksum_string): Ditto.
17685 (coverage_begin_output): Ditto.
17686 (coverage_end_function): Ditto.
17687 (build_fn_info_type): Ditto.
17688 (build_fn_info_value): Ditto.
17689 * libgcov.c (gcov_exit): Ditto.
17690 * gcov-dump.c (tag_function): Ditto.
17691 (compute_checksum): Remove.
17693 2011-04-29 Alan Modra <amodra@gmail.com>
17695 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
17696 unspec plus offset. Tidy macho code.
17698 2011-04-29 Martin Jambor <mjambor@suse.cz>
17700 * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
17701 node instead of a decl. Update all callers.
17702 * cgraph.h: Update declaration.
17704 2011-04-28 Ira Rosen <ira.rosen@linaro.org>
17706 PR tree-optimization/48765
17707 * tree-vectorizer.h (vect_make_slp_decision): Return bool.
17708 * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
17709 to indicate if loop aware SLP is being used. Scan the statements
17710 and update the vectorization factor according to the type of
17711 vectorization before statement analysis.
17712 (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
17713 pass it to vect_analyze_loop_operations.
17714 (vectorizable_reduction): Set number of copies to 1 in case of pure
17716 * tree-vect-stmts.c (vectorizable_conversion,
17717 vectorizable_assignment, vectorizable_shift,
17718 vectorizable_operation, vectorizable_type_demotion,
17719 vectorizable_type_promotion, vectorizable_store, vectorizable_load):
17721 (vectorizable_condition): Move the check that it is not SLP
17722 vectorization before the number of copies check.
17723 * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
17724 to vectorize the loop using SLP.
17726 2011-04-28 Jakub Jelinek <jakub@redhat.com>
17728 PR middle-end/48597
17729 * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
17732 2011-04-28 Joseph Myers <joseph@codesourcery.com>
17734 * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
17735 *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
17736 (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
17737 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
17738 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
17740 * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
17741 * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
17742 * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
17743 * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
17744 * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
17745 * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
17747 * config/i386/linux.h (REG_NAME): Don't define.
17748 * config/i386/linux64.h (REG_NAME): Don't define.
17749 * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
17750 Undefine before defining.
17752 2011-04-28 Jan Hubicka <jh@suse.cz>
17754 * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
17755 nonconstant_names array.
17756 (estimate_function_body_sizes): Build nonconstant_names array; handle
17757 BUILT_IN_CONSTANT_P.
17759 2011-04-28 Richard Guenther <rguenther@suse.de>
17763 2011-04-28 Richard Guenther <rguenther@suse.de>
17765 * tree-ssa-structalias.c (solve_constraints): Build succ graph
17766 as late as possible.
17768 2011-04-28 Richard Guenther <rguenther@suse.de>
17770 * tree-ssa-structalias.c (dump_constraint): Don't end the line.
17771 (debug_constraint): Do it here.
17772 (dump_constraints): And here.
17773 (rewrite_constraints): And here.
17774 (dump_constraint_edge): Remove.
17775 (dump_constraint_graph): Rewrite to produce DOT output.
17776 (solve_constraints): Build succ graph as late as possible.
17777 Dump constraint graphs before and after solving.
17779 2011-04-28 Richard Guenther <rguenther@suse.de>
17781 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
17782 New function split out from ...
17783 (find_func_aliases): ... here. Call it.
17784 (find_func_aliases_for_call): Likewise.
17786 2011-04-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
17788 * internal-fn.h (internal_fn_name_array): Declare.
17789 (internal_fn_flags_array): Likewise.
17791 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
17793 * config/i386/i386.md (ssemodesuffix): Merge with ssevecsize,
17794 ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
17796 (ssemodefsuffix): Remove.
17797 (ssevecmodesuffix): New mode attribute.
17798 (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
17799 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
17800 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
17801 *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
17802 *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
17803 *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
17804 *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
17805 ssemodesuffix mode attribute.
17806 (float splitters): Use ssevecmodesuffix mode attribute.
17807 * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
17808 (sseinsmode): Rename from avxvecmode.
17809 (avxsizesuffix): Rename from avxmodesuffix.
17810 (sseintvecmode): Rename from avxpermvecmode.
17811 (ssedoublevecmode): Rename from ssedoublesizemode.
17812 (ssehalfvecmode): Rename from avxhalfvecmode.
17813 (ssescalarmode): Rename from avxscalarmode.
17814 (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
17815 templates for ssemodesuffix mode attribute.
17816 (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
17819 Adjust RTX patterns globally for renamed mode attributes.
17821 2011-04-27 Jan Hubcika <jh@suse.cz>
17823 * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
17824 * ipa-inline-analysis.c: Include alloc-pool.h.
17825 (edge_predicate_pool): New.
17826 (trye_predicate_p): New function
17827 (false_predicate_p): New function.
17828 (add_clause): Sanity check that false clauses are "optimized";
17829 never add clauses to predicate that is already known to be false.
17830 (and_predicate): Use flase_predicate_p.
17831 (evaulate_predicate): Rename to ...
17832 (evaluate_predicate): ... this one; update all callers; assert
17833 that false is not listed among possible truths.
17834 (dump_predicate): Use true_predicate_p.
17835 (account_size_time): Use false_predicate_p.
17836 (evaulate_conditions_for_edge): Rename to ...
17837 (evaluate_conditions_for_edge) ... this one.
17838 (edge_set_predicate): New function.
17839 (inline_edge_duplication_hook): Duplicate edge predicates.
17840 (inline_edge_removal_hook): Free edge predicates.
17841 (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
17842 (dump_inline_summary): Update.
17843 (estimate_function_body_sizes): Set edge predicates.
17844 (estimate_calls_size_and_time): Handle predicates.
17845 (estimate_callee_size_and_time): Update.
17846 (remap_predicate): Add toplev_predicate; update comment.
17847 (remap_edge_predicates): New function.
17848 (inline_merge_summary): Compute toplev predicate; update.
17849 (read_predicate): New function.
17850 (read_inline_edge_summary): Use it.
17851 (inline_read_section): Likewise.
17852 (write_predicate): New function.
17853 (write_inline_edge_summary): Use it.
17854 (inline_write_summary): Likewise.
17855 (inline_free_summary): Free alloc pool and edge summary vec.
17857 2011-04-27 Richard Guenther <rguenther@suse.de>
17859 * tree-ssa-structalias.c (changed_count): Remove.
17860 (changed): Use a bitmap.
17861 (unify_nodes): Adjust.
17862 (do_sd_constraint): Likewise.
17863 (do_ds_constraint): Likewise.
17864 (do_complex_constraint): Likewise.
17865 (solve_graph): Likewise.
17867 2011-04-27 Jan Hubicka <jh@suse.cz>
17869 * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
17871 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
17873 * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
17874 (avx_vperm2f128_*_operand): Ditto.
17875 * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
17876 Use avx_vpermilp_parallel in insn condition.
17877 (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
17878 Use avx_vperm2f128_parallel in insn condition.
17880 2011-04-27 Richard Guenther <rguenther@suse.de>
17882 * Makefile.in (tree-ssa-structalias.o): Remove
17883 gt-tree-ssa-structalias.h dependency.
17884 (GTFILES): Remove tree-ssa-structalias.c.
17885 * tree.c (allocate_decl_uid): New function.
17886 (make_node_stat): Use it.
17887 (copy_node_stat): Likewise.
17888 * tree.h (allocate_decl_uid): Declare.
17889 * tree-ssa-alias.h (delete_alias_heapvars): Remove.
17890 * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
17891 * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
17892 * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
17893 * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
17894 (struct heapvar_map): Likewise.
17895 (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
17896 heapvar_insert): Likewise.
17897 (make_heapvar_for): Rename to ...
17898 (make_heapvar): ... this. Simplify.
17899 (fake_var_decl_obstack): New global var.
17900 (build_fake_var_decl): New function.
17901 (make_constraint_from_heapvar): Adjust.
17902 (handle_lhs_call): Likewise.
17903 (create_function_info_for): Likewise.
17904 (intra_create_variable_infos): Likewise.
17905 (init_alias_vars): Allocate fake_var_decl_obstack.
17906 (init_alias_heapvars, delete_alias_heapvars): Remove.
17907 (compute_points_to_sets): Do not call init_alias_heapvars.
17908 (ipa_pta_execute): Likewise.
17909 (delete_points_to_sets): Free fake_var_decl_obstack.
17911 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17913 * config/spu/divmovti4.c (union qword_UTItype): New data type.
17914 (si_from_UTItype, si_to_UTItype): New functions.
17915 (__udivmodti4): Use them to implement type-punning.
17916 * config/spu/multi3.c (union qword_TItype): New data type.
17917 (si_from_TItype, si_to_TItype): New functions.
17918 (__multi3): Use them to implement type-punning.
17920 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17922 * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
17924 2011-04-27 Jan Hubicka <jh@suse.cz>
17926 * ipa-prop.c (function_insertion_hook_holder): New holder.
17927 (ipa_add_new_function): New function.
17928 (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
17929 Register/deregister holder.
17931 2011-04-27 Richard Guenther <rguenther@suse.de>
17933 PR tree-optimization/48772
17934 * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
17936 2011-04-27 Richard Guenther <rguenther@suse.de>
17938 * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
17939 TARGET_MEM_REF handling.
17941 2011-04-27 Nick Clifton <nickc@redhat.com>
17943 * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
17944 ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
17945 (REG_CLASS_NAMES): Likewise.
17946 (REG_CLASS_CONTENTS): Likewise.
17947 (EVEN_ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
17948 (ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
17949 (FEVEN_REGS): New macro. Alias for QUAD_ACC_REGS.
17950 (FPR_REGS): New macro. Alias for QUAD_ACC_REGS.
17951 (EVEN_REGS): New macro. Alias for QUAD_REGS.
17952 * config/frv/frv.c (frv_secondary_reload_class): Remove use of
17953 duplicate register classes.
17954 (frv_class_likely_spilled_p): Likewise.
17955 (frv_register_move_cost): Likewise.
17957 * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
17958 end of the regno_reg_class array.
17960 2011-04-27 Jakub Jelinek <jakub@redhat.com>
17963 * c-typeck.c (build_binary_op): Don't wrap arguments if
17964 int_operands is true.
17966 2011-04-26 Kaz Kojima <kkojima@gcc.gnu.org>
17969 * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
17970 targetm.calls.must_pass_in_stack for void type.
17972 2011-04-26 Jan Hubicka <jh@suse.cz>
17974 * cgraphbuild.c (build_cgraph_edges): Update call
17975 of cgraph_create_edge and cgraph_create_indirect_edge.
17976 * cgraph.c (cgraph_create_edge_including_clones,
17977 cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
17978 cgraph_update_edges_for_call_stmt_node): Do not take nest
17979 argument; do not initialize call_stmt_size/time.
17980 (dump_cgraph_node): Do not dump nest.
17981 (cgraph_clone_edge): Do not take loop_nest argument;
17982 do not propagate it; do not clone call_stmt_size/time.
17983 (cgraph_clone_node): Likewise.
17984 (cgraph_create_virtual_clone): Update.
17985 * cgraph.h (struct cgraph_edge): Remove
17986 call_stmt_size/call_stmt_time/loop_nest.
17987 (cgraph_create_edge, cgraph_create_indirect_edge,
17988 cgraph_create_edge_including_clones, cgraph_clone_node): Update
17990 * tree-emutls.c (gen_emutls_addr): Update.
17991 * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
17992 loop_nest; handle indirect calls, too.
17993 (clone_inlined_nodes): Do not care about updating inline summaries.
17994 * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
17995 * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
17996 stream call_stmt_size/call_stmt_time/loop_nest.
17997 * ipa-inline.c (edge_badness): Update.
17998 (ipa_inline): dump summaries after inlining.
17999 * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
18001 (inline_edge_summary): New function.
18002 * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
18003 (inline_edge_removal_hook): Handle edge summaries.
18004 (inline_edge_duplication_hook): New hook.
18005 (inline_summary_alloc): Alloc hooks.
18006 (initialize_growth_caches): Do not register removal hooks.
18007 (free_growth_caches); Do not free removal hook.
18008 (dump_inline_edge_summary): New function.
18009 (dump_inline_summary): Use it.
18010 (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
18011 (inline_update_callee_summaries): New function.
18012 (inline_merge_summary): Use it.
18013 (do_estimate_edge_time, do_estimate_edge_growth): Update.
18014 (read_inline_edge_summary): New function.
18015 (inline_read_section): Use it.
18016 (write_inline_edge_summary): New function.
18017 (inline_write_summary): Use it.
18018 (inline_free_summary): Free edge new holders.
18019 * tree-inline.c (copy_bb): Update.
18021 2011-04-26 Jason Merrill <jason@redhat.com>
18023 * tree-eh.c (lower_try_finally_switch): Create the label along with
18024 the CASE_LABEL_EXPR.
18026 2011-04-26 David S. Miller <davem@davemloft.net>
18027 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18029 * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
18030 * configure: Regenerate.
18032 2011-04-26 Michael Meissner <meissner@linux.vnet.ibm.com>
18035 * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
18037 (VEC_reduc): New code iterator and splitters for vector reduction.
18038 (VEC_reduc_name): Ditto.
18039 (VEC_reduc_rtx): Ditto.
18040 (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
18041 (reduc_<VEC_reduc_name>_v4sf): Ditto.
18043 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
18044 support for extracting SF on VSX.
18046 * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
18047 generating xscvspdp.
18048 (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
18049 (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
18050 double add, minimum, maximum vector reduction.
18051 (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
18052 (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
18053 optimize double vector reduction.
18054 (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
18056 2011-04-26 Joseph Myers <joseph@codesourcery.com>
18058 * config/fr30/fr30.h (inhibit_libc): Don't define.
18059 * config/m32r/m32r-protos.h: Correct comment.
18060 * config/v850/v850.h (GHS_default_section_names,
18061 GHS_current_section_names): Use tree, not union tree_node *.
18063 2011-04-26 Xinliang David Li <davidxl@google.com>
18065 * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
18066 * c-family/c-opts.c (c_common_handle_option): Set
18067 warn_maybe_uninitialized.
18068 * opts.c (common_handle_option): Ditto.
18069 * common.opt: New option.
18070 * tree-ssa.c (warn_uninit): Add one more parameter.
18071 (warn_uninitialized_var): Pass warning code.
18072 * tree-flow.h: Interface change.
18074 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18076 * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
18077 (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
18078 (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
18080 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18082 * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
18083 * config/mips/mips.opt (mmips-tfile): Remove.
18085 * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
18086 mips-tdump reference to ...
18087 (Specific, alpha*-dec-osf5.1): ... here. Adapt for Tru64 UNIX.
18088 * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
18089 reference by Tru64 UNIX.
18091 2011-04-26 Jakub Jelinek <jakub@redhat.com>
18094 * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
18095 is error_mark_node, set value to NULL.
18097 PR tree-optimization/48734
18098 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
18099 if return value from maybe_fold_*_comparsions isn't something
18100 the code is prepared to handle.
18102 2011-04-26 Uros Bizjak <ubizjak@gmail.com>
18104 * config/i386/predicates.md (ext_QIreg_operand): Remove extra
18106 (ext_QIreg_nomode_operands): Remove.
18107 * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
18111 2011-04-26 Andrew Stubbs <ams@codesourcery.com>
18113 * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
18115 2011-04-26 Richard Guenther <rguenther@suse.de>
18117 * c-typeck.c (build_unary_op): Do not expand array-refs via
18118 pointer arithmetic. Only adjust qualifiers for function types.
18120 2011-04-26 Richard Guenther <rguenther@suse.de>
18122 PR middle-end/48694
18123 * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
18124 * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
18125 compare the operands with OEP_CONSTANT_ADDRESS_OF. Treat trees
18126 with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
18128 2011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
18130 * doc/extend.texi: Document __underlying_type.
18132 2011-04-25 Segher Boessenkool <segher@kernel.crashing.org>
18134 * config/rs6000/titan.md (automata_option "progress"): Remove.
18136 2011-04-25 Jeff Law <law@redhat.com>
18138 * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
18140 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
18142 * system.h (ENUM_BITFIELD): Remove.
18144 2011-04-25 Maxim Kuvyrkov <maxim@codesourcery.com>
18145 Eric Botcazou <ebotcazou@adacore.com>
18147 * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
18148 for STORE_FLAG_VALUE==-1 case.
18150 2011-04-24 Richard Sandiford <richard.sandiford@linaro.org>
18153 * config/m68k/constraints.md (T): Allow PIC operands that satisfy
18154 LEGITIMATE_PIC_OPERAND_P.
18156 2011-04-24 Jan Hubicka <jh@suse.cz>
18158 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
18160 * ipa-prop.h (ipa_get_param, ipa_is_param_used,
18161 ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
18162 ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
18163 * ipa-inline-analysis.c (add_clause): Fix clause ordering.
18164 (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
18165 Sanity check predicate length.
18166 (remap_predicate): Likewise; sanity check jump functions.
18167 (inline_read_section, inline_write_summary): Sanity check
18170 2011-04-24 Paolo Carlini <paolo.carlini@oracle.com>
18173 * doc/extend.texi (Type Traits): Document __is_standard_layout,
18174 __is_literal_type, and __is_trivial; update throughout about
18175 possibly cv-qualified void types.
18177 2011-04-24 Gerald Pfeifer <gerald@pfeifer.com>
18179 * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
18180 testsuite and make it version agnostic.
18182 2011-04-22 Jan Hubicka <jh@suse.cz>
18184 * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
18186 2011-04-23 Jakub Jelinek <jakub@redhat.com>
18189 * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
18190 to VOID_TYPE even around MODIFY_EXPR.
18192 2011-04-22 Mike Stump <mikestump@comcast.net>
18194 * gensupport.c (read_md_rtx): Fix typo in comment.
18195 * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
18198 2011-04-22 Jan Hubicka <jh@suse.cz>
18200 * gengtype.c (open_base_files): Add ipa-inline.h include.
18201 * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
18202 ipa-prop.c; update all uses.
18203 * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
18204 * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
18205 merge summary of inlined function into former caller.
18206 * ipa-inline.c (max_benefit): Remove.
18207 (edge_badness): Compensate for removal of benefits.
18208 (update_caller_keys): Use
18209 reset_node_growth_cache/reset_edge_growth_cache.
18210 (update_callee_keys): Likewise.
18211 (update_all_callee_keys): Likewise.
18212 (inline_small_functions): Do not collect max_benefit; do not reset
18213 estimated_growth; call free_growth_caches and initialize_growth_caches.
18214 * ipa-inline.h (struct condition, type clause_t, struct predicate,
18215 struct size_time_entry): New structures.
18216 (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
18217 (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
18218 and estimated_growth.
18219 (edge_growth_cache_entry): New structure.
18220 (node_growth_cache, edge_growth_cache): New global vars.
18221 (estimate_growth): Turn into inline.
18222 (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
18223 initialize_growth_caches, free_growth_caches): Declare.
18224 (estimate_edge_growth): Rewrite.
18225 (estimate_edge_time): Implement as inline cache lookup.
18226 (reset_node_growth_cache, reset_edge_growth_cache): New inline
18228 (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
18229 (NUM_CONDITIONS): New constant.
18230 (predicate_conditions): New enum.
18231 (IS_NOT_CONSTANT): New constant.
18232 (edge_removal_hook_holder): New var.
18233 (node_growth_cache, edge_growth_cache): New global vars.
18234 (true_predicate, single_cond_predicate, false_predicate,
18235 not_inlined_predicate, add_condition, add_clause, and_predicates,
18236 or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
18237 dump_clause, dump_predicate, account_size_time,
18238 evaulate_conditions_for_edge): New functions.
18239 (inline_summary_alloc): Move to heap.
18240 (inline_node_removal_hook): Clear condition and entry vectors.
18241 (inline_edge_removal_hook): New function.
18242 (initialize_growth_caches, free_growth_caches): New function.
18243 (dump_inline_summary): Update.
18244 (edge_execution_predicate): New function.
18245 (will_be_nonconstant_predicate): New function.
18246 (estimate_function_body_sizes): Compute BB and constantness predicates.
18247 (compute_inline_parameters): Do not clear estimated_growth.
18248 (estimate_edge_size_and_time): New function.
18249 (estimate_calls_size_and_time): New function.
18250 (estimate_callee_size_and_time): New function.
18251 (remap_predicate): New function.
18252 (inline_merge_summary): New function.
18253 (do_estimate_edge_time): New function based on...
18254 (estimate_edge_time): ... this one.
18255 (do_estimate_edge_growth): New function.
18256 (do_estimate_growth): New function based on....
18257 (estimate_growth): ... this one.
18258 (inline_analyze_function): Analyze after deciding on jump functions.
18259 (inline_read_section): New function.
18260 (inline_read_summary): Use it.
18261 (inline_write_summary): Write all the new data.
18262 * ipa-prop.c (ipa_get_param_decl_index): Export.
18263 (ipa_lattice_from_jfunc): Move here from ipa-cp.c
18264 * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
18266 (ipa_get_lattice): Move here from ipa-cp.c
18267 * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
18268 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
18269 * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
18270 cgraph_edge_inlinable_p): Remove.
18271 * cgraphunit.c: Include ipainline.h
18272 (cgraph_process_new_functions): Update call of
18273 compute_inline_parameters.
18275 2011-04-22 Richard Guenther <rguenther@suse.de>
18277 * tree.c (build_int_cst): Properly create canonicalized integer
18279 (build_int_cst_type): Remove scary comments.
18281 2011-04-22 Xinliang David Li <davidxl@google.com>
18283 * toplev.c (process_options): Enable -Werror=coverage-mismatch
18284 by default when -Wno-error is not specified.
18285 * opts-global.c (decode_options): Remove call to
18286 control_warning_options.
18288 2011-04-22 Jakub Jelinek <jakub@redhat.com>
18290 PR tree-optimization/48717
18291 * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
18292 ~A + A optimizations use build_int_cst_type instead of build_int_cst.
18294 2011-04-22 Joseph Myers <joseph@codesourcery.com>
18296 * config/bfin/bfin-protos.h (Mmode): Don't define. Expand
18297 definition where used.
18299 2011-04-22 Jakub Jelinek <jakub@redhat.com>
18302 * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
18303 TREE_STATIC variables declared inside of some OpenMP construct.
18305 2011-04-22 Martin Jambor <mjambor@suse.cz>
18307 PR middle-end/48585
18308 * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
18310 2011-04-22 Alexander Monakov <amonakov@ispras.ru>
18313 * c-typeck.c (pop_init_level): Do not warn about initializing
18316 2011-04-22 Alan Modra <amodra@gmail.com>
18318 * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
18319 when returning call_cookie.
18320 (rs6000_function_ok_for_sibcall): Allow sibcalls via function
18321 pointers, to functions with no more vector args than the current
18322 function, and some non-local calls for ABI_V4.
18323 * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
18324 sibcall_nonlocal_aix64): Combine to ..
18325 (sibcall_nonlocal_aix<mode>): ..this. Handle function pointer calls.
18326 (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
18327 (sibcall_value_nonlocal_aix<mode>): ..likewise.
18328 (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
18329 (sibcall_value_nonlocal_sysv<mode>): Likewise. Correct call cookie
18331 * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
18332 sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
18333 sibcall_value_symbolic_64): Delete.
18335 2011-04-21 Xinliang David Li <davidxl@google.com>
18337 * cgraph.h: Remove pid.
18338 * cgraph.c: Remove pid.
18339 * value-prof.c (init_node_map): New function.
18340 (del_node_map): New function.
18341 (find_func_by_funcdef_no): New function.
18342 (gimple_ic_transform): Call new function.
18343 * cgraphunit.c (cgraph_finalize_function): Remove pid.
18344 * function.c (get_last_funcdef_no): New function.
18345 * function.h (get_last_funcdef_no): New function.
18346 * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
18347 to libgcov function.
18348 (tree-profiling): Call node map init and delete function.
18350 2011-04-21 Ian Lance Taylor <iant@google.com>
18352 * godump.c (go_format_type): Use exported Go name for anonymous
18355 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
18357 * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
18358 Call builtin_function_type_list instead of builtin_function_type.
18359 (UNARY, BINARY, TRINARY, QUAD): Likewise.
18361 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
18363 * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
18364 build_function_type_list instead of build_function_type.
18365 Delete variable `endlink'.
18367 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
18369 * config/s390/s390.c (s390_init_builtins): Call
18370 build_function_type_list instead of build_function_type.
18372 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
18374 * config/ia64/ia64.c (ia64_init_builtins): Call
18375 build_function_type_list instead of builtin_function_type.
18377 2011-04-21 Easwaran Raman <eraman@google.com>
18379 * cfgexpand.c (stack_var): Remove OFFSET...
18380 (add_stack_var): ...and its reference here...
18381 (expand_stack_vars): ...and here.
18382 (stack_var_cmp): Sort by descending order of size.
18383 (partition_stack_vars): Change heuristic.
18384 (union_stack_vars): Fix to reflect changes in partition_stack_vars.
18385 (dump_stack_var_partition): Add newline after each partition.
18387 2011-04-21 Dimitrios Apostolou <jimis@gmx.net>
18388 Jeff Law <law@redhat.com>
18390 * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
18391 * gengtype.c (matching_file_name_substitute): Likewise.
18393 2011-04-21 Richard Guenther <rguenther@suse.de>
18396 * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
18398 2011-04-21 Eric Botcazou <ebotcazou@adacore.com>
18400 * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
18402 2011-04-21 Richard Guenther <rguenther@suse.de>
18404 * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
18407 2011-04-21 Richard Guenther <rguenther@suse.de>
18409 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
18410 MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
18411 Use DECL_P, not SSA_VAR_P.
18412 (ptr_derefs_may_alias_p): Likewise.
18413 (ptr_deref_may_alias_ref_p_1): Likewise.
18414 (decl_refs_may_alias_p): Likewise.
18415 (refs_may_alias_p_1): Likewise.
18416 (ref_maybe_used_by_call_p_1): Likewise.
18417 (call_may_clobber_ref_p_1): Likewise.
18418 (indirect_ref_may_alias_decl_p): Assume indirect refrences
18419 are either MEM_REF or TARGET_MEM_REF.
18420 (indirect_refs_may_alias_p): Likewise.
18421 * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
18422 for MEM_EXPR of indirect calls.
18424 2011-04-21 Tristan Gingold <gingold@adacore.com>
18426 * vmsdbgout.c (write_srccorr): Compute file length from the string.
18427 (dst_file_info_struct): Remove flen field.
18428 (lookup_filename): Remove code that set flen field.
18430 2011-04-21 Tristan Gingold <gingold@adacore.com>
18432 * config/ia64/ia64.c (ia64_start_function): Add a guard.
18434 2011-04-21 Uros Bizjak <ubizjak@gmail.com>
18437 * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
18438 vec_extract and vec_concat for non-SSE4_1 targets.
18440 2011-04-21 Richard Guenther <rguenther@suse.de>
18442 * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
18445 2011-04-21 Joseph Myers <joseph@codesourcery.com>
18447 * config/i386/cygming.h (union tree_node, TREE): Don't define or
18449 (FILE): Don't undefine.
18451 2011-04-21 Joseph Myers <joseph@codesourcery.com>
18453 * config/alpha/alpha.c (struct machine_function): Use rtx, not
18455 * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
18457 * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
18458 * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
18459 * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
18461 * config/m32c/m32c-protos.h (MM, UINT): Don't define. Expand
18462 definitions where used.
18463 * config/microblaze/microblaze.h (struct microblaze_args): Use
18464 rtx, not struct rtx_def *.
18465 * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
18467 * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
18468 * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
18469 * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
18470 not struct rtx_def *.
18471 * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
18473 * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
18475 * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
18477 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
18479 * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
18480 operand_equal_p to compare DR_BASE_ADDRESSes.
18481 (vect_check_interleaving): Likewise.
18483 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
18486 * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
18487 for all Neon struct constants.
18489 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
18491 * target.def (legitimate_constant_p): New hook.
18492 * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
18493 (TARGET_LEGITIMATE_CONSTANT_P): ...this.
18494 * doc/tm.texi: Regenerate.
18495 * hooks.h (hook_bool_mode_rtx_true): Declare.
18496 * hooks.c (hook_bool_mode_rtx_true): Define.
18497 * system.h (LEGITIMATE_CONSTANT_P): Poison.
18498 * calls.c (precompute_register_parameters): Replace uses of
18499 LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
18500 (emit_library_call_value_1): Likewise.
18501 * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
18502 (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
18503 * ira-costs.c (scan_one_insn): Likewise.
18504 * recog.c (general_operand, immediate_operand): Likewise.
18505 * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
18506 * reload1.c (init_eliminable_invariants): Likewise.
18508 * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
18510 * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
18511 * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
18513 (TARGET_LEGITIMATE_CONSTANT_P): Define.
18514 * config/alpha/predicates.md (input_operand): Update call to
18515 alpha_legitimate_constant_p.
18517 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
18518 * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
18519 (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
18520 * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
18521 (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
18522 (arm_legitimate_constant_p): New functions.
18523 (arm_cannot_force_const_mem): Make static.
18525 * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
18527 * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
18528 * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
18529 * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
18530 instead of bfin_legitimate_constant_p.
18531 (bfin_legitimate_constant_p): Make static. Add a mode argument.
18532 (TARGET_LEGITIMATE_CONSTANT_P): Define.
18534 * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
18536 * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
18538 * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
18539 * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
18540 * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
18541 (frv_legitimate_constant_p): Make static. Add a mode argument.
18543 * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
18544 * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
18545 * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
18547 * config/i386/i386-protos.h (legitimate_constant_p): Delete.
18548 * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
18549 * config/i386/i386.c (legitimate_constant_p): Rename to...
18550 (ix86_legitimate_constant_p): ...this. Make static. Add a mode
18552 (ix86_cannot_force_const_mem): Update accordingly.
18553 (ix86_legitimate_address_p): Likewise.
18554 (TARGET_LEGITIMATE_CONSTANT_P): Define.
18555 * config/i386/i386.md: Update commentary.
18557 * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
18558 * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
18559 * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
18560 (ia64_legitimate_constant_p): Make static. Add a mode argument.
18562 * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
18564 * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
18565 * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
18566 * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
18567 (lm32_legitimate_constant_p): Make static. Add a mode argument.
18569 * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
18570 * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
18571 * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
18573 * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
18574 * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
18575 (m32r_legitimate_constant_p): New function.
18577 * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
18578 * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
18579 LEGITIMATE_CONSTANT_P.
18580 (LEGITIMATE_CONSTANT_P): Delete.
18581 * config/m68k/m68k.c (m68k_expand_prologue): Call
18582 m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
18583 (m68k_legitimate_constant_p): New function.
18584 * config/m68k/m68k.md: Update comments.
18586 * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
18587 * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
18588 (mcore_legitimate_constant_p): New function.
18590 * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
18591 * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
18592 * config/mep/mep.c (mep_legitimate_constant_p): Make static.
18593 Add a mode argument.
18594 (mep_legitimate_address): Update accordingly.
18595 (TARGET_LEGITIMATE_CONSTANT_P): Define.
18597 * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
18599 * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
18600 * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
18601 static. Check OP's mode for VOIDmode.
18602 (microblaze_legitimate_constant_p): New function.
18603 (TARGET_LEGITIMATE_CONSTANT_P): Define.
18605 * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
18606 * config/mips/mips.c (mips_legitimate_constant_p): New function.
18607 (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
18608 (TARGET_LEGITIMATE_CONSTANT_P): Define.
18609 * config/mips/predicates.md: Update comments.
18611 * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
18612 * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
18613 * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
18614 (mmix_legitimate_constant_p): Make static, return a bool, and take
18616 (mmix_print_operand_address): Update accordingly.
18618 * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
18620 * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
18621 * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
18622 static. Add a mode argument.
18623 (TARGET_LEGITIMATE_CONSTANT_P): Define.
18625 * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
18627 * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
18628 * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
18629 (pa_legitimate_constant_p): New function.
18631 * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
18633 * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
18634 * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
18635 (pdp11_legitimate_constant_p): New function.
18637 * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
18638 * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
18639 (rs6000_legitimate_constant_p): New function.
18641 * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
18642 (rx_legitimate_constant_p): ...this.
18643 * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
18644 * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
18645 (rx_legitimate_constant_p): ...this.
18646 (TARGET_LEGITIMATE_CONSTANT_P): Define.
18647 * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
18649 * config/s390/s390-protos.h (legitimate_constant_p): Delete.
18650 * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
18651 * config/s390/s390.c (legitimate_constant_p): Rename to...
18652 (s390_legitimate_constant_p): ...this. Make static, return a bool,
18653 and add a mode argument.
18654 (TARGET_LEGITIMATE_CONSTANT_P): Define.
18656 * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
18658 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
18659 * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
18660 (sh_legitimate_constant_p): New function.
18662 * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
18663 * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
18664 * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
18665 (legitimate_constant_p): Rename to...
18666 (sparc_legitimate_constant_p): ...this. Make static. Add a mode
18668 (constant_address_p): Update accordingly.
18670 * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
18671 argument and return a bool.
18672 * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
18673 * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
18674 (spu_legitimate_constant_p): Add a mode argument and return a bool.
18675 (spu_rtx_costs): Update accordingly.
18676 * config/spu/predicates.md (vec_imm_operand): Likewise.
18678 * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
18680 * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
18681 * config/v850/v850.c (v850_legitimate_constant_p): New function.
18682 (TARGET_LEGITIMATE_CONSTANT_P): Define.
18684 * config/vax/vax-protos.h (legitimate_constant_p): Delete.
18685 * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
18686 * config/vax/vax.c (legitimate_constant_p): Likewise.
18688 * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
18689 * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
18690 (xtensa_legitimate_constant_p): New function.
18692 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
18694 * target.def (cannot_force_const_mem): Add a mode argument.
18695 * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
18696 * doc/tm.texi: Regenerate.
18697 * hooks.h (hook_bool_mode_rtx_false): Declare.
18698 * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
18699 (hook_bool_mode_const_rtx_true): Likewise.
18700 (hook_bool_mode_rtx_false): New function.
18701 * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
18702 to be non-VOID. Update call to cannot_force_const_mem.
18703 (find_reloads): Update accordingly.
18704 * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
18705 * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
18707 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
18708 * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
18709 * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
18710 * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
18711 * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
18712 * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
18713 * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
18714 * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
18715 (m68k_cannot_force_const_mem): ...this new function.
18716 * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
18718 (mips_const_insns, mips_legitimize_const_move): Update calls.
18719 (mips_secondary_reload_class): Likewise.
18720 * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
18721 (pa_cannot_force_const_mem): ...this new function.
18722 * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
18723 (rs6000_cannot_force_const_mem): ...this new function.
18724 * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
18726 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
18727 * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
18729 (xtensa_cannot_force_const_mem): ...this new function.
18731 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
18733 * config/mips/mips.c (mips16_build_function_stub): Call
18734 build_function_type_list instead of build_function_type.
18735 (mips16_build_call_stub): Likewise.
18737 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
18739 * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
18740 instead of build_function_type.
18742 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
18744 * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
18745 instead of build_function_type.
18747 2011-04-20 Uros Bizjak <ubizjak@gmail.com>
18750 * config/i386/i386.md (insv): Change operand 0 constraint to
18751 "register_operand". Change operand 1 and 2 constraint to
18752 "const_int_operand". Expand to pinsr{b,w,d,q} * when appropriate.
18753 * config/i386/sse.md (sse4_1_pinsrb): Export.
18754 (sse2_pinsrw): Ditto.
18755 (sse4_1_pinsrd): Ditto.
18756 (sse4_1_pinsrq): Ditto.
18757 * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
18758 * config/i386/i386.c (ix86_expand_pinsr): New.
18760 2011-04-20 Easwaran Raman <eraman@google.com>
18762 * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
18763 containing union type only with -fstrict-aliasing.
18765 2011-04-20 Jim Meyering <meyering@redhat.com>
18767 Remove useless if-before-free tests.
18768 * calls.c (expand_call, save_area): Likewise.
18769 * cfgcleanup.c (try_forward_edges): Likewise.
18770 * collect2.c (collect_execute): Likewise.
18771 * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
18772 * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
18773 * coverage.c (coverage_checksum_string): Likewise.
18774 * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
18775 * cselib.c (cselib_init): Likewise.
18776 * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
18777 (df_set_clean_cfg): Likewise.
18778 * function.c (free_after_compilation): Likewise.
18779 * gcc.c (do_spec_1, main): Likewise.
18780 * gcov.c (create_file_names): Likewise.
18781 * gensupport.c (identify_predicable_attribute): Likewise.
18782 * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
18783 * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
18784 * haifa-sched.c (haifa_finish_h_i_d): Likewise.
18785 * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
18786 * ipa-pure-const.c (local_pure_const): Likewise.
18787 * ipa-reference.c (propagate): Likewise.
18788 * ira-costs.c (free_ira_costs): Likewise.
18789 * ira.c (free_register_move_costs, build_insn_chain): Likewise.
18790 * matrix-reorg.c (mat_free): Likewise.
18791 * prefix.c (get_key_value): Likewise.
18792 * profile.c (compute_value_histograms): Likewise.
18793 * reload1.c (free_reg_equiv): Likewise.
18794 * sched-deps.c (free_deps): Likewise.
18795 * sel-sched-ir.c (fence_clear): Likewise.
18796 * sese.c (set_rename, if_region_set_false_region): Likewise.
18797 * tree-data-ref.c (free_rdg): Likewise.
18798 * tree-eh.c (lower_try_finally): Likewise.
18799 * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
18800 * tree-ssa-live.c (delete_var_map): Likewise.
18801 * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
18802 * tree-ssa-pre.c (phi_trans_add): Likewise.
18804 2011-04-20 Jakub Jelinek <jakub@redhat.com>
18806 PR tree-optimization/48611
18807 * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
18808 beyond ERT_MUST_NOT_THROW region.
18810 2011-04-20 Catherine Moore <clm@codesourcery.com>
18812 * config/mips/mips.opt (mfix-24k): New.
18813 * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
18814 * config/mips/mips.md (length): Increase by 4 for stores if
18816 * config/mips/mips.c (mips_reorg_process_insns): Do not allow
18817 all noreorder if fixing 24K errata.
18818 * doc/invoke.texi: Document mfix-24k.
18820 2011-04-20 Chung-Lin Tang <cltang@codesourcery.com>
18822 * config/arm/arm.c (arm_legitimize_reload_address): For NEON
18823 quad-word modes, reduce to 9-bit index range when above 1016 limit.
18825 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
18827 * config/arm/arm.c (arm_gen_constant): Move movw support ....
18828 (const_ok_for_op): ... to here.
18830 2011-04-20 Kai Tietz <ktietz@redhat.com>
18832 * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
18833 and (X && !Y) | (!X && Y) optimization to (X ^ Y).
18835 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
18837 * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
18839 2011-04-20 Richard Guenther <rguenther@suse.de>
18841 PR tree-optimization/47892
18842 * tree-if-conv.c (if_convertible_stmt_p): Const builtins
18843 are if-convertible.
18845 2011-04-20 Eric Botcazou <ebotcazou@adacore.com>
18847 * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
18849 2011-04-20 Tristan Gingold <gingold@adacore.com>
18851 * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
18853 2011-04-20 Georg-Johann Lay <avr@gjlay.de>
18857 * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
18858 (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
18859 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
18860 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
18861 (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
18863 * config/avr/avr-protos.h (avr_asm_output_aligned_common):
18866 * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
18867 (avr_asm_named_section, avr_asm_output_aligned_common,
18868 avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
18869 New functions to update...
18870 (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
18871 (avr_asm_init_sections): Overwrite section callbacks for
18872 data_section, bss_section.
18873 (avr_file_start): Move output of __do_copy_data, __do_clear_bss
18875 (avr_file_end): ...here.
18877 2011-04-20 Richard Guenther <rguenther@suse.de>
18879 PR middle-end/48695
18880 * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
18881 objects and types here. Adjust for their offset before comparing.
18883 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
18885 * tree-vect-stmts.c (vectorizable_store): Only chain one related
18886 statement per copy.
18888 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
18890 * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
18891 (GIMPLE_H): Include $(INTERNAL_FN_H).
18892 (OBJS-common): Add internal-fn.o.
18893 (internal-fn.o): New rule.
18894 * internal-fn.def: New file.
18895 * internal-fn.h: Likewise.
18896 * internal-fn.c: Likewise.
18897 * gimple.h: Include internal-fn.h.
18898 (GF_CALL_INTERNAL): New gf_mask.
18899 (gimple_statement_call): Put fntype into a union with a new
18901 (gimple_build_call_internal): Declare.
18902 (gimple_build_call_internal_vec): Likewise.
18903 (gimple_call_same_target_p): Likewise.
18904 (gimple_call_internal_p): New function.
18905 (gimple_call_internal_fn): Likewise.
18906 (gimple_call_fntype): Return null for internal calls.
18907 (gimple_call_set_fntype): Assert that the function is not internal.
18908 (gimple_call_set_fn): Likewise.
18909 (gimple_call_set_fndecl): Likewise.
18910 (gimple_call_set_internal_fn): New function.
18911 (gimple_call_addr_fndecl): Handle null functions.
18912 (gimple_call_return_type): Likewise null types.
18913 * gimple.c (gimple_build_call_internal_1): New function.
18914 (gimple_build_call_internal): Likewise.
18915 (gimple_build_call_internal_vec): Likewise.
18916 (gimple_call_same_target_p): Likewise.
18917 (gimple_call_flags): Handle calls to internal functions.
18918 (gimple_call_fnspec): New function.
18919 (gimple_call_arg_flags, gimple_call_return_flags): Use it.
18920 (gimple_has_side_effects): Handle null functions.
18921 (gimple_rhs_has_side_effects): Likewise.
18922 (gimple_call_copy_skip_args): Handle calls to internal functions.
18923 * cfgexpand.c (expand_call_stmt): Likewise.
18924 * expr.c (expand_expr_real_1): Assert that the call isn't internal.
18925 * gimple-fold.c (gimple_fold_call): Handle null functions.
18926 (gimple_fold_stmt_to_constant_1): Don't fold
18927 calls to internal functions.
18928 * gimple-low.c (gimple_check_call_args): Handle calls to internal
18930 * gimple-pretty-print.c (dump_gimple_call): Likewise.
18931 * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
18932 * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
18933 (do_warn_unused_result): Likewise.
18934 * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
18935 * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
18936 * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
18937 the target of a call.
18938 (initialize_hash_element): Update accordingly.
18939 (hashable_expr_equal_p): Use gimple_call_same_target_p.
18940 (iterative_hash_hashable_expr): Handle calls to internal functions.
18941 (print_expr_hash_elt): Likewise.
18942 * tree-ssa-pre.c (can_value_number_call): Likewise.
18943 (eliminate): Handle null functions.
18944 * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
18945 * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
18946 (find_func_aliases): Likewise.
18947 * value-prof.c (gimple_ic_transform): Likewise.
18948 (gimple_indirect_call_to_profile): Likewise.
18949 * lto-streamer-in.c (input_gimple_stmt): Likewise.
18950 * lto-streamer-out.c (output_gimple_stmt): Likewise.
18952 2011-04-19 Jan Hubicka <jh@suse.cz>
18954 * ipa-inline-transform.c (save_inline_function_body): Add comments.
18955 * ipa-inline.c (inline_small_functions): Compute summaries first,
18956 populate heap later.
18958 2011-04-19 Jan Hubicka <jh@suse.cz>
18960 * cgraph.h (save_inline_function_body): Remove.
18961 * ipa-inline-transform.c: New file, broke out of...
18962 * ipa-inline.c: ... this one; Update toplevel comment.
18963 (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
18965 (update_noncloned_frequencies): Move to ipa-inline-transform.c
18966 (cgraph_mark_inline_edge): Rename to inline_call; move to
18967 ipa-inline-transform.c.
18968 (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
18969 move to ipa-inline-transform.c
18970 (recursive_inlining, inline_small_functions, flatten_function,
18971 ipa_inline, inline_always_inline_functions,
18972 early_inline_small_functions): Update.
18973 (inline_transform): Move to ipa-inline-transform.c.
18974 * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
18976 * Makefile.in (ipa-inline-transform.o): New file.
18977 * cgraphunit.c (save_inline_function_body): Move to
18978 ipa-inline-transform.c
18980 2011-04-19 DJ Delorie <dj@redhat.com>
18982 * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
18983 registers if we already know there aren't any.
18984 (m32c_emit_epilogue): Don't emit a barrier here.
18985 (m32c_emit_eh_epilogue): Likewise.
18986 * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
18987 operands at expand time.
18988 * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
18990 (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
18991 duplicates. Provide aliases instead.
18992 * config/m32c/prologue.md (eh_return): Emit a barrier here.
18993 (eh_epilogue): Add a "(return)" here as a hint to other parts of
18996 2011-04-19 Anatoly Sokolov <aesok@post.ru>
18998 * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
18999 * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
19000 (general_or_i64_p, sparc_register_move_cost): New function.
19002 2011-04-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19004 * doc/install.texi (Configuration, --enable-threads): Remove mach.
19005 Add lynx, mipssde. Sort table.
19007 2011-04-19 Xinliang David Li <davidxl@google.com>
19009 * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
19012 2011-04-19 Jakub Jelinek <jakub@redhat.com>
19015 * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
19016 is a SUBREG with non-MODE_INT mode inside of it.
19018 2011-04-19 Martin Jambor <mjambor@suse.cz>
19020 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
19021 also according to actual contants.
19022 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
19023 (gimple_fold_call): Use it.
19024 * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
19026 2011-04-19 Martin Jambor <mjambor@suse.cz>
19028 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
19029 non-pointer assignments.
19031 2011-04-19 Martin Jambor <mjambor@suse.cz>
19033 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
19034 account anc_offset and otr_type from the indirect edge info.
19035 * ipa-prop.c (get_ancestor_addr_info): New function.
19036 (compute_complex_ancestor_jump_func): Assignment analysis moved to
19037 get_ancestor_addr_info, call it.
19038 (ipa_note_param_call): Do not initialize information about polymorphic
19039 calls, return the indirect call graph edge. Remove the last
19040 parameter, adjust all callers.
19041 (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
19042 parameters. Initialize polymorphic information in the indirect edge.
19044 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
19047 * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
19048 the types if they have different enumeration identifiers.
19050 2011-04-19 Jan Hubicka <jh@suse.cz>
19052 * cgraph.h (cgraph_optimize_for_size_p): Declare.
19053 * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
19054 * predict.c (cgraph_optimize_for_size_p): Break out from ...
19055 (optimize_function_for_size_p) ... here.
19057 2011-04-19 Richard Guenther <rguenther@suse.de>
19060 * tree.c (free_lang_data): Do not reset the decl-assembler-name
19063 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
19065 * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
19066 if DECL_NO_INLINE_WARNING_P is set on the function.
19068 2011-04-19 Bernd Schmidt <bernds@codesourcery.com>
19071 * reload1.c (inc_for_reload): Return void. All callers changed.
19072 (emit_input_reload_insns): Don't try to delete previous output
19073 reloads to a register, or record spill_reg_store for autoincs.
19075 2011-04-19 Basile Starynkevitch <basile@starynkevitch.net>
19077 * gengtype.h: Updated copyright year.
19078 (struct input_file_st): Add inpisplugin field.
19079 (type_fileloc): New function.
19081 (write_typed_struct_alloc_def): Add gcc_assert.
19082 (write_typed_alloc_defns): Ditto. Don't output for plugin files.
19083 (write_typed_alloc_defns): Don't output for plugin files.
19084 (input_file_by_name): Clear inpisplugin field.
19085 (main): Set inpisplugin field for plugin files.
19087 2011-04-19 Nicola Pero <nicola.pero@meta-innovation.com>
19089 * gengtype-state.c (string_eq): New.
19090 (read_state): Use string_eq instead of strcmp when creating the
19093 2011-04-19 Wei Guozhi <carrot@google.com>
19096 * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
19097 * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
19099 * config/arm/constraints.md (Uu): New constraint.
19100 * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
19102 2011-04-19 Tristan Gingold <gingold@adacore.com>
19104 * config.gcc (-*-*-*vms): Added.
19105 (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
19107 * config/vms/vms-ld.c: New file.
19108 * config/vms/vms-ar.c: New file.
19109 * config/vms/t-vmsnative: New file.
19111 2011-04-18 Xinliang David Li <davidxl@google.com>
19113 * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
19115 2011-04-18 Jakub Jelinek <jakub@redhat.com>
19117 PR middle-end/48661
19118 * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
19119 if TREE_TYPE (v) is non-NULL.
19121 * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
19122 gimple_get_virt_mehtod_for_binfo.
19123 * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
19124 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
19126 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
19128 2011-04-18 Michael Matz <matz@suse.de>
19129 Steve Ellcey <sje@cup.hp.com>
19131 * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
19132 use its mode as source mode if it isn't VOIDmode.
19134 2011-04-18 Dennis, CHENG Renquan <crquan@fedoraproject.org>
19136 * doc/passes.texi: Fill crossref nodes.
19138 2011-04-18 Jim Meyering <meyering@redhat.com>
19140 Fix doubled-word typos in comments and strings
19141 * config/alpha/vms-unwind.h: s/for for/for/
19142 * config/arm/unwind-arm.h: Likewise.
19143 * config/microblaze/microblaze.c: Likewise.
19144 * config/sh/constraints.md: s/in in/in/
19145 * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
19147 2011-04-18 Uros Bizjak <ubizjak@gmail.com>
19149 * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
19150 (AVX_FLOAT_MODE_P): Ditto.
19151 (AVX128_VEC_FLOAT_MODE_P): Ditto.
19152 (AVX256_VEC_FLOAT_MODE_P): Ditto.
19153 (AVX_VEC_FLOAT_MODE_P): Ditto.
19154 * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
19155 (UNSPEC_MASKSTORE): Ditto.
19156 * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
19157 Merge from <sse>_movmsk<ssemodesuffix> and
19158 avx_movmsk<ssemodesuffix>256. Use VF mode iterator.
19159 (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64. Use P mode
19161 (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
19162 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
19163 (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
19165 2011-04-18 Jan Hubicka <jh@suse.cz>
19167 * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
19169 * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
19170 (want_inline_function_called_once_p): Break out the logic from
19172 (edge_badness): Ensure that profile is not misupdated.
19173 (lookup_recursive_calls): Prioritize by call frequencies.
19174 (inline_small_functions): Move program size estimates here;
19175 actually process whole queue even when unit growth has been
19176 met. (to properly compute inline_failed reasons and for the
19177 case unit size decrease.) Revisit comments on recursive inlining.
19178 (ipa_inline): Remove unit summary code; first inline hot calls
19179 of functions called once, cold calls next.
19180 (order, nnodes): Remove unused variables.
19181 * Makefile.in (ipa-inline.o): No longer depent on ggc files.
19182 (GTFILES): Remove ipa-inline.c
19183 * sel-sched.c (fill_insns): Silence uninitialized var warning.
19185 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
19187 * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
19189 2011-04-18 Jie Zhang <jie@codesourcery.com>
19190 Richard Earnshaw <rearnsha@arm.com>
19192 * arm.c (neon_builtin_type_bits): Remove.
19193 (typedef enum neon_builtin_mode): New.
19194 (T_MAX): Don't define.
19195 (typedef enum neon_builtin_datum): Remove bits, codes[],
19196 num_vars and base_fcode. Add mode, code and fcode.
19197 (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
19198 VAR10): Change accordingly.
19199 (neon_builtin_data[]): Change accordingly
19200 (arm_init_neon_builtins): Change accordingly.
19201 (neon_builtin_compare): Remove.
19202 (locate_neon_builtin_icode): Remove.
19203 (arm_expand_neon_builtin): Change accordingly.
19205 * arm.h (enum arm_builtins): Move to ...
19206 * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
19208 * arm.c (arm_builtin_decl): Declare.
19209 (TARGET_BUILTIN_DECL): Define.
19210 (enum arm_builtins): Correct ARM_BUILTIN_MAX.
19211 (arm_builtin_decls[]): New.
19212 (arm_init_neon_builtins): Store builtin declarations in
19213 arm_builtin_decls[].
19214 (arm_init_tls_builtins): Likewise.
19215 (arm_init_iwmmxt_builtins): Likewise. Refactor initialization code.
19216 (arm_builtin_decl): New.
19218 2011-04-18 Richard Guenther <rguenther@suse.de>
19220 * tree.c (upper_bound_in_type): Build properly canonicalized
19222 (lower_bound_in_type): Likewise.
19224 2011-04-18 Richard Guenther <rguenther@suse.de>
19226 * gimple.h (gimple_call_addr_fndecl): New function.
19227 (gimple_call_fndecl): Use it.
19228 * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
19230 * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
19231 * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
19233 2011-04-18 Richard Guenther <rguenther@suse.de>
19235 PR middle-end/48650
19236 * tree.c (build_string): STRING_CST is now derived from tree_typed.
19238 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
19241 * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
19242 DECL_IN_CONSTANT_POOL without RTL.
19244 2011-04-18 Ulrich Weigand <ulrich.weigand@linaro.org>
19245 Ira Rosen <ira.rosen@linaro.org>
19248 * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
19249 to match neon_vzip/vuzp/vtrn_internal.
19250 * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
19251 outputs explicitly dependent on both inputs.
19252 (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
19254 2011-04-18 Jakub Jelinek <jakub@redhat.com>
19256 PR tree-optimization/48616
19257 * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
19258 whether the shift is by scalar or vector based on whether all SLP
19259 scalar stmts have the same rhs.
19261 2011-04-17 Chung-Lin Tang <cltang@codesourcery.com>
19263 * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
19266 2011-04-17 Richard Sandiford <rdsandiford@googlemail.com>
19269 * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
19272 2011-04-17 Jan Hubicka <jh@suse.cz>
19274 * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
19275 * cgrpahunit.c (cgraph_finalize_function): Do not set
19276 finalized_by_frontend.
19277 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
19278 finalized_by_frontend.
19280 2011-04-17 Jan Hubicka <jh@suse.cz>
19282 * cgraph.c (cgraph_clone_node): Do not handle vtable_method
19283 * cgraph.h (struct cgraph_local_info): Drop vtable_method.
19284 * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
19285 * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
19287 * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
19289 * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
19291 2011-04-17 Eric Botcazou <ebotcazou@adacore.com>
19294 * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
19295 is non-null before accessing it.
19296 (input_cgraph): Remove trailing spaces.
19298 2011-04-17 Revital Eres <revital.eres@linaro.org>
19300 * params.def (sms-min-sc): New param flag.
19301 * modulo-sched.c (sms_schedule): Use it.
19302 * doc/invoke.texi (sms-min-sc): Document it.
19304 2011-04-17 Jan Hubicka <jh@suse.cz>
19306 * lto-symtab.c (lto_cgraph_replace_node): When call statement is
19307 present, also set gimple_call_set_cannot_inline.
19308 * ipa-inline.c: Update toplevel comment.
19309 (MAX_TIME): Remove.
19310 (cgraph_clone_inlined_nodes): Fix linebreaks.
19311 (cgraph_check_inline_limits): Restructure to ...
19312 (caller_growth_limits): ... this one; be more tolerant
19313 on growth in nested inline chains; add explanatory comment;
19314 fix stack accounting thinko introduced by previous patch.
19315 (cgraph_default_inline_p): Remove.
19316 (report_inline_failed_reason): New function.
19317 (can_inline_edge_p): New function.
19318 (can_early_inline_edge_p): New function.
19319 (leaf_node_p): Move upwards in file.
19320 (want_early_inline_function_p): New function.
19321 (want_inline_small_function_p): New function.
19322 (want_inline_self_recursive_call_p): New function.
19323 (cgraph_edge_badness): Rename to ...
19324 (edge_badness) ... this one; fix linebreaks.
19325 (update_edge_key): Update call of edge_baddness; add
19326 detailed dump about queue updates.
19327 (update_caller_keys): Use can_inline_edge_p and
19328 want_inline_small_function_p.
19329 (cgraph_decide_recursive_inlining): Rename to...
19330 (recursive_inlining): Use can_inline_edge_p and
19331 want_inline_self_recursive_call_p; simplify and remove no longer
19333 (cgraph_set_inline_failed): Remove.
19334 (add_new_edges_to_heap): Use can_inline_edge_p and
19335 want_inline_small_function_p.
19336 (cgraph_decide_inlining_of_small_functions): Rename to ...
19337 (inline_small_functions): ... this one; cleanup; use
19338 can/want predicates; cleanup debug ouput; work edges till fibheap
19339 is exhausted and do not stop once unit growth is reached; remove
19340 later loop processing remaining edges.
19341 (cgraph_flatten): Rename to ...
19342 (flatten_function): ... this one; use can_inline_edge_p
19343 and can_early_inline_edge_p predicates.
19344 (cgraph_decide_inlining): Rename to ...
19345 (ipa_inline): ... this one; remove unreachable nodes before
19346 inlining functions called once; simplify the pass.
19347 (cgraph_perform_always_inlining): Rename to ...
19348 (inline_always_inline_functions): ... this one; use
19349 DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
19350 (cgraph_decide_inlining_incrementally): Rename to ...
19351 (early_inline_small_functions): ... this one; simplify
19352 using new predicates; cleanup; make dumps prettier.
19353 (cgraph_early_inlining): Rename to ...
19354 (early_inliner): newer inline regular functions into always-inlines;
19355 fix updating of call stmt summaries.
19356 (pass_early_inline): Update for new names.
19357 (inline_transform): Fix formating.
19358 (gate_cgraph_decide_inlining): Rename to ...
19359 (pass_ipa_inline): ... this one.
19360 * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
19361 * ipa-inline-analysis.c (dump_inline_summary): Update.
19362 (compute_inline_parameters): Do not compute disregard_inline_limits;
19363 look for mismatching arguments.
19364 (estimate_growth): Fix handlig of non-trivial self recursion.
19365 (inline_read_summary): Do not read info->disregard_inline_limits.
19366 (inline_write_summary): Do not write info->disregard_inline_limits.
19367 * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
19368 and move all checks into can_inline_edge_p predicate; re-enable code
19369 comparing optimization levels.
19370 (expand_call_inline): Do not test inline_forbidden_into_p.
19371 * Makefile.in (ipa-inline.o): Update arguments.
19373 2011-04-17 Revital Eres <revital.eres@linaro.org>
19375 * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
19377 2011-04-17 Revital Eres <revital.eres@linaro.org>
19379 * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
19381 2011-04-17 Michael Matz <matz@suse.de>
19383 PR tree-optimization/48622
19385 * ipa-inline-analysis.c (inline_read_summary): Read size/time
19386 in same order as they're written.
19388 2011-04-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
19390 * config/pa/predicates.md: Reorganize and simplify predicates.
19391 Eliminate duplicate code checks.
19392 (arith_operand): Rename to arith14_operand
19393 (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
19394 * config/pa/pa.md: Use renamed operands.
19395 * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
19396 (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
19397 arith11_operand, adddi3_operand, indexed_memory_operand,
19398 symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
19399 arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
19400 borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
19401 move_dest_operand, move_src_operand, prefetch_cc_operand,
19402 prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
19403 uint32_operand, reg_before_reload_operand, reg_or_0_operand,
19404 reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
19405 div_operand, int5_operand, movb_comparison_operator,
19406 ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
19407 arith_double_operand, ireg_operand, lhs_lshift_operand,
19408 pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
19409 integer_store_memory_operand): Likewise.
19410 * config/pa/pa.c (adddi3_operand): Move to predicates.md.
19411 (integer_store_memory_operand, read_only_operand,
19412 function_label_operand, borx_reg_operand,
19413 non_hard_reg_operand): Likewise.
19414 (eq_neq_comparison_operator): Delete unused operator.
19415 (legitimize_pic_address): Use VOIDmode for mode argument in calls to
19416 function_label_operand.
19417 (emit_move_sequence): Likewise.
19419 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
19421 * config/i386/sse.md (sseunpackmode): New mode attribute.
19422 (ssepackmode): Ditto.
19423 (vec_pack_trunc_<mode>): Macroize expander from
19424 vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
19425 (vec_unpacks_lo_<mode>): Macroize expander from
19426 vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
19427 (vec_unpacks_hi_<mode>): Macroize expander from
19428 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
19429 (vec_unpacku_lo_<mode>): Macroize expander from
19430 vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
19431 (vec_unpacku_hi_<mode>): Macroize expander from
19432 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
19433 * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
19434 ix86_expand_sse4_unpack.
19435 * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
19437 2011-04-16 Jan Hubicka <jh@suse.cz>
19439 * cgraphbuild.c: Include ipa-inline.h.
19440 (reset_inline_failed): Use initialize_inline_failed.
19441 * cgraph.c: Include ipa-inline.h.
19442 (cgraph_create_node_1): Do not initialize estimated_growth.
19443 (initialize_inline_failed): More to ipa-inline-analysis.c
19444 (dump_cgraph_node): Do not dump inline flags.
19445 * cgraph.h (cgraph_local_info): Remove inlineable, versionable
19446 and disregard_inline_limits flags.
19447 (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
19448 time, size, estimated_growth.
19449 * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
19451 * cgraphunit.c (cgraph_decide_is_function_needed): Use
19452 DECL_DISREGARD_INLINE_LIMITS.
19453 (cgraph_analyze_function): Do not initialize
19454 node->local.disregard_inline_limits.
19455 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
19456 inlinable, versionable and disregard_inline_limits.
19457 * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
19458 cgraph_check_inline_limits, cgraph_default_inline_p,
19459 cgraph_edge_badness, update_caller_keys, update_callee_keys,
19460 add_new_edges_to_heap): Update.
19461 (cgraph_decide_inlining_of_small_function): Update; set
19462 CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
19463 (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
19464 cgraph_decide_inlining_incrementally): Update.
19465 * ipa-inline.h (inline_summary): Add inlinable, versionable,
19466 disregard_inline_limits, estimated_stack_size, stack_frame_offset,
19467 time, size and estimated_growth parameters.
19468 (estimate_edge_growth): Update.
19469 (initialize_inline_failed): Declare.
19470 * ipa-split.c: Include ipa-inline.h
19471 (execute_split_functions): Update.
19472 * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
19473 (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
19474 (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
19475 * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
19476 estimated_growth to INT_MIN.
19477 (inline_node_duplication_hook): Likewise.
19478 (dump_inline_summary): Dump new fields.
19479 (compute_inline_parameters): Update.
19480 (estimate_edge_time, estimate_time_after_inlining,
19481 estimate_size_after_inlining, estimate_growth, inline_read_summary,
19482 inline_write_summary):
19483 (initialize_inline_failed): Move here from cgraph.c.
19484 * tree-sra.c: Include ipa-inline.h.
19485 (ipa_sra_preliminary_function_checks): Update.
19486 * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
19489 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
19491 * config/i386/sse.md (V16): New mode iterator.
19493 (AVXMODEQI, AVXMODEDI): Remove.
19494 (sse2, sse3): New mode attribute.
19495 (mov<mode>): Use V16 mode iterator.
19496 (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
19497 (push<mode>1): Use V16 mode iterator.
19498 (movmisalign<mode>): Ditto.
19499 (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
19500 <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
19501 (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
19502 *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
19503 (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
19504 avx_movdqu<avxmodesuffix>.
19505 (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
19506 *avx_movdqu<avxmodesuffix>.
19507 (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
19508 avx_lddqu<avxmodesuffix>.
19509 (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
19510 (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
19511 avx_movnt<AVXMODEDI:mode>.
19512 * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
19513 renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
19515 2011-04-16 Bernd Schmidt <bernds@codesourcery.com>
19518 * haifa-sched.c (prune_ready_list, schedule_block): Use
19519 sched_pressure_p rather than flag_sched_pressure.
19521 2011-04-15 Pat Haugen <pthaugen@us.ibm.com>
19523 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
19524 cgraph_get_node instead of cgraph_get_create_node.
19526 2011-04-15 Jakub Jelinek <jakub@redhat.com>
19528 * cfgexpand.c (expand_debug_expr): Use
19529 simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
19531 2011-04-15 Michael Matz <matz@suse.de>
19533 * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
19534 * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
19535 * function.c (gimplify_parameters): Ditto.
19536 * gimplify.c (gimplify_vla_decl): Ditto.
19538 * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
19539 (gimple_call_set_alloca_for_var): New inline function.
19540 (gimple_call_alloca_for_var_p): Ditto.
19541 * gimple.c (gimple_build_call_from_tree): Remember
19542 CALL_ALLOCA_FOR_VAR_P state.
19543 * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
19545 * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
19546 calls if they were for VLA objects.
19548 2011-04-15 Martin Jambor <mjambor@suse.cz>
19550 * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
19553 2011-04-15 Martin Jambor <mjambor@suse.cz>
19555 PR middle-end/48601
19556 * tree-emutls.c (lower_emutls_function_body): Call
19557 cgraph_get_create_node instead of cgraph_get_node. Do not assert the
19558 result is non-NULL.
19560 2011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
19562 * c-decl.c (detect_field_duplicates): Call
19563 objc_detect_field_duplicates instead of objc_get_interface_ivars.
19565 2011-04-15 Nathan Froyd <froydnj@codesourcery.com>
19567 * gimple.h (gimple_asm_clobbers_memory_p): Declare.
19568 * gimple.c (gimple_asm_clobbers_memory_p): Define.
19569 * ipa-pure-const.c (check_stmt): Call it.
19570 * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
19572 2011-04-15 Richard Guenther <rguenther@suse.de>
19574 PR tree-optimization/48290
19575 * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
19576 Properly decide inhibiting propagation based on the valueized
19577 operand. Do loop-closed SSA form preserving here ...
19578 (init_copy_prop): ... not here.
19580 2011-04-15 H.J. Lu <hongjiu.lu@intel.com>
19583 * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
19584 (*ieee_smax<mode>3): Likewise.
19586 2011-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
19588 * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
19589 Replace match_operand with match_dup for the third operand in
19592 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
19594 * combine.c (subst, combine_simlify_rtx): Add new argument, use it
19595 to track processing of conditionals. Update all callers.
19596 (try_combine, simplify_if_then_else): Update.
19598 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
19600 * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
19603 2011-04-15 Georg-Johann Lay <avr@gjlay.de>
19605 * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
19606 instead of match_operand for operand 3.
19608 2011-04-15 Richard Sandiford <richard.sandiford@linaro.org>
19610 * recog.h (insn_operand_data): Add an "allows_mem" field.
19611 * genoutput.c (output_operand_data): Initialize it.
19612 * optabs.c (maybe_legitimize_operand_same_code): New function.
19613 (maybe_legitimize_operand): Use it when matching the original
19616 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
19618 * gimplify.c: Fix issues in comments throughout.
19619 (voidify_wrapper_expr): Fix long line.
19620 (build_stack_save_restore): Likewise.
19621 (gimplify_loop_expr): Likewise.
19622 (gimplify_compound_lval): Likewise.
19623 (gimplify_init_ctor_eval): Likewise.
19624 (gimplify_modify_expr_rhs): Likewise.
19625 (omp_notice_threadprivate_variable): Likewise.
19627 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
19629 * cfgexpand.c (expand_call_stmt): Convert the function type to the
19630 original one if this is not a builtin function.
19632 2011-04-14 Jakub Jelinek <jakub@redhat.com>
19635 * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
19636 offset it as needed based on top 2 bits in operands[3], change
19637 MEM mode to SFmode and mask those 2 bits away from operands[3].
19639 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
19641 * c-parser.c (c_parser_objc_protocol_definition): Updated for
19642 change from objc_declare_protocols() to objc_declare_protocol().
19644 2011-04-14 Uros Bizjak <ubizjak@gmail.com>
19646 * config/i386/sse.md (sse4_1): New mode attribute.
19647 (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
19648 avx_blend<ssemodesuffix><avxmodesuffix> and
19649 sse4_1_blend<ssemodesuffix> using VF mode iterator.
19650 (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
19651 avx_blendv<ssemodesuffix><avxmodesuffix> and
19652 sse4_1_blendv<ssemodesuffix> using VF mode iterator.
19653 (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
19654 avx_dp<ssemodesuffix><avxmodesuffix> and
19655 sse4_1_dp<ssemodesuffix> using VF mode iterator.
19656 (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
19657 (sse4_1_packusdw): Merge with *avx_packusdw.
19658 (sse4_1_pblendvb): Merge with *avx_pblendvb.
19659 (sse4_1_pblendw): Merge with *avx_pblendw.
19660 (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
19661 (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
19662 avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
19664 (sse4_1_round<ssescalarmodesuffix>): Merge with
19665 *avx_round<ssescalarmodesuffix>.
19666 (aesenc): Merge with *avx_aesenc.
19667 (aesenclast): Merge with *avx_aesenclast.
19668 (aesdec): Merge with *avx_aesdec.
19669 (aesdeclast): Merge with *avx_aesdeclast.
19670 (pclmulqdq): Merge with *pclmulqdq.
19671 * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
19673 (nonimm_not_xmm0_operand_maybe_avx): Ditto.
19675 2011-04-14 H.J. Lu <hongjiu.lu@intel.com>
19677 PR middle-end/48608
19678 * cfgexpand.c (get_decl_align_unit): Renamed to ...
19679 (align_local_variable): This. Update DECL_ALIGN.
19680 (add_stack_var): Updated.
19681 (expand_one_stack_var): Likewise.
19683 2011-04-14 Richard Guenther <rguenther@suse.de>
19685 * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
19687 (dse_initialize_block_local_data, dse_leave_block,
19688 record_voperand_set, get_stmt_uid): Likewise.
19689 (dse_possible_dead_store_p): Allow any kind of killing stmt.
19690 (dse_optimize_stmt): Remove voperand set handling code.
19691 Simplify and improve to handle any kind of killing stmt.
19692 (dse_record_phi): Remove.
19693 (dse_enter_block): Simplify.
19694 (tree_ssa_dse): Likewise.
19695 * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
19697 2011-04-14 Jan Hubicka <jh@suse.cz>
19699 * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
19700 * cgraph.h (struct inline_summary): Move to ipa-inline.h
19701 (cgraph_local_info): Remove inline_summary.
19702 * ipa-cp.c: Include ipa-inline.h.
19703 (ipcp_cloning_candidate_p, ipcp_estimate_growth,
19704 ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
19706 * lto-cgraph.c (lto_output_node): Do not stream inline summary.
19707 (input_overwrite_node): Do not set inline summary.
19708 (input_node): Do not stream inline summary.
19709 * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
19710 (cgraph_decide_inlining_incrementally): Do not try to estimate overall
19711 growth; we do not have inline parameters computed for that anyway.
19712 (cgraph_early_inlining): After inlining compute call_stmt_sizes.
19713 * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
19714 (inline_summary_t): New type and VECtor.
19715 (debug_inline_summary, dump_inline_summaries): Declare.
19716 (inline_summary): Use VOCtor.
19717 (estimate_edge_growth): Kill hack computing call stmt size directly.
19718 * lto-section-in.c (lto_section_name): Add inline section.
19719 * ipa-inline-analysis.c: Include lto-streamer.h
19720 (node_removal_hook_holder, node_duplication_hook_holder): New holders
19721 (inline_node_removal_hook, inline_node_duplication_hook): New functions.
19722 (inline_summary_vec): Define.
19723 (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
19724 dump_inline_summaries): New functions.
19725 (estimate_function_body_sizes): Properly compute size/time of outgoing
19727 (compute_inline_parameters): Alloc inline_summary; do not compute
19728 size/time of incomming calls.
19729 (estimate_edge_time): Avoid missing time summary hack.
19730 (inline_read_summary): Read inline summary info.
19731 (inline_write_summary): Write inline summary info.
19732 (inline_free_summary): Free all hooks and inline summary vector.
19733 * lto-streamer.h: Add LTO_section_inline_summary section.
19734 * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
19735 * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
19737 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
19739 * tree-vectorizer.h (vect_strided_store_supported): Add a
19740 HOST_WIDE_INT argument.
19741 (vect_strided_load_supported): Likewise.
19742 (vect_permute_store_chain): Return void.
19743 (vect_transform_strided_load): Likewise.
19744 (vect_permute_load_chain): Delete.
19745 * tree-vect-data-refs.c (vect_strided_store_supported): Take a
19746 count argument. Check that the count is a power of two.
19747 (vect_strided_load_supported): Likewise.
19748 (vect_permute_store_chain): Return void. Update after above changes.
19749 Assert that the access is supported.
19750 (vect_permute_load_chain): Likewise.
19751 (vect_transform_strided_load): Return void.
19752 * tree-vect-stmts.c (vectorizable_store): Update calls after
19753 above interface changes.
19754 (vectorizable_load): Likewise.
19755 (vect_analyze_stmt): Don't check for strided powers of two here.
19757 2011-04-14 Richard Guenther <rguenther@suse.de>
19759 PR tree-optimization/48590
19760 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
19761 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
19762 (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
19763 BUILT_IN_STACK_SAVE.
19764 * tree-ssa-dce.c (propagate_necessity): Handle
19765 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
19767 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
19769 * c-parser.c (c_parser_objc_class_declaration): Updated call to
19770 objc_declare_class.
19772 2011-04-14 Richard Guenther <rguenther@suse.de>
19774 * tree.h (get_object_alignment_1): Declare.
19775 * builtins.c (get_object_alignment_1): Split out worker from ...
19776 (get_object_alignment): ... here.
19777 * fold-const.c (get_pointer_modulus_and_residue): Use
19778 get_object_alignment_1.
19780 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
19782 * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
19784 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
19785 parameter. Generalise code to handle arrays as well as vectors.
19786 (vect_setup_realignment): Update accordingly.
19787 * tree-vect-stmts.c (vectorizable_store): Likewise.
19788 (vectorizable_load): Likewise.
19790 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
19792 * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
19793 within the per-copy loop.
19795 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
19797 * tree-vect-stmts.c (vectorizable_load): Print the number of copies
19800 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
19802 * doc/options.texi (Negative): Explicitly mention that the
19803 Negative chain must be circular.
19805 2011-04-14 Nathan Froyd <froydnj@codesourcery.com>
19807 * function.h (block_chainon): Declare.
19808 * function.c (block_chainon): Define.
19810 2011-04-14 Anatoly Sokolov <aesok@post.ru>
19811 Eric Weddington <eric.weddington@atmel.com>
19812 Georg-Johann Lay <avr@gjlay.de>
19814 * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
19816 (avr_init_builtins, avr_expand_builtin,
19817 avr_expand_delay_cycles, avr_expand_unop_builtin,
19818 avr_expand_binop_builtin ): New functions.
19819 (avr_builtin_id): New enum
19820 (struct avr_builtin_description): New struct
19821 (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
19822 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
19824 * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
19825 UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
19826 UNSPECV_DELAY_CYCLES): new enumeration values
19827 (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
19828 ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
19829 ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
19830 ("*rotlqi3_4"): rename insn to "rotlqi3_4"
19831 ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
19832 "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
19833 "fmulsu"): New insns
19835 * config/avr/avr-c.c: fix line endings
19836 (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
19837 __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
19838 __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
19839 __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
19840 __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
19842 * doc/extend.texi (AVR Built-in Functions): New node
19843 (Target Builtins): Add documentation of AVR
19844 built-in functions.
19846 2011-04-14 Georg-Johann Lay <avr@gjlay.de>
19849 * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
19850 alone. Error if non-const data has attribute progmem.
19852 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
19854 * tree.h (struct tree_constructor): Include tree_typed instead of
19856 * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
19857 TS_TYPED instead of TS_COMMON.
19859 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
19861 * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
19862 (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
19863 (sse2_psadbw): Merge with *avx_psadbw.
19864 (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
19865 (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
19866 (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
19867 (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
19868 (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
19869 (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
19870 (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
19871 (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
19872 (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
19873 (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
19874 (ssse3_palignrti): Merge with *avx_palignrti.
19876 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
19878 * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
19879 * tree-ssanames.c (fini_ssanames): VEC_free it.
19880 (make_ssa_name_fn): Update for VECness of free_ssanames.
19881 (release_ssa_name, release_dead_ssa_names): Likewise.
19882 * tree.h (struct tree_ssa_name): Include tree_typed instead of
19884 * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
19885 TS_TYPED instead of TS_COMMON.
19887 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
19889 * postreload-gcse.c (gcse_after_reload_main): Add calls to
19890 statistics_counter_event.
19891 * tree-ssa-copyrename.c (stats): Define.
19892 (rename_ssa_copies): Count coalesced SSA_NAMEs. Add call to
19893 statistics_counter_event.
19894 * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
19895 (bswap_stats, widen_mul_stats): Define.
19896 (insert_reciprocals): Increment rdivs_inserted.
19897 (execute_cse_reciprocals): Zeroize reciprocal_stats. Increment
19898 rfuncs_inserted. Add calls to statistics_counter_event.
19899 (execute_cse_sincos_1): Increment inserted.
19900 (execute_cse_sincos): Zeroize sincos_stats. Add call to
19901 statistics_counter_event.
19902 (execute_optimize_bswap): Zeroize bswap_stats. Increment fields
19903 of bswap_stats. Add calls to statistics_counter_event.
19904 (convert_mult_to_widen): Increment widen_mults_inserted.
19905 (convert_plusminus_to_widen): Increment maccs_inserted.
19906 (convert_mult_to_fma): Increment fmas_inserted.
19907 (execute_optimize_widening_mul): Zeroize widen_mul_stats. Add
19908 calls to statistics_counter_event.
19910 2011-04-13 Vladimir Makarov <vmakarov@redhat.com>
19912 PR rtl-optimization/48455
19913 * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
19914 `temp_costs->mem_cost'.
19916 2011-04-13 Jan Hubicka <jh@suse.cz>
19918 * ipa-inline.h: New file.
19919 * ipa-inline-analysis.c: New file. Broken out of ...
19920 * ipa-inline.c: ... this file; update toplevel comment;
19921 include ipa-inline.h
19922 (inline_summary): Move to ipa-inline.h
19923 (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
19924 ipa-inline-analysis.c.
19925 (cgraph_estimate_time_after_inlining): Rename to
19926 estiamte_time_after_inlining; move to ipa-inline-analysis.c
19927 (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
19928 to estimate_edge_growth.
19929 (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
19930 rename to estimate_size_after_inlining.
19931 (cgraph_mark_inline_edge): Update for new naming convention.
19932 (cgraph_check_inline_limits): Likewise.
19933 (cgraph_edge_badness): Likewise.
19934 (cgraph_decide_recursive_inlining): Likewise.
19935 (cgraph_decide_inlining_of_small_functions): Likewise.
19936 (cgraph_decide_inlining_incrementally): Likewise.
19937 (cgraph_estimate_growth): Rename to estimate_growth; move to
19938 ipa-inline-analysis.c.
19939 (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
19940 (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
19941 (compute_inline_parameters): Likewise.
19942 (compute_inline_parameters_for_current): Likewise.
19943 (pass_inline_parameters): Likewise.
19944 (inline_indirect_intraprocedural_analysis): Likewise.
19945 (analyze_function): Rename to inline_analyze_function; likewise.
19946 (add_new_function): Move to ipa-inline-analysis.c.
19947 (inline_generate_summary): Likewise.
19948 (inline_read_summary): Likewise.
19949 (inline_write_summary): Likewise.
19950 * Makefile.in (ipa-inline-analysis.c): New file.
19952 2011-04-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19954 * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
19955 * configure: Regenerate.
19957 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
19959 * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
19960 instead of tree_common.
19961 (struct tree_fixed_cst, struct tree_string, struct tree_complex):
19963 * tree.c (initialize_tree_contains_struct): Mark such nodes as being
19964 TS_TYPED rather than TS_COMMON.
19965 * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
19967 2011-04-01 Georg-Johann Lay <avr@gjlay.de>
19970 * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
19971 r20 around calls of __tablejump_elpm__
19973 2011-04-13 Jakub Jelinek <jakub@redhat.com>
19975 PR middle-end/48591
19976 * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
19978 (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
19980 2011-04-13 Bernd Schmidt <bernds@codesourcery.com>
19982 * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
19983 (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
19984 (cfi_vec): New typedef.
19985 (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
19986 dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
19987 (cie_cfi_vec): New static variable.
19988 (cie_cfi_head): Delete.
19989 (add_cfi): Accept a cfi_vec * as first argument. All callers and
19990 declaration changed. Use vector rather than list operations.
19991 (new_cfi): Don't initialize the dw_cfi_next field.
19992 (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
19993 rather than list operations.
19994 (lookup_cfa): Use vector rather than list operations.
19995 (output_cfis): New argument upto. Accept a cfi_vec rather than
19996 a dw_cfi_ref list head as argument. All callers changed.
19997 Iterate over the vector using upto as a maximum index.
19998 (output_all_cfis): New static function.
19999 (output_fde): Use vector rather than list operations. Use the
20000 new upto argument for output_cfis rather than manipulating a
20002 (dwarf2out_begin_prologue): Change initializations to match
20003 new struct members.
20004 (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
20005 from the vector length rather than searching for the end of a list.
20006 Use output_all_cfis.
20007 (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
20009 2011-04-13 Nick Clifton <nickc@redhat.com>
20011 * config/rx/rx.md (movmemsi): Do not use this pattern when
20012 volatile pointers are involved.
20014 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
20016 * config/i386/sse.md (pinsrbits): Remove.
20017 (sse2_packsswb): Merge with *avx_packsswb.
20018 (sse2_packssdw): Merge with *avx_packssdw.
20019 (sse2_packuswb): Merge with *avx_packuswb.
20020 (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
20021 (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
20022 (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
20023 (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
20024 (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
20025 (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
20026 (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
20027 (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
20028 (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
20029 (*sse4_1_pinsrq): Merge with *avx_pinsrq.
20030 (sse2_loadld): Merge with *avx_loadld.
20031 (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
20032 (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
20033 (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
20034 (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
20035 (vec_concatv2di): Merge with *vec_concatv2di_avx.
20037 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
20039 * c-decl.c (union lang_tree_node): Check for TS_COMMON before
20040 calling TREE_CHAIN.
20041 * print-tree.c (print_node): Likewise.
20042 * tree-inline.c (copy_tree_r): Likewise.
20043 * c-lang.c (LANG_HOOKS_INIT_TS): Define.
20044 * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
20045 instead of TS_COMMON.
20046 * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
20047 * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
20048 (copy_node_stat): Zero TREE_CHAIN only if necessary.
20049 (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
20050 (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
20052 (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
20054 (TREE_CHAIN): Check for a TS_COMMON structure.
20055 (TREE_TYPE): Check for a TS_TYPED structure.
20057 2011-04-12 Pat Haugen <pthaugen@us.ibm.com>
20059 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
20060 cgraph_get_create_node instead of cgraph_node.
20062 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
20064 * c-parser.c (c_parser_initelt): Updated call to
20065 objc_build_message_expr.
20066 (c_parser_postfix_expression): Likewise.
20068 2011-04-12 Kai Tietz <ktietz@redhat.com>
20070 * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
20071 MASK_MS_BITFIELD_LAYOUT bit.
20073 2011-04-12 Jakub Jelinek <jakub@redhat.com>
20075 * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
20076 assert it is always true.
20077 (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
20080 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
20082 * c-parser.c (c_lex_one_token): Rewritten conditional used when
20083 compiling Objective-C to be more efficient.
20085 2011-04-12 Axel Freyn <axel-freyn@gmx.de>
20087 * opts-common.c (decode_cmdline_options_to_array): Remove variable
20090 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
20092 * recog.h, genoutput.c, optabs.c: Revert last patch.
20094 2011-04-12 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
20097 * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
20099 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
20101 * recog.h (insn_operand_data): Add an "allows_mem" field.
20102 * genoutput.c (output_operand_data): Initialize it.
20103 * optabs.c (maybe_legitimize_operand_same_code): New function.
20104 (maybe_legitimize_operand): Use it when matching the original
20107 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
20109 * genpreds.c (process_define_predicate): Move most processing
20110 to gensupport.c. Continue to validate the expression.
20111 * genrecog.c (did_you_mean_codes, compute_predicate_codes)
20112 (process_define_predicate): Move processing to gensupport.c.
20113 (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
20114 * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
20115 (compute_predicate_codes): Moved from genrecog.c. Add lineno
20117 (valid_predicate_name_p): New function, split out from old
20118 genpreds.c:process_define_predicate.
20119 (process_define_predicate): New function, combining code from
20120 old genpreds.c and genrecog.c functions.
20121 (process_rtx): Call it for DEFINE_PREDICATE and
20122 DEFINE_SPECIAL_PREDICATE.
20124 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
20126 * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
20127 size of a '%A' memory reference.
20128 (T_DREG, T_QREG): New neon_builtin_type_bits.
20129 (arm_init_neon_builtins): Assert that the load and store operands
20130 are neon_struct_operands.
20131 (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
20132 (NEON_ARG_MEMORY): New builtin_arg.
20133 (neon_dereference_pointer): New function.
20134 (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
20135 Handle NEON_ARG_MEMORY.
20136 (arm_expand_neon_builtin): Update after above interface changes.
20137 Use NEON_ARG_MEMORY for loads and stores.
20138 * config/arm/predicates.md (neon_struct_operand): New predicate.
20139 * config/arm/iterators.md (V_two_elem): Tweak formatting.
20140 (V_three_elem): Use BLKmode for accesses that have no associated mode.
20141 (V_four_elem): Tweak formatting.
20142 * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
20143 (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
20144 (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
20145 (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
20146 (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
20147 (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
20148 (neon_vst4<mode>): Replace pointer operand with a memory operand.
20149 Use %A in the output template.
20150 (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
20151 (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
20152 (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
20153 the width of the memory access. Remove post-increment.
20154 * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
20156 2011-04-12 Nick Clifton <nickc@redhat.com>
20158 * config/v850/v850.c (expand_prologue): Do not use the CALLT
20159 instruction for interrupt handlers if the target is the basic V850
20161 (expand_epilogue): Likewise.
20163 2011-04-12 Jakub Jelinek <jakub@redhat.com>
20165 PR rtl-optimization/48549
20166 * combine.c (propagate_for_debug): Also stop after BB_END of
20167 this_basic_block. Process LAST and just stop processing after it.
20168 (combine_instructions): If last_combined_insn has been deleted,
20169 set last_combined_insn to its PREV_INSN.
20171 2011-04-12 Richard Guenther <rguenther@suse.de>
20173 PR tree-optimization/46076
20174 * gimple.h (struct gimple_statement_call): Add fntype field.
20175 (gimple_call_fntype): Adjust.
20176 (gimple_call_set_fntype): New function.
20177 * gimple.c (gimple_build_call_1): Set the call function type.
20178 * gimplify.c (gimplify_call_expr): Preserve the function
20179 type the frontend used for the call.
20180 (gimplify_modify_expr): Likewise.
20181 * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
20183 * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
20185 * tree-ssa.c (useless_type_conversion_p): Function pointer
20186 conversions are useless.
20188 2011-04-12 Martin Jambor <mjambor@suse.cz>
20190 * cgraph.h (cgraph_node): Remove function declaration.
20191 (cgraph_create_node): Declare.
20192 (cgraph_get_create_node): Likewise.
20193 * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
20194 Updated all callers.
20195 (cgraph_node): Renamed to cgraph_create_node, assert that a node for
20196 the decl does not already exist. Call cgraph_get_create_node instead
20198 (cgraph_get_create_node): New function.
20199 (cgraph_same_body_alias): Update comment.
20200 (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
20201 assert it does not return NULL.
20202 (cgraph_update_edges_for_call_stmt): Likewise.
20203 (cgraph_clone_edge): Likewise.
20204 (cgraph_create_virtual_clone): Likewise.
20205 (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
20206 instead of cgraph_node.
20207 (cgraph_add_new_function): Call cgraph_create_node or
20208 cgraph_get_create_node instead of cgraph_node.
20209 * cgraphbuild.c (record_reference): Call cgraph_get_create_node
20210 instead of cgraph_node.
20211 (record_eh_tables): Likewise.
20212 (mark_address): Likewise.
20213 (mark_load): Likewise.
20214 (build_cgraph_edges): Call cgraph_get_create_node instead
20216 (rebuild_cgraph_edges): Likewise.
20217 * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
20218 instead of cgraph_node.
20219 (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
20221 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
20222 cgraph_create_node instead of cgraph_node.
20223 * c-decl.c (finish_function): Call cgraph_get_create_node instead
20225 * lto-cgraph.c (input_node): Likewise.
20226 * lto-streamer-in.c (input_function): Likewise.
20227 * varasm.c (mark_decl_referenced): Likewise.
20228 (assemble_alias): Likewise.
20230 2011-04-12 Martin Jambor <mjambor@suse.cz>
20232 * tree-inline.c (tree_function_versioning): Call cgraph_get_node
20233 instead of cgraph_node and assert it does not return NULL.
20234 * lto-streamer-in.c (lto_read_body): Likewise.
20235 * omp-low.c (new_omp_context): Likewise.
20236 (create_task_copyfn): Likewise.
20237 * tree-emutls.c (lower_emutls_function_body): Likewise.
20238 * matrix-reorg.c (transform_allocation_sites): Likewise.
20240 2011-04-12 Jakub Jelinek <jakub@redhat.com>
20243 * c-typeck.c (build_asm_expr): Error out on attempts to use
20244 void type outputs or inputs for constraints that allow reg or
20245 don't allow memory.
20247 2011-04-11 Chung-Lin Tang <cltang@codesourcery.com>
20248 Richard Earnshaw <rearnsha@arm.com>
20251 * config/arm/arm.c (arm_legitimize_reload_address): Update cases
20252 to use sign-magnitude offsets. Reject unsupported unaligned
20253 cases. Add detailed description in comments.
20254 * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
20255 condition from TARGET_32BIT to TARGET_ARM.
20257 2011-04-11 Nathan Froyd <froydnj@codesourcery.com>
20259 * tree.h (struct typed_tree): New.
20260 (struct tree_common): Include it instead of tree_base.
20261 (TREE_TYPE): Update for new location of type field.
20262 (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
20263 (DECL_USER_ALIGN, DECL_PACKED): Likewise.
20264 (union tree_node): Add typed field.
20265 * treestruct.def (TS_TYPED): New.
20266 * lto-streamer.c (check_handled_ts_structures): Handle it.
20267 * tree.c (MARK_TS_TYPED): New macro.
20268 (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
20270 2011-04-11 Eric Botcazou <ebotcazou@adacore.com>
20272 * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
20273 (force_nonfallthru): Do not alter the loop nest if no basic block
20276 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
20278 * config/i386/sse.md (VI): New mode iterator.
20279 (SSEMODEI): Remove.
20280 (AVX256MODEI): Ditto.
20281 (AVXMODEF4P): Ditto.
20282 (avxvecpsmode): Ditto.
20283 (one_cmpl<mode>2): Enable for TARGET_SSE. Use VI mode iterator.
20284 (sse2_andnot<mode>3): New expander.
20285 (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
20286 *avx_andnot<mode>3. Enable for TARGET_SSE. Use VI mode iterator.
20287 (<any_logic:code><mode>3): Use VI mode iterator.
20288 (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
20289 and *avx_<any_logic:code><mode>3. Use VI mode iterator.
20290 (*andnottf3): Handle AVX three-operand constraints.
20291 (*<any_logic:code>tf3): Handle AVX three-operand constraints.
20293 2011-04-11 Joseph Myers <joseph@codesourcery.com>
20294 Robert Millan <rmh@gnu.org>
20296 * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
20297 * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
20298 GNU_USER_DYNAMIC_LINKER64): Define.
20299 (REG_NAME): Don't undefine.
20300 (MD_UNWIND_SUPPORT): Undefine.
20301 * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
20302 (REG_NAME): Don't undefine.
20303 (MD_UNWIND_SUPPORT): Undefine.
20304 * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
20306 2011-04-11 Joseph Myers <joseph@codesourcery.com>
20308 * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
20309 (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
20311 2011-04-11 Xinliang David Li <davidxl@google.com>
20313 * value-profile.c (check_ic_target): New function.
20314 (gimple_ic_transform): Sanity check indirect call target.
20315 * gimple-low.c (gimple_check_call_args): Interface change.
20316 (gimple_check_call_matching_types): New function.
20317 * tree-inline.c (tree_can_inline_p): Call new function.
20319 2011-04-11 Basile Starynkevitch <basile@starynkevitch.net>
20321 * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
20322 tree-pretty-print.h & realmpfr.h.
20324 2011-04-11 Vladimir Makarov <vmakarov@redhat.com>
20326 PR middle-end/48464
20327 * ira.c (setup_pressure_classes): Fix typo in loop condition.
20328 (setup_allocno_and_important_classes): Ditto.
20330 2011-04-11 Joseph Myers <joseph@codesourcery.com>
20332 * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
20333 GNU_USER_DYNAMIC_LINKER.
20334 * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
20335 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
20336 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
20337 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
20338 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
20339 GNU_USER_TARGET_OS_CPP_BUILTINS.
20340 * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
20341 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
20342 * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
20343 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
20344 * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
20345 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
20346 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
20347 GNU_USER_TARGET_OS_CPP_BUILTINS.
20348 * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
20349 GNU_USER_DYNAMIC_LINKER.
20350 * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
20351 GNU_USER_TARGET_OS_CPP_BUILTINS.
20352 * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
20353 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
20354 * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
20355 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
20356 * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
20357 * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
20358 GNU_USER_DYNAMIC_LINKER64): Remove.
20359 * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
20360 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
20361 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
20362 GNU_USER_DYNAMIC_LINKER.
20363 * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
20364 GNU_USER_TARGET_OS_CPP_BUILTINS.
20365 * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
20366 GNU_USER_TARGET_OS_CPP_BUILTINS.
20367 * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
20368 to GNU_USER_TARGET_OS_CPP_BUILTINS.
20369 * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
20370 GNU_USER_TARGET_OS_CPP_BUILTINS.
20371 (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
20372 (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
20373 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
20374 * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
20375 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
20376 * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
20377 GNU_USER_DYNAMIC_LINKER.
20378 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
20379 GNU_USER_TARGET_OS_CPP_BUILTINS.
20380 * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
20381 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
20382 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
20383 GNU_USER_DYNAMIC_LINKER.
20384 * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
20385 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
20386 * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
20387 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
20388 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
20389 GNU_USER_DYNAMIC_LINKER.
20390 * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
20391 GNU_USER_DYNAMIC_LINKERN32.
20392 (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
20393 GNU_USER_DYNAMIC_LINKERN32. Change LINUX_DYNAMIC_LINKER64 to
20394 GNU_USER_DYNAMIC_LINKER64. Change LINUX_DYNAMIC_LINKER32 to
20395 GNU_USER_DYNAMIC_LINKER32.
20396 * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
20397 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
20398 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
20399 GNU_USER_DYNAMIC_LINKER.
20400 * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
20401 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
20402 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
20403 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
20404 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
20405 * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
20406 GNU_USER_DYNAMIC_LINKER32.
20407 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
20408 * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
20409 GNU_USER_DYNAMIC_LINKER.
20410 * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
20411 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
20412 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
20413 GNU_USER_DYNAMIC_LINKER32. Change LINUX_DYNAMIC_LINKER64 to
20414 GNU_USER_DYNAMIC_LINKER64.
20415 * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
20416 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
20417 (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
20418 GNU_USER_DYNAMIC_LINKER.
20419 * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
20420 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
20421 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
20422 GNU_USER_DYNAMIC_LINKER.
20423 * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
20424 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
20425 (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
20426 GNU_USER_DYNAMIC_LINKER32.
20427 (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
20428 GNU_USER_DYNAMIC_LINKER64.
20429 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
20430 GNU_USER_DYNAMIC_LINKER64.
20431 * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
20432 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
20433 * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
20434 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
20435 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
20437 2011-04-11 Joseph Myers <joseph@codesourcery.com>
20439 * config/i386/gnu-user.h: Copy from linux.h. Update comments.
20440 (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
20441 (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
20442 GNU_USER_DYNAMIC_LINKER.
20443 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
20444 * config/i386/gnu-user64.h: Copy from linux64.h. Update comments.
20445 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
20446 (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
20447 GNU_USER_DYNAMIC_LINKER64.
20448 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
20449 * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
20450 GNU_USER_LINK_EMULATION.
20451 * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
20452 DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
20453 ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
20454 MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
20455 PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
20456 CPP_SPEC, CC1_SPEC): Remove.
20457 (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
20458 (GNU_USER_DYNAMIC_LINKER): Define.
20459 (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
20460 ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
20461 ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
20462 LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
20463 TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
20464 STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
20465 TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
20466 * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
20467 CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
20468 TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
20469 LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
20470 LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
20471 (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
20472 (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
20473 TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
20474 TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
20475 * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
20476 GNU_USER_DYNAMIC_LINKER.
20477 * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
20478 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
20479 * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
20480 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
20481 * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
20482 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
20483 * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
20484 i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
20485 i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
20486 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
20488 2011-04-11 Kai Tietz <ktietz@redhat.com>
20492 * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
20493 * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
20495 (ix86_is_msabi_thiscall): Removed.
20496 (ix86_is_type_thiscall): Likewise.
20497 (ix86_get_callcvt): New function.
20498 (ix86_comp_type_attributes): Simplify check.
20499 (ix86_function_regparm): Use ix86_get_callcvt for calling
20500 convention attribute checks.
20501 (ix86_return_pops_args): Likewise.
20502 (ix86_static_chain): Likewise.
20503 (x86_this_parameter): Likewise.
20504 (x86_output_mi_thunk): Likewise.
20505 (ix86_function_type_abi): Optimize check for types without attributes.
20506 * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
20507 IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
20508 IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
20510 (IX86_BASE_CALLCVT): Helper macro.
20511 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
20512 Use ix86_get_callcvt for calling convention attribute checks and avoid
20513 symbol-decoration for stdcall in TARGET_RTD case.
20514 * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
20516 (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
20519 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
20521 * config/i386/sse.md (VI_128): New mode iterator.
20522 (VI12_128): Rename from SSEMODE12.
20523 (VI14_128): Rename from SSEMODE14.
20524 (VI124_128): New mode iterator.
20525 (VI24_128): Rename from SSEMODE248.
20526 (VI248_128): Rename from SSEMODE248.
20527 (SSEMODE124C8): Remove.
20528 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
20529 (*sse2_<plusminus_insn><mode>3): Merge with
20530 *avx_<plusminus_insn><mode>3.
20531 (*mulv8hi3): Merge with *avx_mulv8hi3.
20532 (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
20533 (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
20534 (*sse2_pmaddwd): Merge with *avx_pmaddwd.
20535 (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
20536 (ashr<mode>3): Merge with *avx_ashr<mode>3.
20537 (lshr<mode>3): Merge with *avx_lshr<mode>3.
20538 (ashl<mode>3): Merge with *avx_ashl<mode>3.
20539 (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
20540 (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
20541 (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
20542 (*<smaxmin:code>v8hi3): Ditto.
20543 (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
20544 (*<smaxmin:code>v16qi3): Ditto.
20545 (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
20546 (*sse2_eq<mode>3): Ditto.
20547 (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
20548 (*sse2_gt<mode>3): Ditto.
20549 (vcondv2di): Split out of vcond<mode>.
20550 (vconduv2di): Split out of vcondu<mode>.
20552 2011-04-11 Richard Guenther <rguenther@suse.de>
20554 * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
20555 before calling tree_low_cst.
20557 2011-04-11 Richard Guenther <rguenther@suse.de>
20559 * stor-layout.c (layout_type): Compute all array index size operations
20560 in the original type.
20561 (initialize_sizetypes): Add comment.
20562 (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
20564 2011-04-11 Joseph Myers <joseph@codesourcery.com>
20566 * common.opt (Tbss=, Tdata=, Ttext=): New options.
20568 2011-04-11 Martin Jambor <mjambor@suse.cz>
20570 * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
20571 of cgraph_node, handle NULL return value.
20572 (cgraph_global_info): Likewise.
20573 (cgraph_rtl_info): Likewise.
20574 * tree-inline.c (estimate_num_insns): Likewise.
20575 * gimplify.c (unshare_body): Likewise.
20576 (unvisit_body): Likewise.
20577 (gimplify_body): Likewise.
20578 * predict.c (optimize_function_for_size_p): Likewise.
20579 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
20580 (call_may_clobber_ref_p_1): Likewise.
20581 * varasm.c (function_section_1): Likewise.
20582 (assemble_start_function): Likewise.
20584 2011-04-11 Martin Jambor <mjambor@suse.cz>
20586 * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
20588 * final.c (rest_of_clean_state): Likewise.
20589 * gimple-iterator.c (update_call_edge_frequencies): Likewise.
20590 * passes.c (pass_init_dump_file): Likewise.
20591 (execute_all_ipa_transforms): Likewise.
20592 (function_called_by_processed_nodes_p): Likewise.
20593 * predict.c (maybe_hot_frequency_p): Likewise.
20594 (probably_never_executed_bb_p): Likewise.
20595 (compute_function_frequency): Likewise.
20596 * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
20597 (unnest_nesting_tree_1): Likewise.
20598 (lower_nested_functions): Likewise.
20599 * tree-optimize.c (execute_fixup_cfg): Likewise.
20600 (tree_rest_of_compilation): Likewise.
20601 * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
20602 * tree-sra.c (ipa_early_sra): Likewise.
20603 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
20604 * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
20605 * ipa.c (record_cdtor_fn): Likewise.
20606 * ipa-inline.c (cgraph_early_inlining): Likewise.
20607 (compute_inline_parameters_for_current): Likewise.
20608 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
20609 * ipa-pure-const.c (local_pure_const): Likewise.
20610 * ipa-split.c (split_function): Likewise.
20611 (execute_split_functions): Likewise.
20612 * cgraphbuild.c (build_cgraph_edges): Likewise.
20613 (rebuild_cgraph_edges): Likewise.
20614 (cgraph_rebuild_references): Likewise.
20615 (remove_cgraph_callee_edges): Likewise.
20616 * cgraphunit.c (cgraph_mark_if_needed): Likewise.
20617 (verify_cgraph_node): Likewise.
20618 (cgraph_analyze_functions): Likewise.
20619 (cgraph_preserve_function_body_p): Likewise.
20620 (save_inline_function_body): Likewise.
20621 (save_inline_function_body): Likewise.
20622 * tree-inline.c (copy_bb): Likewise.
20623 (optimize_inline_calls): Likewise.
20625 2011-04-11 Martin Jambor <mjambor@suse.cz>
20627 PR tree-optimization/48195
20628 * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
20629 ipa_check_create_edge_args.
20630 (ipcp_generate_summary): Do not call ipa_check_create_node_params and
20631 ipa_check_create_edge_args.
20632 * ipa-inline.c (inline_generate_summary): Do not call
20633 ipa_check_create_node_params and ipa_check_create_edge_args.
20634 * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
20635 ipa_check_create_edge_args.
20637 2011-04-09 Anatoly Sokolov <aesok@post.ru>
20639 * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
20641 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
20642 * function.c (record_hard_reg_sets): Likewise.
20643 * ira.c (compute_regs_asm_clobbered): Likewise.
20644 * sched-deps.c (sched_analyze_1): Likewise.
20645 * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
20647 2011-04-09 Xinliang David Li <davidxl@google.com>
20649 PR tree-optimization/PR48484
20650 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
20651 has_valid_pred lazily
20653 2011-04-09 Duncan Sands <baldrick@free.fr>
20655 * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
20657 2011-04-08 Eric Botcazou <ebotcazou@adacore.com>
20659 * combine.c (combine_validate_cost): Adjust comments. Set registered
20660 cost of I0 to zero at the end, if any.
20662 2011-04-08 Xinliang David Li <davidxl@google.com>
20664 * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
20665 to insane profile data.
20667 2011-04-08 Xinliang David Li <davidxl@google.com>
20669 * ipa-cp.c (ipcp_update_profiling): Correct
20670 negative scale factor due to insane profile data.
20672 2011-04-08 Xinliang David Li <davidxl@google.com>
20674 * final.c (dump_basic_block_info): New function.
20675 (final): Dump basic block.
20676 (final_scan_insn): Remove old dump.
20678 2011-04-08 Steven G. Kargl <kargl@gcc.gnu.org>
20681 * config.gcc (i386-*-freebsd): Disable unwind table generation for
20684 2011-04-08 Michael Matz <matz@suse.de>
20686 PR middle-end/48389
20687 * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
20689 (rebuild_jump_labels): Call rebuild_jump_labels_1.
20690 * rtl.h (rebuild_jump_labels_chain): Declare.
20691 * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
20692 insns inserted on edges.
20694 2011-04-08 Joseph Myers <joseph@codesourcery.com>
20696 * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
20697 * config/arm/arm-arches.def: New.
20698 * config/arm/arm-opts.h: New.
20699 * config/arm/genopt.sh: New.
20700 * config/arm/arm-tables.opt: New (generated).
20701 * config/arm/arm.c (arm_handle_option, arm_target_help,
20702 TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
20703 (all_architectures): Get most table contents from arm-arches.def.
20704 (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
20705 arm_selected_tune here.
20706 * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
20707 * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
20708 (march=, mcpu=, mtune=): Use Enum and Var.
20709 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
20710 (arm.o): Update dependencies.
20712 2011-04-08 Basile Starynkevitch <basile@starynkevitch.net>
20714 * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
20716 (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
20717 (write_typed_alloc_defns): Likewise.
20718 (main): Calls write_typed_alloc_defns with output_header.
20720 2011-04-08 Vladimir Makarov <vmakarov@redhat.com>
20722 PR inline-asm/48435
20723 * ira-color.c (setup_profitable_hard_regs): Add comments.
20724 Don't take prohibited hard regs into account.
20725 (setup_conflict_profitable_regs): Rename to
20726 get_conflict_profitable_regs.
20727 (check_hard_reg_p): Check prohibited hard regs.
20729 2011-04-08 Nathan Froyd <froydnj@codesourcery.com>
20731 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
20732 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
20733 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
20735 2011-04-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
20738 * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
20739 move from floating point to shift amount register.
20740 (emit_move_sequence): Remove secondary reload support for floating
20741 point to shift amount amount register copies.
20742 (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
20743 amount register copies.
20744 * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
20745 register, return false if mode isn't a scalar integer mode.
20746 * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
20748 2011-04-08 Richard Guenther <rguenther@suse.de>
20750 * gimple.c (gimple_call_flags): Remove kludge.
20752 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
20754 * sel-sched.c (sel_region_init): Move call to
20755 sel_setup_region_sched_flags after setup_current_loop_nest.
20757 2011-04-08 Andrey Belevantsev <abel@ispras.ru>
20759 PR rtl-optimization/48272
20760 * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
20761 init_insn_reg_pressure_info. Adjust a caller.
20762 * sched-int.h (init_insn_reg_pressure_info): Declare.
20763 * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
20764 when sched-pressure is enabled.
20766 2011-04-08 Richard Guenther <rguenther@suse.de>
20768 * gimple.c (gimple_set_modified): Do not queue calls to
20769 MODIFIED_NORETURN_CALLS here ...
20770 * tree-ssa-operands.c (update_stmt_operands): ... but here.
20772 2011-04-08 Richard Guenther <rguenther@suse.de>
20775 * toplev.c (lang_dependent_init): Do not open asm_out_file
20776 in WPA mode, nor perform debug machinery initialization.
20777 (finalize): Do not unlink asm_out_file in WPA mode.
20779 2011-04-08 Richard Guenther <rguenther@suse.de>
20781 * gimple.h (gimple_call_fntype): New function.
20782 (gimple_call_return_type): Use it.
20783 * expr.c (expand_expr_real_1): Use gimple_call_fntype.
20784 * gimple-low.c (gimple_check_call_args): Likewise.
20785 * gimple.c (gimple_call_flags): Likewise.
20786 (gimple_call_arg_flags): Likewise.
20787 (gimple_call_return_flags): Likewise.
20788 * tree-cfg.c (verify_gimple_call): Likewise.
20789 (do_warn_unused_result): Likewise.
20790 * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
20791 * value-prof.c (gimple_ic_transform): Fix fndecl check.
20793 2011-04-08 Dmitry Melnik <dm@ispras.ru>
20795 PR rtl-optimization/48235
20796 * sel-sched.c (code_motion_process_successors): Recompute the last
20797 insn in basic block if control flow changed.
20798 (code_motion_path_driver): Ditto. Recompute the first insn as well.
20799 Update condition for ilist_remove.
20801 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
20803 PR rtl-optimization/48302
20804 * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
20805 * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument. Use
20806 it to record added preheader blocks.
20807 * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument. Pass it
20808 on to sel_add_loop_preheaders.
20809 (sel_region_init): Move call to setup_current_loop_nest after
20812 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
20815 * cfgloop.h (loop_has_exit_edges): New helper.
20816 * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
20818 * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
20819 that have no exit edges.
20821 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
20823 PR rtl-optimization/48442
20824 * sel-sched.c (init_seqno): Remove number_of_insns argument. Update
20825 all callers. Adjust assert.
20827 2011-04-08 Jakub Jelinek <jakub@redhat.com>
20829 PR tree-optimization/48377
20830 * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
20831 is_packed to true even for types with smaller TYPE_ALIGN than
20834 2011-04-08 Richard Guenther <rguenther@suse.de>
20837 * doc/tm.texi: Re-generate.
20839 2011-04-08 Wei Guozhi <carrot@google.com>
20842 * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
20843 * config/arm/arm.c (arm_attr_length_push_multi): New function.
20844 * config/arm/arm.md (*push_multi): Change the length computation to
20847 2011-04-08 Anatoly Sokolov <aesok@post.ru>
20849 * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
20850 (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
20851 * doc/tm.texi: Regenerate.
20852 * system.h (ASM_OUTPUT_BSS): Poison.
20853 * varasm.c (asm_output_bss): Remove function.
20854 (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
20856 * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
20857 * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
20858 * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
20859 * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
20861 * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
20863 * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
20865 * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
20867 2011-04-07 Joseph Myers <joseph@codesourcery.com>
20869 * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
20872 2011-04-07 Joseph Myers <joseph@codesourcery.com>
20874 * config/m68k/m68k.c (m68k_handle_option): Don't handle
20875 OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
20876 OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
20878 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
20879 handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
20880 -m68030, -m68040, -m68060, -mcpu32 and -m68332.
20881 * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
20882 m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
20883 * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
20884 (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
20885 (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
20886 options. Don't map other m68k options manually. Don't handle
20887 old-style options as canonical.
20888 (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
20889 * doc/install.texi (m68k-*-*): Document binutils version requirement.
20891 2011-04-07 Eric Botcazou <ebotcazou@adacore.com>
20893 * basic-block.h (force_nonfallthru): Move to...
20894 * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
20895 (force_nonfallthru): ...here.
20896 * cfghooks.c (force_nonfallthru): New function.
20897 * cfgrtl.c (force_nonfallthru): Rename into...
20898 (rtl_force_nonfallthru): ...this.
20899 (commit_one_edge_insertion): Do not set AUX field.
20900 (commit_edge_insertions): Do not discover new basic blocks.
20901 (rtl_cfg_hooks): Add rtl_force_nonfallthru.
20902 (cfg_layout_rtl_cfg_hooks): Likewise.
20903 * function.c (thread_prologue_and_epilogue_insns): Remove bogus
20904 ATTRIBUTE_UNUSED. Discover new basic blocks in the prologue insns.
20905 * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
20907 2011-04-07 Anatoly Sokolov <aesok@post.ru>
20909 * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
20912 2011-04-07 Uros Bizjak <ubizjak@gmail.com>
20914 * config/i386/sse.md: Update copyright year.
20915 (avxcvtvecmode): Remove.
20916 (sse_movhlps): Merge with *avx_movhlps.
20917 (sse_movlhps): Merge with *avx_movlhps.
20918 (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
20919 (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
20920 (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
20921 (sse_loadhps): Merge with *avx_loadhps.
20922 (sse_storelps): Merge with *avx_storelps.
20923 (sse_loadlps): Merge with *avx_loadlps.
20924 (sse_movss): Merge with *avx_movss.
20925 (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
20926 (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
20927 (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
20928 (*vec_set<mode>_0_sse2): Split multi-unit alternative.
20929 (vec_set<mode>_0): Ditto.
20930 (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
20931 (sse4_1_insertps): Merge with *avx_insertps.
20932 (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
20933 (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
20934 (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
20935 (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
20936 (sse2_storehpd): Merge with *avx_storehpd.
20937 (sse2_loadhpd): Merge with *avx_loadhpd.
20938 (sse2_loadlpd): Merge with *avx_loadlpd.
20939 (sse2_movsd): Merge with *avx_movsd.
20940 (*vec_concatv2df): Merge with *vec_concatv2df.
20942 2011-04-07 Jakub Jelinek <jakub@redhat.com>
20945 * combine.c (combine_instructions): Add last_combined_insn,
20946 update it if insn is after it, pass it to all try_combine calls.
20947 (try_combine): Add last_combined_insn parameter, pass it instead of
20948 i3 to propagate_for_debug.
20950 2011-04-07 Nick Clifton <nickc@redhat.com>
20952 * config/mn10300/mn10300.md (movqi_internal): Add alternatives
20953 to handle MDR <-> data register transfers.
20954 (movhi_internal): Likewise.
20956 2011-04-07 Alan Modra <amodra@gmail.com>
20958 * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
20959 previous stack info.
20961 2011-04-07 Tom de Vries <tom@codesourcery.com>
20964 * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter. Pass dir to
20965 flow_find_cross_jump. Swap variables to implement backward replacement.
20966 (try_crossjump_bb): Add argument to try_crossjump_to_edge.
20968 2011-04-07 Tom de Vries <tom@codesourcery.com>
20971 * cfgcleanup.c (walk_to_nondebug_insn): New function.
20972 (flow_find_cross_jump): Use walk_to_nondebug_insn. Recalculate bb1
20974 (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
20975 src1 or src2. Redirect edges to the last basic block. Update
20976 frequency and count on multiple basic blocks in case of fallthru.
20978 2011-04-07 Tom de Vries <tom@codesourcery.com>
20981 * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
20983 (old_insns_match_p): Change return type. Replace return false/true
20984 with return dir_none/dir_both. Use can_replace_by.
20985 (flow_find_cross_jump): Add dir_p parameter. Init replacement
20986 direction from dir_p. Register replacement direction in dir, last_dir
20987 and afterlast_dir. Handle new return type of old_insns_match_p using
20988 merge_dir. Return replacement direction in dir_p.
20989 (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
20990 return type of old_insns_match_p.
20991 (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
20992 * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
20993 flow_find_cross_jump.
20994 * basic-block.h (enum replace_direction): New type.
20995 (flow_find_cross_jump): Add parameter to declaration.
20997 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
20999 * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
21000 (AVXMODEDCVTPS2DQ): Ditto.
21001 (VEC_FLOAT_MODE): Ditto.
21002 (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3. Use VF mode
21003 iterator. Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
21004 (<any_logic:code><mode>3): Use VF mode iterator.
21005 (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
21006 Use VF mode iterator.
21007 (copysign<mode>3): Use VF mode iterator.
21008 (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3. Handle
21009 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
21010 (*<any_logic:code><MODEF:mode>3): Merge with
21011 *avx_<any_logic:code><MODEF:mode>3.
21012 (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
21013 (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
21014 (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
21015 (avx_cvtdq2ps<avxmodesuffix>): Remove.
21016 (sse2_cvtdq2ps): Use %v modifier.
21017 (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
21018 (avx_cvtps2dq<avxmodesuffix>): Remove.
21019 (sse2_cvtps2dq): Use %v modifier.
21020 (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
21021 (avx_cvttps2dq<avxmodesuffix>): Remove.
21022 (sse2_cvttps2dq): Use %v modifier.
21023 (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
21024 (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
21025 (sse2_cvtsd2siq): Fix insn template.
21026 (sse2_cvtsd2siq_2): Ditto.
21027 (sse2_cvttsd2siq): Ditto.
21028 (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
21029 (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
21031 2011-04-06 Joseph Myers <joseph@codesourcery.com>
21033 * gcov-io.c: Use GCC Runtime Library Exception.
21035 2011-04-06 Jakub Jelinek <jakub@redhat.com>
21038 * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
21039 as base_reg whatever register reg has been eliminated to, instead
21040 of hardcoding STACK_POINTER_REGNUM.
21042 2011-04-06 Joseph Myers <joseph@codesourcery.com>
21044 * doc/tm.texi.in: Document C target hooks as separate from general
21046 * doc/tm.texi: Regenerate.
21047 * genhooks.c (struct hook_desc): Add docname field.
21048 (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC). Initialize
21050 (hook_array): Include c-target.def.
21051 (emit_documentation): Use docname field in output.
21052 (emit_init_macros): Take docname argument. Only emit definitions
21053 for hooks matching docname.
21054 (main): Expect additional arguments in all cases. Pass argument
21055 to emit_init_macros.
21056 * target.def: Move initial macro definitions and comments to
21057 target-hooks-macros.h.
21058 (gcc_targetcm): Move to c-family/c-target.def.
21059 * target.h (targetcm): Move declaration to c-family/c-target.h.
21060 * targhooks.c (default_handle_c_option): Move to
21062 * targhooks.h (default_handle_c_option): Move declaration to
21063 c-family/c-common.h.
21064 * target-hooks-macros.h: New file.
21065 * config.gcc (target_has_targetcm): Define and use to add to
21066 c_target_objs and cxx_target_objs.
21067 * config/default-c.c: New file.
21068 * config/darwin-c.c: Include c-target.h and c-target-def.h instead
21069 of target.h and target-def.h.
21070 (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
21071 (darwin_objc_construct_string, darwin_cfstring_ref_p,
21072 darwin_check_cfstring_format_arg): Make static.
21073 (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
21074 TARGET_STRING_OBJECT_REF_TYPE_P,
21075 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
21076 * config/darwin-protos.h (darwin_objc_construct_string,
21077 darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
21079 * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
21080 TARGET_STRING_OBJECT_REF_TYPE_P,
21081 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
21082 * config/t-darwin (darwin-c.o): Update dependencies.
21083 * system.h (TARGET_HAS_TARGETCM): Poison.
21084 * Makefile.in (TARGET_H): Update.
21085 (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
21086 (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
21087 (default-c.o): New target.
21088 (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
21089 (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
21090 (s-tm-texi): Pass -d option to genhooks. Also test timestamp on
21092 (build/genhooks.o): Update dependencies.
21094 2011-04-06 Richard Guenther <rguenther@suse.de>
21096 * ipa-inline.c (enum inlining_mode): Remove.
21097 (cgraph_flatten): Use some other token.
21098 (cgraph_edge_early_inlinable_p): New function, split out from ...
21099 (cgraph_perform_always_inlining): New function, split out from ...
21100 (cgraph_decide_inlining_incrementally): ... here.
21101 (cgraph_mark_inline_edge): Adjust.
21102 (cgraph_early_inlining): Re-structure.
21103 (pass_early_inline): Require SSA form.
21105 2011-04-06 Andrew Stubbs <ams@codesourcery.com>
21106 Julian Brown <julian@codesourcery.com>
21107 Mark Shinwell <shinwell@codesourcery.com>
21109 * config/arm/arm.h (arm_class_likely_spilled_p): Check against
21110 LO_REGS only for Thumb-1.
21111 (MODE_BASE_REG_CLASS): Restrict base registers to those which can
21112 be used in short instructions when optimising for size on Thumb-2.
21114 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
21116 * gimple-low.c (lower_gimple_return): When not optimizing, force labels
21117 associated with user returns to be preserved.
21119 2011-04-06 Tristan Gingold <gingold@adacore.com>
21121 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
21122 symbol_queue_size, DBXOUT_DECR_NESTING,
21123 (DBXOUT_DECR_NESTING_AND_RETURN): Also define
21124 if XCOFF_DEBUGGING_INFO.
21126 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
21128 * config/i386/i386.md (attribute isa): New.
21129 (attribute enabled): New.
21130 (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
21131 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
21132 (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
21133 (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
21134 (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
21135 (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
21136 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
21137 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
21139 * config/i386/sse.md (VF): New mode iterator.
21143 (SSEMODEF4): Remove.
21144 (attribute sse): Handle V8SF and V4DF modes.
21145 (<absneg:code><mode>2): Use VF mode iterator.
21146 (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2. Use VF
21148 (<plusminus_insn><mode>3): Use VF mode iterator.
21149 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
21150 Use VF mode iterator.
21151 (<sse>_vm<plusminus_insn><mode>3): Merge with
21152 *avx_vm<plusminus_insn><mode>3. Use VF_128 mode iterator.
21153 (mul<mode>3): Use VF mode iterator.
21154 (*mul<mode>3): Merge with *avx_mul<mode>3. Use VF mode iterator.
21155 (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3. Use VF_128
21157 (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
21158 (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
21159 (<sse>_div<mode>3): Merge with *avx_div<mode>3. Use VF mode iterator.
21160 (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3. Use VF_128
21162 (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
21163 Use VF1 mode iterator.
21164 (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
21165 (sqrt<VF2:mode>2): New expander.
21166 (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
21167 (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
21168 and sqrtv2df2. Use VF mode iterator.
21169 (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2. Use VF_128
21171 (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
21172 (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
21173 Use VF1 mode iterator.
21174 (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
21175 (<smaxmin:code><mode>3): Use VF mode iterator.
21176 (*<smaxmin:code><mode>3_finite): Merge with
21177 *avx_<smaxmin:code><mode>3_finite. Use VF mode iterator.
21178 (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
21179 (<sse>_vm<smaxmin:code><mode>2): Merge with
21180 *avx_vm<smaxmin:code><mode>2. Use VF_128 mode iterator.
21181 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3. Use VF
21183 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3. Use VF
21185 (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
21186 (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
21187 (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
21188 (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
21189 (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3. Use
21191 (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
21192 Use VF_128 mode iterator.
21193 (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3. Use VF
21195 (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3. Use
21196 VF_128 mode iterator.
21197 (vcond<mode>): Use VF mode iterator.
21198 * config/i386/predicates.md (sse_comparison_operator): Merge with
21199 avx_comparison_float_operator. Do not declare as special_predicate.
21200 * config/i386/i386.c (struct builtin_description): Update for renamed
21202 (ix86_expand_args_builtin): Ditto.
21203 (ix86_expand_sse_compare_mask): Ditto.
21205 2011-04-06 Richard Guenther <rguenther@suse.de>
21207 * tree-inline.c (estimate_num_insns): For calls simply account
21208 for all passed arguments and a used return value.
21210 2011-04-06 Richard Guenther <rguenther@suse.de>
21212 PR tree-optimization/47663
21213 * cgraph.h (struct cgraph_edge): Add call_stmt_size and
21214 call_stmt_time fields.
21215 (cgraph_edge_inlinable_p): Declare.
21216 (cgraph_edge_recursive_p): New inline function.
21217 * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
21218 (cgraph_clone_edge): Copy it.
21219 * ipa-inline.c (cgraph_estimate_edge_time): New function.
21220 Account for call stmt time.
21221 (cgraph_estimate_time_after_inlining): Take edge argument.
21222 (cgraph_estimate_edge_growth): Account call stmt size.
21223 (cgraph_estimate_size_after_inlining): Take edge argument.
21224 (cgraph_mark_inline_edge): Adjust.
21225 (cgraph_check_inline_limits): Likewise.
21226 (cgraph_recursive_inlining_p): Remove.
21227 (cgraph_edge_badness): Use cgraph_edge_recursive_p.
21228 (cgraph_decide_recursive_inlining): Take edge argument and
21230 (cgraph_decide_inlining_of_small_functions): Do not avoid
21231 diags for recursive inlining here.
21232 (cgraph_flatten): Adjust.
21233 (cgraph_decide_inlining_incrementally): Likewise.
21234 (estimate_function_body_sizes): Remove call cost handling.
21235 (compute_inline_parameters): Initialize caller edge call costs.
21236 (cgraph_estimate_edge_growth): New function.
21237 (cgraph_estimate_growth): Use it.
21238 (cgraph_edge_badness): Likewise.
21239 (cgraph_check_inline_limits): Take an edge argument.
21240 (cgraph_decide_inlining_of_small_functions): Adjust.
21241 (cgraph_decide_inlining): Likewise.
21242 * tree-inline.c (estimate_num_insns): Only account for call
21243 return value if it is used.
21244 (expand_call_inline): Avoid diagnostics on recursive inline
21246 * lto-cgraph.c (lto_output_edge): Output edge call costs.
21247 (input_edge): Input edge call costs.
21249 2011-04-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21251 * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
21253 2011-04-06 Jonathan Wakely <jwakely.gcc@gmail.com>
21255 * doc/invoke.texi (Spec Files): Fix typo.
21257 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
21259 * profile.c (branch_prob): Move declaration of local variable. Remove
21260 obsolete ??? comment. Expand the location explicitly instead of using
21261 the LOCATION_FILE and LOCATION_LINE macros.
21263 2011-04-06 Wei Guozhi <carrot@google.com>
21266 * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
21267 (arm_cond_branch): Likewise.
21268 (arm_cond_branch_reversed): Likewise.
21269 (arm_jump): Likewise.
21270 (push_multi): Likewise.
21271 * config/arm/constraints.md (Py): New constraint.
21273 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
21276 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
21278 (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
21279 (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
21280 #ifdef DBX_DEBUGGING_INFO.
21282 2011-04-05 Bernd Schmidt <bernds@codesourcery.com>
21285 * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
21286 if old and new states differ.
21288 2011-04-05 Joseph Myers <joseph@codesourcery.com>
21290 * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
21291 OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
21292 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
21293 handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
21294 * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
21295 mcfv4e): Use Alias.
21296 * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
21297 ColdFire options to -mcpu= options.
21299 2011-04-05 Jeff Law <law@redhat.com>
21301 * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
21302 check if BB is a successor of LOOP->header and return
21303 NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
21305 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
21307 * cprop.c (struct reg_use): Remove.
21308 (reg_use_table): Make an array of RTX.
21309 (find_used_regs, constprop_register, local_cprop_pass,
21310 bypass_block): Simplify users of reg_use_table.
21311 (cprop_insn): Likewise. Iterate if copy propagation succeeded
21312 on one of the uses found by find_used_regs.
21314 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
21317 * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
21320 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
21322 * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
21324 (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
21326 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
21328 PR middle-end/48441
21329 * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
21331 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
21333 * combine.c: Include obstack.h.
21334 (struct insn_link): Define.
21335 (uid_log_links): Adjust type.
21336 (FOR_EACH_LOG_LINK): New macro.
21337 (insn_link_obstack): Declare.
21338 (alloc_insn_link): Define.
21339 (create_log_links): Call it. Use FOR_EACH_LOG_LINK and adjust
21340 type of link variables.
21341 (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
21342 (try_combine, record_promoted_values, distribute_notes): Likewise.
21343 (distribute_links): Likewise. Tweak prototype.
21344 (clear_log_links): Delete.
21345 (adjust_for_new_dest): Call alloc_insn_link.
21346 * Makefile.in (combine.o): Depend on $(OBSTACK_H).
21348 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
21350 * gcse.c (modify_mem_list): Convert to an array of VECs.
21351 (canon_modify_mem_list, compute_transp): Tweak formatting.
21352 (alloc_gcse_mem): Likewise. Adjust for modify_mem_list change.
21353 (load_killed_in_block_p): Likewise.
21354 (record_last_mem_set_info): Likewise.
21355 (clear_modify_mem_tables): Likewise.
21357 2011-04-05 Tom de Vries <tom@codesourcery.com>
21359 PR middle-end/48461
21360 * function.c (emit_use_return_register_into_block): Only define if
21363 2011-04-05 Eric Botcazou <ebotcazou@adacore.com>
21365 * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
21367 2011-04-05 Joseph Myers <joseph@codesourcery.com>
21369 * config/rx/rx-opts.h: New.
21370 * config/rx/rx.c (rx_cpu_type): Remove.
21371 (rx_handle_option): Don't assert that global structures are in
21372 use. Access variables via opts pointer. Defer most handling of
21373 OPT_mint_register_. Use error_at.
21374 (rx_option_override): Handle deferred OPT_mint_register_ here.
21375 * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
21376 * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
21377 (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
21378 (rx_cpu_types): New Enum and EnumValue entries.
21379 (mint-register=): Use Defer and use Var accordingly.
21381 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
21383 * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
21384 (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
21385 * final.c (debug_flush_symbol_queue, debug_queue_symbol):
21387 (debug_free_queue, debug_nesting, symbol_queue_index):
21389 * dbxout.c: ...to here. Make static.
21391 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
21393 * gcse.c (modify_pair): Define. Define a VEC of it.
21394 (canon_modify_mem_list): Convert to an array of VECs.
21395 (free_insn_expr_list_list): Delete.
21396 (clear_modify_mem_tables): Call VEC_free instead.
21397 (record_last_mem_set_info): Don't modify canon_modify_mem_list.
21398 (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
21399 (canon_list_insert, compute_transp): Likewise.
21401 2011-04-05 Tom de Vries <tom@codesourcery.com>
21404 * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
21407 2011-04-05 Tom de Vries <tom@codesourcery.com>
21410 * function.c (emit_use_return_register_into_block): New function.
21411 (thread_prologue_and_epilogue_insns): Use
21412 emit_use_return_register_into_block.
21414 2011-04-05 Tom de Vries <tom@codesourcery.com>
21417 * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
21420 2011-04-05 Tom de Vries <tom@codesourcery.com>
21422 * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
21424 2011-04-05 Yufeng Zhang <yufeng.zhang@arm.com>
21426 * config/arm/arm.md (define_constants for unspec): Replace with
21428 (define_constants for unspecv): Replace with define_c_enum.
21429 * config/arm/neon.md (define_constants for unspec): Replace with
21432 2011-04-04 Richard Henderson <rth@redhat.com>
21435 * dwarf2out.c (output_line_info): Always emit line info from
21436 at least one section.
21437 (dwarf2out_init): Create text_section_line_info here ...
21438 (set_cur_line_info_table): ... not here.
21440 2011-04-04 Vladimir Makarov <vmakarov@redhat.com>
21443 * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
21446 * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
21448 2011-04-04 Steven Bosscher <steven@gcc.gnu.org>
21450 * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
21451 (expr_equiv_p): Remove.
21452 (insert_set_in_table): Look at <dest, src> pair instead of expr.
21453 (hash_scan_set): Update call to insert_set_in_table.
21454 (dump_hash_table): Dump <dest, src> pair.
21455 (lookup_set): Simplify. Lookup <dest, src> pair.
21456 (compute_transp): Remove, fold heavily simplified code into...
21457 (compute_local_properties): ...here. Expect COMP and TRANSP
21459 (find_avail_set): Take set directly from struct expr.
21460 (find_bypass-set): Likewise.
21461 (bypass_block): Likewise.
21462 (cprop_insn): Likewise. Remove redundant INSN_P test.
21464 * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
21465 checks on form of COND from find_implicit_sets to here.
21466 (find_implicit_sets): Cleanup control flow. Split critical edges
21467 if it exposes implicit sets. Allocate/resize implicit_sets as
21469 (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
21470 changed something. Run df_analyze after find_implicit_sets if any
21471 edges were split. Do not allocate implicit_sets here.
21473 * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
21474 (gcse_obstack): Renamed to cprop_obstack.
21475 (GNEW, GNEWVEC, GNEWVAR): Remove.
21477 (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
21478 (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
21479 (gcse_alloc): Likewise, and rename to cprop_alloc.
21480 (alloc_gcse_men, free_gcse_mem): Remove.
21481 (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
21482 (compute_hash_table_work): Allocate and free reg_set_bitmap here.
21483 (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
21485 * cprop.c (oprs_not_set_p): Remove.
21486 (mark_set, mark_clobber): Remove.
21487 (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
21488 (reg_not_set_p): New function.
21489 (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
21490 (cprop_insn): Likewise.
21491 (cprop_jump): Use FOR_EACH_EDGE.
21493 2011-04-04 Bernd Schmidt <bernds@codesourcery.com>
21496 * haifa-sched.c (nonscheduled_insns_begin): New static variable.
21497 (rank_for_schedule): Use scheduled_insns vector instead of
21498 last_scheduled_insn.
21499 (ok_for_early_queue_removal): Likewise.
21500 (queue_to_ready): Search forward in nonscheduled_insns_begin if
21502 (choose_ready): Likewise.
21503 (commit_schedule): Use VEC_iterate.
21504 (schedule_block): Initialize nonscheduled_insns_begin. If we have
21505 a dbg_cnt, use it and ensure the first insn is in the ready list.
21506 (haifa_sched_init): Allocate scheduled_insns.
21507 (sched_extend_ready_list): Don't allocate it; reserve space.
21508 (haifa_sched_finish): Free it.
21510 2011-04-04 Joseph Myers <joseph@codesourcery.com>
21512 * optc-gen.awk: Always remove type from Variable entry before
21513 recording in var_seen.
21515 2011-04-04 Eric Botcazou <ebotcazou@adacore.com>
21517 * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
21518 * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
21519 call to tidy_fallthru_edges.
21521 2011-04-04 Joseph Myers <joseph@codesourcery.com>
21523 * doc/options.texi (ToLower): Document.
21524 * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
21525 * opts-common.c (decode_cmdline_option): Handle cl_tolower.
21526 * opts.h (cl_option): Add cl_tolower field.
21527 * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
21528 arguments with lowercase strings.
21529 * config/rx/rx.opt (mcpu=): Add ToLower.
21530 * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
21533 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
21535 * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
21537 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
21539 * config/vax/vax.c: Include reload.h.
21541 2011-04-04 Anatoly Sokolov <aesok@post.ru>
21543 * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
21544 * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
21545 (sparc_preferred_reload_class): New function.
21547 2011-04-04 Jakub Jelinek <jakub@redhat.com>
21550 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
21551 Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
21553 2011-04-03 Nathan Froyd <froydnj@codesourcery.com>
21555 * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
21556 * tree.c (initialize_tree_contains_struct): Adjust accordingly.
21558 2011-04-03 Anatoly Sokolov <aesok@post.ru>
21560 * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
21561 (ASM_OUTPUT_ALIGNED_BSS): Define.
21563 2011-04-03 Michael Matz <matz@suse.de>
21565 * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
21566 and next_slot members.
21567 (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
21568 lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
21569 (lto_streamer_cache_append): Declare.
21570 * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
21571 unsigned index, remove offset parameter, ensure that we append
21572 or update existing entries.
21573 (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
21574 parameter, update next_slot for append.
21575 (lto_streamer_cache_insert): Use unsigned index, remove offset_p
21577 (lto_streamer_cache_insert_at): Likewise.
21578 (lto_streamer_cache_append): New function.
21579 (lto_streamer_cache_lookup): Use unsigned index.
21580 (lto_streamer_cache_get): Likewise.
21581 (lto_record_common_node): Don't test tree_node_can_be_shared.
21582 (preload_common_node): Adjust call to lto_streamer_cache_insert.
21583 (lto_streamer_cache_delete): Don't free offsets member.
21584 * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
21585 (lto_output_string_with_length): Use lto_output_data_stream.
21586 (lto_output_tree_header): Remove ix parameter, don't write it.
21587 (lto_output_builtin_tree): Likewise.
21588 (lto_write_tree): Adjust callers to above, don't track and write
21589 offset, write unsigned index.
21590 (output_unreferenced_globals): Don't emit all global vars.
21591 (write_global_references): Use unsigned indices.
21592 (lto_output_decl_state_refs): Likewise.
21593 (write_symbol): Likewise.
21594 * lto-streamer-in.c (lto_input_chain): Move earlier.
21595 (input_function): Use unsigned index.
21596 (input_alias_pairs): Don't read and then ignore all global vars.
21597 (lto_materialize_tree): Remove ix_p parameter, don't read index,
21598 don't pass it back, use lto_streamer_cache_append.
21599 (lto_register_var_decl_in_symtab): Use unsigned index.
21600 (lto_register_function_decl_in_symtab): Likewise.
21601 (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
21603 (lto_get_builtin_tree): Don't read index, use
21604 lto_streamer_cache_append.
21605 (lto_read_tree): Adjust call to lto_materialize_tree.
21607 * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
21608 don't use function calls in arguments to MIN.
21610 * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
21613 * gimple.c (gimple_type_leader_entry): Mark deletable.
21615 2011-04-03 Alan Modra <amodra@gmail.com>
21617 * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
21619 2011-04-03 Michael Matz <matz@suse.de>
21621 * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
21623 * tree.h (tree_decl_non_common.vindex): Adjust comment.
21625 2011-04-03 Michael Matz <matz@suse.de>
21627 * cgraphbuild.c (record_reference): Canonicalize constructor values.
21628 * gimple-fold.c (canonicalize_constructor_val): Accept being called
21629 without function context.
21630 * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
21631 current_function_decl and cfun.
21633 2011-04-03 Michael Matz <matz@suse.de>
21635 * tree.c (decl_init_priority_insert): Don't create entry for
21637 (decl_fini_priority_insert): Ditto.
21638 (fields_compatible_p, find_compatible_field): Remove.
21639 * tree.h (fields_compatible_p, find_compatible_field): Remove.
21640 * gimple.c (gimple_compare_field_offset): Adjust block comment.
21642 2011-04-03 Eric Botcazou <ebotcazou@adacore.com>
21644 * combine.c (try_combine): Remove useless local variable.
21646 2011-04-03 Richard Guenther <rguenther@suse.de>
21647 Ira Rosen <ira.rosen@linaro.org>
21649 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
21650 non-variable offsets and compare the remaining bases of the two
21651 accesses instead of looking for exact same data-ref.
21653 2011-04-02 Kai Tietz <ktietz@redhat.com>
21656 * i386.c (ix86_function_arg_boundary): Fix printf formatter.
21658 * i386.c (ix86_is_msabi_thiscall): New helper function.
21659 (ix86_is_type_thiscall): New helper function.
21660 (ix86_comp_type_attributes): Handle thiscall for method-functions
21662 (init_cumulative_args): Likewise.
21663 (find_drap_reg): Likewise.
21664 (ix86_static_chain): Likewise.
21665 (x86_this_parameter): Likewise.
21666 (x86_output_mi_thunk): Likewise.
21668 2011-04-01 Olivier Hainque <hainque@adacore.com>
21669 Nicolas Setton <setton@adacore.com>
21670 Eric Botcazou <ebotcazou@adacore.com>
21672 * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
21673 (add_gnat_descriptive_type_attribute): New function.
21674 (gen_array_type_die): Call it.
21675 (gen_enumeration_type_die): Likewise.
21676 (gen_struct_or_union_type_die): Likewise.
21677 (modified_type_die): Likewise.
21678 * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
21679 * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
21680 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
21682 2011-04-01 Jakub Jelinek <jakub@redhat.com>
21685 * dwarf2out.c (resolve_addr): Don't call force_decl_die
21686 if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
21689 2011-03-17 Richard Guenther <rguenther@suse.de>
21692 * lto-cgraph.c (input_overwrite_node): Clear the abstract
21693 origin for decls in other ltrans units.
21694 (input_varpool_node): Likewise.
21696 2011-04-01 Jakub Jelinek <jakub@redhat.com>
21698 PR middle-end/48335
21699 * expr.c (expand_assignment): Handle all possibilities
21700 if TO_RTX is CONCAT.
21701 * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
21702 (store_split_bit_field): If SUBREG_REG (op0) or
21703 op0 itself has smaller mode than word, return it
21704 for offset 0 and const0_rtx for out-of-bounds stores.
21705 If word is const0_rtx, skip it.
21707 2011-04-01 Naveen H.S <naveen.S@kpitcummins.com>
21709 * config/h8300/h8300.c (print_operand_address): Rename to...
21710 (h8300_print_operand_address): ...this. Make static. Adjust comments.
21711 Call h8300_print_operand and h8300_print_operand_address instead of
21712 print_operand and print_operand_address. Declare.
21713 (print_operand): Renake to...
21714 (h8300_print_operand): ...this. Make static. Adjust comments.
21715 Call h8300_print_operand instead of print_operand. Declare.
21716 (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
21717 (h8300_register_move_cost): Likewise.
21718 (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
21719 TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
21720 * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
21721 PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
21722 * config/h8300/h8300-protos.h (print_operand): Delete.
21723 (print_operand_address): Delete.
21725 2011-04-01 Richard Henderson <rth@redhat.com>
21728 * dwarf2out.c (dwarf2out_source_line): Disable discriminators
21729 in strict mode before dwarf4. Re-order tests to early out
21730 before switching sections.
21732 2011-04-01 Nathan Froyd <froydnj@codesourcery.com>
21734 * config/h8300/constraints.md: New file.
21735 * config/h8300/h8300.md: Include it. Use satisfies_constraint_J,
21736 satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
21737 (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
21738 * config/h8300/predicates.md (bit_operand): Likewise.
21739 (incdec_operand): Use satisfies_constraint_M and
21740 satisfies_constraint_O. Don't use C code block.
21741 * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
21742 * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
21743 (compute_mov_length): Use satisfies_constraint_G.
21744 (fix_bit_operand): Use satisfies_constraint_U.
21745 * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
21746 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
21747 (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
21748 (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
21749 (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
21750 (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
21751 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
21752 (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
21753 (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
21754 (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
21755 (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
21756 (EXTRA_MEMORY_CONSTRAINT): Delete.
21758 2011-04-01 Andrew Pinski <pinskia@gmail.com>
21759 Michael Meissner <meissner@linux.vnet.ibm.com>
21762 * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
21763 operands, as per the specifications.
21765 * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
21766 (vec_extract_evenv4sf): Ditto.
21767 (vec_extract_evenv8hi): Ditto.
21768 (vec_extract_evenv16qi): Ditto.
21769 (vec_extract_oddv4si): Ditto.
21771 2011-03-31 Mark Wielaard <mjw@redhat.com>
21773 * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
21774 high_pc attribute if the CU has no associated code. Only output
21775 DW_AT_entry_pc for CU if not generating strict dwarf and
21778 2011-04-01 Bernd Schmidt <bernds@codesourcery.com>
21780 * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
21781 * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
21783 (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
21784 * final.c (final_start_function): Call the new function rather
21785 than using a NULL argument for dwarf2out_frame_debug.
21787 * ifcvt.c (cond_exec_process_insns): Disallow converting a block
21788 that contains the prologue.
21790 * haifa-sched.c (queue_insn): New arg REASON. All callers
21791 changed. Print it in debugging output.
21793 * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
21795 * sched-ebb.c (begin_schedule_ready): Remove second argument.
21796 Split most of the code into...
21797 (begin_move_insn): ... here. New function.
21798 (ebb_sched_info): Add a pointer to it.
21799 * haifa-sched.c (scheduled_insns): New static variable.
21800 (sched_extend_ready_list): Allocate it.
21801 (schedule_block): Use it to record the order of scheduled insns.
21802 Perform RTL changes to move insns only after all scheduling
21803 decisions have been made.
21804 * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
21805 begin_move_insn field.
21806 * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
21807 * sched-int.h (struct haifa_sched_info): Remove second argument
21808 from begin_schedule_ready hook. Add new member begin_move_insn.
21809 * sched-rgn.c (begin_schedule_ready): Remove second argument.
21810 (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
21812 * haifa-sched.c (prune_ready_list): New function, broken out of
21814 (schedule_block): Use it.
21816 2011-04-01 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
21818 * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
21820 2011-04-01 Kai Tietz <ktietz@redhat.com>
21822 * config.gcc (*-*-mingw*): Allow as option the
21823 posix threading model.
21824 * config/i386/mingw32.h (SPEC_PTHREAD1, SPEC_PTHREAD2):
21825 New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
21827 (CPP_SPEC): Add pthread/no-pthread handling.
21828 (LIB_SPEC): Likewise.
21829 * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
21830 (LIB_SPEC): Likewise.
21831 * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
21832 flag to pass -pthread option for shared libgcc build.
21833 (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
21834 for shared libgcc build.
21835 * config/i386/t-mingw-pthread: New file.
21836 * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
21837 New define to enable use of library pthread by default.
21838 * config/i386/mingw.opt (pthread): New driver option.
21839 (no-pthread): New driver option.
21840 * config/i386/cygming.opt: Make sure trailing empty line is retained.
21841 * config/i386/mingw-w64.opt: Likewise.
21843 2011-04-01 Gary Funck <gary@intrepid.com>
21845 * c-decl.c (grokdeclarator): Fix formatting.
21847 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
21849 * expr.c (emit_block_move_via_movmem): Use n_generator_args
21850 instead of n_operands.
21851 (set_storage_via_setmem): Likewise.
21852 * optabs.c (maybe_gen_insn): Likewise.
21853 * config/arm/arm.c (arm_init_neon_builtins): Likewise.
21854 * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
21855 (mips_expand_builtin_direct): Likewise.
21856 * config/spu/spu.c (expand_builtin_args): Likewise.
21858 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
21860 * recog.h (insn_data_d): Add n_generator_args.
21861 * genoutput.c (data): Likewise.
21862 (output_insn_data): Print it.
21863 (max_opno, num_dups): Delete.
21864 (scan_operands): Just fill in "d->operand[...]".
21865 (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
21867 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
21869 * gensupport.h (pattern_stats): New structure.
21870 * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
21871 * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
21872 (max_operand_1, max_operand_vec): Delete.
21873 (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
21875 2011-03-31 Nathan Froyd <froydnj@codesourcery.com>
21877 * emit-rtl.c (emit_pattern_after_setloc): New function.
21878 (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
21879 (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
21880 (emit_pattern_after): New function.
21881 (emit_insn_after, emit_jump_insn_after): Call it.
21882 (emit_call_insn_after, emit_debug_insn_after): Likewise.
21883 (emit_pattern_before_setloc): New function.
21884 (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
21885 (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
21887 (emit_pattern_before): New function.
21888 (emit_insn_before, emit_jump_insn_before): Call it.
21889 (emit_call_insn_before, emit_debug_insn_before): Likewise.
21891 2011-03-31 Richard Henderson <rth@redhat.com>
21893 * dwarf2out.c (dw_separate_line_info_ref): Remove.
21894 (dw_separate_line_info_entry): Remove.
21895 (enum dw_line_info_opcode): New.
21896 (dw_line_info_entry): Use it.
21897 (dw_line_info_table, dw_line_info_table_p): New.
21898 (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
21899 (line_info_table, line_info_label_num): Remove.
21900 (line_info_table_in_use): Remove.
21901 (separate_line_info_table): Remove.
21902 (separate_line_info_table_allocated): Remove.
21903 (separate_line_info_table_in_use): Remove.
21904 (LINE_INFO_TABLE_INCREMENT): Remove.
21905 (line_info_label_num): New.
21906 (cur_line_info_table): New.
21907 (text_section_line_info, cold_text_section_line_info): New.
21908 (separate_line_info): New.
21909 (SEPARATE_LINE_CODE_LABEL): Remove.
21910 (print_dwarf_line_table): Remove.
21911 (debug_dwarf): Don't dump it.
21912 (output_one_line_info_table): New.
21913 (output_line_info): Use it.
21914 (new_line_info_table): New.
21915 (set_cur_line_info_table): New.
21916 (dwarf2out_switch_text_section): Use it.
21917 (dwarf2out_begin_function): Likewise.
21918 (push_dw_line_info_entry): New.
21919 (dwarf2out_source_line): Rewrite for new line info tables.
21920 (dwarf2out_init): Remove dead initailizations.
21922 2011-03-31 Joseph Myers <joseph@codesourcery.com>
21924 * opts.h (cl_option): Add comments to fields. Add bit-fields for
21926 (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
21927 CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
21928 CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
21929 CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
21930 (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
21931 * opt-functions.awk (flag_init, switch_bit_fields): New.
21932 (switch_flags): Don't handle flags moved to bit-fields. Don't
21933 generate CL_MISSING_OK or CL_SAVE.
21934 * optc-gen.awk: Update to generate bit-field output as well as
21936 * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
21937 bit-field instead of CL_REJECT_DRIVER flag.
21938 * opts-common.c (generate_canonical_option,
21939 decode_cmdline_option): Use bit-fields instead of CL_* flags.
21940 * opts.c (maybe_default_option): Use cl_reject_negative bit-field
21941 instead of CL_REJECT_NEGATIVE flag.
21942 * toplev.c (print_switch_values): Use cl_report bit-field instead
21945 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
21947 * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
21948 a zero minimum index only if it is redundant.
21950 2011-03-31 Vladimir Makarov <vmakarov@redhat.com>
21952 PR rtl-optimization/48381
21953 * ira-color.c (assign_hard_reg): Use hard reg set intersection
21954 instead of ira_class_hard_reg_index for calculating conflicting
21957 2011-03-31 Steven Bosscher <steven@gcc.gnu.org>
21959 * cprop.c: Clean up hash table building.
21960 (reg_avail_info): Remove.
21961 (oprs_available_p): Remove.
21962 (record_last_reg_set_info): Remove.
21963 (record_last_set_info): Remove.
21964 (reg_available_p): New function.
21965 (gcse_constant_p): Do not treat unfolded conditions as constants.
21966 (make_set_regs_unavailable): New function.
21967 (hash_scan_set): Simplify with new reg_available_p.
21968 (compute_hash_table_work): Traverse insns stream only once.
21969 Do not compute reg_avail_info. Traverse insns in reverse order.
21970 Record implicit sets after recording explicit sets from the block.
21972 2011-03-31 Michael Matz <matz@suse.de>
21974 * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
21976 2011-03-31 Anatoly Sokolov <aesok@post.ru>
21978 * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
21979 * config/h8300/h8300-protos.h (h8300_get_index): Remove.
21980 * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
21981 (h8300_mode_dependent_address_p): New function.
21982 (h8300_get_index): Make static.
21984 2011-03-31 Jeff Law <law@redhat.com>
21986 * reload1.c (elimination_effects): Fix typo in recent change.
21988 * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
21989 typo potentially leading to null pointer dereference.
21991 * caller-save.c (new_saved_hard_reg): Eliminate return value.
21992 (setup_save_areas): Corresponding changes to avoid useless
21995 * jump.c (reversed_comparison_code_parts): Avoid successive return
21996 statements when REVERSE_CONDITION is defined.
21998 * expr.c (expand_assignment): Avoid useless assignments.
21999 (expand_expr_real_1): Likewise.
22000 (expand_expr_real_2): Avoid useless statements.
22002 * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
22004 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
22006 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
22009 * stmt.c (expand_expr_stmt): Avoid useless assignment.
22011 2011-03-31 Joseph Myers <joseph@codesourcery.com>
22014 * doc/tm.texi.in (TARGET_VERSION): Remove.
22015 * doc/tm.texi: Regenerate.
22016 * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
22017 * collect2.c (main): Don't use TARGET_VERSION.
22018 * mips-tdump.c (main): Don't use TARGET_VERSION.
22019 * mips-tfile.c (main): Don't use TARGET_VERSION.
22020 * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
22021 * config/rs6000/vxworksae.h: Remove.
22022 * config/alpha/alpha.h (TARGET_VERSION): Remove.
22023 * config/alpha/freebsd.h (TARGET_VERSION): Remove.
22024 * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
22025 * config/alpha/netbsd.h (TARGET_VERSION): Remove.
22026 * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
22027 * config/arm/arm.h (TARGET_VERSION): Remove.
22028 * config/arm/coff.h (TARGET_VERSION): Remove.
22029 * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
22030 * config/arm/elf.h (TARGET_VERSION): Remove.
22031 * config/arm/freebsd.h (TARGET_VERSION): Remove.
22032 * config/arm/linux-elf.h (TARGET_VERSION): Remove.
22033 * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
22034 * config/arm/pe.h (TARGET_VERSION): Remove.
22035 * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
22036 * config/arm/semi.h (TARGET_VERSION): Remove.
22037 * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
22038 * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
22039 * config/arm/vxworks.h (TARGET_VERSION): Remove.
22040 * config/avr/avr.h (TARGET_VERSION): Remove.
22041 * config/bfin/bfin.h (TARGET_VERSION): Remove.
22042 * config/fr30/fr30.h (TARGET_VERSION): Remove.
22043 * config/frv/frv.h (TARGET_VERSION): Remove.
22044 * config/h8300/h8300.h (TARGET_VERSION): Remove.
22045 * config/i386/cygwin.h (TARGET_VERSION): Remove.
22046 * config/i386/darwin.h (TARGET_VERSION): Remove.
22047 * config/i386/darwin64.h (TARGET_VERSION): Remove.
22048 * config/i386/djgpp.h (TARGET_VERSION): Remove.
22049 * config/i386/freebsd.h (TARGET_VERSION): Remove.
22050 * config/i386/freebsd64.h (TARGET_VERSION): Remove.
22051 * config/i386/gnu.h (TARGET_VERSION): Remove.
22052 * config/i386/i386-interix.h (TARGET_VERSION): Remove.
22053 * config/i386/i386elf.h (TARGET_VERSION): Remove.
22054 * config/i386/linux.h (TARGET_VERSION): Remove.
22055 * config/i386/linux64.h (TARGET_VERSION): Remove.
22056 * config/i386/lynx.h (TARGET_VERSION): Remove.
22057 * config/i386/mingw32.h (TARGET_VERSION): Remove.
22058 * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
22059 * config/i386/netbsd64.h (TARGET_VERSION): Remove.
22060 * config/i386/netware.h (TARGET_VERSION): Remove.
22061 * config/i386/nto.h (TARGET_VERSION): Remove.
22062 * config/i386/openbsd.h (TARGET_VERSION): Remove.
22063 * config/i386/vxworks.h (TARGET_VERSION): Remove.
22064 * config/ia64/elf.h (TARGET_VERSION): Remove.
22065 * config/ia64/freebsd.h (TARGET_VERSION): Remove.
22066 * config/ia64/hpux.h (TARGET_VERSION): Remove.
22067 * config/ia64/linux.h (TARGET_VERSION): Remove.
22068 * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
22069 * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
22070 TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
22071 * config/lm32/lm32.h (TARGET_VERSION): Remove.
22072 * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
22073 * config/m32c/m32c.h (TARGET_VERSION): Remove.
22074 * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
22075 * config/m32r/m32r.h (TARGET_VERSION): Remove.
22076 * config/m68k/linux.h (TARGET_VERSION): Remove.
22077 * config/m68k/m68k.h (TARGET_VERSION): Remove.
22078 * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
22079 * config/m68k/uclinux.h (TARGET_VERSION): Remove.
22080 * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
22081 * config/mep/mep.h (TARGET_VERSION): Remove.
22082 * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
22083 MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
22084 * config/mips/iris6.h (MACHINE_TYPE): Remove.
22085 * config/mips/linux.h (TARGET_VERSION): Remove.
22086 * config/mips/netbsd.h (MACHINE_TYPE): Remove.
22087 * config/mips/vxworks.h (TARGET_VERSION): Remove.
22088 * config/mmix/mmix.h (TARGET_VERSION): Remove.
22089 * config/mn10300/linux.h (TARGET_VERSION): Remove.
22090 * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
22091 * config/pa/pa.h (TARGET_VERSION): Remove.
22092 * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
22093 * config/picochip/picochip.h (TARGET_VERSION): Remove.
22094 * config/rs6000/aix.h (TARGET_VERSION): Remove.
22095 * config/rs6000/darwin.h (TARGET_VERSION): Remove.
22096 * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
22097 * config/rs6000/eabi.h (TARGET_VERSION): Remove.
22098 * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
22099 * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
22100 * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
22101 * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
22102 * config/rs6000/linux.h (TARGET_VERSION): Remove.
22103 * config/rs6000/linux64.h (TARGET_VERSION): Remove.
22104 * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
22105 * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
22106 * config/rs6000/lynx.h (TARGET_VERSION): Remove.
22107 * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
22108 * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
22109 * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
22110 * config/s390/linux.h (TARGET_VERSION): Remove.
22111 * config/s390/s390.h (TARGET_VERSION): Remove.
22112 * config/s390/tpf.h (TARGET_VERSION): Remove.
22113 * config/score/score.h (TARGET_VERSION): Remove.
22114 * config/sh/linux.h (TARGET_VERSION): Remove.
22115 * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
22116 TARGET_VERSION_CPU, TARGET_VERSION): Remove.
22117 * config/sh/sh.h (TARGET_VERSION): Remove.
22118 * config/sh/sh64.h (TARGET_VERSION): Remove.
22119 * config/sh/superh.h (TARGET_VERSION): Remove.
22120 * config/sh/vxworks.h (TARGET_VERSION): Remove.
22121 * config/sparc/freebsd.h (TARGET_VERSION): Remove.
22122 * config/sparc/linux.h (TARGET_VERSION): Remove.
22123 * config/sparc/linux64.h (TARGET_VERSION): Remove.
22124 * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
22125 TARGET_NAME32, TARGET_NAME): Remove.
22126 * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
22127 * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
22128 * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
22129 * config/sparc/sysv4.h (TARGET_VERSION): Remove.
22130 * config/sparc/vxworks.h (TARGET_VERSION): Remove.
22131 * config/spu/spu.h (TARGET_VERSION): Remove.
22132 * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
22133 * config/v850/v850.h (TARGET_VERSION): Remove.
22134 * config/vax/linux.h (TARGET_VERSION): Remove.
22135 * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
22136 * config/xtensa/elf.h (TARGET_VERSION): Remove.
22137 * config/xtensa/linux.h (TARGET_VERSION): Remove.
22139 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
22142 * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
22143 frame-related from frame-unrelated adjustments to the stack pointer.
22145 2011-03-31 Jakub Jelinek <jakub@redhat.com>
22147 * common.opt (fdebug-types-section): Move earlier.
22148 * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
22150 2011-03-31 Andreas Tobler <andreast@fgznet.ch>
22152 * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
22155 2011-03-30 Nathan Froyd <froydnj@codesourcery.com>
22157 * tree.h (CASE_CHAIN): Define.
22158 * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
22159 (gimple_redirect_edge_and_branch): Likewise.
22161 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
22163 PR middle-end/48367
22164 * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
22167 2011-03-30 Jeff Law <law@redhat.com>
22169 * PR bootstrap/48371
22170 * reload1.c (reload): Fix botch in last change.
22172 * reload.h (struct reload): Fix typo introduced in last change.
22174 2011-03-30 Joseph Myers <joseph@codesourcery.com>
22176 * config/arm/arm.opt (mhard-float, msoft-float): Mark
22177 Undocumented. Remove help text.
22178 * doc/invoke.texi (ARM Options): Don't document -msoft-float and
22181 2011-03-30 Joseph Myers <joseph@codesourcery.com>
22183 * doc/options.texi (NegativeAlias): Document.
22184 (Alias): Mention NegativeAlias.
22185 * opt-functions.awk: Handle NegativeAlias.
22186 * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
22187 * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
22188 * opts.h (CL_NEGATIVE_ALIAS): Define.
22189 * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
22190 (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
22192 * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
22194 * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
22195 mno-spe and mno-isel instead of mspe=no and -misel=no.
22197 2011-03-29 Mark Wielaard <mjw@redhat.com>
22199 * common.opt (fdebug-types-section): New flag.
22200 * doc/invoke.texi: Document new -fno-debug-types-section flag.
22201 * dwarf2out.c (use_debug_types): New define.
22202 (struct die_struct): Mark die_id with GTY desc use_debug_types.
22203 (print_die): Guard output of type unit signatures using
22205 (build_abbrev_table): Replace assert of dwarf_version >= 4
22206 with assert on use_debug_types.
22207 (size_of_die): Likewise.
22208 (unmark_dies): Likewise.
22209 (value_format): Decide AT_ref_external form on use_debug_types.
22210 (output_die): Replace dwarf_version version check guard with
22211 use_debug_types where appropriate.
22212 (modified_type_die): Likewise.
22213 (gen_reference_type_die): Likewise.
22214 (dwarf2out_start_source_file): Likewise.
22215 (dwarf2out_end_source_file): Likewise.
22216 (prune_unused_types_walk_attribs): Likewise.
22217 (dwarf2out_finish): Likewise.
22219 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
22221 * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
22223 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
22225 PR rtl-optimization/48332
22226 * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
22227 mode of input operand N and modeN to its actual mode.
22229 2011-03-30 Jeff Law <law@redhat.com>
22231 * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
22232 define accessor macro.
22233 (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
22234 (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
22235 (reg_equiv_init): Likewise.
22236 (reg_equivs_size): New variable.
22237 (reg_equiv_init_size): Remove.
22238 (allocate_initial_values): Move prototype to here from....
22239 * integrate.h (allocate_initial_values): Remove prototype.
22240 * integrate.c: Include reload.h.
22241 (allocate_initial_values): Corresponding changes.
22242 * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
22243 (fix_reg_equiv_init, no_equiv): Corresponding changes.
22244 (update_equiv_regs): Corresponding changes.
22245 (ira): Corresponding changes.
22246 * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
22247 (push_secondary_reload): Corresponding changes.
22248 (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
22249 (make_memloc, find_reloads_address): Corresponding changes.
22250 (subst_reg_equivs, subst_indexed_address): Corresponding changes.
22251 (find_reloads_address_1): Corresponding changes.
22252 (find_reloads_subreg_address, subst_reloads): Corresponding changes.
22253 (refers_to_regno_for_reload_p): Corresponding changes.
22254 (reg_overlap_mentioned_for_reload_p): Corresponding changes.
22255 (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
22256 * reload1.c: Include ggc.h.
22257 (grow_reg_equivs): New function.
22258 (replace_pseudos_in, reload): Corresponding changes.
22259 (calculate_needs_all_insns, alter_regs): Corresponding changes.
22260 (eliminate_regs_1, elimination_effects): Corresponding changes.
22261 (emit_input_reload_insns, emit_output_reload_insns): Likewise.
22262 (delete_output_reload): Likewise.
22263 * caller-save.c (mark_referenced_regs): Corresponding changes.
22264 * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
22265 * frv/predicates.md (frv_load_operand): Corresponding changes.
22266 * microblaze/microblaze.c (double_memory_operand): Corresponding
22268 * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
22269 * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
22270 * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
22271 * m68k/m68k.c (emit_move_sequence): Corresponding changes.
22272 * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
22274 * pa/pa.c (emit_move_sequence): Corresponding changes.
22275 * vax/vax.c (nonindexed_address_p): Corresponding changes.
22277 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
22280 * config/arm/arm.c (coproc_secondary_reload_class): Handle
22281 structure modes. Don't check neon_vector_mem_operand for
22282 vector or structure modes.
22284 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
22285 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
22288 * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
22289 operand 1 and reshuffle the operands to match.
22290 (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
22292 2011-03-30 Christian Schüler <cschueler@gmx.de>
22295 * config/c.opt (F): Added 'Driver' to -F option.
22298 * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
22300 * config/darwin.opt: Added '-arch' option.
22302 2011-03-30 Nick Clifton <nickc@redhat.com>
22304 * config/rx/rx.md: Add peepholes and patterns to combine
22305 extending loads and simple arithmetic instructions.
22306 * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
22307 * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
22308 * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
22309 modes to use pre-decrement and post-increment addressing.
22310 (rx_is_restricted_memory_address): Add range checking of REG+INT
22312 (rx_print_operand): Add support for %Q. Fix handling of %Q.
22313 (rx_memory_move_cost): Adjust cost of stores.
22314 (rx_adjust_insn_length): New function.
22316 2011-03-30 Jakub Jelinek <jakub@redhat.com>
22319 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
22320 arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
22321 matching arg00/arg01 types.
22323 2011-03-30 Eric Botcazou <ebotcazou@adacore.com>
22325 * cfglayout.c (insn_locators_alloc): Initialize curr_location and
22326 last_location to UNKNOWN_LOCATION.
22328 2011-03-30 H.J. Lu <hongjiu.lu@intel.com>
22331 * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
22334 2011-03-30 Joseph Myers <joseph@codesourcery.com>
22335 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22338 * config/sparc/sparc.opt (sparc_cpu_and_features): Add
22339 Init(PROCESSOR_V7).
22340 (sparc_cpu): Likewise.
22341 * config/sparc/sparc.c (sparc_option_override): Replace 0 by
22344 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
22347 PR middle-end/48342
22348 PR rtl-optimization/48345
22349 * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
22350 hard regs for given mode from profitable regs when doing secondary
22353 2011-03-29 Jeff Law <law@redhat.com>
22356 * tree-ssa-threadupdate.c (struct redirection_data): Remove
22357 do_not_duplicate field.
22358 (lookup_redirection_data): Corresponding changes.
22359 (create_duplicates): Always create a template block.
22360 (redirect_edges): Remove code which reused the original block
22361 when it was going to become unreachable code.
22362 (thread_block): Don't set do_not_duplicate field.
22364 2011-03-29 Joseph Myers <joseph@codesourcery.com>
22366 * lto-opts.c (register_user_option_p, lto_register_user_option):
22367 Make type argument unsigned.
22368 * lto-streamer.h (lto_register_user_option): Make type argument
22370 * opth-gen.awk: Make CL_* macros unsigned.
22371 * opts-common.c (find_opt): Make lang_mask argument unsigned.
22372 * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
22373 CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
22374 CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
22375 CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
22376 CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
22377 (find_opt): Make lang_mask argument unsigned.
22379 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
22381 PR rtl-optimization/48331
22382 PR rtl-optimization/48334
22383 * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
22384 for any used algorithm.
22386 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
22388 * ira-conflicts.c (build_object_conflicts): Add unused attribute
22391 2011-03-29 Uros Bizjak <ubizjak@gmail.com>
22393 * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
22394 (alpha_option_override): Don't set alpha_sr_alias_set.
22395 (emit_frame_store_1): Use gen_frame_mem rather than calling
22397 (alpha_expand_epilogue): Ditto.
22399 2011-03-29 Ira Rosen <ira.rosen@linaro.org>
22401 PR tree-optimization/48290
22402 * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
22403 vectorization, check that relevant phis in the basic block after
22404 the inner loop are really inner loop's exit phis.
22406 2011-03-29 Richard Sandiford <richard.sandiford@linaro.org>
22409 * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
22410 (cached_dw_loc_list_def): New structure.
22411 (cached_dw_loc_list): New typedef.
22412 (cached_dw_loc_list_table): New variable.
22413 (cached_dw_loc_list_table_hash): New function.
22414 (cached_dw_loc_list_table_eq): Likewise.
22415 (add_location_or_const_value_attribute): Take a bool cache_p.
22416 Cache the list when the parameter is true.
22417 (gen_formal_parameter_die): Update caller.
22418 (gen_variable_die): Likewise.
22419 (dwarf2out_finish): Likewise.
22420 (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
22421 while generating debug info for the decl.
22422 (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
22423 (dwarf2out_init): Initialize cached_dw_loc_list_table.
22424 (resolve_addr): Cache the result of resolving a chain of
22427 2011-03-28 Vladimir Makarov <vmakarov@redhat.com>
22429 * ira-color.c (update_left_conflict_sizes_p): Don't assume that
22430 conflict object hard regset nodes have intersecting hard reg sets.
22432 * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
22433 after regstat_init_n_sets_and_refs.
22435 * ira.c: Add more comments at the top.
22436 (setup_stack_reg_pressure_class, setup_pressure_classes):
22437 Add comments how we compute the register pressure classes.
22438 (setup_allocno_and_important_classes): Add more comments.
22439 (setup_class_translate_array, reorder_important_classes)
22440 (setup_reg_class_relations): Add comments.
22442 * ira-emit.c: Add 2011 to the Copyright line. Add comments at the
22445 * ira-color.c: Add 2011 to the Copyright line.
22446 (assign_hard_reg): Add more comments.
22447 (improve_allocation): Ditto.
22449 * ira-costs.c: Add 2011 to the Copyright line.
22450 (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
22452 (setup_regno_cost_classes_by_mode): Ditto.
22454 Initial patches from ira-improv branch:
22456 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
22458 * ira-build.c (ira_create_object): Remove initialization of
22459 OBJECT_PROFITABLE_HARD_REGS. Initialize OBJECT_ADD_DATA.
22460 (ira_create_allocno): Remove initialization of
22461 ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
22462 ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
22463 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
22464 ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
22465 ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
22466 Initialize ALLOCNO_ADD_DATA.
22467 (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
22468 and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
22470 (ira_flattening): Ditto. Use ALLOCNO_EMIT_DATA instead of
22471 ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
22473 * ira.c (ira_reallocate): Remove.
22474 (setup_pressure_classes): Call
22475 ira_init_register_move_cost_if_necessary. Use
22476 ira_register_move_cost instead of ira_get_register_move_cost.
22477 (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
22478 (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
22480 * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
22481 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
22482 ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
22483 ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
22484 instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
22485 OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
22487 (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
22488 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
22489 (struct allocno_color_data): New.
22490 (allocno_color_data_t): New typedef.
22491 (allocno_color_data): New definition.
22492 (ALLOCNO_COLOR_DATA): New macro.
22493 (struct object_color_data): New.
22494 (object_color_data_t): New typedef.
22495 (object_color_data): New definition.
22496 (OBJECT_COLOR_DATA): New macro.
22497 (update_copy_costs, calculate_allocno_spill_cost): Call
22498 ira_init_register_move_cost_if_necessary. Use
22499 ira_register_move_cost instead of ira_get_register_move_cost.
22500 (move_spill_restore, update_curr_costs): Ditto.
22501 (allocno_spill_priority): Make it inline.
22502 (color_pass): Allocate and free allocno_color_dat and object_color_data.
22503 (struct coalesce_data, coalesce_data_t): New.
22504 (allocno_coalesce_data): New definition.
22505 (ALLOCNO_COALESCE_DATA): New macro.
22506 (merge_allocnos, coalesced_allocno_conflict_p): Use
22507 ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
22508 ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
22509 (coalesce_allocnos): Ditto.
22510 (setup_coalesced_allocno_costs_and_nums): Ditto.
22511 (collect_spilled_coalesced_allocnos): Ditto.
22512 (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
22513 (setup_slot_coalesced_allocno_live_ranges): Ditto.
22514 (coalesce_spill_slots): Ditto.
22515 (ira_sort_regnos_for_alter_reg): Ditto. Allocate, initialize and
22516 free allocno_coalesce_data.
22518 * ira-conflicts.c: Fix formatting.
22519 (process_regs_for_copy): Call
22520 ira_init_register_move_cost_if_necessary. Use
22521 ira_register_move_cost instead of ira_get_register_move_cost.
22522 (build_object_conflicts): Optimize.
22524 * ira-costs.c (record_reg_classes): Optimize. Call
22525 ira_init_register_move_cost_if_necessary. Use
22526 ira_register_move_cost, ira_may_move_in_cost, and
22527 ira_may_move_out_cost instead of ira_get_register_move_cost and
22528 ira_get_may_move_cost.
22529 (record_address_regs): Ditto.
22530 (scan_one_insn): Optimize.
22531 (find_costs_and_classes): Optimize.
22532 (process_bb_node_for_hard_reg_moves): Call
22533 ira_init_register_move_cost_if_necessary. Use
22534 ira_register_move_cost instead of ira_get_register_move_cost.
22536 * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
22537 ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
22538 ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
22539 (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
22541 (ira_initiate_emit_data, ira_finish_emit_data)
22542 (create_new_allocno): New functions.
22543 (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
22544 (emit_move_list): Call ira_init_register_move_cost_if_necessary.
22545 Use ira_register_move_cost instead of ira_get_register_move_cost.
22547 * ira-int.h: Fix some comments.
22548 (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
22549 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
22550 (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
22551 hard_regs_subnodes_start, hard_regs_subnodes_num. Add new member
22553 (struct ira_allocno): Make mode and aclass a bitfield. Move other
22554 bitfield after mode. Make hard_regno a short int. Make
22555 hard_regno short. Remove first_coalesced_allocno and
22556 next_coalesced_allocno. Move mem_optimized_dest_p,
22557 somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
22558 into struct ira_emit_data. Remove in_graph_p, may_be_spilled_p,
22559 available_regs_num, next_bucket_allocno, prev_bucket_allocno,
22560 temp, colorable_p. Add new member add_data.
22561 (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
22562 (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
22563 (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
22564 (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
22565 (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
22566 (ALLOCNO_ADD_DATA): New macro.
22567 (ira_emit_data_t): New typedef.
22568 (struct ira_emit_data): New. Move mem_optimized_dest_p,
22569 somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
22570 from struct ira_allocno.
22571 (ALLOCNO_EMIT_DATA): New macro.
22572 (ira_allocno_emit_data, allocno_emit_reg): New.
22573 (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
22574 (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
22575 (OBJECT_ADD_DATA): New macro.
22576 (ira_reallocate): Remove.
22577 (ira_initiate_emit_data, ira_finish_emit_data): New.
22578 (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
22579 (ira_init_register_move_cost_if_necessary): New.
22580 (ira_object_conflict_iter_next): Merge into
22581 ira_object_conflict_iter_cond.
22582 (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
22584 * ira-live.c (process_single_reg_class_operands): Call
22585 ira_init_register_move_cost_if_necessary. Use
22586 ira_register_move_cost instead of ira_get_register_move_cost.
22588 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
22590 * ira-int.h (struct target_ira_int): Remove x_cost_classes.
22592 * ira-costs.c: Fix formatting.
22593 (cost_classes, cost_classes_num): Remove.
22594 (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
22595 (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
22596 (cost_classes_del, cost_classes_htab): New.
22597 (cost_classes_aclass_cache, cost_classes_mode_cache): New.
22598 (initiate_regno_cost_classes, setup_cost_classes): New.
22599 (setup_regno_cost_classes_by_aclass): New.
22600 (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
22601 (record_reg_classes): Use regno_cost_classes instead of
22602 cost_classes. Move checking opposite operand up.
22603 (record_address_regs): Use regno_cost_classes
22604 instead of cost_classes.
22605 (scan_one_insn): Ditto. Use always general register.
22606 (print_allocno_costs): Use regno_cost_classes instead of
22608 (print_pseudo_costs): Ditto. Use Reg_N_REFS.
22609 (find_costs_and_classes): Set up cost classes for each registers.
22610 Use also their mode for this. Use regno_cost_classes instead of
22612 (setup_allocno_class_and_costs): Use regno_cost_classes instead of
22614 (free_ira_costs, ira_init_costs): Don't use cost_classes.
22615 (ira_costs, ira_set_pseudo_classes): Call
22616 initiate_regno_cost_classes and finish_regno_cost_classes.
22618 2010-10-04 Vladimir Makarov <vmakarov@redhat.com>
22620 * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
22622 * target.def (ira_cover_classes): Remove.
22624 * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
22626 * doc/tm.texi.in: Ditto.
22628 * ira-conflicts.c: Remove mentioning cover classes from the file.
22629 Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Use
22630 ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST. Fix formatting.
22632 * targhooks.c (default_ira_cover_classes): Remove.
22634 * targhooks.h (default_ira_cover_classes): Ditto.
22636 * haifa-sched.c: Remove mentioning cover classes from the file.
22637 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
22638 ira_pressure_classes and ira_pressure_classes_num instead of
22639 ira_reg_class_cover_size and ira_reg_class_cover. Use
22640 sched_regno_pressure_class instead of sched_regno_cover_class.
22641 (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
22642 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
22644 * ira-int.h: Add 2010 to Copyright. Remove mentioning cover
22645 classes from the file.
22646 (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
22647 (struct object_hard_regs, struct object_hard_regs_node): New.
22648 (struct ira_object): New members profitable_hard_regs,
22649 hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
22650 (struct ira_allocno): Rename cover_class to aclass. Rename
22651 cover_class_cost and updated_cover_class_cost to class_cost and
22652 updated_class_cost. Remove splay_removed_p and
22653 left_conflict_size. Add new members colorable_p.
22654 (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
22655 (ALLOCNO_COLORABLE_P): New macro.
22656 (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
22657 (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
22658 Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
22659 (OBJECT_...): Rename parameter C to O.
22660 (OBJECT_PROFITABLE_HARD_REGS): New macro.
22661 (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
22662 (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
22663 (struct target_ira_int): New members x_ira_max_memory_move_cost,
22664 x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
22665 x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
22666 x_ira_reg_pressure_class_p, x_ira_important_class_nums,
22667 x_ira_reg_class_superunion. Rename x_prohibited_class_mode_reg to
22668 x_ira_prohibited_class_mode_reg. Rename x_ira_reg_class_union to
22669 x_ira_reg_class_subunion.
22670 (ira_max_memory_move_cost, ira_max_register_move_cost)
22671 (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
22672 (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
22673 (ira_important_class_nums, ira_reg_class_superunion): New macros.
22674 (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
22675 (ira_reg_class_union): Rename to ira_reg_class_subunion.
22676 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
22677 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
22678 (ira_tune_allocno_costs_and_cover_classes): Rename to
22679 ira_tune_allocno_costs.
22680 (ira_debug_hard_regs_forest): New.
22681 (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
22682 (ira_object_conflict_iter_next): Fix comments.
22683 (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
22684 (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
22685 cover_class to aclass.
22686 (ira_allocate_and_accumulate_costs): Ditto.
22687 (ira_allocate_and_set_or_copy_costs): Ditto.
22689 * opts.c (decode_options): Remove ira_cover_class check.
22691 * ira-color.c: Remove mentioning cover classes from the file. Use
22692 ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
22693 instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
22694 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
22695 (splay-tree.h): Remove include.
22696 (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
22697 before copy_freq_compare_func.
22698 (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
22699 (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
22701 (hard_regs_roots, hard_regs_node_vec): Ditto.
22702 (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
22703 (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
22704 (finish_object_hard_regs, object_hard_regs_compare): Ditto.
22705 (create_new_object_hard_regs_node): Ditto.
22706 (add_new_object_hard_regs_node_to_forest): Ditto.
22707 (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
22708 (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
22710 (print_hard_reg_set, print_hard_regs_subforest): Ditto.
22711 (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
22712 (remove_unused_object_hard_regs_nodes): Ditto.
22713 (enumerate_object_hard_regs_nodes): Ditto.
22714 (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
22715 (object_hard_regs_subnode_t): Ditto.
22716 (struct object_hard_regs_subnode): Ditto.
22717 (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
22718 (setup_object_hard_regs_subnode_index): Ditto.
22719 (get_object_hard_regs_subnodes_num): Ditto.
22720 (form_object_hard_regs_nodes_forest): Ditto.
22721 (finish_object_hard_regs_nodes_tree): Ditto.
22722 (finish_object_hard_regs_nodes_forest): Ditto.
22723 (allocnos_have_intersected_live_ranges_p): Rename to
22724 allocnos_conflict_by_live_ranges_p. Move before copy_freq_compare_func.
22725 (pseudos_have_intersected_live_ranges_p): Rename to
22726 conflict_by_live_ranges_p. Move before copy_freq_compare_func.
22727 (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
22728 (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
22729 (update_copy_costs): Remove assert. Skip cost update if the hard
22730 reg does not belong the class.
22731 (assign_hard_reg): Process only profitable hard regs.
22732 (uncolorable_allocnos_num): Make it scalar.
22733 (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
22734 and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
22735 and ira_reg_class_max_nregs.
22736 (bucket_allocno_compare_func): Check frequency first.
22737 (sort_bucket): Add compare function as a parameter.
22738 (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
22739 (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
22740 (push_allocno_to_stack): Rewrite for checking new allocno
22742 (remove_allocno_from_bucket_and_push): Print cost too. Remove assert.
22743 (push_only_colorable): Pass new parameter to sort_bucket.
22744 (push_allocno_to_spill): Remove.
22745 (allocno_spill_priority_compare): Make it inline and rewrite.
22746 (splay_tree_allocate, splay_tree_free): Remove.
22747 (allocno_spill_sort_compare): New function.
22748 (push_allocnos_to_stack): Sort allocnos for spilling once. Don't
22749 build and use splay tree. Choose first allocno in uncolorable
22750 allocno bucket to spill. Remove setting spill cost.
22751 (all_conflicting_hard_regs): Remove.
22752 (setup_allocno_available_regs_num): Check only profitable hard
22753 regs. Print info about hard regs nodes.
22754 (setup_allocno_left_conflicts_size): Remove.
22755 (put_allocno_into_bucket): Don't call
22756 setup_allocno_left_conflicts_size. Use setup_left_conflict_sizes_p.
22757 (improve_allocation): New.
22758 (color_allocnos): Call setup_profitable_hard_regs,
22759 form_object_hard_regs_nodes_forest, improve_allocation,
22760 finish_object_hard_regs_nodes_forest. Setup spill cost.
22761 (print_loop_title): Use pressure classes.
22762 (color_allocnso): Ditto.
22763 (do_coloring): Remove allocation and freeing splay_tree_node_pool
22764 and allocnos_for_spilling.
22765 (ira_sort_regnos_for_alter_reg): Don't setup members
22766 {first,next}_coalesced_allocno.
22767 (color): Remove allocating and freeing removed_splay_allocno_vec.
22768 (fast_allocation): Use ira_prohibited_class_mode_regs instead of
22769 prohibited_class_mode_regs.
22771 * ira-lives.c: Remove mentioning cover classes from the file. Fix
22773 (update_allocno_pressure_excess_length): Use pressure classes.
22774 (inc_register_pressure, dec_register_pressure): Check for pressure
22776 (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
22777 pressure class. Use ira_reg_class_nregs instead of
22778 ira_reg_class_max_nregs.
22779 (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
22780 (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
22781 (single_reg_class): Use ira_reg_class_nregs instead of
22782 ira_reg_class_max_nregs.
22783 (process_bb_node_lives): Use pressure classes.
22785 * ira-emit.c: Remove mentioning cover classes from the file. Use
22786 ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Fix formatting.
22787 (change_loop): Use pressure classes.
22788 (modify_move_list): Call ira_set_allocno_class instead of
22789 ira_set_allocno_cover_class.
22791 * ira-build.c: Remove mentioning cover classes from the file. Use
22792 ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
22793 ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST. Use
22794 ALLOCNO_UPDATED_CLASS_COST instead of
22795 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
22796 (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
22797 (ira_create_allocno): Remove initialization of
22798 ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE. Initialize
22799 ALLOCNO_COLORABLE_P.
22800 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
22801 Update conflict regs for the objects.
22802 (create_cap_allocno): Remove assert. Don't propagate
22803 ALLOCNO_AVAILABLE_REGS_NUM.
22804 (ira_free_allocno_costs): New function.
22805 (finish_allocno): Change a part of code into call of
22806 ira_free_allocno_costs.
22807 (low_pressure_loop_node_p): Use pressure classes.
22808 (object_range_compare_func): Don't compare classes.
22809 (setup_min_max_conflict_allocno_ids): Ditto.
22811 * loop-invariant.c: Remove mentioning cover classes from the file.
22812 Use ira_pressure_classes and ira_pressure_classes_num instead of
22813 ira_reg_class_cover_size and ira_reg_class_cover. Fix formatting.
22814 (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
22815 Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
22816 Use reg_allocno_class instead of reg_cover_class.
22817 (get_inv_cost): Use instead ira_stack_reg_pressure_class of
22818 STACK_REG_COVER_CLASS.
22819 (get_regno_cover_class): Rename to get_regno_pressure_class.
22820 (move_loop_invariants): Initialize and finalize regstat.
22822 * ira.c: Remove mentioning cover classes from the file. Add
22823 comments about coloring without cover classes. Use ALLOCNO_CLASS
22824 instead of ALLOCNO_COVER_CLASS. Fix formatting.
22825 (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
22826 setup_class_subset_and_memory_move_costs.
22827 (setup_stack_reg_pressure_class, setup_pressure_classes): New.
22828 (setup_cover_and_important_classes): Rename to
22829 setup_allocno_and_important_classes.
22830 (setup_class_translate_array): New.
22831 (setup_class_translate): Call it for allocno and pressure classes.
22832 (cover_class_order): Rename to allocno_class_order.
22833 (comp_reg_classes_func): Use ira_allocno_class_translate instead
22834 of ira_class_translate.
22835 (reorder_important_classes): Set up ira_important_class_nums.
22836 (setup_reg_class_relations): Set up ira_reg_class_superunion.
22837 (print_class_cover): Rename to print_classes. Add parameter.
22838 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
22839 Print pressure classes too.
22840 (find_reg_class_closure): Rename to find_reg_classes. Don't call
22841 setup_reg_subclasses.
22842 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
22843 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
22844 (setup_prohibited_class_mode_regs): Use
22845 ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
22846 (clarify_prohibited_class_mode_regs): New function.
22847 (ira_init_register_move_cost): Set up ira_max_register_move_cost,
22848 ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
22849 (ira_init_once): Initialize them.
22850 (free_register_move_costs): Process them.
22851 (ira_init): Move calls of find_reg_classes and
22852 setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
22853 Call clarify_prohibited_class_mode_regs.
22854 (ira_no_alloc_reg): Remove.
22855 (too_high_register_pressure_p): Use pressure classes.
22857 * sched-deps.c: Remove mentioning cover classes from the file.
22858 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
22859 ira_pressure_classes and ira_pressure_classes_num instead of
22860 ira_reg_class_cover_size and ira_reg_class_cover.
22861 (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
22862 sched_regno_pressure_class instead of sched_regno_cover_class.
22863 (mark_insn_pseudo_birth, mark_pseudo_death): Ditto. Use
22864 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
22866 * ira.h: Add 2010 to Copyright.
22867 (ira_no_alloc_reg): Remove external.
22868 (struct target_ira): Rename x_ira_hard_regno_cover_class,
22869 x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
22870 x_ira_class_translate to x_ira_hard_regno_allocno_class,
22871 x_ira_allocno_classes_num, x_ira_allocno_classes, and
22872 x_ira_allocno_class_translate. Add x_ira_pressure_classes_num,
22873 x_ira_pressure_classes, x_ira_pressure_class_translate, and
22874 x_ira_stack_reg_pressure_class. Rename x_ira_reg_class_nregs to
22875 x_ira_reg_class_max_nregs. Add x_ira_reg_class_min_nregs and
22876 x_ira_no_alloc_regs.
22877 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
22878 (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
22879 ira_allocno_classes_num and ira_allocno_classes.
22880 (ira_class_translate): Rename to ira_allocno_class_translate.
22881 (ira_pressure_classes_num, ira_pressure_classes): New definitions.
22882 (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
22883 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
22884 (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
22885 (ira_no_alloc_regs): New.
22887 * ira-costs.c: Add 2010 to Copyright. Remove mentioning cover
22888 classes from the file. Use ALLOCNO_CLASS instead of
22889 ALLOCNO_COVER_CLASS. Use ALLOCNO_CLASS_COST instead of
22890 ALLOCNO_COVER_CLASS_COST.
22891 (regno_cover_class): Rename to regno_aclass.
22892 (record_reg_classes): Use ira_reg_class_subunion instead of
22893 ira_reg_class_union.
22894 (record_address_regs): Check overflow.
22895 (scan_one_insn): Ditto.
22896 (print_allocno_costs): Print total mem cost fore regional allocation.
22897 (print_pseudo_costs): Use REG_N_REFS.
22898 (find_costs_and_classes): Use classes intersected with them on the
22899 1st pass. Check overflow. Use ira_reg_class_subunion instead of
22900 ira_reg_class_union. Use ira_allocno_class_translate and
22901 regno_aclass instead of ira_class_translate and regno_cover_class.
22902 Modify code for finding regno_aclass. Setup preferred classes for
22904 (setup_allocno_cover_class_and_costs): Rename to
22905 setup_allocno_class_and_costs. Use regno_aclass instead of
22906 regno_cover_class. Use ira_set_allocno_class instead of
22907 ira_set_allocno_cover_class.
22908 (init_costs, finish_costs): Use regno_aclass instead of
22910 (ira_costs): Use setup_allocno_class_and_costs instead of
22911 setup_allocno_cover_class_and_costs.
22912 (ira_tune_allocno_costs_and_cover_classes): Rename to
22913 ira_tune_allocno_costs. Check overflow. Skip conflict hard regs
22914 by processing objects. Use ira_reg_class_max_nregs instead of
22915 ira_reg_class_nregs.
22917 * rtl.h (reg_cover_class): Rename to reg_allocno_class.
22919 * sched-int.h: Remove mentioning cover classes from the file.
22920 (sched_regno_cover_class): Rename to sched_regno_pressure_class.
22922 * reginfo.c: Add 2010 to Copyright. Remove mentioning cover
22923 classes from the file.
22924 (struct reg_pref): Rename coverclass into allocnoclass.
22925 (reg_cover_class): Rename to reg_allocno_class.
22927 * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
22929 * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
22931 * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
22933 * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
22935 * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
22937 * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
22939 * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
22941 * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
22943 * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
22945 * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
22947 * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
22948 (i386_ira_cover_classes): Ditto.
22950 * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
22952 * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
22954 * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
22956 * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
22958 * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
22960 * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
22962 * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
22963 (mips_ira_cover_classes): Ditto.
22965 * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
22967 * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
22969 * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
22971 * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
22973 * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
22975 * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
22976 (IRA_COVER_CLASSES_VSX): Ditto.
22978 * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
22979 (rs6000_ira_cover_classes): Ditto.
22981 * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
22983 * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
22985 * config/score/score.h (IRA_COVER_CLASSES): Ditto.
22987 * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
22989 * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
22991 * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
22993 * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
22995 * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
22997 * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
22999 * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
23001 2011-03-29 Jakub Jelinek <jakub@redhat.com>
23004 * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
23005 dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
23006 dw_fde_unlikely_section_end_label, cold_in_std_section,
23007 dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
23008 Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
23010 (output_fde): Use dw_fde_second_{begin,end} if second is
23011 true, otherwise dw_fde_{begin,end}.
23012 (output_call_frame_info): Test dw_fde_second_begin != NULL
23013 instead of dw_fde_switched_sections.
23014 (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
23015 fields, initialize new fields. Initialize in_std_section
23016 unconditionally from the first partition.
23017 (dwarf2out_end_epilogue): Don't override dw_fde_end when
23018 dw_fde_second_begin is non-NULL.
23019 (dwarf2out_switch_text_section): Stop initializing removed
23020 dw_fde_struct fields, initialize new fields, initialize
23021 also dw_fde_end here. Set dw_fde_switch_cfi even when
23022 dwarf2out_do_cfi_asm (). Call var_location_switch_text_section.
23023 (struct var_loc_list_def): Add last_before_switch field.
23024 (arange_table, arange_table_allocated, arange_table_in_use,
23025 ARANGE_TABLE_INCREMENT, add_arange): Removed.
23026 (size_of_aranges): Count !in_std_section and !second_in_std_section
23027 hunks in fdes, instead of looking at arange_table_in_use.
23028 (output_aranges): Add aranges_length argument, don't call
23029 size_of_aranges here. Instead of using aranges_table*
23030 emit ranges for fdes when !in_std_section resp.
23031 !second_in_std_section.
23032 (dw_loc_list): Break ranges crossing section switch.
23033 (convert_cfa_to_fb_loc_list): Likewise. If switched sections,
23034 use dw_fde_second_end instead of dw_fde_end as end of last range.
23035 (gen_subprogram_die): Don't call add_arange. Use
23036 dw_fde_{begin,end} for first partition and if switched
23037 section dw_fde_second_{begin,end} for the second.
23038 (var_location_switch_text_section_1,
23039 var_location_switch_text_section): New functions.
23040 (dwarf2out_begin_function): Initialize cold_text_section even
23041 when function_section () isn't text_section.
23042 (prune_unused_types): Don't walk arange_table.
23043 (dwarf2out_finish): Don't needlessly test
23044 flag_reorder_blocks_and_partition when testing cold_text_section_used.
23045 If info_section_emitted, call size_of_aranges and if it indicates
23046 non-empty .debug_aranges, call output_aranges with the computed
23047 size. Stop using removed dw_fde_struct fields, use
23048 dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
23052 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
23053 create ENTRY_VALUE if incoming or address of incoming's MEM
23055 * dwarf2out.c (mem_loc_descriptor): Don't emit
23056 DW_OP_GNU_entry_value of DW_OP_fbreg.
23057 * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
23058 on ENTRY_VALUE is able to find the canonical parameter VALUE.
23059 * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
23060 rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
23062 (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
23063 is a REG_P or MEM_P with REG_P address, compute hash directly
23064 instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
23065 (preserve_only_constants): Don't clear VALUES forwaring
23066 ENTRY_VALUE to some other VALUE.
23068 2011-03-28 Richard Sandiford <richard.sandiford@linaro.org>
23070 * builtins.c (expand_builtin_memset_args): Use gen_int_mode
23071 instead of GEN_INT.
23073 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
23075 * cfgexpand.c (expand_gimple_cond): Always set the source location and
23076 block before expanding the statement.
23077 (expand_gimple_stmt_1): Likewise. Set them here...
23078 (expand_gimple_stmt): ...and not here. Tidy.
23079 * cfglayout.c (curr_insn_locator): Return 0 if the current location is
23082 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
23084 * Makefile.in: New rule for cprop.o.
23085 * gcse.c: Move constant/copy propagation to cprop.c.
23086 (compute_local_properties): Only handle expression tables.
23087 (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
23088 (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
23089 (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
23090 next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
23091 mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
23092 compute_cprop_data, find_used_regs, try_replace_reg,
23093 find_avail_set, cprop_jump, constprop_register, cprop_insn,
23094 local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
23095 fis_get_condition, implicit_set_cond_p, find_implicit_sets,
23096 find_bypass_set, reg_killed_on_edge, bypass_block,
23097 bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
23098 execute_rtl_cprop, pass_rtl_cprop): Move to...
23099 * cprop.c: ...here. New file, constant/copy propagation for RTL
23100 moved from gcse.c to here with minor cleanups in duplicated code.
23102 2011-03-28 H.J. Lu <hongjiu.lu@intel.com>
23104 * config/i386/i386.c (flag_opts): Fix a typo in
23105 -mavx256-split-unaligned-store.
23107 2011-03-28 Anatoly Sokolov <aesok@post.ru>
23109 * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
23110 LIBCALL_VALUE): Remove macros.
23111 * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
23112 TARGET_FUNCTION_VALUE_REGNO_P): Define.
23113 (h8300_function_value, h8300_libcall_value,
23114 h8300_function_value_regno_p): New functions.
23116 2011-03-28 Anatoly Sokolov <aesok@post.ru>
23118 * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
23120 2011-03-28 Jeff Law <law@redhat.com>
23122 * tree-ssa-threadupdate.c (redirect_edges): Call
23123 create_edge_and_update_destination_phis as needed.
23124 (create_edge_and_update_destination_phis): Accept new BB argument.
23125 All callers updated.
23126 (thread_block): Do not update the profile when threading around
23127 intermediate blocks.
23128 (thread_single_edge): Likewise.
23129 (determine_bb_domination_status): If BB is not a successor of the
23130 loop header, return NONDOMINATING.
23131 (register_jump_thread): Note when we register a jump thread around
23132 an intermediate block.
23133 * tree-ssa-threadedge.c (thread_around_empty_block): New function.
23134 (thread_across_edge): Use it.
23136 2011-03-28 Tristan Gingold <gingold@adacore.com>
23138 * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
23139 when for_return is 2.
23141 2011-03-28 Jeff Law <law@redhat.com>
23143 * var-tracking.c (canonicalize_values_mark): Delete unused
23145 (canonicalize_values_star, set_variable_part): Likewise.
23146 (clobber_variable_part, delete_variable_part): Likewise.
23148 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
23150 * gcse.c (free_gcse_mem): Free reg_set_bitmap.
23152 2011-03-28 Martin Jambor <mjambor@suse.cz>
23154 * tree-inline.c (expand_call_inline): Do not check that destination
23156 (optimize_inline_calls): Assert that destination node is analyzed.
23157 * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
23158 not call tree_lowering_passes.
23159 * cgraph.h (cgraph_analyze_function): Declare.
23160 * cgraphunit.c (cgraph_analyze_function): Make public.
23162 2011-03-28 Joseph Myers <joseph@codesourcery.com>
23164 * config/sparc/sparc-opts.h: New.
23165 * config/sparc/sparc.c (sparc_handle_option, sparc_select,
23166 sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
23167 (sparc_option_override): Store processor_type enumeration rather
23168 than string in cpu_default. Remove name and enumeration from
23169 cpu_table. Directly default -mcpu then default -mtune from -mcpu
23170 without using sparc_select. Use target_flags_explicit instead of
23172 * config/sparc/sparc.h (enum processor_type): Move to
23174 (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
23175 * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
23176 HeaderInclude entry.
23177 (mcpu=, mtune=): Use Var and Enum.
23178 (sparc_processor_type): New Enum and EnumValue entries.
23180 2011-03-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23181 Iain Sandoe <iains@gcc.gnu.org>
23184 * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
23186 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
23188 * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
23189 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
23190 Insert new statements at it in lieu of STMT.
23191 (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
23192 * tree-vect-stmts.c (vectorizable_store): Likewise.
23193 (vectorizable_load): Likewise.
23195 2011-03-28 Uros Bizjak <ubizjak@gmail.com>
23197 * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
23202 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
23204 * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
23205 unaligned 256bit load/store.
23206 (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
23207 (*avx_movdqu<avxmodesuffix>): Likewise.
23209 2011-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
23212 * config/pa/predicates.md (reg_or_ior_operand): New predicate.
23213 * config/pa/pa.md (iordi3): Use new predicate in expander.
23214 (iorsi3): Likewise.
23216 2011-03-27 Anatoly Sokolov <aesok@post.ru>
23218 * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
23219 FUNCTION_VALUE_REGNO_P): Remove macros.
23220 * config/mips/mips-protos.h (mips_function_value): Remove.
23221 * config/mips/mips.c (mips_function_value): Rename to...
23222 (mips_function_value_1): ... this. Make static. Handle receiving
23223 the function type in 'fn_decl_or_type' argument.
23224 (mips_function_value, mips_libcall_value,
23225 mips_function_value_regno_p): New function.
23226 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
23227 TARGET_FUNCTION_VALUE_REGNO_P): Define.
23229 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
23231 * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
23232 and -mavx256-split-unaligned-store.
23233 (ix86_option_override_internal): Split 32-byte AVX unaligned
23234 load/store by default.
23235 (ix86_avx256_split_vector_move_misalign): New.
23236 (ix86_expand_vector_move_misalign): Use it.
23238 * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
23239 -mavx256-split-unaligned-store.
23241 * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
23242 256bit load/store. Generate unaligned store on misaligned memory
23244 (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
23246 (*avx_movdqu<avxmodesuffix>): Likewise.
23248 * doc/invoke.texi: Document -mavx256-split-unaligned-load and
23249 -mavx256-split-unaligned-store.
23251 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
23254 * config/mips/mips.md (extendsidi2): Add an "l" alternative.
23257 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
23259 * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
23260 opno arguments with an expand_operand. Use create_input_operand.
23261 (mips_prepare_builtin_target): Delete.
23262 (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
23264 (mips_expand_builtin_direct): Use create_output_operand and
23265 mips_expand_builtin_insn. Update call to mips_prepare_builtin_arg.
23266 (mips_expand_builtin_movtf): Likewise. Use mips_expand_fp_comparison.
23267 (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
23269 2011-03-27 Ira Rosen <ira.rosen@linaro.org>
23271 * config/arm/arm.c (arm_autovectorize_vector_sizes): New
23273 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
23275 2011-03-26 Eric Botcazou <ebotcazou@adacore.com>
23277 * basic-block.h (fixup_abnormal_edges): Adjust prototype.
23278 * reload1.c (reload): Adjust call to fixup_abnormal_edges. Rediscover
23279 basic blocks and call commit_edge_insertions directly.
23280 (fixup_abnormal_edges): Move from here to...
23281 * cfgrtl.c (fixup_abnormal_edges): ...here. Only insert instructions
23282 on the edges and return whether some have actually been inserted.
23283 * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
23286 2011-03-26 Andrey Belevantsev <abel@ispras.ru>
23288 PR rtl-optimization/48144
23289 * sel-sched-ir.c (merge_history_vect): Factor out from ...
23290 (merge_expr_data): ... here.
23291 (av_set_intersect): Rename to av_set_code_motion_filter.
23292 Update all callers. Call merge_history_vect when an expression
23293 is found in both sets.
23294 * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
23296 2011-03-26 Alan Modra <amodra@gmail.com>
23298 * config/rs6000/predicates.md (word_offset_memref_op): Handle
23299 cmodel medium addresses.
23300 * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
23301 64-bit gpr loads and stores.
23302 (rs6000_secondary_reload_ppc64): New function.
23303 * config/rs6000/rs6000-protos.h: Declare it.
23304 * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
23306 2011-03-26 Alan Modra <amodra@gmail.com>
23309 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
23310 GNU Go in traceback table.
23312 2011-03-25 Richard Henderson <rth@redhat.com>
23314 * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
23315 if there are exactly 6 operands.
23316 (set_storage_via_setmem): Similarly.
23318 2011-03-25 Kai Tietz <ktietz@redhat.com>
23320 * collect2.c (write_c_file_stat): Handle backslash
23321 as right-hand directory separator.
23322 (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
23323 checking just for slash.
23324 * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
23325 instead of checking for trailing slash.
23326 * gcc.c (record_temp_file): Use filename_cmp instead
23328 (do_spec_1): Likewise.
23329 (replace_outfile_spec_function): Likewise.
23330 (is_directory): Use filename_ncmp instead of strncmp.
23331 (print_multilib_info): Likewise.
23332 * gcov.c (find_source): Use filename_cmp instead
23334 (make_gcov_file_name): Fix order of slash/backslash
23336 * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
23337 (add_standard_paths): Likewise.
23338 * mips-tfile.c (saber_stop): Handle backslash.
23339 * prefix.c (update_path): Use filename_ncmp instead of
23341 * profile.c (output_location): Use filename_cmp instead
23343 * read-md.c (handle_toplevel_file): Handle backslash.
23344 * tlink.c (frob_extension): Likewise.
23345 * tree-cfg.c (same_line_p): Use filename_cmp instead of
23347 * tree-dump.c (dequeue_and_dump): Handle backslash.
23348 * tree.c (get_file_function_name): Likewise.
23349 * gengtype.c (read_input_list): Likewise.
23350 (get_file_realbasename): Likewise.
23351 (get_output_file_with_visibility): Use filename_cmp
23354 2011-03-25 Richard Sandiford <richard.sandiford@linaro.org>
23356 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
23359 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
23361 * fold-const.c (expr_location_or): New function.
23362 (fold_truth_not_expr): Call it.
23364 2011-03-25 Jeff Law <law@redhat.com>
23366 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
23368 * c-family/c-common.c (def_fn_type): Likewise.
23369 * ada/gcc-interface/utils.c (def_fn_type): Likewise.
23370 * emit-rtl.c (gen_rtvec): Likewise.
23371 * lto/lto-lang.c (def_fn_type): Likewise.
23373 2011-03-25 Richard Guenther <rguenther@suse.de>
23375 * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
23376 also generate copies.
23377 (fini_copy_prop): Handle constant values properly.
23379 2011-03-25 Jakub Jelinek <jakub@redhat.com>
23381 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
23382 mode size instead of bitsize with DWARF2_ADDR_SIZE.
23383 (hash_loc_operands, compare_loc_operands): Handle
23384 DW_OP_GNU_entry_value.
23386 2011-03-25 Kai Tietz <ktietz@redhat.com>
23388 * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
23389 (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
23390 * config/i386/i386.c (ix86_conditional_register_usage): Adjust
23391 comment and use macro TARGET_64BIT_MS_ABI instead.
23392 (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
23393 and change default behavior for 32-bit MS_ABI.
23394 (ix86_reg_parm_stack_space): Check additionally for bit-ness.
23395 (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
23397 (ix86_cfun_abi): Likewise.
23398 (ix86_maybe_switch_abi): Adjust comment.
23399 (init_cumulative_args): Check for bit-ness in MS_ABI case.
23400 (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
23401 instead of checking for SYSV_ABI.
23402 (ix86_nsaved_sseregs): Likewise.
23403 (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
23405 (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
23406 * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
23407 (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
23408 (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
23409 * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
23411 2011-03-25 Richard Guenther <rguenther@suse.de>
23413 * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
23414 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
23415 (verify_gimple): Remove.
23416 * tree-cfg.c (verify_gimple_call): Merge verification
23418 (verify_gimple_phi): Merge verification from verify_stmts.
23419 (verify_gimple_label): New function.
23420 (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
23421 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
23422 (verify_stmt): Merge into verify_gimple_in_cfg and callees.
23423 (verify_stmts): Rename to verify_gimple_in_cfg.
23424 (verify_gimple_in_cfg): New function.
23425 * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
23426 * tree-ssa.c (verify_ssa): Likewise.
23427 * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
23429 2011-03-25 Richard Guenther <rguenther@suse.de>
23431 * passes.c (init_optimization_passes): Add FRE pass after
23434 2011-03-25 Bernd Schmidt <bernds@codesourcery.com>
23435 Andrew Stubbs <ams@codesourcery.com>
23437 * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
23439 (arm_movdi_vfp_cortexa8): New pattern.
23440 * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
23441 iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
23442 instructions when tuning for Cortex-A8. Set attribute "arch".
23443 * config/arm/arm.md: Move include arm-tune.md up a bit.
23444 (define_attr "arch"): Add "onlya8" and "nota8" values.
23445 (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
23447 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
23451 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
23453 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
23454 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
23455 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
23456 * passes.c (init_optimization_passes): Move
23457 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
23459 2011-03-25 Kai Tietz <ktietz@redhat.com>
23461 * c-typeck.c (comptypes_internal): Replace target
23462 hook call of comp_type_attributes by version in tree.c file.
23463 * gimple.c (gimple_types_compatible_p_1): Likewise.
23464 * tree-ssa.c (useless_type_conversion_p): Likewise.
23465 * tree.c (build_type_attribute_qual_variant): Likewise.
23466 (attribute_value_equal): New static helper function.
23467 (comp_type_attributes): New function.
23468 (merge_attributes): Use attribute_value_equal for comparison.
23469 (attribute_list_contained): Likewise.
23470 * tree.h (comp_type_attributes): New prototype.
23472 2011-03-25 Richard Guenther <rguenther@suse.de>
23474 * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
23475 of complex types at -O0.
23476 (verify_gimple_assign_binary): Likewise.
23477 (verify_gimple_assign_ternary): Likewise.
23479 2011-03-24 Mark Wielaard <mjw@redhat.com>
23481 * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
23482 (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
23484 2011-03-24 Mark Wielaard <mjw@redhat.com>
23487 * dwarf2out.c (output_abbrev_section): Only write table when
23488 abbrev_die_table_in_use > 1.
23490 2011-02-24 Richard Henderson <rth@redhat.com>
23492 * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
23493 (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
23494 (alpha_expand_unaligned_load_words): Use extql.
23495 (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
23496 (emit_insxl): Handle all modes for consistency.
23498 2011-02-24 Richard Henderson <rth@redhat.com>
23500 * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
23501 (alpha_expand_unaligned_load): Likewise.
23502 (alpha_expand_unaligned_store): Likewise.
23503 (alpha_expand_unaligned_load_words): Likewise.
23504 (alpha_expand_unaligned_store_words): Likewise.
23505 (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
23506 (alpha_split_lock_test_and_set_12): Likewise.
23507 (print_operand, alpha_fold_builtin_extxx): Likewise.
23508 (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
23509 * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
23510 (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
23511 (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
23512 (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
23513 (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
23514 (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
23515 (unaligned_storeqi_be, unaligned_storehi_be): Remove.
23516 (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
23517 (extwl, extll, extql): Similarly.
23518 (inswh, inslh, insqh): Similarly.
23519 (mskbl, mskwl, mskll, mskql): Similarly.
23520 (mskwh, msklh, mskqh): Similarly.
23522 2011-02-24 Richard Henderson <rth@redhat.com>
23524 * config/alpha/alpha.md (attribute isa): Add er, ner.
23525 (attribute enabled): Handle them.
23526 (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
23528 2011-02-24 Richard Henderson <rth@redhat.com>
23530 * config/alpha/alpha.md (attribute isa): Add vms.
23531 (attribute enabled): Handle it.
23532 (*movsf): Merge *movsf_{nofix,fix,nofp}.
23533 (*movdf): Merge *movdf_{nofix,fix,nofp}.
23534 (*movtf): Rename from *movtf_internal for consistency.
23535 (*movsi): Merge with *movsi_nt_vms.
23536 (*movhi): Merge *movhi_nobwx, *movhi_bwx.
23537 (*movqi): Merge *movqi_nobwx, *movqi_bwx.
23538 (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
23539 * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
23541 2011-02-24 Richard Henderson <rth@redhat.com>
23543 * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
23544 (extendqisi2, extendhisi2): Likewise.
23545 (extendqidi2): Simplify BWX/non-BWX expansions.
23546 (extendhidi2): Similarly.
23548 2011-02-24 Richard Henderson <rth@redhat.com>
23550 * config/alpha/alpha.md (attribute isa): New.
23551 (attribute enabled): New.
23552 (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
23553 (zero_extendqisi2, zero_extendqidi2): Similarly.
23554 (zero_extendhisi2, zero_extendhidi2): Similarly.
23555 * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
23557 2011-02-24 Richard Henderson <rth@redhat.com>
23559 * config/alpha/predicates.md (input_operand): Revert last change;
23560 update comment to mention 32-bit VMS rather than Windows.
23562 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
23564 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
23565 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
23566 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
23567 * passes.c (init_optimization_passes): Move
23568 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
23570 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
23572 * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
23574 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
23576 * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
23579 2011-03-24 Jakub Jelinek <jakub@redhat.com>
23582 * simplify-rtx.c (simplify_const_unary_operation): Call
23583 real_convert when changing mode class with FLOAT_EXTEND.
23585 2011-03-24 Nick Clifton <nickc@redhat.com>
23587 * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
23588 (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
23589 * config/rx/rx.c (rx_option_override): Set align_jumps,
23590 align_loops and align_labels if not set by the user.
23591 (rx_align_for_label): New function.
23592 (rx_max_skip_for_label): New function.
23593 (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
23594 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
23595 (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
23596 (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
23597 * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
23599 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
23601 PR rtl-optimization/48263
23602 * optabs.c (expand_binop_directly): Reinstate convert_modes code
23603 and original commutative_p handling. Use maybe_gen_insn.
23605 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
23607 * reload.c (find_reloads_subreg_address): Add address_reloaded
23608 parameter and return true there if the full address has been
23610 (find_reloads_toplev): Pass address_reloaded flag.
23611 (find_reloads_address_1): Don't use address_reloaded parameter.
23613 2011-03-24 Jeff Law <law@redhat.com>
23615 * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
23616 unused variable "ann".
23617 (remove_unused_locals): Likewise.
23619 * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
23622 * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
23625 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
23627 * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
23628 for invalid symbolic addresses.
23629 (s390_secondary_reload): Don't use s390_check_symref_alignment for
23632 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
23634 * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
23635 the argument in calls to fold_truth_not_expr.
23637 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
23639 * tree.c (record_node_allocation_statistics): New function.
23640 (make_node_stat, copy_node_stat, build_string): Call it.
23641 (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
23642 (build1_stat, build_omp_clause): Likewise.
23644 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
23646 * builtins.c (expand_movstr): Fix endp == 1 adjustment after
23649 2011-03-24 Richard Guenther <rguenther@suse.de>
23651 PR tree-optimization/48271
23652 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
23653 blocks that still exist.
23655 2011-03-24 Richard Guenther <rguenther@suse.de>
23657 PR tree-optimization/48270
23658 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
23659 not free datarefs before ddrs.
23661 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
23663 * tree-sra.c (build_ref_for_offset): Strip useless type conversions
23664 from the address built for a reference with variable offset.
23666 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
23669 * config/i386/i386.md (*movdf_internal_rex64): Do not split
23670 alternatives that can be handled with movq or movabsq insn.
23671 (*movdf_internal): Disable for !TARGET_64BIT.
23672 (*movdf_internal_nointeger): Ditto.
23673 * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
23675 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
23677 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
23678 (FUNCTION_ARG_ADVANCE): Likewise.
23679 * tm.texi.in: Change references to them to hook references.
23680 * tm.texi: Regenerate.
23681 * targhooks.c (default_function_arg): Eliminate check for target macro.
23682 (default_function_incoming_arg): Likewise.
23683 (default_function_arg_advance): Likewise.
23684 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
23685 (function_arg_advance): Likewise.
23686 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
23688 2011-03-24 Richard Guenther <rguenther@suse.de>
23690 PR middle-end/48269
23691 * tree-object-size.c (addr_object_size): Do not double-account
23692 for MEM_REF offsets.
23694 2011-03-24 Diego Novillo <dnovillo@google.com>
23696 * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
23697 * lto-streamer-in.c (input_string_internal): Add clarifying comments.
23698 (lto_input_data_block): Move from lto-opts.c. Make extern.
23700 (lto_input_string): Rename from input_string. Make extern.
23702 * lto-streamer-out.c (lto_output_string_with_length): Rename from
23703 output_string_with_length.
23704 Output 0 to indicate a non-NULL string. Update all callers to
23706 (lto_output_string): Rename from output_string. Make extern.
23708 (lto_output_decl_state_streams): Make extern.
23709 (lto_output_decl_state_refs): Make extern.
23710 * lto-streamer.h (lto_input_string): Declare.
23711 (lto_input_data_block): Declare.
23712 (lto_output_string): Declare.
23713 (lto_output_string_with_length): Declare.
23714 (lto_output_decl_state_streams): Declare.
23715 (lto_output_decl_state_refs): Declare.
23717 2011-03-24 Richard Guenther <rguenther@suse.de>
23719 PR tree-optimization/46562
23720 * tree.c (build_invariant_address): New function.
23721 * tree.h (build_invariant_address): Declare.
23722 * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
23723 a renamed function moved ...
23724 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
23725 Take valueization callback parameter.
23726 * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
23727 * gimple-fold.h: New file.
23728 * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
23729 (ccp_fold, fold_const_aggregate_ref,
23730 fold_ctor_reference, fold_nonarray_ctor_reference,
23731 fold_array_ctor_reference, fold_string_cst_ctor_reference,
23732 get_base_constructor): Move ...
23733 * gimple-fold.c: ... here.
23734 (gimple_fold_stmt_to_constant_1): New function
23735 split out from ccp_fold. Take a valueization callback parameter.
23736 Valueize all operands.
23737 (gimple_fold_stmt_to_constant): New wrapper function.
23738 (fold_const_aggregate_ref_1): New function split out from
23739 fold_const_aggregate_ref. Take a valueization callback parameter.
23740 (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
23741 * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
23742 invariant POINTER_PLUS_EXPRs to invariant form.
23743 (vn_valueize): New function.
23744 (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
23745 * tree-vrp.c (vrp_valueize): New function.
23746 (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
23747 to fold statements to constants.
23748 * tree-ssa-pre.c (eliminate): Properly guard propagation of
23749 function declarations.
23750 * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
23751 tree-ssa-ccp.o): Add gimple-fold.h dependencies.
23753 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
23755 * config/h8300/predicates.md (jump_address_operand): Fix register
23758 2011-03-24 Ira Rosen <ira.rosen@linaro.org>
23760 * doc/invoke.texi (max-stores-to-sink): Document.
23761 * params.h (MAX_STORES_TO_SINK): Define.
23762 * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
23763 if either vectorization or if-conversion is disabled.
23764 * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
23765 tree-vect-data-refs.c vect_equal_offsets.
23766 (dr_equal_offsets_p): New function.
23767 (find_data_references_in_bb): Remove static.
23768 * tree-data-ref.h (find_data_references_in_bb): Declare.
23769 (dr_equal_offsets_p): Likewise.
23770 * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
23771 (vect_drs_dependent_in_basic_block): Update calls to
23772 vect_equal_offsets.
23773 (vect_check_interleaving): Likewise.
23774 * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
23775 (cond_if_else_store_replacement): Rename to...
23776 (cond_if_else_store_replacement_1): ... this. Change arguments and
23778 (cond_if_else_store_replacement): New function.
23779 * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
23780 * params.def (PARAM_MAX_STORES_TO_SINK): Define.
23782 2011-03-23 Chung-Lin Tang <cltang@codesourcery.com>
23785 * config/arm/arm.md (casesi): Use the gen_int_mode() function
23786 to subtract lower bound instead of GEN_INT().
23788 2011-03-23 Jonathan Wakely <jwakely.gcc@gmail.com>
23793 * doc/extend.texi (Alignment): Move section to match order in TOC.
23794 * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
23795 (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
23797 2011-03-23 Jeff Law <law@redhat.com>
23799 * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
23800 before removing the edge.
23802 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
23803 it may have been freed by redirect_branch_edge or
23804 redirect_edge_succ_nodup.
23806 2011-03-23 Richard Guenther <rguenther@suse.de>
23808 * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
23809 (check_va_list_escapes): Likewise.
23810 (check_all_va_list_escapes): Likewise.
23812 2011-03-23 Richard Guenther <rguenther@suse.de>
23814 * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
23815 (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
23816 (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
23817 (alias.o): Likewise.
23818 (ipa-type-escape.o): Remove.
23819 (ipa-struct-reorg.o): Likewise.
23820 (GTFILES): Remove ipa-struct-reorg.c.
23821 * alias.c: Do not include ipa-type-escape.h.
23822 * tree-ssa-alias.c: Likewise.
23823 * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
23824 * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
23825 * passes.c (init_optimization_passes): Remove ipa-struct-reorg
23826 and ipa-type-escape passes.
23827 * tree-pass.h (pass_ipa_type_escape): Remove.
23828 (pass_ipa_struct_reorg): Likewise.
23829 * ipa-struct-reorg.h: Remove.
23830 * ipa-struct-reorg.c: Likewise.
23831 * ipa-type-escape.h: Likewise.
23832 * ipa-type-escape.c: Likewise.
23833 * doc/invoke.texi (-fipa-struct-reorg): Remove.
23834 (--param struct-reorg-cold-struct-ratio): Likewise.
23835 * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
23836 * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
23837 * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
23839 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
23841 * config/s390/2084.md: Enable all insn reservations also for z9_ec
23842 cpu attribute value.
23843 * config/s390/s390-opts.h (enum s390_arch_option): Remove.
23844 (enum processor_type): Add PROCESSOR_2094_Z9_EC.
23845 * config/s390/s390.c (processor_flags_table): New constant array.
23846 (s390_handle_arch_option): Remove.
23847 (s390_handle_option): Remove s390_handle_arch_option invocations
23848 and OPT_mwarn_framesize_ handling.
23849 (s390_option_override): Remove s390_handle_arch_option invocation.
23850 (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
23852 * config/s390/s390.md (cpu attribute): Add z9_ec value.
23853 * config/s390/s390.opt (s390_tune, s390_arch)
23854 (march=): Replace s390_arch_option enum and values with
23855 processor_type. Set variable name to s390_arch. Set
23856 initialization value.
23857 (mtune=): Replace s390_arch_option with processor_type. Set
23858 variable name to s390_tune. Set initialization value.
23860 2011-03-23 Julian Brown <julian@codesourcery.com>
23862 * expr.c (expand_expr_real_1): Only use BLKmode for volatile
23863 accesses which are not naturally aligned.
23865 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
23868 * config/arm/predicates.md (neon_lane_number): Accept 0..15.
23870 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
23872 * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
23873 parameter from "int" to "enum insn_code".
23874 (expand_operand_type): New enum.
23875 (expand_operand): New structure.
23876 (create_expand_operand): New function.
23877 (create_fixed_operand, create_output_operand): Likewise
23878 (create_input_operand, create_convert_operand_to): Likewise.
23879 (create_convert_operand_from, create_address_operand): Likewise.
23880 (create_integer_operand): Likewise.
23881 (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
23882 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
23883 (expand_insn, expand_jump_insn): Likewise.
23884 * builtins.c (expand_builtin_prefetch): Use the new interfaces.
23885 (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
23886 (expand_movstr, expand_builtin___clear_cache): Likewise.
23887 (expand_builtin_lock_release): Likewise.
23888 * explow.c (allocate_dynamic_stack_space): Likewise.
23889 (probe_stack_range): Likewise. Allow check_stack to FAIL,
23890 and use the default handling in that case.
23891 * expmed.c (check_predicate_volatile_ok): Delete.
23892 (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
23893 (emit_cstore): Likewise.
23894 * expr.c (emit_block_move_via_movmem): Likewise.
23895 (set_storage_via_setmem, expand_assignment): Likewise.
23896 (emit_storent_insn, try_casesi): Likewise.
23897 (emit_single_push_insn): Likewise. Allow the expansion to fail.
23898 * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
23899 (expand_vec_shift_expr, expand_binop_directly): Likewise.
23900 (expand_twoval_unop, expand_twoval_binop): Likewise.
23901 (expand_unop_direct, emit_indirect_jump): Likewise.
23902 (emit_conditional_move, vector_compare_rtx): Likewise.
23903 (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
23904 (expand_sync_operation, expand_sync_fetch_operation): Likewise.
23905 (expand_sync_lock_test_and_set): Likewise.
23906 (maybe_emit_unop_insn): Likewise. Change icode to an insn_code.
23907 (emit_unop_insn): Likewise.
23908 (expand_copysign_absneg): Change icode to an insn_code.
23909 (create_convert_operand_from_type): New function.
23910 (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
23911 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
23912 (expand_insn, expand_jump_insn): Likewise.
23913 * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
23914 than const_int_operand for operand 2.
23916 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
23918 * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
23921 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
23923 * emit-rtl.c (emit_pattern_before_noloc): New function.
23924 (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
23925 (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
23926 (emit_pattern_after_noloc): New function.
23927 (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
23928 (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
23930 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
23932 * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
23933 (__ffsDI2): Likewise.
23935 2011-03-22 Richard Henderson <rth@redhat.com>
23937 * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
23938 of !TARGET_ABI_OPEN_VMS.
23939 (alpha_trampoline_init, alpha_start_function): Likewise.
23940 (alpha_expand_epilogue, alpha_file_start): Likewise.
23941 * config/alpha/alpha.md (divsi3, modsi3): Likewise.
23942 (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
23943 (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
23944 (*divmodsi_internal, *divmoddi_internal_er): Likewise.
23945 (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
23947 2011-03-22 Joseph Myers <joseph@codesourcery.com>
23949 * config/s390/s390-opts.h: New.
23950 * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
23951 s390_arch_flags, s390_warn_framesize, s390_stack_size,
23952 s390_stack_guard): Remove.
23953 (s390_handle_arch_option): Return void. Take enum
23954 s390_arch_option value instead of string and searching array.
23955 (s390_handle_option): Don't assert that global structures are in
23956 use. Access variables via opts pointer. Use error_at. Don't use
23957 sscanf for -mstack-guard= or -mstack-size=. Update call to
23958 s390_handle_arch_option.
23959 (s390_option_override): Update call to s390_handle_arch_option.
23960 (s390_emit_prologue): Use %d format for s390_stack_size in
23961 diagnostic. Use %wd for HOST_WIDE_INT.
23962 * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
23963 (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
23964 * config/s390/s390.opt (config/s390/s390-opts.h): New
23965 HeaderInclude entry.
23966 (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
23967 s390_arch_flags, s390_warn_framesize): New Variable entries.
23968 (s390_arch_option): New Enum and EnumValue entries.
23969 (march=): Use Enum instead of Var.
23970 (mstack-guard=, mstack-size=): Use UInteger and Var.
23971 (mtune=): Use Enum.
23973 2011-03-22 Joseph Myers <joseph@codesourcery.com>
23975 * config/score/score.c (score_handle_option): Don't assert that
23976 global structures are in use. Access target_flags via opts
23977 pointer. Use value of -march= option to determine target_flags
23979 * config/score/score.opt (march=): Use Enum.
23980 (score_arch): New Enum and EnumValue entries.
23982 2011-03-22 Joseph Myers <joseph@codesourcery.com>
23984 * config/mep/mep.c (option_mtiny_specified): Remove.
23985 (mep_option_override): Move register handling for -mivc2 from
23986 mep_handle_option. Use global_options_set.x_mep_tiny_cutoff
23987 instead of option_mtiny_specified.
23988 (mep_handle_option): Access target_flags via opts pointer. Don't
23989 assert that global structures are in use. Defer part of -mivc2
23990 handling and move it to mep_option_override.
23991 * config/mep/mep.opt (IVC2): New Mask entry.
23992 (mivc2): Use Var and Defer instead of Mask.
23994 2011-03-22 Joseph Myers <joseph@codesourcery.com>
23996 * config/v850/v850-opts.h: New.
23997 * config/v850/v850.c (small_memory): Replace with
23998 small_memory_physical_max array. Make that array static const.
23999 (v850_handle_memory_option): Take integer value of argument. Take
24000 gcc_options pointer, option text and location. Return void.
24001 Update for changes to small memory structures.
24002 (v850_handle_option): Access target_flags via opts pointer. Don't
24003 assert that global structures are in use. Update calls to
24004 v850_handle_memory_option.
24005 (v850_encode_data_area): Update references to small memory settings.
24006 * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
24007 (enum small_memory_type): Move to v850-opts.h.
24008 * config/v850/v850.opt (config/v850/v850-opts.h): New
24009 HeaderInclude entry.
24010 (small_memory_max): New Variable entry.
24011 (msda): Replace by pair of options msda= and msda-. Use UInteger.
24012 (mtda, mzda): Likewise.
24014 2011-03-22 Joseph Myers <joseph@codesourcery.com>
24016 * config/sh/sh.c (sh_handle_option): Access target_flags via opts
24017 pointer. Don't assert that global structures are in use.
24019 2011-03-22 Joseph Myers <joseph@codesourcery.com>
24021 * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
24022 via opts pointer. Don't assert that global structures are in use.
24024 2011-03-22 Joseph Myers <joseph@codesourcery.com>
24026 * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
24027 (munix=93): Use Var.
24028 * config/pa/pa-hpux1010.opt (munix=95): Use Var.
24029 * config/pa/pa-hpux1111.opt (munix=98): Use Var.
24030 * config/pa/pa-opts.h: New.
24031 * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
24032 (pa_handle_option): Don't assert that global structures are in
24033 use. Access target_flags via opts pointer. Don't handle
24034 OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
24036 (pa_option_override): Handle deferred OPT_mfixed_range_.
24038 2011-03-22 Joseph Myers <joseph@codesourcery.com>
24040 * config/mn10300/mn10300-opts.h: New.
24041 * config/mn10300/mn10300.c (mn10300_processor,
24042 mn10300_tune_string): Remove.
24043 (mn10300_handle_option): Don't assert that global structures are
24044 in use. Access mn10300_processor via opts pointer. Don't handle
24046 * config/mn10300/mn10300.h (enum processor_type): Move to
24048 (mn10300_processor): Remove.
24049 * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
24050 HeaderInclude entry.
24051 (mn10300_processor): New Variable entry.
24054 2011-03-22 Joseph Myers <joseph@codesourcery.com>
24056 * config/microblaze/microblaze.c: Don't include opts.h.
24057 (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
24058 * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
24059 (mno-clearbss): Use Var and Warn.
24061 2011-03-22 Joseph Myers <joseph@codesourcery.com>
24063 * config/m32r/m32r-opts.h: New.
24064 * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
24065 (m32r_handle_option): Don't assert that global structures are in
24066 use. Access target_flags and m32r_cache_flush_func via opts
24067 pointer. Don't handle OPT_mmodel_, OPT_msdata_ or
24068 OPT_mno_flush_trap here.
24069 * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
24070 include of m32r-opts.h.
24071 * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
24072 HeaderInclude entry.
24073 (m32r_model_selected, m32r_sdata_selected): New Variable entries.
24074 (mmodel=): Use Enum and Var.
24075 (m32r_model): New Enum and EnumValue entries.
24076 (mno-flush-trap): Use Var.
24077 (msdata=): Use Enum and Var.
24078 (m32r_sdata): New Enum and EnumValue entries.
24080 2011-03-22 Joseph Myers <joseph@codesourcery.com>
24082 * config/m32c/m32c.c: Don't include opts.h.
24083 (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
24084 m32c_handle_option): Remove.
24085 (m32c_option_override): Check global_options_set.x_target_memregs
24086 instead of target_memregs_set.
24087 * config/m32c/m32c.h (target_memregs): Remove.
24088 * config/m32c/m32c.opt (memregs=): Use UInteger with integer
24091 2011-03-22 Joseph Myers <joseph@codesourcery.com>
24093 * config/iq2000/iq2000-opts.h: New.
24094 * config/iq2000/iq2000.c: Don't include opts.h.
24095 (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
24096 * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
24097 * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
24098 HeaderInclude entry.
24099 (iq2000_tune): New Variable entry.
24100 (march=): Add comment. Use Enum.
24101 (iq2000_arch): New Enum and EnumValue entries.
24102 (mcpu=): Use Enum and Var.
24103 (iq2000_tune): New Enum and EnumValue entries.
24105 2011-03-22 Joseph Myers <joseph@codesourcery.com>
24107 * config/ia64/ia64-opts.h: New.
24108 * config/ia64/ia64.c (ia64_tune): Remove.
24109 (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
24110 here. Use error_at.
24111 (ia64_option_override): Handle deferred OPT_mfixed_range_.
24112 * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
24113 * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
24114 HeaderInclude entry.
24115 (ia64_tune): New Variable entry.
24116 (mfixed-range=): Use Defer and Var.
24117 (mtune=): Use Enum and Var.
24118 (ia64_tune): New Enum and EnumValue entries.
24120 2011-03-22 Joseph Myers <joseph@codesourcery.com>
24122 * config/frv/frv-opts.h: New.
24123 * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
24125 (frv_cpu_type): Remove.
24126 * config/frv/frv.c: Don't include opts.h.
24127 (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
24128 * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
24129 (frv_cpu_type): New Variable entry.
24130 (frv_cpu): New Enum and EnumValue entries.
24132 2011-03-22 Joseph Myers <joseph@codesourcery.com>
24134 * config/cris/cris.c (cris_handle_option): Access target_flags via
24135 opts pointer. Don't assert that global structures are in use.
24136 Don't call CRIS_SUBTARGET_HANDLE_OPTION.
24137 * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
24139 2011-03-22 Joseph Myers <joseph@codesourcery.com>
24141 * config/bfin/bfin-opts.h: New.
24142 * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
24143 bfin_si_revision, bfin_workarounds): Remove.
24144 (bfin_cpus): Make static const.
24145 (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
24146 not bfin_lib_id_given.
24147 (bfin_handle_option): Don't set bfin_lib_id_given. Access
24148 bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
24149 pointer. Use error_at. Don't assert that global structures are in use.
24150 * config/bfin/bfin.h: Include bfin-opts.h.
24151 (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
24152 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
24153 * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
24154 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
24157 2011-03-22 Joseph Myers <joseph@codesourcery.com>
24159 * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
24160 * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
24161 or -msoft-float here.
24162 * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
24163 -msoft-float and -mhard-float.
24164 (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
24165 * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
24167 * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
24169 (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
24170 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
24172 (LIBGCC_SPEC): Don't handle -msoft-float.
24173 * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
24175 * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
24177 * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
24178 -mfloat-abi=*, not -msoft-float and -mhard-float.
24179 * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
24181 * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
24182 Use mfloat-abi=hard and mfloat-abi=soft in comments, not
24183 mhard-float and msoft-float.
24184 * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
24185 mfloat-abi=soft in comments, not mhard-float and msoft-float.
24186 * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
24187 mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
24189 * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
24190 mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
24192 * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
24194 * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
24197 2011-03-22 Richard Henderson <rth@redhat.com>
24199 * config/alpha/alpha.c (alpha_expand_prologue): Don't test
24200 TARGET_ABI_WINDOWS_NT.
24201 (alpha_output_function_end_prologue): Likewise.
24202 * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
24203 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
24204 * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
24205 (trap, *movsi_nt_vms): Likewise.
24206 (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
24207 (*tablejump_osf_nt_internal): Remove.
24208 * config/alpha/predicates.md (input_operand): Only test Pmode.
24210 2011-03-22 Joseph Myers <joseph@codesourcery.com>
24212 * config/alpha/alpha.c (alpha_handle_option): Access target_flags
24213 via opts pointer. Use error_at. Don't assert that global
24214 structures are in use.
24216 2011-03-22 Joseph Myers <joseph@codesourcery.com>
24218 * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
24219 (ix86_handle_option): Access ix86_isa_flags and
24220 ix86_isa_flags_explicit via opts pointer. Don't assert that
24221 global structures are in use.
24222 (ix86_function_specific_save, ix86_function_specific_restore):
24223 Update ix86_isa_flags_explicit field name.
24224 * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
24225 (ix86_isa_flags_explicit): Rename TargetSave entry to
24226 x_ix86_isa_flags_explicit.
24228 2011-03-22 Richard Henderson <rth@redhat.com>
24230 * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
24231 (alpha_option_override, direct_return): Likewise.
24232 (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
24233 (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
24234 (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
24235 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
24236 (alpha_expand_epilogue, alpha_end_function): Likewise.
24237 (alpha_init_libfuncs): Likewise.
24238 (struct machine_function): Remove unicosmk members.
24239 (print_operand) ['t']: Remove.
24240 (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
24241 unicosmk_output_module_name, unicosmk_output_common,
24242 current_section_align, unicosmk_output_text_section_asm_op,
24243 unicosmk_output_data_section_asm_op, unicosmk_init_sections,
24244 unicosmk_section_type_flags, unicosmk_unique_section,
24245 unicosmk_asm_named_section, unicosmk_insert_attributes,
24246 unicosmk_output_align, unicosmk_defer_case_vector,
24247 unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
24248 SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
24249 unicosmk_output_ssib, unicosmk_add_call_info_word,
24250 unicosmk_extern_head, unicosmk_output_default_externs,
24251 unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
24252 unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
24253 unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
24254 * config/alpha/alpha-protos.h: Update.
24255 * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
24256 * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
24257 (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
24258 (mulsi3): Don't test TARGET_ABI_UNICOSMK.
24259 (*mulsi_se, mulvsi3): Likewise.
24260 (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
24261 (*divmodsi_internal, call, call_value, realign): Likewise.
24262 (moddi3, umoddi3): Likewise; remove duplicate expander.
24263 (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
24264 (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
24265 (*movdi_nofix): Remove r/U alternative.
24266 (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
24267 * config/alpha/constraints.md ("U"): Remove.
24268 * config/alpha/predicates.md (call_operand"): Don't test
24269 TARGET_ABI_UNICOSMK.
24271 2011-03-22 Joseph Myers <joseph@codesourcery.com>
24273 * target.def (handle_option): Take gcc_options and
24274 cl_decoded_option pointers and location_t.
24275 * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
24276 * doc/tm.texi: Regenerate.
24277 * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
24278 * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
24279 * lto-opts.c (lto_reissue_options): Generate option structure for
24280 targetm.handle_option call.
24281 * opts.c (target_handle_option): Update call to
24282 targetm.handle_option. Remove assertions about values now passed
24284 * targhooks.c (default_target_handle_option): New.
24285 * targhooks.h (default_target_handle_option): Declare.
24286 * config/alpha/alpha.c: Include opts.h.
24287 (alpha_handle_option): Update to new hook interface.
24288 * config/arm/arm.c: Include opts.h.
24289 (arm_handle_option): Update to new hook interface.
24290 * config/arm/t-arm (arm.o): Update dependencies.
24291 * config/bfin/bfin.c: Include opts.h.
24292 (bfin_handle_option): Update to new hook interface.
24293 * config/cris/cris.c: Include opts.h.
24294 (cris_handle_option): Update to new hook interface.
24295 * config/frv/frv.c: Include opts.h.
24296 (frv_handle_option): Update to new hook interface.
24297 * config/i386/i386.c: Include opts.h.
24298 (ix86_handle_option): Update to new hook interface.
24299 (ix86_valid_target_attribute_inner_p): Generate option structure
24300 for call to ix86_handle_option.
24301 * config/i386/t-i386 (i386.o): Update dependencies.
24302 * config/ia64/ia64.c: Include opts.h.
24303 (ia64_handle_option): Update to new hook interface.
24304 * config/ia64/t-ia64 (ia64.o): Update dependencies.
24305 * config/iq2000/iq2000.c: Include opts.h.
24306 (iq2000_handle_option): Update to new hook interface.
24307 * config/m32c/m32c.c: Include opts.h.
24308 (m32c_handle_option): Update to new hook interface.
24309 * config/m32r/m32r.c: Include opts.h.
24310 (m32r_handle_option): Update to new hook interface.
24311 * config/m68k/m68k.c: Include opts.h.
24312 (m68k_handle_option): Update to new hook interface.
24313 * config/mep/mep.c: Include opts.h.
24314 (mep_handle_option): Update to new hook interface.
24315 * config/microblaze/microblaze.c: Include opts.h.
24316 (microblaze_handle_option): Update to new hook interface.
24317 * config/mips/mips.c: Include opts.h.
24318 (mips_handle_option): Update to new hook interface.
24319 * config/mn10300/mn10300.c: Include opts.h.
24320 (mn10300_handle_option): Update to new hook interface.
24321 * config/pa/pa.c: Include opts.h.
24322 (pa_handle_option): Update to new hook interface.
24323 * config/pdp11/pdp11.c: Include opts.h.
24324 (pdp11_handle_option): Update to new hook interface.
24325 * config/rs6000/rs6000.c: Include opts.h.
24326 (rs6000_handle_option): Update to new hook interface.
24327 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
24328 * config/rx/rx.c: Include opts.h.
24329 (rx_handle_option): Update to new hook interface.
24330 * config/s390/s390.c: Include opts.h.
24331 (s390_handle_option): Update to new hook interface.
24332 * config/score/score.c: Include opts.h.
24333 (score_handle_option): Update to new hook interface.
24334 * config/sh/sh.c: Include opts.h.
24335 (sh_handle_option): Update to new hook interface.
24336 * config/sparc/sparc.c: Include opts.h.
24337 (sparc_handle_option): Update to new hook interface.
24338 * config/v850/v850.c: Include opts.h.
24339 (v850_handle_option): Update to new hook interface.
24341 2011-03-22 Joseph Myers <joseph@codesourcery.com>
24343 * gcc.c (driver_unknown_option_callback): Only permit and save
24344 unknown -Wno- options.
24345 (driver_wrong_lang_callback): Save options directly instead of via
24346 driver_unknown_option_callback.
24348 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
24350 * combine.c (simplify_set): Try harder to find the best CC mode when
24351 simplifying a nested COMPARE on the RHS.
24353 2011-03-22 Joseph Myers <joseph@codesourcery.com>
24355 * config/alpha/gnu.h: Remove.
24356 * config/arc: Remove directory.
24357 * config/arm/netbsd.h: Remove.
24358 * config/arm/t-pe: Remove.
24359 * config/crx: Remove directory.
24360 * config/i386/netbsd.h: Remove.
24361 * config/m68hc11: Remove directory.
24362 * config/m68k/uclinux-oldabi.h: Remove.
24363 * config/mcore/mcore-pe.h: Remove.
24364 * config/mcore/t-mcore-pe: Remove.
24365 * config/netbsd-aout.h: Remove.
24366 * config/rs6000/gnu.h: Remove.
24367 * config/sh/sh-symbian.h: Remove.
24368 * config/sh/symbian-base.c: Remove.
24369 * config/sh/symbian-c.c: Remove.
24370 * config/sh/symbian-cxx.c: Remove.
24371 * config/sh/symbian-post.h: Remove.
24372 * config/sh/symbian-pre.h: Remove.
24373 * config/sh/t-symbian: Remove.
24374 * config/svr3.h: Remove.
24375 * config/vax/netbsd.h: Remove.
24376 * config.build: Don't handle i[34567]86-*-pe.
24377 * config.gcc: Remove handling of deprecations for most deprecated
24379 (m68k-*-uclinuxoldabi*): Add to second deprecated list.
24380 (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
24381 i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
24382 m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
24383 powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
24384 sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
24386 * config.host: Don't handle i[34567]86-*-pe.
24387 * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
24388 (ASM_SPEC32): Don't handle -mcall-gnu.
24389 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
24391 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
24392 STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
24393 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
24394 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
24395 (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
24396 * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
24397 conditional on SYMBIAN.
24398 * configure.ac: Don't handle powerpc*-*-gnu*.
24399 * configure: Regenerate.
24400 * doc/extend.texi (interrupt attribute): Don't mention CRX.
24401 * doc/install-old.texi (m6811, m6812): Don't mention.
24402 * doc/install.texi (arc-*-elf*): Don't document multilib option.
24403 (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
24404 (m68k-uclinuxoldabi): Don't mention.
24405 * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
24407 (-mcall-gnu): Remove.
24408 * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
24409 families): Remove constraint documentation.
24411 2011-03-22 Marius Strobl <marius@FreeBSD.org>
24413 * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
24414 (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
24415 (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
24417 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
24420 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
24421 vector when peeking at the next token for vector, don't expand the
24424 2011-03-21 Georg-Johann Lay <avr@gjlay.de>
24426 * config/avr/avr-protos.h (expand_epilogue): Change prototype
24427 * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
24428 * config/avr/avr.c (init_cumulative_args)
24429 (avr_function_arg_advance): Use it.
24430 * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
24432 (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
24433 (avr_function_ok_for_sibcall): ...this new function.
24434 (avr_lookup_function_attribute1): New static Function.
24435 (avr_naked_function_p, interrupt_function_p)
24436 (signal_function_p, avr_OS_task_function_p)
24437 (avr_OS_main_function_p): Use it.
24438 * config/avr/avr.md ("sibcall", "sibcall_value")
24439 ("sibcall_epilogue"): New expander.
24440 ("*call_insn", "*call_value_insn"): New insn.
24441 ("call_insn", "call_value_insn"): Remove
24442 ("call", "call_value", "epilogue"): Change expander to handle
24445 2011-03-21 Nick Clifton <nickc@redhat.com>
24447 * doc/invoke.texi (Overall Options): Move closing brace to end of
24449 (Optimization Options): Add missing @gol.
24450 (Directory Options): Likewise.
24451 (i386 and x86-64 Options): Likewise.
24452 (RS6000 and PowerPC Options): Likewise.
24453 (i386 and x86-64 Windows Options): Likewise.
24454 (V850 Options): Add text missing from descriptions.
24456 2011-03-22 Richard Henderson <rth@redhat.com>
24458 * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
24459 (avr_incoming_return_addr_rtx): New.
24460 (emit_push_byte): New.
24461 (expand_prologue): Use it. Remove incorrect dwarf annotation for
24462 SREG, RAMPZ, zero register. Push frame pointer by bytes. Add dwarf
24463 annotation for __prologue_saves__. Fixup dwarf annotation for CFA.
24464 (emit_pop_byte): New.
24465 (expand_epilogue): Use it. Pop frame pointer by bytes.
24466 * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
24467 (INCOMING_RETURN_ADDR_RTX): New.
24468 (INCOMING_FRAME_SP_OFFSET): New.
24469 (ARG_POINTER_CFA_OFFSET): New.
24470 * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
24471 (*pushhi, *pushsi, *pushsf, popqi): Likewise.
24474 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
24476 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
24478 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
24479 (FUNCTION_ARG_ADVANCE): Likewise.
24480 * tm.texi.in: Change references to them to hook references.
24481 * tm.texi: Regenerate.
24482 * targhooks.c (default_function_arg): Eliminate check for target
24484 (default_function_incoming_arg): Likewise.
24485 (default_function_arg_advance): Likewise.
24486 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
24487 (function_arg_advance): Likewise.
24488 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
24490 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
24492 * tree.c (build_call_1): New function.
24493 (build_call_valist, build_call_array_loc, build_call_vec): Call it.
24495 2011-03-22 Richard Guenther <rguenther@suse.de>
24497 PR tree-optimization/48228
24498 * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
24499 for single-arg PHIs.
24501 2011-03-22 Andrey Belevantsev <abel@ispras.ru>
24503 PR rtl-optimization/48143
24504 * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
24505 (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
24506 sse2_cvtps2pd): Likewise.
24508 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
24510 * recog.c (canonicalize_change_group): Use validate_unshare_change.
24512 2011-03-22 Richard Guenther <rguenther@suse.de>
24514 * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
24515 a valid RHS. Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
24516 * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
24517 and REALIGN_LOAD_EXPR.
24518 (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
24519 DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
24520 * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
24521 DOT_PROD_EXPR case ...
24522 (expand_expr_real_2): ... here.
24523 * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
24524 and REALIGN_LOAD_EXPR.
24525 * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
24526 * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
24527 (vect_create_epilog_for_reduction): Likewise.
24528 (vectorizable_reduction): Likewise.
24529 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
24530 * tree-vect-stmts.c (vectorizable_load): Likewise.
24532 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
24534 * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
24536 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
24538 * config/s390/s390.c (s390_delegitimize_address): Fix offset
24539 handling for PLTOFF/GOTOFF.
24541 2011-03-22 Nick Clifton <nickc@redhat.com>
24543 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
24544 trailing backslash from the end of the macro definition.
24546 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
24548 * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
24551 2011-03-21 Richard Sandiford <richard.sandiford@linaro.org>
24553 * expr.h (prepare_operand): Move to...
24554 * optabs.h (prepare_operand): ...here and change the insn code
24555 parameter from "int" to "enum insn_code".
24556 (insn_operand_matches): Declare.
24557 * expr.c (init_expr_target): Use insn_operand_matches.
24558 (compress_float_constant): Likewise.
24559 * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
24560 * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
24561 (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
24562 (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
24564 (gen_cond_trap): Likewise.
24565 (prepare_operand): Likewise. Change icode to an insn_code.
24566 (insn_operand_matches): New function.
24567 * reload.c (find_reloads_address_1): Use insn_operand_matches.
24568 * reload1.c (gen_reload): Likewise.
24569 * targhooks.c (default_secondary_reload): Likewise.
24571 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
24573 * config/alpha/alpha.md (unspec): New define_c_enum.
24576 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
24579 * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
24580 between a call and its CALL_ARG_LOCATION note.
24582 2011-03-21 Eric Botcazou <ebotcazou@adacore.com>
24584 * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
24586 2011-03-21 Jakub Jelinek <jakub@redhat.com>
24590 * c-common.c (shorten_compare): If primopN is first sign-extended
24591 to opN and then zero-extended to result type, set primopN to opN.
24593 2011-03-21 Daniel Jacobowitz <dan@codesourcery.com>
24595 * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
24596 for barrier handlers.
24598 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
24600 * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
24601 UNSPEC constants to be in the unspec enumeration, and redefine
24602 all UNSPECV constants to be in the unspecv enumeration, so that
24603 dumps print which unspec/unspec_volatile this is.
24604 * config/rs6000/vector.md (UNSPEC_*): Ditto.
24605 * config/rs6000/paired.md (UNSPEC_*): Ditto.
24606 * config/rs6000/vsx.md (UNSPEC_*): Ditto.
24607 * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
24608 * config/rs6000/dfp.md (UNSPEC_*): Ditto.
24610 * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
24611 UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
24612 UNSPECV_LWSYNC, since these are used as unspec_volatile.
24613 * config/rs6000/sync.md (isync, lwsync): Ditto.
24615 2011-03-21 Richard Guenther <rguenther@suse.de>
24617 * params.def (lto-min-partition): Fix typo.
24619 2011-03-21 Richard Guenther <rguenther@suse.de>
24622 * c-decl.c (grokdeclarator): Drop to the main variant only
24623 for array types. Drop flag_gen_aux_info check.
24625 2011-03-21 Richard Guenther <rguenther@suse.de>
24627 PR translation/47911
24628 * params.def (lto-partitions): Fix typo.
24629 (lto-min-partition): Fix wording.
24631 2011-03-21 Andreas Tobler <andreast@fgznet.ch>
24633 * config/rs6000/t-freebsd: Remove duplication from file.
24635 2011-03-21 Richard Guenther <rguenther@suse.de>
24637 PR middle-end/47661
24638 * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
24640 2011-03-21 Richard Guenther <rguenther@suse.de>
24643 * params.def (lto-partitions): Require at least 1 partition.
24645 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24647 * gthr-solaris.h: Remove.
24648 * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
24649 * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
24650 (LIB_SPEC): Likewise.
24651 * config/sol2.opt (threads): Remove.
24652 * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
24653 (sparc*-*-solaris2*): Likewise.
24654 * configure.ac (enable_threads): Enable solaris support.
24655 * configure: Regenerate.
24656 * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
24657 * doc/install.texi (Configuration, --enable-threads=lib): Remove
24660 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24662 * config.gcc: Obsolete *-*-solaris2.8*.
24663 * doc/install.texi (Specific, *-*-solaris2*): Document it.
24665 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24668 * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
24669 reference. Solaris 8 perl works.
24671 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24674 * doc/install.texi (Prerequisites): Move jar etc. up.
24675 Explain support library version requirements.
24677 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24680 * doc/install.texi (Prerequisites): Move Perl to build
24681 requirements. Always necessary on Solaris 2 with Sun ld.
24683 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24685 * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
24687 (Specific, i?86-*-solaris2.[89]): Likewise.
24688 (Specific, i?86-*-solaris2.10): Likewise.
24689 (Specific, mips-sgi-irix6): Likewise.
24690 (Specific, *-*-solaris2*): Remove Sun Studio download URL.
24691 Update for binutils 2.21.
24693 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24695 * configure.ac (gcc_cv_lto_plugin): Fix typo.
24696 Allow -fuse-linker-plugin for non-default plugin linker.
24697 * configure: Regenerate.
24699 2011-03-21 Nicola Pero <nicola.pero@meta-innovation.com>
24702 * gengtype.c (files_rules): Added rule for cp/parser.h.
24704 2011-03-21 Jakub Jelinek <jakub@redhat.com>
24707 * config/s390/s390.c (s390_delegitimize_address): Don't call
24708 lowpart_subreg if orig_x has BLKmode.
24710 2011-03-21 Kai Tietz <ktietz@redhat.com>
24713 * doc/plugins.texi: Adjust documentation for plugin register_callback.
24714 * tree.h (attribute_spec): Add new member affects_type_identity.
24715 * attribs.c (empty_attribute_table): Adjust attribute_spec
24717 * config/alpha/alpha.c: Likewise.
24718 * config/arc/arc.c: Likewise.
24719 * config/arm/arm.c: Likewise.
24720 * config/avr/avr.c: Likewise.
24721 * config/bfin/bfin.c: Likewise.
24722 * config/crx/crx.c: Likewise.
24723 * config/darwin.h: Likewise.
24724 * config/h8300/h8300.c: Likewise.
24725 * config/i386/cygming.h: Likewise.
24726 * config/i386/i386.c: Likewise.
24727 * config/ia64/ia64.c: Likewise.
24728 * config/m32c/m32c.c: Likewise.
24729 * config/m32r/m32r.c: Likewise.
24730 * config/m68hc11/m68hc11.c: Likewise.
24731 * config/m68k/m68k.c: Likewise.
24732 * config/mcore/mcore.c: Likewise.
24733 * config/mep/mep.c: Likewise.
24734 * config/microblaze/microblaze.c: Likewise.
24735 * config/mips/mips.c: Likewise.
24736 * config/rs6000/rs6000.c: Likewise.
24737 * config/rx/rx.c: Likewise.
24738 * config/sh/sh.c: Likewise.
24739 * config/sol2.h: Likewise.
24740 * config/sparc/sparc.c: Likewise.
24741 * config/spu/spu.c: Likewise.
24742 * config/stormy16/stormy16.c: Likewise.
24743 * config/v850/v850.c: Likewise.
24745 2011-03-21 Chung-Lin Tang <cltang@codesourcery.com>
24747 * simplify-rtx.c (simplify_binary_operation_1): Handle
24748 (xor (and A B) C) case when B and C are both constants.
24750 2011-03-21 Mingjie Xing <mingjie.xing@gmail.com>
24752 * tree-dfa.c (add_referenced_var): Fix typo in comment.
24754 2011-03-20 Eric Botcazou <ebotcazou@adacore.com>
24757 * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
24759 2011-03-20 Jakub Jelinek <jakub@redhat.com>
24761 PR rtl-optimization/48156
24762 * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
24763 assume df and df_lr are not NULL.
24765 2011-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
24768 * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
24769 between a call and its CALL_ARG_LOCATION note.
24771 2011-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
24774 * config/sh/sh.c (find_barrier): Don't emit a constant pool
24775 between a call and its corresponding CALL_ARG_LOCATION note.
24777 2011-03-19 Anatoly Sokolov <aesok@post.ru>
24779 * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
24780 instead of loop. Use HARD_REGISTER_NUM_P predicate.
24781 * haifa-sched.c (setup_ref_regs): Ditto.
24782 * caller-save.c (add_used_regs_1): Ditto.
24783 * dse.c (look_for_hardregs): Ditto.
24784 * df-problems.c (df_simulate_one_insn_forwards): Ditto.
24785 * sched-rgn.c (check_live_1): Ditto.
24787 2011-03-18 Joseph Myers <joseph@codesourcery.com>
24789 * c-decl.c (diagnose_mismatched_decls): Give an error for
24790 redefining a typedef with variably modified type.
24792 2011-03-18 Joseph Myers <joseph@codesourcery.com>
24794 * c-decl.c (grokfield): Don't allow typedefs for structures or
24795 unions with no tag by default.
24796 * doc/extend.texi (Unnamed Fields): Update.
24798 2011-03-18 Uros Bizjak <ubizjak@gmail.com>
24800 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
24801 Rewrite using indirect functions.
24802 (lwp_slwpcb): Ditto.
24803 * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
24804 (avx_vinsertf128<mode>): Ditto.
24806 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
24808 * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
24811 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
24813 * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
24814 splitting between a call and its corresponding CALL_ARG_LOCATION note.
24816 2011-03-18 Maxim Kuvyrkov <maxim@codesourcery.com>
24818 PR rtl-optimization/48170
24819 * gcse.c (hoist_code): Remove bogus asserts.
24821 2011-03-18 Georg-Johann Lay <avr@gjlay.de>
24823 * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
24824 computation for prologue/epilogue.
24826 2011-03-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24828 * Makefile.in (check-consistency): Remove.
24830 2011-03-18 Jakub Jelinek <jakub@redhat.com>
24833 * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
24834 arange_table_in_use is 0, but either text_section_used or
24835 cold_text_section_used is true. Don't call it if
24836 !info_section_emitted.
24838 2011-03-18 Anatoly Sokolov <aesok@post.ru>
24840 * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
24841 FUNCTION_VALUE_REGNO_P): Remove.
24842 * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
24844 * config/avr/avr.c (avr_ret_register): Make static inline.
24845 (avr_function_value_regno_p): New function.
24846 (avr_libcall_value): Make static. Add 'func' argument.
24847 (avr_function_value): Make static. Rename 'func' argument to
24848 'fn_decl_or_type', forward it to avr_libcall_value. Call
24849 avr_ret_register function instead of RET_REGISTER macro.
24850 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
24852 2011-03-18 Jason Merrill <jason@redhat.com>
24855 * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
24857 2011-03-18 Richard Guenther <rguenther@suse.de>
24859 * doc/install.texi (--enable-gold): Remove.
24860 (--with-plugin-ld): Document.
24861 * doc/invoke.texi (-fuse-linker-plugin): Clarify.
24863 2011-03-18 Andrew Pinski <pinskia@gmail.com>
24865 PR middle-end/47790
24866 * expr.c (optimize_bitfield_assignment_op): Revamp to work
24867 again after expansion changes.
24869 2011-03-18 Chung-Lin Tang <cltang@codesourcery.com>
24871 * combine.c (try_combine): Do simplification only call of
24872 subst() on i2 even when i1 is present. Update comments.
24874 2011-03-18 Kaz Kojima <kkojima@gcc.gnu.org>
24876 * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
24877 and UNSPEC_PCREL_SYMOFF.
24879 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
24881 * config/s390/s390.md: Use define_c_enum for the unspec constant
24884 2011-03-18 Richard Henderson <rth@redhat.com>
24885 Jakub Jelinek <jakub@redhat.com>
24888 * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
24889 instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
24891 2011-03-17 Anatoly Sokolov <aesok@post.ru>
24893 * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
24894 * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
24895 * config/v850/v850.c (v850_output_addr_const_extra): Make static.
24896 Change return type to bool.
24897 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
24899 2011-03-17 Jakub Jelinek <jakub@redhat.com>
24902 * var-tracking.c (prepare_call_arguments): If CALL target
24903 is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
24904 pc instead of looking it up using cselib_lookup and use
24905 Pmode for it if x has VOIDmode.
24906 * dwarf2out.c (gen_subprogram_die): If also both first and
24907 second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
24910 * function.c (assign_parms): For data.passed_pointer parms
24911 use MEM of data.entry_parm instead of data.entry_parm itself
24912 as DECL_INCOMING_RTL.
24913 * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
24914 also when passed and declared mode is the same, DECL_RTL
24915 is a MEM with pseudo as address and DECL_INCOMING_RTL is
24918 2011-03-16 Jeff Law <law@redhat.com>
24920 PR rtl-optimization/37273
24921 * ira-costs.c (scan_one_insn): Detect constants living in memory and
24922 handle them like argument loads from stack slots. Do not double
24923 count memory for memory constants and argument loads from stack slots.
24925 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
24928 * var-tracking.c (prepare_call_arguments): Check SUBREG.
24930 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
24933 * config/i386/i386.opt: Add Save to -mavx and -mfma.
24935 2011-03-17 Jakub Jelinek <jakub@redhat.com>
24938 * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
24940 (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
24941 Clear call_arg_locations and call_arg_loc_last always.
24943 PR middle-end/48152
24944 * var-tracking.c (prepare_call_arguments): If argument needs to be
24945 passed by reference, adjust argtype and mode.
24947 2011-03-17 Richard Guenther <rguenther@suse.de>
24949 PR middle-end/48134
24950 * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
24951 a value make sure to fold the statement.
24953 2011-03-17 Chung-Lin Tang <cltang@codesourcery.com>
24956 * config/arm/arm.c (arm_get_frame_offsets): Adjust early
24957 return condition with !cfun->calls_alloca.
24959 2011-03-17 Richard Guenther <rguenther@suse.de>
24962 * lto-cgraph.c (input_overwrite_node): Clear the abstract
24963 origin for decls in other ltrans units.
24964 (input_varpool_node): Likewise.
24966 2011-03-17 Richard Guenther <rguenther@suse.de>
24968 PR middle-end/48165
24969 * tree-object-size.c (compute_object_offset): Properly return
24970 the offset operand of MEM_REFs as sizetype.
24972 2011-03-17 Jakub Jelinek <jakub@redhat.com>
24974 PR rtl-optimization/48141
24975 * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
24976 * dse.c: Include params.h.
24977 (active_local_stores_len): New variable.
24978 (add_wild_read, dse_step1): Clear it when setting active_local_stores
24980 (record_store, check_mem_read_rtx): Decrease it when removing
24982 (scan_insn): Likewise. Increase it when adding to chain, if it
24983 reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
24984 set active_local_stores to NULL before the addition.
24985 * Makefile.in (dse.o): Depend on $(PARAMS_H).
24987 PR rtl-optimization/48141
24988 * dse.c (record_store): If no positions are needed in an insn
24989 that cannot be deleted, at least unchain it from active_local_stores.
24991 2011-03-16 Dodji Seketeli <dodji@redhat.com>
24994 * dwarf2out.c (strip_naming_typedef): Factorize out of ...
24995 (lookup_type_die_strip_naming_typedef): ... here.
24996 (get_context_die): Use it.
24997 (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
24998 the anonymous struct named by the naming typedef.
25000 2011-03-16 H.J. Lu <hongjiu.lu@intel.com>
25003 * config/i386/i386.c (ix86_builtin_vectorized_function): Check
25004 TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
25006 2011-03-16 Jeff Law <law@redhat.com>
25008 * tree-vrp.c (identify_jump_threads): Slightly simplify type
25009 check for operands of conditional. Allow type to be a pointer.
25011 2011-03-16 Richard Guenther <rguenther@suse.de>
25013 PR tree-optimization/48149
25014 * fold-const.c (fold_binary_loc): Fold
25015 COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
25017 2011-03-16 Richard Guenther <rguenther@suse.de>
25019 PR tree-optimization/26134
25020 * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
25021 complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
25022 (non_rewritable_mem_ref_base): Handle complex type component
25023 accesses, constrain offsets for vector and complex extracts
25026 2011-03-16 Richard Guenther <rguenther@suse.de>
25028 PR tree-optimization/48146
25029 * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
25030 operands avoiding the need for renaming.
25032 2011-03-16 Richard Guenther <rguenther@suse.de>
25034 * gimple-fold.c (maybe_fold_reference): Open-code relevant
25035 constant folding. Move MEM_REF canonicalization first.
25036 Rely on fold_const_aggregate_ref for initializer folding.
25037 * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
25039 2011-03-16 Jakub Jelinek <jakub@redhat.com>
25041 PR middle-end/48136
25042 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
25043 arg0/arg1 or their arguments are always fold converted to matching
25046 * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
25049 2011-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25052 * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
25053 Handle in-tree gold.
25054 (ld_vers): Extract binutils version for gold.
25055 (gcc_cv_ld_hidden): Handle gold here.
25056 (gcc_cv_lto_plugin): Determine level of linker plugin support.
25057 * configure: Regenerate.
25058 * config.in: Regenerate.
25059 * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
25060 -fuse-linker-plugin otherwise.
25061 (LINK_PLUGIN_SPEC): Define. Extract from LINK_COMMAND_SPEC.
25062 (LINK_COMMAND_SPEC): Use it.
25063 (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
25065 2011-03-16 Jakub Jelinek <jakub@redhat.com>
25067 * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
25068 * calls.c: Remove debug.h include.
25069 (emit_call_1): Don't call virtual_call_token debug hook.
25070 * dwarf2out.c (debug_dcall_section, debug_vcall_section,
25071 dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
25072 vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
25073 size_of_dcall_table, output_dcall_table, size_of_vcall_table,
25074 output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
25075 vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
25076 dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
25077 dwarf2out_virtual_call): Remove.
25078 (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
25079 copy_call_info and virtual_call hooks.
25080 (dwarf2out_init): Don't initialize vcall_insn_table,
25081 debug_dcall_section and debug_vcall_section.
25082 (prune_unused_types): Don't mark nodes from dcall_table.
25083 (dwarf2out_finish): Don't output dcall or vcall tables.
25084 * final.c (final_scan_insn): Don't call direct_call or
25085 virtual_call debug hooks.
25086 * debug.h (struct gcc_debug_hooks): Remove direct_call,
25087 virtual_call_token, copy_call_info and virtual_call hooks.
25088 (debug_nothing_uid): Remove prototype.
25089 * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
25090 copy_call_info and virtual_call hooks.
25091 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
25092 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
25093 * debug.c (do_nothing_debug_hooks): Likewise.
25094 (debug_nothing_uid): Remove.
25095 * doc/invoke.texi (-fenable-icf-debug): Remove.
25096 * common.opt (-fenable-icf-debug): Likewise.
25098 * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
25099 * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
25100 call's MEM. Handle functions returning aggregate through a hidden
25101 first pointer. For virtual calls add clobbered pc to call arguments
25103 * dwarf2out.c (gen_subprogram_die): Emit
25104 DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
25108 * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
25109 * rtl.h (ENTRY_VALUE_EXP): Define.
25110 * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
25111 * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
25112 * print-rtl.c (print_rtx): Likewise.
25113 * gengtype.c (adjust_field_rtx_def): Likewise.
25114 * var-tracking.c (vt_add_function_parameter): Adjust
25115 gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
25116 * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
25117 * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
25118 partition is a default definition of a PARM_DECL, use ENTRY_VALUE
25119 of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
25121 * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
25122 Call var_location debug hook even on CALL_INSNs.
25123 (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
25124 * rtl.def (ENTRY_VALUE): New.
25125 * dwarf2out.c: Include cfglayout.h.
25126 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
25127 output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
25128 (struct call_arg_loc_node): New type.
25129 (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
25130 tail_call_site_count): New variables.
25131 (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
25132 DW_TAG_GNU_call_site_parameter.
25133 (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
25134 DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
25135 DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
25136 DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
25137 and DW_AT_GNU_all_source_call_sites.
25138 (mem_loc_descriptor): Handle ENTRY_VALUE.
25139 (add_src_coords_attributes): Don't add enything if
25140 DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
25141 (dwarf2out_abstract_function): Save and clear call_arg_location,
25142 call_site_count and tail_call_site_count around dwarf2out_decl call.
25143 (gen_call_site_die): New function.
25144 (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
25145 (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
25146 (dwarf2out_function_decl): Clear call_arg_locations,
25147 call_arg_loc_last, set call_site_count and tail_call_site_count
25148 to -1 and free block_map.
25149 (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
25150 CALL_INSNs. Add NOTE_DURING_CALL_P var location notes even when not
25151 followed by any real instructions.
25152 (dwarf2out_begin_function): Set call_site_count and
25153 tail_call_site_count to 0.
25154 (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
25155 is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
25156 attempt to force a DIE for it and worst case remove the attribute.
25157 (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
25158 check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
25160 * var-tracking.c: Include tm_p.h.
25161 (vt_stack_adjustments): For calls call note_register_arguments.
25162 (argument_reg_set): New variable.
25163 (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
25164 ensure the VALUE is resolved.
25165 (call_arguments): New variable.
25166 (prepare_call_arguments): New function.
25167 (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
25168 (struct expand_loc_callback_data): Add ignore_cur_loc field.
25169 (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
25170 always use the best expression.
25171 (vt_expand_loc): Add ignore_cur_loc argument.
25172 (vt_expand_loc_dummy): Clear ignore_cur_loc field.
25173 (emit_note_insn_var_location): Adjust vt_expand_loc callers.
25174 (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
25175 note for all calls.
25176 (vt_add_function_parameter): Use cselib_lookup_from_insn.
25177 If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
25178 argument. Don't call cselib_preserve_only_values and
25179 cselib_reset_table.
25180 (note_register_arguments): New function.
25181 (vt_initialize): Compute argument_reg_set. Call
25182 vt_add_function_parameters before processing basic blocks instead of
25183 afterwards. For calls call prepare_call_arguments before calling
25184 cselib_process_insn.
25185 * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
25186 * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
25187 (var-tracking.o): Depend on $(TM_P_H).
25188 * cfglayout.h (insn_scope): New prototype.
25189 * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
25190 * cfglayout.c (insn_scope): No longer static.
25191 * insn-notes.def (CALL_ARG_LOCATION): New.
25192 * calls.c (expand_call, emit_library_call_value_1): Put USEs for
25193 MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
25194 * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
25195 nothing for DECL_EXTERNAL BLOCK_VARS.
25197 2011-03-16 Alan Modra <amodra@gmail.com>
25200 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
25201 create invalid offset address for vsx splat insn.
25202 * config/rs6000/predicates.md (splat_input_operand): New.
25203 * config/rs6000/vsx.md (vsx_splat_*): Use it.
25205 2011-03-15 Xinliang David Li <davidxl@google.com>
25208 * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
25209 (normalize_preds): New function.
25210 (is_use_properly_guarded): Normalize def predicates.
25212 2011-03-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
25215 * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
25216 in the output template.
25218 2011-03-15 Richard Guenther <rguenther@suse.de>
25220 PR middle-end/47650
25221 * tree-pretty-print.c (dump_function_declaration): Properly
25222 dump unprototyped and varargs function types.
25224 2011-03-15 Richard Guenther <rguenther@suse.de>
25226 PR tree-optimization/13954
25227 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
25230 2011-03-15 Richard Guenther <rguenther@suse.de>
25232 PR tree-optimization/48037
25233 * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
25234 selects into BIT_FIELD_REFs.
25235 (non_rewritable_mem_ref_base): Check if a MEM_REF is a
25238 2011-03-15 Jakub Jelinek <jakub@redhat.com>
25240 PR tree-optimization/48129
25241 * builtins.c (fold_builtin_snprintf): Convert to type of
25242 built_in_decls[BUILT_IN_SNPRINTF] retval instead of
25243 implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
25245 2011-03-15 Richard Guenther <rguenther@suse.de>
25247 PR tree-optimization/41490
25248 * tree-ssa-dce.c (propagate_necessity): Handle returns without
25249 value but with VUSE.
25250 * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
25252 * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
25253 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
25254 * tree-tailcall.c (find_tail_calls): Ignore returns.
25256 2011-03-15 Richard Guenther <rguenther@suse.de>
25258 PR middle-end/48031
25259 * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
25260 or variable-indexed array accesses when in gimple form.
25262 2011-03-15 Richard Guenther <rguenther@suse.de>
25264 * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
25266 2011-03-15 Alan Modra <amodra@gmail.com>
25269 * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
25270 presume symbol_refs without a symbol_ref_decl are suitably
25271 aligned, nor other trees we may see here. Handle anchor symbols.
25272 (legitimate_constant_pool_address_p): Comment. Add mode param.
25273 Check cmodel=medium addresses. Adjust all calls.
25274 (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
25275 creating cmodel=medium optimized access to locals.
25276 * config/rs6000/constraints.md (R): Pass QImode to
25277 legitimate_constant_pool_address_p.
25278 * config/rs6000/predicates.md (input_operand): Pass mode to
25279 legitimate_constant_pool_address_p.
25280 * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
25283 2011-03-14 Michael Meissner <meissner@linux.vnet.ibm.com>
25286 * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
25287 64-bit constants being loaded into registers other than GPRs such
25288 as loading 0 into a VSX register.
25290 2011-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25292 * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
25294 2011-03-14 Jakub Jelinek <jakub@redhat.com>
25296 PR middle-end/47917
25297 * builtins.c (fold_builtin_snprintf): New function.
25298 (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
25299 (fold_builtin_4): Likewise.
25301 PR middle-end/38878
25302 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
25303 STRIP_NOPS on arg0 and arg1. When optimizing X +- C == X
25304 and C - X == X also strip nops from +/-/p+ operand.
25305 When optimizing -X == C, fold C to arg0's type.
25308 * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
25309 emit it as add_AT_int instead of add_AT_unsigned.
25311 2011-03-14 Tom Tromey <tromey@redhat.com>
25313 * unwind-dw2.c: Include sys/sdt.h if it exists.
25314 (_Unwind_DebugHook): Use STAP_PROBE2.
25315 * config.in, configure: Rebuild.
25316 * configure.ac: Check for sys/sdt.h.
25318 2011-03-14 Uros Bizjak <ubizjak@gmail.com>
25320 * config/i386/i386.md (ROUND_FLOOR): New constant.
25321 (ROUND_CEIL): Ditto.
25322 (ROUND_TRUNC): Ditto.
25323 (ROUND_MXCSR): Ditto.
25324 (ROUND_NO_EXC): Ditto.
25325 (rint<mode>2): Use new defines instead of numerical constants.
25326 (floor<mode>2): Ditto.
25327 (ceil<mode>2): Ditto.
25328 (btrunc<mode>2): Ditto.
25329 * config/i386/i386-builtin-types.def: Define ROUND function type
25331 * config/i386/i386.c (enum ix86_builtins): Add
25332 IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
25333 (struct builtin_description): Add
25334 __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
25335 (ix86_expand_sse_round): New static function.
25336 (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
25338 (ix86_builtin_vectorized_function): Handle
25339 BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
25341 2011-03-14 Tom Tromey <tromey@redhat.com>
25343 * c-parser.c (c_parser_asm_string_literal): Clear
25344 warn_overlength_strings.
25346 2011-03-14 Tom Tromey <tromey@redhat.com>
25348 * c-parser.c (disable_extension_diagnostics): Save
25349 warn_overlength_strings.
25350 (restore_extension_diagnostics): Restore warn_overlength_strings.
25352 2011-03-14 Jakub Jelinek <jakub@redhat.com>
25354 * BASE-VER: Change to 4.7.0.
25356 2011-03-14 Richard Guenther <rguenther@suse.de>
25358 PR middle-end/48098
25359 * tree.c (build_vector_from_val): Adjust assert to requirements
25362 2011-03-14 Jakub Jelinek <jakub@redhat.com>
25365 * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
25367 2011-03-14 Andreas Tobler <andreast@fgznet.ch>
25369 * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
25370 terms of target_flags_explicit. Adjust copyright year.
25372 * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
25373 * config/rs6000/t-freebsd: New file. Add override for
25376 2011-03-13 Chris Demetriou <cgd@google.com>
25378 * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
25379 (-fno-diagnostics-show-option): this, to reflect current default.
25380 (-Werror=): Update text about -fno-diagnostics-show-option.
25382 2011-03-12 Peter Bergner <bergner@vnet.ibm.com>
25385 * config/rs6000/predicates.md (easy_vector_constant_add_self,
25386 easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
25387 * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
25388 mode is not V2DImode or V2DFmode.
25389 (vspltis_constant): Do not handle V2DImode and V2DFmode.
25390 (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
25391 * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
25393 (movdi_internal64): Likewise.
25395 2011-03-12 Sebastian Pop <sebastian.pop@amd.com>
25397 PR tree-optimization/47127
25398 * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
25400 (set_cloog_options): Same.
25401 (scop_to_clast): Same.
25402 (print_clast_stmt): Do not call cloog_state_malloc and
25404 (print_generated_program): Same.
25406 * graphite-clast-to-gimple.h (cloog_state): Declared.
25407 (scop_to_clast): Adjust declaration.
25408 * graphite.c (cloog_state): Defined here.
25409 (graphite_initialize): Call cloog_state_malloc.
25410 (graphite_finalize): Call cloog_state_free.
25412 2011-03-11 Jason Merrill <jason@redhat.com>
25414 * attribs.c (lookup_attribute_spec): Take const_tree.
25417 2011-03-11 Joseph Myers <joseph@codesourcery.com>
25419 * config/sparc/sparc.c (sparc_option_override): Use
25420 PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
25422 2011-03-11 Richard Guenther <rguenther@suse.de>
25424 PR tree-optimization/48067
25425 * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
25426 multiplication result will be only used once on the target
25429 2011-03-11 Richard Guenther <rguenther@suse.de>
25431 * doc/invoke.texi (max-inline-insns-single): Adjust default value.
25433 2011-03-11 Richard Guenther <rguenther@suse.de>
25436 * tree.c (find_decls_types_r): Do not walk types only reachable
25437 from IDENTIFIER_NODEs.
25439 2011-03-11 Jakub Jelinek <jakub@redhat.com>
25441 PR middle-end/48044
25442 * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
25443 all vnode->force_output nodes as needed.
25445 2011-03-11 Jason Merrill <jason@redhat.com>
25448 * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
25449 COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
25451 2011-03-11 Martin Jambor <mjambor@suse.cz>
25453 * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
25456 2011-03-11 Jakub Jelinek <jakub@redhat.com>
25458 PR tree-optimization/48063
25459 * ipa-inline.c (cgraph_decide_inlining): Don't try to
25460 inline functions called once if !tree_can_inline_p (node->callers).
25462 2011-03-11 Chen Liqin <liqin.gcc@gmail.com>
25464 * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
25466 * config/score/score3.c: Delete.
25467 * config/score/score3.h: Delete.
25468 * config/score/mul-div.S: Delete.
25469 * config/score/sfp-machine.h: Add new file.
25470 * config/score/constraints.md: Add new file.
25471 * config/score/t-score-softfp: Add new file.
25472 * config/score/t-score-elf: Remove score3.o, do not generate multilib.
25473 * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
25474 (score7_extra_constraint): Delete.
25475 (score7_option_override): Remove unused code.
25476 * config/score/score.c: Remove score3 and score5 define and code.
25477 * config/score/score.h: Remove score3 and score5 define and code.
25478 * config/score/score.md: Remove score3 template and unusual insn.
25479 * config/score/score.opt: Remove score3 and score5 options.
25481 2011-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
25483 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
25484 when _HPUX_SOURCE is defined.
25485 (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
25487 2011-03-10 Jason Merrill <jason@redhat.com>
25490 * stor-layout.c (layout_type): Don't set structural equality
25491 on arrays of incomplete type.
25492 * tree.c (type_hash_eq): Handle comparing them properly.
25494 2011-03-10 Jakub Jelinek <jakub@redhat.com>
25497 * config/s390/s390.c (s390_delegitimize_address): Make sure the
25498 result mode matches original rtl mode.
25500 2011-03-10 Nick Clifton <nickc@redhat.com>
25502 * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
25503 (andsi3, andsi3_flags): Fix timings for three operand alternative.
25505 2011-03-09 Jakub Jelinek <jakub@redhat.com>
25507 PR rtl-optimization/47866
25508 * expr.c (store_field): If MEM_SCALAR_P (target), don't use
25509 MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
25510 if target wasn't scalar.
25511 * function.c (assign_stack_temp_for_type): Assert that neither
25512 MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
25513 MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
25515 * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
25517 2011-03-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
25519 * config/s390/s390-protos.h (s390_label_align): New prototype.
25520 * config/s390/s390.c (s390_label_align): New function.
25521 * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
25523 2011-03-08 Michael Meissner <meissner@linux.vnet.ibm.com>
25526 * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
25527 V2DI/V2DF constants. Only all 0's or all 1's are easy.
25528 (output_vec_const_move): Ditto.
25530 2011-03-08 Anatoly Sokolov <aesok@post.ru>
25532 * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
25533 * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
25534 * config/mips/mips.c (mips_preferred_reload_class): Make static.
25535 Change 'rclass' argument and result type to reg_class_t.
25536 (TARGET_PREFERRED_RELOAD_CLASS): Define.
25538 2011-03-08 Georg-Johann Lay <avr@gjlay.de>
25540 * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
25541 * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
25542 (TARGET_MEMORY_MOVE_COST): Define.
25543 (avr_register_move_cost, avr_memory_move_cost): New Functions.
25545 2011-03-08 Jakub Jelinek <jakub@redhat.com>
25548 * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
25551 PR tree-optimization/48022
25552 * fold-const.c (fold_comparison): Don't call fold_overflow_warning
25555 2011-03-07 Jakub Jelinek <jakub@redhat.com>
25558 * var-tracking.c (find_use_val): Return NULL for
25559 cui->sets && cui->store_p BLKmode MEMs.
25561 2011-03-07 Anatoly Sokolov <aesok@post.ru>
25563 * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
25565 * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
25566 xstormy16_print_operand_address): Remove.
25567 * config/stormy16/stormy16.c (xstormy16_print_operand,
25568 xstormy16_print_operand_address): Make static.
25569 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
25571 2011-03-07 Pat Haugen <pthaugen@us.ibm.com>
25574 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
25575 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
25578 2011-03-07 Zdenek Dvorak <ook@ucw.cz>
25581 * cfgloopmanip.c (fix_bb_placements): Return immediately
25582 if FROM is BASE_LOOP's header.
25584 2011-03-07 Paul Wögerer <paul_woegerer@mentor.com>
25586 * gimplify.c (gimplify_function_tree): Fix building calls
25587 to __builtin_return_address.
25589 2011-03-07 Alan Modra <amodra@gmail.com>
25591 * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
25592 * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
25593 * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
25594 * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
25596 * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
25597 (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
25598 (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
25599 (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
25600 * config/rs6000/rs6000.c
25601 (rs6000_elf_end_indicate_exec_stack): Rename to..
25602 (rs6000_elf_file_end): ..this. Only call file_end_indicate_exec_stack
25603 for POWERPC_LINUX. Move code emitting .gnu_attribute to here, from..
25604 (rs6000_file_start): ..here.
25605 (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
25606 file scope variables.
25607 (call_ABI_of_interest): New function.
25608 (init_cumulative_args): Set above vars when function return value
25609 is a float, vector, or small struct.
25610 (rs6000_function_arg_advance_1): Likewise for function args.
25611 (rs6000_va_start): Set rs6000_passes_float if variable arg function
25612 references float args.
25614 2011-03-07 Mingjie Xing <mingjie.xing@gmail.com>
25616 * doc/cfg.texi: Remove "See" before @ref.
25617 * doc/invoke.texi: Likewise.
25619 2011-03-05 Jason Merrill <jason@redhat.com>
25621 * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
25623 2011-03-05 Anthony Green <green@moxielogic.com>
25625 * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
25627 2011-03-05 Zdenek Dvorak <ook@ucw.cz>
25629 PR rtl-optimization/47899
25630 * cfgloopmanip.c (fix_bb_placements): Fix first argument
25631 to flow_loop_nested_p when moving the loop upward.
25633 2011-03-05 Richard Earnshaw <rearnsha@arm.com>
25636 * arm.md (movhi_insn_arch4): Accept any immediate constant.
25638 2011-03-05 Jakub Jelinek <jakub@redhat.com>
25640 PR tree-optimization/47967
25641 * ipa-cp.c (build_const_val): Return NULL instead of creating
25642 VIEW_CONVERT_EXPR for mismatching sizes.
25643 (ipcp_create_replace_map): Return NULL if build_const_val failed.
25644 (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
25645 give up on versioning.
25647 2011-03-05 Alan Modra <amodra@gmail.com>
25650 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
25651 full cmodel medium/large lo_sum + high addresses.
25653 2011-03-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
25655 * config/s390/s390.c (s390_decompose_address): Reject non-literal
25656 pool references in UNSPEC_LTREL_OFFSET.
25658 2011-03-04 Jan Hubicka <jh@suse.cz>
25661 * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
25662 (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
25663 * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
25665 * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
25666 cgraph_add_thunk): Add node pointers.
25667 * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
25668 associated to right node.
25669 (input_node): Update use of cgraph_same_body_alias
25670 and cgraph_add_thunk.
25672 2011-03-04 Changpeng Fang <changpeng.fang@amd.com>
25674 * config/i386/i386.opt (mprefer-avx128): New flag.
25675 * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
25676 modes when the flag -mprefer-avx128 is on.
25678 2011-03-04 Richard Sandiford <richard.sandiford@linaro.org>
25680 * dwarf2out.c (compare_loc_operands): Fix address handling.
25682 2011-03-04 Alan Modra <amodra@gmail.com>
25684 * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
25686 2011-03-04 Richard Guenther <rguenther@suse.de>
25688 PR middle-end/47968
25689 * expmed.c (extract_bit_field_1): Prefer vector modes that
25690 vec_extract patterns can handle.
25692 2011-03-04 Richard Guenther <rguenther@suse.de>
25694 PR middle-end/47975
25695 * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
25697 2011-03-04 Richard Henderson <rth@redhat.com>
25699 * explow.c (emit_stack_save): Remove 'after' parameter.
25700 (emit_stack_restore): Likewise.
25701 * expr.h: Update to match.
25702 * builtins.c, calls.c, stmt.c: Likewise.
25703 * config/alpha/alpha.md, config/avr/avr.md: Likewise.
25704 * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
25705 * function.c (expand_function_end): Insert the emit_stack_save
25706 sequence before parm_birth_insn instead of after.
25708 2011-03-03 Uros Bizjak <ubizjak@gmail.com>
25710 * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
25711 (ssse3_pmaddubsw128): Ditto.
25712 (ssse3_pmaddubsw): Ditto.
25714 2011-03-03 Steve Ellcey <sje@cup.hp.com>
25716 * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
25718 2011-03-03 Jakub Jelinek <jakub@redhat.com>
25721 * gimplify.c (omp_add_variable): Only call omp_notice_variable
25722 on TYPE_SIZE_UNIT if it is a DECL.
25725 * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
25726 first operand is not is_gimple_mem_ref_addr, try to fold it.
25727 If the operand still isn't is_gimple_mem_ref_addr, clear
25730 2011-03-03 Richard Guenther <rguenther@suse.de>
25732 PR middle-end/47283
25733 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
25735 (refs_may_alias_p_1): For release branches return true if
25736 we are confused by our input.
25738 2011-03-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
25740 * config/s390/s390.c (s390_function_value): Rename to ...
25741 (s390_function_and_libcall_value): ... this.
25742 (s390_function_value): New function.
25743 (s390_libcall_value): New function.
25744 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
25745 * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
25746 target macro definitions.
25747 * config/s390/s390-protos.h (s390_function_value): Remove prototype.
25749 2011-03-02 Joseph Myers <joseph@codesourcery.com>
25751 * config/i386/freebsd64.h (CC1_SPEC): Define.
25752 * config/i386/linux64.h (CC1_SPEC): Define.
25753 * config/i386/x86-64.h (CC1_SPEC): Don't define.
25755 2011-03-02 Anatoly Sokolov <aesok@post.ru>
25757 * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
25759 * config/stormy16/stormy16.c: Include reload.h.
25760 (xstormy16_memory_move_cost): New function.
25761 (TARGET_MEMORY_MOVE_COST): Define.
25763 2011-03-02 Richard Sandiford <richard.sandiford@linaro.org>
25765 PR rtl-optimization/47925
25766 * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
25767 with side effects. Remove the more-specific check for volatile asms.
25769 2011-03-02 Alan Modra <amodra@gmail.com>
25772 * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
25773 toc relative addresses for valid offsets.
25775 2011-03-01 Richard Guenther <rguenther@suse.de>
25777 PR tree-optimization/47890
25778 * tree-vect-loop.c (get_initial_def_for_induction): Set
25779 related stmt properly.
25781 2011-03-01 Richard Guenther <rguenther@suse.de>
25784 * lto-streamer.c (lto_record_common_node): Also register
25785 the canonical type.
25787 2011-03-01 Richard Guenther <rguenther@suse.de>
25790 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
25791 Do not stream DECL_ABSTRACT_ORIGIN.
25792 (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
25793 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
25794 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
25795 Do not stream DECL_ABSTRACT_ORIGIN.
25796 (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
25797 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
25799 2011-02-28 Anatoly Sokolov <aesok@post.ru>
25801 * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
25802 FUNCTION_VALUE_REGNO_P): Remove.
25803 * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
25804 * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
25805 Add 'outgoing' argument.
25806 (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
25808 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
25809 TARGET_FUNCTION_VALUE_REGNO_P): Define.
25811 2011-02-28 Kai Tietz <kai.tietz@onevision.com>
25814 * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
25815 (lookup_filename): Likewise.
25816 * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
25818 2011-02-28 Bernd Schmidt <bernds@codesourcery.com>
25819 Jakub Jelinek <jakub@redhat.com>
25821 PR middle-end/47893
25822 * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
25823 (assign_stack_local_1): Change last argument type to int.
25824 * function.c (assign_stack_local_1): Replace reduce_alignment_ok
25825 argument with kind. If bit ASLK_RECORD_PAD is not set in it,
25826 don't record padding space into frame_space_list nor use those areas.
25827 (assign_stack_local): Adjust caller.
25828 (assign_stack_temp_for_type): Call assign_stack_local_1 instead
25829 of assign_stack_local, pass 0 as last argument.
25830 * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
25833 2011-02-28 Jakub Jelinek <jakub@redhat.com>
25836 * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
25837 Use target address_mode and pointer_mode hooks instead of hardcoded
25838 Pmode and ptr_mode. Handle some simple cases of extending if
25839 POINTERS_EXTEND_UNSIGNED < 0.
25840 (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
25841 Call convert_debug_memory_address.
25842 (expand_debug_expr) <case ADDR_EXPR>: Pass as to
25843 convert_debug_memory_address.
25845 PR middle-end/46790
25846 * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
25847 * configure: Regenerated.
25848 * config.in: Regenerated.
25849 * varasm.c (default_function_section): Return NULL
25850 if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
25852 2011-02-28 Martin Jambor <mjambor@suse.cz>
25854 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
25855 the description to match the printed values.
25857 2011-02-28 Richard Guenther <rguenther@suse.de>
25859 * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
25860 of the copied scope tree.
25862 2011-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
25864 * doc/extend.texi (Function Attributes): Avoid deeply (and
25865 wrongly) nested tables.
25867 2011-02-27 Jakub Jelinek <jakub@redhat.com>
25869 PR middle-end/47903
25870 * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
25871 MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
25872 r isn't op0 nor op1.
25874 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
25876 * config/avr/avr.md: Remove magic comment for emacs.
25878 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
25881 * config/avr/avr.c (avr_option_override): Use error on bad options.
25882 (avr_help): New function.
25883 (TARGET_HELP): Define.
25885 2011-02-22 Georg-Johann Lay <avr@gjlay.de>
25888 * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
25889 (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
25891 2011-02-26 Gerald Pfeifer <gerald@pfeifer.com>
25893 * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
25894 (ARM Options): Ditto.
25895 (i386 and x86-64 Options): Ditto.
25896 (RX Options): Ditto.
25897 (SPARC Options): Ditto.
25899 2011-02-26 Tijl Coosemans <tijl@coosemans.org>
25901 * config.gcc (i386-*-freebsd*): Make i486 the default arch on
25902 FreeBSD 6 and later. Generally use cpu generic.
25904 2011-02-25 Gerald Pfeifer <gerald@pfeifer.com>
25906 * doc/cpp.texi: Update copyright years.
25908 2011-02-25 Sebastien Bourdeauducq <sebastien@milkymist.org>
25911 * config/lm32/lm32.md (ashrsi3): Added needed variable.
25913 2011-02-25 Jon Beniston <jon@beniston.com>
25916 * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
25917 * config/lm32/lm32.md (ashlsi3): Remove unused variable.
25918 * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
25919 (lm32_block_move_inline): Add type cast to remove warning.
25920 (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
25921 (gen_int_relational): Move declarations to start of function.
25923 2011-02-25 Eric Botcazou <ebotcazou@adacore.com>
25925 PR tree-optimization/45470
25926 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
25927 can throw internally only.
25928 * tree-vect-stmts.c (vectorizable_call): Likewise.
25930 2011-02-24 Anatoly Sokolov <aesok@post.ru>
25932 * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
25933 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
25934 * config/stormy16/stormy16-protos.h
25935 (xstormy16_preferred_reload_class): Remove.
25936 * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
25937 static. Change 'rclass' argument and return type to reg_class_t.
25938 (TARGET_PREFERRED_RELOAD_CLASS,
25939 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
25941 2011-02-24 Richard Guenther <rguenther@suse.de>
25943 * lto-streamer-in.c (input_bb): Do not find referenced vars
25944 in debug statements.
25946 2011-02-23 Jason Merrill <jason@redhat.com>
25948 * common.opt (fabi-version): Document v5 and v6.
25950 2011-02-23 Richard Guenther <rguenther@suse.de>
25952 PR tree-optimization/47849
25953 * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
25955 2011-02-23 Jie Zhang <jie@codesourcery.com>
25957 * opts-common.c (decode_cmdline_option): Print empty string
25958 argument as "" in decoded->orig_option_with_args_text.
25959 * gcc.c (execute): Print empty string argument as ""
25960 in the verbose output.
25961 (do_spec_1): Keep empty string argument.
25963 2011-02-23 Nathan Froyd <froydnj@codesourcery.com>
25965 * config.gcc: Declare score-* and crx-* obsolete.
25967 2011-02-23 Jie Zhang <jie@codesourcery.com>
25969 PR rtl-optimization/47763
25970 * web.c (web_main): Ignore naked clobber when replacing register.
25972 2011-02-22 Anatoly Sokolov <aesok@post.ru>
25974 * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
25977 2011-02-22 Sebastian Pop <sebastian.pop@amd.com>
25980 * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
25982 2011-02-22 Mike Stump <mikestump@comcast.net>
25984 * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
25986 * configure: Regenerate.
25988 2011-02-21 Chung-Lin Tang <cltang@codesourcery.com>
25990 PR rtl-optimization/46002
25991 * ira-color.c (update_copy_costs): Change class intersection
25992 test to reg_class_contents[] test of 'hard_regno'.
25994 2011-02-21 Joseph Myers <joseph@codesourcery.com>
25996 * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
25997 than Driver option.
25998 * config/hpux11.opt (mt): Likewise.
25999 * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
26000 * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
26001 * config/vax/elf.opt (mno-asm-pic): Likewise.
26002 * config/vms/vms.opt (map, mvms-return-codes): Likewise.
26004 2011-02-21 Mike Stump <mikestump@comcast.net>
26007 * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
26008 tree so we can get save the type.
26009 * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
26010 for CFString instead of trying to use past the end of the builtins.
26011 * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
26012 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
26013 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
26014 * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
26015 Rename to darwin_builtin_cfstring.
26016 (darwin_init_cfstring_builtins): Return the built type.
26018 2011-02-21 Uros Bizjak <ubizjak@gmail.com>
26021 * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
26022 (_mm256_insert_epi64): Use _mm_insert_epi64.
26024 2011-02-21 Anatoly Sokolov <aesok@post.ru>
26026 * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
26027 * config/stormy16/stormy16-protos.h
26028 (xstormy16_mode_dependent_address_p): Remove.
26029 * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
26030 Make static. Change return type to bool. Change argument type to
26031 const_rtx. Remove dead code.
26032 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
26034 2011-02-21 Richard Guenther <rguenther@suse.de>
26037 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
26038 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
26039 (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
26041 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
26042 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
26044 2011-02-20 Richard Guenther <rguenther@suse.de>
26047 * tree.c (free_lang_data_in_decl): Clean builtins from
26048 the TU decl BLOCK_VARS.
26050 2011-02-19 Alexandre Oliva <aoliva@redhat.com>
26054 * haifa-sched.c (fix_tick_ready): Skip tick computation
26057 2011-02-19 Richard Guenther <rguenther@suse.de>
26060 * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
26061 Remove lazy BLOCK_VARS streaming.
26062 (lto_input_ts_block_tree_pointers): Likewise.
26063 * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
26065 2011-02-19 Joseph Myers <joseph@codesourcery.com>
26067 * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
26069 2011-02-19 Joseph Myers <joseph@codesourcery.com>
26071 * config/i386/biarch32.h, config/i386/mach.h,
26072 config/rs6000/aix.opt, config/sh/superh64.h: Remove.
26074 2011-02-19 Jakub Jelinek <jakub@redhat.com>
26077 * config/i386/i386.md (peephole2 for shift and plus): Use
26078 operands[1] original mode in the first insn.
26080 2011-02-18 Mike Stump <mikestump@comcast.net>
26082 * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
26084 2011-02-18 Jan Hubicka <jh@suse.cz>
26086 PR middle-end/47788
26087 * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
26088 to zero when the function is not inlinable at all.
26090 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
26092 * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
26093 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
26094 pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
26095 * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
26096 * config/pa/t-pa64: Likewise.
26097 * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
26099 2011-02-18 Jakub Jelinek <jakub@redhat.com>
26102 * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
26104 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
26107 * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
26109 2011-02-18 Anatoly Sokolov <aesok@post.ru>
26111 * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
26112 RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
26113 LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
26114 GO_IF_LEGITIMATE_ADDRESS): Remove macros.
26115 * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
26116 (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
26117 m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
26118 m32r_load_postinc_p, m32r_store_preinc_predec_p,
26119 m32r_legitimate_address_p): New functions.
26120 * config/m32r/constraints.md (constraint "S"): Don't use
26121 STORE_PREINC_PREDEC_P.
26122 (constraint "U"): Don't use LOAD_POSTINC_P.
26124 2011-02-18 Chung-Lin Tang <cltang@codesourcery.com>
26126 PR rtl-optimization/46178
26127 * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
26128 compute ira_hard_regno_cover_class[].
26130 2011-02-18 Richard Guenther <rguenther@suse.de>
26133 * lto-streamer.h (lto_global_var_decls): Declare.
26134 * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
26135 statics for global var processing.
26137 2011-02-18 Richard Guenther <rguenther@suse.de>
26139 PR tree-optimization/47737
26140 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
26141 edge dominance check.
26143 2011-02-18 Jakub Jelinek <jakub@redhat.com>
26146 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
26147 avoid invalid rtx sharing.
26149 2011-02-18 Gerald Pfeifer <gerald@pfeifer.com>
26151 * doc/cpp.texi (Obsolete Features): Add background on the
26152 origin of assertions.
26154 2011-02-17 Iain Sandoe <iains@gcc.gnu.org>
26156 * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
26158 * config/darwin.c (output_objc_section_asm_op): Added support for
26160 (is_objc_metadata): New.
26161 (darwin_objc2_section): New.
26162 (darwin_objc1_section): New.
26163 (machopic_select_section): Added support for ABI v1 and v2.
26164 (darwin_emit_objc_zeroed): New.
26165 (darwin_output_aligned_bss): Detect objc metadata and treat it
26167 (darwin_asm_output_aligned_decl_common): Same.
26168 (darwin_asm_output_aligned_decl_local): Same.
26169 * config/darwin-sections.def: Updated for ABI v1 and v2.
26170 * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
26171 compiling Objective-C code for the NeXT runtime, default to using
26172 ABI version 0 for 32-bit, and version 2 for 64-bit.
26174 2011-02-17 Joseph Myers <joseph@codesourcery.com>
26176 * common.opt (optimize_fast): New Variable.
26177 * opts.c (default_options_optimization): Use opts->x_optimize_fast
26178 instead of local variable ofast.
26180 2011-02-17 Nicola Pero <nicola.pero@meta-innovation.com>
26182 * doc/invoke.texi (fobjc-abi-version): Documented.
26183 (fobjc-nilcheck): Documented.
26184 (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
26187 2011-02-17 Joseph Myers <joseph@codesourcery.com>
26190 * common.opt (export-dynamic): New Driver option.
26191 * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
26193 2011-02-17 Joseph Myers <joseph@codesourcery.com>
26195 * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
26197 2011-02-17 Alexandre Oliva <aoliva@redhat.com>
26198 Jan Hubicka <jh@suse.cz>
26202 * cfgexpand.c (account_used_vars_for_block): Remove.
26203 (estimated_stack_frame_size): Use referenced vars.
26204 * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
26205 that were referenced in the original function. Test src_fn
26206 rather than cfun. Drop redundant get_var_ann.
26207 (setup_one_parameter): Drop redundant get_var_ann.
26208 (declare_return_variable): Likewise.
26209 (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
26210 (copy_arguments_for_versioning): Drop redundant get_var_ann.
26211 * ipa-inline.c (compute_inline_parameters): Do not compute
26212 disregard_inline_limits here.
26213 (compute_inlinable_for_current, pass_inlinable): New.
26214 (pass_inline_parameters): Require PROP_referenced_vars.
26215 * cgraphunit.c (cgraph_process_new_functions): Don't run
26216 compute_inline_parameters explicitly unless function is in SSA form.
26217 (cgraph_analyze_function): Set .disregard_inline_limits.
26218 * tree-sra.c (convert_callers): Compute inliner parameters
26219 only for functions already in SSA form.
26221 2011-02-17 Joseph Myers <joseph@codesourcery.com>
26223 * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
26224 -mlittle-endian-data.
26226 2011-02-17 Joseph Myers <joseph@codesourcery.com>
26228 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
26229 -mno-fpu, not -fpu and -no-fpu.
26230 * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
26231 * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
26233 2011-02-17 Uros Bizjak <ubizjak@gmail.com>
26236 * config/i386/i386.c (ix86_secondary_reload): Handle SSE
26237 input reload with PLUS RTX.
26239 2011-02-16 Joseph Myers <joseph@codesourcery.com>
26241 * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
26242 of InverseVar(MDMX).
26244 2011-02-16 Joseph Myers <joseph@codesourcery.com>
26246 * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
26249 2011-02-16 Joseph Myers <joseph@codesourcery.com>
26251 * config/mn10300/mn10300.opt (mno-crt0): New.
26253 2011-02-16 Joseph Myers <joseph@codesourcery.com>
26255 * config/m68k/uclinux.opt (static-libc): New Driver option.
26257 2011-02-16 Joseph Myers <joseph@codesourcery.com>
26259 * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
26261 2011-02-16 Joseph Myers <joseph@codesourcery.com>
26263 * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
26264 %{muser-extend-enabled}.
26266 2011-02-16 Richard Guenther <rguenther@suse.de>
26268 PR tree-optimization/47738
26269 * tree-ssa-loop.c (run_tree_predictive_commoning): Return
26270 the TODO from tree_predictive_commoning.
26272 2011-02-15 Jeff Law <law@redhat.com>
26275 2011-01-25 Jeff Law <law@redhat.com>
26277 PR rtl-optimization/37273
26278 * ira-costs.c (scan_one_insn): Detect constants living in memory and
26279 handle them like argument loads from stack slots. Do not double
26280 count memory for memory constants and argument loads from stack slots.
26282 2011-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
26285 * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
26286 mode for vector constants. Remove code that checks for TImode.
26288 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
26292 * cgraph.h (compute_inline_parameters): Return void.
26293 * ipa-inline.c (compute_inline_parameters): Adjust.
26295 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
26299 * tree-inline.h (estimated_stack_frame_size): Take cgraph node
26301 * cfgexpand.c (estimated_stack_frame_size): Likewise.
26302 * ipa-inline.c (compute_inline_parameters): Adjust.
26304 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
26308 * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
26309 Adjust all users. Pass FN to...
26310 * tree-flow-inline.h (first_referenced_var): ... this. Add
26312 * ipa-struct-reorg.c: Adjust.
26313 * tree-dfa.c: Adjust.
26314 * tree-into-ssa.c: Adjust.
26315 * tree-sra.c: Adjust.
26316 * tree-ssa-alias.c: Adjust.
26317 * tree-ssa-live.c: Adjust.
26318 * tree-ssa.c: Adjust.
26319 * tree-ssanames.c: Adjust.
26320 * tree-tailcall.c: Adjust.
26322 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
26326 * tree-flow.h (referenced_var_lookup): Add fn parameter.
26327 Adjust all callers.
26328 * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
26329 * tree-flow-inline.h: Adjust.
26330 * gimple-pretty-print.c: Adjust.
26331 * tree-into-ssa.c: Adjust.
26332 * tree-ssa.c: Adjust.
26333 * cfgexpand.c: Adjust.
26335 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
26337 * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
26338 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
26339 (EXTRA_CONSTRAINT): Delete.
26340 * config/iq2000/constraints.md: New file.
26341 * config/iq2000/iq2000.md: Include it.
26342 (define_insn ""): Delete.
26343 (movsi_internal2, movhi_internal2, movqi_internal2): Delete
26344 unsupported constraint letters from patterns.
26345 (call_value, call_value_internal1): Likewise.
26346 (call_value_multiple_internal1): Likewise.
26348 2011-02-15 Nick Clifton <nickc@redhat.com>
26350 * config/mn10300/mn10300.c: Include tm-constrs.h.
26351 (struct liw_data): New data structure describing an LIW candidate
26353 (extract_bundle): Use struct liw_data. Allow small integer
26354 operands for some instructions.
26355 (check_liw_constraints): Use struct liw_data. Remove swapped
26356 parameter. Add comments describing the checks. Fix bug when
26357 assigning the source of liw1 to the source of liw2.
26358 (liw_candidate): Delete. Code moved into extract_bundle.
26359 (mn10300_bundle_liw): Use struct liw_data. Check constraints
26361 * config/mn10300/predicates.md (liw_operand): New predicate.
26362 Allows registers and small integer constants.
26363 * config/mn10300/constraints.md (O): New constraint. Accetps
26364 integers in the range -8 to +7 inclusive.
26365 * config/mn10300/mn10300.md (movesi_internal): Add an alternative
26366 for moving a small integer into a register. Give this alternative
26368 (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
26369 (ashlsi3): Likewise, plus give LIW attributes to the alternatives
26370 using the J,K,L and M constraints,
26371 (liw): Remove SI mode on second operands to allow for HI and QI
26373 (cmp_liw, liw_cmp): Likewise. Plus fix order of operands in the
26376 2011-02-15 Richard Guenther <rguenther@suse.de>
26378 PR tree-optimization/47743
26379 * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
26380 for a non-type-compatible VN lookup bail out.
26382 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
26384 * config/fr30/constraints.md: New file.
26385 * config/fr30/fr30.md: Include it.
26386 * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
26387 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
26388 (EXTRA_CONSTRAINT): Delete.
26390 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
26392 * config/frv/constraints.md: New file.
26393 * config/frv/predicates.md: Include it.
26394 * config/frv/frv.c (reg_class_from_letter): Delete.
26395 (frv_option_override): Don't initialize it.
26396 * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
26397 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
26398 (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
26399 (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
26400 (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
26401 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
26402 (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
26403 (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
26404 (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
26405 (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
26406 (REG_CLASS_FROM_CONSTRAINT): Delete.
26408 2011-02-15 Jakub Jelinek <jakub@redhat.com>
26410 PR middle-end/47581
26411 * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
26412 if frame size is 0 in a leaf function.
26414 2011-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26417 * config/alpha/host-osf.c: New file.
26418 * config/alpha/x-osf: New file.
26419 * config.host (alpha*-dec-osf*): Use it.
26421 2011-02-14 Anatoly Sokolov <aesok@post.ru>
26423 * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
26424 * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
26425 * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
26426 (rx_mode_dependent_address_p): ...this. Make static. Change argument
26428 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
26430 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
26432 * config/stormy16/constraints.md: New file.
26433 * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
26434 Use satisfies_constraint_Q and satisfies_constraint_R.
26435 * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
26437 (xstormy16_legitiamte_address_p): Declare.
26438 * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
26439 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
26440 (EXTRA_CONSTRAINT): Delete.
26441 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
26443 (xstormy16_extra_constraint_p): Delete.
26445 2011-02-14 Eric Botcazou <ebotcazou@adacore.com>
26447 PR tree-optimization/46494
26448 * loop-unroll.c (split_edge_and_insert): Adjust comment.
26449 * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
26450 (pass_rtl_loop_done): Add TODO_verify_flow.
26451 * fwprop.c (pass_rtl_fwprop): Likewise.
26452 * modulo-sched.c (pass_sms): Likewise.
26453 * tree-ssa-dom.c (pass_dominator): Likewise.
26454 * tree-ssa-loop-ch.c (pass_ch): Likewise.
26455 * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
26456 (pass_tree_loop_done): Likewise.
26457 * tree-ssa-pre.c (execute_pre): Likewise.
26458 * tree-ssa-reassoc.c (pass_reassoc): Likewise.
26459 * tree-ssa-sink.c (pass_sink_code): Likewise.
26460 * tree-vrp.c (pass_vrp): Likewise.
26462 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
26464 * config/v850/constraints.md: New file.
26465 * config/v850/v850.md: Include it.
26466 * config/v850/predicates.md (reg_or_0_operand): Use
26467 satisfies_constraint_G.
26468 (special_symbolref_operand): Use satisfies_constraint_K.
26469 * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
26470 (GO_IF_LEGITIMATE_ADDRESS): Likewise.
26471 (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
26472 (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
26473 (EXTRA_CONSTRAINT): Delete.
26474 (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
26475 (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
26476 (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
26478 2011-02-14 Anatoly Sokolov <aesok@post.ru>
26481 * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
26484 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
26486 * config/mcore/constraints.md: New file.
26487 * config/mcore/mcore.md: Include it.
26488 * config/mcore/mcore.c (reg_class_from_letter): Delete.
26489 * config/mcore/mcore.h (reg_class_from_letter): Delete.
26490 (REG_CLASS_FROM_LETTER): Delete.
26491 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
26492 insn_const_int_ok_for_constraint.
26493 (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
26494 (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
26495 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
26496 (EXTRA_CONSTRAINT): Delete.
26498 2011-02-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26501 * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
26502 (IS_SIGHANDLER): Define.
26503 (sparc64_is_sighandler): New function, split off from
26504 sparc64_fallback_frame_state.
26505 (sparc_is_sighandler): New function, split off from
26506 sparc_fallback_frame_state.
26507 (sparc64_fallback_frame_state): Merge with ...
26508 (sparc_fallback_frame_state): ... this into ...
26509 (MD_FALLBACK_FRAME_STATE_FOR): ... this.
26510 Change new_cfa to long. Remove regs_off, fpu_save_off, fpu_save.
26511 Define nframes, mctx. Use IS_SIGHANDLER, handler_args, mctx, walk
26512 stack instead of hardcoded offsets.
26514 2011-02-14 Andriy Gapon <avg@freebsd.org>
26517 * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
26519 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
26521 * configure: Regenerate.
26523 2011-02-12 Joseph Myers <joseph@codesourcery.com>
26526 * gcc.c (asm_options): Correct spec matching --target-help.
26528 2011-02-12 Martin Jambor <mjambor@suse.cz>
26530 * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
26531 to gimple call error.
26533 2011-02-12 Mike Stump <mikestump@comcast.net>
26535 * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
26536 comments in backslash regions.
26538 2011-02-12 Mike Stump <mikestump@comcast.net>
26539 Jakub Jelinek <jakub@redhat.com>
26540 Iain Sandoe <iains@gcc.gnu.org>
26543 * dwarf2out.c (output_cfa_loc): When required, apply the
26544 DWARF2_FRAME_REG_OUT macro to adjust register numbers.
26545 (output_loc_sequence): Likewise.
26546 (output_loc_operands_raw): Likewise.
26547 (output_loc_sequence_raw): Likewise.
26548 (output_cfa_loc): Likewise.
26549 (output_loc_list): Suppress register number adjustment when
26550 calling output_loc_sequence()
26551 (output_die): Likewise.
26553 2011-02-12 Anatoly Sokolov <aesok@post.ru>
26555 * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
26557 * config/xtensa/xtensa.c (xtensa_register_move_cost,
26558 xtensa_memory_move_cost): New functions.
26559 (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
26561 2011-02-12 Alexandre Oliva <aoliva@redhat.com>
26564 * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
26565 in the current directory.
26566 * configure: Rebuilt.
26568 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
26570 * config/darwin.c (darwin_override_options): Add a hunk missed
26571 from the commit of r168571. Trim comment line lengths and
26572 correct indents of the preceding block.
26574 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
26576 * gcc.c (driver_handle_option): Concatenate the argument to -F with
26579 2011-02-11 Joseph Myers <joseph@codesourcery.com>
26581 * common.opt (nostartfiles): New Driver option.
26583 2011-02-11 Xinliang David Li <davidxl@google.com>
26585 PR tree-optimization/47707
26586 * tree-chrec.c (convert_affine_scev): Keep type precision.
26588 2011-02-11 Eric Botcazou <ebotcazou@adacore.com>
26590 PR tree-optimization/47420
26591 * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
26593 2011-02-11 Pat Haugen <pthaugen@us.ibm.com>
26595 PR rtl-optimization/47614
26596 * rtl.h (check_for_inc_dec): Declare.
26597 * dse.c (check_for_inc_dec): Externalize...
26598 * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
26599 (reload_cse_simplify_operands): Don't simplify opnds with side effects.
26601 2011-02-11 Joseph Myers <joseph@codesourcery.com>
26604 * gcc.c (main): Do not compile inputs if there were errors in
26606 * opts-common.c (read_cmdline_option): Check for wrong language
26607 after other error checks.
26609 2011-02-11 Nathan Froyd <froydnj@codesourcery.com>
26611 * cgraph.c: Fix comment typos.
26612 * cgraph.h: Likewise.
26613 * cgraphunit.c: Likewise.
26614 * ipa-cp.c: Likewise.
26615 * ipa-inline.c: Likewise.
26616 * ipa-prop.c: Likewise.
26617 * ipa-pure-const.c: Likewise.
26618 * ipa-ref.c: Likewise.
26619 * ipa-reference.c: Likewise.
26621 2011-02-11 Jakub Jelinek <jakub@redhat.com>
26624 * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
26626 2011-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26629 * doc/sourcebuild.texi (Require Support): Document
26630 dg-require-ascii-locale.
26632 2011-02-11 Mingjie Xing <mingjie.xing@gmail.com>
26634 * doc/lto.texi (Write summary): Fix missing parentheses.
26636 2011-02-10 DJ Delorie <dj@redhat.com>
26638 * config/m32c/m32c.c (m32c_option_override): Disable
26639 -fcombine-stack-adjustments until flag value tracking and compare
26640 optimization can be rewritten.
26642 2011-02-10 Peter Bergner <bergner@vnet.ibm.com>
26644 * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
26646 (PROCESSOR_DEFAULT64): Likewise.
26648 2011-02-10 Richard Henderson <rth@redhat.com>
26650 * config/rx/predicates.md (rx_zs_comparison_operator): Revert
26651 change from 2011-02-03.
26652 * config/rx/rx.c (flags_from_code): Likewise.
26653 (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
26654 is valid, n/pz otherwise.
26655 (rx_select_cc_mode): Return CCmode if Y is not zero.
26657 2011-02-10 Richard Guenther <rguenther@suse.de>
26659 * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
26661 2011-02-10 Richard Guenther <rguenther@suse.de>
26663 PR tree-optimization/47677
26664 * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
26666 2011-02-10 Jakub Jelinek <jakub@redhat.com>
26669 * combine.c (make_compound_operation): Only change shifts into
26670 multiplication for SCALAR_INT_MODE_P.
26672 2011-02-10 Jie Zhang <jie@codesourcery.com>
26676 2011-02-05 Jie Zhang <jie@codesourcery.com>
26678 * web.c (entry_register): Don't clobber the number of the
26679 first uninitialized reference in used[].
26681 2011-02-09 Richard Guenther <rguenther@suse.de>
26683 PR tree-optimization/47664
26684 * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
26687 2011-02-09 David Edelsohn <dje.gcc@gmail.com>
26691 * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
26693 (PROCESSOR_DEFAULT64): Same.
26694 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
26696 2011-02-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26698 * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
26700 2011-02-09 Martin Jambor <mjambor@suse.cz>
26702 PR middle-end/45505
26703 * tree-sra.c (struct access): New flags grp_scalar_read and
26704 grp_scalar_write. Changed description of assignment read and write
26706 (dump_access): Dump new flags, reorder all of them.
26707 (sort_and_splice_var_accesses): Set the new flag accordingly, use them
26708 to detect multiple scalar reads.
26709 (analyze_access_subtree): Use the new scalar read write flags instead
26710 of the old flags. Adjusted comments.
26712 2011-02-08 DJ Delorie <dj@redhat.com>
26715 * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
26718 2011-02-08 Joseph Myers <joseph@codesourcery.com>
26720 * config/m68k/uclinux.opt: New.
26721 * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
26723 2011-02-08 Joseph Myers <joseph@codesourcery.com>
26725 * config/cris/elf.opt (sim): New Driver option.
26727 2011-02-08 Joseph Myers <joseph@codesourcery.com>
26729 * config/xtensa/elf.opt: New.
26730 * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
26732 2011-02-08 Joseph Myers <joseph@codesourcery.com>
26734 * config/vax/elf.opt: New.
26735 * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
26737 2011-02-08 Joseph Myers <joseph@codesourcery.com>
26739 * config/rs6000/aix64.opt (posix, pthread): New Driver options.
26741 2011-02-08 Joseph Myers <joseph@codesourcery.com>
26743 * config/gnu-user.opt: New.
26744 * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
26745 *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
26746 *-*-uclinux*): Use gnu-user.opt.
26748 2011-02-08 Thomas Schwinge <thomas@schwinge.name>
26750 * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
26751 * config/i386/gnu.h (CPP_SPEC): Likewise.
26753 2011-02-08 Ian Lance Taylor <iant@google.com>
26755 * common.opt (fcx-limited-range): Add SetByCombined flag.
26756 (ffinite-math-only, fmath-errno, frounding-math): Likewise.
26757 (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
26758 (fassociative-math, freciprocal-math): Likewise.
26759 (funsafe-math-optimizations): Likewise.
26760 * opth-gen.awk: Handle SetByCombined.
26761 * optc-gen.awk: Likewise.
26762 * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
26763 (set_unsafe_math_optimizations_flags): Likewise.
26764 * doc/options.texi (Option properties): Document SetByCombined.
26766 2011-02-08 Joseph Myers <joseph@codesourcery.com>
26768 * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
26769 i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
26770 m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
26771 m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
26772 sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
26774 2011-02-08 Sebastian Pop <sebastian.pop@amd.com>
26776 PR tree-optimization/46834
26777 PR tree-optimization/46994
26778 PR tree-optimization/46995
26779 * graphite-sese-to-poly.c (used_outside_reduction): New.
26780 (detect_commutative_reduction): Call used_outside_reduction.
26781 (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
26782 translate_scalar_reduction_to_array only when at least one
26783 loop-phi/close-phi tuple has been detected.
26785 2011-02-08 Richard Guenther <rguenther@suse.de>
26787 PR middle-end/47639
26788 * tree-vect-generic.c (expand_vector_operations_1): Update
26790 (expand_vector_operations): ... not here. Cleanup EH info
26791 and the CFG if required.
26793 2011-02-08 Richard Guenther <rguenther@suse.de>
26795 PR tree-optimization/47641
26796 * tree-ssa.c (execute_update_addresses_taken): For asm outputs
26797 require type compatibility.
26799 2011-02-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
26801 * gimple-low.c (lower_function_body): Don't remove the location of
26802 the return statement here.
26803 (lower_gimple_return): Do it here instead but only if the return
26804 statement is actually used twice.
26806 2011-02-08 Richard Guenther <rguenther@suse.de>
26808 PR tree-optimization/47632
26809 * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
26810 unused up_to_stmt parameter, return whether cfg-cleanup is
26811 necessary, remove EH info properly.
26812 (forward_propagate_into_gimple_cond): Adjust caller.
26813 (forward_propagate_into_cond): Likewise.
26814 (forward_propagate_comparison): Likewise.
26815 (tree_ssa_forward_propagate_single_use_vars): Make
26816 forward_propagate_comparison case similar to the two others.
26818 2011-02-08 Nick Clifton <nickc@redhat.com>
26820 * config/mn10300/mn10300.opt (mliw): New command line option.
26821 * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
26822 (liw_bundling): New automaton.
26823 (liw): New attribute.
26824 (liw_op): New attribute.
26825 (liw_op1, liw_op2, liw_both, liw_either): New reservations.
26826 (movsi_internal): Add LIW attributes.
26827 (andsi3): Likewise.
26828 (iorsi3): Likewise.
26829 (xorsi3): Likewise.
26830 (addsi3): Separate register and immediate alternatives.
26831 Add LIW attributes.
26832 (subsi3): Likewise.
26834 (aslsi3): Likewise.
26835 (lshrsi3): Likewise.
26836 (ashrsi3): Likewise.
26837 (liw): New pattern.
26838 * config/mn10300/mn10300.c (liw_op_names): New
26839 (mn10300_print_operand): Handle 'W' operand descriptor.
26840 (extract_bundle): New function.
26841 (check_liw_constraints): New function.
26842 (liw_candidate): New function.
26843 (mn10300_bundle_liw): New function.
26844 (mn10300_reorg): New function.
26845 (TARGET_MACHINE_DEPENDENT_REORG): Define.
26846 (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
26847 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
26848 __LIW__ or __NO_LIW__.
26849 * doc/invoke.texi: Describe the -mliw command line option.
26851 2011-02-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
26853 * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
26854 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
26855 pthread_mutex_unlock): Remove.
26856 * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
26857 * config/pa/t-pa64: Likewise.
26858 * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
26859 shared libc if not linking against libpthread.
26860 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
26862 2011-02-07 Iain Sandoe <iains@gcc.gnu.org>
26865 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
26866 on 10.6 and later to ensure that we always use the unwinder from
26867 the system. Only add -no_compact_unwind when tarteting darwin
26870 2011-02-07 Steve Ellcey <sje@cup.hp.com>
26873 * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
26874 (vec_interleave_lowv2sf): Ditto.
26875 (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
26876 (vec_extract_oddv2sf): Ditto.
26878 2011-02-07 Mike Stump <mikestump@comcast.net>
26881 Add __ieee_divdc3 entry point.
26882 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
26884 (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
26885 * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
26886 * config/darwin.c (darwin_rename_builtins): Add.
26887 * config/darwin-protos.h (darwin_rename_builtins): Add.
26889 2011-02-07 Michael Meissner <meissner@linux.vnet.ibm.com>
26892 * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
26895 2011-02-07 Mike Stump <mikestump@comcast.net>
26897 * config/darwin.opt (mmacosx-version-min): Update default OS version.
26899 2011-02-07 Denis Chertykov <chertykov@gmail.com>
26902 * config/avr/libgcc.S (exit): Move .endfunc
26904 2011-02-07 Richard Guenther <rguenther@suse.de>
26906 PR tree-optimization/47615
26907 * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
26908 * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
26909 (run_scc_vn): Initialize it.
26910 (visit_reference_op_load): Use it.
26911 * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
26913 2011-02-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
26915 * config/spu/spu.c (spu_init_libfuncs): Install SImode and
26916 DImode trapping arithmetic libfuncs.
26918 2011-02-07 Richard Guenther <rguenther@suse.de>
26920 PR tree-optimization/47621
26921 * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
26923 (execute_update_addresses_taken): ... here. Make it more
26924 conservative in what we accept.
26926 2011-02-06 Joseph Myers <joseph@codesourcery.com>
26928 * config/sparc/freebsd.h (ASM_SPEC): Define.
26929 * config/sparc/vxworks.h (ASM_SPEC): Define.
26931 2011-02-06 Joseph Myers <joseph@codesourcery.com>
26933 * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
26935 2011-02-06 Steven Bosscher <steven@gcc.gnu.org>
26937 * doc/invoke.texi: Remove reference to compiler internals from
26938 user documentation.
26940 * reg-notes.def: Remove REG_VALUE_PROFILE.
26941 * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
26943 2011-02-05 Jakub Jelinek <jakub@redhat.com>
26945 PR middle-end/47610
26946 * varasm.c (default_section_type_flags): If decl is NULL,
26947 and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
26949 2011-02-05 Jie Zhang <jie@codesourcery.com>
26952 * web.c (entry_register): Don't clobber the number of the
26953 first uninitialized reference in used[].
26955 2011-02-04 Sebastian Pop <sebastian.pop@amd.com>
26957 PR tree-optimization/46194
26958 * tree-data-ref.c (analyze_miv_subscript): Remove comment.
26959 (build_classic_dist_vector_1): Do not represent classic distance
26960 vectors when the access functions are variating in different loops.
26962 2011-02-04 Joseph Myers <joseph@codesourcery.com>
26964 * config/mips/iris6.opt: New.
26965 * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
26967 2011-02-04 Richard Henderson <rth@redhat.com>
26968 Steve Ellcey <sje@cup.hp.com>
26971 * config/ia64/predicates.md (mux1_brcst_element): New.
26972 * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
26973 * config/ia64/ia64.c (ia64_unpack_assemble): New.
26974 (ia64_unpack_sign): New.
26975 (ia64_expand_unpack): Rewrite using new routines.
26976 (ia64_expand_widen_sum): Ditto.
26977 (ia64_expand_dot_prod_v8qi): Ditto.
26978 * config/ia64/vect.md (mulv8qi3): Rewrite to use new
26979 routines, add endian check.
26980 (pmpy2_even): Rename from pmpy2_r, add endian check.
26981 (pmpy2_odd): Rename from pmpy2_l, add endian check.
26982 (vec_widen_smult_lo_v4hi): Rewrite using new routines.
26983 (vec_widen_smult_hi_v4hi): Ditto.
26984 (vec_widen_umult_lo_v4hi): Ditto.
26985 (vec_widen_umult_hi_v4hi): Ditto.
26986 (mulv2si3): Change endian checks.
26987 (sdot_prodv4hi): Rewrite with new calls.
26988 (udot_prodv4hi): New.
26989 (vec_pack_ssat_v4hi): Add endian check.
26990 (vec_pack_usat_v4hi): Ditto.
26991 (vec_pack_ssat_v2si): Ditto.
26992 (max1_even): Rename from max1_r, add endian check.
26993 (max1_odd): Rename from max1_l, add endian check.
26994 (*mux1_rev): Format change.
26995 (*mux1_mix): Ditto.
26996 (*mux1_shuf): Ditto.
26997 (*mux1_alt): Ditto.
26998 (*mux1_brcst_v8qi): Use new predicate.
26999 (vec_extract_evenv8qi): Remove endian check.
27000 (vec_extract_oddv8qi): Ditto.
27001 (vec_interleave_lowv4hi): Format change.
27002 (vec_interleave_highv4hi): Ditto.
27003 (mix2_even): Rename from mix2_r, add endian check.
27004 (mix2_odd): Rename from mux2_l, add endian check.
27005 (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
27006 (vec_extract_evenodd_helper): Format change.
27007 (vec_extract_evenv4hi): Remove endian check.
27008 (vec_extract_oddv4hi): Remove endian check.
27009 (vec_interleave_lowv2si): Format change.
27010 (vec_interleave_highv2si): Format change.
27011 (vec_initv2si): Remove endian check.
27012 (vecinit_v2si): Add endian check.
27013 (reduc_splus_v2sf): Add endian check.
27014 (reduc_smax_v2sf): Ditto.
27015 (reduc_smin_v2sf): Ditto.
27016 (vec_initv2sf): Remove endian check.
27017 (fpack): Add endian check.
27018 (fswap): Add endian check.
27019 (vec_interleave_highv2sf): Add endian check.
27020 (vec_interleave_lowv2sf): Add endian check.
27021 (fmix_lr): Add endian check.
27022 (vec_setv2sf): Format change.
27023 (*vec_extractv2sf_0_be): Use shift to extract operand.
27024 (*vec_extractv2sf_1_be): New.
27025 (vec_pack_trunc_v4hi): Add endian check.
27026 (vec_pack_trunc_v2si): Format change.
27028 2011-02-04 Jakub Jelinek <jakub@redhat.com>
27030 PR inline-asm/23200
27031 * tree-ssa-ter.c (is_replaceable_p): Add TER argument. Don't
27032 do bb, locus and block comparison and disallow loads if it is not set.
27033 (stmt_is_replaceable_p): New function.
27034 (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
27036 * expr.c (expand_expr_real_1) <case SSA_NAME>: If
27037 get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
27039 * tree-flow.h (stmt_is_replaceable_p): New prototype.
27041 2011-02-04 Joseph Myers <joseph@codesourcery.com>
27043 * config/rs6000/xilinx.opt: New.
27044 * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
27046 2011-02-04 Joseph Myers <joseph@codesourcery.com>
27048 * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
27050 2011-02-03 Anatoly Sokolov <aesok@post.ru>
27052 * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
27053 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
27054 * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
27055 secondary_reload_info, xtensa_secondary_reload): Remove.
27056 * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
27057 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
27058 (xtensa_preferred_reload_class): Make static. Change return and
27059 'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
27060 Use CONST_DOUBLE_P predicate.
27061 (xtensa_preferred_output_reload_class): New function.
27062 (xtensa_secondary_reload): Make static.
27064 2011-02-03 Joseph Myers <joseph@codesourcery.com>
27066 * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
27067 Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
27068 Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
27070 2011-02-03 Jakub Jelinek <jakub@redhat.com>
27072 PR middle-end/31490
27073 * output.h (SECTION_RELRO): Define.
27074 (SECTION_MACH_DEP): Adjust.
27075 (get_variable_section): New prototype.
27076 * varpool.c (varpool_finalize_named_section_flags): New function.
27077 (varpool_assemble_pending_decls): Call it.
27078 * cgraph.h (varpool_finalize_named_section_flags): New prototype.
27079 * cgraphunit.c (cgraph_output_in_order): Call
27080 varpool_finalize_named_section_flags.
27081 * varasm.c (get_section): Allow section flags conflicts between
27082 relro and read-only sections if the section hasn't been declared yet.
27083 Set SECTION_OVERRIDE after diagnosing section type conflict.
27084 (get_variable_section): No longer static.
27085 (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
27086 readonly sections that need relocations.
27087 (decl_readonly_section_1): New function.
27088 (decl_readonly_section): Use it.
27091 2010-11-17 Dinar Temirbulatov <dtemirbulatov@gmail.com>
27092 Steve Ellcey <sje@cup.hp.com>
27094 PR middle-end/31490
27095 * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
27096 if section attribute used.
27098 2011-02-03 Jakub Jelinek <jakub@redhat.com>
27100 * config/darwin.h (SECTION_NO_ANCHOR): Remove.
27101 * config/darwin.c (SECTION_NO_ANCHOR): Define.
27102 (darwin_init_sections): Remove assertion.
27104 2011-02-03 Nick Clifton <nickc@redhat.com>
27106 * config/rx/predicates.md (rx_zs_comparison_operator): Remove
27108 * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
27109 * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
27110 instead of "n" and "pz".
27111 (flags_from_code): LT and GE tests need CC_FLAG_O as well as
27114 2011-02-03 Jakub Jelinek <jakub@redhat.com>
27117 * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
27118 fma, expand FMA_EXPR as fma{,f,l} call.
27121 * lto-streamer-out.c (write_symbol): When writing kind and visibility,
27122 copy them into a unsigned char variable and pass address of it to
27123 lto_output_data_stream.
27126 * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
27127 around backend_init_target and lang_dependent_init_target calls.
27128 * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
27129 (verify_cgraph_node): Don't call set_cfun here. Use
27130 cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
27131 Set error_found for incorrectly represented calls to thunks.
27133 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
27136 PR rtl-optimization/43494
27137 * rtl.h (for_each_inc_dec_fn): New type.
27138 (for_each_inc_dec): Declare.
27139 * rtlanal.c (struct for_each_inc_dec_ops): New type.
27140 (for_each_inc_dec_find_inc_dec): New fn.
27141 (for_each_inc_dec_find_mem): New fn.
27142 (for_each_inc_dec): New fn.
27143 * dse.c (struct insn_size): Remove.
27144 (replace_inc_dec, replace_inc_dec_mem): Remove.
27145 (emit_inc_dec_insn_before): New fn.
27146 (check_for_inc_dec): Use it, along with for_each_inc_dec.
27147 (canon_address): Pass mem modes to cselib_lookup.
27148 * cselib.h (cselib_lookup): Add memmode argument. Adjust callers.
27149 (cselib_lookup_from_insn): Likewise.
27150 (cselib_subst_to_values): Likewise.
27151 * cselib.c (find_slot_memmode): New var.
27152 (cselib_find_slot): New fn. Use it instead of
27153 htab_find_slot_with_hash everywhere.
27154 (entry_and_rtx_equal_p): Use find_slot_memmode.
27155 (autoinc_split): New fn.
27156 (rtx_equal_for_cselib_p): Rename and implement in terms of...
27157 (rtx_equal_for_cselib_1): ... this. Take memmode, pass it on.
27158 Deal with autoinc. Special-case recursion into MEMs.
27159 (cselib_hash_rtx): Likewise.
27160 (cselib_lookup_mem): Infer pmode from address mode. Distinguish
27161 address and MEM modes.
27162 (cselib_subst_to_values): Add memmode, pass it on.
27164 (cselib_lookup): Add memmode argument, pass it on.
27165 (cselib_lookup_from_insn): Add memmode.
27166 (cselib_invalidate_rtx): Discard obsolete push_operand handling.
27167 (struct cselib_record_autoinc_data): New.
27168 (cselib_record_autoinc_cb): New fn.
27169 (cselib_record_sets): Use it, along with for_each_inc_dec. Pass MEM
27170 mode to cselib_lookup. Reset autoinced REGs here instead of...
27171 (cselib_process_insn): ... here.
27172 * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
27174 (add_uses): Likewise, also to cselib_subst_to_values.
27175 (add_stores): Likewise.
27176 * sched-deps.c (add_insn_mem_dependence): Pass mode to
27177 cselib_subst_to_values.
27178 (sched_analyze_1, sched_analyze_2): Likewise. Adjusted.
27179 * gcse.c (do_local_cprop): Adjusted.
27180 * postreload.c (reload_cse_simplify_set): Adjusted.
27181 (reload_cse_simplify_operands): Adjusted.
27182 * sel-sched-dump (debug_mem_addr_value): Pass mode.
27184 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
27186 PR tree-optimization/45122
27187 * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
27188 unsafe assumptions when there's more than one loop exit.
27190 2011-02-02 Michael Meissner <meissner@linux.vnet.ibm.com>
27193 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
27194 Document using vector double with the load/store builtins, and
27195 that the load/store builtins always use Altivec instructions.
27197 * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
27198 to use altivec memory instructions, even on VSX.
27199 (vector_altivec_store_<mode>): Ditto.
27201 * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
27204 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
27205 V2DF, V2DI support to load/store overloaded builtins.
27207 * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
27208 altivec load/store builtins for V2DF/V2DI types.
27210 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
27211 set avoid indexed addresses on power6 if -maltivec.
27212 (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
27213 vector_altivec_load/vector_altivec_store builtins.
27214 (altivec_expand_st_builtin): Ditto.
27215 (altivec_expand_builtin): Add VSX memory builtins.
27216 (rs6000_init_builtins): Add V2DI types to internal types.
27217 (altivec_init_builtins): Add support for V2DF/V2DI altivec
27218 load/store builtins.
27219 (rs6000_address_for_altivec): Insure memory address is appropriate
27222 * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
27223 vec_vsx_ld and vec_vsx_st.
27224 (vsx_store_<mode>): Ditto.
27226 * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
27227 variables to hold long long types for VSX vector memory builtins.
27228 (RS6000_BTI_unsigned_long_long): Ditto.
27229 (long_long_integer_type_internal_node): Ditti.
27230 (long_long_unsigned_type_internal_node): Ditti.
27232 * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
27233 (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
27234 (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
27236 * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
27238 (vec_vsx_st): Ditto.
27240 2011-02-02 Joseph Myers <joseph@codesourcery.com>
27242 * config/pa/pa-hpux10.opt: New.
27243 * config/hpux11.opt (pthread): New Driver option.
27244 * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
27245 * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
27247 2011-02-02 Joseph Myers <joseph@codesourcery.com>
27249 * config/ia64/vms.opt: New.
27250 * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
27252 2011-02-01 Michael Meissner <meissner@linux.vnet.ibm.com>
27255 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
27256 gpc_reg_operand instead of vsx_register_operand to match rs6000.md
27257 generator functions.
27258 (vsx_floatuns<VSi><mode>2): Ditto.
27259 (vsx_fix_trunc<mode><VSi>2): Ditto.
27260 (vsx_fixuns_trunc<mode><VSi>2): Ditto.
27262 2011-02-02 Joseph Myers <joseph@codesourcery.com>
27264 * config/i386/djgpp.opt (posix): New Driver option.
27266 2011-02-02 Gerald Pfeifer <gerald@pfeifer.com>
27268 * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
27269 Move to the unsupported targets list.
27271 2011-02-02 Peter Bergner <bergner@vnet.ibm.com>
27273 PR rtl-optimization/47525
27274 * df-scan.c: Update copyright years.
27275 (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
27276 and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
27278 2011-02-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27280 * config/i386/sysv4.h (TARGET_VERSION): Remove.
27281 (SUBTARGET_RETURN_IN_MEMORY): Remove.
27282 (ASM_OUTPUT_ASCII): Remove.
27283 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
27285 2011-02-02 Jeff Law <law@redhat.com>
27287 PR middle-end/47543
27288 * reload.c (find_reloads_address): Handle reg+d address where both
27289 components are invalid by reloading the entire address.
27291 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
27292 Richard Guenther <rguenther@suse.de>
27294 PR tree-optimization/40979
27296 * passes.c (init_optimization_passes): After LIM call copy_prop
27297 and DCE to clean up.
27298 * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
27300 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
27302 PR tree-optimization/47576
27303 PR tree-optimization/47555
27304 * doc/invoke.texi (scev-max-expr-complexity): Documented.
27305 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
27306 (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
27307 * tree-scalar-evolution.c (follow_ssa_edge): Use
27308 PARAM_SCEV_MAX_EXPR_COMPLEXITY.
27310 2011-02-02 Richard Guenther <rguenther@suse.de>
27312 PR tree-optimization/47566
27313 * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
27315 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
27319 * tree-inline.c (declare_return_variable): Remove unused caller
27324 * tree-flow-inline.h (clear_is_used, is_used_p): New.
27325 * cfgexpand.c (account_used_vars_for_block): Use them.
27326 * tree-nrv.c (tree_nrv): Likewise.
27327 * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
27328 (dump_scope_block): Likewise.
27329 (remove_unused_locals): Likewise.
27333 * tree-inline.c (declare_return_variable): Add result decl to
27334 local decls only once.
27335 * gimple-low.c (record_vars_into): Mark newly-created variables
27338 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
27344 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
27346 (no_real_insns_p, schedule_block, set_priorities): Drop special
27347 treatment of boundary debug insns.
27348 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
27349 * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
27350 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
27351 (BOUNDARY_DEBUG_INSN_P): Likewise.
27352 (SCHEDULE_DEBUG_INSN_P): Likewise.
27353 * sched-rgn.c (init_ready_list): Drop special treatment of
27354 boundary debug insns.
27355 * final.c (rest_of_clean_state): Clear notes' BB.
27357 2011-02-01 Joseph Myers <joseph@codesourcery.com>
27359 * config/openbsd.opt (assert=): New Driver option.
27361 2011-02-01 Joseph Myers <joseph@codesourcery.com>
27363 * config/i386/nto.opt: New.
27364 * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
27366 2011-02-01 Joseph Myers <joseph@codesourcery.com>
27368 * config/i386/netware.opt: New.
27369 * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
27371 2011-02-01 Joseph Myers <joseph@codesourcery.com>
27373 * config/interix.opt (posix): New Driver option.
27375 2011-02-01 DJ Delorie <dj@redhat.com>
27377 * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
27379 * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
27382 2011-02-01 Sebastian Pop <sebastian.pop@amd.com>
27384 PR tree-optimization/47561
27385 * toplev.c (process_options): Print the Graphite flags. Add
27386 flag_loop_flatten to the list of options requiring Graphite.
27388 2011-02-01 Joseph Myers <joseph@codesourcery.com>
27390 * config/i386/cygming.opt (posix): New Driver option.
27392 2011-02-01 Joseph Myers <joseph@codesourcery.com>
27394 * config/arm/vxworks.opt: New.
27395 * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
27397 2011-02-01 Joseph Myers <joseph@codesourcery.com>
27399 * config/alpha/elf.opt: New.
27400 * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
27401 alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
27403 2011-02-01 Richard Guenther <rguenther@suse.de>
27405 PR tree-optimization/47559
27406 * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
27407 store-motion on references that can throw.
27409 2011-02-01 Bernd Schmidt <bernds@codesourcery.com>
27411 * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
27412 * tree-pass.h (TDF_CSELIB): New macro.
27413 * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
27414 cselib_lookup): Check for it rather than for TDF_DETAILS.
27416 2011-02-01 H.J. Lu <hongjiu.lu@intel.com>
27419 * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
27420 is HOST_BIT_BUCKET.
27422 * opts.c (finish_options): Don't add x_aux_base_name if it is
27425 2011-02-01 Richard Guenther <rguenther@suse.de>
27427 PR tree-optimization/47555
27429 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
27431 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
27433 2011-02-01 Sebastien Bourdeauducq <sebastien@milkymist.org>
27436 * config/lm32/t-lm32: Add multilib for all CPU options.
27438 2011-02-01 Richard Guenther <rguenther@suse.de>
27440 PR tree-optimization/47541
27441 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
27442 sure to have a field at offset zero.
27444 2011-01-31 Joseph Myers <joseph@codesourcery.com>
27446 * config/arc/arc.opt (EB, EL): New Driver options.
27448 2011-01-31 Joseph Myers <joseph@codesourcery.com>
27450 * config/alpha/osf5.opt: New.
27451 * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
27453 2011-01-31 Joseph Myers <joseph@codesourcery.com>
27455 * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
27457 2011-01-31 Sebastian Pop <sebastian.pop@amd.com>
27459 * common.opt (ftree-loop-linear): Use Alias to make it an alias of
27460 -floop-interchange.
27461 * invoke.texi (-ftree-loop-linear): Make it clear that this flag
27462 is an alias of -floop-interchange and that it requires the
27463 Graphite infrastructure.
27464 * tree-ssa-loop.c (gate_graphite_transforms): Do not set
27465 flag_loop_interchange based on the value of flag_tree_loop_linear.
27467 2011-01-31 Jakub Jelinek <jakub@redhat.com>
27468 Richard Guenther <rguenther@suse.de>
27470 PR tree-optimization/47538
27471 * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
27472 type instead of r1type, except for comparisons. For right
27473 shifts and comparisons punt if there are mismatches in
27474 sizetype vs. non-sizetype types.
27476 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27478 * doc/sourcebuild.texi (Effective-Target Keywords): Document
27481 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27483 * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
27485 * configure: Regenerate.
27487 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27489 * configure.ac (gcc_cv_ld_static_option): Define.
27490 (gcc_cv_ld_dynamic_option): Define.
27491 (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
27493 (HAVE_LD_STATIC_DYNAMIC): Update message.
27494 (LD_STATIC_OPTION): Define.
27495 (LD_DYNAMIC_OPTION): Define.
27496 * configure: Regenerate.
27497 * config.in: Regenerate.
27498 * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
27499 HAVE_LD_STATIC_DYNAMIC]: Use them.
27501 2011-01-31 Nick Clifton <nickc@redhat.com>
27503 * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
27504 registers inside interrupt handlers if the handler is not a leaf
27507 2011-01-31 Nick Clifton <nickc@redhat.com>
27509 * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
27510 reg_renumber returning an INVALID_REGNUM.
27512 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
27515 * doc/install.texi: Document host options discarded when cross
27516 configuring target libraries.
27518 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
27521 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
27524 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
27526 (no_real_insns_p, schedule_block, set_priorities): Drop special
27527 treatment of boundary debug insns.
27528 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
27529 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
27530 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
27531 (BOUNDARY_DEBUG_INSN_P): Likewise.
27532 (SCHEDULE_DEBUG_INSN_P): Likewise.
27533 * sched-rgn.c (init_ready_list): Drop special treatment of
27534 boundary debug insns.
27535 * final.c (rest_of_clean-state): Clear notes' BB.
27537 2011-01-31 Alan Modra <amodra@gmail.com>
27539 * config/rs6000/rs6000.c (print_operand): Rearrange addends in
27540 toc relative expressions as we do in print_operand_address.
27542 2011-01-30 Kazu Hirata <kazu@codesourcery.com>
27544 * doc/extend.texi: Follow spelling conventions.
27545 * doc/invoke.texi: Fix a typo.
27547 2011-01-30 Joseph Myers <joseph@codesourcery.com>
27549 * config/hpux11.opt: New.
27550 * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
27551 ia64*-*-hpux*): Use hpux11.opt.
27553 2011-01-30 Jonathan Yong <jon_y@users.sourceforge.net>
27555 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
27558 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
27560 * doc/install.texi (hppa-hp-hpux10): Remove references to HP
27563 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
27565 * doc/install.texi (Binaries): Remove outdated reference for
27566 Motorola 68HC11/68HC12 downloads.
27568 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
27570 * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
27573 2011-01-29 Jonathan Wakely <jwakely.gcc@gmail.com>
27576 * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
27579 2011-01-28 Ahmad Sharif <asharif@google.com>
27581 * value-prof.c (check_counter): Corrected error message.
27583 2011-01-29 Jie Zhang <jie@codesourcery.com>
27585 * config/arm/arm.c (arm_legitimize_reload_address): New.
27586 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
27587 arm_legitimize_reload_address.
27588 * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
27590 2011-01-28 Ian Lance Taylor <iant@google.com>
27592 * godump.c (go_define): Ignore macros whose definitions include
27593 two adjacent operands.
27595 2011-01-28 Jakub Jelinek <jakub@redhat.com>
27598 * varasm.c (force_const_mem): Store copy of x in desc->constant
27599 instead of x itself.
27600 * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
27601 itself into REG_EQUAL note.
27603 2011-01-28 Joseph Myers <joseph@codesourcery.com>
27605 * config/freebsd.opt (posix, rdynamic): New Driver options.
27607 2011-01-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27609 * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
27610 -Bstatic/-Bdynamic.
27611 * configure: Regenerate.
27613 2011-01-27 Joseph Myers <joseph@codesourcery.com>
27615 * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
27616 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
27618 2011-01-27 Anatoly Sokolov <aesok@post.ru>
27620 * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
27621 * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
27622 * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
27623 (s390_preferred_reload_class): Make static. Change return and
27624 'rclass' argument type to reg_class_t.
27626 2011-01-27 Jan Hubicka <jh@suse.cz>
27628 PR middle-end/46949
27629 * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
27630 (process_function_and_variable_attributes): Check defined weakrefs.
27632 2011-01-27 Martin Jambor <mjambor@suse.cz>
27634 PR tree-optimization/47228
27635 * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
27636 build_ref_for_offset.
27638 2011-01-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
27640 * config/spu/spu-elf.h (ASM_SPEC): Remove.
27642 2011-01-26 Mikael Pettersson <mikpe@it.uu.se>
27644 PR rtl-optimization/46856
27645 * postreload.c (reload_combine_recognize_const_pattern): Do not
27646 separate cc0 setter and user on cc0 targets.
27648 2011-01-26 Nicola Pero <nicola.pero@meta-innovation.com>
27651 * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
27652 passed a VOID_TYPE expression, immediately emit an error and
27653 return error_mark_node.
27655 2011-01-26 Jeff Law <law@redhat.com>
27657 PR rtl-optimization/47464
27658 * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
27659 rather than may_trap_p as needed.
27661 2011-01-26 DJ Delorie <dj@redhat.com>
27663 PR rtl-optimization/46878
27664 * combine.c (insn_a_feeds_b): Check for the implicit cc0
27665 setter/user dependency as well.
27667 2011-01-26 Eric Botcazou <ebotcazou@adacore.com>
27669 PR rtl-optimization/44469
27670 * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
27671 after removing trivially dead basic blocks.
27673 2011-01-26 Joseph Myers <joseph@codesourcery.com>
27675 * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
27676 * config/frv/frv.h (LINK_SPEC): Likewise.
27677 * config/i386/netware.h (LINK_SPEC): Likewise.
27678 * config/m68k/linux.h (ASM_SPEC): Likewise.
27679 * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
27680 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
27681 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
27682 * config/sparc/linux.h (ASM_SPEC): Likewise.
27683 * config/sparc/linux64.h (ASM_SPEC): Likewise.
27684 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
27686 2011-01-26 Joseph Myers <joseph@codesourcery.com>
27688 * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
27689 * config/frv/frv.h (ASM_SPEC): Likewise.
27690 * config/m68k/linux.h (ASM_SPEC): Likewise.
27691 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
27692 * config/rs6000/linux64.h (ASM_SPEC): Likewise.
27693 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
27694 * config/sparc/linux.h (ASM_SPEC): Likewise.
27695 * config/sparc/linux64.h (ASM_SPEC): Likewise.
27696 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
27698 2011-01-26 Joseph Myers <joseph@codesourcery.com>
27700 * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
27701 * config/frv/frv.h (LINK_SPEC): Likewise.
27702 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
27704 2011-01-26 Joseph Myers <joseph@codesourcery.com>
27706 * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
27707 * config/frv/frv.h (ASM_SPEC): Likewise.
27708 * config/i386/sol2-10.h (ASM_SPEC): Likewise.
27709 * config/m68k/linux.h (ASM_SPEC): Likewise.
27710 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
27711 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
27712 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
27713 * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
27714 * config/sparc/linux.h (ASM_SPEC): Likewise.
27715 * config/sparc/linux64.h (ASM_SPEC): Likewise.
27716 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
27717 * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
27719 2011-01-26 Steve Ellcey <sje@cup.hp.com>
27722 * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
27724 (vec_extract_evenodd_help): Ditto.
27725 (vec_extract_evenv4hi): Ditto.
27726 (vec_extract_oddv4hi): Ditto.
27727 (vec_interleave_lowv2si): Ditto.
27728 (vec_interleave_highv2si): Ditto.
27729 (vec_extract_evenv2si): Ditto.
27730 (vec_extract_oddv2si: Ditto.
27731 (vec_pack_trunc_v2si): Ditto.
27733 2011-01-22 Jan Hubicka <jh@suse.cz>
27736 * cgraph.h (cgraph_local_info): New field can_change_signature.
27737 * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
27738 signature can change.
27739 (ipcp_estimate_growth): Call sequence simplify only if calle signature
27741 (ipcp_insert_stage): Only compute args_to_skip if signature can change.
27742 (cgraph_function_versioning): We can not change signature of functions
27743 that don't allow that.
27744 * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
27745 (lto_input_node): Likewise.
27746 * ipa-inline.c (compute_inline_parameters): Compute
27747 local.can_change_signature.
27748 * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
27749 * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
27750 functions that can not change signature.
27751 * i386.c (ix86_function_regparm, ix86_function_sseregparm,
27752 init_cumulative_args): Do not use local calling conventions
27753 for functions that can not change signature.
27755 2011-01-22 Jan Hubicka <jh@suse.cz>
27757 * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
27759 2011-01-26 Richard Guenther <rguenther@suse.de>
27761 PR tree-optimization/47190
27762 * cgraphunit.c (process_common_attributes): New function.
27763 (process_function_and_variable_attributes): Use it.
27765 2011-01-26 Richard Guenther <rguenther@suse.de>
27768 * cgraphbuild.c (record_eh_tables): Record reference to personality
27771 2011-01-26 Alexandre Oliva <aoliva@redhat.com>
27774 * sel-sched.c (moveup_expr): Don't let debug insns prevent
27775 non-debug insns from moving up.
27777 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
27780 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
27781 t-dlldir{,-x} fragment for build and add it to tmake_file.
27782 (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
27783 * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
27784 * config/i386/t-dlldir: New file.
27785 (SHLIB_DLLDIR): Define.
27786 * config/i386/t-dlldir-x: New file.
27787 (SHLIB_DLLDIR): Define.
27788 * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
27789 (SHLIB_INSTALL): Use it.
27791 2011-01-26 Chung-Lin Tang <cltang@codesourcery.com>
27794 * config/arm/arm.c (thumb2_legitimate_index_p): Change the
27795 lower bound of the allowed Thumb-2 coprocessor load/store
27796 index range to -256. Add explaining comment.
27798 2011-01-25 Ian Lance Taylor <iant@google.com>
27800 * godump.c (go_define): Improve lexing of macro expansion to only
27801 accept expressions which match Go spec.
27803 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
27806 * tree.c (handle_dll_attribute): Handle it.
27807 * doc/extend.texi (@item dllexport): Mention it.
27808 * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
27810 2011-01-25 Ian Lance Taylor <iant@google.com>
27812 PR tree-optimization/26854
27813 * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
27814 (decl_jump_unsafe): Move higher in file, with no other change.
27815 (bind): Set has_jump_unsafe_decl if appropriate.
27816 (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
27817 (check_earlier_gotos): Likewise.
27818 (c_check_switch_jump_warnings): Likewise.
27820 2011-01-25 Jonathan Wakely <jwakely.gcc@gmail.com>
27822 * doc/invoke.texi (Warning Options): Add missing hyphen.
27823 (-fprofile-dir): Minor grammatical fixes.
27824 (-fbranch-probabilities): Likewise.
27826 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
27830 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
27832 (no_real_insns_p, schedule_block, set_priorities): Drop special
27833 treatment of boundary debug insns.
27834 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
27835 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
27836 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
27837 (BOUNDARY_DEBUG_INSN_P): Likewise.
27838 (SCHEDULE_DEBUG_INSN_P): Likewise.
27839 * sched-rgn.c (init_ready_list): Drop special treatment of
27840 boundary debug insns.
27841 * final.c (rest_of_clean-state): Clear notes' BB.
27843 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
27845 * Makefile.in (LAMBDA_H): Removed.
27846 (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
27847 (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
27848 lambda-trans.o, and tree-loop-linear.o.
27849 (lto-symtab.o): Remove dependence on LAMBDA_H.
27850 (tree-loop-linear.o): Remove rule.
27851 (lambda-mat.o): Same.
27852 (lambda-trans.o): Same.
27853 (lambda-code.o): Same.
27854 (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
27855 (tree-vect-slp.o): Same.
27856 * hwint.h (gcd): Moved here.
27857 (least_common_multiple): Same.
27858 * lambda-code.c: Removed.
27859 * lambda-mat.c: Removed.
27860 * lambda-trans.c: Removed.
27861 * lambda.h: Removed.
27862 * tree-loop-linear.c: Removed.
27863 * lto-symtab.c: Do not include lambda.h.
27864 * omega.c (gcd): Removed.
27865 * passes.c (init_optimization_passes): Remove pass_linear_transform.
27866 * tree-data-ref.c (print_lambda_vector): Moved here.
27867 (lambda_vector_copy): Same.
27868 (lambda_matrix_copy): Same.
27869 (lambda_matrix_id): Same.
27870 (lambda_vector_first_nz): Same.
27871 (lambda_matrix_row_add): Same.
27872 (lambda_matrix_row_exchange): Same.
27873 (lambda_vector_mult_const): Same.
27874 (lambda_vector_negate): Same.
27875 (lambda_matrix_row_negate): Same.
27876 (lambda_vector_equal): Same.
27877 (lambda_matrix_right_hermite): Same.
27878 * tree-data-ref.h: Do not include lambda.h.
27879 (lambda_vector): Moved here.
27880 (lambda_matrix): Same.
27881 (dependence_level): Same.
27882 (lambda_transform_legal_p): Removed declaration.
27883 (lambda_collect_parameters): Same.
27884 (lambda_compute_access_matrices): Same.
27885 (lambda_vector_gcd): Same.
27886 (lambda_vector_new): Same.
27887 (lambda_vector_clear): Same.
27888 (lambda_vector_lexico_pos): Same.
27889 (lambda_vector_zerop): Same.
27890 (lambda_matrix_new): Same.
27891 * tree-flow.h (least_common_multiple): Removed declaration.
27892 * tree-parloops.c (lambda_trans_matrix): Moved here.
27893 (LTM_MATRIX): Same.
27894 (LTM_ROWSIZE): Same.
27895 (LTM_COLSIZE): Same.
27896 (LTM_DENOMINATOR): Same.
27897 (lambda_trans_matrix_new): Same.
27898 (lambda_matrix_vector_mult): Same.
27899 (lambda_transform_legal_p): Same.
27900 * tree-pass.h (pass_linear_transform): Removed declaration.
27901 * tree-ssa-loop.c (tree_linear_transform): Removed.
27902 (gate_tree_linear_transform): Removed.
27903 (pass_linear_transform): Removed.
27904 (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
27905 flag_loop_interchange.
27907 2011-01-25 Jakub Jelinek <jakub@redhat.com>
27909 PR tree-optimization/47265
27910 PR tree-optimization/47443
27911 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
27912 if name still has some uses.
27914 2011-01-25 Martin Jambor <mjambor@suse.cz>
27916 PR tree-optimization/47382
27917 * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
27918 (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
27920 2011-01-25 Joel Sherrill <joel.sherrill@oarcorp.com>
27922 * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
27923 sjlj_except_unwind_info.
27925 2011-01-25 Richard Guenther <rguenther@suse.de>
27927 PR tree-optimization/47426
27928 * tree-ssa-structalias.c (ipa_pta_execute): Make externally
27929 visible functions results escape.
27931 2011-01-25 Jakub Jelinek <jakub@redhat.com>
27934 * config/arm/arm.c (any_sibcall_uses_r3): New function.
27935 (arm_get_frame_offsets): Use it.
27937 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
27938 Jakub Jelinek <jakub@redhat.com>
27940 PR tree-optimization/47271
27941 * tree-if-conv.c (bb_postdominates_preds): New.
27942 (if_convertible_bb_p): Call bb_postdominates_preds.
27943 (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
27944 (predicate_scalar_phi): Call bb_postdominates_preds.
27946 2011-01-25 Nick Clifton <nickc@redhat.com>
27948 * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
27949 * config/rx/rx.c (rx_function_value): Likewise.
27950 (rx_promote_function_mode): Likewise.
27951 (gen_safe_add): Place an outsized immediate value inside an UNSPEC
27952 in order to make it legitimate.
27953 * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
27954 make sure that the first operand is the same as the result register.
27955 (addsi3_unspec): Delete.
27956 (subdi3): Do not accept immediate operands.
27957 (subdi3_internal): Likewise.
27959 2011-01-25 Jeff Law <law@redhat.com>
27961 PR rtl-optimization/37273
27962 * ira-costs.c (scan_one_insn): Detect constants living in memory and
27963 handle them like argument loads from stack slots. Do not double
27964 count memory for memory constants and argument loads from stack slots.
27966 2011-01-25 Jakub Jelinek <jakub@redhat.com>
27968 PR tree-optimization/47427
27969 PR tree-optimization/47428
27970 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
27971 coalesce if the new root var would be TREE_READONLY.
27973 2011-01-25 Richard Guenther <rguenther@suse.de>
27975 PR middle-end/47414
27976 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
27977 correct type for TBAA.
27979 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
27981 * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
27982 (close_phi_written_to_memory): Call for_each_index with
27983 dr_indices_valid_in_loop.
27985 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
27987 * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
27988 when it is initialized.
27990 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
27992 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
27993 call to graphite_find_data_references_in_stmt.
27994 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
27995 (try_generate_gimple_bb): Call outermost_loop_in_sese_1. Update
27996 call to graphite_find_data_references_in_stmt.
27997 (analyze_drs_in_stmts): Same.
27998 * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
27999 in which the scalar analysis of indices is performed.
28000 (create_data_ref): Same. Update call to dr_analyze_indices.
28001 (find_data_references_in_stmt): Update call to create_data_ref.
28002 (graphite_find_data_references_in_stmt): Same.
28003 * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
28005 (create_data_ref): Same.
28006 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
28007 call to create_data_ref.
28009 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
28011 * graphite-sese-to-poly.c (build_poly_scop): Move
28012 rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
28014 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
28016 * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
28017 VAR_DECL, PARM_DECL, and RESULT_DECL.
28019 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
28021 * graphite-dependences.c (reduction_dr_1): Allow several reductions
28022 in a reduction PBB.
28023 * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
28024 that have already been marked as PBB_IS_REDUCTION.
28026 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
28028 * graphite-scop-detection.c (same_close_phi_node): New.
28029 (remove_duplicate_close_phi): New.
28030 (make_close_phi_nodes_unique): New.
28031 (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
28033 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
28035 * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
28036 * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
28037 of both data references to be the same.
28039 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
28041 * graphite-dependences.c (build_lexicographical_constraint): Remove
28042 the gdim parameter.
28043 (build_lexicographical_constraint): Adjust call to
28044 ppl_powerset_is_empty.
28045 (dependence_polyhedron): Same.
28046 (graphite_legal_transform_dr): Same.
28047 (graphite_carried_dependence_level_k): Same.
28048 * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
28050 * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
28052 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
28054 * graphite-sese-to-poly.c
28055 (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
28056 (close_phi_written_to_memory): New.
28057 (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
28060 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
28062 * doc/install.texi: Update the expected version number of PPL to 0.11.
28063 * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
28064 #if PPL_VERSION_MINOR < 11.
28066 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
28068 * graphite-dependences.c: Include graphite-cloog-util.h.
28069 (new_poly_ddr): Inlined into dependence_polyhedron.
28070 (free_poly_ddr): Moved close by new_poly_ddr.
28071 (dependence_polyhedron_1): Renamed dependence_polyhedron.
28072 Early return NULL when ppl_powerset_is_empty returns true.
28073 (dependence_polyhedron): Renamed new_poly_ddr. Call only once
28074 poly_drs_may_alias_p. Avoid one call to ppl_powerset_is_empty.
28075 (graphite_legal_transform_dr): Call new_poly_ddr.
28076 (graphite_carried_dependence_level_k): Same.
28077 (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2. Use new_poly_ddr.
28078 (dot_transformed_deps_stmt_1): Removed.
28079 (dot_deps_stmt_1): Call dot_deps_stmt_2.
28080 (dot_original_deps): Renamed dot_deps_2. Call new_poly_ddr.
28081 (dot_deps_1): Call dot_deps_2.
28082 * Makefile.in (graphite-dependences.o): Add missing dependence on
28083 graphite-cloog-util.h.
28085 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
28087 * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
28088 (build_lexicographical_constraint): Same.
28089 (dependence_polyhedron_1): Same.
28090 (graphite_legal_transform_dr): Same.
28091 (graphite_carried_dependence_level_k): Same.
28092 * graphite-ppl.c (ppl_powerset_is_empty): New.
28093 * graphite-ppl.h (ppl_powerset_is_empty): Declared.
28094 * tree-data-ref.c (dump_data_reference): Print the basic block index.
28096 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
28098 * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
28099 the "a followed by b" relation and document it.
28101 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
28103 * graphite-dependences.c (build_lexicographical_constraint): Stop the
28104 iteration when the bag of constraints is empty.
28106 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
28108 * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
28110 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
28112 * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
28113 nest and two loop depths as parameters.
28114 (lst_try_interchange_loops): Call lst_interchange_profitable_p after
28115 lst_perfect_nestify.
28117 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
28119 * graphite-dependences.c (print_pddr): Call
28120 ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
28122 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
28124 * graphite-ppl.c (debug_gmp_value): New.
28125 * graphite-ppl.h (debug_gmp_value): Declared.
28127 2011-01-25 Tobias Grosser <grosser@fim.uni-passau.de>
28129 * doc/install.texi: Document availability of cloog-0.16.
28131 2011-01-25 Vladimir Kargov <kargov@gmail.com>
28133 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
28134 invalid postdominance info.
28136 2011-01-24 Jan Hubicka <jh@suse.cz>
28139 * doc/extend.texi (weak pragma): Drop claim that it must
28140 appear before definition.
28141 * varasm.c (merge_weak, declare_weak): Only sanity check
28142 that DECL is not output at a time it is declared weak.
28144 2011-01-24 Kenneth Zadeck <zadeck@naturalbridge.com>
28146 * machmode.def: Fixed comments.
28148 2011-01-24 Kai Tietz <kai.tietz@onevision.com>
28150 * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
28152 2011-01-24 Paul Koning <ni1d@arrl.net>
28154 * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
28157 2011-01-24 H.J. Lu <hongjiu.lu@intel.com>
28160 * config/i386/i386.c: Include sbitmap.h and fibheap.h.
28161 (block_info): Add scanned and prev.
28162 (move_or_delete_vzeroupper_2): Return if the basic block
28163 has been scanned and the upper 128bit state is unchanged
28164 from the last scan.
28165 (move_or_delete_vzeroupper_1): Return true if the exit
28167 (move_or_delete_vzeroupper): Visit basic blocks using the
28168 work-list based algorithm based on vt_find_locations in
28171 * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
28173 2011-01-24 Nick Clifton <nickc@redhat.com>
28175 * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
28176 * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
28177 -mv850e1 to the assembler. If -mv850e1 or -mv850es is specified
28178 then define __v850e1__.
28179 * doc/invoke.texi: Document -mv850es.
28181 2011-01-24 Richard Henderson <rth@redhat.com>
28183 * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
28184 compound unordered comparisons.
28185 * config/rx/rx.c (rx_split_fp_compare): Remove.
28186 * config/rx/rx-protos.h: Update.
28187 * config/rx/rx.md (gcc_conds, rx_conds): Remove.
28188 (cbranchsf4): Don't call rx_split_fp_compare.
28189 (*cbranchsf4): Use rx_split_cbranch.
28190 (*cmpsf): Don't accept "i" constraint.
28191 (*conditional_branch): Only valid after reload.
28192 (cstoresf4): Merge expander with insn. Don't call rx_split_fp_compare.
28194 2011-01-24 Michael Meissner <meissner@linux.vnet.ibm.com>
28197 * config/rs6000/altivec.md (vector constant splitters): Add
28198 support for creating vector single precision constants if -mvsx is
28199 used and we would create the constant using Altivec primitives.
28201 2011-01-23 Bernd Schmidt <bernds@codesourcery.com>
28202 Richard Sandiford <rdsandiford@googlemail.com>
28204 PR rtl-optimization/47166
28205 * reload1.c (emit_reload_insns): Disable the spill_reg_store
28206 mechanism for PRE_MODIFY and POST_MODIFY.
28207 (inc_for_reload): For PRE_MODIFY, return the insn that sets the
28210 2011-01-23 Andreas Schwab <schwab@linux-m68k.org>
28212 * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
28214 2011-01-22 Jan Hubicka <jh@suse.cz>
28217 * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
28219 2011-01-22 Jan Hubicka <jh@suse.cz>
28221 PR tree-optimization/43884
28223 * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
28224 * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
28226 2011-01-22 Anatoly Sokolov <aesok@post.ru>
28228 * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
28229 * config/s390/s390.c (s390_register_move_cost,
28230 s390_memory_move_cost): New.
28231 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
28233 2011-01-22 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
28235 PR middle-end/47401
28236 * except.c (sjlj_assign_call_site_values): Move setting the
28237 crtl->uses_eh_lsda flag to ...
28238 (sjlj_mark_call_sites): ... here.
28239 (sjlj_emit_function_enter): Support NULL dispatch label.
28240 (sjlj_build_landing_pads): In a function with no landing pads
28241 that still has must-not-throw regions, generate code to register
28242 a personality function with empty LSDA.
28244 2011-01-21 Richard Henderson <rth@redhat.com>
28246 * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
28248 * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
28250 * compare-elim.c: New file.
28251 * Makefile.in (OBJS-common): Add it.
28252 (compare-elim.o): New.
28253 * common.opt (fcompare-elim): New.
28254 * opts.c (default_options_table): Add OPT_fcompare_elim.
28255 * tree-pass.h (pass_compare_elim_after_reload): New.
28256 * passes.c (init_optimization_passes): Add it.
28257 * recog.h: Protect against re-inclusion.
28258 * target.def (TARGET_FLAGS_REGNUM): New POD hook.
28259 * doc/invoke.texi (-fcompare-elim): Document it.
28260 * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
28261 * doc/tm.texi: Rebuild.
28263 2011-01-22 Nick Clifton <nickc@redhat.com>
28265 * config/rx/rx.md (cstoresf4): Pass comparison operator to
28266 rx_split_fp_compare.
28268 2011-01-22 Nick Clifton <nickc@redhat.com>
28270 * config/rx/rx.md (UNSPEC_CONST): New.
28271 (deallocate_and_return): Wrap the amount popped off the stack in
28272 an UNSPEC_CONST in order to stop it being rejected by
28273 -mmax-constant-size.
28274 (pop_and_return): Add a "(return)" rtx.
28275 (call): Drop the immediate operand.
28276 (call_internal): Likewise.
28277 (call_value): Likewise.
28278 (call_value_internal): Likewise.
28279 (sibcall_internal): Likewise.
28280 (sibcall_value_internal): Likewise.
28281 (sibcall): Likewise. Generate an explicit call using
28283 (sibcall_value): Likewise.
28284 (mov<>): FAIL if a constant operand is not legitimate.
28285 (addsi3_unpsec): New pattern.
28287 * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
28288 (ok_for_max_constant): New function.
28289 (gen_safe_add): New function.
28290 (rx_expand_prologue): Use gen_safe_add.
28291 (rx_expand_epilogue): Likewise.
28292 (rx_is_legitimate_constant): Use ok_for_max_constant. Handle
28295 2011-01-21 Jeff Law <law@redhat.com>
28297 PR tree-optimization/47053
28298 * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
28299 (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
28300 statements are deleted.
28301 (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP. If NEED_EH_CLEANUP
28302 is nonempty, then purge dead edges and cleanup the CFG.
28304 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
28307 Temporarily revert:
28308 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
28310 * tree-dfa.c (create_var_ann): Mark variable as used.
28312 2011-01-21 Jakub Jelinek <jakub@redhat.com>
28314 PR middle-end/45566
28315 * except.c (convert_to_eh_region_ranges): Emit queued no-region
28316 notes from other section in hot/cold partitioning even if
28317 last_action is -3. Increment call_site_base.
28319 PR rtl-optimization/47366
28320 * fwprop.c (forward_propagate_into): Return bool. If
28321 any changes are made, -fnon-call-exceptions is used and
28322 REG_EH_REGION note is present, call purge_dead_edges
28323 and return true if it purged anything.
28324 (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
28325 any EH edges were purged.
28327 2011-01-21 Jeff Law <law@redhat.com>
28329 PR rtl-optimization/41619
28330 * caller-save.c (setup_save_areas): Break out code to determine
28331 which hard regs are live across calls by examining the reload chains
28332 so that it is always used.
28333 Eliminate code which checked REG_N_CALLS_CROSSED.
28335 2011-01-21 Jakub Jelinek <jakub@redhat.com>
28337 PR tree-optimization/47355
28338 * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
28339 NOP has non-debug uses beyond PHIs in new_bb.
28341 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
28344 * cfgexpand.c (account_used_vars_for_block): Only account vars
28345 that are annotated as used.
28346 (estimated_stack_frame_size): Don't set TREE_USED.
28347 * tree-dfa.c (create_var_ann): Mark variable as used.
28349 2011-01-21 Richard Guenther <rguenther@suse.de>
28351 PR middle-end/47395
28352 * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
28354 2011-01-21 Richard Guenther <rguenther@suse.de>
28356 PR tree-optimization/47365
28357 * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
28358 (vn_reference_lookup_pieces): Adjust.
28359 (vn_reference_lookup): Likewise.
28360 * tree-ssa-sccvn.c (vn_walk_kind): New static global.
28361 (vn_reference_lookup_3): Only look through kills if in
28362 VN_WALKREWRITE mode.
28363 (vn_reference_lookup_pieces): Adjust.
28364 (vn_reference_lookup): Likewise.
28365 (visit_reference_op_load): Likewise.
28366 (visit_reference_op_store): Likewise.
28367 * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
28368 (compute_avail): Likewise.
28369 (eliminate): Likewise.
28371 2011-01-21 Jakub Jelinek <jakub@redhat.com>
28373 * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
28374 DECL_IGNORED_P non-reg vars if they are used.
28376 PR tree-optimization/47391
28377 * varpool.c (const_value_known_p): Return false if
28380 2011-01-21 Kai Tietz <kai.tietz@onevision.com>
28383 * config/i386/i386.c (ix86_local_alignment): Handle
28384 case for va_list_type_node is nil.
28385 (ix86_canonical_va_list_type): Likewise.
28387 2011-01-21 Alan Modra <amodra@gmail.com>
28389 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
28390 builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
28392 2011-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
28394 * config/arm/arm.md (define_attr type): Rename f_load
28395 and f_store to f_fpa_load and f_fpa_store. Update.
28396 (write_conflict): Deal with rename fallout.
28397 (*push_fp_multi): Likewise.
28398 * config/arm/fpa.md (f_load): Use f_fpa_load.
28399 (f_store): Use f_fpa_store.
28400 (*movsf_fpa): Likewise.
28401 (*movdf_fpa): Likewise.
28402 (*movxf_fpa): Likewise.
28403 (*thumb2_movsf_fpa): Likewise.
28404 (*thumb2_movdf_fpa): Likewise.
28405 (*thumb2_movxf_fpa): Likewise.
28406 * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
28407 f_loadd and f_stored.
28408 (*thumb2_movdi_vfp): Likewise.
28409 (*thumb2_movsf_vfp): Fix attribute to f_loads.
28410 (*thumb2_movsi_vfp): Likewise.
28411 * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
28412 Use f_loads instead of f_load.
28413 * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
28415 2011-01-20 Anatoly Sokolov <aesok@post.ru>
28417 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
28418 * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
28419 * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
28420 (xtensa_mode_dependent_address_p): New function.
28421 (constantpool_address_p): Make static. Change return type to bool.
28422 Change argument type to const_rtx. Use CONST_INT_P predicate.
28424 2011-01-20 Alexandre Oliva <aoliva@redhat.com>
28427 * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
28429 2011-01-20 Jakub Jelinek <jakub@redhat.com>
28432 * cfgexpand.c (expand_debug_expr): Instead of generating
28433 (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
28436 2011-01-20 Richard Guenther <rguenther@suse.de>
28438 PR middle-end/47370
28439 * tree-inline.c (remap_gimple_op_r): Recurse manually for
28440 the pointer operand of MEM_REFs.
28442 2011-01-20 Jakub Jelinek <jakub@redhat.com>
28444 PR tree-optimization/46130
28445 * ipa-split.c (consider_split): If return_bb contains non-virtual
28446 PHIs other than for retval or if split_function would not adjust it,
28449 2011-01-20 Richard Guenther <rguenther@suse.de>
28451 PR tree-optimization/47167
28452 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
28453 Revert previous change, only avoid enumeral type changes.
28455 2011-01-19 Mike Stump <mikestump@comcast.net>
28457 * doc/tm.texi.in (BRANCH_COST): Englishify.
28458 * doc/tm.texi (BRANCH_COST): Likewise.
28460 2011-01-19 Dodji Seketeli <dodji@redhat.com>
28463 * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
28464 (gen_scheduled_generic_parms_dies): New functions.
28465 (gen_struct_or_union_type_die): Schedule template parameters DIEs
28466 generation for the end of CU compilation.
28467 (dwarf2out_finish): Generate template parameters DIEs here.
28469 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
28472 * tree-into-ssa.c (maybe_register_def): Do not attempt to add
28473 debug bind stmt on merge edges.
28475 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
28479 * function.c (instantiate_expr): Instantiate incoming rtl of
28480 implicit arguments, and recurse on VALUE_EXPRs.
28481 (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
28482 * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
28484 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
28486 * c-parser.c (c_parser_for_statement): Initialize
28487 collection_expression.
28489 2011-01-19 Joseph Myers <joseph@codesourcery.com>
28491 * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
28493 2011-01-19 Joseph Myers <joseph@codesourcery.com>
28495 * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
28496 (LINK_SHLIB_SPEC): Don't use %(link_path).
28497 (SUBTARGET_EXTRA_SPECS): Remove link_path.
28499 2011-01-19 Joseph Myers <joseph@codesourcery.com>
28501 * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
28502 (NO_SHARED_LIB_SUPPORT): Remove.
28503 (LINK_SHLIB_SPEC): Remove one conditional definition.
28505 2011-01-19 Joseph Myers <joseph@codesourcery.com>
28507 * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
28509 * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
28510 * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
28511 * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
28512 %{call_shared} and conditionals on these options not being passed.
28513 * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
28516 2011-01-19 Jakub Jelinek <jakub@redhat.com>
28518 * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
28521 * ipa-split.c: Spelling fixes.
28523 2011-01-19 Richard Henderson <rth@redhat.com>
28525 * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
28526 (*mulsi3): Likewise.
28528 * longlong.h [__mn10300__] (count_leading_zeros): New.
28529 [__mn10300__] (umul_ppmm, smul_ppmm): New.
28530 [__mn10300__] (add_ssaaaa, subddmmss): New.
28531 [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
28532 [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
28534 2011-01-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
28536 * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
28538 2011-01-19 Richard Henderson <rth@redhat.com>
28540 * config/mn10300/mn10300.md (addsi3_flags): New.
28541 (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
28542 (subsi3_flags, subc_internal, subdi3): New.
28543 (subdi3_internal, *subdi3_degenerate): New.
28544 * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
28546 * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
28547 (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
28548 (mn10300_expand_epilogue): Use it. Compute REG_SAVE_BYTES once.
28549 * config/mn10300/mn10300-protos.h: Update.
28550 * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
28551 (return_ret): Likewise. Rename from return_internal_regs.
28552 (return_internal): Remove.
28554 * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
28555 (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
28556 (mn10300_legitimate_constant_p): Likewise.
28557 (mn10300_can_use_return_insn): Use mn10300_initial_offset.
28558 (mn10300_frame_size): New.
28559 (mn10300_expand_prologue): Use it.
28560 (mn10300_expand_epilogue): Likewise.
28561 (mn10300_initial_offset): Likewise.
28562 * config/mn10300/mn10300-protos.h: Update.
28563 * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
28564 * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
28565 (prologue, epilogue, return_internal): Tidy output code.
28566 (mn10300_store_multiple_operation, return): Likewise.
28567 (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
28568 (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
28569 (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
28570 (load_pic, am33_load_pic): New.
28571 (mn10300_load_pic0, mn10300_load_pic1): New.
28573 * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
28574 * config/mn10300/mn10300.c (CC_FLAG_Z): New.
28575 (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
28576 (cc_flags_for_mode, cc_flags_for_code): New.
28577 (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
28578 overflow flag is not valid. Validate that the flags we need
28579 for the comparison are valid.
28580 (mn10300_output_cmp): Remove.
28581 (mn10300_output_add): New.
28582 (mn10300_select_cc_mode): Use cc_flags_for_code.
28583 (mn10300_split_cbranch): New.
28584 (mn10300_match_ccmode): New.
28585 (mn10300_split_and_operand_count): New.
28586 * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
28588 * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
28589 (addsi3): ... here. Use mn10300_output_add.
28590 (*addsi3_flags): New.
28591 (*am33_subsi3, *mn10300_subsi3): Merge...
28592 (subsi3): ... here. Use attribute isa.
28593 (*subsi3_flags): New.
28594 (negsi2): Rewrite from expander to insn_and_split. Use NOT+INC
28596 (*am33_andsi3, *mn10300_andsi3): Merge...
28597 (andsi3): ... here.
28598 (*andsi3_flags): New.
28599 (andsi3 splitters): New.
28600 (*am33_iorsi3, *mn10300_iorsi3): Merge...
28601 (iorsi3): ... here.
28602 (*iorsi3_flags): New.
28603 (*am33_xorsi3, *mn10300_xorsi3): Merge...
28604 (xorsi3): ... here.
28605 (*xorsi3_flags): New.
28606 (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
28607 (one_cmplsi2): ... here.
28608 (*one_cmplsi2_flags): New.
28609 (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload. Use "r"
28610 instead of "dax" in constraints. Use mn10300_split_cbranch.
28611 (*cmpsi): Rename from cmpsi. Do not use mn10300_output_cmp. Do not
28612 use matching constraints to eliminate a self-comparison.
28613 (*integer_conditional_branch): Rename from integer_conditional_branch.
28614 Use int_mode_flags to match CC_REG.
28615 (*cbranchsi4_btst, *btstsi): New.
28616 (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload. Use
28617 mn10300_split_cbranch.
28618 (*am33_cmpsf): Rename from am33_cmpsf.
28619 (*float_conditional_branch): Rename from float_conditional_branch.
28620 (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
28621 (zero_extendqisi2): ... here.
28622 (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
28623 (zero_extendhisi2): ... here.
28624 (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
28625 (extendqisi2): ... here.
28626 (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
28627 (extendhisi2): ... here.
28628 (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
28629 (ashlsi3): ... here.
28630 (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
28631 (lshrsi3): ... here.
28632 (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
28633 (ashrsi3): ... here.
28634 (consecutive add peephole): Remove.
28635 * config/mn10300/predicates.md (label_ref_operand): New.
28636 (int_mode_flags): New.
28637 (CCZN_comparison_operator): New.
28639 * config/mn10300/mn10300.md (UNSPEC_EXT): New.
28640 (throughput_42_latency_43): New reservation.
28641 (mulsidi3, umulsidi3): New expanders.
28642 (mulsidi3_internal): Rewrite from old mulsidi3 pattern. Expose
28643 the MDR register to allocation; separately allocate the low and
28644 high parts of the DImode result.
28645 (umulsidi3_internal): Similarly.
28646 (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
28647 (*mulsi3): ... here. Clobber MDR as a scratch as necessary.
28648 (udivsi3, umodsi3): Remove.
28649 (udivmodsi4, divmodsi4): New expanders.
28650 (*udivmodsi4): Rename from udivmodsi4. Expose MDR properly.
28651 (*divmodsi4): Simiarly.
28652 (ext_internal): New.
28654 * config/mn10300/constraints.md ("z"): New constraint.
28655 * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
28656 (FIXED_REGISTERS): Don't fix MDR.
28657 (CALL_USED_REGSITERS): Reformat nicely.
28658 (REG_ALLOC_ORDER): Add MDR.
28659 (enum regclass): Add MDR_REGS.
28660 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
28661 (IRA_COVER_CLASSES): Add MDR_REGS.
28662 (REGNO_REG_CLASS): Handle MDR_REG.
28663 * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
28664 (mn10300_register_move_cost): Likewise.
28665 * config/mn10300/mn10300.md (MDR_REG): New.
28666 (*movsi_internal): Handle moves to/from MDR_REGS.
28668 * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
28670 (mn10300_secondary_reload): Tidy combination reload classes.
28671 (mn10300_legitimate_address_p): Allow post-modify and reg+reg
28672 addresses for AM33. Allow symbolic offsets for reg+imm.
28673 (mn10300_regno_in_class_p): New.
28674 (mn10300_legitimize_reload_address): New.
28675 * config/mn10300/mn10300.h (enum reg_class): Remove
28676 DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
28677 SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS. Add
28678 SP_OR_GENERAL_REGS.
28679 (REG_CLASS_NAMES): Update to match.
28680 (REG_CLASS_CONTENTS): Likewise.
28681 (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
28682 (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
28683 (REGNO_IN_RANGE_P): Remove.
28684 (REGNO_DATA_P): Use mn10300_regno_in_class_p.
28685 (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
28686 (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
28687 (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
28688 (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
28689 (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
28690 (REGNO_GENERAL_P): New.
28691 (HAVE_POST_MODIFY_DISP): New.
28692 (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
28693 (LEGITIMIZE_RELOAD_ADDRESS): New.
28694 * config/mn10300/mn10300-protos.h: Update.
28696 * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
28697 DATA_REGS for AM33 stack-pointer destination.
28698 (mn10300_preferred_output_reload_class): Likewise.
28699 (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
28700 into a form appropriate for ...
28701 (TARGET_SECONDARY_RELOAD): New.
28702 * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
28703 * config/mn10300/mn10300-protos.h: Update.
28704 * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
28705 reload_insi; use the "A" constraint for the scratch; handle AM33
28706 moves of sp to non-address registers.
28708 * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
28709 (*movqi_internal): ... here.
28710 (*am33_movhi, *mn10300_movhi): Merge into...
28711 (*movhi_internal): ... here.
28712 (*movsi_internal): Use "r" instead of "dax" in constraints. Use "A"
28713 as the source/destination of moves from/to SP.
28714 (movsf): Only allow for AM33-2.
28715 (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
28716 any integer constant constraint. Only allow for AM33-2. Tidy
28717 all of the alternative outputs.
28718 (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
28719 (udivmodsi4): Delete expander and promote *udivmodsi4. Disallow
28721 (udivsi3, umodsi3): New patterns for MN103 only.
28723 2011-01-19 Joern Rennecke <amylaar@spamcop.net>
28725 * doc/tm.texi.in: Spell out that a lack of register class unions
28727 * doc/tm.texi: Regenerate.
28729 2011-01-19 Jakub Jelinek <jakub@redhat.com>
28731 PR rtl-optimization/47337
28732 * dce.c (check_argument_store): New function.
28733 (find_call_stack_args): Ignore debug insns. Use check_argument_store.
28735 PR tree-optimization/47290
28736 * tree-eh.c (infinite_empty_loop_p): New function.
28737 (cleanup_empty_eh): Use it.
28739 2011-01-18 Steve Ellcey <sje@cup.hp.com>
28742 * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
28743 (a64_expand_widen_sum): Ditto.
28744 * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
28745 (vec_extract_evenodd_help): Ditto.
28746 (vec_extract_evenv4hi): Ditto.
28747 (vec_extract_oddv4hi): Ditto.
28748 (vec_extract_evenv2si): Ditto.
28749 (vec_extract_oddv2si): Ditto.
28750 (vec_extract_evenv2sf): Ditto.
28751 (vec_extract_oddv2sf): Ditto.
28752 (vec_pack_trunc_v4hi: Ditto.
28753 (vec_pack_trunc_v2si): Ditto.
28754 (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
28755 (vec_interleave_highv8qi): Ditto.
28757 (vec_extract_oddv8qi): Ditto.
28758 (vec_interleave_lowv4hi): Ditto.
28759 (vec_interleave_highv4hi): Ditto.
28760 (vec_interleave_lowv2si): Ditto.
28761 (vec_interleave_highv2si): Ditto.
28763 2011-01-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
28765 * doc/extend.texi: Mention __float128 support on hppa HP-UX.
28766 * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
28767 * config/pa/pa.c (pa_expand_builtin): New. Include "langhooks.h".
28768 (pa_c_mode_for_suffix): New.
28769 (TARGET_EXPAND_BUILTIN): Define.
28770 (TARGET_C_MODE_FOR_SUFFIX): Define.
28771 (pa_builtins): Define.
28772 (pa_init_builtins): Register __float128 type and init new support
28774 * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
28775 * config/pa/quadlib.c (_U_Qfcopysign): New.
28777 2011-01-18 Eric Botcazou <ebotcazou@adacore.com>
28779 PR middle-end/46894
28780 * explow.c (allocate_dynamic_stack_space): Do not assume more than
28781 BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
28784 2011-01-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
28786 PR tree-optimization/47179
28787 * config/spu/spu.c (spu_ref_may_alias_errno): New function.
28788 (TARGET_REF_MAY_ALIAS_ERRNO): Define.
28790 2011-01-18 Richard Guenther <rguenther@suse.de>
28792 PR rtl-optimization/47216
28793 * emit-rtl.c: Include tree-flow.h.
28794 (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
28795 of replicating it with different semantics.
28796 * Makefile.in (emit-rtl.o): Adjust.
28798 2011-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
28800 * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
28801 (cortex_a9_dp): Handle neon types correctly.
28803 2011-01-18 Jakub Jelinek <jakub@redhat.com>
28805 PR rtl-optimization/47299
28806 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
28807 subtarget. Use normal multiplication if both operands are constants.
28808 * expmed.c (expand_widening_mult): Don't try to optimize constant
28809 multiplication if op0 has VOIDmode. Convert op1 constant to mode
28812 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
28814 * doc/lto.texi (LTO): Ensure two spaces after period. Fix
28815 spacing after 'e.g.', typos, comma, hyphenation.
28817 2011-01-17 Richard Henderson <rth@redhat.com>
28819 * config/rx/predicates.md (rx_constshift_operand): Use match_test.
28820 (rx_restricted_mem_operand): New.
28821 (rx_shift_operand): Use register_operand.
28822 (rx_source_operand, rx_compare_operand): Likewise.
28823 * config/rx/rx.md (addsi3_flags): New expander.
28824 (adddi3): Rewrite as expander.
28825 (adc_internal, *adc_flags, adddi3_internal): New patterns.
28826 (subsi3_flags): New expander.
28827 (subdi3): Rewrite as expander.
28828 (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
28830 * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
28831 (rx_init_builtins): Remove sat builtin.
28832 (rx_expand_builtin): Likewise.
28833 * config/rx/rx.md (ssaddsi3): New.
28834 (*sat): Rename from sat. Represent the CC_REG input.
28836 * config/rx/predicates.md (rshift_operator): New.
28837 * config/rx/rx.c (rx_expand_insv): Remove.
28838 * config/rx/rx-protos.h: Update.
28839 * config/rx/rx.md (*bitset): Rename from bitset. Swap the ashift
28840 operand to the canonical position.
28841 (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
28842 (*bitclr, *bitclr_in_memory): Similarly.
28843 (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
28844 (insv): Retain the zero_extract in the expansion.
28846 * config/rx/rx.md (bswapsi2): Use = not + for output reload.
28847 (bswaphi2, bitinvert, revw): Likewise.
28849 * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
28850 (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
28851 * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
28852 (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
28853 (bitset, bitset_in_memory): Likewise.
28854 (bitinvert, bitinvert_in_memory): Likewise.
28855 (bitclr, bitclr_in_memory): Likewise.
28856 (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
28857 (rx_strend, rx_cmpstrn): Likewise.
28858 (rx_setmem): Likewise. Make the source BLKmode to match the dest.
28859 (bitop peep2 patterns): Remove.
28861 * config/rx/rx.c (rx_match_ccmode): New.
28862 * config/rx/rx-protos.h: Update.
28863 * config/rx/rx.md (abssi2): Clobber, don't set flags.
28864 (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
28865 (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
28866 (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
28867 (fix_truncsfsi2, floatsisf2): Likewise.
28868 (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
28869 (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
28870 (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
28871 (*subsi3_flags, *xorsi3_flags): New.
28873 * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
28875 * config/rx/rx.c (rx_print_operand): Remove workaround for
28876 unsplit comparison operations.
28878 * config/rx/rx.md (movsicc): Split after reload.
28879 (*movsicc): Merge *movsieq and *movsine via match_operator.
28880 (*stcc): New pattern.
28882 * config/rx/rx.c (rx_float_compare_mode): Remove.
28883 * config/rx/rx.h (rx_float_compare_mode): Remove.
28884 * config/rx/rx.md (cstoresi4): Split after reload.
28885 (*sccc): New pattern.
28887 * config/rx/predicates.md (label_ref_operand): New.
28888 (rx_z_comparison_operator): New.
28889 (rx_zs_comparison_operator): New.
28890 (rx_fp_comparison_operator): New.
28891 * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
28892 Validate that the flags are set properly for the comparison.
28893 (rx_gen_cond_branch_template): Remove.
28894 (rx_cc_modes_compatible): Remove.
28895 (mode_from_flags): New.
28896 (flags_from_code): Rename from flags_needed_for_conditional.
28897 (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
28898 (rx_select_cc_mode): Likewise.
28899 (rx_split_fp_compare): New.
28900 (rx_split_cbranch): New.
28901 * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
28902 (*cbranchsi4): Use match_operator and rx_split_cbranch.
28903 (*cbranchsf4): Similarly.
28904 (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>. Use
28905 match_operator and rx_split_cbranch.
28906 (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
28907 tstbranchsi4m_ne. Use match_operator and rx_split_cbranch.
28908 (*cmpsi): Rename from cmpsi.
28909 (*tstsi): Rename from tstsi.
28910 (*cmpsf): Rename from cmpsf; use CC_Fmode.
28911 (*conditional_branch): Rename from conditional_branch.
28912 (*reveresed_conditional_branch): Remove.
28913 (b<code>): Remove expander.
28914 * config/rx/rx-protos.h: Update.
28916 * config/rx/rx.c (rx_compare_redundant): Remove.
28917 * config/rx/rx.md (cmpsi): Don't use it.
28918 * config/rx/rx-protos.h: Update.
28920 * config/rx/rx-modes.def (CC_F): New mode.
28921 * config/rx/rx.c (rx_select_cc_mode): New.
28922 * config/rx/rx.h (SELECT_CC_MODE): Use it.
28923 * config/rx/rx-protos.h: Update.
28925 2011-01-17 Richard Henderson <rth@redhat.com>
28927 * except.c (dump_eh_tree): Fix stray ; after for statement.
28929 2011-01-17 Richard Guenther <rguenther@suse.de>
28931 PR tree-optimization/47313
28932 * tree-inline.c (tree_function_versioning): Move DECL_RESULT
28933 handling before copying the body. Properly deal with
28934 by-reference result in SSA form.
28936 2011-01-17 Ian Lance Taylor <iant@google.com>
28939 * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
28940 (struct_value_alias_set): Don't define.
28941 (sparc_option_override): Don't set sparc_sr_alias_set and
28942 struct_value_alias_set.
28943 (save_or_restore_regs): Use gen_frame_mem rather than calling
28945 (sparc_struct_value_rtx): Likewise.
28947 2011-01-17 H.J. Lu <hongjiu.lu@intel.com>
28950 * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
28951 (_mm_maskstore_pd): Likewise.
28952 (_mm_maskload_ps): Likewise.
28953 (_mm_maskstore_ps): Likewise.
28954 (_mm256_maskload_pd): Change mask to __m256i.
28955 (_mm256_maskstore_pd): Likewise.
28956 (_mm256_maskload_ps): Likewise.
28957 (_mm256_maskstore_ps): Likewise.
28959 * config/i386/i386-builtin-types.def: Updated.
28960 (ix86_expand_special_args_builtin): Likewise.
28962 * config/i386/i386.c (bdesc_special_args): Update
28963 __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
28964 __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
28965 __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
28966 __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
28968 * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
28969 Use <avxpermvecmode> on mask register.
28970 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
28972 2011-01-17 Olivier Hainque <hainque@adacore.com>
28973 Michael Haubenwallner <michael.haubenwallner@salomon.at>
28974 Eric Botcazou <ebotcazou@adacore.com>
28977 * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
28978 if <= USHRT_MAX in 32-bit mode.
28980 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
28982 * doc/install.texi (Configuration, Specific): Wrap long
28983 lines in examples. Allow line wrapping in long options
28984 and URLs where beneficial for PDF output.
28986 2011-01-16 Richard Sandiford <rdsandiford@googlemail.com>
28988 * config/mips/mips.c (mips_classify_symbol): Don't return
28989 SYMBOL_PC_RELATIVE for nonlocal labels.
28991 2011-01-15 Eric Botcazou <ebotcazou@adacore.com>
28993 * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
28995 2011-01-15 Jan Hubicka <jh@suse.cz>
28997 PR tree-optimization/47276
28998 * ipa.c (function_and_variable_visibility): Do not try to mark alias
28999 declarations as needed.
29001 2011-01-15 Martin Jambor <mjambor@suse.cz>
29003 * common.opt (fdevirtualize): New flag.
29004 * doc/invoke.texi (Option Summary): Document it.
29005 * opts.c (default_options_table): Add devirtualize flag.
29006 * ipa-prop.c (detect_type_change): Return immediately if
29007 devirtualize flag is not set.
29008 (detect_type_change_ssa): Likewise.
29009 (compute_known_type_jump_func): Likewise.
29010 (ipa_analyze_virtual_call_uses): Likewise.
29012 2011-01-14 Martin Jambor <mjambor@suse.cz>
29014 PR tree-optimization/45934
29015 PR tree-optimization/46302
29016 * ipa-prop.c (type_change_info): New type.
29017 (stmt_may_be_vtbl_ptr_store): New function.
29018 (check_stmt_for_type_change): Likewise.
29019 (detect_type_change): Likewise.
29020 (detect_type_change_ssa): Likewise.
29021 (compute_complex_assign_jump_func): Check for dynamic type change.
29022 (compute_complex_ancestor_jump_func): Likewise.
29023 (compute_known_type_jump_func): Likewise.
29024 (compute_scalar_jump_functions): Likewise.
29025 (ipa_analyze_virtual_call_uses): Likewise.
29026 (ipa_analyze_node): Push and pop cfun, set current_function_decl.
29028 2011-01-14 Joseph Myers <joseph@codesourcery.com>
29030 * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
29031 * config/i386/i386.opt (msse5): New Alias.
29033 2011-01-14 Joseph Myers <joseph@codesourcery.com>
29035 * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
29036 * config/sparc/linux64.h (CC1_SPEC): Likewise.
29037 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
29038 * config/sparc/sparc.h (CC1_SPEC): Likewise.
29040 2011-01-14 Joseph Myers <joseph@codesourcery.com>
29042 * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
29044 * config/sparc/linux64.h (CC1_SPEC): Likewise.
29045 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
29046 * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
29047 * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
29049 * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
29051 2011-01-14 Joseph Myers <joseph@codesourcery.com>
29053 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
29055 2011-01-14 Mike Stump <mikestump@comcast.net>
29057 * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
29058 * config/fr30/fr30.md: Likweise
29059 (movsi_push): Likewise.
29060 (movsi_pop): Likewise.
29061 (enter_func): Likewise.
29062 * config/moxie/moxie.md (movsi_push): Likewise.
29063 (movsi_pop): Likewise.
29065 2011-01-14 Joseph Myers <joseph@codesourcery.com>
29067 * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
29068 %{no_archive} %{exact_version}.
29069 * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
29070 * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
29071 %{no_archive} %{exact_version}.
29072 * config/mips/openbsd.h (LINK_SPEC): Likewise.
29073 * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
29074 * config/mips/vxworks.h: Likewise.
29076 2011-01-14 Joseph Myers <joseph@codesourcery.com>
29078 * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
29080 2011-01-14 Joseph Myers <joseph@codesourcery.com>
29082 * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
29083 ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
29085 2011-01-14 Joseph Myers <joseph@codesourcery.com>
29087 * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
29090 2011-01-14 Joseph Myers <joseph@codesourcery.com>
29092 * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
29094 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
29095 CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
29097 (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
29098 Don't handle -shlib.
29100 2011-01-14 Joseph Myers <joseph@codesourcery.com>
29102 * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
29103 (CC1_SPEC): Don't handle -profile.
29105 2011-01-14 Joseph Myers <joseph@codesourcery.com>
29107 * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
29108 * config/mips/mips.h (CC1_SPEC): Likewise.
29110 2011-01-14 Joseph Myers <joseph@codesourcery.com>
29112 * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
29113 * config/mips/mips.h (CC1_SPEC): Likewise.
29115 2011-01-14 Joseph Myers <joseph@codesourcery.com>
29117 * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
29118 * config/m32r/linux.h (LINK_SPEC): Likewise.
29119 * config/mips/linux.h (LINK_SPEC): Likewise.
29120 * config/mips/linux64.h (LINK_SPEC): Likewise.
29121 * config/sparc/linux.h (LINK_SPEC): Likewise.
29122 * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
29123 LINK_SPEC): Likewise.
29124 * config/xtensa/linux.h (LINK_SPEC): Likewise.
29126 2011-01-14 Joseph Myers <joseph@codesourcery.com>
29128 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
29130 * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
29132 2011-01-14 Joseph Myers <joseph@codesourcery.com>
29134 * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
29135 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
29137 2011-01-14 Joseph Myers <joseph@codesourcery.com>
29139 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
29141 2011-01-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
29143 * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
29144 supports -Bstatic/-Bdynamic.
29145 * configure: Regenerate.
29147 2011-01-14 Jan Hubicka <jh@suse.cz>
29148 Jack Howarth <howarth@bromo.med.uc.edu>
29151 * config/darwin.c (darwin_override_options): Honor flag_gtoggle
29152 when checking debug_info_level. Test write_symbols instead of
29153 debug_hooks->var_location when setting flag_var_tracking_uninit.
29155 2011-01-14 Richard Guenther <rguenther@suse.de>
29157 PR tree-optimization/47179
29158 * target.def (ref_may_alias_errno): New target hook.
29159 * targhooks.h (default_ref_may_alias_errno): Declare.
29160 * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
29161 (default_ref_may_alias_errno): New function.
29162 * target.h (struct ao_ref_s): Declare.
29163 * tree-ssa-alias.c: Include target.h.
29164 (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
29165 * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
29166 (targhooks.o): Likewise.
29167 * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
29168 * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
29170 2011-01-14 Richard Guenther <rguenther@suse.de>
29172 * tree-ssa-structalias.c (new_var_info): Use DECL_HARD_REGISTER.
29174 2011-01-14 Richard Guenther <rguenther@suse.de>
29176 PR tree-optimization/47280
29177 * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
29178 return CFG changes.
29179 (tree_ssa_forward_propagate_single_use_vars): Deal with
29180 CFG changes from associate_plusminus.
29182 2011-01-14 Richard Guenther <rguenther@suse.de>
29184 PR middle-end/47281
29186 2011-01-11 Richard Guenther <rguenther@suse.de>
29188 PR tree-optimization/46076
29189 * tree-ssa.c (useless_type_conversion_p): Conversions from
29190 unprototyped to empty argument list function types are useless.
29192 2011-01-14 Richard Guenther <rguenther@suse.de>
29194 PR tree-optimization/47286
29195 * tree-ssa-structalias.c (new_var_info): Register variables are global.
29197 2011-01-14 Martin Jambor <mjambor@suse.cz>
29199 PR middle-end/46823
29200 * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
29202 2011-01-13 Anatoly Sokolov <aesok@post.ru>
29204 * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
29205 LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
29206 * config/xtensa/xtensa.c (xtensa_libcall_value,
29207 xtensa_function_value_regno_p): New functions.
29208 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
29210 2011-01-13 Kai Tietz <kai.tietz@onevision.com>
29213 * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
29215 * config/i386/i386-protos.h (i386_pe_assemble_visibility):
29216 New function prototype.
29217 * config/i386/winnt.c (i386_pe_assemble_visibility):
29218 Warn only if attribute was specified by user.
29220 2011-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
29223 * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
29225 (floatunsdidf2_fcfidu): Ditto.
29227 2011-01-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
29229 * config/s390/s390.c (print_operand_address): Replace 'error' with
29230 'output_operand_lossage'.
29231 (print_operand): Likewise.
29233 2011-01-13 Jeff Law <law@redhat.com>
29235 PR rtl-optimization/39077
29236 * doc/invoke.texi (max-gcse-insertion-ratio): Document.
29237 * params.h (MAX_GCSE_INSERTION_RATIO): Define.
29238 * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
29239 * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
29240 * gcse.c (prune_insertions_deletions): New function.
29241 (compute_pre_data): Use it.
29243 2011-01-13 Dodji Seketeli <dodji@redhat.com>
29246 * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
29248 (prune_unused_types_mark): Use it.
29250 2011-01-13 Andrey Belevantsev <abel@ispras.ru>
29252 PR rtl-optimization/45352
29253 * sel-sched.c: Update copyright years.
29254 (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
29255 in the advancing loop when we have issued issue_rate insns.
29257 2011-01-12 Richard Henderson <rth@redhat.com>
29259 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
29260 (TARGET_MD_ASM_CLOBBERS): New.
29262 * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
29263 (TARGET_DELEGITIMIZE_ADDRESS): New.
29265 * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
29266 (clzsi2, *bsch): New patterns.
29268 * config/mn10300/mn10300.md (INT): New mode iterator.
29269 (*mov<INT>_clr): New pattern, and peep2 to generate it.
29271 * config/mn10300/mn10300.c (mn10300_option_override): Force enable
29272 flag_split_wide_types.
29274 * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
29275 (mn10300_trampoline_init): Rewrite without a template, an immediate
29276 load and a direct branch.
29277 * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
29279 2011-01-12 Anatoly Sokolov <aesok@post.ru>
29281 * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
29282 * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
29283 * config/s390/s390.c (s390_output_addr_const_extra): Make static.
29284 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
29286 2011-01-12 Kai Tietz <kai.tietz@onevision.com>
29289 * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
29292 2011-01-12 Jan Hubicka <jh@suse.cz>
29295 * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
29296 (PLUGIN_COND_CLOSE): New macro.
29297 (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
29299 2011-01-12 Richard Guenther <rguenther@suse.de>
29302 * lto-streamer-out.c (output_gimple_stmt): Do not wrap
29303 register variables in a MEM_REF.
29305 2011-01-12 Joseph Myers <joseph@codesourcery.com>
29307 * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
29308 crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
29309 hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
29310 i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
29311 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
29312 x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
29313 ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
29314 m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
29315 mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
29316 s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
29317 sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
29318 am33_2.0-*-linux*): Use gnu-user.h before linux.h.
29319 * config/gnu-user.h: New. Copied from linux.h.
29320 (LINUX_TARGET_STARTFILE_SPEC): Rename to
29321 GNU_USER_TARGET_STARTFILE_SPEC.
29322 (LINUX_TARGET_ENDFILE_SPEC): Rename to
29323 GNU_USER_TARGET_ENDFILE_SPEC.
29324 (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
29325 (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
29326 (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
29327 LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
29328 CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
29329 UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
29330 BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
29331 BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
29332 LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
29333 TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
29334 * config/arm/linux-eabi.h (CC1_SPEC): Use
29335 GNU_USER_TARGET_CC1_SPEC.
29336 (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
29337 (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
29338 (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
29339 * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
29340 LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
29341 LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
29342 CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
29343 LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
29345 2011-01-12 Richard Guenther <rguenther@suse.de>
29348 * doc/invoke.texi (ffast-math): Document it is turned on
29351 2011-01-12 Jan Hubicka <jh@suse.cz>
29353 PR tree-optimization/47233
29354 * opts.c (common_handle_option): Disable ipa-reference with profile
29357 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
29359 * c-parser.c (c_parser_objc_at_property_declaration): Improved
29362 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
29364 * c-parser.c (c_lex_one_token): Updated and reindented some
29365 comments. No changes in code.
29367 2011-01-11 Ian Lance Taylor <iant@google.com>
29369 * godump.c (go_output_var): Don't output the variable if there is
29370 already a type with the same name.
29372 2011-01-11 Ian Lance Taylor <iant@google.com>
29374 * godump.c (go_format_type): Don't generate float80.
29376 2011-01-11 Richard Henderson <rth@redhat.com>
29378 * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
29379 declaration. Rewrite for both speed and size.
29380 (mn10300_address_cost_1): Remove.
29381 (mn10300_register_move_cost): New.
29382 (mn10300_memory_move_cost): New.
29383 (mn10300_rtx_costs): Rewrite for both speed and size. Don't handle
29384 ZERO_EXTRACT. Do handle UNSPEC, arithmetic, logicals, compare,
29385 extensions, shifts, BSWAP, CLZ.
29386 (mn10300_wide_const_load_uses_clr): Remove.
29387 (TARGET_REGISTER_MOVE_COST): New.
29388 (TARGET_MEMORY_MOVE_COST): New.
29389 * config/mn10300/mn10300-protos.h: Update.
29390 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
29392 * config/mn10300/constraints.md ("R", "T"): Remove constraints.
29393 * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
29394 * config/mn10300/mn10300-protos.h: Update.
29395 * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
29396 (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
29397 (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
29398 (*test_int_bitfield, *test_byte_bitfield): Remove.
29399 (*bit_test, *subreg_bit_test): Remove.
29400 * config/mn10300/predicates.md (const_8bit_operand): Remove.
29402 * config/mn10300/constraints.md ("c"): Rename from "A".
29403 ("A", "D"): New constraint letters.
29404 * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
29405 (fmssf4, fnmasf4, fnmssf4): Likewise.
29407 * config/mn10300/mn10300.md (isa): New attribute.
29408 (enabled): New attribute.
29410 * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
29411 (abssf2, negsf2): Define only for hardware fp.
29412 (sqrtsf2): Reformat.
29413 (addsf3, subsf3, mulsf3): Merge expander and insn.
29415 * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
29416 (DEBUGGER_AUTO_OFFSET): Remove.
29417 (DEBUGGER_ARG_OFFSET): Remove.
29419 * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
29420 Emit register stores with the same offsets as the hardware.
29421 (mn10300_store_multiple_operation): Don't check that the register
29422 save offsets are monotonic.
29423 * config/mn10300/mn10300-protos.h: Update.
29425 * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
29427 * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
29428 in terms of the value on the stack, not the MDR register.
29430 2011-01-11 Jan Hubicka <jh@suse.cz>
29434 * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
29435 (symbol_alias_set_destroy, symbol_alias_set_contains,
29436 propagate_aliases_backward): Declare.
29437 * lto-streamer-out.c (struct sets): New sturcture.
29438 (trivally_defined_alias): New function.
29439 (output_alias_pair_p): Rewrite.
29440 (output_unreferenced_globals): Fix output of alias pairs.
29441 (produce_symtab): Likewise.
29442 * ipa.c (function_and_variable_visibility): Set weak alias destination
29444 * varasm.c (symbol_alias_set_t): Remove.
29445 (symbol_alias_set_destroy): Export.
29446 (propagate_aliases_forward, propagate_aliases_backward): New functions
29448 (compute_visible_aliases): ... this one; remove.
29449 (trivially_visible_alias): New
29450 (trivially_defined_alias): New.
29451 (remove_unreachable_alias_pairs): Rewrite.
29452 (finish_aliases_1): Reorganize code checking if alias is defined.
29453 * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
29456 2011-01-11 Richard Guenther <rguenther@suse.de>
29458 PR tree-optimization/46076
29459 * tree-ssa.c (useless_type_conversion_p): Conversions from
29460 unprototyped to empty argument list function types are useless.
29462 2011-01-11 Richard Guenther <rguenther@suse.de>
29464 PR middle-end/45235
29465 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
29466 volatile MEMs as MEM_READONLY_P.
29468 2011-01-11 Richard Guenther <rguenther@suse.de>
29470 PR tree-optimization/47239
29471 * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
29473 2011-01-11 Jeff Law <law@redhat.com>
29475 PR tree-optimization/47086
29476 * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
29477 IVs from statements that might throw.
29479 2011-01-10 Jan Hubicka <jh@suse.cz>
29482 * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
29484 2011-01-10 Jan Hubicka <jh@suse.cz>
29487 * profile.c (read_profile_edge_counts): Ignore profile inconistency
29488 when correcting profile.
29490 2011-01-10 Jan Hubicka <jh@suse.cz>
29493 * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
29494 DECL_FINI_PRIORITY.
29495 * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
29496 Restore DECL_FINI_PRIORITY.
29498 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
29500 * doc/gimple.texi: Fix quoting of multi-word return values in
29501 @deftypefn statements. Ensure presence of return value. Wrap
29502 overlong @deftypefn lines.
29503 (is_gimple_operand, is_gimple_min_invariant_address): Remove
29504 descriptions of removed functions.
29505 * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
29506 of multi-word return value in @deftypefn statement.
29508 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
29510 * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
29511 (Conditional Expressions, Logical Operators)
29512 (Statement and operand traversals): Do not indent smallexample
29513 code. Fix duplicate function argument in example.
29515 2011-01-10 Jeff Law <law@redhat.com>
29517 PR tree-optimization/47141
29518 * ipa-split.c (split_function): Handle case where we are
29519 returning a value and the return block has a virtual operand phi.
29521 2011-01-10 Jan Hubicka <jh@suse.cz>
29523 PR tree-optimization/47234
29524 * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
29525 (pass_feedback_split_functions): Declare.
29526 * passes.c (init_optimization_passes): Add ipa-split as subpass of
29528 * ipa-split.c (gate_split_functions): Update comments; disable
29529 split-functions for profile_arc_flag and branch_probabilities.
29530 (gate_feedback_split_functions): New function.
29531 (execute_feedback_split_functions): New function.
29532 (pass_feedback_split_functions): New global var.
29534 2011-01-10 H.J. Lu <hongjiu.lu@intel.com>
29537 * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
29538 calling gimple_call_set_cannot_inline.
29540 2011-01-10 Iain Sandoe <iains@gcc.gnu.org>
29542 * config/darwin-sections.def: Remove unused section.
29544 2011-01-10 Dave Korn <dave.korn.cygwin@gmail.com>
29547 * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
29549 2011-01-09 Nicola Pero <nicola.pero@meta-innovation.com>
29552 * c-parser.c (c_parser_declaration_or_fndef): Improved
29555 2011-01-09 Kai Tietz <kai.tietz@onevision.com>
29557 * config/i386/winnt.c (i386_pe_start_function): Make sure
29558 to switch back to function's section.
29560 2011-01-09 Iain Sandoe <iains@gcc.gnu.org>
29564 * plugin.c: Move include of dlfcn.h from here...
29565 * system.h: ... to here.
29567 2011-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
29569 * doc/cpp.texi (C++ Named Operators): Fix markup for header
29571 * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
29572 two extra empty pages in PDF output.
29574 2011-01-08 Nicola Pero <nicola.pero@meta-innovation.com>
29577 * c-parser.c (c_parser_objc_type_name): If the type is unknown,
29578 for error recovery purposes behave as if it was not specified so
29579 that the default type is usd.
29581 2011-01-07 Jan Hubicka <jh@suse.cz>
29583 PR tree-optmization/46469
29584 * ipa.c (function_and_variable_visibility): Clear needed flags on
29585 nodes with external decls; handle weakrefs merging correctly.
29587 2011-01-07 Joseph Myers <joseph@codesourcery.com>
29589 * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
29592 2011-01-07 Jan Hubicka <jh@suse.cz>
29594 * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
29595 and no longer claim that gold is required for linker plugin.
29596 * configure: Regenerate.
29597 * gcc.c (PLUGIN_COND): New macro.
29598 (LINK_COMMAND_SPEC): Use it.
29599 (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
29600 * config.in (HAVE_LTO_PLUGIN): New.
29601 * configure.ac (--with-lto-plugin): New parameter; autodetect
29604 2011-01-07 Jan Hubicka <jh@suse.cz>
29606 PR tree-optimization/46367
29607 * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
29608 when we can update original.
29609 (cgraph_mark_inline_edge): Sanity check.
29610 * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
29612 2011-01-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
29614 * config/spu/spu.h (ASM_COMMENT_START): Define.
29616 2011-01-07 H.J. Lu <hongjiu.lu@intel.com>
29619 * gcc.c (%>S): New.
29620 (SWITCH_KEEP_FOR_GCC): Likewise.
29621 (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
29622 (do_spec_1): Handle "%>".
29624 * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
29626 2011-01-07 Jakub Jelinek <jakub@redhat.com>
29629 * config/i386/i386.c (ix86_delegitimize_address): If
29630 simplify_gen_subreg fails, return orig_x.
29633 * value-prof.c (gimple_stringop_fixed_value): Handle
29634 lhs of the call properly.
29636 2011-01-07 Jan Hubicka <jh@suse.cz>
29639 * lto-opt.c (lto_reissue_options): Set flag_shlib.
29641 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
29643 * target.def (function_switched_text_sections): New hook.
29644 * doc/tm.texi: Regenerated.
29645 * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
29646 * final.c (default_function_switched_text_sections): New.
29647 (final_scan_insn): Call function_switched_text_sections when a
29648 mid-function section change occurs.
29649 * output.h (default_function_switched_text_sections): Declare.
29650 * config/darwin-protos.h (darwin_function_switched_text_sections):
29652 * config/darwin.c (darwin_function_switched_text_sections): New.
29653 * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
29655 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
29657 * dwarf2out.c (gen_subprogram_die): Add pubnames with code ranges for
29658 DWARF >= 3. Add pubnames for the primary section and a reduced DIE for
29659 the secondary code fragment when outputting for DWARF == 2.
29661 2011-01-07 Anatoly Sokolov <aesok@post.ru>
29663 * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
29664 * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
29666 * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
29667 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
29669 2011-01-06 Eric Botcazou <ebotcazou@adacore.com>
29672 * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
29673 when it is not empty.
29675 2011-01-06 Changpeng Fang <changpeng.fang@amd.com>
29678 * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
29679 (case ${target}): Add btver1.
29680 * config/i386/driver-i386.c (host_detect_local_cpu): Let
29681 -march=native recognize btver1 processors.
29682 * config/i386/i386-c.c (ix86_target_macros_internal): Add
29683 btver1 def_and_undef
29684 * config/i386/i386.c (struct processor_costs btver1_cost): New
29686 (m_BTVER1): New definition.
29687 (m_AMD_MULTIPLE): Includes m_BTVER1.
29688 (initial_ix86_tune_features): Add btver1 tune.
29689 (processor_target_table): Add btver1 entry.
29690 (static const char *const cpu_names): Add btver1 entry.
29691 (software_prefetching_beneficial_p): Add btver1.
29692 (ix86_option_override_internal): Add btver1 instruction sets.
29693 (ix86_issue_rate): Add btver1.
29694 (ix86_adjust_cost): Add btver1.
29695 * config/i386/i386.h (TARGET_BTVER1): New definition.
29696 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
29697 (enum processor_type): Add PROCESSOR_BTVER1.
29698 * config/i386/i386.md (define_attr "cpu"): Add btver1.
29700 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
29703 * config/i386/i386.c (legitimize_tls_address)
29704 <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
29705 * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
29706 (tls_initial_exec_64_sun): New pattern.
29708 2011-01-06 Gerald Pfeifer <gerald@pfeifer.com>
29710 * doc/invoke.texi (Overall Options): Improve wording and markup
29711 of the description of -wrapper.
29713 2011-01-06 Joseph Myers <joseph@codesourcery.com>
29715 * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
29716 rdynamic, threads): New Driver options.
29718 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
29721 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
29722 if coming from .tdata.
29723 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
29725 2011-01-06 Jan Hubicka <jh@suse.cz>
29728 * collect2.c (main): Do not enable LTOmode when plugin is active.
29730 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
29733 * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
29734 --version output if supported.
29735 * configure: Regenerate.
29737 2011-01-06 Joseph Myers <joseph@codesourcery.com>
29739 * config/linux-android.opt (tno-android-cc, tno-android-ld): New
29742 2011-01-06 Jakub Jelinek <jakub@redhat.com>
29745 * c-convert.c (convert): When converting a complex expression
29746 other than COMPLEX_EXPR to a different complex type, ensure
29747 c_save_expr is called instead of save_expr, unless in_late_binary_op.
29748 * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
29749 when converting COMPLEX_TYPE.
29751 2011-01-06 Ira Rosen <irar@il.ibm.com>
29753 PR tree-optimization/47139
29754 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
29755 only the last reduction value is used outside the loop. Update
29758 2011-01-05 Joseph Myers <joseph@codesourcery.com>
29760 * config/rtems.opt: New.
29761 * config.gcc (*-*-rtems*): Use rtems.opt.
29763 2011-01-05 Changpeng Fang <changpeng.fang@amd.com>
29765 * config/i386/i386.c (ix86_option_override_internal): Bulldozer
29766 processors do not support 3DNow instructions.
29768 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
29770 * config/spu/spu.c (spu_option_override): Set parameter
29771 PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
29773 2011-01-05 Jan Hubicka <jh@suse.cz>
29775 * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
29776 at the command line.
29778 2011-01-05 Martin Jambor <mjambor@suse.cz>
29781 * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
29782 deltas on streamed outgoing edges.
29783 (output_node_opt_summary): Output info for outgoing edges only when
29784 the node is in new parameter set.
29785 (output_cgraph_opt_summary): New parameter set, passed to the two
29786 aforementioned functions. Update its forward declaration and its
29789 2011-01-05 Tom Tromey <tromey@redhat.com>
29791 * c-parser.c (c_parser_omp_atomic): Pass location of assignment
29792 operator to c_finish_omp_atomic.
29793 * c-typeck.c (lvalue_or_else): Add 'loc' argument.
29794 (build_unary_op): Update.
29795 (build_modify_expr): Update.
29796 (build_asm_expr): Update.
29798 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
29800 * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
29801 newly inserted insns.
29802 (pad_bb): Likewise.
29803 (spu_emit_branch_hint): Likewise.
29804 (insert_hbrp_for_ilb_runout): Likewise.
29805 (spu_machine_dependent_reorg): Call df_finish_pass after
29806 schedule_insns returns.
29808 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
29810 * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
29812 2011-01-05 Eric Botcazou <ebotcazou@adacore.com>
29814 PR tree-optimization/47005
29815 * tree-sra.c (struct access): Add 'non_addressable' bit.
29816 (create_access): Set it for a DECL_NONADDRESSABLE_P field.
29817 (decide_one_param_reduction): Return 0 if the parameter is passed by
29818 reference and one of the accesses in the group is non_addressable.
29820 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
29822 PR tree-optimization/47056
29823 * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
29824 (mark_load): Likewise. Handle FUNCTION_DECL specially.
29825 (mark_store): Likewise. Pass STMT to ipa_record_reference.
29827 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
29829 * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
29830 initializer. Skip view conversions from aggregate types.
29832 2011-01-04 Kai Tietz <kai.tietz@onevision.com>
29835 * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
29837 2011-01-04 Philipp Thomas <pth@suse.de>
29839 * config/microblaze/microbalse.opt (mxl-float-convert): Fix
29842 2011-01-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
29844 * function.c (thread_prologue_and_epilogue_insns): Do not crash
29845 on empty epilogue sequences.
29847 2011-01-04 Joseph Myers <joseph@codesourcery.com>
29849 * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
29850 non-static): New Driver options.
29852 2011-01-04 Jie Zhang <jie@codesourcery.com>
29855 * gcc.c (default_compilers[]): Set combinable field to 0
29856 for all assembly languages.
29858 2011-01-04 Mingjie Xing <mingjie.xing@gmail.com>
29860 * config/mips/loongson3a.md: New file.
29861 * config/mips/mips.md: Include loongson3a.md.
29862 * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
29865 2011-01-03 Eric Botcazou <ebotcazou@adacore.com>
29867 PR middle-end/47017
29868 * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
29869 instead of convert_memory_address_addr_space on the base expression.
29871 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
29873 * config/spu/spu.c (spu_option_override): Update error text
29874 for bad -march= / -mtune= values.
29876 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
29878 * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
29879 if branch-hint optimization will be performed.
29881 2011-01-03 Jakub Jelinek <jakub@redhat.com>
29883 PR tree-optimization/47148
29884 * ipa-split.c (split_function): Convert arguments to
29885 DECL_ARG_TYPE if possible.
29887 PR tree-optimization/47155
29888 * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
29889 when computing uns.
29891 PR rtl-optimization/47157
29892 * combine.c (try_combine): If undobuf.other_insn becomes
29893 (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
29894 and set *new_direct_jump_p too.
29896 2011-01-03 Sebastian Pop <sebastian.pop@amd.com>
29898 PR tree-optimization/47021
29899 * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
29901 2011-01-03 Jakub Jelinek <jakub@redhat.com>
29903 * gcc.c (process_command): Update copyright notice dates.
29904 * gcov.c (print_version): Likewise.
29905 * gcov-dump.c (print_version): Likewise.
29906 * mips-tfile.c (main): Likewise.
29907 * mips-tdump.c (main): Likewise.
29909 2011-01-03 Martin Jambor <mjambor@suse.cz>
29911 PR tree-optimization/46801
29912 * tree-sra.c (type_internals_preclude_sra_p): Check whether
29913 aggregate fields start at byte boundary instead of the bit-field flag.
29915 2011-01-03 H.J. Lu <hongjiu.lu@intel.com>
29918 * gcc.c (main): Revert revision 168407.
29920 2011-01-03 Martin Jambor <mjambor@suse.cz>
29922 * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
29924 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
29926 * tree-vect-generic.c (expand_vector_operations_1): When using vector/
29927 vector optab to expand vector/scalar shift, update gimple to vector.
29929 2011-01-03 Martin Jambor <mjambor@suse.cz>
29931 * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
29934 2011-01-03 Martin Jambor <mjambor@suse.cz>
29936 PR tree-optimization/46984
29937 * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
29939 (cgraph_create_indirect_edge): Fixed line length.
29940 (cgraph_indirect_call_info): Declare.
29941 (cgraph_make_edge_direct) Update declaration.
29942 * cgraph.c (cgraph_allocate_init_indirect_info): New function.
29943 (cgraph_create_indirect_edge): Use it.
29944 (cgraph_make_edge_direct): Made delta HOST_WIDE_INT. Updated all
29946 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
29947 the new thunk_delta representation.
29948 * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
29950 (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
29951 (ipa_read_indirect_edge_info): Likewise.
29952 * lto-cgraph.c (output_edge_opt_summary): New function.
29953 (output_node_opt_summary): Call it on all outgoing edges.
29954 (input_edge_opt_summary): New function.
29955 (input_node_opt_summary): Call it on all outgoing edges.
29957 2011-01-02 H.J. Lu <hongjiu.lu@intel.com>
29960 * gcc.c (main): Don't check have_o when settting combine_inputs.
29962 2011-01-02 Eric Botcazou <ebotcazou@adacore.com>
29964 * regrename.c: Add general comment describing the pass.
29965 (struct du_head): Remove 'length' field.
29966 (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
29967 (regrename_optimize): Do not sort chains. Rework comments, add others.
29968 Force renaming to the preferred class (if any) in the first pass and do
29969 not consider registers that belong to it in the second pass.
29970 (create_new_chain): Do not set 'length' field.
29971 (scan_rtx_reg): Likewise.
29973 2011-01-02 Jakub Jelinek <jakub@redhat.com>
29975 PR tree-optimization/47140
29976 * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
29977 TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
29978 to bit_value_binop.
29980 PR rtl-optimization/47028
29981 * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
29982 parm_birth_insn instead of at the beginning of first bb.
29984 2011-01-02 Mingjie Xing <mingjie.xing@gmail.com>
29986 * doc/generic.texi: Remove duplicated "@subsubsection Statements".
29987 Remove the word "see" before "@pxref".
29988 * doc/rtl.texi: Remove the word "see" before "@pxref".
29990 2011-01-01 Jan Hubicka <jh@suse.cz>
29992 * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
29995 2011-01-01 Kai Tietz <kai.tietz@onevision.com>
29998 * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
30001 Copyright (C) 2011 Free Software Foundation, Inc.
30003 Copying and distribution of this file, with or without modification,
30004 are permitted in any medium without royalty provided the copyright
30005 notice and this notice are preserved.